/* =========================================================
   Mellstroy Casino — обзор темы
   Современный, яркий, SEO-дружелюбный дизайн под Яндекс.
   ========================================================= */

:root {
    /* Палитра — тёмная по умолчанию */
    --bg: #0a0b1e;
    --bg-2: #0f1130;
    --bg-3: #14163d;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-2: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.18);

    --text: #e9ecff;
    --text-dim: #b6bce0;
    --text-muted: #8a90b8;

    --primary: #ffd166;       /* золото */
    --primary-2: #ff8a3d;     /* оранж */
    --accent: #ff5dcd;        /* розовый неон */
    --accent-2: #6a5cff;      /* фиолетовый */
    --info: #4cc9f0;          /* голубой */
    --good: #2ee59d;          /* зелёный */
    --bad: #ff5e7a;           /* красный */

    --gradient-hero: radial-gradient(ellipse at top left, rgba(106, 92, 255, 0.45), transparent 55%),
                      radial-gradient(ellipse at top right, rgba(255, 93, 205, 0.35), transparent 55%),
                      radial-gradient(ellipse at bottom, rgba(255, 209, 102, 0.18), transparent 60%);
    --gradient-cta: linear-gradient(135deg, #ffd166 0%, #ff8a3d 50%, #ff5dcd 100%);
    --gradient-text: linear-gradient(135deg, #ffd166 0%, #ff5dcd 50%, #6a5cff 100%);

    --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 30px 80px rgba(106, 92, 255, 0.25);

    --radius: 18px;
    --radius-sm: 12px;
    --radius-lg: 28px;

    --container: 1200px;
    --space: clamp(16px, 3vw, 24px);

    --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
}

/* Светлая тема */
[data-theme="light"] {
    --bg: #f6f7ff;
    --bg-2: #ffffff;
    --bg-3: #eef0ff;
    --surface: rgba(20, 22, 61, 0.04);
    --surface-2: rgba(20, 22, 61, 0.06);
    --border: rgba(20, 22, 61, 0.10);
    --border-strong: rgba(20, 22, 61, 0.18);

    --text: #14163d;
    --text-dim: #3b3f6b;
    --text-muted: #6a6f99;

    --shadow-soft: 0 18px 50px rgba(20, 22, 61, 0.10);
    --shadow-glow: 0 0 0 1px rgba(20, 22, 61, 0.04), 0 30px 80px rgba(106, 92, 255, 0.18);
}

/* ===== Базовые стили ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% -10%, rgba(106, 92, 255, 0.22), transparent 45%),
        radial-gradient(circle at 110% 10%, rgba(255, 93, 205, 0.18), transparent 45%),
        radial-gradient(circle at 50% 120%, rgba(255, 209, 102, 0.10), transparent 50%);
    background-attachment: fixed;
}

[data-theme="light"] body {
    background-image:
        radial-gradient(circle at 10% -10%, rgba(106, 92, 255, 0.18), transparent 45%),
        radial-gradient(circle at 110% 10%, rgba(255, 93, 205, 0.14), transparent 45%),
        radial-gradient(circle at 50% 120%, rgba(255, 209, 102, 0.20), transparent 50%);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color .2s ease, opacity .2s ease;
}

a:hover { color: var(--accent); }

p { margin: 0 0 1em; }
strong { color: var(--text); font-weight: 700; }
em { color: var(--text-dim); font-style: italic; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space);
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== Прогресс чтения ===== */
.reading-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    z-index: 200;
    background: transparent;
    pointer-events: none;
}
.reading-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--gradient-cta);
    box-shadow: 0 0 18px rgba(255, 138, 61, .6);
    transition: width .1s linear;
}

/* ===== Возрастной экран ===== */
.age-gate {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(5, 6, 20, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: fadeIn .4s ease;
}
.age-gate.is-hidden { display: none; }

.age-gate__inner {
    width: min(520px, 100%);
    background: linear-gradient(180deg, rgba(20, 22, 61, .92), rgba(15, 17, 48, .92));
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, 36px);
    box-shadow: var(--shadow-glow);
    text-align: center;
}
[data-theme="light"] .age-gate__inner {
    background: linear-gradient(180deg, #fff, #f3f4ff);
}

.age-gate__badge {
    display: inline-flex;
    width: 64px; height: 64px;
    border-radius: 50%;
    align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 22px;
    color: #1a0f00;
    background: var(--gradient-cta);
    margin: 0 auto 16px;
    box-shadow: 0 14px 30px rgba(255, 138, 61, .4);
}
.age-gate__title {
    font-family: var(--font-display);
    font-size: clamp(20px, 3vw, 26px);
    margin: 0 0 12px;
    color: var(--text);
}
.age-gate__text {
    color: var(--text-dim);
    margin-bottom: 22px;
}
.age-gate__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== Кнопки ===== */
.btn {
    --btn-bg: var(--gradient-cta);
    --btn-color: #1a0f00;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .25s ease, opacity .2s ease;
    white-space: nowrap;
}

.btn--primary {
    background: var(--btn-bg);
    color: var(--btn-color);
    box-shadow: 0 10px 28px rgba(255, 138, 61, .35), inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(255, 93, 205, .45), inset 0 0 0 1px rgba(255, 255, 255, .35);
    color: #1a0f00;
}

.btn--ghost {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border-strong);
}
.btn--ghost:hover {
    background: var(--surface-2);
    color: var(--text);
    transform: translateY(-2px);
}

