/* Layout: одна длинная страница, тёмные графитовые блоки чередуются со светлыми; единственный яркий цвет — синий VAG */
:root {
  --graphite: #14171c;      /* тёмные секции */
  --graphite-2: #1c2129;    /* карточки на тёмном */
  --line-dark: #2b313b;
  --ink-dark: #e9edf3;      /* текст на тёмном */
  --muted-dark: #9aa4b2;

  --paper: #f5f7fa;         /* светлые секции */
  --tint: #eaeef4;          /* светлые секции-подложки */
  --card: #ffffff;
  --line: #d9dfe8;
  --ink: #12161c;           /* текст на светлом */
  --muted: #5a6474;

  --accent: #1e6fd9;
  --accent-hover: #1759b3;
  --accent-soft: rgba(30, 111, 217, .12);
  --wa: #1f9d55;
  --ok: #2fb56a;
  --off: #c24a3a;

  --font: "Manrope", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --radius: 10px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 1; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Цветовые миры секций ---------- */
.dark { background: var(--graphite); color: var(--ink-dark); }
.light { background: var(--paper); color: var(--ink); }
.section--tint { background: var(--tint); color: var(--ink); }
.muted-dark { color: var(--muted-dark); }

.section { padding-block: clamp(64px, 9vw, 112px); }
.section__head { display: grid; gap: 10px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.section__head--split { max-width: none; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 860px) { .section__head--split { grid-template-columns: 1fr minmax(0, 420px); gap: 40px; } }
.section__aside { color: var(--muted); font-size: .95rem; }

.eyebrow { font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark); }
.eyebrow--accent { color: var(--accent); }

.placeholder-note {
  margin-top: 18px; font-size: .85rem; color: var(--muted);
  border-left: 2px dashed var(--line); padding: 2px 0 2px 12px;
}
.dark .placeholder-note { color: var(--muted-dark); border-color: var(--line-dark); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 8px; border: 1px solid transparent;
  font: 700 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 38px; padding: 8px 14px; font-size: .88rem; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--line-dark); color: var(--ink-dark); background: transparent; }
.btn--ghost:hover { border-color: var(--muted-dark); }
.btn--line { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn--line:hover { border-color: var(--accent); color: var(--accent); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(20, 23, 28, .94); color: var(--ink-dark);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-dark);
}
.header__row { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; letter-spacing: .04em; }
.logo__mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; background: var(--accent); color: #fff; font-size: .82rem; }
.logo__word { font-size: 1.15rem; }
.nav { display: flex; gap: clamp(14px, 1.6vw, 22px); margin-left: 8px; flex-shrink: 0; }
.nav a { text-decoration: none; white-space: nowrap; font-size: .92rem; font-weight: 600; color: var(--muted-dark); transition: color .15s; }
.nav a:hover, .nav a.is-active { color: var(--ink-dark); }
.header__actions { display: flex; align-items: center; gap: 16px; margin-left: auto; flex-shrink: 0; }
.header__phone { text-decoration: none; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted-dark); white-space: nowrap; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-dark); }
.status[data-state="open"] .status__dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(47, 181, 106, .18); }
.status[data-state="closed"] .status__dot { background: var(--off); }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-dark); border-radius: 8px; background: transparent; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink-dark); transition: transform .2s, opacity .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); }

@media (max-width: 1180px) { .header__phone { display: none; } }
@media (max-width: 520px) { .status { display: none; } }
@media (max-width: 920px) {
  .burger { display: inline-flex; }
  .header__phone { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--graphite); border-bottom: 1px solid var(--line-dark);
    padding: 8px var(--gutter) 16px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 1rem; }
}

