/* ================= CSS ПЕРЕМЕННЫЕ (ТЕМНАЯ ТЕМА ПО УМОЛЧАНИЮ) ================= */
:root {
    --bg-color: #0b0c10;
    --bg-light: #161821;
    --text-main: #c5c6c7;
    --text-muted: #888888;
    --gold: #d4af37;
    --gold-glow: rgba(212, 175, 55, 0.4);
    --glass: rgba(26, 28, 35, 0.65);
    --glass-border: rgba(212, 175, 55, 0.2);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    --header-bg: rgba(11, 12, 16, 0.8);
    --input-bg: rgba(0, 0, 0, 0.5);
    --footer-bg: #050608;
}

/* ================= СВЕТЛАЯ ТЕМА (ЭСТЕТИКА РАССВЕТА) ================= */
body.light-theme {
    --bg-color: #faf7f2;        /* Нежный кремовый фон */
    --bg-light: #ffffff;
    --text-main: #2c2824;       /* Глубокий кофейный цвет для читаемости */
    --text-muted: #6b6359;      /* Теплый серый для подписей */
    --gold: #ad8017;            /* Более плотное, темное золото */
    --gold-glow: rgba(173, 128, 23, 0.2);
    --glass: rgba(255, 255, 255, 0.85); /* Белое матовое стекло */
    --glass-border: rgba(173, 128, 23, 0.3);
    --shadow: 0 15px 40px rgba(138, 115, 80, 0.15); /* Мягкая теплая тень */
    --header-bg: rgba(250, 247, 242, 0.9);
    --input-bg: rgba(255, 255, 255, 0.7);
    --footer-bg: #f0ebe1;
}

/* ================= БАЗОВЫЕ СТИЛИ ================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
body, html { 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    font-family: 'Montserrat', sans-serif; 
    overflow-x: hidden; 
    scroll-behavior: smooth; 
    transition: background-color 0.5s ease, color 0.5s ease; 
}
h1, h2, h3, h4, .serif { font-family: 'Cormorant Garamond', serif; color: var(--gold); font-weight: 600; }
a { text-decoration: none; color: inherit; }
p { color: var(--text-muted); }

/* ИСПРАВЛЕНИЕ БАГА С ОТСТУПАМИ: Позиционирование частиц строго на фоне */
#particles-js { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    z-index: 1; 
    pointer-events: none; 
}

.noise-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 99; opacity: 0.03; background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E'); }

/* Прелоадер */
#preloader { position: fixed; width: 100vw; height: 100vh; background: var(--bg-color); z-index: 9999; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: opacity 0.8s; }
.mandala-spinner { width: 80px; height: 80px; border: 3px solid transparent; border-top-color: var(--gold); border-bottom-color: var(--gold); border-radius: 50%; animation: spin 1.5s linear infinite; margin-bottom: 20px; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Индикатор скролла */
#scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--gold); width: 0%; z-index: 1000; transition: width 0.1s; }

/* ================= HEADER (ШАПКА) ================= */
header { 
    position: fixed; top: 0; left: 0; width: 100%; padding: 15px 40px; 
    background: var(--header-bg); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    display: flex; justify-content: space-between; align-items: center; 
    z-index: 100; border-bottom: 1px solid var(--glass-border); 
    transition: background 0.5s ease, border-color 0.5s ease;
}
.logo { font-size: clamp(1.2rem, 3vw, 1.8rem); font-family: 'Cormorant Garamond', serif; color: var(--gold); font-weight: 700; letter-spacing: 2px; white-space: nowrap;}
.header-right { display: flex; align-items: center; gap: 30px; }
.header-controls { display: flex; gap: 15px; align-items: center; }
.header-controls button { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--text-main); transition: 0.3s; opacity: 0.8;}
.header-controls button:hover { transform: scale(1.1); color: var(--gold); opacity: 1;}

