/* Раскладка: тёмная витрина в цветах логотипа (лайм на почти чёрном с изумрудным свечением).
   Шапка и крупные плитки с фото в духе streetwear-магазинов, на телефоне нижнее меню. Одна тема намеренно. */
/* Шрифты лежат у нас (OFL): Google Fonts недоступен в Китае, а запрос к нему передаёт адрес покупателя за границу. */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/oswald-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; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/oswald-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/oswald-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/onest-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; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/onest-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/onest-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  color-scheme: dark;
  --bg: #070b09;
  --bg-2: #0b120f;
  --surface: #111915;
  --surface-2: #19231e;
  --line: #24312a;
  --ink: #f1f5ee;
  --muted: #8f9b93;
  --lime: #dcef3a;
  --lime-hover: #e8f86a;
  --on-lime: #0a0f0b;
  --emerald: #1d9a6c;
  --emerald-deep: #0b3325;
  --hot: #ff6a4d;
  --photo-text: #ffffff;
  --scrim: rgba(0, 0, 0, .7);
  --shade: rgba(4, 8, 6, .82);
  --accent-ink: var(--lime);      /* лаймовый текст и иконки на фоне страницы */
  --header-bg: rgba(7, 11, 9, .88);

  --font-display: "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --gl: max(16px, env(safe-area-inset-left, 0px));
  --gr: max(16px, env(safe-area-inset-right, 0px));
  --tabbar-h: 68px;
}

/* ---------- Светлая тема ----------
   Включается переключателем в шапке (атрибут data-ui="light", выбор запоминается).
   Лайм на белом не читается, поэтому лаймовый текст становится тёмно-оливковым (--accent-ink),
   а лаймовые кнопки остаются лаймовыми с тёмным текстом. Блоки на фото (главный баннер, ASTTA AI,
   ролики, заставка) остаются тёмными в обеих темах: на фото белый текст читается лучше. */
:root[data-ui="light"] {
  color-scheme: light;
  --bg: #f3f5ee;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #ecefe5;
  --line: #d9dfd0;
  --ink: #101813;
  --muted: #5b675e;
  --lime-hover: #d0e52c;
  --accent-ink: #557000;
  --hot: #e0482b;
  --scrim: rgba(16, 24, 19, .45);
  --shade: rgba(4, 8, 6, .82);
  --header-bg: rgba(243, 245, 238, .9);
}
/* Тёмные «острова» в светлой теме: возвращаем им тёмную палитру. */
:root[data-ui="light"] :is(.hero, .ai, .trends, .splash) {
  color-scheme: dark;
  --bg: #070b09; --bg-2: #0b120f; --surface: #111915; --surface-2: #19231e; --line: #24312a;
  --ink: #f1f5ee; --muted: #8f9b93; --accent-ink: var(--lime);
  color: var(--ink);
}
/* Логотип: в тёмной теме — белая «А» и белое слово, в светлой — версия для светлого фона (чёрная «А» и слово).
   Показываемую версию не трогаем через display, чтобы работали правила вроде «спрятать слово на 900–1023 px». */
:root:not([data-ui="light"]) .brand--light, :root[data-ui="light"] .brand--dark { display: none; }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.45 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0 0 auto; z-index: 25;
  height: env(safe-area-inset-top, 0px);
  background: var(--bg);
}
html.is-locked, html.is-locked body { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--font-mono); letter-spacing: -.01em; }
.display { font-family: var(--font-display); text-transform: uppercase; letter-spacing: -.005em; }

.ic {
  width: 22px; height: 22px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.ic--fill { fill: currentColor; stroke: none; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  border: 0; border-radius: 999px;
  font: 600 15px/1 var(--font-body); letter-spacing: .02em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: transform .15s, background-color .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn .ic { width: 20px; height: 20px; }
.btn--lime, .btn--accent { background: var(--lime); color: var(--on-lime); }
.btn--lime:hover, .btn--accent:hover { background: var(--lime-hover); }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--black { background: var(--on-lime); color: var(--lime); }
.btn--ghost { background: var(--surface-2); color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--text { background: none; color: var(--ink); padding: 0 8px; }
.btn--text .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 13px; }
.btn--wide { width: 100%; }
.iconbtn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--surface-2); color: var(--ink);
}
.roundbtn {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: var(--lime); color: var(--on-lime);
  transition: transform .2s;
}
.roundbtn:hover { transform: rotate(-12deg) scale(1.05); }
.roundbtn .ic { width: 20px; height: 20px; stroke-width: 2; }
.count {
  position: absolute; top: 2px; right: 0;
  display: grid; place-items: center;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: var(--lime); color: var(--on-lime);
  font: 700 11px/1 var(--font-body);
}

/* ---------- Шапка ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.topbar__in {
  max-width: 1320px; margin: 0 auto;
  padding-left: var(--gl); padding-right: var(--gr);
  display: flex; align-items: center; gap: 16px; height: 66px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand__mark { width: 32px; height: auto; }
.brand__word { width: 92px; height: auto; }
.topnav, .topbar .mode--top { display: none; }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.topbtn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 10px; border: 0; border-radius: 999px; background: none;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
}
.topbtn span { display: none; }
.topbtn:hover { color: var(--accent-ink); }
.menubtn {
  display: inline-grid; place-items: center; width: 46px; height: 46px; margin-left: 4px;
  border: 0; border-radius: 14px; background: var(--lime); color: var(--on-lime);
}
.menubtn .ic { stroke-width: 2.2; }

/* Переключатель разделов */
.mode {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr;
  padding: 4px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.mode button {
  position: relative; z-index: 1; padding: 10px 16px; border: 0; border-radius: 999px; background: none;
  font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color .25s;
}
.mode button[aria-checked="true"] { color: var(--on-lime); }
.mode__thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 999px; background: var(--lime);
  transition: transform .35s cubic-bezier(.3, .7, .2, 1);
}
html[data-mode="supplier"] .mode__thumb { transform: translateX(100%); }
/* Ширину и сдвиг подложки точнее задаёт скрипт по выбранной кнопке; правило выше — запасное, без скрипта. */
.mode__thumb { transition: transform .35s cubic-bezier(.3, .7, .2, 1), width .35s cubic-bezier(.3, .7, .2, 1); }

