/* Expert Service — пиксельная сетка под макет */
:root {
  --yellow: #f8f700;
  --gray: #eeeeee;
  --black: #181818;
  --white: #ffffff;
  --gray-inactive: #a3a3a3;
  --nav-bar: #181818;
  --font:
    "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Bebas Neue Pro", "Bebas Neue", sans-serif;
  /* Типографика: десктоп (макет 1440) */
  --fs-display: 74px;
  --fs-h1: 64px;
  --fs-h2: 32px;
  --fs-h3: 24px;
  --fs-body: 18px;
  --fs-btn: 18px;
  --fs-tab: 14px;
  /* Межстрочный интервал (px) к шкале --fs-*: десктоп */
  --lh-display: 80px;
  --lh-h1: 70px;
  --lh-h2: 40px;
  --lh-h3: 36px;
  --lh-body: 28px;
  --lh-btn: 24px;
  /* Отступ между DISPLAY/H1 и следующим H2 */
  --gap-display-h1-to-h2: 16px;
  /* Макет 1440+: контент до 1720px, поля слева/справа 100px; внешняя колонка max 1920 */
  --content-max: 1440px;
  --layout-gutter-x: 100px;
  --layout-max: calc(var(--content-max) + 2 * var(--layout-gutter-x));
  --radius-card: 20px;
  --radius-stat: 10px;
  --radius-pill: 999px;
  --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.08);
  /* Макет: наведение на жёлтые кнопки — чёрная маска 7% на #F8F700 */
  --yellow-pressed: #e6e700;
  /* Тёмные кнопки/«Показать больше» — наведение: средне-серый */
  --black-cta-hover: #4a4a4a;
  /* Квиз: скролл (трек #eee, ползунок — чёрный 30 % ≈ #181818 × 0.3) */
  --es-quiz-scrollbar-w: 8px;
  --es-quiz-scrollbar-track: var(--gray);
  --es-quiz-scrollbar-thumb: rgba(24, 24, 24, 0.3);
}

@media (max-width: 1280px) {
  :root {
    --layout-gutter-x: 64px;
  }
}

@media (max-width: 1100px) {
  :root {
    --layout-gutter-x: 40px;
  }
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--black);
  background: var(--gray);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Абзацы: без типичных браузерных ~1em; отступы между абзацами — в правилах блоков. */
body p {
  margin: 0;
}

/* Ссылки из ACF WYSIWYG: глобально a { text-decoration: none }. */
:is(
    .hero-section__lead,
    .hero-section__lead--service,
    .hero-section__price-line,
    .section__intro,
    .section__intro-gallery,
    .section__intro--stages,
    .reviews-head__intro,
    .review-card__text,
    .trust-card__lead,
    .trust-slide__accent,
    .trust-slide__text,
    .team-block__lead,
    .team-card__name,
    .team-card__role,
    .team-card__exp,
    .consult-section__lead,
    .consult-section__list-title,
    .consult-section__name,
    .consult-section__role,
    .consult-list > li,
    .price-cta__lead,
    .guarantee-intro__text,
    .guarantee-term__value,
    .guarantee-term__note,
    .guarantee-panel__lead,
    .guarantee-list__text,
    .brands-row__line1,
    .brands-row__line2,
    .promotions-archive__intro,
    .promo-single__hero-lead,
    .promo-single__hero-benefit,
    .promo-single__body,
    .warranty-case-card__text,
    .director-section__name,
    .director-section__role,
    .director-stats__text,
    .social-block__lead,
    .about-team__intro,
    .about-intro__p,
    .about-story__p,
    .intro-about__text,
    .about-stat__value,
    .about-stat__label,
    .warehouse-card__text,
    .steps-head__intro,
    .step-card__text,
    .brand-models-card__lead,
    .brand-price-item__text-fallback,
    .brand-price-item__name,
    .brand-price-item__price,
    .service-about-split__p,
    .service-split__text,
    .service-stage-item__bullet-text,
    .service-card__list > li,
    .site-location__addr,
    .site-header__contact-compact-addr,
    .site-mobile-drawer__addr,
    .site-rating__badge,
    .faq-item__inner,
    .contacts-page__social-lead,
    .contacts-page__dir-text,
    .contacts-page__value,
    .contacts-cta-card__lead,
    .repair-quiz__name,
    .repair-quiz__role,
    .repair-quiz__question,
    .es-popup__lead,
    .es-popup__lead-director,
    .es-popup-form__consent-text,
    .site-contact-block__hours-label,
    .site-contact-block__hours-value,
    .site-mobile-drawer__hours-label,
    .site-mobile-drawer__hours-value,
    .site-rating__caption-line,
    .contact-map__text,
    .site-footer__cbody
  )
  a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Поля ввода: текст и placeholder на всём сайте */
:is(
  input:not([type="button"]):not([type="submit"]):not([type="reset"]):not(
      [type="checkbox"]
    ):not([type="radio"]):not([type="range"]):not([type="hidden"]):not(
      [type="file"]
    ):not([type="image"]):not([type="color"]),
  textarea,
  select
) {
  font-weight: 500;
  color: var(--black);
}

:is(
  input:not([type="button"]):not([type="submit"]):not([type="reset"]):not(
      [type="checkbox"]
    ):not([type="radio"]):not([type="range"]):not([type="hidden"]):not(
      [type="file"]
    ):not([type="image"]):not([type="color"]),
  textarea
)::placeholder {
  font-weight: 500;
  color: #a3a3a3;
}

:is(
  input:not([type="button"]):not([type="submit"]):not([type="reset"]):not(
      [type="checkbox"]
    ):not([type="radio"]):not([type="range"]):not([type="hidden"]):not(
      [type="file"]
    ):not([type="image"]):not([type="color"]),
  textarea
)::-webkit-input-placeholder {
  font-weight: 500;
  color: #a3a3a3;
}

:is(
  input:not([type="button"]):not([type="submit"]):not([type="reset"]):not(
      [type="checkbox"]
    ):not([type="radio"]):not([type="range"]):not([type="hidden"]):not(
      [type="file"]
    ):not([type="image"]):not([type="color"]),
  textarea
)::-moz-placeholder {
  font-weight: 500;
  color: #a3a3a3;
  opacity: 1;
}

/* Типографика: Bebas Neue Pro (DISPLAY / H1), Commissioner (остальное). По умолчанию 400, Bold там где в макете 700. */
.heading-display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  text-transform: uppercase;
}

.heading-display + :is(h2, h3, .section__title, .heading-h2) {
  margin-top: var(--gap-display-h1-to-h2);
}

.section__head:has(.heading-display) {
  display: flex;
  flex-direction: column;
  gap: var(--gap-display-h1-to-h2);
}

.section__head:has(.heading-display) .heading-display {
  margin: 0;
}

.section__head:has(.heading-display) .section__title {
  margin: 0;
}

.hero-section__title + :is(h2, .section__title, .heading-h2) {
  margin-top: var(--gap-display-h1-to-h2);
}

.hero-section__title:has(+ h2) {
  margin-bottom: 0;
}

.page-article__title + :is(h2, .heading-h2) {
  margin-top: var(--gap-display-h1-to-h2);
}

.page-article__title:has(+ h2) {
  margin-bottom: 0;
}

:is(h1, .heading-h1) {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
}

.font-body-bold {
  font-weight: 700;
}

.heading-h3 {
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
}

.heading-h3--bold {
  font-weight: 700;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100000;
  padding: 12px 16px;
  background: var(--yellow);
  color: var(--black);
  clip: auto;
  width: auto;
  height: auto;
}

.container {
  width: 100%;
  max-width: var(--layout-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--layout-gutter-x);
  padding-right: var(--layout-gutter-x);
}

/* --- Header --- */
.site-header {
  position: relative;
  z-index: 50;
  background: #000000;
  color: var(--white);
}

body.site-header-has-hero-bg .site-header {
  background: transparent;
}

.site-header__top {
  position: relative;
  overflow: hidden;
  border-bottom: none;
  background: var(--nav-bar);
}

body.site-header-has-hero-bg .site-header__top {
  background:
    linear-gradient(
      90deg,
      rgba(24, 24, 24, 0.62) 0%,
      rgba(24, 24, 24, 0.3) 100%
    ),
    rgba(24, 24, 24, 0.34);
  backdrop-filter: blur(16px) saturate(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
}

.site-header__top-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 50px;
  padding-top: 15px;
  padding-bottom: 15px;
}

.site-header__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.site-logo {
  display: block;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}

.site-logo__img {
  display: block;
  width: 100%;
  max-width: 130px;
  height: auto;
}

.site-logo--footer .site-logo__img {
  max-width: 150px;
}

.site-rating {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
}

.site-rating__badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--white);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 700;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--white);
  flex-shrink: 0;
}

.site-rating__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.site-rating__stars {
  display: flex;
  gap: 3px;
  align-items: center;
  line-height: 0;
}

.site-rating__star-img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.site-rating__caption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  max-width: none;
  text-align: left;
}

.site-rating__caption-line {
  display: block;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--white);
}

.site-location {
  display: flex;
  flex: 1 1 200px;
  min-width: 180px;
  max-width: 280px;
  gap: 10px;
  align-items: flex-start;
}

.site-location__pin {
  flex-shrink: 0;
  margin-top: 0;
  display: flex;
  align-items: flex-start;
}

.site-location__pin-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.site-location__pin-img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.site-location__addr {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.site-location__map {
  display: inline-block;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: var(--yellow);
  text-decoration: none;
  transition:
    color 0.15s ease,
    opacity 0.15s ease;
}

.site-location__map:hover,
.site-location__map:focus-visible {
  color: var(--yellow-pressed);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-social-bar {
  flex-shrink: 0;
}

.site-social-bar__label {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

.site-social-bar__icons {
  display: flex;
  gap: 10px;
}

.site-social-bar__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  --es-soc-cutout: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.site-social-bar__btn:hover,
.site-social-bar__btn:focus-visible,
.site-social-bar__btn:active {
  background: var(--yellow);
  --es-soc-cutout: var(--yellow);
  transform: none;
}

.site-social-bar__icon-img {
  display: block;
  width: auto;
  max-width: 26px;
  max-height: 24px;
  object-fit: contain;
}

.site-social-bar__btn .es-messenger-svg {
  display: block;
  width: auto;
  height: auto;
  max-width: 26px;
  max-height: 24px;
}
.site-contact-block {
  flex-shrink: 0;
  margin-left: auto;
  text-align: right;
}

.site-contact-block__phone {
  display: block;
  font-family: var(--font);
  font-weight: 700;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--white);
}

.site-contact-block__hours {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 15px;
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.92);
}

.site-contact-block__hours-group {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3em;
  white-space: nowrap;
}

.site-contact-block__hours-label {
  font-weight: 700;
  color: var(--white);
}

.site-contact-block__hours-value {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
}

.site-contact-block__callback {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: var(--yellow);
}

.site-header__burger {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 0;
  font-size: 0;
}

.site-header__burger-line {
  display: block;
  width: 24px;
  height: 2px;
  min-height: 2px;
  max-height: 2px;
  margin: 0;
  padding: 0;
  border: 0;
  line-height: 0;
  font-size: 0;
  color: transparent;
  flex: 0 0 2px;
  flex-shrink: 0;
  align-self: center;
  box-sizing: border-box;
  background: var(--white);
  border-radius: 1px;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.site-header__burger[aria-expanded="true"]
  .site-header__burger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header__burger[aria-expanded="true"]
  .site-header__burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.site-header__burger[aria-expanded="true"]
  .site-header__burger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-header__contact-compact,
.site-header__socials-mobile {
  display: none;
}

.site-header__socials-mobile {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.site-header__socials-mobile-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  --es-soc-cutout: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: background 0.15s ease;
}

.site-header__socials-mobile-btn:hover,
.site-header__socials-mobile-btn:focus-visible {
  background: var(--yellow);
  --es-soc-cutout: var(--yellow);
}

.site-header__socials-mobile-icon {
  max-width: 24px;
  max-height: 24px;
  object-fit: contain;
}

.site-header__socials-mobile-btn .es-messenger-svg {
  display: block;
  width: auto;
  height: auto;
  max-width: 24px;
  max-height: 24px;
}
.site-header__contact-compact {
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-self: center;
  min-width: 0;
  gap: 2px;
}

.site-header__contact-compact-addr {
  margin: 0;
  font-size: var(--fs-btn);
  font-weight: 400;
  line-height: var(--lh-btn);
  color: rgba(255, 255, 255, 0.95);
}

.site-header__contact-compact-phone {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}

.site-nav-wrap {
  width: 100%;
  background: #181818;
  position: relative;
  z-index: 25;
  overflow: visible;
}

.site-nav {
  width: 100%;
  position: relative;
}

/* Десктоп: выпадающие списки «Услуги» / «Марки авто» (страницы с шаблонами посадок). */
.site-nav__item--has-mega {
  position: relative;
  z-index: 10;
}

/* Невидимый мост под пунктом — курсор не «выпадает» из li при движении к панели. */
.site-nav__item--has-mega::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 20px;
  z-index: 11;
}

.site-nav__mega {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 12;
  box-sizing: border-box;
  width: max-content;
  min-width: 0;
  max-width: calc(100vw - 24px);
  padding-top: 22px;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translate(var(--mega-dx, 0px), -6px);
  pointer-events: none;
  text-align: left;
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease,
    transform 0.22s ease;
}

.site-nav__mega--brands {
  max-width: calc(100vw - 24px);
}

.site-nav__item--has-mega:hover > .site-nav__mega,
.site-nav__item--has-mega:focus-within > .site-nav__mega {
  opacity: 1;
  visibility: visible;
  transform: translate(var(--mega-dx, 0px), 0);
  pointer-events: auto;
}

.site-nav__mega-panel {
  position: relative;
  margin: 0;
  padding: 22px 28px 26px;
  background: rgba(26, 26, 26, 0.97);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: visible;
}

/* Треугольник: выходит за верх панели — у панели overflow не задаём (см. скролл в .site-nav__mega-cols). */
.site-nav__mega-panel::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: var(--mega-arrow-left, 28px);
  z-index: 1;
  width: 0;
  height: 0;
  margin-bottom: -1px;
  border-style: solid;
  border-width: 0 10px 11px 10px;
  border-color: transparent transparent rgba(26, 26, 26, 0.97) transparent;
  transform: translateX(-50%);
}

/* Колонки: число задаётся inline --mega-cols (по числу групп из PHP). */
/* Скролл только у содержимого — иначе overflow на панели обрезает ::before (треугольник). */
.site-nav__mega-cols {
  display: grid;
  grid-template-columns: repeat(var(--mega-cols, 1), minmax(0, max-content));
  gap: 10px 36px;
  align-items: start;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.site-nav__mega-col {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.site-nav__mega-link {
  display: block;
  font-size: var(--fs-btn);
  font-weight: 400;
  line-height: var(--lh-btn);
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  cursor: pointer;
  transition:
    color 0.15s ease,
    font-weight 0.15s ease;
}

.site-nav__mega-link:hover,
.site-nav__mega-link:focus-visible {
  color: var(--yellow);
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 11px 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  width: 100%;
}

.site-nav__item {
  min-width: 0;
  text-align: center;
}

.site-nav__link {
  display: block;
  width: fit-content;
  margin-inline: auto;
  padding: 5px 15px;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  color: var(--white);
  transition: color 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  text-shadow:
    0.35px 0 0 currentColor,
    -0.35px 0 0 currentColor;
}

.site-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  box-sizing: border-box;
  background: transparent;
  pointer-events: none;
}

.site-mobile-drawer[hidden] {
  display: none;
}

.site-mobile-drawer:not([hidden]) {
  pointer-events: auto;
}

/* Затемнение страницы — страница остаётся под оверлеем, не «новый экран» */
.site-mobile-drawer__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.site-mobile-drawer__sheet {
  position: absolute;
  z-index: 1;
  right: 0;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  background: var(--black);
  box-sizing: border-box;
  padding: 20px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  pointer-events: auto;
  overflow: hidden;
}

.site-mobile-drawer--open .site-mobile-drawer__sheet {
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .site-mobile-drawer__sheet {
    transition: none;
  }
}

/* Одна строка: логотип | «Свяжитесь с нами» + те же иконки, что в моб. шапке | × */
.site-mobile-drawer__head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  flex-shrink: 0;
  width: 100%;
  min-height: 0;
  padding: 0 0 16px;
  box-sizing: border-box;
}

.site-mobile-drawer__logo {
  line-height: 0;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 38%;
}

.site-mobile-drawer__logo-img {
  display: block;
  width: 100%;
  max-width: min(120px, 100%);
  height: auto;
}

.site-mobile-drawer__head-contact {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 4px;
}

.site-mobile-drawer__head-label {
  margin: 0;
  font-size: var(--fs-btn);
  line-height: var(--lh-btn);
  font-weight: 400;
  color: var(--white);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Те же кнопки, что в .site-header__socials-mobile; видимы в оверлее на любой ширине */
.site-mobile-drawer .site-header__socials-mobile {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
}

/* Общий крестик закрытия модалок: assets/images/cross.svg, 36×36 */
.es-modal-close-icon {
  display: block;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  pointer-events: none;
  transition: filter 0.15s ease;
}

.site-mobile-drawer__close:hover .es-modal-close-icon,
.site-mobile-drawer__close:focus-visible .es-modal-close-icon,
.es-popup__close:hover .es-modal-close-icon,
.es-popup__close:focus-visible .es-modal-close-icon,
.gallery-lightbox__close:hover .es-modal-close-icon,
.gallery-lightbox__close:focus-visible .es-modal-close-icon {
  filter: brightness(1.35);
}

.site-mobile-drawer__close {
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 0;
}

.site-mobile-drawer__stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Главная панель — в потоке, скролл по высоте пунктов + футера */
.site-mobile-drawer__panel--main {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  min-height: 0;
  overflow: visible;
  background: var(--black);
  transition:
    transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.28s ease;
  z-index: 1;
}

.site-mobile-drawer--sub-open .site-mobile-drawer__panel--main {
  transform: translateX(-10%);
  opacity: 0.55;
}

.site-mobile-drawer__panel--sub {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: var(--black);
  padding-top: 0;
  z-index: 2;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0.32s;
}

.site-mobile-drawer__panel--sub.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition:
    transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0s;
}

.site-mobile-drawer__panel[hidden] {
  display: none;
  animation: none;
}

/* Подпанели без [hidden]: анимация через .is-open */

@media (prefers-reduced-motion: reduce) {
  .site-mobile-drawer__panel--main,
  .site-mobile-drawer__panel--sub {
    transition: none;
  }

  .site-mobile-drawer--sub-open .site-mobile-drawer__panel--main {
    transform: none;
    opacity: 1;
  }
}

@keyframes site-mobile-fade {
  from {
    opacity: 0.85;
  }

  to {
    opacity: 1;
  }
}

.site-mobile-drawer__list {
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-mobile-drawer__list li {
  margin: 0;
  border: none;
}

.site-mobile-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  padding: 16px 4px 16px 0;
  text-align: left;
  text-decoration: none;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 400;
  color: var(--white);
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s ease;
  appearance: none;
}

.site-mobile-drawer__link:hover,
.site-mobile-drawer__link:focus-visible {
  color: var(--yellow);
}

.site-mobile-drawer__link--home {
  font-weight: 700;
}

