/* ==========================================================================
   TOKENS
   Плейсхолдеры проекта — цвет/шрифт/размеры подменяются под конкретный макет.
   В правилах используем var(--…), а не хардкод.
   ========================================================================== */
:root {
  --c-dark: #141414;
  --c-card: #282828;
  --c-accent: #eb9201;
  --c-accent-h: #eb7a01;
  --c-accent-soft: rgb(235 146 1 / 20%);
  --c-light: #f7d399;
  --c-white: #fff;
  --c-muted: #c9c9c9;
  --c-label: #bebebe;
  --c-sub: #eaeaea;
  --c-field: rgb(255 255 255 / 20%);
  --font-base: "TENETSans", sans-serif;
  --container-w: 1460px;
  --control-h: 48px;
  --radius: 10px;
  --radius-lg: 30px;
  --header-h: 72px;
  --transition: 0.3s ease;
}

/* ==========================================================================
   RESET / BASE
   ========================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  max-width: 1920px;
  margin: 0 auto;
  font: 400 16px/1.26 var(--font-base);
  color: var(--c-white);
  background: #000;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

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

sup {
  font-size: 0.7em;
  vertical-align: super;
}

/* Клавиатурный фокус (мышь/тач не трогаем). */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.container {
  position: relative;
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 30px;
}

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

.section-head__sub {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.28;
  color: var(--c-sub);
  text-transform: uppercase;
}

.section-head__sub::before {
  flex: none;
  width: 10px;
  height: 10px;
  content: "";
  background: var(--c-accent);
  border-radius: 50%;
}

.section-head__title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.26;
  text-transform: uppercase;
}

/* Строка «иконка-плитка + текст» (шапка, контакты). */
.ico-line {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.ico-line::before {
  flex: none;
  width: 28px;
  height: 28px;
  content: "";
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.ico-line--pin::before {
  background-image: url(../img/ico/pin.svg);
}

.ico-line--phone::before {
  background-image: url(../img/ico/phone.svg);
}

.ico-line--clock::before {
  background-image: url(../img/ico/clock.svg);
}

/* ==========================================================================
   BUTTONS — .btn + модификаторы .btn--outline
   ========================================================================== */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--control-h);
  padding: 0 20px;
  font: 700 16px/1.26 var(--font-base);
  color: var(--c-white);
  text-align: center;
  white-space: nowrap;
  background: var(--c-accent);
  border: 1px solid var(--c-accent);
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.btn:hover {
  background: var(--c-accent-h);
  border-color: var(--c-accent-h);
  color: var(--c-white);
}

.btn--outline {
  color: var(--c-accent);
  background: transparent;
  border-color: var(--c-accent);
}

.btn--outline:hover {
  color: var(--c-accent);
  background: var(--c-accent-soft);
  border-color: var(--c-accent);
}

/* ==========================================================================
   FORMS — поле / селект / согласие ПД (сноска) / состояния
   ========================================================================== */
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group select,
.range__value {
  width: 100%;
  height: var(--control-h);
  padding: 0 20px;
  font: 700 16px/1.26 var(--font-base);
  color: var(--c-white);
  background: var(--c-field);
  border: 1px solid var(--c-white);
  border-radius: var(--radius);
  outline: none;
  transition:
    background var(--transition),
    border-color var(--transition);
}

.form-group input::placeholder {
  color: var(--c-muted);
  opacity: 1;
}

.form-group input:hover,
.form-group select:hover,
.range__value:hover {
  background: rgb(255 255 255 / 28%);
}

.form-group input:focus,
.form-group select:focus,
.range__value:focus {
  border-color: var(--c-accent);
}

.form-group select {
  height: 46px;
  padding-right: 48px;
  appearance: none;
  cursor: pointer;
  background-image: url(../img/ico/chevron.svg);
  background-position: right 20px center;
  background-repeat: no-repeat;
  background-size: 16px;
}

.form-group select option {
  color: var(--c-white);
  background: var(--c-card);
}

.form-group .btn {
  width: 100%;
}

input[type="file"] {
  display: none;
}

/* Согласие на обработку ПД — мелкая сноска под формой. */
.agree-field {
  position: relative;
  display: block;
  width: fit-content;
  padding-left: 19px;
  font-size: 12px;
  line-height: 1.25;
  color: var(--c-white);
  cursor: pointer;
}

.agree-field a {
  text-decoration: underline;
  transition: color var(--transition);
}

.agree-field a:hover {
  color: var(--c-accent);
}

.agree-field input {
  position: absolute;
  top: 1px;
  left: 0;
  width: 13px;
  height: 13px;
  margin: 0;
  appearance: none;
  cursor: pointer;
  background: var(--c-white);
  border-radius: 1px;
}

.agree-field input:checked {
  background: url(../img/ico/done.svg) center / 13px no-repeat;
}

/* Подсветка невалидного поля + блок кнопки без согласия (классы вешает JS). */
.has-danger input,
.has-danger select {
  border-color: #eba5a3;
  box-shadow: 0 0 6px #eba5a3;
}

.not_agree button[type="submit"],
.not_agree .credit__btn {
  background: #ccc !important;
  border-color: #ccc !important;
  color: var(--c-white) !important;
  cursor: default;
  pointer-events: none;
}

/* ==========================================================================
   POPUP — fancybox копирует innerHTML источника, поэтому стили вешаем
   на .popup_container, а не на #form_popup.
   ========================================================================== */
#form_popup {
  display: none;
}