.subbar__in {
  max-width: 1320px; margin: 0 auto;
  padding-left: var(--gl); padding-right: var(--gr); padding-block: 4px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.subbar .mode { flex: 1; max-width: 360px; }
.rate { font-size: 13px; color: var(--muted); white-space: nowrap; }
.rate b { color: var(--accent-ink); font-weight: 500; }

/* ---------- Каркас ---------- */
main {
  max-width: 1320px; margin: 0 auto;
  padding-left: var(--gl); padding-right: var(--gr); padding-block: 0 48px;
}
.view { display: flex; flex-direction: column; gap: 64px; }
.block { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 90px; }
.block__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.block__head h2, .pagehead h1, .community h2 {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(36px, 9vw, 64px); line-height: 1; letter-spacing: -.005em;
}
.more {
  display: inline-flex; align-items: center; gap: 6px; padding-bottom: 6px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
}
.more .ic { width: 18px; height: 18px; color: var(--accent-ink); }
.more:hover { color: var(--accent-ink); }
.hint { flex-basis: 100%; font-size: 15px; color: var(--muted); }
.block__title { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.block__lead { margin: 0; max-width: 44ch; font-size: 16px; color: var(--muted); }
.pagehead { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.pagehead h1 { font-size: clamp(48px, 13vw, 96px); }
.pagehead__sub { color: var(--muted); font-size: 16px; }
.pagehead__sub:empty { display: none; }

.cats, .rail, .chips, .stories {
  margin-left: calc(-1 * var(--gl)); margin-right: calc(-1 * var(--gr));
  padding-left: var(--gl); padding-right: var(--gr);
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
}
.cats::-webkit-scrollbar, .rail::-webkit-scrollbar, .chips::-webkit-scrollbar, .stories::-webkit-scrollbar { display: none; }

/* ---------- Герой ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-lg);
  background:
    radial-gradient(70% 60% at 85% 10%, rgba(29, 154, 108, .55), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, rgba(220, 239, 58, .14), transparent 70%),
    var(--bg-2);
  touch-action: pan-y;
}
.hero__visual { position: relative; aspect-ratio: 3 / 4; max-height: 680px; width: 100%; }
.hero__media { position: absolute; inset: 0; display: grid; }
.hero__media img {
  grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04); transition: opacity .8s ease, transform 1.2s ease;
}
.hero__media img.is-on { opacity: 1; transform: none; }
.hero__visual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 11, 9, .35) 0%, rgba(7, 11, 9, 0) 25%, rgba(7, 11, 9, 0) 40%, var(--shade) 78%, var(--bg-2) 100%);
}
.hero__meta {
  position: absolute; z-index: 2; top: 18px; left: 18px; right: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.hero__tag {
  padding: 7px 12px; border-radius: 999px; background: var(--lime); color: var(--on-lime);
  font: 600 13px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase;
}
.hero__count { display: flex; align-items: center; gap: 10px; font: 500 13px/1 var(--font-mono); color: var(--photo-text); }
.hero__count i { width: 40px; height: 1px; background: currentColor; opacity: .6; }
.hero__copy {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 22px; padding: 22px 20px 26px;
}
.hero__texts { display: grid; }
.htext {
  grid-area: 1 / 1; display: flex; flex-direction: column; gap: 12px;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .5s ease, transform .6s ease, visibility 0s .6s;
}
.htext.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .6s ease .1s, transform .7s ease .1s; }
.htext h1, .htext h2 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(56px, 16vw, 132px); line-height: .96; letter-spacing: -.01em;
  color: var(--photo-text);
}
.htext p { font-size: 17px; color: var(--photo-text); opacity: .86; max-width: 28ch; }
.hero__cta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero__vword { display: none; }
.hero__dots { display: none; position: absolute; z-index: 3; gap: 6px; }
.hero__dots button {
  position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px;
  background: rgba(255, 255, 255, .4); transition: width .3s, background-color .3s;
}
.hero__dots button::before { content: ""; position: absolute; inset: -12px -4px; }
.hero__dots button[aria-selected="true"] { width: 26px; background: var(--lime); }

/* ---------- Полоса преимуществ: светящаяся лента во всю ширину ---------- */
.perkband {
  position: relative; overflow: hidden; isolation: isolate;
  margin: -64px calc(50% - 50vw) 0; padding-block: 44px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  background:
    radial-gradient(60% 90% at 0% 0%, rgba(70, 230, 150, .42), rgba(20, 120, 80, .12) 45%, transparent 70%),
    radial-gradient(40% 60% at 100% 0%, rgba(30, 140, 95, .18), transparent 70%),
    #020504;
}
/* дуга света снизу справа */
.perkband::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 150%; height: 420px; right: -80%; bottom: -330px; border-radius: 50%;
  border-top: 2px solid rgba(190, 255, 220, .95);
  box-shadow: 0 -12px 50px rgba(60, 230, 150, .55), inset 0 18px 60px rgba(60, 230, 150, .3);
  transform: rotate(-13deg);
}
.perkband__strip {
  position: relative;
  background: linear-gradient(180deg, rgba(12, 34, 24, .55), rgba(2, 6, 4, .85));
}
.perkband__strip::before, .perkband__strip::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(140, 255, 195, .95), rgba(60, 200, 130, .35) 35%, rgba(60, 200, 130, .3) 65%, rgba(140, 255, 195, .9));
  box-shadow: 0 0 12px rgba(70, 230, 150, .6);
}
.perkband__strip::before { top: 0; }
.perkband__strip::after { bottom: 0; }
.perks {
  list-style: none; margin: 0 auto; max-width: 1320px;
  padding-left: var(--gl); padding-right: var(--gr); padding-block: 6px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
}
.perks li {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 4px;
  font-size: 13px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; line-height: 1.25;
  color: var(--photo-text);
}
.perks .ic { flex: none; width: 30px; height: 30px; color: var(--accent-ink); filter: drop-shadow(0 0 6px rgba(220, 239, 58, .45)); }

/* В светлой теме лента преимуществ светлая: мягкое зелёное свечение вместо чёрной полосы. */
:root[data-ui="light"] .perkband {
  background:
    radial-gradient(60% 90% at 0% 0%, rgba(29, 154, 108, .22), transparent 70%),
    radial-gradient(40% 60% at 100% 0%, rgba(220, 239, 58, .25), transparent 70%),
    var(--bg);
}
:root[data-ui="light"] .perkband::after { border-top-color: rgba(29, 154, 108, .7); box-shadow: 0 -12px 50px rgba(29, 154, 108, .25), inset 0 18px 60px rgba(29, 154, 108, .12); }
:root[data-ui="light"] .perkband__strip { background: rgba(255, 255, 255, .72); }
:root[data-ui="light"] .perkband__strip::before, :root[data-ui="light"] .perkband__strip::after {
  background: linear-gradient(90deg, rgba(29, 154, 108, .8), rgba(29, 154, 108, .25) 35%, rgba(29, 154, 108, .25) 65%, rgba(29, 154, 108, .8));
  box-shadow: none;
}
:root[data-ui="light"] .perks li { color: var(--ink); }
:root[data-ui="light"] .perks .ic { filter: none; }

/* ---------- Частые вопросы ---------- */
.faq__list { display: grid; gap: 10px; }
.faq__item { border-radius: var(--r-sm); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; font-size: 16px; font-weight: 600; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; font-size: 22px; line-height: 1; color: var(--accent-ink); }
.faq__item[open] summary::after { content: "−"; }
.faq__item summary:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; border-radius: var(--r-sm); }
.faq__item p { margin: 0; padding: 0 20px 18px; max-width: 72ch; color: var(--muted); }
@media (min-width: 900px) { .faq__list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }

/* ---------- Согласие на ПДн и плашка cookie ---------- */
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--lime); cursor: pointer; }
.consent a { color: var(--ink); text-underline-offset: 2px; }
.consent.is-error { color: var(--hot); }
.consent.is-error input { outline: 2px solid var(--hot); outline-offset: 2px; border-radius: 4px; }
.cookies {
  position: fixed; z-index: 60; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px));
  bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; max-width: 760px; margin: 0 auto; padding: 16px 18px;
  border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 12px 40px rgba(0, 0, 0, .35);
}
/* Пока открыто окно (шторка, меню), плашка не мешает: прячем и возвращаем после закрытия. */
html.is-locked .cookies { display: none; }
.cookies p { flex: 1 1 280px; margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.cookies a { color: var(--ink); }
.cookies__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.foot__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; width: 100%; font-size: 13.5px; }
.foot__legal a, .foot__legal button { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.foot__legal a:hover, .foot__legal button:hover { color: var(--ink); }
@media (min-width: 900px) { .cookies { bottom: max(20px, env(safe-area-inset-bottom, 0px)); } }

/* ---------- Плитки подборок ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
/* Подборок пять: первая на две колонки, чтобы ряды были ровными (2 + 2 + 1 → широкая + 2 + 2, на компьютере широкая + 1 и 3). */
.tiles .tile:first-child { grid-column: span 2; aspect-ratio: 8 / 5; }
.tile {
  position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%;
  padding: 0; border: 0; border-radius: var(--r-md); background: var(--surface); color: var(--photo-text);
  text-align: left; text-decoration: none;
}
/* тонкая светящаяся рамка поверх фото */
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(90, 220, 150, .35), inset 0 0 24px rgba(40, 200, 120, .12);
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.tile:hover img { transform: scale(1.06); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2, 8, 5, 0) 45%, rgba(2, 8, 5, .82) 100%); }
.tile__body { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 14px; }
.tile__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile__title { font: 600 clamp(20px, 5.4vw, 30px)/1.05 var(--font-display); text-transform: uppercase; }
.tile__sub { font-size: 13px; opacity: .8; }
.tile .roundbtn { position: absolute; z-index: 1; top: 12px; right: 12px; width: 40px; height: 40px; }

/* ---------- Категории ---------- */
.cats { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 12px; padding-bottom: 4px; }
.cat {
  position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%;
  padding: 0; border: 0; border-radius: var(--r-md); background: var(--surface); color: var(--photo-text);
  scroll-snap-align: start; text-align: left;
}
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat:hover img { transform: scale(1.06); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .75)); }
.cat span { position: absolute; z-index: 1; left: 12px; bottom: 12px; right: 12px; font: 600 18px/1 var(--font-display); text-transform: uppercase; }

