/* GAP Auto Service — вариант A «Гаражная вывеска».
   Палитра с логотипа и старого сайта + охра с плашек Instagram. */
:root {
  --ink: #0a2a2d;        /* основной фон */
  --ink-deep: #082326;   /* фон прайса */
  --panel: #0f3b3e;      /* карточки на тёмном */
  --teal: #035c5a;       /* бирюзовый с логотипа */
  --cream: #f8ecc1;      /* текст, кремовый с логотипа */
  --ochre: #e3b23c;      /* акцент */
  --ochre-hover: #f0c24b;
  --muted: rgba(248, 236, 193, .72);
  --muted-strong: rgba(248, 236, 193, .88);
  --line: rgba(248, 236, 193, .18);
  --radius: 18px;
  --font-display: 'Russo One', 'Arial Black', sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cream); }
a:hover { color: var(--ochre); }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: .01em; }
.h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; }
.h2-sm { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.05; }
.h3 { font-size: 28px; }
.lead-text { font-size: 18px; line-height: 1.6; }
.muted { color: var(--muted); }
.muted-strong { color: var(--muted-strong); }
.small { font-size: 14px; }
.stack { display: flex; flex-direction: column; gap: 22px; }
.stack-lg { display: flex; flex-direction: column; gap: 32px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ochre); color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 800; }
.skip:focus { left: 8px; }

/* ── Кнопки ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 11px 18px; border-radius: 12px;
  font: inherit; font-weight: 800; font-size: 15px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-lg { font-size: 17px; padding: 14px 24px; min-height: 52px; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; font-size: 17px; min-height: 52px; }
.btn-accent { background: var(--ochre); color: var(--ink); }
.btn-accent:hover { background: var(--ochre-hover); color: var(--ink); }
.btn-outline { border-color: var(--cream); color: var(--cream); background: transparent; }
.btn-outline:hover { background: var(--cream); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #000; color: var(--cream); }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--line); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn-row-center { justify-content: center; }

/* ── Шапка ── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 42, 45, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo img { width: 56px; height: 56px; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; flex: 1 1 auto; font-weight: 700; font-size: 15px; }
.nav a { text-decoration: none; padding: 6px 0; }
.nav .nav-accent { color: var(--ochre); }
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.langs { display: flex; border: 1px solid rgba(248, 236, 193, .3); border-radius: 8px; overflow: hidden; font-size: 13px; font-weight: 800; }
.langs a { padding: 8px 10px; text-decoration: none; min-width: 38px; text-align: center; }
.langs a[aria-current] { background: var(--cream); color: var(--ink); }
.header-phone { font-weight: 800; text-decoration: none; white-space: nowrap; }
.burger { display: none; background: none; border: 0; color: var(--cream); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; border-radius: 10px; }

@media (max-width: 1180px) {
  .header-phone { display: none; }
}
@media (max-width: 980px) {
  .burger { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px 24px 20px;
    background: var(--ink); border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .header-row { position: relative; min-height: 68px; gap: 12px; }
  .logo img { width: 48px; height: 48px; }
}
@media (max-width: 520px) {
  .header-book { display: none; }
  .wrap { padding: 0 16px; }
}

/* ── Первый экран ── */
.hero {
  min-height: 640px; display: flex; align-items: center;
  background-image:
    linear-gradient(90deg, rgba(10, 42, 45, .96) 0%, rgba(10, 42, 45, .82) 45%, rgba(10, 42, 45, .15) 100%),
    url(/static/img/gapwall.webp);
  background-size: cover; background-position: center 35%;
}
.hero .wrap { width: 100%; padding-top: 72px; padding-bottom: 72px; }
.hero-body { max-width: 620px; display: flex; flex-direction: column; gap: 26px; }
.plaque {
  align-self: flex-start; border: 3px solid var(--ochre); border-radius: 14px; padding: 8px 16px;
  background: var(--ink); font-family: var(--font-display); font-size: 15px; letter-spacing: .06em;
  color: var(--ochre); text-transform: uppercase;
}
.hero-title { font-size: clamp(40px, 5.6vw, 64px); line-height: 1.02; }
.hero-text { font-size: 20px; line-height: 1.5; max-width: 520px; color: var(--muted-strong); }
.hero-meta { display: flex; gap: 8px 28px; flex-wrap: wrap; font-size: 14px; font-weight: 700; color: rgba(248, 236, 193, .8); }
@media (max-width: 760px) {
  .hero {
    min-height: 0;
    background-image: linear-gradient(180deg, rgba(10, 42, 45, .75), rgba(10, 42, 45, .95)), url(/static/img/gapwall.webp);
  }
  .hero .wrap { padding-top: 48px; padding-bottom: 56px; }
  .hero-text { font-size: 18px; }
}