.popup_container {
  width: 460px;
  max-width: 100%;
  padding: 40px;
  color: var(--c-white);
  background: var(--c-card);
  border-top: 1px solid var(--c-accent);
  border-radius: var(--radius-lg);
}

.popup_container .form-group {
  margin-bottom: 8px;
}

.form_title {
  margin-bottom: 24px;
  padding: 0 16px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
}

/* ==========================================================================
   FANCYBOX v3 — интеграция плагина (попапы форм + галереи)
   ========================================================================== */
.fancybox-content {
  overflow: hidden;
}

.fancybox-slide--html .popup_container {
  overflow: visible;
}

.fancybox-button svg {
  transform: scale(2);
}

.fancybox-slide--html .fancybox-close-small svg {
  transform: none;
}

.fancybox-slide--html .fancybox-close-small {
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  padding: 6px;
  color: var(--c-white);
  opacity: 0.8;
}

.fancybox-slide--html .fancybox-close-small:hover {
  color: var(--c-accent);
  opacity: 1;
}

.compensate-for-scrollbar {
  margin-right: auto !important;
  overflow: auto !important;
}

.alert {
  padding: 10px 20px;
  color: var(--c-dark);
}

/* ==========================================================================
   HEADER — фикс-шапка (активная разметка)
   ========================================================================== */
header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 15;
}

.header__box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
  padding: 0 40px;
  background: #000;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-group img {
  display: block;
}

.logo-group__item--main {
  display: flex;
  align-items: center;
  height: 30px;
  padding-right: 12px;
  border-right: 1px solid #acacac;
}

.logo-group__item--main img {
  width: 194px;
}

.logo-group__item--partner {
  height: 30px;
  padding-top: 6px;
}

.logo-group__item--partner img {
  width: 109px;
}

.header__addr {
  font-size: 16px;
}

.header__phone {
  font-size: 16px;
  font-weight: 700;
  transition: color var(--transition);
}

.header__phone:hover {
  color: var(--c-accent);
}

header .btn {
  width: 215px;
  flex: none;
}

.m_btn {
  display: none;
}

/* ==========================================================================
   NAV — навигация
   ========================================================================== */
.menu {
  position: fixed;
  top: var(--header-h);
  right: 0;
  left: 0;
  z-index: 14;
  pointer-events: none;
}

.menu__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 40px;
  background: rgb(0 0 0 / 50%);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  backdrop-filter: blur(22px);
  pointer-events: auto;
}

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

.menu a {
  flex: none;
  font-size: 16px;
  white-space: nowrap;
  transition: color var(--transition);
}

.menu a:hover {
  color: var(--c-light);
}

/* ==========================================================================
   BANNER — hero-баннер
   ========================================================================== */
.banner {
  position: relative;
  height: 748px;
  overflow: hidden;
}

.banner__media {
  position: absolute;
  inset: 0;
}

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

.banner .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 156px;
}

.banner__titles {
  width: 891px;
  max-width: 100%;
  padding: 40px 40px 50px 37px;
  background: rgb(0 0 0 / 70%);
  border: 1px solid #000;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}

.banner__title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.26;
  text-align: center;
  text-transform: uppercase;
}

.banner .btn {
  position: relative;
  width: 307px;
  margin-top: -27px;
}

/* ==========================================================================
   TICKER — бегущие строки
   ========================================================================== */
