/* ── CMS Site CSS ──────────────────────────────────────────────── */
:root {
  --gold:       #C14B1A;
  --gold-lt:    #d9622e;
  --charcoal:   #090d14;
  --dark:       #1E1810;
  --mid:        #6b7280;
  --light:      #f9f6f2;
  --stone:      #f0ede9;
  --border:     #e5e1dc;
  --radius:     8px;
  --shadow:     0 2px 8px rgba(0,0,0,.08);
  --shadow-lg:  0 4px 24px rgba(0,0,0,.12);
  --header-h:   72px;
  --max-w:      1200px;
  font-size: 16px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #1f2937;
  background: #fff;
  line-height: 1.7;
  padding-top: var(--header-h);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; color: var(--charcoal); }
p { color: var(--mid); }

/* ── Layout ────────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; min-width: 0; }
.section    { padding: 4rem 0; }
.bg-light   { background: var(--stone); }

/* ── Header ────────────────────────────────────────────────────── */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 900; }

/* ── Header V2 — Modern (two-row, light) ───────────────────────── */
.site-header--modern {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.09), 0 2px 14px rgba(0,0,0,.06);
}
/* Высота: топ-строка ≈58px + нав-строка ≈44px = 102px */
body.header-v2 { --header-h: 102px; }

/* ── Top row ── */
.hdr-top-row { border-bottom: 1px solid #e8e8e8; padding: .5rem 0; }

/* Grid: [лого] [поиск по центру] [правый блок] */
.hdr-top-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

/* Логотип — левая колонка */
.hdr-top-inner .nav-logo {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
  max-width: 220px;
  text-decoration: none;
}
.hdr-top-inner .logo-text {
  color: var(--charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hdr-top-inner .logo-img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  object-fit: contain;
}

/* Поиск — средняя колонка, строго по центру */
.hdr-search {
  width: clamp(180px, 36vw, 420px);
  display: flex;
  align-items: center;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  overflow: hidden;
  background: #f7f8fa;
  transition: border-color .2s, background .2s;
}
.hdr-search:focus-within { border-color: var(--gold); background: #fff; }
.hdr-search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: .44rem .75rem;
  font-size: .875rem;
  color: var(--charcoal);
  outline: none;
  -webkit-appearance: none;
}
.hdr-search input[type="search"]::placeholder { color: #adb5bd; }
.hdr-search button {
  background: none;
  border: none;
  padding: .44rem .65rem;
  cursor: pointer;
  color: #adb5bd;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: color .18s;
}
.hdr-search button:hover { color: var(--gold); }
.hdr-search svg { width: 17px; height: 17px; }

/* Поиск в классической шапке */
.hdr-search--classic {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  background: #f7f8fa;
  transition: border-color .2s, background .2s;
  overflow: visible !important;
}
.hdr-search--classic:focus-within { border-color: var(--gold); background: #fff; }
.hdr-search-inp-classic {
  border: none;
  background: transparent;
  padding: .38rem .75rem;
  padding-right: 2.2rem;
  font-size: .875rem;
  color: var(--charcoal);
  outline: none;
  width: 160px;
  -webkit-appearance: none;
}
.hdr-search-inp-classic::placeholder { color: #adb5bd; }

/* Dropdown автодополнения (все стили шапки) */
.hdr-search { position: relative; overflow: visible !important; }
.hdr-search-drop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 280px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.13);
  z-index: 9999;
  overflow: hidden;
}
.hdr-search-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem .9rem;
  text-decoration: none;
  color: var(--charcoal);
  font-size: .87rem;
  border-bottom: 1px solid #f3f4f6;
  transition: background .15s;
}
.hdr-search-item:last-of-type { border-bottom: none; }
.hdr-search-item:hover, .hdr-search-item:focus { background: #f9f9f9; outline: none; }
.hdr-search-item-text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.hdr-search-badge {
  font-size: .68rem;
  color: var(--mid);
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.hdr-search-none {
  padding: .75rem 1rem;
  font-size: .85rem;
  color: var(--mid);
}
.hdr-search-all {
  display: block;
  padding: .6rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
  text-align: center;
}
.hdr-search-all:hover { background: #f5f0e8; }

/* Правый блок — правая колонка, выровнен по правому краю */
.hdr-top-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.hdr-phone {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-weight: 700;
  font-size: .875rem;
  color: var(--charcoal);
  white-space: nowrap;
  text-decoration: none;
}
.hdr-phone svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }
.hdr-phone-text { /* text portion — can hide at mid-widths */ }

.hdr-lang.lang-switcher { gap: .08rem; }
.hdr-lang.lang-switcher a {
  color: #495057;
  font-size: .74rem;
  font-weight: 600;
  padding: .2rem .3rem;
  border-radius: 3px;
  white-space: nowrap;
}
.hdr-lang.lang-switcher a.active {
  color: var(--charcoal);
  font-weight: 700;
  background: rgba(0,0,0,.07);
}

.hdr-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: .44rem 1.05rem;
  background: var(--charcoal);
  color: #fff !important;
  font-weight: 600;
  font-size: .82rem;
  line-height: 1.2;
  border-radius: 6px;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background .2s, transform .12s;
  flex-shrink: 0;
}
.hdr-cta-btn:hover { background: var(--gold); transform: translateY(-1px); }

/* Планшет (769–1024px): скрываем текст телефона и языки */
@media (max-width: 1024px) and (min-width: 769px) {
  .hdr-top-inner { gap: .5rem; }
  .hdr-phone-text { display: none; }
  .hdr-phone svg  { width: 20px; height: 20px; }
  .hdr-lang       { display: none; }
  .hdr-search     { width: clamp(120px, 26vw, 260px); }
}

/* ── Nav row (desktop only) ── */
.hdr-nav-row {
  background: #fff;
  border-bottom: 2.5px solid var(--gold);
  position: relative;
}

/* ── Mega-menu ─────────────────────────────────────────────────── */
.hdr-mega-chevron {
  display: inline-block;
  vertical-align: middle;
  margin-left: 3px;
  transition: transform .15s;
  flex-shrink: 0;
}
.hdr-mega-trigger[aria-expanded="true"] .hdr-mega-chevron {
  transform: rotate(180deg);
}
.hdr-mega-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 500;
  background: #fff;
  border-top: none;
  box-shadow: 0 8px 32px rgba(0,0,0,.13);
  padding: 1.5rem 0 1.25rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
}
.hdr-mega-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.hdr-mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: .75rem;
}
.hdr-mega-col {}
.hdr-mega-cat-link {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-weight: 700;
  font-size: .85rem;
  color: var(--text);
  text-decoration: none;
  margin-bottom: .4rem;
  transition: color .12s;
  line-height: 1.3;
}
.hdr-mega-cat-link:hover { color: var(--gold); }
.hdr-mega-emoji { font-style: normal; line-height: 1; }
.hdr-mega-sub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hdr-mega-sub-list li { margin: 0; }
.hdr-mega-sub-list a {
  display: block;
  font-size: .78rem;
  color: var(--mid);
  text-decoration: none;
  padding: .18rem 0;
  transition: color .12s;
}
.hdr-mega-sub-list a:hover { color: var(--text); }
.hdr-mega-footer {
  display: flex;
  justify-content: flex-end;
}
.hdr-mega-all-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  transition: opacity .12s;
}
.hdr-mega-all-link:hover { opacity: .75; }

/* Mobile drawer — catalog accordion (верхний уровень: «Каталог») */
.hdr-drawer-mega-btn {
  background: none;
  border: none;
  padding: .75rem 1.25rem;
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hdr-drawer-mega-panel {
  display: none;
  padding: .25rem 0 .5rem 0;
}
.hdr-drawer-mega-panel.open { display: block; }

/* Вложенный аккордеон: категория с подкатегориями */
.hdr-drawer-cat-item { border-bottom: 1px solid #f0f0f0; }
.hdr-drawer-cat-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: .75rem 0;
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}
.hdr-drawer-cat-btn:hover { color: var(--gold); }
.hdr-drawer-cat-chevron { flex-shrink: 0; transition: transform .18s; }

/* Категория без подкатегорий — просто ссылка */
.hdr-drawer-cat-link-only {
  display: block;
  border-bottom: 1px solid #f0f0f0;
}

/* Подкатегории внутри аккордеона */
.hdr-drawer-cat-subs {
  display: none;
  padding: 0 0 .5rem .75rem;
  border-left: 2px solid var(--border);
  margin-left: .25rem;
}
.hdr-drawer-cat-subs.open { display: block; }
.hdr-drawer-sub-link {
  display: block;
  font-size: .84rem;
  color: var(--mid);
  text-decoration: none;
  padding: .55rem 0;
  border-bottom: 1px solid #f3f3f3;
}
.hdr-drawer-sub-link:last-child { border-bottom: none; }
.hdr-drawer-sub-link:hover { color: var(--gold); }
.hdr-drawer-all-link {
  display: block;
  color: var(--gold);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  padding: .75rem 0 .25rem;
}
.hdr-drawer-all-link:hover { opacity: .75; }

.hdr-nav-container {
  display: flex;
  align-items: stretch;
}

/* Desktop navigation list (inside hdr-nav-row) */
.hdr-desktop-nav {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}
.hdr-desktop-nav > li { display: flex; align-items: center; }

.hdr-nav-link {
  display: block;
  padding: .62rem .85rem;
  font-size: .775rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--charcoal);
  white-space: nowrap;
  transition: color .18s;
  position: relative;
  text-decoration: none;
}
.hdr-nav-link::after {
  content: '';
  position: absolute;
  left: .85rem; right: .85rem;
  bottom: -2.5px; /* прямо на линию border-bottom nav-row */
  height: 2.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s;
}
.hdr-nav-link:hover  { color: var(--gold); }
.hdr-nav-link.active { color: var(--gold); }
.hdr-nav-link:hover::after, .hdr-nav-link.active::after { transform: scaleX(1); }

/* Separator dots between desktop nav items */
.hdr-nav-sep {
  width: 1px;
  height: 12px;
  background: #dee2e6;
  flex-shrink: 0;
  margin: 0 .1rem;
}

/* Mobile drawer — hidden on desktop */
.hdr-nav-menu {
  display: none;
}

/* Burger — hidden on desktop */
.hdr-toggle { display: none; }

