/* Comfort Mebel — стили сайта.
   Палитра бренда: шоколад #442D1D и крем #FCECCF.
   Дополнительные тона: эспрессо, орех, карамель, мёд, латте, молочный;
   шалфей и терракота — для статусов «в наличии» и «скидка».
   Мотив — арки (как в мебельных салонах) и тонкие карамельные линии. */

:root {
  --espresso: #24170E;
  --choco: #442D1D;
  --choco-2: #573A26;
  --walnut: #6B4A33;
  --caramel: #B5814F;
  --caramel-deep: #8E5F33;
  --honey: #D9A877;
  --latte: #EAD3AE;
  --sand: #F3E0BF;
  --cream: #FCECCF;
  --milk: #FFF9EF;
  --white: #FFFFFF;
  --ink: #2B1C12;
  --muted: #7A604B;
  --line: rgba(68, 45, 29, .13);
  --line-strong: rgba(68, 45, 29, .24);
  --sage: #5F6B47;
  --terracotta: #A5532E;
  --danger: #9A3F2C;

  --radius: 22px;
  --shadow-sm: 0 4px 14px rgba(68, 45, 29, .07);
  --shadow: 0 14px 36px rgba(68, 45, 29, .10);
  --shadow-lg: 0 28px 70px rgba(36, 23, 14, .22);
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 150px; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
::selection { background: var(--choco); color: var(--cream); }
:focus-visible { outline: 2px solid var(--caramel); outline-offset: 3px; border-radius: 8px; }
.ic { flex: none; display: block; }

.container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 920px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 300; background: var(--choco); color: var(--cream); padding: 8px 14px; border-radius: 999px; }
.skip-link:focus { left: 8px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 14px/1 var(--sans); letter-spacing: .02em; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .12s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn .ic { transition: transform .2s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn-primary { background: var(--choco); color: var(--cream); }
.btn-primary:hover { background: var(--espresso); box-shadow: 0 10px 24px rgba(36, 23, 14, .22); }
.btn-outline { background: transparent; border-color: var(--choco); color: var(--choco); }
.btn-outline:hover { background: var(--choco); color: var(--cream); }
.btn-ghost { background: var(--sand); color: var(--choco); }
.btn-ghost:hover { background: var(--latte); }
.btn-light { background: var(--cream); color: var(--choco); }
.btn-light:hover { background: var(--white); }
.btn-outline-light { background: transparent; border-color: rgba(252, 236, 207, .55); color: var(--cream); }
.btn-outline-light:hover { border-color: var(--cream); background: rgba(252, 236, 207, .08); }
.btn-lg { height: 56px; padding: 0 32px; font-size: 15px; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; padding: 0;
  border-radius: 50%; background: transparent; color: var(--choco); transition: background-color .2s;
}
.icon-btn:hover { background: var(--sand); }

/* ---------- надписи ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--caramel-deep);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .8; }
.eyebrow-light { color: var(--honey); }
.section-title { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 3.2vw, 46px); line-height: 1.04; color: var(--choco); letter-spacing: -.005em; }
.section-title-lg { font-size: clamp(36px, 3.8vw, 56px); }
.page-title { font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 3.6vw, 52px); line-height: 1.04; color: var(--choco); }
.page-title-q { color: var(--caramel-deep); }

/* ---------- верхние полосы ---------- */
.announce { background: var(--caramel-deep); color: var(--cream); text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .02em; padding: 9px 16px; }
.topbar { background: var(--espresso); color: rgba(252, 236, 207, .72); font-size: 12.5px; }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 38px; }
.topbar-info, .topbar-links { display: flex; align-items: center; gap: 24px; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 8px; transition: color .15s; }
.topbar a:hover { color: var(--cream); }
.topbar .ic { color: var(--honey); }
.topbar-tag { letter-spacing: .12em; text-transform: uppercase; font-size: 11px; }

/* ---------- шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 236, 207, .9); backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid var(--line); transition: box-shadow .25s, background-color .25s;
}
.header.scrolled { background: rgba(255, 249, 239, .94); box-shadow: 0 10px 30px rgba(68, 45, 29, .08); }
.header-row { display: flex; align-items: center; gap: 22px; height: var(--header-h); }
.burger { display: none; margin-left: -10px; }

.logo { display: flex; align-items: center; gap: 13px; flex: none; }
.logo-mono { height: 50px; width: auto; }
.logo-text { display: flex; flex-direction: column; gap: 6px; }
.logo-word { height: 18px; width: auto; }
.logo-sub { font-size: 8.5px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: var(--caramel-deep); line-height: 1; white-space: nowrap; }

.catalog-menu { position: relative; flex: none; }
.catalog-btn { height: 48px; padding: 0 22px; }
.catalog-btn:hover .ic { transform: none; }
.catalog-panel {
  position: absolute; top: calc(100% + 14px); left: 0; z-index: 60;
  width: 340px; max-height: 70vh; overflow: auto; padding: 10px;
  background: var(--milk); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.catalog-menu.open .catalog-panel { opacity: 1; visibility: visible; transform: none; }
.catalog-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.catalog-panel-head .eyebrow { margin: 0; font-size: 10.5px; }
.catalog-panel-head .eyebrow::before { width: 18px; }
.catalog-panel a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; font-size: 14.5px; font-weight: 500; transition: background-color .15s, color .15s; }
.catalog-panel a:hover { background: var(--sand); color: var(--choco); }
.catalog-panel small { color: var(--muted); font-size: 12px; }
.catalog-panel .catalog-panel-all { padding: 0; font-size: 13px; font-weight: 600; color: var(--choco); gap: 6px; }
.catalog-panel .catalog-panel-all:hover { background: none; color: var(--caramel-deep); }

.search {
  position: relative; flex: 1; min-width: 0; display: flex; align-items: center; height: 48px;
  background: var(--milk); border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 4px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.search-ic { position: absolute; left: 18px; color: var(--muted); pointer-events: none; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; padding: 0 12px 0 44px; background: transparent; font-size: 14.5px; }
.search input::placeholder { color: #A68A70; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search button {
  flex: none; height: 100%; padding: 0 20px; border: 0; border-radius: 999px; background: var(--choco); color: var(--cream);
  font-size: 13px; font-weight: 600; letter-spacing: .02em; transition: background-color .2s;
}
.search button:hover { background: var(--espresso); }
.search:focus-within { border-color: var(--caramel); background: var(--white); box-shadow: 0 0 0 4px rgba(181, 129, 79, .16); }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.hact { display: flex; align-items: center; gap: 10px; color: var(--choco); }
.hact-ic {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); transition: background-color .2s, border-color .2s, color .2s;
}
.hact:hover .hact-ic { background: var(--choco); border-color: var(--choco); color: var(--cream); }
.hact-phone-text { display: flex; flex-direction: column; line-height: 1.2; }
.hact-phone-text b { font-size: 15px; font-weight: 700; white-space: nowrap; }
.hact-phone-text small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.fav-count {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; background: var(--caramel); color: var(--white); font-size: 10.5px; font-weight: 700; line-height: 19px; text-align: center;
  box-shadow: 0 0 0 2px var(--cream);
}

.catnav { border-top: 1px solid var(--line); }
.catnav-row { display: flex; gap: 34px; height: 48px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.catnav-row::-webkit-scrollbar { display: none; }
.catnav a {
  position: relative; display: flex; align-items: center; height: 100%;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; transition: color .15s;
}
.catnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--caramel); transform: scaleX(0); transition: transform .25s var(--ease); }
.catnav a:hover, .catnav a.active { color: var(--choco); }
.catnav a:hover::after, .catnav a.active::after { transform: scaleX(1); }

/* ---------- общие секции ---------- */
.section { padding: 88px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-link { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 4px; font-size: 14px; font-weight: 600; color: var(--choco); white-space: nowrap; border-bottom: 1px solid var(--caramel); transition: color .15s, gap .2s; }
.section-link:hover { color: var(--caramel-deep); gap: 12px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; color: var(--muted); margin: 26px 0 16px; }
.crumbs a:hover { color: var(--choco); }
.crumbs span:not([aria-current]) { color: var(--caramel); }
.crumbs [aria-current] { color: var(--choco); font-weight: 500; }

.rich { font-size: 15px; line-height: 1.75; color: var(--ink); }
.rich p + p, .rich p + ul, .rich ul + p { margin-top: 14px; }
.rich ul { margin: 0; padding-left: 20px; }
.rich li + li { margin-top: 4px; }
.rich li::marker { color: var(--caramel); }
.rich h3 { font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--choco); margin: 28px 0 10px; }
.rich a { color: var(--caramel-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- главный экран ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--cream);
  background:
    radial-gradient(900px 520px at 78% 30%, rgba(181, 129, 79, .22), transparent 70%),
    radial-gradient(700px 500px at 0% 100%, rgba(107, 74, 51, .45), transparent 70%),
    var(--choco);
}
.hero::before {
  content: ""; position: absolute; right: -140px; top: -120px; width: 640px; height: 640px; border-radius: 50%;
  border: 1px solid rgba(217, 168, 119, .18); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: -120px; bottom: -220px; width: 520px; height: 520px;
  background: url("../img/monogram-white.png") no-repeat center / contain; opacity: .045; pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; min-height: 640px; padding-top: 72px; padding-bottom: 88px; }
.hero-text { max-width: 620px; }
.hero-title { font-family: var(--serif); font-weight: 600; font-size: clamp(48px, 6vw, 92px); line-height: .95; letter-spacing: -.015em; color: var(--cream); }
.hero-sub { margin-top: 26px; padding-left: 18px; border-left: 2px solid var(--caramel); font-size: 13px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--honey); line-height: 1.6; }
.hero-desc { margin-top: 24px; font-size: 16.5px; line-height: 1.7; color: rgba(252, 236, 207, .78); max-width: 500px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.hero-visual { position: relative; height: 540px; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-arch {
  position: absolute; right: 6%; top: 0; width: 56%; height: 100%;
  border-radius: 999px 999px 26px 26px; overflow: hidden; background: var(--choco-2);
  box-shadow: 0 30px 80px rgba(20, 12, 7, .45); outline: 1px solid rgba(217, 168, 119, .35); outline-offset: 10px;
}
.hero-arch-sm {
  position: absolute; left: 2%; top: 14%; width: 34%; height: 52%;
  border-radius: 999px 999px 20px 20px; overflow: hidden; border: 6px solid var(--choco);
  box-shadow: 0 20px 50px rgba(20, 12, 7, .4);
}
.hero-round {
  position: absolute; left: 20%; bottom: 0; width: 30%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 6px solid var(--choco); box-shadow: 0 20px 50px rgba(20, 12, 7, .4);
}
.hero-visual-photo .hero-arch { right: 0; width: 82%; }
.hero-seal {
  position: absolute; right: 0; bottom: 8%; width: 132px; height: 132px; border-radius: 50%;
  display: grid; place-items: center; background: var(--cream); box-shadow: 0 16px 40px rgba(20, 12, 7, .4);
}
.hero-seal img { width: 46px; height: auto; }
.hero-seal-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: seal-spin 26s linear infinite; }
.hero-seal-ring text { font: 600 9.6px var(--sans); letter-spacing: .2em; fill: var(--choco); }
@keyframes seal-spin { to { transform: rotate(360deg); } }

/* ---------- преимущества ---------- */
.adv-band { background: var(--milk); border-bottom: 1px solid var(--line); }
.adv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.adv { display: flex; gap: 16px; align-items: flex-start; padding: 34px 28px; }
.adv + .adv { border-left: 1px solid var(--line); }
.adv-ic { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--caramel); color: var(--caramel-deep); background: var(--cream); }
.adv h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.15; color: var(--choco); margin: 2px 0 6px; }
.adv p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ---------- категории ---------- */
.section-cats { padding-bottom: 24px; }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px 20px; justify-items: center; }
.cat-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; width: 100%; max-width: 260px; }
.cat-tile-img {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 5; margin-bottom: 14px;
  border-radius: 999px 999px 18px 18px; overflow: hidden; background: var(--sand);
  outline: 1px solid var(--line-strong); outline-offset: 6px; transition: outline-color .25s, box-shadow .25s;
}
.cat-tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat-tile-img .cat-tile-mono { width: 44%; height: auto; object-fit: contain; opacity: .35; }
.cat-tile:hover .cat-tile-img { outline-color: var(--caramel); box-shadow: var(--shadow); }
.cat-tile:hover .cat-tile-img img:not(.cat-tile-mono) { transform: scale(1.06); }
.cat-tile-name { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.1; color: var(--choco); }
.cat-tile-count { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------- каталог ---------- */
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.results-count { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.sort { position: relative; }
.sort-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px;
  background: var(--milk); border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--choco);
  transition: border-color .2s;
}
.sort-btn:hover { border-color: var(--caramel); }
.sort-chev { transition: transform .2s; }
.sort.open .sort-chev { transform: rotate(180deg); }
.sort-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 240px; padding: 8px;
  background: var(--milk); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
}
.sort.open .sort-menu { display: block; }
.sort-menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 12px; font-size: 14px; }
.sort-menu a:hover { background: var(--sand); }
.sort-menu a.active { font-weight: 700; color: var(--choco); }
.sort-menu a.active .ic { color: var(--caramel); }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.catalog-results { min-width: 0; transition: opacity .2s; }
.catalog-results.loading { opacity: .45; pointer-events: none; }
.more-wrap { display: flex; justify-content: center; margin-top: 48px; }
.btn-more { min-width: 280px; }