.site-mobile-drawer__chev {
  font-size: 22px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1;
}

.site-mobile-drawer__foot {
  display: block;
  padding-top: 30px;
}

.site-mobile-drawer__phone {
  display: block;
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: var(--lh-h2);
  color: var(--white);
  text-decoration: none;
}

.site-mobile-drawer__addr {
  margin: 10px 0 0;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  color: rgba(255, 255, 255, 0.9);
}

.site-mobile-drawer__hours {
  margin: 8px 0 0;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px 0;
}

.site-mobile-drawer__hours-group {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em;
}

.site-mobile-drawer__hours-label {
  font-weight: 700;
  color: var(--white);
}

.site-mobile-drawer__hours-value {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
}

.site-mobile-drawer__cta {
  width: 100%;
  max-width: 100%;
  margin-top: 20px;
  padding: 16px 20px;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.site-mobile-drawer__subhead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  gap: 10px;
  padding: 0 0 10px;
}

.site-mobile-drawer__back {
  display: inline-flex;
  gap: 6px;
  padding: 18px 0;
  background: none;
  border: none;
  color: var(--white);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  margin: 0;
  appearance: none;
}

.site-mobile-drawer__back:hover,
.site-mobile-drawer__back:focus-visible {
  color: var(--yellow);
}

.site-mobile-drawer__back-ico {
  line-height: 1;
}

.site-mobile-drawer__subhead-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

.site-mobile-drawer__sublist {
  list-style: none;
  margin: 0;
  padding: 4px 0 16px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-mobile-drawer__sublist li {
  margin: 0;
  border: none;
}

.site-mobile-drawer__sublink {
  display: block;
  padding: 14px 4px 14px 0;
  text-decoration: none;
  color: var(--white);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-mobile-drawer__sublink:hover,
.site-mobile-drawer__sublink:focus-visible {
  color: var(--yellow);
}

/* --- Hero --- */
.hero-section {
  position: relative;
  display: flex;
  background-color: #0a0a0a;
  background-image:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.45) 50%,
      rgba(0, 0, 0, 0.22) 100%
    ),
    var(--hero-bg-image, none);
  background-size: cover, cover;
  background-position:
    center,
    72% center;
  background-repeat: no-repeat;
}

body.site-header-has-hero-bg .hero-section {
  --hero-header-overlap: var(--site-header-overlap, 0px);
  margin-top: calc(-1 * var(--site-header-overlap, 0px));
}

.hero-section__overlay {
  display: none;
}

.hero-section__inner {
  position: relative;
  z-index: 1;
  padding-top: 80px;
}

body.site-header-has-hero-bg .hero-section__inner {
  padding-top: calc(80px + var(--site-header-overlap, 0px));
  padding-bottom: 80px;
}

.hero-section__title {
  margin: 0 0 20px;
  max-width: 720px;
  text-transform: uppercase;
  color: var(--white);
  font-size: var(--fs-display);
  line-height: var(--lh-display);
}

.hero-section__content--service .hero-section__title {
  margin-bottom: 0;
}

.hero-section__lead {
  margin: 0;
  max-width: 520px;
}

.hero-section__lead p {
  font-family: var(--font);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
}

.hero-stats {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-stats__item {
  --hero-stat-r: 20px;
  position: relative;
  list-style: none;
  margin: 0;
  width: fit-content;
  max-width: 100%;
  flex: 0 0 auto;
  border-radius: var(--hero-stat-r);
  overflow: hidden;
  padding: 0;
}

.hero-stats__shine {
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--hero-stat-r) + 1px);
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.35) 35%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.5) 68%,
    rgba(255, 255, 255, 0.06) 100%
  );
  background-size: 280% 280%;
  animation: hero-stats-border-shimmer 2.8s ease-in-out infinite;
  pointer-events: none;
}

.hero-stats__inner {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  margin: 1px;
  padding: 15px;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: calc(var(--hero-stat-r) - 1px);
  /* Полупрозрачный фон + размытие — просвечивает фон сзади (hero, director и т.д.) */
  background: rgba(6, 6, 8, 0.68);
  font-weight: 400;
  color: var(--white);
  text-align: center;
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.hero-stats__num {
  flex: 0 0 auto;
  font-size: 24px;
  line-height: 36px;
  color: var(--white);
}

.hero-stats__text {
  flex: 0 1 auto;
  font-size: 18px;
  line-height: 1.2;
  color: var(--white);
}

@keyframes hero-stats-border-shimmer {
  0%,
  100% {
    background-position: 0% 40%;
    opacity: 0.72;
    filter: brightness(0.92);
  }

  50% {
    background-position: 100% 60%;
    opacity: 1;
    filter: brightness(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stats__shine {
    animation: none;
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.35) 0%,
      rgba(255, 255, 255, 0.12) 50%,
      rgba(255, 255, 255, 0.35) 100%
    );
    background-size: 100% 100%;
    opacity: 0.85;
  }
}

.hero-section__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 500;
  font-size: var(--fs-btn);
  line-height: var(--lh-btn);
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.btn--primary {
  background: var(--yellow);
  color: var(--black);
  cursor: pointer;
}

.btn--primary:hover,
.btn--primary:focus-visible,
.btn--primary:active {
  transform: none;
  filter: none;
  background: var(--yellow-pressed);
  background: color-mix(in srgb, #000 7%, var(--yellow));
}

/* Отправка формы: заметная, но неторопливая пульсация */
.es-btn--sending {
  animation: es-btn-sending-pulse 1.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes es-btn-sending-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.62;
  }
}

@media (prefers-reduced-motion: reduce) {
  .es-btn--sending {
    animation: none;
    opacity: 0.85;
  }
}

.btn--hero {
  padding: 23px 25px;
}

.hero-section__tg {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  --es-soc-cutout: rgba(0, 0, 0, 0.35);
  background: rgba(0, 0, 0, 0.35);
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.hero-section__tg:hover,
.hero-section__tg:focus-visible,
.hero-section__tg:active {
  color: var(--yellow);
  border-color: var(--yellow);
}

.hero-section__tg .es-messenger-svg {
  display: block;
  width: auto;
  height: auto;
  max-width: 37px;
  max-height: 31px;
}
/* --- Sections --- */
.section {
  padding: 80px 0;
}

.section--muted {
  background: var(--gray);
}

.section__head {
  margin-bottom: 30px;
}

.section--services {
  padding: 80px 0 0px;
}

.section--gallery {
  /* padding: 80px 0 0px; */
  background: var(--white);
}

.section--reviews {
  padding: 80px 0 0px;
}

.page-template-template-contacts .section--reviews,
.page-template-template-reviews .section--reviews {
  padding: 80px 0;
}

.section--trust {
  padding: 80px 0 0px;
}

.page-template-template-about .section--trust {
  padding: 80px 0;
}

.page-template-template-pricelist .section--promos {
  padding: 0 0 80px 0;
}

.section--steps {
  padding: 80px 0 0px;
}

.section--faq {
  padding: 80px 0 0px;
}

.page-template-template-guarantee .section--faq {
  padding: 80px 0;
}

.section--warranty-case {
  padding: 80px 0 0px;
}

.section--about-cert {
  padding: 80px 0 0px;
}

.section--service-split {
  padding: 80px 0 0px;
}

.section--brand-prices {
  padding: 80px 0 0px;
}

.section--brand-models {
  padding: 80px 0 0px;
}

.section--brand-engines {
  padding: 80px 0 0px;
}

.page-template-template-brand .section--trust {
  padding: 80px 0;
}

.page-template-template-brand .section--faq,
.page-template-template-service .section--faq {
  padding: 80px 0;
}

.page-template-template-service .section--service-signs {
  padding: 80px 0 0px;
}

.page-template-template-service .section--service-stages {
  padding: 80px 0 0px;
}

.page-template-template-service .section--service-about-split {
  padding: 80px 0 0px;
}


.page-template-template-service-single .section--service-signs {
  padding: 80px 0 0px;
}

.page-template-template-service-single .section--service-stages {
  padding: 80px 0 0px;
}

.page-template-template-service-single .section--service-about-split {
  padding: 80px 0 0px;
}



.page-template-template-pricelist .section.repair-quiz {
  padding-top: 0;
  padding-bottom: 28px;
  overflow: visible;
}

.section.repair-quiz {
  padding-bottom: 0;
  padding-top: 80px;
  overflow: visible;
}

.section__head--center {
  text-align: center;
}

.section__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  text-transform: uppercase;
}

.section__intro,
.section__intro-gallery {
  margin: 0 auto;
  max-width: 900px;
}

.section__intro p,
.section__intro-gallery p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  color: var(--black);
}

.section__actions {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.btn--dark {
  background: var(--black);
  color: var(--white);
  padding: 23px 25px;
  gap: 12px;
  cursor: pointer;
}

.btn--dark:hover,
.btn--dark:focus-visible,
.btn--dark:active {
  transform: none;
  background: var(--black-cta-hover);
  color: var(--white);
}

.btn--wide {
  min-width: 280px;
}

.btn__chev {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

[data-services-more][aria-expanded="true"] .btn__chev {
  transform: rotate(180deg);
}

/* --- Services grid --- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

/* Первый экран: 6 плиток, остальные по кнопке */
.service-grid--limited:not(.is-expanded) .service-card:nth-child(n + 7) {
  display: none;
}

.service-card {
  background: var(--white);
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card__media {
  position: relative;
  height: 140px;
  min-height: 140px;
  max-height: 140px;
  background-color: #c8c8c8;
  overflow: hidden;
  border-radius: 30px;
}

.service-card__media:not(.service-card__media--empty)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--service-img);
  background-size: cover;
  background-position: center;
  filter: grayscale(1) brightness(0.5);
}

.service-card__media--empty::before {
  display: none;
}

.service-card__title {
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  margin: 0;
  max-width: calc(100% - 88px);
  font-family: var(--font);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.service-card__chev-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 54px;
  height: 54px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.service-card__chev-btn:hover,
.service-card__chev-btn:focus-visible,
.service-card__chev-btn:active {
  filter: none;
}

.service-card__arrow-ring {
  box-sizing: border-box;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  padding: 15px;
  flex-shrink: 0;
  transition: all 0.1s ease;
}

.service-card__arrow-ring--compact {
  width: 34px;
  height: 34px;
}

.service-card__arrow-ring .service-card__arrow-svg {
  transition: all 0.28s ease;
  transform: rotate(180deg);
}

.service-card.is-open .service-card__arrow-ring .service-card__arrow-svg {
  transform: rotate(180deg);
}

.service-card__chev-btn:hover .service-card__arrow-ring,
.service-card__chev-btn:focus-visible .service-card__arrow-ring,
.service-card__chev-btn:active .service-card__arrow-ring {
  background: var(--yellow);
  color: var(--black);
  transform: rotate(90deg);
}

.service-card__expand {
  border: none;
  background: none;
  color: var(--black);
  cursor: pointer;
  opacity: 0.75;
  display: inline-flex;
  align-items: center;
  justify-content: left;
  padding: 4px;
  transition: opacity 0.2s ease;
}

.service-card__expand .service-card__arrow-svg {
  transition: transform 0.25s ease;
}

.service-card.is-open .service-card__expand .service-card__arrow-svg {
  transform: rotate(180deg);
}

.service-card__expand:hover,
.service-card__expand:focus-visible {
  opacity: 1;
}

.service-card__expand:hover .service-card__arrow-ring,
.service-card__expand:focus-visible .service-card__arrow-ring {
  background: var(--yellow);
  color: var(--black);
}

.service-card__body {
  position: relative;
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--black);
  max-height: 142px;
  margin-bottom: 30px;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.service-card__list li {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.service-card__list-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.service-card__list-link:hover,
.service-card__list-link:focus-visible {
  color: var(--yellow-dark);
}

.service-card.is-open .service-card__list {
  max-height: 3000px;
}

.service-card__list li + li {
  margin-top: 10px;
}

/* --- Brands --- */
.brands-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brands-row__text {
  max-width: 377px;
}

.brands-row__line1 {
  margin: 0;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 400;
}

.brands-row__line2 {
  margin: 4px 0 0;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 700;
  text-transform: lowercase;
}

.brands-slider {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.brands-slider__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  color: #000;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
}

.brands-slider__nav .brands-slider__chev {
  display: block;
  flex-shrink: 0;
}

.brands-slider__nav:hover:not(:disabled),
.brands-slider__nav:focus-visible:not(:disabled) {
  color: #000;
}

.brands-slider__nav.is-disabled,
.brands-slider__nav:disabled {
  color: #ccc;
  cursor: default;
  opacity: 1;
}

.brands-slider__viewport {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

/* Перетаскивание слайдеров: не отдавать горизонтальный жест браузеру */
.brands-slider__viewport,
[data-steps-slider],
[data-trust-slider],
[data-team-slider],
[data-reviews-slider] {
  cursor: grab;
  touch-action: none;
}

.brands-slider__viewport.is-dragging,
[data-steps-slider].is-dragging,
[data-trust-slider].is-dragging,
[data-team-slider].is-dragging,
[data-reviews-slider].is-dragging {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}

.brands-slider__track {
  list-style: none;
  margin: 0;
  padding: 12px 0;
  display: flex;
  gap: 10px;
  align-items: center;
  transition: transform 0.35s ease;
}

.brands-slider__item {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 200px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brands-slider__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  outline-offset: 2px;
}

.brands-slider__logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: grayscale(1);
}

/* --- Director --- */
.section--director {
  padding: 0;
}

.director-section {
  /* URL задаётся только из PHP, чтобы не запрашивать дефолтный файл при смене фона в админке */
  --director-bg-image: none;
  position: relative;
  overflow: visible;
  background: #0a0a0a;
}

.director-section__bg-clip {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.director-section__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      105deg,
      rgba(0, 0, 0, 0.58) 0%,
      rgba(0, 0, 0, 0.42) 42%,
      rgba(0, 0, 0, 0.45) 100%
    ),
    var(--director-bg-image);
  background-size: cover;
  background-position: center;
  filter: grayscale(1) brightness(0.7);
  transform: scale(1.08);
  pointer-events: none;
}

.director-section__layout {
  position: relative;
  z-index: 1;
  padding-top: 40px;
  padding-bottom: 40px;
}

.director-section__body {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: 100%;
  max-width: 56%;
}

.director-section__title {
  position: relative;
  z-index: 2;
  margin: 0 0 28px;
  max-width: 56%;
  text-transform: uppercase;
  color: var(--white);
}

.director-stats {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  margin: 0 0 32px;
  align-items: stretch;
  gap: 14px;
}

.director-stats .hero-stats__item {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  max-width: 100%;
}

.director-stats__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  text-align: left;
  min-height: 100%;
}

.director-stats__num {
  display: block;
  font-family: var(--font);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 400;
  color: var(--white);
}

.director-stats__text {
  display: block;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  color: var(--white);
}

.director-stats__text p,
.director-stats__text span {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  color: var(--white);
}

.director-stats__text strong {
  font-weight: 700;
  color: var(--white);
}

.btn--director {
  padding: 23px 25px;
  font-size: var(--fs-btn);
  line-height: var(--lh-btn);
}

.director-section__photo-wrap {
  position: absolute;
  z-index: 4;
  right: 10%;
  bottom: 0;
  top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  width: auto;
  height: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.director-section__label {
  position: absolute;
  top: min(32%, 120px);
  right: -15%;
  max-width: 32%;
  color: var(--white);
  z-index: 2;
  pointer-events: auto;
}

.director-section__name {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
}

.director-section__role {
  margin: 6px 0 0;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  opacity: 0.92;
}

.director-section__photo {
  display: block;
  width: auto;
  max-width: min(542px, 48vw);
  max-height: 520px;
  height: auto;
  object-fit: contain;
  object-position: bottom right;
  flex: 0 0 auto;
}

/* --- Promotions --- */
.promo-grid {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 20px;
}

.promo-grid--archive {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: none;
  grid-auto-rows: minmax(260px, auto);
  gap: 24px;
}

.promo-grid--archive .promo-card--large {
  grid-row: auto;
  min-height: 280px;
}

.promotions-archive__head {
  margin-bottom: 36px;
  text-align: left;
}

.promotions-archive__intro p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--black);
}

.promotions-archive__actions {
  margin-top: 36px;
}

.promotions-archive__empty {
  text-align: center;
}

.promotions-home__more-wrap {
  margin-top: 28px;
  text-align: center;
}

.promo-single__top {
  padding-top: 80px;
  padding-bottom: 80px;
}

.promo-single__page-head {
  margin-bottom: 30px;
  text-align: start;
}

.promo-single__kicker {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  font-weight: 700;
  margin: 0;
  color: var(--black);
}

.promo-single__hero-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 50px;
}

.promo-single__hero-card--has-bg {
  /* Высота блока от контента; картинка только фоном */
  min-height: 0;
}

/* Фон секции верхней карточки: inset + cover — кадрирование задаётся из редактора (object-position на img) */
.promo-single__hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
}

.promo-single__hero-bg img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Основы для transform-origin: точку кадра задаёт родитель через inline (--promo-pos-*) из редактора */
.promo-single__hero-bg.promo-single__hero-bg--focal {
  --promo-pos-x: 50%;
  --promo-pos-y: 50%;
}

/* Лёгкое читабельное засветление слева под текстом (тоньше переход) */
.promo-single__hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.98) 10%,
    rgba(255, 255, 255, 0.84) clamp(96px, 24%, 320px),
    rgba(255, 255, 255, 0.6) min(54%, 420px),
    rgba(255, 255, 255, 0) 72%
  );
}

/* При ручном кадре — доп. zoom заметнее двигает обе оси (при только cover часто почти не видно смещение по X) */
.promo-single__hero-bg.promo-single__hero-bg--focal img {
  transform-origin: var(--promo-pos-x) var(--promo-pos-y);
}

.promo-single__hero-main {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: min(500px, 92%);
}

