/* Layout: one-column story on a 1120px measure with full-bleed bands;
   the configurator is a two-column grid with a sticky preview rail on the left. */
:root {
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --bg-3: #e8e8ed;
  --fg: #1d1d1f;
  --fg-2: #6e6e73;
  --fg-3: #86868b;
  --line: #d2d2d7;
  --card: #ffffff;
  --accent: #e8641b;
  --accent-hover: #f27a35;  /* з темним текстом наведення світлішає, а не темнішає */
  --accent-fg: #1d1d1f;  /* темний текст на помаранчевих кнопках: білий давав контраст 2,8–3,4 (норма 4,5) */
  --accent-soft: #fff1e8;
  --ok: #1f8a4c;
  --err: #c0392b;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .05), 0 8px 24px rgba(29, 29, 31, .06);
  --shadow-2: 0 20px 60px rgba(29, 29, 31, .16);
  --font: "Manrope", -apple-system, "SF Pro Display", "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --r-xl: 28px;
  --r-l: 20px;
  --r-m: 14px;
  --r-s: 10px;
  --nav-h: 60px;
  --on-light: block;
  --on-dark: none;
  --glow: 9%;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --bg-2: #131315; --bg-3: #232326; --fg: #f5f5f7; --fg-2: #a1a1a6; --fg-3: #86868b; --line: #38383b;
    --card: #1c1c1e; --accent: #f27a35; --accent-hover: #ff8a45; --accent-fg: #1d1d1f; --accent-soft: #2a190f; --ok: #4cd27a; --err: #ff6b5b;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .4); --shadow-2: 0 20px 60px rgba(0, 0, 0, .6);
    --on-light: none; --on-dark: block; --glow: 16%;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --bg-2: #131315; --bg-3: #232326; --fg: #f5f5f7; --fg-2: #a1a1a6; --fg-3: #86868b; --line: #38383b;
  --card: #1c1c1e; --accent: #f27a35; --accent-hover: #ff8a45; --accent-fg: #1d1d1f; --accent-soft: #2a190f; --ok: #4cd27a; --err: #ff6b5b;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .4); --shadow-2: 0 20px 60px rgba(0, 0, 0, .6);
  --on-light: none; --on-dark: block; --glow: 16%;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; line-height: 1.12; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); letter-spacing: -.03em; }
