/* site.css — ПУБЛИЧНЫЙ ВЕБ-САЙТ магазина. Отдельная десктоп-первая вёрстка (не Mini App).
   Палитра наша: светлый фон · ОРАНЖЕВЫЙ только у кнопки-действия · графит-каркас · зелёный бренд/статус. */
:root {
  /* Фон ПЛОТНЕЕ белых карточек — чтобы товар «выступал», а не тонул в молочном поле. */
  --bg: #e8ebe6; --panel: #ffffff; --ink: #14201a; --muted: #67746c;
  --accent: #2f8a56; --accent-ink: #fff;          /* зелёный — бренд и статус «в наличии»/«проверено» */
  --action: var(--accent); --action-ink: #fff;    /* кнопки-действия = фирменный ЗЕЛЁНЫЙ (убрали оранжевый), следует теме */
  --action-h: #246b43;
  --frame: #2b3036; --frame-ink: #eef0f2;         /* графит — активные чипы/табы */
  /* Тёмная «оправа»: шапка и подвал — глубокий брендовый зелёный. Даёт структуру, убирает «плоскую белизну». */
  --head-bg: #143723; --head-ink: #eaf2ec; --head-muted: #a9c2b3; --head-soft: rgba(255,255,255,.10); --head-line: rgba(255,255,255,.16);
  --line: rgba(20,40,25,.14); --soft: #e7ebe6;
  --red: #e5484d; --amber: #e0a100;
  --maxw: 1280px; --radius: 14px;
  /* Тени глубже — объём вместо плоскости. */
  --shadow: 0 2px 6px rgba(20,33,26,.09), 0 14px 34px rgba(20,33,26,.11);
}
/* Тёмная тема (переключатель 🌙): переопределяем токены — шапка, карточки, секции темнеют сами. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1310; --panel: #1b211c; --ink: #e9efea; --muted: #94a399;
  --accent: #3ab466; --accent-ink: #0f1310;
  --frame: #33414a; --frame-ink: #eef0f2;
  --line: rgba(255,255,255,.12); --soft: #242c25;
  --head-bg: #10251a; --head-ink: #e9efea; --head-muted: #8fae9c; --head-soft: rgba(255,255,255,.08); --head-line: rgba(255,255,255,.12);
  --shadow: 0 2px 8px rgba(0,0,0,.5), 0 16px 38px rgba(0,0,0,.55);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto; } }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(14px, 4vw, 32px); width: 100%; }

/* Загрузка */
.boot { min-height: 70vh; display: grid; place-content: center; gap: 8px; text-align: center; color: var(--muted); }
.boot-logo { font-size: 34px; font-weight: 900; letter-spacing: 1px; color: var(--accent); }