/* ===== ИГРАТЬ — главная конверсионная кнопка ===== */
.btn--play {
    --play-grad: linear-gradient(135deg, #2ee59d 0%, #21c98a 50%, #1aa07a 100%);
    background: var(--play-grad);
    color: #04221a;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 800;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    box-shadow:
        0 12px 30px rgba(46, 229, 157, .45),
        inset 0 0 0 1px rgba(255, 255, 255, .35),
        inset 0 -3px 0 rgba(0, 0, 0, .15);
}
.btn--play::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .55) 50%, transparent 100%);
    transform: translateX(-120%);
    transition: transform .8s ease;
    z-index: -1;
    pointer-events: none;
}
.btn--play:hover {
    transform: translateY(-2px);
    color: #04221a;
    box-shadow:
        0 18px 40px rgba(46, 229, 157, .55),
        inset 0 0 0 1px rgba(255, 255, 255, .45),
        inset 0 -3px 0 rgba(0, 0, 0, .2);
}
.btn--play:hover::before {
    transform: translateX(120%);
}
.btn--play:active {
    transform: translateY(0) scale(.98);
}

.btn__pulse {
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid rgba(46, 229, 157, .6);
    pointer-events: none;
    z-index: -1;
    animation: btnPulse 2.4s ease-out infinite;
}
@keyframes btnPulse {
    0%   { transform: scale(.95); opacity: .8; }
    70%  { transform: scale(1.18); opacity: 0; }
    100% { transform: scale(1.18); opacity: 0; }
}

.btn--sm {
    padding: 10px 16px;
    font-size: 13px;
    letter-spacing: 1px;
}
.btn--lg {
    padding: 18px 30px;
    font-size: 17px;
    letter-spacing: 1.4px;
}

@media (max-width: 980px) {
    .header__cta { margin-left: auto; }
}

/* ===== Шапка ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(10, 11, 30, 0.65);
    border-bottom: 1px solid var(--border);
    transition: background .3s ease, box-shadow .3s ease;
}
[data-theme="light"] .site-header {
    background: rgba(255, 255, 255, 0.78);
}
.site-header.is-scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
[data-theme="light"] .site-header.is-scrolled {
    box-shadow: 0 10px 30px rgba(20, 22, 61, .08);
}

.header__container {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 72px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
}
.logo__mark {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 209, 102, .12), rgba(255, 93, 205, .12));
    border: 1px solid var(--border-strong);
    box-shadow: inset 0 0 18px rgba(255, 209, 102, .12);
}
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: .2px;
}
.logo__accent {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-left: 4px;
}
.logo__sub {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: .8px;
    text-transform: uppercase;
}

.nav { margin-left: auto; }
.nav__list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.nav__list a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dim);
}
.nav__list a:hover {
    color: var(--text);
    background: var(--surface);
}

.theme-toggle,
.burger {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    width: 42px; height: 42px;
    border-radius: 12px;
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    align-items: center; justify-content: center;
    transition: background .2s ease, transform .2s ease;
}
.theme-toggle:hover { background: var(--surface-2); transform: rotate(20deg); }
.theme-toggle__icon { font-size: 18px; }

.burger { display: none; }
.burger span {
    display: block;
    width: 18px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    margin: 2px 0;
    transition: transform .25s ease, opacity .2s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 80px);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: var(--gradient-hero);
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .5;
    animation: float 18s ease-in-out infinite;
}
.orb--1 { width: 380px; height: 380px; background: #6a5cff; top: -80px; left: -80px; }
.orb--2 { width: 320px; height: 320px; background: #ff5dcd; top: 20%; right: -60px; animation-delay: -6s; }
.orb--3 { width: 260px; height: 260px; background: #ffd166; bottom: -40px; left: 30%; animation-delay: -12s; }

@keyframes float {
    0%, 100% { transform: translate(0,0) scale(1); }
    50%      { transform: translate(20px, -30px) scale(1.06); }
}

.grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero__container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 8px 14px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    margin: 0 0 22px;
}
.dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--good);
    box-shadow: 0 0 10px var(--good);
    animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.3); opacity: .7; }
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(30px, 5.4vw, 60px);
    line-height: 1.08;
    letter-spacing: -.5px;
    margin: 0 0 18px;
    color: var(--text);
}
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hero__lead {
    max-width: 760px;
    margin: 0 auto 32px;
    color: var(--text-dim);
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.65;
}

.hero__cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero__stats {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-width: 760px;
    margin: 0 auto;
}
.hero__stats li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 10px;
    backdrop-filter: blur(8px);
}
.hero__stat-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(22px, 3vw, 32px);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}
.hero__stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

@media (max-width: 640px) {
    .hero__stats { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Хлебные крошки ===== */
