/* ==========================================
   CSS VARIABLES & THEME SETUP
   ========================================== */
:root {
    /* Colors extracted from reference */
    --clr-bg-dark: #010205;
    /* Deep space background (very dark, almost black) */
    --clr-gold: #d49a89;
    /* Copper / Rose Gold accents */
    --clr-gold-light: #e0b0a8;
    --clr-gold-glow: rgba(212, 154, 137, 0.5);

    --clr-text-main: #ffffff;
    --clr-text-muted: rgba(255, 255, 255, 0.7);
    --clr-text-dark: #121212;

    /* Glassmorphism */
    --glass-bg: rgba(13, 20, 48, 0.25);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;

    /* Font Sizes (Fluid Typography approach) */
    --fs-h1: clamp(2.5rem, 5vw + 1rem, 5rem);
    --fs-h2: clamp(2rem, 4vw + 1rem, 3.5rem);
    --fs-body: clamp(1rem, 1vw + 0.5rem, 1.125rem);
    --fs-small: 0.875rem;

    /* Spacing */
    --space-xs: 0.5rem;
    /* 8px */
    --space-sm: 1rem;
    /* 16px */
    --space-md: 1.5rem;
    /* 24px */
    --space-lg: 2rem;
    /* 32px */
    --space-xl: 3rem;
    /* 48px */
    --space-2xl: 5rem;
    /* 80px */

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-pill: 100px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text-main);
    background-color: var(--clr-bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    line-height: 1.1;
    font-weight: 700;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: all var(--transition-smooth);
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--clr-gold);
    color: var(--clr-text-dark);
    box-shadow: 0 4px 15px var(--clr-gold-glow);
}

.btn-primary:hover {
    background-color: var(--clr-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--clr-gold-glow);
}

.btn-outline {
    background: transparent;
    color: var(--clr-text-main);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    background: var(--glass-bg);
    border-color: var(--clr-gold);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
    color: var(--clr-text-main);
    position: relative;
}

.btn-link span {
    transition: transform var(--transition-fast);
}

.btn-link:hover span {
    transform: translateX(5px);
    color: var(--clr-gold);
}

.btn-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--clr-gold);
    transition: width var(--transition-smooth);
}

.btn-link:hover::after {
    width: 100%;
}

/* ==========================================
   HEADER (Reference Style)
   ========================================== */
