/* ==========================================================================
   TOKENS
   Палитра и типографика макета ТТС (KIA / Hyundai): Brand/Primary Navy,
   Brand/Primary Accent, Background/Alt Warm. В правилах используем var(--…).
   ========================================================================== */
:root {
  --c-dark: #111;
  --c-navy: #002c5f;
  --c-accent: #00aad2;
  --c-white: #fff;
  --c-muted: #9ca3af;
  --c-border: #e5e7eb;
  --c-line: #c0c9d0;
  --c-warm: #f5f0eb;
  --c-subtle: #fafafa;
  --font-base: "HyundaiSansHead", Arial, sans-serif;
  --font-head: "Inter", "HyundaiSansHead", Arial, sans-serif;
  --container-w: 1480px;
  --control-h: 50px;
  --radius: 28px;
  --radius-pill: 60px;
  --shadow: 0 20px 30px rgba(0, 0, 0, 0.06);
  --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.6 var(--font-base);
  color: var(--c-dark);
  background: var(--c-subtle);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  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 20px;
}

.section {
  padding: 100px 0;
}

/* Блоки, за которыми по макету идёт следующий почти вплотную. */
#parts,
#repair,
#about {
  padding-bottom: 40px;
}

.section--warm {
  background: var(--c-warm);
}

.section__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 16px;
  margin-bottom: 56px;
  text-align: center;
}

.section__label {
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-white);
  background: var(--c-navy);
  border-radius: 999px;
}

.section__label--accent {
  background: var(--c-accent);
}

.section__title {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 900;
  line-height: 1.05;
}

.section__title--light {
  color: var(--c-white);
}

.section__text {
  margin: 0 auto;
}

.section__text--light {
  color: var(--c-white);
}

.section__text--after {
  margin-bottom: 24px;
  text-align: center;
}

.is-hidden {
  display: none !important;
}

.section__cta {
  width: 402px;
  max-width: 100%;
  margin: 20px auto 0;
}

/* ==========================================================================
   BUTTONS — .btn + модификаторы (навы / белая / стеклянная / контурные / круг)
   ========================================================================== */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--control-h);
  padding: 0 30px;
  font: 700 16px/1 var(--font-base);
  color: var(--c-white);
  text-align: center;
  white-space: nowrap;
  background: var(--c-navy);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.btn span {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 20px;
  overflow: hidden;
  line-height: 20px;
}

.btn span em {
  position: relative;
  top: 0;
  font-style: normal;
  transition: top 0.2s ease;
}

.btn:hover span em {
  top: -20px;
}

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

.btn--glass {
  background: transparent;
  border-color: var(--c-white);
}

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

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

.btn--round {
  flex: none;
  width: 50px;
  padding: 0;
  background: transparent;
  border-color: var(--c-dark);
}

.btn--round::before {
  content: "";
  width: 24px;
  height: 24px;
  background: url(../img/ico/arrow-diag.svg) 50% / contain no-repeat;
  transition: filter var(--transition);
}

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

.btn--round span {
  display: none;
}

.btn--round:hover::before {
  filter: invert(48%) sepia(88%) saturate(2144%) hue-rotate(155deg)
    brightness(93%) contrast(101%);
}

/* ==========================================================================
   FORMS — поле / селект / согласие ПД (сноска) / состояния
   ========================================================================== */
.form-group {
  position: relative;
  margin-bottom: 0;
}

.form-group input,
.form-group select {
  width: 100%;
  height: var(--control-h);
  padding: 0 20px;
  font: inherit;
  color: var(--c-dark);
  background: var(--c-white);
  border: 1px solid #0a0a0a;
  border-radius: var(--radius-pill);
  outline: none;
}

.form-group input::placeholder {
  color: rgba(10, 10, 10, 0.6);
}

.form-group select {
  appearance: none;
  padding-right: 50px;
  color: rgba(10, 10, 10, 0.6);
  background: url(../img/ico/chevron-down.svg) right 18px center no-repeat
    var(--c-white);
}

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

/* Согласие ПД — мелкая сноска под формой (13px по макету). */
.agree-field {
  position: relative;
  display: inline-block;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}

.agree-field a {
	text-decoration:underline;
}

.agree-field input {
  position: absolute;
  top: 3px;
  left: 0;
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: #0075ff;
}

.agree-field--light {
  color: var(--c-white);
}

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

.not_agree button {
  background: #ccc !important;
  color: var(--c-white) !important;
  border-color: #ccc !important;
  cursor: default;
  pointer-events: none;
}

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