h3 { font-size: 1.35rem; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.only-light { display: var(--on-light); }
.only-dark { display: var(--on-dark); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

.wrap {
  max-width: 1120px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 900px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}
main > section { padding-block: clamp(56px, 9vw, 112px); }
/* Після конструктора секції йдуть щільніше: там коротший контент, і великі поля читаються як порожнеча */
main > .reviews, main > .how, main > .faq, main > .contacts { padding-block: clamp(40px, 5.5vw, 64px); }
.reviews .section-head, .how .section-head, .faq .section-head, .contacts .section-head { margin-bottom: clamp(22px, 3vw, 32px); }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--fg-2); max-width: 34em; }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--fg-2); font-size: 1.15rem; max-width: 40em; }
.section-head--row { grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
.section-head--row > div:first-child { display: grid; gap: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px;
  padding: 12px 22px; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, transform .15s, box-shadow .2s, color .2s;
}
.btn--primary { background: var(--accent); color: var(--accent-fg); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: var(--bg-2); color: var(--fg); }
.btn--ghost:hover { background: var(--bg-3); }
.btn--dark { background: var(--fg); color: var(--bg); }
.btn--dark:hover { background: var(--fg-2); }
.btn:active { transform: scale(.98); }
.btn--sm { padding: 8px 16px; font-size: .9rem; }
.btn--lg { padding: 16px 28px; font-size: 1.05rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Navigation */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: var(--nav-h); }
.nav__logo { display: block; flex-shrink: 0; }
.nav__logo img { height: 30px; width: auto; }
@media (max-width: 560px) { .nav__logo img { height: 26px; } }
.nav__links { display: flex; gap: 22px; margin-inline: auto; font-size: .92rem; font-weight: 500; }
.nav__links a { text-decoration: none; color: var(--fg-2); transition: color .15s; white-space: nowrap; }
.nav__links a:hover { color: var(--fg); }
.nav__cta { display: flex; align-items: center; gap: 12px; margin-left: auto; }
/* Телефон у шапці лише на телефоні (іконка дзвінка); на комп’ютері — у «Контактах» і підвалі. .nav__phone лишився в шапці custom/ */
.nav__phone { display: none; }
.nav__call { display: none; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-2); color: var(--fg); place-items: center; }
@media (max-width: 1100px) { .nav__links { gap: 14px; font-size: .86rem; } .nav__inner { gap: 16px; } }
/* Меню однакове на всіх сторінках; на комп’ютері частина пунктів ховається за шириною (повний список — у бургер-меню й підвалі) */
.nav__links .nav__more, .nav__links .nav__long { display: none; }
@media (max-width: 1000px) { .nav__links .nav__wide { display: none; } }
/* Бургер-меню на телефоні й планшеті: пункти шапки — панеллю під нею; номер телефону (.nav__tel) додає app.js */
.nav__burger { display: none; }
.nav__tel { display: none; }
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__call { display: grid; }
  .nav__burger { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; margin-right: -8px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--fg); cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .nav__burger span, .nav__burger span::before, .nav__burger span::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, background-color .2s; }
  .nav__burger span { position: relative; }
  .nav__burger span::before, .nav__burger span::after { content: ""; position: absolute; left: 0; }
  .nav__burger span::before { top: -6px; }
  .nav__burger span::after { top: 6px; }
  .nav--open .nav__burger span { background-color: transparent; }
  .nav--open .nav__burger span::before { transform: translateY(6px) rotate(45deg); }
  .nav--open .nav__burger span::after { transform: translateY(-6px) rotate(-45deg); }
  .nav--open .nav__links {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    padding: 4px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px));
    max-height: calc(100dvh - var(--nav-h) - env(safe-area-inset-top, 0px)); overflow-y: auto; overscroll-behavior: contain;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 32px -18px rgba(0, 0, 0, .35);
    font-size: 1.05rem; font-weight: 600;
  }
  .nav--open .nav__links a { display: flex; align-items: center; min-height: 52px; color: var(--fg); border-bottom: 1px solid var(--line); }
  .nav--open .nav__links a:last-child { border-bottom: 0; }
  .nav--open .nav__links .nav__long { display: inline; white-space: pre; }  /* у flex-посиланні — окремий елемент, пробіл перед ним зберігаємо */
  .nav--open .nav__links .nav__tel svg { flex-shrink: 0; margin-right: 10px; }
  .nav--open .nav__links .nav__tel { color: var(--accent); }
}
/* найвужчі телефони: іконка дзвінка не вміщується поруч із бургером — номер є в меню */
@media (max-width: 352px) { .nav__call { display: none; } }
@media (max-width: 900px) and (prefers-reduced-motion: reduce) { .nav__burger span, .nav__burger span::before, .nav__burger span::after { transition: none; } }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(40px, 6vw, 80px) clamp(40px, 6vw, 72px);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
/* Тематичний фон: ромб EVA проявляється лише навколо віяла, щоб текст лишався на чистому тлі */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath d='M15 .5L29.5 15 15 29.5.5 15z' fill='none' stroke='%23808088' stroke-width='1'/%3E%3C/svg%3E"); background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 50% 70% at 74% 46%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 50% 70% at 74% 46%, #000 10%, transparent 70%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero__text { display: grid; gap: 20px; }
.hero__media { display: grid; gap: 22px; min-width: 0; }
.hero__visual { position: relative; }
/* М'яка підсвітка строго за віялом: без видимого краю, слабша у світлій темі */
.hero__glow {
  position: absolute; inset: -30% -20%; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, color-mix(in srgb, var(--accent) var(--glow), transparent) 0%, transparent 60%);
}
.hero__fan { position: relative; z-index: 1; width: 110%; max-width: none; margin-left: -5%; height: auto; filter: drop-shadow(0 34px 44px rgba(0, 0, 0, .22)); animation: hero-float 7s ease-in-out infinite; }
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.callout {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--card) 86%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 10px 30px rgba(29, 29, 31, .12); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  font-size: .85rem; font-weight: 600; color: var(--fg); white-space: nowrap;
}
.callout b { font-weight: 800; color: var(--accent); }
.callout__dots { display: inline-flex; }
.callout__dots i { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 2px var(--card); margin-right: -5px; }
.callout__dots i:last-child { margin-right: 4px; }
.callout--a { top: 4%; left: 0; }
.callout--b { right: 0; top: 30%; }
.callout--c { left: 10%; bottom: 2%; }
.hero__materials { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.hm { display: grid; justify-items: center; gap: 7px; background: none; border: 0; padding: 4px; cursor: pointer; font-size: .78rem; font-weight: 600; color: var(--fg-2); transition: color .15s; }
.hm__thumb { width: 50px; height: 50px; border-radius: 50%; background-size: 320%; background-position: 50% 38%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 6px 16px rgba(0, 0, 0, .14); transition: transform .2s; }
.hm:hover { color: var(--fg); }
.hm:hover .hm__thumb { transform: scale(1.1); }
.trust {
  grid-column: 1 / -1; list-style: none; margin: 12px 0 0; padding: 24px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 24px;
  border-top: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
}
.trust li { display: grid; gap: 2px; }
.trust b { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.trust span { font-size: .88rem; color: var(--fg-2); }
@media (max-width: 900px) {
  .hero::before { -webkit-mask-image: radial-gradient(ellipse 80% 38% at 50% 66%, #000 15%, transparent 72%); mask-image: radial-gradient(ellipse 80% 38% at 50% 66%, #000 15%, transparent 72%); }
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero__media { max-width: 560px; margin-inline: auto; width: 100%; }
  .hero__fan { width: 100%; margin-left: 0; }
}
@media (max-width: 560px) {
  .callout { font-size: .76rem; padding: 7px 11px; gap: 6px; }
  .callout--a { top: 0; }
  .callout--b { top: 26%; }
  .callout--c { bottom: 0; left: 4%; }
  .hero__materials { flex-wrap: nowrap; justify-content: space-between; gap: 4px; }
  .hm { font-size: .72rem; padding: 2px 0; min-width: 0; }
  .hm__thumb { width: 44px; height: 44px; }
}
@media (max-width: 760px) {
  .trust { grid-template-columns: 1fr 1fr; gap: 16px 20px; }
  .trust b { font-size: 1.4rem; }
}

.carpick { display: grid; gap: 12px; background: var(--card); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); border-radius: var(--r-l); padding: 16px; margin-top: 4px; box-shadow: var(--shadow-1); }
.carpick__fields { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; }
.carpick__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.carpick__actions .link { font-size: .9rem; }
.carpick__hint { font-size: .85rem; color: var(--fg-2); }
@media (max-width: 560px) { .carpick__fields { grid-template-columns: 1fr; } .carpick__actions .btn { flex: 1 1 100%; } }

/* Combobox */
.combo { position: relative; display: grid; gap: 6px; min-width: 0; }
.combo label { font-size: .76rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-2); }
.combo input {
  width: 100%; height: 48px; border: 1px solid var(--line); background: var(--card); color: var(--fg); border-radius: var(--r-m);
  padding: 0 40px 0 14px; font: inherit; font-size: 1rem; outline: none; transition: border-color .15s, box-shadow .15s;
}
.combo input::placeholder { color: var(--fg-3); }
.combo input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.combo input:disabled { opacity: .55; }
.combo::after {
  content: ""; position: absolute; right: 17px; bottom: 20px; width: 8px; height: 8px;
  border-right: 2px solid var(--fg-3); border-bottom: 2px solid var(--fg-3); transform: rotate(45deg); pointer-events: none;
}
.combo.is-set::after { width: 6px; height: 11px; bottom: 19px; right: 18px; border-color: var(--ok); }
.combo__list {
  position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0; max-height: 300px; overflow: auto; margin: 0; padding: 6px;
  list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-2);
}
.combo__list li { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: .98rem; display: flex; justify-content: space-between; gap: 12px; }
.combo__list li[aria-selected="true"], .combo__list li:hover { background: var(--bg-2); }
.combo__list li small { color: var(--fg-3); font-size: .8rem; white-space: nowrap; }
.combo__list .combo__empty { color: var(--fg-3); cursor: default; }
.combo__list mark { background: none; color: var(--accent); font-weight: 700; }

/* Materials: light surface with grey cards in the light theme, black with charcoal cards in the dark one */
.materials { background: radial-gradient(50% 45% at 0% 0%, color-mix(in srgb, var(--accent) calc(var(--glow) * .5), transparent) 0%, transparent 70%), var(--bg); }
.mats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mat { background: var(--bg-2); border-radius: var(--r-xl); padding: 24px; display: grid; grid-template-rows: auto auto 1fr auto auto auto auto; gap: 14px; align-content: start; min-width: 0; }
.mat__img { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.mat__img img { height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .28)); transition: transform .45s cubic-bezier(.2, .7, .2, 1), opacity .25s; }
.mat__img img.is-swapping { opacity: 0; }
.mat:hover .mat__img img { transform: translateY(-6px) rotate(-2deg); }
.mat__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mat h3 { font-size: 1.6rem; }
.mat__tag { font-size: .78rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
.mat p { color: var(--fg-2); font-size: .95rem; }
.mat__variants { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1.5px solid var(--line); background: var(--card); color: var(--fg-2); border-radius: 999px; padding: 6px 12px; font-size: .82rem; font-weight: 600; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.chip:hover { border-color: var(--fg-3); color: var(--fg); }
.chip.is-on { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.mat__scale { list-style: none; margin: 0; padding: 12px 0 2px; display: grid; gap: 8px; border-top: 1px solid var(--line); }
.mat__scale li { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .88rem; color: var(--fg-2); }
.dots {
  flex-shrink: 0; width: 60px; height: 12px; position: relative;
  background: radial-gradient(circle at 6px 6px, var(--bg-3) 3.5px, transparent 4px) 0 0 / 12px 12px repeat-x;
}
.dots::after { content: ""; position: absolute; inset: 0; width: calc(var(--n) * 12px); background: radial-gradient(circle at 6px 6px, var(--fg) 3.5px, transparent 4px) 0 0 / 12px 12px repeat-x; }
.mat__specs { display: grid; gap: 6px; font-size: .92rem; color: var(--fg-2); }
.mat__specs div { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 6px; }
.mat__specs b { color: var(--fg); font-weight: 600; text-align: right; display: inline-flex; align-items: center; gap: 8px; }
.cdots { display: inline-flex; }
.cdots i { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 2px var(--bg-2); margin-right: -5px; }
.cdots i:last-child { margin-right: 0; }
.cdots__custom { background: conic-gradient(#e8641b, #f9a825, #2e7d32, #1565c0, #4a073e, #c62828, #e8641b); }
.mat .btn { justify-self: start; margin-top: 4px; }
.mats__common { list-style: none; margin: 20px 0 0; padding: 20px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 24px; border-top: 1px solid var(--line); }
.mats__common li { display: grid; gap: 2px; font-size: .88rem; color: var(--fg-2); }
.mats__common b { color: var(--fg); font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
@media (max-width: 900px) {
  .mats { grid-template-columns: 1fr; }
  .mat { grid-template-rows: auto; }
  .mat__img { aspect-ratio: auto; max-height: 240px; }
  .mats__common { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .mats__common { grid-template-columns: 1fr; } }

/* Configurator */
.config {
  background:
    radial-gradient(45% 40% at 100% 0%, color-mix(in srgb, var(--accent) calc(var(--glow) * .6), transparent) 0%, transparent 70%),
    linear-gradient(165deg, var(--bg-2) 35%, color-mix(in srgb, var(--accent-soft) 55%, var(--bg-2)) 100%);
}
.config__grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 28px; align-items: start; }
.config__preview { position: sticky; top: calc(var(--nav-h) + 20px); }
.preview { background: var(--card); border-radius: var(--r-xl); box-shadow: var(--shadow-1); overflow: hidden; }
.preview__stage { position: relative; aspect-ratio: 1; background: radial-gradient(120% 90% at 50% 15%, var(--bg-2), var(--card) 70%); }
.preview__img {
  position: absolute; inset: 5%; width: 90%; height: 90%; object-fit: contain; opacity: 0; transition: opacity .4s ease;
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .28));
}
.preview__img.is-on { opacity: 1; }
.preview__caption { padding: 16px 22px 14px; display: grid; gap: 3px; }
.preview__caption b { font-size: 1.05rem; }
.preview__caption span { color: var(--fg-2); font-size: .92rem; }
.preview__car { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--fg); margin-top: 4px; }
.preview__car svg { width: 16px; height: 16px; color: var(--ok); flex-shrink: 0; }
.preview__car em { font-style: normal; color: var(--accent); }
.preview__price { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px 20px; border-top: 1px solid var(--line); }
.preview__price small { display: block; font-size: .78rem; color: var(--fg-2); }
.preview__price b { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) {
  .config__grid { grid-template-columns: 1fr; }
  .config__preview { position: static; }
  .preview { display: grid; grid-template-columns: 150px 1fr; align-items: center; }
  .preview__stage { aspect-ratio: 3 / 4; }
  .preview__caption { padding: 16px 18px; }
  .preview__price { display: none; }
}

.config__steps { display: grid; gap: 16px; min-width: 0; }
.step { background: var(--card); border-radius: var(--r-xl); padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow-1); display: grid; gap: 20px; transition: box-shadow .3s; }
.step.is-attention { box-shadow: 0 0 0 3px var(--accent), var(--shadow-1); }
.step__head { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center; }
.step__num { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; background: var(--fg); color: var(--bg); display: grid; place-items: center; font-weight: 700; font-size: .95rem; }
.step__head h3 { font-size: 1.3rem; }
.step__head p { color: var(--fg-2); font-size: .95rem; grid-column: 2; }
.step__note { font-size: .9rem; color: var(--fg-2); }
.step__note:empty { display: none; }

.carfit { display: grid; gap: 12px; background: var(--bg-2); border-radius: var(--r-l); padding: 16px; }
.carfit__ok { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.carfit__ok svg { width: 22px; height: 22px; color: var(--ok); }
.carfit__ok b { font-size: 1.05rem; }
.carfit__ok span { color: var(--fg-2); font-size: .92rem; flex-basis: 100%; padding-left: 32px; }
.carfit__note { font-size: .85rem; color: var(--fg-2); }
.carfit__photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.carfit__photos button { border: 0; padding: 0; background: none; display: grid; gap: 6px; text-align: left; cursor: pointer; min-width: 0; }
/* Фото DD різних пропорцій (4:3, 3:2, вертикальні) — вписуємо цілком на білому, як у «Кольорах» на сторінці моделі. */
.carfit__photos img { aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: contain; border-radius: var(--r-s); background: #fff; transition: transform .2s; }
.carfit__photos button:hover img { transform: scale(1.03); }
.carfit__photos small { font-size: .78rem; color: var(--fg-2); line-height: 1.3; }
@media (max-width: 560px) { .carfit__photos { grid-template-columns: repeat(2, 1fr); } }

/* Step 2: car map + presets */
.set { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; align-items: start; }
.set__map { background: var(--bg-2); border-radius: var(--r-l); padding: 14px 18px 12px; display: grid; gap: 8px; }
.set__map svg { width: 100%; height: auto; }
.set__current { font-size: .88rem; color: var(--fg-2); text-align: center; }
.set__current b { color: var(--fg); font-variant-numeric: tabular-nums; }
.set__hint { font-size: .82rem; color: var(--accent); text-align: center; min-height: 1.2em; }
.set__hint:empty { display: none; }
.car-body { fill: var(--card); stroke: var(--line); stroke-width: 1.5; }
.car-glass { fill: var(--bg-3); }
.car-wheel { fill: var(--fg-3); opacity: .55; }
.zone { cursor: pointer; }
.zone rect { fill: var(--bg-3); stroke: var(--line); stroke-width: 1; transition: fill .2s, stroke .2s; }
.zone .zone__split { stroke: var(--line); stroke-width: 1; transition: stroke .2s; }
.zone text { font: 600 14px var(--font); fill: var(--fg-2); pointer-events: none; text-anchor: middle; transition: fill .2s; }
.zone .zone__sub { font-size: 10px; font-weight: 500; }
.zone:hover rect { fill: color-mix(in srgb, var(--accent) 22%, var(--bg-3)); }
.zone.is-on rect { fill: var(--accent); stroke: var(--accent); }
.zone.is-on .zone__split { stroke: color-mix(in srgb, var(--accent-fg) 35%, var(--accent)); }
.zone.is-on text { fill: var(--accent-fg); }
.zone:focus-visible { outline: none; }
.zone:focus-visible rect { stroke: var(--fg); stroke-width: 2; }
.set__presets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; align-content: stretch; }
.preset { border: 1.5px solid var(--line); background: var(--card); border-radius: var(--r-m); padding: 12px 8px; display: grid; justify-items: center; align-content: center; gap: 4px; cursor: pointer; transition: border-color .15s, background .15s; min-width: 0; }
.preset img { width: 64px; height: 64px; }
.preset span { font-size: .88rem; font-weight: 600; text-align: center; }
.preset b { font-size: .95rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--fg-2); }
.preset:hover { border-color: var(--fg-3); }
.preset[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.preset[aria-checked="true"] b { color: var(--accent); }
@media (max-width: 700px) {
  .set { grid-template-columns: 1fr; }
  .set__map { max-width: 260px; margin-inline: auto; width: 100%; }
  .set__presets { grid-template-columns: repeat(2, 1fr); }
}

/* Step 3: material */
.seg { display: inline-flex; background: var(--bg-2); border-radius: 999px; padding: 4px; gap: 2px; justify-self: start; max-width: 100%; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 8px 18px; font-weight: 600; font-size: .95rem; color: var(--fg-2); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.seg button[aria-selected="true"] { background: var(--card); color: var(--fg); box-shadow: var(--shadow-1); }
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.opt {
  border: 1.5px solid var(--line); background: var(--card); border-radius: var(--r-m); padding: 12px; display: grid; grid-template-columns: 56px 1fr;
  gap: 3px 12px; align-items: center; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; min-width: 0;
}
.opt__thumb { grid-column: 1; grid-row: 1 / span 3; width: 56px; height: 56px; border-radius: 12px; background-size: 270%; background-position: 50% 42%; background-color: var(--bg-3); border: 1px solid var(--line); }
.opt__name, .opt__desc, .opt__price { grid-column: 2; }
.opt__name { font-weight: 700; font-size: .95rem; }
.opt__desc { font-size: .8rem; color: var(--fg-2); line-height: 1.3; }
.opt__price { font-size: .85rem; font-weight: 700; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.opt:hover { border-color: var(--fg-3); }
.opt[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.opt[aria-checked="true"] .opt__price { color: var(--accent); }
@media (max-width: 760px) { .opts { grid-template-columns: 1fr; } }

/* Step 4: colors */
.colors { display: grid; gap: 20px; }
.colors__group { display: grid; gap: 10px; }
.colors__label { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 600; color: var(--fg-2); }
.colors__label b { color: var(--fg); }
.swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; position: relative; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14), inset 0 0 0 2px rgba(255, 255, 255, .08); transition: transform .15s; }
.swatch:hover { transform: scale(1.08); }
.swatch[aria-checked="true"]::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--accent); }
.swatch--custom { width: auto; height: 40px; border-radius: 999px; padding: 0 14px 0 8px; display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1.5px solid var(--line); box-shadow: none; font-size: .88rem; font-weight: 600; color: var(--fg); }
.swatch--custom:hover { transform: none; border-color: var(--fg-3); }
.swatch--custom i { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(#e8641b, #f9a825, #2e7d32, #1565c0, #4a073e, #c62828, #e8641b); }
.swatch--custom[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.swatch--custom[aria-checked="true"]::after { display: none; }
@media (max-width: 560px) {
  .swatches { gap: 8px; }
  .swatch { width: 36px; height: 36px; }
  .swatch[aria-checked="true"]::after { inset: -4px; }
  .swatch--custom { width: auto; height: 36px; padding: 0 12px 0 7px; font-size: .84rem; }
  .swatch--custom i { width: 20px; height: 20px; }
}
.swatch--custom span { white-space: nowrap; }

/* Step 5: extras */
.extras { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.extra {
  border: 1.5px solid var(--line); background: var(--card); border-radius: var(--r-m); padding: 12px 14px; display: grid; grid-template-columns: 48px 1fr auto;
  gap: 2px 12px; align-items: center; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; min-width: 0;
}
.extra img { grid-column: 1; grid-row: 1 / span 2; width: 48px; height: 48px; object-fit: contain; border-radius: 10px; background: var(--bg-2); }
.extra__name { grid-column: 2; grid-row: 1; font-weight: 700; font-size: .95rem; }
.extra__desc { grid-column: 2; grid-row: 2; font-size: .8rem; color: var(--fg-2); line-height: 1.3; }
.extra__price { grid-column: 3; grid-row: 1 / span 2; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--fg-2); white-space: nowrap; }
.extra:hover { border-color: var(--fg-3); }
.extra[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.extra[aria-checked="true"] .extra__price { color: var(--accent); }
@media (max-width: 600px) { .extras { grid-template-columns: 1fr; } }

/* Summary */
.summary { background: var(--fg); color: var(--bg); border-radius: var(--r-xl); padding: clamp(20px, 3vw, 30px); display: grid; gap: 18px; }
.summary__rows { display: grid; gap: 8px; font-size: .95rem; }
.summary__rows div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid color-mix(in srgb, var(--bg) 15%, transparent); padding-bottom: 8px; }
.summary__rows span { color: color-mix(in srgb, var(--bg) 62%, transparent); flex-shrink: 0; }
.summary__rows b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; min-width: 0; }
.summary__rows b.is-accent { color: color-mix(in srgb, var(--accent) 70%, var(--bg)); }  /* картка інвертована: у темній темі світла — темніший помаранчевий (контраст ≥ 4.5) */
.summary__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.summary__total span { font-size: 1rem; opacity: .7; }
.summary__total b { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.summary__meta { font-size: .85rem; opacity: .65; }
.summary__actions { display: flex; gap: 10px; flex-wrap: wrap; }
/* Кілька комплектів в одному замовленні */
.summary__add { justify-self: start; background: none; border: 0; padding: 4px 0; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.summary__cart { display: grid; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid color-mix(in srgb, var(--bg) 15%, transparent); }
.summary__cart h4 { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: color-mix(in srgb, var(--bg) 62%, transparent); }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; font-size: .92rem; }
.cart-item__name { min-width: 0; }
.cart-item__name small { display: block; color: color-mix(in srgb, var(--bg) 62%, transparent); font-size: .82rem; }
.cart-item__price { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.cart-item__ctl { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; }
.cart-item__ctl button { min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid color-mix(in srgb, var(--bg) 25%, transparent); border-radius: 999px; background: none; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.cart-item__ctl output { min-width: 28px; text-align: center; font-weight: 700; }
.cart-item__ctl .cart-item__del { margin-left: auto; border: 0; text-decoration: underline; font-weight: 600; }
.summary__now { margin: 2px 0 -4px; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: color-mix(in srgb, var(--bg) 62%, transparent); }
.summary__actions .btn { flex: 1 1 200px; }
.summary .btn--ghost { background: color-mix(in srgb, var(--bg) 14%, transparent); color: var(--bg); }
.summary .btn--ghost:hover { background: color-mix(in srgb, var(--bg) 22%, transparent); }

/* Reviews */
.reviews { background: radial-gradient(40% 55% at 0% 25%, color-mix(in srgb, var(--accent) calc(var(--glow) * .5), transparent) 0%, transparent 70%), var(--bg); }
.reviews__scroller { overflow: hidden; }
.reviews__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(300px, 78vw); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 12px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.reviews__track::-webkit-scrollbar { display: none; }
.review { scroll-snap-align: start; background: var(--card); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-1); display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.review__media { position: relative; aspect-ratio: 4 / 5; background: var(--bg-3); }
.review__media img, .review__media video { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.review__play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: linear-gradient(transparent 55%, rgba(0, 0, 0, .28)); cursor: pointer; transition: opacity .2s; }
.review__play span { width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .94); display: grid; place-items: center; color: #111111; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); padding-left: 3px; }
.review.is-playing .review__play { opacity: 0; }
.review__body { padding: 16px 18px 18px; display: grid; gap: 10px; grid-template-rows: 1fr auto auto auto; }
.review__quote { font-size: .95rem; line-height: 1.45; }
.review__who { font-size: .85rem; color: var(--fg-2); }
.review__who b { color: var(--fg); }
.review__car { display: inline-flex; align-items: center; font-size: .78rem; font-weight: 600; background: var(--bg-2); border-radius: 999px; padding: 4px 10px; justify-self: start; }
.reviews__nav { display: flex; gap: 8px; }
.reviews__nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); cursor: pointer; display: grid; place-items: center; transition: background .15s; }
.reviews__nav button:hover { background: var(--bg-2); }
.reviews__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 2px 0 0; padding: 0; font-size: .9rem; color: var(--fg-2); }
.reviews__meta li { display: inline-flex; align-items: center; gap: 5px; }
.reviews__meta b { color: var(--fg); font-weight: 800; font-variant-numeric: tabular-nums; }
.review__badge { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #111111; font-size: .74rem; font-weight: 700; pointer-events: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.review__badge svg { width: 12px; height: 12px; }
.review__kit { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--fg-2); line-height: 1.3; }
.review__kit .cdots { flex-shrink: 0; }
.review__kit .cdots i { box-shadow: 0 0 0 2px var(--card); }
.review__kit b { color: var(--fg); font-weight: 600; }
.review__same { justify-self: start; }
.review--cta { background: var(--fg); color: var(--bg); display: grid; align-content: center; justify-items: start; gap: 12px; padding: 28px 24px; }
.review--cta .eyebrow { color: var(--bg); opacity: .6; }
.review--cta h3 { font-size: 1.6rem; letter-spacing: -.03em; line-height: 1.1; }
.review--cta p { opacity: .72; font-size: .92rem; }
.review--cta .btn { margin-top: 8px; }
@media (max-width: 600px) { .section-head--row { grid-template-columns: 1fr; } }

/* How it works */
.how { position: relative; overflow: hidden; background: var(--bg); }
.how::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath d='M15 .5L29.5 15 15 29.5.5 15z' fill='none' stroke='%23808088' stroke-width='1'/%3E%3C/svg%3E"); background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 45% 70% at 100% 50%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse 45% 70% at 100% 50%, #000 0%, transparent 70%);
}
.how > .wrap { position: relative; }
.how__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.how__item { display: grid; gap: 10px; grid-template-rows: auto auto 1fr auto; align-content: start; padding: 24px; background: var(--bg-2); border-radius: var(--r-l); min-width: 0; }
.how__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.how__item b { font-size: 2.2rem; font-weight: 800; letter-spacing: -.04em; color: var(--accent); line-height: 1; }
.how__time { font-size: .76rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
.how__item h3 { font-size: 1.1rem; }
.how__item p { color: var(--fg-2); font-size: .92rem; }
.how__item .how__tip { font-size: .85rem; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 4px; }
.how__total { display: grid; gap: 2px; justify-items: end; text-align: right; }
.how__total b { font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.how__total span { font-size: .85rem; color: var(--fg-2); }
.how__foot { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; padding: 18px 24px; border: 1px dashed var(--line); border-radius: var(--r-l); }
.how__no { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; font-size: .92rem; color: var(--fg-2); }
.how__no li { display: inline-flex; align-items: center; gap: 8px; }
.how__no li::before { content: "×"; color: var(--accent); font-weight: 800; font-size: 1.1rem; line-height: 1; }
@media (max-width: 600px) { .how__total { justify-items: start; text-align: left; } }
@media (max-width: 900px) { .how__grid { grid-template-columns: 1fr 1fr; } }
/* На телефоні кроки стають каруселлю: один крок на екран, наступний визирає з краю */
.how__dots { display: none; }
@media (max-width: 700px) {
  .how__grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(300px, 80vw); gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
    margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))) calc(-1 * max(16px, env(safe-area-inset-right, 0px)));
    padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
    padding-bottom: 6px; scroll-padding-inline: max(16px, env(safe-area-inset-left, 0px));
  }
  .how__grid::-webkit-scrollbar { display: none; }
  .how__item { scroll-snap-align: start; }
  .how__dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
  .how__dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: var(--bg-3); cursor: pointer; transition: background .2s, width .2s; }
  .how__dots button[aria-current="true"] { width: 22px; border-radius: 999px; background: var(--accent); }
}