nav { display: flex; gap: 30px; align-items: center;}
nav a { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-main); transition: 0.3s; font-weight: 600; }
nav a:hover { color: var(--gold); text-shadow: 0 0 10px var(--gold-glow);}
.burger-menu { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.burger-menu span { width: 25px; height: 2px; background: var(--gold); transition: 0.3s; border-radius: 2px;}

/* ================= HERO (ГЛАВНЫЙ ЭКРАН) ================= */
.hero { 
    position: relative; 
    min-height: 100vh; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 120px 20px 40px; 
    text-align: center; 
    background: radial-gradient(circle at center, var(--gold-glow) 0%, transparent 70%); 
    z-index: 10;
}
.hero-content { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    max-width: 900px; 
    z-index: 10; 
}

/* НОВЫЙ БЕЙДЖ */
.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--gold);
    border-radius: 30px;
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
    background: var(--gold-glow);
    backdrop-filter: blur(5px);
    font-weight: 600;
}

.hero h1 { 
    font-size: clamp(2.5rem, 6vw, 6.5rem); 
    line-height: 1.1; 
    margin-bottom: 25px; 
    background: linear-gradient(to right, #eaddc7, #d4af37, #eaddc7); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    text-shadow: 0 0 40px var(--gold-glow); 
}
/* Переопределение градиента заголовка для светлой темы */
body.light-theme .hero h1 {
    background: linear-gradient(to right, #8c6218, #b8860b, #8c6218); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    text-shadow: 0 0 40px rgba(138, 115, 80, 0.2);
}

/* НОВОЕ ОПИСАНИЕ НА ГЛАВНОМ ЭКРАНЕ */
.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.hero p#typed-text { 
    font-size: clamp(1rem, 2vw, 1.4rem); 
    color: var(--text-main); 
    max-width: 600px; 
    margin: 0 auto 30px; 
    line-height: 1.6; 
    min-height: 60px; 
    font-weight: 400; 
}

/* Кнопки */
.cta-button { display: inline-block; padding: 16px 45px; font-size: 1.1rem; font-family: 'Cormorant Garamond', serif; font-weight: 700; color: #0b0c10 !important; background: linear-gradient(135deg, #d4af37, #f3e5ab, #d4af37); border-radius: 50px; border: none; cursor: pointer; box-shadow: 0 0 20px var(--gold-glow); transition: all 0.3s ease; text-align: center; text-shadow: none; }
.cta-button:hover { transform: scale(1.05); box-shadow: 0 0 30px var(--gold); }
.text-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1rem; transition: 0.3s; text-decoration: underline; margin-top: 15px; }
.text-btn:hover { color: var(--gold); }
.mt-20 { margin-top: 20px; }
.gold-text { color: var(--gold); font-weight: bold; }

/* ================= ТАРОЛОГИЯ (НОВАЯ СЕКЦИЯ) ================= */
.tarotology-section {
    padding: 80px 20px;
    position: relative;
    z-index: 10;
}
.tarotology-container {
    max-width: 1200px;
    margin: 0 auto;
}
.tarotology-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}
.tarotology-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-main);
}
.tarotology-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-muted);
}
.stats-container {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}
.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-number, .stat-plus {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 5px;
    font-weight: 600;
}

/* Интерактивная 3D карта с переворотом */
.flip-visual-card {
    background: transparent;
    width: 100%;
    max-width: 450px;
    height: 400px;
    margin: 0 auto;
    perspective: 1000px;
}
.flip-visual-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}
.flip-visual-card:hover .flip-visual-inner {
    transform: rotateY(180deg);
}
.flip-visual-front, .flip-visual-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    box-shadow: var(--shadow);
}
.flip-visual-front {
    background: var(--glass);
    backdrop-filter: blur(10px);
}
.flip-visual-back {
    background: linear-gradient(135deg, var(--bg-light), var(--input-bg));
    transform: rotateY(180deg);
    border-color: var(--gold);
}
.glow-orb {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    box-shadow: 0 0 40px var(--gold-glow);
    margin-bottom: 25px;
    animation: pulse 3s infinite alternate;
}
@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    100% { transform: scale(1.1); opacity: 1; }
}
.flip-visual-front h4 { font-size: 1.8rem; margin-bottom: 10px; }
.back-content h4 { font-size: 2rem; color: var(--gold); margin-bottom: 15px; }
.back-content p { font-style: italic; font-size: 1.1rem; line-height: 1.6; color: var(--text-main); }