.popup_container,
.fancybox-content.popup_container {
  width: 500px;
  max-width: 100%;
  padding: 40px;
  background: var(--c-white);
  border-radius: 32px;
}

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

.popup_container__submit {
  width: 100%;
  margin-bottom: 10px;
}

.form_title {
  margin-bottom: 20px;
  font-size: clamp(22px, 4vw, 28px);
  line-height: 1.1;
  text-align: center;
}

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

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

.fancybox-close {
  width: 22px !important;
  height: 22px !important;
  top: -25px !important;
  right: -25px !important;
  background: url(../img/bg_close.png) 50% / contain no-repeat !important;
}

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

/* ==========================================================================
   HEADER — плавающая стеклянная панель (шапка + навигация)
   ========================================================================== */
header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 15;
}

.header__panel {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(7px);
  border-radius: 20px;
  transition: background var(--transition);
}

header.scroll .header__panel {
  background: rgba(255, 255, 255, 0.9);
}

.header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--c-border);
}

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

.logo-group__item--main {
  padding: 4px 16px 4px 0;
  border-right: 1px solid var(--c-border);
}

.logo-group__item--main img {
  width: 79px;
  height: 35px;
}

.logo-group__item--partner {
  padding: 10px 16px 10px 0;
  border-right: 1px solid var(--c-border);
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Выбор адреса: клик разворачивает список остальных салонов. */
.header__geo {
  position: relative;
}

.header__geo-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.header__geo-arr {
  transition: transform var(--transition);
}

.header__geo.active .header__geo-arr {
  transform: rotate(180deg);
}

.header__geo-drop {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  z-index: 3;
  display: none;
  flex-direction: column;
  min-width: 100%;
  padding: 8px;
  background: var(--c-white);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.header__geo.active .header__geo-drop {
  display: flex;
}

.header__geo-item {
  padding: 10px 14px;
  font: inherit;
  color: inherit;
  text-align: left;
  white-space: nowrap;
  background: none;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background var(--transition);
}

.header__geo-item:hover {
  background: var(--c-warm);
}

.header__geo-item.current {
  display: none;
}

.header__phone {
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
}

.header__btn {
  width: 194px;
}

.m_btn {
  display: none;
}

/* ==========================================================================
   NAV — навигация (внутри панели шапки; на мобиле — выезжающее меню)
   ========================================================================== */
.menu__group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

.menu__group a {
  position: relative;
}

.menu__group a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 2px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--transition);
}

.menu__group a:hover::after {
  transform: scaleX(1);
}

/* ==========================================================================
   BANNER — hero-баннер
   ========================================================================== */
.banner {
  padding-top: 129px;
}

.banner__inner {
  position: relative;
  height: 608px;
  overflow: hidden;
  border-radius: 32px;
}

.banner__media,
.banner__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 44, 95, 0) 54.29%,
    rgba(0, 44, 95, 0.4) 86.93%
  );
}

.banner__content {
  position: absolute;
  top: 40px;
  left: 50%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 1194px;
  max-width: calc(100% - 40px);
  height: 528px;
  transform: translateX(-50%);
}

.banner__headline {
  position: relative;
  width: 1124px;
  max-width: 100%;
  height: 160px;
  padding: 17px 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(7px);
  border-radius: 20px;
}

.banner__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--c-navy);
  background: var(--c-white);
  border: 1px solid var(--c-white);
  border-radius: 999px;
}

.banner__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--c-accent);
  border-radius: 50%;
}

.banner__title {
  margin-top: 16px;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.05;
  color: #0a0a0a;
}

.banner__btn {
  position: absolute;
  top: 136px;
  left: 50%;
  width: 239px;
  transform: translateX(-50%);
}

.banner__brands {
  display: flex;
  align-items: stretch;
  width: 542px;
  max-width: 100%;
  overflow: hidden;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 16px;
}

.banner__brand {
  display: flex;
  flex: 1 0 0;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
}

.banner__brand:first-child {
  border-right: 1px solid var(--c-border);
}

/* ==========================================================================
   PROMO-BAR — форма записи + контейнер под внешний скрипт таймера
   ========================================================================== */
.promo-bar {
  padding: 60px 0;
  background: var(--c-subtle);
}

.promo-bar__wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 126px;
  width: 100%;
}

.promo-bar__form {
  width: 55%;
  max-width: 100%;
}

.promo-bar__title {
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 700;
  line-height: normal;
  color: #1c1c1c;
}

