/* =====================================================================
   Vindstort — dark casino-lounge theme
   Vanilla CSS. Reference UX: kurshub.ru (card grid) → reworked dark.
   ===================================================================== */

:root {
    /* Base (dark) */
    --bg:        #0e1117;
    --bg-2:      #141821;
    --surface:   #1a1f2b;
    --surface-2: #222838;
    --border:    #2b3346;
    --border-2:  #38415a;

    /* Text */
    --text:      #eef2f8;
    --text-2:    #aab3c5;
    --text-3:    #6b7385;

    /* Accents — casino */
    --gold:      #f5a623;
    --gold-2:    #ffcb5e;
    --green:     #3ecf8e;
    --green-2:   #5be6a6;
    --red:       #ff5a6e;

    /* Glow */
    --glow-gold:  0 0 0 1px rgba(245,166,35,.35), 0 0 24px -6px rgba(245,166,35,.55);
    --glow-green: 0 0 0 1px rgba(62,207,142,.35), 0 0 24px -6px rgba(62,207,142,.55);

    --radius:    16px;
    --radius-sm: 10px;
    --shadow:    0 12px 32px -12px rgba(0,0,0,.6);
    --maxw:      1180px;
    --gap:       22px;

    --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

/* ------------------------------- reset ------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(245,166,35,.07), transparent 60%),
        radial-gradient(1000px 500px at -10% 10%, rgba(62,207,142,.06), transparent 55%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }

.muted { color: var(--text-2); }
.center { text-align: center; }
.lead { font-size: 1.125rem; color: var(--text-2); max-width: 60ch; }
.eyebrow {
    text-transform: uppercase; letter-spacing: .18em; font-size: .78rem;
    font-weight: 700; color: var(--gold);
}
.gradient-text {
    background: linear-gradient(100deg, var(--gold-2), var(--gold) 40%, var(--green) 110%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ------------------------------ topbar ------------------------------ */
.topbar {
    background: linear-gradient(90deg, rgba(245,166,35,.12), rgba(62,207,142,.10));
    border-bottom: 1px solid var(--border);
    font-size: .82rem; color: var(--text-2);
}
.topbar .container {
    display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
    justify-content: center; padding-top: 8px; padding-bottom: 8px; text-align: center;
}
.topbar strong { color: var(--gold-2); }
.topbar a { color: var(--text); border-bottom: 1px dotted var(--border-2); }
.topbar a:hover { color: var(--gold-2); }

/* ------------------------------ header ------------------------------ */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(14,17,23,.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 900; font-size: 1.4rem; letter-spacing: -.03em; perspective: 600px; }

/* animated poker-chip logo */
.logo-chip {
    display: block; flex: none;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,.45)) drop-shadow(0 0 7px rgba(245,166,35,.45));
    transform-style: preserve-3d;
    transition: transform .9s cubic-bezier(.22,.68,.2,1);
    animation: chipGlow 3.6s ease-in-out infinite;
}
.logo-chip .vg-ring  { transform-box: fill-box; transform-origin: center; animation: chipSpin 16s linear infinite; }
.logo-chip .vg-sheen { transform-box: fill-box; animation: chipSheen 5s ease-in-out infinite; }
.brand:hover .logo-chip { transform: rotateY(360deg) scale(1.06); }

