﻿/* ============================================================
   БорисХоф Вольт — Электромобили. Лендинг
   ============================================================ */
:root {
  --black: #080d11;
  --teal: #2d485d;
  --white: #ffffff;
  --white-60: rgba(255, 255, 255, 0.6);
  --white-20: rgba(255, 255, 255, 0.2);
  --white-11: rgba(255, 255, 255, 0.11);
  --border: rgba(255, 255, 255, 0.1);
  --gray-light: #f8f8f8;
  --radius-btn: 32px;
  --radius-card: 20px;
  --radius-block: 40px;
  --container: 1296px;
  --pad: 40px;
  --font-main: "Montserrat", -apple-system, "Segoe UI", sans-serif;
  --font-input: "Nunito Sans", var(--font-main);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* clip: широкие свечения не должны создавать горизонтальный скролл */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

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

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
  padding: 0;
}

.ymaps-2-1-79-map,
.ymaps-2-1-79-ground-pane,
.ymaps-2-1-79-copyrights-pane {
  filter: grayscale(100%);
}

/* Или проще - на контейнер карты */
#map {
  filter: grayscale(100%);
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--pad) * 2);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.h1 {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}

.h2 {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
}

.h3 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  padding: 18px 32px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s, opacity 0.25s;
}

.btn .btn__icon { width: 20px; height: 20px; flex-shrink: 0; transition: filter 0.25s, opacity 0.25s; }

/* состояния по компоненту Button (137:370):
   blue: hover -> прозрачная с рамкой; stroke: hover -> белая; white: hover -> прозрачная с рамкой */
.btn--blue { background: var(--teal); color: var(--white); border: none; }
.btn--blue:not(.btn--no-hover):hover { background: transparent; }

.btn--blue::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  
  /* Изначально фон прозрачный (рамки не видно) */
  background: transparent; 
  
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  
  pointer-events: none;
  
  /* Плавная анимация появления */
  transition: background 0.3s ease; 
}

/* 3. Состояние при наведении (обратите внимание на порядок!) */
.btn--blue:hover::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, #FFFFFF 50%, rgba(255, 255, 255, 0.1) 100%);
}

.btn--stroke {
  border: none;
  color: var(--white);
}
.btn--stroke::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, #FFFFFF 50%, rgba(255, 255, 255, 0.1) 100%);
  
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.btn--stroke:hover { background: var(--white); border-color: var(--white); color: var(--black); }
.btn--stroke:hover .btn__icon { filter: invert(1); }

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

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

.btn--white::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  
  /* Изначально фон прозрачный (рамки не видно) */
  background: transparent; 
  
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  
  pointer-events: none;
  
  /* Плавная анимация появления */
  transition: background 0.3s ease; 
}

/* 3. Состояние при наведении (обратите внимание на порядок!) */
.btn--white:hover::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, #FFFFFF 50%, rgba(255, 255, 255, 0.1) 100%);
}

.btn--white:hover .btn__icon { filter: invert(1); }


.btn:disabled { pointer-events: none; }
.btn--blue:disabled { background: rgba(45, 72, 93, 0.3); color: var(--white-20); }
.btn--stroke:disabled { background: transparent; border-color: var(--border); color: var(--white-20); }
.btn--blue:disabled .btn__icon,
.btn--stroke:disabled .btn__icon { opacity: 0.2; }
.btn--white:disabled { background: var(--white-20); color: var(--black); }

/* ---------- header ---------- */
.header {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 50;
}

.header__inner {
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header__logo img { width: 363px; height: 38px; }

.header__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.header__top {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--white-60);
  letter-spacing: -0.02em;
}

