:root {
    /* Фоновые цвета по гайду */
    --bg0: #0D0D12;
    --bg1: #14141A;
    --surface-elevated: #1C1C24;
    --surface-hover: #24242F;
    
    /* Текст по гайду */
    --ink: #FFFFFF;
    --muted: #B5B5C6;
    --tertiary-text: #7A7A8A;
    
    /* Акцентные цвета и линии */
    --primary-neon: #9B5CFF;
    --secondary-neon: #4BC9FF;
    --line: #24242F;
    
    /* Стекло и тени */
    --glass: rgba(20, 20, 26, 0.55);
    --glass2: rgba(20, 20, 26, 0.35);
    --shadow: rgba(0, 0, 0, 0.8);
    
    /* Радиусы (согласно вашему исходнику) */
    --radius: 18px;
    --radius2: 26px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", sans-serif;
    color: var(--ink);
    background: radial-gradient(1200px 800px at 20% 10%, #1c1c24 0%, var(--bg0) 55%, #050508 100%);
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; opacity: .86; transition: opacity .2s; }
a:hover { opacity: 1; color: var(--secondary-neon); }

/* --- ФОНОВЫЕ ЭЛЕМЕНТЫ (BG EFFECTS) --- */
.bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--bg0);
}
#bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 2;
}

.bg-vignette {
    position: absolute;
    inset: -5%;
    background:
        radial-gradient(800px 500px at 30% 20%, rgba(155, 92, 255, 0.06), transparent 60%),
        radial-gradient(900px 700px at 70% 65%, rgba(75, 201, 255, 0.04), transparent 65%),
        radial-gradient(1400px 900px at 50% 50%, transparent 45%, rgba(0,0,0,0.8) 100%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.bg-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(180deg, rgba(255,255,255,.03) 0px, rgba(255,255,255,.03) 1px, rgba(0,0,0,0) 3px, rgba(0,0,0,0) 6px);
    opacity: .10;
    mix-blend-mode: overlay;
    pointer-events: none;
    transform: translateZ(0);
    animation: scanMove 8s linear infinite;
}
@keyframes scanMove {
    from { transform: translate3d(0,0,0); }
    to { transform: translate3d(0,18px,0); }
}

.bg-grain {
    position: absolute;
    inset: -30%;
    pointer-events: none;
    opacity: .14;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
    transform: rotate(7deg);
    animation: grain 7s steps(6) infinite;
}
@keyframes grain {
    0% { transform: translate3d(-2%, -2%, 0) rotate(7deg); }
    20% { transform: translate3d(-6%, 1%, 0) rotate(7deg); }
    40% { transform: translate3d(3%, 7%, 0) rotate(7deg); }
    60% { transform: translate3d(5%, -4%, 0) rotate(7deg); }
    80% { transform: translate3d(-1%, 6%, 0) rotate(7deg); }
    100% { transform: translate3d(-2%, -2%, 0) rotate(7deg); }
}

/* --- ХЕДЕР (MENU) --- */
.top {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 28px;
    height: 70px;
    backdrop-filter: blur(14px);
    background: linear-gradient(to bottom, rgba(13, 13, 18, 0.8), rgba(13, 13, 18, 0.4));
    border-bottom: 1px solid var(--line);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: fixed;
    left: 0;
    right: 0;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-dot {
    width: 10px; height: 10px; border-radius: 999px;
    background: var(--primary-neon);
    box-shadow: 0 0 15px var(--primary-neon);
}
.brand-title { font-weight: 700; letter-spacing: .3px; }

/* --- LANGUAGE SWITCHER (FIXED) --- */
.lang-switcher {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 25px;
    height: 100%;
}

.lang-btn {
    background: var(--surface-hover);
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.2s ease;
    line-height: 1;
    margin: 0;
    display: flex;
    align-items: center;
}
.lang-btn:hover {
    border-color: var(--primary-neon);
    box-shadow: 0 0 8px rgba(155, 92, 255, 0.25);
}

.lang-dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    background: var(--surface-elevated);
    border: 1px solid var(--line);
    border-radius: 10px;
    display: none;
    flex-direction: column;
    min-width: 140px;
    box-shadow: 0 15px 40px var(--shadow);
    z-index: 1001;
    overflow: hidden;
    backdrop-filter: blur(12px);
}
.lang-dropdown::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}
.lang-switcher:hover .lang-dropdown {
    display: flex;
}

