/* =====================================================
   semaking · hub — styles (minimalist black, kondrat-style tiles)
   ===================================================== */

/* Self-hosted fonts — TSPU в РФ режет fonts.gstatic.com, из-за чего страница
   раньше рендерилась serif-default'ом и жила без CSS по 5+ секунд. Инлайн
   CSS + woff2 с того же домена = моментальный fallback. Variable fonts:
   один файл закрывает все weights через `font-weight: 400 900`. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: optional;
  src: url('/assets/fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: optional;
  src: url('/assets/fonts/inter-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: optional;
  src: url('/assets/fonts/space-grotesk-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Color tokens — flat black palette, no radial gradients */
  --bg: #0A0A0B;
  --bg-elev: #121214;
  --bg-tile: rgba(26, 26, 30, 0.5);
  --bg-tile-hover: rgba(36, 36, 42, 0.65);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #F5F5F7;
  --text-dim: rgba(245, 245, 247, 0.55);
  --text-mute: rgba(245, 245, 247, 0.55);

  --accent: #00D9FF;
  --accent-dim: rgba(0, 217, 255, 0.7);
  --live: #FF3B3B;
  --gold: #f4b400;

  --radius: 14px;
  --radius-lg: 20px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Атрибут [hidden] должен ВСЕГДА скрывать элемент, даже если ниже по каскаду
   что-то выставляет display:flex/inline-flex/grid. Без этого `element.hidden = true`
   из JS не работает на элементах со своим display. */
[hidden] { display: none !important; }

html { color-scheme: dark; -webkit-text-size-adjust: 100%; }

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: rgba(0, 217, 255, 0.35); color: #fff; }

/* ============ LAYOUT SHELL ============ */

.shell {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

/* ============ HERO ============ */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  margin-bottom: 56px;
}

.hero__avatar {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
.hero__avatar img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.hero__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}
.hero__row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* Симметричные паддинги: когда count пуст (оффлайн) — пилюля визуально
     центрирована. Когда count показан (в live) — :empty не срабатывает
     и gap до count даёт ровно 8px, визуально воспринимается как «· 1234». */
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-tile);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  transition: border-color 160ms var(--ease-out), color 160ms;
}
.live-pill:hover { border-color: var(--border-strong); color: var(--text); }
.live-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-mute);
  flex-shrink: 0;
}
/* Пустой count-span не должен занимать flex-gap справа от label.
   Без этого правила Offline-пилюля уезжает влево относительно своего padding. */
.live-pill__count:empty { display: none; }
.live-pill[data-state="live"] { color: var(--text); border-color: rgba(255,59,59,0.35); }
.live-pill[data-state="live"] .live-pill__label { color: var(--live); font-weight: 700; letter-spacing: 0.04em; }
.live-pill[data-state="live"] .live-pill__dot {
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.7);
  animation: live-pulse 1.8s ease-out infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.6); }
  70% { box-shadow: 0 0 0 7px rgba(255, 59, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); }
}
.live-pill[data-state="error"] { opacity: 0.6; }

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-tile);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}
.stat-chip svg { color: var(--text-mute); }
.stat-chip__num { color: var(--text); font-weight: 600; }

/* ============ TILES GRID (kondrat-style: big, widescreen, 2-col) ============ */

.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}

.tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 34px 36px;
  min-height: 148px;
  background: var(--bg-tile);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  transition:
    border-color 180ms var(--ease-out),
    background 180ms var(--ease-out),
    transform 180ms var(--ease-out);
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
}
.tile:hover {
  border-color: var(--border-strong);
  background: var(--bg-tile-hover);
  transform: translateY(-2px);
}
.tile:active { transform: translateY(0); }

/* primary-style tiles (internal detail-page links) get a subtle accent glow on hover */
.tile--primary:hover {
  border-color: rgba(0, 217, 255, 0.35);
}

.tile__icon {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  transition: background 180ms var(--ease-out);
  overflow: hidden;
}
.tile:hover .tile__icon { background: rgba(255, 255, 255, 0.07); }

.tile__icon--kick { color: #53fc18; background: #0f2d04; border-color: rgba(83,252,24,0.22); }
.tile__icon--tg { color: #2ea2d9; background: #0d2230; border-color: rgba(46,162,217,0.25); }
.tile__icon--bypass { color: var(--accent); background: rgba(0,217,255,0.08); border-color: rgba(0,217,255,0.22); }
.tile__icon--speed { color: #a855f7; background: rgba(168,85,247,0.08); border-color: rgba(168,85,247,0.25); }
.tile__icon--dragon-apk { color: #3ddc84; background: rgba(61,220,132,0.08); border-color: rgba(61,220,132,0.25); }
.tile__icon--dragon {
  background:
    radial-gradient(circle at 50% 35%, rgba(255,215,100,0.35) 0%, rgba(180,120,0,0) 70%),
    #0f0a02;
  border-color: rgba(255,199,80,0.4);
  padding: 4px;
}
.tile__icon--dragon img {
  width: 100%;
  height: 100%;
  /* contain вместо cover — чтобы дракон НЕ обрезался по краям (крылья/хвост
     уходили за рамку). Теперь весь маскот видно целиком. */
  object-fit: contain;
  object-position: center;
  border-radius: inherit;
  filter: drop-shadow(0 4px 12px rgba(255, 190, 70, 0.25));
}
.tile__icon--contact { color: #ffbd59; background: rgba(255,189,89,0.08); border-color: rgba(255,189,89,0.25); }

.tile__body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tile__eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-mute);
  font-weight: 600;
  margin-bottom: 4px;
}
.tile__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  line-height: 1.1;
}
.tile__sub {
  font-size: 15px;
  color: var(--text-dim);
  font-weight: 400;
  margin-top: 4px;
  line-height: 1.35;
}
.tile__arrow {
  flex-shrink: 0;
  font-size: 26px;
  color: var(--text-mute);
  transition: transform 180ms var(--ease-out), color 180ms;
  font-weight: 300;
}
.tile:hover .tile__arrow {
  color: var(--text);
  transform: translateX(4px);
}

/* ============ FOOTER ============ */

.foot {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.foot__copy {
  font-size: 13px;
  color: var(--text-mute);
}
.foot__legal {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  /* a11y 2026-07-28: opacity 0.4 убран — множился на color и давал контраст 1.85:1
     (норма WCAG AA 4.5:1). Приглушённость даёт сам --text-mute. */
  color: var(--text-mute);
  text-decoration: none;
}
.foot__legal:hover {
  color: rgba(245, 245, 247, 0.85);
}
.foot__legal + .foot__legal::before {
  content: "·";
  margin-right: 6px;
  margin-left: 2px;
  opacity: 0.5;
}

/* ============ DETAIL PAGE (kick-bypass, speedhack) ============ */

.detail-nav {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-tile);
  transition: color 160ms, border-color 160ms;
}
.back-link:hover { color: var(--text); border-color: var(--border-strong); }

.detail-head {
  margin-bottom: 40px;
}
.detail-head__eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.detail-head__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.detail-head__lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 640px;
}

.detail-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 36px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-tile);
  color: var(--text);
  cursor: pointer;
  transition:
    background 160ms var(--ease-out),
    border-color 160ms var(--ease-out),
    transform 160ms var(--ease-out);
}
.btn:hover { background: var(--bg-tile-hover); border-color: var(--border-strong); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--accent);
  color: #001420;
  border-color: var(--accent);
}
.btn--primary:hover {
  background: #33e2ff;
  border-color: #33e2ff;
  box-shadow: 0 8px 24px -8px rgba(0, 217, 255, 0.5);
}
.btn__meta {
  font-size: 12px;
  opacity: 0.7;
  font-weight: 500;
}