/* ---------- Баннер «по ссылке» ---------- */
.banner {
  position: relative; overflow: hidden; display: grid; gap: 24px;
  padding: 26px 20px 20px; border-radius: var(--r-lg);
  background: var(--lime); color: var(--on-lime);
  scroll-margin-top: 90px;
}
.banner__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; position: relative; z-index: 1; }
.banner h2 { font: 700 clamp(44px, 12.5vw, 104px)/.98 var(--font-display); text-transform: uppercase; letter-spacing: -.01em; }
.banner p { font-size: 17px; max-width: 34ch; opacity: .8; }
.linkform { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 520px; }
.linkform input {
  height: 56px; padding: 0 20px; border: 0; border-radius: 999px;
  background: rgba(10, 15, 11, .1); box-shadow: inset 0 0 0 1.5px rgba(10, 15, 11, .25);
  color: var(--on-lime); font-size: 16px; outline: none; min-width: 0;
}
.linkform input::placeholder { color: rgba(10, 15, 11, .55); }
.linkform input:focus { box-shadow: inset 0 0 0 2px var(--on-lime); }
.linkform .btn { min-height: 56px; }
/* Ссылка и фото — два равных способа: кнопка фото той же высоты и ширины, что и строка со ссылкой. */
.linkor { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 520px; margin: -6px 0; color: var(--on-lime); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; opacity: .6; }
.linkor::before, .linkor::after { content: ''; flex: 1; height: 1.5px; background: currentColor; opacity: .35; }
.linkform__photo {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 520px; min-height: 56px;
  padding: 0 20px; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 2px var(--on-lime);
  color: var(--on-lime); font: 600 15px/1.2 var(--font-display); letter-spacing: .04em; text-transform: uppercase; cursor: pointer;
  transition: background .2s, color .2s;
}
.linkform__photo .ic { width: 20px; height: 20px; }
.linkform__photo:hover { background: var(--on-lime); color: var(--lime); }
.linkform__photo:focus-visible { outline: 2px solid var(--on-lime); outline-offset: 3px; }
.order__link { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.order__link .ic { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.banner__media { margin: 0; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; }
.banner__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Карточки товара ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 200px; gap: 12px; padding-bottom: 6px; }
.rail .card { scroll-snap-align: start; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-md); overflow: hidden;
  transition: transform .25s, background-color .25s;
}
.card:hover { transform: translateY(-3px); background: var(--surface-2); }
.card__media { position: relative; background: var(--surface-2); }
.card__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.card__add {
  position: absolute; z-index: 2; right: 10px; bottom: 10px;
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 0; border-radius: 50%; background: var(--lime); color: var(--on-lime);
}
.card__add .ic { width: 20px; height: 20px; stroke-width: 2.2; }
.card__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 16px; min-width: 0; }
.card__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font: 600 22px/1.1 var(--font-display); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.card__price s { font: 400 13px/1 var(--font-body); color: var(--muted); }
html[data-mode="supplier"] .card__price { color: var(--accent-ink); }
.card__unit { font-size: 12.5px; color: var(--muted); }
.card__unit:empty { display: none; }
.card__title { font: 500 15px/1.3 var(--font-body); }
.card__hit {
  padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__hit::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__meta { display: flex; gap: 12px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.card__meta span { display: inline-flex; align-items: center; gap: 4px; }
.card__meta .ic { width: 13px; height: 13px; color: var(--accent-ink); }
.badge {
  position: absolute; z-index: 2; left: 10px; top: 10px;
  padding: 6px 10px; border-radius: 999px;
  font: 600 12px/1 var(--font-display); letter-spacing: .05em; text-transform: uppercase;
  background: var(--ink); color: var(--bg);
}
.badge--hot { background: var(--lime); color: var(--on-lime); }
.badge--group { background: var(--emerald-deep); color: var(--lime); box-shadow: inset 0 0 0 1px var(--emerald); }

/* ---------- Совместный опт ---------- */
.groups { display: grid; gap: 12px; }
.group {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center;
  padding: 12px; background: var(--surface); border-radius: var(--r-md);
}
.group img { width: 112px; height: 140px; object-fit: cover; border-radius: var(--r-sm); }
.group__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.group__title { font-size: 16px; font-weight: 600; line-height: 1.25; }
.group__title button { padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; }
.group__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 13px; color: var(--muted); }
.group__price b { font: 600 22px/1 var(--font-display); color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.group__price s { font-variant-numeric: tabular-nums; }
.bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--lime); transition: width .5s; }
.group__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }

/* ---------- Сообщество ---------- */
.community {
  display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
  padding: 28px 22px; border-radius: var(--r-lg);
  background: radial-gradient(80% 120% at 100% 0%, rgba(29, 154, 108, .5), transparent 70%), var(--surface);
}