.ticker {
  display: flex;
  align-items: center;
  height: 53px;
  overflow: hidden;
  background: rgb(255 255 255 / 20%);
  border-top: 1px solid rgb(255 255 255 / 20%);
  border-bottom: 1px solid rgb(255 255 255 / 20%);
}

.ticker__track {
  display: flex;
  flex: none;
  width: max-content;
  animation: ticker 40s linear infinite;
}

.ticker__group {
  display: flex;
  flex: none;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
}

.ticker__text {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.26;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker__ico {
  flex: none;
  width: 28px;
  height: 28px;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(var(--ticker-shift, -50%));
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track {
    animation-play-state: paused;
  }
}

/* ==========================================================================
   TIMER — блок таймера акции
   ========================================================================== */
.timer {
  padding-top: 60px;
}

.timer__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 207px;
  padding: 40px 36px 40px 40px;
  background: var(--c-card);
  border-top: 1px solid var(--c-accent);
  border-radius: var(--radius-lg);
}

.timer__clock {
  flex: none;
  width: 583px;
}

.sinoby-timer {
  min-height: auto !important;
}

.timer__form {
  flex: none;
  width: 628px;
}

.timer__title {
  margin-bottom: 16px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  white-space: nowrap;
}

.timer__form .form-row {
  margin-bottom: 8px;
}

/* ==========================================================================
   CARS — карточки моделей
   ========================================================================== */
.cars {
  padding-top: 150px;
}

.car + .car {
  margin-top: 80px;
}

.car__title {
  padding-top: 6px;
  margin-bottom: 16px;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.26;
  text-transform: uppercase;
}

.car__title span {
  color: var(--c-accent);
}

.car__body {
  position: relative;
  padding: 40px;
  background: var(--c-card);
  border-radius: var(--radius-lg);
}

.car__img {
  position: absolute;
  top: -75px;
  right: 31px;
  width: 634px;
  pointer-events: none;
}