.header__top-item { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.header__top-item img { width: 16px; height: 16px; }

.header__bar {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 10px 10px 10px 20px;
  border-radius: var(--radius-btn);
  background: var(--white-11);
  backdrop-filter: blur(6px);
}

.header__menu { display: flex; align-items: center; gap: 16px; font-size: 16px; }
.header__menu a { transition: opacity 0.2s; }
.header__menu a:hover { opacity: 0.7; }

.header__contact { display: flex; align-items: center; gap: 24px; }
.header__phone { font-size: 16px; font-weight: 600; white-space: nowrap; }

.header__mobile { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 897px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
}

/* точная геометрия фона: две половины 1231.7x1366.3, низ картинки на 30px выше низа секции */
.hero__bg img {
  width: 64.15%;
  flex-shrink: 0;
  height: auto;
  aspect-ratio: 1232 / 1366;
  object-fit: cover;
  margin-bottom: 1.56%;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  pointer-events: none;
}

.hero::before {
  top: 0;
  height: 316px;
  background: linear-gradient(180deg, #080d11 11.2%, rgba(8, 13, 17, 0.867) 45.17%, rgba(8, 13, 17, 0.604) 79%, rgba(8, 13, 17, 0) 109%);
}

.hero::after {
  bottom: 0;
  height: 330px;
  background: linear-gradient(0deg, #080d11 17.5%, rgba(8, 13, 17, 0.6) 72.5%, rgba(8, 13, 17, 0) 100%);
}

.hero__content {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 40px;
  width: 100%;
  max-width: calc(var(--container) + var(--pad) * 2);
  padding: 0 var(--pad);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__title-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero__title { flex: 1; }

.hero__logo34 { width: 175px; height: 84px; flex-shrink: 0; }

.hero__divider { height: 1px; background: var(--white-20); }

.hero__subtitle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hero__scroll {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  transition: transform 0.25s;
}

.hero__scroll:hover { transform: translateY(4px); }
.hero__scroll img { width: 100%; height: 100%; }

.hero__subtitle-right {
  display: flex;
  align-items: center;
  gap: clamp(40px, 11vw, 218px);
}

.hero__subtitle { font-size: 20px; }

/* ---------- ticker ---------- */
.ticker {
  overflow: hidden;
  padding: 12px 0;
  background: var(--black);
}

.ticker__track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: ticker 25s linear infinite;
}

.ticker__item {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
}

.ticker__item img { width: 40px; height: 40px; }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- counter ---------- */
.counter { background: var(--teal); }

.counter__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 32px;
  padding-bottom: 32px;
}

.counter__timer {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  text-align: center;
}

.counter__digit { display: flex; flex-direction: column; align-items: center; }

.counter__num,
.counter__colon {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.counter__label { font-size: 18px; color: var(--white-60); }

/* ---------- forms (inline) ---------- */
.feedback { display: flex; flex-direction: column; gap: 14px; }

.feedback__row { display: flex; gap: 16px; margin-left: auto; }

.popup .feedback__row { display: grid; grid-template-columns: 1fr 1fr; margin: 0;}

.input-wrapper {
    position: relative;
  border-radius: var(--radius-btn);

}

.input-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, #FFFFFF 50%, rgba(255, 255, 255, 0.1) 100%);
  
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.input {
  position: relative;
  height: 56px;
  padding: 18px 16px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--white);
  font-family: var(--font-input);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.1;
  width: 230px;
  outline: none;
  transition: border-color 0.25s;
  border-radius: 32px;
}

/* состояния по компоненту input (137:647): рамка не меняется,
   hover — плейсхолдер белеет, при вводе — белый текст с кареткой */
.input::placeholder { color: var(--white-60); transition: color 0.2s; }
.input:hover::placeholder { color: var(--white); }
.input { caret-color: var(--white); }
.input.is-error { border-color: #e05b5b; }

.check {
  display: flex;
  gap: 6px;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
  max-width: 428px;
    text-align: left;
}

.check a {
      text-decoration: underline;
}

.check input {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin: 0;
  border: 1px solid #fff;
  border-radius: 4px;
  flex-shrink: 0;
  cursor: pointer;
  display: grid;
  place-content: center;
}

.check input::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #fff;
  transform: scale(0);
  transition: transform 0.15s;
}

.check input:checked::before { transform: scale(1); }
.check.is-error input { border-color: #e05b5b; }

.popup .check input { border: 1px solid #000; }
.popup .check input::before { background: #000; }

/* ---------- benefits cards ---------- */
.benefits { padding: 120px 0; }

.benefits__inner { display: flex; gap: 24px; align-items: stretch; }

.benefit-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 24px;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.benefit-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, #FFFFFF 50%, rgba(255, 255, 255, 0.1) 100%);
  
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.benefit-card--big {
  width: 526px;
  flex-shrink: 0;
  height: 384px;
  border: 0;
}

.benefit-card--big::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(8, 13, 17, 0.8) 4.3%, rgba(8, 13, 17, 0.42) 25.3%, rgba(8, 13, 17, 0) 33%),
    linear-gradient(180deg, rgba(8, 13, 17, 0.8) 9.2%, rgba(8, 13, 17, 0.42) 23%, rgba(8, 13, 17, 0) 41.8%);
  z-index: 1;
}
.benefit-card--big::before {
  display: none;
}

.benefit-card--big > * { position: relative; z-index: 2; }

/* crop фото большой карточки как в макете: 138.8% x 149.4% со смещением */
.benefit-card__bg {
  position: absolute !important;
  left: -19.44%;
  top: -31.78%;
  width: 138.83%;
  height: 149.41%;
  max-width: none;
  object-fit: cover;
  z-index: 0 !important;
}

.benefits__grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
}

.benefit-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.benefit-card__top img { width: 40px; height: 40px; }

.benefit-card__num {
  font-size: 18px;
  font-weight: 300;
  font-style: italic;
  color: var(--white-60);
}

.benefit-card__text { font-size: 18px; }

/* ---------- models nav ---------- */
.models-nav {
  position: relative;
  z-index: 0;
  padding-bottom: 60px;
}

/* широкое свечение под линейкой моделей — Ellipse 688 из макета (блюр 85px) */
.models-nav::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -308px;
  width: 2214px;
  height: 745px;
  background: url("../img/glow-wide.svg") center / 100% 100% no-repeat;
  pointer-events: none;
  z-index: -1;
}

.models-nav__inner {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.models-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 174px;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  transition: opacity 0.25s, transform 0.25s;
}

.models-nav__item:hover { transform: translateY(-4px); }

.models-nav__item img {
  width: 174px;
  height: 92px;
  object-fit: contain;
}

/* ---------- model cards ---------- */
.models {
  /* фоновый градиент секции из макета: чёрный -> бирюзовый -> чёрный */
  background: linear-gradient(180deg, #080d11 0%, #1c374c 50%, #080d11 100%);
  padding-bottom: 120px;
}

.models .container {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.model-card {
  position: relative;
  z-index: 0;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 32px;
  border-radius: var(--radius-block);
}

.model-card::after{
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, #FFFFFF 50%, rgba(255, 255, 255, 0.1) 100%);
  
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* свечение за левой частью карточки — Ellipse 688 (блюр выходит за границы карточки, как в макете) */
.model-card::before {
  content: "";
  position: absolute;
  left: -23.77%;
  top: -330px;
  width: 98.2%;
  aspect-ratio: 1273 / 1183;
  background: url("../img/glow.svg") center / 100% 100% no-repeat;
  pointer-events: none;
  z-index: -1;
}

.model-card__left {
  position: relative;
  width: 593px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.model-card__tabs { display: flex; gap: 2px; }

.model-card__tab {
  flex: 1;
  padding: 0 30px 14px;
  font-size: 18px;
  text-align: center;
  color: var(--white);
  border-bottom: 2px solid var(--white-20);
  transition: border-color 0.25s;
}

.model-card__tab.is-active { border-bottom-color: var(--white); }

.model-card__view {
  position: relative;
  height: 375px;
  overflow: hidden;
}

.model-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.model-card__img.is-photo { object-fit: cover; border-radius: 32px; }
.model-card__img.is-visible { opacity: 1; }

/* лента превью для табов Экстерьер/Интерьер (79x50, неактивные полупрозрачные) */
.model-card__thumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.model-card__thumbs::-webkit-scrollbar { display: none; }

.model-card__thumb {
  width: 79px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--white);
  overflow: hidden;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.model-card__thumb:hover { opacity: 0.8; }
.model-card__thumb.is-active { opacity: 1; }

.model-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.model-card__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 12px 0;
}

.model-card__dots[hidden],
.model-card__thumbs[hidden] { display: none; }

.model-card__dot {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: transform 0.2s, border-color 0.2s;
}

.model-card__dot.is-active { border-color: var(--white); }
.model-card__dot:hover { transform: scale(1.1); }

.model-card__right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  width: 558px;
  min-height: 499px;
}

.model-card__info { display: flex; flex-direction: column; gap: 32px; }

.model-card__title-box { display: flex; flex-direction: column; gap: 8px; }

.model-card__benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.model-card__price {
  display: flex;
  gap: 5px;
  padding: 3px 12px;
  border-radius: 10px;
  background: var(--white);
  color: var(--teal);
  white-space: nowrap;
}

.model-card__features { display: flex; flex-direction: column; gap: 24px; }

.model-feature { display: flex; align-items: center; gap: 14px; }

.model-feature__icon {
  width: 48px;
  height: 48px;
  padding: 10px;
  border-radius: 12px;
  background: var(--teal);
  flex-shrink: 0;
}

.model-feature__icon img { width: 28px; height: 28px; }

.model-feature__text { font-size: 20px; }

.model-card__buttons { display: flex; flex-direction: column; gap: 16px; }

.model-card__buttons-row { display: flex; gap: 16px; }
.model-card__buttons-row .btn { flex: 1; padding-left: 16px; padding-right: 16px; }

/* ---------- CTA sections (credit / test-drive) ---------- */
.cta {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.cta__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* геометрия фонов повторяет композицию макета (проценты от 1920×400) */
.cta__bg img {
  position: absolute;
  top: 0;
  height: auto;
  object-fit: cover;
}

.cta--credit .cta__bg img,
.cta--testdrive .cta__bg img {
   height: 100%;
width: 100%;
object-position: 38%;
}

.cta::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 55%;
  background: linear-gradient(90deg, rgba(8, 13, 17, 0.85) 17.5%, rgba(8, 13, 17, 0.5) 81%, rgba(8, 13, 17, 0) 100%);
  z-index: 1;
}

.cta__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  max-width: 560px;
}

.cta__subtitle { font-size: 18px; }

.cta .container { position: relative; height: 100%; }

/* ---------- trade-in ---------- */
.tradein { padding: 80px 0; }

.tradein__inner {
  display: flex;
  align-items: center;
  gap: 34px;
}

.tradein__img {
  position: relative;
  width: 629px;
  height: 429px;
  flex-shrink: 0;
  border-radius: var(--radius-block);
  overflow: hidden;
}

/* crop фото как в макете: картинка 1086x678 со смещением -198/-144 */
.tradein__img img {
  position: absolute;
  left: -31.48%;
  top: -33.57%;
  width: 172.66%;
  max-width: none;
  aspect-ratio: 1086 / 678;
  height: auto;
}

.tradein__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  padding-left: 32px;
}

/* ---------- contacts / map ---------- */
.contacts { position: relative; height: 793px; }

.contacts__map {
  position: absolute;
  inset: 0;
  background: url("../img/map-bg.jpg") center / cover no-repeat;
}

.contacts__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contacts__panel {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 40px;
  width: calc(100% - var(--pad) * 2);
  max-width: var(--container);
  background: var(--black);
  border-radius: 32px;
  padding: 32px;
  z-index: 5;
}

.contacts__row {
  display: flex;
  align-items: center;
  gap: 32px;
}

.contacts__cols { display: flex; gap: 64px; }

.contacts__col { display: flex; flex-direction: column; gap: 4px; }

.contacts__label { font-size: 16px; font-weight: 600; color: var(--white-60); }

.contacts__value { font-size: 20px; white-space: nowrap; }

.contacts__tabs { 
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.contacts__tab {
  position: relative;
  padding: 12px 19px;
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  transition: background-color 0.25s, color 0.25s;
}

.contacts__tab::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, #FFFFFF 50%, rgba(255, 255, 255, 0.1) 100%);
  
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.contacts__tab.is-active {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

/* ---------- footer ---------- */
.footer { padding: 40px 0; background: var(--black); }

.footer__inner { display: flex; flex-direction: column; gap: 24px; }

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__links { display: flex; gap: 24px; font-size: 16px; }
.footer__links a:hover { opacity: 0.7; }

.footer__award img { width: 131px; height: 32px; }

.footer__legal,
.footer__requisites {
  font-size: 14px;
  line-height: 1.4;
}

/* ---------- popups ---------- */
.popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 13, 17, 0.6);
  overflow-y: auto;
}

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

.popup__window {
  position: relative;
  width: 700px;
  max-width: 100%;
  background: var(--white);
  color: var(--black);
  border-radius: var(--radius-block);
  overflow: hidden;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.popup__img {
  position: relative;
  height: 307px;
  background: #000;
  overflow: hidden;
}

.popup__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
transform: scale(1.2);
}

.popup__img::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 102px;
  background: linear-gradient(180deg, #080d11 11.2%, rgba(8, 13, 17, 0.867) 45.2%, rgba(8, 13, 17, 0.6) 79%, rgba(8, 13, 17, 0) 109%);
  z-index: 1;
}

.popup__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  z-index: 3;
  transition: transform 0.2s;
}

