/* Китай UA — общий стиль сайта. После правки увеличьте CSS_VERSION в bot/sitegen.py */
:root {
  --orange: #fb7701;
  --orange-dark: #e25400;
  --bg: #fff7ef;
  --card: #ffffff;
  --text: #2b1a0c;
  --muted: #7a6150;
  --border: #f3dcc6;
  --shadow: 0 6px 20px rgba(226, 84, 0, .10);
  --deal: #e0245e;
  --accent: #e25400;          /* ссылки и цены */
  --warn-bg: #fff3cd; --warn-fg: #5c4400;
  --ok-bg: #e7f6ea; --ok-fg: #1d5e2b;
  color-scheme: light;
}
/* тёмная тема: по системе, пока посетитель не выбрал сам (кнопка 🌙/☀️ в шапке → data-theme на <html>) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a120c;
    --card: #261a12;
    --text: #f7eadf;
    --muted: #c3a991;
    --border: #3a2a1d;
    --shadow: 0 6px 20px rgba(0, 0, 0, .35);
    --deal: #ff5c8a;
    --accent: #ff9a45;
    --warn-bg: #3a3014; --warn-fg: #f3e2a8;
    --ok-bg: #173222; --ok-fg: #b9e7c4;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1a120c;
  --card: #261a12;
  --text: #f7eadf;
  --muted: #c3a991;
  --border: #3a2a1d;
  --shadow: 0 6px 20px rgba(0, 0, 0, .35);
  --deal: #ff5c8a;
  --accent: #ff9a45;
  --warn-bg: #3a3014; --warn-fg: #f3e2a8;
  --ok-bg: #173222; --ok-fg: #b9e7c4;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }
h1 { font-size: 24px; line-height: 1.25; margin: 8px 0 10px; }
h2 { font-size: 20px; margin: 28px 0 12px; }

/* шапка */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px;
  padding: 8px 16px;
  background: var(--orange); color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { border-radius: 50%; border: 2px solid #fff; }
.top-tg {
  color: #fff; text-decoration: none; font-weight: 600; font-size: 14px;
  background: rgba(255, 255, 255, .2); padding: 7px 12px; border-radius: 10px;
}
/* меню разделов: на компьютере — между логотипом и кнопками, на телефоне — второй строкой с прокруткой */
.menu { display: flex; gap: 4px; flex: 1; justify-content: center; }
.menu a {
  color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap;
  padding: 7px 11px; border-radius: 10px;
}
.menu a:hover { background: rgba(255, 255, 255, .2); }
@media (max-width: 760px) {
  .menu { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 -8px; }
  .menu::-webkit-scrollbar { display: none; }
  .menu a { font-size: 13px; padding: 5px 9px; background: rgba(255, 255, 255, .15); }
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 12px 16px 32px; }
.center { text-align: center; }
.lead { color: var(--muted); margin: 0 0 16px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 4px 0 6px; }
.crumbs a { color: var(--muted); }

/* главная */
.hero {
  background: radial-gradient(circle at 30% 20%, #ffa03c, var(--orange) 45%, var(--orange-dark));
  color: #fff; text-align: center;
  padding: 22px 16px 26px;
}
.hero-in { max-width: 1080px; margin: 0 auto; display: grid; gap: 14px; }
.hero-t { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero .avatar { width: 88px; height: 88px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); flex: none; }
.hero h1 { margin: 0 0 4px; font-size: 28px; }
.hero-t p { margin: 0; opacity: .95; }
.hero .promo { margin: 0 auto; width: 100%; color: var(--text); }
/* компьютер: заголовок слева, промокод справа — первая строка товаров видна сразу */
@media (min-width: 900px) {
  .hero { padding: 26px 16px; }
  .hero-in { grid-template-columns: 1fr minmax(0, 480px); align-items: center; gap: 32px; }
  .hero-t { flex-direction: row; text-align: left; gap: 20px; }
  .hero h1 { font-size: 32px; }
}

/* промокод */
.promo {
  max-width: 560px; margin: 16px auto;
  background: var(--card);
  border: 2px dashed var(--orange); border-radius: 18px;
  padding: 18px; text-align: center;
  box-shadow: var(--shadow);
}
.promo h2 { margin: 0 0 6px; font-size: 18px; }
.promo p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.promo .promo-more { margin: 12px 0 0; }
.code {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 8px 8px 8px 16px;
  font: 700 22px/1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 1px;
}
.code button {
  font: 600 14px system-ui, sans-serif;
  background: var(--orange); color: #fff; border: 0; border-radius: 9px;
  padding: 9px 14px; cursor: pointer;
}

/* категории */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.chips a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--text); text-decoration: none; font-size: 14px; white-space: nowrap;
}
.chips a small { color: var(--muted); }
.chips a.on, .chips a:hover { border-color: var(--orange); }
.chips a.on { background: var(--orange); color: #fff; }
.chips a.on small { color: rgba(255, 255, 255, .85); }

/* карточки товаров */
.grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; color: inherit; text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .12s ease, border-color .12s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--orange); }
.pic { position: relative; aspect-ratio: 1; background: #fff; }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.noimg { display: grid; place-items: center; height: 100%; font-size: 48px; }
.noimg.big { aspect-ratio: 1; font-size: 96px; background: var(--card); border-radius: 16px; }
.badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--deal); color: #fff; font-weight: 700; font-size: 13px;
  padding: 3px 8px; border-radius: 8px;
}
.card .name {
  padding: 8px 10px 0; font-size: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card .price { padding: 4px 10px 10px; margin-top: auto; }
.card .price b { color: var(--accent); font-size: 16px; }
.card .price s { color: var(--muted); font-size: 13px; }

.pages { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 20px 0; }
.pages a, .pages b {
  min-width: 38px; padding: 8px 10px; text-align: center; border-radius: 10px;
  background: var(--card); border: 1px solid var(--border); text-decoration: none; color: var(--text);
}
.pages b { background: var(--orange); border-color: var(--orange); color: #fff; }
.more { text-align: center; margin: 16px 0 0; }

/* кнопки */
.btn {
  display: inline-block; text-align: center; text-decoration: none; font-weight: 700;
  padding: 13px 18px; border-radius: 12px;
}
.btn.buy { background: var(--orange); color: #fff; font-size: 18px; box-shadow: var(--shadow); }
.btn.buy:hover { background: var(--orange-dark); }
.btn.ghost { background: var(--card); color: var(--text); border: 1px solid var(--border); font-weight: 600; }
.btn.ghost:hover { border-color: var(--orange); }

/* страница товара */
.product { display: grid; gap: 20px; }
.product > * { min-width: 0; }  /* иначе широкая галерея раздвигает страницу */
@media (min-width: 820px) { .product { grid-template-columns: 1fr 1fr; align-items: start; } }
.gallery { position: relative; }
.slides {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  border-radius: 16px; scrollbar-width: none; background: #fff;
}
.slides::-webkit-scrollbar { display: none; }
.slides > img, .slides > video {
  flex: 0 0 100%; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain;
  scroll-snap-align: start; background: #fff;
}
.slides > video { background: #000; }
.gallery .nav {
  position: absolute; top: calc(50% - 60px); width: 40px; height: 40px;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .9); color: #2b1a0c; font-size: 26px; line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.gallery .prev { left: 10px; }
.gallery .next { right: 10px; }
.counter {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 13px;
  padding: 3px 9px; border-radius: 999px;
}
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 2px; scrollbar-width: thin; }
.thumbs button {
  position: relative; flex: none; width: 64px; height: 64px; padding: 0;
  border: 2px solid var(--border); border-radius: 10px; overflow: hidden; cursor: pointer; background: #fff;
}
.thumbs button.on { border-color: var(--orange); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .vid span {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0, 0, 0, .45); color: #fff; font-size: 22px;
}
.row { display: flex; gap: 8px; }
.row .btn { flex: 1; }
h2.sub { font-size: 16px; margin: 6px 0 0; }
.boxes { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 820px) { .boxes { grid-template-columns: 1fr 1fr; } }
.box { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); }
.box h2 { margin: 0 0 10px; font-size: 18px; }
.box p { margin: 6px 0; }
.box ol { margin: 0; padding-left: 20px; }
.box li { margin: 6px 0; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .5px; }
.mini {
  font: 600 12px system-ui, sans-serif; background: var(--orange); color: #fff;
  border: 0; border-radius: 7px; padding: 4px 9px; cursor: pointer; vertical-align: 1px;
}
.info { display: flex; flex-direction: column; gap: 10px; }
.info h1 { margin: 0; }
.deal-flag { color: var(--deal); font-weight: 700; }
.stats { color: var(--muted); font-size: 14px; }
.buy-price { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.buy-price.deal { border-color: var(--deal); }
.buy-price .label { font-weight: 600; color: var(--deal); }
.buy-price .now { font-size: 28px; font-weight: 800; color: var(--accent); }
.buy-price .now span { font-size: 15px; font-weight: 500; color: var(--muted); }
.buy-price .was { color: var(--muted); font-size: 14px; }
.buy-price .hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.bullets { margin: 4px 0; padding-left: 20px; }
.bullets li { margin: 4px 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 14px; }
.date { color: var(--muted); font-size: 13px; margin: 0; }

/* ссылки на площадки (главная) */
.links { display: grid; gap: 12px; max-width: 560px; margin: 32px auto 0; }
.link {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 14px 16px; color: inherit; text-decoration: none; box-shadow: var(--shadow);
}
.link:hover { border-color: var(--orange); }
.link .icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; background: var(--bg); }
.link b { display: block; }
.link small { color: var(--muted); font-size: 13px; }
.link.main { background: var(--orange); border-color: var(--orange); color: #fff; }
.link.main small { color: rgba(255, 255, 255, .9); }
.link.main .icon { background: rgba(255, 255, 255, .2); }

.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 16px 16px 28px; border-top: 1px solid var(--border); }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 8px; font-size: 14px; }
.foot p { max-width: 640px; margin: 6px auto; }
.foot .foot-note { font-size: 11px; opacity: .8; }  /* «не є офіційним сайтом Temu» — тихо, внизу */

/* статьи */
.article { max-width: 760px; margin: 0 auto; font-size: 17px; line-height: 1.65; }
.article h1 { font-size: 28px; }
.article h2 { font-size: 21px; margin: 28px 0 8px; }
.article h3 { font-size: 17px; margin: 20px 0 6px; }
.article p, .article li { margin: 8px 0; }
.article ul, .article ol { padding-left: 22px; }
.article .lead { font-size: 17px; }
.arts { display: grid; gap: 12px; }
@media (min-width: 760px) { .arts { grid-template-columns: 1fr 1fr; } }
.art {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 16px; color: inherit; text-decoration: none; box-shadow: var(--shadow);
}
.art:hover { border-color: var(--orange); }
.art.soon { opacity: .55; }  /* подборка пока пустая — без ссылки */
.art.soon:hover { border-color: var(--border); }
.art .icon { flex: none; font-size: 26px; line-height: 1; }
.art b { display: block; margin-bottom: 4px; }
.art small { color: var(--muted); font-size: 13px; }
.tg-cta {
  max-width: 760px; margin: 20px auto; display: flex; gap: 14px; align-items: center; justify-content: space-between;
  background: var(--card); border: 2px solid var(--orange); border-radius: 18px; padding: 16px 18px;
}
.tg-cta p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.tg-cta .btn { flex: none; font-size: 16px; }
@media (max-width: 560px) { .tg-cta { flex-direction: column; align-items: stretch; text-align: center; } }

/* переключатель языка в шапке */
.top-r { display: flex; align-items: center; gap: 8px; }
.top .lang {
  color: #fff; text-decoration: none; font-weight: 700; font-size: 13px;
  border: 1.5px solid rgba(255, 255, 255, .75); padding: 5px 9px; border-radius: 9px;
}
.top .lang:hover { background: rgba(255, 255, 255, .2); }

/* категории на компьютере — компактнее, чтобы влезали в две строки */
@media (min-width: 900px) {
  .chips { gap: 6px; margin: 14px 0; }
  .chips a { font-size: 13px; padding: 6px 11px; }
}

/* пакет купонов в статьях и срок действия */
.coupons { overflow-x: auto; margin: 10px 0; }
.coupons table { border-collapse: collapse; width: 100%; background: var(--card); border-radius: 12px; overflow: hidden; font-size: 16px; }
.coupons th, .coupons td { padding: 9px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.coupons th { background: var(--bg); font-size: 14px; color: var(--muted); }
.warn { background: var(--warn-bg); color: var(--warn-fg); border-radius: 10px; padding: 10px 12px; }
.promo .promo-note { margin: 6px 0 0; font-size: 13px; }

/* число товаров на главной — отдельной плашкой, без переноса посреди фразы */
.hero-t .hero-count {
  display: inline-block; margin-top: 8px; padding: 4px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .2); font-size: 14px; white-space: nowrap; opacity: 1;
}

/* поиск и переключатель темы */
.sbtn, .tbtn {
  background: rgba(255, 255, 255, .2); color: #fff; border: 0; cursor: pointer;
  font-size: 16px; padding: 6px 10px; border-radius: 10px;
}
.tbtn::before { content: "🌙"; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tbtn::before { content: "☀️"; } }
:root[data-theme="dark"] .tbtn::before { content: "☀️"; }
.search { position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, .45); display: flex; justify-content: center; padding: 70px 16px 16px; }
.search[hidden] { display: none; }
.sbox { width: 100%; max-width: 640px; max-height: 80vh; display: flex; flex-direction: column; background: var(--card); border-radius: 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, .3); overflow: hidden; }
.sinput { display: flex; gap: 8px; padding: 12px; border-bottom: 1px solid var(--border); }
.sinput input { flex: 1; font-size: 17px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); }
.sinput button { border: 0; background: var(--bg); color: var(--text); border-radius: 10px; padding: 0 14px; font-size: 18px; cursor: pointer; }
.sres { overflow-y: auto; }
.sres a { display: flex; gap: 12px; align-items: center; padding: 8px 12px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--border); }
.sres a:hover { background: var(--bg); }
.sres img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; background: #fff; }
.sres span { font-size: 14px; }
.sres b { display: block; color: var(--accent); }
.sres .empty { padding: 16px; color: var(--muted); text-align: center; margin: 0; }