/* карточка товара */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card-media {
  position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: var(--white);
  box-shadow: 0 0 0 1px var(--line); transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.card:hover .card-media { box-shadow: 0 0 0 1px var(--line), var(--shadow); transform: translateY(-3px); }
.card-track {
  display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
}
.card-track::-webkit-scrollbar { display: none; }
.card-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: start; background: var(--white); }
.fit-cover .card-track img { object-fit: cover; }
.noimg { flex: 0 0 100%; display: grid; place-items: center; background: linear-gradient(160deg, var(--sand), var(--latte)); }
.card-track .noimg img { flex: none; width: 30%; height: auto; background: none; opacity: .3; }
.card-dots { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; gap: 4px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.card-dots i { flex: 1; height: 3px; border-radius: 2px; background: rgba(68, 45, 29, .16); transition: background-color .15s; }
.card-dots i.on { background: var(--choco); }
.card:hover .card-dots { opacity: 1; }
.card-badges { position: absolute; top: 14px; left: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; }
.badge { display: inline-block; padding: 6px 11px; border-radius: 999px; font-size: 10.5px; font-weight: 700; line-height: 1; letter-spacing: .1em; text-transform: uppercase; }
.badge-hit { background: var(--choco); color: var(--cream); }
.badge-new { background: var(--cream); color: var(--caramel-deep); box-shadow: inset 0 0 0 1px var(--caramel); }
.badge-sale { background: var(--terracotta); color: var(--white); }
.fav-btn {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 249, 239, .9); color: var(--choco); box-shadow: var(--shadow-sm);
  transition: color .15s, transform .15s, background-color .15s;
}
.fav-btn:hover { background: var(--choco); color: var(--cream); }
.fav-btn:active { transform: scale(.9); }
[data-fav].active .ic { fill: var(--terracotta); stroke: var(--terracotta); }
.fav-btn.active:hover .ic { fill: var(--cream); stroke: var(--cream); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 4px 0; flex: 1; }
.card-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; order: 2; }
.price { font-size: 19px; font-weight: 700; color: var(--choco); letter-spacing: -.01em; white-space: nowrap; }
.price-sale { color: var(--terracotta); }
.price-request { font-size: 15px; font-weight: 600; }
.price-old { font-size: 13px; color: var(--muted); text-decoration: line-through; white-space: nowrap; }
.price-disc { font-size: 11.5px; font-weight: 700; color: var(--terracotta); background: rgba(165, 83, 46, .1); padding: 3px 7px; border-radius: 999px; white-space: nowrap; }
.card-title {
  order: 1; font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.15; color: var(--choco); min-height: 2.3em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s;
}
.card-title:hover { color: var(--caramel-deep); }
.card-meta { order: 3; font-size: 12px; }
.avail { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; letter-spacing: .02em; }
.avail::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); }
.avail-in_stock { color: var(--sage); }
.avail-order { color: var(--caramel-deep); }
.avail-out { color: var(--muted); }
.card-btn { margin-top: 16px; height: 44px; width: 100%; font-size: 13.5px; }
.card-btn.btn-primary { background: transparent; border-color: var(--choco); color: var(--choco); }
.card-btn.btn-primary:hover { background: var(--choco); color: var(--cream); box-shadow: none; }
.card-btn.btn-outline { border-color: var(--line-strong); color: var(--muted); }
.card-btn.btn-outline:hover { border-color: var(--choco); background: transparent; color: var(--choco); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 28px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px;
  background: var(--milk); border: 1px solid var(--line-strong); font-size: 13.5px; font-weight: 600; color: var(--choco); transition: all .15s;
}
.chip:hover { border-color: var(--caramel); }
.chip.active { background: var(--choco); border-color: var(--choco); color: var(--cream); }

