/* ============================================================
   Чистый Вывоз - лендинг вывоза мусора
   Палитра: тёмный графит + янтарный акцент
   ============================================================ */

:root {
  --ink: #141414;
  --ink-2: #2b2b2b;
  --muted: #5f6360;
  --line: #e6e7e4;
  --bg: #ffffff;
  --bg-alt: #f6f6f3;
  --accent: #f5a524;      /* янтарный */
  --accent-dark: #d98a09;
  --accent-ink: #141414;
  --ok: #1f9d55;
  --check: #14ab7b;       /* галочка в преимуществах */
  --err: #d64545;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(20,20,20,.08);
  --shadow-lg: 0 24px 60px rgba(20,20,20,.14);
  --maxw: 1160px;
  --ff: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-dark); margin: 0 0 .6em;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 700; cursor: pointer;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .12s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px rgba(245,165,36,.35); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { max-width: 1320px; }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 68px; }
.header-inner .header-cta { justify-self: end; }
.brand-group { display: inline-flex; align-items: center; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
/* Соц-иконки в шапке скрыты по просьбе клиента, остались только в подвале (.footer-social) */
.brand-social { display: none; }
.soc {
  width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}
.soc:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,.18); }
.soc svg { width: 20px; height: 20px; display: block; }
.soc-logo { background: none; }
.soc-img { width: 100%; height: 100%; display: block; object-fit: cover; }
.brand-logo { border-radius: 50%; }
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand-name span { color: var(--accent-dark); }

.main-nav { display: flex; justify-content: center; gap: 4px; }
.main-nav a {
  padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .95rem; color: var(--ink-2);
  white-space: nowrap;
}
.main-nav a:hover { background: var(--bg-alt); color: var(--ink); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.phone-link { font-weight: 800; font-size: 1.02rem; white-space: nowrap; }
.phone-link:hover { color: var(--accent-dark); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  border: none; background: transparent; cursor: pointer; padding: 10px; margin-left: auto;
}
.nav-toggle span { height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Phone + CTA внутри навигации показываются только в мобильном меню */
.main-nav .nav-phone, .main-nav .nav-cta { display: none; }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(245,165,36,.14), transparent 60%),
    var(--bg-alt);
  padding: clamp(40px, 6vw, 80px) 0;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.hero-slogan { font-size: clamp(1.1rem, 2.4vw, 1.35rem); font-weight: 800; color: var(--accent-dark); margin: 0 0 .5em; letter-spacing: -.01em; }
.hero-lead { font-size: 1.12rem; color: var(--ink-2); max-width: 42ch; }

/* Тэглайн по центру, с чёрточками по бокам */
.eyebrow-rule {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  width: 100%; letter-spacing: .16em;
}
.eyebrow-rule::before, .eyebrow-rule::after {
  content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; flex: none;
}

/* Преимущества: карточки в две колонки, зелёная галочка */
.badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.badges li {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 16px; font-weight: 600; font-size: .95rem; box-shadow: var(--shadow);
}
.badges li:last-child { grid-column: 1 / -1; }
/* Галочка не текстовая (шрифтовая слишком тонкая и косая), а SVG с толстой обводкой.
   Цвет зашит в data-URI, при смене --check менять и здесь (сейчас #14ab7b). */
.badges li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 12.5l5 5 10-11' fill='none' stroke='%2314ab7b' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hero-form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-lg);
}
.form-title { font-size: 1.4rem; }
.form-sub { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }

/* ===== Forms ===== */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,165,36,.2);
}
.field.invalid input, .field.invalid textarea { border-color: var(--err); }
.err { display: block; color: var(--err); font-size: .82rem; min-height: 1em; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: .78rem; color: var(--muted); margin: 12px 0 0; }
.form-note a { text-decoration: underline; }
/* Результат отправки. Пустой статус места не занимает, заполненный - заметная
   плашка: тонкой строчки под кнопкой человек не замечает и жмёт ещё раз. */