/* ── Header V2 mobile (≤768px) ─────────────────────────────────── */
@media (max-width: 768px) {
  body.header-v2 {
    --header-h: calc(58px + env(safe-area-inset-top, 0px));
  }

  /* Top row: logo left + burger right, search/phone/lang hidden */
  .site-header--modern .hdr-top-row {
    padding: 0;
    border-bottom: 1px solid #e8e8e8;
  }
  .site-header--modern .hdr-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
    padding: 0 1rem;
    gap: 0;
  }
  .site-header--modern .hdr-search    { display: none; }
  .site-header--modern .hdr-top-right { display: none; }

  /* Nav row completely hidden on mobile — drawer is a direct child of header */
  .site-header--modern .hdr-nav-row { display: none; }

  /* ── Burger ── */
  .hdr-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 11px;
    gap: 5px;
    z-index: 950;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .hdr-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    flex-shrink: 0;
    position: static;
    margin: 0;
    transition: transform .25s ease, opacity .18s ease;
  }
  .hdr-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hdr-toggle.is-open span:nth-child(2) { opacity: 0; }
  .hdr-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ── Mobile drawer — slide-in panel from right ── */
  .hdr-nav-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: calc(58px + env(safe-area-inset-top, 0px));
    right: 0;
    bottom: 0;
    width: min(82vw, 300px);
    background: #ffffff;
    padding: .75rem 1.25rem 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    z-index: 801;
    box-shadow: -6px 0 32px rgba(0,0,0,.18);
    border-left: 1px solid #e5e7eb;
    list-style: none;
    box-sizing: border-box;
    margin: 0;
  }
  .hdr-nav-menu.open {
    transform: translateX(0);
  }

  /* Drawer menu items */
  .hdr-nav-menu > li {
    display: block;
    margin: 0;
    padding: 0;
  }
  .hdr-nav-link {
    display: block;
    font-size: .95rem;
    font-weight: 600;
    padding: .85rem 0;
    border-bottom: 1px solid #f0f0f0;
    color: #1f2937;
    text-decoration: none;
    letter-spacing: .01em;
    text-transform: none;
  }
  .hdr-nav-link:hover  { color: var(--gold); }
  .hdr-nav-link.active { color: var(--gold); font-weight: 700; }
  .hdr-nav-link::after { display: none; }
  /* Кнопки аккордеона — flex чтобы стрелка была справа */
  .hdr-drawer-mega-btn,
  .hdr-drawer-cat-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border-bottom: none;
  }
  .hdr-drawer-mega-btn { padding: .85rem 0; }
  .hdr-drawer-cat-btn  { padding: .75rem 0; font-size: .88rem; }

  /* Drawer footer: phone + CTA + lang */
  .hdr-nav-menu > li.hdr-drawer-extra {
    display: block;
    padding-top: 1.25rem;
    border-bottom: none;
  }
  .hdr-drawer-phone {
    display: block;
    font-weight: 700;
    font-size: 1.05rem;
    color: #1f2937;
    text-decoration: none;
    margin-bottom: .75rem;
  }
  .hdr-drawer-phone:hover { color: var(--gold); }

  /* Lang switcher inside drawer */
  .hdr-drawer-extra .lang-switcher {
    display: flex;
    gap: .25rem;
    flex-wrap: wrap;
  }
  .hdr-drawer-extra .lang-switcher a {
    color: #495057 !important;
    font-size: .82rem;
    font-weight: 600;
    padding: .3rem .5rem;
    border-radius: 4px;
    background: #f3f4f6;
    text-decoration: none;
  }
  .hdr-drawer-extra .lang-switcher a.active {
    color: var(--charcoal) !important;
    background: #e5e7eb;
    font-weight: 700;
  }
  .hdr-drawer-extra .lang-switcher a:hover {
    background: #e5e7eb;
    color: var(--charcoal) !important;
  }
}

/* ── Callback Modal ─────────────────────────────────────────────── */
.cb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.cb-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.cb-modal {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 420px;
  padding: 2rem 1.75rem 1.75rem;
  position: relative;
  box-shadow: 0 8px 48px rgba(0,0,0,.22);
  transform: translateY(20px) scale(.97);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.cb-overlay.is-open .cb-modal {
  transform: translateY(0) scale(1);
}
.cb-close {
  position: absolute;
  top: .9rem; right: .9rem;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: #f3f4f6; border-radius: 50%;
  cursor: pointer; font-size: 1.1rem; color: #6b7280;
  transition: background .15s, color .15s;
}
.cb-close:hover { background: #e5e7eb; color: var(--charcoal); }
.cb-modal h3 {
  font-size: 1.35rem;
  margin-bottom: .35rem;
  padding-right: 2rem;
}
.cb-modal .cb-sub {
  font-size: .875rem;
  color: var(--mid);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.cb-field { margin-bottom: .9rem; }
.cb-field label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: .35rem;
  text-transform: none;
  letter-spacing: 0;
}
.cb-field input {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .95rem;
  color: var(--charcoal);
  background: #fff;
  outline: none;
  transition: border-color .2s;
}
.cb-field input:focus { border-color: var(--gold); }
.cb-field input.cb-error { border-color: #ef4444; }
.cb-submit {
  width: 100%;
  padding: .75rem;
  background: var(--charcoal);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: .25rem;
  transition: background .2s;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.cb-submit:hover { background: var(--gold); }
.cb-submit:disabled { opacity: .6; cursor: not-allowed; }
.cb-success {
  display: none;
  text-align: center;
  padding: 1rem 0 .5rem;
}
.cb-success-icon {
  width: 56px; height: 56px;
  background: #d1fae5;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.6rem;
}
.cb-success h4 { font-size: 1.15rem; margin-bottom: .4rem; }
.cb-success p { font-size: .88rem; color: var(--mid); }
@media (max-width: 480px) {
  .cb-modal { padding: 1.5rem 1.25rem 1.25rem; border-radius: 10px; }
}

.top-bar      { background: var(--charcoal); color: rgba(255,255,255,.7); font-size: .78rem; padding: .4rem 0; }
.top-bar-inner{ display: flex; justify-content: space-between; align-items: center; }
.top-bar a    { color: rgba(255,255,255,.8); }
.top-bar a:hover { color: #fff; }
.top-bar-right{ display: flex; gap: .75rem; align-items: center; }
.sep          { opacity: .3; }

.main-nav     { background: var(--charcoal); }
.nav-inner    { display: flex; align-items: center; gap: 1rem; height: 56px; }
.nav-logo     { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.logo-img     { width: 36px; height: 36px; border-radius: 4px; object-fit: contain; }
.logo-text    { font-family: 'Playfair Display',serif; font-size: 1.1rem; color: #fff; font-weight: 700; }
.nav-menu     { display: flex; align-items: center; gap: .25rem; list-style: none; flex: 1; }
.nav-link     { color: rgba(255,255,255,.8); font-size: .85rem; padding: .4rem .65rem; border-radius: 4px; transition: color .2s; }
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.1); }
.nav-controls { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.lang-switcher{ display: flex; gap: .2rem; }
.lang-switcher a { color: rgba(255,255,255,.6); font-size: .78rem; font-weight: 600; padding: .25rem .4rem; border-radius: 3px; }
.lang-switcher a.active { color: var(--gold); background: rgba(255,255,255,.1); }
.nav-phone    { color: #fff; font-weight: 600; font-size: .88rem; white-space: nowrap; }
.nav-lang     { display: none !important; }
.nav-phone-mobile { display: none !important; }

/* Mobile nav — кнопка скрыта на десктопе; полоски задаются в @media (max-width: 768px) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

@media (max-width: 768px) {
  /* Высота строки навигации + вырез статус-бара (iPhone и др.) */
  :root {
    --header-h: calc(56px + env(safe-area-inset-top, 0px));
  }
  .top-bar { display: none; }
  .nav-inner {
    height: 56px;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
  }
  .nav-logo {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 3.25rem);
  }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    flex-shrink: 0;
    margin-left: 0;
    z-index: 950;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
  }
  .nav-toggle span {
    position: absolute;
    left: 50%;
    width: 22px;
    height: 2px;
    margin: 0;
    margin-left: -11px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
  }
  .nav-toggle span:nth-child(1) { top: 14px; }
  .nav-toggle span:nth-child(2) { top: 21px; }
  .nav-toggle span:nth-child(3) { top: 28px; }
  .nav-toggle.is-open span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
  }
  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.is-open span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
  }
  .nav-controls { display: none; }
  /* Выезжающее меню: симметричные отступы, safe-area, блок по центру по горизонтали */
  .nav-menu {
    display: none;
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
    flex: unset;
    position: fixed;
    top: calc(56px + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    list-style: none;
    background: var(--charcoal);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 800;
    text-align: center;
    padding: 0;
    gap: 0;
  }
  .nav-menu.open {
    display: flex;
    /* Симметричные поля; блок пунктов по вертикали по центру (safe — без обрезки при длинном меню) */
    padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
    padding-top: 1rem;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
    gap: 0.1875rem;
    justify-content: center;
    justify-content: safe center;
  }
  .nav-menu > li {
    box-sizing: border-box;
    width: 100%;
    max-width: min(20rem, 100%);
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-shrink: 0;
  }
  .nav-menu .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 0.875rem 1rem;
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: 10px;
    box-sizing: border-box;
  }
  /* Разделитель перед языками / телефоном */
  .nav-menu > li.nav-lang {
    width: 100%;
    max-width: min(20rem, 100%);
    padding-top: 1.25rem;
    margin-top: 0.75rem;
    margin-bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-lang {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    gap: 0.5rem 1rem;
    padding: 0 !important;
    margin-top: 0 !important;
  }
  .nav-lang a {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    font-size: 0.9375rem;
    min-width: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
    border-radius: 10px;
    box-sizing: border-box;
  }
  .nav-lang a.active {
    color: var(--gold);
  }
  .nav-menu > li.nav-phone-mobile {
    margin-top: 0.35rem;
    padding: 0 !important;
  }
  .nav-phone-mobile {
    display: flex !important;
    justify-content: center;
  }
  .nav-phone-mobile a {
    color: #fff;
    font-weight: 600;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    border-radius: 10px;
    box-sizing: border-box;
  }
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero { background: var(--charcoal); color: #fff; padding: 5rem 0; }
.hero-content h1 { font-size: clamp(2rem,5vw,3.5rem); color: #fff; margin-bottom: 1rem; }
.hero-content p  { color: rgba(255,255,255,.75); font-size: 1.1rem; margin-bottom: 2rem; max-width: 600px; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Home hero slider — компактный современный ───────────────── */
.hero.home-hero.hero-slider {
  background: transparent;
  padding: 2rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}
/* Внешний контейнер — скруглённый блок */
.hero-slider-track {
  position: relative;
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
}
.hero-slider .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
  pointer-events: none;
}
.hero-slider .hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}
/* Фон слайда */
.hero-slider .hero-bg.cms-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.cms-slide-bg--brick {
  background-image: url('https://images.unsplash.com/photo-1597484661973-ee6cd0b6482c?w=1400&q=80&fm=webp');
}
.cms-slide-bg--stone {
  background-image: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1400&q=80&fm=webp');
}
.cms-slide-bg--mix {
  background-image: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1400&q=80&fm=webp');
}
.cms-slide-bg--dark {
  background: linear-gradient(135deg, var(--charcoal) 0%, #1a2332 100%);
}
.hero-slider .hero-bg.cms-slide-bg--has-photo { background-image: none; }
.hero-slider .hero-slide-photo-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block; pointer-events: none;
}
/* Тёмный градиент только слева — текст читаем, фото видно справа */
.hero-slider .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(9,13,20,.82) 0%,
    rgba(9,13,20,.55) 45%,
    rgba(9,13,20,.10) 100%);
  z-index: 1;
}
/* Контент — прижат к левому краю */
.hero-slider .hero-slider-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 3rem 4rem;
  max-width: 580px;
}
.hero-gold-line {
  width: 40px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0 0 1rem;
  flex-shrink: 0;
}
.hero-slider .hero-slider-content h1 {
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  color: #fff;
  margin: 0 0 .75rem;
  line-height: 1.2;
}
.hero-slider .hero-slider-content p {
  color: rgba(255,255,255,.82);
  font-size: clamp(.9rem, 1.4vw, 1.05rem);
  margin: 0 0 1.5rem;
  line-height: 1.55;
}
.hero-slider .hero-slider-btns {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
/* Точки — внизу по центру трека */
.hero-slider .slider-dots {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: .5rem;
}
.hero-slider .slider-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5);
  background: transparent;
  cursor: pointer;
  transition: background .25s, border-color .25s, width .25s;
  padding: 0;
}
.hero-slider .slider-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  width: 20px;
  border-radius: 4px;
}
/* Стрелки — по бокам трека, по вертикали по центру */
.hero-slider .slider-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  padding: 0 .75rem;
  pointer-events: none;
}
.hero-slider .slider-arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.28);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: background .2s, border-color .2s;
  pointer-events: auto;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
}
.hero-slider .slider-arrow:hover {
  background: var(--gold);
  border-color: var(--gold);
}

