:root {
  --blue-900: #0a2540;
  --blue-800: #0f3568;
  --blue-700: #1652f0;
  --blue-600: #2f6bff;
  --blue-100: #dce8ff;
  --blue-50: #eff5ff;
  --gray-900: #0f172a;
  --gray-600: #55617a;
  --gray-400: #98a2b8;
  --gray-200: #e3e8f2;
  --gray-100: #f4f7fc;
  --white: #ffffff;
  --green-ok: #17a672;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(10, 37, 64, 0.08);
}

* { box-sizing: border-box; }

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--gray-900);
background: #f8f9f9;
  line-height: 1.55;
  width: 100%;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Top disclaimer bar ---------- */
.disclaimer-bar {
  background: var(--blue-900);
  color: #cfe0ff;
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
}
.disclaimer-bar strong { color: #fff; }

/* ---------- Header ---------- */
header.site-header {
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--blue-800);
  letter-spacing: -0.02em;
}
.flag-icon {
  width: 26px;
  height: 13px;
  border-radius: 2px;
  display: inline-block;
  vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(10,37,64,.12);
  flex-shrink: 0;
}
.eyebrow .flag-icon { width: 20px; height: 10px; margin-right: 2px; }
.logo .flag-icon { margin-left: 2px; }
.kicker .flag-icon { width: 18px; height: 9px; margin-right: 6px; }
.footer-grid h4 .flag-icon { margin-left: 6px; }
.form-card h2 .flag-icon { margin-right: 8px; }
.success-shell h1 .flag-icon { margin-right: 8px; }
.hero-card-flag {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 17px;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(10,37,64,.25), 0 0 0 1px rgba(10,37,64,.08);
}
.hero-card { position: relative; }

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
}
nav.main-nav { display: flex; gap: 28px; align-items: center; }
nav.main-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-600);
}
nav.main-nav a:hover { color: var(--blue-700); }
.header-actions { display: flex; align-items: center; gap: 14px; }
select.lang-select {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--gray-600);
  background: var(--white);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 8px;
  padding: 12px 22px;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--blue-700); color: #fff; box-shadow: 0 6px 16px rgba(22,82,240,.28); }
.btn-primary:hover { background: var(--blue-800); }
.btn-outline { background: transparent; color: var(--blue-700); border: 1.5px solid var(--blue-700); }
.btn-outline:hover { background: var(--blue-50); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.menu-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at 85% -10%, var(--blue-100), transparent 55%), var(--blue-50);
  padding: 72px 0 56px;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--blue-100);
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 { font-size: 44px; line-height: 1.12; margin: 0 0 18px; letter-spacing: -0.02em; color: var(--blue-900); }
.hero p.lead { font-size: 17px; color: var(--gray-600); margin: 0 0 28px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.trust-row { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-600); font-weight: 600; }
.trust-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-ok); }

.hero-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 28px;
  border: 1px solid var(--gray-200);
}
.hero-card h3 { margin: 0 0 6px; font-size: 16px; color: var(--blue-900); }
.hero-card p.small { color: var(--gray-400); font-size: 13px; margin: 0 0 18px; }
.status-line { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--gray-200); font-size: 14px; }
.status-line:last-of-type { border-bottom: none; }
.status-ok { color: var(--green-ok); font-weight: 700; }

/* ---------- Section shell ---------- */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .kicker { color: var(--blue-700); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.section-head h2 { font-size: 32px; margin: 10px 0 12px; color: var(--blue-900); letter-spacing: -0.02em; }
.section-head p { color: var(--gray-600); font-size: 16px; }

/* ---------- Steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  background: var(--white);
}
.step-num {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--blue-700);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin-bottom: 16px;
}
.step-card h3 { margin: 0 0 8px; font-size: 17px; color: var(--blue-900); }
.step-card p { margin: 0; color: var(--gray-600); font-size: 14px; }

/* ---------- Eligibility ---------- */
.eligibility { background: var(--gray-100); border-radius: 16px; padding: 40px; }
.eligibility-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.country-search { position: relative; }
.country-search input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--gray-200);
  font-size: 15px;
}
.country-search input:focus { outline: none; border-color: var(--blue-700); }
.country-list {
  margin-top: 14px;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: var(--white);
}
.country-list .row {
  display: flex; justify-content: space-between;
  padding: 10px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--gray-100);
}
.country-list .row:last-child { border-bottom: none; }
.badge-eligible { color: var(--green-ok); font-weight: 700; font-size: 12px; }

