/* =============================================================================
   sizchat — витрина маркетплейса (каркас «shop»)
   Шапка с каталогом/поиском, мега-меню, лента категорий, подвал, главная
   (слайдер, строка Тони, категории), каталог с боковыми фильтрами,
   плитки товаров. Токены — из siz.css (сине-бирюзовый канон SIZCHAT).
   Подключается на всех страницах после siz.css; правила для витрины
   ограничены .shop-body, общие (плитки, переключатель языка) — без префикса.
   ========================================================================== */

/* ── Общие мелочи для обоих каркасов ─────────────────────────────────── */
.langsw { display: flex; gap: 2px; background: var(--bg-sunken); padding: 2px; border-radius: var(--r-sm); }
.langsw__b { padding: 4px 8px; font-size: 11px; font-weight: 700; color: var(--muted); border-radius: var(--r-xs); border: none; background: transparent; cursor: pointer; }
.langsw__b.is-on { background: var(--surface); color: var(--brand-700); box-shadow: var(--shadow-sm); }
.side__acts { display: flex; align-items: center; gap: var(--sp-2); }
.ava--xs { width: 24px; height: 24px; font-size: 11px; }
.tabs-bottom__badge { position: absolute; top: 2px; margin-left: 16px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--brand-500); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.tabs-bottom a { position: relative; }

/* ── Каркас витрины ──────────────────────────────────────────────────── */
html:has(.shop-body) { height: auto; scroll-padding-top: 140px; }
.shop-body { height: auto; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.shop-main { flex: 1 0 auto; min-width: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--brand-500); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { top: 12px; text-decoration: none; }

/* Страницы, свёрстанные под старый каркас (.content / .wrap), живут в общем потоке */
.shop-main .content { overflow: visible; flex: none; min-height: 0; }
.shop-main .content--pad { padding: 8px 0 56px; }
.shop-main .content--pad > .wrap { padding: 0 24px; max-width: var(--container); }
.shop-main .content--pad > .wrap--narrow { max-width: 908px; }

/* ── Шапка ───────────────────────────────────────────────────────────── */
.hdr { position: sticky; top: 0; z-index: 60; background: var(--bg); box-shadow: 0 1px 0 var(--border); }
.hdr__top { background: var(--bg-sunken); font-size: 12.5px; color: var(--text-2); }
.hdr__top-in { display: flex; align-items: center; gap: 20px; min-height: 36px; }
.hdr__geo { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr__geo svg { width: 15px; height: 15px; color: var(--brand-500); flex: none; }
.hdr__links { display: flex; gap: 18px; margin-left: auto; }
.hdr__links a, .hdr__phone { color: var(--text-2); white-space: nowrap; }
.hdr__links a:hover, .hdr__phone:hover { color: var(--brand-600); text-decoration: none; }
.hdr__tools { display: flex; align-items: center; gap: 12px; }
.hdr__phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text); }
.hdr__phone svg { width: 15px; height: 15px; color: var(--brand-500); }
.hdr__theme { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: var(--r-xs); background: transparent; color: var(--text-2); cursor: pointer; }
.hdr__theme:hover { background: var(--surface); color: var(--brand-600); }
.hdr__theme svg { width: 16px; height: 16px; }

.hdr__main-in { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.hdr__logo { flex: none; display: flex; align-items: center; }
.hdr__logo img { height: 36px; width: auto; }

.hdr__burger { display: none; width: 42px; height: 42px; border: 1px solid var(--border-2); border-radius: var(--r-sm); background: var(--surface); color: var(--text); cursor: pointer; place-items: center; flex: none; }
.hdr__burger svg { width: 22px; height: 22px; }

.hdr__catbtn {
  flex: none; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px;
  border: 0; border-radius: var(--r-sm); background: var(--brand-500); color: #fff;
  font-weight: 700; font-size: 15px; cursor: pointer; transition: background var(--speed);
}
.hdr__catbtn:hover { background: var(--brand-600); }
.hdr__catbtn-ico { display: flex; flex-direction: column; gap: 4px; width: 18px; }
.hdr__catbtn-ico i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--speed), opacity var(--speed); }
.hdr__catbtn[aria-expanded="true"] .hdr__catbtn-ico i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hdr__catbtn[aria-expanded="true"] .hdr__catbtn-ico i:nth-child(2) { opacity: 0; }
.hdr__catbtn[aria-expanded="true"] .hdr__catbtn-ico i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hsearch { flex: 1; min-width: 0; display: flex; align-items: stretch; height: 46px; border: 2px solid var(--brand-500); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; }
.hsearch:focus-within { box-shadow: var(--ring); }
.hsearch__in { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 14px; font-size: 14.5px; outline: none; }
.hsearch__in::-webkit-search-cancel-button { cursor: pointer; }
.hsearch__photo { display: grid; place-items: center; width: 42px; color: var(--muted); }
.hsearch__photo:hover { color: var(--brand-600); }
.hsearch__photo svg, .hsearch__btn svg { width: 20px; height: 20px; }
.hsearch__btn { width: 56px; border: 0; background: var(--brand-500); color: #fff; cursor: pointer; display: grid; place-items: center; }
.hsearch__btn:hover { background: var(--brand-600); }

.hdr__acts { display: flex; align-items: center; gap: 4px; flex: none; }
.hact { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 64px; padding: 4px 6px; border-radius: var(--r-sm); color: var(--text-2); font-size: 11.5px; font-weight: 500; }
.hact:hover { color: var(--brand-600); text-decoration: none; background: var(--bg-soft); }
.hact__ico { position: relative; width: 26px; height: 26px; display: grid; place-items: center; }
.hact__ico svg { width: 24px; height: 24px; }
.hact__ico img { width: 26px; height: 26px; border-radius: 50%; }
.hact__badge { position: absolute; top: -5px; right: -9px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--brand-500); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; border: 2px solid var(--bg); box-sizing: content-box; }
.hact--tonya { color: var(--brand-700); font-weight: 600; }