.breadcrumbs {
    padding: 24px var(--space);
    font-size: 13px;
}
.breadcrumbs ol {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--text-muted);
}
.breadcrumbs li + li::before {
    content: "/";
    margin-right: 6px;
    opacity: .5;
}
.breadcrumbs a {
    color: var(--text-dim);
}

/* ===== Секции ===== */
.section {
    padding: clamp(40px, 6vw, 72px) 0;
    position: relative;
}

.section__head {
    margin-bottom: 28px;
    position: relative;
}
.section__num {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--primary);
    background: rgba(255, 209, 102, .12);
    border: 1px solid rgba(255, 209, 102, .35);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.section__head h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(24px, 3.4vw, 36px);
    line-height: 1.2;
    letter-spacing: -.3px;
    margin: 0 0 8px;
    color: var(--text);
}
.section__sub {
    color: var(--text-dim);
    max-width: 720px;
    font-size: 16px;
}

.h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(18px, 2.2vw, 22px);
    line-height: 1.3;
    margin: 32px 0 14px;
    color: var(--text);
}

/* ===== Таблицы ===== */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    margin: 14px 0 24px;
    -webkit-overflow-scrolling: touch;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}
.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.data-table thead th {
    background: linear-gradient(180deg, rgba(255, 209, 102, .10), rgba(255, 93, 205, .10));
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .3px;
    color: var(--text);
    border-bottom-color: var(--border-strong);
    text-transform: uppercase;
}
.data-table tbody th {
    color: var(--text);
    font-weight: 700;
    width: 38%;
    background: var(--surface);
}
.data-table tbody td {
    color: var(--text-dim);
}
.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
    border-bottom: none;
}
.data-table tbody tr:hover td,
.data-table tbody tr:hover th {
    background: var(--surface-2);
}

.data-table--compare thead th:first-child {
    color: var(--good);
}
.data-table--compare thead th:last-child {
    color: var(--bad);
}

/* ===== Списки ===== */
.checks {
    list-style: none;
    padding: 0;
    margin: 12px 0 24px;
    display: grid;
    gap: 8px;
}
.checks li {
    position: relative;
    padding: 10px 14px 10px 42px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.checks li:hover {
    background: var(--surface-2);
    border-color: var(--border-strong);
    transform: translateX(2px);
}
.checks li::before {
    content: "✓";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px; height: 20px;
    display: inline-flex;
    align-items: center; justify-content: center;
    background: var(--gradient-cta);
    color: #1a0f00;
    font-weight: 800;
    font-size: 12px;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(255, 138, 61, .35);
}
.checks--good li::before {
    content: "✓";
    background: linear-gradient(135deg, #2ee59d, #21c98a);
    color: #013;
    box-shadow: 0 4px 14px rgba(46, 229, 157, .35);
}
.checks--bad li::before {
    content: "✗";
    background: linear-gradient(135deg, #ff5e7a, #ff2a5b);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 94, 122, .35);
}

.numbered {
    list-style: none;
    counter-reset: numbered;
    padding: 0;
    margin: 16px 0 24px;
    display: grid;
    gap: 10px;
}
.numbered li {
    counter-increment: numbered;
    position: relative;
    padding: 12px 14px 12px 56px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-dim);
}
.numbered li::before {
    content: counter(numbered, decimal-leading-zero);
    position: absolute;
    left: 14px; top: 12px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .5px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ===== Карточки ===== */
.cards-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin: 16px 0 24px;
}
@media (max-width: 720px) {
    .cards-2 { grid-template-columns: 1fr; }
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 22px 14px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--gradient-cta);
    opacity: .8;
}
.card--good::before { background: linear-gradient(135deg, #2ee59d, #6a5cff); }
.card--bad::before  { background: linear-gradient(135deg, #ff5e7a, #ff5dcd); }

.card__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    margin: 0 0 12px;
    color: var(--text);
}

/* Mini-cards (игры) */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin: 18px 0 24px;
}
.mini-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    position: relative;
    overflow: hidden;
}
.mini-card::after {
    content: "";
    position: absolute;
    width: 120px; height: 120px;
    right: -40px; top: -40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 209, 102, .15), transparent 70%);
    pointer-events: none;
}
.mini-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: 0 18px 40px rgba(106, 92, 255, .15);
}
.mini-card__icon {
    display: inline-flex;
    width: 44px; height: 44px;
    border-radius: 12px;
    align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(255, 209, 102, .14), rgba(255, 93, 205, .18));
    border: 1px solid var(--border-strong);
    font-size: 22px;
    margin-bottom: 12px;
}
.mini-card h4 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    margin: 0 0 6px;
    color: var(--text);
}
.mini-card p {
    color: var(--text-dim);
    font-size: 14px;
    margin: 0;
}

