:root {
    --bg: #0b0f18;
    --panel: #0e1525;
    --card: #111a2e;
    --ink: #eaf2ff;
    --muted: #a5b9d8;
    --accent: #22d3ee;
    --accent2: #8b5cf6;
    --good: #31e981;
    --warn: #ffd166;
    --chip: #16243b;
    --ring: rgba(34, 211, 238, .25);
    --star: #ffd166;
    --radius: 18px;
    --shadow: 0 12px 30px rgba(0, 0, 0, .45);
}

* {
    box-sizing: border-box
}

html, body {
    background: radial-gradient(1200px 500px at 80% -10%, rgba(34, 211, 238, .15), transparent 60%),
    radial-gradient(900px 400px at 10% 120%, rgba(139, 92, 246, .12), transparent 60%),
    linear-gradient(180deg, #0b0f18, #0b0f18);
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif
}

a {
    text-decoration: none;
    color: inherit
}

.wrap {
    max-width: 1100px;
    margin: auto;
    padding: 5px 20px
}

/* Header */
header.sticky {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(11, 15, 24, .75);
    border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0
}

.logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    background: #0e1626;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: var(--shadow)
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.title {
    display: flex;
    flex-direction: column
}

.title h1 {
    font-size: 18px;
    margin: 0;
    line-height: 1.1
}

.title small {
    color: var(--muted);
    font-size: 12px
}

/* NEW: single header button */
.btn-top { /* "Просмотреть топ" */
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 800;
    background: linear-gradient(135deg, #31e981, #22d3ee);
    color: #062118;
    border: none;
    box-shadow: 0 0 0 6px var(--ring)
}

/* Hero */
.hero {
    margin-top: 16px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #0f172a, #0c1527);
    padding: 24px;
    box-shadow: var(--shadow)
}

.hero h2 {
    font-size: 28px;
    margin: 0 0 6px;
    color: #fff
}

.hero p {
    margin: 0;
    color: #fff
}

.badge-soft {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    background: #12233c;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px
}

/* Offers */
.offer {
    position: relative;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, .06);
    background: var(--card);
    box-shadow: var(--shadow);
    padding: 16px;
    margin-top: 35px;
    transition: box-shadow .25s ease
}

.cta, .cta .btn-go {
    width: 100%;
}

.background-site {
    position: fixed;
    width: 100%;
    height: 100%;
    background: url('../img/background.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    pointer-events: none;
}

.top-offer {
    border: 2px solid #ffd700
}

.top-offer .corner-badge {
    border: 2px solid #ffd700;
    background: linear-gradient(135deg, #ee8022, #f4f65c)
}

.top-second {
    border: 2px solid #EE4266
}

.top-second .corner-badge {
    border: 2px solid #EE4266;
    background: linear-gradient(135deg, #428dee, #ce42ee)
}

.offer::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(34, 211, 238, .18), rgba(139, 92, 246, .14) 40%, transparent 60%);
    filter: blur(14px);
    pointer-events: none
}

.offer:hover {
    transform: translateY(-2px);
}

.grid-offer {
    display: grid;
    gap: 16px;
    grid-template-columns:90px 1fr 230px
}

@media (max-width: 980px) {
    .grid-offer {
        grid-template-columns: 1fr
    }

    .aside {
        grid-column: 1/-1
    }
}

.clogo {
    padding: 5px;
    width: 90px;
    height: 90px;
    border-radius: 18px;
    border: 1px solid transparent;
    border-radius: 18px;
    background: linear-gradient(135deg, #22d3ee, #8b5cf6);
    border: none;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
    display: block;
    place-items: center;
    font-weight: 900;
    letter-spacing: .5px;
    font-size: 20px;
    position: relative;
    overflow: hidden
}

.clogo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px #ffb34788);
}

.clogo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(300px 80px at 20% 10%, rgba(34, 211, 238, .25), transparent 40%),
    radial-gradient(200px 80px at 80% 90%, rgba(139, 92, 246, .25), transparent 45%);
    mix-blend: screen
}

.name {
    display: flex;
    align-items: center;
    gap: 10px
}

.name h3 {
    margin: 0;
    font-size: 20px
}

.license {
    font-size: 11px;
    background: #102036;
    border: 1px solid rgba(255, 255, 255, .08);
    padding: 4px 8px;
    border-radius: 999px;
    color: #cfe0ff
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px
}

.chip {
    font-size: 12px;
    background: #13243d;
    border: 1px solid rgba(255, 255, 255, .1);
    padding: 6px 10px;
    border-radius: 999px;
    color: #d5e8ff
}

.paylist {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px
}

.pay {
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #0f1f36;
    border: 1px solid rgba(255, 255, 255, .08);
    color: #cfe3ff;
    height: 36px;
}

.pay img {
    height: 100%;
}

.scorebox {
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 10px
}

.score {
    font-weight: 900;
    font-size: 22px
}

.stars {
    display: flex;
    gap: 2px
}

.stars svg {
    width: 16px;
    height: 16px;
    fill: var(--star)
}

.prog {
    margin-top: 8px;
    background: #0e2038;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    overflow: hidden;
    height: 10px
}

.bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--good), var(--accent));
    transition: width 1.2s ease .2s
}

