:root {
            --bg: #08111a;
            --bg-deep: #0b141d;
            --bg-soft: #0f1822;
            --header-bg: rgba(23, 33, 45, 0.94);
            --surface: rgba(255, 255, 255, 0.03);
            --surface-strong: rgba(255, 255, 255, 0.055);
            --surface-bright: rgba(255, 255, 255, 0.09);
            --line: rgba(255, 186, 92, 0.2);
            --line-strong: rgba(255, 186, 92, 0.38);
            --line-soft: rgba(255, 255, 255, 0.07);
            --text: #eef4fa;
            --text-soft: #d4deea;
            --muted: #9aa9ba;
            --accent: #f0a429;
            --accent-soft: #ffd18a;
            --header-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
            --button-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
            --button-shadow-hover: 0 22px 40px rgba(0, 0, 0, 0.24);
            --transition: 260ms cubic-bezier(.22, 1, .36, 1);
        }

        * { box-sizing: border-box; }
        html { scroll-behavior: smooth; }
        body {
            margin: 0;
            min-height: 100vh;
            font-family: 'Inter', system-ui, sans-serif;
            color: var(--text);
            background:
                radial-gradient(circle at 50% -10%, rgba(240, 164, 41, 0.05), transparent 24%),
                linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 46%, #131d28 100%);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            overflow-x: hidden;
        }

        body::before {
            content: "";
            position: fixed;
            inset: 0;
            pointer-events: none;
            will-change: transform, opacity;
            background:
                linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px),
                linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px);
            background-size: 60px 60px;
            mask-image: linear-gradient(180deg, rgba(0,0,0,0.22), transparent 84%);
            opacity: 0.16;
        }

        a { color: inherit; text-decoration: none; }
        img { display: block; max-width: 100%; }

        .container {
            width: min(1260px, calc(100% - 36px));
            margin: 0 auto;
        }

        .site-header {
            position: sticky;
            top: 0;
            z-index: 80;
            padding: 4px 0;
            background:
                linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012) 42%, rgba(255,255,255,0)),
                linear-gradient(90deg, rgba(240,164,41,0.06) 0%, transparent 18%, transparent 82%, rgba(240,164,41,0.05) 100%),
                var(--header-bg);
            backdrop-filter: blur(20px) saturate(165%);
            -webkit-backdrop-filter: blur(20px) saturate(165%);
            box-shadow: var(--header-shadow);
            overflow: clip;
        }

        .site-header::before,
        .site-header::after {
            content: "";
            position: absolute;
            inset: 0;
            pointer-events: none;
        }

        .site-header::before {
            background:
                radial-gradient(circle at 18% 50%, rgba(255, 196, 110, 0.18), transparent 18%),
                radial-gradient(circle at 82% 50%, rgba(255, 196, 110, 0.16), transparent 18%),
                linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.05) 50%, transparent 100%);
            opacity: 0.55;
            filter: blur(16px);
        }

        .site-header::after {
            inset: auto 0 0 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255, 210, 138, 0.34), transparent);
            opacity: 0.95;
        }

        .header-shell {
            position: relative;
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
            align-items: center;
            gap: 14px;
            min-height: 32px;
        }


        .nav-group {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: nowrap;
            min-width: 0;
        }

        .nav-group.right {
            justify-content: flex-end;
        }

        .header-mobile-actions {
            display: none;
            width: 100%;
        }

        .hero-mobile-links {
            display: none;
        }

        .nav-link,
        .social-link,
        .mobile-link,
        .cabinet-link {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            min-height: 46px;
            padding: 0 24px 0 18px;
            border-radius: 14px;
            border: 1px solid rgba(255,255,255,0.11);
            background:
                linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.058) 50%, rgba(255,255,255,0.03) 100%);
            color: var(--text-soft);
            font-size: 14px;
            font-weight: 800;
            letter-spacing: 0.018em;
            white-space: nowrap;
            overflow: hidden;
            box-shadow:
                inset 0 1px 0 rgba(255,255,255,0.11),
                inset 0 -1px 0 rgba(0,0,0,0.2),
                0 8px 18px rgba(0, 0, 0, 0.18),
                0 0 0 1px rgba(255,255,255,0.025),
                0 0 18px rgba(82, 118, 178, 0.06);
            transition:
                transform 180ms ease,
                border-color 180ms ease,
                color 180ms ease,
                background 180ms ease,
                box-shadow 180ms ease;
        }

        .nav-link::before,
        .social-link::before,
        .mobile-link::before,
        .cabinet-link::before {
            content: "";
            position: absolute;
            inset: 1px;
            border-radius: inherit;
            background:
                linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04) 42%, transparent 72%),
                linear-gradient(90deg, rgba(255,255,255,0.04), transparent 18%, transparent 82%, rgba(255,255,255,0.035));
            pointer-events: none;
        }

        .nav-link::after,
        .social-link::after,
        .mobile-link::after,
        .cabinet-link::after {
            content: "";
            position: absolute;
            inset: 0;
            background:
                linear-gradient(110deg, transparent 18%, rgba(255,255,255,0.14) 50%, transparent 82%),
                radial-gradient(circle at 50% 0%, rgba(255, 209, 138, 0.10), transparent 48%);
            transform: translateX(-120%);
            opacity: 0;
            pointer-events: none;
            transition: transform 240ms ease, opacity 140ms ease;
        }

        .nav-link:hover,
        .social-link:hover,
        .mobile-link:hover,
        .cabinet-link:hover {
            color: var(--text);
            border-color: rgba(255, 202, 126, 0.34);
            background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.07) 52%, rgba(255,255,255,0.04));
            transform: translateY(-1px);
            box-shadow:
                inset 0 1px 0 rgba(255,255,255,0.11),
                inset 0 -1px 0 rgba(0,0,0,0.18),
                0 12px 24px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(255, 193, 109, 0.05),
                0 0 16px rgba(240, 164, 41, 0.06);
        }

        .nav-link:hover::after,
        .social-link:hover::after,
        .mobile-link:hover::after,
        .cabinet-link:hover::after {
            opacity: 1;
            transform: translateX(120%);
        }

        .cabinet-link {
            color: #111823;
            background:
                linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.04) 26%, transparent 26%),
                linear-gradient(180deg, #ffdba0 0%, #f0a429 100%);
            border-color: rgba(255, 220, 156, 0.5);
            box-shadow:
                inset 0 1px 0 rgba(255,255,255,0.34),
                inset 0 -1px 0 rgba(145,85,0,0.16),
                0 12px 22px rgba(158, 96, 10, 0.24),
                0 0 0 1px rgba(255,255,255,0.04);
        }

        .cabinet-link:hover {
            color: #0c1117;
            border-color: rgba(255, 226, 172, 0.74);
            background:
                linear-gradient(180deg, rgba(255,255,255,0.3), rgba(255,255,255,0.05) 26%, transparent 26%),
                linear-gradient(180deg, #ffe3af 0%, #f3ae3d 100%);
            box-shadow:
                inset 0 1px 0 rgba(255,255,255,0.36),
                inset 0 -1px 0 rgba(145,85,0,0.14),
                0 16px 28px rgba(158, 96, 10, 0.3),
                0 0 24px rgba(240, 164, 41, 0.14);
        }

        .nav-icon {
            width: 24px;
            height: 24px;
            flex: 0 0 24px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.045));
            border: 1px solid rgba(255,255,255,0.1);
            box-shadow:
                inset 0 1px 0 rgba(255,255,255,0.09),
                0 4px 10px rgba(0,0,0,0.12);
        }

        .cabinet-link .nav-icon {
            background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.08));
            border-color: rgba(255,255,255,0.18);
        }

        .nav-icon svg {
            width: 14px;
            height: 14px;
            fill: currentColor;
            opacity: 0.98;
        }

        .nav-icon-image {
            width: 16px;
            height: 16px;
            object-fit: contain;
            display: block;
            filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.16));
        }

        .nav-link span:last-child,
        .social-link span:last-child,
        .cabinet-link span:last-child {
            position: relative;
            z-index: 1;
            line-height: 1;
        }

        .brand {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 40px;
            padding: 0 12px;
            transition: transform var(--transition), filter var(--transition);
        }

        .brand::before {
            content: "";
            position: absolute;
            left: 50%;
            top: 50%;
            width: 68%;
            height: 54%;
            transform: translate(-50%, -50%);
            border-radius: 999px;
            background: radial-gradient(circle, rgba(240,164,41,0.18) 0%, rgba(240,164,41,0.08) 48%, transparent 74%);
            filter: blur(12px);
            opacity: 0.84;
            pointer-events: none;
            animation: brandGlow 4.6s ease-in-out infinite;
        }

        .brand::after {
            content: "";
            position: absolute;
            inset: 24% 28%;
            border-radius: 999px;
            border: 1px solid rgba(255,255,255,0.06);
            opacity: 0.56;
            transform: scale(0.98);
            pointer-events: none;
            animation: brandAura 4.6s ease-in-out infinite;
        }

        .brand:hover { transform: translateY(-1px); }

        .brand img {
            position: relative;
            z-index: 1;
            width: 102px;
            height: auto;
            object-fit: contain;
            filter: drop-shadow(0 10px 22px rgba(240, 164, 41, 0.16));
            animation: brandFloat 4.6s ease-in-out infinite;
            transform-origin: center;
        }

        .hero {
            min-height: calc(100vh - 44px);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .hero-inner {
            width: 100%;
            padding: clamp(70px, 10vw, 132px) 0 clamp(74px, 9vw, 118px);
            text-align: center;
        }

        .hero-title {
            margin: 0;
            font-size: clamp(58px, 10vw, 138px);
            line-height: 0.9;
            font-weight: 900;
            letter-spacing: -0.08em;
            text-transform: uppercase;
        }

        .hero-title span {
            display: block;
            background: linear-gradient(180deg, #ffffff 0%, #dee8f3 48%, #beccda 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        .hero-title strong {
            display: block;
            margin-top: 8px;
            background: linear-gradient(180deg, #ffd390 0%, #f0a429 52%, #cf7d00 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        .hero-description {
            width: min(930px, 100%);
            margin: 30px auto 0;
            color: var(--muted);
            font-size: clamp(17px, 2vw, 21px);
            line-height: 1.8;
            font-weight: 500;
        }

        .hero-description strong {
            color: var(--text-soft);
            font-weight: 700;
        }

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

        .button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 198px;
            min-height: 56px;
            padding: 0 24px;
            border-radius: 16px;
            font-size: 15px;
            font-weight: 700;
            letter-spacing: 0.012em;
            border: 1px solid transparent;
            transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
            box-shadow: var(--button-shadow);
        }

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

        .button-primary {
            color: #0b1118;
            background: linear-gradient(180deg, #ffd390 0%, #f0a429 100%);
            border-color: rgba(255, 211, 144, 0.36);
        }

        .button-primary:hover { box-shadow: 0 18px 36px rgba(173, 107, 15, 0.28); }

        .button-secondary {
            color: var(--text);
            background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
            border-color: rgba(255,255,255,0.08);
        }

        .button-secondary:hover {
            border-color: var(--line-strong);
            background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04));
        }

        .mobile-links {
            display: none;
            gap: 10px;
            justify-content: center;
            flex-wrap: wrap;
            margin-top: 28px;
        }

        .modal {
            position: fixed;
            inset: 0;
            z-index: 120;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity var(--transition), visibility var(--transition);
        }

        .modal.is-open {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .modal-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(4, 8, 12, 0.54);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }

        .modal-card {
            position: relative;
            z-index: 1;
            width: min(520px, 100%);
            padding: 34px 30px 28px;
            border-radius: 24px;
            border: 1px solid rgba(255,255,255,0.08);
            background: linear-gradient(180deg, rgba(20, 30, 42, 0.94), rgba(14, 22, 32, 0.96));
            box-shadow: 0 30px 70px rgba(0,0,0,0.42);
            text-align: center;
        }

        .modal-card::before {
            content: "";
            position: absolute;
            inset: 1px;
            border-radius: inherit;
            background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 46%);
            pointer-events: none;
        }

        .modal-title {
            margin: 0;
            font-size: clamp(26px, 4vw, 34px);
            line-height: 1.05;
            font-weight: 800;
            letter-spacing: -0.04em;
        }

        .modal-text {
            margin: 16px 0 0;
            color: var(--muted);
            font-size: 15px;
            line-height: 1.8;
        }

        .modal-close {
            margin-top: 24px;
            min-width: 160px;
            min-height: 48px;
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 13px;
            background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
            color: var(--text);
            font: inherit;
            font-weight: 700;
            cursor: pointer;
            transition: transform var(--transition), border-color var(--transition), background var(--transition);
        }

        .modal-close:hover {
            transform: translateY(-1px);
            border-color: var(--line-strong);
            background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
        }

        @keyframes brandFloat {
            0%, 100% { transform: translateY(0) scale(1); }
            50% { transform: translateY(-1.5px) scale(1.01); }
        }

        @keyframes brandGlow {
            0%, 100% { opacity: 0.72; transform: translate(-50%, -50%) scale(0.98); }
            50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
        }

        @keyframes brandAura {
            0%, 100% { opacity: 0.3; transform: scale(0.98); }
            50% { opacity: 0.58; transform: scale(1.02); }
        }

        @media (max-width: 1080px) {
            .header-shell {
                grid-template-columns: 1fr;
                justify-items: center;
                gap: 10px;
            }

            .nav-group,
            .nav-group.right {
                justify-content: center;
            }

            .hero { min-height: auto; }
        }


        @media (min-width: 721px) and (max-width: 1080px) {
            .header-shell {
                grid-template-columns: 1fr;
                justify-items: center;
                gap: 10px;
            }

            .nav-group,
            .nav-group.right {
                justify-content: center;
                flex-wrap: wrap;
            }

            .nav-link,
            .social-link,
            .cabinet-link {
                min-height: 44px;
                padding: 0 18px 0 14px;
            }
        }

        @media (max-width: 720px) {
            .container { width: min(100% - 20px, 1260px); }
            .site-header { padding: 6px 0 8px; }
            .nav-group { display: none; }
            .header-shell {
                grid-template-columns: 1fr;
                justify-items: stretch;
                gap: 8px;
            }
            .brand { min-height: 34px; justify-self: center; }
            .brand img { width: 102px; }
            .header-mobile-actions {
                display: flex;
                align-items: stretch;
                gap: 8px;
                overflow-x: auto;
                overflow-y: hidden;
                padding: 2px 2px 4px;
                margin: 0 -2px;
                scroll-snap-type: x proximity;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
            }
            .header-mobile-actions::-webkit-scrollbar {
                display: none;
            }
            .header-mobile-actions .mobile-link {
                flex: 0 0 auto;
                min-width: max-content;
                min-height: 42px;
                padding: 0 14px 0 12px;
                border-radius: 12px;
                font-size: 13px;
                gap: 10px;
                scroll-snap-align: start;
            }
            .header-mobile-actions .nav-icon {
                width: 22px;
                height: 22px;
                flex-basis: 22px;
                border-radius: 7px;
            }
            .header-mobile-actions .nav-icon svg {
                width: 13px;
                height: 13px;
            }
            .hero-inner { padding: 58px 0 74px; }
            .hero-description { line-height: 1.72; }
            .button { width: 100%; min-width: 0; }
            .hero-mobile-links { display: none !important; }
        }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation: none !important;
                transition: none !important;
                scroll-behavior: auto !important;
            }
        }


        @media (max-width: 980px) {
            .site-header::before {
                opacity: 0.46;
                filter: blur(14px);
            }

            .header-shell::before,
            .header-shell::after {
                display: none;
            }
        }




