/* =========================================================
   Redline Service — шаблон лендинга автосервиса
   Бренд меняется в :root. Ширина сайта — одна переменная --container.
   ========================================================= */

:root {
  /* Цвета */
  --bg: #0b0b0c;
  --bg-alt: #111113;
  --surface: #151517;
  --surface-hover: #1b1b1e;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f5f5f6;
  --text-dim: rgba(245, 245, 246, 0.66);
  --text-mute: rgba(245, 245, 246, 0.58);
  --accent: #e5202e;
  --accent-hover: #ff2d3d;
  --accent-text: #ff4d58;

  /* Единая сетка */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 9vw, 128px);
  --gap: clamp(32px, 5vw, 72px);
  --cols: minmax(0, 5fr) minmax(0, 7fr);

  /* Прочее */
  --header-h: 80px;
  --radius: 14px;
  --radius-sm: 10px;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Onest", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
address { font-style: normal; }

h1, h2, h3 {
  margin: 0 0 0.6em;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

/* ---------- ЕДИНЫЙ КОНТЕЙНЕР ----------
   Используется везде: шапка, hero, все секции, футер. */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
}
.skip:focus { top: 16px; }

/* ---------- Заголовки секций ---------- */
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }

h2 { font-size: clamp(28px, 3.4vw, 46px); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.tag::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.head {
  display: grid;
  grid-template-columns: var(--cols);
  gap: var(--gap);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.head h2 { margin: 0; }
.head__text {
  margin: 0;
  max-width: 52ch;
  color: var(--text-dim);
}

.muted { color: var(--text-dim); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: 600 15px/1 var(--font-body);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); }

.btn--light { background: #fff; color: #0b0b0c; }
.btn--light:hover { background: #ececee; }

.btn--ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }

.btn--ghost-dark { border-color: var(--line); color: #fff; }
.btn--ghost-dark:hover { border-color: var(--accent); }

.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.header.is-solid {
  background: rgba(11, 11, 12, 0.88);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent);
  font: 700 18px/1 var(--font-display);
  color: #fff;
}
.logo__text {
  font: 600 16px/1 var(--font-display);
  letter-spacing: -0.01em;
}
.logo__text b { margin-left: 4px; font-weight: 600; color: var(--accent-text); }

.nav { display: flex; gap: clamp(18px, 2.2vw, 32px); }
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav a:hover { color: #fff; }

.header__right { display: flex; align-items: center; gap: 20px; }
.header__phone { font: 600 15px/1 var(--font-body); white-space: nowrap; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span {
  width: 18px;
  height: 2px;
  background: #fff;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(40px, 6vw, 72px);
  min-height: 100svh;
  padding: calc(var(--header-h) + 56px) 0 clamp(32px, 4vw, 48px);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: zoom 20s var(--ease) forwards;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 11, 12, 0.92) 0%, rgba(11, 11, 12, 0.7) 50%, rgba(11, 11, 12, 0.5) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 11, 12, 0) 40%);
}

.hero__body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr);
  gap: var(--gap);
  align-items: center;
  animation: up 0.9s var(--ease) both;
}

.hero h1 {
  max-width: none;
  margin-bottom: 24px;
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 700;
  line-height: 1.22;
}
.hero__lead {
  max-width: 48ch;
  margin-bottom: 36px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-dim);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__form { justify-self: stretch; width: 100%; max-width: none; }

/* Статистика */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(21, 21, 23, 0.7);
  backdrop-filter: blur(14px);
  overflow: hidden;
}
.stats li {
  padding: 28px clamp(20px, 2.4vw, 32px);
  border-left: 1px solid var(--line);
}
.stats li:first-child { border-left: 0; }
.stats b {
  display: block;
  font: 600 clamp(24px, 2.8vw, 36px)/1 var(--font-display);
  letter-spacing: -0.02em;
}
.stats span {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  color: var(--text-dim);
}

@keyframes zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ---------- Марки ---------- */
.brands { border-bottom: 1px solid var(--line); }
.brands__row {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-block: 32px;
}
.brands p {
  margin: 0;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mute);
}
.brands ul {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
}
.brands li {
  font: 600 15px/1 var(--font-display);
  letter-spacing: -0.01em;
  color: var(--text-mute);
  transition: color 0.2s;
}
.brands li:hover { color: #fff; }

/* ---------- Услуги ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}
.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 40px);
  background: var(--surface);
  transition: background 0.3s;
}
.service:hover { background: var(--surface-hover); }
.service::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.service:hover::after { transform: scaleX(1); }

.service__num {
  margin-bottom: 40px;
  font: 500 14px/1 var(--font-display);
  color: var(--accent-text);
}
.service h3 { margin-bottom: 20px; font-size: clamp(19px, 1.7vw, 23px); }
.service ul { margin-bottom: 32px; }
.service li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--text-dim);
}
.service li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.service__price {
  margin: auto 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font: 600 18px/1 var(--font-display);
}

/* ---------- Почему мы ---------- */
.why {
  display: grid;
  grid-template-columns: var(--cols);
  gap: var(--gap);
  align-items: start;
}
.why__media {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  border-radius: var(--radius);
  overflow: hidden;
}
.why__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.why__media figcaption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(11, 11, 12, 0.8);
  backdrop-filter: blur(12px);
}
.why__media figcaption b {
  display: block;
  font: 600 28px/1 var(--font-display);
  color: var(--accent-text);
}
.why__media figcaption span {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-dim);
}

