/* ============================================================
   NAVRUZ — витрина-каталог мебели
   Портирована из соседнего проекта sofra-pasuda (та же архитектура),
   перекрашена в фирменные цвета NAVRUZ: зелёный, кремовый, золотой.
   Светлая маркетплейс-тема: белые карточки, крупные цены,
   фильтры слева, корзина-шторка, заказ в WhatsApp.
   ============================================================ */

/* ---------- Шрифт (локально, woff2, вариативный) ---------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токены ----------
   Тёплый «бумажный» нейтрал вместо холодного серого: белая карточка
   читается вырезанной из фона, тени тоже тёплые. Цвет в системе один —
   обожжённая терракота, и появляется он малой площадью. ---------- */
:root {
  --bg:        #F2EDE4;
  --bg-2:      #E7E0D2;
  --surface:   #FFFFFF;
  --surface-2: #FAF8F5;
  --ink:       #1A1714;
  --ink-2:     #4A443C;
  --ink-3:     #746B61;
  --ink-4:     #A79D91;
  --line:      #E8E3DA;
  --line-2:    #D9D2C6;

  --clay:      #2E7D32;
  --clay-dark: #1B5E20;
  --clay-soft: #ECF5EC;
  --clay-tint: #D9EBD9;
  --clay-lift: #4CAF50;
  --sand:      #F6EBD2;
  --brass:     #B8901F;

  --badge-bg:  #FBEFC7;
  --badge-ink: #6B5312;

  --wa:        #25D366;
  --wa-ink:    #08331B;
  --wa-deep:   #0C7D3C;
  --wa-soft:   #E7F1E9;

  --ok:        #1F7A44;
  --ok-soft:   #E7F1E9;
  --wait:      #8A5A12;
  --wait-soft: #F7EDDA;

  /* цвета линейных заглушек: один коридор насыщенности, сетка не пестрит */
  --ph-sofa:    #4B6B4E;
  --ph-shkaf:   #6B5B44;
  --ph-krovat:  #3F6B62;
  --ph-stol:    #6A6A46;
  --ph-kuhnya:  #7A6238;
  --ph-stul:    #5A5F7A;

  --r-s: 10px;
  --r-m: 14px;
  --r-l: 20px;
  --sh-1: 0 1px 2px rgba(38, 28, 18, .06), 0 2px 8px rgba(38, 28, 18, .05);
  --sh-2: 0 6px 18px rgba(38, 28, 18, .11);
  --sh-3: 0 18px 48px rgba(38, 28, 18, .22);

  --wrap: 1340px;
  --hdr-h: 132px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; border-radius: 6px; box-shadow: 0 0 0 3px rgba(174, 79, 45, .28); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-s);
  transition: top .18s;
}
.skip-link:focus { top: 12px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px;
  border-radius: var(--r-s);
  font-weight: 700; font-size: 14px; line-height: 1;
  border: 1px solid transparent;
  transition: background-color .16s, border-color .16s, color .16s, transform .12s, box-shadow .16s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { background: var(--clay); color: #fff; }
.btn--primary:hover { background: var(--clay-dark); }

.btn--wa { background: var(--wa); color: var(--wa-ink); }
.btn--wa:hover { background: var(--wa-deep); color: #fff; }

.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--ink-3); }

.btn--lg { min-height: 52px; padding: 0 26px; font-size: 15px; border-radius: 12px; }
.btn--block { width: 100%; }
.btn--ico { width: 42px; min-height: 42px; padding: 0; flex: none; }

/* ============================================================
   ШАПКА
   ============================================================ */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.hdr__bar { border-bottom: 1px solid var(--line); }
.hdr__row {
  display: flex; align-items: center; gap: 18px;
  min-height: 76px;
}

/* Логотип */
.logo { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.logo__mark { width: 38px; height: 38px; color: var(--clay); flex: none; }
.logo__mark svg { width: 100%; height: 100%; }
.logo__text { display: flex; flex-direction: column; }
.logo__name { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.logo__sub { font-size: 11.5px; color: var(--ink-3); font-weight: 500; }

/* Поиск */
.search { position: relative; flex: 1 1 auto; min-width: 0; max-width: 620px; }
.search__icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--ink-3); pointer-events: none;
}
.search__icon svg { width: 100%; height: 100%; }
.search__input {
  width: 100%; height: 46px;
  padding: 0 44px 0 42px;
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 14.5px;
  transition: border-color .16s, background-color .16s;
  -webkit-appearance: none; appearance: none;
}
.search__input::-webkit-search-cancel-button { display: none; }
.search__input::placeholder { color: var(--ink-3); }
.search__input:focus { outline: none; background: var(--surface); border-color: var(--clay); }
.search__clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 50%; color: var(--ink-3); background: var(--line);
}
.search__clear svg { width: 14px; height: 14px; }
.search__clear:hover { color: var(--ink); }