.promo-bar__row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 7px;
}

.promo-bar__row .form-group {
  width: 345px;
}

.promo-bar__submit {
  width: 195px;
}

/* Контейнер под сторонний скрипт обратного отсчёта (разметку даёт скрипт). */
.promo-bar__timer {
  /* flex: 0 1 auto; */
  min-width: 0;
  height: 126px;
  /* overflow-x: auto; */
  width: 45%;
}

.promo-bar__timer >div{
  min-width:auto !important;
}

/* ==========================================================================
   CALC — карточка расчёта стоимости ТО
   ========================================================================== */
.calc {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 32px;
  padding: 48px 40px 40px;
  background: var(--c-white);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.calc__lead {
  font-size: 20px;
  font-weight: 700;
  line-height: normal;
  color: #0a0a0a;
  text-align: center;
}

.calc__form {
  width: 100%;
}

.calc__row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 8px;
}

.calc__row .form-group,
.calc__submit {
  flex: 1 0 0;
  min-width: 0;
}

.calc__featured {
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: #1a1a1a;
  border-radius: var(--radius);
}

.calc__featured {
  position: relative;
}

/* .calc__featured::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    167deg,
    rgba(10, 10, 10, 0) 25%,
    rgba(10, 10, 10, 0.9) 75%
  );
} */

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

/* ==========================================================================
   OFFERS — слайдер акций
   ========================================================================== */
.offers {
  position: relative;
}

.offers_slider,
.reviews_slider {
  overflow: visible;
}

/* Активные слайды — те, что целиком влезли в контейнер; вылезающие за его
   края Swiper не помечает .swiper-slide-visible, их и приглушаем. */
.offers_slider .swiper-slide,
.reviews_slider .swiper-slide {
  height: auto;
  opacity: 0.35;
  transition: opacity var(--transition);
}

.offers_slider .swiper-slide-visible,
.reviews_slider .swiper-slide-visible {
  opacity: 1;
}

.offer {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--c-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.offer__media {
  height: 299px;
  overflow: hidden;
  border-radius: var(--radius);
}

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

.offer__body {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  row-gap: 10px;
  min-height: 181px;
  padding: 20px;
}

.offer__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: 10px;
}

.offer__title {
  font-size: 20px;
  font-weight: 700;
  line-height: normal;
  color: #0a0a0a;
  text-align: center;
}

.offer__price {
  padding: 5px 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-navy);
  text-align: center;
  background: var(--c-accent);
  border-radius: 100px;
}

.offer .btn {
  width: 100%;
}

/* Навигация слайдеров: стрелки + сегментная «полоса» пагинации. */
.slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}

.slider-nav__btn {
  flex: none;
  width: 50px;
  height: 50px;
  cursor: pointer;
  border: 1px solid var(--c-dark);
  border-radius: 50%;
  transition: border-color var(--transition);
}

.slider-nav__btn:hover {
  border-color: var(--c-accent);
}

.slider-nav__btn--prev {
  background: url(../img/ico/chevron-left.svg) 50% / 24px no-repeat;
}

.slider-nav__btn--next {
  background: url(../img/ico/chevron-right.svg) 50% / 24px no-repeat;
}

.slider-nav .slider-nav__bar {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  flex: none;
  width: 180px;
  height: 8px;
  background: var(--c-border);
  border-radius: 20px;
  transform: none;
}

.slider-nav__bar .swiper-scrollbar-drag {
  background: var(--c-navy);
  border-radius: 20px;
  cursor: grab;
}

.slider-nav__bar .swiper-scrollbar-drag:active {
  cursor: grabbing;
}

/* ==========================================================================
   BENTO / SVC-CARD — услуги автосервиса
   ========================================================================== */