.brand .wordmark {
    background: linear-gradient(100deg, #fff 0%, #ffe7a6 26%, var(--gold) 50%, #fff 74%, var(--gold) 100%);
    background-size: 220% auto;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: wordShine 7s linear infinite;
}

@keyframes chipSpin  { to { transform: rotate(360deg); } }
@keyframes chipGlow  {
    0%, 100% { filter: drop-shadow(0 2px 5px rgba(0,0,0,.45)) drop-shadow(0 0 6px rgba(245,166,35,.35)); }
    50%      { filter: drop-shadow(0 2px 5px rgba(0,0,0,.45)) drop-shadow(0 0 13px rgba(245,166,35,.7)); }
}
@keyframes chipSheen {
    0%       { transform: translateX(0) skewX(-16deg); opacity: 0; }
    12%      { opacity: 1; }
    45%      { transform: translateX(62px) skewX(-16deg); opacity: 0; }
    100%     { transform: translateX(62px) skewX(-16deg); opacity: 0; }
}
@keyframes wordShine { to { background-position: 220% center; } }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
    padding: 9px 13px; border-radius: 9px; font-size: .92rem; font-weight: 600;
    color: var(--text-2); transition: .18s;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.active { color: var(--gold-2); background: rgba(245,166,35,.10); }

.nav-toggle {
    display: none; background: var(--surface); border: 1px solid var(--border);
    color: var(--text); width: 44px; height: 42px; border-radius: 10px; font-size: 1.3rem; cursor: pointer;
}

/* ----------------------------- buttons ------------------------------ */
.btn {
    display: inline-flex; align-items: center; gap: 8px; justify-content: center;
    padding: 12px 20px; border-radius: 11px; font-weight: 700; font-size: .95rem;
    border: 1px solid transparent; cursor: pointer; transition: .18s; white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
    color: #1a1206; box-shadow: var(--glow-gold);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(245,166,35,.5), 0 10px 30px -8px rgba(245,166,35,.7); }
.btn-ghost { background: var(--surface); border-color: var(--border-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-green { background: linear-gradient(135deg, var(--green-2), var(--green)); color: #06291b; box-shadow: var(--glow-green); }
.btn-green:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }

/* ------------------------------- hero ------------------------------- */
.hero { padding: 72px 0 48px; position: relative; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.04) 1px, transparent 0);
    background-size: 28px 28px; mask-image: linear-gradient(180deg, #000, transparent 80%);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }

/* hero media: real designer video + animated 2D fallback */
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.hero-fx { position: absolute; inset: 0; }
.hero-fx .fx-glow {
    position: absolute; width: 70vw; height: 70vw; max-width: 820px; max-height: 820px;
    left: 55%; top: -28%; border-radius: 50%;
    background: radial-gradient(circle, rgba(245,166,35,.20), rgba(62,207,142,.07) 45%, transparent 65%);
    animation: fxDrift 20s ease-in-out infinite alternate;
}
.hero-fx .chiplet {
    position: absolute; bottom: -10%; font-size: 2.6rem; line-height: 1;
    color: rgba(245,166,35,.16); will-change: transform, opacity;
    animation: floatUp linear infinite;
}
.hero-fx .chiplet.red { color: rgba(255,90,110,.15); }
.hero-fx .s1 { left: 8%;  font-size: 2.2rem; animation-duration: 17s; animation-delay: 0s; }
.hero-fx .s2 { left: 24%; font-size: 3rem;   animation-duration: 22s; animation-delay: 4s; }
.hero-fx .s3 { left: 42%; font-size: 1.8rem; animation-duration: 15s; animation-delay: 8s; }
.hero-fx .s4 { left: 61%; font-size: 2.8rem; animation-duration: 24s; animation-delay: 2s; }
.hero-fx .s5 { left: 78%; font-size: 2.1rem; animation-duration: 19s; animation-delay: 6s; }
.hero-fx .s6 { left: 90%; font-size: 3.2rem; animation-duration: 26s; animation-delay: 11s; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(14,17,23,.32) 0%, rgba(14,17,23,.55) 55%, rgba(14,17,23,.9) 100%),
                linear-gradient(90deg, rgba(14,17,23,.6) 0%, transparent 55%);
}
@keyframes fxDrift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-8%, 6%) scale(1.15); }
}
@keyframes floatUp {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
    12%  { opacity: 1; }
    88%  { opacity: 1; }
    100% { transform: translateY(-118vh) rotate(220deg); opacity: 0; }
}
.hero h1 { margin: 16px 0; }
.hero .lead { font-size: 1.2rem; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-suits { font-size: 1.4rem; letter-spacing: 6px; opacity: .5; }
.hero-suits .r { color: var(--red); }

/* ------------------------------ stats ------------------------------- */
.stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap);
    margin-top: 44px;
}
.stat {
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px; text-align: center;
}
.stat .num { font-size: 2rem; font-weight: 900; color: var(--gold-2); letter-spacing: -.03em; }
.stat .lbl { font-size: .85rem; color: var(--text-2); margin-top: 4px; }

/* ------------------------- section headings ------------------------- */
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 { margin: 8px 0; }

