/* ============================================================================
   Вануату Капитал (passportvanuatu.ru) — style.css
   Строгий деловой стиль: тёмно-зелёный, слоновая кость, латунь.
   Классы модалки, форм и квиза — по контракту sites/_shared/app.js.
   ============================================================================ */

:root {
  --green: #0E3B2E;
  --green-900: #082519;
  --green-700: #155240;
  --ivory: #F7F5EF;
  --paper: #FFFFFF;
  --brass: #B08D57;
  --brass-light: #D4B98A;
  --graphite: #1F2328;
  --muted: #5B6168;
  --line: #E3DED2;
  --wa: #25D366;
  --radius: 6px;
  --font-serif: 'PT Serif', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 1.6; color: var(--graphite); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
::selection { background: var(--brass); color: #fff; }
[hidden] { display: none !important; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 880px; }
.serif { font-family: var(--font-serif); font-weight: 700; letter-spacing: -.005em; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.kicker--light { color: var(--brass-light); }
.center { text-align: center; margin-top: 36px; }
.fineprint { margin-top: 20px; font-size: 14px; color: var(--muted); max-width: 860px; }
.break { word-break: break-all; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--radius); padding: 12px 20px; font-weight: 600; font-size: 15px; line-height: 1.2; text-align: center; transition: background .2s, color .2s, border-color .2s; }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--brass { background: var(--brass); color: #fff; }
.btn--brass:hover { background: #9A7a47; }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-700); }
.btn--line-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--line-light:hover { background: #fff; color: var(--green); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #1ebe5b; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.ico { width: 18px; height: 18px; }

/* ---------- Top bar & nav ---------- */
.topbar { background: var(--green-900); color: rgba(255,255,255,.7); font-size: 13px; }
.topbar__in { display: flex; justify-content: space-between; padding-top: 7px; padding-bottom: 7px; }
.topbar__links { display: flex; gap: 22px; }
.topbar a:hover { color: var(--brass-light); }

.nav { position: sticky; top: 0; z-index: 40; background: var(--green); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); transition: box-shadow .2s; }
.nav.is-scrolled { box-shadow: 0 6px 20px -8px rgba(0,0,0,.45); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; flex-shrink: 0; }
.logo__text { display: flex; flex-direction: column; }
.logo__name { font-family: var(--font-serif); font-weight: 700; font-size: 19px; line-height: 1.1; }
.logo__sub { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-light); margin-top: 3px; }
.nav__links { display: flex; gap: 22px; font-size: 14px; }
.nav__links a { white-space: nowrap; color: rgba(255,255,255,.82); padding: 4px 0; border-bottom: 1px solid transparent; transition: .2s; }
.nav__links a:hover { color: #fff; border-bottom-color: var(--brass); }
.nav__actions { display: flex; gap: 8px; flex-shrink: 0; }
.nav__short { display: none; }
.nav__burger { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; }
.nav__burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .25s, opacity .2s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { border-top: 1px solid rgba(255,255,255,.1); padding: 8px 0 18px; }
.mobile-menu a:not(.btn) { display: block; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.07); color: rgba(255,255,255,.9); }
.mobile-menu__msg { display: flex; gap: 10px; margin-top: 16px; }
.mobile-menu__msg .btn { flex: 1; }

/* ---------- Hero ---------- */
.hero { background: var(--green); color: #fff; border-bottom: 3px solid var(--brass); }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.1; margin-bottom: 20px; }
.hero__lead { color: rgba(255,255,255,.78); font-size: 17px; max-width: 560px; margin-bottom: 30px; }
.terms { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.18); border-left: 1px solid rgba(255,255,255,.18); margin-bottom: 30px; }
.terms > div { padding: 14px 16px; border-right: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); display: flex; flex-direction: column; justify-content: space-between; gap: 4px; }
.terms dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.terms dd { font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--brass-light); line-height: 1.2; white-space: nowrap; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.hero__note { font-size: 13px; color: rgba(255,255,255,.55); }
.hero__media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.hero__media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.hero__media figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 20px; background: linear-gradient(transparent, rgba(8,37,25,.92)); font-size: 14px; color: rgba(255,255,255,.85); }
.hero__media-tag { display: block; font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 2px; }

/* ---------- Basis ---------- */
.basis { background: var(--ivory); border-bottom: 1px solid var(--line); }
.basis__in { display: grid; grid-template-columns: repeat(5, 1fr); }
.basis__in > div { padding: 20px 16px; border-right: 1px solid var(--line); display: grid; gap: 2px; }
.basis__in > div:last-child { border-right: 0; }
.basis b { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }
.basis span { font-size: 14px; color: var(--graphite); font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--ivory { background: var(--ivory); }
.section--green { background: var(--green); color: #fff; }
.head { max-width: 760px; margin-bottom: 48px; }
.head h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; color: var(--green); margin-bottom: 14px; }
.head p:not(.kicker) { color: var(--muted); font-size: 17px; }
.head--split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.head--split h2 { margin-bottom: 0; }

/* ---------- Tasks ---------- */
.tasks { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.task { padding: 32px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s; }
.task:hover { background: var(--ivory); }
.task__num { display: block; font-family: var(--font-serif); font-size: 30px; font-weight: 700; color: var(--brass); line-height: 1; margin-bottom: 18px; }
.task h3 { font-size: 18px; color: var(--green); margin-bottom: 10px; }
.task p { font-size: 15px; color: var(--muted); }

/* ---------- Term sheet ---------- */
.sheet { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--radius); }
.sheet__col { padding: 36px; }
.sheet__col + .sheet__col { border-left: 1px solid var(--line); }
.sheet__title { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); margin-bottom: 18px; }
.sheet__table { width: 100%; border-collapse: collapse; }
.sheet__table td { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.sheet__table td:last-child { text-align: right; font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--green); white-space: nowrap; padding-left: 16px; }
.sheet__note { margin-top: 18px; font-size: 13px; color: var(--muted); }
.sheet__list > div { display: grid; grid-template-columns: 44% 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.sheet__list > div:last-child { border-bottom: 0; }
.sheet__list dt { color: var(--muted); }
.sheet__list dd { font-weight: 600; color: var(--graphite); }

/* ---------- Payments chart ---------- */
.chart__bar { display: flex; height: 64px; border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }
.chart__seg { flex: 0 0 var(--w); display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: #fff; min-width: 64px; }
.chart__seg--1 { background: var(--brass-light); color: var(--green); }
.chart__seg--2 { background: var(--brass); }
.chart__seg--3 { background: var(--green); }
.chart__legend { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.chart__item { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.chart__item--accent { border-color: var(--green); box-shadow: inset 0 3px 0 var(--green); }
.chart__when { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); margin-bottom: 8px; }
.chart__item h3 { font-family: var(--font-serif); font-size: 20px; color: var(--green); margin-bottom: 8px; }
.chart__item p:last-child { font-size: 15px; color: var(--muted); }

/* ---------- Taxes ---------- */
.taxes { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.taxes h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; margin-bottom: 28px; }
.taxes__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 24px; }
.taxes__cols h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-light); margin-bottom: 14px; }
.taxes__note { font-size: 14px; color: rgba(255,255,255,.6); border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; }
.taxes__media { border-radius: var(--radius); overflow: hidden; }
.taxes__media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; color: rgba(255,255,255,.85); }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--brass); }
.ticks--dark { color: var(--graphite); }

