/* ==========================================================================
   Токены темы
   ========================================================================== */
:root {
  --plaster: #EBE6D8;
  --plaster-deep: #DED7C2;
  --surface: #FFFFFF;
  --ink: #1B1B16;
  --ink-soft: #58564A;
  --ink-faint: #8C8977;
  --accent: #2A6B52;
  --accent-ink: #F1FAF5;
  --accent-soft: #DCEEE3;
  --clay: #2A6B52;
  --clay-ink: #F1FAF5;
  --line: #CFC6AC;
  --danger: #B8442F;
  --shadow: 0 1px 0 rgba(30, 28, 20, 0.05);
  --shadow-lift: 0 18px 34px -24px rgba(30, 28, 20, 0.18);
  --radius-s: 8px;
  --radius-m: 12px;
  --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', monospace;
}

/* ==========================================================================
   Сброс и база
   ========================================================================== */
* { box-sizing: border-box; }
/* Фоновый узор — раскладка отделочных панелей со сдвигом рядов (как при
   монтаже вразбежку), очень бледная, почти не читается как рисунок —
   просто фактура вместо плоской заливки. */
body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--plaster);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='480'%20height='120'%3E%3Cg%20stroke='rgba(27,27,22,0.09)'%20stroke-width='1.5'%3E%3Cline%20x1='0'%20y1='60'%20x2='480'%20y2='60'/%3E%3Cline%20x1='240'%20y1='0'%20x2='240'%20y2='60'/%3E%3Cline%20x1='120'%20y1='60'%20x2='120'%20y2='120'/%3E%3Cline%20x1='360'%20y1='60'%20x2='360'%20y2='120'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* «Линия реза» — разделитель между блоками, отсылка к резке ГКЛ по месту сгиба */
.scoreline {
  position: relative;
  height: 1px;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 18px);
}
.scoreline span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--plaster);
  padding: 4px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; text-wrap: balance; margin: 0; letter-spacing: 0.01em; }
p { margin: 0; }
a { color: inherit; }
button { font-family: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 20px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
section { padding-block: 56px; }
@media (min-width: 760px) { section { padding-block: 84px; } }

/* ==========================================================================
   Шапка
   ========================================================================== */
.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  /* Локальные переопределения — фон шапки тёмно-зелёный, поэтому весь текст
     (не только приглушённый) пересчитан под него отдельно: тёмный текст
     на тёмном фоне сливался, здесь — светлый, заведомо читаемый. */
  --ink: #F5F7F1;
  --ink-faint: #B9C7BC;
  --accent: #9FCBAE;
  --line: #4A6B58;
  color: var(--ink);
  background: color-mix(in srgb, #3D5A4A 96%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 20px -16px rgba(10, 16, 12, 0.32);
  padding-bottom: 14px;
}
.topbar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding-top: 12px;
}
.topbar__toprow { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand__name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
}
.brand__icon { width: 0.86em; height: 0.86em; flex: none; }
.footer__brand { display: inline-flex; align-items: center; gap: 7px; }
.footer__brand .brand__icon { width: 0.86em; height: 0.86em; }
.topbar__tagline {
  font-size: 14.5px;
  color: var(--ink-faint);
  margin-top: 4px;
}
.brand__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  width: 100%;
  margin-top: 10px;
  padding-top: 10px;
  padding-bottom: 12px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.brand__nav a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand__nav a:hover, .brand__nav a:focus-visible { color: var(--accent); text-decoration: underline; }
/* Аккордеон «Каталог продукции» в меню — на десктопе выпадает панелью под
   пунктом меню, на мобильном (внутри уже свёрнутого гамбургер-меню) просто
   раскрывается отступленным списком на месте. */