/* ── Mobile slider ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero.home-hero.hero-slider { padding: 1rem 0 1.5rem; }
  .hero-slider-track { height: 300px; border-radius: 10px; }
  .hero-slider .hero-slider-content {
    padding: 1.5rem 1.25rem 3rem;
    max-width: 100%;
  }
  .hero-slider .hero-slider-content h1 { font-size: 1.25rem; }
  .hero-slider .hero-slider-content p  { font-size: .85rem; margin-bottom: 1rem; }
  .hero-slider .slider-arrows { display: none; }
  .hero-slider.hero-slider--static-mobile .slider-dots { display: none !important; }
}

/* ── Hero Split (текст слева + авторотация фото справа) ──────── */
.hero.hero-split {
  background: #f7f8f9;
  color: var(--charcoal);
  padding: 3.5rem 0 3rem;
}
.hero-split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 3.5rem;
  align-items: center;
}
.hero-split-text { min-width: 0; }
.hero-split-badge {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.hero-split h1 {
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
  color: var(--charcoal);
  margin-bottom: .9rem;
  line-height: 1.12;
}
.hero-split-sub {
  color: var(--mid);
  font-size: 1.05rem;
  margin-bottom: .6rem;
  max-width: 500px;
  line-height: 1.6;
}
.hero-split-bold {
  font-weight: 700;
  font-size: 1rem;
  color: var(--charcoal);
  margin-bottom: 2rem;
  max-width: 500px;
  line-height: 1.55;
}
.hero-split .hero-btns { margin-top: 0; }
/* Overrides .btn-outline (white-on-dark) for light hero-split background */
/* Media column */
.hero-split-media { min-width: 0; }
.hero-split-img-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1 / 1.15;
  background: #e4e5e7;
  box-shadow: 0 8px 40px rgba(0,0,0,.10);
}
.hero-split-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .75s ease;
}
.hero-split-img.active { opacity: 1; }
/* Mobile */
@media (max-width: 860px) {
  .hero-split-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero-split-media { order: -1; }
  .hero-split-img-wrap { aspect-ratio: 4 / 3; }
  .hero.hero-split { padding: 1.5rem 0 2rem; }
  .hero-split h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn-primary, .btn-outline, .btn-link, .btn-wa, .btn-card, .btn-card-price, .read-more {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .65rem 1.5rem; border-radius: var(--radius);
  font-weight: 600; font-size: .9rem; cursor: pointer;
  transition: opacity .2s, background .2s;
  white-space: nowrap;
}
.btn-primary  { background: var(--gold); color: #fff; border: 2px solid var(--gold); }
.btn-primary:hover { opacity: .88; }
.btn-outline  { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-outline:hover { border-color: #fff; }
/* On light backgrounds (hero-split, products slider) the outline button must be dark */
.hero-split .hero-split-btn-outline,
.hero-split-btn-outline {
  background: transparent;
  border: 2px solid var(--charcoal);
  color: var(--charcoal) !important;
}
.hero-split .hero-split-btn-outline:hover,
.hero-split-btn-outline:hover {
  background: var(--charcoal);
  color: #fff !important;
}
.btn-link     { color: var(--gold); font-weight: 600; padding: 0; }
.btn-link:hover { opacity: .8; }
.btn-wa       { background: #25D366; color: #fff; gap: .4rem; }
.btn-wa:hover { opacity: .88; }
.btn-block    { display: flex; width: 100%; margin-top: .5rem; }
.btn-card     { font-size: .82rem; color: var(--charcoal); font-weight: 600; border: 1.5px solid var(--border); border-radius: 5px; padding: .4rem .9rem; }
.btn-card-price { font-size: .82rem; color: var(--gold); font-weight: 600; background: none; border: 1.5px solid var(--gold); border-radius: 5px; padding: .4rem .9rem; }
.btn-card-price-val { display: inline-flex; align-items: baseline; gap: .3rem; font-size: .88rem; font-weight: 700; color: var(--charcoal); }
.btn-card-price-val strong { color: var(--charcoal); }
.btn-card-price-val em { font-style: normal; font-size: .72rem; color: var(--mid); font-weight: 400; }
.card-price-from { font-size: .72rem; color: var(--mid); font-weight: 400; text-transform: lowercase; }

/* ── Section headings ──────────────────────────────────────────── */
.section-head   { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 2rem; gap: 1rem; flex-wrap: wrap; }
.section-title  { font-size: clamp(1.5rem,3vw,2.2rem); margin-bottom: 1.75rem; }
.section-head .section-title { margin-bottom: 0; }
.section-label  { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: .4rem; }

/* ── Page hero (inner pages) ───────────────────────────────────── */
.page-hero { background: #fff; border-bottom: 1px solid var(--border); padding: 2rem 0; }
.page-hero h1 { font-size: clamp(1.6rem,3.5vw,2.4rem); color: var(--charcoal); }
/* Карточка товара: компактнее шапка, больше воздуха под заголовком */
.product-page-hero { padding: 1.35rem 0 1.5rem; }
.product-page-hero .breadcrumb { font-size: .78rem; margin-bottom: .5rem; }
.product-page-hero h1 {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 65rem;
}
.breadcrumb { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; font-size: .75rem; color: var(--mid); margin-bottom: .6rem; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span:not(.sep) { opacity: .7; }

/* ── Category grid ─────────────────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.cat-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.cat-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.cat-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--stone);
  margin-bottom: .75rem;
}
.cat-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .3s ease;
}
.cat-card:hover .cat-card-image img { transform: scale(1.04); }
.cat-emoji { font-size: 2.5rem; margin-bottom: .5rem; line-height: 1; }
.cat-label {
  font-weight: 600;
  font-size: .9rem;
  color: var(--charcoal);
  line-height: 1.3;
}

/* ── Products grid ─────────────────────────────────────────────── */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(270px,1fr)); gap: 1.25rem; align-items: start; }
/* Явное кол-во колонок — десктоп (от 769px) */
@media (min-width: 769px) {
  .products-grid.products-dtgrid-grid.products-dt-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .products-grid.products-dtgrid-grid.products-dt-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .products-grid.products-dtgrid-grid.products-dt-cols-4 { grid-template-columns: repeat(4, 1fr); }
}
/* Явное кол-во колонок — мобильные (до 768px) */
@media (max-width: 768px) {
  .products-grid.products-mgrid-grid.products-mb-cols-1 { grid-template-columns: 1fr; }
  .products-grid.products-mgrid-grid.products-mb-cols-2 { grid-template-columns: repeat(2, 1fr); }
}
.product-card  { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s; }
.product-card:hover { box-shadow: var(--shadow-lg); }
/* Квадрат 1:1 (рекомендации Google Merchant / товарные сниппеты), картинка целиком внутри рамки */
.product-img   { aspect-ratio: 1 / 1; width: 100%; overflow: hidden; background: var(--stone); position: relative; }
.product-img img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; transition: transform .4s; }
.product-card:hover .product-img img { transform: scale(1.03); }
.product-img-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 4rem; background: var(--stone); }
.product-body  { padding: 1rem 1rem 0; flex: 1; }
.product-cat   { font-size: .72rem; color: var(--mid); margin-bottom: .35rem; }
.product-body h3 { font-size: .95rem; color: var(--charcoal); margin-bottom: .4rem; }
.product-body p  { font-size: .82rem; color: var(--mid); }
.product-body p.product-desc { font-size: .82rem; color: var(--mid); line-height: 1.45; margin: 0 0 .4rem; }
/* /products: тело карточки с футером в общей колонке (плитка и моб. строка) */
.products-grid--catalog .product-card .product-card-main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}
.product-footer { padding: .75rem 1rem; display: flex; gap: .5rem; border-top: 1px solid var(--border); margin-top: .75rem; }
@media (min-width: 769px) {
  .products-grid--catalog .product-footer {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
  .products-grid--catalog .product-footer .btn-card { order: 1; }
  .products-grid--catalog .product-footer .btn-card-price { order: 2; }
}
.product-specs  { display: flex; flex-direction: column; gap: .25rem; margin-top: .5rem; }
.spec-item { display: flex; justify-content: space-between; font-size: .78rem; }
.spec-item span { color: var(--mid); }
.spec-item strong { color: var(--charcoal); }

/* Товары: мобильные (≤768px) — строка (фото слева) или плитка. Работает для каталога, главной, шорткодов */
@media (max-width: 768px) {
  .products-grid.products-mgrid-list_row {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    align-items: stretch;
  }
  .products-grid.products-mgrid-list_row .product-card {
    flex-direction: row;
    align-items: stretch;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(30, 24, 16, 0.08);
  }
  .products-grid.products-mgrid-list_row .product-card .product-img {
    width: clamp(5.5rem, 26vw, 7.5rem);
    min-width: clamp(5.5rem, 26vw, 7.5rem);
    flex-shrink: 0;
    align-self: stretch;
    min-height: clamp(5.5rem, 26vw, 7.5rem);
  }
  .products-grid.products-mgrid-list_row .product-card .product-img img {
    object-fit: cover;
  }
  .products-grid.products-mgrid-list_row .product-card .product-card-main {
    flex: 1 1 auto;
    justify-content: space-between;
    min-width: 0;
  }
  .products-grid.products-mgrid-list_row .product-card .product-body {
    padding: 0.75rem 0.85rem 0.35rem;
    flex: 1 1 auto;
  }
  .products-grid.products-mgrid-list_row .product-card .product-body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.35rem;
    color: var(--charcoal);
  }
  .products-grid.products-mgrid-list_row .product-card .product-cat {
    font-size: 0.7rem;
    margin-bottom: 0.35rem;
    color: var(--mid);
  }
  .products-grid.products-mgrid-list_row .product-card .product-desc {
    font-size: 0.78rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .products-grid.products-mgrid-list_row .product-card .product-specs {
    margin-top: 0.35rem;
    gap: 0.2rem;
  }
  .products-grid.products-mgrid-list_row .product-card .product-footer {
    margin-top: 0;
    padding: 0.5rem 0.85rem 0.75rem;
    border-top: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  .products-grid.products-mgrid-list_row .product-card .product-footer .btn-card-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--charcoal);
    padding: 0;
    border: none;
    background: none;
  }
  .products-grid.products-mgrid-list_row .product-card .product-footer .btn-card {
    font-size: 0.78rem;
    padding: 0;
    color: var(--gold);
    font-weight: 600;
    border: none;
    background: none;
  }

  /* Мобильная плитка: одна колонка, фото сверху */
  .products-grid.products-mgrid-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .products-grid.products-mgrid-grid .product-card {
    flex-direction: column;
  }
  .products-grid.products-mgrid-grid .product-card .product-img {
    width: 100%;
    min-width: 0;
    min-height: 0;
    align-self: stretch;
  }
  .products-grid.products-mgrid-grid .product-card .product-img img {
    object-fit: contain;
  }
  .products-grid.products-mgrid-grid .product-card .product-body {
    padding: 1rem 1rem 0;
  }
  .products-grid.products-mgrid-grid .product-card .product-footer {
    flex-direction: row;
    align-items: center;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
  }
  .products-grid.products-mgrid-grid .product-card .product-footer .btn-card,
  .products-grid.products-mgrid-grid .product-card .product-footer .btn-card-price {
    border: 1.5px solid var(--border);
    border-radius: 5px;
    padding: 0.4rem 0.9rem;
  }
  .products-grid.products-mgrid-grid .product-card .product-footer .btn-card-price {
    border-color: var(--gold);
    color: var(--gold);
    background: none;
    font-size: 0.82rem;
    font-weight: 600;
  }
  .products-grid.products-mgrid-grid .product-card .product-footer .btn-card {
    color: var(--charcoal);
    font-size: 0.82rem;
    background: none;
  }

  /* ── 2 колонки на мобильном: компактная карточка ─────────────── */
  .products-grid.products-mgrid-grid.products-mb-cols-2 {
    gap: .6rem;
  }
  /* Квадратное фото — не растягивается */
  .products-grid.products-mgrid-grid.products-mb-cols-2 .product-img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
  }
  .products-grid.products-mgrid-grid.products-mb-cols-2 .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .products-grid.products-mgrid-grid.products-mb-cols-2 .product-img-placeholder {
    width: 100%;
    height: 100%;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  /* Компактный body */
  .products-grid.products-mgrid-grid.products-mb-cols-2 .product-card .product-body {
    padding: .5rem .6rem .2rem;
  }
  .products-grid.products-mgrid-grid.products-mb-cols-2 .product-card .product-body h3 {
    font-size: .82rem;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .products-grid.products-mgrid-grid.products-mb-cols-2 .product-cat {
    font-size: .66rem;
    margin-top: .15rem;
  }
  /* Скрыть описание и характеристики — не помещаются */
  .products-grid.products-mgrid-grid.products-mb-cols-2 .product-desc,
  .products-grid.products-mgrid-grid.products-mb-cols-2 .product-specs {
    display: none;
  }
  /* Одна кнопка на всю ширину */
  .products-grid.products-mgrid-grid.products-mb-cols-2 .product-footer {
    padding: .4rem .6rem .6rem;
    flex-direction: column;
    gap: 0;
  }
  .products-grid.products-mgrid-grid.products-mb-cols-2 .btn-card-price {
    display: none;
  }
  .products-grid.products-mgrid-grid.products-mb-cols-2 .product-footer .btn-card {
    width: 100%;
    text-align: center;
    justify-content: center;
    font-size: .75rem;
    padding: .42rem .5rem;
    border: 1.5px solid var(--border);
    border-radius: 5px;
    background: none;
  }
}

/* Товары: десктоп (≥769px) — строка (фото слева). Работает для каталога, главной, шорткодов */
@media (min-width: 769px) {
  .products-grid.products-dtgrid-list_row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .products-grid.products-dtgrid-list_row .product-card {
    flex-direction: row;
    align-items: stretch;
  }
  .products-grid.products-dtgrid-list_row .product-card .product-img {
    width: 11rem;
    min-width: 11rem;
    flex-shrink: 0;
    align-self: stretch;
    aspect-ratio: unset;
    min-height: 8rem;
  }
  .products-grid.products-dtgrid-list_row .product-card .product-img img {
    object-fit: cover;
  }
  .products-grid.products-dtgrid-list_row .product-card .product-card-main {
    flex: 1 1 auto;
    justify-content: space-between;
    min-width: 0;
  }
  .products-grid.products-dtgrid-list_row .product-card .product-body {
    padding: 0.85rem 1rem 0.35rem;
  }
  .products-grid.products-dtgrid-list_row .product-card .product-footer {
    margin-top: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}

/* ── Search ─────────────────────────────────────────────────────── */
.search-form { display: flex; gap: .5rem; margin-bottom: 1.25rem; }
.search-form input { flex: 1; padding: .6rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: .9rem; }
.search-form button { background: var(--gold); color: #fff; border: none; border-radius: var(--radius); padding: .6rem 1rem; cursor: pointer; }

/* ── Filters ────────────────────────────────────────────────────── */
.filter-group { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter-btn   { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem 1rem; border-radius: 20px; border: 1.5px solid var(--border); background: #fff; font-size: .82rem; color: var(--charcoal); cursor: pointer; text-decoration: none; transition: all .2s; }
.filter-cat-img { width: 1.35rem; height: 1.35rem; object-fit: contain; flex-shrink: 0; }
/* Карточка категории на /products: квадрат (превью) + текст */
.filter-btn-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-align: left;
}
.filter-btn-cat .filter-cat-thumb {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: #f3f1ed;
}
.filter-btn-cat .filter-cat-thumb--emoji {
  line-height: 1;
}
.filter-btn-cat .filter-cat-label {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 500;
  line-height: 1.35;
}
.filter-btn.active, .filter-btn:hover { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
.filter-btn-cat.active .filter-cat-thumb,
.filter-btn-cat:hover .filter-cat-thumb {
  background: rgba(255, 255, 255, 0.2);
}
.filter-btn-cat.active .filter-cat-img,
.filter-btn-cat:hover .filter-cat-img {
  opacity: 0.95;
}
.filter-btn-cat-nav { justify-content: center; text-align: center; }

/* Дерево категорий на /products (режим «сначала категории») */
.catalog-landing-intro {
  font-size: 0.95rem;
  color: var(--mid);
  margin: 0 0 1rem;
  line-height: 1.5;
}
.catalog-landing-group {
  margin-bottom: 1.35rem;
}
.catalog-landing-group:last-child {
  margin-bottom: 0.5rem;
}
.catalog-landing-root.filter-group {
  margin-bottom: 0.35rem;
}
.catalog-landing-subs {
  margin-bottom: 0;
  padding-left: 0.25rem;
  border-left: 2px solid var(--border);
}

/* Длинные названия категорий не рвут сетку; кнопки в гриде — block-level flex */
.catalog-cats-layout .filter-btn {
  box-sizing: border-box;
}
.catalog-cats-layout .filter-btn span,
.catalog-cats-layout .filter-cat-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

/*
 * Вид категорий на /products (catlay-dt-* / catlay-mb-*).
 * Брейкпоинт как в подсказке админки: «компьютер» — от 769px, «мобильные» — до 768px.
 */
@media (min-width: 769px) {
  .catalog-cats-layout.catlay-dt-grid .filter-group,
  .catalog-cats-layout.catlay-dt-grid .filter-group-sub {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
    gap: 0.75rem;
  }
  /* В дереве категорий в корне одна кнопка — не растягивать на всю ширину грида */
  .catalog-cats-layout.catalog-landing-tree.catlay-dt-grid .catalog-landing-root.filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  .catalog-cats-layout.catalog-landing-tree.catlay-dt-grid .catalog-landing-root .filter-btn-cat {
    width: auto;
    flex: 0 1 auto;
    max-width: min(100%, 18rem);
  }
  .catalog-cats-layout.catlay-dt-grid .filter-btn {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    border-radius: var(--radius);
    padding: 0.85rem 0.65rem;
    min-height: 5.5rem;
  }
  /* Явно: плитка = колонка, иначе .filter-btn-cat мог остаться «строкой» из-за порядка правил */
  .catalog-cats-layout.catlay-dt-grid .filter-btn.filter-btn-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .catalog-cats-layout.catlay-dt-grid .filter-btn-cat .filter-cat-label {
    text-align: center;
    font-weight: 600;
    line-height: 1.3;
  }
  .catalog-cats-layout.catlay-dt-grid .filter-btn-cat .filter-cat-thumb {
    width: 3.75rem;
    height: 3.75rem;
    margin: 0 auto 0.35rem;
  }
  .catalog-cats-layout.catlay-dt-grid .filter-btn-cat .filter-cat-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
  }
  .catalog-cats-layout.catlay-dt-chips .filter-group,
  .catalog-cats-layout.catlay-dt-chips .filter-group-sub {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .catalog-cats-layout.catlay-dt-chips .filter-btn {
    display: inline-flex;
    width: auto;
    min-width: 0;
  }
  .catalog-cats-layout.catlay-dt-chips .filter-btn-cat .filter-cat-thumb {
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 6px;
    font-size: 0.95rem;
  }
  .catalog-cats-layout.catlay-dt-chips .filter-btn-cat .filter-cat-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
  }
  .catalog-cats-layout.catlay-dt-list_row .filter-group,
  .catalog-cats-layout.catlay-dt-list_row .filter-group-sub {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.65rem;
  }
  /* Крупный блок: слева квадрат, справа название, на всю ширину контейнера */
  .catalog-cats-layout.catlay-dt-list_row .filter-btn-cat,
  .catalog-cats-layout.catlay-dt-list_row .filter-btn-cat-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    max-width: none;
    margin: 0;
    justify-content: flex-start;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    gap: 1rem;
    min-height: 5.25rem;
    box-sizing: border-box;
    font-size: 1.02rem;
    box-shadow: 0 1px 4px rgba(30, 24, 16, 0.07);
  }
  .catalog-cats-layout.catlay-dt-list_row .filter-btn-cat-nav {
    justify-content: center;
    min-height: 3.25rem;
    font-size: 0.92rem;
    font-weight: 600;
  }
  .catalog-cats-layout.catlay-dt-list_row .filter-btn-cat .filter-cat-thumb {
    width: clamp(4rem, 12vw, 6rem);
    height: clamp(4rem, 12vw, 6rem);
    border-radius: 10px;
    flex-shrink: 0;
  }
  .catalog-cats-layout.catlay-dt-list_row .filter-btn-cat .filter-cat-thumb--emoji {
    font-size: clamp(1.5rem, 4.5vw, 2.25rem);
  }
  .catalog-cats-layout.catlay-dt-list_row .filter-btn-cat .filter-cat-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
  }
  .catalog-cats-layout.catlay-dt-list_row .filter-btn-cat .filter-cat-label {
    font-size: 1.05rem;
    font-weight: 600;
  }
}
@media (max-width: 768px) {
  .catalog-cats-layout.catlay-mb-grid .filter-group,
  .catalog-cats-layout.catlay-mb-grid .filter-group-sub {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }
  .catalog-cats-layout.catalog-landing-tree.catlay-mb-grid .catalog-landing-root.filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  .catalog-cats-layout.catalog-landing-tree.catlay-mb-grid .catalog-landing-root .filter-btn-cat {
    width: auto;
    flex: 0 1 auto;
    max-width: min(100%, 17rem);
  }
  .catalog-cats-layout.catlay-mb-grid .filter-btn {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    padding: 0.65rem 0.4rem;
    font-size: 0.78rem;
    min-height: 4.5rem;
  }
  .catalog-cats-layout.catlay-mb-grid .filter-btn.filter-btn-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .catalog-cats-layout.catlay-mb-grid .filter-btn-cat .filter-cat-label {
    text-align: center;
    font-weight: 600;
  }
  .catalog-cats-layout.catlay-mb-grid .filter-btn-cat .filter-cat-thumb {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.25rem;
  }
  .catalog-cats-layout.catlay-mb-grid .filter-btn-cat .filter-cat-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
  }
  .catalog-cats-layout.catlay-mb-chips .filter-group,
  .catalog-cats-layout.catlay-mb-chips .filter-group-sub {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .catalog-cats-layout.catlay-mb-chips .filter-btn {
    display: inline-flex;
    width: auto;
    min-width: 0;
  }
  .catalog-cats-layout.catlay-mb-chips .filter-btn-cat .filter-cat-thumb {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 6px;
    font-size: 0.9rem;
  }
  .catalog-cats-layout.catlay-mb-chips .filter-btn-cat .filter-cat-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
  }
  .catalog-cats-layout.catlay-mb-list_row .filter-group,
  .catalog-cats-layout.catlay-mb-list_row .filter-group-sub {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.55rem;
  }
  .catalog-cats-layout.catlay-mb-list_row .filter-btn-cat,
  .catalog-cats-layout.catlay-mb-list_row .filter-btn-cat-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    max-width: none;
    justify-content: flex-start;
    text-align: left;
    border-radius: 11px;
    padding: 0.85rem 1rem;
    gap: 0.9rem;
    min-height: 4.35rem;
    box-sizing: border-box;
    font-size: 0.95rem;
    box-shadow: 0 1px 3px rgba(30, 24, 16, 0.07);
  }
  .catalog-cats-layout.catlay-mb-list_row .filter-btn-cat-nav {
    justify-content: center;
    min-height: 3.1rem;
    font-size: 0.88rem;
    font-weight: 600;
  }
  .catalog-cats-layout.catlay-mb-list_row .filter-btn-cat .filter-cat-thumb {
    width: 3.5rem;
    height: 3.5rem;
    min-width: 3.5rem;
    min-height: 3.5rem;
    border-radius: 9px;
    flex-shrink: 0;
  }
  .catalog-cats-layout.catlay-mb-list_row .filter-btn-cat .filter-cat-thumb--emoji {
    font-size: 1.45rem;
  }
  .catalog-cats-layout.catlay-mb-list_row .filter-btn-cat .filter-cat-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
  }
  .catalog-cats-layout.catlay-mb-list_row .filter-btn-cat .filter-cat-label {
    font-weight: 600;
  }
}

/* ── Sidebar catalog layout (/products, catalog_page_layout=sidebar_left) ── */
.catalog-sidebar-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
}
.catalog-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.catalog-sidebar-toggle {
  display: none;
  width: 100%;
  padding: .75rem 1rem;
  background: none;
  border: none;
  border-bottom: 1.5px solid var(--border);
  font-size: .93rem;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  text-align: left;
  justify-content: space-between;
  align-items: center;
}
.catalog-sidebar-arrow {
  font-size: .75rem;
  transition: transform .2s;
  margin-left: auto;
}
.catalog-sidebar-toggle[aria-expanded="true"] .catalog-sidebar-arrow {
  transform: rotate(180deg);
}
.catalog-sidebar-body {
  padding: .5rem 0 .75rem;
}
.sidebar-cat-link {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem 1rem;
  font-size: .875rem;
  color: var(--charcoal);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
  line-height: 1.4;
}
.sidebar-cat-link:hover {
  background: var(--light);
  border-left-color: var(--gold);
  color: var(--gold);
}
.sidebar-cat-link.active {
  background: var(--light);
  border-left-color: var(--gold);
  color: var(--gold);
  font-weight: 600;
}
.sidebar-cat-emoji { font-size: .95em; line-height: 1; }
.sidebar-cat-count { font-size: .7rem; color: var(--mid); margin-left: auto; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: .05rem .45rem; line-height: 1.5; flex-shrink: 0; }
.sidebar-cat-row {
  display: flex;
  align-items: center;
}
.sidebar-cat-row .sidebar-cat-link {
  flex: 1 1 0;
  min-width: 0;
  padding-right: .5rem;
}
.sidebar-cat-toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  border-radius: 6px;
  color: var(--mid);
  cursor: pointer;
  transition: background .15s, color .15s;
  padding: 0;
  margin-right: .5rem;
}
.sidebar-cat-toggle:hover {
  background: var(--light);
  color: var(--gold);
}
.sidebar-cat-row.open .sidebar-cat-toggle {
  color: var(--gold);
}
.sidebar-cat-row:has(.sidebar-cat-link.active) {
  background: var(--light);
  border-radius: 6px;
}
.sidebar-cat-row:has(.sidebar-cat-link.active) .sidebar-cat-link {
  background: transparent;
}
.sidebar-cat-row:has(.sidebar-cat-link.active) .sidebar-cat-toggle {
  color: var(--gold);
}
.sidebar-cat-toggle svg {
  transition: transform .2s;
}
.sidebar-cat-row.open .sidebar-cat-toggle svg {
  transform: rotate(180deg);
}
.sidebar-subcat-group { display: none; }
.sidebar-subcat-group.open { display: block; }
.sidebar-subcat-link {
  padding-left: 2.25rem;
  font-size: .82rem;
  color: var(--mid);
}
.sidebar-subcat-link:hover,
.sidebar-subcat-link.active {
  color: var(--gold);
}
.catalog-sidebar-main { min-width: 0; }