.car__badges {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.car__badge {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 44px;
  padding: 0 16px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.26;
  color: var(--c-accent);
  white-space: nowrap;
  background: var(--c-accent-soft);
  border: 1px solid rgb(235 146 1 / 40%);
  border-radius: 70px;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.car__badge img {
  width: 28px;
  height: 28px;
}

.car__badge--white {
  background: var(--c-white);
  border-color: var(--c-white);
}

.car__badge:hover {
  color: var(--c-white);
  background: var(--c-accent);
  border-color: var(--c-accent);
}

.car__badge img,
.complects__badge img {
  border-radius: 50%;
  transition: background var(--transition);
}

.car__badge:hover img,
.complects__badge:hover img {
  background: var(--c-white);
}

.car__offers {
  position: relative;
  display: grid;
  grid-template-columns: 302px 299px;
  grid-template-rows: repeat(3, 28px);
  grid-auto-flow: column;
  gap: 16px 40px;
  margin-top: 24px;
  list-style: none;
}

.car__offers li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  white-space: nowrap;
}

.car__offers img {
  flex: none;
  width: 28px;
  height: 28px;
}

.car__btns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.car__gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.car__photo {
  display: block;
  height: 120px;
  overflow: hidden;
  border-radius: 20px;
}

.car__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.car__photo:hover img {
  transform: scale(1.1);
}

/* ==========================================================================
   COMPLECTS — таблица комплектаций (include.table.php)
   ========================================================================== */
.instock {
  padding-top: 150px;
}

.instock .container {
  position: relative;
}

.complects__filter {
  display: none;
}

.complects__menu {
  position: absolute;
  top: 13px;
  right: 30px;
  display: flex;
  gap: 8px;
  list-style: none;
}

.complects__menu button {
  width: 264px;
  height: var(--control-h);
  font: 700 16px/1.26 var(--font-base);
  color: var(--c-white);
  text-transform: uppercase;
  cursor: pointer;
  background: #1e1e1e;
  border: 0;
  border-radius: var(--radius);
  transition:
    background var(--transition),
    color var(--transition);
}

.complects__menu button:hover,
.complects__menu li.current button {
  color: #000;
  background: var(--c-light);
}

.complects__list {
  margin-top: 60px;
}

.complects__card + .complects__card {
  margin-top: 40px;
}

.complects__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.complects__name {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.complects__name span {
  padding: 6px 16px 4px;
  font-size: 22px;
  line-height: 1.26;
  background: var(--c-accent);
  border-radius: 70px;
}

.complects__badge {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 44px;
  padding: 0 16px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.26;
  color: var(--c-accent);
  white-space: nowrap;
  background: var(--c-white);
  border-radius: 70px;
  transition:
    background var(--transition),
    color var(--transition);
}

.complects__badge img {
  width: 28px;
  height: 28px;
}

.complects__badge:hover {
  color: var(--c-white);
  background: var(--c-accent);
}

.complects__body {
  position: relative;
  margin-top: 16px;
}

.complects__image {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 569px;
  height: 100%;
  pointer-events: none;
}

.complects__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.complects__info {
  min-height: 261px;
  margin-left: 391px;
  padding: 40px 38px 40px 203px;
  background: var(--c-card);
  border-radius: var(--radius-lg);
}

.complects__specs {
  display: grid;
  grid-template-columns: 349px 327px;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  gap: 20px 41px;
  list-style: none;
}

.complects__specs li {
  --lw: 182px;
  display: grid;
  grid-template-columns: var(--lw) auto;
  align-items: center;
  font-size: 18px;
  line-height: 1.26;
  white-space: nowrap;
}

.complects__specs li:nth-child(n + 4) {
  --lw: 213px;
}

.complects__specs span {
  display: flex;
  align-items: center;
  min-width: 0;
  color: var(--c-label);
}

.complects__specs span::before {
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 16px;
  content: "";
  background: var(--c-accent);
  border-radius: 50%;
}

.complects__specs span::after {
  flex: 1;
  min-width: 8px;
  height: 1px;
  margin: 11px 4px 0 10px;
  content: "";
  background: repeating-linear-gradient(
    90deg,
    var(--c-label) 0 2px,
    transparent 2px 4px
  );
}

.complects__specs b {
  font-weight: 700;
}

.complects__btns {
  display: grid;
  grid-template-columns: repeat(2, 378px);
  gap: 12px;
  margin-top: 24px;
}

.complects__more {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px auto 0;
  font: 700 16px/1.26 var(--font-base);
  color: var(--c-white);
  cursor: pointer;
  background: none;
  border: 0;
  transition: color var(--transition);
}

.complects__more::after {
  width: 16px;
  height: 16px;
  content: "";
  background: url(../img/ico/chevron.svg) center / contain no-repeat;
}

.complects__more:hover {
  color: var(--c-accent);
}

/* Авторский display у кнопки перебивает display:none из UA-стилей для [hidden];
   место под кнопку держим, чтобы отступ до следующего блока не прыгал. */
.complects__more[hidden] {
  visibility: hidden;
}

/* ==========================================================================
   DEALS — обмен (TRADEIN) + кредит (CREDIT) в две колонки
   ========================================================================== */
.deals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
  padding-top: 106px;
}

.tradein__comment,
.credit__comment,
.test-drive__comment {
  font-size: 22px;
  line-height: 1.26;
}

/* ==========================================================================
   TRADEIN — трейд-ин
   ========================================================================== */
.tradein__img {
  position: relative;
  z-index: 1;
  height: 414px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

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

.tradein__img::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, #000 0%, rgb(0 0 0 / 0%) 55.435%);
}

.tradein__wrap {
  margin-top: -46px;
  padding: 86px 40px 40px;
  background: var(--c-card);
  border-bottom: 1px solid var(--c-accent);
  border-radius: var(--radius-lg);
}

.tradein__comment {
  max-width: 563px;
  margin: 40px 0 16px;
}

#tradein_form .form-row,
#tradein_form > .form-group {
  margin-bottom: 8px;
}

/* ==========================================================================
   CREDIT — кредит
   ========================================================================== */
.credit__wrap {
  padding: 40px 40px 102px;
  background: var(--c-card);
  border-top: 1px solid var(--c-accent);
  border-radius: var(--radius-lg);
}

.credit__comment {
  max-width: 563px;
  margin: 40px 0 16px;
}

.range__label {
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.28;
  color: var(--c-label);
}

.range__box {
  position: relative;
}

.range__value {
  padding-left: 30px;
}

.range__slider {
  --p: 0%;
  position: absolute;
  right: 9px;
  bottom: -5px;
  left: 9px;
  width: calc(100% - 18px);
  height: 10px;
  margin: 0;
  appearance: none;
  cursor: pointer;
  background: linear-gradient(var(--c-accent), var(--c-accent)) 0 50% / var(--p)
    2px no-repeat;
  outline: none;
}