.site-header {
    position: absolute;
    /* Using absolute so it sits nicely at the top without glassmorphism */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: var(--space-xl) var(--space-xl);
    background: linear-gradient(to bottom, rgba(1, 2, 5, 0.4) 0%, transparent 100%);
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.nav-section {
    display: flex;
    align-items: center;
    gap: 4vw;
}

.nav-left {
    justify-content: flex-end;
    padding-right: 5vw;
}

.nav-right {
    justify-content: flex-start;
    padding-left: 5vw;
}

.logo {
    font-family: 'Philosopher', sans-serif;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-shadow: none;
    line-height: 1;
    white-space: nowrap;
}

.nav-link {
    font-family: 'Philosopher', sans-serif;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: color var(--transition-fast);
    text-shadow: none;
    white-space: nowrap;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

.nav-link.active {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-color: rgba(255, 255, 255, 0.3);
}

/* Update mobile menu handling */
@media screen and (max-width: 992px) {
    .nav-section {
        gap: 2vw;
    }

    .nav-left {
        padding-right: 3vw;
    }

    .nav-right {
        padding-left: 3vw;
    }

    .nav-link {
        font-size: 1rem;
    }
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--clr-bg-dark);
}

/* Обертка нужна, чтобы градиент-виньетка лежал ровно по размерам самой картинки */
.image-wrapper {
    position: relative;
    max-width: 100%;
    max-height: 100vh;
    display: flex;
    transform: scale(1.2);
}

.bg-image {
    max-width: 100%;
    max-height: 100vh;
    object-fit: contain;
    filter: contrast(1.05) brightness(1) saturate(1.1);
}

/* Оптическая резкость: Векторные звезды, разбитые на слои для асинхронного мерцания */
.stars-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* Слой 1: Мелкие звезды, быстрое мерцание */
.layer-1 {
    background-image: url("moscow-stars-1.svg");
    animation: twinkle 4s ease-in-out infinite alternate;
}

/* Слой 2: Средние звезды, среднее по скорости мерцание со сдвигом */
.layer-2 {
    background-image: url("moscow-stars-2.svg");
    animation: twinkle 7s ease-in-out infinite alternate 2s;
}

/* Слой 3: Крупные/тусклые звезды, очень медленное мерцание со сдвигом */
.layer-3 {
    background-image: url("moscow-stars-3.svg");
    animation: twinkle 11s ease-in-out infinite alternate 5s;
}

/* Созвездие Большой Медведицы */
.ursa-major {
    background-image: url("ursa-major.svg");
    /* Медленное кинематографичное свечение линий созвездия */
    animation: twinkle-ursa 6s ease-in-out infinite alternate 1s;
}

/* Новые Созвездия */
.orion {
    background-image: url("orion.svg");
    animation: twinkle-ursa 7s ease-in-out infinite alternate 0s;
}

.cassiopeia {
    background-image: url("cassiopeia.svg");
    animation: twinkle-ursa 5s ease-in-out infinite alternate 3s;
}

.cygnus {
    background-image: url("cygnus.svg");
    animation: twinkle-ursa 8s ease-in-out infinite alternate 2s;
}

.andromeda {
    background-image: url("andromeda.svg");
    animation: twinkle-ursa 6.5s ease-in-out infinite alternate 4s;
}

@keyframes twinkle {
    0% {
        opacity: 0.1;
    }

    100% {
        opacity: 1;
    }
}

@keyframes twinkle-ursa {
    0% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

/* Кинематографический шум: скрывает артефакты апскейлинга и обманывает глаз, создавая иллюзию сверхвысокой плотности пикселей */
.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    opacity: 0.08;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* 
  Градиенты ложатся ровно внутри .image-wrapper
*/
.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
    /* Экстремальное затемнение именно краев рамки */
    box-shadow: inset 0 0 100px 50px var(--clr-bg-dark),
        inset 0 0 250px 100px var(--clr-bg-dark);
    background:
        linear-gradient(to right, var(--clr-bg-dark) 0%, transparent 20%, transparent 80%, var(--clr-bg-dark) 100%),
        linear-gradient(to bottom, var(--clr-bg-dark) 0%, transparent 20%, transparent 80%, var(--clr-bg-dark) 100%),
        radial-gradient(circle at center, transparent 30%, rgba(1, 2, 5, 0.4) 80%, var(--clr-bg-dark) 100%);
}

.hero-content {
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Glassmorphism Text Block */
.hero-text-block {
    max-width: 650px;
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);

    /* Animation entry */
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.eyebrow {
    display: inline-block;
    color: var(--clr-gold);
    font-size: var(--fs-small);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: var(--space-sm);
}

.hero-title {
    font-size: var(--fs-h2);
    margin-bottom: var(--space-sm);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    min-height: 2.4em;
    /* Базовый резерв под 2 строки */
}

.hero-title span {
    color: transparent;
    -webkit-text-stroke: 1px var(--clr-text-main);
    background: linear-gradient(to right, var(--clr-gold), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    /* Optional: uncomment below to make it fully gradient instead of outlined */
    /* -webkit-text-stroke: 0; */
}

/* ==========================================
   MAJESTIC HOURGLASS ANIMATION
   ========================================== */
.majestic-hourglass-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-md);
    opacity: 0.95;
    /* Центрируем блок, чтобы новые большие часы смотрелись величественно */
    width: 100%;
}

.majestic-hourglass {
    filter: drop-shadow(0 0 15px var(--clr-gold-glow));
}

.sand-top-rect {
    transform-origin: 60px 90px;
    animation: shrinkMajesticSand 60s linear forwards;
    /* 60 секунд медленного падения */
}

.sand-bottom-rect {
    transform-origin: 60px 163px;
    animation: growMajesticSand 60s linear forwards;
}

.sand-stream-majestic {
    /* Анимация струи состоит из двух: бесконечное движение песчинок вниз и затухание в конце */
    animation:
        flowGrains 0.8s infinite linear,
        fadeStream 60s linear forwards;
}

@keyframes shrinkMajesticSand {
    0% {
        transform: scaleY(1);
    }

    100% {
        transform: scaleY(0);
    }
}

@keyframes growMajesticSand {
    0% {
        transform: scaleY(0);
    }

    100% {
        transform: scaleY(1);
    }
}

@keyframes flowGrains {
    to {
        stroke-dashoffset: -8;
        /* Сдвигаем штрихи (песчинки) вниз */
    }
}

@keyframes fadeStream {

    0%,
    98% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.hero-description {
    font-size: var(--fs-body);
    color: var(--clr-text-muted);
    margin-bottom: var(--space-lg);
    max-width: 90%;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pulse-glow {
    animation: pulseGlow 3s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 154, 137, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(212, 154, 137, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 154, 137, 0);
    }
}

/* Typing Animation Effects */
.typing-line {
    display: inline;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: var(--clr-gold);
    vertical-align: text-bottom;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.hero-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-out-mystery {
    opacity: 0;
    /* Полностью растворяется */
    filter: blur(4px);
    /* Более мощное загадочное размытие */
    transition: opacity 2s ease-in-out, filter 2s ease-in-out;
}

/* Text Generate Effect */
.text-generate-word {
    opacity: 0;
    filter: blur(10px);
    display: inline-block;
    color: var(--clr-gold-light);
    animation: textGenerateFadeIn 3s forwards;
    /* Плавность появления должна быть очень мягкой */
    animation-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.text-generate-word.pre-init {
    animation: none !important;
}

@keyframes textGenerateFadeIn {
    to {
        opacity: 1;
        filter: blur(0);
    }
}


/* ==========================================
   VENUS CHART SECTION
   ========================================== */
.section-padding {
    padding: var(--space-2xl) 0;
}

.venus-section {
    position: relative;
    background: linear-gradient(rgba(1, 2, 5, 0.4), rgba(1, 2, 5, 0.4)), url('venus_bg.png') center/cover no-repeat;
    overflow: hidden;
}

.venus-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-xl);
}

.venus-text {
    padding-right: var(--space-lg);
    z-index: 2;
}

.section-title {
    font-size: var(--fs-h2);
    margin-bottom: var(--space-md);
    background: linear-gradient(to right, var(--clr-gold-light), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-desc {
    color: var(--clr-text-muted);
    font-size: var(--fs-body);
    margin-bottom: var(--space-lg);
}

.venus-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.venus-image {
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-md);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.venus-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--clr-gold-glow) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

/* ==========================================
   MARS CHART SECTION
   ========================================== */
.mars-section {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('mars_bg.png') center/cover no-repeat;
    overflow: hidden;
}

.mars-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-xl);
}

.mars-text {
    padding-left: var(--space-lg);
    z-index: 2;
}

/* Красный градиент для Марса */
.mars-title {
    background: linear-gradient(to right, #cf3131, #ff8c69);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mars-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.mars-image {
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-md);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 2;
    border: 1px solid rgba(207, 49, 49, 0.2);
}

.mars-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 130%;
    background: radial-gradient(circle, rgba(168, 30, 30, 0.4) 0%, transparent 65%);
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
}