.form-status { margin: 10px 0 0; font-weight: 600; font-size: .92rem; }
.form-status.ok, .form-status.bad {
  display: flex; gap: 8px; align-items: flex-start;
  margin-top: 14px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid currentColor; line-height: 1.4;
}
.form-status.ok::before, .form-status.bad::before { font-size: 1.05em; line-height: 1.3; }
.form-status.ok { color: var(--ok); background: #eaf7ef; }
.form-status.ok::before { content: "\2713"; }
.form-status.bad { color: var(--err); background: #fdeeee; }
.form-status.bad::before { content: "!"; font-weight: 700; }

/* Кастомная загрузка фото */
.file-field { display: block; margin-bottom: 0; cursor: pointer; }
.file-caption { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input.photo-input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); border: 0; opacity: 0;
}
.file-control {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px; border: 1.5px dashed var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.file-field:hover .file-control { border-color: var(--accent); }
.photo-input:focus + .file-control { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,165,36,.2); }
.file-btn {
  flex: none; font-weight: 600; font-size: .88rem; color: #fff;
  background: var(--ink); padding: 9px 16px; border-radius: var(--radius-sm);
  transition: background .15s ease, color .15s ease;
}
.file-field:hover .file-btn { background: var(--accent); color: var(--ink); }
/* Галочка согласия перед кнопкой отправки */
.field-consent { margin-bottom: 16px; }
/* Селекторы с .field-consent: иначе `.field label` (display:block) и `.field input`
   (padding 13/14px) перебивают эти правила - флекс не включался, а чекбокс распухал. */
.field-consent .consent { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.field-consent .consent input {
  appearance: none; -webkit-appearance: none;
  box-sizing: border-box; padding: 0;
  flex: none; width: 22px; height: 22px; margin: 0;
  border: 2px solid var(--line); border-radius: 7px; background: #fff;
  cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.field-consent .consent input:hover { border-color: var(--accent); }
.field-consent .consent input:checked {
  background: var(--accent) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l5 5 9.5-11' fill='none' stroke='%23141414' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
  border-color: var(--accent);
}
.field-consent .consent input:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(245,165,36,.35); }
.consent span { font-size: .86rem; color: var(--muted); line-height: 1.45; }
.consent a { color: var(--accent-dark); text-decoration: underline; }
.field-consent.invalid .consent input, .field.invalid .consent input { border-color: var(--err); }
.section-sub.price-accent { color: var(--accent); font-weight: 700; }

/* ===== Sections ===== */
.section { padding: clamp(48px, 7vw, 90px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.section-sub { color: var(--muted); }

/* ===== Service cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #dcdcd6; }
.card .ic { width: 40px; height: 40px; color: var(--accent-dark); margin-bottom: 14px; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 24px; }
.step { background: none; border: 0; padding: 0 6px; text-align: center; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: transparent; border: 4px solid var(--accent); color: var(--accent-dark);
  font-weight: 800; font-size: 1rem; margin: 0 auto 16px;
}
.step h3 { margin-bottom: .4em; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ===== Prices ===== */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.price-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.price-table th, .price-table td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.price-table thead th { background: var(--ink); color: #fff; font-weight: 700; }
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover { background: var(--bg-alt); }
.price-table td:last-child { font-weight: 800; color: var(--accent-dark); white-space: nowrap; }
.price-note { color: var(--muted); margin: 18px 0; }
#prices .btn { margin-top: 4px; }

/* ===== About ===== */
/* stretch, а не center: иначе на широких экранах фото висит маленьким прямоугольником
   посреди пустого места рядом с текстом */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: stretch; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; text-align: center; gap: 26px; margin-top: 22px; }
.facts li { display: flex; flex-direction: column; }
.facts strong { font-size: 1.7rem; font-weight: 800; color: var(--ink); }
.facts span { color: var(--muted); font-size: .9rem; }
/* у figure свои браузерные поля (16px 40px) - из-за них на мобильном по бокам фото
   оставалось пустое место */
.about-media { margin: 0; }
.about-media img {
  border-radius: var(--radius); box-shadow: var(--shadow);
  width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  /* потолок, чтобы на средних экранах длинный текст не вытягивал фото в портрет
     и не срезал кузов машины по бокам */
  max-height: 560px;
}

/* ===== Works (before/after), карусель ===== */
.carousel { position: relative; }
.works-track {
  display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px;
}
.works-track::-webkit-scrollbar { display: none; }
.works-track .work { flex: 0 0 calc((100% - 28px) / 2); scroll-snap-align: start; }

.car-btn {
  position: absolute; top: 34%; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); transition: background .15s ease, color .15s ease, opacity .15s ease;
}
.car-btn svg { width: 22px; height: 22px; }
.car-btn:hover { background: var(--accent); color: var(--accent-ink); }
.car-btn[disabled] { opacity: .35; cursor: default; }
.car-btn[disabled]:hover { background: #fff; color: var(--ink); }
.car-prev { left: -10px; }
.car-next { right: -10px; }

.car-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.car-dots button {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
  background: var(--line); cursor: pointer; transition: background .15s ease, width .15s ease;
}
.car-dots button.is-active { background: var(--accent); width: 24px; border-radius: 999px; }

/* До и после стоят вплотную, как одно фото, скругление только по краям пары */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-sm); overflow: hidden; }
.ba figure { position: relative; margin: 0; background: var(--bg-alt); }
.ba img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ba figcaption {
  position: absolute; top: 10px; left: 10px;
  background: var(--ink); color: #fff; font-size: .78rem; font-weight: 700;
  padding: 4px 10px; border-radius: 6px;
}
.work-cap { margin: 14px 0 0; font-weight: 600; }

/* ===== Reviews ===== */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.stars { color: var(--accent); letter-spacing: 2px; font-size: 1.05rem; margin-bottom: 10px; }
.review p { font-size: .96rem; color: var(--ink-2); }
.review footer { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: .86rem; }
.rev-name { font-weight: 700; }
.rev-date { color: var(--muted); }
#reviews .btn { display: inline-flex; }

/* ===== FAQ ===== */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 18px 22px; font-weight: 700; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; font-size: 1.6rem; line-height: 1; font-weight: 400;
  color: var(--accent-dark); display: inline-block; transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent-dark); }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: var(--radius); }