.site-footer {
    position: relative;
    margin-top: 0;
    padding: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 209, 138, 0.18), transparent 28%),
        radial-gradient(circle at 82% 0%, rgba(92, 131, 255, 0.16), transparent 24%),
        radial-gradient(circle at 50% 120%, rgba(125, 77, 255, 0.18), transparent 32%),
        linear-gradient(180deg, #09111b 0%, #0b1624 42%, #08111d 100%);
    border-top: 0;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.045) 50%, transparent 100%),
        linear-gradient(180deg, rgba(255,255,255,0.02), transparent 36%);
    opacity: 0.7;
    pointer-events: none;
}

.footer-shell {
    position: relative;
    overflow: visible;
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 24px 44px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.footer-shell::before {
    content: none;
}


.footer-shell::after {
    content: none;
}


.footer-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 32px;
}

.footer-col-left { justify-self: start; }
.footer-col-center { justify-self: center; }
.footer-col-right { justify-self: end; }

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 16px;
}

.footer-social {
    color: rgba(255, 255, 255, 0.86);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform .22s ease, color .22s ease, opacity .22s ease, text-shadow .22s ease;
}

.footer-social:hover,
.footer-legal-link:hover,
.footer-email:hover,
.footer-brand:hover {
    transform: translateY(-2px);
}

