/* Вкруг55 — студия защиты автомобиля */
:root {
  --bg: #0d0e10;
  --surface: #15171b;
  --surface-2: #1c1f24;
  --line: #2a2e35;
  --text: #eceef1;
  --muted: #9aa1ab;
  --accent: #d2ab6c;
  --accent-ink: #1a1408;
  --radius: 14px;
  --wrap: 1180px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 5.4vw, 64px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section--alt { background: var(--surface); }
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  color: var(--accent); font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}
.lead { font-size: 19px; color: var(--muted); max-width: 680px; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 700 16px/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #e0bd83; }
.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); }
.btn svg { width: 20px; height: 20px; }

/* Шапка */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 14, 16, .86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: .02em; }
.logo img { height: 54px; width: auto; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.header__phone { text-decoration: none; font-weight: 700; white-space: nowrap; }
.burger { display: none; margin-left: auto; background: none; border: 0; color: var(--text); padding: 8px; cursor: pointer; }
.burger svg { width: 28px; height: 28px; }

/* Первый экран */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,14,16,.35) 0%, rgba(13,14,16,.55) 45%, var(--bg) 100%),
              linear-gradient(90deg, rgba(13,14,16,.85) 0%, rgba(13,14,16,0) 70%);
}
.hero__in { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 72px; }
.hero h1 { max-width: 820px; }
.hero .lead { color: #c9cdd3; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero__facts b { display: block; font-size: 28px; font-weight: 800; color: var(--text); }
.hero__facts span { color: var(--muted); font-size: 14px; }
.hero--page { min-height: 520px; }

/* Сетки и карточки */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.section--alt .card { background: var(--bg); }
.card p:last-child { margin-bottom: 0; }
.icon { width: 44px; height: 44px; margin-bottom: 18px; color: var(--accent); }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 44px; }
.head > div { max-width: 720px; }
.head p { margin: 0; }

/* Пакеты */
.pack { display: flex; flex-direction: column; position: relative; }
.pack--hit { border-color: var(--accent); }
.pack__badge {
  position: absolute; top: -12px; left: 28px; padding: 4px 12px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.pack__time { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.pack__price { font-size: 34px; font-weight: 800; margin: 6px 0 4px; }
.pack__price small { font-size: 16px; font-weight: 600; color: var(--muted); }
.pack ul { list-style: none; padding: 0; margin: 18px 0 26px; flex: 1; }
.pack li { position: relative; padding: 7px 0 7px 26px; border-top: 1px solid var(--line); font-size: 15px; }
.pack li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent); }
.pack .btn { width: 100%; }

/* Прайс-таблица */
.price { width: 100%; border-collapse: collapse; }
.price th, .price td { text-align: left; padding: 15px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.price th { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.price td:last-child, .price th:last-child { text-align: right; white-space: nowrap; padding-left: 16px; font-weight: 700; }
.price td small { display: block; color: var(--muted); font-size: 14px; font-weight: 400; }
.note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* Шаги */
.steps { counter-reset: s; }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  position: absolute; top: 0; left: 0; font-size: 34px; font-weight: 800; color: var(--accent);
}

/* Фото */
.photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--surface-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split--rev > :first-child { order: 2; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.checks li { position: relative; padding: 8px 0 8px 32px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1408' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Галерея */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery a { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 3 / 4; display: block; background: var(--surface-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.8)); font-size: 14px; font-weight: 600;
}

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 90vh; max-width: 100%; border-radius: 10px; }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 24px; cursor: pointer; }

/* До / после */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-radius: var(--radius); overflow: hidden; }
.pair figure { position: relative; margin: 0; aspect-ratio: 3 / 4; background: var(--surface-2); }
.pair img { width: 100%; height: 100%; object-fit: cover; }
.ba__tag { position: absolute; top: 10px; padding: 4px 10px; border-radius: 6px; background: rgba(0,0,0,.65); font-size: 13px; font-weight: 700; }
.ba__tag--l { left: 10px; }

/* Калькулятор */
.calc { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.calc fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.calc legend { font-weight: 700; margin-bottom: 12px; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span {
  display: inline-block; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line);
  cursor: pointer; font-size: 15px; font-weight: 600; transition: border-color .2s, background .2s;
}
.opt input:checked + span { border-color: var(--accent); background: rgba(210,171,108,.12); color: var(--text); }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.calc__total { position: sticky; top: 96px; align-self: start; }
.calc__sum { font-size: 44px; font-weight: 800; margin: 4px 0 6px; }

/* Отзывы-факты / гарантии */
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 26px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 14px 0 0; color: var(--muted); max-width: 820px; }

/* CTA и контакты */
.cta { border: 1px solid var(--line); border-radius: 22px; padding: 56px; background: radial-gradient(120% 140% at 100% 0%, rgba(210,171,108,.16), transparent 55%), var(--surface); }
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contacts dl { margin: 0; display: grid; gap: 18px; }
.contacts dt { color: var(--muted); font-size: 14px; }
.contacts dd { margin: 2px 0 0; font-weight: 700; font-size: 18px; }
.contacts dd a { text-decoration: none; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 340px; background: var(--surface-2); }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

.footer { border-top: 1px solid var(--line); padding: 36px 0 110px; color: var(--muted); font-size: 14px; }
.footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }

/* Плавающие кнопки на телефоне */
.fab { display: none; }

/* Ссылки на услуги */
.svc { display: flex; flex-direction: column; text-decoration: none; overflow: hidden; padding: 0; transition: border-color .2s; }
.svc:hover { border-color: var(--accent); }
.svc img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.svc div { padding: 22px 24px 26px; }
.svc b { color: var(--accent); }

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .nav { gap: 18px; }
  .header__phone { display: none; }
}
@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .grid--3, .grid--2, .split, .calc, .contacts { grid-template-columns: 1fr; }
  .split { gap: 32px; }
  .split--rev > :first-child { order: 0; }
  .calc__total { position: static; }
  .cta { padding: 32px 22px; }
  .burger { display: block; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 18px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; font-size: 17px; }
  .fab {
    display: flex; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  }
  .fab .btn { flex: 1; min-height: 50px; padding: 0 12px; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
  .fab .btn--ghost { background: var(--surface); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .grid--4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hero__in { padding-bottom: 48px; }
  .hero__actions .btn { width: 100%; }
  .card { padding: 22px; }
  .price td:last-child { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Оттенки атермальной плёнки */
.gallery--shades { grid-template-columns: repeat(3, 1fr); }
.gallery--shades a { aspect-ratio: 4 / 3; }
@media (max-width: 560px) { .gallery--shades { grid-template-columns: 1fr; } }

/* Видео до/после */
.pair--video { max-width: 620px; margin: 0 auto; }
.pair--video figure { aspect-ratio: 9 / 16; }
.pair--video video { display: block; width: 100%; height: 100%; object-fit: cover; }
