/* ============================================================
   Ate-ka.ru — проверка автомобиля
   Структура: по мотивам avtogram.app, стилистика: LAND6
   ============================================================ */

/* ---------- 1. Токены ---------- */
:root {
  --orange: #f28100;
  --orange-dark: #d97100;
  --orange-soft: #fff3e3;

  --blue: #1c83c4;
  --blue-dark: #10598c;
  --blue-light: #1694e4;
  --blue-ink: #0c2f4c;
  --blue-soft: #eaf4fb;

  --ink: #12202e;
  --text: #1d1d1d;
  --muted: #667283;
  --muted-2: #8b95a3;

  --white: #ffffff;
  --bg-soft: #f4f6fa;
  --bg-soft-2: #eceff5;
  --line: #e3e8ef;
  --line-strong: #ced6e2;

  --ok: #13924a;
  --ok-soft: #e4f6ea;
  --warn: #d98a00;
  --warn-soft: #fff4e0;
  --danger: #d63a34;
  --danger-soft: #fdeceb;

  --radius-hero: 48px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 11px;

  --shadow-sm: 0 2px 6px rgba(18, 32, 46, 0.06);
  --shadow-md: 0 8px 24px rgba(18, 32, 46, 0.08);
  --shadow-lg: 0 20px 48px rgba(12, 47, 76, 0.16);
  --shadow-orange: 0 10px 24px rgba(242, 129, 0, 0.3);

  --container: 1180px;
}

/* ---------- 2. База ---------- */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  /* iOS иначе сам увеличивает шрифт при повороте экрана */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  font-family: "Nunito Sans", "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Атрибут hidden должен побеждать display из компонентных правил. */
[hidden] {
  display: none !important;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* Видимый фокус для клавиатуры — но не рамка на каждый клик мышью. */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 6px;
}

.hero-card :focus-visible,
.offer-card :focus-visible,
.final-card :focus-visible {
  outline-color: var(--white);
}

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

  .live-track {
    animation: none !important;
  }
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- 3. Типовые элементы ---------- */
.section {
  padding: 64px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-head {
  max-width: 720px;
  margin: 0 0 34px;
}

.section-head.is-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.section-sub {
  margin-top: 12px;
  font-size: 17px;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: 13px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  background: var(--orange-dark);
}

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
}

.btn-blue:hover {
  background: var(--blue-dark);
}

.btn-wide {
  width: 100%;
}

/* Обратный отсчёт на кнопке: бейдж с цифрой и убывающая полоса снизу. */
.btn-timer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 27px;
  height: 27px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
  font-size: 14.5px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.btn-timer.is-tick {
  animation: timer-pop 0.32s ease;
}

@keyframes timer-pop {
  0% {
    transform: scale(0.72);
    opacity: 0.5;
  }
  60% {
    transform: scale(1.08);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

.is-counting {
  position: relative;
  overflow: hidden;
}

.is-counting::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: var(--countdown-width, 100%);
  background: rgba(255, 255, 255, 0.6);
  transition: width var(--countdown-duration, 1s) linear;
}

@media (prefers-reduced-motion: reduce) {
  .btn-timer.is-tick {
    animation: none;
  }
}

.btn-lg {
  min-height: 64px;
  padding: 0 34px;
  font-size: 19px;
  border-radius: 15px;
}

.btn s,
.btn b {
  white-space: nowrap;
}

.btn s {
  margin-left: 2px;
  font-weight: 700;
  opacity: 0.7;
}

.btn b {
  font-weight: 900;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.pill-ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.pill-warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.pill-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.pill-neutral {
  background: var(--bg-soft-2);
  color: var(--muted);
}

/* ---------- 4. Шапка ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex: none;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 13px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: 8px;
}

.topnav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.topnav a:hover {
  color: var(--blue-dark);
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-account {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.topbar-account:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
}

.topbar-account .icon {
  width: 19px;
  height: 19px;
  color: var(--blue);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  cursor: pointer;
  position: relative;
}

.burger span,
.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger span {
  top: 50%;
  transform: translateY(-50%);
}

.burger::before {
  top: 14px;
}

.burger::after {
  bottom: 14px;
}

.burger.is-open span {
  opacity: 0;
}

.burger.is-open::before {
  top: 21px;
  transform: rotate(45deg);
}

.burger.is-open::after {
  bottom: 21px;
  transform: rotate(-45deg);
}

/* ---------- 5. Лента последних проверок ---------- */
.live-section {
  padding: 22px 0 6px;
}

.live-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-2);
}