.promo-single__hero-title {
  font-family: var(--font);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 700;
  margin: 0 0 30px;
  color: var(--black);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.promo-single__hero-cta {
  min-width: 250px;
}

.promo-single__hero-benefit {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 700;
  color: var(--black);
}

/* Текст из WYSIWYG часто обёрнут в <p>: без этого lh на абзаце уходит в «normal» (~1.3× кеглю ≈ 31px при мобильном fs-h2 24px). */
.promo-single__hero-benefit :where(p, span, a, strong, b, em, i, small) {
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  color: inherit;
}

.promo-single__hero-benefit :where(p) {
  margin: 0;
}

.promo-single__hero-benefit :where(p + p) {
  margin-top: 0.25em;
}

.promo-single__hero-lead {
  margin: 0 0 30px;
  text-align: left;
}

.promo-single__hero-lead p {
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: var(--lh-h3);
  color: var(--black);
}

.promo-single__hero-cta-wrap {
  margin: 0;
}

.promo-single__shell {
  padding-top: 0 !important;
  padding-bottom: 56px;
}

.promo-single__blocks-wrap {
  border-radius: 30px;
}

.promo-single__blocks-wrap .promo-single__block:first-child {
  padding: 50px;
  background: white;
  border-radius: 20px;
}

.promo-single__block-heading {
  margin: 0 0 16px;
}

.promo-single__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.promo-single__split--reverse .promo-single__figure {
  order: 2;
}

.promo-single__figure img {
  width: 100%;
  border-radius: var(--radius-card);
  display: block;
}

.promo-single__body p {
  margin: 0 0 16px;
}

.promo-single__body > p:last-child,
.promo-single__body > :last-child p:last-child {
  margin-bottom: 0;
}

.promo-single__wp-content {
  margin-bottom: 40px;
}

.promo-single__back-wrap {
  margin-top: 48px;
}

.promo-single__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 720px) {
  .promo-single__hero-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0 0 20px;
  }

  .promo-grid--archive {
    grid-template-columns: 1fr;
  }

  .promo-single__split {
    grid-template-columns: 1fr;
  }

  .promo-single__split--reverse .promo-single__figure {
    order: 0;
  }

  /* Карточка акции: сверху текст и CTA, снизу фото на всю ширину (как макет) */
  .promo-single__hero-card--has-bg {
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 0;
  }

  .promo-single__hero-main {
    order: 1;
    max-width: 100%;
    padding: 50px 30px 0;
  }

  .promo-single__hero-bg {
    position: relative;
    order: 2;
    inset: auto;
    width: 100%;
    flex: 0 0 auto;
    border-radius: 0;
    overflow: hidden;
    min-height: 0;
    height: clamp(200px, 44vw, 260px);
  }

  /* Тот же характер засветления, что слева на десктопе — на мобилке сверху вниз (фото под текстом) */
  .promo-single__hero-bg::after {
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.98) 8%,
      rgba(255, 255, 255, 0.84) clamp(48px, 30%, 120px),
      rgba(255, 255, 255, 0.6) min(58%, 160px),
      rgba(255, 255, 255, 0) 78%
    );
  }

  .promo-single__hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
    object-fit: cover;
    object-position: center 52%;
    max-height: none;
    vertical-align: unset;
    min-height: 0;
  }

  /* На мобиле достаточно object-fit + фикс высоты ячейки; zoom ломает блок */
  .promo-single__hero-bg.promo-single__hero-bg--focal img {
    transform: none;
    transform-origin: center center;
  }

  .promo-single__blocks-wrap .promo-single__block:first-child {
    padding: 50px 30px;
  }
}

.promo-card {
  position: relative;
  display: block;
  border-radius: var(--radius-card);
  overflow: hidden;
  padding: 30px;
}

.promo-card--large {
  grid-row: span 2;
  min-height: 420px;
}

.promo-card--small {
  min-height: 200px;
}

.promo-card--light {
  background: var(--white);
  color: var(--black);
}

.promo-card--cond {
  background: #141414;
  color: var(--white);
}

.promo-card__bg--cond {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
}

.promo-card__bg--cond img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) brightness(0.62);
  transform: scale(1.04);
}

/* Точку кадра задаёт родитель (из ACF inline), здесь только запас по умолчанию */
.promo-card__bg--cond.promo-card__bg--focal {
  --promo-pos-x: 50%;
  --promo-pos-y: 50%;
}

/* Ручной кадр (ACF): усиленный zoom — чтобы сдвиг по горизонтали был заметен при cover */
.promo-card__bg--cond.promo-card__bg--focal img {
  transform: scale(1.34);
  transform-origin: var(--promo-pos-x) var(--promo-pos-y);
}

.promo-card__bg--cond::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.55) 100%
  );
  pointer-events: none;
}

.promo-card--cond .promo-card__text,
.promo-card--cond .promo-card__arrow {
  z-index: 2;
}

.promo-card__arrow {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  padding: 15px;
  z-index: 2;
  transition: all 0.15s ease;
}

.promo-card__arrow--on-dark {
  background: var(--white);
  color: var(--black);
}

.promo-card__arrow:hover,
.promo-card__arrow:focus-visible,
.promo-card__arrow:active {
  background: var(--yellow);
  color: var(--black);
  transform: rotate(90deg);
}

.promo-card__text {
  position: relative;
  z-index: 2;
  max-width: 100%;
}

.promo-card__name {
  margin: 0;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 700;
  max-width: 72%;
}

.promo-card--cond .promo-card__name {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
}

.promo-card--susp .promo-card__name {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
}

.promo-card__value {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
}

.promo-card__value--dark {
  color: var(--black);
}

.promo-card__figure {
  pointer-events: none;
}

.promo-card__figure--tire {
  position: absolute;
  left: -15%;
  bottom: -70%;
  width: 138%;
  max-width: 1000px;
  z-index: 1;
}

.promo-card__figure--tire img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left bottom;
}

.promo-card__figure--susp {
  position: absolute;
  right: 10%;
  top: 0%;
  width: 58%;
  max-width: 240px;
  z-index: 1;
}

.promo-card__figure--susp img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transform: rotate(38deg);
  transform-origin: center center;
}

.promo-card--tyre .promo-card__text {
  position: relative;
  z-index: 2;
}

.promo-card--susp .promo-card__text {
  position: relative;
  z-index: 2;
}

/* Тема карточки (ACF): светлая / тёмная */
.promo-card--theme-dark.promo-card--light.promo-card--large {
  background: #141414;
  color: var(--white);
}

.promo-card--theme-dark.promo-card--light.promo-card--large .promo-card__name {
  color: var(--white);
}

.promo-card--theme-dark.promo-card--light.promo-card--large .promo-card__value {
  color: var(--white);
}

.promo-card--theme-dark.promo-card--susp.promo-card--light {
  background: #141414;
  color: var(--white);
}

.promo-card--theme-dark.promo-card--susp.promo-card--light .promo-card__name,
.promo-card--theme-dark.promo-card--susp.promo-card--light .promo-card__value {
  color: var(--white);
}

.promo-card--cond.promo-card--theme-light .promo-card__name,
.promo-card--cond.promo-card--theme-light .promo-card__value--dark {
  color: var(--black);
}

.promo-card--cond.promo-card--theme-light {
  color: var(--black);
}

.promo-card--cond.promo-card--theme-light .promo-card__bg--cond img {
  filter: grayscale(0.15) brightness(0.95);
  transform: scale(1.02);
}

.promo-card--cond.promo-card--theme-light
  .promo-card__bg--cond.promo-card__bg--focal
  img {
  transform: scale(1.34);
  transform-origin: var(--promo-pos-x) var(--promo-pos-y);
}

.promo-card--theme-light .promo-card__bg--cond::after {
  background: transparent;
}

.promo-card--theme-light .promo-card__bg--cond img {
  filter: none;
  transform: none;
}

.promo-card--theme-light .promo-card__bg--cond.promo-card__bg--focal img {
  transform: scale(1.34);
  transform-origin: var(--promo-pos-x) var(--promo-pos-y);
}

.promo-card--has-bg.promo-card--theme-dark .promo-card__bg--cond::after {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.52) 0%,
    rgba(0, 0, 0, 0.88) 100%
  );
}

.promo-card--has-bg.promo-card--theme-dark .promo-card__bg--cond img {
  filter: grayscale(1) brightness(0.98);
  transform: scale(1.04);
}

.promo-card--has-bg.promo-card--theme-dark
  .promo-card__bg--cond.promo-card__bg--focal
  img {
  filter: grayscale(1) brightness(0.98);
  transform: scale(1.39);
  transform-origin: var(--promo-pos-x) var(--promo-pos-y);
}

.promo-card--has-bg.promo-card--theme-dark.promo-card--light.promo-card--large,
.promo-card--has-bg.promo-card--theme-dark.promo-card--light.promo-card--susp {
  background: transparent;
}

/* Ручное кадрирование: object-position + cover — заметное смещение кадра */
.promo-card__figure--tire.promo-card__figure--focal {
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  min-height: 260px;
  max-height: 360px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.promo-card__figure--tire.promo-card__figure--focal img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  max-height: 360px;
}

.promo-card__figure--susp.promo-card__figure--focal {
  width: 62%;
  max-width: 280px;
  min-height: 200px;
}

.promo-card__figure--susp.promo-card__figure--focal img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  transform: none;
}

/* --- Gallery --- */
.section--gallery__wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.photo-grid.gallery-slider-root {
  min-width: 0;
}

.gallery-slider__viewport {
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

.gallery-slider__track {
  display: flex;
  gap: 0;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.gallery-slider__nav {
  display: none;
}

.photo-grid.gallery-slider-root {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (min-width: 721px) {
  .section--gallery .gallery-slider__viewport,
  .section--gallery .gallery-slider__track {
    display: contents;
  }

  .section--gallery .gallery-slider__track {
    transition: none;
    will-change: auto;
  }

  .section--gallery .gallery-slider__viewport {
    overflow: visible;
  }
}

.photo-grid__cell {
  margin: 0;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  transform-origin: center center;
  transition: transform 0.45s ease;
}

.photo-grid__cell:hover {
  transform: scale(1.08);
  z-index: 1;
}

.photo-grid__link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
  cursor: zoom-in;
  outline: none;
}

.photo-grid__link:focus-visible {
  border-radius: 24px;
}

.photo-grid__cell img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: min(48px, 5vw);
  background: rgba(0, 0, 0, 0.88);
  cursor: zoom-out;
  box-sizing: border-box;
}

.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-lightbox__img {
  max-width: min(96vw, 1600px);
  max-height: min(92vh, 1200px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  cursor: default;
}

.gallery-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 0;
}

/* --- Reviews --- */
.section--reviews.section--muted {
  background: #ededed;
}

.reviews-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  margin-bottom: 32px;
}

.reviews-head__left {
  display: flex;
  flex-direction: row;
  gap: 40px;
}

.reviews-head__title {
  margin: 0;
  justify-self: start;
  max-width: 100%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  text-transform: uppercase;
  color: var(--black);
}

.reviews-head__ratings {
  display: flex;
  gap: 20px 28px;
  flex-wrap: wrap;
  justify-self: center;
  justify-content: center;
}

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

.reviews-head__badge a {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  color: var(--black);
}

.reviews-head__platform-link {
  color: inherit;
  text-decoration: none;
}

.reviews-head__platform-link:hover,
.reviews-head__platform-link:focus-visible {
  text-decoration: underline;
}

.reviews-head__pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reviews-brand-img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.reviews-head__badge .reviews-star-s {
  display: block;
  flex-shrink: 0;
  color: var(--black);
}

.reviews-head__score {
  font-weight: 700;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.reviews-head__cta {
  flex-shrink: 0;
  align-self: center;
  padding: 23px 25px;
  text-decoration: none;
}

.section--reviews:not(.reviews-page) .reviews-head__intro {
  margin: 0;
  max-width: 880px;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--black);
}

.section--reviews:not(.reviews-page) .reviews-home--has-intro {
  grid-template-rows: auto auto auto;
}

.section--reviews:not(.reviews-page)
  .reviews-home--has-intro
  > .reviews-head__intro {
  grid-column: 1 / -1;
  grid-row: 2;
}

.section--reviews:not(.reviews-page)
  .reviews-home--has-intro
  > .reviews-slider {
  grid-row: 3;
}

.section--reviews:not(.reviews-page)
  .reviews-home--has-intro
  > .reviews-carousel-nav {
  grid-row: 1;
}

.reviews-head__nav {
  display: flex;
  gap: 10px;
  justify-self: end;
}

.reviews-nav-btn {
  width: 69px;
  height: 69px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(24, 24, 24, 0.12);
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    opacity 0.15s ease;
}

.reviews-nav-btn--prev {
  background: var(--white);
  color: #888;
}

.reviews-nav-btn--next {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* Отзывы: та же логика стрелок, что у команды — активная чёрная, у края серая */
.reviews-head__nav .reviews-nav-btn {
  border: none;
}

.reviews-head__nav .reviews-nav-btn:disabled {
  opacity: 1;
  cursor: not-allowed;
  background: var(--white);
  color: #c5c5c5;
}

.reviews-head__nav .reviews-nav-btn:not(:disabled) {
  cursor: pointer;
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.reviews-head__nav .reviews-nav-btn:not(:disabled):hover,
.reviews-head__nav .reviews-nav-btn:not(:disabled):focus-visible,
.reviews-head__nav .reviews-nav-btn:not(:disabled):active {
  background: var(--yellow);
  color: var(--black);
  filter: none;
}

/* Главная: блок отзывов со слайдером */
.section--reviews:not(.reviews-page) .reviews-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 28px 24px;
  align-items: start;
}

.section--reviews:not(.reviews-page) .reviews-home > .reviews-head {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 0;
}

.section--reviews:not(.reviews-page) .reviews-home > .reviews-carousel-nav {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.section--reviews:not(.reviews-page) .reviews-home > .reviews-slider {
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
}

.reviews-carousel-nav {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.reviews-carousel-nav .reviews-nav-btn {
  border: none;
}

.reviews-carousel-nav .reviews-nav-btn:disabled {
  opacity: 1;
  cursor: not-allowed;
  background: var(--white);
  color: #a3a3a3;
}

.reviews-carousel-nav .reviews-nav-btn:not(:disabled) {
  cursor: pointer;
  background: var(--black);
  color: var(--white);
}

.reviews-carousel-nav .reviews-nav-btn:not(:disabled):hover,
.reviews-carousel-nav .reviews-nav-btn:not(:disabled):focus-visible {
  background: var(--yellow);
  color: var(--black);
}

.reviews-slider {
  overflow-x: hidden;
  overflow-y: visible;
}

.reviews-slider__track {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  transition: transform 0.4s ease;
  will-change: transform;
}

.review-card {
  flex: 0 0 auto;
  flex-shrink: 0;
  min-width: 0;
  height: auto;
  overflow: visible;
  background: var(--white);
  border-radius: 24px;
  padding: 30px;
}

.review-card__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.review-card__identity {
  min-width: 0;
  flex: 1;
  margin-bottom: 30px;
}

.review-card__icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.review-card__name {
  display: block;
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  color: var(--black);
}

.review-card__meta {
  margin: 5px 0 0;
  font-size: var(--fs-body);
  color: var(--black);
  line-height: var(--lh-body);
}

.review-card__on--ya {
  color: #fc3f1d;
  font-weight: 400;
}

.review-card__on--g {
  color: #1a73e8;
  font-weight: 400;
}

.review-card__stars {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 10px;
  color: var(--black);
}

.review-card__star {
  display: inline-flex;
  line-height: 0;
}

.review-card__star .reviews-star-s {
  display: block;
  width: 24px;
  height: 24px;
}

.reviews-head__stars {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

.review-card__text {
  margin: 0;
}

.review-card__text p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--black);
}

/* Страница «Отзывы»: один белый блок как на макете (шапка = как на главной, справа кнопка) */
.reviews-page {
  padding: 80px 0;
}

.reviews-page-panel {
  border-radius: var(--radius-card);
}

.reviews-page-panel .reviews-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  margin-bottom: 0;
}

.reviews-page-panel .reviews-head__cta {
  flex-shrink: 0;
  align-self: center;
  padding: 23px 25px;
  text-decoration: none;
}

.reviews-page-panel .reviews-head__intro {
  max-width: none;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--black);
  margin: 0;
}

.reviews-page-panel__head {
  display: flex;
  flex-direction: column;
  gap: 30px;
  background: var(--white);
  border-radius: 30px;
  padding: 50px;
  margin-bottom: 20px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
}

.reviews-page .reviews-grid .review-card,
.reviews-page-panel .reviews-grid .review-card {
  flex: none;
  width: auto;
  min-width: 0;
  max-width: none;
}

.review-card.review-card--panel {
  border-radius: 20px;
  border: 1px solid rgba(24, 24, 24, 0.06);
}

.reviews-page-panel .reviews-expand {
  padding-top: 32px;
  margin-top: 0;
  border-top: 1px solid #eeeeee;
}

.reviews-expand {
  display: flex;
  justify-content: center;
  margin-top: 0;
}

.reviews-expand__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  width: 250px;
  padding: 23px 25px;
  font-family: var(--font);
  font-size: var(--fs-btn);
  line-height: var(--lh-btn);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--white);
  background: var(--black);
  border-radius: 40px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}

.reviews-expand__btn:hover,
.reviews-expand__btn:focus-visible,
.reviews-expand__btn:active {
  filter: none;
  transform: none;
  background: var(--black-cta-hover);
  color: var(--white);
}

.reviews-expand__btn:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.reviews-expand__btn .es-icon-arrow {
  transition: transform 0.25s ease;
}

.reviews-expand__btn.is-expanded .es-icon-arrow {
  transform: rotate(180deg);
}

.reviews-page-after {
  padding-top: 0;
}

/* --- Social --- */
/* Низ стека обрезает мокапы по скруглению карточки (round), верх — с отрицательным inset. */
.social-stack {
  position: relative;
  clip-path: inset(-35vh 0 0 0 round 30px);
  -webkit-clip-path: inset(-35vh 0 0 0 round 30px);
}

.social-block {
  display: grid;
  /* Левый блок всегда 54% ширины, правый — 46%, с минимальной шириной второй колонки */
  grid-template-columns: 44% minmax(200px, 46%);
  gap: 24px 40px;
  align-items: center;
  background: var(--white);
  border-radius: 30px;
  padding: 80px 70px;
  overflow: hidden;
}

.social-block__text {
  min-width: 0;
}

.social-block__title {
  margin: 0 0 12px;
  font-family: var(--font);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 700;
}

.social-block__lead {
  margin: 0 0 28px;
  max-width: 420px;
}

.social-block__lead p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--black);
}

.social-block__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn--social {
  background: var(--yellow);
  color: var(--black);
  padding: 10px 20px 10px 10px;
  font-size: var(--fs-btn);
  line-height: var(--lh-btn);
  gap: 12px;
  cursor: pointer;
}

.btn--social:hover,
.btn--social:focus-visible,
.btn--social:active {
  background: var(--yellow-pressed);
  background: color-mix(in srgb, #000 7%, var(--yellow));
}

.btn--social__ic-wrap {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn--social__ic {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Абсолютный блок не участвует в высоте .social-stack, но нужна реальная высота padding-box —
   иначе у детей ломается расчёт bottom/right в % (при height: 0 первый телефон «пропадает» без filter-слоя). */
.social-block__visual {
  position: absolute;
  top: 75%;
  right: clamp(20px, 5vw, 52px);
  transform: translateY(-50%);
  width: min(520px, 56%);
  height: clamp(380px, 44vw, 520px);
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

.social-block__screen {
  position: absolute;
  bottom: 0;
  width: auto;
  height: 640px;
  max-width: min(400px, 44vw);
  object-fit: contain;
  object-position: bottom center;
  user-select: none;
  transform: translateZ(0);
}

.social-block__screen--1 {
  width: 100%;
  right: -28%;
  z-index: 1;
  transform-origin: bottom center;
}

.social-block__screen--2 {
  right: 25%;
  bottom: clamp(-68px, -4vw, -56px);
  z-index: 2;
  transform-origin: bottom center;
}

/* --- Intro about --- */
.section--white {
  background: var(--white);
}

.intro-about__title {
  margin: 0 0 20px;
  font-family: var(--font);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  color: var(--black);
}

.intro-about__text p {
  margin: 0 0 16px;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--black);
}

.intro-about__text div {
  margin: 0 0 16px;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--black);
}

.intro-about__text > p:last-child,
.intro-about__text > :last-child p:last-child {
  margin-bottom: 0;
}

/* --- Steps --- */
.steps-head {
  margin-bottom: 0;
}

.steps-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  text-transform: uppercase;
}

.steps-head__intro {
  margin: 16px 0 0;
}

.steps-head__intro p {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  color: var(--black);
}

/* Десктоп: заголовок слева, стрелки справа в одной строке; слайдер ниже (как у блока отзывов) */
.steps-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 28px 24px;
  align-items: center;
}

