/* ============================================================
   КегельПрайс — агрегатор цен на тренажёры Кегеля.
   Мобайл-фёрст. Светлая + тёмная тема.
   Палитра «здоровье»: бирюза/мята + тёплый акцент. Нейтрально по полу.
   ============================================================ */

:root {
  --teal:      #1d9e75;
  --teal-dark: #0f6e56;
  --teal-ink:  #08312a;
  --teal-tint: #e1f5ee;
  --accent:    #e8804a;   /* тёплый — «лучшая цена», акценты */
  --accent-dark:#c85f2a;
  --gold:      #f2b134;   /* звёзды рейтинга */

  --bg:       #eef4f1;
  --surface:  #ffffff;
  --surface-2:#f4f9f6;
  --ink:      #10231d;
  --muted:    #5c6f68;
  --line:     #e0ebe6;
  --line-2:   #cfe0d8;

  --ok:       #17a673;
  --ok-bg:    #eafaf3;
  --ok-line:  #bfe9d6;
  --bad:      #e5484d;
  --bad-bg:   #fdeeee;
  --bad-line: #f6cdcf;

  --radius:   16px;
  --radius-sm:10px;
  --shadow:   0 6px 24px rgba(15,110,86,.09);
  --shadow-lg:0 16px 44px rgba(15,110,86,.16);
  --wrap:     1180px;
  --font:     'Nunito Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --head:     'Manrope', system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:       #0a1512;
    --surface:  #10201b;
    --surface-2:#0d1a16;
    --ink:      #e7f2ee;
    --muted:    #9db8af;
    --line:     #1e332b;
    --line-2:   #294237;
    --teal-tint:#10261d;
    --ok-bg:    #10261d;
    --ok-line:  #1f4536;
    --bad-bg:   #2a1618;
    --bad-line: #4a2427;
    --shadow:   0 6px 24px rgba(0,0,0,.4);
    --shadow-lg:0 16px 44px rgba(0,0,0,.55);
  }
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  --bg:#0a1512; --surface:#10201b; --surface-2:#0d1a16; --ink:#e7f2ee; --muted:#9db8af;
  --line:#1e332b; --line-2:#294237; --teal-tint:#10261d; --ok-bg:#10261d; --ok-line:#1f4536;
  --bad-bg:#2a1618; --bad-line:#4a2427; --shadow:0 6px 24px rgba(0,0,0,.4); --shadow-lg:0 16px 44px rgba(0,0,0,.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }
.section { padding: 46px 0; }
.section-head { max-width: 720px; margin: 0 auto 28px; text-align: center; }
.section-head h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
.section-head p { color: var(--muted); margin: 0; }
.eyebrow { font-family: var(--head); font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  font-size: .78rem; color: var(--teal); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--teal-ink); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100; }
.skip-link:focus { left: 0; }

