:root {
  --brown: #7a5230;
  --brown-l: #8a5f38;
  --beige: #f7f2ec;
  --beige-b: #e5d9c9;
  --ink: #37352f;
  --muted: #716d65;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: #fffdfb;
}
a { color: var(--brown); }
.wrap { max-width: 1300px; margin: 0 auto; padding: 0 16px; }

.top { background: var(--beige); border-bottom: 1px solid var(--beige-b); }
.top-in { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; }
.logo { font-size: 22px; font-weight: 800; letter-spacing: 1px; color: var(--brown); text-decoration: none; }
.top-right { text-align: right; }
.top-phone { display: block; font-weight: 700; color: var(--ink); text-decoration: none; transition: color var(--speed) ease; }
.top-phone:hover { color: var(--brown); }
.top-note { color: var(--muted); font-size: 12px; }

.foot { margin-top: 40px; background: var(--beige); border-top: 1px solid var(--beige-b); }
.foot-in { display: flex; justify-content: space-between; padding: 14px 16px; font-size: 12px; color: var(--muted); }
.muted { color: var(--muted); }

.cat-title { margin: 22px 0 6px; }
.cat-lead { color: var(--muted); max-width: 780px; }
.cat-layout { display: flex; gap: 20px; align-items: flex-start; }
.filters { flex: 0 0 250px; min-width: 0; background: var(--beige); border: 1px solid var(--beige-b); border-radius: 8px; padding: 14px; position: sticky; top: 12px; }
.f-block { margin-bottom: 16px; }
.f-name { font-weight: 700; margin-bottom: 8px; font-size: 14px; }
.f-price { display: flex; gap: 8px; align-items: center; }
.f-price input { width: 0; min-width: 0; flex: 1 1 0; padding: 6px 8px; border: 1px solid var(--beige-b); border-radius: 6px; }
.f-checks { max-height: 220px; overflow: auto; padding-right: 8px; scrollbar-gutter: stable; }
.f-checks label { display: flex; gap: 7px; align-items: center; padding: 3px 0; font-size: 13px; cursor: pointer; min-width: 0; }
.f-checks label > span:not(.cnt) {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.f-checks .cnt { color: var(--muted); margin-left: auto; flex: 0 0 auto; padding-left: 6px; }
.f-reset { width: 100%; padding: 8px; background: var(--brown); color: #fff; border: none; border-radius: 6px; cursor: pointer; }
.f-reset:hover { background: var(--brown-l); }

.cat-main { flex: 1; }
.cat-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: var(--muted); font-size: 13px; }
.cat-top select { padding: 6px 8px; border: 1px solid var(--beige-b); border-radius: 6px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: #fff; border: 1px solid var(--beige-b); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.card-img { aspect-ratio: 4/3; background: #fff; }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.card-body { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-size: 14px; line-height: 1.3; min-height: 36px; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--brown); }
.card-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 11px; padding: 2px 9px; border-radius: 10px; background: var(--beige); color: #6b5a48; }
.chip.used { background: var(--brown); color: #fff; }
.card-price { margin-top: auto; font-size: 16px; font-weight: 800; }
.cat-empty { padding: 40px; text-align: center; color: var(--muted); }

.prod { display: flex; gap: 28px; margin-top: 24px; }
.prod-gallery { flex: 0 0 46%; }
.prod-main { display: block; width: 100%; height: auto; border: 1px solid var(--beige-b); border-radius: 8px; object-fit: contain; background: #fff; aspect-ratio: auto; }
.prod-thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.p-thumb { width: 64px; height: 48px; object-fit: cover; border: 1px solid var(--beige-b); border-radius: 4px; cursor: pointer; }
.prod-info h1 { margin: 6px 0 12px; }
.prod-price { font-size: 28px; font-weight: 800; margin-bottom: 14px; }
.prod-specs { margin: 0 0 16px; }
.prod-specs div {
  display: grid;
  grid-template-columns: minmax(130px, 195px) 1fr;
  gap: 3px 18px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--beige-b);
  align-items: baseline;
}
.prod-specs dt { color: var(--muted); }
.prod-specs dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.prod-avito { display: inline-block; padding: 9px 20px; background: var(--brown); color: #fff !important; border-radius: 18px; text-decoration: none !important; margin-bottom: 16px; }
.prod-avito:hover { background: var(--brown-l); }
.prod-desc { font-size: 14px; line-height: 1.55; }

@media (max-width: 900px) {
  .cat-layout { flex-direction: column; }
  .filters { position: static; width: 100%; flex: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .prod { flex-direction: column; }
  .prod-specs div { grid-template-columns: minmax(104px, 140px) 1fr; gap: 2px 12px; }
}
.foot-addr { color: var(--ink); text-decoration: none; border-bottom: 1px dashed var(--beige-b); transition: color var(--speed) ease, border-color var(--speed) ease; }
.foot-addr:hover { color: var(--brown); border-color: var(--brown); }


/* Пагинация каталога (v24) */
.cat-pag {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 22px 0 8px;
  flex-wrap: wrap;
}

.pg-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--beige-b);
  background: #fff;
  color: var(--ink) !important;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

.pg-btn:hover { border-color: var(--brown); color: var(--brown) !important; }

.pg-btn.pg-active {
  background: var(--brown);
  border-color: var(--brown);
  color: #fff !important;
}

.pg-btn:disabled { opacity: .35; cursor: default; }
.pg-btn.pg-nav { font-size: 16px; line-height: 1; }
.pg-dots { color: var(--muted); padding: 0 2px; }
#cat-sentinel { height: 1px; }

.logo-img {
  display: block;
  height: 62px;
  width: auto;
  border-radius: 8px;
}


/* Карточка: описание в левой колонке (v7) */
.prod-left { flex: 0 0 46%; min-width: 0; }
.prod-desc {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}
.prod-desc h2 { font-size: 17px; margin: 0 0 10px; }
.p-thumb.active { border-color: var(--brown); box-shadow: 0 0 0 2px var(--brown); }

/* Лайтбокс */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 12, 9, .94);
  display: flex;
  align-items: center;
  justify-content: center;
}
#lightbox[hidden] { display: none; }
#lb-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 60px rgba(0, 0, 0, .7);
  cursor: zoom-in;
  flex: none;
  user-select: none;
  transform-origin: center;
}
.lb-stage { width:88vw; height:78vh; display:flex; align-items:center; justify-content:center; overflow:hidden; touch-action:none; }
#lightbox.is-zoomed #lb-img { cursor:zoom-out; }
#lightbox .lb-zoom { position:fixed; top:18px; left:50%; transform:translateX(-50%); z-index:2; min-height:44px; padding:10px 16px; border:1px solid #ffffff66; border-radius:24px; color:#fff; background:#30271e; font:inherit; cursor:pointer; }
#lightbox .lb-hint { position:fixed; bottom:46px; left:12px; right:12px; margin:0; color:#ffffffcc; text-align:center; font-size:13px; pointer-events:none; }
#lightbox .lb-close { padding:0; line-height:1; }
#lightbox .lb-close svg { display:block; flex:none; }
@media(max-width:600px) { .lb-stage { width:96vw; height:74vh; } #lightbox .lb-hint { font-size:12px; bottom:42px; } #lightbox .lb-zoom { left:12px; transform:none; font-size:14px; } }
.lb-close, .lb-arrow {
  z-index: 2;
  pointer-events: auto;
  position: fixed;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.lb-close:hover, .lb-arrow:hover { background: rgba(255, 255, 255, .28); }
.lb-close { top: 18px; right: 22px; width: 46px; height: 46px; font-size: 26px; }
.lb-arrow { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; padding: 0; line-height: 1; box-sizing: border-box; }
.lb-arrow svg { display: block; flex: none; }
@media (max-width: 900px) { .lb-arrow { display: none; } }
.lb-prev { left: 22px; }
.lb-next { right: 22px; }
.lb-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .85);
  font-size: 14px;
  letter-spacing: 1px;
}

/* Расширенный подвал */
.foot { border-top: 1px solid var(--beige-b); }
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.4fr 1.1fr;
  gap: 30px;
  padding: 30px 16px 24px;
}
.foot-col h4 {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: .5px;
  color: var(--brown);
  text-transform: uppercase;
}
.foot-logo { height: 64px; border-radius: 8px; margin-bottom: 12px; }
.foot-col p { font-size: 13px; line-height: 1.55; color: var(--ink); margin: 0 0 8px; }
.foot-links { list-style: none; padding: 0; margin: 0; }
.foot-links li { margin-bottom: 8px; }
.foot-links a { color: var(--ink); text-decoration: none; font-size: 13px; }
.foot-links a:hover { color: var(--brown); }
.foot-promo { list-style: none; padding: 0; margin: 0; }
.foot-promo li { font-size: 13px; line-height: 1.5; margin-bottom: 8px; }
.foot-contacts .foot-phone a { font-size: 16px; font-weight: 700; color: var(--ink); text-decoration: none; }
.foot-contacts p { margin: 0 0 6px; font-size: 13px; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 18px;
  border-top: 1px solid var(--beige-b);
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-bottom { flex-direction: column; }
}