.steps-layout > .steps-head {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.steps-layout > .steps-carousel-nav {
  grid-column: 2;
  grid-row: 1;
  margin-top: 0;
  width: auto;
  align-self: center;
}

.steps-layout > .steps-slider {
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
}

/* Страница марки: «Распространённые неисправности» — заголовок+стрелки, затем подзаголовок, затем слайдер */
.steps-layout--brand-malf {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
}

.steps-layout--brand-malf .brand-malf-head-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.steps-layout--brand-malf .brand-malf-head-row .steps-head {
  min-width: 0;
}

.steps-layout--brand-malf .brand-malf-head-row .steps-carousel-nav {
  margin-top: 0;
  width: auto;
  flex-shrink: 0;
  align-self: center;
}

.steps-layout--brand-malf > .steps-head__intro {
  margin: 0;
}

.steps-layout--brand-malf > .steps-slider {
  min-width: 0;
}

.steps-slider {
  overflow: hidden;
  min-width: 0;
}

.steps-slider__track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
}

.step-card {
  flex: 0 0 auto;
  flex-shrink: 0;
  min-width: 0;
  min-height: 280px;
  padding: 28px 28px 32px;
  border-radius: 24px;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.step-card--dark {
  background: var(--black);
  color: var(--white);
}

.step-card__num {
  display: block;
  margin-bottom: 12px;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 400;
  color: rgba(24, 24, 24, 0.45);
}

.step-card--dark .step-card__num {
  color: rgba(255, 255, 255, 0.55);
}

.step-card__title {
  margin: 0 0 12px;
  font-family: var(--font);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 700;
}

.step-card__text {
  margin: 0 0 20px;
  flex: 1;
  color: inherit;
  opacity: 0.92;
}

.step-card__text p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.step-card:not(.step-card--dark) .step-card__text {
  color: var(--black);
}

/* Общая жёлтая кнопка темы (.btn.btn--primary), прижата к низу карточки */
.step-card__cta {
  align-self: flex-start;
  margin-top: auto;
  width: 100%;
  padding: 23px 25px;
}

/* --- Consultation --- */
.section--consult {
  padding: 0;
}

.consult-section {
  /* URL задаётся только из PHP — см. section-consultation.php */
  --consult-bg-image: none;
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
}

.consult-section__bg-clip {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.consult-section__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      100deg,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.7) 75%,
      rgba(0, 0, 0, 0.42) 100%
    ),
    var(--consult-bg-image);
  background-size: cover;
  background-position: center;
  filter: grayscale(1) brightness(0.68);
  transform: scale(1.06);
  pointer-events: none;
}

.consult-section__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 275px);
  gap: 32px 48px;
  align-items: end;
  padding-top: 55px;
  padding-bottom: 55px;
  min-height: min(570px, 92vh);
}

.consult-section__form-block {
  position: relative;
  z-index: 3;
  min-width: 0;
  max-width: 638px;
  padding: 25px 0;
}

.consult-section__heading {
  position: relative;
}

.consult-section__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  text-transform: uppercase;
  color: var(--white);
}

.consult-section__lead {
  margin: 0 0 40px;
  max-width: 400px;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 400;
  color: var(--white);
}

.consult-section__lead p {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 400;
  color: var(--white);
}

.consult-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 315px;
}

.consult-form__input {
  width: 100%;
  height: 60px;
  padding: 16px 22px;
  border-radius: 30px;
  border: none;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-family: var(--font);
  background: #e8e8e8;
}

.consult-form__input:focus {
  outline: none;
}

.consult-form__btn {
  padding: 23px 25px;
}

.consult-section__side {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.consult-section__label {
  position: absolute;
  z-index: 2;
  top: 20%;
  right: 10%;
  color: var(--white);
  max-width: 113px;
}

.consult-section__name {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  color: var(--white);
}

.consult-section__role {
  margin: 6px 0 0;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: rgba(255, 255, 255, 0.95);
}

.consult-section__list-title {
  margin: 0 0 14px;
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  color: var(--white);
}

.consult-section__list-wrap {
  min-width: 0;
  max-width: 275px;
}

.consult-section__photo-wrap {
  position: absolute;
  z-index: 2;
  left: 48%;
  bottom: -15%;
  transform: translateX(-44%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  max-width: 680px;
  pointer-events: none;
}

.consult-section__photo {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(680px, 65vw);
  height: auto;
  object-fit: contain;
  object-position: bottom center;
}

.consult-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.consult-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 15px;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--white);
}

.consult-list li p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--white);
}

.consult-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: url("../images/right_line.svg") no-repeat center center;
  background-size: contain;
  filter: brightness(0) invert(1); /* делает стрелку белой */
  opacity: 0.95;
}

/* --- Страница «Контакты»: блок «Остались вопросы?» --- */
.section--contacts-cta {
  padding: 0;
  background: var(--gray);
}

.contacts-cta-card {
  --contacts-cta-bg-image: none;
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  min-height: 200px;
  background: #141414;
}

.contacts-cta-card__bg-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.contacts-cta-card__bg {
  position: absolute;
  inset: -16px;
  background-image:
    linear-gradient(
      105deg,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.55) 45%,
      rgba(0, 0, 0, 0.72) 100%
    ),
    var(--contacts-cta-bg-image, none);
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
  filter: grayscale(1) brightness(0.82) blur(7px);
  transform: scale(1.06);
  pointer-events: none;
}

.contacts-cta-card__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding: 50px 70px;
}

.contacts-cta-card__text {
  flex: 1 1 260px;
  min-width: 0;
  max-width: 610px;
}

.contacts-cta-card__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  color: var(--white);
}

.contacts-cta-card__lead {
  margin: 0;
}

.contacts-cta-card__lead p {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 400;
  color: var(--white);
}

.contacts-cta-form {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  justify-content: flex-end;
  min-width: min(100%, 280px);
}

.contacts-cta-form__input {
  min-width: 0;
  max-width: 320px;
  height: 60px;
  padding: 16px 22px;
  border-radius: var(--radius-pill);
  border: none;
  font-size: var(--fs-btn);
  line-height: var(--lh-btn);
  font-family: var(--font);
  background: #e8e8e8;
}

.contacts-cta-form__btn {
  flex: 0 1 auto;
  padding: 23px 25px;
  white-space: nowrap;
}

/* --- Trust --- */
.trust-card {
  background: var(--white);
  border-radius: 28px;
  padding: 40px 40px 36px;
}

.trust-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.trust-card__head-text {
  max-width: 740px;
}

.trust-card__title {
  margin: 0 0 12px;
  font-family: var(--font);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 700;
  color: var(--black);
}

.trust-card__lead {
  margin: 0;
  max-width: 640px;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--black);
}

.trust-card__lead p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--black);
}

.trust-card__nav {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* Trust: как у команды — есть куда листать: чёрная; у края: белая */
.trust-card__nav .reviews-nav-btn {
  border: none;
}

.trust-card__nav .reviews-nav-btn:disabled {
  opacity: 1;
  cursor: not-allowed;
  background: var(--white);
  color: #c5c5c5;
}

.trust-card__nav .reviews-nav-btn:not(:disabled) {
  cursor: pointer;
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.trust-card__nav .reviews-nav-btn:not(:disabled):hover,
.trust-card__nav .reviews-nav-btn:not(:disabled):focus-visible,
.trust-card__nav .reviews-nav-btn:not(:disabled):active {
  background: var(--yellow);
  color: var(--black);
  filter: none;
}

.trust-slider {
  overflow: hidden;
}

.trust-slider__track {
  display: flex;
  gap: 18px;
  transition: transform 0.4s ease;
  will-change: transform;
}

.trust-slide {
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  min-width: 350px;
  min-height: 176px;
  padding: 22px 20px 22px 22px;
  border-radius: 18px;
  background: var(--gray);
}

.trust-slide__copy {
  position: relative;
  z-index: 1;
  max-width: 58%;
  min-width: 0;
}

.trust-slide:not(:has(.trust-slide__media)) .trust-slide__copy {
  max-width: 100%;
}

/* Иллюстрация за текстом, крупная, у правого нижнего края */
.trust-slide__media {
  position: absolute;
  z-index: 0;
  top: var(--trust-media-top, 50%);
  right: var(--trust-media-right, -15%);
  bottom: var(--trust-media-bottom, auto);
  left: var(--trust-media-left, auto);
  transform: var(--trust-media-transform, translateY(-50%));
  width: var(--trust-media-width, 78%);
  max-width: var(--trust-media-max-width, 220px);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.trust-slide__media--2 {
  width: var(--trust-media-width, 78%);
  max-width: var(--trust-media-max-width, 167px);
  right: var(--trust-media-right, 0);
  top: var(--trust-media-top, 45%);
}

.trust-slide__media--3 {
  width: var(--trust-media-width, 78%);
  max-width: var(--trust-media-max-width, 185px);
  right: var(--trust-media-right, -5%);
  top: var(--trust-media-top, 50%);
}

.trust-slide__img {
  display: block;
  width: var(--trust-img-width, 100%);
  height: var(--trust-img-height, auto);
  max-width: none;
  object-fit: contain;
  object-position: right center;
}

/*
 * Индивидуальная настройка картинок trust-карточек:
 * .trust-slide--1 / .trust-slide__media--1 / .trust-slide__img--1
 * .trust-slide--trust1 / .trust-slide__media--trust1 / .trust-slide__img--trust1
 */

.trust-slide__accent {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  color: var(--black);
}

.trust-slide__text {
  margin: 0;
}

.trust-slide__text p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--black);
}

/* --- Team --- */
.team-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(234px, 275px);
  gap: 30px;
  align-items: stretch;
}

.team-block__cards {
  overflow: hidden;
  min-width: 0;
}

.team-block__track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
  will-change: transform;
}

.team-card {
  flex: 0 0 auto;
  flex-shrink: 0;
  min-width: 0;
}

.team-card__media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  height: 100%;
  min-height: 400px;
  background: var(--white);
}

.team-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right top;
  min-height: 400px;
  padding-top: 10px;
}

/* Нижний блок с данными сотрудника: высота по контенту (длинная фамилия не «ломает» высоту карточки искусственно). */
.team-card__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px 18px 22px;
  text-align: center;
  color: var(--white);
  overflow-wrap: break-word;
  hyphens: auto;
  border-radius: 0 0 24px 24px;
  background: rgba(14, 14, 14, 0.42);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
  transform: translateZ(0);
}

@supports not (backdrop-filter: blur(1px)) {
  .team-card__caption {
    background: linear-gradient(
      180deg,
      rgba(14, 14, 14, 0.72) 0%,
      rgba(10, 10, 10, 0.93) 100%
    );
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.team-card__name {
  margin: 0 0 6px;
  font-family: var(--font);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  color: var(--white);
}

.team-card__role {
  margin: 0 0 8px;
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: rgba(255, 255, 255, 0.92);
}

.team-card__exp {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: rgba(255, 255, 255, 0.88);
}

.team-block__info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: min(420px, 100%);
}

.team-block__intro {
  width: 100%;
}

.team-block__title.heading-h1 {
  margin: 0 0 16px;
  text-transform: uppercase;
  color: var(--black);
}

.team-block__lead.heading-h3 {
  margin: 0;
  max-width: 340px;
  margin-left: auto;
  font-weight: 400;
  color: var(--black);
}

.team-block__nav {
  display: flex;
  gap: 10px;
  margin-top: 32px;
}

/* Команда: «активная» стрелка — чёрный круг; у края — серая, как прежняя «назад» */
.team-block__nav .reviews-nav-btn {
  border: none;
}

.team-block__nav .reviews-nav-btn:disabled {
  opacity: 1;
  cursor: not-allowed;
  background: var(--white);
  color: #c5c5c5;
}

.team-block__nav .reviews-nav-btn:not(:disabled) {
  cursor: pointer;
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.team-block__nav .reviews-nav-btn:not(:disabled):hover,
.team-block__nav .reviews-nav-btn:not(:disabled):focus-visible,
.team-block__nav .reviews-nav-btn:not(:disabled):active {
  background: var(--yellow);
  color: var(--black);
  filter: none;
}

/* Страница «О компании»: команда сеткой (как на макете — 3 + 2 карточки на десктопе) */
.section--about-team .about-team__intro {
  margin-bottom: 0;
}

.about-team__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.about-team__card.team-card {
  width: 100%;
  min-width: 0;
}

/* Высота карточек команды на странице «О компании» — не выше 450px */
.section--about-team .team-card__media {
  max-height: 450px;
}

.section--about-team .team-card__media img {
  max-height: 450px;
  min-height: 0;
  object-fit: contain;
  object-position: center center;
  padding-top: 0;
}

@media (max-width: 900px) {
  .about-team__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section--about-team .team-card__media {
    min-height: 420px;
    max-height: 450px;
    border-radius: 28px;
  }

  .section--about-team .team-card__media img {
    min-height: 420px;
    max-height: 450px;
    object-fit: contain;
    object-position: center center;
    padding-top: 0;
  }

  .section--about-team .team-card__caption {
    border-radius: 0 0 28px 28px;
  }
}

@media (max-width: 620px) {
  .about-team__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Страница «О компании»: сертификаты — сетка как на макете, без обрезки фото (масштаб по ширине колонки, пропорции те же) */
.section--about-cert .section__head {
  margin-bottom: 30px;
}

.about-cert__grid {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}

.about-cert__figure {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  line-height: 0;
}

.about-cert__figure--primary {
  flex: 2.04 1 0;
  min-width: 0;
  max-width: 100%;
}

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

.about-cert__stack {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-cert__figure--secondary {
  flex: 0 0 auto;
}

.about-cert__placeholder {
  display: block;
  width: 100%;
  min-height: 200px;
  background: linear-gradient(145deg, #eee 0%, #e0e0e0 100%);
}

.about-cert__stack .about-cert__placeholder {
  min-height: 140px;
}

@media (max-width: 760px) {
  .about-cert__grid {
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .about-cert__grid {
    gap: 16px;
  }

  .about-cert__stack {
    gap: 16px;
  }
}

/* --- Warehouse --- */
.warehouse-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  align-items: start;
  background: var(--white);
  border-radius: 28px;
  overflow: hidden;
}

/* Высота ряда = max(фото по aspect-ratio, текст). Без stretch фото не растягивается под короткий текст. */
.warehouse-card__media {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 560 / 420;
  overflow: hidden;
  align-self: start;
  border-radius: 30px;
}

.warehouse-card__slide {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 1.4s ease-in-out;
}

.warehouse-card__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.warehouse-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px;
  box-sizing: border-box;
  align-self: center;
}

.warehouse-card__title {
  margin: 0 0 30px;
  font-family: var(--font);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
}

.warehouse-card__text p {
  margin: 0 0 14px;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--black);
}

.warehouse-card__text > p:last-child,
.warehouse-card__text > :last-child p:last-child {
  margin-bottom: 0;
}

/* --- Price CTA --- */
.section--price-cta {
  padding: 0;
}

.price-cta {
  position: relative;
  overflow: hidden;
}

.price-cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Фото: размытие и чёрно-белое на отдельном слое, чтобы не ловить артефакты по краям */
.price-cta__bg::before {
  content: "";
  position: absolute;
  inset: -32px;
  background-image: var(--price-cta-img, none);
  background-size: cover;
  background-position: center;
  filter: blur(12px) grayscale(1);
  /* чб + blur */
  transform: scale(1.08);
}

/* Затемнение поверх */
.price-cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    95deg,
    rgba(10, 10, 10, 0.78) 0%,
    rgba(10, 10, 10, 0.52) 55%,
    rgba(10, 10, 10, 0.4) 100%
  );
}

.price-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 50px;
  padding-bottom: 50px;
}

.price-cta__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  color: var(--white);
}

.price-cta__lead {
  margin: 0;
  max-width: 860px;
}

.price-cta__lead p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--white);
}

.price-cta__btn {
  padding: 23px 25px;
  font-size: var(--fs-btn);
  line-height: var(--lh-btn);
  gap: 12px;
}

/* --- Contact + map --- */
.contact-map {
  display: grid;
  grid-template-columns: minmax(0, min(37%, 462px)) minmax(0, 1fr);
  border-radius: 30px;
  overflow: hidden;
  min-height: 400px;
}

.contact-map__info {
  background: var(--black);
  color: var(--white);
  padding: 50px;
  min-width: 0;
  border-radius: 30px;
}

.contact-map__title {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
}

.contact-map__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-map__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-map__item p {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
}

.contact-map__item a {
  color: var(--white);
  text-underline-offset: 3px;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
}

.contact-map__item a:hover,
.contact-map__item a:focus-visible {
  text-decoration: underline;
}

.contact-map__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.contact-map__icon img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.contact-map__rule {
  height: 1px;
  background: var(--gray);
  margin: 40px 0;
}

.contact-map__map iframe {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: 0;
  display: block;
  border-radius: 30px;
}

/* --- FAQ (полная ширина экрана, фон #999) --- */
.section--faq.section--muted {
  width: 100vw;
  max-width: 100%;
  background: var(--gray);
  box-sizing: border-box;
}

.section__title--faq {
  text-align: center;
  margin-bottom: 30px;
  color: var(--black);
}

/* Иконка +/- в круге — FAQ; этапы услуги и цены марки — .es-acc-arrow со стрелкой */
.es-acc-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--black);
  position: relative;
  flex-shrink: 0;
  transition: transform 0.28s ease;
  box-sizing: border-box;
}

.es-acc-icon::before,
.es-acc-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15px;
  height: 2px;
  background: var(--white);
  transform: translate(-50%, -50%);
  border-radius: 1px;
}

.es-acc-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.es-acc-icon--compact {
  width: 34px;
  height: 34px;
}

.es-acc-icon--compact::before,
.es-acc-icon--compact::after {
  width: 12px;
}

.es-acc-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--black);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: background 0.15s ease;
}

.es-acc-arrow .es-icon-arrow {
  color: var(--white);
  transition:
    transform 0.28s ease,
    color 0.15s ease;
}

.service-stage-item.is-open .es-acc-arrow .es-icon-arrow,
.brand-price-item.is-open .es-acc-arrow .es-icon-arrow {
  transform: rotate(180deg);
}

.faq-item.is-open .es-acc-icon {
  transform: rotate(45deg);
}

.faq-item {
  margin-bottom: 20px;
  background: var(--white);
  border-radius: 40px;
  overflow: hidden;
}

.faq-item__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  padding: 20px 20px 20px 30px;
  border-radius: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.faq-item__btn:hover {
  background: rgba(0, 0, 0, 0.02);
}

.faq-item__q {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 700;
  color: var(--black);
}

.faq-item__btn:hover .es-acc-icon,
.faq-item__btn:focus-visible .es-acc-icon {
  background: var(--yellow);
}

.faq-item__btn:hover .es-acc-icon::before,
.faq-item__btn:hover .es-acc-icon::after,
.faq-item__btn:focus-visible .es-acc-icon::before,
.faq-item__btn:focus-visible .es-acc-icon::after {
  background: var(--black);
}

.es-accordion-inner {
  box-sizing: border-box;
}

.faq-item__panel {
  box-sizing: border-box;
}