.page-catalog main, .page-favorites main { padding-bottom: 40px; }
.catalog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.filters-toggle { display: none; }
.catalog-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 36px; align-items: start; padding-bottom: 72px; }
.catalog-layout .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.filters { position: sticky; top: 150px; background: var(--milk); border: 1px solid var(--line); border-radius: 26px; padding: 24px; }
.filters-head { display: none; }
.filters fieldset { border: 0; padding: 0 0 20px; margin: 0 0 20px; border-bottom: 1px solid var(--line); }
.filters legend { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--choco); margin-bottom: 12px; padding: 0; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-range label { position: relative; }
.price-range span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--muted); pointer-events: none; }
.price-range input {
  width: 100%; height: 44px; padding: 0 8px 0 36px; border: 1.5px solid var(--line-strong); border-radius: 999px;
  background: var(--white); font-size: 14px; outline: 0; -moz-appearance: textfield;
}
.price-range input::-webkit-outer-spin-button, .price-range input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.price-range input:focus { border-color: var(--caramel); }
.filters .check + .check { margin-top: 12px; }
.filters .btn + .btn { margin-top: 8px; }

.empty { text-align: center; padding: 72px 24px; background: var(--milk); border: 1px solid var(--line); border-radius: 30px; }
.empty img { margin: 0 auto 20px; opacity: .9; }
.empty h3 { font-family: var(--serif); font-size: 34px; font-weight: 600; color: var(--choco); margin-bottom: 10px; }
.empty p { color: var(--muted); max-width: 460px; margin: 0 auto 26px; }
.empty-404 { margin: 40px 0 72px; }
.empty-404 .page-title { margin-bottom: 10px; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.page-favorites .grid, .page-favorites .empty { margin: 24px 0 72px; }

/* ---------- о компании ---------- */
.section-about { background: var(--milk); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.about-text .section-title { margin-bottom: 24px; }
.about-text .rich { font-size: 16px; color: var(--muted); }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.about-visual { position: relative; height: 560px; }
.about-visual img { width: 100%; height: 100%; object-fit: cover; }
.about-arch {
  position: absolute; left: 10%; top: 0; width: 56%; height: 88%;
  border-radius: 999px 999px 24px 24px; overflow: hidden; outline: 1px solid var(--caramel); outline-offset: 10px;
}
.about-logo {
  position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1.15; border-radius: 26px;
  display: grid; place-items: center; padding: 12%; box-shadow: var(--shadow-lg);
  background: radial-gradient(circle at 30% 20%, var(--choco-2), var(--choco) 60%, var(--espresso));
}
.about-logo img { width: 100%; height: auto; object-fit: contain; }
.about-round {
  position: absolute; left: 0; bottom: 6%; width: 24%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 6px solid var(--milk); box-shadow: var(--shadow);
}

/* ---------- контакты ---------- */
.contacts-card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px;
  background: radial-gradient(700px 400px at 0% 0%, rgba(181, 129, 79, .2), transparent 70%), var(--choco);
  color: var(--cream); border-radius: 36px; padding: 64px;
}
.contacts-card::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  border: 1px solid rgba(217, 168, 119, .2); pointer-events: none;
}
.contacts-info { position: relative; z-index: 1; }
.contacts-info .section-title { color: var(--cream); margin-bottom: 16px; }
.contacts-lead { color: rgba(252, 236, 207, .72); font-size: 15.5px; max-width: 460px; margin-bottom: 34px; }
.contact-list { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 28px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list li > .ic { flex: none; width: 46px; height: 46px; padding: 12px; border-radius: 50%; border: 1px solid rgba(217, 168, 119, .5); color: var(--honey); }
.contact-list small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--honey); margin-bottom: 4px; }
.contact-list a, .contact-list span { display: block; font-size: 15.5px; font-weight: 600; color: var(--cream); word-break: break-word; }
.contact-list a:hover { color: var(--honey); }
.contacts-form { position: relative; z-index: 1; background: var(--milk); color: var(--ink); border-radius: 28px; padding: 36px; box-shadow: var(--shadow-lg); }
.contacts-form h3 { font-family: var(--serif); font-size: 34px; font-weight: 600; color: var(--choco); }
.contacts-form > p { color: var(--muted); font-size: 14px; margin: 6px 0 22px; }
.inline-success { display: flex; gap: 14px; align-items: center; padding: 20px; background: var(--sand); border-radius: 18px; color: var(--sage); }
.inline-success b { color: var(--choco); }