.bento {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.bento__cell {
  display: flex;
  flex: 1 0 0;
  min-width: calc((100% - 40px) / 3);
}

.bento__cell--wide {
  min-width: calc((100% - 20px) / 2);
}

.bento__cell--half {
  flex: none;
  width: calc((100% - 20px) / 2);
  min-width: 0;
}

.svc-card {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
  width: 100%;
  padding: 32px;
  background: var(--c-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.svc-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.svc-card__ico {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--c-navy);
  border-radius: 12px;
}

.svc-card__price {
  padding: 5px 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: normal;
  color: var(--c-white);
  background: var(--c-accent);
  border-radius: 100px;
}

.svc-card__body {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  justify-content: space-between;
  row-gap: 10px;
  min-height: 162px;
}

.svc-card__title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  line-height: normal;
}

.svc-card__body .btn {
  width: 100%;
}

/* ==========================================================================
   CATALOG — карточки доп. оборудования и блока «О нас»
   ========================================================================== */
.catalog {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
}

.catalog__row {
  display: flex;
  align-items: stretch;
  gap: 20px;
}

.catalog__row--rev {
  flex-direction: row-reverse;
}

.catalog__col {
  display: flex;
  flex: none;
  flex-direction: column;
  row-gap: 20px;
  width: 467px;
}

.catalog__col .catalog-card {
  flex: 0 0 auto;
}

.catalog-card {
  position: relative;
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  padding: 36px;
  overflow: hidden;
  background: var(--c-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.catalog-card--hero {
  flex: 1 0 0;
  min-width: 0;
  min-height: 460px;
  background: var(--c-navy);
  box-shadow: none;
}

.catalog-card--hero .catalog-card__title,
.catalog-card--hero .catalog-card__text,
.catalog-card--hero .catalog-card__price {
  color: var(--c-white);
}

.catalog-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* .catalog-card--hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    154deg,
    rgba(0, 44, 95, 0) 25%,
    rgba(0, 44, 95, 1) 75%
  );
} */

.catalog-card--form .catalog-card__bottom {
  justify-content: flex-end;
}

.catalog-card--cta {
  background: var(--c-accent);
  box-shadow: none;
}

.catalog-card--cta .catalog-card__title,
.catalog-card--cta .catalog-card__text {
  color: var(--c-white);
}

.catalog-card__top,
.catalog-card__bottom,
.catalog-card__info,
.catalog-card__foot {
  position: relative;
  z-index: 2;
}

.catalog-card__bottom {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  justify-content: space-between;
  row-gap: 10px;
  padding-top: 20px;
}

.catalog-card--hero .catalog-card__bottom {
  padding-top: 36px;
}

.catalog-card__pill {
  display: inline-block;
  padding: 6px 14px 5px;
  font-size: 11px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-white);
  background: var(--c-navy);
  border-radius: 100px;
}

.catalog-card__pill--accent {
  background: var(--c-accent);
}

.catalog-card__info {
  display: flex;
  flex-direction: column;
  row-gap: 10px;
}

.catalog-card__title {
  font-size: 22px;
  font-weight: 700;
  line-height: normal;
}

.catalog-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
}

.catalog-card__price {
  font-size: 36px;
  font-weight: 700;
  line-height: normal;
}

.catalog-card--hero .btn--glass {
  width: 402px;
}

.catalog-card--cta .btn--glass {
  width: 402px;
  max-width: 100%;
}

.about-form__row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 16px 0 8px;
}

.about-form__row .form-group {
  flex: 1 0 0;
}

.about-form__row .form-control {
  color: var(--c-white);
  background-color: transparent;
  border-color: var(--c-white);
}

.about-form__row select.form-control {
  background: url(../img/ico/chevron-down-white.svg) right 18px center no-repeat transparent;
}

.about-form__row select.form-control option {
  color: var(--c-dark);
}

.about-form__row .form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.about-form__submit {
  flex: none;
  width: 305px;
}

/* ==========================================================================
   CORP — корпоративным клиентам (тёмная панель)
   ========================================================================== */
.corp {
  padding: 100px 0;
  background: var(--c-subtle);
}

.corp__panel {
  padding: 100px 40px;
  background: var(--c-navy);
  border-radius: 32px;
}

.corp__cols {
  display: flex;
  align-items: stretch;
  gap: 20px;
}

.corp__text {
  display: flex;
  flex: none;
  flex-direction: column;
  justify-content: space-between;
  row-gap: 32px;
  width: 428px;
}

.corp__benefits {
  display: flex;
  flex-direction: column;
  row-gap: 16px;
}

.corp__benefit {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--c-white);
}

.corp__benefit-ico {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--c-accent);
  border-radius: 12px;
}

.corp__stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.corp__stat + .corp__stat {
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  padding-left: 28px;
}

.corp__stat-num {
  font-size: 36px;
  font-weight: 700;
  line-height: normal;
  color: var(--c-white);
}

.corp__stat-label {
  color: var(--c-muted);
}

.corp__btn {
  width: 402px;
  max-width: 100%;
}

/* Высота колонки с текстом выросла (7 преимуществ) — фото тянется под неё. */
.corp__visual {
  position: relative;
  flex: 1 0 0;
  min-height: 550px;
}