.faq-a { padding: 0 22px 18px; }
.faq-a p { margin: 0; color: var(--ink-2); }

/* ===== Правовые страницы (privacy.html) ===== */
/* Шапка правовой страницы: меню и бургера нет, поэтому телефон и кнопка
   не должны прятаться на узких экранах, как в шапке главной. */
.header-legal .header-cta { display: flex !important; }
.header-legal .header-cta .phone-link { display: inline-block; }
/* Колонок две, а не три: без блока меню телефон с кнопкой попадали в среднюю
   колонку сетки и висели по центру шапки. */
.header-legal .header-inner { grid-template-columns: 1fr auto; }
.legal { max-width: 820px; margin: 0 auto; }
.legal h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.legal h2 { font-size: clamp(1.15rem, 2vw, 1.35rem); margin: 1.8em 0 .6em; }
.legal p { color: var(--ink-2); }
.legal a:not(.btn) { color: var(--accent-dark); text-decoration: underline; }
.legal-lead { font-size: 1.08rem; }
.legal-list { list-style: disc; padding-left: 22px; margin: 0 0 1em; color: var(--ink-2); }
.legal-list li { margin-bottom: .5em; }
.legal-date { color: var(--muted); font-size: .9rem; margin-top: 2em; }
.legal .btn { margin-top: 8px; }
.legal .btn:hover { color: var(--accent-ink); }