/* /kick-bypass/ — кнопки браузеров: обе ярко подсвечены, каждая в своём бренд-цвете */
.btn--chrome,
.btn--firefox {
  color: #fff;
  border: 1px solid transparent;
}
.btn--chrome {
  background: linear-gradient(135deg, #4287f5 0%, #1a73e8 100%);
  box-shadow: 0 10px 26px -12px rgba(66, 133, 244, 0.7);
}
.btn--chrome:hover {
  background: linear-gradient(135deg, #4287f5 0%, #1a73e8 100%);
  box-shadow: 0 0 0 1px rgba(66, 133, 244, 0.35), 0 10px 30px -8px rgba(66, 133, 244, 0.75);
  transform: translateY(-1px);
}
.btn--firefox {
  background: linear-gradient(135deg, #ff9d17 0%, #ff5b3b 48%, #e5097f 100%);
  box-shadow: 0 10px 26px -12px rgba(255, 90, 59, 0.7);
}
.btn--firefox:hover {
  background: linear-gradient(135deg, #ff9d17 0%, #ff5b3b 48%, #e5097f 100%);
  box-shadow: 0 0 0 1px rgba(255, 90, 59, 0.35), 0 10px 30px -8px rgba(255, 90, 59, 0.75);
  transform: translateY(-1px);
}
.btn--chrome .btn__meta,
.btn--firefox .btn__meta {
  color: rgba(255, 255, 255, 0.88);
  opacity: 1;
}

/* /kick-bypass/ — заголовок Chrome-инструкции + toggle «Инструкция для Firefox» */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head .detail-section__title {
  margin: 0;
}
.ff-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #ff9d17 0%, #ff5b3b 48%, #e5097f 100%);
  border: 1px solid transparent;
  box-shadow: 0 8px 22px -12px rgba(255, 90, 59, 0.7);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.ff-toggle:hover {
  box-shadow: 0 0 0 1px rgba(255, 90, 59, 0.35), 0 9px 26px -8px rgba(255, 90, 59, 0.75);
  transform: translateY(-1px);
}
.ff-toggle svg {
  flex: 0 0 auto;
}
.ff-toggle__chevron {
  transition: transform 0.2s ease;
}
.ff-toggle[aria-expanded="true"] .ff-toggle__chevron {
  transform: rotate(180deg);
}
#ff-guide[hidden] {
  display: none;
}

/* =====================================================
   /dragon/ — Hero CTA card + промокод + чат поддержки
   2026-05-02: переделано из синего текстового btn на полноценные карточки.
   ===================================================== */
.dragon-hero-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px -12px rgba(22, 163, 74, 0.5);
  transition:
    transform 200ms var(--ease-out),
    box-shadow 200ms var(--ease-out),
    background 200ms var(--ease-out);
  cursor: pointer;
}
.dragon-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px -10px rgba(22, 163, 74, 0.7);
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}
.dragon-hero-cta__logo {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
  padding: 6px;
  object-fit: contain;
}
.dragon-hero-cta__body { flex: 1; min-width: 0; }
.dragon-hero-cta__eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 4px;
  font-weight: 600;
}
.dragon-hero-cta__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: #fff;
}
.dragon-hero-cta__desc {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}
.dragon-hero-cta__arrow {
  flex-shrink: 0;
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  opacity: 0.8;
  transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out);
}
.dragon-hero-cta:hover .dragon-hero-cta__arrow {
  transform: translateX(4px);
  opacity: 1;
}

/* Промокод-плашка */
.dragon-promo-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px dashed rgba(34, 197, 94, 0.4);
  margin-top: -4px;
}
.dragon-promo-bar__label {
  font-size: 13px;
  color: rgba(245, 245, 247, 0.7);
  font-weight: 500;
}
.dragon-promo-bar__code {
  font-family: 'Space Grotesk', monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #4ade80;
  padding: 4px 12px;
  border-radius: 8px;
}
.dragon-promo-bar__bonus {
  font-size: 14px;
  font-weight: 600;
  color: #4ade80;
  margin-left: auto;
}

