/* BotAuto — компоненты (банковско-корпоративная система). После tokens.css. */

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }
.eyebrow { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.section-head { max-width: 760px; margin: 0 0 clamp(24px,3.5vw,40px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 17.5px; margin-top: 10px; }
h1 { font-size: clamp(30px, 4.4vw, 46px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: clamp(18px, 2.2vw, 22px); }
.lead { font-size: clamp(16.5px, 1.8vw, 19px); color: var(--muted); }
.num { font-family: var(--font-num); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--blue); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 24px; border-radius: var(--r); border: 1.5px solid transparent; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: 15.5px; line-height: 1;
  background: var(--bg); color: var(--fg); text-decoration: none;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease), border-color .16s;
}
.btn:hover { background: var(--blue-600); color: #fff; box-shadow: var(--sh-blue); }
.btn:active { transform: translateY(1px); }
.btn--accent { --bg: var(--accent); color: #241a05; }
.btn--accent:hover { background: var(--accent-600); color: #241a05; box-shadow: 0 12px 28px rgba(227,161,48,.35); }
.btn--ghost { --bg: #fff; --fg: var(--blue); border-color: var(--blue-tint-2); box-shadow: none; }
.btn--ghost:hover { background: var(--blue-tint); color: var(--blue-600); border-color: var(--blue); box-shadow: none; }
.btn--on-navy { --bg: transparent; --fg: #fff; border-color: rgba(255,255,255,.4); }
.btn--on-navy:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; box-shadow: none; }
.btn--lg { padding: 15px 30px; font-size: 16.5px; }
.btn--block { display: flex; width: 100%; }

/* ---------- Utility bar ---------- */
.util { background: var(--navy-2); color: #AFC3DD; font-size: 13px; }
.util-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; padding-block: 6px; flex-wrap: wrap; }
.util a { color: #DCE8F5; font-weight: 600; }
.util a:hover { color: #fff; }
.util .u-right { display: flex; gap: 18px; align-items: center; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 21px; color: var(--navy); letter-spacing: -.01em; }
.brand:hover { color: var(--navy); }
.brand-mark { width: 34px; height: 34px; border-radius: 7px; display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 18px; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.nav a { padding: 10px 14px; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 600; font-size: 15px; }
.nav a:hover { background: var(--blue-tint); color: var(--blue); }
.header-cta { margin-left: auto; display: inline-flex; gap: 10px; align-items: center; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: var(--r-sm); cursor: pointer; margin-left: auto; }
.burger span, .burger span::before, .burger span::after { content:""; display:block; position:relative; width:20px; height:2px; background: var(--navy); margin-inline:auto; border-radius:2px; transition:.2s var(--ease); }
.burger span::before { position:absolute; top:-6px; } .burger span::after { position:absolute; top:6px; }
.mobile-nav { display: none; flex-direction: column; gap: 2px; padding: 10px 22px 22px; border-bottom: 1px solid var(--line); background: #fff; max-height: calc(100vh - 104px); overflow-y: auto; }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 13px 14px; border-radius: var(--r-sm); font-weight: 600; color: var(--ink-2); }
.mobile-nav a:active, .mobile-nav a:hover { background: var(--blue-tint); color: var(--blue); }
.mobile-nav .mn-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); font-weight: 700; padding: 14px 14px 4px; }
.mobile-nav .mn-label:first-child { padding-top: 4px; }
.mn-foot { margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.mn-foot .mn-phone { text-align: center; font-weight: 700; color: var(--navy); padding: 4px; }

.site-header.scrolled { box-shadow: 0 4px 20px rgba(8,33,63,.10); }
/* Mega-меню */
.has-mega { position: relative; }
.nav-mega-btn { background: none; border: 0; cursor: pointer; padding: 10px 14px; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body); }
.nav-mega-btn:hover, .has-mega:hover .nav-mega-btn { background: var(--blue-tint); color: var(--blue); }
.nav-mega-btn .caret { font-size: 11px; transition: transform .2s var(--ease); }
.has-mega:hover .nav-mega-btn .caret { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% + 8px); left: 0; display: none; grid-template-columns: repeat(3, minmax(200px,1fr)); gap: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 22px; width: max-content; max-width: 720px; z-index: 60; }
.has-mega:hover .mega, .mega.open { display: grid; }
.mega-col h6 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); margin-bottom: 10px; font-weight: 700; }
.mega-col a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 600; font-size: 14.5px; }
.mega-col a span { font-size: 17px; }
.mega-col a:hover { background: var(--blue-tint); color: var(--blue); }
/* Поиск города */
.city-search { display: flex; align-items: center; background: var(--bg-alt); border: 1.5px solid var(--line); border-radius: var(--r-pill); padding: 3px 3px 3px 14px; margin-left: 6px; }
.city-search input { border: 0; background: none; outline: none; width: 120px; font-size: 14px; }
.city-search button { border: 0; cursor: pointer; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 15px; }
.city-search button:hover { background: var(--blue-600); }
/* Липкий мобильный CTA */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(120%); transition: transform .3s var(--ease); display: none; }
.sticky-cta.show { transform: none; }

/* ---------- Hero (диагональный корпоративный) ---------- */
.hero, .city-hero { position: relative; overflow: hidden; color: #fff; background: var(--navy); }
.hero::before, .city-hero::before {
  content:""; position:absolute; inset:0; z-index:0;
  background:
    linear-gradient(115deg, var(--navy) 0 46%, var(--blue) 46% 100%),
    radial-gradient(700px 340px at 88% -10%, rgba(255,255,255,.10), transparent 60%);
  opacity: 1;
}
.hero::after, .city-hero::after {
  content:""; position:absolute; inset:0; z-index:0; opacity:.5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: linear-gradient(90deg, transparent 40%, #000 100%);
}
.hero-orbs { display: none; }
.hero .container, .city-hero .container, .hero .hero-wide, .city-hero .hero-wide { position: relative; z-index: 1; }
.hero { padding-block: clamp(40px, 5.5vw, 72px); }
.city-hero { padding-block: clamp(30px, 4vw, 52px); }
/* Hero full-bleed вправо: левый край выровнен по контейнеру, правая колонка тянется почти к краю окна */
.hero .hero-wide, .city-hero .hero-wide {
  max-width: none; width: 100%; margin: 0;
  padding-left: max(20px, calc((100% - var(--container)) / 2 + 22px));
  padding-right: clamp(20px, 3vw, 48px);
}
.hero-grid { display: grid; grid-template-columns: 1fr minmax(440px, 620px); gap: clamp(28px,4vw,56px); align-items: start; }
/* Длинная форма калькулятора справа не должна «кривить» hero: левый блок липкий, пока форма прокручивается */
.hero-grid > :first-child { position: sticky; top: 84px; align-self: start; }
.hero h1, .city-hero h1 { color: #fff; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.1; }
.hero h1 .hl, .city-hero h1 .hl { color: #9DC3FF; }
.hero .eyebrow, .city-hero .eyebrow { color: #9DC3FF; }
.hero p.lead, .city-hero .lead { color: #C7DCF3; margin-top: 16px; max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; }
.hero-badges span { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14px; color: #DCE8F5; }
.hero-badges span::before { content:""; width: 28px; height: 28px; flex: 0 0 auto; background: center/contain no-repeat; }
.hero-badges span:nth-child(1)::before { background-image: url(/assets/icons/shield.svg); }
.hero-badges span:nth-child(2)::before { background-image: url(/assets/icons/bank.svg); }
.hero-badges span:nth-child(3)::before { background-image: url(/assets/icons/lock.svg); }
/* Цветные иконки (Twemoji) — крупные, сочные */
.ic-svg { display: block; }
.card__ic .ic-svg { width: 46px; height: 46px; }
.fact .ic .ic-svg { width: 40px; height: 40px; }
.mega-col a .ic-svg { width: 28px; height: 28px; flex: 0 0 auto; }
.calc-card__head .pill .ic-svg { width: 20px; height: 20px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); padding: 7px 15px; border-radius: var(--r-sm); }
.city-hero h1 { margin-top: 14px; }

/* Калькулятор-карточка */
.calc-card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 8px; color: var(--ink); }
.calc-card__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; }
.calc-card__head strong { font-family: var(--font-head); font-size: 16.5px; color: var(--navy); }
.calc-card__head .pill { font-size: 12px; font-weight: 700; color: var(--green); background: var(--green-tint); padding: 5px 11px; border-radius: var(--r-sm); }
/* Динамическая высота: виджет AUTOZIX сам растёт по мере заполнения; не навязываем фикс. высоту */
.calc-embed { min-height: 180px; border-radius: var(--r); overflow: visible; background: transparent; }
.calc-embed iframe, .calc-embed .autozixWidget { width: 100%; border: 0; display: block; }
.calc-note { text-align: center; color: var(--muted); font-size: 13px; padding: 12px 10px 8px; }

/* Центрированный hero (без боковой карточки — калькулятор вынесен в свою секцию) */
.hero-center { max-width: 880px; margin-inline: auto; text-align: center; }
.hero-center h1 { text-wrap: balance; }
.hero-center .lead { margin-inline: auto; }
.hero-center .hero-cta, .hero-center .hero-badges { justify-content: center; }

/* Секция калькулятора — чистый широкий контейнер, виджет растёт свободно, без наложений */
.calc-section { background: var(--bg-alt); scroll-margin-top: 84px; }
.calc-shell { max-width: 900px; margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh); padding: 10px; }
.calc-shell .calc-card__head { padding: 16px 18px 10px; }
#calc { scroll-margin-top: 84px; }

/* ---------- KPI-полоса ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: var(--sh-sm); }
.stat { text-align: center; padding: 24px 14px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--font-num); font-weight: 800; font-size: clamp(26px, 3.2vw, 36px); color: var(--blue); line-height: 1; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease); }
.card:hover { border-color: var(--blue); box-shadow: 0 12px 30px rgba(11,77,162,.12); transform: translateY(-3px); }
.card__ic { width: 68px; height: 68px; border-radius: var(--r-lg); display: grid; place-items: center; font-size: 24px; background: var(--blue-tint); margin-bottom: 16px; }
.card h3, .card h4 { font-size: 18px; margin-bottom: 8px; color: var(--navy); }
.card p { color: var(--muted); font-size: 15px; }

.service-card { display: flex; flex-direction: column; }
.service-card .go { margin-top: auto; padding-top: 15px; font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; }
.service-card:hover .go { gap: 10px; }

/* Шаги */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 58px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: var(--r); display: grid; place-items: center; font-family: var(--font-num); font-weight: 800; font-size: 18px; color: #fff; background: var(--blue); }
.step h4 { margin-bottom: 6px; color: var(--navy); }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Trust ---------- */
.insurer-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.insurer-strip span { font-weight: 600; font-size: 14px; color: var(--ink-2); background: #fff; border: 1px solid var(--line); padding: 8px 15px; border-radius: var(--r-sm); }

/* ---------- Price table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.price-table { width: 100%; border-collapse: collapse; min-width: 480px; background: #fff; }
.price-table th, .price-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.price-table thead th { background: var(--bg-alt); color: var(--navy); font-weight: 700; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover { background: var(--blue-tint); }

/* ---------- Графики (горизонтальные бары, одна серия — один цвет) ---------- */
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.chart-card h4 { font-size: 17px; color: var(--navy); margin-bottom: 4px; }
.chart-note { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.hbars { display: grid; gap: 12px; }
.hbar { display: grid; grid-template-columns: minmax(96px, 140px) 1fr max-content; align-items: center; gap: 12px; }
.hb-label { font-size: 14px; color: var(--ink-2); font-weight: 600; line-height: 1.25; }
.hb-track { display: block; height: 18px; background: var(--blue-tint); border-radius: 0 4px 4px 0; }
.hb-fill { display: block; height: 100%; width: var(--w); background: var(--blue); border-radius: 0 4px 4px 0; transition: width .9s var(--ease); }
.js .reveal:not(.in) .hb-fill { width: 0; }
.hb-val { font-size: 14px; font-weight: 700; color: var(--navy); white-space: nowrap; font-family: var(--font-num); }

/* Список «подключается опцией» (пара к check-list) */
.plus-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.plus-list li { position: relative; padding-left: 34px; color: var(--ink-2); font-size: 16.5px; }
.plus-list li::before { content:"+"; position:absolute; left:0; top:0; width:24px; height:24px; border-radius:50%; background:var(--accent-tint); color:var(--accent-600); display:grid; place-items:center; font-size:16px; font-weight:800; }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 2px 20px; transition: box-shadow .2s var(--ease), border-color .2s; }
.faq details[open] { box-shadow: var(--sh-sm); border-color: var(--blue-tint-2); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 30px 16px 0; font-family: var(--font-head); font-weight: 700; font-size: 16.5px; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--blue); font-weight: 400; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { padding: 0 0 18px; color: var(--muted); }

/* ---------- Lead form ---------- */
.lead-section { background: var(--navy); color: #fff; border-radius: var(--r-xl); padding: clamp(28px,4vw,44px); text-align: center; position: relative; overflow: hidden; }
.lead-section::after { content:""; position:absolute; inset:0; background: linear-gradient(115deg, transparent 55%, rgba(255,255,255,.06) 55%); }
.lead-section > * { position: relative; }
.lead-section h3 { color: #fff; font-size: clamp(21px,2.5vw,27px); }
.lead-section p { color: #C7DCF3; margin-top: 8px; }
.lead-form { display: flex; gap: 12px; max-width: 520px; margin: 22px auto 0; }
.lead-form input { flex: 1; min-width: 0; padding: 14px 16px; border: 1.5px solid transparent; border-radius: var(--r); background: #fff; font-size: 16px; color: var(--ink); }
.lead-form input:focus { outline: none; box-shadow: 0 0 0 4px rgba(227,161,48,.4); }
.lead-note { margin-top: 16px; color: #A7E9C4; font-weight: 600; }
.lead-err { margin-top: 16px; color: #FFC4BD; font-weight: 600; }
/* Форма на светлом фоне (сервисный fallback) */
.calc-card .lead-form { flex-direction: column; margin-top: 0; }
.calc-card .lead-form input { border-color: var(--line); }
.calc-card .lead-note { color: var(--green); } .calc-card .lead-err { color: var(--red); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(115deg, var(--navy) 0 50%, var(--blue) 50% 100%); color: #fff; border-radius: var(--r-xl); padding: clamp(36px,5vw,60px); text-align: center; }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(255,255,255,.85); position: relative; margin-top: 12px; font-size: 17.5px; }
.cta-band .btn { margin-top: 22px; position: relative; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); padding-block: 16px; }
.breadcrumbs a { color: var(--muted); font-weight: 600; }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs .sep { color: var(--muted-2); }
.breadcrumbs .current { color: var(--ink); font-weight: 600; }
/* На тёмном герое крошки над ним — делаем их светлыми, если внутри hero */
.hero .breadcrumbs a, .city-hero .breadcrumbs a, .hero .breadcrumbs, .city-hero .breadcrumbs { color: #C7DCF3; }

/* ---------- Article / long-form ---------- */
.prose { max-width: 780px; margin-inline: auto; }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 38px; font-size: clamp(22px,2.6vw,28px); }
.prose h3 { margin-top: 26px; }
.prose p, .prose li { color: var(--ink-2); font-size: 17px; line-height: 1.72; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose blockquote { border-left: 3px solid var(--blue); background: var(--blue-tint); padding: 14px 18px; border-radius: 0 var(--r) var(--r) 0; color: var(--ink-2); }
.doc-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.doc-list li { position: relative; padding-left: 30px; color: var(--ink-2); }
.doc-list li::before { content:"✓"; position:absolute; left:0; top:1px; width:20px; height:20px; border-radius:4px; background:var(--blue-tint); color:var(--blue); display:grid; place-items:center; font-size:12px; font-weight:800; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 9px 15px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--ink-2); }
.chip:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-tint); }

.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-card .post-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-tag { align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); background: var(--blue-tint); padding: 5px 11px; border-radius: var(--r-sm); margin-bottom: 12px; }
.post-card h3 { font-size: 18px; margin-bottom: 8px; }
.post-card p { color: var(--muted); font-size: 14.5px; }
.post-card .go { margin-top: auto; padding-top: 14px; font-weight: 700; color: var(--blue); }
/* Обложка карточки */
.post-thumb { position: relative; height: 190px; background: var(--blue-tint); overflow: hidden; }
.post-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s var(--ease); }
.post-thumb .post-tag { position: absolute; left: 12px; bottom: 12px; margin: 0; z-index: 1; background: rgba(255,255,255,.94); box-shadow: var(--sh-xs); }
.post-card:hover .post-thumb img { transform: scale(1.05); }

/* Featured-статья */
.post-featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; transition: box-shadow .22s var(--ease), transform .22s var(--ease); }
.post-featured:hover { box-shadow: var(--sh-lg); transform: translateY(-4px); }
.post-featured .pf-img { position: relative; min-height: 300px; background: var(--blue-tint); overflow: hidden; }
.post-featured .pf-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.post-featured .pf-img .post-tag { position: absolute; left: 16px; top: 16px; margin: 0; z-index: 1; background: rgba(255,255,255,.94); }
.post-featured .pf-body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; }
.pf-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-600); margin-bottom: 10px; }
.post-featured h2 { font-size: clamp(22px, 2.6vw, 32px); margin-bottom: 12px; color: var(--navy); text-wrap: balance; }
.post-featured p { color: var(--muted); font-size: 16px; }
.post-featured .go { margin-top: 18px; font-weight: 700; color: var(--blue); }
@media (max-width: 760px) { .post-featured { grid-template-columns: 1fr; } .post-featured .pf-img { min-height: 190px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); color: rgba(255,255,255,.70); margin-top: var(--section-y); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 30px; padding-block: 50px; }
.site-footer .brand { color: #fff; }
.site-footer h5 { color: #fff; font-family: var(--font-head); font-size: 14px; margin-bottom: 14px; letter-spacing: .02em; text-transform: uppercase; }
.footer-col a { display: block; color: rgba(255,255,255,.70); padding: 5px 0; font-size: 14.5px; }
.footer-col a:hover { color: #fff; }
.footer-about p { color: rgba(255,255,255,.58); font-size: 14px; margin-top: 12px; max-width: 300px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.5); }
.footer-bottom a { color: rgba(255,255,255,.7); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal-stagger.in > * { opacity: 1; transform: none; }
.js .reveal-stagger.in > *:nth-child(2){transition-delay:.06s}.js .reveal-stagger.in > *:nth-child(3){transition-delay:.12s}
.js .reveal-stagger.in > *:nth-child(4){transition-delay:.18s}.js .reveal-stagger.in > *:nth-child(5){transition-delay:.24s}
.js .reveal-stagger.in > *:nth-child(6){transition-delay:.30s}
@media (prefers-reduced-motion: reduce) { .js .reveal, .js .reveal-stagger > * { opacity:1!important; transform:none!important; transition:none!important; } }

/* ---------- Преимущества / чек-лист ---------- */
.check-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; color: var(--ink-2); font-size: 16.5px; }
.check-list li::before { content:"✓"; position:absolute; left:0; top:0; width:24px; height:24px; border-radius:50%; background:var(--blue); color:#fff; display:grid; place-items:center; font-size:13px; font-weight:800; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px,4vw,52px); align-items: center; }

/* ---------- Сравнение «с нами / без нас» ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare .col { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.compare .col.good { border-color: var(--blue-tint-2); box-shadow: var(--sh); }
.compare .col h4 { padding: 18px 22px; font-size: 17px; border-bottom: 1px solid var(--line-2); }
.compare .col.bad h4 { background: #FBF3F2; color: var(--red); }
.compare .col.good h4 { background: var(--blue); color: #fff; }
.compare ul { list-style: none; margin: 0; padding: 16px 22px; display: grid; gap: 12px; }
.compare li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 15.5px; }
.compare .bad li::before { content:"✕"; position:absolute; left:0; color:var(--red); font-weight:800; }
.compare .good li::before { content:"✓"; position:absolute; left:0; color:var(--green); font-weight:800; }

/* ---------- Факты / лицензии ---------- */
.facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.fact { display: flex; gap: 14px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.fact .ic { flex: 0 0 auto; width: 60px; height: 60px; border-radius: var(--r-lg); background: var(--blue-tint); display: grid; place-items: center; font-size: 22px; }
.fact h4 { font-size: 16px; margin-bottom: 4px; color: var(--navy); }
.fact p { color: var(--muted); font-size: 14.5px; }

/* ---------- Утилиты ---------- */
.center { text-align: center; }
.mt-s{margin-top:14px}.mt-m{margin-top:24px}.mt-l{margin-top:40px}
.muted { color: var(--muted); }
.hide { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) { .city-search { display: none; } }
@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-grid > :first-child { position: static; }
  .hero::before, .city-hero::before { background: var(--navy); }
  .calc-card { order: -1; }
  .grid-4, .facts { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav, .header-cta { display: none; }
  .burger { display: block; }
  .sticky-cta { display: block; }
  body { padding-bottom: 74px; }               /* место под липкий CTA */
  .header-inner { height: 60px; gap: 12px; }
  .hero, .city-hero { padding-block: 34px; }
  .hero-cta { gap: 10px; } .hero-cta .btn { flex: 1; }
  .hero-badges { gap: 8px 16px; }
  .compare, .facts { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps.grid-4 .step { padding-left: 52px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .lead-form { flex-direction: column; }
  .lead-form .btn, .lead-form button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .util-inner { justify-content: center; gap: 12px; }
  .util .u-right { gap: 14px; }

  /* Центрирование контента на мобильном */
  .hero .container, .city-hero .container { text-align: center; }
  .hero-cta, .hero-badges, .chip-row, .breadcrumbs { justify-content: center; }
  .hero p.lead, .city-hero .lead { margin-inline: auto; }
  .section-head { text-align: center; margin-inline: auto; }
  .card { text-align: center; }
  .card__ic { margin-inline: auto; }
  .service-card, .service-card .go { align-self: center; }
  .steps .step { text-align: center; padding-left: 0; }
  .steps .step::before { position: static; margin: 0 auto 12px; }
  .fact { flex-direction: column; align-items: center; text-align: center; }
  .doc-list, .check-list, .plus-list { max-width: 320px; margin-inline: auto; text-align: left; }
  .card .check-list, .card .plus-list { max-width: none; }
  .hbar { gap: 10px; grid-template-columns: minmax(84px, 120px) 1fr max-content; }
  .compare .col h4 { text-align: center; }
}
@media (max-width: 520px) {
  .util-inner > span:first-child { display: none; }   /* оставляем телефон/ссылки */
  .section-head p { font-size: 16px; }
  .cta-band, .lead-section { padding: 28px 20px; }
}
@media (max-width: 440px) {
  .stats { grid-template-columns: 1fr; } .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; }
}