.popup__close:hover { transform: rotate(90deg); }
.popup__close img { width: 100%; height: 100%; }

.popup__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 40px;
}

.popup__title { color: var(--black); }

.popup .feedback__row .input {
  flex: 1;
  width: auto;
  color: var(--black);
}

.popup  .input-wrapper::before {
      background: linear-gradient(90deg, rgb(0 0 0 / 10%) 0%, #5f5f5f 50%, rgb(0 0 0 / 10%) 100%);
}

.popup .input::placeholder { color: rgba(8, 13, 17, 0.6); }
.popup .input:hover::placeholder { color: var(--black); }
.popup .feedback__row .input { caret-color: var(--black); }
.popup .feedback__row .btn { flex: 1; }
.popup .check { color: var(--black); }

/* thanks */
.popup__window--thanks {
  padding: 60px 0;
  gap: 20px;
  width: 700px;
}

.popup__thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0 40px;
  text-align: center;
}

.popup__thanks img { width: 70px; height: 70px; }

.popup__thanks-text { font-size: 20px; color: var(--black); }

/* ---------- cookies ---------- */
.cookies {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 24px;
  z-index: 150;
  width: calc(100% - 48px);
  max-width: var(--container);
  display: none;
  align-items: center;
  gap: 24px;
  padding: 24px;
  border-radius: 32px;
  background: var(--gray-light);
  color: #000;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
  font-size: 18px;
}