.live-dot {
  position: relative;
  display: inline-flex;
  width: 9px;
  height: 9px;
  flex: none;
}

.live-dot::before,
.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--danger);
}

.live-dot::before {
  animation: live-ping 1.9s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.75;
}

@keyframes live-ping {
  75%,
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.live-viewport {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}

/* Лента не крутится по кругу: раз в несколько секунд слева въезжает новая проверка,
   остальные карточки сдвигаются вправо. Сдвиг делает JS через transform трека. */
.live-track {
  display: flex;
  gap: 12px;
  width: max-content;
  will-change: transform;
}

.live-card {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
  padding: 9px 15px 9px 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: opacity 0.45s ease;
}

.live-card.is-new {
  opacity: 0;
}

.live-logo {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
}

.live-logo svg {
  width: 27px;
  height: 27px;
}

.live-model {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.live-id {
  font-size: 12.5px;
  color: var(--muted-2);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* ---------- 6. Герой ---------- */
.hero-section {
  padding: 12px 0 56px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-hero);
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(255, 255, 255, 0.16), transparent 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(242, 129, 0, 0.22), transparent 60%),
    linear-gradient(140deg, var(--blue-dark) 0%, var(--blue) 52%, var(--blue-light) 100%);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  padding: 52px 52px 46px;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
  gap: 24px;
  align-items: center;
}

.hero-counter {
  position: absolute;
  top: 0;
  right: 46px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 0 0 14px 14px;
  background: var(--ok);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(19, 146, 74, 0.35);
}

.hero-counter .icon {
  width: 17px;
  height: 17px;
}

.hero-counter b {
  font-variant-numeric: tabular-nums;
}

.hero-left {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero-title {
  font-size: clamp(30px, 4.1vw, 47px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.hero-sub {
  margin-top: 16px;
  max-width: 560px;
  font-size: 16.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.hero-sub b {
  color: var(--white);
}

.hero-form {
  margin-top: 26px;
  display: flex;
  gap: 10px;
  padding: 9px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.hero-input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.hero-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 58px;
  padding: 0 20px;
  transition: padding-right 0.15s ease;
  border: 0;
  border-radius: 13px;
  background: var(--white);
  /* Поле стоит внутри синей карточки — цвет текста задаём явно, иначе он наследует белый. */
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  outline: none;
  text-transform: uppercase;
}

.hero-input::placeholder {
  color: #9aa4b2;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.hero-input.is-invalid {
  box-shadow: inset 0 0 0 2px var(--danger);
}

/* Место под чип «Госномер» резервируем только когда он реально показан. */
.hero-input-wrap.has-chip .hero-input {
  padding-right: 124px;
}

.detect-chip {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  gap: 6px;
  max-width: 104px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  pointer-events: none;
}

.detect-chip.is-visible {
  display: inline-flex;
}

.detect-chip .icon {
  width: 14px;
  height: 14px;
}

.hero-submit {
  flex: none;
  min-width: 208px;
  height: 58px;
  border: 0;
  border-radius: 13px;
  background: var(--orange);
  color: var(--white);
  font-size: 17.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--shadow-orange);
  transition: background-color 0.18s ease, transform 0.15s ease;
}

.hero-submit:hover {
  background: var(--orange-dark);
}

.hero-submit:active {
  transform: scale(0.98);
}

.hero-submit .icon {
  width: 21px;
  height: 21px;
}

.hero-note {
  margin-top: 11px;
  min-height: 21px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
}

.hero-note.is-error {
  color: #ffd7d4;
  font-weight: 700;
}

.hero-links {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--white);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0.92;
}

.hero-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.hero-link .icon {
  width: 18px;
  height: 18px;
}

/* Компактные чипы: на десктопе укладываются в одну строку, на мобильном плотно переносятся. */
.hero-trust {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 8px;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.94);
}

.hero-trust .icon {
  width: 14px;
  height: 14px;
  color: #a6e7bd;
}

.hero-right {
  position: relative;
  min-width: 0;
  align-self: end;
}

.hero-right picture {
  display: block;
}

.hero-car {
  width: 100%;
  max-width: 560px;
  margin: 0 -30px -20px auto;
  filter: drop-shadow(0 26px 34px rgba(6, 30, 50, 0.35));
  pointer-events: none;
}

/* На широком экране машина крупнее и стоит по центру, напротив формы:
   она шире своей колонки и заходит левым краем под текст (текст выше по z-index). */
@media (min-width: 1081px) {
  .hero-right {
    align-self: center;
  }

  /* Шире своей колонки: правым краем немного выходит за паддинг карточки,
     левым — заходит на пустое место справа от формы, но не под кнопку. */
  .hero-car {
    width: 120%;
    max-width: none;
    margin: 0 0 0 calc(30px - 20%);
  }
}

/* ---------- 7. Промо-дуэт: штрафы + водительское удостоверение ---------- */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.promo-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.promo-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: var(--blue-soft);
  opacity: 0.75;
}

.promo-card.is-orange::after {
  background: var(--orange-soft);
}

.promo-icon {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.promo-card.is-orange .promo-icon {
  background: var(--orange-soft);
  color: var(--orange);
}

.promo-icon .icon {
  width: 27px;
  height: 27px;
}

.promo-card h3 {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.promo-card .card-head {
  position: relative;
  z-index: 1;
}

.promo-card > p {
  position: relative;
  z-index: 1;
  margin-top: 9px;
  color: var(--muted);
  font-size: 15.5px;
}

.promo-list {
  position: relative;
  z-index: 1;
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.promo-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.promo-list .icon {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  color: var(--ok);
}

.promo-card .btn {
  position: relative;
  z-index: 1;
  margin-top: auto;
  align-self: flex-start;
}

/* Шапка карточки: иконка слева, заголовок справа — одной строкой.
   Раньше иконка стояла отдельным блоком, а заголовок падал под неё. */
.card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.card-head h3 {
  min-width: 0;
}

/* ---------- 8. Что мы проверяем ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.feature-ico {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.feature-card:nth-child(3n + 2) .card-head .feature-ico {
  background: var(--orange-soft);
  color: var(--orange);
}

.feature-ico .icon {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  font-size: 18.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.feature-card p {
  margin-top: 8px;
  font-size: 14.8px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- 9. Пример отчёта ---------- */
.sample-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}

.sample-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px 9px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s ease;
}

.sample-tab-num {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-soft-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.sample-tab.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(28, 131, 196, 0.28);
}

.sample-tab.is-active .sample-tab-num {
  background: rgba(255, 255, 255, 0.26);
  color: var(--white);
}

/* Сцена держит высоту, пока пример «подгружается» — страница не прыгает. */
.sample-stage {
  position: relative;
  min-height: 440px;
}

.sample-loading {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 440px;
  padding: 60px 24px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.sample-loading.is-active {
  display: flex;
}

.sample-spinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid var(--bg-soft-2);
  border-top-color: var(--blue);
  animation: spin 0.8s linear infinite;
  margin-bottom: 6px;
}

.sample-loading-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.sample-loading-step {
  min-height: 22px;
  font-size: 14.5px;
  color: var(--muted);
}

.sample-progress {
  width: min(320px, 100%);
  height: 8px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--bg-soft-2);
  overflow: hidden;
}

.sample-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transition: width 0.28s ease;
}