/* Конверсионные блоки на карточке (v8) */
.recs { margin-top: 36px; }
.recs-block { margin-bottom: 26px; }
.recs-block h2 {
  font-size: 18px;
  margin: 0 0 14px;
  padding-top: 14px;
  border-top: 1px solid var(--beige-b);
}
.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 235px;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
}
.strip .card { scroll-snap-align: start; }


/* Лендинг главной (v9) */
.hero { background: linear-gradient(135deg, #f7f2ec 0%, #efe4d6 100%); border-bottom: 1px solid var(--beige-b); }
.hero-in { display: flex; align-items: center; gap: 30px; padding: 44px 16px; }
/* Главная: весь первый экран, включая выбор инструментов, на общем фоне. */
main.wg-home-main { max-width: none; padding: 0; }
.wg-home-main > .hero > .wrap,
.wg-home-main > .sec.wrap { max-width: 1268px; }
.hero-choices { position: relative; z-index: 1; padding-top: 16px; }
.hero-choices .wg-choice-bar { margin: 0; }
.hero-choices + .hero-in { padding-top: 28px; }
.wg-home-assortment {
  margin-top: 40px;
  padding: 40px 0;
  background: radial-gradient(1200px 420px at 18% 0%, rgba(255, 252, 247, .9) 0%, transparent 60%), linear-gradient(135deg, #f7f2ec 0%, #efe3d3 100%);
  border-top: 1px solid var(--beige-b);
  border-bottom: 1px solid var(--beige-b);
}
.wg-home-assortment > .sec.wrap { max-width: 1268px; }
.wg-home-assortment > .sec:first-child { margin-top: 0; }
.hero-text { flex: 1; max-width: 640px; }
.hero-text h1 { font-size: 34px; line-height: 1.15; margin: 0 0 14px; }
.hero-text p { font-size: 15px; color: #5a4a3a; margin: 0 0 20px; }
.hero-btns { display: flex; gap: 12px; margin-bottom: 24px; }
.btn-hero {
  display: inline-block;
  padding: 12px 26px;
  background: var(--brown);
  color: #fff !important;
  border-radius: 22px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 14px;
}
.btn-hero:hover { background: var(--brown-l); }
.btn-hero.ghost { background: transparent; color: var(--brown) !important; border: 2px solid var(--brown); }
.btn-hero.ghost:hover { background: var(--beige); }
.hero-stats { display: flex; gap: 28px; }
.hero-stats div { text-align: center; }
.hero-stats b { display: block; font-size: 22px; color: var(--brown); }
.hero-stats span { font-size: 12px; color: var(--muted); }
.hero-art {
  position: relative;
  flex: 0 0 300px;
  height: 240px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 40%, rgba(122, 82, 48, .25), transparent 60%),
    radial-gradient(circle at 75% 65%, rgba(138, 95, 56, .3), transparent 55%),
    linear-gradient(160deg, #3d5a3f 0%, #2d4430 100%);
  overflow: hidden;
}
.hero-art-photo {
  position: absolute;
  inset: 28px 18px 34px;
  width: calc(100% - 36px);
  display: block;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .28));
  transform: rotate(-4deg) scale(1.05);
}
.hero-art-photo img { display: block; width: 100%; height: auto; }
.hero-photo-corner { right: 0; bottom: 0; width: 58px; height: 24px; font-size: 9px; }
.hero-art:focus-visible { outline: 3px solid var(--brown); outline-offset: 4px; }
.hero-art-label, .hero-art-title {
  position: absolute;
  z-index: 2;
  color: #fff;
  background: rgba(23, 38, 25, .62);
  backdrop-filter: blur(8px);
}
.hero-art-label { top: 12px; left: 12px; padding: 5px 9px; border-radius: 12px; font-size: 11px; letter-spacing: .4px; }
.hero-art-title { right: 12px; bottom: 10px; left: 12px; padding: 7px 10px; border-radius: 8px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sec { margin-top: 40px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.sec-head h2 { margin: 0; font-size: 24px; }
.sec-all { font-size: 13px; color: var(--brown); text-decoration: none; }
.sec-all:hover { text-decoration: underline; }

.cat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-tile {
  position: relative;
  border: 1px solid var(--beige-b);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none !important;
  color: var(--ink) !important;
  display: block;
  background: #fff;
  transition: transform .15s;
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(122, 82, 48, .15); }
.cat-tile-img { display: block; height: 150px; }
.cat-tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-tile-name {
  display: block;
  padding: 12px 14px 4px;
  font-weight: 700;
  font-size: 15px;
}
.cat-tile-n { display: block; padding: 0 14px 14px; color: var(--muted); font-size: 12px; }

.brand-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: #fff;
  border: 1px solid var(--beige-b);
  border-radius: 20px;
  text-decoration: none !important;
  color: var(--ink) !important;
  font-size: 13px;
  font-weight: 600;
}
.brand-chip:hover { border-color: var(--brown); color: var(--brown) !important; }
.brand-n {
  background: var(--beige);
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 11px;
  color: #6b5a48;
}
@media (max-width: 900px) {
  .hero-in { flex-direction: column; }
  .hero-art { display: none; }
  .hero-text h1 { font-size: 26px; }
  .cat-tiles { grid-template-columns: 1fr; }
}


/* ============================================================
   Polish pass v11 - современная отделка
   ============================================================ */

/* Токены отделки */
:root {
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
  --shadow-s: 0 1px 2px rgba(55, 40, 25, .06), 0 2px 8px rgba(55, 40, 25, .05);
  --shadow-m: 0 6px 18px rgba(55, 40, 25, .10), 0 2px 6px rgba(55, 40, 25, .06);
  --shadow-l: 0 14px 40px rgba(55, 40, 25, .16);
  --speed: .18s;
}

body {
  font-family: "Inter", "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: #fbf9f6;
}

::selection { background: rgba(122, 82, 48, .22); }

:focus-visible { outline: 2px solid var(--brown); outline-offset: 2px; border-radius: 4px; }

/* тонкие скроллбары в тон теме */
* { scrollbar-width: thin; scrollbar-color: #cbb9a2 transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: #cbb9a2; border-radius: 8px; }
*::-webkit-scrollbar-track { background: transparent; }

html, body { overflow-x: clip; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }
#brands, .prod-desc, .prod-params { scroll-margin-top: 24px; }

/* шапка: липкая, с размытием */
.top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 242, 236, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-s);
}
.logo-img { transition: transform var(--speed) ease; }
.logo:hover .logo-img { transform: scale(1.04); }

/* карточки: ховер-подъём и зум фото */
.grid .card,
.strip .card {
  transition: transform var(--speed) ease, box-shadow var(--speed) ease, border-color var(--speed) ease;
}
.grid .card:hover,
.strip .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-m);
  border-color: #dcc8ad;
}
.card-img { overflow: hidden; }
.card-img img { transition: transform .45s cubic-bezier(.2, .6, .2, 1); }
.card:hover .card-img img { transform: scale(1.05); }
.card-title a { transition: color var(--speed) ease; }
.card-price { font-variant-numeric: tabular-nums; letter-spacing: .2px; }
.chip { font-weight: 600; }
.chip.used { text-transform: uppercase; letter-spacing: .6px; font-size: 10px; }