/* сортировка в категориях */
.sort { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.sort button { font: inherit; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; }
.sort button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.filters { margin: 0 0 14px; }
.filters .sort { margin: 0 0 8px; }
.grid > .card[hidden] { display: none; }
.review .byline a { color: inherit; }

/* «код перевірено» */
.ok { background: var(--ok-bg); color: var(--ok-fg); border-radius: 10px; padding: 8px 12px; font-weight: 600; }

/* полоса «Підписатися в Telegram» внизу на телефоне */
.tgbar { display: none; }
@media (max-width: 760px) {
  .tgbar:not([hidden]) {
    display: flex; align-items: center; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    padding: 10px 12px; background: #229ed9; box-shadow: 0 -4px 16px rgba(0, 0, 0, .18);
  }
  .tgbar a { flex: 1; color: #fff; text-decoration: none; font-size: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .tgbar a b { background: #fff; color: #229ed9; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
  .tgbar button { background: transparent; border: 0; color: #fff; font-size: 18px; padding: 4px 6px; cursor: pointer; }
  body:has(.tgbar:not([hidden])) .foot { padding-bottom: 80px; }
}
@media (max-width: 760px) {
  .top-tg span { display: none; }            /* на телефоне — только ✈️, шапка в одну строку */
  .brand { font-size: 17px; }
  .top-r { gap: 5px; }
  .sbtn, .tbtn, .top-tg { padding: 6px 8px; }
  .top .lang { padding: 5px 7px; }
}
@media (max-width: 380px) {
  .top { padding: 8px 10px; }
  .brand { gap: 7px; font-size: 16px; }
}

/* распродажи: обратный отсчёт и плашка на главной */
.countdown {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 14px;
  background: linear-gradient(90deg, #e0245e, #fb7701); color: #fff; border-radius: 14px; padding: 12px 16px; font-size: 16px;
}
.countdown b { font-size: 22px; }
.countdown i { font-style: normal; font-weight: 800; font-size: 20px; }
.sale-banner {
  display: block; margin: 0 0 18px; padding: 12px 16px; border-radius: 14px; text-decoration: none;
  background: linear-gradient(90deg, #e0245e, #fb7701); color: #fff !important; font-size: 16px;
}
.sale-banner:hover { filter: brightness(1.05); }
.sale-banner + .sale-banner { margin-top: -8px; background: linear-gradient(90deg, #7b2ff7, #e0245e); }
.pic .rank { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.72); color: #fff; font-weight: 800; font-size: 14px; padding: 3px 9px; border-radius: 999px; }
.chips a.season { border-color: var(--orange); font-weight: 600; box-shadow: inset 0 0 0 1px var(--orange); }

/* обзоры */
.rcards { display: grid; gap: 14px; }
@media (min-width: 760px) { .rcards { grid-template-columns: 1fr 1fr; } }
.rcard {
  display: flex; gap: 14px; align-items: stretch; background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; color: inherit; text-decoration: none; box-shadow: var(--shadow);
}
.rcard:hover { border-color: var(--orange); }
.rcard .pic { flex: none; width: 130px; aspect-ratio: auto; }
.rcard .pic img { width: 130px; height: 100%; min-height: 130px; object-fit: cover; }
.rcard > div:last-child { padding: 12px 14px 12px 0; display: flex; flex-direction: column; gap: 6px; }
.rcard small { color: var(--muted); font-size: 13px; }
.rdate { color: var(--muted); font-size: 12px; margin-top: auto; }
.review .byline { color: var(--muted); font-size: 14px; margin: -2px 0 14px; }
.review figure { margin: 18px 0; }
.review figure img, .review figure video { width: 100%; height: auto; border-radius: 14px; background: #fff; max-height: 640px; object-fit: contain; }
.review figcaption { color: var(--muted); font-size: 12px; text-align: center; margin-top: 4px; }
.rbuy { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; margin: 16px 0; }
.rbuy .now { font-size: 24px; font-weight: 800; color: var(--accent); }
.rbuy .now s { font-size: 15px; color: var(--muted); font-weight: 500; }
.rbuy small { color: var(--muted); }
.quotes { display: grid; gap: 10px; }
.quotes blockquote { margin: 0; background: var(--card); border-left: 4px solid var(--orange); border-radius: 10px; padding: 10px 14px; }
.quotes blockquote p { margin: 0 0 4px; }
.quotes footer { color: var(--muted); font-size: 13px; }
.proscons { display: grid; gap: 12px; margin: 20px 0; }
@media (min-width: 640px) { .proscons { grid-template-columns: 1fr 1fr; } }
.proscons > div { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; }
.proscons h3, .verdict h3 { margin: 0 0 6px; font-size: 17px; }
.pros { border-top: 4px solid #2e9e4f !important; }
.cons { border-top: 4px solid #e0245e !important; }
.verdict { background: var(--bg); border: 2px solid var(--orange); border-radius: 14px; padding: 12px 16px; }
.note { color: var(--muted); font-size: 13px; }
.review-link { text-align: center; }

/* оценка редакции: звёзды заполняются на --p (4,5 з 5 → 90%) */
.escore { margin: 10px 0; font-size: 15px; }
.escore b { font-size: 18px; }
.escore a { color: var(--muted); }
.stars { font-size: 20px; letter-spacing: 1px; line-height: 1; vertical-align: -2px;
  background: linear-gradient(90deg, var(--orange) var(--p), #c9b8a8 var(--p));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.verdict .escore { margin: 8px 0 0; }
.rscore { color: var(--accent); }

/* фото покупателей в обзоре */
.review .own { border: 2px solid var(--orange); border-radius: 16px; padding: 4px 16px 16px; margin: 20px 0; }
.review .own h2 { margin-top: 14px; }
.review .ua-block { background: linear-gradient(180deg, rgba(0, 87, 183, .07), rgba(255, 215, 0, .09)); border-radius: 16px; padding: 4px 16px 12px; margin: 20px 0; }
.review .ua-block h2 { margin-top: 14px; }
.ua-stats { font-size: 15px; }
.cphotos figure[hidden] { display: none; }
.cphotos { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .cphotos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cphotos figure { margin: 0; }
.cphotos img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; background: #fff; }
.sizes { max-width: 760px; margin: 20px auto; }
.sizes h2 { margin-top: 0; }
.sizes td, .sizes th { text-align: center; }

/* фото покупателей в галерее товара */
.slides > .cslide { flex: 0 0 100%; position: relative; scroll-snap-align: start; aspect-ratio: 1; background: #fff; }
.cslide img { width: 100%; height: 100%; object-fit: contain; }
.cbadge { position: absolute; left: 10px; bottom: 10px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.thumbs .cust span { position: absolute; right: 2px; bottom: 2px; font-size: 13px; line-height: 1; }
img[data-lb] { cursor: zoom-in; }

/* просмотр фото на весь экран */
.lb { position: fixed; inset: 0; z-index: 30; background: rgba(10, 6, 3, .94); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 8px; background: #fff; }
.lb button { position: absolute; border: 0; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .14); border-radius: 50%; }
.lb button:hover { background: rgba(255, 255, 255, .26); }
.lb-x { top: 14px; right: 14px; width: 44px; height: 44px; font-size: 20px; }
.lb-p, .lb-n { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 32px; line-height: 1; }
.lb-p { left: 14px; }
.lb-n { right: 14px; }
.lb.one .lb-p, .lb.one .lb-n { display: none; }
.lb-c { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; }
.lb-t { position: absolute; bottom: 18px; left: 16px; right: 16px; text-align: center; color: rgba(255, 255, 255, .85); font-size: 14px; }
@media (max-width: 760px) {
  .lb img { max-width: 100vw; max-height: 76vh; border-radius: 0; }
  .lb-p, .lb-n { width: 42px; height: 42px; font-size: 26px; }
  .lb-p { left: 6px; } .lb-n { right: 6px; }
}

/* карточка канала (через 25 с) и подписка в обзорах */
.tgpop { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: min(320px, calc(100vw - 32px));
  background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .22); padding: 18px 18px 16px; text-align: center; }
.tgpop[hidden] { display: none; }
.tgpop img { border-radius: 50%; display: block; margin: 0 auto 8px; }
.tgpop b { font-size: 18px; }
.tgpop p { margin: 6px 0 12px; font-size: 14px; color: var(--muted); }
.tgpop .btn { display: block; }
.tgpop-x { position: absolute; top: 8px; right: 10px; background: none; border: 0; font-size: 18px; color: var(--muted); cursor: pointer; }
.rtg { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 12px 0 18px;
  padding: 10px 14px; border-radius: 12px; background: #229ed9; color: #fff !important; text-decoration: none; font-size: 15px; }
.rtg b { background: #fff; color: #229ed9; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.rcard-tg { background: linear-gradient(135deg, #e8f5fd, var(--card)); }
.rcard-tg .btn { display: inline-block; margin-top: 8px; padding: 6px 14px; font-size: 14px; }

/* обзоры в поиске — первыми и с подсветкой */
.sres a.sr-rv { background: var(--bg); }
.sres a.sr-rv b { color: var(--accent); font-weight: 700; }
.sres .sr-noimg { width: 56px; height: 56px; flex: none; display: flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 26px; background: var(--card); border-radius: 8px; }

/* язычки у левого края: «Огляди» и «Ярлик на екран» (как на shop.guitarstrings.com.ua) */
.rails { position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 8;
  display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.rail { pointer-events: auto; position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 8px; border: 0; border-radius: 0 12px 12px 0; color: #fff; font: inherit; font-weight: 700;
  font-size: 13px; cursor: pointer; text-decoration: none; box-shadow: 2px 2px 10px rgba(0, 0, 0, .25);
  transition: padding-left .2s; }
.rail:hover { padding-left: 14px; color: #fff; }
.rail[hidden] { display: none; }
.rail-rv { background: linear-gradient(135deg, #f6a821, #e2541a); }
.rail-pin { background: linear-gradient(135deg, #3d5a80, #22303f); }
.rail-i { font-size: 16px; line-height: 1; }
.rail-label { writing-mode: vertical-rl; text-orientation: mixed; letter-spacing: 1px; }
.rail-count { position: absolute; top: -7px; right: -9px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: #fff; color: #e2541a; font-size: 10px; font-weight: 800;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25); display: flex; align-items: center; justify-content: center; }
@media (max-width: 768px) {
  /* на телефоне — внизу слева, только значки: надписи заняли бы полэкрана */
  .rails { top: auto; bottom: 96px; transform: none; gap: 10px; }
  .rail { padding: 9px 7px; }
  .rail-label { display: none; }
}
@media print { .rails { display: none; } }

/* подсказка «как добавить ярлык» */
.foot .linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; }
.pinbox { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .45); display: flex;
  align-items: center; justify-content: center; padding: 16px; }
.pinbox-in { background: var(--card); color: var(--text, inherit); border-radius: 16px; padding: 18px 20px;
  width: min(420px, 100%); box-shadow: 0 10px 40px rgba(0, 0, 0, .3); }
.pinbox-in > b { display: block; font-size: 18px; margin-bottom: 8px; }
.pinbox-in ol { margin: 8px 0 14px; padding-left: 22px; }
.pinbox-in li { margin: 6px 0; }
.pinbox-in .btn { display: block; width: 100%; border: 0; cursor: pointer; }
/* перетаскивание язычков */
.rail { touch-action: none; user-select: none; -webkit-user-select: none; }
.rails.dragging .rail { transition: none; opacity: .92; box-shadow: 3px 4px 16px rgba(0, 0, 0, .35); cursor: grabbing; }
.rails.right { left: auto; right: 0; }
.rails.right .rail { border-radius: 12px 0 0 12px; }
.rails.right .rail:hover { padding-left: 8px; padding-right: 14px; }
.rails.right .rail-count { right: auto; left: -9px; }

/* «Що кажуть покупці» (товар без обзора) и суть обзора на странице товара */
.buyers, .rsum { background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 6px 18px 14px; margin: 22px 0; box-shadow: var(--shadow); }
.buyers h2, .rsum h2 { margin: 14px 0 8px; }
.rsum .lead { margin: 6px 0 12px; }
.bars { display: grid; gap: 4px; margin: 10px 0 14px; max-width: 420px; }
.bar { display: grid; grid-template-columns: 32px 1fr 46px; gap: 8px; align-items: center; font-size: 13px; }
.bar i { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--orange) var(--w), var(--border) var(--w)); }
.bar b { text-align: right; color: var(--muted); font-weight: 600; }

/* категории на телефоне — одна строка с прокруткой вбок, чтобы сразу было видно товары */
@media (max-width: 768px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; gap: 6px; margin: 12px 0; padding-bottom: 4px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .chips::-webkit-scrollbar { display: none; }
  .chips a { flex: none; font-size: 13px; padding: 6px 11px; }
}
@media (max-width: 768px) {
  .sort { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; font-size: 13px; white-space: nowrap; padding-bottom: 2px; }
  .sort::-webkit-scrollbar { display: none; }
  .sort button { flex: none; padding: 5px 11px; }
}

/* добірки («20 гаджетів з Temu»): колаж з 4 фото, зміст, пункти списку */
.collage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; border-radius: 16px; overflow: hidden; margin: 12px 0 16px; }
.collage img { width: 100%; max-width: 100%; min-width: 0; aspect-ratio: 1; object-fit: cover; display: block; }
.article .toc, .toc { background: var(--card); border: 1px solid var(--border); border-radius: 14px; margin: 0 0 8px; padding: 12px 16px 12px 46px; columns: 2; column-gap: 24px; font-size: 15px; }
.toc li { margin: 4px 0; break-inside: avoid; }
@media (max-width: 600px) { .toc { columns: 1; } }
.topitem { margin: 30px 0 0; padding-top: 10px; border-top: 1px solid var(--border); }
.topitem h2 a { color: inherit; text-decoration: none; }
.topitem h2 a:hover { color: var(--orange); }
.rbtns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
/* возврат в добірку: кнопка «← До добірки» справа в строке крошек (приходит по #dobirka=slug:N) */
.crumbrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 8px; }
.crumbrow .crumbs { margin: 0; min-width: 0; flex: 1 1 auto; }
.backbtn { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 8px 16px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--border); color: var(--text, inherit); font-size: 15px; font-weight: 600;
  text-decoration: none; white-space: nowrap; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.backbtn span { font-size: 18px; line-height: 1; }
.backbtn:hover { border-color: var(--orange); color: var(--orange); }
@media (max-width: 600px) { .backbtn { padding: 6px 11px; font-size: 13px; gap: 5px; border-radius: 10px; } .backbtn span { font-size: 15px; } }
/* «Поділитися» на язычках и подсказка «Посилання скопійовано» */
.rail-share { background: linear-gradient(135deg, #2bb3a3, #17766d); }
.toast { position: fixed; left: 50%; bottom: 110px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #22303f; color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3); transition: opacity .2s, transform .2s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.indobirka { margin: 4px 0 10px; padding: 8px 12px; background: var(--card); border: 1px solid var(--orange);
  border-radius: 12px; font-size: 15px; }
.indobirka a { font-weight: 600; }
/* добірка: вибір редакції, цитата й фото покупців у пункті, підсумкова таблиця */
.picks { margin: 16px 0 4px; }
.picks h2 { margin: 0 0 10px; }
.pickgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .pickgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pickgrid .pick { display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 2px solid var(--orange); border-radius: 14px;
  padding: 10px; text-decoration: none; color: inherit; }
.pickgrid .pick img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.pickgrid .pick .noimg { aspect-ratio: 1; font-size: 48px; }
.pickgrid .pick small { display: block; color: var(--accent); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .02em; }
.pickgrid .pick b { display: block; font-size: 14px; line-height: 1.3; margin: 2px 0; }
.pickgrid .pick span { color: var(--muted); font-size: 13px; }
.topitem.ispick { border-top: 2px solid var(--orange); }
.pickbadge { display: inline-block; margin-top: 10px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .02em; }
.topitem .q { margin: 12px 0; background: var(--card); border-left: 4px solid var(--orange); border-radius: 10px; padding: 10px 14px; }
.topitem .q p { margin: 0 0 4px; }
.topitem .q footer { color: var(--muted); font-size: 13px; }
.cphotos.mini { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.cphotos.mini img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; cursor: zoom-in; }
.cphotos.mini small { color: var(--muted); font-size: 12px; flex-basis: 100%; }
.sumwrap { margin: 28px 0 8px; }
.sumline { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.sumtab { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; font-size: 15px; }
.sumtab th, .sumtab td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.sumtab th { background: var(--orange); color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.sumtab th[data-key] { cursor: pointer; user-select: none; }
.sumtab th[data-key]::after { content: " ↕"; opacity: .6; }
.sumtab th[data-dir="asc"]::after { content: " ↑"; opacity: 1; }
.sumtab th[data-dir="desc"]::after { content: " ↓"; opacity: 1; }
.sumtab tbody tr:last-child td { border-bottom: 0; }
.sumtab tbody tr:hover { background: var(--bg); }
.sumtab tr.pick td.prod b::before { content: "🏆 "; }
.sumtab td.n { color: var(--muted); font-weight: 700; width: 2em; }
.sumtab td.prod a { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.sumtab td.prod img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; }
.sumtab td.prod b { display: block; font-size: 14px; line-height: 1.3; }
.sumtab td.prod small { color: var(--muted); font-size: 12px; }
.sumtab td.price { font-weight: 800; color: var(--accent); white-space: nowrap; }
.sumtab td.rate, .sumtab td.revs, .sumtab td.sold { white-space: nowrap; }
.sumtab td.act { white-space: nowrap; }
.sumtab td.act .btn { display: inline-block; padding: 6px 12px; font-size: 13px; margin: 2px 4px 2px 0; }
@media (max-width: 760px) {
  .sumtab thead, .sorthint { display: none; }
  .sumtab, .sumtab tbody { display: block; }
  .sumtab tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 6px; padding: 10px 8px; border-bottom: 1px solid var(--border); }
  .sumtab td { display: block; padding: 0; border: 0; }
  .sumtab td.n { display: none; }
  .sumtab td.prod, .sumtab td.act { grid-column: 1 / -1; }
  .sumtab td.price, .sumtab td.rate, .sumtab td.revs, .sumtab td.sold { font-size: 13px; }
  .sumtab td.price::before, .sumtab td.rate::before, .sumtab td.revs::before, .sumtab td.sold::before {
    content: attr(data-l); display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; }
  .sumtab td.act { margin-top: 4px; }
  .sumtab td.act .btn { padding: 8px 14px; font-size: 14px; }
}
/* видео YouTube: обложка с ▶, по нажатию — плеер (sitegen.yt_facade) */
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 78px; height: 54px;
  border-radius: 16px; background: #f00; color: #fff; font-size: 26px; display: flex; align-items: center;
  justify-content: center; box-shadow: 0 4px 16px rgba(0, 0, 0, .35); transition: transform .15s; padding-left: 4px; }
.yt:hover .yt-play, .yt:focus .yt-play { transform: translate(-50%, -50%) scale(1.08); }
.yt.on .yt-play { display: none; }
.yt-short { aspect-ratio: 9 / 16; max-width: 360px; margin: 0 auto; }
.ytwrap { margin: 16px 0; }
.ytwrap figcaption { color: var(--muted); font-size: 14px; margin-top: 6px; text-align: center; }
.slides > .yt { flex: 0 0 100%; width: 100%; aspect-ratio: 1; border-radius: 0; scroll-snap-align: start; max-width: none; }
.slides > .yt img { object-fit: contain; }