.navAccordion { position: relative; }
.navAccordion__toggle {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  display: inline-flex; align-items: center; gap: 4px;
  background: transparent; background-image: none; border: 0; border-radius: 0;
  padding: 0; margin: 0; box-shadow: none; cursor: pointer;
  font: inherit; font-family: var(--font-mono); font-size: 14.5px; letter-spacing: 0.02em;
  color: var(--ink);
}
.navAccordion__toggle:hover { color: var(--accent); }
.navAccordion__caret { font-size: 10px; transition: transform 0.15s ease; }
.navAccordion__toggle[aria-expanded="true"] .navAccordion__caret { transform: rotate(180deg); }
.navAccordion__panel { list-style: none; margin: 0; padding: 0; }
.navAccordion__panel[hidden] { display: none !important; }
.navAccordion__panel a { font-size: 14px; }
@media (min-width: 760px) {
  .navAccordion__panel:not([hidden]) {
    position: absolute; top: calc(100% + 12px); left: 0;
    display: flex; flex-direction: column; gap: 8px;
    min-width: 190px; padding: 12px 16px;
    background: #FFFFFF; border: 1px solid #CFC6AC; border-radius: var(--radius-s);
    box-shadow: var(--shadow-lift);
    z-index: 50;
  }
  .navAccordion__panel a { color: #1B1B16; }
  .navAccordion__panel a:hover { color: var(--accent); }
}
@media (max-width: 759px) {
  .navAccordion__panel:not([hidden]) { display: flex; flex-direction: column; gap: 8px; padding: 8px 0 2px 14px; }
  .navAccordion__panel a { color: var(--ink-faint); }
}
/* Вложенный флайаут «Гипсокартон → Ламинированный / Окрашенный» — на десктопе
   раскрывается сбоку по наведению, на мобильном (внутри уже открытого
   аккордеона) показан сразу отступленным списком. */
.navAccordion__sub { position: relative; }
.navAccordion__sub > a { display: flex; align-items: center; gap: 4px; }
.navAccordion__caret--side { font-size: 9px; }
.navAccordion__subPanel { list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) {
  .navAccordion__subPanel {
    display: none;
    position: absolute; top: -12px; left: 100%;
    flex-direction: column; gap: 8px;
    min-width: 170px; padding: 12px 16px;
    background: #FFFFFF; border: 1px solid #CFC6AC; border-radius: var(--radius-s);
    box-shadow: var(--shadow-lift);
    z-index: 60;
  }
  .navAccordion__subPanel a { color: #1B1B16; }
  .navAccordion__subPanel a:hover { color: var(--accent); }
  .navAccordion__sub:hover > .navAccordion__subPanel,
  .navAccordion__sub:focus-within > .navAccordion__subPanel { display: flex; }
}
@media (max-width: 759px) {
  .navAccordion__subPanel { display: flex; flex-direction: column; gap: 6px; padding: 6px 0 2px 14px; }
  .navAccordion__subPanel a { color: var(--ink-faint); font-size: 13.5px; }
}
.navToggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1.5px solid rgba(245, 247, 241, 0.6);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.navToggle:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 759px) {
  .navToggle { display: inline-flex; }
  .topbar__toprow { width: 100%; }
  .brand__nav { display: none; flex-direction: column; align-items: flex-start; gap: 10px; }
  .brand__nav[data-open="true"] { display: flex; }
  /* Корзина поднята под гамбургер и выровнена с ним по правому краю, а не
     стоит в общей строке с кнопкой «Подобрать материал». */
  .topbar__top { position: relative; }
  .cartIcon { position: absolute; top: 52px; right: 0; }
  /* Кнопка «Подобрать материал» + email занимают отдельную строку на всю
     ширину — .topbar__ctawrap уже center-ит своё содержимое. */
  .topbar__ctawrap { flex-basis: 100%; }
  /* Слоган под шапкой скрыт — на узких экранах он визуально раздувал шапку. */
  .topbar__tagline { display: none; }
}
.topbar__contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 8px;
}
.topbar__phone {
  font-family: var(--font-mono);
  font-size: 16.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.topbar__phone span { display: block; font-family: var(--font-body); font-size: 11px; color: var(--ink-faint); font-weight: 400; }
.topbar__ctawrap { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.topbar__email {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-faint);
  text-decoration: none;
  white-space: nowrap;
}
.topbar__email:hover { color: var(--accent); text-decoration: underline; }
/* Корзина — иконка со счётчиком в шапке и строки товара на странице cart.html */
.cartIcon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1.5px solid rgba(245, 247, 241, 0.6); border-radius: 8px; color: var(--ink); flex: none; align-self: flex-start; }
.cartIcon:hover { border-color: var(--accent); color: var(--accent); }
.cartIcon__badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: #C63927; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; line-height: 1; border: 2px solid var(--surface); }
.cartRow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cartRow__swatch { width: 48px; height: 48px; border-radius: var(--radius-s); border: 2px solid #FFFFFF; box-shadow: inset 0 0 0 1px var(--line); flex: none; }
.cartRow__info { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cartRow__info a { color: var(--ink); font-weight: 600; text-decoration: none; }
.cartRow__info a:hover { color: var(--accent); }
.cartRow__price { font-size: 13px; color: var(--ink-soft); }
.cartRow__qty { display: flex; align-items: center; gap: 6px; flex: none; }
.cartRow__qty button { width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 6px; background: var(--plaster); cursor: pointer; font-size: 15px; line-height: 1; }
.cartRow__qty input { width: 52px; text-align: center; border: 1px solid var(--line); border-radius: 6px; padding: 4px; font-family: var(--font-mono); font-size: 13.5px; }
.cartRow__total { font-weight: 700; min-width: 90px; text-align: right; flex: none; }
.cartRow__remove { width: 28px; height: 28px; border: 0; background: none; color: var(--ink-faint); cursor: pointer; font-size: 16px; flex: none; }
.cartRow__remove:hover { color: #C63927; }

/* Кнопка «Подобрать материал» в шапке — отдельный оранжевый акцент (не путать
   с общим зелёным по сайту), чтобы не сливаться с тёмно-зелёным фоном шапки,
   плюс мерцающий блик для привлечения внимания. */
.topbar__contact .btn--clay {
  position: relative;
  overflow: hidden;
  background: #E8873A;
  color: #2A1200;
}
.topbar__contact .btn--clay:hover { background: color-mix(in srgb, #E8873A 88%, white); }
.topbar__contact .btn--clay::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 45%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: skewX(-20deg);
  animation: btn-shimmer 3.4s ease-in-out infinite;
}
@keyframes btn-shimmer {
  0% { left: -60%; }
  55% { left: 130%; }
  100% { left: 130%; }
}
@media (prefers-reduced-motion: reduce) {
  .topbar__contact .btn--clay::after { animation: none; }
}


/* ==========================================================================
   Кнопки / чипы / инпуты
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  padding: 12px 22px;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--clay {
  background: var(--clay);
  color: var(--clay-ink);
  border-radius: var(--radius-s);
}
.btn--clay:hover { background: color-mix(in srgb, var(--clay) 88%, white); }
.btn--ghost { background: transparent; border-color: var(--ink-faint); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn--sm { padding: 8px 14px; font-size: 14.5px; }
.btn--block { width: 100%; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="number"],
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 16.5px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--plaster);
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 90px; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field--invalid input { border-color: var(--danger); }
.field__err { font-size: 13.5px; color: var(--danger); display: none; }
.field--invalid .field__err { display: block; }
.filepick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filepick__input {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.filepick__input:focus-visible + .field__filename { outline: 2px solid var(--accent); outline-offset: 2px; }
.field__filename { font-size: 14px; color: var(--ink-faint); }
.field__filename[data-has-file="true"] { color: var(--accent); font-weight: 600; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--plaster);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}
.chip:hover { border-color: var(--ink-faint); }
.chip[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.chip .mono { font-size: 12px; opacity: 0.75; }

/* ==========================================================================
   Hero + спецификация
   ========================================================================== */
.hero {
  padding-top: 28px; padding-bottom: 24px;
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  box-sizing: border-box;
}
.hero__inner { width: 100%; position: relative; z-index: 1; }
.hero__grid { position: relative; z-index: 1; display: grid; gap: 28px; align-items: stretch; }
/* Малярный валик — декоративный штрих в свободной области hero, отсылка
   к теме окраски ГКЛ. Фоном, вне потока, не мешает содержимому. */
.hero__decor {
  position: absolute;
  top: 4%;
  right: 6%;
  width: clamp(90px, 12vw, 150px);
  height: auto;
  color: var(--accent);
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
  transform: rotate(-10deg);
}
@media (max-width: 859px) { .hero__decor { display: none; } }
@media (min-width: 860px) { .hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: 40px; } }
.hero__title {
  font-size: clamp(22px, 3.2vw, 32px);
  line-height: 1.08;
  margin-top: 10px;
}
.hero__title em { font-style: normal; color: var(--accent); }
.hero__kicker {
  position: relative;
  z-index: 1;
  font-size: clamp(30px, 4.8vw, 46px);
  line-height: 1.05;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.hero__lead { margin-top: 0; max-width: 46ch; color: var(--ink-soft); font-size: 18px; }
.hero__lead + .hero__lead { margin-top: 8px; }
.hero__lead-accent { color: #E8873A; font-weight: 700; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero__specnotes { margin-top: 18px; display: flex; flex-direction: column; gap: 4px; }
.hero__specnote { font-size: 12.5px; color: var(--ink-soft); }
.hero__leadarrow { margin-top: 16px; }
/* На широких экранах рядом стоит карточка квиза — оформляем текст стрелкой,
   указывающей на неё, чтобы взгляд шёл от описания к действию. */
@media (min-width: 860px) {
  .hero__leadarrow {
    position: relative;
    background: transparent;
    padding: 16px 40px 16px 20px;
    max-width: 50ch;
    filter: drop-shadow(0 16px 24px rgba(20, 20, 16, 0.22));
  }
  /* Обводка снизу-справа собрана из двух слоёв одной формы (::before и ::after)
     вместо filter: drop-shadow — тот рендерился непредсказуемо на скошенном
     острие. Нижний (оранжевый) слой смещён вниз-вправо и выглядывает из-под
     верхнего (зелёного); текст лежит поверх обоих как обычный контент. */
  .hero__leadarrow::before,
  .hero__leadarrow::after {
    content: '';
    position: absolute;
    inset: 0;
    clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%);
  }
  .hero__leadarrow::before {
    z-index: -2;
    background: #E8873A;
    transform: translate(5px, 5px);
  }
  .hero__leadarrow::after {
    z-index: -1;
    background: #DADAD7;
    box-shadow: 0 16px 24px rgba(20, 20, 16, 0.22);
  }
  .hero__leadarrow .hero__lead { color: var(--ink); font-weight: 500; }
}

.specplate {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  border-radius: var(--radius-m);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 380px;
  justify-self: center;
}
@media (min-width: 860px) {
  .specplate { margin-top: 32px; }
}
.specplate__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.specplate__bar { height: 3px; background: var(--line); margin: 0; }
.specplate__bar i { display: block; height: 100%; width: 14%; background: #E8873A; }
.specplate__body { padding: 18px 16px 6px; display: flex; flex-direction: column; justify-content: center; flex: 1; }
.specplate__body h4 { font-family: var(--font-body); font-size: 16.5px; font-weight: 700; margin-bottom: 12px; }
.specplate__opts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: stretch; }
.specplate__opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  height: 100%;
  min-width: 0;
  box-sizing: border-box;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--plaster);
  padding: 12px 12px;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--ink);
}
.specplate__opt:hover { border-color: var(--ink-faint); }
.specplate__opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
/* Обводка мигает по очереди у каждой карточки — привлекает взгляд к выбору,
   пока покрытие ещё не выбрано; после выбора анимация останавливается. */
.specplate__opts .specplate__opt:not([aria-pressed="true"]) {
  animation: specOptPulse 3s ease-in-out infinite;
}
.specplate__opts .specplate__opt:nth-child(2) { animation-delay: 1.5s; }
@keyframes specOptPulse {
  0%, 100% { border-color: var(--line); box-shadow: none; }
  50% { border-color: #E8873A; box-shadow: 0 0 0 4px #FBE3C7; }
}
@media (prefers-reduced-motion: reduce) {
  .specplate__opts .specplate__opt { animation: none; }
}
.specplate__opt b { display: block; font-size: 15.5px; font-weight: 700; margin-bottom: 3px; overflow-wrap: break-word; word-break: break-word; }
.specplate__opt span { display: block; font-size: 12.5px; color: var(--ink-faint); line-height: 1.35; }
.specplate__foot { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.specplate__more { font-size: 14px; color: var(--ink-soft); text-align: center; }
.specplate__more a { color: var(--accent); font-weight: 600; text-decoration: none; }
.specplate__more a:hover { text-decoration: underline; }

/* ==========================================================================
   Квиз
   ========================================================================== */
.quiz {
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  border-radius: var(--radius-m);
}
.quiz__close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 5;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
.quiz__close:hover { border-color: var(--ink-faint); }
.quiz__layout { display: grid; grid-template-columns: 1fr; }
@media (min-width: 860px) { .quiz__layout { grid-template-columns: 220px 1fr; } }

.quiz__rail {
  background: var(--plaster-deep);
  border-bottom: 1px solid var(--line);
  padding: 18px 16px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
}
@media (min-width: 860px) {
  .quiz__rail { flex-direction: column; border-bottom: none; border-right: 1px solid var(--line); overflow-x: visible; }
}
.rail__step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-faint);
  white-space: nowrap;
  flex: none;
}
.rail__num {
  font-family: var(--font-mono);
  font-size: 13.5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-grid;
  place-items: center;
  flex: none;
}
.rail__step[data-state="done"] { color: var(--ink); }
.rail__step[data-state="done"] .rail__num { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.rail__step[data-state="active"] { color: var(--ink); font-weight: 700; }
.rail__step[data-state="active"] .rail__num { border-color: var(--clay); color: var(--clay); font-weight: 700; }

.quiz__main { padding: 22px 18px 24px; }
@media (min-width: 760px) { .quiz__main { padding: 30px 34px 32px; } }
.quiz__progress { font-family: var(--font-mono); font-size: 13.5px; color: var(--ink-faint); margin-bottom: 6px; }
.quiz__bar { height: 3px; background: var(--line); border-radius: 2px; margin-bottom: 22px; overflow: hidden; }
.quiz__bar i { display: block; height: 100%; background: var(--clay); transition: width 0.25s ease; }

.step { display: none; animation: stepin 0.22s ease; }
.step[data-active="true"] { display: block; }
@keyframes stepin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .step { animation: none; } }

.step h3 { font-size: 26.5px; margin-bottom: 4px; }
.step__hint { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 20px; }

.option-cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .option-cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.option-card {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--plaster);
  padding: 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.option-card:hover { border-color: var(--ink-faint); }
.option-card[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.option-card__title { font-family: var(--font-body); font-size: 20px; font-weight: 700; letter-spacing: -0.005em; margin-top: 2px; }
.option-card__desc { font-size: 14.5px; color: var(--ink-soft); }
.option-card__tag { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.06em; }

.chiprow { display: flex; flex-wrap: wrap; gap: 10px; }

.swatchgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 6px; }
.swatch {
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--plaster);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
}
.swatch[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--clay); }
.swatch__color { display: block; height: 52px; width: 100%; position: relative; overflow: hidden; isolation: isolate; background-size: cover; background-position: center; }
.swatch__photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.swatch__label { padding: 6px 8px 8px; min-height: 70px; display: flex; flex-direction: column; gap: 2px; }
.swatch__name {
  font-size: 13.5px; font-weight: 600; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.swatch__code { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); }