.lang-option {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.lang-option:hover {
    background: var(--surface-hover);
    color: #fff;
}

.nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }

/* --- ОСНОВНОЙ КОНТЕНТ --- */
.main { padding: 26px 22px 60px; max-width: 1120px; margin: 0 auto; position: relative; z-index: 10; }

.hero {
    display: grid;
    grid-template-columns: 1.35fr .85fr;
    gap: 22px;
    align-items: stretch;
    padding: 28px 0 8px;
}

.hero-copy {
    padding: 26px 24px;
    border-radius: var(--radius2);
    background: linear-gradient(135deg, rgba(20, 20, 26, 0.8), rgba(28, 28, 36, 0.4));
    border: 1px solid var(--line);
    box-shadow: 0 14px 50px var(--shadow);
}

.kicker { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
h1 { margin: 0 0 12px; font-size: 42px; line-height: 1.06; letter-spacing: -.02em; }
.lead { margin: 0 0 18px; color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 62ch; }

.cta { display: flex; gap: 10px; margin: 14px 0 12px; flex-wrap: wrap; }
.btn {
    appearance: none;
    border: 1px solid var(--line);
    background: var(--surface-elevated);
    color: var(--ink);
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { 
    transform: translateY(-1px); 
    background: var(--surface-hover); 
    border-color: var(--secondary-neon);
    box-shadow: 0 0 8px rgba(75, 201, 255, 0.25);
}
.btn.primary { 
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon)); 
    border: none;
    color: #fff;
}
.btn.primary:hover {
    box-shadow: 0 0 15px rgba(155, 92, 255, 0.4);
}

.meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.pill { 
    font-size: 12px; 
    color: var(--muted); 
    border: 1px solid var(--line); 
    background: var(--surface-elevated); 
    padding: 6px 10px; 
    border-radius: 999px; 
}

.hero-card { display: flex; align-items: stretch; }
.card {
    width: 100%; padding: 22px; border-radius: var(--radius2);
    background: linear-gradient(180deg, var(--surface-elevated), var(--bg0));
    border: 1px solid var(--line); box-shadow: 0 14px 50px var(--shadow);
}
.card-title { font-weight: 700; margin-bottom: 12px; }
.card-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.hero-hex { display: block; width: 100%; height: 170px; margin-top: 14px; filter: drop-shadow(0 0 12px rgba(155, 92, 255, 0.25)); }

/* --- GRID & TILES --- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.tile {
    padding: 16px 16px 18px;
    border-radius: var(--radius);
    background: var(--bg1);
    border: 1px solid var(--line);
    transition: 0.3s ease;
}
.tile:hover {
    border-color: var(--primary-neon);
    transform: translateY(-2px);
    box-shadow: 0 0 12px rgba(155, 92, 255, 0.2);
}
.tile h3 { margin: 0 0 8px; font-size: 15px; }
.tile p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.features-note { text-align: center; width: 100%; margin-top: 12px; font-size: 11px; color: var(--tertiary-text); opacity: 0.6; letter-spacing: 0.5px; }
.features-note::before { content: "— "; } .features-note::after { content: " —"; }

/* --- PRICING --- */
.pricing-section { margin: 80px 0; }
.pricing-title { text-align: center; font-size: 32px; margin: 0 0 8px; }
.pricing-subtitle { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 40px; }

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.pricing-card {
    background: linear-gradient(135deg, rgba(28, 28, 36, 0.6), rgba(20, 20, 26, 0.4));
    border: 1px solid var(--line); border-radius: var(--radius2);
    padding: 40px 30px; text-align: center; transition: all 0.4s ease;
}
.pricing-card:hover {
    border-color: var(--primary-neon);
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(155, 92, 255, 0.2);
}
.pricing-card.highlighted { border-color: rgba(155, 92, 255, 0.3); }
.canvas-container { filter: drop-shadow(0 0 15px rgba(155, 92, 255, 0.15)); width: 100%; height: 280px; margin-bottom: 10px; margin-top: -20px; display: flex; justify-content: center; align-items: center; cursor: grab; }
.amount { font-size: 2.5rem; font-weight: 800; margin-bottom: 20px; }
.amount span { font-size: 1rem; color: var(--tertiary-text); }
.price-info ul { list-style: none; padding: 0; margin: 0 0 30px 0; color: var(--muted); font-size: 0.9rem; }
.price-info li { margin-bottom: 10px; }