/* ---------- мессенджеры ---------- */
.msgr { display: flex; flex-wrap: wrap; gap: 8px; }
.msgr-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px;
  background: var(--milk); border: 1px solid var(--line-strong); font-size: 13px; font-weight: 600; color: var(--choco); transition: border-color .15s, background-color .15s;
}
.msgr-btn:hover { border-color: var(--caramel); }
.msgr-btn b { font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.msgr-wa .ic { color: #1FA855; }
.msgr-tg .ic { color: #2A9FD8; }
.msgr-max b { color: #5B4BE0; }
.msgr-vk b { color: #0077FF; }
.msgr-phone .ic { color: var(--caramel-deep); }
.msgr-compact .msgr-btn { width: 42px; padding: 0; justify-content: center; }
.msgr-compact .msgr-btn span { display: none; }
.msgr-footer { margin-top: 20px; }
.msgr-footer .msgr-btn { background: rgba(252, 236, 207, .06); border-color: rgba(252, 236, 207, .18); color: var(--cream); }
.msgr-footer .msgr-btn:hover { background: rgba(252, 236, 207, .12); border-color: var(--honey); }
.msgr-footer .msgr-btn .ic, .msgr-footer .msgr-btn b { color: var(--honey); }

/* ---------- подвал ---------- */
.footer { background: var(--espresso); color: rgba(252, 236, 207, .7); padding: 72px 0 28px; margin-top: 88px; font-size: 14px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(252, 236, 207, .12); }
.footer-logo img { width: 230px; height: auto; }
.footer-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; text-align: right; }
.footer-cta-title { font-family: var(--serif); font-size: clamp(26px, 2.4vw, 34px); font-weight: 600; line-height: 1.1; color: var(--cream); }
.footer-cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 14px 24px; }
.footer-phone { font-size: 22px; font-weight: 700; color: var(--cream); letter-spacing: .01em; }
.footer-phone:hover { color: var(--honey); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-top: 48px; }
.footer-brand p { max-width: 300px; line-height: 1.65; }
.footer h4 { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--honey); margin-bottom: 18px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-col a { transition: color .15s; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(252, 236, 207, .12); font-size: 12.5px; color: rgba(252, 236, 207, .5); }
.footer-legal { white-space: pre-line; }

/* ---------- формы ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--walnut); }
.field > span i { font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); }
.field input, .field textarea {
  width: 100%; border: 1.5px solid var(--line-strong); border-radius: 16px; background: var(--white); padding: 12px 18px;
  font-size: 15px; outline: 0; transition: border-color .15s, box-shadow .15s;
}
.field input { height: 52px; border-radius: 999px; }
.field textarea { resize: vertical; min-height: 70px; }
.field input::placeholder, .field textarea::placeholder { color: #B09A84; }
.field input:focus, .field textarea:focus { border-color: var(--caramel); box-shadow: 0 0 0 4px rgba(181, 129, 79, .15); }
.field input.invalid { border-color: var(--danger); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.45; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--choco); }
.check a { text-decoration: underline; text-underline-offset: 2px; color: var(--caramel-deep); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #F6E1D6; color: var(--danger); border-radius: 14px; padding: 11px 16px; font-size: 13.5px; }
.form-note { font-size: 12.5px; color: var(--muted); text-align: center; }

/* ---------- модальное окно ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(36, 23, 14, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s; }
.modal-dialog {
  position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: var(--milk); border-radius: 32px; padding: 40px 36px 30px; box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--caramel);
  transform: translateY(18px) scale(.98); opacity: 0; transition: transform .28s var(--ease), opacity .25s;
}
.modal.open .modal-backdrop { opacity: 1; }
.modal.open .modal-dialog { transform: none; opacity: 1; }
.modal-close { position: absolute; top: 14px; right: 14px; }
.modal-title { font-family: var(--serif); font-size: 36px; font-weight: 600; line-height: 1.02; color: var(--choco); padding-right: 36px; }
.modal-lead { color: var(--muted); font-size: 14px; margin: 10px 0 22px; }
.order-product { display: flex; gap: 14px; align-items: center; background: var(--sand); border-radius: 18px; padding: 10px; margin: 14px 0 20px; }
.order-product img { width: 64px; height: 64px; flex: none; object-fit: contain; background: var(--white); border-radius: 12px; }
.order-product-name { font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.2; color: var(--choco); }
.order-product-price { font-size: 15px; font-weight: 700; margin-top: 2px; }
.order-alt { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; }
.order-alt > span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.order-alt-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.order-alt-row .msgr { justify-content: center; }
.order-success { text-align: center; padding: 18px 0 4px; }
.order-success .modal-title { padding: 0; }
.order-success p { color: var(--muted); margin: 10px 0 24px; }
.order-success-ic { width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 50%; background: var(--sage); color: var(--white); display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(95, 107, 71, .15); }

/* ---------- мобильное меню ---------- */
.drawer { position: fixed; inset: 0; z-index: 110; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(36, 23, 14, .5); opacity: 0; transition: opacity .25s; }
.drawer-panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(380px, 88vw); background: var(--cream);
  overflow-y: auto; padding: 16px 16px 30px; transform: translateX(-100%); transition: transform .3s var(--ease);
}
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding: 4px 4px 14px; border-bottom: 1px solid var(--line); }
.drawer-logo { width: 128px; height: auto; }
.drawer-nav { display: flex; flex-direction: column; background: var(--milk); border: 1px solid var(--line); border-radius: 22px; padding: 6px; margin-bottom: 12px; }
.drawer-nav a { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; border-radius: 14px; font-size: 15px; }
.drawer-nav a b { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--choco); }
.drawer-nav a:hover { background: var(--sand); }
.drawer-nav small { color: var(--muted); }
.drawer-contacts { display: flex; flex-direction: column; gap: 10px; padding: 8px 4px; font-size: 14px; color: var(--muted); }
.drawer-phone { font-size: 22px; font-weight: 700; color: var(--choco); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translateX(-50%);
  background: var(--choco); color: var(--cream); padding: 13px 22px; border-radius: 999px; font-size: 14px; box-shadow: var(--shadow-lg);
  max-width: calc(100% - 32px);
}