/* ===== Callouts ===== */
.callout {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: var(--radius);
    margin: 18px 0 24px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text-dim);
    line-height: 1.6;
}
.callout strong { color: var(--text); }
.callout--warning {
    border-color: rgba(255, 94, 122, .4);
    background: linear-gradient(135deg, rgba(255, 94, 122, .12), rgba(255, 138, 61, .08));
}
.callout--info {
    border-color: rgba(76, 201, 240, .4);
    background: linear-gradient(135deg, rgba(76, 201, 240, .12), rgba(106, 92, 255, .08));
}
.callout--responsible {
    border-color: rgba(46, 229, 157, .4);
    background: linear-gradient(135deg, rgba(46, 229, 157, .12), rgba(76, 201, 240, .10));
}
.callout__icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center; justify-content: center;
    background: rgba(46, 229, 157, .15);
    border: 1px solid rgba(46, 229, 157, .35);
}

/* ===== Lead-блок ===== */
.lead {
    font-size: 18px;
    color: var(--text);
    border-left: 3px solid var(--primary);
    padding: 6px 0 6px 18px;
    margin: 18px 0;
}

/* ===== Оглавление ===== */
.toc-section { padding: 28px 0; }
.toc {
    background: linear-gradient(180deg, var(--surface), var(--surface-2));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}
.toc::before {
    content: "";
    position: absolute;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(106, 92, 255, .35), transparent 65%);
    top: -90px; right: -60px;
    pointer-events: none;
}
.toc__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    margin: 0 0 16px;
    color: var(--text);
}
.toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc;
    column-count: 2;
    column-gap: 24px;
}
.toc__list li {
    counter-increment: toc;
    margin: 0 0 8px;
    break-inside: avoid;
}
.toc__list a {
    display: flex;
    gap: 10px;
    align-items: baseline;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.45;
    transition: background .2s ease, color .2s ease;
}
.toc__list a::before {
    content: counter(toc, decimal-leading-zero);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 11px;
    color: var(--primary);
    background: rgba(255, 209, 102, .12);
    padding: 2px 6px;
    border-radius: 6px;
    flex-shrink: 0;
}
.toc__list a:hover {
    background: var(--surface);
    color: var(--text);
}
@media (max-width: 720px) {
    .toc__list { column-count: 1; }
}

/* ===== FAQ ===== */
.faq {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}
.faq__item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .2s ease, background .2s ease;
}
.faq__item[open] {
    border-color: var(--border-strong);
    background: var(--surface-2);
}
.faq__item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 20px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 17px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: "+";
    margin-left: auto;
    width: 28px; height: 28px;
    flex-shrink: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center; justify-content: center;
    background: rgba(255, 209, 102, .14);
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
    transition: transform .25s ease, background .2s ease;
}
.faq__item[open] summary::after {
    content: "−";
    transform: rotate(180deg);
    background: rgba(255, 93, 205, .18);
    color: var(--accent);
}
.faq__answer {
    padding: 0 20px 20px;
    color: var(--text-dim);
    line-height: 1.7;
    border-top: 1px solid var(--border);
    margin-top: -1px;
}
.faq__answer p { margin: 14px 0 0; }

/* ===== Кнопка "наверх" ===== */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--gradient-cta);
    color: #1a0f00;
    border: none;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(255, 138, 61, .4);
    z-index: 80;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px) scale(.9);
    transition: opacity .25s ease, transform .25s ease;
    display: inline-flex;
    align-items: center; justify-content: center;
}
.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.back-to-top:hover {
    transform: translateY(-3px) scale(1.05);
}

/* ===== CTA-баннеры внутри статьи ===== */
.cta-banner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px;
    margin: 28px 0 32px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(46, 229, 157, .35);
    background: linear-gradient(135deg, rgba(46, 229, 157, .12) 0%, rgba(76, 201, 240, .10) 50%, rgba(106, 92, 255, .12) 100%);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.cta-banner__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0% 100%, rgba(46, 229, 157, .25), transparent 55%),
        radial-gradient(circle at 100% 0%, rgba(255, 209, 102, .18), transparent 55%);
    pointer-events: none;
}
.cta-banner__content {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}
.cta-banner__eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: var(--good);
    text-transform: uppercase;
    padding: 4px 10px;
    background: rgba(46, 229, 157, .14);
    border: 1px solid rgba(46, 229, 157, .35);
    border-radius: 999px;
    margin-bottom: 12px;
}
.cta-banner__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(20px, 2.6vw, 26px);
    line-height: 1.25;
    margin: 0 0 8px;
    color: var(--text);
}
.cta-banner__text {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    max-width: 520px;
}
.cta-banner .btn--play {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.cta-banner--alt {
    border-color: rgba(255, 209, 102, .35);
    background: linear-gradient(135deg, rgba(255, 209, 102, .12) 0%, rgba(255, 138, 61, .10) 50%, rgba(255, 93, 205, .12) 100%);
}
.cta-banner--alt .cta-banner__bg {
    background:
        radial-gradient(circle at 0% 100%, rgba(255, 209, 102, .22), transparent 55%),
        radial-gradient(circle at 100% 0%, rgba(255, 93, 205, .18), transparent 55%);
}
.cta-banner--alt .cta-banner__eyebrow {
    color: var(--primary);
    background: rgba(255, 209, 102, .14);
    border-color: rgba(255, 209, 102, .35);
}

@media (max-width: 720px) {
    .cta-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 18px;
        padding: 24px 20px;
    }
    .cta-banner__text { margin-left: auto; margin-right: auto; }
    .cta-banner .btn--play { width: 100%; justify-content: center; }
}

