:root {
  --navy: #1f2b52;
  --red: #b8293b;
  --red-dark: #9a1f30;
  --red-soft: #e8899a;
  --ink: #161a2b;
  --text: #2c3142;
  --muted: #5d6374;
  --line: #e2e5ec;
  --tint: #f4f5f8;
  --tint-2: #e9ebf1;
  --dark: #12172a;
  --white: #ffffff;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 14px 32px rgba(20, 22, 26, 0.07);
  --sec-y: 88px;
  --nav-h: 76px;
  --wrap: 1240px;
  --font-display: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2 { margin: 0; font-family: var(--font-display); font-weight: 700; color: var(--navy); line-height: 1.08; }
button { font: inherit; }

h1 { font-size: clamp(2.5rem, 4.4vw, 4rem); letter-spacing: -0.02em; }
h1 em { font-style: normal; color: var(--red); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.875rem); letter-spacing: -0.014em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}

.section { padding-top: var(--sec-y); padding-bottom: var(--sec-y); }
.section--dark { background: var(--dark); }
.section h2 { text-align: center; margin-bottom: 40px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-dark); }
.btn--ghost { background: transparent; color: var(--navy); border-color: #c9cdd8; }
.btn--ghost:hover { border-color: var(--navy); }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 1.125rem; }
.btn--block { width: 100%; }

.topbar { background: var(--dark); color: rgba(255, 255, 255, 0.85); font-size: 0.9375rem; }
.topbar-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 22px; min-height: 40px; padding-top: 7px; padding-bottom: 7px; }
.topbar-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--white); }

.nav {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s var(--ease);
}
.nav.scrolled { box-shadow: 0 6px 18px rgba(20, 22, 26, 0.06); }
.nav-inner { display: flex; align-items: center; gap: 36px; height: var(--nav-h); }

.brand { display: inline-flex; align-items: center; color: var(--navy); }
.brand-word {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.04em;
  line-height: 1;
}
.brand-word .r { color: var(--red); }
.brand-flag { display: inline-flex; flex-direction: column; gap: 4px; margin-left: 12px; }
.brand-flag span { display: block; width: 34px; height: 7px; }
.brand-flag span:first-child { background: var(--red); }
.brand-flag span:last-child { background: var(--navy); }
.brand--footer { color: var(--white); }
.brand--footer .brand-flag span:last-child { background: var(--white); }
.brand--menu .brand-word { font-size: 1.75rem; }

.nav-links { display: flex; align-items: center; gap: 34px; margin-left: auto; }
.nav-links > a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--ink);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.nav-links > a:hover { border-bottom-color: var(--red); }
.mobile-menu-header, .mobile-menu-foot { display: none; }
.nav-cta { min-height: 46px; padding: 0 20px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.14s var(--ease) 0.18s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transition: opacity 0.06s linear; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(12, 16, 32, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0s linear 0.25s;
}
.mobile-overlay.active { opacity: 1; visibility: visible; transition-delay: 0s; }

.hero { position: relative; background: var(--tint); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; align-items: center; }
.hero-copy { max-width: 560px; padding-top: 72px; padding-bottom: 72px; padding-right: 32px; }
.lead { margin-top: 22px; font-size: 1.25rem; line-height: 1.55; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; margin: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }

.band { max-width: 900px; text-align: center; color: rgba(255, 255, 255, 0.84); }
.band h2 { color: var(--white); margin-bottom: 20px; }
.band p { font-size: 1.25rem; line-height: 1.6; }

.section--tint { background: var(--tint); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.contact-info { display: grid; gap: 24px; min-width: 0; }
.info-card { display: grid; gap: 20px; padding: 28px; }
.ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--tint-2);
  color: var(--navy);
}
.info-row { display: flex; align-items: center; gap: 14px; min-width: 0; }
.info-row small { display: block; font-size: 0.875rem; color: var(--muted); line-height: 1.3; }
.info-row strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.1875rem; color: var(--navy); line-height: 1.25; overflow-wrap: anywhere; }
a.info-row:hover strong { color: var(--red); }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); line-height: 0; }
.map iframe { width: 100%; height: 320px; border: 0; display: block; }

.form-card { padding: 32px; min-width: 0; }
#contact-form { max-width: 100%; min-width: 0; display: grid; gap: 18px; }
.form-row { display: grid; gap: 8px; min-width: 0; }
.form-row--split { grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row--split > div { display: grid; gap: 8px; min-width: 0; }
label { font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; color: var(--ink); }
input, textarea {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #cfd3dc;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
textarea { resize: vertical; min-height: 140px; }
input:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(31, 43, 82, 0.14); }
.ms-recaptcha-notice { grid-column: 1 / -1; text-align: center; }
.form-messages { grid-column: 1 / -1; }
.form-messages:empty { display: none; }

.footer { background: var(--dark); color: rgba(255, 255, 255, 0.78); font-size: 0.9375rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 30px; padding-bottom: 30px; }
.footer-row { display: inline-block; }
a.footer-row:hover { color: var(--white); }

@media (max-width: 980px) {
  :root { --sec-y: 72px; }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 130;
    width: min(360px, 88vw);
    margin: 0;
    padding: 0 24px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    box-shadow: -12px 0 40px rgba(12, 16, 32, 0.2);
    transform: translateX(105%);
    visibility: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    transition: transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .nav-links.open { transform: none; visibility: visible; transition-delay: 0s; }
  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
    margin: 0 -24px 12px;
    padding: 0 24px;
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
  }
  .nav-links > a { font-size: 1.1875rem; padding: 14px 0; border-bottom: 0; }
  .mobile-menu-foot { display: block; margin-top: 24px; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { max-width: 620px; padding-top: 56px; padding-bottom: 48px; padding-right: 0; }
  .hero-media { position: static; width: auto; }
  .hero-media img { aspect-ratio: 4 / 3; height: auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 680px) {
  :root { --sec-y: 60px; --nav-h: 66px; }
  body { font-size: 16px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .brand-word { font-size: 1.75rem; }
  .brand-flag span { width: 28px; height: 6px; }
  h1 { font-size: 2.375rem; }
  h2 { font-size: 1.75rem; }
  .lead { font-size: 1.125rem; }
  .hero-copy { padding-top: 44px; padding-bottom: 40px; }
  .hero-actions .btn { width: 100%; }
  .band p { font-size: 1.125rem; }
  .section h2 { margin-bottom: 28px; }
  .form-card { padding: 22px; }
  .form-row--split { grid-template-columns: 1fr; }
  .map iframe { height: 260px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav, .nav-links, .mobile-overlay { transition: none; }
}