/* ---------- страница товара ---------- */
.pp-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) 350px;
  grid-template-areas: "gallery info buy"; gap: 40px; align-items: start; margin-bottom: 24px;
}
.pp-gallery { grid-area: gallery; display: flex; gap: 14px; min-width: 0; }
.pp-info { grid-area: info; min-width: 0; }
.pp-buy { grid-area: buy; position: sticky; top: 150px; }
.pp-thumbs { flex: none; display: flex; flex-direction: column; gap: 10px; width: 76px; max-height: 640px; overflow-y: auto; scrollbar-width: none; }
.pp-thumbs::-webkit-scrollbar { display: none; }
.pp-thumb { flex: none; width: 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 16px; background: var(--white); overflow: hidden; transition: border-color .15s; box-shadow: 0 0 0 1px var(--line); }
.pp-thumb img { width: 100%; height: 100%; object-fit: contain; }
.fit-cover .pp-thumb img { object-fit: cover; }
.pp-thumb:hover { border-color: var(--latte); }
.pp-thumb.active { border-color: var(--caramel); }
.pp-main { position: relative; flex: 1; min-width: 0; aspect-ratio: 1; background: var(--white); border-radius: 30px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.pp-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.pp-track::-webkit-scrollbar { display: none; }
.pp-slide { flex: 0 0 100%; height: 100%; padding: 0; border: 0; background: var(--white); scroll-snap-align: start; cursor: zoom-in; }
.pp-slide img { width: 100%; height: 100%; object-fit: contain; }
.pp-noimg { display: grid; place-items: center; background: linear-gradient(160deg, var(--sand), var(--latte)); cursor: default; }
.pp-noimg img { width: 28%; height: auto; opacity: .4; }
.pp-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 249, 239, .94); color: var(--choco); box-shadow: var(--shadow);
  opacity: 0; transition: opacity .2s, background-color .2s, color .2s;
}
.pp-arrow:hover { background: var(--choco); color: var(--cream); }
.pp-main:hover .pp-arrow { opacity: 1; }
.pp-arrow:disabled { opacity: 0 !important; pointer-events: none; }
.pp-prev { left: 16px; }
.pp-next { right: 16px; }
.pp-counter { position: absolute; right: 16px; bottom: 16px; background: rgba(68, 45, 29, .72); color: var(--cream); font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.pp-dots { display: none; position: absolute; left: 0; right: 0; bottom: 16px; justify-content: center; gap: 6px; }
.pp-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(68, 45, 29, .2); }
.pp-dots i.on { background: var(--choco); }
.pp-badges { top: 18px; left: 18px; }
.pp-title { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 2.8vw, 44px); line-height: 1.04; color: var(--choco); }
.pp-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--muted); margin: 16px 0 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.pp-meta b { color: var(--choco); font-weight: 600; }
.pp-meta a { color: var(--caramel-deep); font-weight: 600; }
.pp-h { font-size: 11.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--caramel-deep); margin-bottom: 16px; }
.pp-about { margin-bottom: 16px; }
.link-more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--choco); margin-top: 8px; border-bottom: 1px solid var(--caramel); padding-bottom: 2px; }
.link-more:hover { color: var(--caramel-deep); }