.footer-social:hover {
    color: #ffffff;
    text-shadow: 0 0 22px rgba(255, 214, 145, 0.28);
}

.footer-social-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-social-icon svg,
.footer-social-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.footer-social-icon svg { fill: currentColor; }

.footer-meta {
    display: grid;
    gap: 8px;
    color: rgba(235, 241, 255, 0.62);
    font-size: 0.95rem;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform .25s ease, filter .25s ease;
}

.footer-brand img {
    width: 98px;
    height: 98px;
    object-fit: contain;
    filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.28));
}

.footer-legal {
    display: grid;
    justify-items: end;
    gap: 12px;
}

.footer-legal-link,
.footer-email {
    color: rgba(235, 241, 255, 0.76);
    text-decoration: none;
    transition: color .22s ease, transform .22s ease, opacity .22s ease, border-color .22s ease;
}

.footer-legal-link {
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.footer-email {
    display: inline-flex;
    align-items: center;
}

.footer-legal-link:hover,
.footer-email:hover {
    color: #ffffff;
}

.footer-legal-link:hover {
    border-color: rgba(255, 214, 145, 0.42);
}

.legal-shell {
    padding-top: 64px;
}

.legal-card {
    padding: 36px;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(18, 27, 42, 0.94), rgba(11, 18, 30, 0.96));
    box-shadow: 0 28px 62px rgba(0,0,0,.28);
}

