:root {
  --navy: #0B1F3A;
  --navy-2: #13294B;
  --navy-3: #1C3760;
  --red: #C8102E;
  --red-dark: #A50D26;
  --blue: #2B5BA8;
  --band: #F4F6FA;
  --white: #ffffff;
  --text: #1A2433;
  --muted: #5B6779;
  --line: #E1E6EF;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, .06), 0 1px 3px rgba(11, 31, 58, .08);
  --shadow-md: 0 8px 24px rgba(11, 31, 58, .08);
  --shadow-lg: 0 20px 48px rgba(11, 31, 58, .14);
  --header-h: 72px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid rgba(43, 91, 168, .55); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-3); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(200, 16, 46, .25); }
.btn-accent:hover { background: var(--red-dark); box-shadow: 0 10px 24px rgba(200, 16, 46, .32); }
.btn-ghost-light { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(11, 31, 58, .06); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { display: inline-flex; flex-shrink: 0; }
.logo-text { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--navy); letter-spacing: -.02em; }
.logo-light .logo-text { color: #fff; }

.primary-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  position: relative; padding: 8px 12px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav-link:hover { color: var(--navy); background: var(--band); }
.nav-link.is-active { color: var(--navy); }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--red); border-radius: 2px;
}
.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; padding: 96px 0 104px; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(43, 91, 168, .45), transparent 70%),
    radial-gradient(500px 340px at 95% 95%, rgba(200, 16, 46, .22), transparent 70%),
    linear-gradient(180deg, #0B1F3A 0%, #0E2547 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent 85%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .05); font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .85);
  margin-bottom: 24px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(200, 16, 46, .25); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; max-width: 14ch; }
.hero .lead { margin-top: 22px; font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: rgba(255, 255, 255, .78); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-trust { list-style: none; padding: 0; margin: 44px 0 0; display: flex; flex-wrap: wrap; gap: 14px 32px; font-size: 14px; color: rgba(255, 255, 255, .65); }
.hero-trust strong { color: #fff; font-weight: 600; }

.hero-card {
  background: rgba(255, 255, 255, .98); color: var(--text);
  border-radius: var(--radius-lg); padding: 22px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}
.hc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.hc-title { font-family: var(--font-display); font-weight: 700; color: var(--navy); }
.hc-badge { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--band); color: var(--muted); font-weight: 500; }
.hc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hc-list li { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.hc-list b { display: block; font-size: 14px; color: var(--navy); }
.hc-list small { display: block; font-size: 12.5px; color: var(--muted); }
.hc-list div { min-width: 0; }
.hc-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; }
.ico-red { background: var(--red); }
.ico-blue { background: var(--blue); }
.ico-navy { background: var(--navy); }
.ico-gray { background: #8A96A8; }
.hc-status { font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.st-meet { background: rgba(200, 16, 46, .1); color: var(--red); }
.st-review { background: rgba(43, 91, 168, .12); color: var(--blue); }
.st-intro { background: rgba(11, 31, 58, .08); color: var(--navy); }
.st-match { background: #EEF1F5; color: var(--muted); }
.hc-foot { margin-top: 16px; }
.hc-progress { height: 6px; background: var(--band); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.hc-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--red)); border-radius: inherit; }
.hc-foot small { color: var(--muted); font-size: 12.5px; }

/* Sections */
.section { padding: 104px 0; }
.section-band { background: var(--band); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.kicker { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--red); margin-bottom: 14px; }
.kicker-light { color: #F2A0AD; }
.section h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
.section-sub { margin-top: 16px; font-size: 1.08rem; color: var(--muted); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: none; }
.step {
  position: relative; padding: 28px 24px 30px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
}
.step::before {
  content: ""; position: absolute; top: 0; left: 24px; width: 40px; height: 3px; background: var(--blue); border-radius: 0 0 3px 3px;
}
.step:nth-child(4)::before { background: var(--red); }
.step-num { display: inline-block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; color: var(--band); -webkit-text-stroke: 1.5px var(--navy); line-height: 1; margin-bottom: 18px; }
.step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .97rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(43, 91, 168, .3); }
.card-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px; }
.ico-bg-red { background: rgba(200, 16, 46, .09); color: var(--red); }
.ico-bg-blue { background: rgba(43, 91, 168, .1); color: var(--blue); }
.ico-bg-navy { background: rgba(11, 31, 58, .08); color: var(--navy); }
.ico-bg-gray { background: #EDF0F5; color: #4A5668; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .96rem; }
.card-points { list-style: none; padding: 18px 0 0; margin: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; color: var(--text); font-weight: 500; }
.card-points li { display: flex; align-items: center; gap: 10px; }
.card-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }

/* Why */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.why-col { padding: 8px 8px 8px 0; }
.why-us {
  background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 44px 40px;
  position: relative; overflow: hidden;
}
.why-us::before {
  content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 91, 168, .5), transparent 70%); pointer-events: none;
}
.why-us > * { position: relative; }
.why-us h2 { color: #fff; }
.why-us .btn { margin-top: 30px; }
.benefits { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 22px; }
.benefits li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.benefits b { display: block; font-size: 1.05rem; color: var(--navy); margin-bottom: 4px; font-family: var(--font-display); }
.benefits p { color: var(--muted); font-size: .97rem; }
.b-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(43, 91, 168, .1); color: var(--blue); font-weight: 700; font-size: 14px; }
.benefits-light b { color: #fff; }
.benefits-light p { color: rgba(255, 255, 255, .72); }
.benefits-light .b-ico { background: rgba(255, 255, 255, .1); color: #fff; font-family: var(--font-display); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.contact-points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.contact-points li { display: flex; gap: 12px; color: var(--text); font-weight: 500; }
.contact-points span { color: var(--red); font-weight: 700; }

.form-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-md); padding: 36px; }
.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; color: var(--navy); }
.req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line);
  background: #fff; color: var(--text); font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(43, 91, 168, .14); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.field.has-error input:focus, .field.has-error select:focus, .field.has-error textarea:focus { box-shadow: 0 0 0 4px rgba(200, 16, 46, .12); }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.field-error { font-size: 13px; color: var(--red); min-height: 0; }