.specs { margin: 0; }
.specs > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; font-size: 14px; line-height: 1.45; margin-bottom: 12px; break-inside: avoid; }
.specs dt { display: flex; align-items: baseline; color: var(--muted); min-width: 0; }
.specs dt span { flex: 0 1 auto; }
.specs dt::after { content: ""; flex: 1 1 12px; min-width: 12px; margin-left: 8px; border-bottom: 1px dotted var(--caramel); opacity: .6; transform: translateY(-4px); }
.specs dd { margin: 0; color: var(--choco); font-weight: 500; word-break: break-word; }
.specs-full { column-count: 2; column-gap: 64px; }

.buy-card {
  display: flex; flex-direction: column; gap: 16px; background: var(--milk); border: 1px solid var(--line);
  border-radius: 30px; padding: 30px; box-shadow: var(--shadow); border-top: 4px solid var(--caramel);
}
.price-xl { font-size: 36px; letter-spacing: -.02em; }
.buy-old { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.buy-old .price-old { font-size: 15px; }
.buy-avail { font-size: 13.5px; }
.fav-wide { gap: 8px; }
.fav-wide:hover .ic { transform: none; }
.buy-help { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; }
.buy-help b { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--choco); }
.buy-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; color: var(--choco); }
.buy-phone:hover { color: var(--caramel-deep); }
.buy-phone .ic { color: var(--caramel-deep); }
.buy-hours { color: var(--muted); font-size: 12.5px; }

