/* ============================================================
   DMM Nexus — публичный сайт
   Премиальный тёмный фэнтези-стиль: чернильное небо, золото,
   орнаментальные рамки, мягкое свечение.
   ============================================================ */

:root {
    --ink-0: #07070f;
    --ink-1: #0b0c18;
    --ink-2: #12142a;
    --ink-3: #1a1d38;
    --parchment: #efe6d0;
    --parchment-dim: #cabfa4;
    --gold: #d8b45c;
    --gold-bright: #f0d492;
    --gold-deep: #a07f31;
    --ember: #c96f3b;
    --arcane: #7d6cff;
    --arcane-soft: rgba(125, 108, 255, .22);
    --line: rgba(216, 180, 92, .22);
    --line-soft: rgba(216, 180, 92, .12);
    --card: rgba(18, 20, 42, .72);
    --card-solid: #12142a;
    --shadow: 0 24px 60px rgba(0, 0, 0, .55);
    --radius: 18px;
    --font-display: 'Forum', 'Georgia', serif;
    --font-body: 'Manrope', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--ink-0);
    color: var(--parchment);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ---------- фон: звёзды и туманности ---------- */
.sky {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(1100px 700px at 82% -10%, rgba(125, 108, 255, .16), transparent 60%),
        radial-gradient(900px 600px at -10% 20%, rgba(201, 111, 59, .12), transparent 55%),
        radial-gradient(1200px 900px at 50% 110%, rgba(216, 180, 92, .08), transparent 60%),
        linear-gradient(180deg, #0a0b16 0%, #07070f 55%, #0a0a14 100%);
}
.sky::before, .sky::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.4px 1.4px at 12% 18%, rgba(240, 212, 146, .8), transparent 60%),
        radial-gradient(1px 1px at 28% 64%, rgba(239, 230, 208, .55), transparent 60%),
        radial-gradient(1.6px 1.6px at 44% 32%, rgba(240, 212, 146, .7), transparent 60%),
        radial-gradient(1px 1px at 58% 76%, rgba(239, 230, 208, .45), transparent 60%),
        radial-gradient(1.3px 1.3px at 70% 12%, rgba(240, 212, 146, .75), transparent 60%),
        radial-gradient(1px 1px at 84% 52%, rgba(239, 230, 208, .5), transparent 60%),
        radial-gradient(1.5px 1.5px at 93% 84%, rgba(240, 212, 146, .65), transparent 60%),
        radial-gradient(1px 1px at 6% 88%, rgba(239, 230, 208, .5), transparent 60%);
    animation: twinkle 7s ease-in-out infinite alternate;
}
.sky::after {
    transform: translate(28px, 40px) scale(1.4);
    opacity: .5;
    animation-duration: 11s;
    animation-delay: -3s;
}
@keyframes twinkle { from { opacity: .45; } to { opacity: 1; } }

/* ---------- типографика ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); letter-spacing: .015em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; color: var(--parchment-dim); }
a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: #fff; }

.kicker {
    display: inline-flex;
    align-items: center;
    gap: .7em;
    text-transform: uppercase;
    letter-spacing: .32em;
    font-size: .72rem;
    color: var(--gold);
    margin-bottom: 1.1rem;
}
.kicker::before, .kicker::after {
    content: "";
    width: 34px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}
.kicker::after { background: linear-gradient(90deg, var(--gold), transparent); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head p { font-size: 1.05rem; }

.gold-text {
    background: linear-gradient(115deg, var(--gold-bright) 20%, var(--gold) 45%, #fff2ce 60%, var(--gold-deep) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- каркас ---------- */
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
section.block { padding: 96px 0; position: relative; }

.divider {
    width: min(520px, 70%);
    margin: 0 auto;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    opacity: .8;
}
.divider::before, .divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line));
}
.divider::after { background: linear-gradient(90deg, var(--line), transparent); }
.divider span {
    color: var(--gold);
    font-size: 1rem;
    transform: rotate(45deg);
    line-height: 1;
}