.mono-palette-layout { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
@media (min-width: 760px) { .mono-palette-layout { grid-template-columns: 1fr 200px; } }
.mono-palette-main { min-width: 0; }
.mono-hue-aside { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }

.popular-ral {
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-m);
  padding: 14px 14px 16px;
}
.popular-ral__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
}
.popular-ral__head .mono { font-size: 12px; font-weight: 500; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; }
.popular-ral .swatchgrid { margin-top: 0; }
.popular-ral .swatch { background: var(--surface); }

.palette-collapsed {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  border: 1px solid var(--line);
  background: var(--plaster);
  border-radius: var(--radius-m);
  padding: 10px 12px;
  margin-top: 18px;
}
.palette-collapsed > .btn { flex: none; }
.palette-collapsed__swatch { width: 40px; height: 40px; border-radius: var(--radius-s); border: 1px solid var(--line); flex: none; }
.palette-collapsed__info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.palette-collapsed__name { font-weight: 700; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-collapsed__code { font-size: 12px; color: var(--ink-faint); }

.searchbox { position: relative; margin-bottom: 14px; max-width: 260px; }
.searchbox input {
  width: 100%;
  font-family: var(--font-mono);
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--plaster);
  color: var(--ink);
  font-size: 14.5px;
}
.catalog__tabs { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.catalog__tab {
  flex: 1 1 220px;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-m);
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.catalog__tab:hover { border-color: var(--ink-faint); }
.catalog__tab[aria-selected="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.catalog__tab-title { font-family: var(--font-body); font-weight: 700; font-size: 18px; }
.catalog__tab-sub { font-size: 12px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.05em; }
.catalog__tab[aria-selected="true"] .catalog__tab-sub { color: var(--ink-soft); }

.catalog__search-bar { margin-bottom: 18px; }
.searchbox--wide { max-width: 420px; margin-bottom: 0; }
.searchbox--wide input { padding: 13px 16px; font-size: 16.5px; border-color: var(--ink-faint); }
.searchbox--wide input:focus { border-color: var(--accent); }

.calcnote {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--accent-soft);
  border-radius: var(--radius-s);
  font-size: 14.5px;
  border: 1px dashed var(--accent);
}
.calcnote b { font-family: var(--font-mono); }

.grid2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.grid3 { display: grid; gap: 14px; grid-template-columns: 1fr; max-width: 480px; }
@media (min-width: 560px) { .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; } }