/* ------------------------------ grids ------------------------------- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --------------------------- category card -------------------------- */
.cat-card {
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 26px; transition: .2s; position: relative; overflow: hidden;
    display: flex; flex-direction: column; gap: 10px;
}
.cat-card::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    box-shadow: inset 0 0 0 1px transparent; transition: .2s; pointer-events: none;
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow); }
.cat-card:hover::after { box-shadow: var(--glow-gold); }
.cat-card .ico { font-size: 2rem; color: var(--gold); line-height: 1; }
.cat-card .ico.suit-red { color: var(--red); }
.cat-card h3 { color: var(--text); }
.cat-card .pick { font-size: .85rem; color: var(--text-2); margin-top: auto; }
.cat-card .pick b { color: var(--green-2); }
.cat-card .arrow { color: var(--gold); font-weight: 700; }

/* ---------------------------- casino card --------------------------- */
.casino-card {
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px; display: flex; flex-direction: column; gap: 16px;
    transition: .2s; position: relative;
}
.casino-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-2); }
.casino-card .rank {
    position: absolute; top: -12px; left: 18px;
    background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1206;
    font-weight: 900; font-size: .8rem; padding: 4px 11px; border-radius: 20px;
    box-shadow: var(--glow-gold);
}
.casino-head { display: flex; align-items: center; gap: 14px; }
.casino-logo {
    width: 56px; height: 56px; flex: 0 0 56px; border-radius: 13px; display: grid; place-items: center;
    font-weight: 900; font-size: 1.4rem; color: #0e1117;
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
}
.casino-head .name { font-size: 1.2rem; font-weight: 800; }
.casino-head .tag { font-size: .85rem; color: var(--text-2); }
.casino-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.casino-meta .m { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px; text-align: center; }
.casino-meta .m .v { font-weight: 800; color: var(--gold-2); font-size: 1.02rem; }
.casino-meta .m .k { font-size: .72rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.casino-card .actions { display: flex; gap: 10px; margin-top: auto; }

/* ----------------------------- badges ------------------------------- */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 20px;
    border: 1px solid var(--border-2); color: var(--text-2); background: var(--bg);
}
.badge.gold  { color: var(--gold-2);  border-color: rgba(245,166,35,.4); background: rgba(245,166,35,.08); }
.badge.green { color: var(--green-2); border-color: rgba(62,207,142,.4); background: rgba(62,207,142,.08); }
.badges { display: flex; flex-wrap: wrap; gap: 7px; }
.stars { color: var(--gold); letter-spacing: 2px; }

/* ------------------------------ filters ----------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter-btn {
    padding: 9px 16px; border-radius: 30px; border: 1px solid var(--border-2);
    background: var(--surface); color: var(--text-2); font-weight: 600; font-size: .9rem; cursor: pointer; transition: .18s;
}
.filter-btn:hover { color: var(--text); border-color: var(--gold); }
.filter-btn.active { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1206; border-color: transparent; box-shadow: var(--glow-gold); }

/* ------------------------------ tables ------------------------------ */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 720px; }
table.cmp th, table.cmp td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
table.cmp thead th { background: var(--surface-2); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); position: sticky; top: 0; }
table.cmp tbody tr:hover { background: var(--surface); }
table.cmp td:first-child, table.cmp th:first-child { font-weight: 700; color: var(--text); }
table.cmp .ok { color: var(--green-2); }
table.cmp .hl { color: var(--gold-2); font-weight: 800; }

/* ----------------------------- prose -------------------------------- */
.prose { max-width: 760px; }
.prose p { color: var(--text-2); margin: 0 0 18px; }
.prose h2 { margin: 36px 0 14px; }
.prose h3 { margin: 28px 0 10px; color: var(--text); }
.prose ul.bullets { display: grid; gap: 10px; margin: 0 0 20px; }
.prose ul.bullets li { padding-left: 26px; position: relative; color: var(--text-2); }
.prose ul.bullets li::before { content: "♦"; position: absolute; left: 0; color: var(--gold); font-size: .85rem; top: 1px; }

/* pros / cons */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.pc { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: var(--surface); }
.pc h4 { margin-bottom: 12px; font-size: 1rem; }
.pc.pros h4 { color: var(--green-2); }
.pc.cons h4 { color: var(--red); }
.pc li { padding-left: 24px; position: relative; margin-bottom: 9px; color: var(--text-2); font-size: .94rem; }
.pc li::before { position: absolute; left: 0; font-weight: 800; }
.pc.pros li::before { content: "✓"; color: var(--green-2); }
.pc.cons li::before { content: "✕"; color: var(--red); }