.pp-sections { max-width: 980px; margin-top: 32px; }
.pp-section { padding: 36px 0; border-top: 1px solid var(--line); }
.pp-section-title { font-family: var(--serif); font-weight: 600; font-size: 36px; color: var(--choco); margin-bottom: 20px; }
.pp-delivery-row { display: flex; gap: 20px; align-items: flex-start; background: var(--milk); border: 1px solid var(--line); border-radius: 24px; padding: 26px; }
.section-recs { padding-top: 40px; padding-bottom: 0; }
.grid-recs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mbar { display: none; }

.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(30, 19, 12, .97); }
.lb-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide { flex: 0 0 100%; height: 100%; display: grid; place-items: center; padding: 56px 72px; scroll-snap-align: start; }
.lb-slide img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lb-close { position: absolute; top: 14px; right: 14px; z-index: 2; color: var(--cream); width: 50px; height: 50px; }
.lb-close:hover { background: rgba(252, 236, 207, .1); }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(252, 236, 207, .1); color: var(--cream); }
.lb-arrow:hover { background: rgba(252, 236, 207, .2); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-counter { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); color: var(--cream); font-size: 14px; opacity: .8; }

.doc { background: var(--milk); border: 1px solid var(--line); border-radius: 30px; padding: 52px; margin-bottom: 72px; white-space: normal; }

/* ---------- адаптив ---------- */
@media (max-width: 1279px) {
  .grid, .grid-recs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .catalog-layout .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pp-grid { grid-template-columns: minmax(0, 1fr) 350px; grid-template-areas: "gallery buy" "info buy"; column-gap: 36px; row-gap: 32px; }
  .hact-phone-text { display: none; }
  .header-row { gap: 16px; }
  .hero-grid { gap: 32px; }
}