.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 70;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-m); box-shadow: var(--sh-3);
  padding: 6px; max-height: 380px; overflow: auto;
}
.suggest__i {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 9px 10px; border-radius: var(--r-s); text-align: left;
}
.suggest__i:hover, .suggest__i.is-on { background: var(--surface-2); }
.suggest__n { flex: 1 1 auto; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest__p { font-weight: 800; font-size: 14px; white-space: nowrap; }
.suggest__c { font-size: 11.5px; color: var(--ink-3); }
.suggest__empty { padding: 14px 12px; color: var(--ink-3); font-size: 14px; }

/* Действия справа */
.hdr__acts { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.hdr__link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14.5px; padding: 8px 4px;
}
.hdr__link svg { width: 17px; height: 17px; color: var(--clay); }
.hdr__link:hover { color: var(--clay); }

.cart-btn {
  position: relative; width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px; background: var(--surface-2); border: 1.5px solid var(--line);
  transition: border-color .16s, background-color .16s;
}
.cart-btn:hover { border-color: var(--ink-3); }
.cart-btn svg { width: 21px; height: 21px; }
.cart-btn__badge, .tabbar__badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px;
  padding: 0 5px; border-radius: 999px;
  background: var(--clay); color: #fff;
  font-size: 11.5px; font-weight: 800; line-height: 20px; text-align: center;
  box-shadow: 0 0 0 2px var(--surface);
}
.cart-btn.is-bump { animation: bump .4s; }
@keyframes bump { 40% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* Категории-чипсы */
.chips { background: var(--surface); }
.chips__row {
  display: flex; align-items: center; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
  padding-top: 10px; padding-bottom: 10px;
}
.chips__row::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 14px;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  transition: background-color .16s, color .16s, border-color .16s;
}
.chip span { font-size: 11.5px; color: var(--ink-3); font-weight: 700; }
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.is-on { background: var(--clay); border-color: var(--clay); color: #fff; }
.chip.is-on span { color: rgba(255, 255, 255, .6); }

/* ============================================================
   СЛАЙДЕР ПРЕДЛОЖЕНИЙ
   ============================================================ */
.hero { padding: 18px 0 4px; }

.slider { position: relative; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--sh-1); }
.slider__track { display: flex; transition: transform .5s cubic-bezier(.4, .0, .2, 1); }
.slider.is-drag .slider__track { transition: none; }

