/* Tonplay Casino — ton-winner.top | Дизайн: тёмный TON-стиль */
:root {
    --bg: #0A0E1A;
    --surface: #111827;
    --surface-2: #0F1626;
    --accent: #0098EA;
    --accent-2: #37D5F2;
    --text: #F4F7FB;
    --muted: #8B98AD;
    --line: #1E2A3E;
    --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-wrap: break-word;
}
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; overflow-x: hidden; }
.center { text-align: center; margin: 24px 0 0; }

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

/* Кнопки */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 20px; border-radius: 999px; border: 1px solid transparent;
    font-weight: 600; font-size: 15px; line-height: 1.2; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
    white-space: nowrap;
}
.btn--accent { background: linear-gradient(135deg, var(--accent), #006FD6); color: #fff; }
.btn--accent:hover { box-shadow: 0 6px 22px rgba(0, 152, 234, .45); text-decoration: none; transform: translateY(-1px); }
.btn--ghost { background: #14203380; background-color: #142033; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent-2); text-decoration: none; }
.btn--lg { padding: 14px 30px; font-size: 16px; }

/* Шапка */
.site-header {
    position: sticky; top: 0; z-index: 70;
    background-color: rgba(11, 17, 32, .85);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--line);
    transition: background-color .25s ease, box-shadow .25s ease;
}
.site-header::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 152, 234, .6), rgba(55, 213, 242, .5), transparent);
    opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.site-header.is-scrolled { background-color: rgba(8, 13, 25, .94); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.site-header.is-scrolled::after { opacity: 1; }

.header__inner { display: flex; align-items: center; gap: 14px; min-height: 68px; transition: min-height .25s ease; }
.site-header.is-scrolled .header__inner { min-height: 58px; }

.logo { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; }
.logo__mark { transition: transform .25s ease; }
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.06); }
.logo__text { height: 20px; width: auto; }

/* Основная навигация */
.nav { min-width: 0; }
.nav__panel { display: flex; align-items: center; }
.nav__title, .nav__actions { display: none; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__link {
    position: relative; display: block; padding: 9px 12px; border-radius: 10px;
    color: var(--muted); font-size: 14.5px; font-weight: 500; white-space: nowrap;
    transition: color .18s ease, background-color .18s ease;
}
.nav__link::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.nav__link:hover { color: var(--text); background-color: rgba(30, 42, 62, .6); text-decoration: none; }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--text); background-color: rgba(0, 152, 234, .12); }
.nav__link.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.header__actions .btn { padding: 9px 18px; font-size: 14.5px; }

/* Бургер */
.burger {
    display: none; position: relative; width: 42px; height: 42px; flex-shrink: 0; margin-left: auto;
    padding: 0; cursor: pointer;
    background-color: rgba(20, 32, 51, .7); border: 1px solid var(--line); border-radius: 12px;
    transition: border-color .2s ease, background-color .2s ease;
}
.burger:hover { border-color: var(--accent-2); }
.burger span {
    position: absolute; left: 11px; width: 20px; height: 2px; border-radius: 2px;
    background-color: var(--text);
    transition: transform .25s ease, opacity .18s ease;
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }
.nav-open .burger { background-color: rgba(0, 152, 234, .16); border-color: var(--accent); }
.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; transform: scaleX(.3); }
.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Затемнение под мобильным меню */
.nav-backdrop {
    display: none; position: fixed; inset: 0; z-index: 80;
    background-color: rgba(5, 9, 18, .62);
    backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
}

/* Хлебные крошки */
.breadcrumbs { padding: 14px 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: 13px; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent-2); }