/* Карточка чата поддержки в Telegram */
.dragon-support-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(34, 158, 217, 0.08); /* мягкий Telegram-blue */
  border: 1px solid rgba(34, 158, 217, 0.25);
  color: var(--text);
  text-decoration: none;
  transition:
    background 200ms var(--ease-out),
    border-color 200ms var(--ease-out),
    transform 200ms var(--ease-out);
}
.dragon-support-card:hover {
  background: rgba(34, 158, 217, 0.16);
  border-color: rgba(34, 158, 217, 0.5);
  transform: translateY(-1px);
}
.dragon-support-card__icon {
  flex-shrink: 0;
  font-size: 26px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 158, 217, 0.2);
  border-radius: 10px;
}
.dragon-support-card__body { flex: 1; min-width: 0; }
.dragon-support-card__title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 2px;
  color: var(--text);
}
.dragon-support-card__desc {
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  color: var(--text-dim);
}
.dragon-support-card__arrow {
  flex-shrink: 0;
  font-size: 18px;
  color: rgba(34, 158, 217, 0.7);
  transition: transform 200ms var(--ease-out), color 200ms var(--ease-out);
}
.dragon-support-card:hover .dragon-support-card__arrow {
  transform: translate(2px, -2px);
  color: rgba(34, 158, 217, 1);
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .dragon-hero-cta { padding: 18px; gap: 14px; }
  .dragon-hero-cta__logo { width: 52px; height: 52px; }
  .dragon-hero-cta__title { font-size: 22px; }
  .dragon-hero-cta__desc { font-size: 13px; }
  .dragon-hero-cta__arrow { font-size: 22px; }
  .dragon-promo-bar { padding: 12px 14px; gap: 10px; }
  .dragon-promo-bar__code { font-size: 16px; }
  .dragon-promo-bar__bonus { margin-left: 0; width: 100%; }
}

/* =====================================================
   .alt-names — collapsible accordion с альтернативными названиями
   2026-05-02: для индексации Dragon Money / Drgn Money / варианты
   без видимой склады в основном контенте.
   ===================================================== */
.alt-names {
  max-width: 900px;
  margin: 28px auto 12px;
  padding: 14px 18px;
  font-size: 13px;
  color: rgba(245, 245, 247, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
}
.alt-names summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: rgba(245, 245, 247, 0.58);
  padding: 6px 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  transition: color 150ms ease-out;
}
.alt-names summary::-webkit-details-marker { display: none; }
.alt-names summary::before {
  content: "›";
  display: inline-block;
  font-size: 14px;
  transition: transform 200ms ease-out;
  color: rgba(245, 245, 247, 0.55);
}
.alt-names[open] summary::before { transform: rotate(90deg); }
.alt-names summary:hover { color: rgba(245, 245, 247, 0.7); }
.alt-names__content {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  line-height: 1.55;
}
.alt-names__content p {
  margin: 0 0 8px;
  font-size: 12px;
  color: rgba(245, 245, 247, 0.55);
}
.alt-names__content p:last-child { margin-bottom: 0; }
.alt-names__content strong {
  color: rgba(245, 245, 247, 0.75);
  font-weight: 600;
}

/* =====================================================
   .seo-link-vault — collapsible "карта сайта" в footer
   2026-05-02 Sprint D11: sitewide internal links для PageRank
   на главной + speedhack + kick-bypass.
   ===================================================== */
.seo-link-vault {
  max-width: 1100px;
  margin: 32px auto 16px;
  padding: 12px 18px;
  font-size: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.seo-link-vault summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: rgba(245, 245, 247, 0.58);
  padding: 8px 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 150ms ease-out;
}
.seo-link-vault summary::-webkit-details-marker { display: none; }
.seo-link-vault summary::before {
  content: "›";
  display: inline-block;
  font-size: 14px;
  transition: transform 200ms ease-out;
  color: rgba(245, 245, 247, 0.55);
}
.seo-link-vault[open] summary::before { transform: rotate(90deg); }
.seo-link-vault summary:hover { color: rgba(245, 245, 247, 0.7); }
.seo-link-vault__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px 24px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.seo-link-vault__group-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(245, 245, 247, 0.65);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.seo-link-vault__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.seo-link-vault__list a {
  font-size: 12px;
  color: rgba(245, 245, 247, 0.64);
  text-decoration: none;
  padding: 2px 0;
  transition: color 120ms ease-out;
}
.seo-link-vault__list a:hover {
  color: #FF8454;
}

.detail-section {
  margin: 48px 0;
}
.detail-section__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.steps {
  display: grid;
  gap: 14px;
  counter-reset: steps;
  list-style: none;
}
/* Sprint E1.2: useful-list pattern — <ul class="steps" style="list-style:none; padding-left:0;">
   используется как простой list внутренних ссылок ("Полезные гайды по Drgn Money").
   <li> там содержит inline текст + <strong>+<a>, без <div>-wrapper, и НЕ должен
   попадать в grid-template-columns (44px badge + 1fr) — иначе текст после <strong>
   уезжает в третий неявный grid column и схлопывается до 1 слова на строку.
   Atom-selector: если inline-style содержит "list-style:none" — это явно «не steps».
   ===================================================================== */
.steps[style*="list-style:none"],
.steps[style*="list-style: none"] {
  display: block;
}
.steps[style*="list-style:none"] > li,
.steps[style*="list-style: none"] > li {
  display: block;
  grid-template-columns: none;
  gap: 0;
  padding: 8px 0;
  background: none;
  border: none;
  counter-increment: none;
  font-size: 14px;
  line-height: 1.6;
}
.steps[style*="list-style:none"] > li::before,
.steps[style*="list-style: none"] > li::before {
  content: none;
}
.steps[style*="list-style:none"] > li strong,
.steps[style*="list-style: none"] > li strong {
  display: inline;
  font-size: inherit;
  margin-bottom: 0;
}
.steps li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 24px;
  background: var(--bg-tile);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.steps li::before {
  content: counter(steps);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(0, 217, 255, 0.08);
  border: 1px solid rgba(0, 217, 255, 0.22);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.steps li strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}
.steps li p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dim);
}
.steps li code {
  display: inline-block;
  padding: 1px 7px;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text);
}