.faq-item__inner {
  padding: 0 22px 22px;
}

.faq-item__panel p {
  margin: 0;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  color: var(--black);
}

.faq-item__panel[hidden] {
  display: none;
}

.brand-price-item__panel[hidden],
.service-stage-item__panel[hidden] {
  display: none;
}

/* --- Footer --- */
.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 32px;
  margin-top: 0;
}

.site-footer--full {
  margin-top: 0;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, minmax(0, 1fr));
  gap: 36px 28px;
}

.site-footer__heading {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  color: var(--white);
}

.site-footer__list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}

.site-footer__list li {
  margin-bottom: 10px;
}

.site-footer__list a {
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  text-decoration: none;
}

.site-footer__list a:hover {
  text-shadow:
    0.35px 0 0 currentColor,
    -0.35px 0 0 currentColor;
}

.site-footer__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  color: var(--yellow);
  text-decoration: none;
}

.site-footer__more .es-icon-arrow,
.site-footer__more .site-footer__more-chev {
  flex-shrink: 0;
  color: var(--yellow);
}

.site-footer__contacts {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.site-footer__contacts li {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 15px;
}

.site-footer__contacts li p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.site-footer__contacts a {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--white);
  text-decoration: none;
}

.site-footer__contacts a:hover {
  text-decoration: underline;
}

.site-footer__cicon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.site-footer__cicon img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.site-footer__col--info {
  grid-area: 1 / -1;
}

.site-footer__cbody {
  flex: 1;
  min-width: 0;
  color: var(--white);
}

.site-footer__rule {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 40px 0 28px;
}

.site-footer__bottom-inner {
  display: grid;
  grid-template-columns: minmax(0, 640px) auto;
  grid-template-rows: auto auto auto;
  align-items: start;
  justify-content: space-between;
  column-gap: 32px;
}

.site-footer__cluster p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--white);
}

.site-footer__cluster--company {
  grid-column: 1;
  grid-row: 1 / 3;
}

.site-footer__cluster--copy {
  grid-column: 1;
  grid-row: 3;
  margin-top: 12px;
}

.site-footer__cluster--soc {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  text-align: right;
}

.site-footer__cluster--links {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  text-align: right;
}

.site-footer__cluster--credit {
  grid-column: 2;
  grid-row: 3;
  justify-self: end;
  text-align: right;
}

.site-footer__legal-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
}

.site-footer__legal-item p {
  margin: 0;
}

.site-footer__copyline {
  margin: 0 !important;
}

.site-footer__soc-label {
  margin: 0 0 10px;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
}

.site-footer__soc {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.site-footer__soc-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  --es-soc-cutout: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.site-footer__soc-btn:hover,
.site-footer__soc-btn:focus-visible,
.site-footer__soc-btn:active {
  background: var(--yellow);
  color: var(--black);
  --es-soc-cutout: var(--yellow);
}

.site-footer__soc-btn svg,
.site-footer__soc-svg {
  display: block;
  width: auto;
  height: auto;
  max-width: 24px;
  max-height: 24px;
}

.site-footer__soc-btn .site-footer__soc-img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.site-footer__legal-links {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
}

.site-footer__legal-links a {
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--white);
}

.site-footer__credit {
  margin: 0;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.site-footer__credit a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.site-footer__credit a:hover {
  color: var(--yellow);
}

.page-shell {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-shell.contacts-page {
  padding-bottom: 50px;
}

.error-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 45vh;
  padding: 24px 0 16px;
}

.error-404__code {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(7.5rem, 22vw, 16rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--black);
}

.page-article__title {
  margin-bottom: 24px;
  color: var(--black);
  text-transform: none;
}

.site-anchor {
  scroll-margin-top: 96px;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* --- Страница «Прайс-лист» --- */
.pricelist-page__header.page-shell {
  padding-bottom: 0;
  margin-bottom: 36px;
}

.pricelist-page__body.page-shell {
  padding-top: 0;
}

.pricelist-page__articl {
  padding: 80px 0 0px;
}

.pricelist__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  text-transform: uppercase;
  color: var(--black);
}

.pricelist__lead {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--black);
}

.pricelist__lead p {
  margin: 0;
}

.pricelist__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 28px;
  padding: 30px;
  background: var(--white);
  border-radius: 30px;
}

.pricelist__filter-btn {
  margin: 0;
  padding: 8px 15px;
  font: inherit;
  font-size: 16px;
  line-height: 22px;
  color: var(--black);
  background: var(--gray);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.pricelist__filter-btn:hover:not(.is-active) {
  background: var(--yellow);
  color: var(--black);
}

.pricelist__filter-btn.is-active:hover,
.pricelist__filter-btn.is-active:focus-visible {
  background: var(--black-cta-hover);
  color: var(--white);
}

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

.pricelist__filter-btn:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.pricelist__sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pricelist__section {
  margin: 0;
  padding: 50px;
  background: var(--white);
  border-radius: 30px;
}

.pricelist__section-title {
  margin: 0 0 40px;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 700;
  color: var(--black);
}

.pricelist__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricelist__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray);
}

.pricelist__row:last-child {
  border-bottom: none;
}

.pricelist__name {
  flex: 1 1 200px;
  min-width: 0;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--black);
}

.pricelist__price {
  flex: 0 0 auto;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--black);
  text-align: right;
  white-space: nowrap;
}

.pricelist-page__after {
  margin-top: 40px;
}

/* --- Страница «Гарантия» --- */
.guarantee-page__title {
  margin: 0 0 30px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  text-transform: uppercase;
  color: var(--black);
}

.guarantee-page__content {
  margin-top: 48px;
}

.guarantee-blocks {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.guarantee-card {
  background: var(--white);
  border-radius: 30px;
}

.guarantee-intro {
  padding: 50px;
}

.guarantee-intro__title {
  margin: 0 0 30px;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 700;
  color: var(--black);
}

.guarantee-intro__text {
  margin: 0;
}

.guarantee-intro__text p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--black);
}

.guarantee-terms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.guarantee-term {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px;
}

.guarantee-term__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  background: var(--yellow);
  border-radius: 50%;
}

.guarantee-term__icon-img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.guarantee-term__name {
  margin: 0 0 20px;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 700;
  color: var(--black);
}

.guarantee-term__value {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  color: var(--black);
  text-transform: uppercase;
}

.guarantee-term__note {
  margin: 0;
}

.guarantee-term__note p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--black);
}

.guarantee-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.guarantee-obligations {
  padding: 50px;
}

.guarantee-exceptions {
  padding: 50px;
  background: var(--black);
  border-radius: 30px;
  color: var(--white);
}

.guarantee-panel-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 20px;
}

.guarantee-panel-head--on-dark {
  margin-bottom: 20px;
}

.guarantee-panel-head__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.guarantee-panel-head__badge--safe {
  background: #16a34a;
}

.section--service-signs .guarantee-panel-head__badge--safe {
  background: #0062ff;
}

.section--service-signs .guarantee-panel-head {
  margin: 0 0 40px;
}

.guarantee-panel-head__badge--warning {
  background: #dc2626;
}

.guarantee-panel-head__badge-img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.guarantee-panel-head__badge > svg {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.guarantee-panel-head__title {
  margin: 0;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 700;
  color: var(--black);
}

.guarantee-panel-head--on-dark .guarantee-panel-head__title {
  color: var(--white);
}

.guarantee-panel__lead {
  margin: 0 0 20px;
}

.guarantee-panel__lead p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.guarantee-panel__lead--on-dark {
  color: rgba(255, 255, 255, 0.92);
}

.guarantee-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.guarantee-list__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 15px;
}

.guarantee-list__item:last-child {
  margin-bottom: 0;
}

.guarantee-list__bullet {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 0.12em;
  line-height: 0;
  color: var(--black);
}

.guarantee-list__arrow {
  color: inherit;
}

.guarantee-list__text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.guarantee-list--on-dark .guarantee-list__item {
  color: rgba(255, 255, 255, 0.92);
}

.guarantee-list--on-dark .guarantee-list__bullet {
  color: rgba(255, 255, 255, 0.92);
}

.guarantee-exceptions .guarantee-list__arrow.es-icon-arrow {
  color: var(--white);
}

/* --- Блок «Гарантийный случай» (после секции руководителя) --- */
.section--warranty-case .section__head {
  margin-bottom: 30px;
}

.warranty-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.warranty-case-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: var(--white);
  border-radius: 30px;
  min-height: 0;
  text-align: left;
}

.warranty-case-card--dark {
  background: var(--black);
  color: var(--white);
}

.warranty-case-card__num {
  display: block;
  margin: 0 0 20px;
  font-family: var(--font);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 400;
  color: var(--black);
}

.warranty-case-card--dark .warranty-case-card__num {
  color: var(--white);
  opacity: 0.7;
}

.warranty-case-card__title {
  margin: 0 0 20px;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 700;
  color: var(--black);
}

.warranty-case-card--dark .warranty-case-card__title {
  color: var(--white);
}

.warranty-case-card__body {
  flex: 1 1 auto;
  min-height: 0;
}

.warranty-case-card__text {
  margin: 0;
}

.warranty-case-card__text p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
}

.warranty-case-card--dark .warranty-case-card__text {
  color: var(--white);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
}

.warranty-case-card__tel {
  color: inherit;
  font-weight: inherit;
  text-underline-offset: 3px;
}

.warranty-case-card--dark .warranty-case-card__tel {
  color: var(--white);
}

.warranty-case-card__tel:hover,
.warranty-case-card__tel:focus-visible {
  text-decoration: underline;
}

.warranty-case-card__btn {
  align-self: stretch;
  margin-top: 30px;
  padding: 23px 25px;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.warranty-case-card__btn:hover,
.warranty-case-card__btn:focus-visible,
.warranty-case-card__btn:active {
  color: var(--black);
}

/* --- Страница «О компании» --- */
.about-page__title {
  margin: 0 0 30px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  text-transform: uppercase;
  color: var(--black);
}

.about-page__content {
  margin-top: 48px;
}

/* --- Страница «Наши контакты» --- */
.contacts-page__article {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contacts-page__title {
  margin: 0 0 30px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  text-transform: uppercase;
  color: var(--black);
}

.contacts-page__section--main {
  margin-bottom: 80px;
}

.contacts-page__grid {
  display: grid;
  grid-template-columns: 42% 1fr;
  align-items: stretch;
}

.contacts-page__card {
  padding: 50px;
  min-width: 0;
}

.contacts-page__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contacts-page__row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.contacts-page__row:last-of-type {
  margin-bottom: 0;
}

.contacts-page__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contacts-page__icon img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.contacts-page__row-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding-top: 2px;
}

.contacts-page__label {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  color: var(--black);
}

.contacts-page__value {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
}

a.contacts-page__value:hover {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contacts-page__social {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.contacts-page__social-title {
  margin: 0 0 12px;
  font-family: var(--font);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 700;
  color: var(--black);
}

.contacts-page__social-lead {
  margin: 0 0 22px;
}

.contacts-page__social-lead p {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  color: var(--black);
}

.contacts-page__social-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.contacts-page__map-wrap {
  min-width: 0;
  min-height: 420px;
  border-radius: 30px;
  overflow: hidden;
  background: var(--white);
}

.contacts-page__map {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.contacts-page__directions-title {
  margin: 0 0 30px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  text-align: center;
  text-transform: uppercase;
  color: var(--black);
}

.contacts-page__dir-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.contacts-page__dir-card {
  position: relative;
  padding: 30px;
  min-height: 0;
}

.contacts-page__dir-num {
  display: block;
  margin: 0 0 20px;
  font-family: var(--font);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 400;
  color: var(--black);
}

.contacts-page__dir-subtitle {
  margin: 0 0 20px;
  font-family: var(--font);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 700;
  color: var(--black);
}

.contacts-page__dir-text {
  margin: 0;
}

.contacts-page__dir-text p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--black);
}

.contacts-page__content {
  margin-top: 48px;
}

.about-blocks {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-card {
  background: var(--white);
  border-radius: 30px;
}

.about-intro {
  display: flex;
  flex-direction: column;
  min-height: 480px;
  padding: 50px;
  box-sizing: border-box;
}

.about-intro__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(min-content, 1fr);
  gap: 40px 48px;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  align-items: stretch;
}

.about-intro__col {
  min-width: 0;
}

.about-intro__text {
  min-width: 0;
  max-width: 100%;
}

.about-intro__media {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 30px;
}

.about-intro__heading {
  margin: 0 0 20px;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 700;
  color: var(--black);
}

.about-intro__p {
  margin: 0 0 20px;
}

.about-intro__p p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--black);
}

.about-intro__p:last-child {
  margin-bottom: 0;
}

.about-block__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 30px;
  object-fit: cover;
}

.about-intro__media .about-block__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-story__media .about-block__img--tall {
  max-height: none;
}

.about-story__media .about-block__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-block__placeholder {
  min-height: 260px;
  border-radius: 30px;
  background: linear-gradient(145deg, #ececec 0%, #dedede 100%);
}

.about-intro__media .about-block__placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 0;
}

.about-block__placeholder--tall {
  min-height: min(520px, 60vh);
}

.about-story__media .about-block__placeholder--tall {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 0;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
}

.about-stat__value {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  color: var(--black);
}

.about-stat__label {
  margin: 0;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--black);
}

.about-story {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  min-height: 632px;
  padding: 0;
  box-sizing: border-box;
}

.about-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(min-content, 1fr);
  gap: 0 40px;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  align-items: stretch;
}

.about-story__col {
  min-width: 0;
}

.about-story__media {
  position: relative;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 30px 0 0 30px;
}

.about-story__text {
  min-width: 0;
  box-sizing: border-box;
  padding: 50px;
}

.about-story__heading {
  margin: 0 0 20px;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 700;
  color: var(--black);
}

.about-story__p {
  margin: 0 0 20px;
}

.about-story__p p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--black);
}

.about-story__p:last-child {
  margin-bottom: 0;
}

/* --- Responsive --- */
@media (max-width: 1370px) {
  .site-header--hide-rating .site-rating {
    display: none !important;
  }

  .consult-section__layout {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 255px);
  }

  .consult-section__list-wrap {
    max-width: 255px;
  }
}

/* Консультация: «мобильная» верстка с ширины 1200px и ниже */
@media (max-width: 1200px) {
  /* Фото заходит на заголовок и на блок ниже — не режем секцию и обёртку */
  .consult-section {
    overflow: visible;
  }

  .consult-section__layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding-top: 40px;
    padding-bottom: 48px;
    gap: 0;
    overflow: visible;
  }

  /* Порядок: заголовок → фото → список → форма */
  .consult-section__form-block {
    display: contents;
  }

  .consult-section__heading {
    order: 1;
    max-width: none;
    width: 100%;
    padding: 0 0 4px;
    z-index: 4;
  }

  .consult-section__lead {
    margin-bottom: 0;
  }

  .consult-section__photo-wrap {
    order: 2;
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: 80%;
    margin: 30px auto 8px;
    pointer-events: auto;
    overflow: visible;
    margin-top: clamp(-170px, 16vw, 32px);
  }
  .consult-section__photo {
    width: 100%;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    scale: 1.55;
    /*
     * Затухание только у пикселей фото (не wrap): долгая кривая внизу,
     * к нижнему краю альфа → 0 — на фон #0a0a0a границ не видно.
     */
    -webkit-mask-image: linear-gradient(
      to bottom,
      #fff 0%,
      #fff 38%,
      rgba(255, 255, 255, 0.92) 52%,
      rgba(255, 255, 255, 0.55) 72%,
      rgba(255, 255, 255, 0.18) 90%,
      rgba(255, 255, 255, 0.04) 97%,
      rgba(255, 255, 255, 0) 100%
    );
    mask-image: linear-gradient(
      to bottom,
      #fff 0%,
      #fff 68%,
      rgba(255, 255, 255, 0.92) 78%,
      rgba(255, 255, 255, 0.55) 88%,
      rgba(255, 255, 255, 0.18) 95%,
      rgba(255, 255, 255, 0.04) 97%,
      rgba(255, 255, 255, 0) 100%
    );
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }

  .consult-section__label {
    right: auto;
    left: clamp(0px, 0%, 28px);
    bottom: clamp(16px, 7%, 40px);
    max-width: 102px;
    text-align: left;
  }

  .consult-section__side {
    order: 3;
    width: 100%;
    align-self: stretch;
    position: relative;
    z-index: 3;
  }

  .consult-section__layout:has(.consult-section__photo-wrap)
    .consult-section__side {
    margin-top: 12px;
  }

  .consult-section__list-wrap {
    max-width: none;
  }

  .consult-section__form {
    order: 4;
    width: 100%;
    max-width: none;
    padding-top: 28px;
    margin: 0;
    position: relative;
    z-index: 5;
  }

  .consult-form {
    width: 100%;
    max-width: none;
    gap: 16px;
  }

  .consult-form__input {
    padding: 17px 22px;
    font-size: 16px;
  }

  .consult-form__btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .social-block__screen {
    max-width: min(360px, 44vw);
  }

  .social-block__screen--2 {
    right: 15%;
  }

  .brands-slider__item {
    width: 110px;
  }
}

