/* ==========================================================================
   ВЫГОДИН — акцентный слой
   То, что отличает нас от соседей по нише при одинаковой анатомии карточек:
   штамп проверки, гигантские цифры разоблачения, тикер, крафтовые вставки.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Заголовок раздела с номером
   -------------------------------------------------------------------------- */
.rule {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s-5);
  align-items: start; padding-top: var(--s-4);
  border-top: 1px solid var(--line-2); position: relative;
}
.rule::after {
  content: ''; position: absolute; left: 0; top: -1px; width: 64px; height: 2px;
  background: var(--brand);
}
.rule-num {
  font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: 700;
  letter-spacing: .12em; color: var(--brand); padding-top: 7px; white-space: nowrap;
}
.rule-body { min-width: 0; }
.rule-title { max-width: 24ch; }
.rule-note { color: var(--ink-2); max-width: 64ch; margin-top: var(--s-3); font-size: var(--fs-md); }
@media (max-width: 700px) {
  .rule { grid-template-columns: 1fr; gap: var(--s-2); }
  .rule-num { padding-top: 0; }
}

.hairline { height: 1px; background: var(--line); }

/* --------------------------------------------------------------------------
   2. ШТАМП — главный графический приём бренда
   -------------------------------------------------------------------------- */
.stamp {
  --sc: var(--good);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 8px 15px;
  border: 2px solid var(--sc); border-radius: var(--r-xs);
  color: var(--sc); background: color-mix(in srgb, var(--sc) 10%, transparent);
  font-family: var(--font-mono); text-transform: uppercase;
  letter-spacing: .1em; line-height: 1.15;
  transform: rotate(-5deg); position: relative;
  backdrop-filter: blur(4px);
}
.stamp::before {
  content: ''; position: absolute; inset: 3px;
  border: 1px solid var(--sc); border-radius: 3px; opacity: .5;
}
.stamp-l { font-size: var(--fs-sm); font-weight: 700; }
.stamp-s { font-size: 9px; font-weight: 500; letter-spacing: .15em; opacity: .8; }
.stamp-lg { padding: 13px 24px; transform: rotate(-7deg); }
.stamp-lg .stamp-l { font-size: var(--fs-lg); }
.stamp-sm { padding: 5px 10px; transform: rotate(-3deg); }
.stamp-sm .stamp-l { font-size: var(--fs-2xs); }

.stamp-good    { --sc: var(--good); }
.stamp-fake    { --sc: var(--fake); }
.stamp-wait    { --sc: var(--wait); }
.stamp-unknown { --sc: var(--unknown); border-style: dashed; }

.stamp-pin { position: absolute; top: -14px; right: var(--s-5); z-index: 3; }

/* --------------------------------------------------------------------------
   3. ГИГАНТСКАЯ ЦИФРА
   -------------------------------------------------------------------------- */
.bigfig {
  font-family: var(--font-display); font-size: var(--fs-4xl); font-weight: 800;
  line-height: .88; letter-spacing: -.045em;
  font-variant-numeric: tabular-nums lining-nums; display: block;
}
.bigfig-sub {
  font-family: var(--font-mono); font-size: var(--fs-2xs);
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}
.figure-block { display: grid; gap: 6px; }
.figure-block .fb-l {
  font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.figure-block .fb-v {
  font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 800;
  letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums;
}
.figure-block.is-fake .fb-v { color: var(--fake); }
.figure-block.is-good .fb-v { color: var(--good); }
.figure-block.is-wait .fb-v { color: var(--wait); }

/* --------------------------------------------------------------------------
   4. ДОСЬЕ — карточка разбора
   -------------------------------------------------------------------------- */
.dossier {
  position: relative; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s-5);
}
.dossier-kraft {
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--ad) 12%, var(--card)), var(--card) 65%);
  border-color: var(--ad-line);
}
.dossier-tab {
  position: absolute; top: -1px; left: var(--s-6); transform: translateY(-100%);
  background: var(--ad-bg); border: 1px solid var(--ad-line); border-bottom: 0;
  border-radius: var(--r-xs) var(--r-xs) 0 0;
  padding: 5px 13px 6px;
  font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ad);
}

/* --------------------------------------------------------------------------
   5. ТИКЕР — живая лента проверок
   -------------------------------------------------------------------------- */
.ticker {
  background: var(--paper-2); border-bottom: 1px solid var(--line);
  overflow: hidden; padding-block: 9px; position: relative;
}
.ticker::before, .ticker::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 70px; z-index: 2; pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--paper-2), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--paper-2), transparent); }
.ticker-track { display: flex; gap: var(--s-8); width: max-content; animation: tickerMove 52s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: var(--fs-xs);
  letter-spacing: .02em; white-space: nowrap; color: var(--ink-2);
}
.ticker-item b { font-weight: 700; color: var(--fake); }
.ticker-item .ok { color: var(--brand); }
.ticker-item .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-3); }
@keyframes tickerMove { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* --------------------------------------------------------------------------
   6. ГЛУБОКАЯ ПАНЕЛЬ — для акцентных секций
   -------------------------------------------------------------------------- */
.slab {
  background:
    radial-gradient(900px 380px at 12% 0%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 62%),
    var(--paper-2);
  position: relative; overflow: hidden;
  border-block: 1px solid var(--line);
}
.slab::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink) 1px, transparent 1px);
  background-size: 46px 46px; opacity: .025;
}
.slab-fake {
  background:
    radial-gradient(900px 380px at 12% 0%, color-mix(in srgb, var(--fake) 11%, transparent), transparent 62%),
    var(--paper-2);
}
.slab > * { position: relative; z-index: 1; }