.deliverycalc { border-top: 1px dashed var(--line); padding-top: 4px; }
.deliverycalc .calcnote { display: grid; gap: 4px; }
.deliverycalc .calcnote b { font-family: var(--font-mono); }

.step__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; gap: 10px; }
.step__nav-right { display: flex; gap: 10px; }

.summary-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.summary-chip { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 6px 10px; font-size: 13.5px; background: var(--plaster); }
.summary-chip b { font-family: var(--font-mono); }

.donecard { text-align: center; padding-block: 8px; }
.donecard__badge {
  width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; margin: 0 auto 16px; font-size: 28.5px; font-family: var(--font-mono);
}
.donecard h3 { font-size: 30.5px; }
.donecard__num { font-family: var(--font-mono); color: var(--ink-faint); margin-top: 4px; }
.donecard__list { text-align: left; max-width: 420px; margin: 22px auto 0; display: grid; gap: 8px; }
.donecard__list li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 6px; font-size: 14.5px; }
.donecard__list li b { font-weight: 600; }

.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-soft); }
.checkline input { margin-top: 3px; }

/* ==========================================================================
   Каталог
   ========================================================================== */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); }
.section-head__lead { color: var(--ink-soft); max-width: 48ch; margin-top: 8px; }

.catalog__layout { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .catalog__layout { grid-template-columns: 240px 1fr; } }