@media (max-width: 1100px) {
  .page-shell {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .pricelist__title {
    margin: 0 0 20px;
  }

  .pricelist__lead {
    margin: -8px 0 20px;
  }

  .site-logo__img {
    max-width: 90px;
  }

  .site-header__brand .site-header__socials-mobile-btn {
    width: 24px;
    height: 24px;
  }

  .site-header__socials-mobile-icon {
    max-width: 15px;
    max-height: 15px;
    object-fit: contain;
  }

  .site-header__socials-mobile-btn .es-messenger-svg {
    max-width: 15px;
    max-height: 15px;
  }

  .site-header__contact-compact-phone {
    font-size: var(--fs-btn);
    line-height: var(--lh-btn);
  }

  .site-nav-wrap {
    display: none;
  }

  .site-header__top-inner {
    display: grid;
    grid-template-columns: minmax(0, auto) 1fr auto;
    grid-template-areas: "brand mid burger";
    align-items: center;
    column-gap: 8px;
  }

  .site-header__brand {
    grid-area: brand;
  }

  .site-header__contact-compact {
    display: flex;
    grid-area: mid;
    justify-self: center;
    gap: 5px;
  }

  .site-header__socials-mobile {
    display: flex;
    margin-top: 7px;
  }

  .site-header__burger {
    grid-area: burger;
    justify-self: end;
    display: inline-flex;
  }

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

  .review-card {
    flex: 0 0 calc(50% - 12px);
  }

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

  .guarantee-page__title {
    margin-bottom: 20px;
  }

  .contacts-page__title {
    margin-bottom: 20px;
  }

  .about-page__title {
    margin-bottom: 20px;
  }

  .section--about-cert .section__head {
    margin-bottom: 20px;
  }

  .warranty-case-grid {
    grid-template-columns: 1fr;
  }

  .section--warranty-case .section__head {
    margin-bottom: 20px;
  }

  .about-intro__grid,
  .about-story__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .about-story__media .about-block__img--tall {
    max-height: 70vh;
  }

  .about-intro__media .about-block__img,
  .about-story__media .about-block__img {
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
    min-height: 240px;
    max-height: 70vh;
    object-fit: cover;
  }

  .social-stack {
    background: var(--white);
    border-radius: 30px;
    /* Нижний отступ в clip-path, иначе мокапы обрезаются (у инлайнового блока мало высоты) */
    clip-path: inset(-28vh 0 -clamp(100px, 30vw, 220px) 0 round 30px);
    -webkit-clip-path: inset(-28vh 0 -clamp(100px, 30vw, 220px) 0 round 30px);
  }

  .social-block {
    grid-template-columns: 1fr;
    padding: 40px 28px 36px;
    background: transparent;
    border-radius: 0;
    padding: 50px 30px;
  }

  .social-block__text {
    text-align: center;
  }

  .social-block__lead {
    width: 100%;
    max-width: 100%;
  }

  .btn--social {
    flex: 1;
  }

  .social-block__rail {
    display: none;
  }

  .social-block__visual {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 360px;
    height: auto;
    min-height: min(280px, 56vw);
    margin: 8px auto 0;
    display: block;
    transform: none;
  }

  .social-block__screen {
    bottom: auto;
    height: auto;
    max-height: 80vw;
    max-width: 60vw;
  }

  .social-block__screen--1 {
    width: 100%;
    right: auto;
    left: 30%;
    top: 0;
    transform: rotate(-4deg);
    z-index: 3;
  }

  .social-block__screen--2 {
    width: 100%;
    right: 14%;
    left: auto;
    top: -10%;
    transform: rotate(-4deg);
    z-index: 2;
  }
}

@media (max-width: 900px) {
  .brands-row__text {
    max-width: none;
    width: 100%;
    text-align: center;
  }

  .director-stats__inner {
    flex-direction: row;
    gap: 16px;
  }

  .director-stats__num {
    font-size: var(--fs-h3);
    line-height: var(--lh-h3);
  }

  .director-stats__text {
    font-size: var(--fs-body);
    line-height: var(--lh-body);
  }

  .section__head {
    margin-bottom: 20px;
  }

  .contacts-cta-card__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 32px 24px 36px;
  }

  .contacts-cta-form {
    flex-direction: column;
    justify-content: stretch;
  }

  .contacts-cta-form__input {
    max-width: none;
  }

  .contacts-cta-form__btn {
    width: 100%;
    justify-content: center;
  }

  .team-block {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    grid-template-columns: none;
    gap: 0;
  }

  /* Заголовок → слайдер → стрелки снизу (как у отзывов) */
  .section--team .team-block__info {
    display: contents;
  }

  .section--team .team-block__intro {
    order: 1;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
  }

  .section--team .team-block__title.heading-h1,
  .section--team .team-block__lead.heading-h3 {
    margin-left: auto;
    margin-right: auto;
    max-width: 28em;
    text-align: center;
  }

  .section--team .team-block__cards {
    order: 2;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
  }

  .section--team .team-block__nav {
    order: 3;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
    align-self: center;
  }

  /* Стрелки как у .reviews-carousel-nav */
  .section--team .team-block__nav .reviews-nav-btn {
    border: none;
  }

  .section--team .team-block__nav .reviews-nav-btn:disabled {
    opacity: 1;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.06);
    color: #bdbdbd;
  }

  .section--team .team-block__nav .reviews-nav-btn:not(:disabled) {
    cursor: pointer;
    background: var(--black);
    color: var(--white);
  }

  .section--team .team-block__nav .reviews-nav-btn:not(:disabled):hover,
  .section--team .team-block__nav .reviews-nav-btn:not(:disabled):focus-visible,
  .section--team .team-block__nav .reviews-nav-btn:not(:disabled):active {
    background: var(--yellow);
    color: var(--black);
    filter: none;
  }

  .section--team .team-card__media {
    min-height: min(420px, 72vw);
    border-radius: 30px;
  }

  .section--team .team-card__media img {
    min-height: min(420px, 72vw);
  }

  .section--team .team-card__caption {
    border-radius: 0 0 30px 30px;
  }

  .warehouse-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .warehouse-card__media {
    aspect-ratio: 16 / 9;
    border-radius: 30px;
    min-height: 330px;
  }

  .warehouse-card__title {
    margin-bottom: 20px;
  }

  .warehouse-card__content {
    align-self: stretch;
    padding: 32px 24px 40px;
  }

  .contact-map {
    grid-template-columns: 1fr;
  }

  .contacts-page__grid {
    grid-template-columns: 1fr;
  }

  .contacts-page__map-wrap {
    min-height: 360px;
  }

  .contacts-page__dir-grid {
    grid-template-columns: 1fr;
  }

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

  .site-footer__cluster--soc,
  .site-footer__cluster--links,
  .site-footer__cluster--credit {
    text-align: left;
    justify-self: start;
  }

  .site-footer__soc {
    justify-content: flex-start;
  }

  .price-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .director-section__layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 28px;
  }

  .director-section__title {
    max-width: none;
    margin: 0 0 16px;
    padding-right: 0;
  }

  .director-section__body {
    max-width: 100%;
    margin-top: 0;
    z-index: 2;
  }

  .director-section__photo-wrap {
    position: relative;
    z-index: 0;
    left: auto;
    right: auto;
    bottom: auto;
    top: auto;
    width: 100%;
    max-width: none;
    min-height: clamp(300px, 120vw, 500px);
    align-items: flex-start;
    align-self: stretch;
    justify-content: flex-start;
    pointer-events: none;
    overflow: hidden;
  }

  .director-section__label {
    position: relative;
    top: auto;
    right: auto;
    left: 20px;
    z-index: 3;
    pointer-events: auto;
    text-shadow: 0 1px 18px rgba(0, 0, 0, 0.85);
    min-height: 40vh;
    margin-top: 10px;
  }

  .director-section__photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    margin: 0 auto;
    width: auto;
    max-width: 100%;
    height: 85%;
    max-height: none;
    object-fit: contain;
    object-position: bottom center;
    pointer-events: none;
  }

  /* Пункты 01 и 02 над фото — перекрытие с полосой изображения */
  .section.section--director .director-stats {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    margin-top: clamp(-220px, -48vw, -120px);
    margin-bottom: 24px;
  }

  .section.section--director .director-stats .hero-stats__item {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    position: relative;
    z-index: 2;
  }

  .promo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .promo-card__figure--tire {
    width: 70%;
    right: 0;
    left: auto;
  }

  .promo-card__figure--susp {
    top: 22%;
  }

  .promo-card--large {
    grid-row: auto;
    min-height: 267px;
    border-radius: 30px;
  }

  .promo-card--small {
    min-height: 267px;
    border-radius: 30px;
  }

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

  .brands-slider {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .contacts-cta-card__text {
    flex: 0;
    text-align: center;
  }

  .guarantee-split {
    grid-template-columns: 1fr;
  }

  .section--service-signs .guarantee-panel-head {
    margin-bottom: 30px;
  }
}

@media (max-width: 760px) {
  .director-section .btn--director {
    display: inline-flex;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 720px) {
  :root {
    --layout-gutter-x: 20px;
    --fs-display: 52px;
    --fs-h1: 44px;
    --fs-h2: 24px;
    --fs-h3: 20px;
    --fs-body: 16px;
    --fs-btn: 16px;
    --fs-tab: 14px;
    /* Межстрочный интервал (px): мобилка ≤720px */
    --lh-display: 58px;
    --lh-h1: 50px;
    --lh-h2: 30px;
    --lh-h3: 28px;
    --lh-body: 22px;
    --lh-btn: 22px;
  }

  .section {
    padding: 50px 0;
  }

  .section--consult {
    padding: 0;
  }

  .section--services {
    padding: 50px 0 0px;
  }

  .section--director {
    padding: 0;
  }

  .section--gallery {
    /* padding: 80px 0 0px; */
    background: var(--white);
  }

  .section--reviews {
    padding: 50px 0 0px;
  }

  .page-template-template-contacts .section--reviews {
    padding: 50px 0;
  }

  .page-template-template-reviews .section--reviews {
    padding: 50px 0;
  }

  .page-template-template-pricelist .section--promos {
    padding: 0 0 50px 0;
  }

  .section--trust {
    padding: 50px 0 0px;
  }

  .page-template-template-about .section--trust {
    padding: 50px 0;
  }

  .section--steps {
    padding: 50px 0 0px;
  }

  .section--faq {
    padding: 50px 0 0px;
  }

  .page-template-template-guarantee .section--faq {
    padding: 50px 0;
  }

  .section--warranty-case {
    padding: 50px 0 0px;
  }

  .section--about-cert {
    padding: 50px 0 0px;
  }

  .contacts-page__section--main {
    margin-bottom: 50px;
  }

  .section--contacts-cta {
    padding: 0;
  }

  .section--about-cert {
    padding: 50px 0 0px;
  }

  .section--service-split {
    padding: 50px 0 0px;
  }

  .section--brand-prices {
    padding: 50px 0 0px;
  }

  .section--brand-models {
    padding: 50px 0 0px;
  }

  .section--brand-engines {
    padding: 50px 0 0px;
  }

  .page-template-template-brand .section--trust {
    padding: 50px 0;
  }

  .page-template-template-brand .section--faq,
  .page-template-template-service .section--faq {
    padding: 50px 0;
  }

  .page-template-template-service .section--service-signs {
    padding: 50px 0 0px;
  }

  .page-template-template-service .section--service-stages {
    padding: 50px 0 0px;
  }

  .page-template-template-service .section--service-about-split {
    padding: 50px 0 0px;
  }
  
  .page-template-template-service-single .section--service-signs {
    padding: 50px 0 0px;
  }

  .page-template-template-service-single .section--service-stages {
    padding: 50px 0 0px;
  }

  .page-template-template-service-single .section--service-about-split {
    padding: 50px 0 0px;
  }

  .trust-card {
    padding: 28px 22px 24px;
  }

  .trust-card__head {
    flex-direction: column;
  }

  /* «Гарантия» / trust: без слайдера — все карточки колонкой */
  .trust-card__nav {
    display: none;
  }

  [data-trust-slider] {
    overflow: visible;
    touch-action: auto;
  }

  .trust-slider__track {
    flex-direction: column;
    flex-wrap: nowrap;
    transform: none !important;
    transition: none;
    will-change: auto;
    gap: 14px;
  }

  .trust-slide {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    flex: none;
    min-height: 0;
  }

  .trust-slide__media {
    max-width: 170px;
    right: -5%;
  }

  .trust-slide__media--2 {
    max-width: 120px;
    right: 0;
  }

  .trust-slide__media--3 {
    max-width: 120px;
    right: 0;
  }

  .trust-slide__media--4 {
    right: -10%;
  }

  .trust-slide__media--5 {
    max-width: 140px;
  }

  /* Футер: колонка, как на макете телефона */
  .site-footer {
    padding: 40px 0 36px;
  }

  .site-footer__top {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "brand brand"
      "brands info"
      "services services";
    gap: 22px 20px;
    padding: 0 50px;
  }

  .site-logo--footer {
    width: 100%;
  }

  .site-logo--footer .site-logo__img {
    max-width: 250px;
  }

  .site-footer__col--brand {
    grid-area: brand;
    text-align: center;
  }

  .site-footer__col--brand .site-logo {
    display: inline-flex;
    justify-content: center;
  }

  .site-footer__contacts {
    margin-top: 20px;
    text-align: left;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
  }

  .site-footer__col--brands {
    grid-area: brands;
    min-width: 0;
  }

  .site-footer__col--info {
    grid-area: auto;
    min-width: 0;
  }

  .site-footer__col--services {
    grid-area: services;
  }

  .site-footer__heading {
    margin-bottom: 8px;
  }

  .site-footer__rule {
    margin: 28px 0 40px;
  }

  .site-footer__bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
  }

  .site-footer__cluster--soc,
  .site-footer__cluster--company,
  .site-footer__cluster--links,
  .site-footer__cluster--credit,
  .site-footer__cluster--copy {
    grid-column: auto;
    grid-row: auto;
    justify-self: center;
    text-align: center;
    width: 100%;
    max-width: none;
  }

  .site-footer__cluster--copy {
    margin-top: 30px;
  }

  .site-footer__soc {
    justify-content: center;
    margin-bottom: 0;
  }

  .site-footer__soc-label {
    margin-bottom: 12px;
  }

  .site-footer__legal-item {
    align-items: center;
  }

  .site-footer__legal-links {
    align-items: center;
    margin-bottom: 0;
  }

  .site-footer__credit {
    margin: 0;
  }

  .site-footer__copyline {
    margin: 0 !important;
  }

  .hero-section {
    background-size: cover, cover;
    background-position:
      center,
      center 42%;
  }

  .hero-section__inner {
    padding-top: 28px;
    padding-bottom: 163px;
  }

  body.site-header-has-hero-bg .hero-section__inner {
    padding-top: calc(70px + var(--site-header-overlap, 0px));
  }

  .hero-section__lead {
    max-width: none;
    font-size: var(--fs-h3);
    line-height: var(--lh-h3);
  }

  .hero-section__cta-row {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin-top: 24px;
  }

  .btn--hero {
    flex: 1;
    width: fit-content;
    max-width: none;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
    padding: 23px 25px;
  }

  .hero-stats:not(.director-stats) {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 10px;
    align-items: stretch;
    justify-content: flex-start;
    margin-top: 22px;
  }

  .hero-stats:not(.director-stats) .hero-stats__item {
    min-width: 0;
    width: fit-content;
    max-width: 100%;
    flex: 0 0 auto;
  }

  /* no special grid-column for 3rd child needed in flex layout */

  .hero-stats:not(.director-stats) .hero-stats__inner {
    width: fit-content;
    max-width: 100%;
    padding: 18px 16px;
    box-sizing: border-box;
  }

  .hero-stats:not(.director-stats) .hero-stats__num {
    font-size: 20px;
  }

  .hero-stats:not(.director-stats) .hero-stats__text {
    font-size: 16px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .promo-card__figure--tire {
    width: 110%;
    right: -5%;
    top: -75%;
  }

  /* Галерея: один кадр, стрелки как у блоков отзывов */
  .section--gallery .gallery-slider-root.photo-grid {
    display: block;
    gap: 0;
    overflow: visible;
  }

  .section--gallery .gallery-slider__viewport {
    overflow: hidden;
    width: 100%;
    min-width: 0;
    touch-action: none;
    border-radius: 30px;
  }

  .section--gallery .gallery-slider__track {
    display: flex;
    gap: 0;
    flex-direction: row;
    flex-wrap: nowrap;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
  }

  .section--gallery .gallery-slider__slide.photo-grid__cell {
    flex: 0 0 auto;
    overflow: hidden;
    transform-origin: center center;
    border-radius: 30px;
    transition: transform 0.35s ease;
  }

  .section--gallery .gallery-slider__slide.photo-grid__cell:hover {
    transform: none;
  }

  .section--gallery .gallery-slider__nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
  }

  .section--gallery .gallery-slider__nav .reviews-nav-btn {
    border: none;
  }

  .section--gallery .gallery-slider__nav .reviews-nav-btn:disabled {
    opacity: 1;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.06);
    color: #bdbdbd;
  }

  .section--gallery .gallery-slider__nav .reviews-nav-btn:not(:disabled) {
    cursor: pointer;
    background: var(--black);
    color: var(--white);
  }

  .section--gallery .gallery-slider__nav .reviews-nav-btn:not(:disabled):hover,
  .section--gallery
    .gallery-slider__nav
    .reviews-nav-btn:not(:disabled):focus-visible {
    background: var(--yellow);
    color: var(--black);
  }

  /* Главная — отзывы: заголовок → рейтинги → карточка → стрелки (как галерея) */
  .section--reviews:not(.reviews-page) .reviews-home {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .section--reviews:not(.reviews-page) .reviews-home > .reviews-head {
    align-items: center;
    text-align: center;
    flex-direction: column;
    margin-bottom: 16px;
    width: 100%;
  }

  .section--reviews:not(.reviews-page) .reviews-head__left {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
  }

  .section--reviews:not(.reviews-page) .reviews-head__title {
    text-align: center;
    max-width: 100%;
  }

  .section--reviews:not(.reviews-page) .reviews-head__ratings {
    justify-content: center;
    width: 100%;
  }

  .section--reviews:not(.reviews-page) .reviews-home > .reviews-head__intro {
    margin: 0 0 16px;
    text-align: center;
    max-width: none;
  }

  .section--reviews:not(.reviews-page) .reviews-carousel-nav {
    width: 100%;
    justify-content: center;
    margin-top: 20px;
  }

  .section--reviews:not(.reviews-page) .reviews-slider {
    min-width: 0;
  }

  /* Главная — 4 шага: заголовок → карточки → стрелки по центру */
  .steps-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .steps-layout > .steps-head {
    margin-bottom: 16px;
    width: 100%;
    text-align: center;
  }

  .steps-layout > .steps-carousel-nav {
    width: 100%;
    justify-content: center;
    margin-top: 20px;
  }

  .steps-layout > .steps-slider {
    min-width: 0;
    margin-top: 0;
  }

  /* Страница марки — неисправности: как «4 шага» — заголовок, текст, слайдер, стрелки снизу */
  .steps-layout--brand-malf {
    gap: 0;
  }

  .steps-layout--brand-malf .brand-malf-head-row {
    display: contents;
  }

  .steps-layout--brand-malf .brand-malf-head-row .steps-head {
    width: 100%;
    margin-bottom: 16px;
    text-align: center;
    order: 1;
  }

  .steps-layout--brand-malf .brand-malf-head-row .steps-carousel-nav {
    width: 100%;
    justify-content: center;
    margin-top: 20px;
    order: 4;
  }

  .steps-layout--brand-malf > .steps-head__intro {
    text-align: center;
    max-width: none;
    order: 2;
    margin: 0 0 16px;
  }

  .steps-layout--brand-malf > .steps-slider {
    min-width: 0;
    order: 3;
    margin-top: 0;
  }

  .reviews-page-panel .reviews-head {
    flex-direction: column;
    align-items: stretch;
  }

  .reviews-page-panel .reviews-head__left {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .reviews-page-panel .reviews-head__cta {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

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

  .guarantee-terms {
    grid-template-columns: 1fr;
    margin-bottom: 30px;
  }

  .guarantee-obligations {
    padding: 50px 30px;
  }

  .guarantee-exceptions {
    padding: 50px 30px;
  }

  .brand-engines-card__main {
    padding: 50px 30px !important;
  }

  .brand-engine-pill {
    font-size: 14px !important;
    line-height: 18px !important;
  }

  .brand-engines-card__media {
    min-height: 580px !important;
  }

  .pricelist__section {
    padding: 50px 30px !important;
  }

  .about-stat {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    align-items: center;
    gap: 16px 18px;
    justify-items: stretch;
    min-width: 0;
    max-width: 100%;
  }

  .about-stat__value {
    margin: 0;
    min-width: 0;
    text-align: center;
  }

  .about-stat__label {
    min-width: 0;
    text-align: left;
    overflow-wrap: break-word;
  }

  .about-intro__media,
  .about-story__media {
    border-radius: 30px;
  }

  .about-intro__media .about-block__placeholder,
  .about-story__media .about-block__placeholder--tall {
    position: static;
    inset: auto;
    width: 100%;
    min-height: 240px;
  }

  .about-story__text {
    padding: 50px 30px;
  }

  .about-stats {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }

  .about-intro {
    margin-top: 30px;
    padding: 50px 30px;
  }

  .contact-map__info {
    padding: 50px 30px;
  }

  .contacts-page__directions-title {
    margin-bottom: 20px;
  }

  .site-nav__link {
    font-size: var(--fs-tab);
  }

  .reviews-page-panel__head {
    padding: 50px 30px;
  }

  .guarantee-intro {
    padding: 50px 30px;
  }

  .service-split__card {
    padding: 50px 30px !important;
  }

  .service-stage-item__inner {
    padding: 20px 30px 30px !important;
  }
}

@media (max-width: 520px) {
  .section.repair-quiz {
    padding-bottom: 0;
    padding-top: 40px;
    overflow: visible;
  }

  .promo-card__figure--tire {
    width: 150%;
    right: -25%;
    top: -45%;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .reviews-expand__btn {
    width: 100%;
  }

  .social-block__btns {
    flex-direction: column;
  }

  .trust-slide__media {
    max-width: 170px;
    right: -15%;
  }

  .trust-slide__media--2 {
    max-width: 120px;
    right: 0;
  }

  .trust-slide__media--3 {
    max-width: 120px;
    right: 0;
  }

  .trust-slide__media--4 {
    right: -10%;
  }

  .trust-slide__media--5 {
    max-width: 140px;
    right: -5%;
  }

  .hero-section {
    background-position:
      center,
      center 38%;
  }

  .promo-card__name {
    max-width: 45%;
  }

  .social-block__visual {
    min-height: 360px;
  }

  .social-block__screen {
    min-height: 480px;
    max-width: 75vw;
  }

  .social-block__screen--1 {
    left: 40%;
  }

  .social-block__screen--2 {
    right: 0;
  }
}

@media (max-width: 480px) {
  :root {
    --layout-gutter-x: 20px;
  }
}

@media (max-width: 420px) {
  .contact-map__item {
    font-size: 18px;
  }
}

.es-popup[hidden] {
  display: none;
}

.es-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overscroll-behavior: contain;
  touch-action: none;
}

.es-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.es-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 470px);
  padding: 76px 30px 30px;
  border-radius: 20px;
  background: var(--white);
  color: var(--black);
  text-align: center;
  touch-action: auto;
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.es-popup__dialog--success {
  width: min(100%, 370px);
  padding: 76px 30px 30px 30px;
}

.es-popup__close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.es-popup__title {
  margin: 0 0 20px;
  font-family: var(--font);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 700;
}

.es-popup__lead {
  margin: 0 auto 40px;
  max-width: 370px;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  color: var(--black);
}

.es-popup__lead-director {
  margin: 0 auto 40px;
  max-width: 370px;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  color: var(--black);
}

.es-popup__dialog--review-platforms {
  width: min(100%, 502px);
  padding-left: 30px;
  padding-right: 30px;
}

.es-popup__dialog--review-platforms .es-popup__title {
  margin-bottom: 20px;
}

.es-popup__lead--review-followup {
  margin-top: 0;
  margin-bottom: 30px;
  max-width: none;
  font-weight: 400;
}

.es-popup__lead--muted {
  color: #6b6b6b;
  max-width: none;
}

.es-popup-review-platform-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  align-items: stretch;
}