.corp__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.corp__badge {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 227px;
  padding: 20px 24px;
  background: var(--c-white);
  border-radius: 16px;
}

.corp__badge-label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  line-height: normal;
  text-transform: uppercase;
}

.corp__badge-num {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--c-accent);
}

/* ==========================================================================
   PARTS — запасные части
   ========================================================================== */
.parts {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
}

.parts__row {
  display: flex;
  align-items: stretch;
  gap: 20px;
}

.part-card {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  row-gap: 20px;
  padding: 32px;
  background: var(--c-white);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.part-card__ico {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--c-accent);
  border-radius: 14px;
}

.part-card__body {
  display: flex;
  flex-direction: column;
  row-gap: 10px;
}

.part-card__title {
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
}

.part-card__text {
  font-size: 14px;
}

/* ==========================================================================
   REPAIR — кузовной ремонт: аккордеон + фото + CTA-баннер
   ========================================================================== */
.repair {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.repair__list {
  flex: none;
  width: 467px;
}

.repair__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-line);
}

.repair__switch {
  cursor: pointer;
}

.repair__name {
  flex: 1 0 0;
  font-size: 22px;
  font-weight: 700;
  line-height: normal;
  color: #282830;
}

.repair__arr {
  flex: none;
  transition: transform var(--transition);
}

.repair__item.active .repair__arr {
  transform: rotate(180deg);
}

.repair__panel {
  display: none;
  padding: 16px 0 16px 20px;
  border-bottom: 1px solid var(--c-line);
}

.repair__panel li + li {
  margin-top: 8px;
}

.repair__visual {
  position: relative;
  flex: 1 0 0;
  height: 730px;
  overflow: hidden;
  border-radius: var(--radius);
}

.repair__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 44, 95, 0) 54.29%,
    rgba(0, 44, 95, 0.4) 86.93%
  );
}

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

.cta {
  margin-top: 80px;
  padding: 56px 80px;
  text-align: center;
  background: var(--c-navy);
  border-radius: var(--radius);
display: flex;
    flex-direction: column;
}

.cta__title {
  margin-bottom: 32px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--c-white);
}

.cta__form {
  /*width: 580px;*/
  max-width: 100%;
  margin: 0 auto;
  text-align: left;
}

.cta__row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 8px;
}

.cta__row .form-group {
  width: 345px;
}

.cta__row .form-control {
  color: var(--c-white);
  background: transparent;
  border-color: var(--c-white);
}

.cta__row .form-control::placeholder {
  color: var(--c-white);
}

.cta__row select.form-control {
	background: url(../img/ico/chevron-down-white.svg) right 18px center no-repeat transparent;
}

.cta__row select.form-control option {
    color: var(--c-dark);
}

.cta .agree-field {
  color: var(--c-border);
}

.cta__submit {
  width: 195px;
}

/* ==========================================================================
   REVIEWS — слайдер отзывов
   ========================================================================== */
.reviews__rating {
  margin-top: 14px;
}

.reviews {
  position: relative;
}

.review {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* height: 288px; */
  padding: 32px;
  background: var(--c-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.review__top {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  row-gap: 20px;
  min-height: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-muted);
}

.review__name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  line-height: normal;
}

.review__body {
  flex: 1 0 0;
  /* min-height: 0; */
}

/* Скролл появляется только если текст не влез (overflow: auto). */
.review__text {
  height: 160px;
  /* max-height: 100%; */
  padding-right: 12px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--c-navy) var(--c-border);
}

.review__text::-webkit-scrollbar {
  width: 4px;
}

.review__text::-webkit-scrollbar-track {
  background: var(--c-border);
  border-radius: 20px;
}

.review__text::-webkit-scrollbar-thumb {
  background: var(--c-navy);
  border-radius: 20px;
}

.review__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 16px;
  font-size: 14px;
  opacity: 0.5;
}

/* ==========================================================================
   CONTACTS — карточки адресов + карта
   ========================================================================== */
.contacts {
  display: flex;
  align-items: stretch;
  gap: 20px;
}

.contacts__card {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  justify-content: center;
  row-gap: 16px;
  padding: 18px;
  background: var(--c-white);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.contacts__line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  white-space: nowrap;
}

.contacts__line img {
  flex: none;
}

.contacts__line--phone {
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
}

.contacts__card--cta {
  justify-content: flex-start;
  row-gap: 16px;
  padding: 20px;
  color: var(--c-white);
  background: var(--c-navy);
  box-shadow: none;
}