/* ---------- Первый экран ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 104px); }
.hero__media { position: absolute; inset: 0; overflow: hidden; pointer-events: none; background: #0b0d10; }
.hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; display: block; }
/* затемнение: слева плотнее под текстом, справа — машина; снизу плавный переход в фон страницы */
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 23, 28, .94) 0%, rgba(20, 23, 28, .78) 34%, rgba(20, 23, 28, .30) 62%, rgba(20, 23, 28, .45) 100%),
    linear-gradient(to bottom, rgba(20, 23, 28, .55) 0%, transparent 22%, transparent 70%, var(--graphite) 100%);
}
@media (max-width: 979px) {
  .hero__media::after { background: linear-gradient(to bottom, rgba(20, 23, 28, .72), rgba(20, 23, 28, .86) 60%, var(--graphite)); }
}
.hero .btn--ghost { background: rgba(20, 23, 28, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero__row { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero__row { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 64px; } }
.hero__text { display: grid; gap: 22px; min-width: 0; }
.hero__brands { font-family: var(--mono); font-size: clamp(.82rem, 1.4vw, .95rem); color: var(--ink-dark); letter-spacing: .02em; }
.hero__brands i { font-style: normal; color: var(--accent); padding-inline: 4px; }
.hero__lead { color: var(--muted-dark); font-size: 1.08rem; max-width: 56ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.plate {
  background: rgba(28, 33, 41, .62); border: 1px solid rgba(154, 164, 178, .18); border-radius: var(--radius);
  backdrop-filter: blur(12px) saturate(120%); -webkit-backdrop-filter: blur(12px) saturate(120%);
  padding: 22px 24px; min-width: 0;
}
.plate__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line-dark); font-size: .8rem; letter-spacing: .1em; color: var(--muted-dark); }
.plate__code { color: var(--accent); letter-spacing: .04em; }
.plate__list { margin: 0; display: grid; }
.plate__list > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line-dark); }
.plate__list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.plate__list dt { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-dark); padding-top: 3px; }
.plate__list dd { margin: 0; font-size: .95rem; }
.plate__list strong { font-size: 1.4rem; }
.plate .muted { color: var(--muted-dark); font-size: .88rem; }
.vin { color: var(--muted-dark); font-size: .85rem; margin-left: 4px; }

/* ---------- О сервисе ---------- */
.about { display: grid; gap: 40px; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; } }
.about__text { display: grid; gap: 16px; font-size: 1.05rem; max-width: 62ch; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.fact { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: baseline; padding-block: 18px; border-bottom: 1px solid var(--line); }
.fact__num { font-size: 2rem; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }
.fact__num.mono { font-size: 1.6rem; }
.fact__label { color: var(--muted); }

.amenities { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.amenities li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; font-weight: 600; background: var(--card); }

.gallery { margin-top: 40px; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } .shot--main { grid-column: span 2; grid-row: span 2; } }
.shot--main { grid-column: span 2; }
.shot { margin: 0; position: relative; min-width: 0; border-radius: var(--radius); overflow: hidden; background: var(--graphite); }
.shot__btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.shot img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.shot--main img { aspect-ratio: auto; min-height: 100%; }
@media (max-width: 759px) { .shot--main img { aspect-ratio: 4 / 3; } }
.shot__btn:hover img { transform: scale(1.03); }
.shot figcaption {
  position: absolute; left: 10px; bottom: 10px; pointer-events: none;
  background: rgba(20, 23, 28, .82); color: #fff; font-size: .78rem; font-weight: 600;
  padding: 5px 9px; border-radius: 6px;
}

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 12, 15, .88); }
.lightbox img { max-width: min(96vw, 1400px); max-height: 92vh; object-fit: contain; border-radius: 8px; }
.lightbox__close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }
@media (max-width: 600px) { .lightbox__close { top: 8px; right: 8px; } }

/* ---------- Каталог ---------- */
.catalog { display: grid; gap: 20px; }
@media (min-width: 900px) { .catalog { grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; } }
.catalog__tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
@media (min-width: 900px) { .catalog__tabs { flex-direction: column; overflow: visible; position: sticky; top: calc(var(--header-h) + 20px); } }
.tab {
  flex: none; text-align: left; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 8px; padding: 10px 14px; font: 600 .92rem/1.3 var(--font); cursor: pointer;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  transition: border-color .15s, background-color .15s, color .15s;
}
.tab:hover { border-color: var(--accent); }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.tab__count { font-family: var(--mono); font-size: .75rem; opacity: .7; }
.catalog__panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 24px; min-width: 0; }
.catalog__title { padding: 18px 0 10px; font-size: 1.15rem; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; align-items: baseline; padding-block: 16px; border-top: 1px solid var(--line); }
.price-row__name { font-weight: 600; min-width: 0; }
.price-row__note { grid-column: 1 / -1; font-size: .85rem; color: var(--muted); margin-top: -4px; }
.price-row__price { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; color: var(--accent); }
.price-row__price.is-empty { color: var(--muted); font-family: var(--font); font-size: .9rem; }
.price-row__ask { grid-column: 1 / -1; justify-self: start; background: none; border: 0; padding: 0; color: var(--accent); font: 600 .85rem var(--font); cursor: pointer; }
.price-row__ask:hover { text-decoration: underline; }
@media (max-width: 480px) { .catalog__panel { padding: 4px 16px; } }