.filters { display: flex; flex-direction: column; gap: 22px; }
.filters__group h4 { font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); font-family: var(--font-mono); margin-bottom: 10px; font-weight: 600; }
.filters__list { display: flex; flex-direction: column; gap: 8px; }
.filters__check { display: flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
.filters__count { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.filters__reset { align-self: flex-start; }

.catalog__meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 14.5px; color: var(--ink-soft); }
.catalog__sort select { font-family: var(--font-mono); font-size: 13.5px; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); color: var(--ink); }

.catalog-groups { display: flex; flex-direction: column; gap: 10px; }
.catalog-group {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-m);
  padding: 4px;
}
.catalog-group__head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 10px;
  text-align: left;
  color: var(--ink);
}
.catalog-group__name { font-family: var(--font-body); font-weight: 700; font-size: 16.5px; }
.catalog-group__count {
  font-size: 12px;
  color: var(--ink-faint);
  background: var(--plaster);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
}
.catalog-group__chevron { margin-left: auto; font-family: var(--font-mono); font-size: 20px; color: var(--ink-faint); }
.catalog-group__head[aria-expanded="true"] .catalog-group__chevron { color: var(--clay); }
.catalog-group > .cards { padding: 6px 10px 12px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.card {
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-m);
}
.card__preview { height: 120px; position: relative; overflow: hidden; isolation: isolate; background-size: cover; background-position: center; cursor: zoom-in; }
.card__preview-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card__preview-zoom {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(20, 18, 12, 0);
  opacity: 0; transition: opacity 0.15s ease, background 0.15s ease;
}
.card__preview:hover .card__preview-zoom,
.card__preview:focus-visible .card__preview-zoom {
  opacity: 1; background: rgba(20, 18, 12, 0.32);
}
.card__preview:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.card__preview .card__type {
  position: absolute; top: 8px; left: 8px;
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
  background: rgba(20,19,16,0.55); color: #fff; padding: 3px 7px; border-radius: 999px;
}
.card__preview .card__stock {
  position: absolute; top: 8px; right: 8px;
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--clay); color: var(--clay-ink); padding: 3px 7px; border-radius: 999px;
}
.card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__name { font-family: var(--font-body); font-size: 18px; font-weight: 700; line-height: 1.2; letter-spacing: -0.005em; }
.card__code { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.card__specs { font-size: 13.5px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 2px; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 10px; }
.card__price { font-family: var(--font-mono); font-weight: 600; font-size: 16.5px; }
.card__price span { font-family: var(--font-mono); font-weight: 500; font-size: 14.5px; color: var(--ink-soft); margin-left: 1px; }

.empty-state { text-align: center; padding: 48px 20px; color: var(--ink-soft); border: 1px dashed var(--line); border-radius: var(--radius-m); }

/* ==========================================================================
   Галерея
   ========================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 170px;
  grid-auto-flow: dense;
  gap: 12px;
}
.gallery__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-m);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 12px 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: #F4F0E4;
  background: linear-gradient(0deg, rgba(10, 9, 6, 0.82), transparent);
}
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .gallery__item--tall { grid-row: span 1; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: span 1; }
}

/* ==========================================================================
   Калькулятор материала
   ========================================================================== */
.calcbox {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 20px;
  border-radius: var(--radius-m);
}
.calcbox__input { max-width: 220px; margin-bottom: 18px; }
.calc-table { overflow-x: auto; }
.calc-table__el { width: 100%; border-collapse: collapse; font-size: 15px; }
.calc-table__el th, .calc-table__el td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
/* Сравнительные таблицы (заводская покраска / панели vs классическая отделка) — длинные
   формулировки, поэтому перенос строк разрешён и колонки фиксированы, чтобы не было
   горизонтальной прокрутки на десктопе. */
.calc-table--cmp table { table-layout: fixed; width: 100%; }
.calc-table--cmp th, .calc-table--cmp td { white-space: normal; }
.calc-table--cmp th:first-child, .calc-table--cmp td:first-child { width: 22%; }
.calc-table__el th { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); font-weight: 600; }
.calc-table__el td { font-family: var(--font-mono); font-weight: 600; }
.calc-table__el td:first-child { font-weight: 500; color: var(--ink-soft); }
.calc-table__el tr:last-child td { border-bottom: none; }