/* ---------- шапка ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    backdrop-filter: blur(14px);
    background: linear-gradient(180deg, rgba(7, 7, 15, .92), rgba(7, 7, 15, .72));
    border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 68px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: .06em;
    color: var(--parchment);
    white-space: nowrap;
}
.brand-sigil {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    display: grid;
    place-items: center;
    font-size: .8rem;
    color: var(--gold-bright);
    background:
        radial-gradient(circle at 30% 25%, rgba(240, 212, 146, .35), transparent 55%),
        var(--ink-2);
    box-shadow: 0 0 18px rgba(216, 180, 92, .35), inset 0 0 10px rgba(216, 180, 92, .15);
}
.site-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.site-nav a {
    padding: 9px 14px;
    border-radius: 10px;
    color: var(--parchment-dim);
    font-size: .92rem;
    letter-spacing: .02em;
    transition: color .2s, background .2s;
}
.site-nav a:hover { color: var(--parchment); background: rgba(216, 180, 92, .08); }
.site-nav a.active { color: var(--gold-bright); background: rgba(216, 180, 92, .1); }
.site-nav a.nav-account {
    border: 1px solid var(--line);
    color: var(--gold-bright);
    margin-left: 10px;
}
.site-nav a.nav-account:hover { border-color: var(--gold); background: rgba(216, 180, 92, .12); }

/* ---------- кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-size: .98rem;
    font-weight: 600;
    letter-spacing: .02em;
    cursor: pointer;
    transition: transform .18s, box-shadow .25s, background .25s, border-color .25s;
    text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn.primary {
    background: linear-gradient(135deg, #e8c979, var(--gold) 45%, var(--gold-deep));
    color: #241a06;
    box-shadow: 0 10px 30px rgba(216, 180, 92, .3), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn.primary:hover { box-shadow: 0 14px 40px rgba(216, 180, 92, .45), inset 0 1px 0 rgba(255, 255, 255, .45); transform: translateY(-2px); color:#241a06; }
.btn.ghost {
    border-color: var(--line);
    color: var(--parchment);
    background: rgba(18, 20, 42, .5);
}
.btn.ghost:hover { border-color: var(--gold); color: var(--gold-bright); background: rgba(216, 180, 92, .08); }
.btn.small { padding: 9px 18px; font-size: .86rem; border-radius: 10px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none !important; }

/* ---------- герой ---------- */
.hero {
    padding: 110px 0 90px;
    text-align: center;
    position: relative;
}
.hero .lead {
    max-width: 680px;
    margin: 0 auto 2.2rem;
    font-size: 1.14rem;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.hero-note { font-size: .82rem; color: rgba(202, 191, 164, .7); letter-spacing: .04em; }
.hero-scroll {
    margin-top: 56px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-size: .78rem;
    letter-spacing: .28em;
    text-transform: uppercase;
}
.hero-scroll span { animation: drift 2.2s ease-in-out infinite; font-size: 1.1rem; rotate: 90deg; }
@keyframes drift { 0%, 100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(7px); opacity: 1; } }

/* бегущая строка возможностей */
.tag-marquee {
    margin-top: 64px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.tag-marquee-track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: marquee 38s linear infinite;
}
.tag-marquee:hover .tag-marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tag-chip {
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(18, 20, 42, .6);
    color: var(--parchment-dim);
    font-size: .88rem;
    white-space: nowrap;
}
.tag-chip b { color: var(--gold-bright); font-weight: 600; }

