/* =============================================================================
   KEEPSA · Стили лендинга и страницы статуса
   -----------------------------------------------------------------------------
   Перенесено из прототипа (prototype/assets/css/style.css) один в один.
   Демо-панель прототипа исключена — в боевой версии её роль выполняет админка.
   Адаптив от 300px, без горизонтальной прокрутки.
   ========================================================================== */

/* --- Токены ------------------------------------------------------------- */
:root {
  --ink:        #0D1B2A;
  --ink-2:      #1B2A3D;
  --muted:      #5C6B7F;
  --muted-2:    #8494A6;

  --brand:      #1B5FCC;
  --brand-dark: #14489C;
  --brand-soft: #EAF1FC;

  --accent:     #B77514;
  --accent-soft:#FDF3E2;

  --ok:         #12805C;
  --ok-soft:    #E6F4EF;
  --danger:     #B3392B;
  --danger-soft:#FBEDEB;

  --bg:         #FFFFFF;
  --bg-soft:    #F4F7FA;
  --bg-deep:    #0D1B2A;
  --border:     #DFE6EE;
  --border-2:   #C9D5E3;

  --radius:     14px;
  --radius-sm:  9px;
  --radius-lg:  22px;

  --shadow-sm:  0 1px 2px rgba(13,27,42,.06), 0 2px 8px rgba(13,27,42,.04);
  --shadow:     0 2px 6px rgba(13,27,42,.07), 0 12px 28px rgba(13,27,42,.07);
  --shadow-lg:  0 8px 20px rgba(13,27,42,.10), 0 24px 60px rgba(13,27,42,.12);

  --wrap:       1180px;
  --font:       -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto,
                "Helvetica Neue", Arial, sans-serif;
}

/* --- Сброс --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.18; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* --- Раскладка ----------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--soft { background: var(--bg-soft); }
.section--deep { background: var(--bg-deep); color: #fff; }
.section__head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.section__title { font-size: clamp(26px, 3.6vw, 40px); }
.section__sub { margin-top: 12px; color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); }
.section--deep .section__sub { color: #A8BACD; }

/* --- Типографика --------------------------------------------------------- */
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 14px;
}
.muted { color: var(--muted); }
.small { font-size: 14px; }
.nowrap { white-space: nowrap; }

/* --- Кнопки -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 650; font-size: 16px; line-height: 1.2; cursor: pointer;
  transition: background .16s, border-color .16s, color .16s, transform .1s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--border-2); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); }
.btn--light { background: #fff; color: var(--ink); }
.btn--wide { width: 100%; }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--lg { padding: 17px 32px; font-size: 17px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* --- Бейджи -------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  font-size: 13px; font-weight: 650; line-height: 1.35;
  background: var(--bg-soft); color: var(--muted); border: 1px solid var(--border);
}
.badge--ok     { background: var(--ok-soft);     color: var(--ok);     border-color: #C4E5D9; }
.badge--brand  { background: var(--brand-soft);  color: var(--brand);  border-color: #CBDEF8; }
.badge--accent { background: var(--accent-soft); color: var(--accent); border-color: #F2DFBC; }
.badge--danger { background: var(--danger-soft); color: var(--danger); border-color: #F1CFCA; }
.badge--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* --- Шапка --------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--border);
}
.header__in { display: flex; align-items: center; gap: 18px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em;
        font-size: 20px; color: var(--ink); text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo__mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 15px; font-weight: 800;
}
/* Загруженный логотип-картинка заменяет знак «K» + текст: высота под шапку, ширина по пропорции. */
.logo__img { display: block; height: 48px; width: auto; max-width: 190px; object-fit: contain; }
/* В подвале картинку логотипа кладём на белую подложку с закруглением: загруженный
   логотип может быть тёмным и теряться на тёмном фоне футера. Текстовый запасной
   знак (без .logo__img) не трогаем — у него белые буквы на тёмном фоне. */