/* ---------- Кнопки / чипы ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--head); font-weight: 700; font-size: .98rem;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
  cursor: pointer; transition: transform .12s, box-shadow .18s, background .18s; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff;
  box-shadow: 0 6px 18px rgba(15,110,86,.3); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(15,110,86,.42); color:#fff; }
.btn-accent { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color:#fff;
  box-shadow: 0 6px 18px rgba(200,95,42,.32); }
.btn-accent:hover { color:#fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn-sm { padding: 8px 15px; font-size: .86rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .8rem; font-weight: 700; font-family: var(--head);
  padding: 4px 10px; border-radius: 999px; background: var(--surface-2);
  color: var(--muted); border: 1px solid var(--line); white-space: nowrap;
}
.chip-teal { color: var(--teal-dark); background: rgba(29,158,117,.12); border-color: rgba(29,158,117,.3); }
.chip-accent { color: var(--accent-dark); background: rgba(232,128,74,.12); border-color: rgba(232,128,74,.32); }

/* ---------- Плашка магазина / звёзды ---------- */
.shopbadge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  font-family: var(--head); font-weight: 800; font-size: .9rem; color: #fff;
  background: var(--sb, #888); letter-spacing: .02em;
}
/* вариант с логотипом магазина — белый чип, логотип вписан */
.shopbadge--logo {
  box-sizing: border-box; background: #fff; color: transparent; padding: 5px;
  overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.10);
}
.shopbadge--logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.stars { display: inline-flex; gap: 2px; vertical-align: middle; line-height: 1; }
.stars .star { position: relative; width: var(--st,16px); height: var(--st,16px); font-size: var(--st,16px); }
.stars .star-bg, .stars .star-fg { position: absolute; inset: 0; overflow: hidden; font-style: normal; line-height: 1; }
.stars .star-bg { color: var(--line-2); }
.stars .star-fg { color: var(--gold); width: 0; }
.rating-line { display: inline-flex; align-items: center; gap: 8px; }
.rating-num { font-family: var(--head); font-weight: 800; }
.rating-cnt { color: var(--muted); font-size: .9rem; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--head); font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-accent { color: var(--teal); }
.menu { display: flex; align-items: center; gap: 6px; }
.menu a { font-family: var(--head); font-weight: 700; color: var(--ink); padding: 8px 12px; border-radius: 10px; font-size: .96rem; }
.menu a:hover { text-decoration: none; background: var(--surface-2); color: var(--teal-dark); }
.menu a.active { color: var(--teal-dark); }
.menu-cta { background: var(--teal); color: #fff !important; }
.menu-cta:hover { background: var(--teal-dark); }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

@media (max-width: 860px) {
  .burger { display: flex; }
  .menu { position: fixed; inset: 62px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 18px 16px;
    gap: 4px; transform: translateY(-140%); transition: transform .25s; box-shadow: var(--shadow); }
  .menu.open { transform: translateY(0); }
  .menu a { padding: 12px; }
  .menu-cta { text-align: center; margin-top: 6px; }
}

/* ---------- Хлебные крошки ---------- */
.crumbs { font-size: .86rem; color: var(--muted); padding: 16px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--teal-dark); }
.crumbs span { color: var(--ink); }

/* ---------- Hero (главная) ---------- */
.hero { padding: 54px 0 40px; background:
  radial-gradient(1200px 400px at 15% -10%, rgba(29,158,117,.14), transparent 60%),
  radial-gradient(900px 380px at 100% 0%, rgba(232,128,74,.1), transparent 55%); }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin-bottom: .35em; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px 26px; margin-top: 26px; color: var(--muted); font-size: .92rem; }
.hero-trust b { color: var(--ink); font-family: var(--head); }
.hero-trust .ht { display: flex; align-items: center; gap: 8px; }
.hero-trust svg { color: var(--teal); flex: none; }

/* ---------- Сетка товаров (витрина) ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.pcard {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .15s, box-shadow .2s, border-color .2s;
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.pcard-media { position: relative; aspect-ratio: 4/3; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); }
.pcard-cat { position: absolute; top: 10px; left: 10px; }
.pcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard-title { font-family: var(--head); font-weight: 800; font-size: 1.02rem; line-height: 1.25; margin: 0; }
.pcard-title a { color: var(--ink); }
.pcard-title a:hover { color: var(--teal-dark); text-decoration: none; }
.pcard-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.pcard-foot .pcard-price { min-width: 0; }
.pcard-foot .btn { flex: none; }
.pcard-price .lbl { display: block; font-size: .78rem; color: var(--muted); }
.pcard-price .val { font-family: var(--head); font-weight: 800; font-size: 1.3rem; color: var(--ink); }
.pcard-price .shops { font-size: .78rem; color: var(--muted); }

/* ---------- Placeholder-картинка товара ---------- */
.ph-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--line-2); }
.ph-img svg { width: 46%; height: 46%; opacity: .7; }
/* Реальное фото товара — вписываем целиком на белом фоне (фото сняты на белом). */
.ph-img.has-photo { background: #fff; }
.ph-img.has-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pcard-media .ph-img.has-photo { padding: 8px; }
.ph-note { position: absolute; bottom: 8px; right: 10px; font-size: .68rem; color: var(--muted);
  background: var(--surface); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line); }

/* ============================================================
   СТРАНИЦА ТОВАРА
   ============================================================ */