/* ---------- карточки-колонны ---------- */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}
.card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 30px 28px;
    backdrop-filter: blur(8px);
    transition: transform .25s, border-color .25s, box-shadow .3s;
}
.card:hover {
    transform: translateY(-5px);
    border-color: var(--line);
    box-shadow: var(--shadow);
}
.card::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: calc(var(--radius) - 8px);
    border: 1px solid rgba(216, 180, 92, .07);
    pointer-events: none;
}
.card .card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    margin-bottom: 18px;
    background: linear-gradient(140deg, rgba(216, 180, 92, .16), rgba(125, 108, 255, .14));
    border: 1px solid var(--line);
    box-shadow: inset 0 0 14px rgba(216, 180, 92, .12);
}
.card ul { margin: 0; padding-left: 1.1em; color: var(--parchment-dim); }
.card ul li { margin-bottom: .5em; }
.card ul li::marker { color: var(--gold); }

/* ---------- карусель миров ---------- */
.worlds-rail-shell { position: relative; }
.worlds-rail {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 4px 26px;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-deep) transparent;
}
.worlds-rail::-webkit-scrollbar { height: 6px; }
.worlds-rail::-webkit-scrollbar-thumb { background: var(--gold-deep); border-radius: 3px; }
.world-card {
    scroll-snap-align: start;
    flex: 0 0 330px;
    border-radius: var(--radius);
    border: 1px solid var(--line-soft);
    background: var(--card-solid);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s, border-color .25s, box-shadow .3s;
}
.world-card:hover { transform: translateY(-6px); border-color: var(--line); box-shadow: var(--shadow); }
.world-art {
    height: 180px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 16px;
}
.world-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(7, 7, 15, .85));
}
.world-art .world-rune {
    position: absolute;
    top: 14px;
    right: 16px;
    font-family: var(--font-display);
    font-size: 2.6rem;
    opacity: .35;
    color: #fff;
}
.world-badge {
    position: relative;
    z-index: 1;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(7, 7, 15, .72);
    border: 1px solid var(--line);
    color: var(--gold-bright);
}
.world-badge.free { color: #9fe3a8; border-color: rgba(159, 227, 168, .4); }
.world-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.world-body h3 { margin: 0; }
.world-body p { margin: 0; font-size: .92rem; flex: 1; }
.world-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.world-tags span {
    font-size: .72rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(125, 108, 255, .12);
    border: 1px solid rgba(125, 108, 255, .25);
    color: #c9c2ff;
}
.world-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.world-price { font-family: var(--font-display); font-size: 1.15rem; color: var(--gold-bright); }
.rail-btn {
    position: absolute;
    top: 42%;
    z-index: 5;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(7, 7, 15, .85);
    color: var(--gold-bright);
    font-size: 1.3rem;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    display: grid;
    place-items: center;
}
.rail-btn:hover { background: rgba(216, 180, 92, .15); border-color: var(--gold); }
.rail-btn.prev { left: -24px; }
.rail-btn.next { right: -24px; }
@media (max-width: 1260px) {
    .rail-btn.prev { left: 6px; }
    .rail-btn.next { right: 6px; }
    .rail-btn { opacity: .85; }
}

/* ---------- шаги ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    counter-reset: step;
}
.step {
    position: relative;
    padding: 30px 26px 26px;
    border-radius: var(--radius);
    border: 1px solid var(--line-soft);
    background: var(--card);
}
.step::before {
    counter-increment: step;
    content: counter(step, upper-roman);
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 10px;
    text-shadow: 0 0 22px rgba(216, 180, 92, .5);
}
.step h3 { font-size: 1.15rem; }
.step p { margin: 0; font-size: .92rem; }

/* ---------- скачивание ---------- */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 26px;
}
.download-card {
    position: relative;
    border-radius: 22px;
    padding: 42px 36px;
    border: 1px solid var(--line);
    overflow: hidden;
    background:
        radial-gradient(600px 300px at 20% -20%, rgba(216, 180, 92, .14), transparent 60%),
        var(--card-solid);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.download-card.android {
    background:
        radial-gradient(600px 300px at 80% -20%, rgba(125, 108, 255, .18), transparent 60%),
        var(--card-solid);
}
.download-platform {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-display);
    font-size: 1.5rem;
}
.platform-icon {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    border: 1px solid var(--line);
    background: rgba(7, 7, 15, .55);
}
.download-card p { margin: 0; flex: 1; }
.download-card ul { margin: 0 0 8px; padding-left: 1.1em; color: var(--parchment-dim); font-size: .9rem; }
.download-card ul li::marker { color: var(--gold); }
.download-card .btn { align-self: flex-start; }
.download-fineprint { font-size: .78rem; color: rgba(202, 191, 164, .6); }