.sample-panel {
  display: none;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.sample-panel.is-active {
  display: block;
  animation: fade-up 0.35s ease;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.sample-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  background: linear-gradient(120deg, var(--blue-ink), var(--blue-dark) 70%, var(--blue));
  color: var(--white);
}

.sample-brand {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--white);
  display: grid;
  place-items: center;
  flex: none;
}

.sample-brand svg {
  width: 38px;
  height: 38px;
}

.sample-titles h3 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sample-titles p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 3px;
}

.sample-plate {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.plate-badge {
  padding: 7px 14px;
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.06em;
  border: 2px solid #d6dde6;
}

.sample-verdict {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 26px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.sample-rows {
  padding: 6px 26px 18px;
}

.sample-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.sample-row:last-child {
  border-bottom: 0;
}

.sample-row > .icon {
  width: 22px;
  height: 22px;
  color: var(--muted-2);
  flex: none;
}

.sample-row > div:not(.sample-row-value) {
  flex: 1;
  min-width: 0;
}

.sample-row-label {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}

.sample-row-note {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 2px;
}

.sample-row-value {
  margin-left: auto;
  text-align: right;
  flex: none;
}

.sample-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 18px 26px 24px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.sample-foot p {
  font-size: 14.5px;
  color: var(--muted);
  flex: 1;
  min-width: 240px;
}

/* ---------- 10. Как это работает ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  position: relative;
  padding: 28px 24px 26px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
}

.step-num {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: var(--white);
  font-size: 19px;
  font-weight: 900;
}

.step-card h3 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.step-card p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- 11. Источники ---------- */
.sources-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 30px 34px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.sources-card picture,
.sources-card img {
  width: 96px;
  flex: none;
}

.sources-card h3 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.sources-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.sources-list li {
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- 13. FAQ ---------- */
.faq-list {
  display: grid;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
}

.faq-item[open] {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 19px 22px;
  cursor: pointer;
  list-style: none;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .icon {
  margin-left: auto;
  width: 20px;
  height: 20px;
  color: var(--muted-2);
  transition: transform 0.2s ease;
  flex: none;
}

.faq-item[open] summary .icon {
  transform: rotate(180deg);
  color: var(--blue);
}

.faq-body {
  padding: 0 22px 20px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 14. Финальный CTA ---------- */
.final-cta {
  padding: 56px 0 70px;
}

.final-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 44px 46px;
  background:
    radial-gradient(100% 140% at 100% 0%, rgba(242, 129, 0, 0.28), transparent 60%),
    linear-gradient(130deg, var(--blue-ink), var(--blue-dark) 70%, var(--blue));
  color: var(--white);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  box-shadow: var(--shadow-lg);
}

.final-card h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: -0.03em;
  flex: 1;
  min-width: 260px;
}

.final-card p {
  width: 100%;
  margin-top: -8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
}

/* ---------- 15. Подвал ---------- */
.site-footer {
  background: #0d1c29;
  color: rgba(255, 255, 255, 0.62);
  padding: 46px 0 calc(34px + env(safe-area-inset-bottom));
  font-size: 14px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 34px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.footer-brand span {
  font-size: 19px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-links {
  display: grid;
  gap: 9px 26px;
}

/* На широком экране ссылки идут в две колонки — подвал не выглядит полупустым. */
@media (min-width: 901px) {
  .footer-col .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.footer-links a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.pay-chip {
  padding: 7px 13px;
  border-radius: 8px;
  background: var(--white);
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  font-style: italic;
}

.pay-visa {
  color: #1a1f71;
}

.pay-mc {
  color: #eb001b;
}

.pay-mir {
  color: #0f754e;
}

.pay-sbp {
  color: #1f2a63;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom p {
  max-width: 620px;
}

/* ---------- 16. Модальные окна ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 22, 34, 0.66);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.modal-backdrop.is-open {
  display: flex;
  animation: fade-in 0.18s ease;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  padding: 34px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  animation: modal-pop 0.22s ease;
}

@keyframes modal-pop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal-card.is-wide {
  width: min(760px, 100%);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--bg-soft-2);
  color: var(--ink);
}

.modal-head h2 {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  padding-right: 40px;
}

.modal-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.modal-form {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.field-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.field {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 54px;
  padding: 0 18px;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(28, 131, 196, 0.16);
}

.field.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(214, 58, 52, 0.14);
}

.field-error {
  min-height: 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--danger);
}

.modal-consent {
  font-size: 12.8px;
  color: var(--muted-2);
  line-height: 1.5;
}

.guide-section + .guide-section {
  margin-top: 26px;
}

.guide-section h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.guide-section p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 12px;
}

.guide-section figure {
  margin: 0 0 14px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}

/* ---------- 16b. Модалка «сервис в разработке» ---------- */
.dev-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 22, 34, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.dev-modal.is-open {
  display: flex;
  animation: fade-in 0.2s ease;
}

.dev-card {
  width: min(430px, 100%);
  padding: 32px 30px;
  border-radius: 22px;
  background: rgba(18, 32, 46, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-lg);
  color: var(--white);
  text-align: center;
  animation: modal-pop 0.24s ease;
}

.dev-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(242, 129, 0, 0.18);
  color: var(--orange);
}

.dev-icon .icon {
  width: 28px;
  height: 28px;
}

.dev-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dev-text {
  margin-top: 10px;
  font-size: 14.8px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- 17. Оверлей «идёт проверка» ---------- */
.check-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  /* Полностью перекрываем страницу: во время проверки ничто не должно отвлекать. */
  background:
    radial-gradient(90% 90% at 50% 0%, rgba(28, 131, 196, 0.32), transparent 62%),
    #08161f;
  color: var(--white);
}

.check-overlay.is-open {
  display: flex;
  animation: fade-in 0.2s ease;
}

.check-box {
  width: min(560px, 100%);
  text-align: center;
}

.check-plate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 22px;
}

.check-box h2 {
  font-size: clamp(23px, 3.4vw, 30px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.check-progress {
  position: relative;
  height: 9px;
  margin: 24px 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.check-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), #ffb04d);
  transition: width 0.4s ease;
}

.check-percent {
  font-size: 14px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.72);
  font-variant-numeric: tabular-nums;
}

.check-steps {
  margin: 26px auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
  text-align: left;
  max-width: 420px;
}

.check-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.check-steps li.is-shown {
  opacity: 1;
  transform: none;
  color: rgba(255, 255, 255, 0.86);
}

.check-steps li .icon {
  width: 18px;
  height: 18px;
  color: var(--ok);
  opacity: 0;
  transition: opacity 0.25s ease;
  flex: none;
}

.check-steps li.is-done .icon {
  opacity: 1;
}

.check-steps li .spin {
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--orange);
  animation: spin 0.8s linear infinite;
}

.check-steps li.is-done .spin {
  display: none;
}

.check-steps li:not(.is-done) .icon {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- 17b. Плавающая кнопка оплаты (мобильная) ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 65;
  display: none;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(120%);
  transition: transform 0.3s ease;
}

.sticky-cta.is-visible {
  transform: none;
}

.sticky-cta .btn {
  width: 100%;
  min-height: 56px;
  font-size: 16.5px;
  padding: 0 16px;
}

/* Пока видна плавающая панель, кнопку «наверх» убираем — она только мешает. */
.sticky-cta.is-visible ~ .scroll-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

/* ---------- 18. Кнопка «наверх» ---------- */
.scroll-top {
  position: fixed;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 70;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 15px;
  background: var(--blue);
  color: var(--white);
  cursor: pointer;
  display: none;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.22s ease;
  box-shadow: var(--shadow-md);
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Контейнер шириной 1180 — свободные поля появляются только от 1320 px.
   Раньше кнопка на любом экране накрывала карточки и CTA. */
@media (min-width: 1320px) {
  .scroll-top {
    display: grid;
  }
}

.scroll-top .icon {
  width: 22px;
  height: 22px;
  transform: rotate(-90deg);
}

/* ============================================================
   СТРАНИЦА ОТЧЁТА
   ============================================================ */

.report-hero {
  padding: 26px 0 32px;
}

.report-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-hero);
  padding: 36px 42px;
  background:
    radial-gradient(110% 130% at 100% 0%, rgba(255, 255, 255, 0.14), transparent 55%),
    linear-gradient(140deg, var(--blue-ink) 0%, var(--blue-dark) 55%, var(--blue) 100%);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.report-auto {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.report-brand {
  width: 74px;
  height: 74px;
  flex: none;
  border-radius: 20px;
  background: var(--white);
  display: grid;
  place-items: center;
}

.report-brand svg {
  width: 48px;
  height: 48px;
}

.report-auto-meta p {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.66);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.report-auto-meta h1 {
  font-size: clamp(22px, 2.8vw, 31px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-top: 4px;
}

.report-hero-right {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.report-plate {
  padding: 9px 18px;
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.07em;
  border: 3px solid rgba(255, 255, 255, 0.5);
}

.report-plate.is-long {
  font-size: 15px;
  letter-spacing: 0.03em;
}

.report-hero-note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  text-align: right;
}

.report-risk-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.risk-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 14.5px;
  font-weight: 700;
}

.risk-chip .icon {
  width: 18px;
  height: 18px;
}

.risk-chip b {
  font-weight: 900;
}

.risk-chip.is-danger {
  background: rgba(255, 120, 112, 0.22);
  color: #ffd9d6;
}

.risk-chip.is-warn {
  background: rgba(255, 196, 112, 0.22);
  color: #ffe2b8;
}

.risk-chip.is-ok {
  background: rgba(112, 224, 158, 0.18);
  color: #cdf5dd;
}

/* Прогресс сбора данных */
.report-headline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 20px;
}

.report-headline h2 {
  font-size: clamp(23px, 3vw, 31px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.report-date {
  margin-left: auto;
  font-size: 13.5px;
  color: var(--muted-2);
  font-weight: 600;
}

.loader-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 12px;
}

.loader-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--white);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.loader-mark {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  color: var(--muted-2);
}

.loader-mark .icon {
  width: 18px;
  height: 18px;
}

.loader-card.is-loading .loader-mark {
  border: 2px solid var(--line-strong);
  border-top-color: var(--blue);
  background: transparent;
  animation: spin 0.8s linear infinite;
}

.loader-card.is-loading .loader-mark .icon {
  display: none;
}

.loader-label {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.loader-value {
  font-size: 13px;
  color: var(--muted-2);
  font-weight: 600;
  margin-top: 1px;
}

.loader-card.is-done {
  border-color: #cfe8d9;
  background: #f6fcf8;
}

.loader-card.is-done .loader-mark {
  background: var(--ok-soft);
  color: var(--ok);
}

.loader-card.is-done .loader-value {
  color: var(--ok);
}

/* Жёлтый — «потенциальная проблема», красный — «требует внимания». */
.loader-card.is-warn {
  border-color: #f6e2bd;
  background: #fffaf1;
}

.loader-card.is-warn .loader-mark {
  background: var(--warn-soft);
  color: var(--warn);
}

.loader-card.is-warn .loader-value {
  color: var(--warn);
}

.loader-card.is-alert {
  border-color: #f6d3d0;
  background: #fef8f7;
}

.loader-card.is-alert .loader-mark {
  background: var(--danger-soft);
  color: var(--danger);
}

.loader-card.is-alert .loader-value {
  color: var(--danger);
}

.loader-value.is-masked {
  letter-spacing: 0.14em;
  color: var(--muted-2);
}

/* Кнопка «Получить отчёт» под блоками проверки */
.report-cta {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.report-cta.is-hero {
  margin-top: 22px;
}

/* Демо-блок краткого отчёта */
.demo-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.demo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.demo-head-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.demo-photo-pill {
  margin-left: auto;
}

.demo-head h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.demo-rows {
  padding: 4px 26px 20px;
}

.demo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.demo-row:last-child {
  border-bottom: 0;
}

.demo-row > .icon {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--muted-2);
}

.demo-row-main {
  min-width: 0;
}

.demo-row-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}

.demo-row-note {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 2px;
}

.demo-row-value {
  margin-left: auto;
  flex: none;
  text-align: right;
}

.demo-row.is-locked .demo-row-value {
  filter: blur(5px);
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

.demo-locked-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 26px 22px;
  padding: 15px 18px;
  border-radius: var(--radius-md);
  background: var(--orange-soft);
  border: 1px dashed #f5c68a;
  font-size: 14.5px;
  font-weight: 700;
  color: #8a5200;
}

.demo-locked-hint .icon {
  width: 20px;
  height: 20px;
  color: var(--orange);
  flex: none;
}

/* Блок «Получить полный отчёт» */
.offer-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 42px 40px 40px;
  background:
    radial-gradient(90% 130% at 100% 0%, rgba(242, 129, 0, 0.3), transparent 62%),
    linear-gradient(135deg, var(--blue-ink), var(--blue-dark) 72%, var(--blue));
  color: var(--white);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.offer-card > * {
  position: relative;
  z-index: 1;
}

.offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.offer-badge .icon {
  width: 15px;
  height: 15px;
}

.offer-card h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.offer-old {
  margin-left: 6px;
  font-size: 0.62em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: line-through;
}

.offer-price {
  color: #ffc470;
  white-space: nowrap;
}

.offer-card .btn {
  display: flex;
  width: max-content;
  max-width: 100%;
  min-width: 300px;
  margin: 24px auto 0;
}

.offer-consent {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 460px;
  margin: 16px auto 0;
  font-size: 12.8px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.offer-consent input {
  margin-top: 1px;
  width: 17px;
  height: 17px;
  flex: none;
  accent-color: var(--orange);
}

.offer-card .field-error {
  color: #ffd7d4;
}

.offer-text {
  max-width: 620px;
  margin: 26px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.78);
}

.email-benefits {
  max-width: 760px;
  margin: 20px auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  text-align: left;
}

.email-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.8px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.email-benefits .icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: #8fe6b4;
  flex: none;
}

/* Модалка «почта → способ оплаты» */
.pay-card {
  width: min(520px, 100%);
}

.pay-card .modal-head p {
  font-size: 15.5px;
  line-height: 1.5;
}

.pay-form {
  margin-top: 22px;
  display: grid;
  gap: 6px;
}

.pay-field {
  position: relative;
}

.pay-field .field {
  height: 58px;
  padding-right: 52px;
  font-size: 17px;
  font-weight: 600;
}

.pay-field-mark {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  display: none;
  pointer-events: none;
}

.pay-field-mark .icon {
  width: 22px;
  height: 22px;
  stroke-width: 2.4;
}

.pay-mark-ok {
  color: var(--ok);
}

.pay-mark-bad {
  color: var(--danger);
}

.pay-field.is-valid .pay-field-mark,
.pay-field.is-error .pay-field-mark {
  display: block;
}

.pay-field.is-valid .pay-mark-bad,
.pay-field.is-error .pay-mark-ok {
  display: none;
}

.pay-field.is-error .field {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(242, 129, 0, 0.16);
}

.pay-field.is-valid .field {
  border-color: var(--line-strong);
}

/* Условия появляются, когда почта введена корректно — с лёгким раскрытием */
.pay-terms {
  display: grid;
  gap: 14px;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    max-height 0.34s ease,
    margin 0.28s ease,
    opacity 0.26s ease,
    transform 0.26s ease;
}

.pay-terms.is-visible {
  max-height: 420px;
  margin: 10px 0 4px;
  opacity: 1;
  transform: none;
}

.pay-term {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease 0.08s, transform 0.3s ease 0.08s;
}

.pay-terms.is-visible .pay-term {
  opacity: 1;
  transform: none;
}

.pay-terms.is-visible .pay-term:nth-child(2) {
  transition-delay: 0.18s;
}

.pay-term {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
}

.pay-term input {
  margin-top: 1px;
  width: 21px;
  height: 21px;
  flex: none;
  accent-color: var(--blue-ink);
}

.pay-link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pay-link:hover {
  color: var(--blue-dark);
}

.pay-summary {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}

.pay-summary-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  font-size: 15px;
  color: var(--muted);
}

.pay-summary-row > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pay-summary-row::after {
  content: "";
  order: 1;
  flex: 1;
  height: 1px;
  margin: 0 4px;
  border-bottom: 1px dotted var(--line-strong);
}

.pay-summary-row > :last-child {
  order: 2;
}

.pay-summary-row s {
  color: var(--muted-2);
}

.pay-promo {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.pay-summary-row.is-total {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}

.pay-summary-row.is-total b {
  font-size: 20px;
  font-weight: 900;
  color: var(--ok);
}

.pay-method {
  width: 100%;
  min-height: 60px;
  margin-top: 12px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.18s ease;
}

.pay-method:hover {
  filter: brightness(1.06);
}

.pay-method:active {
  transform: scale(0.99);
}

.pay-method.is-sber {
  background: #21a038;
}

.pay-method.is-tpay {
  background: #ffdd2d;
  color: #1b1b1b;
}

.pay-method.is-card {
  background: var(--ink);
}

.pay-method .icon {
  width: 26px;
  height: 26px;
}

/* Слева фирменный знак, справа подпись. */
.pay-method .pay-logo {
  display: block;
  width: 28px;
  height: 28px;
}

/* Знак Сбера многоцветный — ставим его на белый круг, иначе теряется на зелёном. */
.pay-mark {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
}

.pay-mark .pay-logo {
  width: 22px;
  height: 22px;
}

.pay-logo-tpay {
  width: 30px;
  height: 30px;
}

.pay-email-line {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  font-size: 14.5px;
  color: var(--muted);
}

.pay-email-line b {
  color: var(--ink);
}

.pay-email-line button {
  border: 0;
  background: none;
  padding: 0 0 0 4px;
  color: var(--orange);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
}

.pay-email-line button:hover {
  text-decoration: underline;
}


/* Аккордеон полного отчёта */
.accordion-list {
  display: grid;
  gap: 9px;
}

.accordion-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
}

.accordion-item[open] {
  border-color: var(--blue);
}

.accordion-item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.item-lock {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  color: var(--muted-2);
}

.item-lock.is-accent {
  background: var(--orange-soft);
  color: var(--orange);
}

.item-lock .icon {
  width: 17px;
  height: 17px;
}

.accordion-item summary > .icon {
  margin-left: auto;
  width: 20px;
  height: 20px;
  color: var(--muted-2);
  transition: transform 0.2s ease;
  flex: none;
}

.accordion-item[open] summary > .icon {
  transform: rotate(180deg);
  color: var(--blue);
}

.accordion-body {
  padding: 0 20px 18px 66px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}

.accident-figure {
  position: relative;
  margin: 0 0 14px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  max-width: 420px;
}

.accident-figure img {
  filter: blur(6px);
  transform: scale(1.04);
}

.accident-badge {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(12, 47, 76, 0.44);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
}

.accident-badge .icon {
  width: 26px;
  height: 26px;
}

/* ---------- 19. Адаптив ---------- */
@media (max-width: 1080px) {
  .hero-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 46px 36px 0;
  }

  .hero-right {
    order: 2;
  }

  .hero-car {
    margin: 12px auto -8px;
    max-width: 460px;
  }

  .hero-counter {
    right: 24px;
  }

  .features-grid,
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .topnav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 20px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }

  .topnav.is-open {
    display: flex;
  }

  .topnav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .burger {
    display: block;
  }

  .topbar-account span {
    display: none;
  }

  .topbar-account {
    padding: 0;
    width: 44px;
    justify-content: center;
  }

  .promo-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Рядом с иконкой заголовок должен ложиться максимум в две строки */
  .promo-card h3 {
    font-size: 20px;
  }

  .promo-icon {
    width: 46px;
    height: 46px;
  }

  .sources-card {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    justify-items: center;
  }

  .sources-card picture,
  .sources-card img {
    margin: 0 auto;
  }

  .sources-list {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  :root {
    --radius-hero: 26px;
    --radius-lg: 18px;
  }

  .section {
    padding: 44px 0;
  }

  .container {
    width: calc(100% - 32px);
  }

  .hero-section {
    padding-bottom: 34px;
  }

  .hero-card {
    padding: 58px 22px 0;
  }

  .hero-counter {
    left: 0;
    right: 0;
    width: max-content;
    max-width: calc(100% - 24px);
    margin: 0 auto;
    transform: none;
    font-size: 12.5px;
    padding: 7px 14px;
  }

  .hero-form {
    flex-direction: column;
    padding: 10px;
    gap: 9px;
  }

  /* 16px — минимум, при котором iOS не зумит страницу на фокусе поля. */
  .hero-input,
  .field {
    font-size: 16px;
  }

  .hero-input-wrap.has-chip .hero-input {
    padding-right: 106px;
  }

  .detect-chip {
    font-size: 11.5px;
    padding: 4px 9px;
    max-width: 92px;
  }

  .hero-submit {
    width: 100%;
    min-width: 0;
  }

  .features-grid,
  .steps-grid,
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }

  /* На телефоне все кнопки-действия тянем на всю ширину — попасть пальцем проще. */
  .btn {
    width: 100%;
  }

  .promo-card .btn {
    align-self: stretch;
  }

  .sample-foot .btn {
    flex: 1 0 100%;
  }

  .report-hero-card {
    padding: 26px 20px;
  }

  .report-hero-right {
    margin-left: 0;
    align-items: flex-start;
    width: 100%;
  }

  .report-hero-note {
    text-align: left;
  }

  .sample-top,
  .sample-verdict,
  .sample-rows,
  .sample-foot,
  .demo-head,
  .demo-rows {
    padding-left: 18px;
    padding-right: 18px;
  }

  .sample-plate {
    margin-left: 0;
    width: 100%;
  }

  .demo-locked-hint {
    margin-left: 18px;
    margin-right: 18px;
  }

  .final-card {
    padding: 28px 22px;
  }

  .offer-card {
    padding: 30px 20px 28px;
  }

  .offer-card .btn {
    width: 100%;
    min-width: 0;
  }

  .email-benefits {
    grid-template-columns: minmax(0, 1fr);
  }

  .btn-lg {
    min-height: 58px;
    font-size: 16.5px;
    padding: 0 18px;
  }

  .pay-summary-row {
    font-size: 14px;
  }

  .modal-card {
    padding: 26px 20px;
  }

  .accordion-body {
    padding-left: 20px;
  }
}