/* Инлайн-ссылки в тексте detail-страниц (about, kick-bypass, speedhack, dragon/*,
   faq, legal). Глобальный `a { color:inherit; text-decoration:none }` оставлял их
   неотличимыми от обычного текста. Цепляем только БЕЗКЛАССОВЫЕ ссылки — все
   классовые (.btn, .dragon-hero-cta, .dm-*, карточки) уже оформлены как компоненты,
   так что :not([class]) исключает их без перечисления. Совпадает по виду с .dm-body a. */
.detail-head__lead a:not([class]),
.detail-section a:not([class]) {
  color: var(--accent-dim);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(0, 217, 255, 0.32);
  transition: color 150ms var(--ease-out), text-decoration-color 150ms var(--ease-out);
}
.detail-head__lead a:not([class]):hover,
.detail-section a:not([class]):hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* Inline-скриншот ВНУТРИ шага гайда (между <p> и следующим <li>).
   Компактный, кликается в lightbox (см. detail.js). Максимальная ширина
   ограничена, чтобы не растягивал карточку шага на всю ширину макета. */
.step-shot {
  margin: 12px 0 0;
  max-width: 560px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-elev);
}
.step-shot img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
  transition: transform 160ms var(--ease-out);
}
.step-shot:hover img { transform: scale(1.01); }
.step-shot--small { max-width: 360px; }

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.shots figure {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-tile);
}
.shots img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  /* Для инструкций важно показать ВСЮ картинку без обрезания краёв
     (контент у скриншотов неравномерный — кнопки могут быть у самого края). */
  object-fit: contain;
  object-position: center;
  background: var(--bg-elev);
  padding: 8px;
}
.shots figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}
.shots figure.shot--placeholder img {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.025) 0 12px,
      transparent 12px 24px
    ),
    var(--bg-elev);
}
.shots figure.shot--placeholder figcaption::before {
  content: '📸 ';
  opacity: 0.5;
}
/* Клик по скриншоту открывает его в полноэкранном lightbox. */
.shots figure:not(.shot--placeholder) img {
  cursor: zoom-in;
  transition: transform 160ms var(--ease-out);
}
.shots figure:not(.shot--placeholder):hover img {
  transform: scale(1.02);
}

/* ============ LIGHTBOX (fullscreen preview) ============ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 48px;
  cursor: zoom-out;
  animation: lightbox-in 180ms var(--ease-out);
}
@keyframes lightbox-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8);
  animation: lightbox-zoom 220ms var(--ease-out);
}
@keyframes lightbox-zoom {
  from { transform: scale(0.94); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.lightbox__close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: background 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.06);
}
.lightbox__caption {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: var(--text-dim);
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  border-radius: 999px;
  max-width: calc(100% - 40px);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 720px) {
  .lightbox { padding: 20px; }
  .lightbox__close { top: 12px; right: 14px; width: 38px; height: 38px; font-size: 20px; }
  .lightbox__caption { font-size: 12px; padding: 6px 14px; bottom: 14px; }
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.facts li {
  padding: 18px 20px;
  background: var(--bg-tile);
  border: 1px solid var(--border);
  border-radius: 12px;
  list-style: none;
}
.facts li strong {
  display: block;
  font-size: 13px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 6px;
}
.facts li span {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.pending-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 189, 89, 0.08);
  border: 1px solid rgba(255, 189, 89, 0.25);
  color: #ffbd59;
}
.pending-badge::before {
  content: '●';
  color: #ffbd59;
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.35; } }

/* Версия расширения + дата обновления под CTA-кнопкой.
   Компактный серый chip; появляется только после успешного fetch meta.json. */
.version-chip {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  letter-spacing: 0.01em;
}
.version-chip__version {
  font-family: var(--font-display, 'Space Grotesk'), system-ui, sans-serif;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0;
}
.version-chip__dot {
  opacity: 0.45;
  user-select: none;
}
.version-chip__date { white-space: nowrap; }

/* ============ MOBILE ============ */

@media (max-width: 720px) {
  .shell { padding: 32px 18px 48px; }

  .hero {
    gap: 18px;
    margin-bottom: 36px;
  }
  .hero__avatar { width: 112px; height: 112px; }
  .hero__meta { gap: 12px; }

  .tiles {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 40px;
  }
  .tile {
    padding: 24px 22px;
    gap: 18px;
    min-height: 108px;
  }
  .tile__icon { width: 58px; height: 58px; border-radius: 14px; }
  .tile__title { font-size: 21px; }
  .tile__sub { font-size: 14px; }
  .tile__eyebrow { font-size: 12px; }
  .tile__arrow { font-size: 21px; }

  .detail-head { margin-bottom: 28px; }
  .detail-head__lead { font-size: 15px; }
  .detail-cta { gap: 10px; margin: 24px 0; }
  .btn { padding: 14px 22px; font-size: 15px; }
  .detail-section { margin: 32px 0; }
  .detail-section__title { font-size: 19px; margin-bottom: 14px; }

  .steps li { padding: 16px 18px; grid-template-columns: 36px 1fr; gap: 14px; }
  .steps li::before { width: 32px; height: 32px; font-size: 14px; }
  .steps li strong { font-size: 15px; }

  .shots { grid-template-columns: 1fr; gap: 12px; }
}

/* ============ REDUCED MOTION ============ */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============ MIRROR BANNER (TSPU fallback) ============
   Показывается поверх основной сетки, когда /api/kick-status двукратно
   провалился — сигнализирует юзеру что CF-путь забит, предлагает переход
   на non-CF зеркало (mirror.semadrgn.me:8443). На самом зеркале баннер
   не рендерится (скрипт матчит location.host). */