/* Сетка принципов */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.principle-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: all 0.5s ease;
}
.principle-card:hover {
    border-color: var(--gold);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--gold-glow);
}
.p-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.principle-card h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-main);
}
.principle-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ================= WIZARD ================= */
.wizard-section { padding: 100px 20px; position: relative; z-index: 10; }
.wizard-container { max-width: 800px; margin: 0 auto; background: var(--glass); border: 1px solid var(--glass-border); border-radius: 20px; padding: 50px; backdrop-filter: blur(20px); box-shadow: var(--shadow); overflow: hidden; position: relative; transition: all 0.5s ease;}
.wizard-step { display: none; animation: slideIn 0.5s forwards; }
.wizard-step.active { display: block; }
@keyframes slideIn { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }

.wizard-container h2 { text-align: center; font-size: 2.5rem; margin-bottom: 10px; }
.wizard-container p { text-align: center; color: var(--text-muted); margin-bottom: 30px; }
.step-label { font-size: 0.9rem; color: var(--gold); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px; display: block; font-weight: 600; }

.topics-grid, .depth-grid { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 30px; }
.topic-btn, .depth-btn { background: var(--input-bg); border: 1px solid var(--glass-border); color: var(--text-main); padding: 15px 25px; border-radius: 10px; cursor: pointer; transition: 0.3s; font-family: inherit; font-size: 1rem; flex: 1 1 calc(50% - 15px); text-align: left; }
.topic-btn:hover, .depth-btn:hover { border-color: var(--gold); box-shadow: 0 5px 15px var(--gold-glow); }
.topic-btn.active, .depth-btn.active { background: var(--gold-glow); border-color: var(--gold); color: var(--gold); box-shadow: inset 0 0 15px var(--gold-glow); font-weight: 600;}
body.light-theme .topic-btn.active, body.light-theme .depth-btn.active { color: #8c6218; }

.depth-btn .num { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; color: var(--gold); line-height: 1; margin-bottom: 5px; }

.question-box { width: 100%; height: 120px; background: var(--input-bg); border: 1px solid var(--glass-border); border-radius: 8px; padding: 15px; color: var(--text-main); font-family: inherit; font-size: 1.1rem; resize: none; transition: 0.3s; outline: none; }
.question-box:focus { border-color: var(--gold); box-shadow: 0 0 15px var(--gold-glow); }
.error-msg { color: #ff4d4d; font-size: 0.85rem; display: none; margin-top: 5px; }

/* Настройки колоды */
.deck-backs { display: flex; gap: 15px; }
.deck-back-option { width: 60px; height: 90px; border-radius: 6px; cursor: pointer; border: 2px solid transparent; opacity: 0.6; transition: 0.3s; color: transparent; display:flex; align-items:center; justify-content:center; }
.deck-back-option.active { border-color: var(--gold); opacity: 1; transform: scale(1.1); box-shadow: 0 0 15px var(--gold-glow); }

/* Стол и Карты */
.tarot-desk { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin: 40px 0; perspective: 1000px; }
.tarot-desk.shuffling .tarot-card { animation: shuffleAnim 1s infinite alternate ease-in-out; }
@keyframes shuffleAnim { 0% { transform: translate(0, 0) rotate(0deg); } 100% { transform: translate(calc(-20px + 40px * var(--r)), calc(-10px + 20px * var(--r))) rotate(calc(-15deg + 30deg * var(--r))); } }

.tarot-card { width: 110px; height: 185px; perspective: 1000px; cursor: pointer; transition: opacity 0.5s; }
.tarot-card.disabled { opacity: 0.3; pointer-events: none; }
.card-inner { position: relative; width: 100%; height: 100%; text-align: center; transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); transform-style: preserve-3d; box-shadow: var(--shadow); border-radius: 10px; }
.tarot-card:hover:not(.disabled) .card-inner { box-shadow: 0 0 25px var(--gold-glow); transform: translateY(-15px); }
.tarot-card.flipped .card-inner { transform: rotateY(180deg); box-shadow: 0 0 25px var(--gold); }
.card-front, .card-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 10px; border: 2px solid var(--gold); }
.card-front { background-color: #111; }
.card-back { background-color: #fff; background-size: cover; background-position: center; transform: rotateY(180deg); }

/* Терминал и Воронка */
#ai-terminal { display: none; background: #111 !important; border: 1px solid #333; padding: 15px; border-radius: 8px; font-family: monospace; color: #0f0 !important; margin-top: 20px; text-align: left; }
.blink { animation: blinker 1s linear infinite; }
@keyframes blinker { 50% { opacity: 0; } }

#final-result { display: none; margin-top: 40px; background: var(--input-bg); padding: 30px; border-radius: 15px; border: 1px solid var(--gold); text-align: center; }
.partial-reading { margin: 20px 0; padding: 20px; background: var(--bg-light); border-radius: 10px; border-left: 4px solid var(--gold); text-align: left; box-shadow: var(--shadow);}
.partial-reading h4 { color: var(--text-main); margin-bottom: 5px; font-family: 'Montserrat', sans-serif;}
.partial-reading p { color: var(--text-main);}
.hook-text { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 25px; }

/* Карточки и Сетка */
.section-title { text-align: center; font-size: 3rem; margin: 80px 0 40px; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; padding: 0 20px; max-width: 1200px; margin: 0 auto; z-index: 10; position: relative; }
.feature-card { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 15px; padding: 40px; backdrop-filter: blur(10px); box-shadow: var(--shadow); transform-style: preserve-3d; transition: all 0.5s ease;}
.tilt-card h3 { transform: translateZ(30px); margin-bottom: 15px; }
.tilt-card p { transform: translateZ(20px); }

/* Слайдер отзывов */
.reviews-slider { padding: 40px 20px; max-width: 800px; }
.review-card { background: var(--input-bg); padding: 30px; border-radius: 15px; border: 1px solid var(--gold); text-align: center; box-shadow: var(--shadow);}
.review-card img { width: 80px; height: 80px; border-radius: 50%; margin-bottom: 15px; border: 2px solid var(--gold); }
.review-card strong { color: var(--text-main);}

/* Справочник и Модалка */
.dictionary { max-width: 1200px; margin: 0 auto; padding: 0 20px 100px; position: relative; z-index: 10; }
.dict-controls { display: flex; gap: 20px; justify-content: center; margin-bottom: 40px; }
.dict-input, .dict-select { padding: 12px 20px; border-radius: 8px; border: 1px solid var(--glass-border); background: var(--input-bg); color: var(--text-main); outline: none; transition: 0.3s;}
.dict-input:focus, .dict-select:focus { border-color: var(--gold); box-shadow: 0 0 10px var(--gold-glow);}
.dict-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.dict-card { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 12px; padding: 15px; display: flex; gap: 15px; cursor: pointer; transition: 0.3s; box-shadow: var(--shadow);}
.dict-img { width: 70px; height: 120px; border-radius: 6px; object-fit: cover; }
.dict-info h3 { font-size: 1.1rem; margin-bottom: 5px; color: var(--gold);}
.tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px; }
.tag { font-size: 0.7rem; padding: 3px 8px; background: var(--gold-glow); border-radius: 10px; color: var(--gold); font-weight: 600;}

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(10px); z-index: 2000; display: none; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s; }
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content { background: var(--bg-light); width: 90%; max-width: 600px; border-radius: 20px; border: 1px solid var(--gold); padding: 40px; position: relative; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow);}
.modal-close { position: absolute; top: 15px; right: 20px; font-size: 2rem; background: none; border: none; color: var(--text-main); cursor: pointer; transition: 0.3s;}
.modal-close:hover { color: var(--gold);}