.cookies.is-visible { display: flex; }

.cookies__text { flex: 1; }
.cookies__text a { text-decoration: underline; }
.cookies .btn { flex-shrink: 0; }

/* ---------- mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 180;
  background: var(--black);
  display: none;
  flex-direction: column;
}

.mobile-menu.is-open { display: flex; }

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
}

.mobile-menu__header img.logo { width: 238px; height: 24px; }

.mobile-menu__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 15px 40px;
  overflow-y: auto;
}

.mobile-menu__nav { display: flex; flex-direction: column; }

.mobile-menu__nav a {
  font-size: 22px;
  padding: 24px 0;
  border-top: 1px solid var(--white-20);
}

.mobile-menu__nav a:last-child { border-bottom: 1px solid var(--white-20); }

.mobile-menu__bottom { display: flex; flex-direction: column; gap: 32px; padding-top: 32px; }

.mobile-menu__info { display: flex; flex-direction: column; gap: 24px; font-size: 14px; color: var(--white-60); }
.mobile-menu__info span { display: flex; align-items: center; gap: 8px; }
.mobile-menu__info img { width: 16px; height: 16px; }

.mobile-menu__feedback { display: flex; flex-direction: column; gap: 24px; }
.mobile-menu__phone { font-size: 18px; font-weight: 600; }

.icon-btn { display: inline-flex; }
.icon-btn img { display: block; }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1500px) {
  .header__top { font-size: 12px; }
  .header__bar { gap: 20px; }
  .header__logo img { width: 280px; height: auto; }
}

@media (max-width: 1330px) {
  .model-card__view { height: 429px; }

  :root { --pad: 24px; }

  .h1 { font-size: 40px; }

  .hero { height: 780px; }
  .hero::before {
    height: 240px;
  }

  .hero__bg { inset: unset; top: -176px; }

  .benefits__inner { flex-direction: column; }
  .benefit-card--big { width: 100%; }
  .feedback__row { margin: 0 auto; }

  .models-nav__inner {
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 12px;
    scrollbar-width: none;
  }
  .models-nav__inner::-webkit-scrollbar { display: none; }

  .model-card { flex-direction: column; align-items: stretch; }
  .model-card__left { width: 100%; }
  .model-card__right { width: 100%; min-height: 0; }

  .counter__inner { flex-wrap: wrap; justify-content: center; text-align: center; align-items: flex-start; }
  .counter__title { width: 100%; }
  .contacts__cols { gap: 16px; }
  .contacts__row { gap: 24px; }

  .model-card::before {
    left: 50%;
    transform: translateX(-50%);
    top: -183px;
  }
}

@media (max-width: 1200px) {
  .contacts__row { flex-direction: column; align-items: flex-start; }
  .contacts__value { white-space: normal; }
  .contacts__tabs { width: 100%; }

  .hero__bg {
        top: -130px;
    }

.hero {
        height: 714px;
    }

.hero::after {
    height: 350px;
}
}

@media (max-width: 1100px) {
  .header { top: 0; }
  .header__inner { padding: 12px 15px; }
  .header__logo img { width: 238px; height: 24px; min-width: 238px; }
  .header__right { display: none; }
  .header__mobile { display: flex; align-items: center; gap: 8px; }
  .header__mobile .icon-phone { width: 34px; height: 34px; }
  .header__mobile .icon-burger { width: 42px; height: 42px; }
  .tradein__inner { flex-direction: column; align-items: flex-start; }
  .tradein__img { width: 100%; height: auto; aspect-ratio: 629 / 429; }
  .tradein__content { padding-left: 0; }
}

@media (max-width: 860px) {
    .footer__top { flex-direction: column; align-items: flex-start; gap: 16px; }

  .cookies { flex-direction: column; align-items: stretch; bottom: 0; width: 100%; border-radius: 32px 32px 0 0; padding: 24px 15px; font-size: 16px; }
  .cookies .btn { width: 100%; }
    .hero__bg {
        top: -100px;
    }
  .h1 {
        font-size: 34px;
        line-height: 120%;
        letter-spacing: -2px;
    }
.hero__bg {
        top: -218px;
    }

    .hero {
        height: 571px;
    }

    .hero::before {
        height: 85px;
    }
  .hero__bg img {
    width: 75.15%;
  }
  .hero__scroll { display: none; }
  .hero__subtitle { font-size: 18px; }
  .hero__content { gap: 16px; }
  .counter__title br { display: none; }
  .counter__inner { gap: 20px; }

  .model-card::before {
        top: -200px;
    width: 140.2%;
    }
}

@media (max-width: 768px) {
  .hero__logo34 { width: 114px; height: 55px; }

  .model-card::before { top: -135px; }
  .models .container { gap: 40px; }
   .model-card { gap: 20px; padding: 24px; }
  .model-card__buttons-row { gap: 18px; }
   .model-card__info {gap: 24px }
  .model-card__right { gap: 32; }
  .cta::before { display: none; }
    .h1 {
        font-size: 28px;
    }
.hero__bg {
        top: -238px;
    }
.hero__bg img {
        width: 81.15%;
    }
  .contacts__cols {
        flex-direction: column;
    }
.cta {
height: 600px;
padding-bottom: 32px;
}
.cta__content {
justify-content: flex-end;
}

  .tradein__img img {
     top: -43.57%;
  }

   .contacts__tabs { width: 100%; }
.cta--credit .cta__bg img, .cta--testdrive .cta__bg img {
        object-position: center -30px;
        height: 90%;
    }
}

@media (max-width: 650px) {
    .hero__bg {
        top: -185px;
    }
}

@media (max-width: 576px) {
  .models-nav__inner {
        justify-content: flex-start;
    }
  .counter__title br { display: block; }
  .feedback__row { width: 100%; }
    .hero__bg {
        inset: 0;
        top: auto;
    }
  :root { --pad: 15px; }

  body { font-size: 16px; }

  .h1 { font-size: 24px; line-height: 1.2; letter-spacing: 0; }
  .h2 { font-size: 32px; }
  .h3 { font-size: 28px; }

  /* hero */
  .hero { height: auto; padding-top: 66px; }
  .hero__bg { position: relative; height: 183px; }
  .hero::before { height: 126px; background: linear-gradient(180deg, rgba(8,13,17,0.7) 11.2%, rgba(8,13,17,0.6) 45.2%, rgba(8,13,17,0.42) 79%, rgba(8,13,17,0) 109%); }
  .hero::after { display: none; }
  .hero__content { position: relative; left: 0; transform: none; bottom: 0; padding: 16px var(--pad) 12px; gap: 16px; }
  .hero__title-row { flex-direction: column-reverse; align-items: flex-start; gap: 16px; }
  .hero__subtitle-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero__scroll { display: none; }
  .hero__subtitle-right { flex-direction: column; align-items: flex-start; gap: 20px; width: 100%; }
  .hero__subtitle { font-size: 18px; max-width: none; }
  .hero__subtitle-right .btn { width: 100%; }

  /* ticker */
  .ticker__item { font-size: 14px; gap: 12px; }
  .ticker__track { gap: 12px; }
  .ticker__item img { width: 28px; height: 28px; }

  /* counter */
  .counter__inner { flex-direction: column; align-items: flex-start; gap: 16px; text-align: left; }
  .counter__title { text-align: left; }
  .counter__timer { width: 100%; justify-content: space-between; gap: 8px; }
  .counter__num, .counter__colon { font-size: 38px; }
  .counter__label { font-size: 16px; }
  .counter .feedback { width: 100%; }
  .counter .feedback__row { flex-direction: column; }
  .counter .feedback__row .input,
  .counter .feedback__row .btn { width: 100%; }

  /* benefits */
  .benefits { padding: 80px 0; }
  .benefits__inner { gap: 16px; }
  .benefit-card--big { height: 254px; padding: 16px; }
  .benefits__grid { display: flex; flex-direction: column; gap: 16px; }
  .benefit-card { padding: 16px; }
  .benefit-card__top img { width: 36px; height: 36px; }
  .benefit-card__num { font-size: 16px; }
  .benefit-card__text { font-size: 16px; }

  /* models nav */
  .models-nav { padding-bottom: 28px; }
  .models-nav__item { width: 150px; font-size: 16px; }
  .models-nav__item img { width: 150px; height: 79px; }

  /* model card */
  .models { padding-bottom: 80px; }
  .models .container { gap: 40px; }
  .model-card { padding: 24px 16px; border-radius: 32px; gap: 32px; }
      .model-card::before {
        width: 200%;
        top: -160px;
    }
  .model-card__tabs { gap: 2px; }
  .model-card__tab { padding: 0 8px 16px; font-size: 16px; }
  .model-card__view { height: 198px; }
  .model-card__img.is-photo { border-radius: 24px; }
  .model-card__left { gap: 12px; }
  .model-card__title { font-size: 32px; }
  .model-card__benefit { font-size: 20px; }
  .model-card__info { gap: 20px; }
  .model-card__features { gap: 16px; }
  .model-feature__text { font-size: 18px; }
  .model-card__buttons-row { flex-direction: column; }
  .model-card__right { gap: 24px; min-height: 0; }

  /* cta */
  .cta { height: 558px; }
  /* геометрия фона по мобильному макету (375×558) */

  .cta::before { width: 100%; background: linear-gradient(0deg, rgba(8,13,17,0.9) 30%, rgba(8,13,17,0.55) 70%, rgba(8,13,17,0.15) 100%); }
  .cta__content { justify-content: flex-end; max-width: none; gap: 24px; }
  .cta .feedback { width: 100%; }
  .cta .feedback__row { flex-direction: column; width: 100%; }
  .cta .feedback__row .input, .cta .feedback__row .btn { width: 100%; }
  .cta__content > .btn { width: 100%; }

  /* tradein */
  .tradein { padding: 40px 0 60px; }
  .tradein__inner { gap: 24px; }
  .tradein__img { border-radius: 24px; }
  .tradein__content { gap: 24px; width: 100%; }
  .tradein__content .btn { width: 100%; }