.aside {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: flex-end
}

.bonus {
    background: linear-gradient(135deg, rgba(49, 233, 129, .15), rgba(34, 211, 238, .12));
    border: 1px solid rgba(49, 233, 129, .35);
    color: #dafeea;
    padding: 12px;
    border-radius: 14px;
    font-size: 14px;
    width: 100%
}

.cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end
}

.btn {
    margin: 8px 0;
    padding: 12px 40px;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: .2px;
    border: 1px solid rgba(255, 255, 255, .1);
    cursor: pointer
}

.btn-go {
    background: linear-gradient(135deg, #ffd166, #ffb347);
    color: #1a0f00;
    border: none;
    box-shadow: 0 0 20px rgba(255, 209, 102, 0.6);
}

.btn-go:hover {
    color: #000;
    box-shadow: 0 0 20px rgba(255, 209, 102, 1);
}

.btn-info {
    background: #0f1f36;
    color: #cfe6ff
}

.offer:hover {
    box-shadow: 0 0 25px rgba(255, 209, 102, 0.3);
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%);
    }
    50% {
        transform: translate(-50%, -65%);
    }
}

.corner-badge {
    animation: pulse 3s ease-in-out infinite;
}

@keyframes glowMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.background-site::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(270deg, #0b0f18, #0e1625, #12233a);
    background-size: 400% 400%;
    animation: glowMove 1s ease infinite;
    opacity: 0.2;
}

.trust {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 12px;
    justify-content: flex-end
}

.kpi {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px
}

.kpi .pill {
    background: #10233e;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px
}

/* NEW: corner badges for top-3 */
.corner-badge {

    width: max-content;
    position: absolute;
    top: 0px;
    left: 50%;
    z-index: 2;
    background: linear-gradient(135deg, #22d3ee, #8b5cf6);
    color: #08151a;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: .2px;
    padding: 2px 12px;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .35);
    transform: translate(-50%, -50%);
}

/* Details */
details {
    margin-top: 10px;
    background: #0f1b31;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 12px;
    color: #d9e8ff
}

summary {
    cursor: pointer;
    font-weight: 700
}

summary::-webkit-details-marker {
    display: none
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: all .6s ease
}

.reveal.visible {
    opacity: 1;
    transform: none
}