/* ===== Плавающая мобильная кнопка ИГРАТЬ ===== */
.floating-cta {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 70;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 56px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2ee59d 0%, #21c98a 50%, #1aa07a 100%);
    color: #04221a;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    box-shadow:
        0 16px 40px rgba(46, 229, 157, .55),
        inset 0 0 0 1px rgba(255, 255, 255, .35),
        inset 0 -3px 0 rgba(0, 0, 0, .2);
    overflow: hidden;
    isolation: isolate;
    transform: translateY(100px);
    opacity: 0;
    transition: transform .35s ease, opacity .35s ease;
    pointer-events: none;
}
.floating-cta.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.floating-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .55) 50%, transparent 100%);
    transform: translateX(-120%);
    animation: shine 4.5s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}
@keyframes shine {
    0%, 60%   { transform: translateX(-120%); }
    80%, 100% { transform: translateX(120%); }
}
.floating-cta:active { transform: translateY(2px) scale(.98); color: #04221a; }
.floating-cta__text { white-space: nowrap; }

/* Показывать только на мобильных (когда есть смысл sticky CTA) */
@media (max-width: 768px) {
    .floating-cta { display: inline-flex; }
    /* Поднять "наверх" чтобы не пересекалось с floating-cta */
    .back-to-top {
        bottom: 88px;
    }
}

/* ===== Подвал ===== */
.site-footer {
    margin-top: 60px;
    background: linear-gradient(180deg, transparent, rgba(10, 11, 30, .85));
    border-top: 1px solid var(--border);
    color: var(--text-dim);
}
[data-theme="light"] .site-footer {
    background: linear-gradient(180deg, transparent, rgba(255,255,255,.85));
}
.footer__container {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
    padding: 56px 0 32px;
}
@media (max-width: 820px) {
    .footer__container { grid-template-columns: 1fr; gap: 28px; }
}
.footer__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
    margin: 0 0 14px;
    letter-spacing: .2px;
}
.footer__about {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.65;
    max-width: 380px;
}
.footer__list {
    list-style: none;
    padding: 0; margin: 0;
    display: grid;
    gap: 8px;
}
.footer__list a {
    color: var(--text-dim);
    font-size: 14px;
    transition: color .2s ease;
}
.footer__list a:hover { color: var(--text); }

.logo--footer { margin-bottom: 14px; }

.footer__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .8px;
    color: var(--text-dim);
    text-transform: uppercase;
}
.badge--age {
    background: var(--gradient-cta);
    color: #1a0f00;
    border-color: transparent;
}