#mirror-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(18, 18, 20, 0.92);
  border: 1px solid rgba(255, 189, 89, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.4);
  animation: mirror-banner-slide 260ms var(--ease-out) both;
}
#mirror-banner:hover {
  border-color: rgba(255, 189, 89, 0.8);
  background: rgba(30, 30, 34, 0.95);
}
.mirror-banner__ico {
  font-size: 16px;
  color: #ffbd59;
  flex-shrink: 0;
}
.mirror-banner__body {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.mirror-banner__title {
  font-weight: 600;
  color: var(--text);
}
.mirror-banner__sub {
  font-size: 12px;
  color: var(--text-dim);
}
.mirror-banner__arrow {
  font-size: 18px;
  color: var(--text-mute);
  flex-shrink: 0;
  transition: transform 160ms var(--ease-out), color 160ms;
}
#mirror-banner:hover .mirror-banner__arrow {
  color: var(--text);
  transform: translateX(3px);
}
@keyframes mirror-banner-slide {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
@media (max-width: 520px) {
  #mirror-banner {
    left: 16px;
    right: 16px;
    transform: none;
    max-width: calc(100vw - 32px);
    justify-content: center;
  }
  @keyframes mirror-banner-slide {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* ─── Footer navigation (build-footer.py инжектит на 9 страниц) ──────────
   Single source: site/scripts/build-footer.py → между маркерами FOOTER:START/END.
   Visual: компактный flex-wrap список ссылок над copyright. */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: center;
  margin: 0 auto 16px;
  max-width: 720px;
  font-size: 13px;
  line-height: 1.4;
}
.footer-nav__item {
  color: rgba(245, 245, 247, 0.64);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 150ms ease, background 150ms ease;
}
.footer-nav__item:hover {
  color: #F5F5F7;
  background: rgba(255, 255, 255, 0.04);
}
.footer-nav__item--current {
  color: rgba(245, 245, 247, 0.85);
  background: rgba(255, 255, 255, 0.06);
  cursor: default;
}

/* Sprint D12: collapsible footer-extra для dragon-sublinks */
.footer-extra {
  margin: 0 auto 16px;
  max-width: 720px;
  text-align: center;
}
.footer-extra > summary {
  display: inline-block;
  font-size: 12px;
  color: rgba(245, 245, 247, 0.58);
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 6px;
  list-style: none;
  transition: color 150ms ease, background 150ms ease;
}
.footer-extra > summary::-webkit-details-marker { display: none; }
.footer-extra > summary::before {
  content: "▸ ";
  display: inline-block;
  margin-right: 4px;
  transition: transform 150ms ease;
}
.footer-extra[open] > summary::before { content: "▾ "; }
.footer-extra > summary:hover {
  color: rgba(245, 245, 247, 0.75);
  background: rgba(255, 255, 255, 0.04);
}
.footer-nav--sub {
  margin-top: 12px;
  font-size: 12px;
  opacity: 0.7;
}
.footer-nav--sub .footer-nav__item {
  font-size: 12px;
  padding: 3px 7px;
}

/* ─────────────────────────────────────────────────────────────
   Sticky bottom CTA (Sprint 10) — присутствует только на /dragon/*
   через JS-инжект из script.js. Mobile-first: на десктопе тоньше.
   pointer-events:none на back-drop, auto на самом баре, чтобы клики
   проходили только в кнопку и не мешали обычной навигации.
   ───────────────────────────────────────────────────────────── */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  background: linear-gradient(180deg, rgba(10,10,11,0) 0%, rgba(10,10,11,0.92) 35%, rgba(10,10,11,0.98) 100%);
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom)) 16px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  animation: stickyCtaSlideIn 420ms cubic-bezier(0.22,1,0.36,1) both;
}
.sticky-cta__btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background: linear-gradient(135deg, #FFB800 0%, #FF8A00 100%);
  color: #0A0A0B;
  font-weight: 700;
  font-size: 15px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(255,138,0,0.32), 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 180ms cubic-bezier(0.22,1,0.36,1), box-shadow 180ms ease;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
}
.sticky-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255,138,0,0.45), 0 2px 6px rgba(0,0,0,0.3);
}
.sticky-cta__btn:active { transform: translateY(0); }
.sticky-cta__meta {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.7;
  margin-left: 6px;
}
.sticky-cta__close {
  pointer-events: auto;
  position: absolute;
  right: 8px;
  bottom: calc(50% - 16px);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: none;
  color: rgba(245,245,247,0.6);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sticky-cta__close:hover { background: rgba(255,255,255,0.16); color: #fff; }
@keyframes stickyCtaSlideIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@media (max-width: 480px) {
  .sticky-cta__btn { padding: 12px 16px; font-size: 13px; }
  .sticky-cta__meta { display: none; }
}
/* Когда у body класс .has-sticky-cta — добавляем нижний padding на main
   чтобы CTA не перекрывал последний параграф. */
body.has-sticky-cta main { padding-bottom: 100px !important; }

/* ─────────────────────────────────────────────────────────────
   SEO-tail (Sprint D8) — footer-disclaimer с альтернативными
   написаниями и поисковыми запросами. Не cloaked: видим human'у,
   просто уменьшен и приглушён, чтобы не загромождать UX.
   ───────────────────────────────────────────────────────────── */
.seo-tail {
  max-width: 900px;
  margin: 2.5rem auto 1rem;
  padding: 1.25rem 1.5rem;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(245, 245, 247, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.seo-tail__title {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
  color: rgba(245, 245, 247, 0.45);
}
.seo-tail p {
  margin: 0 0 0.5rem;
}
.seo-tail p:last-child {
  margin-bottom: 0;
}

/* Sprint D12: server-rendered freshness badge */
.freshness-badge {
  display: inline-block;
  background: #1a4d2e;
  color: #e8f5e9;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin: 12px 0;
  border: 1px solid rgba(132, 204, 162, 0.25);
}

/* Sprint D12: visible breadcrumbs (REPLACE detail-nav) */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  opacity: 0.7;
  margin: 12px 0 20px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  transition: opacity 150ms ease, border-color 150ms ease;
}
.breadcrumbs:hover {
  opacity: 0.9;
  border-color: var(--border-strong);
}
.breadcrumbs a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 150ms ease;
}
.breadcrumbs a:hover {
  color: var(--text);
}
.breadcrumbs span[aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}
.breadcrumbs span[aria-hidden="true"] {
  color: var(--text-mute);
}

/* =====================================================
   .rg-notice — Responsible Gambling fine print (Sprint E1.1)
   Минималистичный disclaimer как у легитимных букмекеров.
   YMYL E-E-A-T trust signal без attention-grabbing цветов
   (жёлтый banner = ad-like → плохой сигнал для casino-вертикали).
   ===================================================== */
.rg-notice {
  width: 100%;
  order: 99;
  margin: 14px 0 0;
  padding: 12px 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  line-height: 1.55;
  color: rgba(245, 245, 247, 0.58);
  text-align: center;
  font-weight: 400;
  letter-spacing: 0.01em;
  box-sizing: border-box;
}
.rg-notice a {
  color: rgba(245, 245, 247, 0.55);
  text-decoration: underline;
  text-decoration-color: rgba(245, 245, 247, 0.2);
  text-underline-offset: 2px;
}
.rg-notice a:hover {
  color: rgba(245, 245, 247, 0.85);
  text-decoration-color: rgba(245, 245, 247, 0.5);
}
.rg-aside {
  max-width: 1100px;
  margin: 16px auto 0;
  padding: 0 18px;
}

/* =====================================================
   .dm-* — Dragon Money long-form article shell (2026-06-02)
   Унифицирует long-tail /dragon/* страницы с основным дизайном сайта
   (flat-black + cyan accent + Space Grotesk вместо bolted-on оранжевого
   lt-* темы). Добавляет постоянную site-шапку, авторскую E-E-A-T-строку,
   sticky table-of-contents и related-карточки — чтобы кластер читался как
   цельный «настоящий сайт», а не набор affiliate-лендингов (сигнал против
   doorway-классификации / "Crawled — currently not indexed").
   Scope строго .dm-* — главная и detail-страницы не затрагиваются.
   ===================================================== */

/* ── sticky site header ── */
/* ── sticky site header — палитра Dragon Money (2026-06-16 redesign) ──
   Оранж #FF6B00/#FF8C00/#FFA526 + золото #FFD700 + фиолет #7B2FBE/#A855F7.
   Закреплён сверху (sticky) и идентичен на всех страницах. Анимации лёгкие —
   только transform/opacity/background-position (GPU); глушатся reduced-motion. */
.dm-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* заметно отделён от чёрного фона страницы: плотнее + светлее-фиолетовый */
  background: linear-gradient(180deg, rgba(45, 22, 74, 0.97), rgba(26, 13, 44, 0.96));
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(255, 180, 80, 0.14);
  box-shadow: 0 14px 40px -16px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: dm-header-in 0.6s var(--ease-out) both;
}
/* фирменная нить снизу: оранж→золото→фиолет, мягкий шиммер */
.dm-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, #FF6B00 20%, #FFD700 50%, #A855F7 80%, transparent 100%);
  background-size: 200% 100%;
  animation: dm-shimmer 10.8s linear infinite;
  opacity: 0.75;
}
.dm-header__inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  height: 60px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.dm-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--text);
  flex-shrink: 0;
}
/* SEMAKINGG — золотой градиент-текст в стиле Драгона */
.dm-brand__name {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFD700 52%, #FFA526 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: filter 0.4s ease-in-out;
}
.dm-brand:hover .dm-brand__name { filter: brightness(1.12) drop-shadow(0 0 10px rgba(255, 180, 60, 0.35)); }
/* legacy лого-дракон (на ещё не мигрированных страницах) */
.dm-brand__mark {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  object-fit: contain;
  padding: 2px;
  background: radial-gradient(circle at 50% 35%, rgba(255, 215, 100, 0.28), rgba(180, 120, 0, 0) 72%), #0f0a02;
  border: 1px solid rgba(255, 199, 80, 0.4);
}
/* аватар стримера в вращающемся драгон-кольце (оранж→золото→фиолет) */
.dm-brand__mark--avatar {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  padding: 0;
  overflow: visible;
  background: none;
  border: none;
}
.dm-brand__mark--avatar::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #FF6B00, #FFD700, #A855F7, #FF8C00, #FF6B00);
  animation: dm-ring-spin 7.2s linear infinite;
  z-index: 0;
}
.dm-brand__mark--avatar img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid #140a22;
  background: var(--bg-elev);
}
.dm-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.dm-nav a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: rgba(245, 240, 250, 0.62);
  padding: 8px 13px;
  border-radius: 9px;
  white-space: nowrap;
  /* transition на БАЗОВОМ селекторе → при уводе курсора эффект плавно
     откатывается назад (reverse), а не снапается. Замедлено на 20% (2026-06-16). */
  transition: color 0.4s ease-in-out, background 0.4s ease-in-out;
}
/* растущее градиент-подчёркивание при hover / активном разделе */
.dm-nav a::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #FF6B00, #FFD700, #A855F7);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
}
.dm-nav a:hover { color: #FFE0A6; background: rgba(255, 140, 0, 0.08); }
.dm-nav a:hover::after { transform: scaleX(1); opacity: 1; }
.dm-nav a[aria-current] { color: #FFD24A; }
.dm-nav a[aria-current]::after { transform: scaleX(1); opacity: 1; }

@keyframes dm-header-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dm-shimmer { to { background-position: 200% 0; } }
@keyframes dm-ring-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .dm-header, .dm-header::after, .dm-brand__mark--avatar::before { animation: none; }
}

@media (max-width: 720px) {
  .dm-header__inner { height: auto; padding: 10px 14px; flex-wrap: wrap; gap: 9px; }
  .dm-nav { width: 100%; justify-content: space-between; gap: 4px; flex-wrap: nowrap; }
  /* мобайл: кнопки без своих обводок — рамка только у внешней пилюли-меню */
  .dm-nav a {
    flex: 1;
    text-align: center;
    font-size: 12.5px;
    line-height: 1.15;
    white-space: normal;       /* длинные лейблы («Андроид приложение») переносятся, не ломают ряд */
    padding: 7px 5px;
    background: transparent;
    border: none;
  }
  .dm-nav a::after { display: none; }
  .dm-nav a[aria-current] {
    color: #FFE08A;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.20), rgba(168, 85, 247, 0.20));
    box-shadow: inset 0 0 0 1px rgba(255, 180, 70, 0.32);
  }
}

/* Mobile tap-targets (2026-06-16): Я.Вебмастер «сайт не оптимизирован для мобильных».
   Диагностика на 360px: оверфлоу/viewport ОК, root cause — массово мелкие зоны касания
   (<40px) в шапке/навигации/хлебных крошках/футере + eyebrow-шрифт 11px. Поднимаем до
   рекомендуемого минимума. Только мобильный брейкпоинт — десктоп не затрагивается. */
@media (max-width: 720px) {
  .dm-nav a { min-height: 40px; display: flex; align-items: center; justify-content: center; }
  .dm-brand { min-height: 40px; display: inline-flex; align-items: center; }
  .dm-action { width: 40px; height: 40px; }
  .breadcrumbs a,
  .footer-nav__item,
  .foot__legal { min-height: 40px; display: inline-flex; align-items: center; }
  .dm-eyebrow,
  .dragon-hero-cta__eyebrow { font-size: 12px; }
}

/* ── header v2 (2026-06-16): лого слева | меню-пилюля по центру | 2 иконки справа ── */
.dm-brand { flex: 1 1 0; }
.dm-nav {
  flex: 0 0 auto;
  padding: 5px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 175, 80, 0.2);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.dm-nav a { padding: 7px 14px; border-radius: 10px; }
.dm-nav a::after { left: 14px; right: 14px; bottom: 4px; }
.dm-nav a:hover { background: rgba(255, 140, 0, 0.10); }
.dm-nav a[aria-current] {
  color: #FFE08A;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.18), rgba(168, 85, 247, 0.18));
  box-shadow: inset 0 0 0 1px rgba(255, 180, 70, 0.35);
}
.dm-nav a[aria-current]::after { opacity: 0; }  /* в пилюле — подсветка фоном, не подчёркиванием */

.dm-actions { flex: 1 1 0; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.dm-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid rgba(255, 175, 80, 0.22);
  background: rgba(255, 255, 255, 0.03);
  /* transition на базовом .dm-action → mouse-out плавно реверсит подъём/свечение.
     Симметричная ease-in-out (не expo-out) + 0.45s — реверс видимый и плавный (2026-06-16). */
  transition: transform 0.45s ease-in-out, box-shadow 0.45s ease-in-out, border-color 0.45s ease-in-out, background 0.45s ease-in-out;
  -webkit-tap-highlight-color: transparent;
}
.dm-action img, .dm-action svg { width: 24px; height: 24px; display: block; }
.dm-action--dragon:hover {
  transform: translateY(-3px) scale(1.08);
  border-color: rgba(255, 140, 0, 0.7);
  background: rgba(255, 140, 0, 0.13);
  box-shadow: 0 10px 24px -7px rgba(255, 120, 0, 0.65);
}
.dm-action--tg { color: #2AABEE; }
.dm-action--tg:hover {
  transform: translateY(-3px) scale(1.08);
  border-color: rgba(42, 171, 238, 0.65);
  background: rgba(42, 171, 238, 0.13);
  box-shadow: 0 10px 24px -7px rgba(42, 171, 238, 0.6);
}
.dm-action:active { transform: scale(0.92); }
@media (prefers-reduced-motion: reduce) {
  .dm-action, .dm-action:hover, .dm-action:active { transform: none; }
}
@media (max-width: 720px) {
  .dm-header__inner { flex-wrap: wrap; }
  .dm-brand { flex: 1 1 auto; }
  .dm-actions { flex: 0 0 auto; }
  .dm-nav { order: 3; flex: 1 1 100%; width: 100%; }
  .dm-action { width: 40px; height: 40px; }
}

/* ── article wrap + 2-col grid (article | sticky TOC) ── */
.dm-wrap { max-width: 1080px; margin: 0 auto; padding: 26px 24px 84px; }
.dm-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 232px;
  gap: 56px;
  align-items: start;
  margin-top: 6px;
}
@media (max-width: 920px) { .dm-grid { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 720px) { .dm-wrap { padding: 18px 16px 64px; } }

/* ── article head ── */
.dm-hero { margin: 12px 0 16px; }
.dm-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.dm-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 0 16px;
  color: var(--text);
}
.dm-lead { font-size: 17px; line-height: 1.6; color: var(--text-dim); max-width: 680px; margin: 0; }
.dm-lead strong { color: var(--text); }

/* ── byline / E-E-A-T trust strip ── */
.dm-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0 24px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.dm-byline__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg-elev);
}
.dm-byline__meta { font-size: 13px; line-height: 1.45; }
.dm-byline__name { color: var(--text); font-weight: 600; }
.dm-byline__name a { color: inherit; }
.dm-byline__name a:hover { color: var(--accent); }
.dm-byline__sub { color: var(--text-mute); }
.dm-byline__upd {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
}
.dm-byline__upd::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (max-width: 520px) { .dm-byline__upd { margin-left: 0; } }