.product-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 30px; padding: 22px 0 8px; }
@media (max-width: 900px) { .product-top { grid-template-columns: 1fr; gap: 20px; } }

/* Галерея */
.gallery-main { aspect-ratio: 1/1; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; box-shadow: var(--shadow); }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumbs button { flex: 1; aspect-ratio: 1/1; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 8px; }
.gallery-thumbs button.active { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(29,158,117,.2); }

/* Правая колонка — сводка */
.product-head h1 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: .3em; }
.product-sub { color: var(--muted); margin: 0 0 14px; }
.product-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 16px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.buybox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); }
.buybox .bb-lbl { font-size: .86rem; color: var(--muted); }
.buybox .bb-price { display: flex; align-items: baseline; gap: 10px; margin: 2px 0 4px; }
.buybox .bb-now { font-family: var(--head); font-weight: 800; font-size: 2rem; color: var(--teal-dark); }
.buybox .bb-shops { color: var(--muted); font-size: .9rem; }
.buybox .bb-best { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 14px;
  font-size: .86rem; color: var(--accent-dark); font-weight: 700; font-family: var(--head); }
.buybox .bb-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.buybox .bb-actions .btn { flex: 1; min-width: 140px; }
.bb-updated { margin-top: 12px; font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }

/* Якорные секции товара */
.psection { padding: 30px 0; border-top: 1px solid var(--line); }
.psection > h2 { font-size: 1.45rem; margin-bottom: 4px; }
.psection .sub { color: var(--muted); margin: 0 0 18px; }
.scroll-anchor { scroll-margin-top: 78px; }

/* ---------- ТАБЛИЦА ЦЕН — ядро ---------- */
.price-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; }
.price-panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.price-panel-head .ttl { font-family: var(--head); font-weight: 800; font-size: 1.05rem; }
.price-updated { font-size: .82rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.price-updated .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

.offer-row { display: grid; grid-template-columns: auto 1.4fr auto auto; align-items: center;
  gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.offer-row:last-child { border-bottom: 0; }
.offer-row.is-best { background: linear-gradient(90deg, rgba(232,128,74,.09), transparent 70%); }
.offer-shop { display: flex; align-items: center; gap: 12px; min-width: 0; }
.offer-shop .nm { font-family: var(--head); font-weight: 700; }
.offer-shop .st { font-size: .82rem; color: var(--muted); }
.offer-note { font-size: .84rem; color: var(--muted); }
.offer-price { text-align: right; }
.offer-price .now { font-family: var(--head); font-weight: 800; font-size: 1.25rem; color: var(--ink); white-space: nowrap; }
.offer-price .old { font-size: .85rem; color: var(--muted); text-decoration: line-through; }
.offer-cta { text-align: right; }
.best-tag { display: inline-flex; align-items: center; gap: 5px; font-family: var(--head); font-weight: 800;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-dark);
  background: rgba(232,128,74,.14); border: 1px solid rgba(232,128,74,.32); border-radius: 999px; padding: 2px 9px; }
.stock-out { color: var(--bad); }
.link-missing { font-size: .78rem; color: var(--muted); font-style: italic; }

@media (max-width: 720px) {
  .offer-row { grid-template-columns: auto 1fr; grid-template-areas: "shop price" "note cta"; row-gap: 10px; }
  .offer-shop { grid-area: shop; }
  .offer-price { grid-area: price; }
  .offer-note { grid-area: note; align-self: center; }
  .offer-cta { grid-area: cta; }
}

/* ---------- Характеристики ---------- */
.spec-table { width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 16px; vertical-align: top; }
.spec-table th { width: 42%; font-family: var(--head); font-weight: 700; color: var(--muted);
  font-size: .92rem; background: var(--surface-2); }
.spec-table td { font-weight: 600; }

/* ---------- Плюсы / минусы ---------- */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .proscons { grid-template-columns: 1fr; } }
.pc-col { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.pc-col h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.pc-col.pros { background: var(--ok-bg); border-color: var(--ok-line); }
.pc-col.cons { background: var(--bad-bg); border-color: var(--bad-line); }
.pc-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pc-col li { display: flex; gap: 9px; align-items: flex-start; font-size: .96rem; }
.pc-col li .ic { flex: none; font-weight: 800; margin-top: 1px; }
.pros li .ic { color: var(--ok); }
.cons li .ic { color: var(--bad); }

/* ---------- Инфоблок «польза» ---------- */
.callout { display: flex; gap: 14px; background: var(--teal-tint); border: 1px solid rgba(29,158,117,.25);
  border-radius: var(--radius); padding: 18px 20px; }
.callout .ic { flex: none; color: var(--teal); }
.callout p { margin: 0; }
.callout .disc { display: block; margin-top: 8px; font-size: .86rem; color: var(--muted); }

/* ---------- Как пользоваться (шаги) ---------- */
.steps { counter-reset: step; display: grid; gap: 12px; }
.steps li { list-style: none; display: flex; gap: 14px; align-items: flex-start; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; }
.steps li::before { counter-increment: step; content: counter(step); flex: none;
  width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff;
  font-family: var(--head); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .95rem; }

/* ---------- История цен (мини-график) ---------- */
.pricechart { display: flex; align-items: flex-end; gap: 10px; height: 130px; padding: 12px 6px 0; }
.pricechart .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.pricechart .bar .col { width: 100%; max-width: 46px; border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--teal), var(--teal-dark)); }
.pricechart .bar.last .col { background: linear-gradient(180deg, var(--accent), var(--accent-dark)); }
.pricechart .bar .v { font-size: .74rem; color: var(--muted); font-family: var(--head); font-weight: 700; }
.chart-note { font-size: .84rem; color: var(--muted); margin-top: 10px; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--head); font-weight: 700; font-size: 1rem; color: var(--ink);
  padding: 15px 48px 15px 18px; position: relative; }