/* ---------- Mobility ---------- */
.regions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 48px; }
.region { padding-top: 18px; border-top: 2px solid var(--green); }
.region h3 { font-family: var(--font-serif); font-size: 20px; color: var(--green); margin-bottom: 8px; }
.region p { font-size: 15px; color: var(--muted); }
.limits { background: var(--ivory); border-left: 4px solid var(--brass); border-radius: var(--radius); padding: 32px; }
.limits h3 { font-size: 24px; line-height: 1.25; color: var(--green); margin-bottom: 20px; }
.limits__link { display: inline-block; margin-top: 24px; font-weight: 600; color: var(--green); border-bottom: 1px solid var(--brass); padding-bottom: 2px; }
.limits__link:hover { color: var(--brass); }
.limits__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
.limits__grid > div { display: grid; gap: 4px; font-size: 15px; }
.limits__grid b { color: var(--green); }
.limits__grid span { color: var(--muted); }

/* ---------- Compare ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 15px; }
.compare th { background: var(--green); color: #fff; font-weight: 600; padding: 16px; text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare td { padding: 15px 16px; text-align: center; border-bottom: 1px solid var(--line); color: var(--muted); }
.compare td:not(:first-child) { white-space: nowrap; }
.compare tr:last-child td { border-bottom: 0; }
.compare td:first-child { color: var(--graphite); font-weight: 500; }
.compare th.hl { background: var(--brass); }
.compare td.hl { background: rgba(176,141,87,.1); color: var(--green); font-weight: 700; }
.table-hint { display: none; }

/* ---------- Timeline ---------- */
.weeks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.weeks li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.weeks__w { font-family: var(--font-serif); font-weight: 700; font-size: 17px; color: var(--brass); }
.weeks h3 { font-size: 17px; color: var(--green); margin-bottom: 4px; }
.weeks p { font-size: 15px; color: var(--muted); }
.weeks__accent h3 { color: var(--brass); }