/* Уведомления */
#toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--glass); border-left: 4px solid var(--gold); padding: 15px 25px; border-radius: 8px; color: var(--text-main); animation: slideInRight 0.5s, fadeOut 0.5s 4.5s forwards; box-shadow: var(--shadow); font-size: 0.9rem; backdrop-filter: blur(10px);}
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes fadeOut { to { opacity: 0; display: none; } }

/* Пасхалка */
.matrix-mode { background: #000 !important; color: #0f0 !important; font-family: monospace !important; }
.matrix-mode * { color: #0f0 !important; border-color: #0f0 !important; background: transparent !important; text-shadow: 0 0 5px #0f0; }

/* ================= FAQ (Частые вопросы) ================= */
.faq { padding: 60px 20px 100px; position: relative; z-index: 10; }
.faq-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.faq-item { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 12px; overflow: hidden; backdrop-filter: blur(10px); transition: all 0.3s ease; box-shadow: var(--shadow); }
.faq-item:hover { border-color: rgba(212, 175, 55, 0.5); box-shadow: 0 5px 20px var(--gold-glow); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary { list-style: none; font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: var(--gold); font-weight: 600; padding: 25px; cursor: pointer; position: relative; outline: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: '+'; font-family: 'Montserrat', sans-serif; font-size: 1.5rem; font-weight: 300; color: var(--text-main); transition: transform 0.3s ease, color 0.3s; }
.faq-item[open] { border-color: var(--gold); background: var(--input-bg); }
.faq-item[open] summary::after { content: '−'; transform: rotate(180deg); color: var(--gold); }
.faq-content { padding: 0 25px 25px 25px; color: var(--text-muted); line-height: 1.7; font-size: 1rem; animation: fadeInDown 0.4s ease-out forwards; }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ================= FOOTER (ПОДВАЛ) ================= */
.site-footer { background: var(--footer-bg); border-top: 1px solid var(--glass-border); padding: 70px 20px 20px; margin-top: 80px; box-shadow: inset 0 20px 50px rgba(0,0,0,0.1); transition: background 0.5s ease; position: relative; z-index: 10; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; margin-bottom: 50px; }
.footer-col h4 { font-size: 1.2rem; color: var(--gold); font-family: 'Cormorant Garamond', serif; margin-bottom: 20px; letter-spacing: 1px; }
.footer-col p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }
.footer-col a { display: block; color: var(--text-muted); margin-bottom: 12px; font-size: 0.95rem; transition: 0.3s ease; }
.footer-col a:hover { color: var(--gold); transform: translateX(5px); }
.footer-bottom { max-width: 1200px; margin: 0 auto; text-align: center; padding-top: 30px; border-top: 1px solid var(--glass-border); color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }

/* ================= АДАПТИВНОСТЬ (СМАРТФОНЫ И ПЛАНШЕТЫ) ================= */
@media (max-width: 992px) {
    header { padding: 15px 20px; }
    .header-right { gap: 15px; }
    .burger-menu { display: flex; }
    
    nav { 
        position: fixed; top: 65px; right: -100%; width: 250px; height: calc(100vh - 65px); 
        background: var(--header-bg); backdrop-filter: blur(10px);
        flex-direction: column; justify-content: flex-start; padding: 40px; 
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1); 
        border-left: 1px solid var(--glass-border); 
    }
    nav.active { right: 0; }
    nav a { font-size: 1.1rem; }
    
    .tarotology-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .hero { min-height: 85vh; padding-top: 100px; }
    .hero h1 { font-size: 2.8rem; margin-bottom: 15px; } 
    
    /* Адаптация новых текстовых блоков под мобильные */
    .hero-badge { font-size: 0.75rem; padding: 6px 15px; margin-bottom: 15px; }
    .hero-description { font-size: 0.95rem; line-height: 1.5; margin-bottom: 20px; }
    
    .hero p#typed-text { font-size: 0.95rem; min-height: 80px; margin-bottom: 30px; }
    .cta-button { padding: 14px 35px; font-size: 1rem; width: 100%; } 
    .dict-controls { flex-direction: column; }
    .wizard-container { padding: 30px 15px; }
    .wizard-container h2 { font-size: 2rem; }
    
    .stats-container { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
    .tarotology-text h3 { font-size: 1.6rem; text-align: center; }
    .tarotology-text p { text-align: center; }
}