.hdr__cats { border-top: 1px solid var(--border); }
.hdr__cats-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.hdr__cats-in::-webkit-scrollbar { display: none; }
.hdr__cats-in a { flex: none; padding: 12px 10px; font-size: 13.5px; font-weight: 600; color: var(--text); white-space: nowrap; border-bottom: 2px solid transparent; }
.hdr__cats-in a:hover { color: var(--brand-600); text-decoration: none; }
.hdr__cats-in a.is-on { color: var(--brand-600); border-bottom-color: var(--brand-500); }
.hdr__cats-in .hdr__cats-sale { color: var(--err); margin-left: auto; }

/* Сжатие шапки при прокрутке */
.hdr.is-stuck .hdr__top { display: none; }
.hdr.is-stuck .hdr__main-in { min-height: 64px; }
.hdr.is-stuck { box-shadow: 0 6px 20px -12px rgba(0,0,0,.25); }

/* ── Мега-меню каталога ─────────────────────────────────────────────── */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 24px 40px -20px rgba(0,0,0,.28); max-height: calc(100vh - 140px); overflow: auto; }
.mega[hidden] { display: none; }
.mega__in { display: grid; grid-template-columns: 300px minmax(0, 1fr) 260px; gap: 24px; padding-top: 20px; padding-bottom: 24px; }
.mega__roots { list-style: none; margin: 0; padding: 0; border-right: 1px solid var(--border); padding-right: 12px; }
.mega__root { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); color: var(--text); font-weight: 600; font-size: 14.5px; }
.mega__root img { width: 28px; height: 28px; flex: none; }
.mega__root span { flex: 1; }
.mega__root svg { width: 16px; height: 16px; color: var(--muted); }
.mega__root:hover, .mega__root.is-on { background: var(--brand-50); color: var(--brand-700); text-decoration: none; }
.mega__root.is-on svg { color: var(--brand-600); }
.mega__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.mega__title { font-size: 20px; font-weight: 800; color: var(--text); }
.mega__count { font-size: 13px; color: var(--muted); }
.mega__list { list-style: none; margin: 0 0 16px; padding: 0; columns: 2; column-gap: 24px; }
.mega__list li { break-inside: avoid; }
.mega__list a { display: block; padding: 7px 0; color: var(--text-2); font-size: 14.5px; }
.mega__list a:hover { color: var(--brand-600); }
.mega__all { font-weight: 700; font-size: 14px; }
.mega__tonya { align-self: start; background: var(--grad-soft); border: 1px solid var(--brand-100); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.mega__tonya img { width: 44px; height: 44px; }
.mega__tonya b { font-size: 16px; }
.mega__tonya p { font-size: 13.5px; color: var(--text-2); margin: 0 0 6px; }
.mega__tonya .btn { align-self: flex-start; }

/* ── Мобильное меню ─────────────────────────────────────────────────── */
.mnav-back { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 80; }
.mnav-back[hidden], .mnav[hidden] { display: none; }
.mnav { position: fixed; top: 0; bottom: 0; left: 0; width: min(360px, 88vw); z-index: 81; background: var(--bg); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: mnav-in .22s ease-out; }
@keyframes mnav-in { from { transform: translateX(-100%); } to { transform: none; } }
.mnav__top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.mnav__top img { height: 30px; width: auto; }
.mnav__scroll { flex: 1; overflow-y: auto; padding: 12px 16px 32px; }
.mnav__tonya { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-md); background: var(--brand-50); color: var(--text); margin-bottom: 8px; }
.mnav__tonya:hover { text-decoration: none; }
.mnav__tonya span { display: flex; flex-direction: column; }
.mnav__tonya small { color: var(--muted); font-size: 12px; }
.mnav__h { margin: 16px 0 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mnav__cat { border-bottom: 1px solid var(--border); }
.mnav__cat summary { display: flex; align-items: center; gap: 10px; padding: 11px 0; font-weight: 600; cursor: pointer; list-style: none; }
.mnav__cat summary::-webkit-details-marker { display: none; }
.mnav__cat summary::after { content: "+"; margin-left: auto; color: var(--muted); font-size: 18px; }
.mnav__cat[open] summary::after { content: "−"; }
.mnav__cat summary img { width: 24px; height: 24px; }
.mnav__cat a { display: block; padding: 8px 0 8px 34px; color: var(--text-2); font-size: 14.5px; }
.mnav__cat a:first-of-type { font-weight: 600; color: var(--brand-700); }
.mnav__link { display: block; padding: 10px 0; color: var(--text); border-bottom: 1px solid var(--border); }
.mnav__row { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
body.mnav-open { overflow: hidden; }

/* ── Заголовок страницы ─────────────────────────────────────────────── */
.phead { padding: 20px 0 8px; }
.phead .crumbs { margin-bottom: 12px; }
.phead .crumbs .sep { opacity: .5; }
.phead .crumbs [aria-current] { color: var(--text-2); }
.phead__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.phead__h { font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 0; }
.phead__sub { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }
.phead__acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Плитка товара (витрина, каталог, витрина продавца) ─────────────── */
.ptiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.ptile { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; color: var(--text); transition: box-shadow var(--speed), border-color var(--speed), transform var(--speed); }
.ptile:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.ptile__img { position: relative; aspect-ratio: 1 / 1; background: #fff; display: grid; place-items: center; overflow: hidden; }
html[data-theme="dark"] .ptile__img { background: var(--surface-2); }
.ptile__img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .3s; }
.ptile:hover .ptile__img img { transform: scale(1.04); }
.ptile__img .nophoto { color: var(--muted); font-size: 13px; }
.ptile__flags { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.ptile__flag { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; line-height: 1.3; }
.ptile__flag--sale { background: var(--err); color: #fff; }
.ptile__flag--mpt { background: var(--ok-bg); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }
.ptile__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ptile__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0; }
.ptile__price b { font-size: 19px; font-weight: 800; color: var(--text); }
.ptile__price s { font-size: 13px; color: var(--muted); }
.ptile__name { font-size: 14px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.4em * 2); }
.ptile:hover .ptile__name { color: var(--brand-700); }
.ptile__meta { font-size: 12px; color: var(--muted); }
.ptile__rate { color: #E7A100; font-weight: 600; }
.ptile__stock { font-size: 12px; font-weight: 600; margin-top: auto; }
.ptile__stock--in { color: var(--ok); }
.ptile__stock--low { color: var(--warn); }
.ptile__stock--out { color: var(--muted); }
.ptile__buy { width: 100%; margin-top: 6px; padding: 9px 12px; }

/* ── Кнопки — плоский оранжевый, как в дизайн-системе витрины ────────── */
.shop-body .btn--primary { background: var(--brand-500); }
.shop-body .btn--primary:hover { background: var(--brand-600); filter: none; }

/* ── Секции главной ─────────────────────────────────────────────────── */
.sec { padding: 28px 0; }
.sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sec__h { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.sec__more { font-weight: 700; font-size: 14px; white-space: nowrap; }

/* Слайдер */
.hslider { padding: 20px 0 0; }
.slider { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--bg-sunken); }
.slider__track { display: flex; transition: transform .55s cubic-bezier(.22,.61,.36,1); }
.slide { position: relative; flex: 0 0 100%; min-height: 380px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 24px; padding: 48px 72px; overflow: hidden; color: #fff; }
.slide--1 { background: radial-gradient(120% 140% at 85% 20%, #38BDF8 0%, #0EA5E9 40%, #0369A1 100%); }
.slide--2 { background: radial-gradient(120% 140% at 85% 30%, #14B8A6 -10%, #0F4F5E 45%, #0B1722 100%); }
.slide--3 { background: radial-gradient(120% 140% at 80% 20%, #F0FDFA 0%, #E0F2FE 50%, #BAE6FD 100%); color: #0F1B2A; }
.slide--3 .btn--ghost { color: #0F1B2A; border-color: rgba(15,27,42,.28); background: transparent; }
.slide--3 .btn--ghost:hover { background: rgba(255,255,255,.5); }
.slide__kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.18); margin-bottom: 16px; }
.slide--3 .slide__kicker { background: rgba(14,165,233,.14); color: var(--brand-700); }
.slide__h { font-size: 42px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; margin: 0 0 14px; color: inherit; }
.slide__p { font-size: 16.5px; line-height: 1.55; margin: 0 0 24px; max-width: 520px; opacity: .92; }
.slide__acts { display: flex; gap: 10px; flex-wrap: wrap; }
.slide .btn--lg { padding: 14px 24px; }
.btn--white { background: #fff; color: #0369A1; border-color: transparent; }
.btn--white:hover { background: #F0F9FF; color: #0369A1; }
.btn--outline-w { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--outline-w:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.slide__art { position: relative; height: 100%; min-height: 280px; display: grid; place-items: center; }
.slide__art svg { width: 100%; max-width: 440px; height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.25)); }
.slider__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #0F1B2A; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); z-index: 2; transition: background var(--speed), color var(--speed); }
.slider__nav:hover { background: #fff; color: #0284C7; }
.slider__nav svg { width: 22px; height: 22px; }
.slider__nav--prev { left: 16px; }
.slider__nav--next { right: 16px; }
.slider__dots { position: absolute; left: 72px; bottom: 22px; display: flex; gap: 8px; z-index: 2; }
.slider__dot { width: 10px; height: 10px; border-radius: 99px; border: 0; padding: 0; background: rgba(255,255,255,.5); cursor: pointer; transition: width var(--speed), background var(--speed); }
.slider__dot.is-on { width: 28px; background: #fff; }
.slider.is-light .slider__dot { background: rgba(26,26,26,.25); }
.slider.is-light .slider__dot.is-on { background: var(--brand-500); }

/* Строка Тони */
.tline { position: relative; margin-top: -36px; z-index: 3; }
.tline__card { background: var(--surface); border-radius: var(--r-xl); box-shadow: 0 18px 50px -18px rgba(26,26,26,.35); border: 1px solid var(--border); padding: 18px 20px 14px; margin: 0 48px; }
.tline__row { display: flex; align-items: center; gap: 14px; }
.tline__ava { position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--brand-50); display: grid; place-items: center; }
.tline__ava img { width: 40px; height: 40px; }
.tline__ava::after { content: ""; position: absolute; right: 2px; bottom: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--ok); border: 2px solid var(--surface); }
.tline__form { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 6px 0 18px; border: 2px solid var(--brand-500); border-radius: 16px; background: var(--surface); transition: box-shadow var(--speed); }
.tline__form:focus-within { box-shadow: var(--ring); }
.tline__ta { flex: 1; min-width: 0; border: 0; background: transparent; resize: none; outline: none; font-size: 16px; line-height: 1.4; padding: 0; height: 24px; max-height: 24px; overflow: hidden; white-space: nowrap; }
.tline__ta::placeholder { color: var(--muted); }
.tline__form .iconbtn { width: 42px; height: 42px; border-radius: 12px; }
.tline__form .iconbtn--send { background: var(--brand-500); }
.tline__form .iconbtn--send:hover { background: var(--brand-600); }
.tline__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0 0 66px; }
.tline__meta-t { font-size: 12.5px; color: var(--muted); margin-right: 4px; }
.tline__chip { border: 1px solid var(--border-2); background: var(--surface); color: var(--text-2); font-size: 13px; padding: 6px 12px; border-radius: 99px; cursor: pointer; transition: border-color var(--speed), color var(--speed), background var(--speed); }
.tline__chip:hover { border-color: var(--brand-400); color: var(--brand-700); background: var(--brand-50); }
.tline__name { display: flex; flex-direction: column; flex: none; width: 150px; }
.tline__name b { font-size: 15px; }
.tline__name span { font-size: 12px; color: var(--muted); line-height: 1.3; }
.tline .rec-bar { margin: 0 0 8px 66px; }
/* Переход в полноформатный чат */
.tline.is-going .tline__card { animation: tline-go .45s cubic-bezier(.22,.61,.36,1) forwards; }
@keyframes tline-go { to { transform: translateY(-12px) scale(1.015); box-shadow: 0 30px 80px -20px rgba(14,165,233,.45); } }

/* Преимущества */

/* Категории на главной */

/* Баннеры «Юрлицам» / «Продавцам» */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.promo { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 32px; border-radius: var(--r-xl); overflow: hidden; min-height: 230px; color: #fff; }
.promo--dark { background: var(--grad-dark); }
.promo--brand { background: var(--grad-brand); }
.promo h3 { font-size: 24px; font-weight: 800; color: #fff; margin: 0; max-width: 70%; }
.promo p { margin: 0; opacity: .9; max-width: 72%; font-size: 14.5px; }
.promo .btn { align-self: flex-start; margin-top: auto; }
.promo__art { position: absolute; right: -20px; bottom: -20px; width: 200px; height: 200px; opacity: .22; }
.promo__art svg { width: 100%; height: 100%; }
.promo ul { margin: 0; padding: 0 0 0 18px; font-size: 14px; opacity: .92; max-width: 72%; }

/* Ленты товаров/брендов */
.brands { display: flex; flex-wrap: wrap; gap: 10px; }
.brand { padding: 10px 16px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); color: var(--text-2); font-weight: 700; font-size: 14px; }
.brand:hover { border-color: var(--brand-400); color: var(--brand-700); text-decoration: none; }

/* Как работает Тоня (на главной) */
.hsteps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: hstep; }
.hstep { padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); position: relative; }
.hstep::before { counter-increment: hstep; content: counter(hstep); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-500); color: #fff; font-weight: 800; margin-bottom: 12px; }
.hstep b { display: block; font-size: 16px; margin-bottom: 6px; }
.hstep p { margin: 0; font-size: 14px; color: var(--text-2); }

/* SEO-текст */
.seo { color: var(--text-2); font-size: 14.5px; line-height: 1.7; columns: 2; column-gap: 40px; }
.seo p { break-inside: avoid; }

/* ── Каталог: боковые фильтры + сетка ───────────────────────────────── */
.cat-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 8px; }
.filters { position: sticky; top: 150px; display: flex; flex-direction: column; gap: 14px; }
.fbox { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); padding: 16px; }
.fbox__h { font-size: 14px; font-weight: 800; margin: 0 0 10px; }
.ftree { display: flex; flex-direction: column; }
.ftree a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; color: var(--text-2); font-size: 14px; }
.ftree a:hover { background: var(--bg-soft); color: var(--brand-700); text-decoration: none; }
.ftree a.is-on { background: var(--brand-50); color: var(--brand-700); font-weight: 700; }
.ftree a small { color: var(--muted); font-weight: 500; }
.ftree .ftree__sub { padding-left: 22px; font-size: 13.5px; }
.fprice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fprice .input { padding: 9px 10px; font-size: 14px; }
.fchecks { display: flex; flex-direction: column; gap: 10px; }
.fcheck { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.fcheck input { width: 18px; height: 18px; accent-color: var(--brand-500); }
.filters__acts { display: flex; gap: 8px; }
.filters__acts .btn { flex: 1; }
.ftonya { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--r-md); background: var(--grad-soft); border: 1px solid var(--brand-100); }
.ftonya b { font-size: 14.5px; }
.ftonya p { margin: 0; font-size: 13px; color: var(--text-2); }

.ctool { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ctool__count { color: var(--muted); font-size: 14px; }
.ctool__sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.ctool__sort .select { padding: 8px 12px; font-size: 14px; width: auto; }
.ctool__filters { display: none; }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.subcat { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 99px; background: var(--bg-sunken); color: var(--text); font-size: 14px; font-weight: 600; }
.subcat img { width: 26px; height: 26px; }
.subcat:hover { background: var(--brand-50); color: var(--brand-700); text-decoration: none; }
.subcat small { color: var(--muted); font-weight: 500; }
.understood { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 16px; padding: 12px 14px; border-radius: var(--r-md); background: var(--brand-50); border: 1px solid var(--brand-100); }
.understood .chip { cursor: default; }
.cat-note { margin-top: 28px; }

/* ── Подвал ──────────────────────────────────────────────────────────── */
.ftr { margin-top: 48px; background: #0B1722; color: #A9BBCB; font-size: 14px; }
html[data-theme="dark"] .ftr { background: #0F1013; }
.ftr a { color: #BDBDBD; }
.ftr a:hover { color: #fff; text-decoration: none; }
.ftr__cta { background: var(--brand-500); color: #fff; }
.ftr__cta-in { display: flex; align-items: center; gap: 20px; padding-top: 22px; padding-bottom: 22px; }
.ftr__cta-in img { width: 56px; height: 56px; flex: none; background: #fff; border-radius: 50%; padding: 6px; }
.ftr__cta-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ftr__cta-txt b { font-size: 19px; color: #fff; }
.ftr__cta-txt span { font-size: 14px; opacity: .92; }
.ftr__cta .btn--primary { background: #0B1722; color: #fff; }
.ftr__cta .btn--primary:hover { background: #000; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding: 44px 0 32px; }
.ftr__brand p { margin: 14px 0; line-height: 1.6; font-size: 13.5px; max-width: 320px; }
.ftr__logo img { height: 34px; width: auto; }
.ftr__phone { display: block; font-size: 19px; font-weight: 800; color: #fff !important; }
.ftr__mail { display: block; margin-top: 4px; }
.ftr__h { color: #fff; font-weight: 700; font-size: 15px; margin: 0 0 12px; }
.ftr__col { display: flex; flex-direction: column; gap: 9px; }
.ftr__bottom { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; padding: 20px 0 28px; border-top: 1px solid #2E2E2E; font-size: 12.5px; color: #8C8C8C; }
.ftr__docs { display: flex; gap: 18px; flex-wrap: wrap; }
.ftr__docs a { color: #8C8C8C; }
.ftr__pay { display: flex; gap: 8px; margin-left: auto; }
.ftr__pay span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid #333; border-radius: 6px; color: #BDBDBD; font-size: 12px; }
.ftr__pay svg { width: 15px; height: 15px; }

/* Cookie-плашка на витрине — фиксированная снизу */
.shop-body .consent { position: fixed; left: auto; right: 16px; bottom: 16px; z-index: 70; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 520px; max-width: calc(100vw - 32px); margin: 0; }
.shop-body .consent__in { flex-direction: column; align-items: stretch; gap: 10px; }
.shop-body .consent__acts { justify-content: flex-end; flex-wrap: wrap; }

/* ── Адаптив ─────────────────────────────────────────────────────────── */
@media (max-width: 1240px) {
  .hact__t { display: none; }
  .hact { min-width: 44px; }
  .hdr__links a:nth-child(n+4) { display: none; }
  .mega__in { grid-template-columns: 280px minmax(0, 1fr); }
  .mega__tonya { display: none; }
}
@media (max-width: 1080px) {
  .slide { padding: 40px 56px; }
  .slide__h { font-size: 34px; }
  .ftr__grid { grid-template-columns: repeat(3, 1fr); }
  .ftr__brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .container, .shop-main .content--pad > .wrap { padding: 0 16px; }
  .hdr__top { display: none; }
  .hdr__burger { display: grid; }
  .hdr__catbtn, .hdr__cats { display: none; }
  .hdr__main-in { flex-wrap: wrap; gap: 10px 12px; min-height: 0; padding-top: 10px; padding-bottom: 10px; }
  .hdr__logo img { height: 30px; }
  .hdr__acts { margin-left: auto; }
  .hact--tonya, .hdr__acts .hact:nth-child(2), .hdr__acts .hact:nth-child(3) { display: none; }
  .hsearch { order: 5; flex-basis: 100%; height: 44px; }
  .hdr.is-stuck .hdr__main-in { min-height: 0; }
  .mega { display: none !important; }
  .cat-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 auto 0 0; width: min(340px, 88vw); z-index: 82; background: var(--bg); padding: 16px; overflow-y: auto; transform: translateX(-102%); transition: transform .24s ease; box-shadow: var(--shadow-lg); top: 0; }
  .filters.is-on { transform: none; }
  .ctool__filters { display: inline-flex; }
  .filters__close { display: flex !important; }
  .slide { grid-template-columns: 1fr; padding: 32px 28px 64px; min-height: 0; }
  .slide__art { display: none; }
  .slider__nav { display: none; }
  .slider__dots { left: 28px; }
  .tline { margin-top: 16px; }
  .tline__card { margin: 0; padding: 14px; }
  .tline__name { display: none; }
  .tline__meta { margin-left: 0; }
  .tline .rec-bar { margin-left: 0; }
  .hsteps { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
  .seo { columns: 1; }
  .phead__h { font-size: 26px; }
}
@media (max-width: 980px) and (pointer: coarse) {
  .shop-body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .shop-body .consent { bottom: calc(76px + env(safe-area-inset-bottom)); margin-bottom: 0; }
}
@media (max-width: 640px) {
  .ptiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ptile__body { padding: 10px; }
  .ptile__price b { font-size: 16px; }
  .slide__h { font-size: 27px; }
  .slide__p { font-size: 15px; }
  .sec__h { font-size: 21px; }
  .tline__ava { display: none; }
  .tline__form { height: 52px; padding-left: 14px; }
  .tline__ta { font-size: 15px; }
  .tline__form .iconbtn--rec { display: none; }
  .promo { padding: 24px; }
  .promo h3, .promo p, .promo ul { max-width: 100%; }
  .ftr__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .ftr__cta-in { flex-direction: column; align-items: flex-start; }
  .ftr__pay { margin-left: 0; }
  .shop-body .consent { left: 8px; right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .slider__track { transition: none; }
}

/* Карточка товара в каркасе витрины */
.shop-main .crumbs--pdp { padding-top: 16px; }
.shop-main .crumbs .sep { opacity: .5; }
.shop-body .prod__side { top: 150px; }
.shop-body .pdp__price { color: var(--text); }

.hdr__logo img, .mnav__top img { height: 36px; width: auto; }
.mnav__top img { height: 30px; }
.side__brand img.logo { height: 34px; width: auto; }
.ptile__img img.ptile__ph { width: 46%; height: 46%; padding: 0; opacity: .55; object-fit: contain; }
.ptile:hover .ptile__img img.ptile__ph { transform: none; }

/* Постраничная навигация каталога */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pager__a { min-width: 40px; height: 40px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; }
.pager__a:hover { border-color: var(--brand-400); color: var(--brand-700); text-decoration: none; }
.pager__a.is-on { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }
.pager__a svg { width: 18px; height: 18px; }
.pager__gap { color: var(--muted); padding: 0 4px; }
.pdp__main img.ptile__ph { width: 38%; height: auto; opacity: .45; object-fit: contain; }

/* ═══ Витрина в стиле «воздушного» маркетплейса: плитки с фото, ленты, подборки ═══ */
.sec__head--center { justify-content: center; text-align: center; }
.sec__h--caps { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.sec { padding-top: 28px; padding-bottom: 28px; }
.sec + .sec { padding-top: 20px; }

/* Популярные категории */
.ctiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.ctile { display: flex; flex-direction: column; gap: 6px; color: var(--text); text-decoration: none; }
.ctile:hover { text-decoration: none; }
.ctile__img { display: grid; place-items: center; aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; transition: border-color var(--speed), box-shadow var(--speed), transform var(--speed); }
.ctile__img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .35s; }
.ctile__img img.ctile__ic { width: 52%; height: 52%; padding: 0; opacity: .85; }
.ctile:hover .ctile__img { border-color: var(--brand-400); box-shadow: var(--shadow); }
.ctile:hover .ctile__img img:not(.ctile__ic) { transform: scale(1.05); }
.ctile__name { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.ctile:hover .ctile__name { color: var(--brand-700); }
.ctile__n { font-size: 12.5px; color: var(--muted); margin-top: -4px; }
.ctiles__more { display: flex; justify-content: center; margin-top: 22px; }

/* Крупный тезис + вкладки */
.sec--big { padding-top: 44px; padding-bottom: 44px; }
.big__h { font-size: clamp(26px, 3.4vw, 42px); line-height: 1.18; font-weight: 600; letter-spacing: -.02em; text-align: center; margin: 0 0 34px; color: var(--text); }
.big__h--left { text-align: left; max-width: 760px; }
.tabs { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; max-width: 980px; margin: 0 auto; }
.tabs__nav { display: flex; flex-direction: column; gap: 4px; }
.tabs__b { text-align: left; border: 0; background: transparent; padding: 10px 0; font: inherit; font-size: 15px; color: var(--muted); cursor: pointer; transition: color var(--speed); }
.tabs__b:hover { color: var(--text); }
.tabs__b.is-on { color: var(--brand-600); font-weight: 600; }
.tabs__p { display: none; }
.tabs__p.is-on { display: block; animation: tab-in .35s ease both; }
@keyframes tab-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tabs__p h3 { font-size: 22px; font-weight: 600; margin: 0 0 10px; }
.tabs__p p { margin: 0 0 18px; color: var(--text-2); max-width: 520px; line-height: 1.6; }
.tabs__go { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--brand-700); }
.tabs__go svg { width: 28px; height: 28px; padding: 6px; border-radius: 50%; border: 1px solid var(--brand-300); color: var(--brand-600); }
.tabs__go:hover { text-decoration: none; }
.tabs__go:hover svg { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }

/* Горизонтальные ленты */
.hrow__ctl { display: flex; align-items: center; gap: 8px; }
.hrow__ctl--center { justify-content: center; margin-top: 18px; }
.hrow__btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: all var(--speed); }
.hrow__btn svg { width: 18px; height: 18px; }
.hrow__btn:hover { border-color: var(--brand-500); color: var(--brand-600); }
.hrow__btn:disabled { opacity: .35; cursor: default; }
.hrow__ctl .sec__more { margin-right: 8px; }
.hrow__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 2px 2px 8px; margin: 0 -2px; }
.hrow__track::-webkit-scrollbar { display: none; }
.hrow__track > .ptile { flex: 0 0 calc((100% - 5 * 16px) / 6); scroll-snap-align: start; }
.hrow__track--brands { gap: 12px; }
.brandtile { flex: 0 0 calc((100% - 5 * 12px) / 6); scroll-snap-align: start; display: grid; place-items: center; height: 88px; padding: 0 12px; text-align: center; font-weight: 800; font-size: 16px; letter-spacing: .02em; text-transform: uppercase; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); transition: border-color var(--speed), box-shadow var(--speed), color var(--speed); }
.brandtile:hover { border-color: var(--brand-400); box-shadow: var(--shadow); color: var(--brand-700); text-decoration: none; }

/* Товар недели */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.feature__img { display: grid; place-items: center; aspect-ratio: 1 / 1; max-height: 520px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.feature__img img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.feature__k { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-700); background: var(--brand-50); padding: 5px 12px; border-radius: 99px; margin-bottom: 14px; }
.feature__brand { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .06em; }
.feature__h { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; font-weight: 600; margin: 0 0 12px; }
.feature__p { color: var(--text-2); line-height: 1.6; margin: 0 0 18px; max-width: 520px; }
.feature__price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.feature__price b { font-size: 30px; font-weight: 700; }
.feature__price s { color: var(--muted); }
.feature__acts { display: flex; gap: 10px; flex-wrap: wrap; }

/* Подборки */
.picks { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 14px; }
.pick { position: relative; display: flex; flex-direction: column; min-height: 340px; padding: 18px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; color: var(--text); transition: border-color var(--speed), box-shadow var(--speed); }
.pick:hover { text-decoration: none; border-color: var(--brand-400); box-shadow: var(--shadow); }
.pick__t { position: relative; z-index: 1; color: inherit; font-size: 14px; font-weight: 600; line-height: 1.3; max-width: 80%; }
.pick__img { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 78%; object-fit: contain; object-position: center bottom; padding: 10px; transition: transform .4s; background: transparent; }
.pick:hover .pick__img { transform: scale(1.05); }
.pick--all { background: var(--grad-brand); border-color: transparent; color: #fff; justify-content: space-between; }
.pick--all .pick__t { font-size: 18px; color: #fff; }
.pick--all:hover { border-color: transparent; }
.pick__n { align-self: flex-start; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.22); }
.pick__n svg { width: 22px; height: 22px; }

/* Полезная информация */
.info { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.info__txt { display: flex; flex-direction: column; gap: 12px; }
.info__lead { margin: -2px 0 6px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.info__card { display: flex; align-items: center; gap: 12px; padding: 18px 16px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 500; transition: border-color var(--speed), box-shadow var(--speed); }
.info__card:hover { text-decoration: none; border-color: var(--brand-400); box-shadow: var(--shadow); }
.info__ico { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--brand-300); color: var(--brand-600); }
.info__ico svg { width: 16px; height: 16px; }
.info__img { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; min-height: 280px; max-height: 460px; }
.info__img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }

/* Доставка */
.deliv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.deliv__art { background: var(--grad-soft); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; display: grid; place-items: center; min-height: 340px; }
.deliv__art svg { width: 100%; max-width: 420px; height: auto; }
.deliv__lead { color: var(--muted); margin: -4px 0 16px; }
.deliv__list { margin: 0 0 22px; display: grid; gap: 14px; }
.deliv__list dt { font-weight: 600; margin-bottom: 2px; }
.deliv__list dd { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.55; }

/* Строка Тони: сохранённый диалог */
.tline__resume { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding: 9px 12px; font-size: 13px; line-height: 1.45; color: var(--text-2); background: var(--brand-50); border: 1px solid var(--brand-200); border-radius: var(--r-sm); }
.tline__resume > svg { width: 18px; height: 18px; flex: none; color: var(--brand-600); }
.tline__resume > span { flex: 1; min-width: 200px; }
.tline__resume a { color: var(--brand-700); font-weight: 600; }
.tline__new { border: 0; background: transparent; color: var(--brand-700); font: inherit; font-size: 12.5px; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 0; }
.tline__resume.is-new { opacity: .55; }

@media (max-width: 1240px) {
  .hrow__track > .ptile, .brandtile { flex-basis: calc((100% - 4 * 16px) / 5); }
  .ctiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .hrow__track > .ptile, .brandtile { flex-basis: calc((100% - 3 * 16px) / 4); }
  .picks { grid-template-columns: repeat(min(var(--n, 5), 3), minmax(0, 1fr)); }
  .info { grid-template-columns: 1fr 1fr; }
  .info__txt { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  .tabs, .feature, .deliv { grid-template-columns: 1fr; gap: 20px; }
  .tabs__nav { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; }
  .hrow__track > .ptile, .brandtile { flex-basis: calc((100% - 2 * 12px) / 3); }
  .hrow__track { gap: 12px; }
}
@media (max-width: 640px) {
  .ctiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hrow__track > .ptile { flex-basis: 46%; }
  .brandtile { flex-basis: 40%; height: 72px; }
  .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pick { min-height: 260px; padding: 14px; }
  .info { grid-template-columns: 1fr; }
  .hrow__btn { display: none; }
  .hrow__ctl .sec__more { margin-right: 0; }
  .big__h { margin-bottom: 22px; }
}