/* Calculator layout */
.calc-layout {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px;
    align-items: start; margin-top: 50px;
}

/* Price list (left side) */
.calc-pricelist {
    background: linear-gradient(145deg, rgba(28, 28, 36, 0.7), rgba(13, 13, 18, 0.85));
    border: 1px solid var(--line); border-radius: var(--radius2);
    padding: 28px 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.calc-pricelist-title {
    margin: 0 0 18px; font-size: 16px; font-weight: 700;
    color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px;
}
.calc-pricelist-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 14px; color: var(--muted);
}
.calc-pricelist-item:last-of-type { border-bottom: none; }
.calc-pricelist-item span:nth-child(2) { flex: 1; }
.calc-pricelist-val {
    font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums;
}
.calc-pricelist-val small { font-size: 10px; color: var(--tertiary-text); margin-left: 3px; }
.calc-pricelist-note {
    margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
    font-size: 12px; color: var(--tertiary-text); text-align: center;
}

/* Calculator (right side) */
.calc-section {
    background: linear-gradient(145deg, rgba(28, 28, 36, 0.85), rgba(13, 13, 18, 0.95));
    border: 1px solid var(--line); border-radius: var(--radius2);
    padding: 32px 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
}
.calc-header {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 24px;
}
.calc-header-text { display: flex; align-items: center; gap: 10px; }
.calc-badge {
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    color: #fff; padding: 3px 8px; border-radius: 6px;
}
.calc-icon-wrap {
    width: 38px; height: 38px; border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    display: flex; align-items: center; justify-content: center;
    color: #fff; flex-shrink: 0;
}
.calc-title { margin: 0; font-size: 18px; font-weight: 700; }
.calc-grid { display: flex; flex-direction: column; gap: 4px; }

.calc-row {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; border-radius: 12px; cursor: pointer;
    transition: all 0.2s ease; font-size: 14px; color: var(--muted);
    border: 1px solid transparent;
}
.calc-row:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--line);
}
.calc-row.active {
    background: rgba(155, 92, 255, 0.05);
    border-color: rgba(155, 92, 255, 0.15);
    color: var(--ink);
}

/* Custom toggle switch */
.calc-toggle { position: relative; flex-shrink: 0; }
.calc-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.calc-track {
    display: block; width: 36px; height: 20px; border-radius: 999px;
    background: var(--surface-hover); border: 1px solid var(--line);
    transition: all 0.25s ease; position: relative;
}
.calc-thumb {
    position: absolute; top: 2px; left: 2px;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--muted);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.calc-toggle input:checked + .calc-track {
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    border-color: transparent;
}
.calc-toggle input:checked + .calc-track .calc-thumb {
    transform: translateX(16px);
    background: #fff;
    box-shadow: 0 1px 4px rgba(155, 92, 255, 0.4);
}

/* Color dot */
.calc-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--dot-color); flex-shrink: 0;
    opacity: 0.3; transition: all 0.25s ease;
    box-shadow: none;
}
.calc-row.active .calc-dot {
    opacity: 1;
    box-shadow: 0 0 8px var(--dot-color);
}

.calc-name { flex: 1; font-weight: 500; }

/* Units input */
.calc-units-wrap { display: flex; align-items: center; gap: 4px; }
.calc-units {
    width: 44px; padding: 4px 2px; text-align: center;
    background: var(--bg0); border: 1px solid var(--line); border-radius: 8px;
    color: var(--ink); font-size: 13px; font-weight: 600;
    transition: border-color 0.2s;
}
.calc-units:focus { border-color: var(--primary-neon); outline: none; box-shadow: 0 0 0 2px rgba(155, 92, 255, 0.15); }
.calc-unit-label { font-size: 11px; color: var(--tertiary-text); }