/* info box */
.note {
    border: 1px solid var(--border-2); border-left: 3px solid var(--gold);
    background: var(--surface); border-radius: var(--radius-sm); padding: 16px 18px; color: var(--text-2);
}
.note.green { border-left-color: var(--green); }
.note.red { border-left-color: var(--red); }

/* ----------------------------- accordion ---------------------------- */
.acc { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.acc + .acc { margin-top: 12px; }
.acc summary {
    list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 700;
    display: flex; justify-content: space-between; gap: 12px; align-items: center; background: var(--surface);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; transition: .2s; }
.acc[open] summary::after { transform: rotate(45deg); }
.acc .acc-body { padding: 0 20px 18px; color: var(--text-2); }

/* ------------------------------- cta -------------------------------- */
.cta-band {
    border: 1px solid var(--border); border-radius: var(--radius);
    background: linear-gradient(120deg, rgba(245,166,35,.12), rgba(62,207,142,.10)), var(--surface);
    padding: 40px; text-align: center;
}
.cta-band h2 { margin-bottom: 10px; }

/* ------------------------------ forms ------------------------------- */
.form { display: grid; gap: 16px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .9rem; font-weight: 600; color: var(--text-2); }
.field input, .field textarea, .field select {
    background: var(--bg); border: 1px solid var(--border-2); color: var(--text);
    border-radius: var(--radius-sm); padding: 12px 14px; font: inherit; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,166,35,.15); }
.field textarea { min-height: 140px; resize: vertical; }
.form-msg { padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.form-msg.ok { background: rgba(62,207,142,.12); color: var(--green-2); border: 1px solid rgba(62,207,142,.3); }
.form-msg.err { background: rgba(255,90,110,.12); color: var(--red); border: 1px solid rgba(255,90,110,.3); }

/* --------------------------- breadcrumb ----------------------------- */
.crumb { font-size: .85rem; color: var(--text-3); padding: 18px 0 0; }
.crumb a:hover { color: var(--gold-2); }
.crumb span { color: var(--text-3); }

/* ------------------------------ footer ------------------------------ */
.site-footer {
    margin-top: auto; border-top: 1px solid var(--border);
    background: var(--bg-2); padding: 48px 0 28px; color: var(--text-2); font-size: .9rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; margin-bottom: 32px; }
.footer-grid h4 { color: var(--text); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-grid a { color: var(--text-2); display: inline-block; padding: 3px 0; }
.footer-grid a:hover { color: var(--gold-2); }
.footer-rg { color: var(--text-3); line-height: 1.7; }
.footer-rg b { color: var(--gold-2); }
.aff-disclosure { border: 1px dashed var(--border-2); border-radius: var(--radius-sm); padding: 12px 16px; margin: 18px 0; color: var(--text-2); font-size: .85rem; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; color: var(--text-3); }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.age-pill { background: var(--red); color: #fff; font-weight: 900; border-radius: 8px; padding: 2px 8px; font-size: .8rem; }

/* -------------------------- cookie banner --------------------------- */
.cookie-banner {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    background: rgba(20,24,33,.97); backdrop-filter: blur(10px);
    border-top: 2px solid var(--gold);
    box-shadow: 0 -10px 40px -10px rgba(0,0,0,.6);
}
.cookie-inner { display: flex; align-items: center; gap: 22px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.cookie-text { flex: 1 1 320px; }
.cookie-text strong { color: var(--gold-2); }
.cookie-text p { margin: 4px 0 0; color: var(--text-2); font-size: .9rem; }
.cookie-text a { color: var(--gold-2); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; flex-wrap: wrap; }
@media (max-width: 560px) {
    .cookie-actions { width: 100%; }
    .cookie-actions .btn { flex: 1; }
}

/* ----------------------------- helpers ------------------------------ */
.hide { display: none !important; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* --------------------------- responsive ----------------------------- */
@media (max-width: 980px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
        background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 12px; gap: 4px; }
    .nav.open { display: flex; }
    .nav a { padding: 12px; }
    .nav-toggle { display: block; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .proscons { grid-template-columns: 1fr; }
    .section { padding: 44px 0; }
}
@media (max-width: 460px) {
    .grid-4, .stats { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .casino-meta { grid-template-columns: repeat(3, 1fr); }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; animation: none !important; }
    .btn:hover, .cat-card:hover, .casino-card:hover { transform: none; }
    .hero-video { display: none; }
}