@media (max-width: 1099px) {
  .grid, .grid-recs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-layout .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adv:nth-child(3) { border-left: 0; }
  .adv:nth-child(n+3) { border-top: 1px solid var(--line); }
  .about-grid { gap: 48px; }
  .contacts-card { grid-template-columns: 1fr; padding: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .callback-btn { display: none; }
  .hero-grid { grid-template-columns: 1fr 1fr; min-height: 0; }
  .hero-visual { height: 460px; }
}

@media (max-width: 959px) {
  :root { --header-h: 66px; }
  html { scroll-padding-top: 140px; }
  .container { padding: 0 24px; }
  .topbar { display: none; }
  .burger { display: inline-grid; }
  .catalog-menu, .catnav, .hact-phone-text { display: none; }
  .header-row { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 12px; gap: 10px 12px; }
  .logo { margin-right: auto; }
  .logo-mono { height: 40px; }
  .logo-word { height: 14px; }
  .logo-sub { font-size: 7.5px; }
  .hact-ic { width: 42px; height: 42px; }
  .search { order: 5; flex: 1 0 100%; height: 46px; }
  .section { padding: 64px 0; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; gap: 44px; }
  .hero-visual { height: 420px; max-width: 560px; width: 100%; margin: 0 auto; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters-toggle { display: inline-flex; }
  .filters { display: none; position: fixed; inset: 0; z-index: 115; border-radius: 0; border: 0; overflow-y: auto; padding: 18px 22px 32px; }
  .filters.open { display: block; }
  .filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; font-family: var(--serif); font-size: 26px; color: var(--choco); }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { height: 460px; max-width: 560px; width: 100%; margin: 0 auto; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-cta { align-items: flex-start; text-align: left; }
  .footer-cta-row { justify-content: flex-start; }
  .pp-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gallery" "info" "buy"; row-gap: 26px; }
  .pp-buy { position: static; }
  .pp-thumbs { display: none; }
  .pp-arrow { display: none; }
  .pp-counter { display: none; }
  .pp-dots { display: flex; }
  .specs-full { column-count: 1; }
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 249, 239, .97); border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px rgba(68, 45, 29, .08);
  }
  .mbar-price { display: flex; flex-direction: column; line-height: 1.2; }
  .mbar-price b { font-size: 19px; color: var(--choco); }
  .mbar-price s { font-size: 12.5px; color: var(--muted); }
  .mbar .btn { flex: none; min-width: 160px; }
  .page-product .footer { padding-bottom: 104px; }
  .lb-slide { padding: 56px 8px; }
  .lb-arrow { display: none; }
}

@media (max-width: 639px) {
  body { font-size: 14.5px; }
  .container { padding: 0 16px; }
  .logo { gap: 9px; }
  .logo-mono { height: 34px; }
  .logo-text { gap: 4px; }
  .logo-word { height: 11px; }
  .logo-sub { font-size: 6.5px; letter-spacing: .3em; }
  .header-actions { gap: 6px; }
  .hact-ic { width: 40px; height: 40px; }
  .search button { padding: 0 16px; }
  .section { padding: 52px 0; }
  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 26px; }
  .grid, .grid-recs, .catalog-layout .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .card-media { border-radius: 18px; }
  .card-badges { top: 10px; left: 10px; }
  .badge { padding: 5px 8px; font-size: 9.5px; }
  .card-body { padding-top: 12px; }
  .card-title { font-size: 17px; }
  .price { font-size: 16.5px; }
  .card-btn { height: auto; min-height: 40px; padding: 8px 10px; font-size: 12.5px; line-height: 1.2; white-space: normal; text-align: center; margin-top: 12px; }
  .fav-btn { width: 36px; height: 36px; top: 8px; right: 8px; }
  .card-dots { opacity: 1; left: 30%; right: 30%; bottom: 10px; }
  .hero-grid { padding-top: 36px; padding-bottom: 44px; gap: 36px; }
  .hero-title { font-size: 48px; }
  .hero-sub { font-size: 11.5px; letter-spacing: .18em; }
  .hero-desc { font-size: 15px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-visual { height: 340px; }
  .hero-seal { width: 104px; height: 104px; }
  .hero-seal img { width: 36px; }
  .adv-grid { grid-template-columns: 1fr; }
  .adv { padding: 22px 4px; }
  .adv + .adv { border-left: 0; border-top: 1px solid var(--line); }
  .cat-tiles { grid-auto-flow: column; grid-auto-columns: 140px; grid-template-columns: none; overflow-x: auto; margin: 0 -16px; padding: 8px 16px 10px; scrollbar-width: none; }
  .cat-tiles::-webkit-scrollbar { display: none; }
  .cat-tile-name { font-size: 19px; }
  .about-visual { height: 360px; }
  .about-actions .btn { flex: 1 1 100%; }
  .contacts-card { padding: 36px 18px 18px; border-radius: 28px; gap: 32px; }
  .contact-list { grid-template-columns: 1fr; }
  .contacts-form { padding: 26px 18px; border-radius: 22px; }
  .footer { padding-top: 52px; margin-top: 64px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-logo img { width: 190px; }
  .sort-btn span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .modal { padding: 0; place-items: end center; }
  .modal-dialog { width: 100%; border-radius: 28px 28px 0 0; padding: 30px 20px calc(22px + env(safe-area-inset-bottom)); max-height: 92vh; transform: translateY(40px); }
  .modal-title { font-size: 30px; }
  .pp-main { margin: 0 -16px; border-radius: 0; box-shadow: none; }
  .pp-title { font-size: 32px; }
  .buy-card { padding: 22px 18px; border-radius: 24px; }
  .pp-section-title { font-size: 30px; }
  .specs > div { font-size: 13.5px; }
  .doc { padding: 28px 20px; border-radius: 24px; }
}

@media (hover: none) {
  .card-dots { opacity: 1; }
  .card:hover .card-media { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
