/* ===== VARIABLES ===== */
:root {
    --bg-dark: #0d0d1a;
    --bg-section: #111128;
    --bg-card: rgba(255, 255, 255, 0.03);
    --purple-deep: #4a148c;
    --purple-main: #9c27b0;
    --purple-light: #e1affd;
    --purple-glow: rgba(156, 39, 176, 0.4);
    --gold: #d4a843;
    --gold-light: #f5d680;
    --text-main: #e8e4f0;
    --text-light: #9a94a8;
    --text-dim: #6b6580;
    --border-subtle: rgba(225, 175, 253, 0.08);
    --border-glow: rgba(225, 175, 253, 0.15);
    --font-display: 'Cinzel Decorative', serif;
    --font-body: 'Cormorant Garamond', serif;
    --font-ui: 'Raleway', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===== STARS CANVAS ===== */
#stars-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.8rem 0;
    transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}

header.scrolled {
    background: rgba(13, 13, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--purple-light);
}

.logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(212, 168, 67, 0.5));
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s;
}

nav a:hover {
    color: var(--gold-light);
}

nav a:hover::after {
    width: 100%;
}

.header-cta {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(212, 168, 67, 0.4);
    border-radius: 4px;
    transition: all 0.3s;
}

.header-cta:hover {
    background: rgba(212, 168, 67, 0.1);
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 168, 67, 0.15);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: all 0.3s;
}

.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.35s ease;
    position: relative;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple-main), var(--purple-deep));
    color: #fff;
    padding: 0.9rem 2rem;
    border-radius: 6px;
    text-transform: uppercase;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ab47bc, var(--purple-main));
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--purple-glow);
}

.btn-glow {
    box-shadow: 0 4px 20px var(--purple-glow);
}

.btn-sparkle {
    font-size: 1.1em;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.btn-ghost {
    color: var(--text-main);
    padding: 0.9rem 2rem;
    border: 1px solid var(--border-glow);
    border-radius: 6px;
    text-transform: uppercase;
    background: transparent;
}

.btn-ghost:hover {
    border-color: var(--purple-light);
    background: rgba(225, 175, 253, 0.05);
    transform: translateY(-2px);
}

.btn-secondary {
    color: var(--gold);
    padding: 0.7rem 0.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: none;
    background: transparent;
}

.btn-secondary:hover {
    color: var(--gold-light);
    transform: translateX(4px);
}

.btn-large {
    font-size: 1rem;
    padding: 1.1rem 2.8rem;
}

.btn-small {
    font-size: 0.8rem;
    padding: 0.7rem 1.4rem;
    text-transform: none;
    margin-top: 0.5rem;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), #b8922e);
    color: #0d0d1a;
    padding: 0.9rem 2rem;
    border-radius: 6px;
    text-transform: uppercase;
    font-weight: 700;
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 168, 67, 0.4);
}

.btn-gold.btn-glow {
    box-shadow: 0 4px 20px rgba(212, 168, 67, 0.3);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

.hero-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(13, 13, 26, 0.6) 0%,
        rgba(13, 13, 26, 0.5) 35%,
        rgba(13, 13, 26, 0.65) 60%,
        rgba(13, 13, 26, 0.85) 80%,
        rgba(13, 13, 26, 1) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 2rem;
    animation: heroFadeIn 1.5s ease-out;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(212, 168, 67, 0.3);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 1.2rem;
    text-shadow: 0 0 40px rgba(225, 175, 253, 0.3);
}