@media (max-width: 900px) {
  .catalog-sidebar-layout { grid-template-columns: 200px 1fr; gap: 1.25rem; }
}
@media (max-width: 768px) {
  .catalog-sidebar-layout { grid-template-columns: 1fr; gap: 0; }
  .catalog-sidebar { position: static; margin-bottom: 1.25rem; }
  .catalog-sidebar-toggle { display: flex; }
  .catalog-sidebar-body { display: none; }
  .catalog-sidebar-body.open { display: block; }
}

/* ── Product detail (широкая галерея + правая колонка в стиле B2B-витрины) ─ */
.product-page-section { padding: 0 0 3.5rem; }
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, 38%);
  grid-template-areas:
    "media aside"
    "copy aside";
  gap: 2rem 2.75rem;
  align-items: start;
}
.product-media { grid-area: media; min-width: 0; }
.product-aside { grid-area: aside; min-width: 0; }
.product-copy  { grid-area: copy; min-width: 0; }

/* ── Макет: Медиа-акцент (крупное фото 63%, справа только цена + форма) ── */
.product-layout--media {
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 36%);
}

/* ── Макет: Компактный / технический — 3 колонки: фото | характеристики | форма ── */
.product-layout--compact {
  grid-template-columns: minmax(160px, 24%) minmax(0, 1fr) minmax(240px, 28%);
  grid-template-areas:
    "media specs form"
    "copy  copy  copy";
}
.product-layout--compact .product-aside { grid-area: form; }
.product-specs-col {
  grid-area: specs;
  min-width: 0;
}