/* ---------- документы ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.doc-card {
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: var(--card);
    padding: 6px 22px;
}
.doc-card summary {
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1.1rem;
    padding: 14px 0;
    color: var(--parchment);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.doc-card summary::after { content: "❧"; color: var(--gold); transition: transform .25s; }
.doc-card[open] summary::after { transform: rotate(90deg); }
.doc-card p { font-size: .9rem; padding-bottom: 14px; margin: 0; }

/* ---------- сообщество ---------- */
.studio-grid, .master-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}
.studio-card { display: flex; flex-direction: column; gap: 12px; }
.studio-top { display: flex; align-items: center; gap: 16px; }
.studio-emblem {
    width: 58px;
    height: 58px;
    flex: none;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--gold-bright);
    border: 1px solid var(--line);
    background: linear-gradient(150deg, rgba(216, 180, 92, .18), rgba(125, 108, 255, .16));
    box-shadow: inset 0 0 16px rgba(216, 180, 92, .15);
}
.studio-top h3 { margin: 0; }
.studio-top .studio-sub { font-size: .8rem; color: var(--parchment-dim); }
.studio-stats { display: flex; gap: 18px; font-size: .82rem; color: var(--parchment-dim); }
.studio-stats b { color: var(--gold-bright); font-family: var(--font-display); font-size: 1.05rem; font-weight: 400; }
.master-card { display: flex; flex-direction: column; gap: 10px; }
.master-top { display: flex; align-items: center; gap: 14px; }
.master-avatar {
    width: 52px;
    height: 52px;
    flex: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #241a06;
    background: linear-gradient(140deg, var(--gold-bright), var(--gold-deep));
    box-shadow: 0 0 18px rgba(216, 180, 92, .3);
}
.master-top h3 { margin: 0; font-size: 1.15rem; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: .9rem; }
.stars small { color: var(--parchment-dim); letter-spacing: normal; margin-left: 6px; }
.master-card .btn { margin-top: auto; align-self: flex-start; }

.social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.social-card { display: flex; flex-direction: column; gap: 8px; }
.social-card h3 { display: flex; align-items: center; gap: 12px; margin: 0; }
.social-card .arrow { margin-left: auto; color: var(--gold); transition: transform .2s; }
.social-card:hover .arrow { transform: translateX(5px); }
.social-card p { margin: 0; font-size: .9rem; }

.roadmap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.roadmap-col h3 { color: var(--gold-bright); display: flex; align-items: center; gap: 10px; }
.roadmap-col h3::before { content: "✦"; font-size: .8rem; }

/* ---------- аккаунт ---------- */
.account-shell { max-width: 460px; margin: 0 auto; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 22px; }
.auth-tabs button {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--line-soft);
    background: transparent;
    color: var(--parchment-dim);
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.auth-tabs button.active {
    background: rgba(216, 180, 92, .12);
    border-color: var(--gold);
    color: var(--gold-bright);
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .82rem; letter-spacing: .04em; color: var(--parchment-dim); }
.field input, .field select {
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid var(--line-soft);
    background: rgba(7, 7, 15, .6);
    color: var(--parchment);
    font-family: var(--font-body);
    font-size: .95rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216, 180, 92, .15); }
.form-note { font-size: .78rem; color: rgba(202, 191, 164, .65); }