/* ── Эвакуатор ── */
.tow { background: var(--ochre); color: var(--ink); }
.tow a:not(.btn) { color: var(--ink); }
.tow-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.tow-body { padding: 48px 24px; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.kicker { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.tow .lead-text { max-width: 480px; }
.tow-img { width: 100%; height: 100%; min-height: 380px; max-height: 460px; object-fit: cover; object-position: center 40%; }
@media (max-width: 760px) { .tow-img { display: none; } .tow-body { padding: 40px 16px; } }

/* ── Секции ── */
.section { padding: 88px 0; }
.section-tight-top { padding-top: 40px; }
.section-deep { background: var(--ink-deep); }
.section-teal { background: var(--teal); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.strong-link { font-weight: 800; }
@media (max-width: 760px) { .section { padding: 64px 0; } }

/* ── Личный кабинет ── */
.cabinet-section { padding-bottom: 24px; }
.cabinet {
  background: var(--teal); border: 3px solid var(--ochre); border-radius: 28px; padding: 48px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 48px; align-items: center;
}
.badge {
  align-self: flex-start; background: var(--ochre); color: var(--ink); border-radius: 10px;
  padding: 6px 14px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
}
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: center; font-size: 17px; font-weight: 700; }
.check { width: 28px; height: 28px; border-radius: 8px; background: var(--ochre); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.checks-teal .check { width: 32px; height: 32px; background: var(--teal); color: var(--cream); }
.phone {
  width: 300px; max-width: 100%; margin: 0 auto; background: var(--ink); border: 3px solid var(--cream);
  border-radius: 40px; padding: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}
.phone-screen { background: var(--panel); border-radius: 28px; padding: 18px 16px 22px; display: flex; flex-direction: column; gap: 12px; }
.phone-head { display: flex; align-items: center; gap: 10px; line-height: 1.25; }
.phone-head b { display: block; font-size: 14px; }
.phone-head span { font-size: 12px; color: rgba(248, 236, 193, .65); }
.phone-label { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: rgba(248, 236, 193, .65); text-transform: uppercase; }
.phone-row { background: var(--ink); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.phone-row div { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.phone-row .accent { color: var(--ochre); }
.phone-row span { font-size: 12px; color: rgba(248, 236, 193, .65); }
@media (max-width: 760px) { .cabinet { padding: 28px 20px; gap: 32px; border-radius: 22px; } }

/* ── Акции ── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 22px; }
.promo {
  background: var(--panel); border: 3px solid var(--ochre); border-radius: 20px; padding: 28px;
  display: flex; flex-direction: column; gap: 14px; min-height: 220px;
}
.promo-badge { font-size: 40px; color: var(--ochre); line-height: 1; }
.promo h3 { font-size: 22px; font-weight: 800; line-height: 1.25; }
.promo p { font-size: 16px; color: rgba(248, 236, 193, .82); flex: 1; }
.promo-until { font-size: 14px; font-weight: 700; color: var(--muted); }

/* ── О нас ── */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 48px; align-items: center; }
.about-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; border: 3px solid var(--cream); }

/* ── Прайс ── */
.price-grid { columns: 3 320px; column-gap: 22px; }
.price-card { background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; break-inside: avoid; margin-bottom: 22px; }
.price-card h3 { font-size: 21px; color: var(--ochre); margin-bottom: 12px; }
.price-card dl { margin: 0; }
.price-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.price-row:last-child { border-bottom: 0; }
.price-row dt { margin: 0; }
.price-row dd { margin: 0; font-weight: 800; white-space: nowrap; text-align: right; }
@media (max-width: 400px) { .price-card { padding: 20px; } }

/* ── Галерея ── */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 14px; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; }
@media (max-width: 520px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Отзывы ── */
.chips { display: flex; gap: 12px; flex-wrap: wrap; }
.chip { border: 2px solid rgba(248, 236, 193, .3); border-radius: 10px; padding: 9px 14px; font-weight: 800; text-decoration: none; }
.chip-link:hover { border-color: var(--ochre); }
.review { margin: 0; background: var(--panel); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.stars { color: var(--ochre); font-size: 20px; letter-spacing: 3px; }
.review blockquote { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(248, 236, 193, .9); flex: 1; }

/* ── Запись + контакты ── */
.book-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 32px; align-items: stretch; }
.book-form {
  background: var(--ink); border: 3px solid var(--ochre); border-radius: 22px; padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
}
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.field-grow { flex: 1 1 auto; }
.field input, .field textarea {
  font: inherit; font-weight: 500; font-size: 16px; padding: 13px 14px; border-radius: 10px;
  border: 1px solid rgba(248, 236, 193, .35); background: var(--panel); color: var(--cream); width: 100%;
}
.field textarea { resize: vertical; flex: 1 1 auto; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ochre); box-shadow: 0 0 0 3px rgba(227, 178, 60, .35); }
.field input[aria-invalid="true"] { border-color: #ff8a65; }
.checkbox { display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 700; cursor: pointer; }
.checkbox input { width: 20px; height: 20px; accent-color: var(--ochre); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-weight: 700; min-height: 0; }
.form-status:empty { display: none; }
.form-status.is-ok { color: #b7f0c0; }
.form-status.is-err { color: #ffb4a2; }
.book-form.is-sent .field-grid, .book-form.is-sent .field, .book-form.is-sent .checkbox, .book-form.is-sent button { display: none; }
.book-form.is-sent .form-status { font-size: 20px; }

.contacts-col { display: flex; flex-direction: column; gap: 20px; }
.map {
  flex: 1 1 auto; min-height: 300px; border: 3px solid var(--cream); border-radius: 22px; background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 24px; text-align: center; color: var(--ochre); overflow: hidden; position: relative;
}
.map .muted { color: var(--muted); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.contacts-card { background: var(--ink); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.contact { display: flex; flex-direction: column; gap: 3px; font-size: 17px; }
.contact a { text-decoration: none; }
.label { font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--ochre); text-transform: uppercase; }
@media (max-width: 760px) { .book-form, .contacts-card { padding: 24px 18px; } }

/* ── Подвал ── */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 32px; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer-row a { color: var(--muted); }

/* ── Cookies ── */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 720px; margin: 0 auto;
  background: var(--panel); border: 2px solid var(--ochre); border-radius: 16px; padding: 18px 20px;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap; box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
.cookie[hidden] { display: none; }
.cookie p { flex: 1 1 320px; font-size: 14px; }
.cookie-actions { display: flex; gap: 10px; }

/* ── Текстовые страницы (политика, 404) ── */
.page { padding: 64px 0 88px; }
.prose { max-width: 760px; }
.prose h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4vw, 42px); line-height: 1.1; margin-bottom: 24px; }
.prose h2 { font-size: 21px; font-weight: 800; margin: 32px 0 10px; color: var(--ochre); }
.prose p, .prose li { color: var(--muted-strong); font-size: 16px; line-height: 1.7; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; margin: 8px 0; }