/* ── fake-warning callout ── */
.dm-warn {
  margin: 22px 0;
  padding: 14px 18px;
  border-radius: 12px;
  border-left: 3px solid #E5534B;
  background: rgba(229, 83, 75, 0.08);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}
.dm-warn code { background: rgba(229, 83, 75, 0.16); padding: 2px 6px; border-radius: 4px; color: #FF9E96; font-size: 12.5px; }
.dm-warn a { color: #FF8454; }
.dm-warn__meta { color: var(--text-mute); }

/* ── body typography ── */
.dm-body { min-width: 0; }
.dm-body > p { margin: 0 0 16px; font-size: 16px; line-height: 1.66; color: rgba(245, 245, 247, 0.86); }
.dm-body h2 {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 38px 0 14px;
  scroll-margin-top: 78px;
  color: var(--text);
}
.dm-body h3 { font-size: 17px; font-weight: 600; margin: 22px 0 8px; color: var(--text); }
.dm-body ol, .dm-body ul { margin: 0 0 16px; padding-left: 22px; line-height: 1.7; color: rgba(245, 245, 247, 0.86); }
.dm-body li { margin-bottom: 8px; }
.dm-body code { font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: 13px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; color: var(--text); }
.dm-body strong { color: var(--text); }
.dm-body a:not(.dragon-hero-cta) {
  color: var(--accent-dim);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(0, 217, 255, 0.3);
  transition: color 150ms var(--ease-out), text-decoration-color 150ms var(--ease-out);
}
.dm-body a:not(.dragon-hero-cta):hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ── spec definition grid ── */
.dm-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 8px; }
@media (max-width: 560px) { .dm-specs { grid-template-columns: 1fr; } }
.dm-specs div { padding: 13px 16px; background: var(--bg-tile); border: 1px solid var(--border); border-radius: 12px; }
.dm-specs strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-mute); font-weight: 600; margin-bottom: 5px; }
.dm-specs span { font-size: 15px; color: var(--text); font-weight: 500; }