/* единая механика кнопок */
.btn-hero, .prod-avito, .f-reset, .pg-btn, .brand-chip, .cat-tile {
  transition: transform var(--speed) ease, box-shadow var(--speed) ease,
              background var(--speed) ease, border-color var(--speed) ease, color var(--speed) ease;
}
.btn-hero:hover, .prod-avito:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(122, 82, 48, .25); }
.btn-hero:active, .prod-avito:active, .f-reset:active { transform: translateY(0); box-shadow: none; }

/* hero: точечная текстура поверх градиента */
.hero { position: relative; overflow: hidden; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(122, 82, 48, .10) 1px, transparent 1.4px);
  background-size: 22px 22px;
  opacity: .35;
  pointer-events: none;
}
.hero-in { position: relative; z-index: 1; }
.hero-text h1 { letter-spacing: -.4px; }

/* кикеры секций */
.kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--brown-l);
  margin-bottom: 6px;
}
.sec-head { align-items: flex-end; }
.sec-head h2 { letter-spacing: -.3px; }
.sec-head div { min-width: 0; }

/* табличные цифры */
.prod-price, .card-price, .cat-tile-n, .hero-stats b, .pg-btn { font-variant-numeric: tabular-nums; }

/* товарная страница: липкая инфо-колонка */
.prod-info { position: sticky; top: 92px; align-self: flex-start; }
.prod-price { font-size: 30px; }
.prod-avito { padding: 12px 26px; font-size: 14px; }

/* пагинация: акцент с тенью */
.pg-btn.pg-active { box-shadow: 0 4px 12px rgba(122, 82, 48, .30); }

/* футер */
.foot-links a, .foot-phone a { transition: color var(--speed) ease, padding-left var(--speed) ease; }
.foot-links a:hover { padding-left: 4px; }
.foot-col h4 { letter-spacing: 1.2px; }


/* Хлебные крошки (v12) */
.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 14px;
  font-size: 13px;
  color: var(--muted);
}
.crumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--speed) ease;
}
.crumbs a:hover { color: var(--brown); }
.crumbs-sep { color: #c9b89f; user-select: none; }
.crumbs-cur { color: var(--ink); font-weight: 600; }


/* Быстрый заказ (v13) */
.wg-order-btn {
  width: 100%;
  margin-top: 10px;
  padding: 9px 12px;
  background: transparent;
  border: 1px solid var(--brown);
  border-radius: var(--radius-s);
  color: var(--brown);
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--speed) ease, color var(--speed) ease;
}
.wg-order-btn:hover { background: var(--brown); color: #fff !important; }

.prod-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.prod-order { padding: 12px 24px; font-size: 14px; background: transparent; }

.wg-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 12, 9, .8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.wg-modal-overlay[hidden] { display: none; }
.wg-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  padding: 26px 26px 20px;
  animation: wg-modal-in .2s ease;
}
@keyframes wg-modal-in {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.wg-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  border-radius: 50%;
}
.wg-modal-close:hover { color: var(--ink); background: var(--beige); }
.wg-modal-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--brown-l);
  margin-bottom: 6px;
}
.wg-modal-product {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
  line-height: 1.35;
}
.wg-order-form label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
.wg-order-form input[type="text"],
.wg-order-form input[type="tel"],
.wg-order-form textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 9px 12px;
  border: 1px solid var(--beige-b);
  border-radius: var(--radius-s);
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  resize: vertical;
}
.wg-order-form input:focus,
.wg-order-form textarea:focus { outline: none; border-color: var(--brown); }
.wg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wg-modal-submit {
  width: 100%;
  padding: 12px;
  margin-top: 4px;
  background: var(--brown);
  color: #fff;
  border: none;
  border-radius: var(--radius-s);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--speed) ease;
}
.wg-modal-submit:hover { background: var(--brown-l); }
.wg-modal-submit:disabled { opacity: .6; cursor: wait; }
.wg-modal-note { font-size: 11px; color: var(--muted); margin: 10px 0 0; }
.wg-modal-msg { font-size: 13px; margin: 0 0 10px; padding: 8px 12px; border-radius: var(--radius-s); }
.wg-msg-ok { background: #e8f3e6; color: #1b7d46; }
.wg-msg-err { background: #fbeaea; color: #b03030; }


/* Панель быстрых фильтров над сеткой (v14) */
.quick-bar {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 12px 16px;
  background: var(--beige);
  border: 1px solid var(--beige-b);
  border-radius: 10px;
}
.qb-group { display: flex; align-items: center; gap: 10px; min-width: 0; }
.qb-group, .qb-group #f-brands { min-width: 0; }
.qb-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .4px;
  color: var(--brown);
  white-space: nowrap;
}
.qb-brands { flex: 1 1 100%; min-width: 0; }
.qb-brands .qb-chips {
  max-height: none;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
}
.qb-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qb-chips label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--beige-b);
  border-radius: 17px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--speed) ease, border-color var(--speed) ease, color var(--speed) ease;
  margin: 0;
}
.qb-chips label input { position: absolute; opacity: 0; pointer-events: none; }
.qb-chips label .cnt {
  background: var(--beige);
  border-radius: 9px;
  padding: 1px 7px;
  font-size: 11px;
  color: #6b5a48;
}
.qb-chips label:hover { border-color: var(--brown); }
.qb-chips label:has(input:checked) {
  background: var(--brown);
  border-color: var(--brown);
  color: #fff;
}
.qb-chips label:has(input:checked) .cnt {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}


/* Фикс распирания сетки контентом (v15) */
.cat-main { min-width: 0; }
.grid > .card { min-width: 0; overflow: hidden; }
.card-img img { max-width: 100%; }
.card-img { max-width: 100%; }
.prod-left, .prod-info, .prod-gallery { min-width: 0; }
.prod-gallery img { max-width: 100%; }


/* Бренд-группа: чипы скроллятся внутри, не распирая страницу (v16) */
.qb-brands, .qb-brands #f-brands { min-width: 0; }


/* Жёсткое ограничение чип-контейнера (v18; overflow снят в v20 -
   обрезал выпадающую панель брендов) */
.qb-group.qb-brands { max-width: 100%; }