.es-popup-review-platform-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  box-sizing: border-box;
  width: 100%;
  min-height: 58px;
  padding: 23px;
  border-radius: 999px;
  background: #f0f0f0;
  color: var(--black);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.es-popup-review-platform-btn:hover,
.es-popup-review-platform-btn:focus-visible {
  background: #e8e8e8;
  color: var(--black);
}

.es-popup-review-platform-btn__icon {
  flex-shrink: 0;
}

.es-popup-review-platform-btn .reviews-brand-img {
  display: block;
  width: 29px;
  height: 36px;
}

.es-popup-review-platform-btn__label {
  letter-spacing: 0.02em;
}

.es-popup-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.es-popup-form__label {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  color: var(--black);
}

.es-popup-form__field {
  width: 100%;
  min-height: 60px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--gray);
  color: var(--black);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  outline: none;
}

.es-popup-form__field:focus {
  outline: none;
}

.es-popup-form__select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #333 50%),
    linear-gradient(135deg, #333 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
}

.es-popup-form__submit {
  width: 100%;
  min-height: 58px;
  margin-top: 20px;
  justify-content: center;
}

.es-popup-form__submit:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
}

.es-popup-form__consent {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 315px;
  gap: 10px;
  margin: 12px auto 0;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.es-popup-form__consent-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.es-popup-form__consent-box {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  box-sizing: border-box;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: var(--white);
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.es-popup-form__consent-input:checked + .es-popup-form__consent-box {
  border-color: transparent;
  background-color: var(--black);
  background-image: url("../images/check.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

.es-popup-form__consent-input:focus-visible + .es-popup-form__consent-box {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

.es-popup-form__consent-text {
  flex: 1;
  min-width: 0;
}

.es-popup-form__consent-input:checked:focus-visible
  + .es-popup-form__consent-box {
  outline-color: var(--black);
}

@media (max-width: 520px) {
  .es-popup {
    align-items: center;
    justify-content: center;
    padding: max(20px, env(safe-area-inset-top, 0px))
      max(12px, env(safe-area-inset-right, 0px))
      max(20px, env(safe-area-inset-bottom, 0px))
      max(12px, env(safe-area-inset-left, 0px));
  }

  .es-popup__dialog {
    width: 100%;
  }

  .es-popup__title {
    font-size: 24px;
  }

  .es-popup__lead {
    font-size: var(--fs-body);
  }
}

/* Кастомный выпадающий список (попапы + последний шаг квиза). Иконки — только .es-ui-select--icons */
.es-ui-select {
  position: relative;
  z-index: 0;
  width: 100%;
  box-sizing: border-box;
}

.es-ui-select.is-open {
  z-index: 40;
}

.es-ui-select__panel {
  box-sizing: border-box;
}

.es-ui-select__trigger {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gray);
  gap: 8px;
  width: 100%;
  min-height: 60px;
  margin: 0;
  padding: 10px;
  border: none;
  border-radius: 30px;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 500;
  color: var(--black);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
}

.es-ui-select.is-open .es-ui-select__trigger {
  border-radius: 30px 30px 0 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.es-ui-select__trigger:focus,
.es-ui-select__trigger:focus-visible {
  outline: none;
}

.es-ui-select__trigger-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.es-ui-select--plain .es-ui-select__trigger-main {
  gap: 0;
}

.es-ui-select--plain .es-ui-select__trigger {
  padding-left: 20px;
}

.es-ui-select__icon-ring {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  --es-soc-cutout: var(--white);
}

.es-ui-select--plain .es-ui-select__icon-ring {
  display: none;
}

.es-ui-select__icon-img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.es-ui-select__icon-ring .es-messenger-svg {
  display: block;
  width: auto;
  height: auto;
  max-width: 20px;
  max-height: 20px;
}

.es-ui-select__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.es-ui-select__chev {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-left: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.88;
  pointer-events: none;
}

.es-ui-select__chev::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  box-sizing: border-box;
  border-right: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
  transform: rotate(45deg);
  margin-top: -4px;
  transition:
    transform 0.1s cubic-bezier(0.4, 0, 0.2, 1),
    margin 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.es-ui-select.is-open .es-ui-select__chev::after {
  transform: rotate(225deg);
  margin-top: 2px;
}

.es-ui-select__list {
  width: 100%;
  box-sizing: border-box;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--gray);
  border-radius: 0 0 30px 30px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition:
    max-height 0.1s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.1s ease,
    padding 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.es-ui-select.is-open .es-ui-select__list {
  max-height: min(280px, 52vh);
  opacity: 1;
  overflow-x: hidden;
  pointer-events: auto;
  -webkit-overflow-scrolling: touch;
}

.es-ui-select__option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  min-height: 60px;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 500;
  color: var(--black);
  cursor: pointer;
  transition: background 0.15s ease;
}

.es-ui-select__option + .es-ui-select__option {
  margin-top: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.es-ui-select--plain .es-ui-select__option {
  padding-left: 20px;
}

.es-ui-select__option:hover,
.es-ui-select__option:focus {
  outline: none;
  background: #e0e0e0;
}

.es-ui-select__option.is-selected {
  font-weight: 500;
}

.es-ui-select__option .es-ui-select__icon-ring {
  width: 32px;
  height: 32px;
}

.es-popup-form .es-ui-select {
  margin-bottom: 2px;
}

.repair-quiz__lead-field .es-ui-select {
  margin-top: 0;
}

.repair-quiz__card {
  --repair-quiz-radius: 30px;
  container-type: inline-size;
  container-name: repair-quiz;
  display: flex;
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  background: transparent;
  border-radius: var(--repair-quiz-radius);
  overflow: visible;
  min-height: 420px;
}

.repair-quiz__sidebar {
  flex: 0 0 auto;
  width: min(40%, 420px);
  max-width: 420px;
  min-height: 380px;
  position: relative;
  z-index: 4;
  background: var(--white);
  border-radius: 30px 0 0 30px;
}

.repair-quiz__sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: var(--repair-quiz-radius);
  background: var(--black) var(--repair-quiz-bg, none) center / cover no-repeat;
  pointer-events: none;
}

.repair-quiz__mechanic-wrap {
  position: absolute;
  top: 5%;
  left: 20px;
  right: auto;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  pointer-events: none;
  min-height: 0;
}

.repair-quiz__mechanic-clip {
  display: contents;
}

.repair-quiz__sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: var(--repair-quiz-radius);
  background: linear-gradient(
    90deg,
    rgba(24, 24, 24, 0.55) 0%,
    rgba(24, 24, 24, 0.2) 100%
  );
  pointer-events: none;
}

.repair-quiz__sidebar-inner {
  position: relative;
  z-index: 3;
  height: 100%;
  min-height: 380px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 24px 20px 28px;
}

.repair-quiz__mechanic {
  position: relative;
  display: block;
  height: auto;
  max-width: none;
  flex-shrink: 0;
  object-fit: contain;
  object-position: bottom center;
  pointer-events: none;
}

.repair-quiz__profile-text {
  position: relative;
  z-index: 4;
  margin-left: auto;
  align-self: flex-start;
  padding-top: 60px;
  max-width: 30%;
}

.repair-quiz__name {
  margin: 0;
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  color: var(--white);
}

.repair-quiz__role {
  margin: 10px 0 0;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  color: var(--white);
}

.repair-quiz__main {
  flex: 1;
  min-width: 0;
  padding: 36px 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 3;
  background: var(--white);
  border-radius: 0 var(--repair-quiz-radius) var(--repair-quiz-radius) 0;
}

.repair-quiz__main--lead .repair-quiz__title {
  line-height: 1.15;
  margin-bottom: 20px;
}

.repair-quiz__title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  text-transform: uppercase;
}

.repair-quiz__progress {
  --repair-quiz-fill: 16.6666667;
  margin-bottom: 20px;
}

.repair-quiz__progress[hidden] {
  display: none;
}

.repair-quiz__bar-track {
  position: relative;
}

.repair-quiz__step-label {
  position: absolute;
  bottom: 130%;
  left: calc(var(--repair-quiz-fill) * 1% / 2);
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
  font-size: var(--fs-btn);
  color: var(--black);
  white-space: nowrap;
  line-height: var(--lh-btn);
  transition: left 0.25s ease;
  pointer-events: none;
}

.repair-quiz__bar {
  height: 16px;
  margin-top: calc(1.25em + 8px);
  border-radius: 999px;
  background: #ededed;
  overflow: hidden;
}

.repair-quiz__bar-fill {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: var(--black);
  transition: width 0.25s ease;
}

.repair-quiz__question {
  margin: 0 0 20px;
  font-family: var(--font);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  text-align: center;
}

.repair-quiz__subquestion {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 17px;
  text-align: center;
}

@media (max-width: 1100px) and (min-width: 761px) {
  .repair-quiz__stack-scroll {
    max-height: none;
  }
}

.repair-quiz__subsection-title {
  margin: 0 0 20px;
  font-family: var(--font);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  text-align: center;
}

.repair-quiz__subsection-title--second {
  margin-top: 8px;
}

.repair-quiz__stack-scroll .repair-quiz__grid--2 {
  margin-bottom: 12px;
}

.repair-quiz__empty {
  margin: 0 0 12px;
  text-align: center;
  color: #666;
}

.repair-quiz__hint {
  margin: 0 0 20px;
  text-align: center;
  color: #666;
  font-size: 15px;
}

.repair-quiz__grid--2 {
  display: flex;
  gap: 10px 10px;
  margin-bottom: 24px;
}

.repair-quiz__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.repair-quiz__opt,
.repair-quiz__pill,
.repair-quiz__cell {
  appearance: none;
  border: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  padding: 10px 15px;
  border-radius: 15px;
  line-height: 28px;
  background: #ededed;
  color: var(--black);
  transition: background 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .repair-quiz__opt:hover:not(.is-selected),
  .repair-quiz__pill:hover:not(.is-selected),
  .repair-quiz__cell:hover:not(.is-selected) {
    background: var(--yellow);
    color: var(--black);
  }
}

.repair-quiz__opt.is-selected,
.repair-quiz__pill.is-selected,
.repair-quiz__cell.is-selected {
  background: var(--yellow);
}

.repair-quiz__scroll {
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 24px;
  padding-right: 6px;
}

@media (max-width: 1100px) and (min-width: 761px) {
  .repair-quiz__scroll {
    max-height: none;
  }
}

.repair-quiz__pills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.repair-quiz__grid--4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.repair-quiz__cell {
  padding: 10px 15px;
}

.repair-quiz__engine-wrap {
  margin-bottom: 8px;
}

.repair-quiz__engine-group {
  margin-bottom: 20px;
}

.repair-quiz__engine-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.repair-quiz__engine-row--2 .repair-quiz__opt--wide {
  flex: 1 1 calc(50% - 10px);
  min-width: 140px;
}

.repair-quiz__engine-row--4 .repair-quiz__opt--wide {
  flex: 1 1 calc(25% - 10px);
  min-width: 100px;
}

.repair-quiz__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 30px;
}

.repair-quiz__nav--lead {
  justify-content: flex-end;
  pointer-events: none;
}

.repair-quiz__nav--lead > * {
  pointer-events: auto;
}

.repair-quiz__step--lead .repair-quiz__step-content {
  display: flex;
  flex-direction: column;
  padding-right: 0;
}

.repair-quiz__step:not(.repair-quiz__step--lead)
  > .repair-quiz__step-content.repair-quiz__step-content--scrollable {
  padding-right: 38px;
}

.repair-quiz__step--lead .repair-quiz__lead {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.repair-quiz__back {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: none;
  background: #ededed;
  color: var(--black);
  cursor: pointer;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.repair-quiz__back:hover:not(:disabled) {
  background: #e0e0e0;
}

.repair-quiz__back:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.repair-quiz__next.btn {
  min-width: min(160px, 100%);
  padding: 23px;
  height: 70px;
  border-radius: 40px;
  font-family: var(--font);
  font-weight: 500;
  font-size: var(--fs-btn);
  line-height: var(--lh-btn);
  text-transform: uppercase;
  background: var(--yellow);
  color: var(--black);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.repair-quiz__next.btn:disabled,
.repair-quiz__next.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.repair-quiz__next.btn:enabled:hover,
.repair-quiz__next.btn:enabled:focus-visible,
.repair-quiz__next.btn:enabled:active {
  filter: none;
  background: var(--yellow-pressed);
  background: color-mix(in srgb, #000 7%, var(--yellow));
}

.repair-quiz__lead-text {
  margin: 0;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
}

.repair-quiz__lead-text + .repair-quiz__lead-text {
  margin-top: 0.65em;
}

.repair-quiz__lead-text p {
  margin: 0 0 0.65em;
}

.repair-quiz__lead-text p:last-child {
  margin-bottom: 0;
}

.repair-quiz__discount {
  margin: 0 0 30px;
}

.repair-quiz__discount-inner {
  display: inline-block;
  padding: 23px 35px;
  border-radius: var(--radius-pill);
  background: var(--black);
  color: var(--white);
  font-weight: 400;
  font-size: 20px;
}

.repair-quiz__lead-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
  max-width: 411px;
}

.repair-quiz__lead-field .repair-quiz__field-label {
  margin-bottom: 10px;
}

.repair-quiz__lead-field .repair-quiz__input {
  margin-bottom: 0;
}

.repair-quiz__field-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.repair-quiz__input-wrap {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 0 16px;
  border-radius: 30px;
  background: var(--gray);
}

.repair-quiz__input-wrap:focus-within {
  outline: none;
}

.repair-quiz__input {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 30px;
  background: #ededed;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  margin-bottom: 8px;
}

.repair-quiz__input--phone {
  flex: 1;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
}

.repair-quiz__input--phone:focus,
.repair-quiz__input--phone:focus-visible {
  outline: none;
}

/* Десктоп (широкий): две колонки, фиксированная высота карточки, скролл справа */
@media (min-width: 1100px) {
  .repair-quiz__card {
    height: 669px;
    min-height: 669px;
    max-height: 669px;
    align-items: stretch;
  }

  .repair-quiz__sidebar {
    min-height: 0;
    align-self: stretch;
  }

  .repair-quiz__sidebar-inner {
    min-height: 100%;
    height: 100%;
  }

  .repair-quiz__main {
    min-height: 0;
    flex: 1 1 0;
    overflow: hidden;
  }

  .repair-quiz__main.repair-quiz__main--lead {
    overflow: visible;
  }

  .repair-quiz__title {
    flex-shrink: 0;
  }

  .repair-quiz__progress {
    flex-shrink: 0;
  }

  .repair-quiz__panel {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
  }

  /* Последний шаг: контент скроллится внутри панели, чтобы поле телефона не уходило под nav */
  .repair-quiz__main.repair-quiz__main--lead .repair-quiz__step-content {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .repair-quiz__step {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
  }

  .repair-quiz__step-content {
    flex: 1 1 0;
    min-height: 0;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .repair-quiz__nav {
    flex-shrink: 0;
  }

  .repair-quiz__step-content .repair-quiz__scroll,
  .repair-quiz__step-content .repair-quiz__stack-scroll {
    max-height: none;
    overflow: visible;
    margin-bottom: 0;
  }

  .repair-quiz__stack-scroll {
    max-height: none;
  }

  .repair-quiz__mechanic-wrap {
    inset: 0;
    top: -2%;
  }

  .repair-quiz__mechanic-clip {
    display: flex;
    max-height: 100%;
    overflow: hidden;
    align-items: flex-start;
    justify-content: center;
    flex-shrink: 1;
    min-height: 0;
  }
}

/* Планшет / узкий десктоп: квиз столбцом (панель механика сверху) */
@media (max-width: 1099px) {
  .repair-quiz__card {
    flex-direction: column;
  }

  .repair-quiz__sidebar {
    flex: none;
    width: 100%;
    max-width: none;
    min-height: 280px;
    background: var(--white);
    z-index: 3;
    border-radius: 30px 30px 0 0;
  }

  .repair-quiz__sidebar::before,
  .repair-quiz__sidebar::after {
    /* border-radius: var(--repair-quiz-radius) var(--repair-quiz-radius) 0 0; */
  }

  .repair-quiz__mechanic {
    width: min(480px, 38cqw);
  }

  .repair-quiz__profile-text {
    max-width: 48%;
  }

  .repair-quiz__grid--4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .repair-quiz__main {
    --es-quiz-m-scrollbar-w: 6px;
    --es-quiz-m-scroll-pad: 30px;
    padding: 28px 24px 24px;
    border-radius: 0 0 var(--repair-quiz-radius) var(--repair-quiz-radius);
    height: 900px;
    min-height: 900px;
    max-height: 900px;
    display: flex;
    flex-direction: column;
    z-index: 3;
    margin-top: 0;
  }

  .repair-quiz__main.repair-quiz__main--lead {
    height: auto;
    max-height: none;
  }

  .repair-quiz__main.repair-quiz__main--lead .repair-quiz__panel {
    flex: 1 1 0;
    min-height: 0;
    overflow: visible;
  }

  .repair-quiz__main.repair-quiz__main--lead .repair-quiz__step {
    flex: 1 1 0;
    min-height: 0;
    overflow: visible;
  }

  .repair-quiz__main.repair-quiz__main--lead .repair-quiz__step-content {
    flex: 1 1 0;
    min-height: 0;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: visible;
    padding-right: 0 !important;
  }

  .repair-quiz__title {
    flex-shrink: 0;
  }

  .repair-quiz__progress {
    flex-shrink: 0;
  }

  .repair-quiz__panel {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .repair-quiz__step {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .repair-quiz__step:not(.repair-quiz__step--lead)
    > .repair-quiz__step-content.repair-quiz__step-content--scrollable {
    padding-right: calc(
      var(--es-quiz-m-scroll-pad) + var(--es-quiz-m-scrollbar-w)
    );
  }

  .repair-quiz__card .repair-quiz__step-content::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  .repair-quiz__card .repair-quiz__step-content::-webkit-scrollbar-track {
    background: #eeeeee;
    border-radius: 999px;
  }

  .repair-quiz__card .repair-quiz__step-content::-webkit-scrollbar-thumb {
    background-color: rgba(24, 24, 24, 0.3);
    border-radius: 999px;
  }

  .repair-quiz__card .repair-quiz__step-content::-webkit-scrollbar-button,
  .repair-quiz__card
    .repair-quiz__step-content::-webkit-scrollbar-button:single-button,
  .repair-quiz__card
    .repair-quiz__step-content::-webkit-scrollbar-button:vertical:start,
  .repair-quiz__card
    .repair-quiz__step-content::-webkit-scrollbar-button:vertical:end {
    display: none;
    width: 0;
    height: 0;
    min-width: 0;
    min-height: 0;
  }

  .repair-quiz__card
    .repair-quiz__step-content::-webkit-scrollbar-button:vertical:start,
  .repair-quiz__card
    .repair-quiz__step-content::-webkit-scrollbar-button:vertical:end {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    background: transparent !important;
  }

  .repair-quiz__card .repair-quiz__step-content::-webkit-scrollbar-corner {
    background: transparent !important;
  }
}

/* Мобильный квиз: панель механика, карточка снизу, один столбец пунктов, скролл шага */
@media (max-width: 760px) {
  .section.repair-quiz,
  .section.repair-quiz .container {
    overflow: visible;
  }

  .section.repair-quiz {
    position: relative;
    z-index: 2;
    padding-top: 0;
    margin-top: 64px;
  }

  .repair-quiz__card {
    min-height: 0;
    overflow: visible;
    border-radius: var(--repair-quiz-radius);
  }

  .repair-quiz__sidebar {
    z-index: 1;
    min-height: 200px;
    max-width: none;
  }

  .repair-quiz__sidebar::before,
  .repair-quiz__sidebar::after {
    /* border-radius: var(--repair-quiz-radius) var(--repair-quiz-radius) 0 0; */
  }

  .repair-quiz__sidebar-inner {
    min-height: 298px;
    align-items: center;
    justify-content: flex-end;
    padding: 16px 14px 18px 14px;
  }

  .repair-quiz__profile-text {
    max-width: 35%;
    margin-left: auto;
    text-align: left;
    z-index: 5;
    padding-top: 40px;
  }

  .repair-quiz__mechanic-wrap,
  .repair-quiz__mechanic-clip {
    display: contents;
  }

  .repair-quiz__mechanic {
    position: absolute;
    top: -15px;
    right: auto;
    bottom: auto;
    left: 15px;
    width: 80%;
    height: 380px;
    max-width: none;
    max-height: none;
    transform: none;
    object-fit: cover;
    object-position: 50% 0;
    z-index: 4;
  }

  .repair-quiz__main {
    padding: 20px;
    height: 85vh;
    min-height: 85vh;
    max-height: 85vh;
  }

  /* Последний шаг (контакты): без лимита по высоте — всё содержимое видно */
  .repair-quiz__main.repair-quiz__main--lead {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .repair-quiz__main.repair-quiz__main--lead .repair-quiz__panel,
  .repair-quiz__main.repair-quiz__main--lead .repair-quiz__step {
    flex: 0 1 auto;
    min-height: 0;
    overflow: visible;
  }

  .repair-quiz__main.repair-quiz__main--lead .repair-quiz__step-content {
    flex: 0 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: visible;
    padding-right: 0 !important;
  }

  .repair-quiz__title {
    margin-bottom: 10px;
  }

  .repair-quiz__progress {
    margin-bottom: 16px;
  }

  .repair-quiz__discount {
    margin-bottom: 20px;
  }

  .repair-quiz__lead-fields {
    margin-top: 20px;
  }
  

  .repair-quiz__bar {
    width: 100%;
    height: 12px;
    margin-top: calc(1.25em + 6px);
  }

  .repair-quiz__question {
    font-size: var(--fs-h2);
    line-height: var(--lh-h2);
    margin-bottom: 20px;
  }

  .repair-quiz__grid--2 {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .repair-quiz__grid--2 .repair-quiz__col {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
  }

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

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

  .repair-quiz__engine-row,
  .repair-quiz__engine-row--2,
  .repair-quiz__engine-row--4 {
    flex-direction: column;
    align-items: stretch;
  }

  .repair-quiz__engine-row--2 .repair-quiz__opt--wide,
  .repair-quiz__engine-row--4 .repair-quiz__opt--wide {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
  }

  .repair-quiz__opt {
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    padding: 12px 14px;
  }

  .repair-quiz__nav {
    flex-shrink: 0;
    padding-top: 12px;
    gap: 20px;
  }

  .repair-quiz__back {
    width: 70px;
    height: 70px;
  }

  .repair-quiz__next.btn {
    flex: 1;
    min-width: 0;
    height: 70px;
    padding: 23px;
    font-size: var(--fs-body);
    line-height: var(--lh-body);
  }

  .repair-quiz__scroll {
    max-height: none;
    overflow: visible;
    margin-bottom: 0;
    padding-right: 0;
  }

  .repair-quiz__stack-scroll {
    max-height: none;
    overflow: visible;
    margin-bottom: 0;
    padding-right: 0;
  }

  .about-cert__figure--primary {
    flex: 0;
  }
}

@media (max-width: 600px) {
  .pricelist__row {
    gap: 6px;
  }

  .pricelist__price {
    align-self: flex-end;
  }
}

/* Базовый межстрочный интервал для типовых тегов */
:is(div, p, span, li, a, h1, h2, h3, h4) {
  line-height: normal;
}

/* Стрелка right_line.svg (expert_service_icon_arrow) — везде 24×24 */
.es-icon-arrow {
  display: block;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

/* --- Страница категории (template-service.php) --- */
.hero-section--service {
  background-position:
    center,
    center center;
}

.hero-section__price-line {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  text-transform: uppercase;
  color: var(--yellow);
}

.hero-section__lead--service {
  max-width: 640px;
}

.consult-section--compact .consult-section__layout {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 400px);
  align-items: center;
}

.consult-section--compact .consult-section__form-block {
  max-width: min(620px, 100%);
}

.consult-section--compact .consult-section__lead {
  max-width: 560px;
  margin-bottom: 28px;
}

.section__title--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section__title-stages {
  line-height: normal;
  margin-bottom: 10px;
}

.section__intro--stages {
  max-width: 100%;
  text-align: start;
  margin: 0 auto 30px;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--black);
}

.service-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  align-items: stretch;
}

.service-split__card {
  background: var(--white);
  border-radius: 30px;
  padding: 50px;
  align-self: start;
}

.service-split__title {
  margin: 0 0 30px;
  font-family: var(--font);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  color: var(--black);
}

.service-split__text p {
  margin: 0 0 30px;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--black);
}

.service-split__text > p:last-child,
.service-split__text > :last-child p:last-child {
  margin-bottom: 0;
}

.service-split__media {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  min-height: 0;
  background: #e6e6e6;
}

.service-split__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-split__placeholder {
  position: absolute;
  inset: 0;
  min-height: 0;
  background: linear-gradient(145deg, #ddd 0%, #efefef 100%);
}

.service-related-card {
  background: var(--white);
  border-radius: var(--radius-card, 24px);
  padding: 50px;
  margin-top: 30px;
}

.service-related-card__subtitle {
  margin: 0 0 30px;
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  color: var(--black);
}

.service-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-related-list__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid #e8e8e8;
}

.service-related-list__row:last-child {
  border-bottom: none;
}

.service-related-list__name {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--black);
}

.service-related-list__price {
  flex-shrink: 0;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--black);
}

.service-signs__split {
  margin-top: 28px;
}

.service-signs__split .guarantee-obligations:only-child {
  grid-column: 1 / -1;
}

.service-signs__split .guarantee-exceptions:only-child {
  grid-column: 1 / -1;
}

.service-related-list__price {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-stages-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-stage-item {
  background: var(--white);
  border-radius: 40px;
  overflow: hidden;
}

.service-stage-item__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 20px 30px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.15s ease;
}

.service-stage-item__btn:hover,
.service-stage-item__btn:focus-visible {
  background: rgba(0, 0, 0, 0.02);
}

.service-stage-item__btn:hover .es-acc-arrow,
.service-stage-item__btn:focus-visible .es-acc-arrow {
  background: var(--yellow);
}

.service-stage-item__btn:hover .es-acc-arrow .es-icon-arrow,
.service-stage-item__btn:focus-visible .es-acc-arrow .es-icon-arrow {
  color: var(--black);
}

.service-stage-item__title-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: nowrap;
  min-width: 0;
}

.service-stage-item__num {
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  color: var(--black);
  flex-shrink: 0;
  white-space: nowrap;
}

.service-stage-item__title {
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  color: var(--black);
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
  flex: 1 1 0%;
}

.service-stage-item__panel {
  box-sizing: border-box;
}

.service-stage-item__inner {
  padding: 30px;
}

.service-stage-item__bullets {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-stage-item__bullets li,
.service-stage-item__bullet-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.service-stage-item__bullets li span,
.service-stage-item__bullet-row span {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--black);
}

.service-stage-item__bullet-row:last-child {
  margin-bottom: 0;
}

.service-stage-item__bullet-mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 0.12em;
  line-height: 0;
  color: var(--black);
}

.service-stage-item__bullet-arrow {
  color: inherit;
}

.service-stage-item__bullet-text {
  flex: 1 1 auto;
  min-width: 0;
}

.service-about-split {
  display: grid;
  grid-template-columns: minmax(260px, 440px) minmax(0, 1fr);
  gap: 70px;
  align-items: center;
  background: var(--white);
  border-radius: 30px;
  padding: 50px;
}

.service-about-split__media {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-about-split__img {
  display: block;
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
}

.service-about-split__placeholder {
  min-height: 200px;
  border-radius: 18px;
  background: linear-gradient(145deg, #ddd 0%, #f0f0f0 100%);
}

.service-about-split__title {
  margin: 0 0 30px;
  font-family: var(--font);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  color: var(--black);
}

.service-about-split__p {
  margin: 0 0 30px;
}

.service-about-split__p p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--black);
}

.service-about-split__p:last-child {
  margin-bottom: 0;
}

.service-split__cta {
  margin-top: 22px;
}

.hero-section--brand .hero-section__lead--service {
  max-width: 560px;
}

/* --- Страница марки (template-brand.php) --- */
.brand-price-item {
  background: var(--white);
  border-radius: 40px;
  margin-bottom: 12px;
  overflow: hidden;
}

.brand-price-item:last-child {
  margin-bottom: 0;
}

.brand-price-item__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 20px 30px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.15s ease;
}

.brand-price-item__btn:hover,
.brand-price-item__btn:focus-visible {
  background: rgba(0, 0, 0, 0.02);
}

.brand-price-item__btn:hover .es-acc-arrow,
.brand-price-item__btn:focus-visible .es-acc-arrow {
  background: var(--yellow);
}

.brand-price-item__btn:hover .es-acc-arrow .es-icon-arrow,
.brand-price-item__btn:focus-visible .es-acc-arrow .es-icon-arrow {
  color: var(--black);
}

.brand-price-item__title {
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  color: var(--black);
  flex: 1;
  min-width: 0;
}

.brand-price-item__panel {
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--black);
  box-sizing: border-box;
}

.brand-price-item__inner {
  padding: 20px 20px 20px 30px;
}

.brand-price-item__rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.brand-price-item__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-top: 1px solid var(--gray);
}