.range__slider::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
  appearance: none;
  background: var(--c-accent);
  border: 0;
  border-radius: 50%;
  transition: transform var(--transition);
}

.range__slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  background: var(--c-accent);
  border: 0;
  border-radius: 50%;
}

.range__slider::-moz-range-track {
  background: transparent;
}

.range__slider:hover::-webkit-slider-thumb {
  transform: scale(1.4);
}

.range__limits {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.28;
  color: var(--c-label);
}

.credit__btn {
  margin: 8px 0;
}

.credit__img {
  position: relative;
  height: 370px;
  margin-top: -62px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

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

.credit__img::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, #000 0%, rgb(0 0 0 / 0%) 29.469%);
}

/* ==========================================================================
   TEST DRIVE — пробная поездка
   ========================================================================== */
.ticker--testdrive {
  margin-top: 150px;
}

.test-drive {
  position: relative;
  height: 418px;
}

.test-drive__media {
  position: absolute;
  inset: 0;
}

.test-drive__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.test-drive .container {
  padding-top: 80px;
}

.test-drive .section-head__sub {
  color: #cecece;
}

.test-drive__comment {
  margin: 40px 0 16px;
}

#test_drive_form {
  width: 568px;
}

#test_drive_form .form-row {
  margin-bottom: 8px;
}

/* ==========================================================================
   SERVICE — обслуживание и сервис
   ========================================================================== */
.service {
  padding-top: 150px;
}

.service .section-head {
  gap: 12px;
}

.service .section-head__sub {
  color: #cecece;
}

.service .section-head__title {
  font-size: 44px;
  line-height: 1.1;
}

.service__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.service__card {
  position: relative;
  display: block;
  height: 419px;
  overflow: hidden;
  border-radius: 20px;
}

.service__img {
  position: absolute;
  inset: 0 0 150px;
  overflow: hidden;
}

.service__img img {
  width: 100%;
  height: 419px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service__card:hover .service__img img {
  transform: scale(1.08);
}

.service__plate {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 176px;
  padding: 40px 116px 40px 40px;
  background: var(--c-card);
  border-radius: 20px;
}

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

.service__text {
  font-size: 16px;
  line-height: 1.1;
}

.service__arrow {
  position: absolute;
  top: 40px;
  right: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: url(../img/ico/arrow_circle.svg) center / contain no-repeat;
}

.service__arrow::after {
  width: 16px;
  height: 13px;
  content: "";
  background: url(../img/ico/arrow.svg) center / contain no-repeat;
}

.service__card:hover .service__arrow::after {
  animation: arrow-move-x 2s linear infinite;
}

@keyframes arrow-move-x {
  0% {
    transform: translateX(0);
    animation-timing-function: ease-in-out;
  }

  50% {
    transform: translateX(5px);
    animation-timing-function: ease-in-out;
  }

  100% {
    transform: translateX(0);
  }
}

/* ==========================================================================
   CONTACTS — контакты + карта
   ========================================================================== */
.contacts {
  position: relative;
  height: 735px;
  margin-top: 150px;
}

.contacts::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(180deg, #000 0%, rgb(0 0 0 / 0%) 55.435%);
  pointer-events: none;
}

#map1 {
  position: absolute;
  inset: 0;
  background: #1b2330;
}

.contacts .container {
  z-index: 2;
  padding-top: 47px;
  pointer-events: none;
}

.contacts__wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 449px;
  padding-top: 40px;
  background: var(--c-card);
  border-radius: var(--radius-lg);
  pointer-events: auto;
}

.contacts__info {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 0 40px;
}

.contacts .logo-group__item--partner {
  height: 40px;
  padding-top: 8px;
}

.contacts .logo-group__item--partner img {
  width: 145px;
}

.contacts .logo-group__item--main {
  height: 30px;
}

.contacts__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 18px;
}

.contacts__list .ico-line {
  gap: 12px;
}

.contacts__phone {
  width: fit-content;
  font-weight: 700;
  transition: color var(--transition);
}

.contacts__phone:hover {
  color: var(--c-accent);
}

