:root {
    --bg: #050810;
    --surface: #0b111d;
    --surface-soft: rgba(14, 21, 34, 0.88);
    --line: rgba(255, 255, 255, 0.08);
    --text: #f5f7fb;
    --muted: rgba(229, 235, 245, 0.72);
    --gold: #d5a53b;
    --gold-light: #edc160;
    --header-height: 72px;
    --container: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 0 auto;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

/* Header */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: var(--header-height);
    background: rgba(5, 9, 17, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.header-inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.brand-main {
    color: #ffffff;
}

.brand-accent {
    color: var(--gold);
}

.nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    position: relative;
    padding: 26px 0 24px;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: color 160ms ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 17px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 160ms ease;
}

.nav-link:hover,
.nav-link-active {
    color: #ffffff;
}

.nav-link:hover::after,
.nav-link-active::after {
    transform: scaleX(1);
}

.nav-link-cabinet {
    padding: 11px 16px;
    border: 1px solid rgba(213, 165, 59, 0.35);
    border-radius: 8px;
}

.nav-link-cabinet::after {
    display: none;
}

.nav-link-cabinet:hover {
    background: rgba(213, 165, 59, 0.1);
    border-color: rgba(213, 165, 59, 0.65);
}

/* Hero */

.hero {
    position: relative;
    isolation: isolate;
    min-height: calc(100svh - var(--header-height));
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    background:
        linear-gradient(
            90deg,
            rgba(4, 8, 15, 0.48) 0%,
            rgba(4, 8, 15, 0.22) 48%,
            rgba(4, 8, 15, 0.50) 100%
        ),
        url("../images/hero-bg.jpg") center center / cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 34%;
    z-index: -1;
    background: linear-gradient(to bottom, transparent, var(--bg));
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(12, 31, 53, 0.02) 0%,
            rgba(4, 8, 15, 0.30) 55%,
            rgba(4, 8, 15, 0.62) 100%
        );
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 55px;
    padding-bottom: 72px;
}

