/* =========================================================
   АВТОДОМ Рублевский — сервисный лендинг Lamborghini / Bentley
   Шрифты: GL Interstate (латиница, фирменный шрифт Lamborghini)
           + Roboto / Roboto Condensed (кириллица — в GL Interstate её нет)
   ========================================================= */

/* --- Заголовочный шрифт: латиница — GL Interstate Bold Condensed, кириллица — Roboto Condensed Bold --- */
@font-face { font-family: 'Display'; font-weight: 700; font-display: swap;
  src: url('../fonts/glinterstate-boldcondensed.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E, U+2026, U+2116; }
@font-face { font-family: 'Display'; font-weight: 700; font-display: swap;
  src: url('../fonts/roboto-condensed-cyrillic-700-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1; }
@font-face { font-family: 'Display'; font-weight: 400; font-display: swap;
  src: url('../fonts/roboto-condensed-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1; }
@font-face { font-family: 'Display'; font-weight: 400; font-display: swap;
  src: url('../fonts/glinterstate-regular.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E, U+2026, U+2116; }

/* --- Текстовый шрифт --- */
@font-face { font-family: 'Text'; font-weight: 300; font-display: swap;
  src: url('../fonts/glinterstate-light.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E, U+2026, U+2116; }
@font-face { font-family: 'Text'; font-weight: 300; font-display: swap;
  src: url('../fonts/roboto-cyrillic-300-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1; }
@font-face { font-family: 'Text'; font-weight: 400; font-display: swap;
  src: url('../fonts/glinterstate-regular.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E, U+2026, U+2116; }
@font-face { font-family: 'Text'; font-weight: 400; font-display: swap;
  src: url('../fonts/roboto-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1; }
@font-face { font-family: 'Text'; font-weight: 700; font-display: swap;
  src: url('../fonts/glinterstate-bold.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E, U+2026, U+2116; }
@font-face { font-family: 'Text'; font-weight: 700; font-display: swap;
  src: url('../fonts/roboto-cyrillic-700-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1; }

:root {
  --bg: #0b0b0b;
  --bg-2: #121212;
  --surface: #181818;
  --line: #2a2a2a;
  --text: #f2f0eb;
  --muted: #9b978f;
  --gold: #b8a372;          /* из фирменного щита Lamborghini */
  --gold-light: #d9c89a;
  --gold-dark: #8c7a50;
  --danger: #e2574c;
  --ok: #7cc48a;
  --header-h: 128px;
  --radius: 2px;
  --container: 1280px;
  --f-display: 'Display', 'Arial Narrow', Arial, sans-serif;
  --f-text: 'Text', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 300 16px/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.modal-open, body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); font-size: 14px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border: 1px solid transparent; border-radius: var(--radius);
  font: 700 14px/1 var(--f-display); text-transform: uppercase; letter-spacing: .08em;
  white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn--gold { background: var(--gold); color: #0b0b0b; }
.btn--gold:hover { background: var(--gold-light); }
.btn--ghost { background: transparent; border-color: var(--ghost-line, rgba(242, 240, 235, .45)); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn:disabled { opacity: .6; cursor: default; }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(11, 11, 11, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; height: 80px; }
.logo { display: inline-flex; flex-direction: column; line-height: 1; justify-self: start; }
.logo__img { display: block; width: 180px; height: auto; }
.logo__sub { margin-top: 8px; font: 400 12px/1 var(--f-display); letter-spacing: .42em; text-transform: uppercase; color: var(--gold); }
.logo--sm .logo__img { width: 150px; }
.header__phone { display: flex; flex-direction: column; align-items: center; text-align: center; }
.header__phone-num { font: 700 24px/1.1 var(--f-display); letter-spacing: .04em; transition: color .2s; }
.header__phone:hover .header__phone-num { color: var(--gold-light); }
.header__phone-hint { font-size: 12px; color: var(--muted); }
.header__actions { display: flex; gap: 12px; justify-self: end; }

.nav { border-top: 1px solid var(--line); }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; gap: 8px; }
.nav__list a {
  display: block; padding: 14px 0; font: 400 13px/1 var(--f-display); text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; white-space: nowrap;
}
.nav__list a:hover, .nav__list a.is-active { color: var(--text); border-bottom-color: var(--gold); }
.nav__mobile-cta { display: none; }

.burger { display: none; width: 44px; height: 44px; padding: 10px; background: none; border: 0; justify-self: end; }
.burger span { display: block; height: 2px; margin: 5px 0; background: var(--text); transition: transform .25s, opacity .25s; }
.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Главный экран / слайдер ---------- */
.hero { position: relative; }
.slider { position: relative; overflow: hidden; background: #000; }
.slider__track { position: relative; aspect-ratio: 1920 / 600; }
.slider__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s, visibility .8s; }
.slider__slide.is-active { opacity: 1; visibility: visible; }
.slider__slide picture, .slider__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__caption {
  position: absolute; inset: 0; display: flex; align-items: center;
  background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 30%, rgba(0,0,0,0) 55%);
  pointer-events: none;
}
.hero__caption .container { pointer-events: auto; }
.hero__caption > .container > * { max-width: 460px; }
.hero__eyebrow { margin-bottom: 12px; font: 400 13px/1 var(--f-display); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-light); }
.hero__title { font-size: clamp(30px, 3.4vw, 56px); margin-bottom: 14px; text-shadow: 0 2px 24px rgba(0,0,0,.5); }
.hero__text { font-size: 16px; color: #e6e3dc; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.slider__arrow {
  position: absolute; top: 50%; z-index: 3; width: 48px; height: 48px; margin-top: -24px;
  background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.25); border-radius: 50%; transition: background .2s, border-color .2s;
}
.slider__arrow::before {
  content: ''; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px;
  border-top: 2px solid #fff; border-right: 2px solid #fff; transform: translate(-65%, -50%) rotate(45deg);
}
.slider__arrow--prev { left: 20px; }
.slider__arrow--prev::before { transform: translate(-35%, -50%) rotate(-135deg); }
.slider__arrow--next { right: 20px; }
.slider__arrow:hover:not(:disabled) { background: var(--gold); border-color: var(--gold); }
.slider__arrow:disabled { opacity: .3; cursor: default; }
.slider__dots { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 3; display: flex; justify-content: center; gap: 10px; }
.slider__dots button { width: 28px; height: 3px; padding: 0; border: 0; background: rgba(255,255,255,.35); }
.slider__dots button.is-active { background: var(--gold); }
.slider.is-single .slider__arrow, .slider.is-single .slider__dots { display: none; }

/* ---------- Таймер ---------- */
.timer { background: linear-gradient(90deg, #151310, #1d1a14 50%, #151310); border-bottom: 1px solid var(--line); }
.timer__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.timer__title { margin: 0; font: 700 20px/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .06em; }
.timer__clock { display: flex; align-items: flex-start; gap: 10px; }
.timer__cell { display: flex; flex-direction: column; align-items: center; min-width: 64px; }
.timer__num {
  display: block; width: 100%; padding: 8px 0; text-align: center; background: #0b0b0b; border: 1px solid var(--gold-dark);
  font: 700 34px/1 var(--f-display); color: var(--gold-light); font-variant-numeric: tabular-nums;
}
.timer__lbl { margin-top: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.timer__sep { font: 700 30px/1 var(--f-display); color: var(--gold-dark); padding-top: 10px; }

/* ---------- Секции ---------- */
.section { padding: 96px 0; }
.section:nth-of-type(even) { background: var(--bg-2); }
.section__eyebrow { margin: 0 0 12px; font: 400 13px/1 var(--f-display); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.section__eyebrow::before { content: ''; display: inline-block; width: 32px; height: 1px; margin-right: 12px; vertical-align: middle; background: var(--gold); }
.section__title { font-size: clamp(28px, 3.2vw, 46px); margin-bottom: 40px; }
.section__lead { max-width: 720px; margin: -20px 0 40px; color: var(--muted); font-size: 18px; }
.section__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* ---------- Бренды ---------- */
.brands__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.brand-card {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  min-height: 320px; padding: 40px; background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.brand-card::after { content: ''; position: absolute; inset: auto 0 0; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .35s; }
.brand-card:hover { border-color: var(--gold-dark); }
.brand-card:hover::after { transform: scaleX(1); }
.brand-card__logo--lambo { height: 150px; width: auto; }
.brand-card__logo--bentley { width: 240px; height: auto; margin: 30px 0; }
.brand-card__name { font: 700 22px/1 var(--f-display); letter-spacing: .3em; text-transform: uppercase; }
.brand-card__link { font-size: 13px; color: var(--gold); letter-spacing: .06em; }

/* ---------- Акции ---------- */
.offers__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.offer { position: relative; display: flex; min-height: 560px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.offer__bg { position: absolute; inset: 0; }
.offer__bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.offer:hover .offer__bg img { transform: scale(1.05); }
.offer::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,.65) 50%, rgba(0,0,0,.94) 100%); }
.offer__body { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; width: 100%; padding: 28px; }
.offer__tag { align-self: flex-start; margin-bottom: 14px; padding: 6px 10px; font: 400 11px/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; background: rgba(11,11,11,.7); border: 1px solid var(--gold-dark); color: var(--gold-light); }
.offer__title { font-size: 26px; margin-bottom: 12px; }
.offer__text { font-size: 15px; color: #d4d0c8; }
.offer__price { margin: 4px 0 20px; font: 700 34px/1 var(--f-display); color: var(--gold-light); }
.offer__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.offer__btns .btn { padding: 0 12px; font-size: 12px; letter-spacing: .05em; }
.offers__note { margin-top: 24px; font-size: 13px; color: var(--muted); }

/* ---------- Услуги ---------- */
.services__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { display: flex; gap: 20px; padding: 32px 28px; background: var(--bg); transition: background .25s; }
.section:nth-of-type(even) .service { background: var(--bg-2); }
.service:hover { background: var(--surface) !important; }
.service__num { font: 700 28px/1 var(--f-display); color: var(--gold); min-width: 40px; }
.service__name { font-size: 16px; line-height: 1.5; }

/* ---------- О нас ---------- */
.about__head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.about__head .section__title { margin-bottom: 0; }
.about__lead { margin: 0; color: var(--muted); font-size: 17px; }
.adv__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.adv { padding: 32px 24px; background: var(--surface); border-top: 2px solid var(--gold); }
.adv__icon { width: 44px; height: 44px; margin-bottom: 22px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.adv__title { font-size: 19px; margin-bottom: 12px; }
.adv__text { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Отзывы ---------- */
.rslider { position: relative; margin-bottom: 40px; }
.rslider__viewport { overflow: hidden; }
.rslider__track { display: flex; transition: transform .5s ease; }
.rcard { flex: 0 0 calc(100% / 3); padding: 0 12px; display: flex; flex-direction: column; }
.rcard > * { position: relative; }
.rcard { background-clip: content-box; }
.rcard__stars, .rcard__text, .rcard__meta { background: var(--surface); padding-left: 28px; padding-right: 28px; }
.rcard__stars { padding-top: 28px; font-size: 20px; letter-spacing: 4px; color: var(--gold); }
.rcard__stars span { color: var(--line); }
.rcard__text { flex: 1; margin: 0; padding-top: 16px; padding-bottom: 16px; font-size: 15px; }
.rcard__meta { display: flex; flex-direction: column; gap: 2px; padding-bottom: 28px; font-size: 13px; color: var(--muted); }
.rcard__meta b { color: var(--text); font-weight: 700; }
.rcard__src { font-size: 12px; }
.rslider__nav { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.rslider__nav .slider__arrow { position: relative; top: auto; left: auto; right: auto; margin: 0; }
.reviews__yandex { position: relative; max-width: 760px; }
.reviews__yandex iframe { display: block; width: 100%; height: 720px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.reviews__more { display: inline-block; margin-top: 16px; color: var(--gold); font-size: 14px; }
.reviews__more:hover { color: var(--gold-light); }

/* ---------- Сплит-блоки ---------- */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.split--reverse .split__text { order: 2; }
.split__text > p { color: var(--text-2, #cfcbc3); font-size: 17px; }
.split__media { position: relative; }
.split__media::before { content: ''; position: absolute; inset: 20px -20px -20px 20px; border: 1px solid var(--gold-dark); z-index: 0; }
.split--reverse .split__media::before { inset: 20px 20px -20px -20px; }
.split__media picture, .split__media img { position: relative; z-index: 1; width: 100%; max-height: 620px; object-fit: cover; }
.checklist { list-style: none; margin: 0 0 32px; padding: 0; }
.checklist li { position: relative; padding: 12px 0 12px 36px; border-bottom: 1px solid var(--line); }
.checklist li::before { content: ''; position: absolute; left: 4px; top: 19px; width: 14px; height: 7px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }

/* ---------- Доп. оборудование ---------- */
.equip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.equip { position: relative; padding: 32px 26px 36px; background: var(--surface); border: 1px solid var(--line); transition: border-color .25s; }
.equip:hover { border-color: var(--gold-dark); }
.equip::before { content: ''; display: block; width: 40px; height: 2px; margin-bottom: 24px; background: var(--gold); }
.equip__title { font-size: 20px; margin-bottom: 12px; }
.equip__text { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Онлайн-запись ---------- */
.booking__tabs { display: inline-flex; margin-bottom: 24px; border: 1px solid var(--line); }
.booking__tab { min-width: 180px; padding: 14px 24px; background: transparent; border: 0; font: 700 14px/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); transition: background .2s, color .2s; }
.booking__tab.is-active { background: var(--gold); color: #0b0b0b; }
.booking__tab:not(.is-active):hover { color: var(--text); }
.booking__frame { background: #fff; min-height: 600px; }
.WebDMSServiceWidget { width: 100%; }
.WebDMSServiceWidget iframe { display: block; }

/* ---------- Нативная форма ---------- */
.lead { background: linear-gradient(120deg, #17140e 0%, #0b0b0b 60%) !important; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lead__box { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.lead__text .section__title { margin-bottom: 16px; }
.lead__text p { color: var(--muted); margin: 0; font-size: 17px; }

.form { display: grid; gap: 16px; }
.form--inline { grid-template-columns: 1fr 1fr auto; align-items: end; }
.form--inline .consent, .form--inline .form__msg { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font: 400 12px/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.field input, .field select {
  width: 100%; height: 52px; padding: 0 16px; background: #0b0b0b; border: 1px solid #3a3a3a; border-radius: var(--radius);
  color: var(--text); font: 400 16px/1 var(--f-text); transition: border-color .2s; appearance: none; -webkit-appearance: none;
}
.field select { padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b8a372' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.field select:invalid { color: var(--muted); }
.field select option { color: #111; background: #fff; }
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); }
.field.is-error input, .field.is-error select { border-color: var(--danger); }
.form__submit { height: 52px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--gold); }
.consent a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.form__msg { margin: 0; min-height: 1.4em; font-size: 14px; }
.form__msg.is-error { color: var(--danger); }
.form__msg.is-success { color: var(--ok); }
.form__msg a { color: inherit; text-decoration: underline; }

/* ---------- Контакты ---------- */
.contacts__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: stretch; }
.contacts__info .section__title { margin-bottom: 8px; }
.contacts__brands { font: 400 14px/1 var(--f-display); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 32px; }
.contacts__list { margin: 0 0 32px; }
.contacts__list > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contacts__list dt { font: 400 12px/1.6 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contacts__list dd { margin: 0; }
.contacts__list a:hover { color: var(--gold-light); }
.contacts__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.contacts__map { min-height: 460px; background: var(--surface); }
.contacts__map iframe { display: block; width: 100%; height: 100%; min-height: 460px; border: 0; filter: grayscale(.3); }

/* ---------- Подвал ---------- */
.footer { padding: 40px 0; border-top: 1px solid var(--line); background: #070707; }
.footer__row { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; }
.footer__copy { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.footer__legal { margin: 0; font-size: 12px; color: #6c6962; max-width: 560px; }
.footer__phone { font: 700 22px/1 var(--f-display); letter-spacing: .04em; }

/* ---------- Модалка ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity .2s; }
.modal.is-open { opacity: 1; }
.modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.78); backdrop-filter: blur(4px); }
.modal__box { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 44px 36px 32px; background: var(--bg-2); border: 1px solid var(--line); border-top: 2px solid var(--gold); transform: translateY(16px); transition: transform .25s; }
.modal.is-open .modal__box { transform: none; }
.modal__close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; background: none; border: 0; font-size: 30px; line-height: 1; color: var(--muted); }
.modal__close:hover { color: var(--text); }
.modal__title { font-size: 30px; margin-bottom: 8px; }
.modal__subtitle { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

/* =========================================================
   Светлая контентная область
   Шапка, главный экран с таймером, блок формы, подвал и модалка — тёмные.
   Карточки брендов и акций остаются тёмными как акцентные элементы.
   ========================================================= */
main .section:not(.lead) {
  --bg: #ffffff;
  --bg-2: #f4f2ed;
  --surface: #f4f2ed;
  --line: #e3ded3;
  --text: #16150f;
  --text-2: #3d3a33;
  --muted: #6e695f;
  --gold: #8a7446;          /* затемнённое золото — для текста на светлом фоне */
  --gold-light: #6f5d35;
  --gold-dark: #c9b98f;
  --ghost-line: rgba(22, 21, 15, .35);
  color: var(--text);
  background: var(--bg);
}
main .section:not(.lead):nth-of-type(even) { background: var(--bg-2); --surface: #ffffff; }
main .section:not(.lead) .btn--gold { background: #b8a372; color: #0b0b0b; }
main .section:not(.lead) .btn--gold:hover { background: #cbb888; }
main .section:not(.lead) .booking__tab.is-active { background: #b8a372; color: #0b0b0b; }
main .section:not(.lead) .booking__tabs { background: #fff; }
main .section:not(.lead) .btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
main .section:not(.lead) .adv,
main .section:not(.lead) .equip { box-shadow: 0 1px 0 var(--line), 0 12px 32px -24px rgba(0, 0, 0, .25); }
main .section:not(.lead) .contacts__map iframe { filter: none; }

/* Тёмные акцентные карточки внутри светлых секций */
.brand-card, .offer {
  --surface: #141414;
  --line: #2a2a2a;
  --text: #f2f0eb;
  --muted: #9b978f;
  --gold: #b8a372;
  --gold-light: #d9c89a;
  --gold-dark: #8c7a50;
  --ghost-line: rgba(242, 240, 235, .45);
  color: var(--text);
}
.brand-card { background: #141414; border-color: #141414; }
.brand-card:hover { border-color: #8c7a50; }
.offer .btn--ghost:hover { border-color: #b8a372; color: #d9c89a; }
.offer { border-color: transparent; }

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1240px) {
  .nav__list a { font-size: 12px; letter-spacing: .06em; }
  .adv__grid { grid-template-columns: repeat(3, 1fr); }
  .equip__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1100px) {
  :root { --header-h: 72px; }
  .header__row { grid-template-columns: auto 1fr auto; height: 72px; }
  .header__actions { display: none; }
  .header__phone { align-items: flex-end; justify-self: end; }
  .header__phone-num { font-size: 20px; }
  .burger { display: block; }

  .nav { position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: var(--bg); border-top: 1px solid var(--line); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .25s, transform .25s, visibility .25s; }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; gap: 0; padding: 8px 0; }
  .nav__list a { padding: 16px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
  .nav__mobile-cta { display: grid; gap: 12px; padding: 24px 0 40px; }
  .nav__mobile-phone { font: 700 24px/1 var(--f-display); margin-bottom: 8px; }

  .offers__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .about__head, .lead__box, .contacts__grid { grid-template-columns: 1fr; gap: 24px; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split--reverse .split__text { order: 0; }
  .split__media { max-width: 520px; }
  .footer__row { grid-template-columns: 1fr; gap: 20px; }
  .timer__row { flex-wrap: wrap; justify-content: center; text-align: center; }
  .timer__btn { display: none; }
}

@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .header__phone-hint { display: none; }
  .header__phone-num { font-size: 16px; }
  .logo__img { width: 130px; }
  .logo__sub { font-size: 10px; letter-spacing: .34em; }

  .slider__track { aspect-ratio: auto; height: 500px; }
  .slider__slide picture { display: block; height: 200px; }
  .slider__slide img { object-position: 50% 60%; }
  .hero__caption { top: 200px; align-items: flex-start; padding-top: 24px; background: var(--bg); }
  .hero__eyebrow { font-size: 11px; letter-spacing: .16em; }
  .hero__caption > .container > * { max-width: none; }
  .hero__text { font-size: 14px; }
  .hero__btns .btn { flex: 1 1 100%; }
  .slider__arrow { display: none; }

  .timer__title { font-size: 16px; }
  .timer__cell { min-width: 56px; }
  .timer__num { font-size: 26px; }
  .timer__sep { font-size: 22px; padding-top: 8px; }
  .timer__clock { gap: 6px; }

  .section { padding: 64px 0; }
  .section__title { margin-bottom: 28px; }
  .section__lead { margin-top: -8px; font-size: 16px; }
  .brands__grid, .offers__grid, .services__grid, .adv__grid, .equip__grid { grid-template-columns: 1fr; }
  .brand-card { min-height: 240px; }
  .brand-card__logo--lambo { height: 110px; }
  .brand-card__logo--bentley { width: 200px; margin: 18px 0; }
  .offer { min-height: 520px; }
  .offer__btns { grid-template-columns: 1fr; }
  .service { padding: 24px 20px; }
  .section__cta .btn, .split__text > .btn, .contacts__btns .btn { width: 100%; }
  .split__media::before { display: none; }
  .form--inline { grid-template-columns: 1fr; }
  .booking__tabs { display: flex; }
  .booking__tab { flex: 1; min-width: 0; padding: 14px 8px; }
  .contacts__list > div { grid-template-columns: 1fr; gap: 4px; }
  .reviews__yandex iframe { height: 620px; }
  .rcard { flex-basis: 100%; }
  .modal__box { padding: 40px 20px 24px; }
}

@media (min-width: 700px) and (max-width: 1023px) {
  .rcard { flex-basis: 50%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