.contacts__callback {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contacts__question {
  font-size: 20px;
}

.contacts__img {
  height: 182px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

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

/* ==========================================================================
   FOOTER — подвал
   ========================================================================== */
footer {
  position: relative;
  z-index: 3;
  margin-top: -24px;
  padding: 30px 0 40px;
  background: var(--c-dark);
  border-top: 1px solid var(--c-accent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.footer__wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 0 40px 0 39px;
  font-size: 16px;
  line-height: 1.26;
}

.footer__sinoby {
  justify-self: end;
}

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  line-height: 1.3;
}

.footer__links a,
.footer__sinoby {
  transition: color var(--transition);
}

.footer__links a:hover,
.footer__sinoby:hover {
  color: var(--c-accent);
}

.disclamer {
  display: none;
  padding: 24px 39px 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--c-label);
}

.disclamer p + p {
  margin-top: 8px;
}

/* ==========================================================================
   MEDIA — медиазапросы
   ========================================================================== */

@media (max-width: 1459px) {
  .car__img {
    width: min(634px, calc(100% - 720px));
    top: -75px;
  }

  .complects__image {
    width: 40%;
  }

  .complects__info {
    margin-left: 27%;
    padding-left: calc(13% + 24px);
  }

  .complects__specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }

  .complects__specs li,
  .complects__specs li:nth-child(n + 4) {
    grid-template-columns: minmax(max-content, 1fr) auto;
  }

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

@media (max-width: 1365px) {
  .timer__card {
    flex-direction: column;
    justify-content: center;
    gap: 24px;
  }

  .header__box {
    padding: 0 24px;
  }

  .menu__box {
    padding: 0 24px;
  }

  .menu__group {
    gap: 20px;
  }
}

@media (max-width: 1279px) {
  .header__addr {
    display: none;
  }

  .menu a {
    font-size: 15px;
  }

  .menu__group {
    gap: 16px;
  }

  .car__main {
    display: flex;
    flex-direction: column;
  }

  .car__img {
    position: static;
    order: -1;
    width: 100%;
    max-width: 560px;
    margin: -110px auto 16px;
  }

  .car__offers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }

  .car__offers li {
    white-space: normal;
  }

  .complects__body {
    display: flex;
    flex-direction: column;
  }

  .complects__image {
    position: static;
    width: 100%;
    max-width: 569px;
    height: auto;
    margin: -20px auto -60px;
  }

  .complects__info {
    margin-left: 0;
    padding: 70px 30px 30px;
  }

  .deals {
    grid-template-columns: minmax(0, 1fr);
    max-width: 688px;
    margin: 0 auto;
    gap: 40px;
  }

  .service__plate {
    padding: 30px 86px 30px 30px;
  }

  .service__arrow {
    top: 30px;
    right: 30px;
  }
}

@media (max-width: 1199px) {
  .menu__box {
    padding: 0 16px;
  }

  .menu a {
    font-size: 14px;
  }

  .menu__group {
    gap: 12px;
  }
}

@media (max-width: 1023px) {
  :root {
    --header-h: 64px;
  }

  .header__box {
    height: var(--header-h);
    padding-right: 64px;
  }

  /* Бургер. */
  .m_btn {
    position: absolute;
    top: 50%;
    right: 20px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    margin-top: -10px;
    cursor: pointer;
  }

  .m_btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--c-white);
    border-radius: 2px;
    transition: var(--transition);
  }

  .m_btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(-45deg);
  }

  .m_btn.active span:nth-child(2) {
    opacity: 0;
  }

  .m_btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(45deg);
  }

  /* Выезжающее меню (позицию сверху JS уточняет по высоте хедера). */
  .menu {
    right: -100%;
    left: auto;
    width: 100%;
    transition: right var(--transition);
  }

  .menu.active {
    right: 0;
  }

  .menu__box {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    height: auto;
    padding: 24px;
    background: rgb(0 0 0 / 92%);
  }

  .menu__group {
    flex-direction: column;
    gap: 16px;
  }

  .menu a {
    font-size: 18px;
  }

  .banner {
    height: 640px;
  }

  .banner .container {
    padding-top: 130px;
  }

  .banner__title {
    font-size: 34px;
  }

  .timer__clock {
    width: 100%;
    max-width: 583px;
  }

  .timer__form {
    width: 100%;
    max-width: 628px;
  }

  .timer__title {
    white-space: normal;
  }

  .cars {
    padding-top: 100px;
  }

  .instock {
    padding-top: 100px;
  }

  .complects__menu {
    position: static;
    margin-top: 24px;
  }

  .complects__menu li {
    flex: 1;
  }

  .complects__menu button {
    width: 100%;
  }

  .complects__list {
    margin-top: 40px;
  }

  .deals {
    padding-top: 100px;
  }

  .ticker--testdrive {
    margin-top: 100px;
  }

  .service {
    padding-top: 100px;
  }

  .service__list {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
  }

  .service__card {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .service__img {
    position: relative;
    inset: auto;
    height: 280px;
    margin-bottom: -20px;
  }

  .service__img img {
    height: 100%;
  }

  .service__plate {
    position: relative;
    height: auto;
    padding: 30px;
  }

  .service__title {
    padding-right: 56px;
  }

  .contacts {
    margin-top: 100px;
  }
}