.footer .logo__img { background: #fff; padding: 8px 12px; border-radius: var(--radius-sm); }
.header__nav { display: flex; gap: 22px; margin-left: 14px; }
.header__nav a { color: var(--ink); font-size: 15px; font-weight: 550; text-decoration: none; }
.header__nav a:hover { color: var(--brand); }
.header__right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.header__phone { font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.header__phone span { display: block; font-size: 11px; font-weight: 500; color: var(--muted-2); }
.header__burger { display: none; width: 42px; height: 42px; border: 1px solid var(--border-2);
                  border-radius: var(--radius-sm); background: #fff; cursor: pointer; }
.city {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border: 1px solid var(--border-2); border-radius: 999px;
  background: #fff; cursor: pointer; font-size: 14px; font-weight: 600;
}
.city:hover { border-color: var(--ink); }

/* Мобильное меню */
.drawer {
  position: fixed; inset: 0; z-index: 90; display: none;
  background: rgba(13,27,42,.45); backdrop-filter: blur(2px);
}
.drawer.is-open { display: block; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86vw);
  background: #fff; padding: 18px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 18px;
  animation: drawerIn .18s ease-out;
}
@keyframes drawerIn { from { transform: translateX(16px); opacity: .6; } to { transform: none; opacity: 1; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer__close {
  width: 42px; height: 42px; border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  background: #fff; cursor: pointer; display: grid; place-items: center; flex: 0 0 auto;
}
.drawer__nav { display: grid; gap: 2px; }
.drawer__nav a {
  display: block; padding: 13px 12px; border-radius: var(--radius-sm);
  color: var(--ink); font-size: 16px; font-weight: 600; text-decoration: none;
}
.drawer__nav a:hover, .drawer__nav a:active { background: var(--bg-soft); text-decoration: none; }
.drawer__contacts { margin-top: auto; display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--border); }
.drawer__phone { font-size: 20px; font-weight: 750; color: var(--ink); text-decoration: none; }

/* --- Первый экран -------------------------------------------------------- */
.hero { padding: clamp(36px, 5vw, 72px) 0 clamp(40px, 5vw, 76px); background:
        linear-gradient(180deg, #F7FAFD 0%, #FFFFFF 100%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero__title { font-size: clamp(30px, 4.6vw, 52px); letter-spacing: -.03em; }
.hero__sub { margin-top: 18px; font-size: clamp(16px, 1.8vw, 19px); color: var(--muted); max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__points { display: grid; gap: 10px; margin-top: 26px; }
.hero__points li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.hero__points svg { flex: 0 0 auto; margin-top: 3px; color: var(--ok); }

.timeline { display: grid; gap: 14px; margin-top: 18px; }
.timeline__row { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.timeline__n {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 14px;
}
.timeline__row--done .timeline__n { background: var(--ok-soft); color: var(--ok); }
.timeline__t { font-weight: 650; font-size: 15px; }
.timeline__d { font-size: 14px; color: var(--muted); }

/* --- Карточки автомобилей ------------------------------------------------ */
.cars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.car {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: border-color .16s, box-shadow .16s, transform .16s;
}
.car:hover { border-color: var(--border-2); box-shadow: var(--shadow); transform: translateY(-2px); }
/* Высота кадра одинаковая у всех карточек независимо от пропорций исходника:
   контейнер держит соотношение, изображение растягивается внутри по абсолюту. */
.car__media { position: relative; background: var(--bg-soft); aspect-ratio: 16 / 10; overflow: hidden; }
.car__slide img,
.car__slide svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.car__flags { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 24px); z-index: 2; }
.car__body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.car__name { font-size: 18px; font-weight: 700; }
.car__specs { margin-top: 8px; font-size: 14px; color: var(--muted); }
.car__price { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.car__value { font-size: 27px; font-weight: 750; letter-spacing: -.02em; }
.car__value span { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.car__second { margin-top: 4px; font-size: 14px; color: var(--muted); }
.car__note { margin-top: 10px; font-size: 13px; color: var(--muted-2); }
.car__from { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.car__actions { margin-top: 16px; display: grid; gap: 8px; }
.car__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,27,42,.20) 0%, rgba(13,27,42,0) 42%);
  pointer-events: none;
}

/* --- Карусель фото в карточке -------------------------------------------- */
.car__slider { position: absolute; inset: 0; overflow: hidden; }
.car__track {
  display: flex; height: 100%; width: 100%;
  touch-action: pan-y;                 /* вертикальный скролл — странице, свайп по X — нам */
  transform: translateX(0); will-change: transform;
}
.car__slider.is-multi .car__track { cursor: grab; }
.car__slider.is-multi .car__track:active { cursor: grabbing; }
.car__slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; }
.car__slide--ph { background: var(--bg-soft); }
.car__ph {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  font-size: 11px; color: var(--muted);
  background: rgba(255,255,255,.86); border-radius: 6px; padding: 3px 8px;
}
/* точки-индикаторы */
.car__dots { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 4;
             display: flex; justify-content: center; gap: 6px; }
.car__dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%;
            background: rgba(255,255,255,.6); box-shadow: 0 0 0 1px rgba(13,27,42,.18);
            cursor: pointer; transition: width .18s, background .18s; }
.car__dot.is-active { width: 18px; border-radius: 4px; background: #fff; }
/* стрелки: на десктопе — по наведению, на тач-экранах скрыты (там свайп) */
.car__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--ink);
  display: grid; place-items: center; padding: 0;
  cursor: pointer; opacity: 0; transition: opacity .16s, background .16s;
  box-shadow: var(--shadow-sm);
}
.car__arrow svg { width: 16px; height: 16px; display: block; }
.car:hover .car__arrow { opacity: 1; }
.car__arrow:hover { background: #fff; }
.car__arrow--prev { left: 10px; }
.car__arrow--next { right: 10px; }
@media (hover: none) { .car__arrow { display: none; } }

/* --- Плитки сравнения ----------------------------------------------------- */
.compare { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 18px; align-items: start; }
.tile {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(20px, 2.4vw, 28px); height: 100%;
}
.tile__head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.tile__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-soft); color: var(--muted); flex: 0 0 auto;
}
.tile__title { font-size: 18px; font-weight: 700; }
.tile__sub { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.tile__list { display: grid; gap: 12px; }
.tile__row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.tile__row svg { flex: 0 0 auto; margin-top: 2px; }
.tile__row--yes svg { color: var(--ok); }
.tile__row--no  svg { color: var(--danger); }
.tile__row--opt svg { color: var(--accent); }
.tile--ours {
  border-color: var(--brand); border-width: 2px; box-shadow: var(--shadow);
  position: relative; background: linear-gradient(180deg, #F7FAFF 0%, #FFFFFF 42%);
}
.tile--ours .tile__icon { background: var(--brand); color: #fff; }
.tile--ours .tile__title { font-size: 22px; }
.tile--ours .tile__sub { font-size: 15px; color: var(--ink-2); }
.tile--ours .tile__row { font-size: 16.5px; color: var(--ink); font-weight: 550; line-height: 1.45; }
.tile--ours .tile__list { gap: 15px; }
.tile--ours .tile__row svg { width: 20px; height: 20px; margin-top: 3px; }
.tile__flag {
  position: absolute; top: -12px; left: clamp(20px, 2.4vw, 28px);
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}
.tile--other { background: var(--bg-soft); }
.tile--other .tile__title { font-size: 16px; color: var(--ink-2); }
.tile--other .tile__sub { font-size: 13px; }
.tile--other .tile__row { font-size: 13.5px; }
.tile--other .tile__icon { width: 38px; height: 38px; }
.tile--other .tile__row svg { width: 15px; height: 15px; }

/* --- Требования и стоп-факторы ------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
         padding: clamp(20px, 2.6vw, 30px); }
.panel--warn { background: var(--bg-soft); }
.panel h3 { font-size: 20px; margin-bottom: 16px; }
.list { display: grid; gap: 12px; }
.list li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; }
.list svg { flex: 0 0 auto; margin-top: 3px; }
.list--ok svg { color: var(--ok); }
.list--no svg { color: var(--danger); }
.panel__note { margin-top: 18px; padding: 14px; border-radius: var(--radius-sm);
               background: var(--brand-soft); font-size: 14px; color: var(--ink-2); }

/* --- Отзывы (карусель) --------------------------------------------------- */
.reviews-carousel { position: relative; }
.reviews-viewport { position: relative; }
/* Лента: горизонтальная прокрутка с «прилипанием» карточек. Без JS остаётся
   обычной прокручиваемой полосой; стрелки и точки добавляет keepsa.js.
   Внутренний padding/отрицательный margin — чтобы обводка и тень карточек не
   срезались краем области прокрутки. */
.reviews {
  position: relative;                    /* якорь offsetLeft карточек для JS-кольца */
  display: flex; gap: 20px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;                 /* Firefox — без полосы прокрутки */
  /* Боковые поля: три карточки заполняют ширину ровно, из-за чего вертикальная
     граница крайней карточки ложится на край области прокрутки и срезается.
     Поле + равный ему scroll-padding (snap отступает на столько же) оставляют
     у крайних карточек зазор, и обводка видна с обеих сторон. */
  padding-inline: 8px;
  scroll-padding-inline: 8px;
}
/* Плавность включает сам скрипт (scrollTo), а мгновенный «прыжок» через край
   круга должен быть именно мгновенным — поэтому CSS scroll-behavior не задаём. */
.reviews::-webkit-scrollbar { display: none; }   /* WebKit — без полосы прокрутки */
.review {
  scroll-snap-align: start; min-width: 0;
  flex: 0 0 calc((100% - 40px) / 3);     /* 3 карточки в ряд, 2 зазора по 20px */
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; }
.review__text { font-size: 15px; flex: 1; }
.review__who { display: flex; align-items: center; gap: 12px; margin-top: 20px;
               padding-top: 18px; border-top: 1px solid var(--border); }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--brand-soft);
          color: var(--brand); display: grid; place-items: center; font-weight: 700; flex: 0 0 auto;
          overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.review__name { font-weight: 650; font-size: 15px; }
.review__meta { font-size: 13px; color: var(--muted); }
/* Стрелки — как в карусели фото авто: по краям ленты, поверх карточек.
   На тач-экранах скрыты (там свайп и точки). Появляются скриптом (атрибут
   hidden снимается), а бездействующая крайняя стрелка гасится через disabled. */
.reviews__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 50%;
  background: rgba(255, 255, 255, .96); color: var(--ink);
  display: grid; place-items: center; padding: 0; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: background .16s, box-shadow .16s, opacity .16s; }
.reviews__arrow svg { width: 20px; height: 20px; display: block; }
.reviews__arrow:hover { background: #fff; box-shadow: var(--shadow); }
.reviews__arrow--prev { left: -8px; }
.reviews__arrow--next { right: -8px; }
.reviews__arrow[hidden] { display: none; }
/* На устройствах с курсором (где стрелки видны) отводим под них боковые поля,
   чтобы кнопки стояли рядом с лентой, а не поверх карточек — иначе стрелка
   перекрывает левый край карточки и текст. Поля добавляются только при активном
   кольце (класс reviews--loop), чтобы при малом числе отзывов лента не сужалась
   зря. Внутренний padding не сбивает JS-кольцо: offsetLeft карточек считается от
   самой ленты (position: relative выше). */
@media (hover: hover) {
  .reviews--loop .reviews-viewport { padding: 0 46px; }
  .reviews--loop .reviews__arrow--prev { left: 0; }
  .reviews--loop .reviews__arrow--next { right: 0; }
}
/* Точки-страницы */
.reviews__dots { display: flex; justify-content: center; flex-wrap: wrap;
                 gap: 8px; margin-top: 22px; }
.reviews__dots[hidden] { display: none; }
.reviews__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
                background: var(--border); cursor: pointer;
                transition: width .18s, background .18s; }
.reviews__dot.is-active { width: 22px; border-radius: 4px; background: var(--brand); }
@media (hover: none) { .reviews__arrow { display: none; } }

/* --- FAQ ----------------------------------------------------------------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative;
  font-weight: 650; font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 24px; width: 10px; height: 10px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .18s;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 27px; }
.faq p { padding: 0 20px 20px; color: var(--muted); font-size: 15px; }

/* --- Форма заявки -------------------------------------------------------- */
.form-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: clamp(22px, 3vw, 36px);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid--full { grid-template-columns: 1fr; }
.field { margin-bottom: 20px; }
.field__label { display: flex; justify-content: space-between; align-items: baseline;
                font-size: 14px; font-weight: 650; margin-bottom: 9px; }
.field__label .req { color: var(--danger); }
.select, .input, .textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  background: #fff; font-size: 16px; transition: border-color .14s, box-shadow .14s;
}
/* Одинаковая высота поля ввода и списка. Высоту select браузер считает
   по-своему — то ниже соседних полей, то выше, — поэтому не выводим её из
   содержимого, а задаём обоим одну фиксированную высоту (border-box: padding
   и рамка уже внутри) и одну строку. Текст оба центрируют по высоте сами. */
.select, .input { line-height: 1.25; height: calc(1.25em + 28px); }
.select:focus, .input:focus, .textarea:focus {
  outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
.field__hint { font-size: 13px; color: var(--muted-2); margin-top: 6px; }
.field__error { font-size: 13px; color: var(--danger); margin-top: 6px; display: none; }
.field.is-invalid .field__error { display: block; }
.field.is-invalid .input, .field.is-invalid .select { border-color: var(--danger); }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); flex: 0 0 auto; }
/* ловушка для ботов: не создаёт горизонтальной прокрутки */
.honeypot { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
            overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.consents { display: grid; gap: 10px; margin: 4px 0 16px; }
.consents .check { font-size: 13.5px; line-height: 1.45; align-items: flex-start; }
.consents .check input { width: 22px; height: 22px; }

/* Шаг 2: выбор способа передачи данных (фото / ручной ввод) — две кнопки-карточки,
   под каждой раскрывается свой блок. */
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0 6px; }
.choice__btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  text-align: left; padding: 18px 18px 20px; border: 1.5px solid var(--border-2);
  border-radius: var(--radius); background: #fff; cursor: pointer;
  transition: border-color .16s, background .16s, box-shadow .16s;
}
.choice__btn:hover { border-color: var(--brand); background: var(--brand-soft); }
.choice__btn.is-active { border-color: var(--brand); background: var(--brand-soft); box-shadow: var(--shadow-sm); }
.choice__icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.choice__btn.is-active .choice__icon { background: #fff; }
.choice__t { font-weight: 700; font-size: 16px; }
.choice__d { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.choice__panel { margin-top: 20px; }
@media (max-width: 620px) { .choice { grid-template-columns: 1fr; } }

/* Индикатор шагов (Контакты · Документы · Результат) */
.steps-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.steps-bar__item { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); }
.steps-bar__n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
                background: var(--bg-soft); border: 1px solid var(--border-2); font-size: 13px; font-weight: 700; }