/* ---------- Comparison table ---------- */
table.compare { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.compare th, table.compare td { padding: 16px 20px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--gray-200); }
table.compare thead th { background: var(--blue-900); color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
table.compare th:nth-child(2), table.compare td:nth-child(2),
table.compare th:nth-child(3), table.compare td:nth-child(3) { text-align: center; width: 180px; }
table.compare td:nth-child(2) { color: var(--blue-700); font-weight: 700; }
.check { color: var(--green-ok); font-weight: 800; }
.cross { color: var(--gray-400); font-weight: 800; }

.hero-price-note { font-size: 14px; color: var(--gray-600); margin: 18px 0 22px; line-height: 1.6; }
.hero-price-note strong { color: var(--blue-900); }
.hero-price-note a { color: var(--blue-700); font-weight: 600; text-decoration: underline; margin-left: 4px; }

.pricing-grid { display: flex; align-items: stretch; gap: 20px; }
.pricing-item { flex: 1; padding: 24px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.pricing-item-label { font-size: 13px; font-weight: 700; color: var(--gray-600); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.pricing-item-amount { font-size: 30px; font-weight: 800; color: var(--blue-900); margin-bottom: 10px; }
.pricing-item-approx { font-size: 16px; font-weight: 500; color: var(--gray-400); }
.pricing-item-desc { font-size: 14px; color: var(--gray-600); line-height: 1.5; }
.pricing-item-plus { align-self: center; font-size: 26px; font-weight: 700; color: var(--gray-400); }
.pricing-note { font-size: 13px; color: var(--gray-600); margin-top: 18px; line-height: 1.6; }
.pricing-note a { color: var(--blue-700); text-decoration: underline; }

@media (max-width: 640px) {
  .pricing-grid { flex-direction: column; }
  .pricing-item-plus { display: none; }
}

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-a { max-height: 0; overflow: hidden; transition: max-height .2s ease; color: var(--gray-600); font-size: 14px; }
.faq-a p { margin: 0 4px 18px; }
.faq-item.open .faq-a { max-height: 220px; }
.faq-plus { transition: transform .2s ease; color: var(--blue-700); font-size: 20px; }
.faq-item.open .faq-plus { transform: rotate(45deg); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue-800), var(--blue-700));
  color: #fff;
  border-radius: 18px;
  padding: 52px;
  text-align: center;
  margin: 0 24px;
}
.cta-band h2 { margin: 0 0 12px; font-size: 28px; }
.cta-band p { color: var(--blue-100); margin: 0 0 26px; }
.cta-band .btn-primary { background: #fff; color: var(--blue-800); }
.cta-band .btn-primary:hover { background: var(--blue-50); }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--blue-900); color: #b9c9e8; padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-size: 14px; margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-legal { font-size: 12.5px; color: #90a3c9; line-height: 1.7; max-width: 640px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 40px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #90a3c9;
}
.pay-icons { display: flex; gap: 10px; font-size: 12px; }
.pay-icons span { background: rgba(255,255,255,.08); padding: 5px 10px; border-radius: 6px; }

/* ---------- Form pages ---------- */
.form-shell { max-width: 640px; margin: 48px auto; }
.form-shell-wide { max-width: 760px; }
.progress-track { display: flex; gap: 8px; margin-bottom: 32px; }
.progress-track .seg { flex: 1; height: 6px; border-radius: 4px; background: var(--gray-200); }
.progress-track .seg.done { background: var(--blue-700); }
.form-card h2 { margin: 0 0 6px; color: var(--blue-900); font-size: 22px; }
.form-card .sub { color: var(--gray-600); font-size: 14px; margin: 0 0 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: #426671; margin-bottom: 6px; }
.field input, .field select {
  width: 100%;
  padding: 12px 14px;
  border-radius:16px;
  border: 1.5px solid #d5e1e2;
  font-size: 14px;
  box-sizing: border-box;
  height: 42px; /* задай высоту, которая тебе нужна */
}

.field input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  min-width: 0;
  line-height: 42px; /* совпадает с height, чтобы текст даты был по центру вертикально */
  padding-top: 0;
  padding-bottom: 0;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--blue-700); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; justify-content: space-between; margin-top: 26px; gap: 12px; }