.why__content h2 { margin-bottom: 48px; max-width: 24ch; }

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px clamp(28px, 4vw, 56px);
}
.features li { padding-top: 24px; border-top: 1px solid var(--line); }
.features h3 {
  margin-bottom: 10px;
  font: 600 19px/1.25 var(--font-body);
  letter-spacing: -0.01em;
}
.features p { margin: 0; font-size: 16px; color: var(--text-dim); }

/* ---------- Как работаем ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
  counter-reset: step;
}
.steps li { position: relative; padding-top: 32px; border-top: 1px solid var(--line); }
.steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 56px;
  height: 2px;
  background: var(--accent);
}
.steps__num {
  display: block;
  margin-bottom: 24px;
  font: 600 clamp(40px, 4vw, 56px)/1 var(--font-display);
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.14);
}
.steps h3 { margin-bottom: 12px; font: 600 20px/1.25 var(--font-body); letter-spacing: -0.01em; }
.steps p { margin: 0; font-size: 16px; color: var(--text-dim); }

/* ---------- Сплит: заголовок слева, контент справа ---------- */
.split {
  display: grid;
  grid-template-columns: var(--cols);
  gap: var(--gap);
  align-items: start;
}
.split__side {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}
.split__side h2 { max-width: 18ch; }
.split__side > .muted { max-width: 38ch; margin-bottom: 32px; }

/* Цены */
.prices { border-top: 1px solid var(--line); }
.prices li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s var(--ease);
}
.prices li:hover { padding-left: 12px; }
.prices span { font-size: 18px; }
.prices b {
  flex-shrink: 0;
  font: 600 clamp(16px, 1.5vw, 19px)/1 var(--font-display);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ---------- Отзывы ---------- */
.rating b {
  margin-right: 10px;
  font: 600 32px/1 var(--font-display);
  color: #fff;
}
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: clamp(24px, 2.6vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.review__stars { margin-bottom: 20px; font-size: 18px; letter-spacing: 3px; color: var(--accent-text); }
.review p { margin-bottom: 28px; font-size: 17px; line-height: 1.6; }
.review footer { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.review strong { display: block; font-size: 16px; font-weight: 600; }
.review span { display: block; margin-top: 4px; font-size: 14px; color: var(--text-mute); }

/* ---------- Галерея ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(200px, 22vw, 300px);
  gap: 16px;
}
.gallery__item {
  position: relative;
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.gallery__item--wide { grid-column: span 2; }
.gallery__item:nth-child(5) { grid-column: span 3; }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 28px 48px 28px 0;
  font: 600 19px/1.35 var(--font-body);
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-text); }
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -9px;
  border-right: 2px solid var(--accent-text);
  border-bottom: 2px solid var(--accent-text);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease), margin 0.3s var(--ease);
}
.faq details[open] summary::after { margin-top: -3px; transform: rotate(225deg); }
.faq p { max-width: 60ch; margin: 0 0 28px; color: var(--text-dim); }

/* ---------- Запись ---------- */
.booking { padding-top: 0; padding-bottom: 0; }
.booking + .section { padding-top: var(--section-y); }
.booking__box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: center;
  padding: clamp(24px, 5vw, 72px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(700px 360px at 0% 0%, rgba(229, 32, 46, 0.22), transparent 65%),
    var(--surface);
}
.booking h2 { max-width: none; font-size: clamp(26px, 2.9vw, 40px); }
.booking__copy > p { max-width: 44ch; color: var(--text-dim); }
.booking__points { margin: 28px 0 36px; }
.booking__points li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}
.booking__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--accent-text);
  border-bottom: 2px solid var(--accent-text);
  transform: rotate(-45deg);
}
.booking__phone { font: 600 clamp(24px, 3vw, 36px)/1 var(--font-display); letter-spacing: -0.02em; transition: color 0.2s; }
.booking__phone:hover { color: var(--accent-text); }