.cta--credit .cta__bg img,
.cta--testdrive .cta__bg img {
   height: 56%;
   object-position: center 0px;
}

  /* contacts */
  .contacts { height: 740px; }
  .contacts__panel { bottom: 33px; padding: 16px; border-radius: 24px; }
  .contacts__row { gap: 24px; }
 

  /* footer */
  .footer__links { flex-direction: column; gap: 12px; }

  /* popups: bottom sheet */
  .popup { padding: 0; align-items: flex-end; }
  .popup__window { border-radius: 32px 32px 0 0; padding-bottom: 24px; gap: 24px; }
  .popup__img { height: 225px; }
  .popup__body { padding: 0 15px; gap: 24px; }
  .popup__title { font-size: 32px; }
  .popup .feedback__row { grid-template-columns: 1fr }
  .popup__window--thanks { padding: 40px 0; }
  .popup__thanks img { width: 50px; height: 50px; }
  .popup__thanks-title { font-size: 32px; }
  .popup__thanks-text { font-size: 18px; }
}

@media (max-width: 576px) {
  /* как в макете: подпись согласия в одну строку (может выступать на пару px) */
  .br-d { display: none; }
  .check { align-items: flex-start; }
  .hero__bg img { 
    width: 92.15%;
    margin-bottom: -11.44%;
  }
}

@media (max-width: 350px) {
  .counter__timer { gap: 4px; }
  .counter__num, .counter__colon { font-size: 34px; }
}

/* 404 */
.nf .hero__bg { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 52% 48%; }
.nf .hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.nf .hero__bg img:nth-child(1) { object-position: right bottom; }
.nf .hero__bg img:nth-child(2) { object-position: left bottom; }
.nf .hero__bg img:nth-child(3) { object-position: right top; }
.nf .hero__bg img:nth-child(4) { object-position: left top; }
.nf .hero__subtitle { max-width: 428px; }
@media (max-width: 576px) {
  .nf .hero__bg { height: 300px; }
}

.model-card__view {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.model-card__view:active {
  cursor: grabbing;
}

.model-card__thumbs {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.model-card__thumbs.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

/* Запрещаем браузеру перетаскивать сами картинки внутри превью как файлы */
.model-card__thumb img {
  pointer-events: none;
}