/* ---------- Funds ---------- */
.funds { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.funds h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; color: var(--green); margin-bottom: 18px; }
.funds__main > p { color: var(--muted); margin-bottom: 28px; }
.funds__main h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); margin-bottom: 12px; }
.funds__list { list-style: none; padding: 0; margin: 0; }
.funds__list li { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.funds__list b { color: var(--graphite); }
.funds__aside { display: grid; gap: 20px; }
.funds__aside img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.funds__box { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--brass); border-radius: var(--radius); padding: 26px; }
.funds__box h3 { font-family: var(--font-serif); font-size: 20px; color: var(--green); margin-bottom: 14px; }
.funds__box .btn { margin-top: 22px; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; }
.review blockquote { margin: 0 0 22px; font-family: var(--font-serif); font-size: 17px; line-height: 1.55; color: var(--graphite); flex: 1; }
.review figcaption { padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.review figcaption b { display: block; font-size: 15px; color: var(--green); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-family: var(--font-serif); font-size: 19px; font-weight: 700; color: var(--green); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; width: 30px; height: 30px; border: 1px solid var(--brass); border-radius: 4px; display: grid; place-items: center; font-family: var(--font-sans); font-weight: 400; color: var(--brass); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 22px; color: var(--muted); font-size: 15px; max-width: 760px; }

/* ---------- CTA + forms ---------- */
.cta { position: relative; overflow: hidden; background: var(--green-900); color: #fff; padding: 96px 0; }
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.cta__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cta h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; margin-bottom: 16px; }
.cta__copy > p:not(.kicker) { color: rgba(255,255,255,.8); margin-bottom: 26px; }
.cta__contacts { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; color: rgba(255,255,255,.7); }
.cta__contacts a { color: #fff; font-size: 17px; font-weight: 600; }
.form-card { background: var(--paper); color: var(--graphite); border-radius: var(--radius); border-top: 4px solid var(--brass); padding: 32px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.form-card h3 { font-size: 24px; color: var(--green); margin-bottom: 20px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.field { display: block; }
.field--full { margin-bottom: 14px; }
.field > span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--green); margin-bottom: 6px; }
.field input, .field select { width: 100%; height: 48px; padding: 0 12px; border: 1px solid #CFC9BA; border-radius: 4px; background: #fff; font: inherit; font-size: 16px; color: var(--graphite); transition: border-color .2s, box-shadow .2s; }
.field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 8 4 4 4-4' fill='none' stroke='%235B6168' stroke-width='1.5'/%3E%3C/svg%3E") right 10px center / 20px no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus { outline: 0; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(176,141,87,.22); }
.field input.is-invalid { border-color: #C2410C; box-shadow: 0 0 0 3px rgba(194,65,12,.15); }
.chips { display: flex; gap: 8px; margin-bottom: 14px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 10px 18px; border: 1px solid #CFC9BA; border-radius: 4px; font-size: 14px; font-weight: 600; color: var(--green); transition: .2s; }
.chip input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: var(--muted); margin-bottom: 18px; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--green); }
.consent a { text-decoration: underline; }
.consent.is-invalid { color: #C2410C; }
.form-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; }

/* ---------- Footer ---------- */
.footer { background: var(--green-900); color: rgba(255,255,255,.72); padding: 64px 0 28px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 36px; }
.logo--footer { margin-bottom: 16px; }
.footer__about { color: rgba(255,255,255,.58); max-width: 400px; }
.footer h4 { color: #fff; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer a:hover { color: var(--brass-light); }
/* линия по ширине контента, а не контейнера с полями */
.footer__bottom { background: linear-gradient(rgba(255,255,255,.1), rgba(255,255,255,.1)) top center / calc(100% - 48px) 1px no-repeat; padding-top: 22px; display: grid; gap: 12px; font-size: 12px; color: rgba(255,255,255,.5); }
.footer__bottom a { text-decoration: underline; }
.footer__credits { font-size: 11px; }
.footer__disc { font-size: 11px; line-height: 1.6; color: rgba(255,255,255,.4); }

/* ---------- Floating / sticky ---------- */
.float-wa { position: fixed; right: 24px; bottom: 24px; z-index: 45; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px -8px rgba(0,0,0,.45); transition: transform .2s; }
.float-wa:hover { transform: scale(1.07); }
.float-wa svg { width: 28px; height: 28px; }
.mobile-bar { display: none; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(8,37,25,.82); backdrop-filter: blur(3px); }
/* margin:auto вместо align-items:center — иначе высокая форма на телефоне уходит верхом за экран */
.modal__wrap { position: relative; height: 100%; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: flex; padding: 32px 16px; }
.modal__card { position: relative; margin: auto; width: 100%; max-width: 500px; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0,0,0,.5); animation: fadeUp .3s ease both; }
.modal__head { position: relative; background: var(--green); color: #fff; padding: 26px 72px 24px 26px; border-bottom: 3px solid var(--brass); }
.modal__head h2 { font-size: 24px; margin-bottom: 6px; }
.modal__head p { font-size: 14px; color: rgba(255,255,255,.72); }
.modal__close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 6px; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; transition: background .2s; }
.modal__close:hover { background: rgba(255,255,255,.22); }
.modal__close svg { width: 22px; height: 22px; }
.modal__body { padding: 26px; }
.modal__later { display: block; margin: 12px auto 0; background: none; border: 0; padding: 6px 12px; color: var(--muted); font-size: 14px; text-decoration: underline; }
.modal__later:hover { color: var(--green); }
body.no-scroll { overflow: hidden; }

/* ---------- Cookie ---------- */
.cookie { position: fixed; left: 24px; bottom: 24px; z-index: 55; max-width: 420px; background: var(--graphite); color: rgba(255,255,255,.82); border-radius: var(--radius); padding: 16px 18px; display: flex; gap: 14px; align-items: center; font-size: 13px; line-height: 1.45; box-shadow: 0 20px 40px -12px rgba(0,0,0,.5); }
.cookie a { color: var(--brass-light); text-decoration: underline; }

/* ---------- Thank-you / legal ---------- */
.thanks { min-height: 100vh; display: flex; align-items: center; background: var(--green); color: #fff; }
.thanks__in { text-align: center; max-width: 700px; padding-top: 64px; padding-bottom: 64px; }
.thanks__ok { width: 72px; height: 72px; margin: 0 auto 26px; border-radius: 8px; background: var(--brass); color: #fff; display: grid; place-items: center; }
.thanks__ok svg { width: 36px; height: 36px; }
.thanks h1 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.15; margin-bottom: 18px; }
.thanks__txt { color: rgba(255,255,255,.78); font-size: 17px; margin-bottom: 30px; }
.thanks__btns { display: flex; justify-content: center; gap: 12px; margin-bottom: 26px; }
.thanks__back { color: rgba(255,255,255,.6); font-size: 14px; }
.thanks__back:hover { color: var(--brass-light); }
.legal { padding: 56px 0 96px; }
.legal h1 { font-size: clamp(26px, 3.6vw, 38px); color: var(--green); margin-bottom: 20px; line-height: 1.2; }
.legal h2 { font-family: var(--font-serif); font-size: 21px; color: var(--green); margin: 32px 0 10px; }
.legal p, .legal li { color: #333A40; margin-bottom: 10px; }
.legal ul { padding-left: 20px; }
.legal a { text-decoration: underline; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ============================================================================
   Responsive
   ============================================================================ */
@media (max-width: 1240px) {
  /* шире колонка с текстом — обе кнопки первого экрана помещаются в одну строку */
  .hero__grid { grid-template-columns: 1.25fr .75fr; gap: 40px; }
  .nav__links { gap: 14px; font-size: 13.5px; }
  .logo__sub { display: none; }
  .nav__full { display: none; }
  .nav__short { display: inline; }
  .nav__actions .btn--wa { padding-left: 11px; padding-right: 11px; }
  .nav__actions .btn--wa .ico { width: 20px; height: 20px; }
}

@media (max-width: 1023px) {
  .topbar, .nav__links, .nav__actions { display: none; }
  .nav__burger { display: block; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; padding-top: 44px; padding-bottom: 56px; }
  .hero__media img { aspect-ratio: 16 / 10; }
  .basis__in { grid-template-columns: repeat(3, 1fr); }
  .basis__in > div { border-bottom: 1px solid var(--line); }
  .tasks { grid-template-columns: 1fr 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .head--split { grid-template-columns: 1fr; gap: 16px; }
  .sheet { grid-template-columns: 1fr; }
  .sheet__col + .sheet__col { border-left: 0; border-top: 1px solid var(--line); }
  .chart__legend { grid-template-columns: 1fr; }
  .taxes { grid-template-columns: 1fr; gap: 36px; }
  .taxes__media img { aspect-ratio: 16 / 9; }
  .regions { grid-template-columns: 1fr 1fr; }
  .weeks { grid-template-columns: 1fr; }
  .funds { grid-template-columns: 1fr; gap: 36px; }
  .cta__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  body { padding-bottom: 72px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .section, .cta { padding: 64px 0; }
  .head { margin-bottom: 32px; }
  .logo__name { font-size: 17px; }
  .hero__lead { font-size: 16px; margin-bottom: 22px; }
  /* на телефоне кнопки — сразу после оффера, условия ниже */
  .hero__copy { display: flex; flex-direction: column; }
  .hero__copy .terms { order: 2; margin: 22px 0 0; }
  .hero__note { order: 1; }
  .terms { grid-template-columns: 1fr 1fr; }
  .terms dd { font-size: 19px; }
  .hero__cta .btn { width: 100%; }
  .basis__in { grid-template-columns: 1fr 1fr; }
  .basis__in > div:nth-child(2n) { border-right: 0; }
  .basis__in > div:last-child { grid-column: 1 / -1; }
  .tasks, .reviews, .regions, .limits__grid, .taxes__cols { grid-template-columns: 1fr; }
  .task { padding: 24px 20px; }
  .sheet__col { padding: 24px 20px; }
  .sheet__list > div { grid-template-columns: 1fr; gap: 2px; }
  .chart__bar { height: 52px; }
  .chart__seg { font-size: 17px; min-width: 52px; }
  .limits { padding: 24px 20px; }
  .weeks li { grid-template-columns: 1fr; gap: 4px; }
  .funds__list li { grid-template-columns: 1fr; gap: 2px; }
  /* таблица сравнения листается вбок — первая колонка остаётся на месте */
  .compare { min-width: 600px; font-size: 14px; }
  .compare th, .compare td { padding: 13px 12px; }
  .compare th:first-child, .compare td:first-child { position: sticky; left: 0; z-index: 1; min-width: 132px; box-shadow: 1px 0 0 var(--line); }
  .compare td:first-child { background: var(--paper); }
  .table-hint { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }
  .fields { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
  .consent { font-size: 13px; }
  .form-note { font-size: 13px; }
  .center .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { background-size: calc(100% - 32px) 1px; }
  .footer__credits, .footer__disc { font-size: 12px; }
  .float-wa { display: none; }
  .mobile-bar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); box-shadow: 0 -8px 24px -12px rgba(0,0,0,.3); }
  .mobile-bar__btn { flex: 1; border: 0; border-radius: var(--radius); padding: 13px 6px; font-weight: 600; font-size: 14px; text-align: center; color: #fff; }
  .mobile-bar__btn--call { flex: 0 0 48px; display: grid; place-items: center; background: var(--green); padding: 0; }
  .mobile-bar__btn--call svg { width: 20px; height: 20px; }
  .mobile-bar__btn--wa { background: var(--wa); }
  .mobile-bar__btn--brass { background: var(--brass); }
  .cookie { left: 12px; right: 12px; bottom: 80px; max-width: none; padding: 12px 14px; gap: 12px; font-size: 12px; }
  .modal__wrap { padding: 12px 10px calc(12px + env(safe-area-inset-bottom)); }
  .modal__head { padding: 18px 64px 16px 20px; }
  .modal__head h2 { font-size: 21px; margin-bottom: 4px; }
  .modal__head p { font-size: 13px; }
  .modal__close { top: 10px; right: 10px; }
  .modal__body { padding: 18px 20px 16px; }
  .modal__body .fields { gap: 12px; margin-bottom: 12px; }
  .modal__body .fields--pair { grid-template-columns: 1fr 1fr; }
  .modal__body .field input, .modal__body .field select { height: 46px; }
  .modal__body .chips { margin-bottom: 12px; }
  .modal__body .consent { margin-bottom: 14px; }
  .modal__body .form-note { display: none; }
  .thanks__btns { flex-direction: column; }
}

/* ============================================================================
   Внутренние страницы (генератор sites/build-pages.ps1)
   ============================================================================ */
.nav__links a[aria-current="page"] { color: #fff; border-bottom-color: var(--brass); }
.mobile-menu a[aria-current="page"] { color: var(--brass-light); }

/* Хлебные крошки — на зелёном фоне, продолжают шапку страницы */
.crumbs-wrap { background: var(--green); }
.crumbs-wrap:empty { display: none; }
.crumbs { max-width: 1200px; margin: 0 auto; padding: 18px 24px 0; font-size: 13px; color: rgba(255,255,255,.6); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.crumbs a { color: rgba(255,255,255,.8); border-bottom: 1px solid rgba(255,255,255,.25); }
.crumbs a:hover { color: #fff; border-bottom-color: var(--brass); }
.crumbs__sep { color: var(--brass); }

.page-hero { background: var(--green); color: #fff; border-bottom: 3px solid var(--brass); padding: 28px 0 56px; }
.page-hero h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.12; max-width: 860px; margin-bottom: 18px; }
.page-hero__lead { color: rgba(255,255,255,.8); font-size: 18px; max-width: 760px; margin-bottom: 26px; }
.page-hero__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-bottom: 28px; font-size: 14px; color: rgba(255,255,255,.7); }
.page-hero__facts b { display: block; font-family: var(--font-serif); font-size: 22px; color: var(--brass-light); line-height: 1.2; white-space: nowrap; }
.page-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; padding-top: 64px; padding-bottom: 96px; }
.article__aside { position: sticky; top: 92px; display: grid; gap: 20px; }
.aside-box { border: 1px solid var(--line); border-top: 4px solid var(--brass); border-radius: var(--radius); padding: 24px; background: var(--paper); }
.aside-box h3 { font-family: var(--font-serif); font-size: 20px; color: var(--green); margin-bottom: 8px; line-height: 1.25; }
.aside-box p { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.aside-box .btn + .btn { margin-top: 10px; }
.aside-links { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; background: var(--ivory); }
.aside-links h3 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); margin-bottom: 10px; }
.aside-links ul { list-style: none; padding: 0; margin: 0; }
.aside-links li { border-bottom: 1px solid var(--line); }
.aside-links li:last-child { border-bottom: 0; }
.aside-links a { display: block; padding: 10px 0; font-size: 15px; font-weight: 500; color: var(--green); }
.aside-links a:hover { color: var(--brass); }

/* Текст статьи */
.prose { font-size: 17px; line-height: 1.7; color: var(--graphite); }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; color: var(--green); margin-top: 48px; padding-top: 8px; }
.prose h3 { font-size: 19px; line-height: 1.3; color: var(--green); margin-top: 32px; }
.prose h2:first-child { margin-top: 0; padding-top: 0; }
.prose p, .prose li { color: #353B41; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 0; }
.prose li + li { margin-top: 8px; }
.prose ul li::marker { color: var(--brass); }
.prose ol li::marker { color: var(--brass); font-weight: 700; }
.prose a:not(.btn) { color: var(--green); border-bottom: 1px solid var(--brass); }
.prose a:not(.btn):hover { color: var(--brass); }
.prose strong { color: var(--green); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th { background: var(--green); color: #fff; font-weight: 600; text-align: left; padding: 12px 14px; }
.prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:nth-child(even) td { background: var(--ivory); }
.prose .num { white-space: nowrap; font-family: var(--font-serif); font-weight: 700; color: var(--green); }
.prose-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.prose-table--wide table { min-width: 560px; }

.callout { background: var(--ivory); border-left: 4px solid var(--brass); border-radius: var(--radius); padding: 22px 26px; font-size: 16px; }
.callout b:first-child { display: block; font-family: var(--font-serif); font-size: 18px; color: var(--green); margin-bottom: 6px; }
.callout p { color: var(--muted); }
.callout--warn { border-left-color: #C2410C; }

.cta-inline { background: var(--green); color: #fff; border-radius: var(--radius); padding: 28px 30px; display: grid; grid-template-columns: 1fr auto; gap: 20px 28px; align-items: center; margin-top: 36px; }
.cta-inline h3 { font-family: var(--font-serif); font-size: 22px; line-height: 1.25; color: #fff; margin: 0 0 6px; }
.cta-inline p { color: rgba(255,255,255,.75); font-size: 15px; margin: 0; }
.cta-inline__btns { display: flex; flex-direction: column; gap: 10px; }

.page-faq { margin-top: 56px; }
.page-faq h2 { margin-bottom: 18px; }

/* Карточки «по теме» */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.related__item { display: grid; gap: 6px; padding: 24px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s; }
.related__item:hover { background: var(--ivory); }
.related__item b { font-family: var(--font-serif); font-size: 19px; color: var(--green); }
.related__item b::after { content: " →"; color: var(--brass); }
.related__item span { font-size: 14px; color: var(--muted); }

.footer__grid--wide { grid-template-columns: 1.6fr 1fr 1fr 1fr; }

/* Ссылки на подробные страницы с главной */
.center__link { margin-top: 16px; font-size: 15px; }
.center__link a, .funds__more { font-weight: 600; color: var(--green); border-bottom: 1px solid var(--brass); padding-bottom: 1px; }
.center__link a:hover, .funds__more:hover { color: var(--brass); }
.funds__more { display: inline-block; margin-top: 14px; font-size: 14px; }
.taxes__link { display: inline-block; margin-top: 6px; color: var(--brass-light); font-weight: 600; border-bottom: 1px solid rgba(212,185,138,.5); }
.taxes__link:hover { color: #fff; }

/* Отзыв внутри статьи */
.quote { margin: 36px 0 0; padding: 26px 28px; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius); background: var(--paper); }
.quote blockquote { margin: 0 0 14px; font-family: var(--font-serif); font-size: 18px; line-height: 1.55; color: var(--graphite); }
.quote figcaption { font-size: 13px; color: var(--muted); }
.quote figcaption b { color: var(--green); font-size: 15px; margin-right: 6px; }

/* Сравнение / факты в статье */
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.facts-grid > div { padding: 18px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-grid b { display: block; font-family: var(--font-serif); font-size: 24px; color: var(--green); line-height: 1.2; white-space: nowrap; }
.facts-grid span { font-size: 14px; color: var(--muted); }
@media (max-width: 767px) {
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .facts-grid > div { padding: 14px 12px; }
  .facts-grid b { font-size: 19px; white-space: normal; }
  .prose th, .prose td { padding: 10px 10px; }
  .quote { padding: 20px; }
  .quote blockquote { font-size: 17px; }
}

@media (max-width: 1023px) {
  /* minmax(0, 1fr): иначе широкая таблица растягивает колонку за край экрана */
  .article { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 48px; padding-bottom: 64px; }
  .article__aside { position: static; }
  .related { grid-template-columns: 1fr 1fr; }
  .footer__grid--wide { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .crumbs { padding: 14px 16px 0; }
  .page-hero { padding: 20px 0 44px; }
  .page-hero__lead { font-size: 16px; }
  .page-hero__facts b { font-size: 19px; }
  .page-hero__cta .btn { width: 100%; }
  .article { padding-top: 36px; padding-bottom: 48px; }
  .prose { font-size: 16px; }
  .prose h2 { margin-top: 36px; }
  .callout { padding: 18px 18px; }
  .cta-inline { grid-template-columns: 1fr; padding: 24px 20px; }
  .cta-inline .btn { width: 100%; }
  .related { grid-template-columns: 1fr; }
  .related__item { padding: 20px; }
  .footer__grid--wide { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
