/* Автосалон — лендинг «Мой первый автомобиль». Классы с префиксом av- */

:root {
  --av-ink: #2c313b;
  --av-blue: #f5661e;
  --av-blue-dark: #d94f0e;
  --av-mint: #ff8a3d;
  --av-forest: #101216;
  --av-grey: #f4f5f7;
  --av-line: #e4e7ec;
  --av-mut: #667080;
  --av-mut2: #596375;
  --av-sub: #525c6b;
  --av-navy: #17181c;
  --av-r-card: 20px;
  --av-r-btn: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--av-ink);
  background: var(--av-grey);
  letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

.av-container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
@media (min-width: 1440px) { .av-container { padding: 0; } }

.av-section { padding: 104px 0; }
.av-section--white { background: #fff; }

.av-h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 36px;
  line-height: 1.16;
  letter-spacing: -.028em;
  margin-bottom: 40px;
}
.av-h2--sm { font-size: 31px; margin-bottom: 10px; }

/* ---------- Кнопки ---------- */
.av-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--av-r-btn);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
  padding: 17px 30px;
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s, transform .18s;
}
/* основной CTA — анимированный кобальтовый градиент (бесшовный цикл) */
.av-btn--primary {
  color: #fff;
  background-image: linear-gradient(115deg, #d94f0e, #f5661e, #ff8a3d, #f5661e, #d94f0e);
  background-size: 300% 100%;
  animation: av-btn-flow 6.5s linear infinite;
}
.av-btn--primary:hover { filter: brightness(1.06); animation-duration: 2.6s; }
@keyframes av-btn-flow {
  from { background-position: 0% 50%; }
  to { background-position: 300% 50%; }
}
.av-btn--glow { box-shadow: 0 10px 30px rgba(245, 102, 30, .45); }
.av-btn--glow:hover { box-shadow: 0 12px 34px rgba(217, 79, 14, .5); }
.av-btn--ghost {
  background: rgba(255, 255, 255, .6);
  border: 1.5px solid #99a3b2;
  color: var(--av-ink);
}
.av-btn--ghost:hover { background: #fff; border-color: var(--av-ink); }
/* на тёмном hero — тёмная стеклянная ghost-кнопка со светлым текстом */
.av-hero__actions .av-btn--ghost {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .32);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.av-hero__actions .av-btn--ghost:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .55); }
.av-btn--white { background: #fff; color: var(--av-blue); }
.av-btn--white:hover { background: #ffe9dd; }
.av-btn--outline {
  background: transparent;
  border: 1.5px solid #c7ccd4;
  color: var(--av-ink);
}
.av-btn--outline:hover { border-color: var(--av-blue); color: var(--av-blue); }
.av-btn--sm { padding: 11px 20px; font-size: 15px; }
.av-btn--lg { padding: 15px 32px; }

/* ---------- Чипы ---------- */
.av-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid #d9dee5;
  font-size: 14px;
  font-weight: 700;
  color: var(--av-ink);
}
.av-chip__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--av-blue); }
.av-chip--solid { background: var(--av-blue); border-color: var(--av-blue); color: #fff; }
.av-chip--line { background: transparent; border-color: #bfc7d4; color: var(--av-mut2); }
/* акцент на выгоде — светло-кобальтовая заливка */
.av-chip--save { background: rgba(245, 102, 30, .1); border-color: transparent; color: var(--av-blue-dark); }

/* хиро-десриптор: зелёно-стеклянная пилюля с контекстным мятным значком */
.av-hero__content .av-chip {
  padding: 6px 18px 6px 6px;
  gap: 10px;
  background: linear-gradient(118deg, rgba(245, 102, 30, .42), rgba(16, 17, 21, .5));
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  border: 1px solid rgba(255, 171, 110, .42);
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .02em;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}
.av-chip__ic {
  width: 26px; height: 26px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--av-mint);
  color: #0e0f13;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(255, 138, 61, .5);
}
.av-chip__ic svg { width: 15px; height: 15px; }

/* ---------- Точки слайдеров ---------- */
.av-dot {
  width: 8px; height: 8px;
  border-radius: 100px;
  border: 0;
  padding: 0;
  background: rgba(23, 25, 30, .25);
  /* исключение: width-анимация допустима — изолированный ряд из 3 точек, дельта 20px */
  transition: width .25s, background .25s;
}
.av-dot.is-active { width: 28px; background: var(--av-blue); }
/* точки на тёмном hero — светлые (тёмный дефолт невидим на фото) */
.av-hero__dots .av-dot { background: rgba(255, 255, 255, .45); }
.av-hero__dots .av-dot.is-active { background: var(--av-mint); }

/* ---------- Хедер ---------- */
.av-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--av-line);
}
.av-header__in { display: flex; align-items: center; height: 72px; }
.av-logo { display: flex; align-items: center; gap: 10px; }
.av-logo__mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--av-blue);
  color: #fff;
  font-family: 'Unbounded', sans-serif;
  font-size: 13px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.av-logo__word {
  font-family: 'Unbounded', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--av-ink);
}
.av-logo__word em { font-style: normal; color: var(--av-blue); }
.av-logo__box { display: flex; flex-direction: column; gap: 1px; }
.av-logo__tag { font-size: 11px; font-weight: 600; line-height: 1.2; color: var(--av-mut); }
.av-logo--invert .av-logo__word { color: #fff; }
.av-nav { display: flex; align-items: center; gap: 22px; margin-left: 44px; }
.av-nav a { font-size: 15px; font-weight: 600; color: var(--av-ink); transition: color .18s; }
.av-nav a:hover { color: var(--av-blue); }
/* акцент активного пункта — подсвеченная кобальтовая пилюля (без нижней полоски) */
.av-nav a.is-active {
  color: var(--av-blue-dark);
  background: rgba(245, 102, 30, .1);
  padding: 7px 14px;
  border-radius: 100px;
}
.av-nav a.is-active:hover { background: rgba(245, 102, 30, .16); color: var(--av-blue-dark); }
.av-header__side { margin-left: auto; display: flex; align-items: center; gap: 20px; }
/* телефон и CTA — одинаковой высоты, ровно в одну линию */
.av-header__side .av-btn { height: 44px; }
.av-header__phone {
  display: inline-flex;
  align-items: center;
  height: 44px;
  gap: 8px;
  padding: 0 18px;
  border-radius: 100px;
  background: rgba(245, 102, 30, .09);
  color: var(--av-blue);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .18s, color .18s;
}
.av-header__phone:hover { background: var(--av-blue); color: #fff; }
.av-header__phone-ic { flex-shrink: 0; }

/* ---------- Хиро ---------- */
/* первый экран во всю высоту вьюпорта за вычетом sticky-хедера (72px) */
.av-hero { position: relative; min-height: calc(100dvh - 72px); }
.av-hero__slides { position: absolute; inset: 0; overflow: hidden; }
.av-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility .7s;
}
.av-hero__slide.is-active { opacity: 1; visibility: visible; }
.av-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  /* смещаем вправо: при обрезке боков на высоком экране авто (оно справа)
     остаётся целиком, а режется тёмная левая зона под текстом */
  background-position: 84% center;
  transform-origin: 84% 40%;
}
/* фокусный момент: медленный наезд камеры на активном слайде */
.av-hero__slide.is-active .av-hero__bg { animation: av-kenburns 9s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes av-kenburns { from { transform: scale(1); } to { transform: scale(1.045); } }
/* третий баннер — изображение поднято выше */
.av-hero__slide:nth-child(3) .av-hero__bg { background-position: 88% 45%; }
/* тёмный скрим слева — читаемость белого текста поверх тёплого фото */
.av-hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(23, 24, 28, .94) 0%, rgba(23, 24, 28, .82) 26%, rgba(23, 24, 28, .5) 46%, rgba(23, 24, 28, .12) 62%, rgba(23, 24, 28, 0) 74%),
    linear-gradient(180deg, rgba(23, 24, 28, .35) 0%, rgba(23, 24, 28, 0) 30%);
  pointer-events: none;
}
.av-hero__content { position: relative; padding-top: 88px; }
.av-hero__title {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 64px;
  line-height: .98;
  letter-spacing: -.04em;
  margin: 26px 0 0;
  min-height: 126px; /* фикс 2 строк — элементы ниже не «ездят» между слайдами */
  color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
/* акцентная цена — ярче и с тёплым свечением для выразительности */
.av-hero__title .av-accent {
  color: var(--av-mint);
  text-shadow: 0 4px 30px rgba(245, 102, 30, .5);
  white-space: nowrap; /* «18 800 ₽/мес.» не рвётся на переносе */
}
.av-hero__text {
  margin-top: 26px;
  font-size: 19px;
  line-height: 30px;
  min-height: 60px; /* фикс 2 строк подзаголовка */
  color: rgba(255, 255, 255, .82);
}
/* кнопки опущены в нижнюю зону оффера */
.av-hero__actions { margin-top: 130px; display: flex; gap: 14px; }
.av-accent { color: var(--av-blue); }
.av-hero__bottom {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 5;
  margin-left: auto; margin-right: auto;
}
/* точки — в потоке сразу под кнопками (двигаются вместе с ними) */
.av-hero__dots { display: flex; gap: 8px; margin-top: 24px; }

/* инфографика преимуществ кредита — над формой подбора, по правому краю сетки */
.av-hero__facts { display: flex; justify-content: flex-end; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.av-hero__fact {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px 11px 11px;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 15px;
  box-shadow: 0 12px 34px rgba(23, 25, 30, .1);
}
.av-hero__fact-ic {
  width: 46px; height: 46px; flex-shrink: 0;
  display: grid; place-items: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(217, 79, 14, .18);
}
.av-hero__fact-ic svg { width: 26px; height: 26px; }
.av-hero__fact-txt { font-size: 13px; font-weight: 600; color: var(--av-mut); line-height: 1.25; }
.av-hero__fact-txt b {
  display: block;
  font-family: 'Manrope', sans-serif; font-weight: 600;
  font-size: 20px; color: var(--av-ink);
}
.av-hero__fact-hand, .av-hero__fact-arc, .av-hero__fact-card { transform-box: view-box; transform-origin: 16px 16px; }
.av-hero__fact-arc { stroke-dasharray: 55 80; }
@media (prefers-reduced-motion: no-preference) {
  .av-hero__fact-arc  { animation: av-ic-spin 8s linear infinite; }
  .av-hero__fact-hand { animation: av-ic-spin 6s linear infinite; }
  .av-hero__fact-card { animation: av-ic-insert 2.6s ease-in-out infinite; }
}

/* Подбор авто — прижат к нижней кромке экрана, закругление только сверху */
.av-pick {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 14px 14px 18px;
  box-shadow: 0 -12px 44px rgba(0, 0, 0, .16);
}
.av-pick__field {
  flex: 1;
  padding: 10px 22px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.av-pick__field + .av-pick__field { border-left: 1px solid var(--av-line); }
.av-pick__label { font-size: 13px; font-weight: 700; color: var(--av-mut); }
.av-pick__btn { padding: 19px 34px; white-space: nowrap; }

/* select2 внутри подбора — без рамок, в стиле панели */
.av-pick .select2-container { width: 100% !important; }
.av-pick .select2-container .select2-selection--single {
  border: 0;
  background: transparent;
  height: 18px;
}
.av-pick .select2-container .select2-selection--single .select2-selection__rendered {
  padding: 0 18px 0 0;
  line-height: 21px;
  font-size: 16px;
  font-weight: 700;
  color: var(--av-ink);
}
.av-pick .select2-container .select2-selection--single .select2-selection__arrow { height: 18px; right: 0; }
.select2-dropdown {
  border: 1px solid var(--av-line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
  margin-top: 14px;
}
.select2-dropdown .select2-results__option { padding: 10px 18px; font-size: 15px; }
.select2-dropdown .select2-results__option--highlighted[aria-selected],
.select2-dropdown .select2-results__option--highlighted.select2-results__option--selectable { background: var(--av-blue); color: #fff; }

/* ---------- Автокредит ---------- */
.av-credit { padding: 80px 0; }
.av-credit__sub { color: var(--av-sub); font-size: 18px; line-height: 1.5; margin: -16px 0 36px; }
.av-calc {
  display: flex;
  gap: 48px;
  background: var(--av-grey);
  border-radius: 24px;
  padding: 24px 24px 24px 44px;
}
.av-calc__sliders { flex: 1; padding: 40px 0; display: flex; flex-direction: column; gap: 34px; }
.av-calc__caption { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.av-calc__caption span { font-size: 16px; font-weight: 700; color: var(--av-ink); }
.av-calc__caption b { font-size: 21px; font-weight: 700; color: var(--av-blue); white-space: nowrap; }
.av-calc__result {
  width: 400px;
  flex-shrink: 0;
  background-image: linear-gradient(120deg, #c9490d, #f5661e, #f97a2e, #f5661e, #c9490d);
  background-size: 260% 100%;
  border-radius: var(--av-r-card);
  padding: 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
/* плавный, едва заметный перелив — мягкая палитra, медленное дыхание */
@media (prefers-reduced-motion: no-preference) {
  .av-calc__result { animation: av-calc-flow 22s ease-in-out infinite; }
}
@keyframes av-calc-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.av-calc__result-label { font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, .9); }
.av-calc__payment {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 8.5vw, 42px);
  line-height: 1.1;
  white-space: nowrap;
  color: #fff;
  margin: 14px 0 18px;
}
.av-calc__note { font-size: 14px; line-height: 22px; color: rgba(255, 255, 255, .9); margin-bottom: 18px; }
/* инфографика условий кредита внутри синей карточки */
.av-calc__perks {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.av-calc__perk { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 7px; }
.av-calc__perk-ic { width: 26px; height: 26px; flex-shrink: 0; }
.av-calc__perk b {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}
.av-calc__perk span { font-size: 12px; line-height: 1.1; color: rgba(255, 255, 255, .82); }
.av-calc__result .av-btn { align-self: stretch; margin-top: auto; }
/* оживляем иконки условий: дуга орбитирует, стрелка часов идёт по кругу, карта «вставляется» */
.av-ic-arc, .av-ic-hand, .av-ic-card { transform-box: view-box; transform-origin: 12px 12px; }
.av-ic-arc { transform: rotate(-90deg); }
@media (prefers-reduced-motion: no-preference) {
  .av-ic-arc  { animation: av-ic-spin 7s linear infinite; }
  .av-ic-hand { animation: av-ic-spin 6s linear infinite; }
  .av-ic-card { animation: av-ic-insert 2.6s ease-in-out infinite; }
}
@keyframes av-ic-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes av-ic-insert {
  0%, 100% { transform: translateX(-2.5px); opacity: .5; }
  50%      { transform: translateX(1px);   opacity: 1; }
}

/* ion.rangeSlider — скин под макет */
.av-calc .irs { height: 36px; }
.av-calc .irs-line { top: 14px; height: 6px; background: var(--av-line); border-radius: 3px; }
.av-calc .irs-bar { top: 14px; height: 6px; background: var(--av-blue); border-radius: 3px; }
.av-calc .irs-handle {
  top: 7px;
  width: 20px; height: 20px;
  border: 2px solid var(--av-blue);
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(245, 102, 30, .35);
  cursor: grab;
}
.av-calc .irs-handle > i { display: none !important; }
.av-calc .irs-min, .av-calc .irs-max, .av-calc .irs-from, .av-calc .irs-to, .av-calc .irs-single { display: none; }
/* первый ползунок «Стоимость автомобиля» — бегунок в виде машинки сбоку */
.av-calc__row--car .irs-handle {
  width: 66px; height: 24px;
  top: 5px;
  /* ion центрирует ручку на значении (край = значение − ширина/2 = −33px);
     сдвигаем вправо так, чтобы задний край авто был на 3px левее конца линии
     → синяя линия уходит ровно на 3px под автомобиль */
  margin-left: 30px;
  border: 0;
  border-radius: 0;
  background: url(../img/calc-car.svg) left center / contain no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 4px 6px rgba(23, 25, 30, .28));
}
@media (prefers-reduced-motion: no-preference) {
  .av-calc__row--car .irs-handle { transition: transform .18s ease; }
  .av-calc__row--car .irs-handle:hover { transform: translateY(-2px); }
  .av-calc__row--car .irs-handle.state_hover,
  .av-calc__row--car .irs-handle:active { transform: translateY(-1px) scale(1.04); }
}
/* без скиновой рамки/подсветки ion в ЛЮБОМ состоянии (hover/focus/grab/active) —
   перекрываем классы состояний ion.rangeSlider через !important */
.av-calc .irs-handle,
.av-calc .irs-handle:hover,
.av-calc .irs-handle:focus,
.av-calc .irs-handle:focus-visible,
.av-calc .irs-handle:active,
.av-calc .irs-handle.state_hover,
.av-calc .irs-handle.state_grab {
  border: 2px solid var(--av-blue) !important;
  background: #fff !important;
  background-color: #fff !important;
  box-shadow: 0 2px 8px rgba(245, 102, 30, .35) !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}
.av-calc__row--car .irs-handle,
.av-calc__row--car .irs-handle:hover,
.av-calc__row--car .irs-handle:focus,
.av-calc__row--car .irs-handle:active,
.av-calc__row--car .irs-handle.state_hover,
.av-calc__row--car .irs-handle.state_grab {
  border: 0 !important;
  background: url(../img/calc-car.svg) left center / contain no-repeat !important;
  box-shadow: none !important;
}

/* Банки: бесшовная бегущая строка с фейдом по краям */
.av-banks {
  overflow: hidden;
  margin-top: 80px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.av-banks__track {
  display: flex;
  width: max-content;
  animation: av-banks-run 36s linear infinite;
}
.av-banks:hover .av-banks__track { animation-play-state: paused; }
.av-banks__set { display: flex; flex-shrink: 0; gap: 12px; padding-right: 12px; }
@keyframes av-banks-run { to { transform: translateX(-50%); } }
.av-banks__item {
  flex: 0 0 130px;
  height: 56px;
  background: #fff;
  border: 1px solid var(--av-line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.av-banks__item img { max-height: 36px; max-width: 106px; object-fit: contain; }
@media (prefers-reduced-motion: reduce) {
  .av-banks__track { animation: none; }
}

/* ---------- Первый автомобиль недели ---------- */
.av-week { padding: 104px 0 0; }
.av-week__head { margin-bottom: 40px; }
.av-week__head .av-h2 { margin-bottom: 12px; }
.av-week__lead { font-size: 18px; line-height: 1.5; color: var(--av-mut); }
.av-week__panel {
  position: relative;
  display: flex;
  gap: 30px;
  border-radius: 24px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  padding: 48px 40px 44px 56px;
  min-height: 533px;
}
.av-week__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(23, 24, 28, .92) 0%, rgba(23, 24, 28, .72) 42%, rgba(23, 24, 28, .18) 70%, rgba(23, 24, 28, 0) 100%);
}
.av-week__info {
  position: relative;
  width: 470px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.av-week__chips { display: flex; gap: 10px; }
.av-week__chips .av-chip--save { background: rgba(255, 138, 61, .18); border: 1px solid rgba(255, 138, 61, .5); color: #ffe7d6; font-weight: 700; }
/* Тир 1 — идентификация модели */
.av-week__name {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 46px;
  line-height: 1.04;
  margin-top: 16px;
  color: #fff;
  /* резерв под 2 строки — элементы ниже не сдвигаются при смене авто */
  min-height: 2.08em;
}
/* Тир 1 — ключевой оффер: платёж в кредит акцентом (фокус сайта) */
.av-week__offer { margin-top: 22px; display: flex; flex-direction: column; }
.av-week__pay-line { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.av-week__pay-label { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.av-week__pay {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 54px;
  line-height: 1;
  letter-spacing: -.025em;
  color: var(--av-mint);
  text-shadow: 0 6px 30px rgba(255, 138, 61, .35);
  animation: av-pay-glow 2.8s ease-in-out infinite;
}
/* Тир 2 — полная цена, приглушённо */
.av-week__old { font-size: 15px; color: rgba(255, 255, 255, .6); margin-top: 12px; }
@keyframes av-pay-glow {
  0%, 100% { text-shadow: 0 6px 24px rgba(255, 138, 61, .22); }
  50% { text-shadow: 0 8px 38px rgba(255, 138, 61, .58); }
}
@media (prefers-reduced-motion: reduce) { .av-week__pay { animation: none; } }
/* Тир 3 — характеристики: ровный ряд, важные факты читаемым тоном */
.av-week__specs { display: flex; align-items: center; gap: 14px; margin-top: 28px; font-size: 15px; color: rgba(255, 255, 255, .85); }
.av-week__specs i { width: 1px; height: 14px; background: rgba(255, 255, 255, .3); }
.av-week__info > .av-btn { margin-top: 32px; align-self: flex-start; }
/* мобильная кнопка «Купить в кредит» под мини-превью — на десктопе скрыта */
.av-week__cta { display: none; }
.av-week__nav { display: flex; align-items: center; gap: 20px; margin-top: auto; padding-top: 40px; }
.av-arrow {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, .35);
  font-size: 18px;
  color: #fff;
  transition: background .18s, color .18s, border-color .18s;
}
.av-arrow:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }
.av-arrow--dark { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); color: #fff; }
.av-arrow--dark:hover { background: rgba(255, 255, 255, .28); border-color: #fff; }
.av-week__dots { display: flex; gap: 8px; }
.av-week__dots .av-dot { background: rgba(255, 255, 255, .32); }
.av-week__dots .av-dot.is-active { background: var(--av-mint); }
.av-week__scene {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.av-week__car {
  width: 560px;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
  transform: translateY(4%); /* опущено на 10% от верхней зоны */
  transition: opacity .35s;
}
/* мини-превью и подпись — по центру под большим фото авто */
.av-week__more { margin-top: auto; text-align: center; }
.av-week__more > span { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .8); }
.av-week__minis { display: flex; gap: 10px; margin-top: 8px; justify-content: center; }
.av-mini {
  width: 96px; height: 62px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .22);
  padding: 4px;
  transition: border-color .18s, background .18s;
}
.av-mini img { width: 100%; height: 100%; object-fit: contain; }
.av-mini:hover { border-color: rgba(255, 255, 255, .5); }
.av-mini.is-active { border: 2px solid var(--av-mint); background: rgba(255, 138, 61, .12); }

/* ---------- Марки ---------- */
.av-brands__head { display: flex; align-items: baseline; justify-content: space-between; }
.av-brands__all { font-size: 16px; font-weight: 700; color: var(--av-blue); }
.av-brands__all:hover { color: var(--av-blue-dark); }
/* мобильный тоггл «Показать все» — скрыт на десктопе */
.av-brands__more {
  display: none;
  width: 100%;
  margin-top: 22px;
  padding: 15px 24px;
  border: 1.5px solid var(--av-line);
  border-radius: 14px;
  background: #fff;
  font-size: 15px;
  font-weight: 700;
  color: var(--av-blue);
  transition: border-color .18s, color .18s;
}
.av-brands__more:hover { border-color: var(--av-blue); color: var(--av-blue-dark); }
.av-brands__grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 28px 12px;
}
.av-brand {
  background: #fff;
  border-radius: 16px;
  padding: 18px 6px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: box-shadow .2s, transform .2s;
}
.av-brand:hover { box-shadow: 0 12px 28px rgba(23, 25, 30, .1); transform: translateY(-2px); }
.av-brand img { width: 44px; height: 44px; object-fit: contain; }
.av-brand span { font-size: 13px; font-weight: 700; }

/* ---------- Каталог ---------- */
.av-catalog__head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; margin-bottom: 40px; }
.av-catalog__head .av-h2 { margin-bottom: 0; }
.av-catalog__sub { font-size: 16px; line-height: 1.5; color: var(--av-mut); margin-top: 10px; max-width: 620px; }
.av-catalog__filter { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.av-filter {
  padding: 9px 16px; border-radius: 100px;
  border: 1.5px solid var(--av-line); background: #fff;
  font-size: 14px; font-weight: 700; color: var(--av-mut);
  transition: background .16s, border-color .16s, color .16s;
}
.av-filter:hover { border-color: var(--av-blue); color: var(--av-blue-dark); }
.av-filter.is-active { background: var(--av-blue); border-color: var(--av-blue); color: #fff; }
/* каталог: предпоказ 8, разворот до 32 */
.av-cars__more {
  display: block; width: 100%; max-width: 320px; margin: 36px auto 0;
  padding: 15px 24px; border-radius: 14px;
  border: 1.5px solid var(--av-line); background: #fff;
  font-size: 15px; font-weight: 700; color: var(--av-blue);
  transition: border-color .18s, color .18s;
}
.av-cars__more:hover { border-color: var(--av-blue); color: var(--av-blue-dark); }
.av-cars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.av-car {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--av-grey);
  border: 2px solid transparent;
  border-radius: var(--av-r-card);
  padding: 20px 20px 22px;
}
/* хиты продаж — контур с анимированным кобальтовым градиентом */
.av-car--hit {
  background:
    linear-gradient(#fdeee5, #fdeee5) padding-box,
    linear-gradient(90deg, #d94f0e, #f5661e, #ffab6e, #f5661e, #d94f0e) border-box;
  background-size: 100% 100%, 300% 100%;
  animation: av-btn-flow 5s linear infinite;
}
.av-hit {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 100px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(245, 102, 30, .3);
  background-image: linear-gradient(90deg, #d94f0e, #f5661e, #ffab6e, #f5661e, #d94f0e);
  background-size: 300% 100%;
  animation: av-btn-flow 5s linear infinite;
}
.av-car__photo {
  height: 160px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.av-car__photo img { max-height: 100%; object-fit: contain; }
/* название всегда занимает 2 строки — карточки в ряду выровнены, ничего не «ездит» */
.av-car__name {
  font-size: 18px; font-weight: 700; margin-top: 14px;
  line-height: 1.25;
  min-height: 2.5em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.av-car__credit {
  display: flex;
  justify-content: center;
  margin-top: 13px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(245, 102, 30, .09);
  color: var(--av-blue-dark);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .18s;
}
.av-car__credit:hover { background: rgba(245, 102, 30, .16); }
.av-car__price { font-size: 14px; color: var(--av-mut); margin-top: 14px; }
.av-car__actions { display: flex; gap: 10px; margin-top: auto; padding-top: 16px; }
.av-car__actions .av-btn { flex: 1; padding: 12px 0; font-size: 15px; }
.av-car__actions .av-btn--outline { background: #fff; }

/* ---------- Подарки ---------- */
.av-gifts__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.av-gift { background: #fff; border-radius: var(--av-r-card); padding: 20px 20px 22px; }
.av-gift__photo { height: 150px; border-radius: 12px; overflow: hidden; }
.av-gift__photo img { width: 100%; height: 100%; object-fit: cover; }
.av-gift h3 { font-size: 19px; font-weight: 700; margin-top: 16px; }
.av-gift p { font-size: 15px; line-height: 24px; color: var(--av-mut); margin-top: 8px; }

/* ---------- Почему нам доверяют ---------- */
.av-why__in { display: flex; gap: 80px; }
.av-why__head { width: 380px; flex-shrink: 0; }
.av-why__head .av-h2 { margin-bottom: 16px; }
.av-why__head p { font-size: 18px; line-height: 1.5; color: var(--av-mut); }
.av-why__grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.av-plus { display: flex; align-items: flex-start; gap: 20px; }
.av-plus__num {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 42px;
  color: var(--av-blue);
}
.av-plus__name { font-size: 18px; font-weight: 700; margin-top: 6px; }
.av-plus__text { font-size: 15px; color: var(--av-mut); margin-top: 6px; }

/* Инфографика: рисуется при появлении блока во вьюпорте (.is-inview) */
.av-ig { width: 64px; height: 64px; flex-shrink: 0; margin-top: 2px; }
.av-ig__label { font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 700; fill: var(--av-mut); }
.av-ig__arc { transition: stroke-dashoffset 1.1s cubic-bezier(0.16, 1, 0.3, 1) .15s; }
.js-why.is-inview .av-ig__arc { stroke-dashoffset: 130.7; } /* 20% из 163.4 */
.av-ig__slide { transform: translateX(34px); transition: transform .9s cubic-bezier(0.16, 1, 0.3, 1) .15s; }
.js-why.is-inview .av-ig__slide { transform: translateX(0); } /* взнос приезжает в ноль */
.av-ig__hand { transform-origin: 32px 32px; transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) .15s; }
.js-why.is-inview .av-ig__hand { transform: rotate(360deg); } /* один оборот = один день */
.av-ig--grid circle { fill: #dfe3ea; transition: fill .25s; }
.av-ig--grid circle.is-on { fill: var(--av-blue); }

/* ---------- Заявка ---------- */
.av-request__panel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 56px;
  background: linear-gradient(135deg, #a53c0a 0%, var(--av-blue) 52%, #ef6d1e 100%);
  border-radius: 28px;
  padding: 56px;
  color: #fff;
  box-shadow: 0 30px 60px -22px rgba(217, 79, 14, .55);
}
.av-request__glow {
  position: absolute;
  top: -140px; right: -90px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 171, 110, .75), rgba(255, 171, 110, 0) 70%);
  filter: blur(28px);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .av-request__glow { animation: av-req-glow 9s ease-in-out infinite alternate; }
}
@keyframes av-req-glow {
  from { transform: translate(0, 0) scale(1); opacity: .8; }
  to   { transform: translate(-46px, 34px) scale(1.14); opacity: 1; }
}
.av-request__text { position: relative; z-index: 1; width: 470px; flex-shrink: 0; }
.av-request__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px 7px 12px;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 100px;
  font-size: 13px; font-weight: 700;
  margin-bottom: 18px;
}
.av-request__badge-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--av-mint);
  box-shadow: 0 0 0 0 rgba(255, 138, 61, .55);
  animation: av-req-pulse 2s ease-out infinite;
}
.av-request__text h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 35px;
  line-height: 1.16;
}
.av-request__hl { color: #fff; }
.av-request__text p { font-size: 16px; line-height: 26px; margin-top: 14px; color: rgba(255, 255, 255, .9); }
.av-request__perks { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.av-request__stat { display: flex; align-items: center; gap: 14px; opacity: 0; transform: translateY(10px); }
.js-req-stats.is-inview .av-request__stat {
  opacity: 1; transform: none;
  transition: opacity .5s ease, transform .5s cubic-bezier(0.16, 1, 0.3, 1);
}
.js-req-stats.is-inview .av-request__stat:nth-child(1) { transition-delay: .05s; }
.js-req-stats.is-inview .av-request__stat:nth-child(2) { transition-delay: .18s; }
.js-req-stats.is-inview .av-request__stat:nth-child(3) { transition-delay: .31s; }
.av-request__stat-ic {
  width: 46px; height: 46px; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 13px;
}
.av-request__stat-ic svg { width: 27px; height: 27px; }
.av-request__stat-txt { font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .82); line-height: 1.25; }
.av-request__stat-txt b {
  display: block;
  font-family: 'Manrope', sans-serif; font-weight: 600;
  font-size: 19px; color: #fff;
}
/* оживление иконок инфографики формы */
.av-req-hand, .av-req-card { transform-box: view-box; transform-origin: 16px 16px; }
.av-req-arc { stroke-dasharray: 79.2; stroke-dashoffset: 79.2; }
.js-req-stats.is-inview .av-req-arc { stroke-dashoffset: 26; transition: stroke-dashoffset 1s cubic-bezier(0.16, 1, 0.3, 1) .35s; }
@media (prefers-reduced-motion: no-preference) {
  .js-req-stats.is-inview .av-req-hand { animation: av-ic-spin 6s linear infinite; }
  .av-req-card { animation: av-ic-insert 2.6s ease-in-out infinite; }
}
/* форма — белая карточка, фокус внимания на целевом действии */
.av-request__form { position: relative; z-index: 1; flex: 1; }
.av-request__card {
  background: #fff;
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 26px 54px -14px rgba(16, 18, 22, .4);
}
.av-request__card-head { margin-bottom: 18px; }
/* бриф из строки подбора — что пользователь выбрал на первом экране */
.av-request__brief {
  margin-bottom: 14px;
  padding: 11px 14px;
  background: rgba(245, 102, 30, .09);
  border: 1px solid rgba(245, 102, 30, .22);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--av-blue-dark);
}
.av-request__brief[hidden] { display: none; }
.av-request__card-title {
  display: block;
  font-family: 'Manrope', sans-serif; font-weight: 600;
  font-size: 23px; color: var(--av-ink);
}
.av-request__card-note {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 7px; font-size: 13px; font-weight: 700; color: var(--av-blue);
}
.av-request__pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--av-blue);
  box-shadow: 0 0 0 0 rgba(245, 102, 30, .5);
  animation: av-req-pulse 2s ease-out infinite;
}
@keyframes av-req-pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 102, 30, .5); }
  70% { box-shadow: 0 0 0 9px rgba(245, 102, 30, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 102, 30, 0); }
}
.av-request__fields { display: flex; flex-direction: column; gap: 12px; }
.av-input {
  width: 100%;
  min-width: 0;
  height: 54px;
  border: 1.5px solid var(--av-line);
  border-radius: 12px;
  padding: 0 18px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--av-ink);
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
}
.av-input::placeholder { color: var(--av-mut); font-weight: 600; }
.av-input:focus { outline: 0; border-color: var(--av-blue); box-shadow: 0 0 0 4px rgba(245, 102, 30, .14); }
.av-input.is-error { border-color: #e64545; box-shadow: 0 0 0 4px rgba(230, 69, 69, .12); }
.av-request__submit { width: 100%; height: 56px; margin-top: 14px; font-size: 17px; gap: 10px; }
.av-request__arrow { width: 20px; height: 20px; transition: transform .2s; }
.av-request__submit:hover .av-request__arrow { transform: translateX(4px); }
.av-request__submit:focus-visible { outline: 2px solid var(--av-blue); outline-offset: 2px; }
.av-request__agree { font-size: 12.5px; line-height: 18px; color: var(--av-mut); margin-top: 14px; text-align: center; }
.av-request__done { font-size: 16px; font-weight: 700; margin-top: 14px; display: none; }

/* ---------- Путь к первой машине ---------- */
.av-trade__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.av-trade__cta { display: none; }
.av-trade__head p { font-size: 18px; line-height: 1.5; color: var(--av-mut); }
.av-steps { display: flex; margin-top: 36px; }
.av-step { flex: 1; padding-right: 24px; }
.av-step__node { display: flex; align-items: center; gap: 12px; }
.av-step__circle {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--av-line);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  font-weight: 700;
}
.av-step__circle.is-first {
  background: var(--av-blue);
  border-color: var(--av-blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(245, 102, 30, .35);
}
.av-step__line { flex: 1; height: 2px; background: var(--av-line); }
.av-step h3 { font-size: 19px; font-weight: 700; margin-top: 16px; }
.av-step p { font-size: 15px; line-height: 24px; color: var(--av-mut); margin-top: 12px; }

/* ---------- Футер ---------- */
.av-footer { background: var(--av-navy); color: #fff; padding: 80px 0 40px; }
.av-footer__top { display: flex; justify-content: space-between; gap: 40px; }
.av-footer__brand { width: 340px; max-width: 100%; }
.av-footer__brand p { font-size: 15px; line-height: 24px; color: #99a1ad; margin-top: 14px; }
.av-footer__menu, .av-footer__contacts { display: flex; flex-direction: column; gap: 12px; }
.av-footer__title { font-weight: 700; }
.av-footer__menu a, .av-footer__contacts span, .av-footer__contacts a { font-size: 15px; color: #99a1ad; transition: color .18s; }
.av-footer__menu a:hover, .av-footer__contacts a:hover { color: #fff; }
.av-footer__phone { font-size: 18px !important; font-weight: 700; color: #fff !important; }
.av-footer__line { height: 1px; background: rgba(255, 255, 255, .1); margin: 40px 0; }
.av-footer__bottom { display: flex; justify-content: space-between; font-size: 14px; color: #99a1ad; }
.av-footer__bottom a:hover { color: #fff; }

/* ---------- Движение ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* каскад контента активного слайда: chip → заголовок → текст → кнопки */
  .av-hero__slide .av-chip,
  .av-hero__slide .av-hero__title,
  .av-hero__slide .av-hero__text,
  .av-hero__slide .av-hero__actions { opacity: 0; }
  .av-hero__slide.is-active .av-chip { animation: av-rise .55s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .av-hero__slide.is-active .av-hero__title { animation: av-rise .55s cubic-bezier(0.16, 1, 0.3, 1) .07s both; }
  .av-hero__slide.is-active .av-hero__text { animation: av-rise .55s cubic-bezier(0.16, 1, 0.3, 1) .14s both; }
  .av-hero__slide.is-active .av-hero__actions { animation: av-rise .55s cubic-bezier(0.16, 1, 0.3, 1) .21s both; }
  /* панель подбора приподнимается один раз при загрузке */
  .av-hero__bottom { animation: av-rise .6s cubic-bezier(0.16, 1, 0.3, 1) .3s both; }
}
@keyframes av-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* обмен авто: шаги появляются поэтапно (наблюдатель вешает .is-inview) */
@media (prefers-reduced-motion: no-preference) {
  .av-steps .av-step { opacity: 0; transform: translateY(18px); }
  .av-steps .av-step .av-step__line { transform: scaleX(0); transform-origin: left center; }
  .av-steps.is-inview .av-step {
    opacity: 1;
    transform: none;
    transition: opacity .55s cubic-bezier(0.16, 1, 0.3, 1), transform .55s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .av-steps.is-inview .av-step .av-step__line {
    transform: scaleX(1);
    transition: transform .6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .av-steps.is-inview .av-step:nth-child(1) { transition-delay: 0s; }
  .av-steps.is-inview .av-step:nth-child(1) .av-step__line { transition-delay: .35s; }
  .av-steps.is-inview .av-step:nth-child(2) { transition-delay: .45s; }
  .av-steps.is-inview .av-step:nth-child(2) .av-step__line { transition-delay: .8s; }
  .av-steps.is-inview .av-step:nth-child(3) { transition-delay: .9s; }
  .av-steps.is-inview .av-step:nth-child(3) .av-step__line { transition-delay: 1.25s; }
  .av-steps.is-inview .av-step:nth-child(4) { transition-delay: 1.35s; }
}

/* карточки: отклик на наведение */
.av-car, .av-gift {
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .25s;
}
.av-car:hover, .av-gift:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(23, 25, 30, .09);
}
.av-car__photo img { transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1); }
.av-car:hover .av-car__photo img { transform: scale(1.03); }
.av-gift__photo img { transition: transform .4s cubic-bezier(0.16, 1, 0.3, 1); }
.av-gift:hover .av-gift__photo img { transform: scale(1.04); }
.av-btn:active { transform: scale(.98); }

/* пересчёт платежа: короткий подскок */
.js-payment-out.is-pop { animation: av-pop .24s ease-out; }
@keyframes av-pop { 50% { transform: scale(1.05); } }

/* смена авто недели: сдвиг по направлению листания */
.av-week__car { transition: opacity .28s ease, transform .38s cubic-bezier(0.16, 1, 0.3, 1); }

/* клавиатурный фокус */
.av-btn:focus-visible, .av-dot:focus-visible, .av-arrow:focus-visible,
.av-mini:focus-visible, .av-nav a:focus-visible, .av-input:focus-visible {
  outline: 2px solid var(--av-blue);
  outline-offset: 2px;
}
.av-calc__result .av-btn:focus-visible { outline-color: #fff; }

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

/* ---------- Госпрограмма: условия + чек-лист ---------- */
.av-program__head { max-width: 760px; margin-bottom: 44px; }
.av-program__head .av-h2 { margin-bottom: 16px; }
.av-program__lead { font-size: 18px; line-height: 1.55; color: var(--av-mut); }
.av-program__grid { display: grid; grid-template-columns: 1fr 400px; gap: 32px; align-items: start; }
.av-program__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.av-pcard {
  display: flex; gap: 16px;
  background: #fff; border-radius: var(--av-r-card);
  padding: 24px 24px 26px;
}
.av-pcard__num {
  flex-shrink: 0;
  font-family: 'Unbounded', sans-serif;
  font-size: 13px; font-weight: 600;
  color: var(--av-blue);
  padding-top: 3px;
}
.av-pcard h3 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.av-pcard p { font-size: 15px; line-height: 24px; color: var(--av-mut); margin-top: 10px; }

/* карточка-чеклист: единственный интерактив секции, поэтому тёмная */
.av-checkcard {
  position: sticky; top: 92px;
  background: var(--av-navy);
  border-radius: var(--av-r-card);
  padding: 28px 28px 26px;
  color: #fff;
}
.av-checkcard__kicker {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--av-mint);
}
.av-checkcard__title { font-size: 24px; font-weight: 700; line-height: 1.2; margin-top: 10px; }
.av-checkcard__sub { font-size: 14px; color: rgba(255, 255, 255, .6); margin-top: 8px; }
.av-checkcard__list { display: flex; flex-direction: column; gap: 2px; margin-top: 20px; }
.av-check--row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 12px; margin: 0 -12px;
  border-radius: 12px; cursor: pointer;
  font-size: 15px; line-height: 21px;
  transition: background .15s;
}
.av-check--row:hover { background: rgba(255, 255, 255, .05); }
.av-check--row .av-check__mark { width: 22px; height: 22px; margin-top: 0; border-color: rgba(255, 255, 255, .3); background: transparent; }
.av-check--row .av-check__box:checked ~ .av-check__mark { background: var(--av-blue); border-color: var(--av-blue); }
.av-check--row .av-check__mark::after { left: 7px; top: 3.5px; }
.av-checkcard__result { margin-top: 22px; }
.av-checkcard__bar { height: 4px; border-radius: 100px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.av-checkcard__bar i {
  display: block; width: 0; height: 100%;
  border-radius: 100px; background: var(--av-blue);
  transition: width .3s ease, background .3s ease;
}
.av-checkcard.is-ok .av-checkcard__bar i { background: var(--av-mint); }
.av-checkcard__verdict { font-size: 14px; line-height: 20px; font-weight: 600; color: rgba(255, 255, 255, .78); margin-top: 12px; }
.av-checkcard.is-ok .av-checkcard__verdict { color: var(--av-mint); }
.av-checkcard__btn { width: 100%; margin-top: 18px; }
.av-checkcard__note { font-size: 12px; line-height: 17px; color: rgba(255, 255, 255, .42); margin-top: 14px; }

/* ---------- Вопросы новичка ---------- */
.av-faq__head { max-width: 700px; margin-bottom: 36px; }
.av-faq__head .av-h2 { margin-bottom: 14px; }
.av-faq__lead { font-size: 17px; line-height: 1.5; color: var(--av-mut); }
.av-faq__list { display: flex; flex-direction: column; gap: 12px; }
.av-faq__item { background: #fff; border-radius: 16px; overflow: hidden; }
.av-faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 26px; border: 0; background: none; text-align: left;
  font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--av-ink);
  transition: color .16s;
}
.av-faq__q:hover { color: var(--av-blue-dark); }
.av-faq__ic { position: relative; flex-shrink: 0; width: 20px; height: 20px; }
.av-faq__ic::before, .av-faq__ic::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: var(--av-blue); border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .24s ease, opacity .24s ease;
}
.av-faq__ic::before { width: 16px; height: 2.4px; }
.av-faq__ic::after { width: 2.4px; height: 16px; }
.av-faq__item.is-open .av-faq__ic::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.av-faq__a { max-height: 0; overflow: hidden; transition: max-height .32s ease; }
.av-faq__item.is-open .av-faq__a { max-height: 360px; }
.av-faq__a p { font-size: 16px; line-height: 26px; color: var(--av-mut); padding: 0 26px 24px; max-width: 860px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .av-nav { gap: 18px; margin-left: 32px; }
  .av-program__grid { grid-template-columns: 1fr; }
  .av-checkcard { position: static; }
  .av-logo__tag { display: none; }
  .av-hero__title { font-size: 46px; line-height: 1.02; }
  .av-cars { grid-template-columns: repeat(2, 1fr); }
  .av-gifts__grid { grid-template-columns: repeat(2, 1fr); }
  .av-brands__grid { grid-template-columns: repeat(6, 1fr); }
  .av-why__in { flex-direction: column; gap: 40px; }
  .av-why__head { width: auto; }
  .av-week__panel { flex-direction: column; }
  .av-week__info { width: auto; }
  .av-week__nav { padding-top: 24px; }
  .av-calc { flex-direction: column; padding: 32px; }
  .av-calc__result { width: 100%; }
  .av-request__panel { flex-direction: column; align-items: stretch; gap: 32px; }
  .av-request__text { width: auto; }
  .av-pick { flex-wrap: wrap; border-radius: 18px; }
  .av-pick__field { flex: 1 0 40%; }
  .av-pick__btn { flex: 1 0 100%; margin-top: 14px; }
}
@media (max-width: 768px) {
  .av-section { padding: 64px 0; }
  .av-program__facts { grid-template-columns: 1fr; }
  .av-pcard { padding: 20px; }
  .av-checkcard { padding: 24px 20px; }
  .av-checkcard__title { font-size: 21px; }
  .av-faq__q { font-size: 16px; padding: 18px 20px; gap: 14px; }
  .av-faq__a p { font-size: 15px; line-height: 24px; padding: 0 20px 20px; }
  .av-faq__item.is-open .av-faq__a { max-height: 460px; }
  .av-container { padding: 0 20px; }
  /* место под всегда-видимую липкую кнопку снизу — футер не перекрывается */
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .av-nav, .av-header__phone { display: none; }
  .av-hero { height: auto; }
  .av-hero__slides { position: relative; height: 540px; }
  .av-hero__slide { padding-bottom: 20px; }
  /* .av-container обнуляет padding-top у контента — возвращаем воздух под шапкой */
  /* контент героя на всю высоту слайда — чтобы абсолютные кнопки/точки
     стояли в одном месте на всех баннерах; текст опущен от хедера */
  .av-hero__content { padding-top: 32px; height: 100%; }
  .av-hero__title { font-size: 37px; line-height: 1.04; min-height: 0; margin-top: 14px; }
  .av-hero__text { min-height: 0; margin-top: 16px; }
  .av-hero__text br { display: none; }
  /* на узком экране диагональ не нужна — вертикальный скрим для читаемости */
  .av-hero__scrim { background: linear-gradient(180deg, rgba(23, 24, 28, .35) 0%, rgba(23, 24, 28, .78) 55%, rgba(23, 24, 28, .92) 100%); }
  .av-hero__scrim::before, .av-hero__scrim::after { display: none; }
  .av-hero__actions { position: absolute; left: 20px; right: 20px; bottom: 50px; margin-top: 0; flex-direction: column; gap: 12px; }
  .av-hero__actions .av-btn { width: 100%; }
  .av-hero__dots { position: absolute; left: 0; right: 0; bottom: 24px; margin-top: 0; justify-content: center; }
  .av-hero__bottom { position: relative; bottom: auto; margin-top: 22px; padding-bottom: 24px; }
  /* факты — в колонку на всю ширину, без прижатия к правому краю */
  .av-hero__facts { justify-content: stretch; gap: 10px; margin-bottom: 14px; }
  .av-hero__fact { width: 100%; padding: 10px 16px 10px 10px; }
  .av-gifts__grid, .av-why__grid { grid-template-columns: 1fr; }
  /* каталог: по 2 карточки в ряд на мобиле */
  .av-cars { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .av-car { padding: 14px 12px 16px; }
  .av-car__name { font-size: 16px; }
  .av-car__credit { font-size: 13px; padding: 11px 8px; text-align: center; }
  .av-car__price { font-size: 13px; }
  .av-car__actions { flex-direction: column; gap: 8px; }
  .av-car__actions .av-btn { width: 100%; padding: 12px; }
  .av-brands__grid { grid-template-columns: repeat(3, 1fr); }
  /* на мобиле показываем 9 марок, остальное — по «Показать все» */
  .av-brands__all { display: none; }
  .av-brands__more { display: block; }
  .av-brands__grid .av-brand:nth-child(n+10) { display: none; }
  .av-brands__grid.is-expanded .av-brand:nth-child(n+10) { display: flex; }
  /* трейд-ин: вертикальный роадмап с анимацией линии-пути */
  .av-steps { flex-direction: column; gap: 0; }
  .av-step { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; padding-right: 0; }
  .av-step:not(:last-child) { padding-bottom: 30px; }
  .av-step__node { grid-column: 1; grid-row: 1 / 3; display: flex; flex-direction: column; align-items: center; gap: 0; }
  .av-step h3 { grid-column: 2; grid-row: 1; margin-top: 7px; }
  .av-step p { grid-column: 2; grid-row: 2; margin-top: 6px; align-self: start; }
  .av-step__line { display: block; width: 2px; height: auto; flex: 1 0 auto; min-height: 22px; margin-top: 8px; background: var(--av-line); transform: scaleY(0) !important; transform-origin: top !important; }
  .av-step:last-child .av-step__line { display: none; }
  .av-steps.is-inview .av-step__line { transform: scaleY(1) !important; }
  .av-trade__head { flex-direction: column; }
  .av-trade__head .av-btn--primary { display: none; }
  .av-trade__cta { display: block; margin-top: 30px; text-align: center; }
  .av-request__panel { padding: 32px 24px; }
  .av-request__fields { flex-direction: column; }
  .av-footer__top { flex-direction: column; }
  .av-hero__actions { flex-wrap: wrap; }
  /* фон-фото во весь фрейм панели (как на десктопе) */
  .av-week__panel { padding: 28px 20px; min-height: 0; }
  .av-week__name { font-size: 34px; }
  .av-week__pay { font-size: 40px; }
  .av-week__car { width: 100%; }
  /* автомобиль недели: стрелки скрыты — переключение через мини-превью */
  .av-week__nav { display: none; }
  .av-week__more { margin-left: 0; text-align: center; }
  .av-week__minis { justify-content: center; }
  /* кнопку «Купить» опускаем под мини-превью на всю ширину */
  .av-week__info > .av-btn { display: none; }
  .av-week__cta { display: block; margin-top: 24px; position: relative; z-index: 2; }
  .av-week__cta .av-btn { width: 100%; }
  .av-pick__field { flex: 1 0 100%; }
  /* калькулятор: тесним воздух, чтобы блок не «разбегался» */
  .av-calc { gap: 24px; padding: 24px 20px; }
  .av-calc__sliders { padding: 8px 0; gap: 26px; }
  .av-calc__result { padding: 28px 24px; }
  .av-calc__caption b { font-size: 20px; }
}

/* ---------- Цифры / достижения ---------- */
.av-stats { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--av-forest), var(--av-blue-dark) 58%, var(--av-blue)); padding: 46px 0; }
/* тонкая диагональная штриховка для фактуры */
.av-stats::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 24px); pointer-events: none; }
.av-stats__glow { position: absolute; top: -60%; right: -8%; width: 55%; height: 200%; background: radial-gradient(closest-side, rgba(255, 255, 255, .18), transparent 72%); pointer-events: none; }
.av-stats .av-container { position: relative; z-index: 1; }
.av-stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.av-stat { position: relative; text-align: center; color: #fff; }
.av-stat + .av-stat::before { content: ""; position: absolute; left: -12px; top: 50%; transform: translateY(-50%); width: 1px; height: 46px; background: rgba(255, 255, 255, .16); }
.av-stat__num { display: block; font-size: 46px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.av-stat__label { display: block; margin-top: 10px; font-size: 15px; color: rgba(255, 255, 255, .78); }

/* ---------- Чекбокс согласия ---------- */
.av-request__agree.av-check {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px; text-align: left; cursor: pointer;
  font-size: 12.5px; line-height: 18px; color: var(--av-mut);
}
.av-check__box { position: absolute; width: 0; height: 0; opacity: 0; }
.av-check__mark {
  flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px;
  border: 1.6px solid #c2c9d4; border-radius: 6px; background: #fff;
  position: relative; transition: border-color .15s, background .15s, box-shadow .15s;
}
.av-check__box:checked ~ .av-check__mark { background: var(--av-blue); border-color: var(--av-blue); }
.av-check__box:checked ~ .av-check__mark::after {
  content: ""; position: absolute; left: 6px; top: 2.5px;
  width: 5px; height: 10px; border: solid #fff; border-width: 0 2.2px 2.2px 0; transform: rotate(45deg);
}
.av-check__box:focus-visible ~ .av-check__mark { box-shadow: 0 0 0 4px rgba(245, 102, 30, .18); }
.av-check__box.is-error ~ .av-check__mark { border-color: #e64545; box-shadow: 0 0 0 4px rgba(230, 69, 69, .12); }
.av-check__text a { color: var(--av-blue-dark); text-decoration: underline; }
.av-check__text a:hover { color: var(--av-blue); }

/* ---------- Cookie-уведомление ---------- */
.av-cookie {
  position: fixed; right: 24px; bottom: 24px; z-index: 70;
  width: 340px; max-width: calc(100vw - 32px);
  background: #fff; border-radius: 18px;
  padding: 22px 22px 20px;
  border: 1px solid var(--av-line);
  box-shadow: 0 18px 50px rgba(23, 25, 30, .22);
  transform: translateY(18px); opacity: 0;
  transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1), opacity .35s;
}
.av-cookie.is-shown { transform: translateY(0); opacity: 1; }
.av-cookie__close {
  position: absolute; top: 12px; right: 14px;
  width: 26px; height: 26px; padding: 0;
  border: none; background: none; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--av-mut);
}
.av-cookie__close:hover { color: var(--av-ink); }
.av-cookie__text { font-size: 14px; line-height: 21px; color: var(--av-mut); margin: 0 0 16px; padding-right: 12px; }
.av-cookie__text a { color: var(--av-blue-dark); text-decoration: underline; }
.av-cookie__accept { width: 100%; padding: 13px 24px; }

/* ---------- Липкая мобильная CTA-панель ---------- */
.av-mcta { display: none; }
@media (max-width: 768px) {
  .av-mcta {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, .12);
    transform: translateY(0); transition: transform .3s ease;
  }
  .av-mcta.is-hidden { transform: translateY(120%); }
  .av-mcta__btn--call {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; height: 56px; border-radius: 14px;
    background: linear-gradient(120deg, var(--av-blue-dark), var(--av-blue));
    color: #fff; font-size: 16px; font-weight: 700; letter-spacing: -.01em;
    box-shadow: 0 8px 22px rgba(245, 102, 30, .42);
    animation: av-mcta-pulse 2.4s ease-in-out infinite;
  }
  .av-mcta__btn--call:active { transform: scale(.985); }
  .av-mcta__ic { display: inline-flex; transform-origin: 50% 60%; animation: av-mcta-ring 2.4s ease-in-out infinite; }
  .av-mcta__ic svg { width: 20px; height: 20px; }
  body { padding-bottom: 82px; }
  /* cookie над липкой кнопкой звонка */
  .av-cookie { right: 12px; left: 12px; bottom: 92px; width: auto; }
  /* блок цифр — 2 колонки на мобиле */
  .av-stats { padding: 32px 0; }
  .av-stats__grid { grid-template-columns: repeat(3, 1fr); gap: 20px 8px; }
  .av-stat + .av-stat::before { display: none; }
  .av-stat__num { font-size: 30px; }
  .av-stat__label { font-size: 13px; }
}
@keyframes av-mcta-pulse {
  0%, 100% { box-shadow: 0 8px 20px rgba(245, 102, 30, .32); }
  50% { box-shadow: 0 10px 30px rgba(245, 102, 30, .6); }
}
@keyframes av-mcta-ring {
  0%, 55%, 100% { transform: rotate(0); }
  8%, 24% { transform: rotate(-13deg); }
  16%, 32% { transform: rotate(13deg); }
  40% { transform: rotate(0); }
}
@media (prefers-reduced-motion: reduce) {
  .av-mcta__btn--call, .av-mcta__ic { animation: none; }
}

/* ---------- CMS-слой: интеграция в панель (не из макета) ---------- */
.first-page [hidden] { display: none !important; }
.av-hero__slide:nth-child(1) .av-hero__bg { background-image: url('../img/hero-first-v11-1.jpg'); }
.av-hero__slide:nth-child(2) .av-hero__bg { background-image: url('../img/hero-first-v11-2.jpg'); }
.av-hero__slide:nth-child(3) .av-hero__bg { background-image: url('../img/hero-first-v11-3.jpg'); }
.av-week__panel { background-image: url('../img/week-bg.jpg'); }
.av-logo__image { width: 205px; max-height: 52px; object-fit: contain; object-position: left center; }
.av-logo--invert .av-logo__image { background: white; border-radius: 8px; padding: 8px; }
.av-catalog__summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 24px; }
.av-catalog__more { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; margin-top: 28px; }
.av-catalog__empty { padding: 40px 20px; text-align: center; background: var(--av-grey); border-radius: 16px; }
.av-catalog__empty .av-btn { margin-top: 18px; }
.av-catalog__terms { margin-top: 24px; font-size: 13px; line-height: 1.6; color: var(--av-mut); }
.av-catalog__terms a, .av-footer__legal a { text-decoration: underline; }
.av-car__photo { display: flex; justify-content: center; }
.first-page .av-car { min-width: 0; }
.av-brand.is-selected { outline: 2px solid var(--av-blue); outline-offset: -2px; }
.av-footer__legal { font-size: 12px; line-height: 1.6; opacity: .8; padding-bottom: 24px; }
.first-modal { width: min(520px, 100%); padding: 36px; border-radius: 20px; }
.first-modal h2 { margin-bottom: 16px; }
.first-modal a { color: var(--av-blue); }
.first-form-status { font-size: 14px; color: #fff; padding-top: 12px; }
.av-request__form label.error, .av-request__form span.error { color: #b51f30; font-size: 13px; }
.av-btn:disabled { opacity: .65; cursor: wait; }
.av-week__name a:hover, .av-car__name a:hover { color: var(--av-blue); }
@media(max-width: 700px) { .av-logo__image { width: 135px; max-height: 40px; } .av-catalog__summary { align-items: flex-start; font-size: 14px; } }
@media(max-width: 768px) { .first-page .av-car__credit { white-space: normal; line-height: 1.3; } }
@media(prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .first-page *, .first-page *::before, .first-page *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; animation-iteration-count: 1 !important; } }

/* Каталог: кнопка «Позвонить» — первый тап показывает номер, второй звонит */
.av-car__actions { flex-wrap: wrap; }
.av-car__call.is-revealed { font-size: 12px; letter-spacing: -.01em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.av-car__call.is-wide { flex: 1 0 100%; }
@media (max-width: 768px) { .av-car__call.is-revealed { font-size: 15px; } }

/* ---------- Планшет: шапка и факты хиро ---------- */
@media (min-width: 769px) and (max-width: 1100px) {
  .av-logo__image { width: 140px; }
  .av-nav { gap: 12px; margin-left: 16px; }
  .av-nav a { font-size: 13.5px; white-space: nowrap; }
  .av-nav a.is-active { padding: 6px 10px; }
  .av-header__side { gap: 10px; }
  .av-header__phone { width: 44px; padding: 0; justify-content: center; }
  .av-header__phone span { display: none; }
  .av-header .av-btn--sm { padding: 10px 14px; font-size: 14px; white-space: nowrap; }
}
@media (min-width: 769px) and (max-width: 1180px) {
  .av-hero__facts { justify-content: stretch; }
  .av-hero__fact { flex: 1 1 0; min-width: 0; padding: 11px 14px 11px 11px; }
  .av-hero__fact-txt { font-size: 12.5px; }
}

/* Инфографика «первоначальный взнос»: монета опускается в кошелёк */
.av-ig__drop { transform: translateY(-13px); opacity: 0; transition: transform .85s cubic-bezier(0.16, 1, 0.3, 1) .15s, opacity .45s ease .15s; }
.js-why.is-inview .av-ig__drop { transform: translateY(0); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .av-ig__drop { transform: none; opacity: 1; transition: none; } }

/* ---------- Каталог: применённые фильтры ---------- */
.av-catalog__summary { flex-wrap: wrap; }
.av-catalog__state { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; min-width: 0; }
.av-catalog__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.av-chipf {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 8px 6px 12px; border-radius: 100px;
  border: 1.5px solid var(--av-line); background: #fff;
  font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--av-mut);
  cursor: pointer; transition: border-color .16s, color .16s;
}
.av-chipf b { font-weight: 700; color: var(--av-ink); }
.av-chipf:hover { border-color: var(--av-blue); color: var(--av-blue-dark); }
.av-chipf:hover b { color: var(--av-blue-dark); }
.av-chipf__x { position: relative; flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--av-grey); transition: background .16s; }
.av-chipf__x::before, .av-chipf__x::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 8px; height: 1.6px; border-radius: 2px; background: var(--av-mut);
  transition: background .16s;
}
.av-chipf__x::before { transform: translate(-50%, -50%) rotate(45deg); }
.av-chipf__x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.av-chipf:hover .av-chipf__x { background: var(--av-blue); }
.av-chipf:hover .av-chipf__x::before, .av-chipf:hover .av-chipf__x::after { background: #fff; }
@media (max-width: 700px) { .av-chipf { font-size: 12.5px; padding: 5px 7px 5px 10px; } }

/* ---------- Чек-лист госпрограммы: светлая карточка ---------- */
.av-checkcard { background: #fff; color: var(--av-ink); box-shadow: 0 18px 44px rgba(23, 25, 30, .09); }
.av-checkcard__kicker { color: var(--av-blue-dark); }
.av-checkcard__title { color: var(--av-ink); }
.av-checkcard__sub { color: var(--av-mut); }
.av-checkcard .av-check--row { color: var(--av-ink); }
.av-checkcard .av-check--row:hover { background: var(--av-grey); }
.av-checkcard .av-check--row .av-check__mark { border-color: var(--av-line); background: #fff; }
.av-checkcard .av-check--row .av-check__box:checked ~ .av-check__mark { background: var(--av-blue); border-color: var(--av-blue); }
.av-checkcard__bar { background: var(--av-line); }
.av-checkcard__verdict { color: var(--av-mut2); }
.av-checkcard.is-ok .av-checkcard__bar i { background: var(--av-blue); }
.av-checkcard.is-ok .av-checkcard__verdict { color: var(--av-blue-dark); }
.av-checkcard__note { color: #8b94a3; }

/* ---------- Баннеры v4: кадр 21:9, сцена в правой трети ----------
   кадр прижат к правому краю: при обрезке по бокам режется пустая
   тёмная зона слева, а авто с людьми всегда остаётся справа от текста */
.av-hero__bg,
.av-hero__slide:nth-child(3) .av-hero__bg {
  background-position: 100% center;
  transform-origin: 100% 50%;
}
@media (max-width: 768px) {
  /* на узком экране кадр так же прижат вправо — авто попадает целиком */
  .av-hero__bg,
  .av-hero__slide:nth-child(3) .av-hero__bg { background-position: 100% center; }
}

@media (min-width: 769px) and (max-width: 1400px) {
  /* на средних экранах кадр обрезается по бокам и авто подходит ближе к тексту:
     подзаголовок чуть компактнее — строки не дотягиваются до капота,
     при этом остаются двумя строками и нижний блок не смещается */
  .av-hero__text { font-size: 17px; line-height: 27px; min-height: 54px; }
}

@media (min-width: 769px) and (max-width: 1100px) {
  /* планшет: кадр обрезается по бокам сильнее, авто подходит вплотную —
     подзаголовок компактнее, а стеклянная кнопка получает плотную подложку,
     чтобы читаться поверх светлого кузова */
  .av-hero__text { font-size: 15.5px; line-height: 25px; min-height: 50px; }
  .av-hero__actions .av-btn--ghost { background: rgba(16, 17, 21, .66); border-color: rgba(255, 255, 255, .4); }
  .av-hero__actions .av-btn--ghost:hover { background: rgba(16, 17, 21, .8); border-color: rgba(255, 255, 255, .6); }
}

@media (max-width: 768px) {
  /* мобильный: подзаголовок компактнее — последняя строка не уходит под кнопки */
  .av-hero__text { font-size: 16px; line-height: 24px; }
}
