:root {
  --bg: #faf7f2;
  --bg-2: #f2ebe0;
  --card: #ffffff;
  --ink: #1a140c;
  --muted: #6b5f52;
  --line: #e8ddd0;
  --dark: #14100c;
  --dark-2: #1c1610;
  --dark-3: #2a2118;
  --navy: #9a3412;
  --green: #9a3412;        /* основной цвет кнопок (класс исторический) */
  --green-deep: #7c2d12;
  --accent: #f5a524;
  --accent-deep: #e08910;
  --accent-ink: #1a1200;
  --sand: #fff4df;
  --gold: #c47a0a;
  --danger: #b43b3b;
  --white: #ffffff;
  --shadow: 0 14px 40px rgba(26, 20, 12, .08);
  --shadow-lg: 0 30px 80px rgba(20, 12, 4, .35);
  --radius: 18px;
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --display: "Montserrat", "Manrope", system-ui, sans-serif;
  --header: 76px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.is-admin, body.is-login { background: #f3ebe0; }
img { max-width: 100%; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
h1 { font-size: clamp(32px, 4.6vw, 58px); margin: 0 0 18px; }
h2 { font-size: clamp(26px, 3vw, 40px); margin: 0 0 12px; }
h3 { font-size: 20px; margin: 0 0 8px; }
p { margin: 0 0 12px; }
button, input, select, textarea { font: inherit; color: inherit; }
button:disabled { opacity: .45; cursor: not-allowed; }
.sprite { position: absolute; width: 0; height: 0; }
.skip { position: absolute; left: 12px; top: -40px; background: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { top: 12px; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(780px, 100%); margin: 0 auto; }
.wrap.narrow { width: min(780px, calc(100% - 32px)); }
.eyebrow { margin: 0 0 10px; color: var(--accent-deep); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }
.eyebrow--lg { font-size: 16px; font-weight: 900; letter-spacing: .12em; }
.eyebrow--light { color: var(--accent); }
.lead { font-size: 18px; color: var(--muted); max-width: 62ch; }
.lead--light { color: rgba(255,255,255,.78); }
.fine { color: var(--muted); font-size: 14px; }

/* ---------- шапка ---------- */
.topbar { background: var(--dark); color: rgba(255,255,255,.7); font-size: 13px; }
.topbar__in, .header__in, .row-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar__in { min-height: 34px; }
.topbar a { color: inherit; text-decoration: none; }
.header { position: sticky; top: 0; z-index: 40; background: rgba(20, 16, 12, .92); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.08); color: #fff; }
.header__in { min-height: var(--header); gap: 16px; justify-content: flex-start; }
.header .wrap { width: min(1240px, calc(100% - 32px)); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; flex: none; }
.logo__img { display: block; height: 48px; width: auto; transition: transform .2s; }
.logo:hover .logo__img { transform: translateY(-1px); }
.logo--footer .logo__img { height: 64px; }
.logo__mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 800; flex: none; }
.logo__mark svg { width: 24px; height: 24px; }
.logo__text { display: grid; line-height: 1; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.logo__text b { font-weight: 800; color: var(--accent); }
.logo__text small { font-family: var(--font); font-weight: 600; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 4px; }
.nav { display: flex; align-items: center; flex-wrap: nowrap; gap: 18px; margin-left: auto; }
.nav a { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; line-height: 1.2; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.header__contact { display: inline-flex; align-items: center; gap: 6px; flex: none; margin-left: auto; }
.header__phone {
  box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 40px; height: 40px; padding: 0; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22); color: #fff; text-decoration: none;
  font-weight: 800; white-space: nowrap; flex: none; line-height: 1;
}
.header__phone svg { width: 18px; height: 18px; color: var(--accent); flex: none; display: block; }
@media (min-width: 1201px) {
  .header__phone {
    width: auto; min-width: 0; padding: 0 4px; border: 0; border-radius: 0;
  }
}
.header__msg {
  box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; min-width: 40px; padding: 0 12px;
  border-radius: 999px; border: 1px solid transparent; color: #fff; text-decoration: none;
  font-weight: 700; font-size: 13px; white-space: nowrap; line-height: 1;
}
.msg-ico {
  width: 18px; height: 18px; flex: none; display: block;
  overflow: visible; fill: currentColor;
}
.header__msg--tg { background: #229ED9; }
.header__msg--wa { background: #25D366; }
.header__msg--vb { background: #7360F2; }
.header__msg:hover { filter: brightness(1.08); }
.header__cta { white-space: nowrap; flex: none; min-height: 44px; padding: 0 18px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; background: transparent; padding: 10px; flex-direction: column; justify-content: space-between; cursor: pointer; flex: none; }
.burger span { display: block; height: 2px; background: #fff; border-radius: 2px; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; text-decoration: none; font-weight: 800; cursor: pointer; transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); transition-duration: .06s; }
.btn--green { background: var(--navy); color: #fff; }
.btn--green:hover { background: var(--green-deep); box-shadow: 0 12px 28px rgba(154, 52, 18, .28); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-deep); box-shadow: 0 12px 28px rgba(245, 165, 36, .35); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--muted); }
.btn--outline { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn--outline:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn--danger { background: transparent; color: var(--danger); border-color: #e3c1c1; }
.btn--danger:hover { transform: none; }
.text-link { font-weight: 800; color: var(--navy); text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 2px; transition: background-size .25s ease, color .15s ease; }
.text-link:hover { color: var(--accent-deep); background-size: 100% 2px; }

/* ---------- первый экран ---------- */
.hero { position: relative; color: #fff; background: var(--dark); overflow: hidden; padding: 56px 0 88px; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 85% 50%; z-index: -2; filter: saturate(.85); transform-origin: 70% 50%; animation: kenburns 26s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero__copy { will-change: transform, opacity; }
/* заголовок первого экрана: появление по словам (разбивается в site.js) */
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .w > span { display: inline-block; animation: word-rise .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes word-rise { from { transform: translateY(110%); opacity: 0; } to { transform: none; opacity: 1; } }
.hero .lead, .hero__points, .hero__actions, .hero__msg { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero__msg {
  animation-delay: .28s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px; margin: 0 0 18px;
}
.btn--msg {
  box-sizing: border-box;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; width: 100%; min-height: 64px; padding: 10px 8px; border: 0; color: #fff;
  font-weight: 800; font-size: 12px; line-height: 1.15; text-align: center; transform: none;
}
.btn--msg:hover { transform: none; filter: brightness(1.08); color: #fff; }
.btn--msg .msg-ico { width: 22px; height: 22px; }
.btn--msg-tg { background: #229ED9; }
.btn--msg-wa { background: #25D366; }
.btn--msg-vb { background: #7360F2; }
@media (min-width: 720px) {
  .hero__msg { display: flex; flex-wrap: wrap; gap: 10px; }
  .btn--msg {
    flex-direction: row; width: auto; min-height: 48px; padding: 0 18px; font-size: 15px; gap: 10px;
  }
  .btn--msg .msg-ico { width: 20px; height: 20px; }
}
.hero .lead { animation-delay: .35s; }
.hero__points { animation-delay: .5s; }
.hero__actions { animation-delay: .65s; }
.hero__shade { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(20,16,12,.96) 0%, rgba(20,16,12,.82) 42%, rgba(20,16,12,.2) 100%),
    linear-gradient(180deg, rgba(20,16,12,.1), rgba(20,16,12,.7)); }
.hero__grid { display: grid; gap: 32px; align-items: center; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.8); }
.hero__points { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.hero__points li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.hero__points svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 2px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.hero__form .form { background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); border: 0; }
.hero__form .form h2 { font-size: 24px; }
.hero__form .form textarea { min-height: 72px; }
.statbar { background: var(--accent); color: var(--accent-ink); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 0; padding: 0; }
.stats div { padding: 18px 16px; border-left: 1px solid rgba(0,0,0,.12); }
.stats div:first-child { border-left: 0; }
.stats dt { font-family: var(--display); font-size: 28px; font-weight: 800; line-height: 1; }
.stats dd { margin: 6px 0 0; font-size: 14px; font-weight: 600; opacity: .85; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; color: inherit; text-decoration: none; display: block; }
.stat b { font-family: var(--display); font-size: 18px; display: block; }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- секции ---------- */
.section, .page { padding: 64px 0; }
.section--sand { background: var(--bg-2); }
.section--dark { background: var(--dark-2); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .num { color: var(--accent); }
.section--cta { background: linear-gradient(135deg, var(--navy), var(--dark-2)); color: #fff; }
.section--cta h2 { color: #fff; }
.section--cta .form { background: #fff; color: var(--ink); border: 0; box-shadow: var(--shadow-lg); }
.section__head { max-width: 760px; margin-bottom: 28px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.section__head--row .text-link { white-space: nowrap; }
.grid-3, .grid-2, .cards, .pick-grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: 1fr; }
.cards {
  grid-template-columns: 1fr;
  justify-content: center;
  justify-items: stretch;
  gap: 20px;
  width: 100%;
}
.pick-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) {
  .pick-grid .pick--brand { grid-template-columns: 1fr; justify-items: start; }
  .pick__logo, .pick--brand i { width: 44px; height: 44px; grid-row: auto; }
  .pick-grid .pick { padding: 10px; }
}
.split, .service-layout, .wizard { display: grid; gap: 32px; }
.contact-line { font-size: 24px; font-weight: 800; }
.contact-line a { color: var(--accent); text-decoration: none; }
.contact-line span { font-size: 15px; font-weight: 500; color: rgba(255,255,255,.7); }

/* ---------- карточки ---------- */
.verdict, .side-card, .dossier, .form, .card, .plain, .quote, .report, .login-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.verdict, .side-card, .dossier { padding: 22px; }
.verdict ul, .ticks { list-style: none; padding: 0; margin: 0 0 16px; }
.verdict li, .ticks li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ticks li { display: list-item; list-style: disc; margin-left: 18px; border: 0; padding: 4px 0; }
.verdict__out { margin: 14px 0 0; font-weight: 700; }
.plain, .card, .quote { padding: 22px; }
.plain h3 a { color: inherit; text-decoration: none; }
.plain h3 a:hover { color: var(--accent-deep); }
.plain p { color: var(--muted); font-size: 15px; }
.cards { align-items: stretch; }
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  gap: 10px;
  padding: 28px 26px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 22px 50px rgba(15, 23, 32, .12); }
.card__top { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--sand); color: var(--accent-deep); flex: none; }
.icon svg { width: 26px; height: 26px; }
.price { margin: 0; font-weight: 800; font-family: var(--display); font-size: 20px; white-space: nowrap; }
.card .price { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.price--lg { font-size: 34px; }
.card h3 { margin: 0; width: 100%; }
.card h3 a { color: inherit; text-decoration: none; }
.card p { color: var(--muted); font-size: 15px; margin: 0; width: 100%; }
.card__features {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: grid;
  gap: 8px;
  width: 100%;
  text-align: left;
}
.card__features li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink);
}
.card__features svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--accent);
  margin-top: 1px;
}
.card__actions {
  margin-top: auto;
  display: grid;
  gap: 10px;
  justify-items: center;
  width: 100%;
  padding-top: 12px;
}
.card__actions .btn { width: 100%; max-width: 240px; justify-content: center; }
.card--feature { background: var(--navy); color: #fff; border-color: transparent; }
.card--feature .icon { background: rgba(255,255,255,.12); color: var(--accent); }
.card--feature a, .card--feature .price { color: #fff; }
.card--feature .price { color: var(--accent); }
.card--feature p { color: rgba(255,255,255,.75); }
.card--feature .card__features li { color: rgba(255,255,255,.85); }
.card--feature .card__features svg { color: var(--accent); }
.card--feature .text-link { color: var(--accent); }
.card--feature .btn--accent { color: var(--accent-ink); }
.num { color: var(--accent-deep); font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .1em; }
.steps { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 14px; counter-reset: step; }
.steps li { padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); position: relative; }
.steps span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-weight: 800; margin-bottom: 12px; }
.steps p { color: var(--muted); font-size: 15px; margin: 0; }
.chips, .chip-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips a, .chip, .pick { border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 12px; }
.chips a { text-decoration: none; padding: 9px 14px; font-weight: 600; font-size: 15px; }
.chips a:hover { border-color: var(--accent); }
.quote { margin: 0; }
.quote footer { color: var(--muted); font-size: 14px; }
.quote__photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.quote__photos a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.quote__photos img { display: block; width: 96px; height: 72px; object-fit: cover; }
.admin-review-photos { margin: 8px 0 4px; }
.admin-photo {
  display: grid; gap: 6px; justify-items: start; font-size: 13px; font-weight: 600; color: var(--muted);
}
.admin-photo input { width: auto; min-height: 0; accent-color: var(--accent-deep); }
.faq { border-bottom: 1px solid var(--line); padding: 8px 0; }
.faq summary { cursor: pointer; font-weight: 700; padding: 10px 0; list-style: none; position: relative; padding-right: 40px; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 4px; font-size: 24px; line-height: 1; color: var(--accent-deep); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq .prose { padding-bottom: 8px; color: var(--muted); }

/* ---------- осмотр с метками ---------- */
.inspect { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 5/4; background: var(--dark-3); box-shadow: var(--shadow-lg); }
.inspect img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tag { position: absolute; display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.95); color: var(--ink); font-size: 12px; line-height: 1.2; box-shadow: 0 10px 30px rgba(0,0,0,.3); margin: 0; }
.tag b { font-family: var(--display); font-size: 13px; }
.tag span { color: var(--muted); }
.tag::before { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(245,165,36,.3); }
.tag--a { left: 6%; top: 12%; } .tag--a::before { right: -22px; top: 14px; }
.tag--b { right: 5%; top: 32%; } .tag--b::before { left: -22px; top: 14px; }
.tag--c { left: 8%; bottom: 14%; } .tag--c::before { right: -22px; top: 14px; }
.tag--d { right: 7%; bottom: 8%; } .tag--d::before { left: -22px; top: 14px; }
.checks { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 24px 0 28px; }
.check-item { padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.check-item h3 { font-size: 17px; margin: 6px 0 4px; }
.check-item p { margin: 0; font-size: 14px; color: rgba(255,255,255,.68); }

/* ---------- модели и марки ---------- */
.models { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 22px; }
.model { display: grid; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.model:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.model__img { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-2); }
.model__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.model:hover .model__img img { transform: scale(1.04); }
.model__body { display: grid; gap: 2px; padding: 12px 14px 14px; }
.model__body b { font-family: var(--display); font-size: 15px; }
.model__body span { color: var(--muted); font-size: 13px; }
.brands { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.brands a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 700; font-size: 14px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.brands a:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
/* бегущая строка марок: две одинаковые копии, сдвиг на 50% даёт бесшовный цикл */
.marquee { overflow: hidden; margin: 0 0 12px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; width: max-content; padding: 4px 0 8px; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__list { flex: none; flex-wrap: nowrap; padding-right: 8px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.brands i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--mark, var(--navy)); color: #fff; font-style: normal; font-weight: 800; font-size: 13px; }
.brands img { width: 28px; height: 28px; object-fit: contain; }
.brands--more a { color: var(--accent-deep); border-style: dashed; }

/* ---------- география ---------- */
.regions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.region { display: grid; gap: 4px; padding: 18px; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 16px; border-top: 4px solid var(--accent); }
.region:hover { box-shadow: var(--shadow); }
.region b { font-family: var(--display); font-size: 20px; }
.region span { color: var(--muted); font-size: 14px; }

/* ---------- формы ---------- */
.form { padding: 24px; display: grid; gap: 12px; }
.form h2 { font-size: 26px; }
.form__lead { color: var(--muted); font-size: 15px; }
.form__grid { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); background: #faf6f0; border-radius: 12px; padding: 12px 14px; min-height: 50px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; background: #fff; }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 13px; color: var(--muted); }
.check input { width: auto; min-height: 0; margin-top: 3px; accent-color: var(--accent-deep); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form .btn { width: 100%; }
.photo-field { display: grid; gap: 8px; }
.photo-field__title { font-weight: 700; }
.photo-field input[type="file"] {
  min-height: 0; padding: 12px; border: 1px dashed var(--line); border-radius: 12px;
  background: var(--bg-2, #f7f3ec); cursor: pointer;
}
.photo-field__preview { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-field__preview img {
  width: 72px; height: 72px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--line); background: #fff;
}
.photo-field.is-invalid input[type="file"] { border-color: var(--danger, #b42318); }
.lead-photos { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 24px; }
.lead-photos a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.lead-photos img { display: block; width: 160px; height: 120px; object-fit: cover; }

/* ---------- подвал ---------- */
.footer { background: var(--dark); color: rgba(255,255,255,.75); padding: 48px 0 24px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer h2 { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.footer__grid { display: grid; gap: 28px; }
.footer .logo { margin-bottom: 12px; }
.footer ul.footer__cities { columns: 2; column-gap: 16px; display: block; }
.footer ul.footer__cities li { break-inside: avoid; margin-bottom: 8px; }
.wizard, .page .wrap { scroll-margin-top: 90px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; padding: 10px; background: rgba(20,16,12,.96); border-top: 1px solid rgba(255,255,255,.1); }
.dock .btn { min-height: 46px; font-size: 14px; padding: 0 10px; }
body:not(.is-admin):not(.is-login) { padding-bottom: 70px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.prose h2, .prose h3 { margin-top: 1.3em; }
.prose ul { padding-left: 18px; }
.banner, .flash { margin: 0; padding: 12px 16px; }
.banner { background: var(--sand); color: #5a3d05; font-size: 14px; }
.flash--ok { background: #e3f5ea; }
.flash--err { background: #f8e4e4; }

/* ---------- визард подбора ---------- */
.wizard__count { font-weight: 800; }
.wizard__progress { display: flex; gap: 8px; padding: 0; margin: 0 0 16px; list-style: none; overflow: auto; }
.wizard__progress li { font-size: 13px; color: var(--muted); white-space: nowrap; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); }
.wizard__progress .is-on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); font-weight: 800; }
.wizard__progress .is-done { color: var(--navy); border-color: var(--navy); cursor: pointer; }
.wizard__progress .is-done:hover { background: var(--sand); }
.wizard__progress button { all: unset; cursor: pointer; display: block; }
.wizard__nav {
  display: flex; justify-content: space-between; gap: 10px; margin-top: 16px;
  position: sticky; bottom: 12px; z-index: 5;
  padding: 10px; background: rgba(255,252,247,.94); border: 1px solid var(--line);
  border-radius: 14px; backdrop-filter: blur(10px);
}
@media (max-width: 859px) {
  .wizard__nav { bottom: 78px; }
}
.wizard:not([data-step="4"]) .wizard__contact { display: none; }
.wizard[data-step="4"] #wizard-next { display: none; }
.brief-fallback { margin-top: 28px; }
.js .brief-fallback { display: none; }
.wizard__toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 12px; }
.wizard__toolbar .finder { flex: 1 1 180px; margin: 0; min-width: 0; }
.wizard__sort { display: inline-flex; gap: 4px; flex: none; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.wizard__sort button {
  border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 700;
  font-size: 13px; padding: 8px 12px; border-radius: 10px; cursor: pointer;
}
.wizard__sort button.is-on { background: var(--accent); color: var(--accent-ink); }
.wizard__jump {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px;
  border: 0; background: transparent; color: var(--navy); font: inherit; font-weight: 800;
  font-size: 14px; padding: 0; cursor: pointer; text-decoration: none;
}
.wizard__jump:hover { color: var(--accent-deep); }
.finder { margin-bottom: 12px; }
.pick { text-align: left; padding: 14px; cursor: pointer; display: grid; gap: 4px; transition: border-color .15s, transform .15s; }
.pick[hidden],
.pick-grid .pick.is-filtered-out { display: none !important; }
.pick:hover { border-color: var(--accent); transform: translateY(-2px); }
.pick b { font-size: 16px; }
.pick span { color: var(--muted); font-size: 14px; }
.pick.is-on, .chip.is-on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--sand); }
.pick--brand { grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.pick--brand i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--mark); color: white; font-style: normal; font-weight: 800; grid-row: span 2; }
.pick__logo { width: 60px; height: 60px; object-fit: contain; grid-row: span 2; background: #fff; border-radius: 12px; padding: 5px; border: 1px solid var(--line); }
.credit { margin: -4px 0 8px; font-size: 12px; }
.credit a { color: var(--muted); }
.stage { position: relative; aspect-ratio: 16/10; border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.stage svg, .stage img { width: 100%; height: 100%; display: block; }
.stage img { position: absolute; inset: 0; object-fit: cover; }
.chip { min-height: 40px; padding: 0 12px; cursor: pointer; }
.chip-set { border: 0; margin: 0; padding: 0; }
.chip-set legend { font-weight: 750; font-size: 14px; margin-bottom: 6px; }
.dossier__price { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.dossier__price b { font-family: var(--display); font-size: 22px; }
.kv { display: grid; gap: 8px; margin: 12px 0; }
.kv div { display: grid; grid-template-columns: 120px 1fr; gap: 8px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.report { padding: 20px; margin-bottom: 16px; }
.report header, .report__rows { display: grid; gap: 8px; }
.report__rows { list-style: none; padding: 0; }
.report__rows li { display: grid; gap: 4px; padding: 10px 0; border-top: 1px solid var(--line); }
.pill { display: inline-flex; border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 800; background: var(--sand); }
.pill--new { background: #ffe9c2; }
.pill--work { background: #dbe8f7; }
.pill--wait { background: #e4e0f5; }
.pill--done { background: #d7eee4; }
.pill--lost { background: #f3d6d6; }
.credits { display: grid; gap: 10px; padding-left: 18px; }

/* ---------- админка ---------- */
.admin { display: grid; grid-template-columns: 1fr; }
.admin__side { background: var(--dark); color: #fff; padding: 18px; display: grid; gap: 16px; align-content: start; }
.admin__side a { color: #fff; text-decoration: none; }
.admin__side nav { display: flex; gap: 12px; overflow: auto; }
.admin__side a[aria-current="page"] { font-weight: 800; color: var(--accent); }
.admin__side .btn--ghost { border-color: rgba(255,255,255,.3); color: #fff; }
.admin__main { padding: 18px 16px 40px; }
.table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 16px; overflow: hidden; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table { display: block; overflow-x: auto; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filters input, .filters select { width: auto; min-width: 140px; }
.login-card { width: min(440px, 100%); margin: 10vh auto; padding: 22px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- адаптив ---------- */
@media (min-width: 860px) {
  .burger { display: none; }
  .header__cta { display: inline-flex; }
  .nav { display: flex; }
  .hero { padding: 72px 0 64px; min-height: 620px; display: grid; align-items: center; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; }
  .wizard { grid-template-columns: 1.25fr .85fr; align-items: start; }
  .service-layout, .split { grid-template-columns: 1.05fr .95fr; align-items: center; }
  .section--cta .split { align-items: start; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .grid-3, .pick-grid { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1220px; margin-inline: auto; }
  .section--dark .split { align-items: start; }
  .inspect { position: sticky; top: 100px; }
  .grid-2, .pick-grid--wide, .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1.3fr 1fr .8fr; }
  .form__grid { grid-template-columns: 1fr 1fr; }
  .hero__form .form__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .checks { grid-template-columns: repeat(2, 1fr); }
  .models { grid-template-columns: repeat(4, 1fr); }
  .regions { grid-template-columns: repeat(4, 1fr); }
  .dossier { position: sticky; top: 90px; }
  .dock { display: none; }
  body:not(.is-admin):not(.is-login) { padding-bottom: 0; }
  .admin { grid-template-columns: 230px 1fr; min-height: 100vh; }
  .admin__side { position: sticky; top: 0; height: 100vh; }
  .admin__side nav { display: grid; }
  .admin__main { padding: 28px; }
  .report header { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 860px) and (max-width: 1200px) {
  .header__in { gap: 12px; }
  .nav { gap: 12px; }
  .nav a { font-size: 13px; }
  .header__phone span { display: none; }
  .header__msg span { display: none; }
  .header__msg { width: 40px; height: 40px; padding: 0; }
  .header__cta { min-height: 42px; padding: 0 14px; font-size: 14px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .regions { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1201px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 400px)); justify-content: center; }
}
@media (max-width: 859px) {
  .topbar { display: none; }
  .header__cta { display: none; }
  .header__contact { margin-left: auto; gap: 6px; }
  .header__phone span, .header__msg span { display: none; }
  .header__msg { width: 40px; height: 40px; padding: 0; }
  .burger { display: flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--dark); border-bottom: 1px solid rgba(255,255,255,.1); padding: 12px 16px 18px; gap: 4px; margin: 0; }
  .nav a { padding: 10px 4px; font-size: 17px; }
  body.nav-open .nav { display: grid; }
  .header__in { position: relative; }
  .hero__bg { object-position: 60% 50%; }
  .hero__shade { background: linear-gradient(180deg, rgba(20,16,12,.92) 0%, rgba(20,16,12,.85) 60%, rgba(20,16,12,.95) 100%); }
  .inspect { aspect-ratio: 4/3; }
  .tag { padding: 8px 10px; font-size: 11px; }
  .tag span { display: none; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .section, .page { padding: 44px 0; }
  .section__head { margin-bottom: 20px; }
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }
  .lead { font-size: 16px; }
  .faq summary { font-size: 15px; padding: 8px 36px 8px 0; }
  .faq summary::after { font-size: 22px; top: 3px; }
  .models { grid-template-columns: 1fr 1fr; }
  .model__body b { font-size: 14px; }
  .stats dt { font-size: 22px; }
}
/* ---------- появление при скролле (классы ставит site.js) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
html.js .reveal:not(.is-in) { opacity: 0; }
html.js .reveal.is-in { animation: rise .65s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 70ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .model, .pick, .model__img img, .btn, .brands a, .text-link { transition: none; }
  .btn:hover, .brands a:hover { transform: none; }
  .hero__bg, .hero h1 .w > span, .hero .lead, .hero__msg, .hero__points, .hero__actions, .marquee__track { animation: none; }
  .hero__copy { transform: none !important; opacity: 1 !important; }
  html.js .reveal:not(.is-in) { opacity: 1; }
  html.js .reveal.is-in { animation: none; }
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* ---------- админ: аналитика ---------- */
.analytics-periods { display: flex; flex-wrap: wrap; gap: 8px; }
.analytics-periods a {
  text-decoration: none; color: var(--ink); border: 1px solid var(--line);
  background: var(--card); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 700;
}
.analytics-periods a[aria-current="page"] { background: var(--dark); color: #fff; border-color: var(--dark); }
.analytics-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0 28px; }
.analytics-block { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 18px; }
.analytics-block h2 { margin: 0 0 14px; font-size: 18px; }
.analytics-grid { display: grid; gap: 16px; margin-bottom: 8px; }
.chart-bars {
  display: flex; align-items: flex-end; gap: 4px; min-height: 180px;
  padding: 8px 0 0; overflow-x: auto;
}
.chart-bars__col {
  flex: 1 0 18px; max-width: 36px; min-width: 14px; height: 160px;
  display: grid; grid-template-rows: 1fr auto auto; align-items: end; justify-items: center;
  position: relative;
}
.chart-bars__fill {
  width: 100%; min-height: 2px; background: var(--accent); border-radius: 6px 6px 2px 2px;
  align-self: end;
}
.chart-bars__val { font-size: 10px; color: var(--muted); line-height: 1.2; margin-top: 4px; }
.chart-bars__label { font-size: 9px; color: var(--muted); transform: rotate(-45deg); transform-origin: top left; white-space: nowrap; height: 18px; }
.meter {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px;
  padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.meter:last-child { border-bottom: 0; }
.meter span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meter b { font-variant-numeric: tabular-nums; }
.meter i {
  grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--accent);
  opacity: .85; max-width: 100%;
}
@media (min-width: 860px) {
  .analytics-stats { grid-template-columns: repeat(4, 1fr); }
  .analytics-grid { grid-template-columns: 1fr 1fr; }
  .chart-bars__col { flex-basis: 22px; }
}
