/* ============================================================
   «Кузов в цвет» — дизайн-система сайта
   Собственные стили, без использования чужих шаблонов.
   ============================================================ */

:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --ink: #101828;
  --ink-2: #344054;
  --muted: #5a6b7e;
  --line: #e4e9f1;
  --dark: #0d1420;
  --dark-2: #131d2e;
  --dark-line: #223049;
  --accent: #1f6bff;
  --accent-dark: #0f56db;
  --accent-soft: #e8f0ff;
  --amber: #ffb01f;
  --amber-soft: #fff4dc;
  --lime: #cfe6a3;
  --lime-deep: #a8ce5a;
  --wa: #22b85c;
  --tg: #2aabee;
  --danger: #d92d20;
  --ok: #12b76a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-1: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-2: 0 12px 24px -8px rgba(16, 24, 40, .14), 0 4px 8px rgba(16, 24, 40, .06);
  --shadow-3: 0 24px 48px -12px rgba(16, 24, 40, .22);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; }
h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Доступность ---------- */
:focus-visible { outline: 3px solid rgba(31, 107, 255, .55); outline-offset: 2px; border-radius: 6px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 200;
  background: var(--dark); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .15s ease;
}
.skip-link:focus { top: 8px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 15.5px; line-height: 1.15;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-primary {
  background: linear-gradient(180deg, #2f7bff, var(--accent-dark));
  color: #fff; box-shadow: 0 8px 20px -6px rgba(31, 107, 255, .55);
}
.btn-primary:hover { box-shadow: 0 12px 26px -6px rgba(31, 107, 255, .65); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 20px -8px rgba(34, 184, 92, .6); }
.btn-tg { background: var(--tg); color: #fff; box-shadow: 0 8px 20px -8px rgba(42, 171, 238, .6); }
.btn-ghost {
  background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-outline {
  background: var(--surface); color: var(--ink); border-color: var(--line);
  box-shadow: var(--shadow-1);
}
.btn-outline:hover { border-color: #c8d3e2; }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 16px 28px; font-size: 17px; border-radius: 14px; }
.btn-block { width: 100%; }

/* ---------- Демо-плашка ---------- */
.demo-bar {
  background: var(--amber-soft); color: #7a5200; font-size: 13.5px;
  border-bottom: 1px solid #f5dfae;
}
.demo-bar .container { display: flex; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.demo-bar strong { color: #6b4700; }
.demo-bar__close {
  margin-left: auto; border: 0; background: transparent; color: #7a5200;
  font-size: 20px; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 6px;
}
.demo-bar__close:hover { background: rgba(122, 82, 0, .1); }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 20, 32, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.header__in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 11px; color: #fff; font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.logo:hover { text-decoration: none; }
.logo__mark {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .55);
}
.logo__mark svg { width: 38px; height: 38px; }
.logo small { display: block; font-size: 11px; font-weight: 600; color: #93a4bd; letter-spacing: .02em; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a {
  color: #c3cfe0; font-size: 15px; font-weight: 600; padding: 9px 13px; border-radius: 9px;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); text-decoration: none; }
.nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .12); }
.header__cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header__phone { color: #fff; font-weight: 800; font-size: 16.5px; display: flex; align-items: center; gap: 8px; }
.header__phone:hover { text-decoration: none; color: var(--amber); }
.header__phone svg { width: 18px; height: 18px; color: var(--amber); }
.header__phone small { display: block; font-size: 10.5px; font-weight: 600; color: #8fa0b8; letter-spacing: .02em; }
.burger {
  display: none; border: 1px solid rgba(255, 255, 255, .2); background: transparent;
  width: 44px; height: 44px; border-radius: 10px; cursor: pointer; color: #fff;
  place-items: center; flex: none;
}
.burger svg { width: 22px; height: 22px; }
.mobile-menu {
  display: none; border-top: 1px solid var(--dark-line);
  background: var(--dark-2); padding: 10px 0 18px;
}
.mobile-menu a {
  display: flex; align-items: center; gap: 12px; color: #dbe4f0; font-weight: 600;
  padding: 13px 22px; font-size: 16px;
}
.mobile-menu a:hover { background: rgba(255, 255, 255, .06); text-decoration: none; color: #fff; }
.mobile-menu.is-open { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(900px 420px at 15% -10%, rgba(31, 107, 255, .28), transparent 60%),
              radial-gradient(700px 380px at 90% 8%, rgba(255, 176, 31, .13), transparent 55%),
              linear-gradient(160deg, #0d1420 0%, #101b2e 55%, #0d1420 100%);
  color: #fff;
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding: 64px 0 72px;
}
.hero h1 { color: #fff; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(92deg, #e9f5c4, var(--lime-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { font-size: 18px; color: #b9c6d8; max-width: 560px; margin-bottom: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  color: #dbe4f0; font-size: 13.5px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
}
.chip svg { width: 15px; height: 15px; color: var(--lime); }

/* Панель с машиной и выбором цвета */
.paint-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
  border: 1px solid rgba(255, 255, 255, .13); border-radius: 24px; padding: 26px 26px 20px;
  box-shadow: var(--shadow-3);
}
.paint-panel__hint { font-size: 13.5px; color: #9fb0c6; font-weight: 600; margin-bottom: 6px; text-align: center; }
.paint-panel__car { margin: 4px 0 14px; }
.paint-panel__car svg { width: 100%; height: auto; }
.swatches { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.swatch {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; border: 2px solid rgba(255, 255, 255, .25);
  transition: transform .12s ease, border-color .12s ease; padding: 0;
}
.swatch:hover { transform: scale(1.12); }
.swatch.is-active { border-color: #fff; transform: scale(1.12); box-shadow: 0 0 0 3px rgba(255, 255, 255, .18); }
.paint-panel__name { text-align: center; font-size: 13.5px; color: #c3cfe0; margin-top: 10px; min-height: 20px; }

/* ---------- Секции ---------- */
.section { padding: 72px 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.section__head { max-width: 720px; margin-bottom: 40px; }
.overline {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; margin-bottom: 12px;
}
.overline::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--amber); }
.section__head p { color: var(--muted); font-size: 17px; margin: 0; }

/* ---------- Карточки преимуществ ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.adv-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-1);
  transition: transform .15s ease, box-shadow .15s ease;
}
.adv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.adv-card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 16px;
}
.adv-card__icon svg { width: 26px; height: 26px; }
.adv-card:nth-child(2n) .adv-card__icon { background: var(--amber-soft); color: #b97a00; }
.adv-card p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px 22px; box-shadow: var(--shadow-1);
}
.step__num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #2f7bff, var(--accent-dark)); color: #fff;
  font-weight: 800; font-size: 17px; margin-bottom: 14px; box-shadow: 0 6px 14px -4px rgba(31, 107, 255, .55);
}
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- Полосы марок ---------- */
.brands { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-pill {
  display: inline-flex; align-items: center; padding: 11px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  font-weight: 700; font-size: 15px; box-shadow: var(--shadow-1);
  transition: border-color .12s ease, transform .12s ease, box-shadow .12s ease;
}
.brand-pill:hover {
  text-decoration: none; border-color: var(--accent); color: var(--accent);
  transform: translateY(-2px); box-shadow: var(--shadow-2);
}
.brands-note { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* ---------- Каталог ---------- */
.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.filters {
  position: sticky; top: 88px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-1);
}
.filters h3 { font-size: 16px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.filters h3 svg { width: 17px; height: 17px; color: var(--accent); }
.filters__group { padding: 14px 0; border-top: 1px solid var(--line); }
.filters__group:first-of-type { border-top: 0; padding-top: 0; }
.filters__group label, .filters__group .f-label {
  display: block; font-size: 12.5px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px;
}
.filters select, .filters input[type="search"], .toolbar input[type="search"] {
  width: 100%; padding: 11px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: #fbfcfe; font: inherit; font-size: 15px; color: var(--ink);
}
.filters select:focus, .filters input:focus, .toolbar input:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 107, 255, .15);
}
.checkline { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; padding: 5px 0; }
.checkline input { width: 18px; height: 18px; accent-color: var(--accent); }
.color-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.color-opt {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0;
  transition: transform .1s ease, border-color .1s ease;
}
.color-opt:hover { transform: scale(1.12); }
.color-opt.is-active { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 107, 255, .18); }
.filters__reset {
  margin-top: 14px; width: 100%; background: transparent; border: 1px dashed #c8d3e2;
  color: var(--muted); border-radius: var(--radius-sm); padding: 10px; font: inherit; font-size: 14px;
  font-weight: 600; cursor: pointer;
}
.filters__reset:hover { color: var(--danger); border-color: var(--danger); }

.toolbar {
  display: flex; gap: 12px; align-items: center; margin-bottom: 18px; flex-wrap: wrap;
}
.toolbar input[type="search"] { flex: 1 1 240px; max-width: 380px; }
.toolbar select { width: auto; padding: 11px 36px 11px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fbfcfe; font: inherit; font-size: 14.5px; color: var(--ink); }
.toolbar__count { color: var(--muted); font-size: 14.5px; margin-left: auto; }
.filters-toggle { display: none; }

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-1);
  transition: transform .15s ease, box-shadow .15s ease; cursor: pointer; padding: 0; text-align: left; font: inherit;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.product-card__photo { position: relative; background: linear-gradient(180deg, #eef2f8, #e3e9f2); }
.product-card__photo img { width: 100%; height: 190px; object-fit: contain; padding: 8px; }
.badge {
  position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 700;
  padding: 5px 11px; border-radius: 999px; letter-spacing: .02em;
}
.badge--in { background: #e7f8ef; color: #0e9f52; border: 1px solid #bfe9d2; }
.badge--order { background: var(--amber-soft); color: #966400; border: 1px solid #f2ddad; }
.product-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.product-card__meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.color-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(16, 24, 40, .18); flex: none; }
/* Спец-метки карточки в стиле референса заказчика:
   «ТИП ЗАПЧАСТИ → Аналог», «СОСТОЯНИЕ → Новая», «КОД КРАСКИ → …» */
.spec-chips { display: flex; gap: 16px; flex-wrap: wrap; }
.spec-chip {
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.spec-chip span {
  display: block; margin-top: 1px; font-size: 13.5px; font-weight: 800;
  color: var(--ink); text-transform: none; letter-spacing: 0;
}
.product-card__title { font-size: 16.5px; font-weight: 700; line-height: 1.3; margin: 0; }
.product-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; }
.price { font-weight: 800; font-size: 17px; }
.price-note { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 56px 20px; background: var(--surface);
  border: 1px dashed #c8d3e2; border-radius: var(--radius); color: var(--muted);
}
.empty-state strong { display: block; font-size: 18px; color: var(--ink); margin-bottom: 6px; }

/* ---------- Модалка товара ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: none; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(13, 20, 32, .66); backdrop-filter: blur(3px); }
.modal__dialog {
  position: relative; z-index: 1; max-width: 880px; margin: 4vh auto; max-height: 92vh; overflow: auto;
  background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-3);
  width: calc(100% - 32px);
}
.modal__close {
  position: sticky; top: 14px; float: right; margin: 14px 14px 0 0; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(13, 20, 32, .06); color: var(--ink); font-size: 22px; line-height: 1;
}
.modal__close:hover { background: rgba(13, 20, 32, .12); }
.modal__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
.modal__photo { background: linear-gradient(180deg, #eef2f8, #e3e9f2); display: grid; place-items: center; position: relative; align-content: start; grid-template-columns: minmax(0, 1fr); }
/* авторский display перебивает браузерное [hidden] — прячем пустой блок покраски явно */
.paint-box[hidden] { display: none; }
.modal__photo img { width: 100%; height: 100%; object-fit: contain; min-height: 320px; max-height: 420px; padding: 22px; }
.modal__info { padding: 30px 30px 26px; }
.modal__info h3 { font-size: 21px; margin-bottom: 6px; }
.modal__badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.modal__badges .badge { position: static; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 12px 0 18px; }
.spec-table td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table td:first-child { color: var(--muted); width: 44%; padding-right: 12px; }
.spec-table td:last-child { font-weight: 600; }
.modal__price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.modal__price .price { font-size: 24px; }
.modal__cta { display: grid; gap: 10px; }
.modal__compat {
  margin-top: 18px; background: var(--amber-soft); border: 1px solid #f2ddad; color: #6b4700;
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13.5px;
}
.modal__compat strong { display: block; margin-bottom: 2px; }

/* ---------- Навигация по вариантам товара (сторона крыла, цвета, другие детали) ---------- */
.pm-nav { margin: 4px 0 14px; display: grid; gap: 10px; }
.pm-nav__row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.pm-nav__label { color: var(--muted); font-size: 13.5px; min-width: 64px; }
.pm-chip {
  padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); cursor: pointer;
  background: #fbfcfe; font: inherit; font-size: 14px; color: var(--ink-2);
}
.pm-chip:hover:not(:disabled):not(.is-current) { border-color: var(--accent); color: var(--accent); }
.pm-chip.is-current { border-color: var(--accent); background: rgba(31, 107, 255, .08); color: var(--accent); font-weight: 600; cursor: default; }
.pm-chip:disabled { opacity: .45; cursor: default; }
.pm-swatch {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid #d5dce6; cursor: pointer; padding: 0;
  box-shadow: inset 0 0 0 1px rgba(13, 20, 32, .12);
}
.pm-swatch:hover:not(:disabled):not(.is-current) { border-color: var(--accent); transform: scale(1.08); }
.pm-swatch.is-current { border-color: var(--ink); cursor: default; box-shadow: inset 0 0 0 2px #fff; }
.pm-swatch.is-missing { opacity: .3; cursor: default; }
.pm-more { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.pm-more__title { font-size: 15px; margin: 0 0 10px; color: var(--ink-2); }
.pm-more__chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Формы ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: #fbfcfe; font: inherit; font-size: 15px; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 107, 255, .15);
}
.field .err { color: var(--danger); font-size: 12.5px; margin-top: 4px; display: none; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); }
.field.is-invalid .err { display: block; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.consent input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--accent); flex: none; }

/* CTA-блок с формой */
.cta-band {
  background: radial-gradient(700px 300px at 85% 0%, rgba(31, 107, 255, .3), transparent 60%),
              linear-gradient(160deg, #0d1420, #14213a);
  color: #fff; border-radius: 24px; padding: 48px; display: grid;
  grid-template-columns: 1.05fr .95fr; gap: 44px; box-shadow: var(--shadow-3);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #b9c6d8; font-size: 16.5px; }
.cta-band .muted-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cta-band .muted-list li { display: flex; gap: 10px; align-items: flex-start; color: #dbe4f0; font-size: 15px; }
.cta-band .muted-list svg { width: 19px; height: 19px; color: var(--amber); flex: none; margin-top: 2px; }
.cta-band form { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .13); border-radius: 18px; padding: 24px; }
.cta-band .field label { color: #c3cfe0; }
.cta-band .field input, .cta-band .field select, .cta-band .field textarea {
  background: rgba(13, 20, 32, .5); border-color: var(--dark-line); color: #fff;
}
.cta-band .field input::placeholder, .cta-band .field textarea::placeholder { color: #76879f; }
.cta-band .consent { color: #8fa0b8; }
.form-success {
  display: none; background: #e7f8ef; border: 1px solid #bfe9d2; color: #0e9f52;
  border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14.5px; font-weight: 600; margin-bottom: 14px;
}
.form-success.is-visible { display: block; }

/* Подпись под кнопкой заявки: заявка уходит в чат сайта (без имени и телефона) */
.form-note { color: var(--muted); font-size: 13px; margin: 10px 0 0; text-align: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0; margin-bottom: 12px; box-shadow: var(--shadow-1); overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; font-size: 16px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 800; transition: transform .15s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Инфо-страницы (доставка, контакты) ---------- */
.page-hero { background: var(--dark); color: #fff; padding: 44px 0 40px; }
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: #b9c6d8; max-width: 640px; margin: 0; font-size: 16.5px; }
.breadcrumbs { font-size: 13.5px; color: #8fa0b8; margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs a { color: #8fa0b8; }
.breadcrumbs a:hover { color: #fff; }

/* ---------- Блог / статья ---------- */
.post-meta { color: #8fa0b8; font-size: 14px; margin-top: 12px; }
.post { max-width: 780px; }
.post h2 { font-size: 21px; margin: 30px 0 12px; color: var(--ink); }
.post p { line-height: 1.75; color: var(--ink-2); margin: 0 0 14px; }
.post ul { margin: 0 0 14px; padding-left: 22px; }
.post li { line-height: 1.65; margin-bottom: 8px; color: var(--ink-2); }
.post strong { color: var(--ink); }
.post a { color: var(--accent); }
.post-lead { font-size: 17px; }
.post-title { font-size: 24px; margin: 0 0 6px; color: var(--ink); }
.post-sep { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }
.post img { max-width: 100%; height: auto; }
.post-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.post-ill-wrap { margin: 18px auto 4px; }
.post .part-ill { max-width: 340px; margin: 0 auto; cursor: pointer; }
.post-caption { text-align: center; font-size: 13px; color: var(--muted); margin: 6px 0 18px; }
@media (max-width: 560px) { .post h2 { font-size: 19px; } }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-1);
}
.info-card h3 { display: flex; align-items: center; gap: 10px; }
.info-card h3 svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.info-card p, .info-card li { color: var(--muted); font-size: 15px; }
.info-card ul { margin: 0; padding-left: 18px; display: grid; gap: 7px; }
.todo-note {
  display: inline-block; background: var(--amber-soft); border: 1px dashed #e8c56d; color: #7a5200;
  font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-left: 6px; vertical-align: middle;
}
.todo-block {
  background: var(--amber-soft); border: 1px dashed #e8c56d; border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: 14px; color: #6b4700; margin: 14px 0;
}
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose p, .prose li { color: var(--ink-2); }

/* Контакты */
.contacts-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: start; }
.contact-list { display: grid; gap: 4px; }
.contact-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 0; }
.contact-row__icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; flex: none;
}
.contact-row__icon svg { width: 21px; height: 21px; }
.contact-row__label { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.contact-row__value { font-weight: 700; font-size: 16.5px; color: var(--ink); }
.contact-row__value a { color: inherit; }
.map-placeholder {
  border: 2px dashed #c8d3e2; border-radius: var(--radius); background:
    repeating-linear-gradient(45deg, #eef2f8 0 14px, #f6f8fc 14px 28px);
  min-height: 320px; display: grid; place-items: center; text-align: center; color: var(--muted);
  padding: 30px; font-size: 15px;
}
.map-placeholder strong { color: var(--ink); display: block; margin-bottom: 4px; }

/* Яндекс.Карта в «Контактах» (embed-виджет) */
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.map-embed iframe { display: block; width: 100%; border: 0; }
.map-embed__caption { margin: 0; padding: 12px 16px; font-size: 14px; color: var(--muted); background: #fbfcfe; }

/* ---------- Подвал ---------- */
.footer { background: var(--dark); color: #93a4bd; padding: 56px 0 28px; margin-top: 72px; }
.footer a { color: #c3cfe0; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--dark-line); }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; }
.footer__about { font-size: 14.5px; line-height: 1.6; }
.footer__bottom { padding-top: 22px; font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.footer__contacts { font-size: 14.5px; display: grid; gap: 8px; }
.footer__contacts a { font-weight: 700; font-size: 16px; color: #fff; }
.footer__contacts a:hover { color: var(--amber); }

/* ---------- Плавающая панель (мобильные) ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; display: none;
  background: rgba(13, 20, 32, .97); backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.mobile-cta .btn { flex: 1; padding: 12px 8px; font-size: 13.5px; border-radius: 11px; }
body.has-mobile-cta { padding-bottom: 78px; }

/* ---------- Тосты ---------- */
.toast {
  position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%) translateY(16px);
  background: var(--dark); color: #fff; padding: 13px 20px; border-radius: 12px;
  font-size: 14.5px; font-weight: 600; box-shadow: var(--shadow-3); opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; z-index: 400; max-width: calc(100% - 40px); text-align: center;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Анимации ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal { animation: fadeUp .55s ease both; }
.reveal-d1 { animation-delay: .08s; }
.reveal-d2 { animation-delay: .16s; }
.reveal-d3 { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Адаптивность
   ============================================================ */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; padding: 48px 0 56px; }
  .paint-panel { max-width: 560px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters {
    position: static; display: none; border-radius: var(--radius);
  }
  .filters.is-open { display: block; }
  .filters-toggle { display: inline-flex; }
  .cta-band { grid-template-columns: 1fr; padding: 36px 28px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav, .header__cta .btn, .header__phone { display: none; }
  .burger { display: grid; margin-left: auto; }
  .header__in { min-height: 62px; }
  .section { padding: 52px 0; }
  .hero__cta .btn { flex: 1 1 auto; }
  .modal__grid { grid-template-columns: minmax(0, 1fr); }
  .modal__photo img { min-height: 220px; max-height: 260px; }
  .modal__nav { width: 38px; height: 38px; font-size: 22px; }
  .contacts-grid { grid-template-columns: 1fr; }
  .mobile-cta { display: flex; }
  body.has-mobile-cta .footer { padding-bottom: 90px; }
}
@media (max-width: 560px) {
  .cards-grid, .adv-grid, .steps, .info-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .cta-band { padding: 26px 18px; border-radius: 18px; }
  .toolbar__count { margin-left: 0; width: 100%; }
}

/* Статус товара вместо цены (режим «цены скрыты») */
.price--status { color: var(--ink-2); font-weight: 600; font-size: 14px; }
.price--ask { color: var(--accent); text-decoration: underline; cursor: pointer; }

/* Заглушка для карточки товара без фото (товары из CRM) */
.product-card__photo .photo-placeholder {
  display: grid; place-items: center; width: 100%; height: 190px; font-size: 46px; opacity: .55;
}

/* Блок «О каталоге» (текст владельца) */
.about-catalog p { max-width: 760px; color: var(--ink-2); margin: 0 0 12px; }
.about-catalog p:last-child { margin-bottom: 0; }
.about-catalog p:first-child { font-size: 17px; font-weight: 600; color: var(--ink); }

/* Быстрая заявка (контакты): заголовки сверху, форма под ними */
.cta-band--stacked { grid-template-columns: 1fr; gap: 18px; }
.cta-band--stacked .form-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .cta-band--stacked .form-grid { grid-template-columns: 1fr; } }

/* Галерея фотографий в карточке товара */
.modal__thumbs.modal__thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
  .modal__thumbs .modal__thumb {
  width: 64px; height: 64px; min-height: 0; max-height: 64px; padding: 0; object-fit: cover; cursor: zoom-in;
  border: 2px solid transparent; opacity: .8; background: #eef2f8;
}
.modal__thumbs .modal__thumb:hover { opacity: 1; }
.modal__thumbs .modal__thumb.is-active { border-color: var(--accent); opacity: 1; }

/* Стрелки листания галереи в модалке (до увеличения) —
   центрируются относительно рамки главного фото */
.modal__photo-frame { position: relative; width: 100%; }
.modal__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  background: rgba(13, 20, 32, .42); color: #fff; border: 0;
  width: 44px; height: 44px; border-radius: 50%; font-size: 26px; line-height: 1;
  cursor: pointer; display: grid; place-items: center; padding: 0 0 3px;
}
.modal__nav:hover { background: rgba(13, 20, 32, .62); }
.modal__nav[hidden] { display: none; }
.modal__nav--prev { left: 12px; }
.modal__nav--next { right: 12px; }

/* Лайтбокс: увеличенное фото по клику */
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(5,10,18,.93); display: grid; place-items: center; cursor: zoom-out; padding: 24px; }
.lightbox img { max-width: 94vw; max-height: 90vh; object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox__close { position: fixed; top: 16px; right: 20px; background: rgba(255,255,255,.14); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.lightbox__close:hover { background: rgba(255,255,255,.25); }

/* Стрелки листания в лайтбоксе */
.lightbox__nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); color: #fff; border: 0;
  width: 58px; height: 58px; border-radius: 50%; font-size: 36px; line-height: 1;
  cursor: pointer; display: grid; place-items: center; padding: 0 0 4px;
}
.lightbox__nav:hover { background: rgba(255,255,255,.26); }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }

/* Покраска иллюстраций деталей (категории на главной, «под заказ» в модалке) */
.part-ill { display: block; width: 100%; cursor: pointer; }
.part-ill svg { width: 100%; height: auto; display: block; }
.part-ill svg path, .part-ill svg circle, .part-ill svg rect { transition: fill .35s ease; }
.paint-box { display: grid; gap: 10px; place-items: center; min-height: 200px; }
.paint-ill-wrap { width: 100%; max-width: 420px; }
.paint-ill-wrap svg { width: 100%; height: auto; display: block; }
.paint-hint { color: var(--muted); font-size: 13.5px; margin: 0; }
.paint-swatch-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.paint-swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); cursor: pointer; padding: 0; }
.paint-swatch.is-active { border-color: #ffd479; box-shadow: 0 0 0 2px rgba(255,212,121,.45); }