/* FAQ */
.faq__list { display: grid; gap: 10px; }
.faq__col { display: grid; gap: 10px; align-content: start; min-width: 0; }
@media (min-width: 900px) { .faq__list { grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; } }
.faq details { background: var(--bg-2); border-radius: var(--r-m); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--fg-3); transition: transform .2s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--fg-2); max-width: 62ch; }
.faq__group { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); margin: 14px 0 0 4px; }
.faq__group:first-child { margin-top: 0; }
.faq__more { display: block; margin-top: 10px; }

/* Contacts */
.contacts {
  background:
    radial-gradient(40% 55% at 85% 55%, color-mix(in srgb, var(--accent) calc(var(--glow) * .7), transparent) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.contacts__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: start; }
.contacts__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-card { background: var(--bg-2); border-radius: var(--r-xl); padding: 28px; display: grid; gap: 18px; }
.contact-row { display: grid; gap: 4px; }
.contact-row span { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-3); font-weight: 600; }
.contact-row b { font-weight: 600; }
.contact-row__val { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.contact-row .big { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.02em; user-select: all; font-variant-numeric: tabular-nums; color: inherit; text-decoration: none; }
.contact-row small { font-size: .82rem; color: var(--fg-2); }
.contact-row .link { font-size: .88rem; justify-self: start; }
.contact-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .9rem; color: var(--fg-2); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.contact-status i { width: 10px; height: 10px; border-radius: 50%; background: var(--fg-3); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fg-3) 25%, transparent); }
.contact-status.is-open i { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
.contact-status b { color: var(--fg); font-weight: 700; }
.contacts__points { list-style: none; margin: -12px 0 24px; padding: 0; display: grid; gap: 14px; }
.contacts__points li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.contacts__points svg { width: 24px; height: 24px; color: var(--ok); }
.contacts__points b { display: block; font-weight: 700; }
.contacts__points span { font-size: .9rem; color: var(--fg-2); }
.contacts__prep { margin-top: 16px; font-size: .88rem; color: var(--fg-2); max-width: 44em; }
.copybtn { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px; font-size: .82rem; font-weight: 600; cursor: pointer; }
.copybtn:hover { background: var(--bg-3); }
@media (max-width: 800px) { .contacts__grid { grid-template-columns: 1fr; } }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px)); font-size: .85rem; color: var(--fg-2); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 24px; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand img { height: 24px; width: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer__links a { text-decoration: none; color: var(--fg-2); }
.footer__links a:hover { color: var(--fg); }
.footer__copy { display: grid; gap: 4px; text-align: right; }
.footer__dev { color: var(--fg); font-weight: 600; text-decoration: none; }
.footer__dev:hover { color: var(--accent); }
@media (max-width: 760px) { .footer__copy { text-align: left; } }
/* Мова й тема в підвалі — однакові перемикачі-«пігулки» поруч; мова — посилання на ту саму сторінку іншою мовою */
.footer__prefs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.theme, .lang { display: inline-flex; align-items: center; gap: 2px; background: var(--bg-2); border-radius: 999px; padding: 3px; font-size: .8rem; }
.theme span, .lang span { padding: 0 6px 0 10px; color: var(--fg-3); font-weight: 600; }
.theme button, .lang a { border: 0; background: none; border-radius: 999px; padding: 5px 11px; font-weight: 600; color: var(--fg-2); text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.theme button:hover, .lang a:hover { color: var(--fg); }
.theme button[aria-pressed="true"], .lang a[aria-current] { background: var(--card); color: var(--fg); box-shadow: var(--shadow-1); }

/* Mobile sticky price bar */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--card) 88%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s;
}
.mbar.is-on { transform: none; }
.mbar small { display: block; font-size: .75rem; color: var(--fg-2); }
.mbar b { font-size: 1.25rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
@media (max-width: 1000px) { .mbar { display: flex; } }

/* Dialogs */
.dlg { border: 0; padding: 0; background: var(--card); color: var(--fg); border-radius: var(--r-xl); width: min(92vw, 460px); box-shadow: var(--shadow-2); max-height: 90vh; overflow: auto; overscroll-behavior: contain; }
/* Відкрите вікно: сторінка під ним не прокручується (резерв під смугу прокрутки — щоб нічого не зсувалося) */
html { scrollbar-gutter: stable; }
html:has(dialog[open]), html:has(dialog[open]) body { overflow: hidden; }
.dlg::backdrop { background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dlg__form, .dlg__done { padding: 28px; display: grid; gap: 14px; position: relative; }
.dlg__close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bg-2); font-size: 1.3rem; cursor: pointer; line-height: 1; display: grid; place-items: center; }
.dlg__close:hover { background: var(--bg-3); }
.dlg h3 { font-size: 1.4rem; padding-right: 40px; }
.dlg p { color: var(--fg-2); font-size: .95rem; }
.dlg__summary { background: var(--bg-2); border-radius: var(--r-m); padding: 12px 14px; font-size: .9rem; display: grid; gap: 4px; }
.dlg__summary div { display: flex; justify-content: space-between; gap: 12px; }
.dlg__summary span { color: var(--fg-2); flex-shrink: 0; }
.dlg__summary b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.dlg label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--fg-2); }
.dlg input { height: 48px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); color: var(--fg); padding: 0 14px; font: inherit; font-size: 1rem; }
.dlg input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.dlg input[aria-invalid="true"] { border-color: var(--err); }
.dlg__err { color: var(--err) !important; font-size: .9rem; }
.dlg__fine { font-size: .78rem; color: var(--fg-3) !important; }
.dlg__done { text-align: center; justify-items: center; }
.dlg__check { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #ffffff; display: grid; place-items: center; font-size: 1.8rem; font-weight: 700; }
.photo-dlg { width: min(94vw, 760px); }
.photo-dlg img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(90vh - 130px); margin: 0 auto; object-fit: contain; border-radius: var(--r-m); background: var(--bg-3); }
.photo-dlg__stage { position: relative; }
.photo-dlg__nav { display: none; position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; place-items: center; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.photo-dlg__nav:hover { background: rgba(0, 0, 0, .75); }
.photo-dlg__prev { left: 8px; } .photo-dlg__next { right: 8px; }
.photo-dlg[data-mode="set"] .photo-dlg__nav { display: grid; }
.photo-dlg p { font-size: .9rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .hero__fan { transform: none; }
}

/* Популярні моделі в герої */
.carpick__popular { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.carpick__popular > span { font-size: .8rem; color: var(--fg-2); margin-right: 2px; }
.pchip { border: 1px solid var(--line); background: var(--bg-2); color: var(--fg); border-radius: 999px; padding: 5px 11px; font-size: .8rem; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; }
.pchip:hover { border-color: var(--fg-3); background: var(--bg-3); }
.pchip:disabled { opacity: .5; cursor: progress; }
.carpick__hint b { color: var(--fg); font-weight: 700; }

/* Бейджі на популярних варіантах */
.preset, .opt { position: relative; }
.badge { position: absolute; top: -9px; right: 10px; font-style: normal; font-size: .66rem; font-weight: 700; letter-spacing: .02em; color: var(--accent); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.set__presets, .opts { padding-top: 6px; }

/* Форма: необов'язкові поля */
.dlg label small { font-weight: 500; color: var(--fg-3); margin-left: 4px; }
/* Нова пошта у формі замовлення: населений пункт → відділення з довідника НП */
.np { display: grid; gap: 12px; }
.np .combo label { font-size: .85rem; letter-spacing: 0; text-transform: none; }
.np .combo input { padding-right: 40px; }
.np .combo__list { position: static; max-height: 240px; margin-top: 2px; box-shadow: none; }
.np .combo__list li { display: block; line-height: 1.35; }
.np .combo__list li small { display: block; white-space: normal; margin-top: 2px; }
.np__hint { margin: -4px 0 0; font-size: .8rem; color: var(--fg-3); }
.dlg textarea { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); color: var(--fg); padding: 10px 14px; font: inherit; font-size: 1rem; resize: vertical; min-height: 80px; }
.dlg textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.dlg__fine .link { font-weight: 500; }
/* Форма замовлення вміщується в екран без прокрутки: щільніші відступи, ім’я й телефон в один рядок, список відділень — поверх форми */
#orderDialog { width: min(94vw, 520px); max-height: calc(100dvh - 24px); scrollbar-width: none; }
#orderDialog::-webkit-scrollbar { display: none; }
#orderDialog .dlg__form { padding: 22px 24px; gap: 10px; }
#orderDialog h3 { font-size: 1.25rem; }
#orderDialog #dlgLead { font-size: .88rem; margin-top: -4px; }
#orderDialog .dlg__summary { padding: 9px 12px; gap: 2px; font-size: .85rem; }
#orderDialog input { height: 44px; }
#orderDialog .btn--lg { padding-block: 13px; }
#orderDialog .dlg__fine { font-size: .72rem; line-height: 1.4; }
.dlg__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dlg__row input { min-width: 0; width: 100%; }
.dlg__row > [hidden] + label, .dlg__row > label:only-child { grid-column: 1 / -1; }
.np { gap: 10px; }
.np .combo label { display: block; }
.np .combo__list { position: absolute; max-height: 210px; margin: 0; box-shadow: var(--shadow-2); }
.np .combo:last-of-type .combo__list { top: auto; bottom: calc(100% - 22px); }  /* відділення — список угору, над полем */
.np__hint { margin: -2px 0 0; font-size: .75rem; }
@media (max-width: 560px) {
  /* телефон: форма — на весь екран знизу, без рамок */
  #orderDialog { width: 100%; max-width: 100%; max-height: 100dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  #orderDialog .dlg__form { padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
  #orderDialog #dlgLead { display: none; }
  .dlg__row input { padding: 0 10px; font-size: .94rem; }
}
@media (max-width: 339px) { .dlg__row { grid-template-columns: 1fr; } }

/* Для бізнесу */
main > .biz { padding-block: clamp(40px, 5.5vw, 64px); }
.biz {
  background:
    radial-gradient(45% 70% at 100% 50%, color-mix(in srgb, var(--accent) calc(var(--glow) * .7), transparent) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg-2) 0%, color-mix(in srgb, var(--accent-soft) 45%, var(--bg-2)) 100%);
}
.biz__inner { display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 28px 40px; align-items: center; }
.biz__text { display: grid; gap: 10px; }
.biz__text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.biz__text p:last-child { color: var(--fg-2); max-width: 44ch; }
.biz__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.biz__points li { display: grid; gap: 2px; padding-left: 18px; position: relative; font-size: .92rem; color: var(--fg-2); }
.biz__points li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.biz__points b { color: var(--fg); font-weight: 700; }
@media (max-width: 1000px) { .biz__inner { grid-template-columns: 1fr 1fr; } .biz__inner > .btn { grid-column: 1 / -1; justify-self: start; } }
@media (max-width: 700px) { .biz__inner { grid-template-columns: 1fr; } }

/* Тост «відновили комплект» */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 999px;
  background: var(--fg); color: var(--bg); font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-2); white-space: nowrap;
}
.toast .link { color: var(--accent); }
@media (max-width: 1000px) { .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 480px) { .toast { white-space: normal; border-radius: var(--r-m); text-align: left; } }