/* ── procedural flow card ── */
.dm-flow { margin: 20px 0; padding: 16px 20px; background: var(--bg-tile); border: 1px solid var(--border); border-radius: 14px; }
.dm-flow > strong { color: var(--text); }
.dm-flow ol { margin: 10px 0 0; }
.dm-flow code { background: rgba(0, 217, 255, 0.1); border-color: rgba(0, 217, 255, 0.22); color: #7fe9ff; }

/* ── FAQ accordion ── */
.dm-faq { margin-top: 10px; }
.dm-faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 0 0 10px;
  background: var(--bg-tile);
  overflow: hidden;
  transition: border-color 150ms var(--ease-out);
}
.dm-faq details[open] { border-color: var(--border-strong); }
.dm-faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  padding: 15px 18px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
}
.dm-faq summary::-webkit-details-marker { display: none; }
.dm-faq summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--text-mute); font-weight: 300; transition: transform 200ms var(--ease-out), color 200ms var(--ease-out); flex-shrink: 0; }
.dm-faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.dm-faq__a { padding: 0 18px 16px; font-size: 14.5px; line-height: 1.6; color: rgba(245, 245, 247, 0.82); }

/* ── sticky table of contents ── */
.dm-toc { position: sticky; top: 80px; }
.dm-toc__title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-mute); font-weight: 600; margin: 0 0 12px; padding-left: 14px; }
.dm-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.dm-toc a {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-dim);
  padding: 7px 0 7px 14px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  transition: color 150ms var(--ease-out), border-color 150ms var(--ease-out);
}
.dm-toc a:hover { color: var(--text); border-left-color: var(--accent); }
@media (max-width: 920px) {
  .dm-toc { position: static; order: -1; margin: 0 0 10px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-tile); }
  .dm-toc__title { padding-left: 0; }
  .dm-toc ol { border-left: none; columns: 2; column-gap: 18px; }
  .dm-toc a { padding: 6px 0; border-left: none; }
  .dm-toc a:hover { border-left: none; }
}