/* ---------- ИИ-консультант ---------- */
.assistant__row { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .assistant__row { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; } }
.assistant__intro { display: grid; gap: 18px; min-width: 0; }
.assistant__intro > p:not(.eyebrow):not(.demo-badge) { color: var(--muted-dark); font-size: 1.05rem; }
.assistant__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.assistant__list li { padding-left: 22px; position: relative; }
.assistant__list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 2px; background: var(--accent); }
.demo-badge { justify-self: start; font-family: var(--mono); font-size: .75rem; color: var(--muted-dark); border: 1px dashed var(--line-dark); border-radius: 6px; padding: 6px 10px; }

.chat {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--graphite-2); border: 1px solid var(--line-dark); border-radius: 14px;
  height: min(620px, 78vh); min-height: 440px; overflow: hidden;
}
.chat__top { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line-dark); }
.chat__avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; font-size: .8rem; }
.chat__name { font-weight: 700; }
.chat__sub { font-size: .8rem; color: var(--muted-dark); }
.chat__log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.msg { max-width: 85%; padding: 11px 14px; border-radius: 12px; font-size: .95rem; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.msg--assistant { align-self: flex-start; background: #262c36; border-bottom-left-radius: 4px; }
.msg--user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg--typing { display: inline-flex; gap: 4px; align-items: center; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-dark); animation: blink 1.2s infinite ease-in-out; }
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.booking-actions { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 8px; margin-top: -4px; }
.booking-actions .btn { min-height: 38px; }
.chat__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.chip { border: 1px solid var(--line-dark); background: transparent; color: var(--ink-dark); border-radius: 999px; padding: 7px 13px; font: 600 .84rem var(--font); cursor: pointer; transition: border-color .15s, color .15s; }
.chip:hover { border-color: var(--accent); color: #fff; }
.chip[disabled] { opacity: .5; cursor: not-allowed; }
.chat__form { display: flex; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line-dark); align-items: flex-end; }
.chat__form textarea {
  flex: 1; min-width: 0; resize: none; max-height: 140px;
  background: var(--graphite); color: var(--ink-dark); border: 1px solid var(--line-dark); border-radius: 10px;
  padding: 12px 14px; font: 400 .95rem/1.4 var(--font);
}
.chat__form textarea::placeholder { color: var(--muted-dark); }
.chat__form textarea:focus { outline: none; border-color: var(--accent); }
.chat__send { width: 48px; padding: 0; flex: none; }

/* ---------- Отзывы ---------- */
.rating { display: inline-grid; grid-template-columns: auto auto; column-gap: 14px; align-items: center; text-decoration: none; justify-self: start; }
@media (min-width: 860px) { .rating { justify-self: end; } }
.rating__num { grid-row: span 2; font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.rating__stars { color: #f2b01e; letter-spacing: 2px; }
.rating__src { font-size: .85rem; color: var(--accent); font-weight: 600; }
.reviews__summary { font-size: 1.1rem; max-width: 62ch; margin-bottom: 28px; }
.reviews { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; }
.review {
  display: grid; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.review__stars { color: #f2b01e; letter-spacing: 2px; font-size: .95rem; }
.review__text { display: grid; gap: 10px; font-size: .96rem; line-height: 1.6; }
.review__foot { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.review__avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--accent); font-weight: 800; flex: none; }
.review__who { display: grid; font-size: .9rem; line-height: 1.35; }
.review__who time { color: var(--muted); font-size: .82rem; }
.reviews__more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.reviews__src { font-size: .85rem; color: var(--muted); }

/* ---------- Контакты ---------- */
.contacts { display: grid; gap: 40px; }
@media (min-width: 900px) { .contacts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
.contacts__info { display: grid; gap: 28px; align-content: start; min-width: 0; }
.kv { margin: 0; display: grid; }
.kv > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); font-size: .9rem; }
.kv dd { margin: 0; font-weight: 600; }
.kv a { text-decoration: none; }
.kv a:hover { color: var(--accent); }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 9px 12px; text-align: left; font-weight: 500; border-bottom: 1px solid var(--line); }
.hours td { text-align: right; font-family: var(--mono); font-size: .92rem; }
.hours tr.off td { color: var(--off); font-family: var(--font); }
.hours tr.is-today { background: var(--accent-soft); }
.hours tr.is-today th { font-weight: 800; }
.hours tr.is-today th::after { content: " · сегодня"; font-weight: 500; color: var(--accent); font-size: .85rem; }

.route { display: grid; gap: 16px; align-content: start; min-width: 0; }
.route__warn { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 6px; padding: 12px 14px; font-size: .95rem; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--graphite); color: #fff; font: 700 .85rem var(--mono); }
.steps li span { padding-top: 4px; }
.route__photos { display: grid; gap: 12px; grid-template-columns: 1.5fr 1fr; }
.route__photos .shot img { aspect-ratio: auto; height: 220px; }
@media (max-width: 480px) { .route__photos { grid-template-columns: 1fr; } .route__photos .shot img { height: 200px; } }
.route__note { font-size: .95rem; }
.route__note--muted { font-size: .85rem; color: var(--muted); }
.route__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

.map { margin-top: 40px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); aspect-ratio: 16 / 7; min-height: 320px; max-width: 100%; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__fallback { height: 100%; display: grid; place-items: center; text-align: center; gap: 12px; padding: 24px; color: var(--muted); background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(90, 100, 116, .06) 14px 15px), var(--tint); }

/* ---------- Обратный звонок ---------- */
.callback { padding-block: clamp(56px, 8vw, 88px); border-bottom: 1px solid var(--line-dark); }
.callback__row { display: grid; gap: 32px; align-items: center; }
.callback__row h2 { margin-bottom: 12px; }
@media (min-width: 900px) { .callback__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; } }
.form { display: grid; gap: 16px; min-width: 0; }
.form__fields { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.field { display: grid; gap: 6px; }
.field label { font-size: .82rem; color: var(--muted-dark); font-weight: 600; }
.field input {
  min-height: 48px; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line-dark);
  background: var(--graphite-2); color: var(--ink-dark); font: 500 1rem var(--font); width: 100%;
}
.field input::placeholder { color: var(--muted-dark); }
.field input:focus { outline: none; border-color: var(--accent); }
.field input[aria-invalid="true"] { border-color: var(--off); }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: .85rem; color: var(--muted-dark); align-items: start; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.check a { color: var(--ink-dark); }
.form .btn { justify-self: start; }
.form__msg { font-size: .9rem; min-height: 1.4em; }
.form__msg.is-error { color: #ff8a7a; }
.form__msg.is-ok { color: var(--ok); }

/* ---------- Телефоны с кнопкой WhatsApp напротив номера ---------- */
.phones { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.phone-row { display: grid; grid-template-columns: max-content max-content; align-items: center; column-gap: 12px; min-height: 30px; }
.phone-row > a:first-child, .phone-row > span { font-variant-numeric: tabular-nums; white-space: nowrap; }
.wa-chip {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; line-height: 1.4; text-decoration: none; white-space: nowrap;
  color: var(--wa); border: 1px solid currentColor; transition: background-color .15s, color .15s;
}
.wa-chip:hover { background: var(--wa); color: #fff; border-color: var(--wa); }
.footer .wa-chip { color: #3ccf7a; }
.footer .wa-chip:hover { color: #fff; }
.kv .wa-chip:hover { color: #fff; }

/* ---------- Подвал ---------- */
.footer { padding-block: 48px 28px; font-size: .92rem; }
.footer__row { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.footer__row > div { display: grid; gap: 6px; align-content: start; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line-dark); color: var(--muted-dark); font-size: .82rem; }

/* Плашка про cookies */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 18px;
  background: var(--graphite); color: #e9edf2; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: .9rem; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1; }
.cookie a { color: #8fbaf3; }
.cookie .btn { flex: none; }

/* Согласие в чате и кнопки плашки cookies */
.chat__consent { margin: 0; padding: 0 18px 10px; font-size: .78rem; color: var(--muted-dark); }
.chat__consent a { color: var(--muted-dark); text-decoration: underline; }
.chat__consent.is-error span { color: #ff8a7a; }
.cookie__actions { display: flex; gap: 8px; flex: none; }
.cookie .btn--ghost { color: #e9edf2; border-color: rgba(255,255,255,.3); }
@media (max-width: 520px) { .cookie { flex-wrap: wrap; } .cookie__actions { width: 100%; justify-content: flex-end; } }