.legal-content {
    margin-top: 26px;
    display: grid;
    gap: 20px;
    color: rgba(224, 232, 255, 0.8);
    line-height: 1.72;
}

.legal-content section {
    padding: 22px 24px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}

.legal-content h2 {
    margin: 0 0 10px;
    color: #f2f6ff;
    font-size: 1.1rem;
}

.legal-content p,
.legal-content a {
    color: rgba(224, 232, 255, 0.82);
}

@media (max-width: 960px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col-left,
    .footer-col-center,
    .footer-col-right {
        justify-self: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-legal {
        justify-items: center;
    }
}

@media (max-width: 640px) {
    .site-footer {
        margin-top: 72px;
        padding-bottom: 22px;
    }

    .footer-shell,
    .legal-card {
        padding: 24px 18px;
    }

    .footer-grid {
        gap: 22px;
    }

    .footer-brand img {
        width: 74px;
        height: 74px;
    }

    .footer-meta,
    .footer-legal {
        font-size: 0.92rem;
    }
}


.scroll-top-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: rgba(7, 11, 17, 0.76);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    color: rgba(245, 249, 255, 0.94);
    box-shadow: 0 16px 34px rgba(0,0,0,0.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(.94);
    pointer-events: none;
    cursor: pointer;
    transition: opacity 220ms ease, visibility 220ms ease, transform 220ms ease, background 180ms ease, box-shadow 180ms ease;
}

.scroll-top-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.scroll-top-button.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.scroll-top-button:hover {
    background: rgba(10, 15, 22, 0.88);
    box-shadow: 0 18px 38px rgba(0,0,0,0.28);
    transform: translateY(-2px) scale(1.02);
}

.scroll-top-button:focus-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    outline: 2px solid rgba(255, 203, 126, 0.88);
    outline-offset: 4px;
}