/* Формы */
.card-form {
  padding: clamp(24px, 2.6vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 11, 12, 0.78);
  backdrop-filter: blur(16px);
}
.card-form__title { margin-bottom: 8px; font-size: clamp(20px, 1.8vw, 24px); }
.card-form__sub { margin-bottom: 24px; font-size: 15px; color: var(--text-dim); }
.card-form__title:last-child,
.card-form > h3.card-form__title { margin-bottom: 24px; }
.card-form__sub + label { margin-top: 0; }

.card-form label { display: block; margin-bottom: 16px; }
.card-form label span {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
}
.card-form input,
.card-form textarea {
  display: block;
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  font-size: 16px;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s, background 0.2s;
}
.card-form input::placeholder,
.card-form textarea::placeholder { color: var(--text-mute); }
.card-form input:focus,
.card-form textarea:focus { border-color: var(--accent); background: rgba(255, 255, 255, 0.07); }
.card-form .btn { margin-top: 8px; }
.card-form__note { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-mute); }
.form-status { margin: 14px 0 0; font-size: 15px; color: #6dffa0; }
.form-status.is-error { color: #ff8d95; }

/* ---------- Контакты ---------- */
.contacts p {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
  font-size: 19px;
}
.contacts span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.contacts a { transition: color 0.2s; }
.contacts a:hover { color: var(--accent-text); }

.map {
  display: grid;
  place-items: center;
  min-height: 440px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: repeating-linear-gradient(-45deg, var(--surface), var(--surface) 14px, #131315 14px, #131315 28px);
  font-size: 15px;
  color: var(--text-mute);
  text-align: center;
  padding: 24px;
}

/* ---------- Футер ---------- */
.footer { padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); background: #070708; }
.footer__grid {
  display: grid;
  grid-template-columns: var(--cols);
  gap: var(--gap);
  padding-bottom: 48px;
}
.footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
.footer__about { max-width: 38ch; margin: 20px 0 0; font-size: 15px; color: var(--text-dim); }
.footer__nav,
.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  color: var(--text-dim);
}
.footer__nav a:hover,
.footer__contacts a:hover { color: #fff; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-mute);
}
.footer__bottom p { margin: 0; }

/* Плавающая кнопка звонка (моб.) */
.fab {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  padding: 16px 22px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 12px 32px rgba(229, 32, 46, 0.4);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

/* Плавающая плашка: купить шаблон */
.buy-badge {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 95;
  width: min(280px, calc(100vw - 32px));
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(17, 17, 19, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  animation: up 0.7s var(--ease) both;
}
.buy-badge.is-hidden { display: none; }
.buy-badge__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-mute);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.buy-badge__close:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.buy-badge__title {
  margin: 0 28px 6px 0;
  font: 600 16px/1.25 var(--font-display);
  letter-spacing: -0.01em;
}
.buy-badge__text {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-dim);
}
.buy-badge__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.buy-badge__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  transition: transform 0.2s var(--ease), filter 0.2s;
}
.buy-badge__link:hover { transform: translateY(-1px); filter: brightness(1.08); color: #fff; }
.buy-badge__link--vk { background: #0077ff; }
.buy-badge__link--tg { background: #229ed9; }

/* Появление при скролле */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-on { opacity: 1; transform: none; }

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1100px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(11, 11, 12, 0.97);
    backdrop-filter: blur(16px);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .burger { display: inline-flex; }
  .header__phone { display: none; }

  /* Hero: форма под заголовком, без наложения */
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 40px); }
  .hero__body {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    align-items: start;
  }
  .hero__form { max-width: 520px; }

  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .brands__row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .brands ul { justify-content: flex-start; gap: 12px 28px; }
}

@media (max-width: 960px) {
  :root { --cols: minmax(0, 1fr); }

  .head { align-items: start; gap: 20px; }
  .split__side { position: static; }
  .why__media { position: relative; top: auto; }
  .split__side h2,
  .why__content h2,
  .booking h2 { max-width: none; }

  .hero h1 { max-width: none; }
  .hero__form { max-width: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .booking__box { grid-template-columns: minmax(0, 1fr); }
  .why__media img { aspect-ratio: 16 / 10; }
  .reviews { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--wide,
  .gallery__item:nth-child(5) { grid-column: span 2; }
  .map { min-height: 320px; }
  .footer__grid { gap: 32px; }
  .fab { display: inline-flex; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .services,
  .features,
  .steps,
  .footer__cols { grid-template-columns: 1fr; }
  .gallery { grid-auto-rows: 200px; gap: 12px; }
  .gallery__item,
  .gallery__item--wide,
  .gallery__item:nth-child(5) { grid-column: span 2; }
  .prices span { font-size: 16px; }
  .prices li { flex-direction: column; gap: 8px; padding: 20px 0; }
  .header__right .btn { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .stats li { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