.hero-logo {
    display: block;
    width: clamp(230px, 24vw, 360px);
    max-height: 260px;
    object-fit: contain;
    margin: 0 auto 8px;
    filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.58));
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin-bottom: 16px;
    padding: 0 15px;
    border: 1px solid rgba(213, 165, 59, 0.40);
    border-radius: 999px;
    background: rgba(213, 165, 59, 0.09);
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.hero h1 {
    margin: 0;
    font-size: clamp(42px, 5.5vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.035em;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}

.hero-subtitle {
    margin: 14px 0 0;
    color: var(--gold-light);
    font-size: clamp(22px, 2.5vw, 32px);
    font-weight: 800;
}

.hero-description {
    max-width: 690px;
    margin: 18px auto 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.button {
    min-width: 190px;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border-radius: 9px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 900;
    transition:
        transform 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease;
}

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

.button-primary {
    color: #10131a;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    box-shadow: 0 12px 34px rgba(213, 165, 59, 0.25);
}

.button-primary:hover {
    background: linear-gradient(135deg, #f4cf76, #daa93f);
}

.button-secondary {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(13, 19, 30, 0.78);
}

.button-secondary:hover {
    background: rgba(24, 32, 47, 0.92);
    border-color: rgba(255, 255, 255, 0.28);
}

.server-stats {
    width: min(100%, 620px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 34px;
}

.stat-card {
    min-height: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 14px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background:
        linear-gradient(
            145deg,
            rgba(18, 27, 43, 0.94),
            rgba(10, 16, 27, 0.90)
        );
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.stat-label {
    color: rgba(226, 233, 244, 0.62);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.stat-value {
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
}

/* Shared sections */

.features,
.worlds,
.news,
.start-block {
    position: relative;
}

.features,
.worlds,
.news {
    padding: 88px 0 104px;
}

.features {
    background:
        radial-gradient(circle at 50% 0, rgba(28, 49, 76, 0.16), transparent 36%),
        var(--bg);
}

.worlds {
    background:
        linear-gradient(180deg, #070b13, #09101b);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.news {
    background:
        radial-gradient(circle at 15% 0, rgba(213, 165, 59, 0.07), transparent 28%),
        #050810;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-heading-left {
    max-width: 720px;
    margin-left: 0;
    text-align: left;
}

.section-heading-row {
    max-width: none;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    text-align: left;
}

.section-kicker {
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.section-heading h2,
.start-block h2 {
    margin: 12px 0 14px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.1;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.section-link {
    flex: 0 0 auto;
    padding-bottom: 8px;
    color: var(--gold-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

.section-link:hover {
    text-decoration: underline;
}

/* Features */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    position: relative;
    min-height: 250px;
    padding: 32px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            rgba(17, 26, 41, 0.96),
            rgba(8, 14, 24, 0.96)
        );
}

.feature-card::after {
    content: "";
    position: absolute;
    right: -50px;
    bottom: -70px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(213, 165, 59, 0.06);
    filter: blur(3px);
}

.feature-number {
    color: rgba(213, 165, 59, 0.65);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.feature-card h3 {
    margin: 34px 0 14px;
    font-size: 24px;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

/* Worlds */

.worlds-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.world-card {
    min-height: 315px;
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            rgba(17, 26, 41, 0.98),
            rgba(8, 14, 24, 0.98)
        );
}

.world-card-active {
    border-color: rgba(213, 165, 59, 0.36);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.world-card-muted {
    opacity: 0.68;
}

.world-card-top,
.world-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.world-status {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.world-rate {
    color: var(--gold-light);
    font-size: 22px;
    font-weight: 900;
}

.world-card h3 {
    margin: 42px 0 14px;
    font-size: 30px;
}

.world-card p {
    margin: 0 0 30px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.world-meta {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: rgba(229, 235, 245, 0.62);
    font-size: 13px;
}

.world-link {
    margin-top: 22px;
    color: var(--gold-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

/* News */

.news-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 20px;
}

.news-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #0a101b;
}

.news-cover {
    position: relative;
    min-height: 180px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 18px;
    background-size: cover;
    background-position: center;
}

.news-cover-main {
    background:
        linear-gradient(145deg, rgba(8, 17, 31, 0.16), rgba(5, 9, 17, 0.86)),
        url("../images/hero-bg.jpg") center 52% / cover no-repeat;
}

.news-cover-secondary {
    background:
        radial-gradient(circle at 30% 30%, rgba(213, 165, 59, 0.32), transparent 25%),
        linear-gradient(135deg, #142238, #080d16);
}

.news-cover-third {
    background:
        radial-gradient(circle at 70% 25%, rgba(56, 114, 167, 0.30), transparent 28%),
        linear-gradient(135deg, #0b1b2d, #080d16);
}

.news-tag {
    padding: 7px 10px;
    border: 1px solid rgba(213, 165, 59, 0.35);
    border-radius: 999px;
    background: rgba(7, 11, 19, 0.78);
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-body {
    padding: 24px;
}

.news-body time {
    color: rgba(229, 235, 245, 0.50);
    font-size: 12px;
}

.news-body h3 {
    margin: 12px 0 12px;
    font-size: 22px;
    line-height: 1.25;
}

.news-body p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.news-body a {
    display: inline-block;
    margin-top: 20px;
    color: var(--gold-light);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

/* Start block */

.start-block {
    padding: 58px 0;
    border-top: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(213, 165, 59, 0.10), transparent 48%),
        #0a101b;
}

.start-block-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

.start-block h2 {
    max-width: 720px;
    margin-bottom: 0;
}

.start-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 12px;
}

/* Footer */

.footer {
    flex: 0 0 auto;
    padding: 25px 0;
    border-top: 1px solid var(--line);
    background: #050810;
    color: rgba(229, 235, 245, 0.58);
    font-size: 13px;
}

.footer-inner,
.footer-links {
    display: flex;
    align-items: center;
}

.footer-inner {
    justify-content: space-between;
    gap: 20px;
}

.footer-inner > div:first-child {
    display: flex;
    gap: 12px;
}

.footer-links {
    gap: 20px;
}

.footer-links a {
    color: rgba(229, 235, 245, 0.62);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--gold-light);
}

/* Responsive */

@media (max-height: 780px) and (min-width: 769px) {
    .hero-content {
        padding-top: 34px;
        padding-bottom: 46px;
    }

    .hero-logo {
        width: clamp(205px, 20vw, 300px);
        max-height: 205px;
    }

    .hero h1 {
        font-size: clamp(40px, 4.7vw, 60px);
    }

    .hero-description {
        margin-top: 12px;
    }

    .hero-actions {
        margin-top: 22px;
    }

    .server-stats {
        margin-top: 26px;
    }
}

@media (max-width: 980px) {
    .header-inner {
        min-height: auto;
        padding-block: 16px;
        flex-direction: column;
        gap: 12px;
    }

    .nav {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        padding: 4px 0 8px;
    }

    .nav-link::after {
        bottom: 1px;
    }

    .nav-link-cabinet {
        padding: 8px 12px;
    }

    .hero {
        min-height: auto;
    }

    .features-grid,
    .worlds-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .start-block-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .hero-content {
        padding-top: 42px;
        padding-bottom: 60px;
    }

    .hero-logo {
        width: min(78vw, 300px);
        max-height: 220px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-actions,
    .start-actions {
        width: 100%;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .server-stats {
        grid-template-columns: 1fr;
    }

    .stat-card {
        min-height: 82px;
    }

    .section-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .features,
    .worlds,
    .news {
        padding: 70px 0 82px;
    }

    .footer-inner,
    .footer-links {
        flex-direction: column;
    }
}


/* Internal pages */

.inner-hero {
    padding: 92px 0 70px;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(rgba(5, 9, 17, 0.58), rgba(5, 9, 17, 0.94)),
        url("../images/hero-bg.jpg") center 46% / cover no-repeat;
}

.inner-hero h1 {
    max-width: 900px;
    margin: 12px 0 16px;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.04;
}

.inner-hero p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.page-section {
    padding: 76px 0 100px;
    background:
        radial-gradient(circle at 50% 0, rgba(28, 49, 76, 0.13), transparent 34%),
        var(--bg);
}

/* News page */

.news-list {
    display: grid;
    gap: 18px;
}

.news-list-card {
    padding: 28px 30px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(17, 26, 41, 0.97), rgba(8, 14, 24, 0.97));
}

.news-list-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.news-list-meta time {
    color: rgba(229, 235, 245, 0.48);
    font-size: 12px;
}

.news-list-card h2 {
    margin: 20px 0 12px;
    font-size: 27px;
}

.news-list-card p {
    max-width: 850px;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.news-list-card a {
    display: inline-block;
    margin-top: 20px;
    color: var(--gold-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

/* Downloads */

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.download-card {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(17, 26, 41, 0.97), rgba(8, 14, 24, 0.97));
}

.download-icon {
    color: var(--gold);
    font-weight: 900;
    letter-spacing: 0.12em;
}

.download-card h2 {
    margin: 42px 0 14px;
    font-size: 27px;
}

.download-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.download-state {
    margin-top: auto;
    padding-top: 24px;
    color: var(--gold-light);
    font-size: 13px;
    font-weight: 800;
}

.system-note {
    margin-top: 28px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(11, 17, 29, 0.88);
}

.system-note h2 {
    margin: 0 0 18px;
}

.system-note ol {
    margin: 0;
    padding-left: 22px;
    color: var(--muted);
    line-height: 1.9;
}

/* Cabinet preview */

.auth-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    max-width: 960px;
}

.auth-card {
    min-height: 370px;
    display: flex;
    flex-direction: column;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(17, 26, 41, 0.97), rgba(8, 14, 24, 0.97));
}

.auth-card-accent {
    border-color: rgba(213, 165, 59, 0.34);
}

.auth-label {
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-card h2 {
    margin: 18px 0 24px;
    font-size: 30px;
}

.auth-card p {
    margin: 0 0 28px;
    color: var(--muted);
    line-height: 1.7;
}

.fake-field {
    min-height: 52px;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 8px;
    background: rgba(3, 7, 13, 0.55);
    color: rgba(229, 235, 245, 0.42);
}

.auth-card .button {
    margin-top: auto;
    border: 0;
}

.auth-card .button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
}

@media (max-width: 980px) {
    .download-grid,
    .auth-preview {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .inner-hero {
        padding: 70px 0 54px;
    }

    .page-section {
        padding: 60px 0 76px;
    }

    .news-list-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}



/* =========================================================
   v0.5 — динамический контент и живые эффекты
   ========================================================= */

body.motion-enabled {
    --motion-state: running;
}

body.motion-disabled {
    --motion-state: paused;
}

/* Announcements */

.announcement-stack {
    position: relative;
    z-index: 120;
}

.announcement-bar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #111827;
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
}

.announcement-info {
    background: linear-gradient(90deg, #0b2036, #101827);
}

.announcement-success {
    background: linear-gradient(90deg, #0c2c23, #101827);
}

.announcement-warning {
    background: linear-gradient(90deg, #3b2a0c, #15130f);
}

.announcement-danger {
    background: linear-gradient(90deg, #3a1117, #181014);
}

.announcement-inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
}

.announcement-inner a {
    color: var(--gold-light);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

/* Dynamic hero */

.hero {
    --parallax-x: 0px;
    --parallax-y: 0px;
    background: #050810;
}

.hero-background {
    position: absolute;
    inset: -4%;
    z-index: -5;
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: translate3d(var(--parallax-x), var(--parallax-y), 0) scale(1.07);
    transition: transform 180ms ease-out;
    will-change: transform;
}

/* v0.6 — video hero */
.hero-video-layer {
    position: absolute;
    inset: 0;
    z-index: -4;
    overflow: hidden;
    pointer-events: none;
    background: transparent;
}

.hero-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1.015);
}

.hero-shade {
    z-index: -3;
    background:
        linear-gradient(
            90deg,
            rgb(4 8 15 / calc(var(--hero-overlay-opacity) + 0.10)) 0%,
            rgb(4 8 15 / calc(var(--hero-overlay-opacity) * 0.50)) 48%,
            rgb(4 8 15 / calc(var(--hero-overlay-opacity) + 0.12)) 100%
        ),
        radial-gradient(circle at 50% 40%, transparent 0%, rgb(4 8 15 / 0.52) 78%);
}

.hero-fog {
    position: absolute;
    left: -20%;
    width: 140%;
    height: 38%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.34;
    filter: blur(32px);
    background:
        radial-gradient(ellipse at 20% 50%, rgba(191, 213, 230, 0.18), transparent 32%),
        radial-gradient(ellipse at 62% 50%, rgba(172, 199, 222, 0.13), transparent 30%),
        radial-gradient(ellipse at 88% 50%, rgba(196, 216, 232, 0.13), transparent 25%);
    animation-play-state: var(--motion-state);
}

.hero-fog-one {
    bottom: 2%;
    animation: fog-drift-one 26s ease-in-out infinite alternate;
}

.hero-fog-two {
    bottom: 18%;
    opacity: 0.22;
    animation: fog-drift-two 34s ease-in-out infinite alternate;
}

@keyframes fog-drift-one {
    from { transform: translate3d(-4%, 0, 0) scale(1); }
    to { transform: translate3d(5%, -8px, 0) scale(1.08); }
}

@keyframes fog-drift-two {
    from { transform: translate3d(5%, 0, 0) scale(1.08); }
    to { transform: translate3d(-6%, 12px, 0) scale(1); }
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.hero-particles span {
    position: absolute;
    left: var(--particle-left);
    bottom: -20px;
    width: var(--particle-size);
    height: var(--particle-size);
    border-radius: 50%;
    background: rgba(237, 193, 96, 0.84);
    box-shadow: 0 0 10px rgba(237, 193, 96, 0.72);
    opacity: 0;
    animation: particle-rise var(--particle-duration) linear var(--particle-delay) infinite;
    animation-play-state: var(--motion-state);
}

@keyframes particle-rise {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) scale(0.5);
    }
    12% { opacity: 0.8; }
    72% { opacity: 0.45; }
    100% {
        opacity: 0;
        transform: translate3d(var(--particle-drift), -92vh, 0) scale(1.15);
    }
}

.hero-logo {
    animation: logo-breathe 5.5s ease-in-out infinite;
    animation-play-state: var(--motion-state);
}

@keyframes logo-breathe {
    0%, 100% { filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.58)); transform: translateY(0); }
    50% { filter: drop-shadow(0 20px 42px rgba(213, 165, 59, 0.20)); transform: translateY(-3px); }
}

.online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 5px;
    border-radius: 50%;
    background: #56d596;
    box-shadow: 0 0 0 0 rgba(86, 213, 150, 0.55);
    animation: online-pulse 2s ease-out infinite;
    animation-play-state: var(--motion-state);
}

@keyframes online-pulse {
    0% { box-shadow: 0 0 0 0 rgba(86, 213, 150, 0.52); }
    70% { box-shadow: 0 0 0 7px rgba(86, 213, 150, 0); }
    100% { box-shadow: 0 0 0 0 rgba(86, 213, 150, 0); }
}

.stat-value-small {
    font-size: 18px;
    text-align: center;
}

/* Scroll reveal */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 620ms ease, transform 620ms ease;
}

.reveal-on-scroll.is-visible,
.motion-disabled .reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
}

.feature-card,
.world-card,
.news-card,
.news-list-card,
.download-card,
.auth-card {
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.motion-enabled .feature-card:hover,
.motion-enabled .world-card:hover,
.motion-enabled .news-card:hover,
.motion-enabled .news-list-card:hover,
.motion-enabled .download-card:hover,
.motion-enabled .auth-card:hover {
    transform: translateY(-5px);
    border-color: rgba(213, 165, 59, 0.26);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.28);
}

/* Dynamic news */

.news-cover {
    background-size: cover;
    background-position: center;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 42px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 15px;
    color: var(--muted);
    text-align: center;
}

.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
    padding: 18px 4px;
}

.pager a,
.pager-disabled {
    color: var(--gold-light);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.pager-disabled {
    color: rgba(229, 235, 245, 0.28);
}

/* Article pages */

.article-hero,
.server-detail-hero {
    position: relative;
    isolation: isolate;
    min-height: 430px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.article-hero-background,
.server-detail-background {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-position: center;
    background-size: cover;
}

.article-hero-background {
    background-image:
        linear-gradient(to bottom, rgba(5, 8, 16, 0.34), #050810 96%),
        var(--article-image);
}

.server-detail-background {
    background-image:
        linear-gradient(to bottom, rgba(5, 8, 16, 0.30), #050810 98%),
        var(--server-image);
}

.article-hero-content,
.server-detail-content {
    padding-top: 100px;
    padding-bottom: 62px;
}

.article-hero h1,
.server-detail-hero h1 {
    max-width: 940px;
    margin: 18px 0 14px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.04;
}

.article-hero time {
    color: var(--muted);
    font-size: 13px;
}

.article-section {
    padding: 72px 0 100px;
    background: var(--bg);
}

.article-content {
    max-width: 920px;
    color: rgba(239, 243, 249, 0.84);
    font-size: 17px;
    line-height: 1.85;
}

.article-content h2,
.article-content h3 {
    color: #ffffff;
    line-height: 1.25;
}

.article-content h2 { margin-top: 0; font-size: 34px; }
.article-content h3 { margin-top: 36px; font-size: 25px; }
.article-content a { color: var(--gold-light); }
.article-content img { height: auto; border-radius: 14px; }
.article-content blockquote {
    margin: 28px 0;
    padding: 20px 24px;
    border-left: 3px solid var(--gold);
    background: rgba(213, 165, 59, 0.07);
}

.article-back {
    display: inline-block;
    margin-top: 36px;
    font-weight: 800;
    text-decoration: none;
}

/* Server detail */

.server-detail-status {
    display: inline-flex;
    padding: 8px 12px;
    border: 1px solid rgba(213, 165, 59, 0.36);
    border-radius: 999px;
    color: var(--gold-light);
    background: rgba(8, 13, 23, 0.74);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.server-detail-hero h1 em {
    color: var(--gold-light);
    font-style: normal;
}

.server-detail-content > p {
    max-width: 720px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.server-detail-meta {
    max-width: 760px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 28px;
}

.server-detail-meta span {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(8, 13, 23, 0.78);
    font-weight: 900;
}

.server-detail-meta small {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.server-description-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: start;
}

.server-functions {
    position: sticky;
    top: 102px;
    padding: 28px;
    border: 1px solid rgba(213, 165, 59, 0.24);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(17, 26, 41, 0.97), rgba(8, 14, 24, 0.97));
}

.server-functions h3 {
    margin: 0 0 20px;
    font-size: 24px;
}

.function-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.function-row strong {
    color: #ffffff;
    text-align: right;
}

.server-functions .button {
    width: 100%;
    margin-top: 24px;
}

.footer-note {
    color: rgba(229, 235, 245, 0.44);
    text-align: center;
}

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

    .server-functions {
        position: static;
    }
}

@media (max-width: 640px) {
    .announcement-inner {
        min-height: 52px;
        padding-block: 9px;
        flex-direction: column;
        gap: 4px;
    }

    .server-detail-meta {
        grid-template-columns: 1fr;
    }

    .article-hero,
    .server-detail-hero {
        min-height: 390px;
    }

    .footer-note {
        order: 3;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}


/* v0.6 — mobile video fallback */

@media (max-width: 768px) {
    .hero-video-mobile-disabled {
        display: none;
    }
}

/* =========================================================
   v0.6.1 — авторизация + восстановление кнопки "Войти"
   ========================================================= */

/* Явно фиксируем вид кнопки личного кабинета в шапке. */
.nav .nav-link-cabinet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 17px;
    color: var(--gold-light);
    border: 1px solid rgba(213, 165, 59, 0.44);
    border-radius: 9px;
    background: rgba(213, 165, 59, 0.055);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.018);
    line-height: 1;
}

.nav .nav-link-cabinet::after {
    display: none;
}

.nav .nav-link-cabinet:hover,
.nav .nav-link-cabinet.nav-link-active {
    color: #10131a;
    border-color: rgba(237, 193, 96, 0.88);
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    box-shadow: 0 10px 28px rgba(213, 165, 59, 0.18);
}

/* Нормализуем настоящие button-элементы под общий стиль сайта. */
button.button {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.account-section {
    position: relative;
    isolation: isolate;
    min-height: calc(100svh - var(--header-height));
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 72px 0 92px;
    background: var(--bg);
}

.auth-page-background,
.auth-page-video-layer,
.auth-page-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.auth-page-background {
    z-index: -5;
    background-image: var(--auth-image);
    background-position: center;
    background-size: cover;
    transform: scale(1.035);
}

.auth-page-video-layer {
    z-index: -4;
    overflow: hidden;
}

.auth-page-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1.015);
}

.auth-page-overlay {
    z-index: -3;
    background:
        radial-gradient(
            circle at 50% 38%,
            rgba(9, 20, 35, 0.18) 0%,
            rgba(5, 8, 16, 0.58) 52%,
            rgba(5, 8, 16, 0.92) 100%
        ),
        linear-gradient(
            90deg,
            rgba(4, 8, 15, 0.82),
            rgba(4, 8, 15, 0.44) 50%,
            rgba(4, 8, 15, 0.82)
        );
}

.auth-page-glow {
    position: absolute;
    z-index: -2;
    top: 14%;
    left: 50%;
    width: min(720px, 82vw);
    height: 420px;
    transform: translateX(-50%);
    border-radius: 50%;
    pointer-events: none;
    background: rgba(36, 82, 124, 0.12);
    filter: blur(90px);
}

.account-shell {
    position: relative;
    z-index: 2;
}

.account-shell-narrow {
    width: min(100%, 590px);
}

.account-heading {
    margin-bottom: 24px;
    text-align: center;
}

.account-heading .section-kicker {
    display: inline-block;
    margin-bottom: 12px;
}

.account-heading h1 {
    margin: 0;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.50);
}

.account-heading p {
    max-width: 560px;
    margin: 15px auto 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.auth-logo {
    display: block;
    width: min(260px, 68vw);
    max-height: 145px;
    margin: 0 auto 18px;
    object-fit: contain;
    filter: drop-shadow(0 15px 32px rgba(0, 0, 0, 0.55));
}

.form-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(16, 25, 40, 0.94),
            rgba(7, 12, 21, 0.96)
        );
    box-shadow:
        0 30px 75px rgba(0, 0, 0, 0.44),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(18px);
}

.form-card form {
    padding: 32px 34px 28px;
}

.form-group + .form-group {
    margin-top: 20px;
}

.form-group label {
    display: inline-block;
    margin-bottom: 9px;
    color: rgba(245, 247, 251, 0.92);
    font-size: 13px;
    font-weight: 800;
}

.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.form-label-row a {
    margin-bottom: 9px;
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.form-label-row a:hover {
    text-decoration: underline;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
    width: 100%;
    height: 52px;
    padding: 0 15px;
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 9px;
    background: rgba(2, 6, 12, 0.72);
    color: #ffffff;
    font: inherit;
    font-size: 15px;
    box-shadow: inset 0 1px 8px rgba(0, 0, 0, 0.24);
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background-color 160ms ease;
}

.form-group input:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.form-group input:focus {
    border-color: rgba(237, 193, 96, 0.74);
    background: rgba(4, 9, 16, 0.88);
    box-shadow:
        0 0 0 3px rgba(213, 165, 59, 0.10),
        inset 0 1px 8px rgba(0, 0, 0, 0.18);
}

.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    transition: background-color 9999s ease-out 0s;
    box-shadow: 0 0 0 1000px #07101a inset;
    caret-color: #ffffff;
}

.form-error {
    display: block;
    margin-top: 8px;
    color: #f58a96;
    font-size: 12px;
    line-height: 1.45;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 21px 0 0;
    color: rgba(229, 235, 245, 0.68);
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.form-check input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--gold);
}

.form-submit {
    width: 100%;
    min-width: 0;
    margin-top: 26px;
}

.form-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(4, 8, 15, 0.45);
    color: rgba(229, 235, 245, 0.58);
    font-size: 13px;
}

.form-card-footer a {
    color: var(--gold-light);
    font-weight: 800;
    text-decoration: none;
}

.form-card-footer a:hover {
    text-decoration: underline;
}

.flash-message {
    margin-top: 18px;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 13px;
}

.flash-success {
    border-color: rgba(86, 213, 150, 0.26);
    background: rgba(86, 213, 150, 0.08);
    color: #9be8c0;
}

.flash-warning {
    border-color: rgba(237, 193, 96, 0.28);
    background: rgba(237, 193, 96, 0.08);
    color: var(--gold-light);
}

@media (max-width: 640px) {
    .account-section {
        min-height: auto;
        padding: 46px 0 64px;
    }

    .account-heading {
        margin-bottom: 20px;
    }

    .account-heading h1 {
        font-size: 34px;
    }

    .auth-logo {
        width: min(220px, 66vw);
        max-height: 125px;
    }

    .form-card form {
        padding: 26px 20px 24px;
    }

    .form-label-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
    }

    .form-label-row a {
        margin-top: -3px;
    }

    .form-card-footer {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }
}