@media (max-width: 640px) {
    .scroll-top-button {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 52px;
    }
}

.modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
    z-index: 120;
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 8, 14, 0.72);
    backdrop-filter: blur(10px);
}

.modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    padding: 28px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
    background: linear-gradient(180deg, rgba(18, 26, 36, 0.98), rgba(12, 18, 26, 0.98));
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

.modal-title {
    margin: 0 0 12px;
    font-size: 28px;
}

.modal-text {
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.55;
}

.modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffdba0 0%, #f0a429 100%);
    color: #101925;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.auth-form {
    display: grid;
    gap: 12px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field span {
    font-size: 14px;
    color: var(--text-soft);
    font-weight: 700;
}

.auth-field input {
    min-height: 54px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    padding: 0 16px;
    font: inherit;
    outline: none;
}

.auth-field input:focus {
    border-color: rgba(240, 164, 41, 0.48);
    box-shadow: 0 0 0 4px rgba(240, 164, 41, 0.08);
}

.auth-message {
    min-height: 20px;
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.auth-message.is-error {
    color: #ff8f8f;
}

.auth-message.is-success {
    color: #8fe7b0;
}

.auth-submit {
    width: 100%;
}


.auth-modal-card {
    width: min(100%, 480px);
    min-height: auto;
    padding: 40px 36px 32px;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.auth-modal-card::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background:
        radial-gradient(circle at top center, rgba(255, 219, 160, 0.12), transparent 42%),
        linear-gradient(180deg, rgba(255,255,255,0.04), transparent 34%);
    pointer-events: none;
}

.auth-modal-head {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.auth-modal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 219, 160, 0.2);
    background: rgba(255, 219, 160, 0.08);
    color: #ffdba0;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-modal-title {
    margin: 0;
    max-width: 360px;
    font-size: clamp(30px, 4vw, 40px);
    line-height: 1.08;
}

