/* ============================================================
   DESIGN TOKENS — ECOBIN 2025 refresh
   Palette: Deep Forest / Warm Brass / Clean Paper
============================================================ */
:root {
  /* Forest greens — deeper, more authoritative */
  --c-forest-deep:  #060E06;
  --c-forest:       #183318;
  --c-forest-mid:   #1F4A1F;
  --c-moss:         #3A7A4A;

  /* Warm Brass (replaces bark orange) */
  --c-brass:        #A88652;
  --c-brass-light:  #C9A870;
  --c-brass-pale:   #F2E8D5;

  /* Neutrals — clean, contemporary */
  --c-stone:        #EDEAE3;
  --c-stone-light:  #F5F3EE;
  --c-white:        #FFFFFF;
  --c-ink:          #0E0E0E;
  --c-ink-mid:      #2E2E2E;
  --c-muted:        #7A7A7A;

  /* Semantic */
  --c-primary:      var(--c-forest-mid);
  --c-primary-dark: var(--c-forest);
  --c-accent:       var(--c-brass);
  --c-bg:           #FAFAF8;
  --c-surface:      #FFFFFF;
  --c-border:       #E2DED6;

  /* Typography */
  --f-display: 'Unbounded', sans-serif;
  --f-body:    'Golos Text', sans-serif;

  /* Spacing */
  --r-card:   10px;
  --r-modal:  16px;

  /* Shadows — neutral, not warm-tinted */
  --shadow-card:       0 1px 4px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
  --shadow-card-hover: 0 8px 32px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  --shadow-modal:      0 24px 80px rgba(0,0,0,.32);
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--f-body); font-size: 16px; color: var(--c-ink); background: var(--c-bg); line-height: 1.6; overflow-x: hidden; max-width: 100%; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 24px; border-radius: 6px; font-size: 13px;
  font-weight: 600; letter-spacing: .5px; transition: all .2s ease; gap: 6px;
  font-family: var(--f-body); cursor: pointer; text-transform: uppercase;
}
.btn--primary {
  background: var(--c-forest-mid); color: #fff; border: 2px solid var(--c-forest-mid);
}
.btn--primary:hover {
  background: var(--c-moss); border-color: var(--c-moss);
  transform: translateY(-1px); box-shadow: 0 6px 20px rgba(31,74,31,.35);
}
.btn--outline { background: transparent; color: var(--c-forest-mid); border: 2px solid var(--c-forest-mid); }
.btn--outline:hover { background: var(--c-forest-mid); color: #fff; }
.btn--ghost { background: transparent; color: #555; border: 1px solid var(--c-border); }
.btn--ghost:hover { border-color: #999; color: #333; }
.btn--full { width: 100%; }
.btn--lg { padding: 14px 32px; font-size: 14px; }

/* ============================================================
   HEADER
============================================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.header::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: linear-gradient(180deg, rgba(6,14,6,.45) 0%, rgba(6,14,6,0) 100%);
  opacity: 1; transition: opacity .4s ease;
}
.header.solid::before { opacity: 0; }
.header.solid {
  background: rgba(6,14,6,.62);
  border-bottom-color: rgba(255,255,255,.07);
  box-shadow: 0 4px 24px rgba(0,0,0,.22);
  backdrop-filter: blur(14px);
}
.header.white {
  background: #fff;
  border-bottom-color: #e8e8e8;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.header__inner {
  display: flex; align-items: center; height: 70px; gap: 32px;
}

/* LOGO */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__icon { width: 38px; height: 38px; }
.logo { display: flex; align-items: center; flex-shrink: 0; position: relative; z-index: 3; }
/* Крупный «свисающий» логотип — заметно выходит за нижнюю линию шапки (авторский вид) */
.logo__img { height: 92px; width: auto; display: block; max-width: 64vw;
  transform: translateY(22px);
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.30)); }
@media (max-width: 600px) { .logo__img { height: 60px; transform: translateY(13px); } }
.logo__name {
  font-size: 20px; font-weight: 800; letter-spacing: 3px;
  color: #fff; transition: color .35s; font-family: var(--f-display);
}
.logo__sub { font-size: 9px; color: rgba(255,255,255,.45); letter-spacing: 1px; display: block; transition: color .35s; text-transform: uppercase; }
.header.white .logo__name { color: var(--c-forest-mid); }
.header.white .logo__sub  { color: #aaa; }

/* NAV */
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav__link {
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,.8); padding: 6px 13px;
  border-radius: 5px; transition: color .2s, background .2s; white-space: nowrap; letter-spacing: .2px;
}
.nav__link:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav__link.active { color: #fff; font-weight: 600; }
.nav__link--phone { display: none; }
.nav__cta { display: none; }
.header.white .nav__link { color: #444; }
.header.white .nav__link:hover { color: var(--c-forest-mid); background: #f0f5f0; }
.header.white .nav__link.active { color: var(--c-forest-mid); }

/* PHONE */
.header__right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header__phone {
  font-size: 14px; font-weight: 700; white-space: nowrap;
  color: rgba(255,255,255,.9); transition: color .35s;
}
.header__phone:hover { color: #fff; }
.header.white .header__phone { color: var(--c-ink); }
.header.white .header__phone:hover { color: var(--c-forest-mid); }

/* BTN in header */
.header .btn--primary {
  background: rgba(255,255,255,.12); color: #fff;
  border-color: rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
}
.header .btn--primary:hover { background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.7); transform: none; box-shadow: none; }
.header.white .btn--primary { background: var(--c-forest-mid); border-color: var(--c-forest-mid); }
.header.white .btn--primary:hover { background: var(--c-moss); border-color: var(--c-moss); }

/* BURGER */
.burger { display: none; flex-direction: column; gap: 5px; padding: 6px; margin-left: auto; }
.burger span { display: block; width: 24px; height: 2px; background: rgba(255,255,255,.9); border-radius: 2px; transition: all .3s; }
.header.white .burger span { background: #333; }

/* Hero offset for fixed header */
.hero { padding-top: 70px; }

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  display: flex; align-items: center; overflow: hidden;
  background-color: #060E06;
  background-image: url('../img/hero-forest.svg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.hero__bg { display: none; }

.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg,
      rgba(4,10,4,.82) 0%,
      rgba(4,10,4,.55) 55%,
      rgba(4,10,4,.22) 100%),
    linear-gradient(to bottom,
      rgba(0,0,0,.4) 0%,
      transparent 40%,
      rgba(0,0,0,.35) 100%);
}

.hero__particles { display: none; }

.hero__inner {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  justify-content: space-between; gap: 60px;
  padding: 64px 0 80px; flex-wrap: wrap;
}

.hero__content { flex: 1; min-width: 280px; max-width: 620px; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(168,134,82,.4);
  background: rgba(168,134,82,.08);
  border-radius: 2px; padding: 5px 14px; font-size: 11px; font-weight: 600;
  color: rgba(201,168,112,.9); letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero__badge svg { opacity: .7; }
.hero__badge-dot { display: none; }

.hero__title {
  font-family: var(--f-display);
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 800; color: #fff; line-height: 1.08;
  margin-bottom: 20px; letter-spacing: -1px;
}

.hero__sub {
  font-size: 1.05rem; color: rgba(255,255,255,.65);
  line-height: 1.7; max-width: 400px; margin-bottom: 20px;
}

.hero__welcome {
  font-size: .95rem; color: rgba(255,255,255,.55);
  line-height: 1.85; max-width: 460px;
  margin: 0 0 28px;
  padding-left: 14px;
  border-left: 2px solid rgba(168,134,82,.5);
}

.hero__trust {
  display: flex; gap: 0; align-items: center; margin-top: 32px;
}
.hero__trust-item {
  display: flex; flex-direction: column; gap: 2px;
  font-size: 11px; color: rgba(255,255,255,.5); font-weight: 500;
  padding: 0 24px;
  letter-spacing: .3px;
}
.hero__trust-item:first-child { padding-left: 0; }
.hero__trust-item strong {
  font-family: var(--f-display); font-size: 1.4rem; font-weight: 700; color: #fff;
  display: block; line-height: 1;
}
.hero__trust-sep {
  width: 1px; height: 36px; background: rgba(255,255,255,.15); flex-shrink: 0;
}

.hero__features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  flex-shrink: 0; width: 240px;
}
.hero__feature {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  color: rgba(255,255,255,.8); font-size: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; padding: 16px 14px;
  backdrop-filter: blur(4px);
}
.hero__feature svg { width: 32px; height: 32px; opacity: .8; }

.hero__scroll {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 11px; color: rgba(255,255,255,.35); letter-spacing: 1.5px;
  text-transform: uppercase; cursor: pointer; z-index: 2;
  transition: color .2s;
}
.hero__scroll:hover { color: rgba(255,255,255,.65); }
.hero__scroll svg { width: 20px; height: 20px; animation: scrollBounce 2s ease-in-out infinite; }
@keyframes scrollBounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* ============================================================
   BREADCRUMB
============================================================ */
.breadcrumb { font-size: 13px; color: #999; padding: 16px 0; }
.breadcrumb a { color: #999; transition: color .2s; }
.breadcrumb a:hover { color: var(--c-forest-mid); }
.breadcrumb span { color: #555; }
.breadcrumb__sep { margin: 0 6px; }

/* ============================================================
   CATALOG SECTION
============================================================ */
.catalog-section { background: var(--c-bg); padding-bottom: 64px; }
.catalog { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }

/* ============================================================
   SIDEBAR
============================================================ */
.sidebar {
  background: var(--c-surface); border-radius: var(--r-card);
  border: 1px solid var(--c-border);
  padding: 22px; align-self: start; position: sticky; top: 84px;
  box-shadow: var(--shadow-card);
  max-height: calc(100vh - 100px); overflow-y: auto;
  overscroll-behavior: contain;
}
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-thumb { background: #d8d2c4; border-radius: 8px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: var(--c-brass, #A88652); }
.sidebar__section { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #EAE6DF; }
.sidebar__section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.sidebar__title {
  font-size: 10px; font-weight: 700; letter-spacing: 1.8px;
  color: var(--c-brass); text-transform: uppercase; margin-bottom: 12px;
}

.category-list { list-style: none; }
.category-list__item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 10px; border-radius: 6px; font-size: 13.5px; cursor: pointer;
  transition: background .15s; border-left: 3px solid transparent;
}
.category-list__item a { flex: 1; color: var(--c-ink-mid); }
.category-list__item:hover { background: #F2EFE8; }
.category-list__item.active { background: #EDF4EE; border-left-color: var(--c-brass); }
.category-list__item.active a { color: var(--c-forest-mid); font-weight: 600; }
.category-list__item .count {
  font-size: 11px; color: #aaa; background: #F0ECE5; padding: 2px 7px; border-radius: 10px; flex-shrink: 0;
}
.category-list__item.active .count { background: #D0E4D0; color: var(--c-forest-mid); }
/* Группа «Бренды» внутри списка категорий */
.category-list__group {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; margin-top: 4px; border-top: 1px solid #ece8e0;
  font-size: 13.5px; font-weight: 600; color: #333; cursor: pointer; user-select: none;
}
.category-list__group:hover { color: var(--c-forest-mid); }
.category-list__group .fg-arrow { font-size: 11px; color: #999; transition: transform .18s ease; }
.category-list__group.open .fg-arrow { transform: rotate(180deg); }
.category-list__item.cat-brand { margin-left: 8px; font-size: 13px; }
/* Блок «Бренды» (чекбоксы, как в примере) */
.brand-filter .checkbox--all { padding-bottom: 9px; margin-bottom: 7px; border-bottom: 1px solid #ece8e0; }
.brand-filter .brand-cnt { color: #9aa0a6; font-size: 12px; margin-left: 2px; }
.brand-filter .checkbox.is-disabled { opacity: .4; pointer-events: none; }

.filter-group { margin-bottom: 18px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group__title { font-size: 13px; font-weight: 600; margin-bottom: 10px; color: #333; }
.filter-group__title--toggle { display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; }
.filter-group__title--toggle:hover { color: var(--c-forest-mid, #2f7d3b); }
.filter-group__title--toggle .fg-arrow { font-size: 11px; color: #999; transition: transform .18s ease; }
.filter-group__title--toggle.open .fg-arrow { transform: rotate(180deg); }
.filter-group--brands .fg-cnt { color: #9aa0a6; font-size: 12px; margin-left: 3px; }

.checkbox {
  display: flex; align-items: center; gap: 9px; font-size: 13.5px;
  padding: 5px 0; cursor: pointer; color: #444; user-select: none;
}
.checkbox input[type=checkbox] {
  width: 16px; height: 16px; border: 1.5px solid #ccc; border-radius: 3px;
  accent-color: var(--c-forest-mid); flex-shrink: 0;
}
.checkbox .count { margin-left: auto; font-size: 11px; color: #bbb; }

.color-swatches { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.swatch {
  width: 30px; height: 30px; border-radius: 50%; border: 3px solid transparent;
  transition: all .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.swatch:hover { transform: scale(1.1); }
.swatch.active { border-color: var(--c-forest-mid); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c-forest-mid); }

/* ============================================================
   PRODUCTS
============================================================ */
.products { }
.products__header {
  background: var(--c-surface); border-radius: var(--r-card); border: 1px solid var(--c-border);
  padding: 14px 18px; display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px;
  box-shadow: var(--shadow-card);
}
.products__count { font-size: 14px; color: #777; }
.products__count strong { color: var(--c-ink); }
.products__controls { display: flex; align-items: center; gap: 12px; }
.sort-wrap { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #888; }
.sort-select {
  padding: 6px 10px; border: 1px solid #ddd; border-radius: 6px;
  font-size: 13px; color: #333; background: #fff; outline: none;
}
.sort-select:focus { border-color: var(--c-forest-mid); }
.view-toggle { display: flex; gap: 4px; }
.view-btn {
  width: 34px; height: 34px; border: 1px solid #ddd; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.view-btn svg { width: 15px; height: 15px; fill: #ccc; }
.view-btn:hover, .view-btn.active { border-color: var(--c-forest-mid); background: #edf4ee; }
.view-btn.active svg { fill: var(--c-forest-mid); }

/* ============================================================
   CATEGORY TILES («Все карточки» — плитки рубрик вместо списка товаров)
============================================================ */
.cat-tiles-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-bottom: 8px;
}
.cat-tile {
  display: flex; flex-direction: column; cursor: pointer;
  background: var(--c-surface); border-radius: var(--r-card, 14px);
  border: 1px solid var(--c-border); overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow .25s ease, transform .22s ease, border-color .22s ease;
  text-decoration: none;
}
.cat-tile:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: var(--c-brass);
}
.cat-tile__img {
  height: 220px; background: var(--c-surface);
  overflow: hidden;
}
/* 🔒 ТЕСТ: цельная обложка-плитка «раздел» (картинка на всю плитку, без отдельного заголовка) */
.cat-tile--cover .cat-tile__cover {
  width: 100%; height: auto; display: block; transition: transform .35s ease;
}
.cat-tile--cover:hover .cat-tile__cover { transform: scale(1.03); }
/* 🔒 ТЕСТ: «богатая» плитка-раздел — перелистывание фото + «от N ₽» + кнопка «Смотреть все N →» */
.cat-tile--rich .ct-rich__img {
  position: relative; height: 180px; background: var(--c-surface); overflow: hidden;
}
.cat-tile--rich .ct-rich__photo {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.cat-tile--rich .ct-rich__body { padding: 10px 16px 14px; text-align: center; }
.cat-tile--rich .ct-rich__price {
  margin: 3px 0 8px; font-weight: 800; font-size: 14px; color: var(--c-brass, #1F4A1F);
}
.cat-tile--rich .ct-rich__cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: #1F4A1F; color: #fff; font-weight: 700; font-size: 13px;
  padding: 9px 16px; border-radius: 9px;
  transition: background .2s ease, transform .22s ease, opacity .22s ease;
}
.cat-tile--rich:hover .ct-rich__cta { background: #163216; }
.cat-tile--rich:hover .cat-tile__title { color: var(--c-brass); }
/* Компьютер (есть наведение): кнопка спрятана снизу и выезжает при наведении.
   Телефон (наведения нет) — кнопка видна всегда (медиазапрос ниже не применяется). */
@media (hover: hover) and (pointer: fine) {
  .cat-tile--rich .ct-rich__cta { opacity: 0; transform: translateY(16px); }
  .cat-tile--rich:hover .ct-rich__cta { opacity: 1; transform: translateY(0); }
}
.cat-tile__img img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  transition: transform .35s ease;
}
.cat-tile:hover .cat-tile__img img { transform: scale(1.04); }
.cat-tile__body {
  padding: 14px 16px 16px; text-align: center;
}
.cat-tile__title {
  font-weight: 800; font-size: 16px; color: var(--c-ink, #1a1a1a);
  transition: color .2s ease;
}
.cat-tile:hover .cat-tile__title { color: var(--c-brass); }
.cat-tile__count { display: block; margin-top: 4px; font-size: 13px; color: #888; }
/* Плитка-РАЗДЕЛ: мозаика фото + значок «раздел» + кнопка «Смотреть все N →» */
.cat-tiles-hint {
  grid-column: 1 / -1; background: #eef4ee; border: 1px solid #cfe3cf;
  border-radius: 12px; padding: 12px 16px; font-size: 14px; color: #245024; margin-bottom: 2px;
}
.cat-tile__mosaic {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 108px;
  gap: 2px; background: var(--c-border, #e6e2da);
}
.ct-cell { background: #faf9f7; overflow: hidden; }
.ct-cell img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .35s ease; }
.cat-tile:hover .ct-cell img { transform: scale(1.05); }
.ct-cell--empty { background: #f2f0ec; }
/* Витрина моделей (вариант E): 3 мини-карточки товаров прямо в плитке-разделе */
.cat-tile__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 13px 14px 3px; gap: 8px;
}
.cat-tile__head .cat-tile__title { font-weight: 800; font-size: 16px; min-width: 0; flex: 1; }
.cat-tile__head .cat-tile__chip {
  position: static; flex-shrink: 0; background: #eef4ee; color: var(--c-brass, #1F4A1F);
  font: 800 10px/1 -apple-system, Arial; padding: 4px 7px; border-radius: 20px; box-shadow: none;
  white-space: nowrap; margin-top: 2px;
}
.cat-tile__models { display: flex; gap: 8px; padding: 8px 14px 2px; }
.ct-mini { flex: 1; min-width: 0; background: #fff; border: 1px solid #ececec; border-radius: 11px; overflow: hidden; }
.ct-mini__img { height: 86px; background: #faf9f7; }
.ct-mini__img img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .35s ease; }
.cat-tile:hover .ct-mini__img img { transform: scale(1.05); }
.ct-mini__name { font: 700 11px/1.15 -apple-system, Arial; color: #222; padding: 6px 7px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-mini__price { font: 800 11px/1 -apple-system, Arial; color: var(--c-brass, #1F4A1F); padding: 3px 7px 8px; }
.ct-mini--empty { height: 110px; background: #f4f2ee; }
@media (max-width: 560px) { .ct-mini__img { height: 72px; } }
.cat-tile__chip {
  position: absolute; top: 9px; left: 9px; z-index: 2;
  background: rgba(255,255,255,.94); color: var(--c-brass, #1F4A1F);
  font-weight: 700; font-size: 11px; padding: 4px 9px; border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.14);
}
.cat-tile__cta {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 9px;
  background: #1F4A1F; color: #fff; font-weight: 700; font-size: 13px;
  padding: 8px 13px; border-radius: 9px; transition: background .2s ease;
}
.cat-tile:hover .cat-tile__cta { background: #163216; }
@media (max-width: 900px) {
  .cat-tiles-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cat-tile__mosaic { grid-auto-rows: 84px; }
  .cat-tile__title { font-size: 15px; }
  .cat-tile__cta { font-size: 12px; padding: 7px 11px; }
}

/* ============================================================
   PRODUCT GRID
============================================================ */
.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.product-grid::after { content: ''; grid-column: span 4; }
.product-grid.list-view { grid-template-columns: 1fr; }

.product-card {
  background: var(--c-surface); border-radius: var(--r-card);
  border: 1px solid transparent;
  overflow: hidden; cursor: pointer;
  transition: box-shadow .25s ease, transform .22s ease, border-color .22s ease;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;   /* чтобы низ карточки (кнопки) выравнивался */
}
.product-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: var(--c-border);
}

.product-card__img {
  background: var(--c-stone-light); height: 220px; display: flex; align-items: center;
  justify-content: center; overflow: hidden; position: relative;
  padding: 12px;
}
.product-card__img::after {
  content: '';
  position: absolute; bottom: 10px; right: 10px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='8.5' cy='8.5' r='5' stroke='%23555' stroke-width='1.6'/%3E%3Cline x1='12.5' y1='12.5' x2='17' y2='17' stroke='%23555' stroke-width='1.6' stroke-linecap='round'/%3E%3Cline x1='6.5' y1='8.5' x2='10.5' y2='8.5' stroke='%23555' stroke-width='1.4' stroke-linecap='round'/%3E%3Cline x1='8.5' y1='6.5' x2='8.5' y2='10.5' stroke='%23555' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") center/18px no-repeat;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  opacity: 0;
  transform: scale(.8);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.product-card__img:hover::after {
  opacity: 1;
  transform: scale(1);
}
.product-card__img img {
  width: 100%; height: 100%; object-fit: contain;
  border-radius: 6px;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.12)) drop-shadow(0 2px 4px rgba(0,0,0,.06));
  transition: transform .4s ease, filter .4s ease;
}
.product-card:hover .product-card__img img {
  transform: scale(1.06);
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.18)) drop-shadow(0 4px 8px rgba(0,0,0,.08));
}
/* Наведение-галерея в карточке (как у Хоббики): точки-индикатор снизу */
.product-card__img.pc-hover:hover img { transform: none; }
.pc-hover__dots {
  position: absolute; left: 0; right: 0; top: 10px; z-index: 6;
  display: flex; gap: 5px; justify-content: center; pointer-events: none;
  opacity: 0; transition: opacity .18s;
}
.product-card__img.pc-hover:hover .pc-hover__dots { opacity: 1; }
.pc-hover__dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.75);
  box-shadow: 0 0 0 1px rgba(0,0,0,.18), 0 1px 2px rgba(0,0,0,.35);
  transition: width .15s, background .15s, border-radius .15s;
}
.pc-hover__dots i.on { width: 16px; border-radius: 3px; background: #2f7d3b; box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 1px 3px rgba(0,0,0,.4); }
.product-card__badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--c-brass); color: #fff;
  font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 3px; letter-spacing: .6px;
  text-transform: uppercase;
}

.product-card__body { padding: 12px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.product-card__name {
  font-size: 13px; font-weight: 600; margin-bottom: 3px;
  color: var(--c-ink); line-height: 1.35;
  /* Фиксируем высоту в 2 строки — короткие названия не поднимают карточку */
  min-height: 2.7em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card__analog-of { font-size: 11.5px; color: #8a6d1f; font-weight: 500; margin: -1px 0 6px; line-height: 1.3; }
.product-card__material { font-size: 11px; color: var(--c-muted); margin-bottom: 10px; }
.product-card__price {
  font-size: 16px; font-weight: 700; color: var(--c-ink);
  font-variant-numeric: tabular-nums;
  margin-top: auto;   /* прижимает цену и кнопки к низу карточки */
}
.product-card__price-note { font-size: 10px; color: #bbb; margin-top: 2px; }
.subnav { display: none; flex-wrap: wrap; gap: 6px; margin-bottom: 10px;
  position: sticky; top: 70px; z-index: 50;
  background: var(--c-bg); padding: 8px 0 7px; border-bottom: 1px solid var(--c-border); }
.subnav__chip {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 6px 12px; border-radius: 20px; border: 1.5px solid #e2ddd2;
  background: #fff; color: var(--c-forest-deep, #1a2a1a); font-size: 12.5px; font-weight: 600;
  transition: border-color .15s, background .15s, color .15s;
}
.subnav__chip.active { border-color: var(--c-brass, #A88652); background: var(--c-brass, #A88652); color: #fff; }
.subnav__chip.active span { background: rgba(255,255,255,.25); }
.subnav__chip:hover { border-color: var(--c-brass, #A88652); background: #faf7f0; }
.subnav__chip span { font-size: 11px; font-weight: 700; color: #fff; background: var(--c-brass, #A88652); border-radius: 20px; padding: 1px 7px; }
.subnav__chip--empty { opacity: .45; cursor: default; border-style: dashed; }
.subnav__chip--empty:hover { border-color: #e2ddd2; background: #fff; }
.subnav__chip--empty span { background: #bbb; }
.grid-section-title {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 10px;
  margin: 8px 0 2px; padding-bottom: 8px; border-bottom: 2px solid var(--c-brass, #A88652);
  font-family: var(--font-display, inherit); font-size: 18px; font-weight: 700;
  color: var(--c-forest-deep, #1a2a1a); text-transform: uppercase; letter-spacing: .02em;
}
.grid-section-title:first-child { margin-top: 0; }
.grid-section-title span { font-size: 12px; font-weight: 700; color: #fff; background: var(--c-brass, #A88652); border-radius: 20px; padding: 2px 9px; }
.product-card__specs { list-style: none; padding: 8px 0 0; margin: 6px 0 8px; border-top: 1px solid #f0f0f0; }
.product-card__specs li { display: flex; justify-content: space-between; font-size: 11px; color: #999; padding: 2px 0; }
.product-card__specs li span:last-child { font-weight: 600; color: #444; }
/* Brand banner */
.brand-banner { padding: 40px 0; }
.brand-banner--top { padding: 96px 0 12px; }
@media (max-width: 640px) { .brand-banner--top { padding: 80px 0 8px; } }
.brand-banner img { width: 100%; height: auto; display: block; border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0,0,0,.12); }
@media (max-width: 640px) { .brand-banner { padding: 24px 0; } .brand-banner img { border-radius: 12px; } }

/* Watermark overlay (non-destructive, originals untouched) */
.wm-host { position: relative; overflow: hidden; }
.wm { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.wm__tiles { position: absolute; inset: 0;
  background: url("../img/wm-tile.png?v=20260706zsk2") repeat; background-size: 190px 134px; opacity: .45; }
.wm__bar { position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 5px; flex-wrap: nowrap;
  padding: 5px 8px; background: linear-gradient(transparent, rgba(8,12,5,.72)); }
/* Бренд слева при нехватке места уступает (сжимается/обрезается аккуратно) — */
/* телефон справа НИКОГДА не сжимается и не обрезается (это контакт). */
.wm__brand { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  flex: 0 1 auto; min-width: 0; overflow: hidden;
  color: #fff; font-weight: 700; font-size: 10px; letter-spacing: .1px; }
.wm__brand svg { width: 12px; height: 12px; flex-shrink: 0; color: var(--c-brass, #A88652); }
.wm__phone { color: #fff; font-weight: 600; font-size: 9.5px; opacity: .92; white-space: nowrap; flex: 0 0 auto; }
.product-gallery__main .wm__tiles { background-size: 300px 212px; }
.product-gallery__main .wm__brand { font-size: 14px; }
.product-gallery__thumb .thumb-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.32); }
.product-gallery__thumb .thumb-play::after { content: ""; border-left: 12px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.product-gallery__thumb { position: relative; }
/* Watermark inside the zoomed lightbox */
.lightbox__content .wm__tiles { background-size: 360px 254px; }
.lightbox__content .wm__bar { padding: 10px 18px; }
.lightbox__content .wm__brand { font-size: 17px; }
.lightbox__content .wm__brand svg { width: 16px; height: 16px; }
.lightbox__content .wm__phone { font-size: 15px; }
.product-gallery__main .wm__phone { font-size: 13px; }

.product-card__buttons { display: flex; gap: 8px; margin-top: 10px; }
.product-card__buttons .product-card__cart { margin-top: 0; flex: 1; }
/* Покупка с выбором количества на карточке */
.product-card__buy { display: flex; gap: 8px; margin-top: 10px; align-items: stretch; }
.product-card__buy .product-card__cart { margin-top: 0; flex: 1; }
.qty--card { flex: 0 0 auto; height: 40px; }
.qty--card button { width: 30px; height: 100%; font-size: 17px; }
.qty--card input { width: 34px; height: 100%; }
.product-card__dwg--full { width: 100%; margin-top: 8px; }
.product-card__dwg--req { border-style: dashed; opacity: .9; }
/* Количество в окне товара */
.product-buy-row { display: flex; gap: 10px; margin-bottom: 10px; }
.product-buy-row .btn { flex: 1; }
.qty--lg { flex: 0 0 auto; height: 48px; border-radius: 9px; }
.qty--lg button { width: 40px; height: 100%; font-size: 20px; }
.qty--lg input { width: 48px; height: 100%; font-size: 16px; }
.product-card__dwg {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  flex: 0 0 auto; padding: 9px 13px; border-radius: 8px; cursor: pointer;
  border: 1.5px solid var(--c-brass, #A88652); color: var(--c-brass, #A88652);
  background: #fff; font-size: 12px; font-weight: 700; text-decoration: none;
  letter-spacing: .3px; transition: background .15s, color .15s;
}
.product-card__dwg svg { width: 15px; height: 15px; flex-shrink: 0; }
.product-card__dwg:hover { background: var(--c-brass, #A88652); color: #fff; }

/* List view */
.product-grid.list-view .product-card { display: grid; grid-template-columns: 190px 1fr; }
.product-grid.list-view .product-card__img { height: auto; min-height: 140px; }
/* Описание — только в списочном виде (в сетке скрыто), заполняет пустое место */
.pc-desc { display: none; }
.product-grid.list-view .pc-desc {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  color: #5a636b; font-size: 13px; line-height: 1.55; margin: 4px 0 12px; max-width: 640px;
}
@media (max-width: 640px) {
  .product-grid.list-view .product-card { grid-template-columns: 130px 1fr; }
  .product-grid.list-view .pc-desc { -webkit-line-clamp: 2; font-size: 12px; }
}

/* ============================================================
   PAGINATION
============================================================ */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.page-btn {
  width: 40px; height: 40px; border: 1px solid var(--c-border); border-radius: 6px;
  font-size: 14px; font-weight: 500; color: #666; background: var(--c-surface);
  display: flex; align-items: center; justify-content: center;
  transition: all .18s ease; box-shadow: var(--shadow-card);
}
.page-btn:hover { border-color: var(--c-brass); color: var(--c-brass); }
.page-btn.active { background: var(--c-forest-mid); color: #fff; border-color: var(--c-forest-mid); }
.page-btn.dots { border: none; background: none; cursor: default; color: #aaa; box-shadow: none; }

/* ============================================================
   SHARED SECTION LABELS
============================================================ */
.section-eyebrow {
  display: block; font-family: var(--f-body);
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--c-brass); margin-bottom: 12px;
}

.section-title {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 700; color: var(--c-ink); margin-bottom: 24px;
  line-height: 1.2; letter-spacing: -.5px;
}

.section-sub {
  font-size: 16px; color: #666; max-width: 540px; margin: 10px auto 0; line-height: 1.7;
}

.section-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--c-forest-mid); background: #edf5ed;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 12px;
  border: 1px solid #c8ddc8;
}
.text-center { text-align: center; }

/* ============================================================
   FEATURES STRIP
============================================================ */
.features-strip {
  background: linear-gradient(135deg, #0E1A0E 0%, #152815 60%, #101810 100%);
  padding: 52px 0;
  border-top: 1px solid rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.features-strip__inner { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.feature-item {
  text-align: center; color: rgba(255,255,255,.88);
  padding: 24px 20px;
  border-right: 1px solid rgba(255,255,255,.06);
}
.feature-item:last-child { border-right: none; }
.feature-item svg { width: 40px; height: 40px; margin: 0 auto 14px; opacity: .75; }
.feature-item h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; letter-spacing: .2px; }
.feature-item p { font-size: 12px; opacity: .55; line-height: 1.6; }

/* ============================================================
   ABOUT SECTION
============================================================ */
.about { padding: 96px 0; background: var(--c-surface); }
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about__text p { font-size: 16px; color: #555; line-height: 1.85; margin-bottom: 18px; }
.about__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; margin-top: 26px; }
.about__fact h4 { font-size: 13px; font-weight: 700; color: var(--c-forest-mid); margin: 0 0 4px;
  text-transform: uppercase; letter-spacing: .4px; }
.about__fact p { font-size: 14px; color: #555; line-height: 1.6; margin: 0; }
@media (max-width: 700px) { .about__facts { grid-template-columns: 1fr; gap: 16px; } }
/* Статистика — ровная сетка 2×2 (в половине колонки 4 в ряд не помещаются) */
.about__stats { display: grid; grid-template-columns: 1fr 1fr; column-gap: 0; row-gap: 22px; margin-top: 40px; }
.stat {
  padding: 0 28px;
  border-right: 1px solid var(--c-border);
}
.stat:nth-child(odd) { padding-left: 0; }
.stat:nth-child(even) { border-right: none; }
.stat strong {
  display: block; font-family: var(--f-display);
  font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 800; color: var(--c-forest-mid);
  line-height: 1; margin-bottom: 4px;
}
.stat span { font-size: 12px; color: var(--c-muted); letter-spacing: .3px; }

.about__image {
  background: linear-gradient(135deg, #EAF0EA, #D4E4D4);
  border-radius: 16px; height: 360px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 16px; color: #5a8a5a; font-size: 14px;
}
.about__image svg { width: 80px; height: 80px; }
/* Фото склада вместо заглушки */
.about__image--photo { background: none; padding: 0; overflow: hidden; position: relative; color: #fff; }
.about__image--photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 16px; }
.about__image-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 2px; border-radius: 0 0 16px 16px;
  background: linear-gradient(0deg, rgba(6,12,6,.80) 0%, rgba(6,12,6,.30) 60%, rgba(6,12,6,0) 100%);
}
.about__image-caption span:first-child { font-weight: 700; font-size: 15px; }
.about__image-caption span:last-child { font-size: 12px; opacity: .9; }

/* ============================================================
   MATERIALS
============================================================ */
.materials { padding: 96px 0; background: var(--c-bg); }
.materials__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.material-card {
  background: var(--c-surface); border-radius: var(--r-card);
  overflow: hidden; transition: box-shadow .22s ease, transform .22s ease;
  box-shadow: var(--shadow-card);
}
.material-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.material-card__swatch { height: 6px; }
.material-card__photo { height: 150px; overflow: hidden; }
.material-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.material-card__body { padding: 24px; }
.material-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; color: var(--c-ink); }
.material-card p { font-size: 13px; color: #666; line-height: 1.75; }
.material-card__tag {
  display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 700;
  color: var(--c-forest-mid); background: #EDF4EE; padding: 4px 12px; border-radius: 3px;
}

/* ============================================================
   PROJECTS
============================================================ */
.projects { padding: 96px 0; background: var(--c-surface); }
.projects__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.project-card {
  background: var(--c-surface); border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow-card); transition: box-shadow .22s, transform .22s;
}
.project-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.project-card__img {
  height: 180px; background: linear-gradient(135deg, #C8DEC8, #A8C4A8);
  display: flex; align-items: center; justify-content: center; color: #5a8a5a; font-size: 13px;
}
.project-card__img svg { width: 60px; height: 60px; opacity: .5; }
.project-card__img--photo { padding: 0; background: none; }
.project-card__img--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-card__body { padding: 20px; }
.project-card__city { font-size: 10px; font-weight: 700; color: var(--c-brass); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px; }
.project-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--c-ink); }
.project-card p { font-size: 13px; color: #777; line-height: 1.6; }

/* ============================================================
   DELIVERY
============================================================ */
.delivery { padding: 96px 0; background: var(--c-bg); }
.delivery__grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 20px; align-items: stretch; }
.delivery__card {
  background: var(--c-surface); border-radius: var(--r-card);
  padding: 16px 20px; text-align: center;
  display: flex; flex-direction: column; justify-content: center;
  box-shadow: var(--shadow-card); transition: box-shadow .22s ease, transform .22s ease;
}
.delivery__card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.delivery__card svg { width: 38px; height: 38px; margin: 0 auto 8px; }
.delivery__card--photo { grid-column: 1; grid-row: 1 / span 3; padding: 0; overflow: hidden; background: #fff; }
.delivery__photo { display: block; width: 100%; height: auto; margin: 0; border-radius: var(--r-card); }
.delivery__card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--c-ink); }
.delivery__card p { font-size: 12.5px; color: #666; line-height: 1.55; }

/* ============================================================
   CONTACTS
============================================================ */
.contacts { padding: 96px 0; background: var(--c-surface); }
.contacts__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.contacts__info p { font-size: 16px; color: #444; line-height: 1.85; margin-bottom: 12px; }
.contacts__info a { color: var(--c-forest-mid); font-weight: 600; }
.contacts__info a:hover { text-decoration: underline; }
.contacts__map {
  background: linear-gradient(135deg, #E8F0E8, #D4E4D4);
  border-radius: 12px; height: 280px;
  display: flex; align-items: center; justify-content: center;
  color: #5a8a5a; font-size: 14px; flex-direction: column; gap: 12px;
}
.contacts__map svg { width: 48px; height: 48px; opacity: .5; }
.contacts__form h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 22px; color: var(--c-ink); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-input {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--c-border);
  border-radius: 6px; font-size: 14px; margin-bottom: 12px;
  transition: border-color .2s; outline: none; resize: vertical; background: var(--c-stone-light);
}
.form-input:focus { border-color: var(--c-forest-mid); background: #fff; }
.form-input::placeholder { color: #bbb; }

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: #050E05;
  color: #ccc;
  border-top: 1px solid rgba(255,255,255,.04);
}
.footer__main { padding: 60px 0; }
.footer__grid { display: grid; grid-template-columns: 200px 1fr 1fr 1fr; gap: 48px; }
.footer__logo-area .logo__name { color: #fff; font-size: 18px; }
.footer__logo-area .logo__sub { color: rgba(255,255,255,.3); }
.footer__desc { font-size: 13px; color: rgba(255,255,255,.35); line-height: 1.75; margin-top: 18px; }
.footer__col h4 { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.55); margin-bottom: 18px; letter-spacing: 1.5px; text-transform: uppercase; }
.footer__col a { display: block; font-size: 13px; color: rgba(255,255,255,.4); margin-bottom: 10px; transition: color .2s; }
.footer__col a:hover { color: rgba(255,255,255,.85); }
.footer__col p { font-size: 13px; color: rgba(255,255,255,.4); margin-bottom: 8px; line-height: 1.6; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 20px 0; }
.footer__bottom__inner { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,.25); flex-wrap: wrap; gap: 8px; }

/* ============================================================
   MODALS
============================================================ */
.modal {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.6); z-index: 100001;
  align-items: center; justify-content: center; padding: 20px;
}
.modal.open { display: flex; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal__box {
  background: #fff; border-radius: 14px; padding: 44px;
  max-width: 460px; width: 100%; position: relative;
  animation: slideUp .25s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal__box h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.modal__box > p { color: #777; font-size: 14px; margin-bottom: 24px; }
.modal__close {
  position: absolute; top: 16px; right: 20px; font-size: 26px;
  color: #bbb; line-height: 1; transition: color .2s; padding: 4px;
}
.modal__close:hover { color: #333; }
.modal__success { text-align: center; padding: 20px 0; }
.modal__success .checkmark { font-size: 3rem; margin-bottom: 12px; }
.modal__success h4 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; color: var(--c-forest-mid); }
.modal__success p { color: #777; font-size: 14px; }

/* PRODUCT MODAL */
.modal--product { padding: 0; align-items: flex-start; padding-top: 0; }
.modal--product .modal__box--product {
  max-width: 920px; width: 100%; padding: 0; border-radius: 14px;
  overflow: hidden; overflow-y: auto; max-height: 94vh; margin: auto;
}
.product-page { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,0.9fr); }
.product-gallery { background: #f8f8f8; padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.product-gallery__main { height: 280px; display: flex; align-items: center; justify-content: center; position: relative; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.9); color: #333; font-size: 22px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.15); transition: background .15s, transform .15s; z-index: 2;
}
.gallery-nav:hover { background: #fff; }
.product-details { margin: 16px 0 4px; }
.product-details__row { padding: 9px 0; border-bottom: 1px solid #f0efe9; display: flex; flex-direction: column; gap: 3px; }
.product-details__row:last-child { border-bottom: none; }
.product-details__label { font-size: 12px; font-weight: 700; color: var(--c-forest-deep, #1a2a1a); text-transform: uppercase; letter-spacing: .03em; }
.product-details__value { font-size: 13px; color: #555; line-height: 1.5; }
.product-kit { margin: 12px 0 4px; padding-left: 22px; }
.product-kit li { padding: 7px 0; border-bottom: 1px solid #f0efe9; }
.product-kit li:last-child { border-bottom: none; }
.product-kit__name { display: block; font-size: 13px; font-weight: 700; color: var(--c-forest-deep, #1a2a1a); }
.product-kit__sub { display: block; font-size: 12px; color: #777; line-height: 1.45; margin-top: 2px; }
.gallery-nav--prev { left: 8px; }
.gallery-nav--next { right: 8px; }
.product-gallery__thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.product-gallery__thumb { flex: 0 0 auto; }
.product-gallery__thumb {
  width: 68px; height: 68px; background: #efefef; border-radius: 8px;
  border: 2px solid transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: border-color .15s;
}
.product-gallery__thumb:hover { border-color: #aaa; }
.product-gallery__thumb.active { border-color: var(--c-forest-mid); }
.product-gallery__360 {
  display: flex; align-items: center; gap: 6px; font-size: 12px;
  color: #888; cursor: pointer; margin-top: 4px;
}
.product-gallery__360:hover { color: var(--c-forest-mid); }

.product-info { padding: 36px; overflow-y: auto; }
/* Layout 2: wide block under gallery+buy panel for specs & details */
.product-extra { display: flex; gap: 40px; flex-wrap: wrap; padding: 4px 36px 36px; }
.product-extra__col { flex: 1; min-width: 280px; }
/* Характеристики под фото (заполняют левую колонку) */
.gallery-specs { margin-top: 18px; }
.gallery-specs .specs-title:first-child { margin-top: 0; }
/* Compact designer-files block in the buy panel */
.cad-quick { margin: 10px 0; padding: 12px; border: 1px solid #e6eaed; border-radius: 12px; transition: box-shadow .3s, border-color .3s; }
.cad-quick__row { display: flex; gap: 8px; }
.cad-quick__btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 9px 6px; border: 1.5px solid #2c4a2c; border-radius: 9px; background: #f2f7f2;
  color: #2c4a2c; text-decoration: none; font-size: 13px; font-weight: 700; transition: background .2s; }
.cad-quick__btn:hover { background: #e3efe3; }
.cad-quick__btn span { font-size: 10px; font-weight: 500; color: #5a7a5a; letter-spacing: .04em; }
.cad-quick__more { display: block; width: 100%; margin-top: 8px; padding: 7px; background: none;
  border: 1px dashed #cdd4d9; border-radius: 8px; color: #8a9298; font-size: 12px; cursor: pointer; }
.cad-quick__more:hover { color: #33414d; border-color: #b3bcc3; }
.cad-quick.cad-flash { border-color: #2c4a2c; box-shadow: 0 0 0 4px rgba(44,74,44,.18); }
.doc-actions { display: flex; gap: 8px; margin: 8px 0; }
.doc-actions .btn { flex: 1; font-size: 13px; padding: 10px 6px; }
/* Header cart */
.header__cart { position: relative; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  cursor: pointer; color: #fff; padding: 8px; display: inline-flex; border-radius: 10px; transition: background .2s, border-color .2s; }
.header__cart:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.3); }
.header__cart svg { width: 26px; height: 26px; }
.header.white .header__cart { color: var(--c-forest-mid); background: #f0f5f0; border-color: #d8e3d8; }
.header.white .header__cart:hover { background: #e3efe3; }
.cart-badge { position: absolute; top: -2px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px;
  background: #c0392b; color: #fff; border-radius: 9px; font-size: 11px; font-weight: 700;
  align-items: center; justify-content: center; display: flex; }
.product-card__cart { width: 100%; margin-top: 8px; padding: 9px; border: 1.5px solid #2c4a2c; background: #fff;
  color: #2c4a2c; border-radius: 8px; font-weight: 700; font-size: 13px; cursor: pointer; transition: background .15s; }
.product-card__cart:hover { background: #2c4a2c; color: #fff; }
/* Cart drawer */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); opacity: 0; visibility: hidden;
  transition: opacity .25s; z-index: 99999; }
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: 0; height: 100%; width: 400px; max-width: 92vw; background: #fff;
  z-index: 100000; transform: translateX(100%); transition: transform .28s ease, visibility .28s ease;
  display: flex; flex-direction: column; visibility: hidden;
  box-shadow: -8px 0 40px rgba(0,0,0,.2); overflow-x: hidden; }
.cart-drawer.open { transform: translateX(0); visibility: visible; }
.cart-drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px;
  border-bottom: 1px solid #eef1f3; font-size: 17px; font-weight: 800; }
.cart-drawer__close { background: none; border: none; font-size: 26px; color: #aab; cursor: pointer; line-height: 1; }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 12px 16px; }
.cart-empty { text-align: center; color: #8a9298; padding: 60px 20px; }
.cart-empty span { font-size: 13px; }
.cart-item { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f0f2f4; }
.cart-item__img { width: 60px; height: 60px; flex: 0 0 60px; border-radius: 8px; overflow: hidden; background: #f4f6f7; }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-weight: 700; font-size: 13px; line-height: 1.25; }
.cart-item__art { color: #9aa3a9; font-size: 11px; margin: 2px 0; }
.cart-item__price { color: #6b7680; font-size: 12px; }
.cart-item__controls { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 6px; flex: 0 0 auto; }
.qty { display: flex; align-items: center; border: 1px solid #d7dde1; border-radius: 7px; overflow: hidden; }
.qty button { width: 26px; height: 26px; border: none; background: #f4f6f7; cursor: pointer; font-size: 16px; color: #33414d; }
.qty input { width: 36px; height: 26px; border: none; text-align: center; font-size: 13px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-item__sum { font-weight: 800; font-size: 13px; }
.cart-item__del { background: none; border: none; color: #c0392b; cursor: pointer; font-size: 13px; }
.cart-drawer__foot { border-top: 1px solid #eef1f3; padding: 16px 18px 22px; background: #fff; }
.cart-drawer__total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 16px; }
.cart-drawer__total strong { font-size: 20px; }
.cart-drawer__docs { display: flex; gap: 8px; margin-top: 8px; }
.cart-drawer__docs .btn { flex: 1; font-size: 13px; padding: 9px; }
.cart-drawer__clear { width: 100%; margin-top: 10px; background: none; border: none; color: #9aa3a9; font-size: 12px; cursor: pointer; }
.cart-drawer__clear:hover { color: #c0392b; }
/* Документ счёта/КП для рендера в PDF (html2pdf) */
.invoice-render { color: #1c2024; font-family: Arial, "DejaVu Sans", sans-serif; }
.invoice-render .doc { width: 760px; padding: 6px; font-size: 12px; line-height: 1.45; background: #fff; }
.invoice-render .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.invoice-render h1 { font-size: 19px; margin: 14px 0 4px; }
.invoice-render .muted { color: #6b7680; }
.invoice-render .brand { font-size: 18px; font-weight: 800; color: #2c4a2c; }
.invoice-render .brand span { color: #A88652; }
.invoice-render table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.invoice-render .req td { padding: 4px 8px; border: 1px solid #cfd6db; vertical-align: top; }
.invoice-render .req td.k { background: #f4f6f7; font-weight: 600; width: 32%; }
.invoice-render .items th, .invoice-render .items td { border: 1px solid #cfd6db; padding: 7px 8px; text-align: left; }
.invoice-render .items th { background: #2c4a2c; color: #fff; font-weight: 600; }
.invoice-render .items td.num, .invoice-render .items td.sum { text-align: right; white-space: nowrap; }
.invoice-render .totals { margin-top: 8px; text-align: right; }
.invoice-render .totals .grand { font-size: 15px; font-weight: 800; }
.invoice-render .qrbox { border: 1px solid #cfd6db; border-radius: 10px; padding: 12px; text-align: center; width: 190px; }
.invoice-render .qrbox img { width: 150px; height: 150px; image-rendering: pixelated; }
.invoice-render .qrbox .cap { font-size: 10px; color: #6b7680; margin-top: 6px; }
.invoice-render .sign { margin-top: 16px; display: flex; justify-content: space-between; gap: 30px; }
.invoice-render .sign .line { border-top: 1px solid #1c2024; padding-top: 4px; width: 240px; text-align: center; font-size: 11px; }
.invoice-render .note { font-size: 10.5px; color: #6b7680; margin-top: 8px; }
.invoice-render h1 { margin: 10px 0 4px; }
.product-info__close {
  position: absolute; top: 14px; right: 18px; font-size: 26px; color: #bbb;
  z-index: 10; transition: color .2s; padding: 4px;
}
.product-info__close:hover { color: #333; }
.product-name {
  font-family: var(--f-display);
  font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; line-height: 1.25; color: var(--c-ink);
}
.product-price {
  font-size: 2rem; font-weight: 700; margin-bottom: 4px; color: var(--c-ink);
  font-variant-numeric: tabular-nums; font-family: var(--f-display);
}
.product-price-note { font-size: 12px; color: #bbb; margin-bottom: 14px; }
.product-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: #2a8a2a; font-weight: 500; margin-bottom: 20px;
}
.product-status::before { content: ''; width: 7px; height: 7px; background: #2a8a2a; border-radius: 50%; }
.product-desc { font-size: 13.5px; color: #555; line-height: 1.7; margin-bottom: 20px; }

.specs-title { font-size: 12px; font-weight: 700; color: #888; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.specs-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.specs-table tr:nth-child(odd) td { background: #fafafa; }
.specs-table td { padding: 8px 10px; font-size: 13px; border: 1px solid #f0f0f0; }
.specs-table td:first-child { color: #888; width: 52%; }
.specs-table td:last-child { font-weight: 600; color: #1a1a1a; }

.delivery-info { background: #f8fbf8; border-radius: 8px; padding: 14px; margin-bottom: 20px; }
.delivery-info__row { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; }
.delivery-info__row span { color: #888; }
.delivery-info__row strong { color: #1a1a1a; }
.delivery-info__label { font-size: 11px; font-weight: 700; color: var(--c-forest-mid); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }

.product-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.badge {
  display: flex; align-items: center; gap: 5px; font-size: 12px; color: #444;
  background: #f0f5f0; border: 1px solid #d8ead8; padding: 5px 10px; border-radius: 5px;
}
.badge svg { width: 14px; height: 14px; flex-shrink: 0; }

.product-actions { display: flex; flex-direction: column; gap: 10px; }
.product-actions .btn { padding: 13px; font-size: 13.5px; }

.dwg-download-block { border-top: 1px solid #eee; padding-top: 14px; margin-top: 4px; }
.dwg-download-label { font-size: 11px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.dwg-download-btns { display: flex; gap: 10px; }
.btn-dwg {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 6px; font-size: 13px; font-weight: 700;
  text-decoration: none; letter-spacing: .5px; transition: all .2s;
  background: #1a3a5c; color: #fff; border: none; cursor: pointer;
}
.btn-dwg svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-dwg:hover { background: #14304f; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,58,92,.3); }
.btn-dwg--rfa { background: #8B4513; }
.btn-dwg--rfa:hover { background: #7a3c10; box-shadow: 0 4px 12px rgba(139,69,19,.3); }

/* CAD formats panel */
.cad-formats { border-top: 1px solid #eee; padding-top: 16px; margin-top: 4px; display: flex; flex-direction: column; gap: 8px; }
.cad-formats__title { font-size: 11px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.cad-format {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; border-radius: 10px; border: 1px solid #e6e6e2;
  background: #f4f4f1; color: #555; font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer; width: 100%; text-align: left;
  transition: border-color .15s, background .15s, color .15s, transform .1s;
}
.cad-format:hover { background: #efefec; transform: translateY(-1px); }
.cad-format__name { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.cad-format__name b { font-size: 9px; letter-spacing: .5px; color: #999; font-weight: 700; }
.cad-format__ext { font-size: 10px; font-weight: 700; color: #999; background: #fff; border: 1px solid #e0e0dc; border-radius: 4px; padding: 1px 5px; }
.cad-format__dl { width: 20px; height: 20px; flex-shrink: 0; color: inherit; }
.cad-format--active { background: #fff; border-color: var(--c-brass, #A88652); color: var(--c-forest-deep, #1a2a1a); }
.cad-format--active .cad-format__ext { color: var(--c-brass, #A88652); border-color: var(--c-brass, #A88652); }
.cad-format--active:hover { box-shadow: 0 4px 14px rgba(168,134,82,.22); }
.cad-format--request { justify-content: center; background: #fff; border: 1.5px solid var(--c-brass, #A88652); color: var(--c-brass, #A88652); font-weight: 700; margin-top: 4px; }
.cad-format--request:hover { background: var(--c-brass, #A88652); color: #fff; }

.similar-section { padding: 24px; border-top: 1px solid #eee; }
.similar-section h3 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.analogs-section { padding: 24px; border-top: 1px solid #eee; background: #fafbf9; }
.analogs-section h3 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.analogs-sub { font-weight: 400; font-size: 12.5px; color: #999; }
.analog-diff { font-size: 11.5px; font-weight: 700; padding: 1px 6px; border-radius: 6px; margin-left: 4px; white-space: nowrap; }
.analog-diff--down { background: #e3f4e6; color: #1d7a2c; }
.analog-diff--up { background: #f5e6e6; color: #b23b3b; }
.analogs-btn.active { background: var(--c-forest-mid, #2f7d3b); color: #fff; border-color: var(--c-forest-mid, #2f7d3b); }
/* Плашка «Аналоги дешевле» на карточке каталога */
.pc-analogs { width: 100%; margin: 6px 0 2px; padding: 6px 8px; font-size: 12.5px; font-weight: 600;
  color: #1d7a2c; background: #eef7ef; border: 1px solid #cfe6d3; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 4px; transition: background .15s, border-color .15s; }
.pc-analogs:hover { background: #e0f0e3; border-color: #a9d4b0; }
/* 🔒 Кнопка «В таблицу аналогов» на карточке (только владелец) */
.pc-atbl { width: 100%; margin: 6px 0 2px; padding: 6px 8px; font-size: 12.5px; font-weight: 600;
  color: #8a6d1f; background: #fbf6e8; border: 1px dashed #d9c58a; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 5px; transition: background .15s, border-color .15s, color .15s; }
.pc-atbl:hover { background: #f5edd3; border-color: #cbb36a; }
.pc-atbl.on { background: #8a6d1f; border-style: solid; border-color: #8a6d1f; color: #fff; }

/* Модалка сравнения (Аналоги дешевле) */
.modal__box--compare { max-width: 1400px; width: 97vw; max-height: 92vh; padding: 0; overflow: hidden;
  display: flex; flex-direction: column; }
#compareModalContent { display: flex; flex-direction: column; min-height: 0; }
.cmp-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 20px 24px; border-bottom: 1px solid #eee; }
.cmp-head h2 { font-size: 1.25rem; font-weight: 700; margin: 0; }
.cmp-count { display: inline-block; margin-left: 6px; font-size: .8em; color: #999; font-weight: 600; }
.cmp-toggles { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cmp-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: #444; cursor: pointer; }
.cmp-clear { padding: 7px 12px; background: transparent; color: #b23b3b; border: 1px solid #e6cccc;
  border-radius: 8px; font-size: 13px; cursor: pointer; }
.cmp-clear:hover { background: #fbeeee; }
.cmp-scroll { overflow: auto; padding: 0 24px 24px; }
.cmp-table { border-collapse: collapse; width: max-content; min-width: 100%; }
.cmp-table th, .cmp-table td { text-align: left; vertical-align: top; }
.cmp-table tbody th, .cmp-table tbody td { padding: 10px 14px; font-size: 13.5px; border-bottom: 1px solid #f0efec; }
.cmp-rowlabel { position: sticky; left: 0; z-index: 2; background: #faf9f6; color: #777; font-weight: 600;
  min-width: 132px; max-width: 165px; }
.cmp-corner { position: sticky; left: 0; z-index: 3; background: #fff; min-width: 132px; max-width: 165px; }
.cmp-table thead th { padding: 14px; border-bottom: 2px solid #eee; }
.cmp-col { position: relative; min-width: 160px; max-width: 185px; background: #fff; }
.cmp-col--analog { background: #fff9f2; }
.cmp-badge { position: absolute; top: 0; left: 0; background: #f08a24; color: #fff; font-size: 11px;
  font-weight: 700; padding: 2px 9px; border-radius: 0 0 8px 0; }
.cmp-badge--base { background: #1F4A1F; }
.cmp-badge--z { background: #1F4A1F; }
.cmp-badge--up { background: #b23b3b; }
.cmp-badge--same { background: #8a8a8a; }
.cmp-badge--todo { background: #b8860b; }
.cmp-col--todo { background: #fbfaf5; }
.amap-todo { color: #b8791a; font-size: 13px; font-style: italic; padding: 30px 6px; text-align: center; }
/* Аналог в строке списка */
.alist-analog { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #555; min-width: 220px; }
.alist-arrow { color: #f08a24; font-weight: 700; }
.alist-anm { font-weight: 600; color: #1F4A1F; cursor: pointer; }
.alist-anm:hover { text-decoration: underline; }
.alist-todo { color: #b8791a; font-style: italic; }
.cmp-sub { font-weight: 400; font-size: 13px; color: #999; margin-left: 6px; }

/* Артикул: выделяемый + кнопка копирования */
.art-code { user-select: all; -webkit-user-select: all; color: #555; font-weight: 600; }
.art-copy { margin-left: 6px; padding: 1px 6px; font-size: 13px; line-height: 1.4; border: 1px solid #ddd;
  border-radius: 6px; background: #fff; color: #888; cursor: pointer; vertical-align: middle; transition: all .15s; }
.art-copy:hover { color: #1F4A1F; border-color: #b9d4bd; background: #f2f7f1; }
.art-copy.is-copied { color: #1d7a2c; border-color: #b9d4bd; background: #e3f4e6; }
/* Бренд в карточке товара (под артикулом) */
.product-brand { font-size: 13px; color: #888; margin-bottom: 10px; }
.product-brand span { display: inline-block; margin-left: 4px; padding: 2px 10px; border-radius: 20px;
  background: #eef3ec; color: #1F4A1F; font-weight: 700; font-size: 12.5px; }
.cmp-remove { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid #e2ded6; background: #fff; color: #999; cursor: pointer; font-size: 15px; line-height: 1; }
.cmp-remove:hover { color: #b23b3b; border-color: #e0c0c0; }
.cmp-th-img { height: 110px; display: flex; align-items: center; justify-content: center; cursor: zoom-in; margin: 6px 0 8px; }
.cmp-th-img img { max-width: 100%; max-height: 110px; object-fit: contain; }
.cmp-th-name { font-size: 13px; font-weight: 600; line-height: 1.3; cursor: pointer; }
.cmp-th-name:hover { color: #1F4A1F; }
.cmp-th-brand { font-size: 11.5px; color: #999; margin-top: 3px; }
.cmp-th-price { font-size: 15px; font-weight: 700; margin: 8px 0; }
.cmp-th-cart { width: 100%; padding: 7px; background: #1F4A1F; color: #fff; border: none; border-radius: 8px;
  font-size: 12.5px; font-weight: 600; cursor: pointer; }
.cmp-th-cart:hover { background: #163516; }
.cmp-table tbody tr.cmp-diff td { background: #fffdf5; }
.cmp-table tbody tr.cmp-diff .cmp-rowlabel { background: #fbf6e8; color: #8a6d1f; }
@media (max-width: 640px) {
  .cmp-rowlabel, .cmp-corner { min-width: 110px; max-width: 130px; }
  .cmp-col { min-width: 150px; }
}

/* 🔒 Таблица аналогов (раздел-конструктор, вид как сравнение) */
.amap-wrap { grid-column: 1 / -1; }
.amap-wrap .cmp-head h2 span.cmp-sub { color: #b8860b; }
.amap-add { padding: 9px 16px; background: #1F4A1F; color: #fff; border: none; border-radius: 9px;
  font-size: 13.5px; font-weight: 600; cursor: pointer; }
.amap-add:hover { background: #163516; }
.amap-add--line { background: #b8860b; }
.amap-add--line:hover { background: #96700a; }
.amap-wrap .cmp-scroll { padding: 0; }
/* Товары стопкой: каждый блок — тот же вид, следующий под предыдущим */
.amap-stack { display: flex; flex-direction: column; gap: 22px; }
.amap-block { width: max-content; max-width: 100%; }
/* Выбор товаров внутри таблицы аналогов (звёздочка + фильтр «Выбранные») */
.apick-star { position: absolute; top: 6px; left: 6px; z-index: 3; width: 26px; height: 26px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.9); color: #bdb7a8; font-size: 15px; line-height: 26px; cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,.12); padding: 0; transition: transform .1s, color .15s; }
.apick-star:hover { transform: scale(1.12); color: #d8a41a; }
.apick-star.on { color: #e8a51b; }
.alist-row { position: relative; }
.alist-row .apick-star { position: static; box-shadow: none; background: transparent; width: 24px; flex: 0 0 24px; }
.alist-row.picked { background: #fffaf0; }
.apick-filter { padding: 8px 13px; border: 1.5px solid #e8c877; background: #fdf7e6; color: #9a7513; border-radius: 9px;
  font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.apick-filter:hover { background: #faefce; }
.apick-filter.on { background: #e8a51b; border-color: #e8a51b; color: #fff; }
.apick-clear { padding: 8px 12px; border: 1.5px solid #e2ded6; background: #fff; color: #888; border-radius: 9px;
  font-size: 13px; line-height: 1; cursor: pointer; white-space: nowrap; }
.apick-clear:hover { color: #b23b3b; border-color: #e0c0c0; }
/* Быстрое добавление набора (по бренду) */
.aqadd { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #888; }
.aqadd-btn { padding: 7px 12px; border: 1px solid #cfe6d3; background: #eef7ef; color: #1F4A1F; border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer; }
.aqadd-btn:hover { background: #e0f0e3; border-color: #a9d4b0; }
/* Фильтр «Показать» — как галочка-фильтр слева: активный подсвечен */
.aqfilter { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid #d5dae0;
  background: #fff; color: #3a4552; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
.aqfilter i { width: 15px; height: 15px; flex: 0 0 15px; border: 1.5px solid #b9c2cc; border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-style: normal; color: #fff; line-height: 1; }
.aqfilter:hover { border-color: #a9d4b0; background: #f4faf5; }
.aqfilter.on { background: #eef7ef; border-color: #2f7d3b; color: #1F4A1F; }
.aqfilter.on i { background: #2f7d3b; border-color: #2f7d3b; }
.aqfilter b { background: #eceef1; color: #7a838d; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 20px; }
.aqfilter.on b { background: #d6ead9; color: #1F4A1F; }
/* Переключатель вида Таблица/Список */
.aview { display: inline-flex; border: 1px solid #d8d4cc; border-radius: 9px; overflow: hidden; }
.aview-btn { padding: 8px 14px; background: #fff; border: none; font-size: 13px; font-weight: 600; color: #666; cursor: pointer; }
.aview-btn + .aview-btn { border-left: 1px solid #e2ded6; }
.aview-btn.on { background: #1F4A1F; color: #fff; }
/* Компактный список товаров */
.alist { display: flex; flex-direction: column; border: 1px solid #eee; border-radius: 12px; overflow: hidden; max-width: 760px; }
.alist-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid #f2f1ee; }
.alist-row:last-child { border-bottom: none; }
.alist-row:hover { background: #fafbf9; }
.alist-num { color: #bbb; font-size: 12px; font-weight: 600; width: 26px; text-align: center; flex: 0 0 26px; }
.alist-thumb { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 8px; overflow: hidden; background: #f4f3ef;
  display: flex; align-items: center; justify-content: center; cursor: pointer; }
.alist-main { flex: 1; min-width: 0; }
.alist-name { font-size: 13.5px; font-weight: 600; line-height: 1.25; cursor: pointer; }
.alist-name:hover { color: #1F4A1F; }
.alist-meta { font-size: 12px; color: #999; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alist-price { font-size: 14px; font-weight: 700; color: #1F4A1F; white-space: nowrap; }
.alist-rm { width: 24px; height: 24px; border-radius: 50%; border: 1px solid #e2ded6; background: #fff; color: #999;
  cursor: pointer; font-size: 15px; line-height: 1; flex: 0 0 24px; }
.alist-rm:hover { color: #b23b3b; border-color: #e0c0c0; }
/* В блоках таблицы аналогов строки характеристик компактнее (меньше межстрочный интервал) */
.amap-block .cmp-table tbody th, .amap-block .cmp-table tbody td { padding: 4px 14px; font-size: 13px; line-height: 1.3; }
/* Не растягивать таблицу на всю ширину: колонки фиксированные, стоят слева
   (иначе при 1–2 товарах колонка «висит» по центру). */
.amap-wrap .cmp-table { min-width: 0; width: max-content; }
.amap-wrap .cmp-table .cmp-col { width: 185px; }
.amap-wrap .cmp-table .cmp-corner, .amap-wrap .cmp-table .cmp-rowlabel { width: 165px; }

/* Пикер товаров */
.apick-search { width: 100%; padding: 11px 14px; border: 1px solid #ddd; border-radius: 10px; font-size: 14px; }
.apick-search:focus { outline: none; border-color: #1F4A1F; }
.apick-list { overflow-y: auto; margin-top: 12px; min-height: 0; }
.apick-row { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px solid #f2f1ee; }
.apick-thumb { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 8px; overflow: hidden; background: #f4f3ef;
  display: flex; align-items: center; justify-content: center; }
.apick-info { flex: 1; min-width: 0; }
.apick-name { font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.apick-meta { font-size: 12px; color: #999; margin-top: 2px; }
.apick-add { padding: 7px 13px; background: #fff; border: 1px solid #1F4A1F; color: #1F4A1F; border-radius: 8px;
  font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.apick-add:hover { background: #eef3ec; }
.apick-add.in { background: #1F4A1F; color: #fff; }
.similar-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.similar-card {
  background: #f8f8f8; border-radius: 8px; border: 1px solid #eee;
  overflow: hidden; cursor: pointer; transition: box-shadow .15s;
}
.similar-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.similar-card__img { background: #efefef; height: 90px; display: flex; align-items: center; justify-content: center; }
.similar-card__body { padding: 8px 10px; }
.similar-card__name { font-size: 11px; font-weight: 600; margin-bottom: 2px; color: #333; }
.similar-card__mat { font-size: 10px; color: #aaa; margin-bottom: 4px; }
.similar-card__price { font-size: 13px; font-weight: 700; color: #1a1a1a; }

/* ============================================================
   MOBILE FILTER PANEL
============================================================ */
.mobile-catalog-bar {
  display: none; background: #fff; border-radius: 10px; border: 1px solid #e8e8e8;
  padding: 12px 16px; margin-bottom: 12px; gap: 10px;
}
.mobile-catalog-bar .btn { flex: 1; font-size: 12px; padding: 8px; }

.mobile-filter-panel {
  display: none; position: fixed; top: 0; left: 0; width: 300px;
  height: 100%; background: #fff; z-index: 300; flex-direction: column;
  box-shadow: 4px 0 24px rgba(0,0,0,.18);
}
.mobile-filter-panel.open { display: flex; }
.mobile-filter-panel__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px; border-bottom: 1px solid #eee;
}
.mobile-filter-panel__header h3 { font-size: 1rem; font-weight: 700; }
.mobile-filter-panel__header button { font-size: 26px; color: #bbb; }
.mobile-filter-panel__body { flex: 1; overflow-y: auto; padding: 20px; }
.mobile-filter-panel__footer { padding: 16px 20px; border-top: 1px solid #eee; }

.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 250; }
.overlay.open { display: block; }

/* ============================================================
   TOAST
============================================================ */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: var(--c-forest-mid); color: #fff; padding: 13px 28px; border-radius: 6px;
  font-size: 14px; font-weight: 500; z-index: 2000000; /* всегда поверх модалок/корзины/зума */
  box-shadow: 0 4px 20px rgba(0,0,0,.2); opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.toast.show { opacity: 1; }

/* ============================================================
   HERO BADGE / TRUST (legacy classes still used)
============================================================ */
.hero__badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--c-brass-light);
  animation: dotPulse 1.8s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(168,134,82,.6); }
  50%      { box-shadow: 0 0 0 6px rgba(168,134,82,0); }
}

.hero-form { display: none; }

/* ============================================================
   VIDEO SECTION
============================================================ */
.video-section {
  padding: 96px 0; background: #060E06;
}
.video-section .section-tag { color: rgba(201,168,112,.9); background: rgba(168,134,82,.1); border-color: rgba(168,134,82,.25); }
.video-section .section-title { color: #f0f0ee; }
.video-section p, .video-section li { color: rgba(255,255,255,.55); line-height: 1.75; }
.video-section__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.video-section__list {
  list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 10px;
}
.video-section__list li { font-size: 14px; color: rgba(255,255,255,.55); }

.video-placeholder {
  position: relative; border-radius: 16px; overflow: hidden;
  cursor: pointer; box-shadow: 0 20px 60px rgba(0,0,0,.55);
}
.video-placeholder:hover .video-play-btn { transform: translate(-50%,-50%) scale(1.1); background: rgba(168,134,82,.5); }
.video-poster { display: block; width: 100%; }
.video-poster svg { display: block; width: 100%; height: auto; border-radius: 14px; }
.video-play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 70px; height: 70px; border-radius: 50%;
  background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); transition: transform .2s, background .2s;
}
.video-play-btn svg { width: 28px; height: 28px; margin-left: 4px; }
.video-duration {
  position: absolute; bottom: 12px; right: 14px;
  background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 600;
  padding: 3px 8px; border-radius: 4px; backdrop-filter: blur(4px);
}
.video-label {
  position: absolute; bottom: 12px; left: 14px;
  background: rgba(0,0,0,.5); color: rgba(255,255,255,.75); font-size: 12px;
  padding: 3px 10px; border-radius: 4px; backdrop-filter: blur(4px); max-width: 60%;
}

/* ============================================================
   REVIEWS
============================================================ */
.reviews { padding: 96px 0; background: var(--c-surface); }
.reviews-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 48px; }
.review-card {
  background: var(--c-stone-light); border-radius: 14px; padding: 28px;
  transition: box-shadow .2s; border: 1px solid transparent;
}
.review-card:hover { box-shadow: var(--shadow-card-hover); border-color: var(--c-border); }
.review-card__stars { font-size: 16px; margin-bottom: 14px; letter-spacing: 2px; }
.review-card__text { font-size: 14px; color: #444; line-height: 1.75; margin-bottom: 20px; }
.review-card__text::before { content: '"'; font-size: 40px; color: var(--c-border); line-height: 0; vertical-align: -14px; margin-right: 4px; font-family: Georgia, serif; }
.review-card__author { display: flex; align-items: center; gap: 12px; }
.review-card__avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--c-forest-mid);
  display: flex; align-items: center; justify-content: center; font-size: 16px; color: #fff; font-weight: 700;
  flex-shrink: 0;
}
.review-card__name { font-size: 14px; font-weight: 700; color: var(--c-ink); }
.review-card__role { font-size: 12px; color: var(--c-muted); margin-top: 2px; }

.clients-logos {
  margin-top: 64px; padding-top: 44px; border-top: 1px solid var(--c-border);
  text-align: center;
}
.clients-logos__label { font-size: 11px; color: #bbb; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 24px; }
.clients-logos__row { display: flex; justify-content: center; align-items: center; gap: 24px; flex-wrap: wrap; }
.client-logo {
  background: var(--c-stone-light); border-radius: 8px; padding: 10px 22px;
  font-size: 12px; font-weight: 700; color: #aaa; letter-spacing: 1px;
  border: 1px solid var(--c-border); transition: all .2s;
}
.client-logo:hover { background: #EDF4EE; color: var(--c-forest-mid); border-color: #C0D8C0; }

/* ============================================================
   CERTIFICATES
============================================================ */
.certs { padding: 96px 0; background: var(--c-bg); }
.certs-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 48px; }
.cert-card {
  background: var(--c-surface); border-radius: 14px;
  padding: 32px 22px; text-align: center; transition: transform .22s, box-shadow .22s;
  cursor: pointer; box-shadow: var(--shadow-card);
}
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.cert-card__icon { font-size: 40px; margin-bottom: 14px; }
.cert-card__title { font-size: 14px; font-weight: 700; color: var(--c-ink); margin-bottom: 8px; }
.cert-card__desc { font-size: 12px; color: #777; line-height: 1.6; margin-bottom: 16px; }
.cert-card__badge {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  background: #EDF4EE; color: var(--c-forest-mid); font-size: 11px; font-weight: 700;
  border: 1px solid #C8DDC8;
}

/* ============================================================
   BLOG
============================================================ */
.blog { padding: 96px 0; background: var(--c-surface); }
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 48px; }
.blog-card {
  background: var(--c-surface); border-radius: 14px;
  overflow: hidden; transition: transform .22s, box-shadow .22s; cursor: pointer;
  box-shadow: var(--shadow-card);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.blog-card__img {
  height: 180px; display: flex; align-items: center; justify-content: center;
  font-size: 56px; position: relative; overflow: hidden;
}
.blog-card__img--1 { background: linear-gradient(135deg, #0E1A0E, #1F4A1F); }
.blog-card__img--2 { background: linear-gradient(135deg, #0E1A2A, #1F3A5A); }
.blog-card__img--3 { background: linear-gradient(135deg, #1A140E, #4A3820); }
.blog-card__tag {
  position: absolute; top: 12px; left: 12px; background: rgba(168,134,82,.85);
  color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 4px 10px; border-radius: 2px;
}
.blog-card__body { padding: 22px; }
.blog-card__date { font-size: 11px; color: #bbb; margin-bottom: 8px; }
.blog-card__title { font-size: 15px; font-weight: 700; color: var(--c-ink); line-height: 1.4; margin-bottom: 10px; }
.blog-card__excerpt { font-size: 13px; color: #666; line-height: 1.65; margin-bottom: 16px; }
.blog-card__read { font-size: 13px; font-weight: 600; color: var(--c-forest-mid); display: inline-flex; align-items: center; gap: 4px; }
.blog-card__read::after { content: '→'; transition: transform .2s; }
.blog-card:hover .blog-card__read::after { transform: translateX(4px); }

/* ============================================================
   CALCULATOR
============================================================ */
.calc-section { padding: 96px 0; background: #060E06; }
.calc-section .section-tag { color: rgba(201,168,112,.9); background: rgba(168,134,82,.1); border-color: rgba(168,134,82,.25); }
.calc-section .section-title { color: #f0f0ee; }
.calc-section .section-sub { color: rgba(255,255,255,.4); }

.calc-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px; padding: 36px; margin-top: 48px;
}
.calc-grid { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.calc-group { margin-bottom: 24px; }
.calc-label { display: block; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.6); margin-bottom: 10px; letter-spacing: .3px; }
.calc-options { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-opt {
  padding: 7px 16px; border-radius: 5px; font-size: 13px; font-weight: 500;
  background: rgba(255,255,255,.05); border: 1.5px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.55); cursor: pointer; transition: all .15s;
}
.calc-opt:hover { border-color: rgba(168,134,82,.5); color: rgba(201,168,112,.9); }
.calc-opt.active { background: rgba(168,134,82,.18); border-color: var(--c-brass); color: rgba(201,168,112,.95); font-weight: 700; }

.calc-slider { width: 100%; accent-color: var(--c-brass); height: 4px; margin-top: 4px; cursor: pointer; }
.calc-slider-labels { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,.3); margin-top: 6px; }

.calc-result-col { position: sticky; top: 90px; }
.calc-result {
  background: linear-gradient(135deg, rgba(168,134,82,.15), rgba(100,80,40,.2));
  border: 1px solid rgba(168,134,82,.25); border-radius: 16px; padding: 28px;
}
.calc-result__label { font-size: 11px; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; }
.calc-result__price { font-size: 2.4rem; font-weight: 800; color: rgba(201,168,112,.95); line-height: 1; }
.calc-result__per { font-size: 14px; color: rgba(255,255,255,.4); margin-top: 6px; }
.calc-result__disc { font-size: 12px; color: var(--c-brass-light); margin-top: 8px; font-weight: 600; }
.calc-result__breakdown { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: rgba(255,255,255,.35); display: flex; flex-direction: column; gap: 4px; }
.calc-result__note { font-size: 11px; color: rgba(255,255,255,.25); text-align: center; margin-top: 10px; }
.calc-features { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.calc-feat { font-size: 13px; color: rgba(255,255,255,.4); padding: 8px 12px; background: rgba(255,255,255,.03); border-radius: 5px; }

/* ============================================================
   GALLERY
============================================================ */
.gallery-section { padding: 96px 0; background: var(--c-bg); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px; gap: 16px; margin-top: 48px;
}
.gallery-item { border-radius: 12px; overflow: hidden; cursor: pointer; position: relative; }
.gallery-item--wide { grid-column: span 2; }
.gallery-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-img {
  width: 100%; height: 100%; position: relative; overflow: hidden;
  transition: transform .35s;
}
.gallery-item:hover .gallery-img { transform: scale(1.04); }
.gallery-img svg { width: 100%; height: 100%; display: block; }
.gallery-item__overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, transparent 100%);
  padding: 20px 16px 14px; color: #fff; opacity: 0;
  transition: opacity .25s;
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-item__title { font-size: 14px; font-weight: 700; }
.gallery-item__sub { font-size: 12px; color: rgba(255,255,255,.65); margin-top: 3px; }

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,.95); align-items: center; justify-content: center;
  flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox__close {
  position: absolute; top: 20px; right: 28px;
  font-size: 36px; color: rgba(255,255,255,.5); cursor: pointer; z-index: 1;
  transition: color .2s;
}
.lightbox__close:hover { color: #fff; }
.lightbox__prev, .lightbox__next {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 56px; color: rgba(255,255,255,.4); cursor: pointer;
  transition: color .2s; background: none; border: none; padding: 0 20px;
  z-index: 1;
}
.lightbox__prev { left: 0; }
.lightbox__next { right: 0; }
.lightbox__prev:hover, .lightbox__next:hover { color: #fff; }
.lightbox__content { max-width: 80vw; max-height: 86vh; border-radius: 12px; overflow: hidden; }
.lightbox__content > svg { display: block; max-width: 900px; width: 80vw; height: auto; }
.lightbox__caption { margin-top: 16px; color: rgba(255,255,255,.5); font-size: 14px; text-align: center; }

/* ============================================================
   FAQ
============================================================ */
.faq-section { padding: 96px 0; background: var(--c-surface); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin-top: 48px; }
.faq-col { display: flex; flex-direction: column; gap: 0; }
.faq-item { border-bottom: 1px solid var(--c-border); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; font-size: 15px; font-weight: 600; color: var(--c-ink); text-align: left;
  gap: 12px; transition: color .15s;
}
.faq-q:hover { color: var(--c-forest-mid); }
.faq-icon {
  font-size: 22px; font-weight: 300; color: var(--c-brass); flex-shrink: 0;
  transition: transform .25s; line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .25s;
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 16px; }
.faq-a p { font-size: 14px; color: #555; line-height: 1.75; }
.faq-a strong { color: var(--c-forest-mid); }

/* Скрытый блок в карточке товара (пробный, на тест-товаре).
   Видимой кнопки нет; контент в HTML (max-height:0, не display:none) →
   индексируется поисковиками, но клиент его не видит. Раскрывается
   секретным триггером (клик по артикулу), о котором говорит менеджер. */
.product-delivery { font-size: 13px; color: #2a8a2a; margin-top: 6px; font-weight: 600; }
/* Слово-триггер выглядит как обычный текст — не выдаёт, что кликабельно */
.product-delivery .secret-trigger { cursor: default; }
.product-secret { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.product-secret.open { max-height: 900px; }
.product-secret__inner { padding: 10px 0 2px; }
.product-secret__inner p { font-size: 13px; color: #666; line-height: 1.65; margin: 0; }
/* Артикул — секретный триггер: внешне обычный текст, без намёка на клик */
.product-art { user-select: none; }

/* ============================================================
   FLOATING CONTACT
============================================================ */
.float-contact {
  position: fixed; bottom: 28px; right: 28px; z-index: 1500;
  display: flex; flex-direction: column-reverse; align-items: center; gap: 10px;
}
.float-contact__main {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--c-forest-mid); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(31,74,31,.5); transition: transform .2s, background .2s;
  z-index: 2; position: relative;
}
.float-contact__main svg { width: 26px; height: 26px; }
.float-contact__main:hover { transform: scale(1.08); background: var(--c-moss); }

.float-menu {
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .2s, transform .2s;
}
.float-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); }

.float-item {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 12px rgba(0,0,0,.25); transition: transform .15s;
  color: #fff; text-decoration: none;
}
.float-item:hover { transform: scale(1.1); }
.float-item svg { width: 22px; height: 22px; }
.float-item--wa   { background: #25d366; }
.float-item--tg   { background: #229ed9; }
.float-item--call { background: #e8572a; }

/* ============================================================
   POPUP OFFER
============================================================ */
.popup-offer {
  display: none; position: fixed; bottom: 32px; left: 32px; z-index: 2500;
  background: #fff; border-radius: 16px; padding: 28px 28px 22px;
  width: 320px; box-shadow: 0 12px 48px rgba(0,0,0,.18);
  border: 1px solid var(--c-border); animation: popupSlide .4s ease;
}
.popup-offer.open { display: block; }
@keyframes popupSlide { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.popup-offer__close {
  position: absolute; top: 14px; right: 16px;
  font-size: 22px; color: #bbb; cursor: pointer; transition: color .2s;
}
.popup-offer__close:hover { color: #666; }
.popup-offer__badge {
  display: inline-block; background: #EDF4EE; color: var(--c-forest-mid);
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px; border: 1px solid #C8DDC8; margin-bottom: 10px;
}
.popup-offer__title { font-size: 1.2rem; font-weight: 800; color: var(--c-ink); margin-bottom: 8px; }
.popup-offer__desc { font-size: 13px; color: #666; line-height: 1.55; margin-bottom: 16px; }
.popup-offer__note { font-size: 11px; color: #bbb; margin-top: 10px; text-align: center; }
.popup-offer__overlay {
  display: none; position: fixed; inset: 0; z-index: 2400;
}
.popup-offer__overlay.open { display: block; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .materials__grid { grid-template-columns: repeat(2,1fr); }
  .delivery__grid { grid-template-columns: repeat(2,1fr); }
  .delivery__card--photo { grid-column: auto; grid-row: auto; }
  .delivery__card:last-child { grid-column: auto; }
  .product-grid { grid-template-columns: repeat(2,1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ba-grid { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .certs-grid { grid-template-columns: repeat(2,1fr); }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .calc-result-col { position: static; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-item--wide { grid-column: span 1; }
  .faq-grid { grid-template-columns: 1fr; }
  .hero__features { display: none; }
}

@media (max-width: 768px) {
  .nav { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: #0E1A0E; padding: 16px 24px; box-shadow: 0 8px 24px rgba(0,0,0,.3); gap: 4px; z-index: 100; border-top: 1px solid rgba(255,255,255,.06); }
  .header.white .nav { background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.1); border-top-color: #eee; }
  .header.white .nav .nav__link { color: #444; }
  .header.white .nav .nav__link:hover { color: var(--c-forest-mid); background: #f0f5f0; }
  .nav.open { display: flex; }
  .header__right .header__phone { display: none; }
  .header__right .btn--primary { display: none; }
  .header__inner { gap: 12px; }
  .header__right { gap: 10px; }
  .burger { display: flex; }
  .nav__link--phone { display: block; color: #fff; font-size: 15px; font-weight: 600; padding: 12px 13px; }
  .header.white .nav__link--phone { color: var(--c-forest-mid); }
  .nav__cta { display: block; margin-top: 8px; width: 100%; padding: 12px; border: none; border-radius: 8px;
    background: var(--c-forest-mid); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; }

  .hero__inner { flex-direction: column; gap: 24px; }
  .hero__title { font-size: clamp(2.2rem, 8vw, 3.2rem); }
  .hero__trust { gap: 0; }
  .hero__trust-item { padding: 0 16px; }
  .hero__trust-item:first-child { padding-left: 0; }

  .catalog { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .mobile-catalog-bar { display: flex; }

  .about__inner { grid-template-columns: 1fr; }
  .about__image { display: none; }
  .about__stats { gap: 0; flex-wrap: wrap; }
  .stat { padding: 16px 20px; border-bottom: 1px solid var(--c-border); border-right: none; }
  .stat:first-child { padding-left: 20px; }
  .features-strip__inner { grid-template-columns: repeat(2,1fr); }
  .contacts__inner { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }

  .product-page { grid-template-columns: 1fr; }
  .modal--product .modal__box--product { max-height: 100vh; border-radius: 0; }
  .similar-grid { grid-template-columns: repeat(2,1fr); }
  .ba-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .clients-logos__row { gap: 16px; }
  .video-section__inner { grid-template-columns: 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item--wide { grid-column: span 1; }
  .gallery-grid { grid-template-rows: auto; }
  .popup-offer { left: 16px; right: 16px; width: auto; bottom: 16px; }
  .float-contact { bottom: 16px; right: 16px; }
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: repeat(2,1fr); }
  .materials__grid { grid-template-columns: 1fr; }
  .delivery__grid { grid-template-columns: 1fr; }
  .delivery__card--photo { grid-column: auto; grid-row: auto; }
  .delivery__photo { height: auto; aspect-ratio: 16 / 9; }
  .features-strip__inner { grid-template-columns: 1fr; }
  .feature-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.05); }
  .section-title { font-size: 1.6rem; }
  .certs-grid { grid-template-columns: 1fr 1fr; }
}

/* HERO с фоном и затемнением */
.hero { position: relative; min-height: 660px; display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__pic { display: block; width: 100%; height: 100%; }
.hero__media img,
.hero__media video { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; display: block; }
/* Портрет (телефон/планшет вертикально): вертикальное фото уже скомпоновано под портрет —
   центрируем, фокус чуть выше, чтобы логотип на стене был в кадре. */
@media (orientation: portrait) {
  .hero__media img { object-position: center 32%; }
}
/* Равномерное затемнение всего кадра (как на референсе reshnastil) — фото видно, но приглушено, белый текст читается везде */
.hero__overlay { position: absolute; inset: 0; background:
  linear-gradient(0deg, rgba(8,14,8,.60) 0%, rgba(8,14,8,.48) 55%, rgba(8,14,8,.42) 100%); }
.hero__content { position: relative; z-index: 1; color: #fff; padding: 0 0 40px; }
.hero__title { font-size: 36px; font-weight: 800; line-height: 1.14; max-width: 520px; margin: 0 0 22px; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 2px 16px rgba(0,0,0,.5); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
/* Кнопки hero — прозрачные с тонкой обводкой (золотой акцент бренда), как на reshnastil */
.hero__actions .btn { background: rgba(255,255,255,.05); border: 1.6px solid var(--c-brass-light);
  color: #fff; border-radius: 3px; padding: 13px 26px; backdrop-filter: blur(2px); box-shadow: none; }
.hero__actions .btn:hover { background: var(--c-brass-light); border-color: var(--c-brass-light);
  color: #1a1206; transform: none; box-shadow: none; }
@media (max-width: 700px) {
  /* Фиксируем невысокий герой: тогда вертикальное фото масштабируется по ШИРИНЕ
     и логотип «КупиУрну.рф» целиком в кадре (не режется по бокам). */
  .hero { min-height: 0; height: 500px; }
  .hero__content { padding: 0 0 26px; }
  .hero__title { font-size: 25px; }
  /* На телефоне надписи закрывают живую картинку — прячем заголовок и подзаголовок,
     оставляем чистое фото и только кнопки внизу. H1 остаётся в DOM для SEO. */
  .hero__title, .hero__sub { display: none; }
  /* Без текста фото можно почти не затемнять — тёмное только снизу под кнопками. */
  .hero__overlay { background: linear-gradient(0deg,
    rgba(6,12,6,.55) 0%, rgba(6,12,6,.20) 24%, rgba(6,12,6,0) 46%) !important; }
}
/* Портрет (телефон/планшет вертикально): текст внизу поверх «живого» фото —
   усиливаем затемнение снизу, чтобы заголовок и кнопки читались чисто. */
@media (orientation: portrait) {
  .hero__overlay { background: linear-gradient(0deg, rgba(6,12,6,.8) 0%, rgba(6,12,6,.5) 45%, rgba(6,12,6,.34) 100%); }
}

/* Переключатель дизайна в карточке товара (Раздельный сбор: Дуэт/Трио/Квадро) */
.variant-block { margin: 14px 0 4px; }
.variant-block__label { font-size: 13px; color: #666; margin-bottom: 8px; }
.variant-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.variant-thumb { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 8px; overflow: hidden;
  border: 2px solid #ddd; cursor: pointer; background: #fff; transition: border-color .15s; }
.variant-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.variant-thumb:hover { border-color: #999; }
.variant-thumb.active { border-color: var(--c-primary); }

/* Блок «Выберите дизайн» под фото (карточка товара, Раздельный сбор) */
.design-block { margin: 14px 0; padding: 14px; border: 1px solid var(--c-border, #e2ded4); border-radius: 12px; background: var(--c-surface, #faf9f5); }
.design-block__title { font-weight: 700; font-size: 15px; color: var(--c-text, #333); margin-bottom: 10px; }
.design-block__title span { color: #888; font-weight: 400; }
.design-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  max-height: 300px; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; }
.design-grid::-webkit-scrollbar { width: 8px; }
.design-grid::-webkit-scrollbar-thumb { background: #c8c4b8; border-radius: 4px; }
.design-grid::-webkit-scrollbar-track { background: transparent; }
@media (max-width: 560px) { .design-grid { grid-template-columns: repeat(3, 1fr); } }
/* Переключатель цвета (медицинские урны): 2 плитки без прокрутки */
.design-grid--colors { grid-template-columns: repeat(2, 1fr); max-height: none; overflow: visible; max-width: 360px; }
@media (max-width: 560px) { .design-grid--colors { grid-template-columns: repeat(2, 1fr); } }
.design-tile { border: 2px solid #ddd; border-radius: 10px; overflow: hidden; cursor: pointer; background: #fff; transition: border-color .15s, transform .15s; }
.design-tile:hover { border-color: #9a9a8a; transform: translateY(-1px); }
.design-tile.active { border-color: var(--c-primary); box-shadow: 0 0 0 1px var(--c-primary); }
.design-tile img { width: 100%; height: 72px; object-fit: cover; display: block; }
.design-tile__name { font-size: 11px; line-height: 1.25; color: #444; padding: 5px 6px; text-align: center; }
.design-tile.dv-hidden { display: none; }
.design-block__more { display: block; margin-top: 10px; background: none; border: none; color: var(--c-primary); font-size: 13px; font-weight: 600; cursor: pointer; padding: 0; }
.design-block__more:hover { text-decoration: underline; }

/* Кнопка «← назад» к плиткам (подрубрики Хоббики / рубрики Каталога) */
.subnav__chip--back { background: var(--c-primary); color: #fff; border-color: var(--c-primary); font-weight: 600; }
.subnav__chip--back:hover { opacity: .88; }

/* Кружочки-дизайны на карточке-модели (Раздельный сбор): клик — в карточку этого дизайна */
.mini-dots { display: flex; gap: 6px; align-items: center; padding: 8px 0 2px; flex-wrap: wrap; }
.mini-dot { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid #ccc;
  cursor: pointer; transition: border-color .15s, transform .15s; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.mini-dot:hover { border-color: var(--c-primary); transform: scale(1.1); }
.mini-dot__more { font-size: 13px; color: #666; font-weight: 600; }

/* Витрина-слайдшоу «N дизайнов» в Раздельном сборе — в стиле обычной карточки */
.promo-banner { cursor: pointer; }
.promo-banner__imgwrap { position: relative; background: var(--c-surface, #f6f4ee); }
.promo-banner__imgwrap img { width: 100%; height: 100%; object-fit: contain;
  transition: opacity .3s ease; opacity: 1; }
.promo-banner__dots { display: flex; gap: 6px; padding: 8px 0 2px; }
.pb-dot { width: 8px; height: 8px; border-radius: 50%; background: #d5d1c6; transition: background .2s, transform .2s; }
.pb-dot.on { background: var(--c-primary); transform: scale(1.25); }
@media (prefers-reduced-motion: reduce) { .promo-banner__imgwrap img { transition: none; } }

/* SEO-блок: текст + популярные запросы (низ страницы, спокойный вид) */
.seo-section { padding: 44px 0 36px; background: var(--c-surface, #f6f4ee); border-top: 1px solid var(--c-border, #e2ded4); }
.seo-section__h { font-size: 1.25rem; margin: 0 0 14px; color: var(--c-text, #2b2e29); }
.seo-section__text { max-width: 900px; color: #5f6258; font-size: .95rem; line-height: 1.65; }
.seo-section__text p { margin: 0 0 12px; }
.seo-section__text a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 2px; }
.seo-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
.seo-tags__label { font-size: .85rem; color: #8a8d80; margin-right: 4px; }
.seo-tags a { font-size: .82rem; color: #5f6258; background: #fff; border: 1px solid var(--c-border, #ddd);
  border-radius: 14px; padding: 5px 12px; text-decoration: none; transition: border-color .15s, color .15s; }
.seo-tags a:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* Бейдж «Светится» на карточке умной урны с подсветкой */
.pc-glow-badge{position:absolute;top:10px;left:10px;z-index:4;display:inline-flex;align-items:center;gap:4px;
  padding:5px 10px;border-radius:20px;font:700 12px/1 -apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:#eafaff;background:linear-gradient(135deg,#1b6fb3,#37b6e6);
  box-shadow:0 0 0 1px rgba(255,255,255,.25),0 0 14px rgba(55,182,230,.75);letter-spacing:.2px}