/* Price */
.calc-price {
    font-weight: 700; min-width: 60px; text-align: right;
    font-variant-numeric: tabular-nums; font-size: 14px;
    color: var(--tertiary-text); transition: color 0.2s;
}
.calc-row.active .calc-price { color: var(--ink); }

/* Footer */
.calc-footer {
    margin-top: 20px; padding-top: 20px;
    border-top: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 8px;
}
.calc-total-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 16px; font-weight: 700;
}
.calc-total-value {
    font-size: 28px; font-weight: 800;
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}
.calc-daily-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; color: var(--tertiary-text);
}
.calc-daily-value { font-weight: 600; color: var(--muted); }

/* --- PLANET SECTION --- */
.planet-section { position: relative; width: 100%; height: 150vh; z-index: 10; }
.planet-sticky-content { position: sticky; top: 0; width: 100%; height: 100vh; display: flex; align-items: center; justify-content: center; pointer-events: none; }
#planet-canvas {
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: pixelated;
    image-rendering: optimizeSpeed;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transform: scale(3.5); 
    z-index: 1;
    cursor: pointer;
    pointer-events: auto;
}
.planet-text-container {
    position: absolute; left: 60%; top: 50%; transform: translateY(-50%) translateX(100px);
    opacity: 0; transition: all 0.8s ease-out; max-width: 420px;
    display: flex; flex-direction: column; gap: 14px;
}
.planet-active #planet-canvas { transform: translateX(-25vw) scale(5.5); }
.planet-active .planet-text-container { opacity: 1; transform: translateY(-50%) translateX(0); pointer-events: auto; }

.planet-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 22px;
    border-radius: 14px;
    font-family: ui-monospace, 'Cascadia Code', monospace;
    font-size: 15px; font-weight: 600; letter-spacing: 0.3px;
    text-decoration: none; cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
    white-space: nowrap;
}
.planet-cta-primary {
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 6px 24px rgba(155, 92, 255, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}
.planet-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(155, 92, 255, 0.55), 0 0 20px rgba(75, 201, 255, 0.4), inset 0 1px 0 rgba(255,255,255,0.25);
}
.planet-cta-primary .planet-cta-arrow {
    font-size: 18px; transition: transform .18s ease;
}
.planet-cta-primary:hover .planet-cta-arrow { transform: translateX(4px); }