/* Текстовий діалог (політика) */
.dlg--text { width: min(94vw, 640px); }
.dlg__text { display: grid; gap: 12px; font-size: .95rem; color: var(--fg-2); }
.dlg__text b { color: var(--fg); }

/* Акція: перекреслена звичайна ціна поруч з акційною (конструктор, прев’ю, мобільна панель). */
.price-old { color: var(--fg-2); font-weight: 600; text-decoration: line-through; text-decoration-thickness: 1.5px; font-size: .78em; margin-right: 8px; white-space: nowrap; }
.price-old[hidden] { display: none !important; }
.preset .price-old { display: block; margin: 0 0 1px; font-size: .72rem; }
.summary__total .price-old { font-size: .9rem; align-self: center; margin-left: auto; }
.summary .price-old { color: color-mix(in srgb, var(--bg) 60%, transparent); }  /* інвертована картка */
.opt.is-off { opacity: .45; cursor: not-allowed; }
#carPageLink { display: block; margin-top: 6px; font-size: .9rem; }

/* ---------- Каталог лекал: головна, сторінки марок і збірні ---------- */
.catalog__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: 28px; }
.catalog__head h2 { margin: 6px 0 10px; }
.catalog__head p { margin: 0; color: var(--fg-2); font-size: 1.1rem; max-width: 36em; }
.catalog__search { position: relative; flex: 0 1 360px; display: block; }
.catalog__search input { width: 100%; height: 54px; padding: 0 18px 0 50px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--fg); font: 500 1rem var(--font); box-shadow: var(--shadow-1); -webkit-appearance: none; appearance: none; }
.catalog__search input::placeholder { color: var(--fg-3); }
.catalog__search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.catalog__search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--fg-3); pointer-events: none; }
.catalog__top { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; margin-bottom: 44px; }
.catalog__label { margin: 0 0 12px; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
.catalog__popular { background: var(--bg-2); border-radius: var(--r-xl); padding: 22px 22px 22px; }
.catalog__popular ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.catalog__popular a { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px 16px; border-radius: var(--r-m); background: var(--card); color: var(--fg); text-decoration: none; box-shadow: var(--shadow-1); transition: transform .15s, box-shadow .15s; }
.catalog__popular a:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.catalog__popular small { color: var(--fg-2); font-size: .8rem; font-weight: 600; }
.catalog__popular b { font-size: 1.02rem; line-height: 1.2; letter-spacing: -.01em; }
.catalog__popular a span { margin-top: auto; padding-top: 8px; color: var(--accent); font-size: .9rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.catalog__chip { display: inline-block; margin-left: 10px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); letter-spacing: 0; text-transform: none; font-size: .78rem; vertical-align: 1px; }
.catalog__chip b { font-weight: 700; }
.catalog__hubs { display: grid; gap: 16px; }
.catalog__hub { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 128px; padding: 20px 56px 22px 26px; border-radius: var(--r-xl); background: var(--accent-soft); color: var(--fg); text-decoration: none; overflow: hidden; transition: transform .15s; }
.catalog__hub:hover { transform: translateY(-2px); }
.catalog__hub b { font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.15; }
.catalog__hub span { color: var(--fg-2); font-size: .92rem; }
.catalog__hub i { margin-bottom: auto; padding-bottom: 14px; font-style: normal; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.catalog__hub::after { content: "→"; position: absolute; right: 24px; top: 18px; color: var(--accent); font-weight: 700; font-size: 1.3rem; transition: transform .15s; }
.catalog__hub:hover::after { transform: translateX(4px); }
.catalog__letters { columns: 4 220px; column-gap: 40px; }
.catalog__letter { break-inside: avoid; margin: 0 0 26px; }
.catalog__letter h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--accent); }
.catalog__letter ul { list-style: none; margin: 0; padding: 0; }
.cat-link { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent); color: var(--fg); text-decoration: none; font-weight: 600; }
.cat-link span { flex: none; color: var(--fg-3); font-size: .84rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.cat-link span s { margin-right: 4px; }
.cat-link:hover { color: var(--accent); }
.cat-link small { display: block; color: var(--fg-2); font-weight: 500; font-size: .84rem; }
.catalog__empty { margin: 0; padding: 22px 26px; border-radius: var(--r-l); background: var(--bg-2); color: var(--fg-2); }
.catalog__empty .link { font-size: inherit; }
@media (max-width: 1100px) {
  .catalog__popular ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .catalog__top { grid-template-columns: 1fr; }
  .catalog__popular ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .catalog__hubs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .catalog__popular ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .catalog__search { flex-basis: 100%; }
  .catalog__popular { padding: 16px; }
  .catalog__popular ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog__chip { display: block; width: fit-content; margin: 8px 0 0; }
  .catalog__hubs { grid-template-columns: 1fr; }
  .catalog__hub { min-height: 0; }
  .catalog__letters { columns: 2; column-gap: 20px; }
}
.catalog__more { display: none; }
@media (max-width: 700px) {
  .catalog__fold:not(.is-open) .catalog__letters { max-height: 760px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
  .catalog__more { display: flex; width: 100%; justify-content: center; margin-top: 8px; padding: 14px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--fg); font: 600 1rem var(--font); cursor: pointer; }
  .catalog__fold.is-open .catalog__more { display: none; }
}
.catalog h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin: 6px 0 10px; }
.catalog .eyebrow .catalog__chip { margin-left: 8px; }
.cat-link b { min-width: 0; }
.crumbs + .catalog { padding-top: clamp(20px, 3vw, 36px); }