.faq-q::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--teal); transition: transform .2s; }
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 600px; }
.faq-a > div { padding: 0 18px 16px; color: var(--muted); }

/* ---------- Похожие товары ---------- */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }

/* ---------- Гид «Как выбрать» ---------- */
.guide-body { max-width: 780px; margin: 0 auto; }
.guide-body h2 { font-size: 1.5rem; margin-top: 1.6em; }
.guide-body h3 { font-size: 1.15rem; margin-top: 1.4em; }
.guide-body p, .guide-body li { color: var(--ink); }
.guide-body ul { padding-left: 1.1em; }
.guide-toc { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; margin: 22px 0; }
.guide-toc ol { margin: 8px 0 0; padding-left: 1.2em; }
.type-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 18px 0; }
.type-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.type-card h3 { margin-top: 0; font-size: 1.05rem; }
.type-card p { color: var(--muted); margin: 0; font-size: .94rem; }

/* ---------- Квиз-подбор («Как выбрать») ---------- */
.quiz-intro { max-width: 760px; }
.quiz-intro h1 { margin: .15em 0 .35em; }
.quiz-lede { color: var(--muted); font-size: 1.02rem; max-width: 730px; }
.quiz-controls { display: grid; gap: 14px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; margin: 22px 0 20px; }
.quiz-row { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; align-items: start; }
.quiz-q { font-family: var(--head); font-weight: 800; color: var(--ink); padding-top: 7px; }
.quiz-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz-chip { font-family: var(--head); font-weight: 700; font-size: .9rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 15px;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.quiz-chip:hover { border-color: var(--teal); color: var(--teal-dark); }
.quiz-chip.is-active { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff;
  border-color: transparent; box-shadow: 0 4px 12px rgba(15,110,86,.28); }
.quiz-results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px; flex-wrap: wrap; }
.quiz-count { margin: 0; color: var(--muted); font-size: 1rem; }
.quiz-count strong { font-family: var(--head); font-size: 1.35rem; color: var(--ink); margin-right: 4px; }
.quiz-reset { background: none; border: none; color: var(--teal-dark); font-family: var(--head);
  font-weight: 700; cursor: pointer; font-size: .92rem; padding: 4px 2px; }