.hero p {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 500;
    max-width: 550px;
    margin: 0 auto 2.5rem;
    color: #d0cce0;
    line-height: 1.8;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    animation: heroFadeIn 2s ease-out;
    background: rgba(13, 13, 26, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1rem 2.5rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.stat-label {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: var(--border-glow);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

.scroll-indicator span {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    margin: 0 auto;
    border-right: 1px solid var(--text-dim);
    border-bottom: 1px solid var(--text-dim);
    transform: rotate(45deg);
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

/* Скрываем старый SVG — заменяем на CSS-линии */
.section-divider svg {
    display: none;
}

/* CSS-линии по обе стороны от орнамента */
.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(212,168,67,0.35), transparent);
    max-width: 220px;
}
.section-divider::before {
    background: linear-gradient(to right, transparent, rgba(212,168,67,0.35));
    margin-right: 0;
}
.section-divider::after {
    background: linear-gradient(to left, transparent, rgba(212,168,67,0.35));
    margin-left: 0;
}

.divider-ornament {
    position: relative;
    z-index: 1;
    color: var(--gold);
    font-size: 0.9rem;
    padding: 0 1.2rem;
    opacity: 0.65;
    flex-shrink: 0;
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 20px rgba(225, 175, 253, 0.15);
}

.section-desc {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
    font-weight: 400;
}

/* ===== BIRTH QUIZ (Talisman Card) ===== */
.birth-quiz {
    padding: 5rem 2rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

.quiz-container {
    max-width: 700px;
    margin: 0 auto;
}

.quiz-input-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.quiz-label {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.quiz-date-selects {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
}

.quiz-select-wrap {
    position: relative;
    flex: 1;
    max-width: 160px;
}

.quiz-select {
    width: 100%;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    padding: 0.8rem 2rem 0.8rem 1rem;
    border: 1px solid var(--border-glow);
    border-radius: 8px;
    background: rgba(156, 39, 176, 0.08);
    color: var(--text-main);
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.quiz-select:focus {
    border-color: var(--purple-light);
    box-shadow: 0 0 15px var(--purple-glow);
    background: rgba(156, 39, 176, 0.15);
}

.quiz-select:hover {
    background: rgba(156, 39, 176, 0.12);
    border-color: rgba(225, 175, 253, 0.4);
}

.quiz-select option {
    background: #1a1a2e;
    color: var(--text-main);
    padding: 0.5rem;
}

.quiz-select-arrow {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--purple-light);
    font-size: 0.7rem;
    pointer-events: none;
    opacity: 0.7;
}

.quiz-result {
    margin-top: 2.5rem;
    animation: fadeSlideUp 0.8s ease;
}

.quiz-result-card {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    padding: 2rem;
    text-align: left;
}

.quiz-talisman-img {
    width: 180px;
    height: 280px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(156, 39, 176, 0.15);
}

.quiz-talisman-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quiz-result-info {
    flex: 1;
}

.quiz-zodiac {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.quiz-zodiac-sign {
    font-size: 1.4rem;
    color: var(--purple-light);
}

.quiz-element-badge {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    border: 1px solid var(--border-glow);
    color: var(--gold);
}

.quiz-card-name {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.3rem;
}

.quiz-card-label {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.quiz-cta-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
}

.quiz-cta-group .btn {
    font-size: 0.8rem;
    padding: 0.7rem 1.5rem;
}

/* ===== CARD OF THE DAY ===== */
.cod {
    padding: 5rem 2rem;
    position: relative;
    z-index: 1;
}

.cod-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.card-container {
    perspective: 1200px;
    width: 240px;
    height: 380px;
    flex-shrink: 0;
    position: relative;
}

.card-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse, var(--purple-glow), transparent 70%);
    border-radius: 20px;
    opacity: 0.5;
    animation: cardPulse 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes cardPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

.card-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-flipper.flipped {
    transform: rotateY(180deg);
}

.card-back, .card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(156, 39, 176, 0.15),
        inset 0 0 0 1px rgba(225, 175, 253, 0.1);
}

.card-front {
    transform: rotateY(180deg);
}

.card-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cod-side {
    text-align: left;
    max-width: 400px;
}

.cod-result {
    display: none;
    animation: fadeSlideUp 0.8s ease;
}

.cod-result h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.cod-divider {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin: 0.8rem 0 1rem;
}

.cod-result p {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.cod-subscribe-hint {
    font-family: var(--font-ui);
    font-size: 0.8rem !important;
    color: var(--text-dim) !important;
    margin-bottom: 1rem !important;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== COMPATIBILITY ===== */
.compatibility {
    padding: 5rem 2rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

.compat-container {
    max-width: 900px;
    margin: 0 auto;
}

.compat-selectors {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.compat-col {
    flex: 1;
    max-width: 350px;
}

.compat-label {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--purple-light);
    margin-bottom: 1rem;
}

.compat-heart {
    font-size: 2rem;
    color: var(--purple-light);
    padding-top: 4rem;
    filter: drop-shadow(0 0 8px var(--purple-glow));
    animation: heartPulse 2s ease-in-out infinite;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.zodiac-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.6rem 0.3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.4rem;
    color: var(--text-main);
}

.zodiac-btn span {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-dim);
}

.zodiac-btn:hover {
    border-color: var(--border-glow);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.zodiac-btn.selected {
    border-color: var(--purple-light);
    background: rgba(156, 39, 176, 0.15);
    box-shadow: 0 0 15px var(--purple-glow);
}

.zodiac-btn.selected span {
    color: var(--purple-light);
}

.compat-result {
    animation: fadeSlideUp 0.8s ease;
    margin-top: 1.5rem;
}

.compat-meter {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin: 0 auto 1rem;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.compat-meter-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 1s ease-out;
    background: linear-gradient(90deg, var(--purple-main), var(--gold));
}

.compat-meter-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.compat-text {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== LUNAR WIDGET ===== */
.lunar {
    padding: 5rem 2rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

.lunar-widget {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: left;
}

.lunar-phase-icon {
    font-size: 5rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 15px rgba(212, 168, 67, 0.4));
}

.lunar-info h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.lunar-day {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.8rem;
}

.lunar-day strong {
    color: var(--gold);
    font-size: 1rem;
}

.lunar-energy {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.lunar-tarot-tip {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--purple-light);
    font-style: italic;
}

.lunar-cta-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== FEATURES GRID ===== */
.features {
    padding: 5rem 2rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    max-width: 1000px;
    margin: 0 auto 3rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.8rem 1.2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--purple-main), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glow);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 20px var(--purple-glow);
    background: rgba(255, 255, 255, 0.05);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.4rem;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.feature-tag {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
}

.feature-tag-free {
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.feature-tag-star {
    color: var(--gold);
    border: 1px solid rgba(212, 168, 67, 0.3);
}

.feature-tag-diamond {
    color: var(--purple-light);
    border: 1px solid rgba(225, 175, 253, 0.3);
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: 5rem 2rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 1.5rem;
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1rem;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.step h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.6rem;
}

.step p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

.step-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin-top: 3.5rem;
    flex-shrink: 0;
}

/* ===== DAILY RITUALS ===== */
.rituals {
    padding: 5rem 2rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

.rituals-timeline {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto 3rem;
    flex-wrap: wrap;
}

.ritual-card {
    flex: 1;
    min-width: 240px;
    max-width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.ritual-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
}

.ritual-time {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: 0.8rem;
}

.ritual-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.ritual-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.ritual-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.rituals-cta-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== REVIEWS ===== */
.reviews {
    padding: 5rem 2rem;
    position: relative;
    z-index: 1;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.review {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.review:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
}

.review-stars {
    color: var(--gold);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.review-text {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple-main), var(--purple-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}

.review-name {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.review-date {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    color: var(--text-dim);
}

/* ===== PRICING ===== */
.pricing {
    padding: 5rem 2rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 950px;
    margin: 0 auto;
    align-items: start;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
}

.pricing-card-popular {
    border-color: var(--gold);
    transform: scale(1.03);
    box-shadow: 0 10px 40px rgba(212, 168, 67, 0.15);
}

.pricing-card-popular:hover {
    transform: scale(1.03) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0d0d1a;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    padding: 0.3rem 1.2rem;
    border-radius: 50px;
    white-space: nowrap;
}

.pricing-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.pricing-price {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.2rem;
}

.pricing-period {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.pricing-features li {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--text-light);
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
}

/* ===== FAQ ===== */
.faq {
    padding: 5rem 2rem;
    position: relative;
    z-index: 1;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.2rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--text-main);
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--gold-light);
}

.faq-toggle {
    font-size: 1.3rem;
    color: var(--gold);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.open .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 0 1.2rem;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== FINAL CTA ===== */
.final-cta {
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.final-cta-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -2;
}

.final-cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(13, 13, 26, 1) 0%,
        rgba(13, 13, 26, 0.6) 30%,
        rgba(13, 13, 26, 0.6) 70%,
        rgba(13, 13, 26, 1) 100%
    );
    z-index: -1;
}

.final-cta h2 {
    margin-bottom: 0.8rem;
}

.final-cta p {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.referral-block {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.referral-text {
    font-size: 1.05rem !important;
    color: var(--text-main) !important;
    margin-bottom: 1.5rem !important;
}

.referral-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.referral-buttons .btn {
    font-size: 0.8rem;
    padding: 0.7rem 1.5rem;
    text-transform: none;
}

/* ===== FOOTER ===== */
footer {
    border-top: 1px solid var(--border-subtle);
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-brand .logo-icon {
    width: 24px;
    height: 24px;
}

.footer-brand .logo-text {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--purple-light);
    letter-spacing: 0.1em;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

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

.footer-copy {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-dim);
}

.footer-sep {
    opacity: 0.4;
    margin: 0 0.3rem;
}

.footer-legal-link {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(156, 39, 176, 0.8);
    color: #fff;
    font-size: 1.2rem;
    border: 1px solid var(--border-glow);
    cursor: pointer;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--purple-main);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px var(--purple-glow);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .review-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .cod-layout {
        flex-direction: column;
        text-align: center;
    }

    .cod-side {
        text-align: center;
    }

    .cod-divider {
        margin: 0.8rem auto 1rem;
    }

    .hero-stats {
        gap: 1.2rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

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

    .steps {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .step-line {
        width: 1px;
        height: 30px;
        margin: 0;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .pricing-card-popular {
        order: -1;
        transform: scale(1); /* сбрасываем scale(1.03) на мобиле — вызывал горизонтальный overflow */
    }
    .pricing-card-popular:hover {
        transform: translateY(-4px);
    }

    .compat-selectors {
        flex-direction: column;
        align-items: center;
    }

    .compat-heart {
        padding-top: 0;
        transform: rotate(90deg);
    }

    .quiz-result-card {
        flex-direction: column;
        text-align: center;
    }

    .quiz-cta-group {
        align-items: center;
    }

    .lunar-widget {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(13, 13, 26, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s ease;
        z-index: 999;
    }

    nav.open {
        right: 0;
    }

    nav a {
        font-size: 1rem;
    }

    .header-cta {
        display: none;
    }

    /* Reduce section padding on tablets/phones */
    .birth-quiz,
    .cod,
    .compatibility,
    .lunar,
    .features,
    .how-it-works,
    .rituals,
    .reviews,
    .pricing,
    .faq {
        padding: 3.5rem 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Hero stats: горизонтально 3 в ряд на мобиле — убираем вертикальный стек */
    .hero-stats {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0;
        padding: 0.75rem 1rem;
        width: auto;
        max-width: 95vw;
    }
    .stat {
        flex: 1;
        padding: 0 0.5rem;
    }
    .stat-number {
        font-size: 1.4rem;
    }
    .stat-label {
        font-size: 0.6rem;
    }

    .stat-divider {
        width: 30px;
        height: 1px;
    }

    .review-grid {
        grid-template-columns: 1fr;
        max-width: none;
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 0.5rem 1rem 1.5rem;  /* боковые отступы чтобы карточки не прилипали к краям */
        -webkit-overflow-scrolling: touch;
        /* скрываем полосу прокрутки */
        scrollbar-width: none;
    }
    .review-grid::-webkit-scrollbar {
        display: none;
    }

    .review {
        min-width: min(300px, 82vw);   /* не шире 82% экрана */
        max-width: min(340px, 88vw);   /* жёсткий потолок */
        width: min(300px, 82vw);
        flex-shrink: 0;
        scroll-snap-align: center;
        /* переносим текст внутри карточки */
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .card-container {
        width: 200px;
        height: 320px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .feature-card {
        padding: 1.4rem 1rem;
    }

    .feature-icon {
        font-size: 1.6rem;
    }

    .feature-card h3 {
        font-size: 0.85rem;
    }

    .feature-card p {
        font-size: 0.75rem;
    }

    .rituals-timeline {
        flex-direction: column;
        align-items: center;
    }

    .ritual-card {
        max-width: 100%;
    }

    .zodiac-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }

    .zodiac-btn {
        padding: 0.5rem 0.2rem;
        font-size: 1.2rem;
    }

    .referral-buttons {
        flex-direction: column;
        align-items: center;
    }

    .quiz-input-area {
        flex-direction: column;
    }

    .quiz-date-selects {
        flex-direction: row;
        width: 100%;
    }

    .quiz-select-wrap {
        max-width: none;
    }

    .quiz-select {
        font-size: 0.85rem;
        padding: 0.7rem 1.8rem 0.7rem 0.8rem;
    }

    .lunar-cta-group,
    .rituals-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .quiz-result-card {
        gap: 1.5rem;
    }

    .faq-question {
        padding: 1.2rem 0.5rem;
    }

    footer {
        padding: 2rem 1.5rem;
    }
}

/* ===== SMALL PHONES ===== */
@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .birth-quiz,
    .cod,
    .compatibility,
    .lunar,
    .features,
    .how-it-works,
    .rituals,
    .reviews,
    .pricing,
    .faq {
        padding: 2.5rem 1rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .feature-card {
        padding: 1.2rem 0.8rem;
    }

    .quiz-date-selects {
        gap: 0.4rem;
    }

    .quiz-select {
        font-size: 0.8rem;
        padding: 0.7rem 1.5rem 0.7rem 0.6rem;
    }

    .zodiac-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .zodiac-btn {
        padding: 0.5rem 0.15rem;
        font-size: 1.1rem;
    }

    .zodiac-btn span {
        font-size: 0.55rem;
    }

    .quiz-talisman-img {
        width: 140px;
        height: 220px;
    }

    .quiz-card-name {
        font-size: 1.4rem;
    }

    .review {
        min-width: 260px;
    }

    .card-container {
        width: 180px;
        height: 290px;
    }

    .btn-large {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }

    .pricing-card {
        padding: 2rem 1.5rem;
    }

    .hero-content {
        padding: 0 0.5rem;
    }

    footer {
        padding: 1.5rem 1rem;
    }

    .footer-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ===== EXTRA SMALL PHONES (iPhone SE, Galaxy Fold) ===== */
@media (max-width: 360px) {
    body {
        font-size: 14px;
    }

    .birth-quiz,
    .cod,
    .compatibility,
    .lunar,
    .features,
    .how-it-works,
    .rituals,
    .reviews,
    .pricing,
    .faq {
        padding: 2rem 0.75rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .zodiac-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.3rem;
    }

    .zodiac-btn {
        padding: 0.4rem 0.1rem;
        font-size: 1rem;
    }

    .review {
        min-width: 240px;
    }

    .card-container {
        width: 160px;
        height: 260px;
    }

    .quiz-talisman-img {
        width: 120px;
        height: 190px;
    }

    .hero-content {
        padding: 0 0.25rem;
    }

    .btn-primary,
    .btn-ghost,
    .btn-gold {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
    }

    .footer-links {
        gap: 0.8rem;
        font-size: 0.7rem;
    }

    .footer-copy {
        font-size: 0.65rem;
    }
}

/* ===== HOROSCOPES SECTION ===== */
.horoscopes-section {
    padding: 6rem 2rem 4rem;
    text-align: center;
}

.horoscope-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    max-width: 1000px;
    margin: 2rem auto;
}

.horoscope-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.horoscope-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px var(--purple-glow);
}

.horoscope-free {
    border-color: rgba(100, 220, 100, 0.2);
}

.horoscope-icon {
    font-size: 2.2rem;
}

.horoscope-info h3 {
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 600;
    color: var(--purple-light);
    margin-bottom: 0.3rem;
}

.horoscope-info p {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ===== MOBILE: horoscope grid ===== */
@media (max-width: 768px) {
    .horoscope-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    .horoscopes-section {
        padding: 3.5rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .horoscope-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }
    .horoscope-card {
        padding: 1rem 0.8rem;
    }
    .horoscope-icon {
        font-size: 1.8rem;
    }
    .horoscope-info h3 {
        font-size: 0.85rem;
    }
    .horoscope-info p {
        font-size: 0.72rem;
    }
}

/* ===== MOBILE FIXES ===== */
/* Hero title size on phones */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.2rem !important;
        line-height: 1.3;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }
    .hero-content {
        padding: 0 1rem;
    }
}

/* Header on tiny screens */
@media (max-width: 360px) {
    .logo-text {
        font-size: 1.3rem;
    }
    header {
        padding: 0.8rem 1rem;
    }
    .spread-card, .ritual-card, .pricing-card, .review {
        padding: 1.2rem 0.8rem;
    }
}

/* Ensure all buttons are at least 44px tall on mobile (touch target) */
@media (max-width: 768px) {
    .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .faq-question {
        min-height: 44px;
    }
    .zodiac-btn {
        min-height: 44px;
        min-width: 44px;
    }
    .quiz-calculate {
        width: 100%;
        justify-content: center;
    }
    /* Fix pricing grid on mobile */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    /* Fix spread grid on mobile */
    .spread-grid {
        grid-template-columns: 1fr;
    }
    /* Header CTA hidden, show hamburger */
    .header-cta { display: none; }
    /* Better padding for compat selectors */
    .compat-selectors {
        gap: 1rem;
    }
    /* Section divider text size */
    .divider-ornament {
        font-size: 1.2rem;
    }
}

/* SEO TEXT BLOCK */
.seo-text {
    padding: 3rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-muted, #666);
    font-size: 0.85rem;
    line-height: 1.7;
    opacity: 0.6;
}
.seo-text-inner h2 {
    font-size: 1.1rem;
    color: var(--text-secondary, #999);
    margin-bottom: 1rem;
}
.seo-text-inner h3 {
    font-size: 0.95rem;
    color: var(--text-secondary, #999);
    margin: 1.5rem 0 0.5rem;
}
.seo-text-inner p {
    margin-bottom: 0.8rem;
}

/* ===== MYSTICAL ANIMATIONS ===== */

/* --- Плавающие орбы фона --- */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
    animation: orbDrift 20s ease-in-out infinite;
}
.orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #9c27b0, transparent);
    top: -150px; left: -100px;
    animation-duration: 22s;
}
.orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #e91e8c, transparent);
    bottom: 10%; right: -100px;
    animation-duration: 28s;
    animation-delay: -8s;
}
.orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, #d4a843, transparent);
    top: 40%; left: 50%;
    transform: translateX(-50%);
    animation-duration: 18s;
    animation-delay: -14s;
    opacity: 0.07;
}
@keyframes orbDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25%       { transform: translate(40px, -60px) scale(1.08); }
    50%       { transform: translate(-30px, 40px) scale(0.95); }
    75%       { transform: translate(60px, 20px) scale(1.05); }
}

/* --- Анимированный градиент на заголовках — только desktop --- */
/* На мобиле -webkit-text-fill-color: transparent может делать текст невидимым */
@media (min-width: 769px) {
    .section-header h2 {
        background: linear-gradient(270deg, #e1affd, #d4a843, #e1affd, #a78bfa);
        background-size: 300% 100%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: gradientShift 6s ease infinite;
    }
}
@media (max-width: 768px) {
    .section-header h2 {
        color: #e1affd; /* Статичный цвет на мобиле — надёжно */
        -webkit-text-fill-color: unset;
    }
}
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Явно защищаем hero текст от любого наследования webkit-fill */
.hero p,
.hero-typewriter,
.hero h1,
.hero .stat-number,
.hero .stat-label {
    -webkit-text-fill-color: unset !important;
    color: inherit;
}
/* hero-typewriter: минимальная высота пока текст грузится */
.hero-typewriter {
    min-height: 1.8em;
    color: #d0cce0;
}

/* --- Шиммер на карточках при hover --- */
.pricing-card::after,
.horoscope-card::after,
.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(225, 175, 253, 0.08) 50%, transparent 60%);
    background-size: 200% 100%;
    background-position: -100% 0;
    transition: background-position 0.6s ease;
    border-radius: inherit;
    pointer-events: none;
}
.pricing-card:hover::after,
.horoscope-card:hover::after,
.feature-card:hover::after {
    background-position: 200% 0;
}

/* --- Мерцающий border на ховере (glow pulse) --- */
.pricing-card,
.horoscope-card,
.feature-card,
.review {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.pricing-card:hover,
.horoscope-card:hover,
.feature-card:hover {
    box-shadow: 0 0 24px rgba(156, 39, 176, 0.35), 0 8px 32px rgba(0,0,0,0.4);
    border-color: rgba(225, 175, 253, 0.4);
}

/* --- Кнопки: магический glow-пульс --- */
.btn-primary.btn-glow {
    animation: btnGlow 3s ease-in-out infinite;
}
@keyframes btnGlow {
    0%, 100% { box-shadow: 0 0 12px rgba(156,39,176,0.5), 0 4px 20px rgba(0,0,0,0.3); }
    50%       { box-shadow: 0 0 30px rgba(212,168,67,0.6), 0 0 60px rgba(156,39,176,0.3), 0 4px 20px rgba(0,0,0,0.3); }
}

/* --- Stagger анимации для гридов --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger для дочерних карточек */
.horoscope-grid .horoscope-card:nth-child(1) { transition-delay: 0.05s; }
.horoscope-grid .horoscope-card:nth-child(2) { transition-delay: 0.12s; }
.horoscope-grid .horoscope-card:nth-child(3) { transition-delay: 0.19s; }
.horoscope-grid .horoscope-card:nth-child(4) { transition-delay: 0.26s; }
.horoscope-grid .horoscope-card:nth-child(5) { transition-delay: 0.33s; }
.horoscope-grid .horoscope-card:nth-child(6) { transition-delay: 0.40s; }

.pricing-grid .pricing-card:nth-child(1) { transition-delay: 0.0s; }
.pricing-grid .pricing-card:nth-child(2) { transition-delay: 0.12s; }
.pricing-grid .pricing-card:nth-child(3) { transition-delay: 0.24s; }

.review-grid .review:nth-child(1) { transition-delay: 0.0s; }
.review-grid .review:nth-child(2) { transition-delay: 0.10s; }
.review-grid .review:nth-child(3) { transition-delay: 0.20s; }

/* --- Typewriter cursor --- */
.hero-typewriter::after {
    content: '|';
    animation: cursorBlink 0.8s step-end infinite;
    color: var(--gold);
    font-style: normal;
}
.hero-typewriter.done::after {
    display: none;
}
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* --- Секция: число вверху секции (число-статистика) --- */
.counter {
    display: inline-block;
    transition: transform 0.1s;
}

/* --- 3D Tilt на карточках (через JS), CSS основа --- */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.15s ease;
}

/* --- Плавающий элемент на hero badge --- */
.hero-badge {
    animation: heroBadgeFloat 4s ease-in-out infinite;
}
@keyframes heroBadgeFloat {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-5px); }
}

/* --- Pulsing ring вокруг кнопки Telegram --- */
.btn-primary.btn-glow::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 1px solid rgba(212,168,67,0.4);
    animation: ringPulse 2.5s ease-out infinite;
    pointer-events: none;
}
@keyframes ringPulse {
    0%   { opacity: 0.8; transform: scale(1); }
    100% { opacity: 0;   transform: scale(1.18); }
}

/* === GLOBAL SAFETY RULES ===== */
img {
    max-width: 100%;
    height: auto;
}

/* Disable heavy backdrop-filter on low-end mobile */
@media (max-width: 768px) and (hover: none) {
    .header-inner,
    .back-to-top,
    nav {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.1ms !important;
    }
    .scroll-indicator { display: none; }
    #stars-canvas { display: none; }
}

/* ===== MOBILE UX FIXES (2026-03-04) ===== */

/* FIX 0: Hero badge behind fixed header — push hero content below header */
@media (max-width: 768px) {
    .hero {
        align-items: flex-start;
        padding-top: 0;
    }
    .hero-content {
        padding-top: 80px; /* clear fixed header ~60px + breathing room */
        padding-bottom: 2rem;
    }
}
@media (max-width: 480px) {
    .hero-content {
        padding-top: 72px;
    }
}

/* FIX 1: Hide "Листай вниз" on mobile — overlaps stats block */
@media (max-width: 768px) {
    .scroll-indicator {
        display: none;
    }
}

/* FIX 2: FAB back-to-top — move up on mobile so it doesn't overlap content */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 4.5rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* FIX 3: How-it-works steps — ensure last step text isn't clipped */
@media (max-width: 768px) {
    .how-it-works {
        padding-bottom: 4rem;
    }
    .step:last-child {
        padding-bottom: 1.5rem;
    }
    .step-desc {
        overflow: visible;
        white-space: normal;
    }
}

/* FIX 4: Hero stats — enough bottom gap so scroll-indicator never overlaps */
@media (max-width: 768px) {
    .hero-stats {
        margin-bottom: 1.5rem;
    }
    .hero {
        padding-bottom: 1rem;
    }
}

/* FIX 5: Horoscope grid last row — center odd card if grid has odd count */
@media (max-width: 480px) {
    .horoscope-grid {
        grid-template-columns: 1fr 1fr;
    }
    /* If last item is alone, center it */
    .horoscope-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 240px;
        margin: 0 auto;
    }
}

/* FIX 6: Prevent FAB from overlapping content */
@media (max-width: 768px) {
    .horoscopes-section,
    .pricing,
    .faq {
        padding-bottom: 4rem; /* было 5rem — уменьшено */
    }
}

/* Section dividers: CSS-версия работает на любом экране */
@media (max-width: 768px) {
    .section-divider {
        height: 30px;
    }
    .section-divider::before,
    .section-divider::after {
        max-width: 100px;
    }
}

/* FIX 7: Rituals — stack to 1 column on small phones */
@media (max-width: 480px) {
    .rituals-timeline {
        flex-direction: column;
        align-items: center;
    }
    .ritual-card {
        min-width: unset;
        max-width: 100%;
        width: 100%;
    }
}

/* FIX 8: Compat section — meter bar не обрезается на узких экранах */
@media (max-width: 480px) {
    .compat-meter {
        width: 100%;
    }
}

/* FIX 9: Step text не обрезается на узких экранах */
@media (max-width: 480px) {
    .step {
        padding: 0 0.5rem;
    }
    .step p {
        font-size: 0.85rem;
        line-height: 1.6;
    }
}

/* FIX 10: will-change для анимируемых элементов — помогает GPU оптимизации */
.hero-content,
.hero-bg,
.animate-on-scroll {
    will-change: transform, opacity;
}
/* Сбрасываем will-change после появления (экономия памяти GPU) */
.animate-on-scroll.visible {
    will-change: auto;
}

/* ===== FIRST PURCHASE BANNER & PACKS ===== */
.first-purchase-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(212,168,67,0.12), rgba(156,39,176,0.12));
    border: 1px solid rgba(212,168,67,0.35);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}
.fpb-icon { font-size: 1.8rem; flex-shrink: 0; }
.fpb-content { display: flex; flex-direction: column; gap: 0.2rem; }
.fpb-content strong { color: var(--gold); font-family: var(--font-ui); font-size: 0.95rem; }
.fpb-content span { color: var(--text-light); font-size: 0.8rem; }

.pricing-bonus {
    margin: 1rem 0 0.8rem;
    padding: 0.5rem 0.8rem;
    background: rgba(212,168,67,0.1);
    border: 1px dashed rgba(212,168,67,0.4);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--gold);
    text-align: center;
}

/* Разовые пакеты */
.packs-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 950px;
    margin: 2rem auto 0;
}
.pack-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    transition: all 0.3s ease;
}
.pack-card:hover {
    border-color: rgba(212,168,67,0.4);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212,168,67,0.15);
}
.pack-name { font-family: var(--font-ui); font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.4rem; }
.pack-price { font-family: var(--font-display); font-size: 1.5rem; color: #fff; font-weight: 700; margin-bottom: 0.6rem; }
.pack-bonus { font-size: 0.78rem; color: var(--gold); margin-bottom: 1rem; line-height: 1.4; }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.8rem; min-height: 36px; }

@media (max-width: 768px) {
    .first-purchase-banner { flex-direction: column; text-align: center; gap: 0.5rem; }
    .packs-row { flex-direction: column; align-items: center; }
    .pack-card { max-width: 100%; width: 100%; }
}