.field-error:empty { display: none; }
.field-meta { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.char-count { margin-left: auto; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-alert { display: none; padding: 12px 14px; border-radius: 10px; font-size: 14px; background: rgba(200, 16, 46, .08); color: var(--red-dark); border: 1px solid rgba(200, 16, 46, .25); }
.form-alert.is-visible { display: block; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }

.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success { display: none; text-align: center; padding: 24px 8px; }
.form-card.is-success .contact-form { display: none; }
.form-card.is-success .form-success { display: block; animation: pop .45s cubic-bezier(.2, .7, .2, 1); }
.form-success:focus { outline: none; }
.success-ico { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(43, 91, 168, .1); color: var(--blue); }
.form-success h3 { font-size: 1.5rem; margin-bottom: 12px; overflow-wrap: anywhere; }
.form-success p { color: var(--muted); max-width: 44ch; margin: 0 auto; overflow-wrap: anywhere; }
.form-success b { color: var(--navy); }
.success-ref { margin-top: 14px !important; font-size: 13px; }
.success-ref code { background: var(--band); padding: 2px 8px; border-radius: 6px; color: var(--navy); font-size: 12.5px; word-break: break-all; }
.form-success .btn { margin-top: 26px; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .7); padding: 72px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { margin-top: 16px; max-width: 38ch; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; font-family: var(--font); font-weight: 600; }
.footer-col a { text-decoration: none; transition: color .2s; overflow-wrap: anywhere; }
.footer-col a:hover { color: #fff; }
.footer-col address { font-style: normal; line-height: 1.7; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.back-top { text-decoration: none; }
.back-top:hover { color: #fff; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 300;
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 10px;
  background: var(--navy); color: #fff; font-size: 14px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transform: translate(-50%, 16px);
  transition: opacity .25s, transform .25s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: var(--red-dark); }

/* Reveal animations */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .card.reveal.is-visible:hover { transform: translateY(-6px); }
.steps .reveal:nth-child(2), .cards .reveal:nth-child(2) { transition-delay: .08s; }
.steps .reveal:nth-child(3), .cards .reveal:nth-child(3) { transition-delay: .16s; }
.steps .reveal:nth-child(4), .cards .reveal:nth-child(4) { transition-delay: .24s; }
.js .reveal.is-done { transition-delay: 0s !important; }
.js .card.reveal.is-done { transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}

/* Responsive */
@media (max-width: 1080px) {
  .steps, .cards { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-card { max-width: 520px; }
  .contact-grid { gap: 40px; grid-template-columns: 1fr; }
  .contact-intro { max-width: 640px; }
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    display: none;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 20px 20px; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(11, 31, 58, .1);
  }
  .primary-nav.is-open { display: flex; }
  .nav-link { padding: 12px; font-size: 16px; }
  .nav-link.is-active::after { display: none; }
  .nav-link.is-active { background: var(--band); }
  .nav-cta { margin: 8px 0 0; padding: 13px 16px; font-size: 15px; }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-col { padding: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .container { padding: 0 18px; }
  .hero { padding: 64px 0 72px; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { gap: 10px 20px; margin-top: 32px; }
  .hc-list li { grid-template-columns: 36px 1fr; }
  .hc-ico { width: 36px; height: 36px; }
  .hc-status { grid-column: 2; justify-self: start; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .steps, .cards { grid-template-columns: 1fr; gap: 16px; }
  .why-us { padding: 32px 22px; }
  .why-us .btn { width: 100%; }
  .form-card { padding: 24px 18px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .logo-text { font-size: 17px; }
}