.review-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--gray-100); font-size: 14px; }
.review-row span:first-child { color: var(--gray-600); }
.review-row span:last-child { font-weight: 700; }
.price-box { background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 10px; padding: 18px; display: flex; justify-content: space-between; align-items: center; margin: 22px 0; }
.price-box .amount { font-size: 26px; font-weight: 800; color: var(--blue-800); }
.mock-note { background: #fff7e6; border: 1px solid #ffe1a8; color: #8a5a00; font-size: 12.5px; padding: 10px 14px; border-radius: 8px; margin-bottom: 20px; }
.error-msg { color: #d92d20; font-size: 12.5px; margin-top: 4px; display: none; }
.field.invalid input, .field.invalid select { border-color: #d92d20; }
.field.invalid .error-msg { display: block; }

.form-step { scroll-margin-top: 90px; }

/* ---------- Quiz-style application flow ---------- */
.quiz-shell { max-width: 480px; margin: 0 auto; }
.quiz-progress-wrap { max-width: 480px; margin: 0 auto 6px; }
.quiz-progress-label {
  display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700;
  color: var(--gray-400); margin-bottom: 8px; letter-spacing: .02em;
}
.quiz-progress-label span:last-child { color: var(--blue-700); }
.quiz-progress-bar { height: 6px; border-radius: 4px; background: var(--gray-200); overflow: hidden; }
.quiz-progress-fill { height: 100%; background: var(--blue-700); border-radius: 4px; transition: width .25s ease; }

.quiz-back {
  display: flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 0;
  color: var(--gray-600); font-size: 13.5px; font-weight: 700;
  max-width: 480px; margin: 0 auto 16px;
}
.quiz-back:hover { color: var(--blue-700); }
.quiz-back svg { width: 14px; height: 14px; }
.quiz-back.hidden { visibility: hidden; }

.choice-group.invalid-group .choice-row { border-color: #d92d20; }
.choice-group.invalid-group + .error-msg,
.field.invalid .error-msg { display: block; }

.quiz-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 32px;
}
.quiz-traveller-tag {
  display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .05em; color: var(--blue-700); background: var(--blue-50);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}
.quiz-card h2 { margin: 0 0 6px; color: var(--blue-900); font-size: 23px; letter-spacing: -0.01em; }
.quiz-card .quiz-sub { color: var(--gray-600); font-size: 14.5px; margin: 0 0 24px; }

.autofill-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 1.5px dashed var(--blue-100); background: var(--blue-50); color: var(--blue-700);
  font-weight: 700; font-size: 14px; border-radius: 14px; padding: 14px; cursor: pointer;
  margin-bottom: 20px;
}
.autofill-btn:hover { background: var(--blue-100); }
.autofill-btn:disabled { opacity: .75; cursor: default; }
.quiz-divider { display: flex; align-items: center; gap: 12px; color: var(--gray-400); font-size: 12.5px; font-weight: 600; margin: 4px 0 22px; }
.quiz-divider::before, .quiz-divider::after { content: ""; flex: 1; height: 1px; background: var(--gray-200); }

.scan-hint {
  font-size: 12.5px; color: var(--gray-400); text-align: center; margin: 8px 0 18px;
}

.scan-note {
  background: #fff7e6; border: 1px solid #ffe1a8; color: #8a5a00;
  font-size: 12.5px; padding: 10px 14px; border-radius: 8px; margin: -8px 0 20px;
}

.spinner {
  width: 15px; height: 15px; border: 2px solid rgba(22,82,240,.25); border-top-color: var(--blue-700);
  border-radius: 50%; display: inline-block; vertical-align: middle; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.quiz-card .field:last-of-type { margin-bottom: 0; }
.quiz-card .field input, .quiz-card .field select {
  border-radius: 14px; height: 50px; font-size: 15px; padding: 12px 16px;
}

.dob-row { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 10px; }

.choice-group { display: flex; flex-direction: column; gap: 10px; }
.choice-group .choice-row {
  position: relative; display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--gray-200); border-radius: 14px; padding: 14px 16px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.choice-group .choice-row:hover { border-color: var(--blue-600); }
.choice-group .choice-row input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice-dot {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--gray-400);
  position: relative;
}
.choice-group .choice-row input:checked ~ .choice-dot { border-color: var(--blue-700); }
.choice-group .choice-row input:checked ~ .choice-dot::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px;
  background: var(--blue-700); border-radius: 50%; transform: translate(-50%, -50%);
}
.choice-group .choice-row:has(input:checked) { border-color: var(--blue-700); background: var(--blue-50); }
.choice-label { font-size: 15px; font-weight: 600; color: var(--gray-900); }

.quiz-continue {
  width: 100%; margin-top: 26px; padding: 15px; border-radius: 14px; font-size: 16px;
}

/* ---------- Traveller blocks ---------- */
.traveller-card {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 26px;
  margin-bottom: 22px;
  background: #fbfcff;
  position: relative;
}
.traveller-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.traveller-card-head h3 { margin: 0; color: var(--blue-900); font-size: 16px; }
.traveller-remove {
  background: none;
  border: none;
  color: #d92d20;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  padding: 4px 8px;
}
.traveller-remove:hover { text-decoration: underline; }
.subsection-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--blue-700);
  margin: 22px 0 12px;
  padding-top: 14px;
  border-top: 1px dashed var(--gray-200);
}
.traveller-card .subsection-title:first-of-type { border-top: none; padding-top: 0; margin-top: 14px; }
.phone-row { display: grid; grid-template-columns: 120px 1fr; gap: 10px; }
.field[hidden] { display: none; }
.review-traveller { border: 1px solid var(--gray-200); border-radius: 10px; padding: 18px 20px; margin-bottom: 16px; }
.review-traveller h4 { margin: 0 0 10px; color: var(--blue-900); font-size: 14px; }

/* ---------- Success page ---------- */
.success-shell { max-width: 560px; margin: 90px auto; text-align: center; }
.success-icon {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--green-ok); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; margin: 0 auto 22px;
}
.ref-box { background: var(--gray-100); border-radius: 10px; padding: 16px; font-family: monospace; font-size: 15px; margin: 20px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  nav.main-nav { display: none; }
  .menu-toggle { display: block; }
  .hero-inner { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .eligibility-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
}

@media (max-width: 991.98px) {
  header, .header {
    position: relative; /* нужно, чтобы .main-nav позиционировался относительно шапки */
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%; /* сразу под шапкой */
    left: 0;
    width: 100%;
    background: #fff; /* подставь свой цвет фона */
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .main-nav.open-mobile {
    display: flex;
  }

  .main-nav a {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
  }
  .traveller-card {
    border: none;
    padding: 0;
    background: transparent;
}
}