@media (max-width: 720px) {
  .sticky-cta {
    display: block;
  }

  /* «N из 18 источников» — к правому краю строки заголовка,
     плашка про фотографии уезжает на отдельную строку слева. */
  .demo-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .demo-head-row {
    justify-content: space-between;
    gap: 10px;
  }

  /* Заголовок и счётчик должны уместиться в одну строку. */
  .demo-head h3 {
    font-size: 18px;
    white-space: nowrap;
  }

  .demo-head .pill-neutral {
    font-size: 12px;
    padding: 5px 10px;
  }

  .demo-photo-pill {
    margin-left: 0;
    align-self: flex-start;
  }
}

@media (max-width: 560px) {
  /* Три «Пример N» не помещаются в строку обычными пилюлями — делаем сегмент-контрол. */
  .sample-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .sample-tab {
    justify-content: center;
    gap: 7px;
    padding: 8px 6px;
    font-size: 13px;
  }

  .sample-tab-num {
    width: 21px;
    height: 21px;
    font-size: 12px;
  }

  /* На узком экране значение уводим на отдельную строку — текст перестаёт «лесенкой» рваться. */
  .sample-row,
  .demo-row {
    flex-wrap: wrap;
  }

  .sample-row-value,
  .demo-row-value {
    width: 100%;
    margin: 8px 0 0 36px;
    text-align: left;
  }
}