.planet-cta-sub {
    margin: 4px 0 0; padding: 0;
    color: var(--muted, #9aa3b2);
    font-size: 13px; letter-spacing: 0.2px;
}

.planet-cta-secondary {
    background: rgba(75, 201, 255, 0.08);
    color: var(--secondary-neon);
    border: 1px solid rgba(75, 201, 255, 0.45);
    backdrop-filter: blur(6px);
}
.planet-cta-secondary:hover {
    background: rgba(75, 201, 255, 0.15);
    border-color: var(--secondary-neon);
    box-shadow: 0 0 16px rgba(75, 201, 255, 0.4);
    transform: translateY(-2px);
}
.planet-cta-icon { display: inline-flex; align-items: center; }

/* --- INTRO SEQUENCE (FULL) --- */
.intro-sequence {
    position: relative; width: 100%; height: 100vh;
    background: transparent; display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 9999; overflow: hidden;
}
.intro-content {
    display: flex; align-items: center; justify-content: center;
    font-family: ui-monospace, 'Cascadia Code', monospace;
    font-size: 5rem; font-weight: 700; color: #fff; letter-spacing: -2px;
}
.word-minerva { 
    opacity: 1; /* Показываем сразу */
    transform: translateY(0); 
}
.suffix-area { 
    display: inline-flex; 
    align-items: center; 
    position: relative; 
    min-width: 1ch; /* Резервируем место под X */
    margin-left: 10px; 
}
.dots {
    display: none !important; /* Полностью отключаем точки, так как они создают задержку */
}
.letter-x {
    position: relative; /* Убираем absolute, чтобы X встал сразу за словом */
    transform: scale(1); 
    opacity: 1; /* Показываем сразу */
    color: var(--primary-neon);
    animation: xGlowNeon 3s ease-in-out infinite alternate;
}
@keyframes xGlowNeon {
    0% { text-shadow: 0 0 10px rgba(155, 92, 255, 0.2); }
    100% { text-shadow: 0 0 20px var(--primary-neon), 0 0 30px var(--secondary-neon); }
}
.scroll-hint { 
    position: absolute; 
    bottom: 40px; 
    font-size: 12px; 
    text-transform: uppercase; 
    opacity: 1; 
}

/* --- МОДАЛЬНОЕ ОКНО ЛОГИНА --- */
.sidebar {
    position: fixed !important; 
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999; 
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.sidebar.active {
    visibility: visible;
    pointer-events: auto;
}
.sidebar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 13, 18, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.sidebar.active .sidebar-overlay {
    opacity: 1;
}

.sidebar-content {
    position: relative;
    width: 90%;
    max-width: 440px;
    height: 480px; 
    background: rgba(28, 28, 36, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 40px 100px var(--shadow), 0 0 20px rgba(155, 92, 255, 0.1);
    overflow: hidden;
    z-index: 10000;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sidebar.active .sidebar-content {
    transform: scale(1);
    opacity: 1;
}

.sidebar-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10001;
    background: var(--surface-hover);
    border: 1px solid var(--line);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.sidebar-close:hover {
    background: var(--primary-neon);
    border-color: var(--primary-neon);
    transform: scale(1.1);
}

#login-frame {
    width: 100%;
    height: 100%;
    border: none;
}
#mountains-container canvas {
    mask-image: linear-gradient(to top, transparent 0%, black 40%);
    -webkit-mask-image: linear-gradient(to top, transparent 0%, black 40%);
}

#mountains-container {
    position: fixed;
    inset: 0;
    z-index: 0; 
    pointer-events: none;
    opacity: 0;
    /* УБЕРИТЕ ЭТУ СТРОКУ ИЛИ ЗАМЕНИТЕ НА filter: none; */
    filter: none; 
    transition: opacity 0.4s ease-out;
    will-change: opacity;
}

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes dotsGrowing { 0% { width: 0; opacity: 1; } 100% { width: 3ch; opacity: 1; } }
@keyframes dotsFadeOut { to { opacity: 0; display: none; } }
@keyframes xReveal {
    0% { opacity: 0; transform: translateY(-50%) scale(2.5); filter: blur(8px); }
    100% { opacity: 1; transform: translateY(-50%) scale(1); filter: blur(0); }
}
@keyframes hintFadeIn { to { opacity: 1; } }

/* --- ADAPTIVITY & MOBILE FIXES --- */
@media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; }
    h1 { font-size: 36px; }
    .grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .calc-layout { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .grid { grid-template-columns: 1fr; }
    .calc-section { padding: 20px 16px; }
    .calc-pricelist { padding: 20px 16px; }
}

@media (max-width: 768px) {
    .canvas-container { 
        display: none !important; 
    }
    .pricing-card {
        padding: 30px 20px;
    }
    #planet-canvas {
        transform: scale(2.0); 
    }
    .planet-active #planet-canvas { 
        transform: translateY(-10vh) scale(2.2); 
    }
    .planet-text-container {
        left: 50%;
        top: 60%;
        transform: translateX(-50%) translateY(20px);
        width: 85vw;
        max-width: 420px;
        align-items: center;
        text-align: center;
    }
    .planet-active .planet-text-container {
        transform: translateX(-50%) translateY(0);
    }
    .planet-cta { width: 100%; }
}

@media (max-width: 600px) {
    .intro-content { font-size: 3rem; }
}

@media (max-width: 520px) {
    .top { padding: 14px 16px; height: 60px; }
    .lang-switcher { margin-right: 10px; }
    .nav { gap: 10px; font-size: 12px; }
    .main { padding: 18px 14px 48px; }
    h1 { font-size: 30px; }
    .grid { grid-template-columns: 1fr; }
    .calc-section { padding: 20px 16px; margin-top: 30px; }
    .calc-row { padding: 9px 10px; gap: 8px; font-size: 13px; }
    .calc-name { font-size: 13px; }
    .calc-total-value { font-size: 22px; }
}
@media (max-width: 400px) {
    #planet-canvas {
        transform: scale(1.6);
    }
    .planet-active #planet-canvas {
        transform: translateY(-12vh) scale(1.8);
    }
}
@media (prefers-reduced-motion: reduce) {
    .bg-scanlines, .bg-grain { animation: none !important; }
}