.contacts__card--cta .btn {
  width: 100%;
  color: var(--c-dark);
  background: var(--c-white);
}

.contacts__cta-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.contacts__map {
  height: 325px;
  margin-top: 20px;
  overflow: hidden;
  background: var(--c-border);
  border-radius: 20px;
}

/* ==========================================================================
   FOOTER — подвал
   ========================================================================== */
#contacts {
  padding-bottom: 0;
}

footer {
  padding: 25px 0;
  background: var(--c-warm);
}

.footer__wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 97px;
  padding: 20px;
  font-size: 14px;
  color: var(--c-white);
  background: #0a0a0a;
  border-radius: 16px;
}

.footer__legal {
  max-width: 50%;
  line-height: 1.35;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 60px;
}

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

.footer__author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.disclamer {
  display: none;
  padding: 20px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-muted);
}

/* ==========================================================================
   ANIMATE — появление блоков при скролле (десктоп, класс вешает JS)
   ========================================================================== */
@media (min-width: 992px) {
  .anim {
    opacity: 0;
    transform: translateY(30px);
    transition:
      opacity 0.6s ease,
      transform 0.6s ease;
  }

  .anim.animated {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   MEDIA — планшет
   ========================================================================== */
@media (max-width: 1439px) {
  .section__title {
    font-size: 40px;
  }

  .header__geo {
    /*display: none;*/
        order: 2;
  }

  .menu__group {
    gap: 16px;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .catalog-card--hero {
    width: 60%;
  }

  .catalog__col {
    width: auto;
    flex: 1 0 0;
  }

  .corp__panel {
    padding: 60px 30px;
  }

  .corp__text {
    width: 380px;
  }

  .repair__list {
    width: 400px;
  }

  .repair__visual {
    min-height: 0;
  }

  .promo-bar__wrap { flex-direction:column; }
  .promo-bar__form { width:auto; }
  .promo-bar__timer { width:100%; }

  .promo-bar__timer {
    /*max-width: 50%;*/
  }
}

/* ==========================================================================
   MEDIA — мобильная версия (все переопределения здесь)
   ========================================================================== */
@media (max-width: 767px) {
  .container {
    padding: 0 15px;
  }

  .section {
    padding: 60px 0;
  }

  .section__head {
    margin-bottom: 30px;
  }

  .section__title {
    font-size: 28px;
  }

  .section__text[style] {
    max-width: 100% !important;
  }

  .section__cta {
    width: 100%;
  }

  /* На мобиле показываем по три карточки, остальное — по кнопке. */
  .is-m-hidden {
    display: none !important;
  }

  /* Шапка: сплошной фон (backdrop-filter создаёт containing block
     для fixed-потомков и ломает выезжающее меню). */
  .header__panel {
    background: var(--c-white);
    backdrop-filter: none;
    border-radius: 0 0 20px 20px;
  }

  /* Два ряда: лого + бургер, под ними телефон. Разделитель между рядами
     не нужен — навигация на мобиле уехала в выезжающее меню, и линия
     просто пересекала скруглённый угол панели. */
  .header__top {
    flex-wrap: wrap;
    align-items: center;
    row-gap: 12px;
    padding: 12px 15px;
    border-bottom: 0;
  }

  .logo-group {
    order: 1;
    flex: 1 1 auto;
  }

  .header__phone {
    order: 3;
    flex: 0 0 100%;
    font-size: 16px;
  }

  /* Влезают все три лого: уменьшаем и режем отступы. */
  .logo-group {
    gap: 8px;
  }

  .logo-group__item--main {
    padding: 0 8px 0 0;
  }

  .logo-group__item--main img {
    width: 52px;
    height: auto;
  }

  .logo-group__item--partner {
    padding: 0 8px 0 0;
  }

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

  .logo-group__item:last-child img {
    width: 60px;
    height: auto;
  }

  .header__btn {
    display: none;
  }

  /* Бургер. */
  .m_btn {
    order: 2;
    flex: none;
    align-self: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    margin-left: 10px;
  }

  .m_btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--c-navy);
    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 {
    position: fixed;
    top: 86px;
    right: -100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    width: 100%;
    padding: 20px 0;
    background: var(--c-white);
    transition: right var(--transition);
  }

  .menu.active {
    right: 0;
  }

  .menu__group {
    flex-direction: column;
    align-items: center;
    row-gap: 10px;
    padding: 0 15px;
    overflow: visible;
  }

  /* Баннер. */
  .banner {
    padding-top: 96px;
  }

  .banner__inner {
    height: auto;
    min-height: 520px;
    border-radius: 20px;
  }

  /* position: relative (не static) — иначе z-index не работает и карточка
     с логотипами уходит под абсолютную картинку баннера. */
  .banner__content {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    padding: 20px 15px;
    row-gap: 20px;
    transform: none;
  }

  .banner__headline {
    width: 100%;
    height: auto;
    padding: 20px 15px;
  }

  .banner__title {
    font-size: 24px;
  }

  .banner__btn {
    position: static;
    width: 100%;
    margin-top: 20px;
    transform: none;
  }

  .banner__brands {
    width: 100%;
  }

  .banner__brand {
    padding: 12px;
  }

  /* Промо-полоса + таймер. */
  .promo-bar {
    padding: 30px 0;
  }

  .promo-bar__wrap {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 24px;
    min-height: 0;
  }

  .promo-bar__title {
    font-size: 18px;
  }

  .promo-bar__row {
    flex-direction: column;
    align-items: stretch;
  }

  .promo-bar__row .form-group,
  .promo-bar__submit {
    width: 100%;
  }

  /* Виджет таймера жёстко 669px шириной — на мобиле масштабируем, а не скроллим. */
  .promo-bar__timer {
    max-width: 100%;
    height: 92px;
    overflow: hidden;
  }

  /* Виджет вешает transform инлайном, поэтому только !important. */
  .promo-bar__timer > div {
        transform: scale(0.7) !important;
        transform-origin: center top;
        height: auto !important;
        position: relative;
        left: 50%;
        width: 700px;
        margin-left: -350px !important;
  }

  /* Расчёт ТО. */
  .calc {
    row-gap: 20px;
    padding: 24px 15px;
    border-radius: 20px;
  }

  .calc__lead {
    font-size: 17px;
  }

  .calc__row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .calc__row .form-group,
  .calc__phone {
    width: 100%;
  }

  .calc__featured {
    height: 180px;
    border-radius: 20px;
  }

  .calc__row .form-group,
  .calc__submit {
    flex: auto;
  }

  /* Акции / отзывы. */
  .offers,
  .reviews {
    padding: 0 15px;
  }

  .offer__media {
    height: 240px;
  }

  .review {
    height: auto;
    /* height: 280px; */
    padding: 20px;
  }

  .review__name {
    font-size: 18px;
  }

  .slider-nav {
    gap: 10px;
  }

  .slider-nav__btn {
    width: 40px;
    height: 40px;
    background-size: 20px;
  }

  .slider-nav .slider-nav__bar {
    width: 180px;
    height: 6px;
  }

  /* Услуги. */
  .bento__cell,
  .bento__cell--wide {
    min-width: 100%;
  }

  .svc-card {
    padding: 20px;
    border-radius: 20px;
  }

  .svc-card__title {
    font-size: 20px;
  }

  .svc-card__body {
    min-height: 0;
    row-gap: 16px;
  }

  /* Каталог доп. оборудования и «О нас». */
  .catalog__row,
  .catalog__row--rev,
  .catalog__col {
    flex-direction: column;
    width: 100%;
  }

  .catalog-card,
  .catalog-card--hero {
    width: 100%;
    min-height: 200px;
    padding: 20px;
    border-radius: 20px;
  }

  .catalog-card--hero {
    min-height: 320px;
  }

  .catalog-card--hero .catalog-card__bottom {
    padding-top: 20px;
  }

  .catalog-card__title {
    font-size: 18px;
  }

  .catalog-card__price {
    font-size: 26px;
  }

  /* Стрелка остаётся в строке с текстом, просто мельче. */
  .catalog-card__foot {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .btn--round {
    width: 40px;
    height: 40px;
  }

  .btn--round::before {
    width: 20px;
    height: 20px;
  }

  .catalog-card--hero .btn--glass,
  .catalog-card--cta .btn--glass {
    width: 100%;
  }

  /* Большая карточка каталога: цена отдельной строкой, кнопка под ней. */
  .catalog-card--hero .catalog-card__foot {
    flex-direction: column;
    align-items: stretch;
    row-gap: 16px;
  }

  .about-form__row {
    flex-direction: column;
    align-items: stretch;
  }

  .about-form__row .form-group,
  .about-form__submit {
    width: 100%;
  }

  #equip .catalog,
  #about .catalog {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
  }

  #equip .catalog__row,
  #equip .catalog__col,
  #about .catalog__row,
  #about .catalog__col {
    display: contents;
  }

  /* flex: none — в колоночном флексе flex-basis: 0 схлопнул бы высоту карточки. */
  #equip .catalog-card,
  #about .catalog-card {
    flex: none;
    order: 3;
  }

  #equip .catalog-card--hero,
  #about .catalog-card--hero {
    order: 1;
  }

  #equip .catalog-card--cta {
    order: 2;
  }

  /* «О нас»: сначала фото, под ним форма на синей подложке. */
  #about .catalog-card--form {
    min-height: 0;
    padding: 0;
  }

  #about .catalog-card--form .catalog-card__bottom {
    flex: none;
  }

  #about .catalog-card--form::before {
    display: none;
  }

  #about .catalog-card--form .catalog-card__media {
    position: static;
    height: 200px;
  }

  #about .catalog-card--form .catalog-card__bottom {
    padding: 20px;
  }

  /* Корпоративным клиентам. */
  .corp {
    padding: 60px 0;
  }

  .corp__panel {
    padding: 40px 15px;
    border-radius: 20px;
  }

  .corp__cols {
    flex-direction: column;
  }

  .corp__text {
    width: 100%;
  }

  .corp__stats {
    padding: 16px 0;
  }

  .corp__stat + .corp__stat {
    padding-left: 16px;
  }

  .corp__stat-num {
    font-size: 28px;
  }

  .corp__btn {
    width: 100%;
  }

  .corp__visual {
    min-height: 260px;
  }

  .corp__badge {
    right: 15px;
    bottom: 15px;
    width: auto;
    padding: 14px 16px;
  }

  .corp__badge-num {
    font-size: 22px;
  }

  /* Запчасти. */
  .parts__row {
    flex-direction: column;
  }

  .part-card {
    padding: 20px;
  }

  /* Кузовной ремонт. */
  .repair {
    flex-direction: column;
    align-items: stretch;
  }

  .repair__list {
    width: 100%;
  }

  .repair__name {
    font-size: 18px;
  }

  /* В колоночном flex `flex-basis: 0` перебивает height по главной оси,
     поэтому для мобилы снимаем flex. */
  .repair__visual {
    flex: none;
    height: 240px;
    border-radius: 20px;
  }

  .cta {
    margin-top: 40px;
    padding: 30px 15px;
    border-radius: 20px;
  }

  .cta__title {
    margin-bottom: 20px;
    font-size: 20px;
  }

  .cta__row {
    flex-direction: column;
    align-items: stretch;
  }

  .cta__row .form-group,
  .cta__submit {
    width: 100%;
  }

  /* Контакты + подвал. */
  .contacts {
    flex-direction: column;
  }

  .contacts__map {
    height: 240px;
  }

  .footer__wrap {
    flex-direction: column;
    align-items: flex-start;
    row-gap: 16px;
    padding: 20px;
    border-radius: 20px;
  }

  .footer__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Попап на всю ширину. Селектор составной — иначе правило карточки
     .fancybox-content.popup_container выше по файлу перебивает паддинг. */
  .popup_container,
  .fancybox-content.popup_container {
    width: 100%;
    padding: 24px 20px;
    border-radius: 20px;
  }

  /* fancybox на мобиле — на весь экран. */
  .fancybox-wrap,
  .fancybox-inner,
  .fancybox-type-image {
    width: 100% !important;
    left: 0 !important;
    margin: 0 !important;
  }

  .fancybox-close {
    top: 9px !important;
    right: 9px !important;
  }
}


@media (max-width: 520px) {
  .promo-bar__timer {
        height:65px;
  }
  .promo-bar__timer > div {
        transform: scale(0.50) !important;
        transform-origin: center top;
        height: auto !important;
        position: relative;
        left: 50%;
        width: 700px;
        margin-left: -350px !important;
  }
}


@media (max-width: 400px) {
  .promo-bar__timer {
        height:55px;
  }
  .promo-bar__timer > div {
        transform: scale(0.40) !important;
        transform-origin: center top;
        height: auto !important;
        position: relative;
        left: 50%;
        width: 700px;
        margin-left: -350px !important;
  }
}

.alert { font-size: 20px; }
.text-limit-466 { max-width: 466px; }
.text-limit-710 { max-width: 710px; }
.text-limit-472 { max-width: 472px; }
.text-limit-730 { max-width: 730px; }
.text-limit-726 { max-width: 726px; }
.text-limit-680 { max-width: 680px; }
.text-limit-640 { max-width: 640px; }
.text-limit-444 { max-width: 444px; }