.steps-bar__item.is-active { color: var(--ink); font-weight: 650; }
.steps-bar__item.is-active .steps-bar__n { background: var(--brand); border-color: var(--brand); color: #fff; }
.steps-bar__item.is-done .steps-bar__n { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps-bar__line { flex: 1; height: 1px; background: var(--border-2); }
@media (max-width: 680px) {
  .steps-bar__item span:not(.steps-bar__n) { display: none; }
  .steps-bar__item.is-active span:not(.steps-bar__n) { display: inline; }
}

/* Ошибки серверной валидации */
.errors { background: var(--danger-soft); border: 1px solid #F1CFCA; color: var(--danger);
          border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 18px; font-size: 14px; }
.errors ul { margin: 8px 0 0; padding-left: 18px; }

/* --- Загрузка файлов ----------------------------------------------------- */
.uploads { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 16px; }
.upload {
  position: relative; border: 2px dashed var(--border-2); border-radius: var(--radius);
  background: var(--bg-soft); padding: 20px 16px; text-align: center; cursor: pointer;
  transition: border-color .16s, background .16s; min-height: 190px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.upload:hover { border-color: var(--brand); background: var(--brand-soft); }
.upload.is-filled { border-style: solid; border-color: var(--ok); background: var(--ok-soft); }
.upload.is-invalid { border-color: var(--danger); background: var(--danger-soft); }
.upload input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload__icon { color: var(--muted-2); }
.upload.is-filled .upload__icon { color: var(--ok); }
.upload__title { font-weight: 650; font-size: 15px; }
.upload__hint { font-size: 13px; color: var(--muted); }
.upload__preview { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; display: none; }
.upload__preview img { width: 100%; height: 100%; object-fit: cover; }
.upload.is-filled .upload__preview { display: block; }
.upload__badge {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  background: rgba(13,27,42,.86); color: #fff; padding: 5px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}

/* --- Страница статуса ---------------------------------------------------- */
.status-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg-soft); }
.status-card {
  width: 100%; max-width: 640px; margin: auto; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(26px, 4vw, 44px);
  text-align: center;
}
.status-icon { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 22px;
               display: grid; place-items: center; }
.status-icon--wait { background: var(--brand-soft); color: var(--brand); }
.status-icon--ok   { background: var(--ok-soft);    color: var(--ok); }
.status-icon--no   { background: var(--danger-soft);color: var(--danger); }
.status-icon--man  { background: var(--accent-soft);color: var(--accent); }
.status-card h1 { font-size: clamp(22px, 3vw, 30px); }
.status-card p.lead { margin-top: 14px; color: var(--muted); font-size: 16px; }
.progress { height: 6px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; margin: 26px 0 12px; }
.progress__bar { height: 100%; background: var(--brand); border-radius: 999px; width: 0; transition: width .5s linear; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--brand-soft); border-top-color: var(--brand);
           border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-meta { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border);
               font-size: 13px; color: var(--muted-2); }
.status-actions { display: grid; gap: 10px; margin-top: 26px; text-align: left; }
.action-card {
  display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--border);
  border-radius: var(--radius); background: #fff; cursor: pointer; transition: .16s; text-align: left;
  width: 100%; font: inherit; text-decoration: none; color: var(--ink);
}
.action-card:hover { border-color: var(--brand); background: var(--brand-soft); text-decoration: none; }
.action-card__icon { width: 42px; height: 42px; border-radius: 11px; background: var(--brand-soft);
                     color: var(--brand); display: grid; place-items: center; flex: 0 0 auto; }