/* Кнопки */
.btn { border: 0; border-radius: 12px; padding: 11px 18px; font-weight: 700; background: var(--soft); color: var(--ink); transition: background .15s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn--action { background: var(--action); color: var(--action-ink); }
.btn--action:hover { background: var(--action-h); }
.btn--ghost { background: transparent; border: 1px solid var(--line); }
.btn--block { width: 100%; }

/* ── Шапка ── */
/* Шапка на НЕЙТРАЛЬНЫХ токенах (panel/ink/soft/line): в светлой теме — светлая (как Uzum/Ali),
   в тёмной теме токены переопределяются → шапка сама становится тёмной. Контраст даёт плотный фон. */
.hdr { position: sticky; top: 0; z-index: 30; background: var(--panel); color: var(--ink); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.hdr--scrolled { box-shadow: 0 6px 20px rgba(20,33,26,.10); }
.hdr__row { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.brand { display: flex; align-items: baseline; gap: 8px; font-weight: 900; font-size: 22px; color: var(--accent); letter-spacing: .5px; white-space: nowrap; }
.brand small { font-size: 12px; font-weight: 600; color: var(--muted); }
.topnav a { color: var(--ink); opacity: .78; }
.topnav a:hover { opacity: 1; }
.search { flex: 1; min-width: 0; max-width: 620px; display: flex; align-items: center; gap: 8px;
  background: var(--soft); border: 1px solid transparent; border-radius: 12px; padding: 9px 14px; }
.search:focus-within { border-color: var(--accent); background: var(--panel); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); outline: none; }
.search input::placeholder { color: var(--muted); }
.hdr__tools { display: flex; align-items: center; gap: 6px; }
.pill { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 10px; padding: 8px 11px; font-size: 13px; font-weight: 600; }
.cartbtn { position: relative; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 12px; padding: 9px 13px; font-size: 15px; display: flex; align-items: center; gap: 7px; font-weight: 700; }
.cartbtn__count { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--action); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
/* Кнопка темы ☀️/🌙 */
.themebtn { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 10px; width: 38px; height: 38px; font-size: 16px; cursor: pointer; display: grid; place-items: center; flex: 0 0 auto; }
.themebtn:hover { border-color: var(--accent); }

/* Выпадашка языка с флагом страны (в шапке) */
.langdd { position: relative; }
.langdd__btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.langdd__flag { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(0,0,0,.07); }
.langdd__cev { font-size: 10px; opacity: .55; }
.langdd__menu { display: none; position: absolute; top: calc(100% + 5px); right: 0; z-index: 60;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 5px; min-width: 168px; flex-direction: column; gap: 2px; }
.langdd.is-open .langdd__menu { display: flex; }
.langdd__item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 11px; border: 0;
  background: transparent; color: var(--ink); font: inherit; font-size: 14px; border-radius: 9px; text-align: left; }
.langdd__item:hover { background: var(--soft); }
.langdd__item.is-active { font-weight: 700; }
.langdd__ok { margin-left: auto; color: var(--accent); font-weight: 700; }

/* Лента категорий */
.cats { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 999px; padding: 8px 16px; font-size: 14px; white-space: nowrap; transition: .15s; }
.chip:hover { border-color: var(--frame); }
.chip.on { background: var(--frame); color: var(--frame-ink); border-color: var(--frame); }

/* ── Герой ── */
.hero { margin: 18px 0; border-radius: 20px; overflow: hidden; position: relative; color: #fff;
  background: linear-gradient(120deg, #24503a, #2f8a56 70%); box-shadow: var(--shadow); }
.hero__in { padding: clamp(28px, 5vw, 60px) clamp(20px, 5vw, 56px); max-width: 640px; }
.hero h1 { margin: 0 0 10px; font-size: clamp(24px, 3.4vw, 40px); line-height: 1.12; font-weight: 900; }
.hero p { margin: 0 0 20px; font-size: clamp(14px, 1.6vw, 18px); opacity: .94; }
.hero .btn--action { font-size: 16px; padding: 13px 26px; }

/* Плитки категорий */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 22px 0; }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; background: var(--soft);
  border: 1px solid var(--line); display: flex; align-items: flex-end; transition: .18s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--frame); }
.tile span { position: relative; z-index: 2; padding: 16px 18px; font-size: 20px; font-weight: 800; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.tile::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(transparent 40%, rgba(0,0,0,.55)); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Трастовая лента */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 22px 0; }
.trust div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.trust b { color: var(--accent); font-size: 20px; }

/* Заголовок секции + сортировка */
.secbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 12px; flex-wrap: wrap; }
.secbar h2 { margin: 0; font-size: 22px; font-weight: 800; }
.sortsel { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 14px; }

/* ── Сетка товаров ── */
/* Число колонок фиксируем по ширине экрана (как Uzum/Ali), а не «плавающим» auto-fill: так карточка
   всегда читаемого размера. 5 на десктопе → 4 на ноуте → 3 на планшете → 2 на телефоне. */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(10px, 1.2vw, 16px); margin-bottom: 40px; }
@media (min-width: 560px)  { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 880px)  { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1160px) { .grid { grid-template-columns: repeat(5, 1fr); } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; box-shadow: 0 1px 3px rgba(20,33,26,.06), 0 5px 14px rgba(20,33,26,.06); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 6px 16px rgba(20,33,26,.12), 0 18px 40px rgba(20,33,26,.13); }
/* Фото чуть выше квадрата (4:5) — кашпо вытянутые, так они помещаются лучше и не гигантские */
.card__imgwrap { position: relative; aspect-ratio: 4 / 5; background: #f6f8f6; overflow: hidden; cursor: pointer; }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card__img { transform: scale(1.04); }
.card__ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 40px; color: var(--muted); }
.card__badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 5px; flex-wrap: wrap; }
/* Тихая иконка-корзина в углу фото: серая по умолчанию, оранжевая только на наведении — не кричит из сетки */
.card__cart { position: absolute; bottom: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,255,255,.94); color: var(--frame); display: grid; place-items: center;
  cursor: pointer; transition: background .15s, color .15s, transform .1s; box-shadow: 0 1px 5px rgba(20,33,26,.14); }