.cabinet-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 26px;
    align-items: start;
}
@media (max-width: 900px) { .cabinet-grid { grid-template-columns: 1fr; } }
.profile-card { text-align: center; }
.profile-avatar {
    width: 92px;
    height: 92px;
    margin: 6px auto 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 2rem;
    color: #241a06;
    background: linear-gradient(140deg, var(--gold-bright), var(--gold-deep));
    box-shadow: 0 0 34px rgba(216, 180, 92, .4);
}
.plan-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--gold-bright);
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.balance-line {
    margin: 20px 0 6px;
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--gold-bright);
    text-shadow: 0 0 26px rgba(216, 180, 92, .35);
}
.balance-caption { font-size: .8rem; color: var(--parchment-dim); letter-spacing: .06em; text-transform: uppercase; }

.topup-presets { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.topup-presets button {
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid var(--line-soft);
    background: rgba(7, 7, 15, .5);
    color: var(--parchment);
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    transition: all .2s;
}
.topup-presets button:hover, .topup-presets button.active { border-color: var(--gold); color: var(--gold-bright); background: rgba(216, 180, 92, .1); }
.topup-row { display: flex; gap: 12px; }
.topup-row input { flex: 1; }

.history-list { display: flex; flex-direction: column; gap: 10px; max-height: 260px; overflow-y: auto; }
.history-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 16px;
    border-radius: 10px;
    background: rgba(7, 7, 15, .45);
    border: 1px solid var(--line-soft);
    font-size: .88rem;
}
.history-item .amount.plus { color: #9fe3a8; }
.history-item .amount.minus { color: #e3a89f; }
.history-item time { color: rgba(202, 191, 164, .55); font-size: .78rem; }

.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.plan-card { display: flex; flex-direction: column; gap: 10px; }
.plan-card .eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: .2em; color: var(--arcane); }
.plan-card h3 { margin: 0; }
.plan-price { font-family: var(--font-display); font-size: 1.7rem; color: var(--gold-bright); }
.plan-price small { font-size: .85rem; color: var(--parchment-dim); font-family: var(--font-body); }
.plan-card ul { margin: 0; padding-left: 1.05em; font-size: .86rem; color: var(--parchment-dim); flex: 1; }
.plan-card ul li { margin-bottom: .45em; }
.plan-card ul li::marker { color: var(--gold); }
.plan-card.current { border-color: var(--gold); box-shadow: 0 0 30px rgba(216, 180, 92, .18); }
.plan-card .btn { margin-top: 6px; }

.demo-banner {
    margin: 0 0 30px;
    padding: 13px 20px;
    border-radius: 12px;
    border: 1px dashed rgba(216, 180, 92, .4);
    background: rgba(216, 180, 92, .06);
    color: var(--gold-bright);
    font-size: .85rem;
    text-align: center;
}

/* ---------- модал ---------- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(4, 4, 10, .8);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
    width: min(440px, 100%);
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow);
    text-align: center;
}
.modal h3 { color: var(--gold-bright); }

/* ---------- подвал ---------- */
.site-footer {
    border-top: 1px solid var(--line-soft);
    padding: 54px 0 40px;
    margin-top: 40px;
    background: linear-gradient(180deg, transparent, rgba(7, 7, 15, .9));
}
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-col h4 { color: var(--gold); font-size: 1rem; letter-spacing: .1em; }
.footer-col a { display: block; color: var(--parchment-dim); font-size: .9rem; padding: 4px 0; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--line-soft);
    font-size: .8rem;
    color: rgba(202, 191, 164, .55);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
}

/* ---------- reveal-анимация ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .tag-marquee-track, .sky::before, .sky::after, .hero-scroll span { animation: none; }
}

/* ---------- адаптив ---------- */
@media (max-width: 760px) {
    .site-header .wrap { flex-wrap: wrap; padding: 10px 0; gap: 10px; }
    .site-nav { margin-left: 0; width: 100%; justify-content: center; }
    .hero { padding: 70px 0 60px; }
    section.block { padding: 64px 0; }
    .world-card { flex-basis: 280px; }
    .rail-btn { display: none; }
}