.brand-price-item__row:first-child {
  border-top: none;
  padding-top: 0px;
}

.brand-price-item__name {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.brand-price-item__price {
  flex-shrink: 0;
  text-align: right;
  white-space: nowrap;
}

.brand-price-item__text-fallback {
  margin: 0;
  padding-top: 4px;
  color: #444;
}

.brand-price-item__panel p {
  margin: 0;
}

.brand-models-card {
  background: var(--white);
  border-radius: 30px;
  padding: 50px;
}

.brand-models-card__title {
  margin: 0 0 30px;
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  color: var(--black);
}

.brand-models-card__lead {
  margin: 0 0 40px;
}

.brand-models-card__lead p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--black);
}

.brand-models-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.brand-models-tag {
  display: inline-flex;
  padding: 8px 15px;
  border-radius: 30px;
  background: #ececec;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 400;
  color: #222;
}

.brand-engines-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 420px);
  align-items: center;
}

.brand-engines-card__main {
  background: var(--white);
  border-radius: 30px;
  padding: 50px;
}

.brand-engines-card__title {
  margin: 0 0 30px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  text-transform: uppercase;
}

.brand-engines-card__subtitle {
  margin: 0 0 20px;
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
}

.brand-engines-card__subtitle--spaced {
  margin-top: 22px;
}

.brand-engines-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.brand-engine-pill {
  display: inline-flex;
  padding: 8px 15px;
  border-radius: 30px;
  background: var(--gray);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--black);
}

.brand-engines-card__media {
  height: 100%;
}

.brand-engines-card__img {
  display: block;
  width: 100%;
  border-radius: 30px;
  object-fit: cover;
  height: 100%;
}

.brand-engines-card__placeholder {
  min-height: 320px;
  border-radius: 18px;
  background: linear-gradient(145deg, #ddd 0%, #f0f0f0 100%);
}

.page-template-template-brand .section--gallery {
  padding-top: 60px;
}

.page-template-template-service .section--services {
  padding-top: 60px;
}

@media (max-width: 900px) {
  .service-split {
    grid-template-columns: 1fr;
    flex-direction: column-reverse;
    display: flex;
  }

  .service-split__media {
    order: -1;
    min-height: 490px;
  }

  .consult-section--compact .consult-section__layout {
    grid-template-columns: 1fr;
  }

  .service-about-split {
    grid-template-columns: 1fr;
    padding: 50px 30px !important;
    flex-direction: column-reverse;
    display: flex;
    gap: 30px;
  }

  .service-about-split__title {
    margin-bottom: 20px !important;
  }

  .service-about-split__p {
    margin-bottom: 20px;
  }

  .hero-section__cta-row--service {
    flex-direction: row;
    align-items: center;
  }

  .hero-section__cta-row--service .btn--hero {
    width: 100%;
    justify-content: center;
  }

  .brand-engines-card {
    grid-template-columns: 1fr;
  }

  .brand-models-card {
    padding: 50px 30px;
  }
}

/* FINAL: scrollbar квиза для Chrome / Edge / Safari */
@supports selector(::-webkit-scrollbar) {
  .repair-quiz__step-content,
  .repair-quiz__scroll,
  .repair-quiz__stack-scroll {
    overflow-y: auto !important;
    overflow-x: hidden !important;

    /* Важно: НЕ thin. Иначе Chrome/Edge могут взять системный scrollbar */
    scrollbar-width: auto !important;
    scrollbar-color: auto !important;
    color-scheme: normal !important;
  }

  .repair-quiz__step-content::-webkit-scrollbar,
  .repair-quiz__scroll::-webkit-scrollbar,
  .repair-quiz__stack-scroll::-webkit-scrollbar {
    width: 8px !important;
    height: 8px !important;
    background: transparent !important;
  }

  .repair-quiz__step-content::-webkit-scrollbar-track,
  .repair-quiz__scroll::-webkit-scrollbar-track,
  .repair-quiz__stack-scroll::-webkit-scrollbar-track {
    background: #eeeeee !important;
    border-radius: 999px !important;
  }

  .repair-quiz__step-content::-webkit-scrollbar-thumb,
  .repair-quiz__scroll::-webkit-scrollbar-thumb,
  .repair-quiz__stack-scroll::-webkit-scrollbar-thumb {
    background: rgba(24, 24, 24, 0.3) !important;
    border-radius: 999px !important;
    border: none !important;
  }

  .repair-quiz__step-content::-webkit-scrollbar-button,
  .repair-quiz__step-content::-webkit-scrollbar-button:single-button,
  .repair-quiz__step-content::-webkit-scrollbar-button:vertical:start,
  .repair-quiz__step-content::-webkit-scrollbar-button:vertical:end,
  .repair-quiz__step-content::-webkit-scrollbar-button:vertical:start:decrement,
  .repair-quiz__step-content::-webkit-scrollbar-button:vertical:end:increment,
  .repair-quiz__scroll::-webkit-scrollbar-button,
  .repair-quiz__scroll::-webkit-scrollbar-button:single-button,
  .repair-quiz__scroll::-webkit-scrollbar-button:vertical:start,
  .repair-quiz__scroll::-webkit-scrollbar-button:vertical:end,
  .repair-quiz__scroll::-webkit-scrollbar-button:vertical:start:decrement,
  .repair-quiz__scroll::-webkit-scrollbar-button:vertical:end:increment,
  .repair-quiz__stack-scroll::-webkit-scrollbar-button,
  .repair-quiz__stack-scroll::-webkit-scrollbar-button:single-button,
  .repair-quiz__stack-scroll::-webkit-scrollbar-button:vertical:start,
  .repair-quiz__stack-scroll::-webkit-scrollbar-button:vertical:end,
  .repair-quiz__stack-scroll::-webkit-scrollbar-button:vertical:start:decrement,
  .repair-quiz__stack-scroll::-webkit-scrollbar-button:vertical:end:increment {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
  }

  .repair-quiz__step-content::-webkit-scrollbar-corner,
  .repair-quiz__scroll::-webkit-scrollbar-corner,
  .repair-quiz__stack-scroll::-webkit-scrollbar-corner {
    background: transparent !important;
  }
}

/* Firefox отдельно */
@supports (-moz-appearance: none) {
  .repair-quiz__step-content,
  .repair-quiz__scroll,
  .repair-quiz__stack-scroll {
    scrollbar-width: thin !important;
    scrollbar-color: rgba(24, 24, 24, 0.3) #eeeeee !important;
  }
}