.background-offer {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.pm-icon {
    background-image: url(../img/logos.png);
}

.payment-methods {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.325rem;
}

.pm-icon-outer-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pm-icon-outer-label {
    line-height: 1;
    font-size: 10px;
    color: #585962;
    text-align: left;
    display: none;
}

.pm-icon-wrapper {
    width: 26px;
    height: 26px;
    padding: 2px;
    position: relative;
    overflow: hidden;
    flex: none;
}

.pm-icon {
    width: 48px;
    height: 48px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    border-radius: 50%;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.pm-amex {
    background-position: -10px -10px;
}

.pm-astropay {
    background-position: -78px -10px;
}

.pm-bank-transfer {
    background-position: -10px -78px;
}

.pm-bradesco {
    background-position: -78px -78px;
}

.pm-brite {
    background-position: -146px -10px;
}

.pm-banco-do-brasil {
    background-position: -146px -78px;
}

.pm-bitcoin {
    background-position: -10px -146px;
}

.pm-caixa {
    background-position: -78px -146px;
}

.pm-blik {
    background-position: -146px -146px;
}

.pm-danskebank {
    background-position: -214px -10px;
}

.pm-entropay {
    background-position: -214px -78px;
}

.pm-cashlib {
    background-position: -214px -146px;
}

.pm-ideal {
    background-position: -10px -214px;
}

.pm-echeck {
    background-position: -78px -214px;
}

.pm-instantbanking {
    background-position: -146px -214px;
}

.pm-instadebit {
    background-position: -214px -214px;
}

.pm-ecopayz {
    background-position: -282px -10px;
}

.pm-handelsbanken {
    background-position: -282px -78px;
}

.pm-itau {
    background-position: -282px -146px;
}

.pm-ethereum {
    background-position: -282px -214px;
}

.pm-giropay {
    background-position: -10px -282px;
}

.pm-idebit {
    background-position: -78px -282px;
}

.pm-ezeewallet {
    background-position: -146px -282px;
}

.pm-interac {
    background-position: -214px -282px;
}

.pm-jeton {
    background-position: -282px -282px;
}

.pm-klarna {
    background-position: -350px -10px;
}

.pm-maestro {
    background-position: -350px -78px;
}

.pm-muchbetter {
    background-position: -350px -146px;
}

.pm-litecoin {
    background-position: -350px -214px;
}

.pm-mifinity {
    background-position: -350px -282px;
}

.pm-mastercard {
    background-position: -10px -350px;
}

.pm-neosurf {
    background-position: -78px -350px;
}

.pm-net {
    background-position: -146px -350px;
}

.pm-nodapay {
    background-position: -214px -350px;
}

.pm-nordea {
    background-position: -282px -350px;
}

.pm-oppohjola {
    background-position: -350px -350px;
}

.pm-payfun {
    background-position: -418px -10px;
}

.pm-payid {
    background-position: -418px -78px;
}

.pm-paypal {
    background-position: -418px -146px;
}

.pm-paysafecard {
    background-position: -418px -214px;
}

.pm-poli {
    background-position: -418px -282px;
}

.pm-promptpay {
    background-position: -418px -350px;
}

.pm-pix {
    background-position: -10px -418px;
}

.pm-revolut {
    background-position: -78px -418px;
}

.pm-ripple {
    background-position: -146px -418px;
}

.pm-saastopankki {
    background-position: -214px -418px;
}

.pm-santander {
    background-position: -282px -418px;
}

.pm-skrill {
    background-position: -350px -418px;
}

.pm-sofort {
    background-position: -418px -418px;
}

.pm-solana {
    background-position: -486px -10px;
}

.pm-tether {
    background-position: -486px -78px;
}

.pm-spankki {
    background-position: -486px -146px;
}

.pm-trustly {
    background-position: -486px -214px;
}

.pm-visa {
    background-position: -486px -282px;
}

.pm-volt {
    background-position: -486px -350px;
}

.pm-zimpler {
    background-position: -486px -418px;
}

.pm-apple {
    background-position: -10px -481px;
    background-color: #fff;
}

.pm-google {
    background-position: -78px -481px;
}

@media (max-width: 767px) {
    .clogo {
        width: 100%;
        padding: 15px;
    }

    .trust {
        justify-content: center;
    }
}

.label-anbefaling {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #22d3ee; /* неоново-бирюзовый */
    margin-top: 8px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.label-anbefaling::before {
    content: "💠";
    font-size: 14px;
    opacity: 0.8;
}


@media (prefers-reduced-motion: no-preference) {
    .glow-border {
        position: absolute;
        inset: -2px;
        border-radius: inherit;
        pointer-events: none;
        background: conic-gradient(from 180deg, rgba(34, 211, 238, .24), rgba(139, 92, 246, .18), transparent 60%);
        animation: slowspin 10s linear infinite;
        filter: blur(18px);
        opacity: .6
    }

    @keyframes slowspin {
        to {
            transform: rotate(360deg)
        }
    }
}

:root {
    --to-bg: #0b0f18;
    --to-card: #0e1525;
    --to-ink: #eaf2ff;
    --to-cyan: #22d3ee;
    --to-violet: #8b5cf6;
    --to-gold: #ffd166;
    --to-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}

.tomodal {
    position: fixed;
    inset: 0;
    z-index: 9999
}

.tomodal[data-open="1"] {
    display: block
}

.to-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 18, .65);
    backdrop-filter: blur(6px)
}

.to-card {
    position: relative;
    width: min(780px, 92vw);
    margin: 6vh auto;
    border-radius: 20px;
    padding: 22px 22px 18px;
    color: var(--to-ink);
    background: radial-gradient(1200px 400px at 110% -10%, rgba(34, 211, 238, .18), transparent 60%),
    radial-gradient(900px 300px at -10% 120%, rgba(139, 92, 246, .18), transparent 60%),
    linear-gradient(180deg, #0f172a, #0c1323);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: var(--to-shadow);
    transform: translateY(16px) scale(.98);
    opacity: 0;
    animation: toIn .4s ease forwards;
    border: 2px solid #ffd700;
}

@keyframes toIn {
    to {
        transform: none;
        opacity: 1
    }
}

.to-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    pointer-events: none;
    background: conic-gradient(from 180deg, rgba(34, 211, 238, .28), rgba(139, 92, 246, .22), rgba(255, 209, 102, .25), transparent 60%);
    filter: blur(22px);
    opacity: .7;
}

.to-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: linear-gradient(180deg, #101a31, #0c1527);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 0 0 6px rgba(255, 209, 102, .18)
}

.to-close:hover {
    box-shadow: 0 0 0 8px rgba(255, 209, 102, .28)
}

.to-ribbon {
    width: max-content;
    position: absolute;
    top: 0px;
    left: 50%;
    z-index: 2;
    border: 2px solid #ffd700;
    background: linear-gradient(135deg, #ee8022, #f4f65c);
    color: #08151a;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: .2px;
    padding: 2px 12px;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .35);
    transform: translate(-50%, -50%);
}

.to-head {
    display: grid;
    grid-template-columns:82px 1fr auto;
    gap: 14px;
    align-items: center
}

@media (max-width: 767px) {
    .to-head {
        display: grid;
        grid-template-columns:82px 1fr;
        gap: 14px;
        align-items: center
    }
    .to-score {
        display: flex
    ;
        gap: 10px;
        justify-items: center;
        align-items: center;
    }
}

.to-logo {
    width: 82px;
    height: 82px;
    border-radius: 18px;
    background: linear-gradient(145deg, #fff3c4, #ffd166);
    border: 1px solid rgba(255, 209, 102, .8);
    box-shadow: 0 0 22px rgba(255, 209, 102, .55), inset 0 0 10px rgba(255, 255, 255, .35);
    display: grid;
    place-items: center;
    color: #2a1d00;
    font-weight: 900;
    letter-spacing: .5px;
}

.to-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.to-title h3 {
    margin: 0;
    font-size: 22px
}

.to-sub {
    color: #a5b9d8;
    font-size: 13px
}

.to-score .num {
    font-weight: 900;
    font-size: 24px
}

.to-score .stars {
    color: var(--to-gold);
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(255, 209, 102, .5)
}

.to-bonus {
    margin: 10px 0 8px;
    padding: 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(49, 233, 129, .15), rgba(34, 211, 238, .12));
    border: 1px solid rgba(49, 233, 129, .35);
    color: #dafeea
}

@media (max-width: 767px) {
    .to-bonus {
        margin-top: 10px
    }
    .to-logo {
        width: 104px;
        height: 64px;
    }
    .to-head {
        grid-template-columns: 104px 1fr;
    }
}

.to-bullets {
    margin: 8px 0 10px;
    padding-left: 18px
}

.to-bullets li {
    margin: 6px 0
}

.to-pay {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 6px 0 14px
}

.to-pay span {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #0f1f36;
    border: 1px solid rgba(255, 255, 255, .1);
    color: #cfe6ff
}

.to-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 900;
    letter-spacing: .4px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff3c4, #ffd166, #ffb347);
    color: #211400;
    border: 1px solid #ffd166;
    box-shadow: 0 0 28px rgba(255, 209, 102, .6);
    transition: transform .2s ease, box-shadow .2s ease;
}

.to-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 36px rgba(255, 209, 102, .9)
}

.to-foot {
    margin-top: 10px;
    font-size: 12px;
    color: #9fb3cf;
    text-align: center
}

/* disable closing by clicking backdrop */
.to-backdrop {
    pointer-events: none
}