/* Характеристики внизу (в медиа-макете) — горизонтальная сетка */
.product-specs-below {
  margin-bottom: 1.5rem;
}
.spec-table--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  column-gap: 2rem;
  row-gap: 0;
}
.spec-table--grid .spec-title {
  grid-column: 1 / -1;
  margin-bottom: .25rem;
}

/* Компактный макет: чуть крупнее шрифт характеристик, плотнее */
.spec-table--compact .spec-row {
  padding: .3rem 0;
  font-size: .9rem;
}

/* Галерея: квадрат 1:1 под квадратные исходники; картинка без искажений (contain) */
/* Макс. размер превью — потолок вёрстки; слайдер того же размера, чтобы стрелки были у кадра */
.product-image-frame {
  aspect-ratio: 1 / 1;
  width: 100%;
  margin: 0;
  min-height: 0;
  background: #f5f3f0;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(30, 24, 16, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* ── Zoom button (desktop only) ── */
.product-zoom-btn {
  display: none; /* скрыто на мобильных */
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 4;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, .48);
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, transform .12s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.product-zoom-btn:hover {
  background: rgba(0, 0, 0, .72);
  transform: scale(1.08);
}
@media (min-width: 769px) {
  .product-zoom-btn { display: flex; }
  .product-main-img { cursor: zoom-in; }
}

/* ── Lightbox ── */
.product-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9990;
  align-items: center;
  justify-content: center;
}
.product-lightbox.active { display: flex; }
.product-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .9);
  cursor: zoom-out;
}
.product-lightbox-img {
  position: relative;
  z-index: 1;
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 48px rgba(0,0,0,.6);
  display: block;
  outline: none;
}
.product-lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 2;
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.product-lightbox-close:hover { background: rgba(255,255,255,.28); }
.product-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  width: 48px;
  height: 72px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.product-lightbox-nav:hover { background: rgba(255,255,255,.26); }
.product-lightbox-prev { left: 12px; }
.product-lightbox-next { right: 12px; }
/* Не тянуть картинку на 100%×100% — только вписать в кадр с сохранением пропорций */
.product-main-img {
  flex: 0 1 auto;
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.product-gallery { margin-bottom: 0; }

.product-slider {
  position: relative;
  max-width: min(100%, 400px);
  margin-left: auto;
  margin-right: auto;
}
.product-gallery--slider:focus {
  outline: none;
}
.product-gallery--slider:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: var(--radius);
}
.product-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid rgba(30, 24, 16, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--charcoal);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(30, 24, 16, 0.08);
  transition: transform 0.15s, border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}
.product-slider-nav:hover {
  border-color: var(--gold);
  background: #fff;
  color: var(--gold);
  box-shadow: 0 2px 10px rgba(30, 24, 16, 0.12);
}
.product-slider-nav:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.product-slider-nav:active {
  transform: translateY(-50%) scale(0.96);
}
.product-slider-nav--prev { left: 0.5rem; }
.product-slider-nav--next { right: 0.5rem; }
.product-slider-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.65rem;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}
.product-slider-counter {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--mid);
  letter-spacing: 0.02em;
}