.footer__bottom {
    border-top: 1px solid var(--border);
    padding: 18px 0 26px;
    font-size: 13px;
    color: var(--text-muted);
}
.footer__bottom p { margin: 0 0 10px; }
.footer__keys {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.footer__keys span {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== Мобильное меню ===== */
@media (max-width: 980px) {
    .nav {
        position: fixed;
        inset: 72px 0 0 0;
        background: rgba(10, 11, 30, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 20px var(--space) 40px;
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: transform .25s ease, opacity .25s ease;
        overflow-y: auto;
        max-height: calc(100vh - 72px);
    }
    [data-theme="light"] .nav {
        background: rgba(246, 247, 255, 0.96);
    }
    .nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav__list {
        flex-direction: column;
        gap: 4px;
    }
    .nav__list a {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 14px;
    }
    .burger { display: inline-flex; }
}

/* ===== Селекция ===== */
::selection {
    background: var(--accent);
    color: #fff;
}

/* ===== Скроллбар (для тёмной темы) ===== */
@media (min-width: 768px) {
    body::-webkit-scrollbar { width: 12px; }
    body::-webkit-scrollbar-track { background: var(--bg); }
    body::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #6a5cff, #ff5dcd);
        border-radius: 8px;
        border: 3px solid var(--bg);
    }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================================
   Мобильная оптимизация (≤ 768px и ≤ 480px и ≤ 360px)
   ========================================================= */

/* --- 768px: тонкая настройка под планшеты и большие смартфоны --- */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        line-height: 1.65;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Сетка фона hero — отключаем для производительности */
    .grid { display: none; }

    /* Уменьшаем размер «orb»-сфер и блюр — снимаем нагрузку с GPU */
    .orb {
        filter: blur(60px);
        opacity: .35;
        animation: none; /* статичные сферы — экономим CPU/GPU */
    }
    .orb--1 { width: 240px; height: 240px; }
    .orb--2 { width: 220px; height: 220px; }
    .orb--3 { width: 180px; height: 180px; }

    /* backdrop-filter — самая тяжёлая операция для GPU. Оставляем, но снижаем blur. */
    .site-header {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        background: rgba(10, 11, 30, 0.85);
    }
    [data-theme="light"] .site-header {
        background: rgba(255, 255, 255, 0.92);
    }
    .nav {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    /* Декоративный градиент тела фиксированный — отключаем на мобильных,
       чтобы при скролле не было джанков (особенно на iOS Safari). */
    body {
        background-attachment: scroll;
    }

    /* Hero: компактные отступы */
    .hero { padding: 36px 0 28px; }
    .hero__title { letter-spacing: -.2px; }
    .hero__lead { font-size: 15px; line-height: 1.6; margin-bottom: 22px; }
    .hero__cta { margin-bottom: 32px; gap: 10px; }
    .hero__cta .btn {
        padding: 13px 18px;
        font-size: 14px;
    }
    .eyebrow {
        font-size: 11px;
        padding: 6px 12px;
        margin-bottom: 16px;
    }

    /* Hero stats: 2 колонки и компактные карточки */
    .hero__stats {
        gap: 8px;
    }
    .hero__stats li {
        padding: 12px 8px;
    }
    .hero__stat-num { font-size: 22px; }
    .hero__stat-label {
        font-size: 11px;
        line-height: 1.3;
    }

    /* Хлебные крошки */
    .breadcrumbs {
        padding: 16px;
        font-size: 12px;
    }

    /* Секции */
    .section {
        padding: 36px 0;
    }
    .section__head { margin-bottom: 18px; }
    .section__head h2 { font-size: 22px; line-height: 1.25; }
    .section__sub { font-size: 14px; }
    .h3 { font-size: 17px; margin-top: 22px; }

    /* Карточки оглавления */
    .toc {
        padding: 22px 18px;
        border-radius: 22px;
    }
    .toc__title { font-size: 18px; }
    .toc__list a {
        font-size: 13px;
        padding: 8px 10px;
    }

    /* Чеклисты, нумерованные списки */
    .checks li {
        padding: 9px 12px 9px 38px;
        font-size: 14px;
    }
    .checks li::before {
        left: 10px;
        width: 18px;
        height: 18px;
        font-size: 11px;
    }
    .numbered li {
        padding: 11px 12px 11px 50px;
        font-size: 14px;
    }
    .numbered li::before {
        left: 12px;
        top: 11px;
        font-size: 11px;
    }

    /* Карточки */
    .card { padding: 18px 16px 8px; }
    .card__title { font-size: 16px; }

    /* Mini-cards с играми */
    .grid-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .mini-card {
        padding: 14px;
        border-radius: 14px;
    }
    .mini-card__icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
        margin-bottom: 8px;
        border-radius: 10px;
    }
    .mini-card h4 { font-size: 14px; }
    .mini-card p { font-size: 12px; line-height: 1.5; }

    /* Callouts */
    .callout {
        padding: 14px;
        gap: 10px;
        font-size: 14px;
        border-radius: 14px;
    }
    .callout__icon {
        width: 36px;
        height: 36px;
        font-size: 22px;
        border-radius: 10px;
    }
    .lead {
        font-size: 16px;
        padding-left: 14px;
    }

    /* Таблицы: компактнее, меньше шрифт */
    .data-table {
        min-width: 0;
        font-size: 14px;
    }
    .data-table th,
    .data-table td {
        padding: 10px 12px;
    }
    .data-table thead th {
        font-size: 11px;
        letter-spacing: .2px;
        padding: 10px 12px;
    }
    .data-table tbody th {
        width: 42%;
        font-size: 13px;
    }

    /* FAQ */
    .faq__item summary {
        font-size: 15px;
        padding: 14px 16px;
        gap: 10px;
        line-height: 1.35;
    }
    .faq__item summary::after {
        width: 26px;
        height: 26px;
        font-size: 16px;
    }
    .faq__answer { padding: 0 16px 16px; font-size: 14px; }

    /* CTA-баннеры */
    .cta-banner {
        padding: 20px 18px;
        margin: 22px 0 26px;
        border-radius: 22px;
    }
    .cta-banner__title { font-size: 19px; }
    .cta-banner__text { font-size: 14px; }
    .cta-banner__eyebrow {
        font-size: 10px;
        letter-spacing: 1px;
    }

    /* Логотип */
    .logo__sub { display: none; }
    .logo__title { font-size: 16px; }
    .logo__mark {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }
    .logo__mark svg { width: 22px; height: 22px; }

    /* Футер */
    .footer__container {
        padding: 36px 0 24px;
        gap: 24px;
    }
    .footer__about { font-size: 13px; max-width: 100%; }
    .footer__title { font-size: 15px; }
    .footer__list a { font-size: 13px; }
    .footer__bottom { font-size: 12px; padding: 16px 0 22px; }
    .footer__keys {
        gap: 6px;
    }
    .footer__keys span {
        font-size: 11px;
        padding: 3px 8px;
    }

    /* Возрастной экран */
    .age-gate__inner {
        padding: 24px 18px;
        border-radius: 22px;
    }
    .age-gate__title { font-size: 18px; }
    .age-gate__text { font-size: 14px; line-height: 1.55; }
    .age-gate__badge {
        width: 54px;
        height: 54px;
        font-size: 18px;
    }
    .age-gate__actions { flex-direction: column; gap: 8px; }
    .age-gate__actions .btn { width: 100%; justify-content: center; }
}

/* --- 480px: смартфоны 360-480px (типичные mid-range) --- */
@media (max-width: 480px) {
    :root {
        --radius: 14px;
        --radius-sm: 10px;
        --radius-lg: 22px;
    }

    /* Шапка ещё компактнее */
    .header__container {
        gap: 8px;
        min-height: 64px;
    }
    .logo__title { font-size: 15px; }
    .logo__mark { width: 34px; height: 34px; }
    .theme-toggle,
    .burger {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    .header__cta {
        padding: 8px 12px;
        font-size: 11px;
        letter-spacing: .4px;
        gap: 6px;
    }
    .header__cta svg {
        width: 12px;
        height: 12px;
    }
    .header__cta .btn__pulse { display: none; } /* без пульсации в шапке для перформанса */

    /* Мобильное меню — стартовая позиция от меньшей шапки */
    .nav { inset: 64px 0 0 0; }

    /* Hero: ещё компактнее */
    .hero { padding: 28px 0 20px; }
    .hero__title { font-size: 28px; line-height: 1.12; }
    .hero__lead { font-size: 14px; }
    .hero__cta {
        flex-direction: column;
        align-items: stretch;
    }
    .hero__cta .btn {
        width: 100%;
        justify-content: center;
    }

    /* Hero stats: 2 в ряд, компактные */
    .hero__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .hero__stats li {
        padding: 10px 6px;
    }
    .hero__stat-num { font-size: 20px; }
    .hero__stat-label { font-size: 10px; }

    /* Бейдж секции */
    .section__num {
        font-size: 11px;
        padding: 3px 8px;
        letter-spacing: 1.4px;
    }
    .section__head h2 { font-size: 20px; }

    /* Mini-cards: 1 колонка для лучшей читаемости */
    .grid-cards {
        grid-template-columns: 1fr;
    }

    /* CTA-баннеры в 1 колонку */
    .cta-banner {
        padding: 18px 16px;
    }
    .cta-banner__title { font-size: 17px; }
    .cta-banner__text { font-size: 13px; }
    .cta-banner .btn--lg {
        padding: 14px 20px;
        font-size: 15px;
    }

    /* Чек-листы и нумерованные */
    .checks li { font-size: 13px; padding: 9px 12px 9px 36px; }
    .numbered li { font-size: 13px; padding: 11px 12px 11px 46px; }
    .numbered li::before { left: 10px; }

    /* Таблицы — превращаем в «карточки» для очень узких экранов */
    .table-wrap {
        border-radius: 14px;
        background: transparent;
        border: none;
        box-shadow: none;
        overflow: visible;
    }
    .data-table {
        display: block;
        min-width: 0;
    }
    .data-table thead {
        display: none; /* в карточном режиме шапка скрыта, заголовки уходят к ячейкам */
    }
    .data-table tbody { display: block; }
    .data-table tbody tr {
        display: block;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 14px;
        margin-bottom: 10px;
        padding: 12px 14px;
        box-shadow: var(--shadow-soft);
    }
    .data-table tbody tr:hover td,
    .data-table tbody tr:hover th { background: transparent; }
    .data-table tbody th,
    .data-table tbody td {
        display: block;
        width: auto;
        padding: 4px 0;
        border: none;
        background: transparent;
        font-size: 13.5px;
        line-height: 1.55;
    }
    .data-table tbody th {
        font-family: var(--font-display);
        font-weight: 700;
        font-size: 11px;
        letter-spacing: 1.2px;
        text-transform: uppercase;
        color: var(--primary);
        margin-bottom: 2px;
    }
    .data-table tbody td {
        color: var(--text-dim);
    }
    /* Сравнительная таблица «надёжная / сомнительная» — со стекированием и бейджами */
    .data-table--compare tbody tr td {
        position: relative;
        padding: 6px 0 6px 0;
        font-size: 13.5px;
    }
    .data-table--compare tbody tr td:first-child {
        color: var(--good);
        font-weight: 600;
    }
    .data-table--compare tbody tr td:last-child {
        color: var(--bad);
        font-weight: 600;
        border-top: 1px dashed var(--border);
        margin-top: 4px;
        padding-top: 10px;
    }
    .data-table--compare tbody tr td:first-child::before,
    .data-table--compare tbody tr td:last-child::before {
        display: inline-block;
        font-family: var(--font-display);
        font-size: 9.5px;
        font-weight: 700;
        letter-spacing: .8px;
        padding: 2px 7px;
        border-radius: 6px;
        text-transform: uppercase;
        margin-right: 8px;
        vertical-align: 2px;
    }
    .data-table--compare tbody tr td:first-child::before {
        content: "Надёжно";
        color: var(--good);
        background: rgba(46, 229, 157, .14);
        border: 1px solid rgba(46, 229, 157, .35);
    }
    .data-table--compare tbody tr td:last-child::before {
        content: "Риск";
        color: var(--bad);
        background: rgba(255, 94, 122, .14);
        border: 1px solid rgba(255, 94, 122, .35);
    }

    /* TOC */
    .toc { padding: 18px 14px; }
    .toc__list a { font-size: 12.5px; }

    /* FAQ */
    .faq__item summary { font-size: 14px; padding: 13px 14px; }
    .faq__answer { padding: 0 14px 14px; font-size: 13px; }

    /* Плавающая мобильная кнопка — компактнее */
    .floating-cta {
        bottom: 14px;
        left: 14px;
        right: 14px;
        height: 52px;
        font-size: 14px;
        letter-spacing: 1.2px;
    }
    .back-to-top {
        bottom: 80px;
        right: 14px;
        width: 44px;
        height: 44px;
    }

    /* Минимальный размер тачабельных областей 44px */
    .nav__list a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Callouts со сжатым шрифтом */
    .callout { font-size: 13px; }
}

/* --- 360px и меньше: маленькие экраны (iPhone SE, старые Android) --- */
@media (max-width: 360px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    .header__container {
        gap: 6px;
        min-height: 60px;
    }
    .logo {
        gap: 8px;
    }
    .logo__title { font-size: 14px; }
    .logo__mark { width: 32px; height: 32px; }
    .logo__mark svg { width: 20px; height: 20px; }

    .header__cta {
        padding: 7px 10px;
        font-size: 10px;
        letter-spacing: .2px;
        gap: 4px;
    }
    .header__cta svg { width: 11px; height: 11px; }

    .theme-toggle,
    .burger {
        width: 32px;
        height: 32px;
    }

    .nav { inset: 60px 0 0 0; }

    .hero { padding: 24px 0 16px; }
    .hero__title { font-size: 25px; line-height: 1.1; }
    .hero__lead { font-size: 13.5px; }

    .hero__stats li {
        padding: 8px 4px;
    }
    .hero__stat-num { font-size: 18px; }
    .hero__stat-label { font-size: 9.5px; letter-spacing: .2px; }

    .section { padding: 30px 0; }
    .section__head h2 { font-size: 18px; }
    .section__sub { font-size: 13px; }

    .floating-cta {
        height: 50px;
        font-size: 13px;
    }
}

/* --- Альбомная ориентация низких устройств --- */
@media (max-height: 480px) and (orientation: landscape) {
    .hero { padding: 28px 0 20px; }
    .age-gate__inner { padding: 18px; }
    .age-gate__title { font-size: 16px; margin-bottom: 8px; }
    .age-gate__text { font-size: 13px; margin-bottom: 12px; }
    .floating-cta { height: 44px; }
}

/* --- Высокая плотность пикселей: чуть тоньше границы --- */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .data-table th,
    .data-table td { border-width: .5px; }
}

/* --- Слабые устройства: меньше анимаций для экономии батареи --- */
@media (max-width: 480px) and (hover: none) {
    /* Точка-индикатор и shine-эффект могут утекать в idle CPU — отключаем */
    .floating-cta::before { animation: none; }
    .btn--play .btn__pulse { animation-duration: 3.5s; }
    .dot { animation: none; box-shadow: 0 0 6px var(--good); }
}

/* --- Безопасные зоны iOS (notch, home indicator) --- */
@supports (padding: max(0px)) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    .floating-cta {
        bottom: max(14px, env(safe-area-inset-bottom));
    }
    .back-to-top {
        bottom: max(80px, calc(env(safe-area-inset-bottom) + 70px));
    }
}

/* ===== Print ===== */
@media print {
    .site-header, .nav, .back-to-top, .age-gate, .reading-progress, .hero__bg {
        display: none !important;
    }
    body { background: #fff; color: #000; }
    a { color: #000; text-decoration: underline; }
    .data-table, .card, .callout { box-shadow: none; }
}