.auth-modal-text {
    margin: 0;
    max-width: 360px;
    font-size: 15px;
    line-height: 1.8;
}

.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    color: var(--text);
    font: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.auth-modal-close:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.18);
}

.auth-form {
    position: relative;
    z-index: 1;
    gap: 18px;
    width: 100%;
}

.auth-field {
    text-align: left;
}

.auth-field span {
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-field input {
    min-height: 58px;
    border-radius: 18px;
    padding: 0 18px;
    background: rgba(255,255,255,0.05);
}

.auth-field input::placeholder {
    color: rgba(214, 223, 235, 0.45);
}

.auth-message {
    min-height: 22px;
    margin: 0;
    text-align: center;
}

.auth-form > .auth-message:empty {
    display: none;
}

.auth-form > .auth-message:not(:empty) {
    min-height: auto;
}

.auth-submit {
    min-height: 58px;
    margin-top: 0;
    border-radius: 18px;
    font-size: 15px;
    letter-spacing: 0.02em;
}

@media (max-width: 640px) {
    .auth-modal-card {
        width: min(100%, 100%);
        min-height: auto;
        padding: 42px 20px 28px;
        border-radius: 22px;
    }

    .auth-modal-title {
        max-width: 100%;
        font-size: 28px;
    }

    .auth-modal-text {
        max-width: 100%;
        font-size: 14px;
        line-height: 1.7;
    }

    .auth-modal-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }
}


/* performance + responsive refinements */
.hero,
.launcher-download-section,
.updates-section,
.site-footer,
.page-shell,
.cabinet-page {
    content-visibility: auto;
    contain-intrinsic-size: 900px;
}

.brand img,
.launcher-realshot,
.update-card-media img,
.info-logo,
.footer-brand img {
    height: auto;
}

@media (max-width: 900px) {
    body::before {
        opacity: 0.08;
        background-size: 72px 72px;
    }

    .site-header {
        backdrop-filter: blur(14px) saturate(125%);
        -webkit-backdrop-filter: blur(14px) saturate(125%);
    }

    .modal-backdrop,
    .scroll-top-button {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

@media (max-width: 720px) {
    body::before,
    .site-header::before,
    .site-footer::before {
        display: none;
    }

    .header-shell {
        gap: 8px;
    }

    .hero-inner {
        padding: 52px 0 68px;
    }

    .hero-actions {
        gap: 10px;
        margin-top: 30px;
    }

    .mobile-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 24px;
    }

    .mobile-link {
        width: 100%;
        min-width: 0;
        padding-inline: 14px;
    }

    .modal {
        padding: 16px;
        align-items: end;
    }

    .modal-card {
        width: 100%;
        padding: 26px 18px 20px;
        border-radius: 22px;
    }

    .scroll-top-button {
        right: 14px;
        bottom: 14px;
        width: 46px;
        height: 46px;
        box-shadow: 0 10px 22px rgba(0,0,0,0.18);
    }
}

@media (max-width: 480px) {
    .container {
        width: min(100% - 16px, 1260px);
    }

    .brand img {
        width: 88px;
    }

    .hero-title {
        letter-spacing: -0.06em;
    }

    .hero-description {
        margin-top: 22px;
        font-size: 15px;
        line-height: 1.65;
    }

    .button {
        min-height: 52px;
        border-radius: 14px;
    }

    .mobile-links {
        grid-template-columns: 1fr;
    }

    .footer-shell {
        padding-inline: 16px;
    }

    .footer-socials {
        gap: 14px;
    }
}