/* ==========================================================================
   Доверие / спецификация УТП
   ========================================================================== */
/* ==========================================================================
   Профиль
   ========================================================================== */
.profiles__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 620px) { .profiles__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.profile-card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 18px 16px;
  border-radius: var(--radius-m);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* Шахматный фон, как в «Преимуществах», но в оранжевых, а не зелёных тонах —
   чтобы разделы визуально отличались друг от друга. */
.profiles__grid .profile-card:nth-child(even) { background: #FBE7D3; }
.profile-card__photo {
  display: block;
  width: 100%;
  height: 100px;
  background: transparent;
  border-radius: var(--radius-s);
  flex: none;
}
.profile-card__photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.profile-card__body { min-width: 0; }
@media (min-width: 480px) {
  .profile-card { flex-direction: row; align-items: flex-end; }
  .profile-card__photo { width: 96px; height: 96px; }
}
.profile-card h4 { font-family: var(--font-body); font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.profile-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.profile-card p.is-expanded { -webkit-line-clamp: unset; overflow: visible; }
.profile-card__links { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 6px; }
.profile-card__more {
  display: block;
  padding: 0;
  border: none;
  background: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.profile-card__more:hover { text-decoration: underline; }

.trust { background: var(--plaster-deep); }
.trust__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border: 1px solid var(--line); overflow: hidden; background: var(--surface); border-radius: var(--radius-m); }
/* Карточка товара в каталоге продукции — квадратная, фиксированной ширины
   (не растягивается на всю строку, если позиция одна). Превью-цвет с белой
   окантовкой, чтобы не сливался с фоном страницы. */
.catalogGrid { display: grid; grid-template-columns: repeat(auto-fill, 240px); gap: 18px; }
.catalogCard { display: flex; flex-direction: column; width: 100%; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; background: var(--surface); text-decoration: none; color: inherit; transition: box-shadow 0.15s ease, transform 0.15s ease; }
.catalogCard:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.catalogCard__img { aspect-ratio: 1; width: 100%; border-bottom: 1px solid var(--line); border: 3px solid #FFFFFF; box-sizing: border-box; box-shadow: inset 0 0 0 1px var(--line); }
.catalogCard__body { padding: 14px 16px 16px; }
.catalogCard__body h4 { margin: 0 0 4px; font-size: 15.5px; font-weight: 700; }
.catalogCard__body p { margin: 0; font-size: 13.5px; color: var(--ink-soft); }
.trust__item { padding: 22px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.trust__item:last-child { border-right: none; }
/* Раздел «Преимущества» — тот же грид, что и «Доверие», но своя раскладка
   (2×3) и чередующийся фон блоков вместо сплошного белого. */
#advantages .trust__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: none;
  overflow: visible;
  background: transparent;
  border-radius: 0;
}
@media (min-width: 620px) { #advantages .trust__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
#advantages .trust__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 16px 12px;
}
@media (min-width: 620px) { #advantages .trust__item { padding: 20px 18px; } }
#advantages .trust__item:last-child { border: 1px solid var(--line); }
#advantages .trust__item:nth-child(odd) { background: var(--surface); }
#advantages .trust__item:nth-child(even) { background: var(--accent-soft); }
#advantages .trust__num { font-size: 30px; font-weight: 800; }
@media (max-width: 619px) { #advantages .trust__item h4 { font-size: 17.5px; } }
.trust__num { font-family: var(--font-mono); font-size: 13.5px; color: var(--clay); font-weight: 700; }
.trust__item h4 { font-size: 20px; margin: 6px 0 6px; font-family: var(--font-body); font-weight: 700; overflow-wrap: break-word; word-break: break-word; }
.trust__item p { font-size: 14.5px; color: var(--ink-soft); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 760px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-body); font-size: 18px; font-weight: 600; color: var(--ink);
}
.faq__q::after { content: '+'; font-family: var(--font-mono); font-size: 22.5px; color: var(--ink-faint); flex: none; }
.faq__item[data-open="true"] .faq__q::after { content: '–'; }
.faq__a { display: none; padding: 14px 16px 18px; margin-bottom: 4px; color: var(--ink-soft); font-size: 15.5px; background: color-mix(in srgb, var(--plaster) 45%, white); border-radius: var(--radius-s); }
.faq__item[data-open="true"] .faq__a { display: block; }

/* ==========================================================================
   Футер
   ========================================================================== */
.breadcrumbs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 14px 0 0; font-size: 13px; color: var(--ink-faint); }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span[aria-current] { color: var(--ink-soft); }

.footer { background: var(--ink); color: var(--plaster); }
.footer a { text-decoration: none; }
.footer__grid { display: grid; gap: 28px; grid-template-columns: 1fr; padding-block: 36px 24px; }
@media (min-width: 560px) { .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.2fr 0.8fr 0.8fr minmax(0, 1fr); } }
.footer__brand { font-family: var(--font-display); font-size: 26.5px; font-weight: 800; }
.footer__seo { color: color-mix(in srgb, var(--plaster) 65%, transparent); font-size: 14.5px; margin-top: 12px; max-width: 46ch; }
.footer h5 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: color-mix(in srgb, var(--plaster) 55%, transparent); margin-bottom: 12px; }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.footer__bottom { border-top: 1px solid color-mix(in srgb, var(--plaster) 18%, transparent); padding-block: 16px; font-size: 13.5px; color: color-mix(in srgb, var(--plaster) 55%, transparent); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

.skiplink { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; z-index: 100; }
.skiplink:focus { left: 12px; top: 12px; }

/* ==========================================================================
   Закреплённая кнопка «Подобрать» — только для мобильных, чтобы CTA
   всегда был в зоне большого пальца и не терялся при долгом скролле.
   ========================================================================== */
.mobilecta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 20px -16px rgba(30, 28, 20, 0.18);
}
.mobilecta span { font-size: 14.5px; font-weight: 600; color: var(--ink); }
@media (max-width: 759px) {
  .mobilecta { display: flex; }
  body { padding-bottom: 64px; }
}

/* ==========================================================================
   Лайтбокс — всплывающее превью декора (клик по превью в каталоге)
   ========================================================================== */
body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 18, 12, 0.5);
  opacity: 0;
  transition: opacity 0.16s ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox__box {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  transform: scale(0.96);
  transition: transform 0.16s ease;
}
.lightbox.is-open .lightbox__box { transform: scale(1); }
.lightbox__media { width: 100%; aspect-ratio: 4 / 3; background: var(--plaster-deep); }
.lightbox__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lightbox__swatch { position: relative; width: 100%; height: 100%; background-size: cover; background-position: center; }
.lightbox__info { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 18px; }
.lightbox__name { font-family: var(--font-body); font-weight: 700; font-size: 18px; }
.lightbox__code { font-size: 13.5px; color: var(--ink-faint); }
.lightbox__close {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { border-color: var(--ink-faint); }

/* ==========================================================================
   Калькулятор материала — всплывающее окно (кнопка в hero + ссылки в навигации)
   ========================================================================== */
.hero__calcbtn { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; }
.btn--accent-orange { background: #E8873A; color: #2A1200; }
.btn--accent-orange:hover { background: color-mix(in srgb, #E8873A 88%, white); }
/* Мерцающая окантовка — пульсирующее кольцо вокруг кнопки, привлекает взгляд */
.btn--pulse-glow { animation: btnPulseGlow 2.2s ease-in-out infinite; }
@keyframes btnPulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 135, 58, 0.55); }
  50% { box-shadow: 0 0 0 8px rgba(232, 135, 58, 0); }
}
@media (prefers-reduced-motion: reduce) { .btn--pulse-glow { animation: none; } }
.calcmodal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 18, 12, 0.5);
  opacity: 0;
  transition: opacity 0.16s ease;
  overflow-y: auto;
}
.calcmodal.is-open { opacity: 1; }
.calcmodal__box {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin-block: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-lift);
  padding: 28px 24px;
  transform: scale(0.96);
  transition: transform 0.16s ease;
}
.calcmodal.is-open .calcmodal__box { transform: scale(1); }
.calcmodal__box h2 { margin-top: 6px; font-size: clamp(24px, 3.4vw, 32px); }
.calcmodal__box .calcbox { margin-top: 20px; }
.calcmodal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1;
  cursor: pointer;
}
.calcmodal__close:hover { border-color: var(--ink-faint); }

.docmodal__box { max-width: 900px; }
.docmodal__wrap { position: relative; width: 100%; height: 78vh; overflow: hidden; border-radius: var(--radius-s); background: var(--plaster); }
.docmodal__wrap.is-zoomed { overflow: visible; }
.docmodal__wrap iframe { display: block; width: 100%; height: 100%; border: 0; transition: transform 0.2s ease; }
.docmodal__wrap--rotated { height: 56vh; }
.docmodal__wrap--rotated iframe { position: absolute; top: 50%; left: 50%; width: 56vh; height: 79vh; transform: translate(-50%, -50%) rotate(270deg); }
.docmodal__zoomcatch { position: absolute; inset: 0; cursor: zoom-in; }
.docmodal__wrap.is-zoomed .docmodal__zoomcatch { cursor: zoom-out; }
.docmodal__wrap.is-zoomed iframe { transform: scale(1.4); transform-origin: center center; }
.docmodal__wrap--rotated.is-zoomed iframe { transform: translate(-50%, -50%) rotate(270deg) scale(1.4); }

@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox__box, .calcmodal, .calcmodal__box { transition: none; }
}