.action-card__t { display: block; font-weight: 650; font-size: 15px; }
.action-card__d { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
/* Один размер значка во всех карточках связи: в наборе иконки разного размера. */
.action-card__icon svg,
.action-card__icon img { width: 24px; height: 24px; }
.action-card__icon img { object-fit: contain; border-radius: 6px; }

/* --- Контакты на страницах заявки (статус, загрузка документов) ---------- */
.contact-block { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); text-align: left; }
.contact-block__title { font-weight: 650; font-size: 15px; margin-bottom: 12px; }
.contact-block .status-actions { margin-top: 0; }
.contact-block__info {
  display: flex; flex-direction: column; gap: 3px;
  margin-top: 14px; font-size: 13px; color: var(--muted);
}
.contact-block .btn--ghost { margin-top: 16px; }

/* --- Подвал -------------------------------------------------------------- */
.footer { background: var(--bg-deep); color: #A8BACD; padding: clamp(40px, 5vw, 60px) 0 28px; }
.footer a { color: #D5E0EC; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer__links { display: grid; gap: 9px; font-size: 14px; }
.footer__bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
                  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: 13px; }

/* --- Плавающая кнопка связи ---------------------------------------------- */
.messengers { position: fixed; right: 18px; bottom: 18px; z-index: 40;
              display: flex; flex-direction: column; align-items: center; gap: 10px; }
.messengers__list {
  display: grid; gap: 10px; opacity: 0; transform: translateY(10px) scale(.9);
  pointer-events: none; transition: opacity .18s ease, transform .18s ease;
}
.messengers.is-open .messengers__list { opacity: 1; transform: none; pointer-events: auto; }
.messengers a, .messengers__toggle {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; box-shadow: var(--shadow); border: 0; cursor: pointer;
  transition: transform .16s, background .16s;
}
.messengers a:hover, .messengers__toggle:hover { transform: scale(1.07); text-decoration: none; }
.messengers a { background: var(--brand); } /* дефолт для кастомных мессенджеров */
.messengers a img { width: 26px; height: 26px; object-fit: contain; border-radius: 6px; }
.messengers .wa { background: #25D366; }
.messengers .tg { background: #29A9EB; }
/* MAX — фирменный градиент бренда, знак белый (как у остальных мессенджеров). */
.messengers .max { background: linear-gradient(135deg, #00C4FF 0%, #1E7BFF 55%, #8419FF 100%); }
.messengers__toggle { background: var(--brand); position: relative; }
.messengers.is-open .messengers__toggle { background: var(--ink); }
.messengers__toggle .ic-close { display: none; }
.messengers.is-open .messengers__toggle .ic-chat { display: none; }
.messengers.is-open .messengers__toggle .ic-close { display: block; }
.messengers__dot {
  position: absolute; top: 2px; right: 2px; width: 12px; height: 12px;
  background: #E8483D; border: 2px solid #fff; border-radius: 50%;
}
.messengers.is-open .messengers__dot { display: none; }
.messengers__toggle.is-idle { animation: wiggle 5s ease-in-out infinite; }
@keyframes wiggle {
  0%, 82%, 100% { transform: rotate(0) scale(1); }
  85%  { transform: rotate(-12deg) scale(1.08); }
  88%  { transform: rotate(10deg) scale(1.08); }
  91%  { transform: rotate(-8deg) scale(1.04); }
  94%  { transform: rotate(6deg) scale(1.02); }
  97%  { transform: rotate(-3deg) scale(1); }
}

/* --- Плейсхолдер и уведомления ------------------------------------------- */
.placeholder {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px;
  background: repeating-linear-gradient(45deg, #FFF6E5, #FFF6E5 6px, #FFEFD3 6px, #FFEFD3 12px);
  border: 1px dashed #E0B871; color: #8A5A08; font-size: inherit; font-weight: 600;
}
.notice {
  display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--accent-soft); border: 1px solid #F2DFBC; color: #6B4708; font-size: 14px;
}
.notice svg { flex: 0 0 auto; margin-top: 2px; }

/* --- Первый экран с фотографией ------------------------------------------ */
.hero--photo { position: relative; overflow: hidden; background: var(--bg-deep); color: #fff; }
.hero--photo::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--hero-img, url('../img/hero.jpg'));
  background-size: cover; background-position: 72% center;
}
.hero--photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(9,20,33,.97) 0%, rgba(9,20,33,.90) 30%,
                                       rgba(9,20,33,.52) 50%, rgba(9,20,33,.20) 72%,
                                       rgba(9,20,33,.10) 100%);
}
.hero--photo .wrap { position: relative; z-index: 2; }
.hero--photo .hero__sub { color: #C6D4E2; }
.hero--photo .hero__points li { color: #E4ECF4; }
.hero--photo .hero__points svg { color: #4ADE9B; }
.hero__grid--form { grid-template-columns: 1.08fr .92fr; align-items: start; }

/* Быстрая форма прямо на первом экране */
.quick {
  background: #fff; color: var(--ink); border-radius: var(--radius-lg);
  padding: clamp(20px, 2.6vw, 28px); box-shadow: var(--shadow-lg);
}
.quick__title { font-size: 20px; }
.quick__sub { margin-top: 6px; font-size: 14px; color: var(--muted); }
.quick form { margin-top: 18px; display: grid; gap: 12px; }
/* Поля быстрой формы крупнее — высоту пересчитываем по тому же правилу. */
.quick .input, .quick .select { padding: 15px 14px; font-size: 16px; height: calc(1.25em + 32px); }
.quick__trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px;
                padding-top: 14px; border-top: 1px solid var(--border); }

/* --- Полоса цифр --------------------------------------------------------- */
.stats {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-top: -34px; box-shadow: var(--shadow);
}
.stats__item { background: #fff; padding: 20px 18px; text-align: center; }
.stats__value { font-size: clamp(24px, 3vw, 32px); font-weight: 750; letter-spacing: -.02em; color: var(--brand); }
.stats__label { margin-top: 4px; font-size: 13.5px; color: var(--muted); line-height: 1.35; }

/* --- Что вы получаете ---------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 20px; transition: border-color .16s, box-shadow .16s, transform .16s;
}
.feature:hover { border-color: var(--border-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.feature__icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 14px;
}
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--muted); }

/* --- Призыв под блоком «от чего зависит платёж» -------------------------- */
.pf-cta {
  margin-top: 22px; padding: 22px clamp(20px, 3vw, 30px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 24px;
  background: var(--brand-soft); border: 1px solid #D3E2F8; border-radius: var(--radius-lg);
}
.pf-cta__text h3 { font-size: clamp(18px, 2.3vw, 22px); }
.pf-cta__text p { margin-top: 6px; font-size: 15px; color: var(--muted); max-width: 560px; }
.pf-cta .btn { flex: none; }

/* --- Блок с фотографией -------------------------------------------------- */
.photo-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 52px); align-items: center; }
.photo-block__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.photo-block__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.photo-block__badge {
  position: absolute; left: 16px; bottom: 16px; background: rgba(255,255,255,.96);
  border-radius: var(--radius-sm); padding: 12px 16px; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 11px; max-width: calc(100% - 32px);
}
.photo-block__badge b { display: block; font-size: 15px; }
.photo-block__badge span { font-size: 13px; color: var(--muted); }

/* --- Финальный призыв ---------------------------------------------------- */
.cta-final {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--bg-deep); color: #fff; padding: clamp(28px, 4vw, 52px);
}
.cta-final::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--cta-img, url('../img/driver.jpg'));
  background-size: cover; background-position: 30% center; opacity: .30;
}
.cta-final > * { position: relative; z-index: 2; }
.cta-final h2 { font-size: clamp(24px, 3.4vw, 36px); max-width: 640px; }
.cta-final p { margin-top: 14px; color: #C6D4E2; max-width: 560px; font-size: 16px; }
.cta-final__row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; align-items: center; }

/* --- Липкая панель призыва на мобильных ---------------------------------- */
.mobile-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: rgba(255,255,255,.97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border); padding: 10px 12px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 18px rgba(13,27,42,.10);
  gap: 10px; align-items: center;
}
.mobile-cta .btn { flex: 1; padding: 13px 18px; font-size: 15.5px; }
.mobile-cta__call {
  width: 48px; height: 48px; flex: 0 0 auto; border-radius: var(--radius-sm);
  border: 1px solid var(--border-2); display: grid; place-items: center; color: var(--ink);
}