.quiz-reset:hover { text-decoration: underline; }
.quiz-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.quiz-item { display: flex; }
.quiz-item > .pcard { flex: 1; }
.quiz-item.is-hidden { display: none; }
.quiz-empty { background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: var(--radius);
  padding: 26px 22px; text-align: center; color: var(--muted); }
.linklike { background: none; border: none; color: var(--teal-dark); font: inherit; font-weight: 700;
  cursor: pointer; padding: 0; text-decoration: underline; }
@media (max-width: 560px) {
  .quiz-row { grid-template-columns: 1fr; gap: 6px; }
  .quiz-q { padding-top: 0; }
}

/* ---------- Подвал ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 40px; padding: 40px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 24px 40px; align-items: start; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } .footer-brand { grid-column: auto; } }
.footer-about { color: var(--muted); max-width: 420px; margin: 10px 0 0; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-h { font-family: var(--head); font-weight: 800; font-size: .82rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); margin: 0 0 3px; }
.footer-col a { font-family: var(--head); font-weight: 700; color: var(--ink); font-size: .96rem; }
.footer-col a:hover { color: var(--teal-dark); text-decoration: none; }
.disclaimer { font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line);
  margin-top: 26px; padding-top: 18px; }
.disclaimer strong { color: var(--ink); }
.copyright { font-size: .82rem; color: var(--muted); margin: 6px 0 0; }

/* ---------- утилиты ---------- */
.center { text-align: center; }
.mt-24 { margin-top: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Отзывы (реальные, из магазинов) ---------- */
.reviews-grid {
  display: grid; grid-template-columns: minmax(150px, 210px) 1fr; gap: 26px;
  align-items: center; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
}
.reviews-sum { text-align: center; padding: 4px 8px; }
.reviews-sum-num { font-family: var(--head); font-weight: 800; font-size: 2.8rem; line-height: 1; color: var(--teal-dark); }
.reviews-byshop { display: flex; flex-direction: column; gap: 8px; }
.rev-shop {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.rev-shop-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rev-shop-name { font-weight: 700; }
.rev-shop-sub { color: var(--muted); font-size: .86rem; display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.rev-shop-link {
  flex: none; font-weight: 700; font-size: .9rem; color: var(--teal-dark);
  text-decoration: none; white-space: nowrap;
}
.rev-shop-link:hover { text-decoration: underline; }

.reviews-list {
  margin-top: 18px; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.review-card {
  margin: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px;
}
.review-card figcaption { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.review-author { font-weight: 800; }
.review-date { color: var(--muted); font-size: .82rem; }
.review-card blockquote { margin: 0; font-size: .94rem; line-height: 1.5; color: var(--ink); }
.rating-line--empty .rating-cnt { color: var(--muted); opacity: .75; }

@media (max-width: 640px) {
  .reviews-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- SEO-текст / контентные страницы ---------- */
.seo-text { max-width: 820px; margin: 0 auto; }
.seo-text h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: .6em; }
.seo-text h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); margin: 0 0 .5em; }
.seo-text h3 { font-size: 1.15rem; margin: 1.5em 0 .4em; }
.seo-text p { margin: 0 0 1em; }
.seo-text ul, .seo-text ol { margin: 0 0 1em; padding-left: 1.25em; }
.seo-text li { margin: .35em 0; }
.seo-text a { color: var(--teal-dark); font-weight: 600; }
.seo-text .muted { color: var(--muted); font-size: .92rem; }

/* ---------- Навигация по категориям (чипы) ---------- */
.cat-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-chip {
  display: inline-flex; align-items: center; font-family: var(--head); font-weight: 700;
  font-size: .95rem; padding: 9px 16px; border-radius: 999px;
  background: var(--surface-2); color: var(--teal-dark); border: 1px solid var(--line-2);
  text-decoration: none; transition: background .15s, border-color .15s, color .15s;
}
.cat-chip:hover { text-decoration: none; background: rgba(29,158,117,.12); border-color: var(--teal); }
.cat-chip.is-active { background: var(--teal); color: #fff; border-color: var(--teal); }
.cat-nav--home { margin: 4px 0 24px; }