@media (max-width: 767px) {
  :root {
    --header-h: 60px;
    --radius-lg: 20px;
  }

  .container {
    padding: 0 15px;
  }

  .section-head__title,
  .service .section-head__title {
    font-size: 28px;
    line-height: 1.2;
  }

  .section-head__sub {
    font-size: 12px;
  }

  /* Шапка: телефон иконкой рядом с бургером. */
  .header__box {
    gap: 12px;
    margin: 0 -15px;
    padding: 0 60px 0 15px;
    border-radius: 0;
  }

  .logo-group {
    gap: 8px;
  }

  .logo-group__item--main {
    height: 22px;
    padding-right: 8px;
  }

  header .logo-group__item--main img {
    width: 120px;
  }

  header .logo-group__item--partner {
    height: 22px;
    padding-top: 4px;
  }

  header .logo-group__item--partner img {
    width: 74px;
  }

  .header__phone {
    position: absolute;
    top: 50%;
    right: 56px;
    margin-top: -14px;
  }

  .header__phone span {
    display: none;
  }

  header .btn {
    display: none;
  }

  .m_btn {
    right: 15px;
  }

  .menu .container {
    padding: 0;
  }

  .menu__box {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  /* Баннер: картинка в потоке, текст поверх в vw. */
  .banner {
    height: auto;
  }

  .banner__media {
    position: static;
    display: block;
  }

  .banner__media img {
    height: auto;
  }

  .banner .container {
    position: absolute;
    top: calc(var(--header-h) + 4vw);
    right: 0;
    left: 0;
    padding-top: 0;
  }

  .banner__titles {
    padding: 4.5vw 4.5vw 7.5vw;
    border-radius: 5vw;
  }

  .banner__title {
    font-size: 5.6vw;
  }

  .banner .btn {
    width: auto;
    height: 11vw;
    max-height: 48px;
    margin-top: -5.5vw;
    padding: 0 6vw;
    font-size: 4vw;
  }

  .ticker {
    height: 44px;
  }

  .ticker__group {
    gap: 20px;
    padding-right: 20px;
  }

  .ticker__text {
    font-size: 14px;
  }

  .ticker__ico {
    width: 24px;
    height: 24px;
  }

  .timer {
    padding-top: 30px;
  }

  .timer__card {
    padding: 24px 15px;
  }

  .timer__title {
    font-size: 20px;
    text-align: center;
  }

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

  .cars {
    padding-top: 70px;
  }

  .car + .car {
    margin-top: 50px;
  }

  .car__title {
    margin-bottom: 0;
    font-size: 28px;
  }

  .car__body {
    padding: 0;
    background: none;
    border-radius: 0;
  }

  .car__main {
    padding: 20px 15px;
    background: var(--c-card);
    border-radius: var(--radius-lg);
  }

  .car__img {
    margin: 12px auto;
  }

  .car__badges {
    order: -2;
    gap: 8px;
  }

  .car__badge {
    height: 38px;
    padding: 0 12px;
    gap: 8px;
    font-size: 16px;
  }

  .car__badge img {
    width: 24px;
    height: 24px;
  }

  .car__offers {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-flow: row;
    gap: 10px;
    margin-top: 20px;
  }

  .car__offers li {
    font-size: 16px;
  }

  .car__btns {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-top: 20px;
  }

  .car__gallery {
    display: flex;
    gap: 8px;
    margin: 12px -15px 0;
    padding: 0 15px 12px;
    overflow-x: auto;
    scroll-padding: 0 15px;
    scroll-snap-type: x mandatory;
  }

  @supports not selector(::-webkit-scrollbar) {
    .car__gallery {
      scrollbar-width: thin;
      scrollbar-color: var(--c-accent) rgb(255 255 255 / 10%);
    }
  }

  .car__gallery::-webkit-scrollbar {
    height: 4px;
  }

  .car__gallery::-webkit-scrollbar-track {
    margin: 0 15px;
    background: rgb(255 255 255 / 10%);
    border-radius: 2px;
  }

  .car__gallery::-webkit-scrollbar-thumb {
    background: var(--c-accent);
    border-radius: 2px;
  }

  .car__photo {
    flex: 0 0 62%;
    height: auto;
    aspect-ratio: 254 / 120;
    scroll-snap-align: start;
  }

  .instock {
    padding-top: 70px;
  }

  .complects__menu {
    gap: 6px;
  }

  .complects__menu button {
    height: 44px;
    font-size: 14px;
  }

  .complects__list {
    margin-top: 30px;
  }

  .complects__name {
    gap: 12px;
    font-size: 22px;
  }

  .complects__name span {
    padding: 4px 12px 3px;
    font-size: 16px;
  }

  .complects__badge {
    height: 38px;
    padding: 0 12px;
    gap: 8px;
    font-size: 16px;
  }

  .complects__badge img {
    width: 24px;
    height: 24px;
  }

  .complects__image {
    margin: 0 auto -40px;
  }

  .complects__info {
    padding: 50px 15px 20px;
  }

  .complects__specs {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-flow: row;
    gap: 12px;
  }

  .complects__specs li {
    font-size: 16px;
  }

  .complects__specs span::before {
    margin-right: 10px;
  }

  .complects__btns {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .deals {
    padding-top: 30px;
  }

  .tradein__img::after {
    background: linear-gradient(180deg, #000 0%, rgb(0 0 0 / 0%) 35%);
  }

  .complects__more[hidden] {
    display: none;
  }

  .tradein__img {
    height: auto;
    aspect-ratio: 688 / 340;
  }

  .tradein__img img {
    object-position: 50% 100%;
  }

  .tradein__wrap {
    margin-top: -30px;
    padding: 50px 15px 24px;
  }

  .tradein__comment,
  .credit__comment,
  .test-drive__comment {
    margin: 20px 0 16px;
    font-size: 18px;
  }

  .credit__wrap {
    padding: 24px 15px 54px;
  }

  .credit__img {
    height: auto;
    aspect-ratio: 688 / 370;
    margin-top: -30px;
  }

  .ticker--testdrive {
    margin-top: 70px;
  }

  .test-drive {
    display: flex;
    flex-direction: column-reverse;
    height: auto;
  }

  .test-drive__media {
    position: static;
    display: block;
  }

  .test-drive__media img {
    height: auto;
  }

  .test-drive .container {
    padding-top: 40px;
    padding-bottom: 24px;
  }

  .test-drive__comment br {
    display: none;
  }

  #test_drive_form {
    width: 100%;
  }

  .service {
    padding-top: 70px;
  }

  .service__list {
    gap: 16px;
    margin-top: 30px;
  }

  .service__img {
    height: 220px;
  }

  .service__plate {
    padding: 24px 20px;
  }

  .service__title {
    padding-right: 52px;
    font-size: 20px;
  }

  .service__arrow {
    top: 24px;
    right: 20px;
  }

  .contacts {
    display: flex;
    flex-direction: column;
    height: auto;
    margin-top: 70px;
  }

  .contacts::before {
    display: none;
  }

  .contacts .container {
    padding-top: 0;
  }

  .contacts__wrap {
    width: 100%;
  }

  .contacts__info {
    padding: 0 20px;
  }

  .contacts .logo-group__item--main img {
    width: 150px;
  }

  .contacts .logo-group__item--partner img {
    width: 112px;
  }

  .contacts__list {
    font-size: 16px;
  }

  #map1 {
    position: relative;
    inset: auto;
    height: 380px;
    margin-top: 16px;
  }

  footer {
    margin-top: 0;
    padding: 24px 0 30px;
    border-radius: 0;
  }

  .footer__wrap {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 12px;
    padding: 0;
    font-size: 14px;
    text-align: center;
  }

  .footer__sinoby {
    justify-self: center;
  }

  .disclamer {
    padding: 20px 0 0;
  }

  /* Попап на всю ширину. */
  .popup_container {
    width: 100%;
    padding: 40px 20px 24px;
  }

  .form_title {
    font-size: 20px;
  }

  .fancybox-slide--html {
    padding: 10px;
  }
}