.mars-btn {
    background-color: #922222;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(168, 30, 30, 0.4);
}

.mars-btn:hover {
    background-color: #b82e2e;
    box-shadow: 0 8px 25px rgba(168, 30, 30, 0.6);
}

/* ==========================================
   SYNASTRY (COMPATIBILITY) SECTION
   ========================================== */
.synastry-section {
    position: relative;
    background: linear-gradient(rgba(1, 2, 5, 0.8), rgba(1, 2, 5, 0.9)), url('reference/bg.png') center/cover no-repeat;
    overflow: hidden;
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
}

.synastry-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.synastry-title {
    background: linear-gradient(to right, var(--clr-gold-light), #cf3131, var(--clr-gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: var(--fs-h2);
    margin-bottom: var(--space-sm);
}

.synastry-selector {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.synastry-tab {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--clr-text-muted);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.synastry-tab:hover,
.synastry-tab.active {
    background: var(--glass-bg);
    border-color: var(--clr-gold);
    color: var(--clr-text-main);
    box-shadow: 0 0 15px var(--clr-gold-glow);
}

/* Специальные цвета для разных вкладок */
.synastry-tab[data-left="mars"][data-right="mars"].active {
    border-color: #cf3131;
    box-shadow: 0 0 15px rgba(207, 49, 49, 0.4);
}

.synastry-tab[data-left="venus"][data-right="mars"].active {
    border-top-color: var(--clr-gold);
    border-left-color: var(--clr-gold);
    border-bottom-color: #cf3131;
    border-right-color: #cf3131;
    box-shadow: 0 0 15px rgba(212, 154, 137, 0.2), 0 0 15px rgba(207, 49, 49, 0.2);
}

.synastry-cards-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.synastry-card {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(13, 20, 48, 0.4);
    border: 2px solid var(--glass-border);
    transition: all var(--transition-smooth);
}

.synastry-image {
    width: 90%;
    height: 90%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.synastry-vs {
    font-size: 2.5rem;
    font-family: var(--font-serif);
    color: var(--clr-text-main);
    font-weight: 700;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 10;
}

.synastry-action {
    display: flex;
    justify-content: center;
    margin-top: var(--space-lg);
}

.custom-select {
    padding: 0.75rem 1.5rem;
    background: rgba(13, 20, 48, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--clr-text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.custom-select:focus,
.custom-select:hover {
    border-color: var(--clr-gold);
    box-shadow: 0 0 10px var(--clr-gold-glow);
}

.custom-select option {
    background-color: var(--clr-bg-dark);
    color: var(--clr-text-main);
}

.custom-options-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-bottom: 0;
    transition: all var(--transition-smooth);
}

.custom-options-wrapper.show {
    max-height: 100px;
    opacity: 1;
    margin-bottom: var(--space-xl);
}

/* ==========================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================== */

/* Tablet & Smaller Desktop */
@media screen and (max-width: 992px) {
    .hero-text-block {
        padding: var(--space-lg);
        max-width: 500px;
    }

    .venus-container,
    .mars-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .venus-text,
    .mars-text {
        padding: 0;
    }

    .mars-container .mars-text {
        order: 2;
    }

    .mars-container .mars-image-wrapper {
        order: 1;
    }
}

/* Mobile Devices */
@media screen and (max-width: 768px) {

    .main-nav {
        display: none;
    }

    /* Mobile Hero */
    .hero {
        align-items: center;
        padding-bottom: var(--space-2xl);
    }

    .hero-content {
        justify-content: center;
    }

    .hero-text-block {
        text-align: center;
        padding: var(--space-lg) var(--space-md);
        background: linear-gradient(to top, rgba(1, 2, 5, 0.9) 0%, rgba(13, 20, 48, 0.4) 100%);
        backdrop-filter: blur(8px);
        border-radius: var(--radius-lg);
        border-bottom: none;
        border-left: none;
        border-right: none;
        width: 100%;
        max-width: 100%;
    }

    .hero-title br {
        display: none;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta-group {
        justify-content: center;
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
    }
}

/* ==========================================
   ZODIAC WHEEL ANIMATION
   ========================================== */



.zodiac-wheel-container {
    position: fixed;
    /* Сдвигаем в пределы видимости (нулевые отступы от краев) */
    bottom: -80px;
    right: -80px;
    width: 780px;
    height: 780px;
    z-index: 50;
    pointer-events: none;
    opacity: 0.25;
    /* Хорошо видимый белый рисунок */
}

.zodiac-wheel {
    width: 100%;
    height: 100%;
    /* Используем чистое векторное изображение SVG */
    background-image: url('zodiac_wheel_clean.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: rotateWheel 120s linear infinite;
    transform-origin: center center;
    will-change: transform;
}

@keyframes rotateWheel {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    padding: var(--space-xl) 0;
    text-align: center;
    position: relative;
    z-index: 10;
    border-top: 1px solid var(--glass-border);
    margin-top: var(--space-2xl);
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.footer-link {
    color: var(--clr-text-muted);
    font-size: var(--fs-small);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--clr-gold);
}

.footer-copy {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
}

/* ==========================================
   MODAL WINDOW (CONSENT)
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 2, 5, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(255, 255, 255, 0.05);
    text-align: center;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    background: linear-gradient(to right, var(--clr-gold-light), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.modal-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}