.card__cart:hover { background: var(--action); color: #fff; border-color: var(--action); }
.card__cart:active { transform: scale(.9); }
.card__swatches { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; min-height: 15px; }
.card__swatch-more { font-size: 11px; color: var(--muted); font-weight: 600; margin-left: 1px; }
.card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 1px; }
.badge { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #fff; }
.badge--new { background: var(--accent); } .badge--sale { background: var(--action); } .badge--disc { background: var(--red); } .badge--colors { background: var(--muted); }
.card__body { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card__name { font-size: 13.5px; font-weight: 600; line-height: 1.3; cursor: pointer;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card__rating { font-size: 12px; color: var(--muted); }
.card__price { display: flex; align-items: baseline; gap: 7px; margin-top: auto; }
.card__price b { font-size: 16px; font-weight: 800; }
.card__old { color: var(--muted); text-decoration: line-through; font-size: 12.5px; font-weight: 400; }
.card__stock { font-size: 11.5px; font-weight: 700; }
.card__stock.in { color: var(--accent); } .card__stock.order { color: var(--muted); } .card__stock.no { color: var(--red); }

/* ── Подвал ── */
.footer { background: var(--head-bg); color: var(--head-ink); margin-top: 20px; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 26px; padding: 40px 0 26px; }
.footer h4 { margin: 0 0 12px; font-size: 15px; color: #fff; }
.footer a, .footer p { color: #c4cbc6; font-size: 14px; margin: 6px 0; }
.footer a:hover { color: #fff; }
.footer .brand { color: #7fd0a0; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; font-size: 12.5px; color: #9aa39d; }
.footer__soc { display: flex; gap: 12px; margin-top: 12px; }
.footer__soc a { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.1); display: grid; place-items: center; }

/* ── Модалка/дровер ── */
.ov { position: fixed; inset: 0; z-index: 60; background: rgba(20,33,26,.5); opacity: 0; pointer-events: none; transition: opacity .2s; }
.ov.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(420px, 92vw); background: var(--bg); box-shadow: -8px 0 30px rgba(0,0,0,.2);
  transform: translateX(100%); transition: transform .28s cubic-bezier(.2,.85,.25,1); display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.modal { position: fixed; z-index: 61; inset: 0; display: grid; place-items: center; padding: 16px; pointer-events: none; }
.modal__card { background: var(--bg); border-radius: 18px; width: min(880px, 96vw); max-height: 92vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3);
  transform: translateY(14px) scale(.98); opacity: 0; transition: .22s; pointer-events: auto; }
.modal.open .modal__card { transform: none; opacity: 1; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.sheet-head h3 { margin: 0; font-size: 17px; }
.x { border: 0; background: var(--soft); width: 34px; height: 34px; border-radius: 999px; font-size: 16px; }
.sheet-body { padding: 16px 18px; overflow: auto; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.inp { width: 100%; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 11px 13px; font: inherit; }

/* Карточка товара в модалке (2 колонки на широком) */
.pv { display: grid; gap: 20px; padding: 18px; }
.pv__main { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: #f6f8f6; }
/* Ряд миниатюр: в одну строку с горизонтальной прокруткой (стрелки появляются при переполнении). */
.thumbs-wrap { position: relative; margin-top: 10px; }
.pv__thumbs { display: flex; gap: 8px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 2px; }
.pv__thumbs::-webkit-scrollbar { display: none; }
.pv__thumbs img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; cursor: pointer; opacity: .55; border: 2px solid transparent; flex: 0 0 auto; transition: opacity .12s; }
.pv__thumbs img.of-color { opacity: 1; border-color: var(--line); }   /* фото выбранного цвета (но не открытое крупно) */
.pv__thumbs img.on { opacity: 1; border-color: var(--accent); }       /* именно это фото сейчас в большом окне */
.thumb-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink); box-shadow: var(--shadow); font-size: 16px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.thumb-arrow.left { left: -4px; } .thumb-arrow.right { right: -4px; }
.thumb-arrow[hidden] { display: none; }
.pv__price { font-size: 26px; font-weight: 800; margin: 6px 0; }
.pv__vars { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.vbtn { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 8px 14px; font-size: 14px; color: var(--ink); cursor: pointer; }
.vbtn.on { border-color: var(--frame); background: var(--frame); color: #fff; }
.vbtn.off { opacity: .5; }
.vbtn.on .swatch { border-color: #fff; }
/* Кружок-свотч цвета — общий для кнопки выбора цвета и рядка мини-кружков в карточке сетки (та же .swatch, что в Telegram-витрине). */
.swatch { display: inline-block; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 8px 0; }
.stepper button { border: 0; background: var(--panel); width: 40px; height: 42px; font-size: 18px; }
.stepper span { min-width: 44px; text-align: center; font-weight: 700; }

/* Строки корзины */
.citem { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.citem img { width: 62px; height: 62px; border-radius: 10px; object-fit: cover; }
.citem__x { border: 0; background: transparent; color: var(--muted); font-size: 18px; margin-left: auto; }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; margin: 12px 0; }
.consent a { color: var(--accent); text-decoration: underline; }

@media (min-width: 720px) {
  .pv { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); padding: 22px; align-items: start; }
  .pv__buy { position: sticky; top: 82px; } /* блок покупки следует за прокруткой, как у Uzum */
}
@media (max-width: 700px) {
  .brand { font-size: 18px; } .brand small { display: none; }
  .hdr__row { flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
}

/* ── Финал: топ-навигация, хлебные крошки, страницы, контакты ── */
.topnav { display: flex; gap: 16px; align-items: center; white-space: nowrap; }
.topnav a { color: var(--ink); font-weight: 600; font-size: 14px; opacity: .8; }
.topnav a:hover { opacity: 1; color: var(--accent); }
.crumbs { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; font-size: 13px; color: var(--muted); margin: 2px 0 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs__cur { color: var(--ink); font-weight: 600; }
.crumbs__sep { opacity: .45; }
.footer__navlink { cursor: pointer; }
.page { padding: 22px 0 44px; }
.page__h1 { font-size: 30px; margin: 2px 0 14px; }
.page__lead { font-size: 16px; line-height: 1.7; color: var(--ink); max-width: 760px; }
.contacts { display: grid; grid-template-columns: 1fr 1.25fr; gap: 26px; align-items: start; margin-top: 10px; }
.contacts__info p { margin: 9px 0; font-size: 15px; }
.contacts__info a { color: var(--ink); }
.contacts__social { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.contacts__map { min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.contacts__mapicon { font-size: 48px; line-height: 1; }
@media (max-width: 760px) { .topnav { display: none; } .contacts { grid-template-columns: 1fr; } }

/* ── Промо-карусель (общий датасет с Telegram-витриной; стили-родня storefront/css/style.css:256-291) ── */
.promo { max-width: var(--maxw); margin: 14px auto 4px; padding: 0 18px; }
.promo-vp { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 16px; -webkit-overflow-scrolling: touch; }
.promo-vp::-webkit-scrollbar { display: none; }
.promo-vp.single { overflow: hidden; }
.promo-slide { flex: 0 0 100%; scroll-snap-align: center; cursor: pointer; position: relative; container-type: inline-size; }
.promo-imgwrap { position: relative; aspect-ratio: 16 / 5; overflow: hidden; border-radius: 16px; }
.promo-img { width: 100%; height: 100%; display: block; position: relative; z-index: 1; }
.promo-imgblur { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(20px) saturate(1.1); transform: scale(1.16); }
.promo-img.feather { -webkit-mask-image: radial-gradient(ellipse 90% 86% at center, #000 60%, transparent 100%); mask-image: radial-gradient(ellipse 90% 86% at center, #000 60%, transparent 100%); }
.promo-cap { position: absolute; left: 0; right: 0; padding: 0 5cqw; text-align: center; line-height: 1.15; text-shadow: 0 1px 6px rgba(0,0,0,.6); word-break: break-word; pointer-events: none; }
.promo-cap.pos-header { top: 7%; }
.promo-cap.pos-center { top: 50%; transform: translateY(-50%); }
.promo-cap.pos-footer { bottom: 7%; }
.promo-cap-in { display: inline-block; }
.promo-cap-in.fx { opacity: 0; }
.promo-cap-in.fx.fx-type { opacity: 1; }
.promo-cap-in.fx.play.fx-fade { animation: promoFade .7s ease forwards; }
.promo-cap-in.fx.play.fx-slideR { animation: promoSlideR .6s cubic-bezier(.2,.7,.2,1) forwards; }
.promo-cap-in.fx.play.fx-slideL { animation: promoSlideL .6s cubic-bezier(.2,.7,.2,1) forwards; }
.promo-cap-in.fx.play.fx-rise { animation: promoRise .6s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes promoFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes promoSlideR { from { opacity: 0; transform: translateX(-42px); } to { opacity: 1; transform: none; } }
@keyframes promoSlideL { from { opacity: 0; transform: translateX(42px); } to { opacity: 1; transform: none; } }
@keyframes promoRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .promo-cap-in.fx { opacity: 1 !important; animation: none !important; } }
.promo-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 2px; }
.promo-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--line); transition: width .2s, background .2s; }
.promo-dot.on { width: 20px; background: var(--accent); }
.promo-ov { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.5); display: grid; place-items: center; padding: 22px; opacity: 0; transition: opacity .24s ease; }
.promo-ov.open { opacity: 1; }
.promo-modal { position: relative; width: 100%; max-width: 460px; max-height: 88vh; overflow-y: auto; background: var(--panel); color: var(--ink); border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.3); transform: translateY(12px) scale(.98); transition: transform .24s ease; container-type: inline-size; }
.promo-modal-out { color: var(--ink); padding: 12px 16px; text-align: center; line-height: 1.3; word-break: break-word; }
.promo-ov.open .promo-modal { transform: none; }
.promo-modal-media { position: relative; container-type: inline-size; }
.promo-modal-img { width: 100%; display: block; border-radius: 18px; }
.promo-x { position: absolute; top: 8px; right: 8px; z-index: 2; width: 32px; height: 32px; border-radius: 999px; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 15px; cursor: pointer; display: grid; place-items: center; }

/* ─── Карточка товара: оптовые цены, метки, описание, ручной ввод количества ─── */
/* Поле количества между кнопками −/+ : раньше там был текст, и набрать 45 штук можно
   было только сорока четырьмя нажатиями. */
.stepper .qty-inp {
  width: 56px; text-align: center;
  border: none; background: none; color: var(--ink);
  font-size: 16px; font-weight: 600; padding: 0;
  -moz-appearance: textfield;
}
.stepper .qty-inp::-webkit-outer-spin-button,
.stepper .qty-inp::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper .qty-inp:focus { outline: none; }

/* Таблица оптовых порогов — покупатель должен видеть, что от 10 штук дешевле */
.pv__tiers { margin: 10px 0 12px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pv__tier { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; font-size: 14px; }
.pv__tier + .pv__tier { border-top: 1px solid var(--line); }
.pv__tier-on { margin-left: 10px; font-size: 13px; font-weight: 600; color: var(--action, var(--accent)); }

.pv__badges { display: flex; gap: 6px; margin-bottom: 8px; }

/* Характеристики товара — иконки-строки (как в Uzum): читается с одного взгляда */
.pv__features { margin: 16px 0 4px; }
.pv__features-h { font-size: 15px; font-weight: 700; margin-bottom: 9px; }
.pv__features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.pv__feat { display: flex; align-items: center; gap: 9px; padding: 9px 11px; background: var(--soft); border-radius: 10px; font-size: 13px; line-height: 1.25; }
.pv__feat-ic { font-size: 17px; flex: 0 0 auto; }
.pv__desc { margin-top: 16px; }
.pv__desc-h { margin: 0 0 6px; font-size: 15px; }
.pv__desc-t { margin: 0; white-space: pre-wrap; line-height: 1.6; color: var(--ink); }

/* ── Страница товара в стиле Uzum: блок покупки + широкие секции под галереей ── */
.pv__title { font-size: 22px; font-weight: 800; line-height: 1.25; }
.pv__subrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 2px 0 8px; font-size: 13px; }
.pv__avail { font-weight: 700; }
.pv__avail--in { color: var(--accent); } .pv__avail--order { color: var(--amber); } .pv__avail--no { color: var(--red); }
.pv__brand { color: var(--muted); }
.pv__features { margin: 0 0 14px; }
.pv-sec { padding: 20px 18px 6px; margin: 8px 0 0; max-width: 1000px; border-top: 1px solid var(--line); }
.pv-sec__h { font-size: 18px; font-weight: 800; margin: 20px 0 12px; }
.pv-sec__text { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink); white-space: pre-wrap; max-width: 760px; }
.pv-specs { max-width: 620px; }
.pv-spec { display: flex; align-items: baseline; gap: 8px; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.pv-spec:last-child { border-bottom: 0; }
.pv-spec__k { color: var(--muted); flex: 0 0 auto; }
.pv-spec__dot { flex: 1; }
.pv-spec__v { flex: 0 0 auto; font-weight: 600; text-align: right; }

/* Фото-буклеты (A+/rich-контент): товар «в деле» — крупные фото + подписи, в столбик */
.pv-rich { margin: 8px 0; padding: 4px 18px 6px; border-top: 1px solid var(--line); max-width: 1000px; }
.pv-rich__item { margin: 0 0 22px; }
.pv-rich__img { width: 100%; border-radius: var(--radius); display: block; box-shadow: 0 1px 3px rgba(20,33,26,.06), 0 6px 18px rgba(20,33,26,.07); }
.pv-rich__cap { margin: 11px 2px 0; font-size: 15px; line-height: 1.6; color: var(--ink); max-width: 760px; }

/* Строка позиции в корзине: цена × количество = сумма, и подсказка про опт */
.citem__price { font-size: 13px; margin: 4px 0 2px; color: var(--ink); }
.citem__tier { font-size: 12.5px; margin-bottom: 4px; color: var(--action, var(--accent)); font-weight: 600; }

/* ── Учётка покупателя: вход через Telegram, кабинет, проверка заказа ── */
.acctbtn { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 12px;
  padding: 9px 13px; font-size: 15px; display: flex; align-items: center; gap: 7px; font-weight: 700; }
.acctbtn:hover { border-color: var(--accent); }
.acctbtn__t { font-size: 13.5px; max-width: 10ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* На узком экране в шапке тесно: оставляем значок, подпись прячем (смысл ясен из иконки). */
@media (max-width: 720px) { .acctbtn__t { display: none; } }

.login__lead { font-size: 15px; line-height: 1.55; margin-bottom: 14px; color: var(--ink); }
.login__action { margin-bottom: 10px; }
.login__hint { font-size: 13.5px; line-height: 1.5; margin-top: 6px; color: var(--ink); }
.login__url { margin-top: 5px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--soft); font-size: 12.5px; word-break: break-all; user-select: all; color: var(--ink); }
.login__status { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--accent); }
.login__sep { height: 1px; background: var(--line); margin: 18px 0 14px; }
.thanks__login { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

.acct__head { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.acct__name { font-size: 18px; font-weight: 700; }
.acct__sub { font-size: 14px; margin-top: 3px; color: var(--ink); }
.acct__h { margin: 14px 0 8px; font-size: 15px; }
.acct__orders { display: flex; flex-direction: column; gap: 10px; }
.acct__empty { padding: 18px 0; text-align: center; font-size: 14px; color: var(--ink); }

.ocard { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--panel); }
.ocard__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ocard__st { font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: var(--soft); color: var(--ink); white-space: nowrap; }
.ocard__st--delivering, .ocard__st--accepted { background: var(--accent); color: #fff; }
.ocard__st--delivered, .ocard__st--closed { background: var(--frame); color: var(--frame-ink); }
.ocard__st--rejected, .ocard__st--cancelled { background: var(--red); color: #fff; }
.ocard__date { font-size: 12.5px; margin-top: 2px; color: var(--ink); }
.ocard__items { margin: 8px 0; font-size: 13.5px; line-height: 1.6; }
.ocard__sum { display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px; border-top: 1px solid var(--line); font-size: 14.5px; }

.track__out { margin-top: 14px; }
.track__err { padding: 12px 14px; border-radius: 10px; background: var(--soft);
  font-size: 14px; font-weight: 600; color: var(--red); }