/* Дропдаун брендов (v21) */
.qb-brands { position: relative; }
.qb-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: #fff;
  border: 1px solid var(--beige-b);
  border-radius: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color var(--speed) ease;
}
.qb-trigger:hover { border-color: var(--brown); }
.qb-trigger::after { content: "▾"; font-size: 11px; color: var(--muted); }
.qb-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  background: #fff;
  border: 1px solid var(--beige-b);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-m);
  padding: 12px;
  max-width: 560px;
  max-height: 320px;
  overflow: auto;
}
.qb-brands.open .qb-panel { display: flex; flex-wrap: wrap; gap: 8px; }
.qb-panel label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  background: var(--beige);
  border: 1px solid transparent;
  border-radius: 16px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--speed) ease, border-color var(--speed) ease;
}
.qb-panel label:hover { border-color: var(--brown); }
.qb-panel label input { position: absolute; opacity: 0; pointer-events: none; }
.qb-panel label:has(input:checked) { background: var(--brown); border-color: var(--brown); color: #fff; }
.qb-panel label:has(input:checked) .cnt { background: rgba(255, 255, 255, .22); color: #fff; }
.qb-panel .cnt {
  background: #fff;
  border-radius: 9px;
  padding: 1px 7px;
  font-size: 11px;
  color: #6b5a48;
}


/* Дропдаун брендов: поиск, состояния триггера (v19) */
.qb-panel-search {
  width: 100%;
  flex: 0 0 100%;
  padding: 8px 12px;
  border: 1px solid var(--beige-b);
  border-radius: var(--radius-s);
  font-size: 13px;
  font-family: inherit;
  color: var(--ink);
}
.qb-panel-search:focus { outline: none; border-color: var(--brown); }
.qb-panel-search::placeholder { color: var(--muted); }
.qb-panel-empty { flex: 0 0 100%; font-size: 13px; color: var(--muted); padding: 2px; }
.qb-panel label[hidden] { display: none; }
.qb-chips label.is-disabled,
.qb-panel label.is-disabled,
.f-checks label.is-disabled {
  opacity: .38;
  cursor: not-allowed;
  filter: grayscale(.35);
}
.qb-chips label.is-disabled:hover,
.qb-panel label.is-disabled:hover { border-color: var(--beige-b); }
.f-checks label.is-disabled .cnt { color: #aaa39a; }
.qb-trigger.has-sel {
  border-color: var(--brown);
  color: var(--brown);
  background: var(--beige);
}
@media (max-width: 900px) {
  .qb-panel { left: 0; max-width: min(560px, calc(100vw - 48px)); }
}


/* ============================================================
   Премиальный проход (v22)
   ============================================================ */

/* рука на интерактивных фотографиях */
.prod-main, .card-img, .p-thumb, .strip .card-img { cursor: pointer; }

/* шапка: глубже стекло */
.top {
  background: rgba(250, 246, 240, .86);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 1px 0 rgba(122, 82, 48, .10), 0 8px 24px rgba(55, 40, 25, .06);
}

/* карточки: радиус, мягкая тень в покое */
.grid .card, .strip .card { border-radius: 14px; box-shadow: var(--shadow-s); }
.card-img img { padding: 12px; }

/* панель быстрых фильтров и чипы */
.quick-bar {
  border-radius: 14px;
  background: linear-gradient(180deg, #f8f3ed, #f3ede4);
}
.qb-chips label, .qb-trigger { box-shadow: 0 1px 2px rgba(55, 40, 25, .05); }
.qb-chips label:has(input:checked),
.qb-panel label:has(input:checked) {
  background: linear-gradient(180deg, #8a5f38, var(--brown));
  box-shadow: 0 3px 10px rgba(122, 82, 48, .30);
}

/* дропдаун брендов: тяжёлая тень, появление */
.qb-panel {
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(55, 40, 25, .18), 0 4px 14px rgba(55, 40, 25, .08);
  padding: 14px;
  animation: qb-in .16s ease;
}
@keyframes qb-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* кнопки: градиент с внутренним бликом */
.btn-hero, .prod-avito, .f-reset, .wg-modal-submit {
  background: linear-gradient(180deg, var(--brown-l), var(--brown));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 2px 6px rgba(122, 82, 48, .20);
}
.btn-hero:hover, .prod-avito:hover, .f-reset:hover {
  background: linear-gradient(180deg, #946741, var(--brown-l));
}

/* типографика заголовков и цен */
.cat-title, .sec-head h2, .hero-text h1 { letter-spacing: -.6px; }
.card-price { font-weight: 800; letter-spacing: -.2px; }
.prod-price { letter-spacing: -.3px; }

/* футер и hero: тёплые градиенты */
.foot { background: linear-gradient(180deg, #f7f2ec, #f1e8dc); }
.hero {
  background:
    radial-gradient(1200px 420px at 18% 0%, rgba(255, 252, 247, .9) 0%, transparent 60%),
    linear-gradient(135deg, #f7f2ec 0%, #efe3d3 100%);
}

/* сайдбар фильтров: мягче */
.filters { border-radius: 14px; box-shadow: var(--shadow-s); }

/* Зависимые фильтры и мобильная компоновка (v23) */
.f-mobile-toggle { display: none; }
@media (max-width: 900px) {
  .top-in { gap: 12px; }
  .top-right { min-width: 0; }
  .top-phone { font-size: 15px; white-space: nowrap; }
  .top-note { display: block; max-width: 210px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .f-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 16px 0 12px;
    padding: 11px 14px;
    border: 1px solid var(--beige-b);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: 700 14px/1.2 inherit;
    box-shadow: var(--shadow-s);
  }
  .f-mobile-toggle::after { content: "+"; margin-left: auto; padding-left: 10px; font-size: 18px; color: var(--brown); }
  .f-mobile-toggle.is-open::after { content: "−"; }
  .f-active-count { margin-left: 8px; min-width: 22px; padding: 2px 7px; border-radius: 11px; background: var(--brown); color: #fff; font-size: 11px; text-align: center; }
  .filters { display: none; max-height: min(68vh, 640px); overflow: auto; }
  .filters.is-open { display: block; }
  .cat-top { gap: 12px; }
  .quick-bar { gap: 12px; padding: 12px; }
  .qb-group { width: 100%; align-items: flex-start; }
  .qb-name { width: 72px; padding-top: 7px; flex: 0 0 72px; }
  .qb-chips { min-width: 0; }
  .qb-brands { align-items: center; }
  .qb-panel { right: 0; left: 0; max-width: none; }
  .prod { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
  .prod-left, .prod-info { display: contents; }
  .prod-info h1 { order: 1; margin: 0 0 14px; font-size: 28px; line-height: 1.15; }
  .prod-gallery { order: 2; }
  .prod-price { order: 3; margin-top: 18px; }
  .prod-info > .prod-specs { order: 4; }
  .prod-params { order: 5; }
  .prod-btns { order: 6; }
  .prod-desc { order: 7; margin-top: 26px; }
}
@media (max-width: 560px) {
  .wrap { padding-right: 14px; padding-left: 14px; }
  .logo-img { height: 54px; }
  .top-note { max-width: 190px; }
  .cat-title { font-size: 30px; line-height: 1.08; }
  .cat-lead { font-size: 15px; line-height: 1.45; }
  .grid { grid-template-columns: 1fr; }
  .cat-top { align-items: stretch; flex-direction: column; }
  .cat-top select { width: 100%; min-height: 42px; }
  .qb-group { flex-direction: column; gap: 7px; }
  .qb-name { width: auto; flex-basis: auto; padding-top: 0; }
  .qb-chips { width: 100%; }
  .qb-chips label { padding: 7px 11px; }
  .qb-trigger { width: 100%; justify-content: space-between; }
  .card-title { min-height: 0; font-size: 16px; }
  .card-body { padding: 12px 14px 16px; }
}
/* Удобство выбора и навигации */
.quick-bar .qb-group[hidden] { display: none; }
.wg-product-dock { display: none; }
/* Выбор инструментов и локальная панель владельца. */
.wg-choice-bar,.wg-share-row { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:16px 0 20px; }
.wg-choice-bar button,.wg-share-row button,.wg-card-actions button,.wg-dialog-actions button,.wg-favorite-item button,.wg-compare-table button,.wg-owner-save,#wg-owner-open { font:inherit; min-height:44px; padding:10px 14px; border:1px solid #d9c5ad; border-radius:10px; background:#fffaf3; color:#674423; cursor:pointer; }
.wg-choice-bar button span { display:inline-block; min-width:22px; border-radius:12px; margin-left:5px; background:#7a5230; color:white; text-align:center; padding:0 5px; }
.wg-choice-bar #wg-choice-notice,.wg-share-row span { color:#726451; font-size:13px; }
.wg-card-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:12px 0; }
.wg-card-actions button { padding:8px 5px; font-size:13px; }
.wg-card-actions button[aria-pressed="true"] { background:#7a5230; color:#fff; border-color:#7a5230; }
.wg-card-specs { margin:10px 0; font-size:12px; }
.wg-card-specs div { display:flex; flex-direction:column; border-top:1px solid #ede3d6; padding:6px 0; }
.wg-card-specs span { color:#7d7469; }
.wg-card-specs b { font-weight:500; overflow-wrap:anywhere; line-height:1.4; }
.wg-stock { display:inline-block; font-size:12px; padding:4px 8px; border-radius:6px; background:#f1ece5; color:#665a4e; }
.wg-stock-available { color:#305d35; background:#e8f0e5; }
.wg-stock-reserved { color:#77581b; background:#fff0ce; }
.wg-stock-sold { color:#795a58; background:#f2e5e4; }
.wg-order-btn:disabled { opacity:.6; cursor:default; }
.wg-choice-dialog,.wg-owner-dialog { width:min(1040px,calc(100vw - 24px)); max-width:1040px; max-height:calc(100dvh - 24px); margin:auto; padding:28px; border:1px solid #ddcdb8; border-radius:18px; background:#fffdf9; color:#39362f; overflow:auto; box-sizing:border-box; }
.wg-choice-dialog::backdrop,.wg-owner-dialog::backdrop { background:#21180ebf; }
.wg-dialog-close { display:block; position:sticky; top:0; z-index:3; margin:0 0 4px auto; width:44px; height:44px; border:0; border-radius:50%; background:#f0e7dc; font-size:28px; cursor:pointer; color:#674423; }
.wg-choice-dialog h2,.wg-owner-dialog h2 { margin:0 0 12px; font-size:26px; }
.wg-dialog-lead { color:#776b5d; }
.wg-differences { display:flex; align-items:center; gap:8px; margin:16px 0; min-height:44px; }
.wg-compare-scroll { overflow:auto; max-width:100%; border:1px solid #e8dccb; border-radius:12px; }
.wg-compare-table { border-collapse:collapse; width:100%; min-width:580px; table-layout:fixed; }
.wg-compare-table th,.wg-compare-table td { width:190px; padding:14px; border-bottom:1px solid #e8dccb; border-right:1px solid #e8dccb; text-align:left; vertical-align:top; overflow-wrap:anywhere; font-size:14px; }
.wg-compare-table th:first-child { width:150px; background:#f8f2e9; }
.wg-compare-table thead th { background:#fffdf9; }
.wg-compare-table img { display:block; width:100%; height:110px; object-fit:contain; margin-bottom:10px; }
.wg-compare-table a { color:#674423; display:block; margin-bottom:10px; line-height:1.4; }
.wg-compare-table tr[hidden] { display:none; }
.wg-dialog-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:20px; }
.wg-dialog-actions [data-wg-list]:disabled { opacity:.45; cursor:default; }
.wg-dialog-actions .wg-order-btn { width:auto; margin:0; background:#7a5230; color:#fff; }
.wg-link-status input { width:100%; font:inherit; padding:10px; box-sizing:border-box; }
.wg-favorite-list { display:grid; gap:12px; }
.wg-favorite-item { display:grid; grid-template-columns:90px minmax(0,1fr) auto; align-items:center; gap:14px; padding:14px; border:1px solid #e8dccb; border-radius:12px; }
.wg-favorite-item img { width:90px; height:90px; object-fit:contain; }
.wg-favorite-item a,.wg-favorite-item b,.wg-favorite-item span { display:block; overflow-wrap:anywhere; margin-bottom:5px; }
.wg-favorite-item a { color:#674423; }
.wg-favorite-item span { font-size:13px; color:#7d7469; }
.wg-order-selected { max-height:160px; overflow:auto; font-size:14px; padding-left:22px; margin:0 0 16px; }
.wg-order-selected li { margin-bottom:7px; }
.wg-product-choice { margin:16px 0; }
.wg-field { display:flex; flex-direction:column; gap:7px; margin:12px 0; font-size:14px; }
.wg-field input,.wg-field select { min-width:0; max-width:100%; box-sizing:border-box; border:1px solid #d6c5ae; border-radius:8px; padding:10px; font:inherit; background:#fff; }
.wg-owner-fields { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.wg-owner-photos { display:flex; flex-wrap:wrap; gap:10px; }
.wg-owner-photos label { display:flex; flex-direction:column; align-items:center; gap:5px; border:1px solid #d6c5ae; padding:6px; border-radius:8px; }
.wg-owner-photos img { width:84px; height:84px; object-fit:contain; }
.wg-owner-dialog fieldset { border:1px solid #d6c5ae; border-radius:10px; margin:15px 0; }
.wg-owner-orders { margin-top:30px; border-top:1px solid #ddcdb8; }
.wg-owner-orders article { border:1px solid #ddcdb8; padding:14px; border-radius:10px; margin:12px 0; overflow-wrap:anywhere; }
.wg-owner-orders article small { display:block; margin:5px 0; color:#7d7469; }
.wg-owner-result { margin-top:14px; overflow-wrap:anywhere; }
@media(max-width:600px) {
  .wg-choice-dialog,.wg-owner-dialog { padding:16px; }
  .wg-choice-dialog h2,.wg-owner-dialog h2 { font-size:22px; }
  .wg-compare-table { min-width:480px; }
  .wg-compare-table th,.wg-compare-table td { width:165px; padding:10px; font-size:13px; }
  .wg-compare-table th:first-child { width:100px; position:sticky; left:0; z-index:1; background:#f8f2e9; }
  .wg-favorite-item { grid-template-columns:65px minmax(0,1fr); gap:10px; }
  .wg-favorite-item img { width:65px; height:75px; }
  .wg-favorite-item button { grid-column:2; justify-self:start; }
  .wg-owner-fields { grid-template-columns:1fr; gap:0; }
  .wg-owner-dialog input,.wg-owner-dialog select { font-size:16px; }
  .wg-choice-bar button { flex:1; padding:10px; font-size:14px; }
  .wg-dialog-actions { flex-direction:column; align-items:stretch; }
  .wg-dialog-actions button { width:100%; }
}
.wg-compare-tray { position:fixed; left:24px; bottom:20px; z-index:85; display:flex; flex-wrap:wrap; align-items:center; gap:14px; width:min(660px,calc(100vw - 180px)); box-sizing:border-box; padding:14px; border:1px solid #d8c5ac; border-radius:16px; background:#fffaf3; box-shadow:0 8px 32px #30271e33; }
.wg-compare-tray[hidden] { display:none; }
.wg-compare-preview { display:flex; gap:4px; flex-shrink:0; }
.wg-compare-preview img { width:36px; height:54px; object-fit:contain; border:1px solid #e5d9c9; border-radius:6px; background:#fff; }
.wg-compare-summary { flex:1; min-width:0; }
.wg-compare-summary b { display:block; font-size:15px; }
.wg-compare-summary span { display:block; margin-top:4px; font-size:12px; color:#726451; overflow-wrap:anywhere; }
.wg-compare-tray button { flex-shrink:0; min-height:46px; padding:10px 14px; border:0; border-radius:10px; background:#7a5230; color:#fff; font:inherit; font-size:14px; cursor:pointer; }
.wg-compare-tray button:focus-visible { outline:3px solid #c48d4d; outline-offset:3px; }
.wg-tray-tabs { display:flex; gap:8px; width:100%; }
.wg-tray-tabs[hidden] { display:none; }
.wg-compare-tray .wg-tray-tabs button { min-height:32px; padding:5px 10px; background:transparent; color:#7a5230; border:1px solid #d8c5ac; font-size:12px; }
.wg-compare-tray .wg-tray-tabs button[aria-pressed="true"] { background:#7a5230; color:#fff; }
body.wg-has-choice > .foot { padding-bottom:calc(var(--wg-tray-height,110px) + 44px); }
@media(max-width:900px) {
  .wg-compare-tray { left:10px; bottom:calc(var(--wg-dock-height,0px) + 10px + env(safe-area-inset-bottom)); width:calc(100vw - 20px); gap:10px; padding:10px; flex-wrap:wrap; }
  .wg-compare-preview img { width:28px; height:42px; }
  .wg-compare-tray .wg-tray-open { width:100%; }
  body.wg-has-choice > .foot { padding-bottom:calc(var(--wg-tray-height,140px) + var(--wg-dock-height,0px) + 30px + env(safe-area-inset-bottom)); }
  body.wg-has-choice:has(.wg-product-dock) { padding-bottom:0; }
}
.wg-product-dock .wg-dock-order { color: #fff !important; background: #7a5230; }
.wg-owner-panel { margin-top: 24px; padding-top: 20px; padding-bottom: 20px; border-top: 1px solid #d8cbbb; }
.wg-owner-panel > span { display: block; margin-bottom: 10px; font-weight: 700; }
.wg-owner-panel button { min-height: 48px; padding: 10px 18px; border-radius: 10px; border: 1px solid #7a5230; color: #fff; background: #7a5230; font: inherit; cursor: pointer; }
.wg-owner-panel button:disabled { opacity: .6; cursor: wait; }
.wg-owner-panel p { font-size: 14px; overflow-wrap: anywhere; }
.wg-category-story { width: 100%; box-sizing: border-box; margin: 48px 0 24px; padding: 26px; border: 1px solid #e5d9c9; border-radius: 16px; background: #f9f5ef; line-height: 1.7; }
.wg-category-story h2 { margin-top: 0; font-size: 26px; line-height: 1.25; }
.wg-category-story h3 { margin: 24px 0 8px; font-size: 20px; line-height: 1.3; }
.wg-purchase-note,.wg-info{width:100%;box-sizing:border-box;line-height:1.7;overflow-wrap:anywhere}
.wg-purchase-note{margin:32px 0;padding:24px;border:1px solid #e5d9c9;border-radius:16px;background:linear-gradient(120deg,#faf6ef,#f1e6d7)}
.wg-purchase-note h2{margin:0 0 12px;font-size:24px;line-height:1.25}
.wg-purchase-note a,.wg-info a{text-decoration:underline;text-underline-offset:3px}
.wg-info{margin:32px 0 48px}.wg-info h1{line-height:1.2}.wg-info h2{margin-top:28px}
.cat-pag .pg-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;min-width:40px;min-height:40px;box-sizing:border-box;vertical-align:middle}
.cat-pag .pg-btn[aria-disabled=true]{opacity:.45}.cat-pag svg{display:block;width:18px;height:18px}
.cat-pag .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media (max-width: 560px) { .wg-category-story { padding: 18px; } }
.wg-to-top { position: fixed; bottom: 26px; right: 26px; z-index: 80; min-height: 48px; padding: 12px 20px; border: 1px solid #7a5230; border-radius: 30px; background: #7a5230; color: #fff; box-shadow: 0 8px 25px #3b281b33; cursor: pointer; font: inherit; }
.wg-to-top[hidden] { display: none; }
.wg-search { margin: 20px 0 12px; max-width: 650px; }
.wg-search label { display: block; margin-bottom: 8px; font-weight: 700; }
.wg-search input { width: 100%; box-sizing: border-box; min-height: 48px; border: 1px solid #d8cbbb; border-radius: 12px; padding: 12px 16px; background: #fff; color: #30271e; font: inherit; }
.wg-active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.wg-active-filters:empty { display: none; }
.quick-bar:has(.wg-active-filters:not(:empty)) { position: sticky; top: var(--wg-header-height, 92px); z-index: 25; }
.quick-bar .wg-active-filters { flex-basis: 100%; width: 100%; margin: 0; padding: 8px 0 0; max-height: 25vh; overflow: auto; }
.wg-active-expand { display: none; }
@media (max-width: 900px) {
  .quick-bar, .quick-bar:has(.wg-active-filters:not(:empty)) { position: static; top: auto; z-index: auto; }
  .filters { position: static; top: auto; }
  .wg-active-filters:not(.is-expanded) > button:nth-child(n+3):not(.wg-active-reset):not(.wg-active-expand) { display: none; }
  .wg-active-filters .wg-active-expand { display: inline-block; }
  .wg-active-filters button { max-width: 100%; overflow-wrap: anywhere; }
}
.wg-active-filters button { padding: 10px 12px; min-height: 44px; background: #f4e9dd; border: 1px solid #d8cbbb; border-radius: 24px; color: #694628; font: inherit; cursor: pointer; }
.wg-show-results { display: none; }
.wg-search input:focus-visible, .wg-active-filters button:focus-visible, .wg-to-top:focus-visible { outline: 3px solid #c48d4d; outline-offset: 3px; }
@media (max-width: 900px) {
  .wg-to-top { display: none; }
  .wg-show-results { display: block; position: sticky; bottom: 0; width: 100%; min-height: 48px; border: 0; border-radius: 10px; color: #fff; background: #7a5230; font: inherit; cursor: pointer; margin-top: 12px; }
  .wg-modal { max-height: calc(100dvh - 24px); overflow-y: auto; }
  .wg-modal-overlay { padding: 12px; }
  .wg-modal input, .wg-modal textarea { font-size: 16px; }
  .wg-modal-close { min-width: 44px; min-height: 44px; }
  .qb-chips label, .qb-panel label, .f-checks label { min-height: 44px; box-sizing: border-box; align-items: center; }
  .prod-thumbs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; }
  .p-thumb { flex-shrink: 0; }
  .prod-btns { flex-direction: column-reverse; }
  .prod-btns .prod-order { color: #fff !important; background: #7a5230; }
  .prod-btns .prod-avito { text-align: center; }
  .wg-product-dock { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; bottom: 0; left: 0; right: 0; z-index: 80; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #e5d9c9; box-shadow: 0 -4px 20px #30271e11; }
  .wg-product-dock b { display: block; font-size: 20px; white-space: nowrap; }
  .wg-dock-label { color: #8c8a84; font-size: 12px; }
  .wg-product-dock .wg-order-btn { width: auto; min-height: 48px; margin: 0; padding: 10px 14px; font-size: 14px; background: #7a5230; color: #fff !important; }
  body:has(.wg-product-dock) { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .wg-to-top, .qb-panel { animation: none; transition: none; }
}

.wg-stock-nav{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}.wg-stock-nav a{padding:10px 14px;border:1px solid #ddd3c6;border-radius:12px;color:#654b30}.wg-archive-note{padding:16px;margin-bottom:18px;border:1px solid #dbc8ad;background:#f6eee3;border-radius:14px}.wg-historical-price{display:block;color:#776957;font-size:13px;margin:8px 0}.wg-stock-review{background:#f4ead9;color:#725120}


/* --- Наш магазин (/magazin) --- */
.shop-lead { font-size: 17px; line-height: 1.65; color: var(--ink, #2c2420); max-width: 900px; }
.shop-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 22px 0 28px; }
.shop-fact { display: flex; flex-direction: column; gap: 5px; padding: 16px 18px; background: rgba(122, 82, 48, 0.06); border-radius: 14px; font-size: 15px; }
.shop-fact-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: #8a7a6a; }
.shop-fact-note { color: #8a7a6a; font-size: 13px; }
.shop-fact-link { color: #7a5230; font-weight: 600; text-decoration: none; }
.shop-fact-link:hover { text-decoration: underline; }
.shop-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin: 26px 0; }
.shop-gallery figure { margin: 0; }
.shop-gallery img { width: 100%; height: 210px; object-fit: cover; border-radius: 14px; display: block; cursor: zoom-in; transition: transform 0.25s ease; }
.shop-gallery a:hover img { transform: scale(1.02); }
.shop-gallery figcaption { font-size: 13px; color: #8a7a6a; margin-top: 6px; }
.shop-text { max-width: 900px; line-height: 1.7; }
.shop-text p { margin: 0 0 14px; }
@media (max-width: 560px) { .shop-gallery { grid-template-columns: 1fr 1fr; gap: 10px; } .shop-gallery img { height: 140px; } }


/* --- Отзывы (Smart Widgets) на главной --- */
.shop-reviews { min-height: 140px; border-radius: 14px; }
.shop-reviews:empty::after { content: 'Загружаем отзывы...'; display: block; padding: 28px 0; text-align: center; color: #8a7a6a; font-size: 14px; }


/* --- Умный поиск: подсказки + строка в hero --- */
.wg-search { position: relative; }
.wg-search-suggest { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); background: #fffdf9; border: 1px solid rgba(122, 82, 48, 0.18); border-radius: 14px; box-shadow: 0 18px 44px rgba(44, 36, 32, 0.16); overflow: hidden; }
.sug-item { display: flex; align-items: center; gap: 12px; padding: 9px 14px; text-decoration: none; border-bottom: 1px solid rgba(122, 82, 48, 0.08); }
.sug-item:hover { background: rgba(122, 82, 48, 0.07); }
.sug-item img { width: 52px; height: 52px; object-fit: cover; border-radius: 9px; flex: none; }
.sug-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sug-title { color: #2c2420; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sug-meta { color: #8a7a6a; font-size: 12.5px; }
.sug-price { font-weight: 700; color: #7a5230; font-size: 14px; white-space: nowrap; }
.sug-all { display: block; width: 100%; padding: 11px 14px; border: 0; background: rgba(122, 82, 48, 0.06); color: #7a5230; font-weight: 600; font-size: 13.5px; text-align: left; cursor: pointer; }
.sug-all:hover { background: rgba(122, 82, 48, 0.12); }
.sug-empty { padding: 16px 14px; color: #8a7a6a; font-size: 13.5px; }
.hero-search { position: relative; display: flex; gap: 8px; margin-top: 18px; max-width: 580px; }
.hero-search input { flex: 1; min-width: 0; padding: 13px 16px; border-radius: 12px; border: 1px solid rgba(122, 82, 48, 0.25); background: #fffdf9; font-size: 15px; color: #2c2420; }
.hero-search input:focus { outline: 2px solid rgba(122, 82, 48, 0.45); outline-offset: -1px; }
.hero-search button { padding: 13px 22px; border-radius: 12px; border: 0; background: linear-gradient(135deg, #7a5230, #8a5f38); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; }
.hero-search button:hover { filter: brightness(1.07); }
@media (max-width: 560px) { .hero-search button { padding: 13px 14px; font-size: 13.5px; } }


/* --- Шапка: слоган у логотипа + умный поиск --- */
.logo-block { display: flex; align-items: center; gap: 12px; }
.logo-slogan { font-size: 12px; line-height: 1.45; color: var(--muted); letter-spacing: 0.02em; }
.top-search { position: relative; flex: 1 1 auto; max-width: 380px; margin: 0 20px; }
.top-search input { width: 100%; box-sizing: border-box; padding: 9px 14px; border-radius: 11px; border: 1px solid var(--beige-b); background: #fffdf9; font: inherit; font-size: 14px; color: var(--ink); }
.top-search input:focus { outline: 2px solid rgba(122, 82, 48, 0.4); outline-offset: -1px; }
.top-search-toggle { display: none; }
@media (max-width: 900px) {
  .top-in { flex-wrap: wrap; }
  .top-search { order: 3; flex-basis: 100%; max-width: none; margin: 10px 0 0; }
  .logo-slogan { display: none; }
  .top.search-ready .top-in { display: grid; grid-template-columns: auto 44px minmax(0, 1fr); gap: 8px; }
  .top.search-ready .top-search-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; line-height: 1; border: 1px solid var(--beige-b); border-radius: 11px; background: #fffdf9; color: var(--brown); cursor: pointer; }
  .top-search-toggle svg { display: block; width: 24px; height: 24px; }
  .top-search-toggle .top-search-close { display: none; }
  .top-search-toggle[aria-expanded="true"] .top-search-icon { display: none; }
  .top-search-toggle[aria-expanded="true"] .top-search-close { display: block; }
  .top-search-toggle:hover { background: #f1e8dc; }
  .top-search-toggle:focus-visible { outline: 3px solid #c48d4d; outline-offset: 2px; }
  .top.search-ready .top-search { display: none; grid-column: 1 / -1; margin: 0; }
  .top.search-ready.search-open .top-search { display: block; }
  .top.search-ready .top-search input { min-height: 44px; font-size: 16px; }
  .top.search-ready .top-search .wg-search-suggest { max-height: min(60vh, 440px); overflow-y: auto; overscroll-behavior: contain; }
  .top.search-ready .top-note { max-width: 100%; }
}


/* --- Скелетоны сетки + прогресс перехода в каталог --- */
.skel-card { pointer-events: none; }
.skel-img { width: 100%; aspect-ratio: 4 / 3; border-radius: 14px; margin-bottom: 10px;
  background: linear-gradient(100deg, #efe8df 40%, #f8f3ec 50%, #efe8df 60%);
  background-size: 200% 100%; animation: skel 1.1s ease-in-out infinite; }
.skel-line { height: 12px; border-radius: 6px; margin: 8px 0;
  background: linear-gradient(100deg, #efe8df 40%, #f8f3ec 50%, #efe8df 60%);
  background-size: 200% 100%; animation: skel 1.1s ease-in-out infinite; }
@keyframes skel { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.wg-nav-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300;
  background: linear-gradient(90deg, #7a5230, #c89b6a, #7a5230);
  background-size: 200% 100%; animation: wgbar 0.9s linear infinite; }
@keyframes wgbar { 0% { background-position: 0 0; } 100% { background-position: 200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .skel-img, .skel-line, .wg-nav-bar { animation: none; }
}


/* --- Проданные: фото ч/б, цвет плавно при наведении --- */
.card.is-sold .card-img img,
.sold-view .prod-gallery img { filter: grayscale(1); transition: filter 0.6s ease; }
.card.is-sold:hover .card-img img,
.sold-view .prod-gallery img:hover,
.sold-view .prod-main:hover { filter: grayscale(0); }
.sold-view .prod-main { filter: grayscale(1); transition: filter 0.6s ease; }
@media (prefers-reduced-motion: reduce) {
  .card.is-sold .card-img img, .sold-view .prod-gallery img, .sold-view .prod-main { transition: none; }
}

/* Спокойная визуальная иерархия магазина, 2026-10-08. */
.wg-photo-corner { position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center; padding-left: 6px; background: #eee5d9; color: #674a32; font-weight: 650; letter-spacing: .1px; clip-path: polygon(10px 0,100% 0,100% 100%,0 100%); pointer-events: none; line-height: 1; }
.card .wg-order-btn { background: #705039; color: #fff; border: 1px solid #705039; border-radius: 7px; min-height: 46px; font-weight: 600; }
.card .wg-order-btn:hover { background: #5e412e; border-color: #5e412e; }
.cat-title { font-size: clamp(28px, 3vw, 40px); font-weight: 650; letter-spacing: -.8px; margin: 28px 0 12px; }
.cat-lead { line-height: 1.65; margin-bottom: 28px; }
.cat-layout { gap: 28px; }
.cat-main { min-width: 0; }
.grid { gap: 24px; align-items: stretch; }
.grid .card, .strip .card { border-color: #e9e4dc; border-radius: 12px; box-shadow: 0 3px 14px rgba(45,36,25,.035); }
.card:hover { box-shadow: 0 8px 24px rgba(45,36,25,.08); }
.card-img { background: #f5f3ef; }
.card-img img { padding: 6px; }
.card:hover .card-img img { transform: none; }
.card-body { padding: 18px 18px 20px; gap: 10px; }
.card-title { font-size: 17px; line-height: 1.45; font-weight: 600; min-height: 50px; letter-spacing: -.15px; }
.card-price { font-size: 23px; font-weight: 650; margin-top: auto; padding-top: 8px; letter-spacing: -.4px; }
.card-meta { gap: 5px; }
.card-meta .chip { background: #f5f2ed; color: #655d51; font-size: 11px; border-radius: 5px; }
.card-meta .chip.used { background: #6b5039; color: #fff; }
.wg-card-specs { margin: 2px 0; font-size: 12px; }
.wg-card-specs div { border-top: 0; padding: 4px 0; gap: 2px; }
.wg-card-specs span { font-size: 11px; color: #746d63; }
.wg-card-specs b { line-height: 1.5; }
.wg-card-actions { margin: 6px 0; gap: 10px; }
.wg-card-actions button { background: transparent; border-color: #e5e0d8; border-radius: 7px; color: #675949; font-size: 12px; }
.filters { background: #faf8f4; border-color: #ece7df; border-radius: 12px; padding: 20px 16px; }
.filters .f-block { margin-bottom: 24px; }
.filters .f-name { font-size: 13px; letter-spacing: .1px; margin-bottom: 10px; }
.filters .f-checks label { padding: 5px 0; }
.filters .f-checks input { accent-color: #765338; }
.filters .f-checks .cnt { font-size: 11px; }
.quick-bar { background: #faf8f4; border: 1px solid #ece7df; padding: 18px; gap: 16px; box-shadow: none; }
.qb-chips label, .qb-trigger { box-shadow: none; }
.wg-active-filters button { border-radius: 7px; background: #eee5d9; border-color: #e3d6c5; font-size: 12px; padding: 8px 12px; }
.wg-share-row button { background: transparent; border-color: #e5e0d8; font-size: 13px; }
.prod-info h1 { font-size: clamp(26px, 3vw, 38px); line-height: 1.2; letter-spacing: -.6px; }
.prod-price { font-weight: 650; }
@media (max-width: 900px) {
  .cat-layout { gap: 18px; }
  .grid { gap: 18px; }
  .card-body { padding: 16px; }
  .card-title { min-height: 0; font-size: 17px; }
  .quick-bar { padding: 14px; }
}

/* Документы и отдельное согласие */
.wg-legal{width:100%;margin:32px 0 56px;overflow-wrap:anywhere;line-height:1.7}.wg-legal h1{line-height:1.2}.wg-legal h2{margin-top:28px}.wg-legal a,.wg-consent a,.wg-modal-note a{text-decoration:underline}.wg-legal-links{display:flex;flex-wrap:wrap;gap:12px 24px;padding-top:20px;padding-bottom:20px;line-height:1.5}.wg-order-form .wg-consent{display:flex;align-items:flex-start;gap:10px;font-size:14px}.wg-order-form .wg-consent input{width:18px;height:18px;flex:0 0 18px;margin-top:3px}.wg-consent span{min-width:0}

/* Уведомление первого посещения */
.wg-privacy-notice[hidden]{display:none}.wg-privacy-notice{position:fixed;bottom:0;left:0;right:0;z-index:900;background:#fffaf3;border-top:1px solid #d9c5ad;box-shadow:0 -5px 24px #34271918;max-height:75vh;overflow:auto;padding:18px 0;padding-bottom:max(18px,env(safe-area-inset-bottom))}.wg-privacy-inner{display:flex;align-items:center;gap:24px}.wg-privacy-copy{flex:1;min-width:0;font-size:14px;line-height:1.5}.wg-privacy-copy strong{font-size:18px}.wg-privacy-copy p{margin:6px 0 10px}.wg-privacy-copy a{text-decoration:underline}.wg-privacy-check{display:flex;align-items:flex-start;gap:9px}.wg-privacy-check input{width:18px;height:18px;flex:0 0 18px;margin-top:2px}.wg-privacy-actions{display:flex;flex-direction:column;gap:8px;max-width:240px}.wg-privacy-actions button{padding:10px 16px;border:1px solid #cdb89f;border-radius:8px;background:#fff;color:#62452d;cursor:pointer}.wg-privacy-actions [data-notice-confirm]{background:#775230;color:#fff}.wg-privacy-actions button:disabled{opacity:.5;cursor:default}@media(max-width:600px){.wg-privacy-inner{flex-direction:column;align-items:stretch;gap:12px}.wg-privacy-actions{max-width:none}.wg-privacy-copy{font-size:13px}}
.wg-visits { margin-top:28px; padding-top:24px; padding-bottom:18px; border-top:1px solid #dfd1c0; }
.wg-visits-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; margin-bottom:16px; }
.wg-visits-heading h3 { margin:5px 0 0; font-size:22px; line-height:1.25; color:#3e342b; }
.wg-visits-period { font-size:12px; color:#817262; }
.wg-visits-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; }
.wg-visits-card { min-width:0; padding:18px; border:1px solid #dfd1c0; border-radius:14px; background:#fffaf3; }
.wg-visits-card > span { display:block; font-size:13px; color:#786550; }
.wg-visits-card strong { display:block; margin:8px 0; font-size:30px; line-height:1.1; font-variant-numeric:tabular-nums; color:#674423; overflow-wrap:anywhere; }
.wg-visits-card small { display:block; font-size:11px; line-height:1.5; color:#827666; }
.wg-visits-today { background:#36594b; border-color:#36594b; }
.wg-visits-today > span,.wg-visits-today small { color:#dce9e1; }
.wg-visits-today strong { color:#fff; }
.wg-visits-bottom { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-top:12px; font-size:12px; color:#817262; }
.wg-visits-help { max-width:420px; }
.wg-visits-help summary { color:#785331; cursor:pointer; text-decoration:underline; }
.wg-visits-help p { margin:10px 0 0; line-height:1.6; }
@media(max-width:700px){.wg-visits-heading{align-items:flex-start;flex-direction:column;gap:8px}.wg-visits-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.wg-visits-card{padding:14px}.wg-visits-card:last-child{grid-column:1 / -1}.wg-visits-bottom{flex-direction:column}.wg-visits-help{max-width:none}}

/* Кнопки горизонтальных подборок */
.wg-strip-shell{position:relative}.wg-strip-arrow{position:absolute;top:42%;z-index:3;width:44px;height:44px;display:flex;align-items:center;justify-content:center;border:1px solid #d6c3af;border-radius:50%;background:#fffaf3;color:#674a32;box-shadow:0 3px 14px #33271826;cursor:pointer}.wg-strip-prev{left:-10px}.wg-strip-next{right:-10px}.wg-strip-arrow:disabled{opacity:.35;cursor:default}.wg-strip-arrow[hidden]{display:none}.wg-strip-arrow:focus-visible{outline:3px solid #916535;outline-offset:3px}@media(max-width:900px){.wg-strip-arrow{display:none}}

@media(max-width:600px){.sec-head:has(>.sec-all){flex-wrap:wrap;gap:8px 16px}.sec-head:has(>.sec-all)>div{flex-basis:100%}}