/* Hero */
.hero {
    padding: 40px 0 32px;
    background:
        radial-gradient(700px 340px at 85% -10%, rgba(0, 152, 234, .22), transparent 65%),
        radial-gradient(500px 300px at 0% 110%, rgba(55, 213, 242, .10), transparent 60%);
    border-bottom: 1px solid var(--line);
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.hero__inner > * { min-width: 0; }
.hero__eyebrow {
    display: inline-block; margin: 0 0 14px; padding: 6px 14px;
    background-color: #12233B; border: 1px solid var(--line); border-radius: 999px;
    color: var(--accent-2); font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
}
.hero h1 {
    margin: 0 0 16px; font-size: clamp(28px, 6vw, 46px); line-height: 1.12;
    font-weight: 800; letter-spacing: -0.02em;
}
.hero__lead { margin: 0 0 24px; color: var(--muted); font-size: 17px; max-width: 640px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__wheel { position: relative; width: 300px; }
.hero__wheel img { width: 100%; height: auto; }
.hero__wheel-badge {
    position: absolute; top: -6%; right: -4%; width: 34% !important;
    animation: spin-slow 14s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .hero__wheel-badge { animation: none; }
    html { scroll-behavior: auto; }
    .nav, .nav__link::after, .burger span, .site-header, .header__inner, .nav-backdrop { transition: none !important; }
}

/* Секции */
.section { padding: 40px 0; }
.section--surface { background-color: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { margin: 0 0 8px; font-size: clamp(22px, 4vw, 30px); letter-spacing: -0.01em; }
.section__lead { margin: 0 0 24px; color: var(--muted); }
.section > * { min-width: 0; }

/* Карточки статей */
.cards { display: grid; grid-template-columns: 1fr; gap: 20px; }
.cards > * { min-width: 0; }
.card {
    background-color: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; min-width: 0;
    transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); border-color: #2A3B57; }
.card__img { display: block; aspect-ratio: 16/9; overflow: hidden; background-color: #0D1524; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 16px 18px 20px; min-width: 0; }
.card__title { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
.card__title a { color: var(--text); }
.card__title a:hover { color: var(--accent-2); text-decoration: none; }
.card__text { margin: 0 0 12px; color: var(--muted); font-size: 14.5px; }
.card__more { font-size: 14px; font-weight: 600; }

/* Бонусы */
.bonus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.bonus-grid > * { min-width: 0; }
.bonus-grid img { border-radius: var(--radius); width: 100%; height: auto; background-color: var(--surface); }

/* Слоты */
.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
.slots > * { min-width: 0; }
.slot-card { margin: 0; background-color: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-width: 0; }
.slot-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.slot-card figcaption { padding: 8px 10px; font-size: 12.5px; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Текст статьи (.rt) */
.rt {
    overflow-x: hidden;
    overflow-wrap: break-word;
    max-width: 820px;
    margin: 0 auto;
}
.rt h2 { font-size: clamp(21px, 3.5vw, 28px); margin: 32px 0 12px; letter-spacing: -0.01em; }
.rt h3 { font-size: 19px; margin: 24px 0 10px; }
.rt h4 { font-size: 17px; margin: 20px 0 8px; }
.rt p { margin: 0 0 14px; }
.rt ul, .rt ol { margin: 0 0 16px; padding-left: 24px; }
.rt li { margin-bottom: 6px; }
.rt code { background-color: #142033; border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; font-size: 0.92em; }
.rt .table-scroll { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 12px; }
.rt table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 14.5px; }
.rt th, .rt td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.rt th { background-color: #142033; font-weight: 700; color: var(--text); }
.rt tr:last-child td { border-bottom: 0; }

/* Заголовок страницы */
.page { padding-top: 12px; }
.page__header { margin-bottom: 24px; }
.page__header h1 { font-size: clamp(26px, 5vw, 38px); line-height: 1.15; margin: 0 0 8px; letter-spacing: -0.02em; }
.page__meta { color: var(--muted); font-size: 14px; margin: 0; }

/* Промо-блок с промокодом */
.promo-block {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background-color: #0E2136;
    border: 1px dashed var(--accent);
    border-radius: var(--radius);
    padding: 18px 22px;
    margin: 0 0 28px;
}
.promo-block__info { min-width: 0; }
.promo-block__label { margin: 0 0 6px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.promo-block__code {
    display: inline-block; font-size: 26px; font-weight: 800; letter-spacing: .12em;
    color: var(--accent-2); background: none; border: 0; padding: 0;
}
.promo-block__copy.is-copied { background: #1B9E4B !important; box-shadow: 0 0 0 4px rgba(27, 158, 75, .25); }
.promo-block__copy { animation: none; }
.promo-block__copy.is-copied { animation: pulse-copy .4s ease; }
@keyframes pulse-copy {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* CTA-блок */
.cta-box {
    background-color: #0E2136;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin: 28px 0;
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.cta-box p { margin: 0; min-width: 0; }

.disclaimer {
    margin: 28px 0 0; padding: 14px 18px;
    background-color: var(--surface-2); border-left: 3px solid var(--accent);
    border-radius: 0 10px 10px 0;
    color: var(--muted); font-size: 13.5px;
}

/* Футер */
.site-footer {
    background-color: #070B14;
    border-top: 1px solid var(--line);
    margin-top: 48px;
    padding-bottom: 76px; /* место под sticky-бар */
}
.footer__inner {
    display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px; padding-top: 36px; padding-bottom: 24px;
}
.footer__inner > * { min-width: 0; }
.footer__about p { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.footer__title { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--text); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { color: var(--muted); font-size: 14px; }
.site-footer li a:hover { color: var(--accent-2); }
.footer__bottom {
    border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 18px;
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    color: var(--muted); font-size: 13px;
}
.footer__bottom p { margin: 0; }
.footer__age { color: #E5484D; font-weight: 600; }

/* Фиксированная нижняя плашка */
.sticky-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background-color: #0B1120;
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, .45);
}
.sticky-bar__inner {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding-top: 10px; padding-bottom: 10px;
}
.sticky-bar__inner > * { min-width: 0; }
.sticky-bar__text { margin: 0; font-weight: 600; font-size: 14.5px; }

/* Адаптив */
@media (min-width: 425px) {
    .slots { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
    .header__actions { display: none; }
    .burger { display: block; }
    .nav-backdrop { display: block; }
    .nav-open .nav-backdrop { opacity: 1; visibility: visible; pointer-events: auto; }
    body.nav-open { overflow: hidden; }
    .nav {
        position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
        width: min(330px, 86vw);
        background-color: #0B1120;
        border-left: 1px solid var(--line);
        box-shadow: -24px 0 60px rgba(0, 0, 0, .55);
        overflow-y: auto; overscroll-behavior: contain;
        transform: translateX(103%); visibility: hidden;
        transition: transform .32s cubic-bezier(.4, 0, .2, 1), visibility .32s ease;
    }
    .nav-open .nav { transform: none; visibility: visible; }
    .nav__panel {
        display: flex; flex-direction: column; align-items: stretch;
        min-height: 100%; padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
    }
    .nav__title {
        display: block; margin: 0 0 14px; padding: 0 4px 14px;
        border-bottom: 1px solid var(--line);
        font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
        color: var(--muted);
    }
    .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
    .nav__link { padding: 13px 14px; border-radius: 12px; font-size: 16px; font-weight: 500; }
    .nav__link::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; border-radius: 3px; transform: scaleY(0); transform-origin: top; }
    .nav__link:hover::after, .nav__link.is-active::after { transform: scaleY(1); }
    .nav__actions {
        display: grid; gap: 10px; margin-top: auto; padding-top: 22px;
        border-top: 1px solid var(--line);
    }
    .nav__actions .btn { width: 100%; padding: 13px 20px; font-size: 15px; }
}
@media (max-width: 768px) {
    /* мобильные flex-контейнеры -> колонка */
    .hero__inner, .promo-block, .cta-box, .sticky-bar__inner, .footer__bottom {
        flex-direction: column; align-items: flex-start;
    }
    .hero__wheel { width: 200px; margin: 0 auto; }
    .footer__inner { grid-template-columns: 1fr; gap: 24px; }
    .bonus-grid { grid-template-columns: 1fr; }
    .hero { padding: 28px 0 24px; }
}
@media (min-width: 769px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .slots { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
    .cards { grid-template-columns: repeat(3, 1fr); }
    .hero { padding: 56px 0 48px; }
}
@media (max-width: 374px) {
    .wrap { padding: 0 12px; }
    .promo-block__code { font-size: 22px; }
    .slots { grid-template-columns: repeat(2, 1fr); }
}