.product-thumbs {
  display: flex;
  gap: .65rem;
  margin-top: 1rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: .25rem 0 .4rem;
  scrollbar-width: thin;
}
.thumb-wrap {
  flex: 0 0 auto;
  width: 4.75rem;
  height: 4.75rem;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.thumb-wrap:hover { border-color: var(--gold-lt); transform: translateY(-1px); }
.thumb-wrap:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.thumb-wrap.active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.thumb-wrap .thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-placeholder.product-image-frame {
  max-width: min(100%, 400px);
  margin-left: auto;
  margin-right: auto;
  min-height: 0;
  font-size: clamp(2.5rem, 14vw, 5rem);
}

.product-copy .product-desc {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  margin-top: .25rem;
}
.product-desc h2 {
  font-family: inherit;
  font-weight: 700;
  font-size: .8rem;
  margin-bottom: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mid);
}
.product-desc-body { font-size: .95rem; line-height: 1.85; color: var(--charcoal); }

/* Spec card */
.spec-card    { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; position: sticky; top: calc(var(--header-h) + 1rem); }
.spec-card--product {
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(30, 24, 16, 0.07);
  border-color: #e8e4df;
}

/* Product variants (размер → цвет) */
.product-variant-box { margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.spec-card--product .product-variant-box,
.spec-card--product .product-back-to-family { padding-left: 1.5rem; padding-right: 1.5rem; }
.spec-card--product .product-variant-box { padding-top: .15rem; }
.variant-axis { margin-bottom: 1rem; }
.variant-axis:last-child { margin-bottom: 0; }
.variant-color-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}
.variant-color-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  justify-content: flex-start;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.variant-color-option:hover { border-color: var(--gold); color: var(--gold); }
.variant-color-option.active { border-color: var(--gold); background: rgba(193, 75, 26, 0.08); color: var(--charcoal); }
.variant-color-option .variant-color-label {
  margin: 0;
  flex: 1;
  min-width: 0;
  text-align: left;
  line-height: 1.35;
}
.variant-color-group { margin-bottom: 1rem; }
.variant-color-group:last-child { margin-bottom: 0; }
.variant-color-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.45rem; }
.variant-color-label { font-size: 0.82rem; font-weight: 600; color: var(--charcoal); }
.variant-swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; display: inline-block; vertical-align: middle; }
.variant-swatch--solid {
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background-clip: padding-box;
}
.variant-swatch--img { overflow: hidden; padding: 0; border-radius: 6px; }
.variant-swatch--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.variant-size-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.variant-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.35rem 0.75rem; border-radius: 6px; border: 1.5px solid var(--border);
  font-size: 0.82rem; font-weight: 600; color: var(--charcoal);
  transition: border-color 0.15s, background 0.15s;
}
.variant-pill:hover { border-color: var(--gold); color: var(--gold); }
.variant-pill.active { border-color: var(--gold); background: rgba(193, 75, 26, 0.08); color: var(--charcoal); }
.product-back-to-family a { color: var(--gold); font-weight: 600; }
.product-back-to-family a:hover { text-decoration: underline; }
.price-box    { padding: 1.35rem 1.5rem 1.25rem; font-family: 'Playfair Display',serif; font-size: clamp(1.2rem, 2.5vw, 1.45rem); font-weight: 700; color: var(--charcoal); border-bottom: 1px solid var(--border); background: linear-gradient(180deg, #fffdfc 0%, #fff 100%); }
.spec-table   { padding: 1rem 1.5rem; }
.spec-card--product .spec-table   { padding: 1.15rem 1.5rem 1.25rem; }
.spec-title   { font-weight: 700; font-size: .8rem; margin-bottom: .65rem; color: var(--charcoal); letter-spacing: .04em; text-transform: uppercase; }
.spec-row     {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
  line-height: 1.35;
}
.spec-row:last-child { border: none; }
.spec-row span { color: var(--mid); flex: 1; min-width: 0; }
.spec-row strong { color: var(--gold); font-weight: 600; text-align: right; flex-shrink: 0; }
.spec-card--product .spec-row     {
  padding: .55rem 0;
  border-bottom-color: #eeeae5;
  font-size: .875rem;
}
.spec-card--product .spec-row span { padding-right: .5rem; }
.spec-card--product .spec-row strong { max-width: 52%; }

/* Quick form */
.spec-card--product .quick-form {
  margin: 0 1.25rem 1.25rem;
  padding: 1.25rem 1.25rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--light);
}
.quick-form { padding: 1.25rem 1.5rem; border-top: 1px solid var(--border); }
.spec-card--product > .quick-form { border-top: none; }
.quick-form-title { font-weight: 700; font-size: .95rem; text-transform: none; letter-spacing: 0; margin-bottom: .35rem; color: var(--charcoal); }
.spec-card--product .quick-form-title { font-size: 1.05rem; }
.quick-form p { font-size: .84rem; color: var(--mid); margin-bottom: .85rem; line-height: 1.5; }
.quick-form .lead-sent-banner { margin-bottom: .85rem; }
.form-input, input[type=text], input[type=tel], input[type=email], textarea, select {
  width: 100%; padding: .65rem .9rem; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: .9rem; font-family: inherit; outline: none; transition: border-color .2s, box-shadow .2s;
  margin-bottom: .5rem;
  background: #fff;
}
.spec-card--product .btn-primary.btn-block { border-radius: 8px; padding: .7rem 1rem; font-weight: 600; }
.spec-card--product .btn-wa.btn-block { border-radius: 8px; margin-top: .35rem; }
.form-input:focus, input:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(193, 75, 26, 0.12); }
textarea { resize: vertical; min-height: 80px; }
.form-success { background: #d4edda; border-left: 4px solid #28a745; padding: 1rem 1.25rem; border-radius: 6px; color: #155724; }

/* ── About section ──────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-grid h2 { font-size: clamp(1.5rem,3vw,2rem); margin-bottom: 1rem; }
.about-grid p  { margin-bottom: 1.5rem; }
.about-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.stat-box  { background: #fff; border-radius: var(--radius); padding: 1.25rem; text-align: center; box-shadow: var(--shadow); }
.stat-num  { font-family: 'Playfair Display',serif; font-size: 2rem; color: var(--gold); font-weight: 700; }
.stat-lbl  { font-size: .78rem; color: var(--mid); margin-top: .25rem; }

/* ── News ───────────────────────────────────────────────────────── */
.news-grid      { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 1.25rem; min-width: 0; }
.news-grid-full { grid-template-columns: repeat(auto-fill,minmax(320px,1fr)); }
.news-card      { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s; min-width: 0; }
.news-card:hover { box-shadow: var(--shadow-lg); }
.news-img       { height: 200px; overflow: hidden; }
.news-img img   { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-img img { transform: scale(1.04); }
.news-body      { padding: 1rem; flex: 1; min-width: 0; overflow-wrap: anywhere; word-wrap: break-word; }
.news-date      { font-size: .72rem; color: var(--mid); margin-bottom: .35rem; }
.news-body h2, .news-body h3 { font-size: 1.05rem; color: var(--charcoal); margin-bottom: .4rem; overflow-wrap: anywhere; word-break: break-word; }
.news-body p    { font-size: .85rem; color: var(--mid); overflow-wrap: anywhere; word-break: break-word; }
.read-more      { display: inline-block; color: var(--gold); font-size: .82rem; font-weight: 600; margin-top: .5rem; padding: 0; background: none; border: none; }

/* ── Article ────────────────────────────────────────────────────── */
.article-layout  { max-width: 780px; width: 100%; min-width: 0; box-sizing: border-box; }
/* Кастомные страницы из админки — на всю ширину контейнера (не узкая колонка как у статей) */
.article-layout.site-page-wide { max-width: none; width: 100%; }
.article-hero-img{ width: 100%; max-width: 100%; border-radius: var(--radius); margin-bottom: 2rem; }
.article-body    { line-height: 1.85; color: var(--charcoal); font-size: 1rem; overflow-wrap: anywhere; word-wrap: break-word; word-break: break-word; max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.article-body p  { margin-bottom: 1rem; color: var(--charcoal); }
.article-body.page-body-html img,
.page-body-html img { max-width: 100%; height: auto; border-radius: 6px; margin: .75rem 0; display: block; }
.article-body pre,
.page-body-html pre { white-space: pre-wrap; word-break: break-word; overflow-x: auto; max-width: 100%; }
.article-body table,
.page-body-html table { width: 100%; max-width: 100%; table-layout: fixed; border-collapse: collapse; word-wrap: break-word; }
.article-body td,
.article-body th,
.page-body-html td,
.page-body-html th { overflow-wrap: anywhere; word-break: break-word; }
.article-body iframe,
.article-body video,
.page-body-html iframe,
.page-body-html video { max-width: 100%; height: auto; }
.article-date    { font-size: .8rem; color: var(--mid); margin-top: .35rem; }
.article-back    { margin-top: 2rem; }

/* ── Projects ───────────────────────────────────────────────────── */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 1.25rem; }
.project-card  { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
a.project-card-link { text-decoration: none; color: inherit; display: block; transition: box-shadow .2s, border-color .2s; }
a.project-card-link:hover { box-shadow: var(--shadow-lg); border-color: var(--gold); }
.project-img   { height: 200px; overflow: hidden; }
.project-img img { width: 100%; height: 100%; object-fit: cover; }
.project-body  { padding: 1rem; }
.project-body h3 { font-size: 1rem; margin-bottom: .5rem; }
.project-meta  { font-size: .78rem; color: var(--mid); margin-bottom: .2rem; }
.project-body p { font-size: .85rem; }

/* Вид списков новостей / проектов — настройки сайта (list-dt-*, list-mb-*) */
@media (min-width: 769px) {
  .news-grid.list-layout.list-dt-list_row {
    grid-template-columns: 1fr;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
  }
  .news-grid.list-layout.list-dt-list_row .news-card {
    flex-direction: row;
    align-items: stretch;
  }
  .news-grid.list-layout.list-dt-list_row .news-img {
    width: 11rem;
    height: auto;
    min-height: 7.5rem;
    flex-shrink: 0;
  }
  .news-grid.list-layout.list-dt-list_row .news-img img {
    height: 100%;
    min-height: 7.5rem;
    object-fit: cover;
  }
  .news-grid.list-layout.list-dt-list_row .news-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .projects-grid.list-layout.list-dt-list_row {
    grid-template-columns: 1fr;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
  }
  .projects-grid.list-layout.list-dt-list_row .project-card-link {
    display: flex;
    flex-direction: row;
    align-items: stretch;
  }
  .projects-grid.list-layout.list-dt-list_row .project-img {
    width: 11rem;
    height: auto;
    min-height: 7.5rem;
    flex-shrink: 0;
  }
  .projects-grid.list-layout.list-dt-list_row .project-img img {
    height: 100%;
    min-height: 7.5rem;
    object-fit: cover;
  }
  .projects-grid.list-layout.list-dt-list_row .project-body {
    flex: 1;
    min-width: 0;
  }
}
@media (max-width: 768px) {
  .news-grid.list-layout.list-mb-list_row .news-card {
    flex-direction: row;
    align-items: stretch;
  }
  .news-grid.list-layout.list-mb-list_row .news-img {
    width: 6.75rem;
    height: auto;
    min-height: 5.5rem;
    flex-shrink: 0;
  }
  .news-grid.list-layout.list-mb-list_row .news-img img {
    height: 100%;
    min-height: 5.5rem;
    object-fit: cover;
  }
  .news-grid.list-layout.list-mb-list_row .news-body {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 0.85rem;
  }
  .news-grid.list-layout.list-mb-list_row .news-body h2 {
    font-size: 0.98rem;
  }
  .projects-grid.list-layout.list-mb-list_row {
    grid-template-columns: 1fr;
  }
  .projects-grid.list-layout.list-mb-list_row .project-card-link {
    display: flex;
    flex-direction: row;
    align-items: stretch;
  }
  .projects-grid.list-layout.list-mb-list_row .project-img {
    width: 6.75rem;
    height: auto;
    min-height: 5.5rem;
    flex-shrink: 0;
  }
  .projects-grid.list-layout.list-mb-list_row .project-img img {
    height: 100%;
    min-height: 5.5rem;
    object-fit: cover;
  }
  .projects-grid.list-layout.list-mb-list_row .project-body {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 0.85rem;
  }
}

/* ── Contact ────────────────────────────────────────────────────── */
.contact-layout  { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; }
.contact-item    { display: flex; gap: 1rem; margin-bottom: 1.25rem; align-items: flex-start; }
.contact-icon    { font-size: 1.5rem; flex-shrink: 0; }
.contact-label   { font-size: .75rem; color: var(--mid); margin-bottom: .15rem; }
.contact-info a  { color: var(--charcoal); font-weight: 500; }
.contact-info a:hover { color: var(--gold); }
.contact-form-wrap h2 { margin-bottom: 1.25rem; font-size: 1.4rem; }
.form-row        { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.form-field      { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .75rem; }
.form-field label{ font-size: .82rem; font-weight: 500; color: var(--charcoal); }

/* ── CTA ────────────────────────────────────────────────────────── */
.cta-section { background: var(--charcoal); color: #fff; text-align: center; }
.cta-inner h2 { color: #fff; font-size: clamp(1.5rem,3vw,2rem); margin-bottom: .75rem; }
.cta-inner p  { color: rgba(255,255,255,.7); margin-bottom: 1.75rem; font-size: 1rem; }
.cta-inner .hero-btns { justify-content: center; }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,.6); padding: 3rem 0 0; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(auto-fit, minmax(130px, 1fr)); gap: 2rem; padding-bottom: 2rem; }
.footer-brand .footer-name { font-family: 'Playfair Display',serif; font-size: 1.2rem; color: #fff; margin-bottom: .75rem; }
.footer-brand p  { font-size: .85rem; margin: .25rem 0; }
.footer-brand a  { color: rgba(255,255,255,.7); }
.footer-brand a:hover { color: #fff; }
.footer-social   { display: flex; gap: .75rem; margin-top: .75rem; flex-wrap: wrap; }
.footer-social a { font-size: .8rem; color: rgba(255,255,255,.5); }
.footer-social a:hover { color: rgba(255,255,255,.9); }
.footer-nav h4   { color: rgba(255,255,255,.8); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; font-family: inherit; }
.footer-nav a    { display: block; font-size: .82rem; color: rgba(255,255,255,.5); margin-bottom: .35rem; }
.footer-nav a:hover { color: rgba(255,255,255,.9); }
.footer-nav--cities { grid-column: span 2; }
.footer-nav--cities .footer-cities-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-nav--cities .footer-cities-links a { margin-bottom: 0; }
.footer-bottom   { border-top: 1px solid rgba(255,255,255,.08); padding: 1rem 0; font-size: .75rem; color: rgba(255,255,255,.3); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; text-align: center; }
.footer-disclaimer { color: rgba(255,255,255,.22); font-size: .72rem; }
.footer-disclaimer a { color: rgba(255,255,255,.22); text-decoration: underline; text-underline-offset: 2px; }
.footer-disclaimer a:hover { color: rgba(255,255,255,.45); }

/* ── WhatsApp FAB ─────────────────────────────────────────────── */
.wa-fab {
  position: fixed;
  bottom: max(1.25rem, calc(env(safe-area-inset-bottom, 0px) + 0.5rem));
  right: max(1.25rem, calc(env(safe-area-inset-right, 0px) + 0.5rem));
  background: #25D366;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  z-index: 800;
  transition: transform .2s;
}
.wa-fab:hover { transform: scale(1.1); }
.wa-fab svg { width: 28px; height: 28px; fill: #fff; }

/* ── Pagination ─────────────────────────────────────────────────── */
.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 2rem; }
.pagination a { padding: .4rem .75rem; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: .85rem; }
.pagination a.active { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }

/* ── Empty state ────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--mid); }
.empty-state a { color: var(--gold); font-weight: 600; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "aside"
      "copy";
    gap: 1.25rem;
  }
  .product-layout--compact {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "form"
      "specs"
      "copy";
  }
  .product-page-section { padding: 1.5rem 0 2.5rem; }
  .spec-card { position: static !important; top: auto !important; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-nav--cities { grid-column: span 2; }
}
@media (max-width: 600px) {
  .section { padding: 2.5rem 0; }
  .product-page-section { padding: 1.25rem 0 2rem; }
  .container { padding-left: 1rem; padding-right: 1rem; }
  .product-slider-nav { width: 2rem; height: 2rem; font-size: 1rem; }
  .product-slider-nav--prev { left: 0.35rem; }
  .product-slider-nav--next { right: 0.35rem; }
  .thumb-wrap { width: 3.75rem; height: 3.75rem; }
  /* 16px — меньше авто-зума полей на iOS */
  .form-input, input[type=text], input[type=email], input[type=tel], select, textarea { font-size: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav--cities { grid-column: span 1; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}

/* ── Mobile normalization (≤768px): колонки, кнопки, safe-area ─── */
@media (max-width: 768px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  body {
    overflow-x: clip;
  }
  body.nav-drawer-open {
    overflow: hidden;
  }
  main {
    min-width: 0;
  }
  .site-header {
    padding-top: env(safe-area-inset-top, 0px);
    padding-left: max(0px, env(safe-area-inset-left, 0px));
    padding-right: max(0px, env(safe-area-inset-right, 0px));
  }
  .main-nav .container {
    min-width: 0;
  }
  .logo-img {
    flex-shrink: 0;
  }
  .logo-text {
    font-size: 1rem;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav-menu:not(.open) {
    pointer-events: none;
  }
  .nav-menu.open {
    pointer-events: auto;
  }
  .hero {
    padding: 2.5rem 0 2.75rem;
  }
  .hero-content h1 {
    font-size: clamp(1.55rem, 6.5vw, 2.35rem);
  }
  .hero-content p {
    font-size: 0.95rem;
    margin-bottom: 1.35rem;
  }
  .hero-btns {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  .hero-btns > .btn-primary,
  .hero-btns > .btn-outline,
  .hero-btns > .btn-wa,
  .hero-btns > .btn-link {
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.35;
    padding: 0.7rem 1.1rem;
  }
  .hero-slider .hero-slider-btns > .btn-primary,
  .hero-slider .hero-slider-btns > .btn-outline,
  .hero-slider .hero-slider-btns > .btn-wa {
    width: 100%;
    white-space: normal;
  }
  .page-hero {
    padding: 1.1rem 0 1.35rem;
  }
  .page-hero h1 {
    line-height: 1.2;
  }
  .breadcrumb {
    font-size: 0.7rem;
    gap: 0.28rem;
    line-height: 1.45;
  }
  .section {
    padding: 2.75rem 0;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 1.35rem;
  }
  .section-head .btn-link {
    align-self: flex-start;
  }
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .news-grid,
  .news-grid-full {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
  .search-form {
    flex-direction: column;
    align-items: stretch;
  }
  .search-form button {
    width: 100%;
  }
  .filter-group {
    gap: 0.4rem;
  }
  .filter-btn {
    font-size: 0.78rem;
    padding: 0.4rem 0.85rem;
  }
  .btn-primary,
  .btn-outline,
  .btn-wa,
  .btn-card,
  .btn-card-price {
    white-space: normal;
  }
  .product-slider {
    max-width: 100%;
  }
  .spec-card--product .spec-row strong {
    max-width: 100%;
  }
  .cta-section .hero-btns {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-section .hero-btns > * {
    width: 100%;
    justify-content: center;
    white-space: normal;
  }
  .article-body,
  .page-body-html {
    font-size: 0.95rem;
  }
  .article-layout.site-page-wide .page-body-html {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .spec-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
  .spec-row strong {
    text-align: left;
    align-self: flex-start;
  }
  .spec-card--product .spec-row strong {
    max-width: none;
  }
  .price-box {
    padding: 1rem 1.15rem;
  }
  .variant-color-option {
    font-size: 0.78rem;
    padding: 0.4rem 0.55rem;
  }
  .about-stats {
    grid-template-columns: 1fr;
  }
}

/* ── Reviews ─────────────────────────────────────────────────────────────── */
/* Бейджик варианта на карточке (shortcode variants="1") */
.product-variant-badge { display: inline-flex; align-items: center; font-size: .72rem; color: var(--mid); background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: .15rem .45rem; margin-bottom: .3rem; }

.reviews-section { padding-top: 2rem; padding-bottom: 2rem; }
.reviews-summary-inline { display: inline-flex; align-items: center; gap: .3rem; font-size: 1rem; font-weight: 400; margin-left: .75rem; vertical-align: middle; }
.reviews-avg { font-weight: 600; color: var(--charcoal); }
.reviews-total { color: var(--mid); font-size: .88rem; }
.star-icon { color: #d1cdc7; font-size: 1.1rem; line-height: 1; }
.star-icon.filled { color: #f59e0b; }

.reviews-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.75rem; }
.review-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.review-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.review-author-block { display: flex; flex-direction: column; gap: .1rem; }
.review-author { font-weight: 600; font-size: .9rem; color: var(--charcoal); }
.review-date { font-size: .75rem; color: var(--mid); }
.review-stars { display: flex; gap: .1rem; flex-shrink: 0; }
.review-stars .star-icon { font-size: 1rem; }
.review-title { font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.review-body { font-size: .88rem; color: var(--charcoal); line-height: 1.6; white-space: pre-line; }
.review-photos { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.review-photo { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; border: 1.5px solid var(--border); display: block; }
.review-photo-link:hover .review-photo { opacity: .85; }
.reviews-empty { color: var(--mid); font-size: .9rem; margin-bottom: 1.5rem; }

/* Тулбар сортировки */
.reviews-toolbar { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.reviews-toolbar-label { font-size: .8rem; color: var(--mid); margin-right: .15rem; }
.rev-sort-btn { font-size: .8rem; padding: .3rem .75rem; border-radius: 20px; border: 1.5px solid var(--border); background: #fff; color: var(--charcoal); text-decoration: none; transition: all .15s; }
.rev-sort-btn:hover { border-color: var(--charcoal); }
.rev-sort-btn.active { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }

/* Пагинация отзывов */
.reviews-pagination { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 1.25rem; justify-content: center; }
.rev-page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; height: 2rem; padding: 0 .5rem; border-radius: 6px; border: 1.5px solid var(--border); background: #fff; color: var(--charcoal); font-size: .85rem; text-decoration: none; transition: all .15s; }
.rev-page-btn:hover { border-color: var(--charcoal); }
.rev-page-btn.active { background: var(--charcoal); color: #fff; border-color: var(--charcoal); font-weight: 600; }

/* Форма отзыва */
.review-form-details { border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.review-form-summary { padding: .85rem 1.1rem; font-weight: 600; font-size: .92rem; cursor: pointer; background: var(--bg); list-style: none; display: flex; align-items: center; gap: .5rem; }
.review-form-summary::before { content: '✎'; font-size: 1rem; color: var(--gold); }
.review-form-summary::-webkit-details-marker { display: none; }
.review-form { padding: 1rem 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .75rem; background: #fff; }

/* Выбор рейтинга в форме */
.review-form-rating { display: flex; align-items: center; gap: .35rem; }
.rev-rating-label { font-size: .85rem; color: var(--mid); margin-right: .15rem; }
.rev-star-label input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.rev-star-btn { font-size: 1.6rem; color: #d1cdc7; cursor: pointer; line-height: 1; transition: color .15s; display: inline-block; }
.rev-star-label:hover .rev-star-btn,
.rev-star-label:hover ~ .rev-star-label .rev-star-btn { color: #d1cdc7; }
.review-form-rating:has(.rev-star-label:nth-child(2):hover) .rev-star-label:nth-child(2) .rev-star-btn { color: #f59e0b; }
/* JS handles star highlight — fallback: checked state */
.rev-star-label input:checked ~ * { color: #f59e0b; }

@media (max-width: 600px) {
  .review-card { padding: .85rem 1rem; }
  .review-header { flex-direction: column; gap: .35rem; }
  .review-photo { width: 64px; height: 64px; }
}

/* ── City SEO pages ─────────────────────────────────────────────── */
.city-hero { background: var(--light); padding: 2.75rem 0 3.25rem; }
.city-hero-layout { display: grid; grid-template-columns: 1fr 280px; gap: 2.5rem 3rem; align-items: start; }

/* Hero left */
.city-region-tag { display: inline-block; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); background: rgba(180,140,60,.1); padding: .3rem .75rem; border-radius: 100px; margin-bottom: .85rem; }
.city-hero-h1 { font-size: clamp(1.75rem, 3.5vw, 2.7rem); line-height: 1.2; margin: 0 0 .85rem; }
.city-hero-desc { font-size: 1.05rem; color: var(--mid); margin: 0 0 1.25rem; max-width: 520px; line-height: 1.6; }
.city-info-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.city-chip { display: inline-flex; align-items: center; gap: .4rem; font-size: .84rem; padding: .4rem .85rem; border-radius: 100px; font-weight: 500; }
.city-chip--green { background: #e8f5e9; color: #2e7d32; }
.city-chip--blue  { background: #e3f2fd; color: #1565c0; }
.city-hero-btns { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.city-phone-btn { display: inline-flex; align-items: center; gap: .45rem; }

/* Hero right: info card */
.city-info-card { background: #fff; border: 1.5px solid var(--border); border-radius: 16px; padding: 1.5rem 1.5rem 1.25rem; box-shadow: 0 4px 24px rgba(0,0,0,.07); display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; }
.city-info-card-pin  { font-size: 2.75rem; line-height: 1; margin-bottom: .15rem; }
.city-info-card-name { font-size: 1.2rem; font-weight: 700; color: var(--charcoal); }
.city-info-card-region { font-size: .8rem; color: var(--mid); }
.city-info-card-divider { width: 100%; height: 1px; background: var(--border); margin: .75rem 0 .5rem; }
.city-info-card-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .85rem; padding: .25rem 0; }
.city-info-card-lbl { color: var(--mid); }
.city-info-card-val { font-weight: 600; color: var(--charcoal); }
.city-info-card-phone { color: var(--charcoal); text-decoration: none; }
.city-info-card-phone:hover { color: var(--gold); }
.city-info-card-wa { display: inline-flex; align-items: center; gap: .5rem; margin-top: .75rem; width: 100%; justify-content: center; background: #25d366; color: #fff; font-size: .88rem; font-weight: 600; padding: .6rem 1rem; border-radius: 8px; text-decoration: none; transition: background .15s; }
.city-info-card-wa:hover { background: #1ebe5d; color: #fff; }

/* CTA section */
.city-cta-section { background: var(--charcoal); color: #fff; }
.city-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.city-cta-inner h2 { font-size: 1.5rem; color: #fff; margin: 0 0 .4rem; }
.city-cta-inner p  { color: rgba(255,255,255,.7); margin: 0; }
.city-cta-actions  { display: flex; gap: .75rem; flex-wrap: wrap; }
.city-lead-form .form-row { grid-template-columns: 1fr 1fr; }
.city-lead-form .form-input { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; }
.city-lead-form .form-input::placeholder { color: rgba(255,255,255,.45); }

/* Cities list page */
.cities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.city-card { display: flex; align-items: flex-start; gap: .75rem; padding: 1.1rem 1.2rem; background: #fff; border: 1.5px solid var(--border); border-radius: 12px; text-decoration: none; color: var(--charcoal); transition: border-color .18s, box-shadow .18s, transform .15s; }
.city-card:hover { border-color: var(--gold); box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-2px); }
.city-card-pin  { font-size: 1.5rem; flex-shrink: 0; line-height: 1.2; }
.city-card-body { flex: 1; min-width: 0; }
.city-card-name { font-size: 1rem; font-weight: 700; margin: 0 0 .2rem; }
.city-card-region { font-size: .78rem; color: var(--mid); margin: 0 0 .3rem; }
.city-card-days { font-size: .82rem; color: #2e7d32; margin: 0; }
.city-card-note { font-size: .78rem; color: var(--mid); margin: .2rem 0 0; }
.city-card-arrow { color: var(--mid); font-size: 1.1rem; align-self: center; margin-left: auto; padding-left: .5rem; transition: transform .15s; }
.city-card:hover .city-card-arrow { transform: translateX(3px); color: var(--gold); }

@media (max-width: 860px) {
  .city-hero-layout { grid-template-columns: 1fr; }
  .city-info-card { flex-direction: row; text-align: left; align-items: center; flex-wrap: wrap; gap: .6rem; }
  .city-info-card-pin { font-size: 2rem; }
  .city-info-card-divider { display: none; }
  .city-info-card-row { width: auto; }
  .city-info-card-wa { width: auto; margin-top: 0; }
}
@media (max-width: 600px) {
  .city-info-card { flex-direction: column; text-align: center; }
  .city-info-card-row { width: 100%; }
  .city-info-card-wa { width: 100%; margin-top: .5rem; }
  .city-cta-inner { flex-direction: column; align-items: flex-start; }
  .city-lead-form .form-row { grid-template-columns: 1fr; }
}

/* ── Nav dropdown (custom sub-pages / sub-items) ─────────────────── */
.hdr-has-dropdown { position: relative; }
.hdr-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  min-width: 200px;
  padding: .4rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 200;
}
.hdr-has-dropdown:hover .hdr-dropdown,
.hdr-has-dropdown:focus-within .hdr-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.hdr-dropdown-link {
  display: block;
  padding: .5rem 1rem;
  font-size: .88rem;
  color: var(--charcoal);
  text-decoration: none;
  transition: background .12s, color .12s;
  white-space: nowrap;
}
.hdr-dropdown-link:hover { background: var(--light); color: var(--gold); }
.hdr-drop-chevron {
  display: inline-block;
  vertical-align: middle;
  margin-left: .25rem;
  transition: transform .18s;
}
.hdr-has-dropdown:hover .hdr-drop-chevron { transform: rotate(180deg); }

/* Mobile drawer sub-panel */
.hdr-drawer-sub-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.hdr-drawer-sub-panel {
  display: none;
  padding: .25rem 0 .5rem 1rem;
  flex-direction: column;
  gap: .15rem;
}
.hdr-drawer-has-sub.open .hdr-drawer-sub-panel { display: flex; }
.hdr-drawer-has-sub.open .hdr-drop-chevron { transform: rotate(180deg); }
.hdr-drawer-sub-link {
  display: block;
  padding: .4rem .5rem;
  font-size: .88rem;
  color: var(--charcoal);
  text-decoration: none;
  border-radius: 6px;
}
.hdr-drawer-sub-link:hover { background: var(--light); }
.hdr-drawer-sub-all { font-weight: 600; color: var(--gold); }

/* =============================================
   HERO PRODUCTS SPLIT (карточки товаров справа с авторотацией)
   ============================================= */
/* =============================================
   HERO PRODUCTS SPLIT — фиксированный размер, без прыжков
   ============================================= */
.hero-prod-rotator-wrap {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  width: 100%;
}

/* Контейнер с фиксированным соотношением — размер НИКОГДА не прыгает */
.hero-prod-rotator {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;       /* фиксированная высота через соотношение сторон */
  border-radius: 16px;
  overflow: hidden;
  touch-action: pan-y;
  box-shadow: 0 8px 36px rgba(0,0,0,.11);
}

/* Все карточки — абсолютные, занимают весь контейнер */
.hero-prod-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease;
}
.hero-prod-card.active {
  opacity: 1;
  pointer-events: auto;
}

/* Фото занимает всё свободное пространство карточки */
.hero-prod-card-img {
  flex: 1;
  width: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.hero-prod-card:hover .hero-prod-card-img { transform: scale(1.03); }

.hero-prod-card-placeholder {
  flex: 1;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: #f3f4f6;
}

/* Инфо — прижато ко дну, фиксированная высота */
.hero-prod-card-info {
  flex-shrink: 0;
  padding: .65rem 1rem .8rem;
  display: flex;
  flex-direction: column;
  gap: .18rem;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.06);
  min-height: 76px;
}
.hero-prod-card-cat {
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--brand, #C14B1A);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-prod-card-name {
  font-size: .97rem;
  font-weight: 600;
  color: var(--charcoal, #1a1a2e);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.hero-prod-card-btn {
  display: inline-block;
  margin-top: .2rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--primary, #1a56db);
  transition: gap .2s;
}
.hero-prod-card:hover .hero-prod-card-btn { opacity: .75; }

/* Панель: лёгкие стрелки + точки */
.hero-prod-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
}
.hero-prod-arrow {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: .9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color .2s;
  padding: 0;
  line-height: 1;
}
.hero-prod-arrow:hover { color: var(--charcoal, #1a1a2e); }

.hero-prod-dots {
  display: flex;
  gap: .3rem;
  align-items: center;
}
.hero-prod-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: #d1d5db;
  cursor: pointer;
  padding: 0;
  transition: background .25s, width .25s;
}
.hero-prod-dot.active {
  background: var(--charcoal, #1a1a2e);
  width: 18px;
  border-radius: 3px;
}

/* Мобилка */
@media (max-width: 860px) {
  .hero-prod-rotator {
    aspect-ratio: 4 / 3;  /* то же соотношение, просто уже */
    border-radius: 12px;
  }
}