.hatch {
  background-image: repeating-linear-gradient(
    -45deg, transparent 0 7px, color-mix(in srgb, var(--ink) 4%, transparent) 7px 8px);
}

/* --------------------------------------------------------------------------
   7. Маркер-подсветка
   -------------------------------------------------------------------------- */
.mark { position: relative; display: inline-block; padding-inline: .1em; color: var(--brand); }
.mark::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: .06em; height: .38em;
  background: color-mix(in srgb, var(--brand) 26%, transparent);
  z-index: -1; transform-origin: left center; transform: scaleX(var(--mark-scale, 1));
}
.mark-fake { color: var(--fake); }
.mark-fake::before { background: color-mix(in srgb, var(--fake) 24%, transparent); }

/* --------------------------------------------------------------------------
   8. Ссылка-стрелка
   -------------------------------------------------------------------------- */
.arrowlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--brand);
  padding-bottom: 3px; border-bottom: 1px solid color-mix(in srgb, var(--brand) 45%, transparent);
  transition: gap var(--t) var(--ease), border-color var(--t) var(--ease);
}
.arrowlink:hover { gap: 13px; border-bottom-color: var(--brand); }

/* --------------------------------------------------------------------------
   9. Нумерованный список-индекс
   -------------------------------------------------------------------------- */
.index-list { border-top: 1px solid var(--line); }
.index-row {
  display: grid; grid-template-columns: 52px 1fr auto; gap: var(--s-5);
  align-items: baseline; padding: var(--s-5) var(--s-4);
  border-bottom: 1px solid var(--line);
  transition: background var(--t) var(--ease);
}
.index-row:hover { background: var(--card); }
.index-row .ir-n { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; color: var(--brand); }
.index-row .ir-t { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -.012em; }
.index-row .ir-d { color: var(--ink-2); font-size: var(--fs-md); margin-top: 7px; max-width: 64ch; }
.index-row .ir-f {
  font-family: var(--font-mono); font-size: var(--fs-md); font-weight: 700;
  color: var(--brand); white-space: nowrap; font-variant-numeric: tabular-nums;
}
@media (max-width: 700px) {
  .index-row { grid-template-columns: 36px 1fr; padding-inline: 0; }
  .index-row .ir-f { grid-column: 2; margin-top: 8px; }
}

/* --------------------------------------------------------------------------
   10. Появление по скроллу
   -------------------------------------------------------------------------- */
html.has-motion .js-reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: transform, opacity;
}
html.has-motion .js-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.has-motion .js-reveal { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   11. Строка магазина
   -------------------------------------------------------------------------- */
.shoprow {
  /* Первая колонка не 34px, а auto: логотип-вордмарк шире квадрата,
     и фиксированная ширина его сплющивала. */
  display: grid; grid-template-columns: auto 1fr auto auto; gap: var(--s-4);
  align-items: center; padding: 12px var(--s-3); border-bottom: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.shoprow:hover { background: var(--card); }
.shoprow .sr-n { font-weight: 600; font-size: var(--fs-md); }
.shoprow .sr-m { font-size: var(--fs-xs); color: var(--ink-3); }
.shoprow .sr-c { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--ink-3); }
@media (max-width: 620px) { .shoprow { grid-template-columns: auto 1fr auto; } .shoprow .sr-c { display: none; } }

/* --------------------------------------------------------------------------
   12. Цитата персонажа
   -------------------------------------------------------------------------- */
.saying { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 800; line-height: 1.18; letter-spacing: -.02em; max-width: 22ch; }
.saying-attr { font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin-top: var(--s-4); }

/* --------------------------------------------------------------------------
   13. FAQ
   -------------------------------------------------------------------------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item > summary {
  list-style: none; cursor: pointer; padding: var(--s-5) 0;
  font-size: var(--fs-lg); font-weight: 650;
  display: flex; justify-content: space-between; gap: var(--s-4); align-items: center;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { color: var(--brand); }
.faq-item > summary::after { content: '＋'; color: var(--ink-3); flex: none; font-weight: 400; }
.faq-item[open] > summary::after { content: '−'; }
.faq-item > p { padding-bottom: var(--s-5); color: var(--ink-2); max-width: 76ch; }

/* Текстовый блок статьи. В макете правило лежало внутри article.html,
   поэтому на витрине промокодов, где тот же класс тоже используется,
   длинный текст шёл без типографики. Место ему здесь. */
.art-body { margin-top: var(--s-8); }
.art-body p { font-size: 1.0625rem; line-height: 1.75; color: var(--ink-2); margin-top: var(--s-5); }
.art-body h2 { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 800;
  letter-spacing: -.016em; margin-top: var(--s-12); scroll-margin-top: 100px; }
.art-body ul, .art-body ol { margin-top: var(--s-5); padding-left: 22px; color: var(--ink-2);
  font-size: 1.0625rem; line-height: 1.7; }
.art-body ul { list-style: disc; }
.art-body ol { list-style: decimal; }
.art-body li + li { margin-top: 10px; }
.art-body blockquote {
  margin-top: var(--s-6); padding: var(--s-5) var(--s-6);
  border-left: 3px solid var(--fake); background: var(--fake-bg);
  border-radius: 0 var(--r) var(--r) 0;
  font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700;
  line-height: 1.4; color: var(--ink);
}
.art-body .note { margin-top: var(--s-6); }