/* ===== Lead section ===== */
.lead-section { background: var(--ink); color: #fff; }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.lead-copy h2 { color: #fff; }
.lead-copy p { color: #c9cbc7; }
.phone-big { display: inline-block; font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; margin-top: 8px; }
.phone-big:hover { color: var(--accent); }
.lead-hours { color: #9a9d98; font-size: .95rem; margin-top: 4px; }
.lead-form-wide {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px;
  background: #fff; padding: 26px; border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.lead-form-wide .field label { color: var(--ink); }
.field-full { grid-column: 1 / -1; }
.lead-form-wide .form-note { color: var(--muted); }

/* ===== Contacts ===== */
.contacts-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: stretch; }
.contact-list li { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: none; }
.c-label { min-width: 130px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.contact-list a { font-weight: 700; }
.contact-list a:hover { color: var(--accent-dark); }
.c-messengers { display: flex; gap: 12px; }
.map-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: var(--bg-alt); border: 2px dashed var(--line); border-radius: var(--radius);
  min-height: 260px; color: var(--muted); text-align: center; padding: 20px;
}
.map-placeholder span { font-weight: 700; color: var(--ink-2); }
.map-placeholder small { font-size: .82rem; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); line-height: 0; }
.map-embed iframe { display: block; width: 100%; height: 360px; border: 0; }

/* ===== Footer ===== */
.site-footer { background: #0e0e0e; color: #c9cbc7; padding: 40px 0; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; align-items: center; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin: 2px 0 0; font-size: .88rem; color: #9a9d98; }
.footer-social { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-nav a:hover { color: #fff; }
.footer-meta { text-align: right; }
.footer-meta .phone-link { color: #fff; display: inline-block; margin-bottom: 6px; }
.footer-meta p { font-size: .82rem; color: #9a9d98; margin: 0; }
.footer-meta a { text-decoration: underline; }

/* ===== Floating call button (mobile) ===== */
.call-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 60; display: none;
  width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
}
.call-fab svg { width: 26px; height: 26px; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .cards, .reviews { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .about-grid, .lead-grid, .contacts-grid { grid-template-columns: 1fr; }
  .car-prev { left: 4px; }
  .car-next { right: 4px; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; gap: 20px; }
  .footer-meta { text-align: left; }
}

/* Nav collapses to hamburger before the horizontal menu would overflow.
   На узких экранах в шапке остаются только логотип и бургер, а телефон
   и кнопка переезжают в выпадающее меню, чтобы ничего не наезжало. */
@media (max-width: 1100px) {
  .header-inner { display: flex; align-items: center; gap: 12px; }
  .site-header .container { max-width: var(--maxw); }
  .brand-group { margin-right: auto; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .call-fab { display: flex; }

  .main-nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 16px 18px;
    transform: translateY(-140%); transition: transform .25s ease; box-shadow: var(--shadow);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 12px 8px; border-radius: 8px; font-size: 1rem; }

  .main-nav .nav-phone {
    display: block; text-align: center; font-weight: 800; font-size: 1.15rem;
    margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line);
  }
  .main-nav .nav-cta {
    display: inline-flex; justify-content: center; margin-top: 12px; padding: 14px 24px;
  }
}

@media (max-width: 760px) {
  .header-cta .phone-link { display: none; }
  /* На правовых страницах телефон тоже убираем: он с кнопкой "На главную"
     не влезал в строку и наезжал на логотип. Звонок остаётся в кнопке .call-fab. */
  .header-legal .header-cta .phone-link { display: none; }
  .cards, .reviews { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .lead-form-wide { grid-template-columns: 1fr; }
  .badges li { font-size: .88rem; padding: 11px 13px; }

  /* Карусель: одна подборка на экран, следующая выглядывает справа */
  .works-track { gap: 16px; }
  .works-track .work { flex: 0 0 88%; }
  .car-btn { top: 30%; width: 38px; height: 38px; }

  /* Таблица цен превращается в карточки, без горизонтальной прокрутки */
  .table-wrap { overflow: visible; border: none; background: transparent; }
  .price-table { min-width: 0; }
  .price-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
  .price-table, .price-table tbody, .price-table tr, .price-table td { display: block; width: 100%; }
  .price-table tr { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
  .price-table tr:hover { background: #fff; }
  .price-table td { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: right; white-space: normal; }
  .price-table td:last-child { border-bottom: none; }
  .price-table td::before { content: attr(data-label); font-weight: 600; color: var(--muted); text-align: left; }
}

@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .header-cta .btn { padding: 9px 14px; }
}

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