/* --- Мягкое появление секций --------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* =============================================================================
   Адаптив (опорные ширины: 320·360·375·414·768·1024·1180·1600)
   ========================================================================== */
@media (min-width: 1600px) {
  :root { --wrap: 1320px; }
  .cars { gap: 24px; }
}
@media (max-width: 1180px) {
  .header__nav { gap: 16px; }
  .header__in { gap: 12px; }
}
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .cars { grid-template-columns: repeat(2, 1fr); }
  .review { flex-basis: calc((100% - 20px) / 2); }   /* карусель отзывов: 2 карточки в ряд */
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .compare { grid-template-columns: 1fr 1fr; }
  .tile--ours { grid-column: 1 / -1; }
  .photo-block { grid-template-columns: 1fr; }
  .hero__grid--form { grid-template-columns: 1fr; }
  .quick { max-width: 560px; }
  .hero--photo::after {
    background: linear-gradient(180deg, rgba(9,20,33,.94) 0%, rgba(9,20,33,.90) 55%, rgba(9,20,33,.94) 100%);
  }
}
@media (max-width: 900px) {
  .header__in { height: 60px; }
  .header__nav { display: none; }
  .header__burger { display: grid; place-items: center; }
  .header__right .btn { display: none; }
  .header__phone span { display: none; }
  .city { padding: 7px 10px; }
  .split { grid-template-columns: 1fr; }
  .uploads { grid-template-columns: 1fr; }
  .upload { min-height: 132px; flex-direction: row; text-align: left;
            justify-content: flex-start; padding: 16px; gap: 14px; }
  .upload__preview { position: absolute; right: 14px; top: 14px; bottom: 14px;
                     left: auto; width: 96px; border-radius: 10px; }
  .upload__badge { left: auto; right: 14px; bottom: 14px; }
  .mobile-cta.is-visible { display: flex; }
  body.has-mobile-cta { padding-bottom: 76px; }
  .messengers { right: 12px; bottom: 84px; gap: 8px; }
  .messengers a { width: 44px; height: 44px; }
  .messengers a svg { width: 20px; height: 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: -26px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .header { position: static; }
  .hero { padding: 22px 0 28px; }
  .section { padding: 34px 0; }
  .drawer__panel { padding: 14px; gap: 12px; }
  .status-card { padding: 20px; }
  .status-icon { width: 54px; height: 54px; margin-bottom: 14px; }
}
@media (max-width: 680px) {
  .cars { grid-template-columns: 1fr; }
  .review { flex-basis: 100%; }                      /* карусель отзывов: 1 карточка = 1 экран */
  .form-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .footer__bottom { flex-direction: column; gap: 10px; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn, .form-card .btn[type="submit"] { width: 100%; }
  .btn--lg { padding: 15px 22px; font-size: 16px; }
  .section__head { margin-bottom: 22px; }
  .car__media { aspect-ratio: 16 / 9; }
  .features { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; gap: 14px; }
  .tile { padding: 20px 18px; }
  .tile--ours .tile__row { font-size: 15.5px; }
  .feature { padding: 20px 18px; }
  .stats__item { padding: 16px 12px; }
  .pf-cta { padding: 20px 18px; }
  .pf-cta .btn { width: 100%; }
  .cta-final { padding: 26px 18px; }
  .cta-final__row .btn { width: 100%; }
  .photo-block__badge { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
@media (max-width: 520px) {
  .upload { flex-direction: column; text-align: center; justify-content: center;
            min-height: 132px; padding: 18px 14px; gap: 8px; }
  .upload__preview { position: absolute; inset: 0; width: auto; border-radius: 12px; }
  .upload__badge { left: 10px; right: auto; bottom: 10px; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .header__in { gap: 8px; height: 56px; }
  .logo { font-size: 18px; }
  .logo__mark { width: 29px; height: 29px; font-size: 14px; }
  .logo__img { height: 30px; max-width: 150px; }
  .header__phone { font-size: 15px; }
  .car__value { font-size: 25px; }
  .form-card { padding: 20px 16px; }
  .panel { padding: 20px 16px; }
  .faq summary { padding: 15px 44px 15px 16px; font-size: 15px; }
  .faq summary::after { right: 16px; }
  .faq p { padding: 0 16px 16px; }
  .review { padding: 20px 16px; }
}
@media (max-width: 360px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 13px; }
  .hero__title { font-size: 27px; }
  .section__title { font-size: 23px; }
  .car__value { font-size: 23px; }
  .btn { padding: 13px 16px; font-size: 15px; }
  .badge { font-size: 12px; padding: 4px 9px; }
  .messengers a { width: 42px; height: 42px; }
}
@media (max-width: 300px) {
  .wrap { padding: 0 10px; }
  .hero__title { font-size: 24px; }
  .car__value { font-size: 21px; }
}

/* --- Уважение к системным настройкам ------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* --- Служебное ----------------------------------------------------------- */
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* --- Текстовые страницы (политика, согласие, оферта) ---------------------- */
.page { padding: clamp(24px, 4vw, 44px) 0 clamp(40px, 6vw, 72px); background: var(--bg-soft); }
.page__card {
  max-width: 860px; margin: 0 auto; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: clamp(20px, 3vw, 40px);
}
.page__crumbs {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 13px; color: var(--muted); margin-bottom: 14px;
}
.page__title { font-size: clamp(23px, 3.2vw, 34px); }

/* Содержимое страницы приходит из визуального редактора админки: возвращаем
   обычные отступы и маркеры, снятые общим сбросом стилей. */
.prose { margin-top: 22px; color: var(--ink-2); }
.prose > * + * { margin-top: 14px; }
.prose h2 { font-size: clamp(19px, 2.2vw, 24px); margin-top: 30px; }
.prose h3 { font-size: 17px; margin-top: 24px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 6px; }
.prose a { text-decoration: underline; }
.prose blockquote {
  margin: 0; padding-left: 16px; color: var(--muted);
  border-left: 3px solid var(--border-2);
}
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose img { border-radius: var(--radius-sm); }

/* --- Плашка о файлах cookie ---------------------------------------------- */
/* Показывается, пока посетитель не выбрал; закрыть без выбора нельзя, поэтому
   крестика нет. Кнопки равнозначны по размеру — отказ не прячем. */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #fff; border-top: 1px solid var(--border);
  box-shadow: 0 -6px 26px rgba(13,27,42,.14);
  padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px));
}
.cookie__in {
  width: min(1180px, 100% - 32px); margin: 0 auto;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.cookie__text { flex: 1 1 420px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.cookie__title { font-weight: 700; color: var(--ink); font-size: 15.5px; margin-bottom: 4px; }
.cookie__text a { color: var(--brand); text-decoration: underline; }
.cookie__actions { display: flex; gap: 10px; flex: 0 0 auto; flex-wrap: wrap; }
.cookie__actions .btn { white-space: nowrap; }

/* Пока плашка на экране, поднимаем над ней плавающие элементы: её высоту
   скрипт кладёт в --cookie-h (текст правится в админке, высота непредсказуема). */
body.has-cookie .messengers { bottom: calc(var(--cookie-h, 0px) + 18px); }
body.has-cookie .mobile-cta { bottom: var(--cookie-h, 0px); }

@media (max-width: 720px) {
  .cookie { padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); }
  .cookie__in { width: calc(100% - 24px); gap: 12px; }
  .cookie__text { font-size: 13.5px; flex-basis: 100%; }
  .cookie__actions { width: 100%; }
  .cookie__actions .btn { flex: 1; }
  .cookie__actions { gap: 8px; }
  body.has-cookie .messengers { bottom: calc(var(--cookie-h, 0px) + 12px); }
}