/* Значки марок (з avtoaksesuary.com): біла плашка в обох темах — темні логотипи не губляться на темному фоні. */
.brand-logo { flex: none; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 34px; padding: 4px 6px; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .07); overflow: hidden; }
.brand-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-logo--text { color: #6e6e73; font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
.brand-logo--xs { width: 30px; height: 20px; padding: 2px 4px; border-radius: 6px; }
.brand-logo--lg { width: 96px; height: 64px; padding: 8px 12px; border-radius: 16px; }
.cat-link--brand { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 9px 0; }
.cat-link--brand b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog__popular .brand-logo--xs { margin-right: 6px; vertical-align: middle; }
.catalog__popular small { display: flex; align-items: center; }
.catalog__brandhead { display: flex; align-items: center; gap: 22px; }
.crumbs a.crumbs__mark { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 560px) {
  .brand-logo { width: 44px; height: 30px; }
  .brand-logo--lg { width: 72px; height: 48px; }
  .catalog__brandhead { gap: 14px; }
  .cat-link--brand { gap: 10px; }
}
.cat-link b { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  #catModels.catalog__letters { columns: 1; }  /* поруч із назвою покоління — ціна, двом колонкам тісно */
}

/* ---------- Мобільна зручність: зони натискання від 44 px, шапка на 360 px ---------- */
@media (max-width: 900px) {
  .nav__cta .btn--sm { min-height: 44px; }
  .nav__logo { display: inline-flex; align-items: center; min-height: 44px; }
  .btn--sm { min-height: 44px; }
  .seg button { padding: 12px 18px; }
  .swatch { width: 44px; height: 44px; }
  .pchip { min-height: 40px; padding: 8px 14px; }
  #carChange { padding: 10px 4px; }
  .catalog__more, .catalog__search input { min-height: 48px; }
}
@media (max-width: 380px) {
  .nav__inner { gap: 8px; }
  .nav__logo img { width: 104px; height: auto; }
  .nav__cta { gap: 6px; }
  .nav__cta .btn--sm { padding: 10px 12px; font-size: .86rem; }
}
/* Довгі списки моделей: пошук закріплюється під шапкою */
@media (max-width: 700px) {
  .catalog__sticky { position: sticky; top: calc(var(--nav-h) + 8px); z-index: 20; margin: 0 -4px 18px; padding: 4px; border-radius: 999px; }
  .catalog__sticky .catalog__search { flex-basis: auto; }
}
@media (max-width: 900px) {
  .nav__call { width: 44px; height: 44px; }
  .crumbs a { padding-block: 12px; }
  .cat-link { min-height: 44px; }
  .pchip { min-height: 44px; }
  .mat__variants .chip { min-height: 44px; padding-inline: 14px; }
  .carpick__actions .link, .contact-row .link, #carChange, #carPageLink { display: inline-flex; align-items: center; min-height: 44px; }
  .copybtn { min-height: 44px; padding-inline: 16px; }
  .footer__links { gap: 0 18px; }
  .footer__links a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__dev { display: inline-flex; align-items: center; min-height: 44px; }
  .theme button { min-height: 44px; padding-inline: 14px; }
  .lang a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 14px; }
  /* Крапки каруселі «Як це працює»: зона натискання 44 px навколо маленької крапки */
  .how__dots { gap: 18px; }
  .how__dots button { position: relative; }
  .how__dots button::before { content: ""; position: absolute; inset: -18px -9px; }
  .badge { font-size: .75rem; }
  .review__badge { font-size: .78rem; }
  .preset .price-old, .pv .price-old { font-size: .8rem; }
  .hm { font-size: .78rem; }
}
@media (max-width: 900px) {
  /* Малий логотип лишається малим (крихти, популярні марки) — загальне правило для телефону його не збільшує */
  .brand-logo--xs { width: 30px; height: 20px; }
}
@media (max-width: 560px) {
  /* Сторінка моделі: назва моделі вже в заголовку, крихти — один рядок «Головна › Марка» */
  .crumbs:has(.crumbs__mark) > [aria-current],
  .crumbs:has(.crumbs__mark) > span[aria-hidden]:has(+ [aria-current]) { display: none; }
}
@media (max-width: 700px) { .catalog .eyebrow .catalog__chip { margin-left: 0; } }
@media (min-width: 701px) {
  .catalog__sticky { margin-bottom: 28px; }
  .catalog__sticky .catalog__search { max-width: 440px; }
}
/* «Усі марки»: популярні моделі й збірні сторінки під списком марок */
.catalog__after { margin-top: clamp(36px, 5vw, 56px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--line); }
.catalog__label a { color: inherit; text-decoration: none; }
.catalog__label a:hover { color: var(--accent); }