/* ── related-material cards ── */
.dm-related { margin: 46px 0 0; }
.dm-related__title { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin: 0 0 16px; letter-spacing: -0.01em; }
.dm-related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.dm-related__card {
  display: block;
  padding: 16px 18px;
  background: var(--bg-tile);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 160ms var(--ease-out), transform 160ms var(--ease-out), background 160ms var(--ease-out);
}
.dm-related__card:hover { border-color: var(--border-strong); background: var(--bg-tile-hover); transform: translateY(-2px); }
.dm-related__card b { display: block; font-size: 15px; color: var(--text); margin-bottom: 4px; font-weight: 600; }
.dm-related__card span { font-size: 13px; color: var(--text-dim); line-height: 1.45; }

/* ── responsible-gambling fine print on .dm pages ── */
.dm-wrap .rg-aside {
  margin: 34px 0 0;
  padding: 16px 20px;
  background: var(--bg-tile);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 12.5px;
  color: var(--text-dim);
  max-width: none;
}
.dm-wrap .rg-aside a { color: var(--text); }

/* ── inline callouts, checklist & table for migrated articles ── */
.dm-verdict {
  margin: 22px 0;
  padding: 14px 18px;
  border-radius: 12px;
  border-left: 3px solid #3FB950;
  background: rgba(63, 185, 80, 0.08);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}
.dm-verdict strong { color: var(--text); }
.dm-note {
  margin: 20px 0;
  padding: 14px 18px;
  border-radius: 12px;
  border-left: 3px solid #D29922;
  background: rgba(210, 153, 34, 0.08);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(245, 245, 247, 0.86);
}
.dm-note strong { color: var(--text); }
.dm-checklist { list-style: none; padding: 0; margin: 16px 0; }
.dm-checklist li {
  padding: 9px 0 9px 28px;
  border-bottom: 1px solid var(--border);
  position: relative;
  line-height: 1.55;
}
.dm-checklist li:last-child { border-bottom: none; }
.dm-checklist li::before { content: "✓"; position: absolute; left: 0; top: 9px; color: #3FB950; font-weight: 700; }
.dm-checklist li.bad::before { content: "✕"; color: #E5534B; }
.dm-table { width: 100%; border-collapse: collapse; margin: 16px 0 20px; font-size: 14px; }
.dm-table th {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border-strong);
  color: var(--text-mute);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.dm-table td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: top; color: rgba(245, 245, 247, 0.86); }
.dm-table tr:last-child td { border-bottom: none; }

/* Mobile fix (2026-06-16): широкие таблицы (сравнения/спидхак/dm-table) не
   должны выпирать за вьюпорт — это причина флага Яндекса «сайт не оптимизирован
   для мобильных». На ≤700px таблица становится горизонтально-скроллируемым
   блоком: контент шире экрана скроллится ВНУТРИ своей рамки, страница не
   растягивается. */
@media (max-width: 700px) {
  .compare-table,
  .speed-table,
  .dm-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