/* ---------- Каталог ---------- */
.toolbar { display: flex; gap: 10px; }
.search {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 18px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.search:focus-within { box-shadow: inset 0 0 0 2px var(--lime); }
.search .ic { color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 16px; }
.sort select { height: 54px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; }
.chips { display: flex; gap: 8px; padding-bottom: 2px; }
.chip {
  flex-shrink: 0; padding: 11px 18px; border: 0; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; font-weight: 600; white-space: nowrap; scroll-snap-align: start;
}
.chip[aria-pressed="true"] { background: var(--lime); color: var(--on-lime); box-shadow: none; }
.empty { padding: 48px 0; text-align: center; color: var(--muted); font-size: 17px; }
.empty a { color: var(--accent-ink); }

/* ---------- Лента ---------- */
.feed { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 640px; margin-inline: auto; }
.feed--preview { display: grid; grid-template-columns: minmax(0, 1fr); max-width: none; }
.post { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-md); overflow: hidden; }
.post__head { display: flex; align-items: center; gap: 10px; padding: 14px; }
.ava {
  display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  background: var(--emerald-deep); color: var(--lime); box-shadow: inset 0 0 0 1px var(--emerald);
  font: 500 12px/1 var(--font-mono);
}
.post__who { display: flex; flex-direction: column; min-width: 0; }
.post__who b { font-size: 15px; font-weight: 600; }
.post__who span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag {
  margin-left: auto; display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
  padding: 5px 10px; border-radius: 999px; background: rgba(220, 239, 58, .12); color: var(--accent-ink);
  font-size: 11.5px; font-weight: 600;
}
.tag .ic { width: 13px; height: 13px; }
.post__text { padding: 0 14px 14px; font-size: 15px; }
.post__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-2); }
.post__product { display: flex; align-items: center; gap: 12px; margin: 12px 14px 0; padding: 10px; border-radius: var(--r-sm); background: var(--surface-2); }
.post__product img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.post__product div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.post__product b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post__product span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.post__product button.link { padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; min-width: 0; }
.post__product .roundbtn { width: 40px; height: 40px; }
.post__actions { display: flex; align-items: center; gap: 4px; padding: 8px 6px 10px; }
.post__actions button {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border: 0; border-radius: 999px;
  background: none; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.post__actions button:hover { background: var(--surface-2); color: var(--ink); }
.post__actions button[aria-pressed="true"] { color: var(--accent-ink); }
.post__actions button[aria-pressed="true"] .ic { fill: currentColor; }
.post__actions .push { margin-left: auto; }
.stories { display: flex; gap: 14px; padding-bottom: 4px; padding-top: 4px; }
.story { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; width: 76px; padding: 0; border: 0; background: none; scroll-snap-align: start; }
.story .ava { width: 66px; height: 66px; font-size: 14px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--line); }
.story[aria-pressed="true"] .ava { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--lime); }
.story span { width: 100%; font-size: 12px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Поля и формы ---------- */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field > span, .ship legend { font-size: 13px; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; height: 54px; padding: 0 16px;
  border: 0; border-radius: var(--r-sm); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 16px; outline: none;
}
.field textarea { height: auto; min-height: 100px; padding: 14px 16px; resize: vertical; line-height: 1.4; }
.field input[type="file"] { padding: 14px 16px; height: auto; font-size: 14px; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: inset 0 0 0 2px var(--lime); }
.field.is-error input, .field.is-error select, .field.is-error textarea { box-shadow: inset 0 0 0 2px var(--hot); }
.field__err { font-size: 13px; color: var(--hot); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.ship { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.ship legend { padding: 0; margin-bottom: 8px; }
.shipopt {
  position: relative; display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 14px; border-radius: var(--r-sm); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer;
}
.shipopt input { position: absolute; opacity: 0; pointer-events: none; }
.shipopt.is-on { box-shadow: inset 0 0 0 2px var(--lime); }
.shipopt.is-on .ic { color: var(--accent-ink); }
.shipopt:focus-within { outline: 2px solid var(--lime); outline-offset: 2px; }
.shipopt div { display: flex; flex-direction: column; min-width: 0; }
.shipopt b { font-size: 15px; font-weight: 600; }
.shipopt span { font-size: 12.5px; color: var(--muted); }

.sum { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 16px; background: var(--surface-2); }
.sum__row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 15px; color: var(--muted); }
.sum__row span:last-child { color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.sum__row--total { margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--ink); }
.sum__row--total span { font: 600 24px/1 var(--font-display); }
.sum__row--solo { margin: 0; padding: 0; border: 0; }
.sum__note { margin-top: 6px; font-size: 13px; color: var(--muted); }

/* ---------- Корзина ---------- */
.cart { display: grid; gap: 16px; align-items: start; }
.cartlist { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.citem { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; background: var(--surface); border-radius: var(--r-md); }
.citem img { width: 92px; height: 112px; object-fit: cover; border-radius: 12px; }
.citem__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.citem__title { padding: 0; border: 0; background: none; text-align: left; font: 600 15px/1.25 var(--font-body); }
.citem__meta { font-size: 13px; color: var(--muted); }
.citem__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.citem__price { font: 600 20px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.citem__hint { font-size: 13px; color: var(--accent-ink); }
.citem__remove { align-self: flex-start; }
.qty { display: inline-flex; align-items: center; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.qty button { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty .ic { width: 16px; height: 16px; }
.qty output { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.linkbtn { padding: 0; border: 0; background: none; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.panel { display: flex; flex-direction: column; gap: 16px; padding: 20px; background: var(--surface); border-radius: var(--r-md); }
.panel h3 { font: 600 24px/1 var(--font-display); text-transform: uppercase; }
.emptystate { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 56px 20px; text-align: center; background: var(--surface); border-radius: var(--r-lg); }
.emptystate .ic { width: 48px; height: 48px; color: var(--accent-ink); }
.emptystate h2 { font: 600 32px/1 var(--font-display); text-transform: uppercase; }
.emptystate p { color: var(--muted); max-width: 32ch; }

/* ---------- Заказы ---------- */
.orders { display: grid; gap: 14px; align-items: start; }
.order { display: flex; flex-direction: column; gap: 16px; padding: 20px; background: var(--surface); border-radius: var(--r-md); min-width: 0; }
.order__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.order__num { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 500 15px/1.2 var(--font-mono); }
.order__num button { padding: 5px 9px; border: 0; border-radius: 8px; background: var(--surface-2); font: 500 12px/1.2 var(--font-body); color: var(--muted); }
.order__sub { font-size: 13px; color: var(--muted); margin-top: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--surface-2); white-space: nowrap; }
.pill--go { background: rgba(220, 239, 58, .14); color: var(--accent-ink); }
.pill--go::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.thumbs { display: flex; gap: 8px; }
.thumbs img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding-bottom: 18px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 11px; top: 18px; bottom: -2px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li.is-done::before { background: var(--lime); }
.dot { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--line); display: grid; place-items: center; }
.dot .ic { width: 14px; height: 14px; stroke-width: 2.6; color: var(--on-lime); }
.is-done .dot { background: var(--lime); box-shadow: none; }
.is-now .dot { box-shadow: inset 0 0 0 7px var(--lime); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { outline: 0 solid transparent; } 50% { outline: 6px solid rgba(220, 239, 58, .18); } }
.tl__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 2px; }
.tl__body b { font-size: 15px; font-weight: 600; }
.timeline li:not(.is-done):not(.is-now) .tl__body b { color: var(--muted); font-weight: 500; }
.tl__body span { font-size: 13px; color: var(--muted); }
.tl__photo { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 0; border: 0; background: none; text-align: left; }
.tl__photo img { width: 92px; height: 64px; object-fit: cover; border-radius: 10px; }
.tl__photo span { font-size: 13px; color: var(--accent-ink); font-weight: 600; }

/* ---------- Мини-селект (семейный список) ---------- */
.minisel { height: 42px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; }
.note { font-size: 13.5px; color: var(--muted); }

/* ---------- Карточка товара ---------- */
.pd { display: grid; gap: 20px; }
.pd__float {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--r-md); overflow: hidden;
  background: radial-gradient(70% 60% at 50% 40%, var(--t1) 0%, var(--t2) 100%);
}
.pd__float img { width: 74%; height: 74%; object-fit: contain; animation: bob 4.6s ease-in-out infinite; will-change: transform; }
.pd__float::after {
  content: ""; position: absolute; left: 50%; bottom: 9%; width: 46%; height: 24px; margin-left: -23%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .5), transparent); animation: bobShadow 4.6s ease-in-out infinite; will-change: transform, opacity;
}
@keyframes bob { 0%, 100% { transform: translate3d(0, -3%, 0) rotate(-2deg); } 50% { transform: translate3d(0, 3%, 0) rotate(1.5deg); } }
@keyframes bobShadow { 0%, 100% { transform: scaleX(.78); opacity: .5; } 50% { transform: scaleX(1); opacity: .9; } }
.pd__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-md); background: var(--surface-2); }
.pd__info { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.supchip { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 0; border: 0; background: none; font-size: 13.5px; color: var(--muted); }
.supchip .ava { width: 30px; height: 30px; font-size: 10px; }
.pd h2 { font: 600 clamp(30px, 7vw, 44px)/1.02 var(--font-display); text-transform: uppercase; }
.pd__rating { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.pd__rating span { display: inline-flex; align-items: center; gap: 5px; }
.pd__rating .ic { width: 16px; height: 16px; color: var(--accent-ink); }
.pd__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pd__price b { font: 700 clamp(40px, 10vw, 56px)/1 var(--font-display); font-variant-numeric: tabular-nums; }
html[data-mode="supplier"] .pd__price b { color: var(--accent-ink); }
.pd__price s { color: var(--muted); font-variant-numeric: tabular-nums; }
.pd__desc { font-size: 15px; color: var(--muted); max-width: 60ch; }
.sublabel { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.size { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px; border: 0; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.size b { font-size: 15px; font-weight: 600; }
.size span { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.size[aria-pressed="true"] { background: var(--lime); color: var(--on-lime); box-shadow: none; }
.size[aria-pressed="true"] span { color: var(--on-lime); opacity: .7; }
.tiers { width: 100%; border-collapse: collapse; font-size: 15px; }
.tiers td { padding: 10px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tiers tr:first-child td { border-top: 0; }
.tiers td:last-child { text-align: right; font-weight: 600; }
.tiers tr.is-on td { color: var(--accent-ink); }
.why { border-radius: var(--r-sm); background: var(--surface-2); }
.why summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 600; }
.why summary::-webkit-details-marker { display: none; }
.why summary::after { content: "+"; font-size: 20px; color: var(--accent-ink); line-height: 1; }
.why[open] summary::after { content: "−"; }
.why .sum { padding-top: 0; background: none; }
.groupbox { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1.5px var(--lime); }
.groupbox p { font-size: 14.5px; }
.buyrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.buyrow .btn--accent, .buyrow .btn--lime, .buyrow .btn--dark { flex: 1; }
.reviews { display: flex; flex-direction: column; gap: 10px; }
.review { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface-2); }
.review__head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.review__head b { color: var(--ink); font-weight: 600; }
.stars { display: inline-flex; gap: 1px; color: var(--accent-ink); }
.stars .ic { width: 13px; height: 13px; }
.stars .is-off { opacity: .25; }
.review p { font-size: 14.5px; }
.optnote { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--r-sm); background: rgba(220, 239, 58, .1); font-size: 14px; }
.optnote b { color: var(--accent-ink); }

/* ---------- Шторка ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet__backdrop { position: absolute; inset: 0; background: var(--scrim); animation: fade .25s ease; }
.sheet__panel {
  position: relative; display: flex; flex-direction: column;
  width: 100%; max-height: 92vh; max-height: 92dvh;
  background: var(--bg-2); border-radius: 28px 28px 0 0; overflow: hidden;
  box-shadow: inset 0 1px 0 var(--line);
  animation: up .35s cubic-bezier(.2, .8, .2, 1); outline: none;
}
.sheet__close { position: absolute; z-index: 3; top: 14px; right: max(14px, env(safe-area-inset-right, 0px)); }
.sheet__body {
  overflow-y: auto; overscroll-behavior: contain;
  padding-left: var(--gl); padding-right: var(--gr);
  padding-block: 24px calc(28px + env(safe-area-inset-bottom, 0px));
}
.sheet__title { font: 600 clamp(30px, 8vw, 40px)/1.02 var(--font-display); text-transform: uppercase; padding-right: 52px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.success { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.success p { font-size: 16px; color: var(--muted); }
.success__ic { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--lime); color: var(--on-lime); }
.success__ic .ic { width: 30px; height: 30px; stroke-width: 2.4; }
.lightbox img { width: 100%; border-radius: var(--r-md); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ASTTA AI */
.ai {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  padding: 26px 20px; border-radius: var(--r-lg);
  background: radial-gradient(70% 80% at 0% 0%, rgba(20, 120, 78, .32), transparent 70%), linear-gradient(180deg, #03170f, #020b08);
  box-shadow: inset 0 0 0 1px var(--line);
}
.ai > :not(.ai__art) { position: relative; z-index: 1; }
/* иллюстрация: на телефоне баннером сверху, на компьютере справа во всю высоту */
.ai__art {
  display: block; width: calc(100% + 40px); max-width: none; height: 240px; margin: -26px -20px -44px;
  object-fit: cover; object-position: 50% 45%; pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.ai__badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(220, 239, 58, .12); color: var(--accent-ink); font: 600 13px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.ai__badge .ic { width: 16px; height: 16px; }
.ai h2 { font: 600 clamp(32px, 8.5vw, 60px)/1 var(--font-display); text-transform: uppercase; }
.ai__sub { margin-top: -6px; font-size: 16px; color: var(--muted); max-width: 46ch; }
.ai__form { display: flex; gap: 8px; width: 100%; max-width: 620px; padding: 6px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.ai__form:focus-within { box-shadow: inset 0 0 0 2px var(--lime); }
.ai__form input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 0; background: none; outline: none; font-size: 16px; }
.ai__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ai__chips .chip { background: transparent; }
/* Переключатель темы: в тёмной показываем солнце (перейти на светлую), в светлой — луну. */
:is(.topbtn--theme, .drawer__theme) .ic--moon { display: none; }
:root[data-ui="light"] :is(.topbtn--theme, .drawer__theme) .ic--sun { display: none; }
:root[data-ui="light"] :is(.topbtn--theme, .drawer__theme) .ic--moon { display: inline-block; }
/* На телефоне в шапке нет места: переключатель только в меню. */
@media (max-width: 767px) { .topbtn--theme { display: none; } }
.drawer__theme { display: inline-flex; align-items: center; gap: 10px; }
.drawer__theme .ic { width: 20px; height: 20px; }
.topbtn--ai { color: var(--accent-ink); }
.ava.ava--ai { background: var(--lime); color: var(--on-lime); box-shadow: none; }
.ava--ai .ic { width: 20px; height: 20px; }
.msg--ai { background: var(--surface-2); }
.airesult { display: flex; flex-direction: column; gap: 10px; }
.aicards { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; scroll-snap-type: x proximity; }
.aicards::-webkit-scrollbar { display: none; }
.aicard { flex: 0 0 210px; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-sm); background: var(--surface-2); scroll-snap-align: start; }
.aicard__img { display: block; padding: 0; border: 0; background: var(--surface); }
.aicard__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.aicard__body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; }
.aicard__body b { font-size: 14px; font-weight: 600; line-height: 1.25; }
.aicard__price { font: 600 19px/1 var(--font-display); }
.aicard__why { display: flex; flex-wrap: wrap; gap: 4px; }
.aicard__why span { padding: 4px 8px; border-radius: 999px; background: rgba(220, 239, 58, .12); color: var(--accent-ink); font-size: 11.5px; font-weight: 600; }
.aicard--custom { box-shadow: inset 0 0 0 1px rgba(220, 239, 58, .3); }
.aicard__ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 4 / 3; color: var(--accent-ink);
  background: radial-gradient(80% 80% at 50% 30%, rgba(29, 154, 108, .45), transparent 70%), var(--surface); font-size: 12px; font-weight: 600; }
.aicard__ph .ic { width: 34px; height: 34px; }
.aicard__body small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.aicompat { list-style: none; margin: 0; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 13.5px; }
.aicompat li { display: flex; gap: 8px; align-items: flex-start; }
.aicompat .ic { width: 16px; height: 16px; color: var(--accent-ink); margin-top: 2px; stroke-width: 2.4; }
.aitotal__btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.chip--q { text-align: left; white-space: normal; }
.aitotal { flex-wrap: wrap; align-items: center; display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1.5px var(--lime); }
.aitotal div { display: flex; flex-direction: column; gap: 2px; }
.aitotal span { font-size: 12.5px; color: var(--muted); }
.aitotal b { font: 600 24px/1 var(--font-display); }
@media (min-width: 900px) {
  .ai { padding: 44px 48px; min-height: 526px; }
  .ai > :not(.ai__art) { max-width: 54%; }
  .ai__art {
    position: absolute; z-index: 0; right: 0; top: 0; width: 50%; height: auto; margin: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%), linear-gradient(180deg, #000 82%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent, #000 22%), linear-gradient(180deg, #000 82%, transparent);
    mask-composite: intersect;
  }
  .ai > [data-ai-pane="ask"] { max-width: 62%; }
}

/* ASTTA Build */
.aitabs { display: inline-flex; flex-wrap: wrap; max-width: 100%; padding: 4px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.aitabs button { padding: 9px 16px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: 14px; font-weight: 600; }
.aitabs button[aria-selected="true"] { background: var(--lime); color: var(--on-lime); }
.aipane { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.build { max-width: 620px; }
.build__goals { display: flex; flex-wrap: wrap; gap: 8px; }
.build__goals .chip { background: transparent; }
.build__goals .chip[aria-pressed="true"] { background: var(--lime); color: var(--on-lime); box-shadow: none; }
.build__budget { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r-sm); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.build__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--muted); }
.build__row output { font: 600 24px/1 var(--font-display); color: var(--ink); text-align: right; }
.build__budget input[type="range"] { width: 100%; accent-color: var(--accent-ink); }
.build__cur { display: inline-flex; align-self: flex-start; gap: 6px; }
.build__cur button { width: 44px; height: 36px; border: 0; border-radius: 10px; background: var(--surface-2); font-weight: 700; }
.build__cur button[aria-pressed="true"] { background: var(--lime); color: var(--on-lime); }
.build .btn { align-self: flex-start; }
.aicard__role { align-self: flex-start; padding: 3px 8px; border-radius: 6px; background: var(--surface); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Review+ */
.rvplus { display: flex; flex-direction: column; gap: 12px; }
.rvplus__tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.rvplus__tabs::-webkit-scrollbar { display: none; }
.rvplus__tabs button { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 0; border-radius: 999px; background: var(--surface-2); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.rvplus__tabs small { font-size: 12px; color: var(--muted); font-weight: 500; }
.rvplus__tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.rvplus__tabs button[aria-selected="true"] small { color: var(--bg); opacity: .6; }
.rvplus__sum { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1.5px var(--lime); }
.rvplus__ok { display: flex; align-items: baseline; gap: 8px; }
.rvplus__ok b { font: 600 30px/1 var(--font-display); color: var(--accent-ink); }
.rvplus__ok span { font-size: 14px; color: var(--muted); }
.rvstate { align-self: flex-start; padding: 3px 9px; border-radius: 999px; background: rgba(220, 239, 58, .12); color: var(--accent-ink); font-size: 12px; font-weight: 600; }
.rvremind { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); flex-wrap: wrap; }
.rvremind > .ic { color: var(--accent-ink); }
.rvremind div { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 180px; }
.rvremind b { font-size: 14px; }
.rvremind span { font-size: 13px; color: var(--muted); }

/* Smart Size */
.size--rec { box-shadow: inset 0 0 0 2px var(--lime); }
.size--rec span { color: var(--accent-ink); font-weight: 600; }
.size--rec[aria-pressed="true"] span { color: var(--on-lime); }
.smartsize { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: rgba(220, 239, 58, .1); flex-wrap: wrap; }
.smartsize > .ic { color: var(--accent-ink); }
.smartsize div { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 170px; }
.smartsize b { font-size: 14px; }
.smartsize span { font-size: 13px; color: var(--muted); }
.pdextra { display: flex; gap: 8px; flex-wrap: wrap; }
.pdextra .btn .ic { width: 18px; height: 18px; }

/* Профиль: разделы, семья, подарки */
.ptabs { margin-bottom: 18px; }
/* Вход через Telegram: синий цвет Telegram, чтобы кнопку узнавали сразу. */
.tgcard { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 18px; padding: 16px 18px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.tgcard__txt { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tgcard__txt span { color: var(--muted); font-size: 14px; }
.tgcard__txt a { color: var(--accent-ink); text-underline-offset: 2px; }
.tgcard--in { flex-wrap: nowrap; }
.tgcard--in .tgcard__txt { flex-basis: 0; }
.tgcard__ava { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #2aabee; color: #fff; font-weight: 700; }
.tgbtn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 999px; background: #2aabee; color: #fff; font: 600 15px/1 var(--font-body, inherit); cursor: pointer; }
.tgbtn:hover { background: #229ed9; }
.tgbtn:focus-visible { outline: 2px solid #2aabee; outline-offset: 3px; }
.tgbtn--wide { width: 100%; }
.family { display: grid; gap: 16px; align-items: start; }
.family__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.family__avas { display: flex; }
.family__avas .ava { width: 36px; height: 36px; margin-left: -8px; font-size: 11px; box-shadow: 0 0 0 3px var(--surface); }
.family__budget { display: flex; flex-direction: column; gap: 10px; }
.family__budget .field { max-width: 200px; }
.fitem { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 10px; border-radius: var(--r-md); background: var(--surface); }
.fitem.is-off { opacity: .5; }
.fitem img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.fitem__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fitem__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fitem__payer { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.fitem__payer .minisel { height: 34px; font-size: 13px; }
.pill--wait { background: rgba(255, 106, 77, .14); color: var(--hot); }
.pool__item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-sm); background: var(--surface-2); }
.pool__item img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.pool__item div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pool__item span { font-size: 13px; color: var(--muted); }
.pool__sum { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1.5px var(--lime); }
.pool__link { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 14px; }
.pool__people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pool__people li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; }
.pool__people li:not(.is-ok) b { color: var(--muted); font-weight: 500; }
.pool__people li.is-ok .dot { background: var(--lime); box-shadow: none; }
.pool__people div { display: flex; flex-direction: column; gap: 2px; }
.pool__people span { font-size: 13px; color: var(--muted); }
.gcard { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px; border: 0; border-radius: var(--r-md); background: var(--surface); text-align: left; }
.gcard img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.gcard div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gcard span, .gcard small { font-size: 13px; color: var(--muted); }
@media (min-width: 900px) { .family { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); } }

/* ASTTA Solve */
.solve__drop { position: relative; display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: var(--r-sm); background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; font-size: 15px; color: var(--muted); }
.solve__drop:hover { box-shadow: inset 0 0 0 1.5px var(--lime); }
.solve__drop .ic { width: 28px; height: 28px; color: var(--accent-ink); }
.solve__drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.solve__drop span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.solve__preview { max-width: 200px; max-height: 160px; border-radius: var(--r-sm); object-fit: cover; }
.msg__img { display: block; max-width: 200px; max-height: 180px; margin-bottom: 8px; border-radius: 12px; object-fit: cover; }

/* ASTTA Proof */
.proofbox { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 0; border-radius: var(--r-sm); background: var(--surface-2); text-align: left; box-shadow: inset 0 0 0 1px var(--line); }
.proofbox.is-on { box-shadow: inset 0 0 0 2px var(--lime); }
.proofbox__check { display: grid; place-items: center; flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; box-shadow: inset 0 0 0 2px var(--line); color: transparent; }
.proofbox.is-on .proofbox__check { background: var(--lime); box-shadow: none; color: var(--on-lime); }
.proofbox__check .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.proofbox__body { display: flex; flex-direction: column; gap: 4px; }
.proofbox__body b { font-size: 14.5px; }
.proofbox__body span { font-size: 13px; color: var(--muted); }
.tl__proof { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(220, 239, 58, .14); color: var(--accent-ink); }
.tl__proof .ic { width: 22px; height: 22px; stroke-width: 2.4; }
.proofphotos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.proofphotos .tl__photo { margin: 0; }
.proofphotos img { width: 100%; height: auto; aspect-ratio: 4 / 3; }

/* UsagePreview */
.room__box { width: 100%; border-radius: var(--r-sm); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; touch-action: none; }
.room__svg { display: block; width: 100%; height: auto; max-height: 52vh; }
.room__floor { fill: var(--surface); stroke: var(--ink); stroke-width: 4; }
.room__doorgap { stroke: var(--surface); stroke-width: 6; }
.room__door { fill: rgba(255, 255, 255, .05); stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 4; }
.room__lbl, .room__dim { fill: var(--muted); font: 500 12px var(--font-body); }
.room__dim { font-size: 13px; }
.room__item { cursor: grab; }
.room__item:active { cursor: grabbing; }
.room__body { fill: var(--emerald); stroke: var(--lime); stroke-width: 2.5; }
.room__open { fill: rgba(220, 239, 58, .14); stroke: var(--lime); stroke-width: 2; stroke-dasharray: 6 5; }
.room__item--warn .room__body { stroke: #f5b731; }
.room__item--bad .room__body { stroke: var(--hot); fill: rgba(255, 106, 77, .45); }
.room__name { fill: var(--photo-text); font: 600 14px var(--font-body); pointer-events: none; }
.room__status { padding: 10px 14px; border-radius: var(--r-sm); font-weight: 600; font-size: 15px; }
.room__status--ok { background: rgba(220, 239, 58, .14); color: var(--accent-ink); }
.room__status--warn { background: rgba(245, 183, 49, .14); color: #f5b731; }
.room__status--bad { background: rgba(255, 106, 77, .14); color: var(--hot); }

/* Чат */
.chat { display: flex; flex-direction: column; gap: 16px; }
.chat__agent { display: flex; align-items: center; gap: 12px; padding-right: 52px; }
.chat__agent b { display: block; font-size: 16px; }
.chat__agent span { font-size: 13px; color: var(--accent-ink); }
.msgs { display: flex; flex-direction: column; gap: 8px; min-height: 220px; }
.msg { white-space: pre-line; overflow-wrap: anywhere; max-width: 82%; padding: 11px 15px; border-radius: 18px; border-bottom-left-radius: 6px; font-size: 15px; background: var(--surface-2); align-self: flex-start; }
.msg--me { align-self: flex-end; background: var(--lime); color: var(--on-lime); border-bottom-left-radius: 18px; border-bottom-right-radius: 6px; }
.msg--typing { color: var(--muted); }
.chat__form { display: flex; gap: 8px; }
.chat__form input { flex: 1; min-width: 0; height: 52px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); outline: none; font-size: 16px; }
.chat__form input:focus { box-shadow: inset 0 0 0 2px var(--lime); }
.quick { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Меню ---------- */
.drawer { position: fixed; inset: 0; z-index: 45; }
.drawer__backdrop { position: absolute; inset: 0; background: var(--scrim); animation: fade .25s ease; }
.drawer__panel {
  position: absolute; top: 0; bottom: 0; right: 0; width: min(88vw, 400px);
  display: flex; flex-direction: column; gap: 24px; overflow-y: auto;
  padding-left: 24px; padding-right: var(--gr);
  padding-block: calc(16px + env(safe-area-inset-top, 0px)) calc(24px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-2); animation: slide .3s cubic-bezier(.2, .8, .2, 1);
}
@keyframes slide { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav a { padding: 6px 0; font: 600 34px/1.05 var(--font-display); text-transform: uppercase; text-decoration: none; }
.drawer__nav a:hover { color: var(--accent-ink); }
.drawer__links { display: flex; flex-direction: column; gap: 2px; padding-top: 16px; border-top: 1px solid var(--line); }
.drawer__links a, .drawer__links button { padding: 11px 0; border: 0; background: none; text-align: left; font-size: 16px; font-weight: 500; text-decoration: none; }

/* ---------- Нижнее меню ---------- */
.tabbar {
  position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding: 0 max(4px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(4px, env(safe-area-inset-left, 0px));
  background: var(--bg-2); box-shadow: 0 -1px 0 var(--line), 0 -12px 24px rgba(0, 0, 0, .35);
}
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 500; color: var(--muted); text-decoration: none; }
.tabbar .ic { width: 24px; height: 24px; }
.tabbar a[aria-current="page"] { color: var(--accent-ink); }
.tabbar .count { top: 7px; right: auto; left: calc(50% + 5px); }

/* ---------- Подвал и уведомления ---------- */
.foot { border-top: 1px solid var(--line); }
.foot__in {
  max-width: 1320px; margin: 0 auto;
  padding-left: var(--gl); padding-right: var(--gr);
  padding-block: 28px calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.toast {
  position: fixed; z-index: 60; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom, 0px));
  max-width: calc(100% - 32px); width: max-content;
  padding: 13px 20px; border-radius: 999px; background: var(--lime); color: var(--on-lime);
  font-size: 14.5px; font-weight: 600; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); animation: toastIn .3s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Широкие экраны ---------- */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feed--preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .linkform { flex-direction: row; }
  .linkform input { flex: 1; }
  .hint { flex-basis: auto; }
  .hero__visual { aspect-ratio: 4 / 3; }
  .community { flex-direction: row; align-items: center; justify-content: space-between; padding: 36px 40px; }
}
@media (min-width: 900px) {
  :root { --gl: max(32px, env(safe-area-inset-left, 0px)); --gr: max(32px, env(safe-area-inset-right, 0px)); }
  .topbar__in { height: 78px; gap: 28px; }
  .brand__mark { width: 38px; }
  .brand__word { width: 110px; }
  .topnav { display: flex; gap: 4px; }
  .topnav a { padding: 10px 14px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
  .topnav a:hover, .topnav a[aria-current="page"] { color: var(--ink); }
  .topnav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--lime); }
  .topbar .mode--top { display: inline-grid; margin-left: auto; }
  .topbar .mode--top button { padding: 8px 14px; font-size: 13px; }
  .topbar__actions { margin-left: 0; gap: 8px; }
  .topbtn span { display: inline; }
  .subbar { display: none; }
  .view { gap: 96px; }
  .view[data-view="home"] { padding-top: 4px; }

  .hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; min-height: 600px; padding: 40px 48px; }
  .hero__copy { position: relative; grid-column: 1; grid-row: 1; padding: 0; gap: 36px; }
  .htext h1, .htext h2 { font-size: clamp(96px, 10vw, 156px); }
  .htext p { font-size: 19px; }
  .hero__visual { grid-column: 2; grid-row: 1; aspect-ratio: 4 / 5; max-height: 600px; width: auto; height: 600px; justify-self: center; border-radius: 24px; overflow: hidden; z-index: 1; }
  .hero__visual::after { background: linear-gradient(180deg, rgba(7, 11, 9, .3) 0%, transparent 30%); }
  .hero__vword {
    display: block; position: absolute; z-index: 0; right: 6px; top: 50%; transform: translateY(-50%);
    writing-mode: vertical-rl; font: 700 200px/.8 var(--font-display); letter-spacing: -.02em;
    color: transparent; -webkit-text-stroke: 1.5px rgba(220, 239, 58, .35); pointer-events: none; user-select: none;
  }
  .hero__dots { display: flex; left: 48px; bottom: 32px; }

  .perkband { margin-top: -96px; padding-block: 132px; }
  .perks { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 14px; }
  .perks li { justify-content: center; gap: 18px; padding: 22px 12px; font-size: 15px; }
  .perks .ic { width: 38px; height: 38px; }
  /* звёздочка-разделитель между пунктами */
  .perks li:not(:last-child)::after {
    content: ""; position: absolute; right: -14px; top: 50%; width: 28px; height: 28px; margin-top: -14px;
    background: radial-gradient(circle, rgba(200, 255, 225, .95) 0 8%, rgba(70, 230, 150, .5) 22%, transparent 60%);
    clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
  }
  .tiles { gap: 16px; }
  .tile { aspect-ratio: 3 / 2; border-radius: 18px; }
  .tiles .tile:first-child { aspect-ratio: 3 / 1; }
  .tile__title { font-size: clamp(28px, 2.6vw, 40px); }
  .tile__sub { font-size: 15px; }
  .tile__body { left: 22px; right: 22px; bottom: 22px; }
  .tile .roundbtn { top: 18px; right: 18px; width: 48px; height: 48px; }
  .cats { grid-auto-flow: row; grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; gap: 16px; }
  .cat span { font-size: 20px; left: 14px; bottom: 14px; }
  .banner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; padding: 48px; gap: 48px; }
  .banner__media { aspect-ratio: 1; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .rail { grid-auto-columns: calc((100% - 4 * 16px) / 5); gap: 16px; margin: 0; padding: 0 0 6px; }
  .groups { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .feed--preview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chips, .stories { margin: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; overflow: visible; }
  .cart { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; }
  .cart .panel { position: sticky; top: 100px; }
  .orders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community { padding: 48px 56px; }

  .tabbar { display: none; }
  .foot__in { padding-block: 32px 44px; }
  .toast { bottom: 28px; }
  .sheet { align-items: center; padding: 24px; }
  .sheet__panel { max-width: 1000px; max-height: 88vh; border-radius: 28px; box-shadow: inset 0 0 0 1px var(--line); }
  .sheet__panel.is-narrow { max-width: 560px; }
  .sheet__body { padding: 36px; }
  .pd { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
  .pd__media { position: sticky; top: 0; }
}
/* Планшеты и небольшие ноутбуки: полная шапка с подписями шире экрана — оставляем у кнопок только иконки. */
@media (min-width: 900px) and (max-width: 1279px) {
  .topbar__in { gap: 16px; }
  .topbtn span { display: none; }
  .topnav a { padding: 10px 10px; letter-spacing: .06em; }
}
@media (min-width: 900px) and (max-width: 1023px) { .brand__word { display: none; } .topbar__in { gap: 12px; } .topnav a { padding: 10px 8px; } }
/* Совместный опт: три карточки в ряд помещаются только с 1200 px, уже — списком, иначе кнопка «Участвовать» вылезает. */
@media (min-width: 900px) and (max-width: 1199px) { .groups { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 380px) {
  .mode button { padding: 9px 10px; font-size: 13px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .topbtn { padding: 0 6px; }
}

/* ---------- Заставка при входе ----------
   Фон и линии заранее отрисованы в картинки: анимируются только transform и opacity,
   их браузер считает на видеокарте без перерисовки. */
html.is-splash, html.is-splash body { overflow: hidden; }
.no-splash .splash { display: none; }
.splash {
  position: fixed; inset: 0; z-index: 100; overflow: hidden;
  display: grid; place-items: center;
  background: #0c1c19;
  animation: splashOut .6s ease 3s forwards;
  cursor: pointer;
}
.splash.is-done { animation: splashOut .4s ease forwards; }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }
.splash__bg {
  position: absolute; inset: 0;
  background: url("../img/brand/splash-bg-land.webp") center / cover no-repeat;
  opacity: 0; will-change: opacity; animation: splashFade .8s ease forwards;
}
@keyframes splashFade { to { opacity: 1; } }
/* Линии «рисуются» от краёв к центру: окно едет внутрь, картинка внутри едет навстречу и стоит на месте */
.splash__half { position: absolute; top: 0; bottom: 0; width: calc(50vw + 1px); overflow: hidden; will-change: transform; }
.splash__half--l { left: 0; transform: translate3d(calc(-50vw - 1px), 0, 0); }
.splash__half--r { right: 0; transform: translate3d(calc(50vw + 1px), 0, 0); }
.splash__lines {
  position: absolute; top: 0; bottom: 0; width: 100vw;
  background: url("../img/brand/splash-lines-land.webp") center / cover no-repeat; will-change: transform;
}
.splash__half--l .splash__lines { left: 0; transform: translate3d(calc(50vw + 1px), 0, 0); }
.splash__half--r .splash__lines { right: 0; transform: translate3d(calc(-50vw - 1px), 0, 0); }
.splash__half, .splash__lines { animation: splashWipe 1.1s cubic-bezier(.6, 0, .3, 1) .45s forwards; }
@keyframes splashWipe { to { transform: translate3d(0, 0, 0); } }
@media (orientation: portrait) {
  .splash__bg { background-image: url("../img/brand/splash-bg-port.webp"); }
  .splash__lines { background-image: url("../img/brand/splash-lines-port.webp"); }
}
.splash__flash {
  position: absolute; top: 50%; left: 50%; width: 60vmin; height: 60vmin; margin: -30vmin 0 0 -30vmin; border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 255, 190, .95) 0%, rgba(220, 239, 58, .55) 22%, rgba(220, 239, 58, 0) 62%);
  opacity: 0; transform: scale(.15); will-change: transform, opacity;
  animation: splashFlash 1s ease-out 1.45s forwards;
}
@keyframes splashFlash { 20% { opacity: 1; transform: scale(.9); } to { opacity: 0; transform: scale(2.4); } }

.splash__logo { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.splash__halo {
  position: absolute; top: 4%; left: 50%; width: clamp(160px, 40vw, 300px); aspect-ratio: 1; margin-left: calc(clamp(160px, 40vw, 300px) / -2);
  border-radius: 50%; background: radial-gradient(circle, rgba(220, 239, 58, .32), transparent 65%);
  opacity: 0; transform: scale(.5); will-change: transform, opacity;
  animation: splashHalo 1.4s ease 1.5s forwards;
}
@keyframes splashHalo { to { opacity: 1; transform: none; } }
.splash__mark {
  position: relative; width: clamp(104px, 26vw, 176px); height: auto;
  opacity: 0; transform: translate3d(0, 18px, 0) scale(.75) rotate(-6deg); will-change: transform, opacity;
  animation: splashUp .8s cubic-bezier(.2, .9, .25, 1.25) 1.55s forwards;
}
.splash__word {
  position: relative; width: clamp(210px, 58vw, 420px); height: auto; margin-top: clamp(18px, 4vw, 30px);
  opacity: 0; transform: translate3d(0, 14px, 0); will-change: transform, opacity;
  animation: splashUp .7s cubic-bezier(.2, .8, .2, 1) 1.85s forwards;
}
.splash__sub {
  position: relative; margin-top: clamp(10px, 2.4vw, 18px); padding-left: .62em;
  font: 500 clamp(12px, 2.8vw, 19px)/1 var(--font-body); text-transform: uppercase; letter-spacing: .62em; color: #fff;
  opacity: 0; transform: translate3d(0, 10px, 0) scaleX(.8); will-change: transform, opacity;
  animation: splashUp .8s cubic-bezier(.2, .8, .2, 1) 2.1s forwards;
}
@keyframes splashUp { to { opacity: 1; transform: none; } }
.splash__bar { position: absolute; left: 50%; bottom: calc(48px + env(safe-area-inset-bottom, 0px)); width: 120px; height: 2px; margin-left: -60px; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.splash__bar i { display: block; width: 100%; height: 100%; background: var(--lime); transform: scaleX(0); transform-origin: left; will-change: transform; animation: splashBar 2.9s ease-in-out forwards; }
@keyframes splashBar { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .splash { animation: splashOut .3s ease 1s forwards !important; }
  .splash * { animation: none !important; opacity: 1 !important; transform: none !important; }
  .splash__flash { opacity: 0 !important; }
}

/* ---------- ASTTA Trends ---------- */
.reels { display: grid; grid-auto-flow: column; grid-auto-columns: 148px; gap: 10px; margin-left: calc(-1 * var(--gl)); margin-right: calc(-1 * var(--gr)); padding: 0 var(--gr) 4px var(--gl); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.reels::-webkit-scrollbar { display: none; }
.reelthumb {
  position: relative; overflow: hidden; aspect-ratio: 9 / 16; max-width: 100%; padding: 0; border: 0; border-radius: var(--r-md);
  background: radial-gradient(80% 60% at 50% 30%, rgba(29, 154, 108, .5), transparent), var(--surface); color: var(--photo-text); text-align: left; scroll-snap-align: start;
}
.reelthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.reelthumb:hover img { transform: scale(1.05); }
.reelthumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 30%, transparent 60%, rgba(0, 0, 0, .7)); }
.reelthumb__views { position: absolute; z-index: 1; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; }
.reelthumb__views .ic { width: 16px; height: 16px; }
.reelthumb__who { position: absolute; z-index: 1; left: 10px; right: 10px; bottom: 10px; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reelthumb__vid { position: absolute; inset: 0; display: grid; place-items: center; font: 600 18px/1 var(--font-display); text-transform: uppercase; color: var(--lime); }

html.is-trends .topbar, html.is-trends .subbar, html.is-trends .foot { display: none; }
html.is-trends main { padding: 0; }
.trends {
  position: fixed; z-index: 15; left: 0; right: 0; top: 0;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  background: #000;
}
.trends__top {
  position: absolute; z-index: 3; left: 0; right: 0; top: 0;
  display: flex; align-items: center; justify-content: center;
  padding: calc(12px + env(safe-area-inset-top, 0px)) var(--gr) 12px var(--gl); pointer-events: none;
}
.trends__tabs { display: flex; gap: 18px; pointer-events: auto; font-size: 16px; font-weight: 600; }
.trends__tabs span { color: var(--photo-text); box-shadow: inset 0 -2px 0 var(--lime); padding-bottom: 4px; }
.trends__tabs a { color: rgba(255, 255, 255, .6); text-decoration: none; padding-bottom: 4px; }
.trends__add {
  position: absolute; right: var(--gr); top: calc(8px + env(safe-area-inset-top, 0px)); pointer-events: auto;
  display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--lime); color: var(--on-lime);
}
.trends__add .ic { stroke-width: 2.2; }
.trends__scroll { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.trends__scroll::-webkit-scrollbar { display: none; }

.reel { position: relative; height: 100%; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; color: var(--photo-text); background: #050806; }
.reel__media { position: absolute; inset: 0; }
.reel__ph, .reel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__ph { opacity: 0; transition: opacity .6s ease; will-change: transform, opacity; }
.reel__ph.is-on { opacity: 1; }
.reel.is-active .reel__ph.kb0.is-on { animation: kb0 3.6s ease-out forwards; }
.reel.is-active .reel__ph.kb1.is-on { animation: kb1 3.6s ease-out forwards; }
.reel.is-active .reel__ph.kb2.is-on { animation: kb2 3.6s ease-out forwards; }
@keyframes kb0 { from { transform: scale(1.02); } to { transform: scale(1.14) translate3d(-2%, -1%, 0); } }
@keyframes kb1 { from { transform: scale(1.16) translate3d(3%, 0, 0); } to { transform: scale(1.04); } }
@keyframes kb2 { from { transform: scale(1.06) translate3d(0, 3%, 0); } to { transform: scale(1.16) translate3d(0, -2%, 0); } }
.reel__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, transparent 18%, transparent 50%, rgba(0, 0, 0, .78) 100%); }
.reel__bars { position: absolute; z-index: 2; left: var(--gl); right: var(--gr); top: calc(58px + env(safe-area-inset-top, 0px)); display: flex; gap: 4px; }
.reel__bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.reel__bars b { display: block; height: 100%; background: var(--photo-text); transform: scaleX(0); transform-origin: left; }
.reel__bars i.is-done b { transform: scaleX(1); }
.reel.is-active .reel__bars i.is-now b { animation: barFill 3.2s linear forwards; }
@keyframes barFill { to { transform: scaleX(1); } }
.reel__tap { position: absolute; z-index: 1; top: 15%; bottom: 35%; width: 35%; padding: 0; border: 0; background: none; }
.reel__tap--prev { left: 0; }
.reel__tap--next { right: 0; }
.reel__side { position: absolute; z-index: 2; right: max(10px, env(safe-area-inset-right, 0px)); bottom: 150px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.reel__ava { position: relative; width: 48px; height: 48px; margin-bottom: 8px; padding: 0; border: 2px solid var(--photo-text); border-radius: 50%; background: var(--emerald-deep); color: var(--lime); font: 500 13px/1 var(--font-mono); }
.reel__ava i { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--lime); color: var(--on-lime); font-style: normal; }
.reel__ava i .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.reel__ava.is-followed i { background: var(--ink); }
.reel__act { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--photo-text); font-size: 12px; font-weight: 600; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.reel__act .ic { width: 32px; height: 32px; stroke-width: 1.8; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45)); }
.reel__act.is-on { color: var(--lime); }
.reel__act.is-on .ic { fill: currentColor; }
.reel__info { position: absolute; z-index: 2; left: var(--gl); right: 76px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.reel__who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 16px; }
.reel__badge { padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-size: 11.5px; font-weight: 600; }
.reel__badge--buyer { background: rgba(220, 239, 58, .2); color: var(--lime); }
.reel__text { font-size: 14.5px; line-height: 1.4; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.reel__tags { font-weight: 600; }
.reel__music { display: flex; align-items: center; gap: 6px; font-size: 13px; opacity: .85; }
.reel__music .ic { width: 15px; height: 15px; }
.reel__chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-right: -60px; padding-right: 60px; }
.reel__chips::-webkit-scrollbar { display: none; }
.reelchip { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; max-width: 280px; padding: 6px 6px 6px 6px; border-radius: 16px; background: rgba(12, 18, 15, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.reelchip__open { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0; border: 0; background: none; color: inherit; text-align: left; }
.reelchip__open img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.reelchip__open span { display: flex; flex-direction: column; min-width: 0; }
.reelchip__open b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.reelchip__open em { font-style: normal; font: 600 15px/1.2 var(--font-display); color: var(--lime); }
.reelchip__buy { flex-shrink: 0; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--lime); color: var(--on-lime); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.reel__burst { position: absolute; z-index: 3; left: 50%; top: 45%; width: 110px; height: 110px; margin: -55px 0 0 -55px; color: var(--lime); pointer-events: none; animation: burst .9s ease-out forwards; }
.reel__burst .ic { width: 100%; height: 100%; fill: currentColor; stroke: none; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .4)); }
@keyframes burst { 0% { transform: scale(.3); opacity: 0; } 25% { transform: scale(1.1); opacity: 1; } 60% { transform: scale(.95); opacity: 1; } 100% { transform: scale(1.3) translate3d(0, -30px, 0); opacity: 0; } }
.tcomments { display: flex; flex-direction: column; gap: 14px; }
.tcomment { display: flex; gap: 10px; }
.tcomment .ava { width: 36px; height: 36px; font-size: 11px; }
.tcomment b { font-size: 13.5px; }
.tcomment p { font-size: 14.5px; }
@media (min-width: 900px) {
  html.is-trends .topbar { display: block; }
  .trends { top: 78px; bottom: 16px; left: 50%; right: auto; width: min(440px, calc(100% - 64px)); transform: translateX(-50%); border-radius: 24px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
  .reels { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .reel .reel__ph { animation: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
html.is-splash .topbar, html.is-splash .tabbar { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Заказ по ссылке: предварительный расчёт */
.linkcalc { display: flex; flex-direction: column; gap: 14px; }
.linkcalc .grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.linkcalc__src { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.linkcalc__src .mono { min-width: 0; overflow-wrap: anywhere; font-size: 13px; color: var(--muted); }
.linkcalc__tag { padding: 6px 10px; border-radius: 999px; font: 600 12px/1 var(--font-display); letter-spacing: .05em; text-transform: uppercase; background: var(--lime); color: var(--on-lime); }
.linkcalc__photo { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; }
@media (max-width: 520px) { .linkcalc .grid2 { grid-template-columns: minmax(0, 1fr); } }

/* Боевой сайт: ролики пока только в демо, раздел «Тренды» прячем. */
.is-live [data-nav="trends"] { display: none; }
.tgwidget { min-height: 48px; display: flex; justify-content: center; }
.is-live [data-demo], html:not(.is-live) [data-live] { display: none; }