.slide {
  position: relative; flex: 0 0 100%;
  display: flex; align-items: center; gap: 20px;
  min-height: 236px; padding: 30px 36px;
  overflow: hidden;
}
.slide__body { position: relative; z-index: 1; max-width: 62%; }
.slide__eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .72; }
.slide__title { margin-top: 8px; font-size: clamp(21px, 2.3vw, 30px); font-weight: 800; line-height: 1.16; letter-spacing: -.025em; }
.slide__text { margin-top: 9px; font-size: 14.5px; opacity: .78; max-width: 46ch; }
.slide .btn { margin-top: 18px; }
.btn--slide { background: var(--sand); color: var(--ink); }
.btn--slide:hover { background: #fff; }

.slide__art {
  position: absolute; right: -18px; top: 50%; transform: translateY(-50%);
  width: 240px; height: 240px; opacity: .3; pointer-events: none;
}
.slide__art svg { width: 100%; height: 100%; }

.slide--dark {
  background:
    radial-gradient(60% 90% at 82% 30%, rgba(76, 175, 80, .40), transparent 70%),
    linear-gradient(115deg, #14251A, #233A27);
  color: #fff;
}
.slide--dark .slide__text { color: #D8D3CB; opacity: 1; }
.slide--dark .slide__art { color: var(--clay-lift); opacity: .45; }
.slide--wa { background: linear-gradient(115deg, #0A6630, #0F8140); color: #fff; }
.slide--wa .slide__text { color: #F1F8F3; opacity: .9; }
.slide--wa .slide__art { color: #fff; opacity: .26; }
.slide--wa .btn--wa { background: #fff; color: #0A3B1E; }
.slide--wa .btn--wa:hover { background: var(--sand); color: #0A3B1E; }
.slide--clay { background: linear-gradient(115deg, #2E7D32, #1B5E20); color: #fff; }
.slide--clay .slide__text { color: #E4F1E4; opacity: 1; }
.slide--clay .slide__art { color: #F2C94C; opacity: .35; }
.slide--clay .btn--slide { background: #F2C94C; color: #1B3D1B; }
.slide--sand { background: linear-gradient(115deg, #F6EBD2, #EADFC2); color: var(--ink); }
.slide--sand .slide__eyebrow { color: var(--badge-ink); opacity: 1; }
.slide--sand .slide__text { color: var(--ink-2); opacity: 1; }
.slide--sand .slide__art { color: var(--brass); opacity: .42; }
.slide--sand .btn--slide { background: var(--clay); color: #fff; }
.slide--sand .btn--slide:hover { background: var(--clay-dark); }

.slider__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255, 255, 255, .9); color: #14161A;
  box-shadow: var(--sh-2); opacity: 0; transition: opacity .18s, background-color .18s;
}
.slider__nav svg { width: 19px; height: 19px; }
.slider__nav--prev { left: 12px; }
.slider__nav--next { right: 12px; }
.slider:hover .slider__nav, .slider__nav:focus-visible { opacity: 1; }
.slider__nav:hover { background: #fff; }

.slider__dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; display: flex; justify-content: center; gap: 7px; }
.slider__dots button {
  width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .45);
  transition: width .22s, background-color .22s;
}
.slider__dots button.is-on { width: 22px; background: #fff; }
.slider--light .slider__dots button { background: rgba(20, 22, 26, .25); }
.slider--light .slider__dots button.is-on { background: #2A2013; }

/* ---------- преимущества ---------- */
.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.perk {
  display: flex; align-items: center; gap: 11px;
  background: var(--surface); border-radius: var(--r-m); padding: 12px 14px; box-shadow: var(--sh-1);
}
.perk__ico { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: var(--r-s); }
.perk__ico svg { width: 18px; height: 18px; }
.perk__ico--a { background: var(--clay-soft); color: var(--clay); }
.perk__ico--b { background: #EBF0F6; color: var(--ph-stol); }
.perk__ico--c { background: var(--wa-soft); color: var(--wa-deep); }
.perk__ico--d { background: var(--sand); color: var(--badge-ink); }
.perk__txt { min-width: 0; }
.perk__txt b { display: block; font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; }
.perk__txt span { display: block; font-size: 12px; color: var(--ink-3); }
.perk__short { display: none; }

/* ---------- часто ищут ---------- */
.popular { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 14px; }
.popular__lab { font-size: 13px; color: var(--ink-3); font-weight: 600; margin-right: 2px; }
.popular__w {
  height: 30px; padding: 0 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  transition: border-color .16s, color .16s, background-color .16s;
}
.popular__w::first-letter { text-transform: uppercase; }
.popular__w:hover { border-color: var(--clay); color: var(--clay); background: var(--clay-soft); }

/* ============================================================
   КАТАЛОГ
   ============================================================ */
.catalog { padding: 24px 0 48px; }
.catalog__grid { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 22px; align-items: start; }
.catalog__main { min-width: 0; }

/* ---------- фильтры ---------- */
.filters {
  position: sticky; top: calc(var(--hdr-h) + 16px);
  background: var(--surface); border-radius: var(--r-m); box-shadow: var(--sh-1);
  overflow: hidden;
}
.filters__head { display: none; }
.filters__body { padding: 18px; }
.filters__foot { display: none; }

.fgroup + .fgroup { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.fgroup__title { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }

.ftree__item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 8px 10px; border-radius: var(--r-s);
  font-size: 14px; font-weight: 600; color: var(--ink-2); text-align: left;
  transition: background-color .14s, color .14s;
}
.ftree__item span { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.ftree__item:hover { background: var(--surface-2); color: var(--ink); }
.ftree__item.is-on { background: var(--clay-soft); color: var(--clay-dark); }
.ftree__item.is-on span { color: var(--clay); }
.ftree__item--sub { font-size: 13.5px; font-weight: 500; padding-left: 22px; }
.ftree__sub { margin: 2px 0 4px; }

.frange { display: flex; align-items: center; gap: 8px; }
.frange__f { flex: 1 1 0; position: relative; display: flex; align-items: center; }
.frange__f span {
  position: absolute; left: 11px; font-size: 12px; color: var(--ink-3); pointer-events: none;
}
.frange__f input {
  width: 100%; height: 40px; padding: 0 10px 0 34px;
  background: var(--surface-2); border: 1.5px solid var(--line); border-radius: var(--r-s);
  font-size: 14px; font-weight: 600;
  -moz-appearance: textfield;
}
.frange__f input::-webkit-outer-spin-button,
.frange__f input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.frange__f input:focus { outline: none; border-color: var(--clay); background: var(--surface); }

.fcheck { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 0; }
.fcheck input { position: absolute; opacity: 0; width: 0; height: 0; }
.fcheck__box {
  width: 22px; height: 22px; flex: none; border-radius: 7px;
  border: 1.5px solid var(--line-2); background: var(--surface);
  display: grid; place-items: center; color: transparent;
  transition: background-color .14s, border-color .14s, color .14s;
}
.fcheck__box svg { width: 13px; height: 13px; }
.fcheck input:checked + .fcheck__box { background: var(--clay); border-color: var(--clay); color: #fff; }
.fcheck input:focus-visible + .fcheck__box { outline: 2px solid var(--clay); outline-offset: 2px; }
.fcheck__text { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.fcheck__text b { color: var(--ink-3); font-size: 12px; margin-left: 2px; }

.filters__body > .btn { margin-top: 18px; }
.filters__scrim { display: none; }

/* ---------- панель над сеткой ---------- */
.toolbar {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
}
.toolbar__title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.toolbar__count { font-size: 13.5px; color: var(--ink-3); font-weight: 600; padding-top: 4px; }
.toolbar__filters { display: none; }

.sort { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.sort__label { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.sort__sel {
  height: 40px; padding: 0 34px 0 12px;
  background: var(--surface) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C828C' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px;
  border: 1.5px solid var(--line); border-radius: var(--r-s);
  font-size: 13.5px; font-weight: 700;
  -webkit-appearance: none; appearance: none;
}
.sort__sel:focus { outline: none; border-color: var(--clay); }

/* ---------- сетка ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  gap: 14px;
}
.grid[hidden] { display: none; }
.card { display: flex; }
.card.is-hidden { display: none; }
.card__inner {
  display: flex; flex-direction: column; width: 100%;
  background: var(--surface); border-radius: var(--r-m);
  box-shadow: var(--sh-1);
  overflow: hidden;
  transition: box-shadow .18s, transform .18s;
}
.card__inner:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }

.card__inner { position: relative; }
.card__media {
  position: relative; display: block; width: 100%; aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, #FFFDFA, var(--surface-2));
  overflow: hidden;
}
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card__inner:hover .card__img { transform: scale(1.04); }
.card__art { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-4); }
.card__art svg { width: 58%; height: 58%; }
.card__art--sofa   { color: var(--ph-sofa); }
.card__art--shkaf     { color: var(--ph-shkaf); }
.card__art--krovat  { color: var(--ph-krovat); }
.card__art--stol   { color: var(--ph-stol); }
.card__art--kuhnya { color: var(--ph-kuhnya); }
.card__art--stul    { color: var(--ph-stul); }

/* контуры приходят из спрайта без своих атрибутов — рисуем их отсюда */
.art, .slide__art svg, .ci__media svg, .modal__media svg, .cart-empty__ico svg {
  fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}
.cart-empty__ico svg, .ci__media svg { stroke-width: 1.6; }

.fav {
  position: absolute; right: 8px; top: 8px; z-index: 2;
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: var(--sh-1);
  color: var(--ink-3); transition: color .16s, transform .16s, background-color .16s;
}
.fav:hover { color: var(--clay); transform: scale(1.08); }
.fav__ic { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.fav.is-on { color: var(--clay); }
.fav.is-on .fav__ic { fill: currentColor; }

.badge {
  position: absolute; left: 10px; top: 10px;
  padding: 4px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .02em;
}
.badge--hit { background: var(--badge-bg); color: var(--badge-ink); }

.card__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 12px 14px 14px; }
.card__cat { font-size: 11.5px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__name { margin-top: 5px; font-size: 14px; font-weight: 600; line-height: 1.35; }
.card__name button {
  text-align: left; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__name button:hover { color: var(--clay); }
.card__stock {
  margin-top: auto; padding-top: 8px; font-size: 12px; font-weight: 600; color: var(--ink-2);
  display: flex; align-items: center; gap: 6px;
}
.card__stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.card__stock.is-order { color: var(--ink-3); }
.card__stock.is-order::before { background: var(--wait); }
.card__price { margin-top: 6px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.card__acts { display: flex; gap: 8px; margin-top: 12px; }
.card__acts .btn--add { flex: 1 1 auto; }
.card__acts .btn--add.is-done { background: var(--ok); color: #fff; }
/* рядом с зелёной кнопкой второй заливки быть не должно — WhatsApp даём обводкой */
.card__acts .btn--wa {
  background: var(--surface); color: var(--wa-deep); border-color: var(--wa);
}
.card__acts .btn--wa:hover { background: var(--wa); color: var(--wa-ink); }

.grid__empty {
  padding: 40px 20px; text-align: center; color: var(--ink-3);
  background: var(--surface); border-radius: var(--r-m); box-shadow: var(--sh-1);
}
.grid__empty a { color: var(--clay); font-weight: 700; text-decoration: underline; }
.grid__more { display: flex; justify-content: center; margin-top: 22px; }

/* ============================================================
   КАК ЗАКАЗАТЬ / ИНФОРМАЦИЯ
   ============================================================ */
.shead { max-width: 640px; margin-bottom: 22px; }
.shead__title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.025em; }
.shead__lead { margin-top: 8px; color: var(--ink-3); font-size: 15px; }

.how { padding: 12px 0 40px; }
.how__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.how__step { background: var(--surface); border-radius: var(--r-m); padding: 20px; box-shadow: var(--sh-1); }
.how__num {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--sand); color: var(--badge-ink); font-weight: 800; font-size: 14px;
  margin-bottom: 12px;
}
.how__title { font-size: 15.5px; font-weight: 800; }
.how__text { margin-top: 5px; font-size: 13.5px; color: var(--ink-3); }

.info { padding: 0 0 48px; }
.info__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ibox { background: var(--surface); border-radius: var(--r-l); padding: 28px 30px; box-shadow: var(--sh-1); }
.ibox--shop { background: linear-gradient(115deg, #17181C, #2A2C33); color: #fff; }
.ibox__title { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.ilist li {
  display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.ibox--shop .ilist li { border-color: rgba(255, 255, 255, .12); }
.ilist li:last-child { border-bottom: 0; }
.ilist b { font-weight: 700; }
.ilist span { color: var(--ink-3); text-align: right; }
.ibox--shop .ilist span { color: rgba(255, 255, 255, .68); }
.ibox--shop .ilist a { color: #fff; font-weight: 700; }
.ibox__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ibox--shop .btn--ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; }
.ibox--shop .btn--ghost:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .35); }
.ibox__note { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }
.ibox--shop .ibox__note { color: rgba(255, 255, 255, .55); }

/* ============================================================
   ФУТЕР
   ============================================================ */
.foot { background: var(--surface); border-top: 1px solid var(--line-2); padding: 36px 0 20px; }
.foot__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 28px; }
.logo--foot .logo__name { font-size: 16px; }
.foot__about { margin-top: 12px; font-size: 13.5px; color: var(--ink-3); max-width: 42ch; }
.foot__phone { margin-top: 10px; font-size: 17px; font-weight: 800; }
.foot__phone a:hover { color: var(--clay); }
.foot__title { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.foot__list li + li { margin-top: 8px; }
.foot__list a, .foot__list button, .foot__list span { font-size: 13.5px; color: var(--ink-2); text-align: left; }
.foot__list a:hover, .foot__list button:hover { color: var(--clay); }
.foot__bar {
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
  margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-3);
}
.foot__staff { margin-left: auto; color: var(--ink-3); }
.foot__staff:hover { color: var(--clay); }

/* ============================================================
   КОРЗИНА
   ============================================================ */
.drawer { position: fixed; inset: 0; z-index: 120; }
.drawer[hidden] { display: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(16, 18, 22, .5); backdrop-filter: blur(2px); animation: fade .2s; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  background: var(--bg); display: flex; flex-direction: column;
  box-shadow: var(--sh-3); animation: slide-in .26s cubic-bezier(.22, .8, .3, 1);
}
@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(24px); opacity: .4; } }

.drawer__head {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.drawer__title { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.drawer__badge {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--clay); color: #fff; font-size: 12px; font-weight: 800; line-height: 22px; text-align: center;
}
.drawer__close, .modal__close, .filters__close {
  margin-left: auto; width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: var(--r-s); background: var(--surface-2); color: var(--ink-2);
}
.drawer__close svg, .modal__close svg, .filters__close svg { width: 17px; height: 17px; }
.drawer__close:hover, .modal__close:hover, .filters__close:hover { background: var(--line); color: var(--ink); }

.drawer__body { flex: 1 1 auto; overflow-y: auto; padding: 16px; }

.cartlist li {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); border-radius: var(--r-m); padding: 12px; box-shadow: var(--sh-1);
}
.cartlist li + li { margin-top: 10px; }
.ci__media {
  width: 62px; height: 62px; flex: none; border-radius: var(--r-s); overflow: hidden;
  background: var(--surface-2); display: grid; place-items: center; color: var(--ink-4);
}
.ci__media img { width: 100%; height: 100%; object-fit: cover; }
.ci__media svg { width: 60%; height: 60%; }
.ci__main { flex: 1 1 auto; min-width: 0; }
.ci__name, .ci__price { display: block; }
.ci__name { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.ci__price { margin-top: 4px; font-size: 12.5px; color: var(--ink-3); }
.ci__row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.ci__sum { margin-left: auto; font-size: 15px; font-weight: 800; white-space: nowrap; }
.ci__del { width: 30px; height: 30px; display: grid; place-items: center; border-radius: var(--r-s); color: var(--ink-3); }
.ci__del:hover { background: #FCEDEA; color: #C0392B; }
.ci__del svg { width: 15px; height: 15px; }

.stepper {
  display: inline-flex; align-items: center; flex: none;
  border: 1.5px solid var(--line); border-radius: var(--r-s); background: var(--surface); overflow: hidden;
}
.stepper button {
  width: 32px; height: 32px; display: grid; place-items: center;
  font-size: 17px; font-weight: 700; color: var(--ink-2);
}
.stepper button:hover { background: var(--surface-2); color: var(--clay); }
.stepper input {
  width: 40px; height: 32px; text-align: center; border: 0;
  font-size: 14px; font-weight: 800; background: transparent;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; }

.cart-empty { text-align: center; padding: 40px 20px; color: var(--ink-3); }
.cart-empty[hidden] { display: none; }
.cart-empty__ico { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%; background: var(--surface); color: var(--ink-3); box-shadow: var(--sh-1); }
.cart-empty__ico svg { width: 28px; height: 28px; }
.cart-empty p { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.cart-empty__hint { margin: 6px 0 18px !important; font-size: 13px !important; font-weight: 400 !important; color: var(--ink-3) !important; }

.cform { margin-top: 16px; background: var(--surface); border-radius: var(--r-m); padding: 16px; box-shadow: var(--sh-1); }
.cform[hidden] { display: none; }
.cform__title { font-size: 14px; font-weight: 800; margin-bottom: 12px; }
.cform__title span { font-weight: 500; color: var(--ink-3); font-size: 12.5px; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cform__hint { margin-top: 10px; font-size: 12px; color: var(--ink-3); }
.fld { display: block; }
.fld + .fld, .cform__row + .fld { margin-top: 10px; }
.fld__lab { display: block; font-size: 12px; font-weight: 700; color: var(--ink-3); margin-bottom: 5px; }
.fld__inp {
  width: 100%; height: 42px; padding: 0 12px;
  background: var(--surface-2); border: 1.5px solid var(--line); border-radius: var(--r-s);
  font-size: 14px; transition: border-color .16s, background-color .16s;
}
.fld__inp--area { height: auto; padding: 10px 12px; resize: vertical; min-height: 62px; }
.fld__inp:focus { outline: none; border-color: var(--clay); background: var(--surface); }
.fld--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.drawer__foot { background: var(--surface); border-top: 1px solid var(--line); padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); }
.drawer__sum { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.drawer__sum span { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.drawer__sum b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.drawer__note { margin-top: 10px; font-size: 12px; color: var(--ink-3); text-align: center; }

/* ============================================================
   КАРТОЧКА ТОВАРА
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__scrim { position: absolute; inset: 0; background: rgba(16, 18, 22, .55); backdrop-filter: blur(2px); animation: fade .2s; }
.modal__panel {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  width: min(880px, 100%); max-height: min(88vh, 720px); overflow: auto;
  background: var(--surface); border-radius: var(--r-l); box-shadow: var(--sh-3);
  animation: pop .24s cubic-bezier(.22, .8, .3, 1);
}
@keyframes pop { from { transform: scale(.97); opacity: 0; } }
.modal__close { position: absolute; right: 12px; top: 12px; z-index: 2; background: rgba(255, 255, 255, .9); }
.modal__media {
  position: relative; min-height: 300px; background: linear-gradient(160deg, #FFFDFA, var(--sand));
  display: grid; place-items: center; color: var(--ph-sofa);
}
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__media svg { width: 52%; height: 52%; }
.modal__body { padding: 30px; display: flex; flex-direction: column; }
.modal__cat { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.modal__name { margin-top: 8px; font-size: 22px; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; }
.modal__stock { margin-top: 10px; font-size: 13px; font-weight: 700; }
.modal__stock.is-in { color: var(--ok); }
.modal__stock.is-order { color: var(--wait); }
.modal__note { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.modal__note:empty { display: none; }
.modal__price { margin-top: 16px; font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.modal__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 20px; }
.modal__acts .btn { flex: 1 1 auto; }
.modal__acts .stepper { flex: none; height: 52px; border-radius: 12px; }
.modal__acts .stepper button { width: 42px; height: 50px; font-size: 19px; }
.modal__acts .stepper input { height: 50px; width: 44px; font-size: 15px; }

/* ============================================================
   КНОПКА «НАВЕРХ», НИЖНЯЯ ПАНЕЛЬ И ТОСТ
   ============================================================ */
.totop {
  position: fixed; right: 22px; bottom: 26px; z-index: 95;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; background: var(--surface); color: var(--ink-2);
  border: 1px solid var(--line); box-shadow: var(--sh-2);
  transition: color .16s, border-color .16s, transform .16s;
}
.totop svg { width: 20px; height: 20px; }
.totop:hover { color: var(--clay); border-color: var(--clay); transform: translateY(-2px); }

.tabbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar__i {
  flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 9px 4px 8px; font-size: 10.5px; font-weight: 700; color: var(--ink-3);
}
.tabbar__i svg { width: 22px; height: 22px; }
.tabbar__i:active { color: var(--ink); }
.tabbar__i--wa { color: var(--wa-deep); }
.tabbar__wrap { position: relative; display: block; }

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 200; transform: translate(-50%, 12px);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; box-shadow: var(--sh-3);
  opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none;
  max-width: calc(100% - 32px); text-align: center;
}
.toast[hidden] { display: none; }
body.is-locked .toast { bottom: 168px; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1180px) {
  .catalog__grid { grid-template-columns: 232px minmax(0, 1fr); }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hdr__link span { display: none; }
  .hdr__link { padding: 10px; border-radius: var(--r-s); background: var(--surface-2); border: 1.5px solid var(--line); }
}

@media (max-width: 1000px) {
  :root { --hdr-h: 178px; }
  .slide { min-height: 210px; padding: 26px 28px; }
  .slide__body { max-width: 72%; }
  .slide__art { width: 200px; height: 200px; }
  .how__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info__grid { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  .hdr { position: static; }
  .hdr__bar { position: sticky; top: 0; z-index: 60; background: var(--surface); }
  .hdr__row { flex-wrap: wrap; min-height: 0; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  .search { order: 3; flex: 1 0 100%; max-width: none; }
  .hdr__wa span { display: none; }
  .hdr__wa { width: 46px; padding: 0; }

  /* фильтры — выезжающая панель */
  .catalog__grid { grid-template-columns: minmax(0, 1fr); }
  .filters {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 125;
    width: min(340px, 88%); border-radius: 0; box-shadow: var(--sh-3);
    display: flex; flex-direction: column;
    transform: translateX(-102%); transition: transform .26s cubic-bezier(.22, .8, .3, 1);
    visibility: hidden;
  }
  .filters.is-open { transform: none; visibility: visible; }
  .filters__head {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 18px; border-bottom: 1px solid var(--line);
  }
  .filters__title { font-size: 17px; font-weight: 800; }
  .filters__body { flex: 1 1 auto; overflow-y: auto; }
  .filters__foot { display: block; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .filters__body > .btn { display: none; }
  .filters__scrim { display: block; position: fixed; inset: 0; z-index: 124; background: rgba(16, 18, 22, .5); animation: fade .2s; }
  .filters__scrim[hidden] { display: none; }

  .toolbar { flex-wrap: wrap; }
  .toolbar__filters {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
    background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-s);
    font-size: 13.5px; font-weight: 700;
  }
  .toolbar__filters svg { width: 17px; height: 17px; }
  .toolbar__title { order: -1; flex: 1 0 100%; }
  .sort__label { display: none; }

  .tabbar { display: flex; }
  body { padding-bottom: 62px; }
  .toast { bottom: 84px; }
}

@media (max-width: 700px) {
  .wrap { padding: 0 14px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card__body { padding: 10px 11px 12px; }
  .card__price { font-size: 17px; }
  .card__acts .btn { font-size: 13px; }
  .card__acts .btn--ico { width: 38px; min-height: 38px; }
  .card__acts .btn--add { min-height: 38px; padding: 0 10px; }
  /* строка 1 — заголовок и счётчик, строка 2 — фильтры и сортировка */
  .toolbar { gap: 10px 12px; align-items: center; }
  .toolbar__title { flex: 0 1 auto; order: 1; font-size: 19px; }
  .toolbar__count { order: 2; flex: 0 1 auto; font-size: 12.5px; padding-top: 0; }
  .toolbar::after { content: ''; order: 3; flex: 1 0 100%; height: 0; }  /* перенос строки */
  .toolbar__filters { order: 4; padding: 0 12px; }
  .sort { order: 5; }
  .toolbar__filters { padding: 0 12px; }
  .sort__sel { height: 38px; font-size: 12.5px; padding: 0 28px 0 10px; background-position: right 8px center; }
  .hero { padding: 12px 0 0; }
  .slide { min-height: 168px; padding: 20px 20px 34px; gap: 10px; }
  .slide__body { max-width: 100%; }
  .slide__title { font-size: 19px; }
  .slide__text { font-size: 13px; margin-top: 6px; }
  .slide .btn { margin-top: 14px; min-height: 38px; padding: 0 16px; font-size: 13px; }
  .slide__art { width: 150px; height: 150px; right: -34px; opacity: .22 !important; }
  .slider__nav { display: none; }
  .slider__dots { bottom: 10px; }
  /* на телефоне это справочная мелочь: остаются иконка и одно слово */
  .perks { display: flex; gap: 4px; margin-top: 10px; }
  .perk {
    flex: 1 1 0; min-width: 0; flex-direction: column; gap: 5px; text-align: center;
    background: none; box-shadow: none; padding: 2px 0;
  }
  .perk__txt { display: none; }
  .perk__short {
    display: block; font-size: 10.5px; font-weight: 600; font-style: normal; color: var(--ink-3);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
  }
  .perk__ico { width: 34px; height: 34px; border-radius: 12px; }
  .perk__ico svg { width: 17px; height: 17px; }
  .popular { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .popular::-webkit-scrollbar { display: none; }
  .popular__lab, .popular__w { flex: none; }
  .perk__ico { width: 30px; height: 30px; }
  .perk__txt b { font-size: 12.5px; }
  .perk__txt span { font-size: 11px; }
  .popular { margin-top: 12px; gap: 6px; }
  .totop { right: 14px; bottom: 78px; width: 40px; height: 40px; }
  .how__list { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: 1fr; }
  .ibox { padding: 22px 20px; }
  .modal { padding: 0; }
  .modal__panel {
    grid-template-columns: minmax(0, 1fr); width: 100%;
    max-height: 100%; height: 100%; border-radius: 0;
  }
  .modal__media { min-height: 42vw; max-height: 44vh; }
  .modal__body { padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); }
  .modal__acts .btn { flex: 1 1 100%; }
  .drawer__panel { width: 100%; }
  .cform__row { grid-template-columns: minmax(0, 1fr); }
  .logo__sub { display: none; }
}

@media (max-width: 380px) {
  .wrap { padding: 0 10px; }
  .grid { gap: 8px; }
  .card__body { padding: 9px 9px 11px; }
  .card__name { font-size: 13px; }
  .card__price { font-size: 16px; }
}