/* ---------- Сторінки-списки: популярні марки й моделі, текст, допомога ---------- */
.catalog__marks { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; margin: 0 0 28px; }
.catalog__mark { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px 12px; border-radius: var(--r-m); background: var(--bg-2); color: var(--fg); text-decoration: none; font-size: .9rem; font-weight: 700; text-align: center; transition: transform .15s; }
.catalog__mark:hover { transform: translateY(-2px); }
.catalog__mark .brand-logo { width: 72px; height: 48px; padding: 6px 9px; border-radius: 12px; }
.catalog__popular--brand { margin: 0 0 28px; }
.catalog__popular--brand ul { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .catalog__popular--brand ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .catalog__marks { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 96px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 2px 16px 8px; scrollbar-width: none; }
  .catalog__marks::-webkit-scrollbar { display: none; }
  .catalog__mark { scroll-snap-align: start; }
}
@media (max-width: 560px) {
  .catalog__popular--brand ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog__popular--brand li:nth-child(n+5) { display: none; }
}
.cat-info__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.cat-info__text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 18px; }
.cat-info__text p { margin: 0 0 14px; max-width: 64ch; color: var(--fg-2); font-size: 1.02rem; line-height: 1.6; }
.cat-info__mats { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cat-info__mats li { display: grid; gap: 4px; padding: 18px 20px; border-radius: var(--r-l); background: var(--bg-2); }
.cat-info__mats b { font-size: 1.1rem; }
.cat-info__mats span { color: var(--accent); font-size: .92rem; font-weight: 700; }
.cat-info__mats p { margin: 4px 0 0; color: var(--fg-2); font-size: .94rem; line-height: 1.5; }
.help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(32px, 5vw, 48px); padding: clamp(24px, 4vw, 40px); border-radius: var(--r-xl); background: var(--card); box-shadow: var(--shadow-1); }
.help h2 { margin: 0 0 8px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.help p { margin: 0; max-width: 56ch; color: var(--fg-2); }
.help__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.help__actions .link { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.02rem; }
@media (max-width: 900px) { .cat-info__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .help__actions { width: 100%; } .help__actions .btn { flex: 1 1 100%; } }
/* Перехід з плиток популярних моделей до групи: під шапкою й закріпленим пошуком */
.catalog__letter { scroll-margin-top: calc(var(--nav-h) + 24px); }
@media (max-width: 700px) { .catalog__letter { scroll-margin-top: calc(var(--nav-h) + 84px); } }
/* Ціна біля марки: в один рядок через «·», на телефоні — другим рядком, щоб не обрізалась */
.cat-link--brand small span::before { content: "· "; }
@media (max-width: 560px) {
  .cat-link--brand small span { display: block; }
  .cat-link--brand small span::before { content: none; }
  /* Шапка марки: логотип над заголовком, текст на всю ширину */
  .catalog__brandhead { flex-direction: column; align-items: flex-start; gap: 14px; }
  .catalog__brandhead .brand-logo--lg { width: 64px; height: 42px; padding: 6px 9px; border-radius: 12px; }
}
@media (max-width: 700px) { .catalog__marks { scroll-padding-inline: 16px; } }
.help > div:first-child { flex: 1 1 420px; }

/* ---------- Поради (/porady/) ---------- */
.guide { padding-top: clamp(20px, 3vw, 36px); }
.guide__wrap { max-width: 780px; }
.guide__head h1 { margin: 10px 0 16px; font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -.03em; }
.guide__lead { margin: 0 0 14px; color: var(--fg-2); font-size: 1.2rem; line-height: 1.55; }
.guide__meta { margin: 0 0 28px; color: var(--fg-3); font-size: .9rem; }
.guide__toc { margin: 0 0 36px; padding: 18px 22px; border-radius: var(--r-l); background: var(--bg-2); }
.guide__toc p { margin: 0 0 4px; color: var(--fg-2); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.guide__toc ol { margin: 0; padding-left: 22px; }
.guide__toc a { display: inline-block; padding-block: 10px; color: var(--fg); font-weight: 600; text-decoration: none; }
.guide__toc a:hover { color: var(--accent); }
.guide__body h2 { margin: 44px 0 14px; font-size: clamp(1.45rem, 3vw, 1.9rem); }
.guide__body p, .guide__body li { font-size: 1.06rem; line-height: 1.65; }
.guide__body p { margin: 0 0 14px; }
.guide__body ul, .guide__body ol { display: grid; gap: 8px; margin: 0 0 18px; padding-left: 22px; }
.guide__table { margin: 0 0 18px; overflow-x: auto; border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--line); }
.guide__table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .95rem; }
.guide__table th, .guide__table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.guide__table thead th { background: var(--bg-2); color: var(--fg-2); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.guide__table tr:last-child th, .guide__table tr:last-child td { border-bottom: 0; }
.guide__pick { margin: 44px 0; padding: clamp(22px, 3vw, 30px); border-radius: var(--r-xl); background: var(--accent-soft); }
.guide__pick h2 { margin: 0 0 8px; font-size: clamp(1.3rem, 2.6vw, 1.6rem); }
.guide__pick p { margin: 0; line-height: 1.6; }
.guide__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 18px; }
.guide__actions .link { display: inline-flex; align-items: center; min-height: 44px; }
.guide__faq h2 { margin: 0 0 18px; font-size: clamp(1.45rem, 3vw, 1.9rem); }
.guide__author { margin-top: 40px; padding: 22px 24px; border-radius: var(--r-l); box-shadow: inset 0 0 0 1px var(--line); }
.guide__author p { margin: 6px 0 0; color: var(--fg-2); line-height: 1.55; }
.guide .verify { margin-left: 6px; vertical-align: 2px; }
.guide-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--r-l); background: var(--card); box-shadow: var(--shadow-1); color: var(--fg); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.guide-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.guide-card b { font-size: 1.15rem; line-height: 1.25; letter-spacing: -.01em; }
.guide-card span { color: var(--fg-2); font-size: .95rem; line-height: 1.5; }
.guide-card small { margin-top: auto; padding-top: 6px; color: var(--accent); font-size: .9rem; font-weight: 700; }
.catalog .guide-cards { margin-top: 8px; }
.mfaq__more { margin: 18px 0 0; color: var(--fg-2); }
@media (max-width: 900px) { .guide-cards { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .guide__actions .btn { flex: 1 1 100%; } .guide__lead { font-size: 1.08rem; } }
.footer__copy { margin-left: auto; }
@media (max-width: 760px) { .footer__copy { margin-left: 0; } }
/* Фото в порадах: одне фото, пара для порівняння, три текстури */
.guide__fig { margin: 24px 0 28px; }
.guide__fig img { display: block; width: 100%; height: auto; border-radius: var(--r-l); background: var(--bg-2); }
.guide__fig--photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.guide__fig--pair, .guide__fig--trio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.guide__fig--trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guide__fig--pair > div, .guide__fig--trio > div { display: grid; gap: 8px; }
.guide__fig--pair img { aspect-ratio: 3 / 2; object-fit: contain; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.guide__fig--trio img { aspect-ratio: 4 / 3; object-fit: cover; }
.guide__fig--pair span, .guide__fig--trio span { font-weight: 700; font-size: .95rem; }
.guide__fig figcaption { grid-column: 1 / -1; margin-top: 10px; color: var(--fg-3); font-size: .9rem; line-height: 1.5; }
@media (max-width: 560px) { .guide__fig--trio { gap: 8px; } .guide__fig--trio span { font-size: .85rem; } }

.nav__cta .btn { white-space: nowrap; gap: 0; }
@media (max-width: 480px) { .nav__cta-more { display: none; } }

/* ---------- Telegram-підтримка — головний канал зв’язку (посилання [data-tg]; адреса — CONFIG.telegramUrl в app.js) ---------- */
:root { --tg: #1d93d2; --tg-fab: #1d93d2; --tg-fab-hover: #1784bd; --tg-fab-shadow: 0 6px 20px rgba(29, 29, 31, .2), 0 2px 6px rgba(29, 29, 31, .12); }  /* синій Telegram: значок на світлому тлі й біла іконка на кнопці — контраст ≥ 3:1 */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --tg: #45b4ef; --tg-fab-hover: #2a9fdc; --tg-fab-shadow: 0 6px 20px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .4); } }
:root[data-theme="dark"] { --tg: #45b4ef; --tg-fab-hover: #2a9fdc; --tg-fab-shadow: 0 6px 20px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .4); }
.tg-ico { width: 20px; height: 20px; flex-shrink: 0; }
/* Шапка: кругла кнопка Telegram на всіх ширинах — на місці колишньої іконки дзвінка (на телефоні вона ще й останній пункт меню) */
.nav__tg { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-2); color: var(--tg); transition: background .15s; }
.nav__tg:hover { background: var(--bg-3); }
.nav__tg .tg-ico { width: 21px; height: 21px; }
@media (max-width: 900px) { .nav__tg { width: 44px; height: 44px; } }
@media (max-width: 352px) { .nav__tg { display: none; } }  /* найвужчі телефони: не вміщується поруч із бургером — Telegram є в меню */
.nav__links .nav__tel .tg-ico { color: var(--tg); }
/* Посилання з іконкою (герой, перший екран моделі) */
.link--tg { display: inline-flex; align-items: center; gap: 6px; }
.link--tg .tg-ico { width: 18px; height: 18px; }
/* Картка контактів: Telegram замість великого номера, телефон — дрібно під ним */
.tg-big { display: inline-flex; align-items: center; gap: 10px; justify-self: start; font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 800; letter-spacing: -.02em; color: var(--fg); text-decoration: none; overflow-wrap: anywhere; }
.tg-big .tg-ico { width: 1.15em; height: 1.15em; color: var(--tg); }
.tg-big:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.contact-row--minor a { justify-self: start; color: var(--fg-2); font-weight: 600; font-variant-numeric: tabular-nums; text-decoration: none; }
.contact-row--minor a:hover { color: var(--fg); }
/* Підвал: Telegram першим, телефон і пошта поруч (рядком, на вузькому екрані переносяться цілими) */
.footer__contact { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 16px; }
.footer__contact a { white-space: nowrap; }
.footer__contact a[href^="tel:"] { color: var(--fg-2); text-decoration: none; }
@media (max-width: 760px) { .footer__contact { justify-content: flex-start; } }
/* Діалог після заявки */
.dlg__tg { font-size: .9rem; color: var(--fg-2); }
@media (max-width: 900px) {
  .contact-row--minor a, .tg-big { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__contact a { display: inline-flex; align-items: center; min-height: 44px; }
}
/* Плаваюча кнопка Telegram на всіх сторінках, праворуч унизу. Над нижніми панелями (ціна конструктора .mbar, панель моделі #mcta,
   тост) її піднімає app.js через --tg-lift; z-index нижчий за них, тож і під час анімації панель лишається зверху. */
.tg-float {
  position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 44;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--tg-fab); color: #ffffff;
  box-shadow: var(--tg-fab-shadow); transform: translateY(calc(-1 * var(--tg-lift, 0px))); transition: transform .25s ease, background-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.tg-float:hover { background: var(--tg-fab-hover); }
.tg-float:focus-visible { outline-offset: 4px; }
.tg-float .tg-ico { width: 27px; height: 27px; margin: 1px 2px 0 0; }
@media (max-width: 560px) {
  .tg-float { right: max(14px, env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; }
  .tg-float .tg-ico { width: 25px; height: 25px; }
}
@media (max-width: 360px) {  /* найвужчі телефони: менша кнопка ближче до кута */
  .tg-float { right: max(10px, env(safe-area-inset-right, 0px)); bottom: calc(10px + env(safe-area-inset-bottom, 0px)); width: 48px; height: 48px; }
  .tg-float .tg-ico { width: 23px; height: 23px; }
}
@media (prefers-reduced-motion: reduce) { .tg-float { transition: none; } }
@media print { .tg-float { display: none; } }
/* Кінець сторінки (підвал) не ховається під плаваючою кнопкою */
.footer { padding-bottom: calc(32px + 72px + env(safe-area-inset-bottom, 0px)); }
