/* ========== ПРАВОСЛАВНОЕ ОФОРМЛЕНИЕ ========== */

/* ---------- ОСНОВНЫЕ ЦВЕТА И ФОН ---------- */
:root {
    --gold-light: #FFD700;
    --gold-dark: #D4AF37;
    --dark-blue: #1E3A8A;
    --dark-purple: #4C1D95;
    --burgundy: #7B2C3F;
    --wood: #8B4513;
    --parchment: #F5E6D3;
    --icon-blue: #1E40AF;
}

.container {
    width: 100%;
    max-width: 1200px;
    /* Максимальная ширина контейнера */
    margin: 0 auto;
    /* Автоматические отступы слева/справа - центрирует */
    padding: 20px;
    /* Внутренние отступы */
    box-sizing: border-box;
    /* Чтобы padding не увеличивал общую ширину */

    /* Существующие декоративные стили (оставьте их) */
    background: linear-gradient(135deg, #FFFBF5, #F9F3E9);
    border: 2px solid var(--gold-dark);
    border-radius: 15px;
    box-shadow:
        0 10px 30px rgba(139, 69, 19, 0.1),
        inset 0 0 50px rgba(212, 175, 55, 0.05);
}

/* Основной фон - пергамент */
body {
    background-color: var(--parchment);
    background-image:
        radial-gradient(circle at 25% 25%, rgba(212, 175, 55, 0.05) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(123, 44, 63, 0.05) 2px, transparent 2px);
    background-size: 50px 50px;
    font-family: 'Cormorant Garamond', serif;
    color: #2C1810;
}

.container {
    background: linear-gradient(135deg, #FFFBF5, #F9F3E9);
    border: 2px solid var(--gold-dark);
    border-radius: 15px;
    box-shadow:
        0 10px 30px rgba(139, 69, 19, 0.1),
        inset 0 0 50px rgba(212, 175, 55, 0.05);
}

/* ---------- ШАПКА В СТИЛЕ ИКОНОСТАСА ---------- */
header {
    background: linear-gradient(135deg, var(--dark-blue), var(--dark-purple));
    border-bottom: 5px solid var(--gold-dark);
    position: relative;
    overflow: hidden;
    padding: 40px 20px !important;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            transparent 10%,
            var(--gold-light) 10%,
            var(--gold-light) 90%,
            transparent 90%);
}

header::after {
    content: '✝';
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 24px;
    color: var(--gold-light);
    opacity: 0.3;
}

.header-container {
    position: relative;
    z-index: 2;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.site-logo {
    border: 4px solid var(--gold-light);
    box-shadow:
        0 0 20px rgba(255, 215, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.2);
    position: relative;
}

.site-logo::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid var(--burgundy);
    border-radius: 15px;
    z-index: -1;
}

.header-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-light);
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(212, 175, 55, 0.5);
    position: relative;
    display: inline-block;
    padding: 0 40px;
}

.header-text h1::before,
.header-text h1::after {
    content: '☦';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--gold-light);
}

.header-text h1::before {
    left: 0;
}

.header-text h1::after {
    right: 0;
}

.header-text .subtitle {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-top: 10px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    display: inline-block;
}

/* ---------- НАВИГАЦИЯ КАК ВРАТА ---------- */
.main-nav {
    background: linear-gradient(to bottom, var(--wood), #5D2906);
    border-radius: 10px;
    border: 3px solid var(--gold-dark);
    box-shadow:
        0 5px 15px rgba(139, 69, 19, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.main-nav::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            var(--gold-light),
            transparent);
    opacity: 0.3;
}

.main-nav ul {
    position: relative;
    z-index: 2;
}

.main-nav li {
    position: relative;
    border-right: 1px solid rgba(212, 175, 55, 0.3);
}

.main-nav li:last-child {
    border-right: none;
}

.main-nav a {
    color: var(--gold-light) !important;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 25px 15px !important;
}

.main-nav a:hover {
    background: linear-gradient(to bottom,
            rgba(212, 175, 55, 0.2),
            rgba(123, 44, 63, 0.2)) !important;
    transform: translateY(-2px);
}

.main-nav a.active {
    background: linear-gradient(to bottom,
            rgba(212, 175, 55, 0.3),
            rgba(123, 44, 63, 0.3)) !important;
    border-bottom: 3px solid var(--gold-light);
    color: #FFF !important;
}

.main-nav a.active::after {
    content: '🕯';
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 12px;
    opacity: 0.7;
}

.main-nav i {
    color: var(--gold-light);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* ---------- КАРТОЧКИ В СТИЛЕ СКРИЖАЛЕЙ ---------- */
.welcome-card,
.instruction-card,
.info-card,
.completion-card,
.cta-card,
.video-card,
.test-container {
    background: linear-gradient(135deg, #FFFBF5, #F5E6D3);
    border: 3px solid var(--gold-dark);
    border-radius: 12px;
    position: relative;
    box-shadow:
        0 8px 25px rgba(139, 69, 19, 0.15),
        inset 0 0 30px rgba(212, 175, 55, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

/* Угловые украшения */
.welcome-card::before,
.instruction-card::before,
.info-card::before,
.completion-card::before,
.cta-card::before,
.video-card::before,
.test-container::before {
    content: '✙';
    position: absolute;
    color: var(--gold-dark);
    font-size: 16px;
    opacity: 0.5;
}

.welcome-card::before {
    top: 10px;
    left: 10px;
}

.instruction-card::before {
    top: 10px;
    right: 10px;
}

.info-card::before {
    bottom: 10px;
    left: 10px;
}

.completion-card::before {
    bottom: 10px;
    right: 10px;
}

/* Заголовки карточек */
.welcome-card h2,
.instruction-card h3,
.info-card h3,
.completion-card h3,
.cta-card h2,
.video-card h2 {
    color: var(--dark-blue);
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gold-dark);
    position: relative;
}

.welcome-card h2::after,
.instruction-card h3::after,
.info-card h3::after,
.completion-card h3::after,
.cta-card h2::after,
.video-card h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            var(--burgundy),
            transparent);
}

/* ---------- КНОПКИ КАК ВРАТА ---------- */
.btn {
    background: linear-gradient(135deg, var(--gold-dark), var(--wood));
    color: white !important;
    border: 2px solid var(--gold-light);
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: 0.5s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 10px 20px rgba(139, 69, 19, 0.3),
        0 0 15px rgba(212, 175, 55, 0.4);
}

.btn:hover::before {
    left: 100%;
}

.btn i {
    margin-right: 8px;
    color: var(--gold-light);
}

.btn-primary {
    background: linear-gradient(135deg, var(--dark-blue), var(--dark-purple));
    border-color: var(--icon-blue);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--burgundy), #5A1F2E);
    border-color: #A34257;
}

/* ---------- ТЕСТИРОВАНИЕ - ЛЕСТНИЦА ВОСХОЖДЕНИЯ ---------- */
.test-container {
    background: linear-gradient(135deg, #FFF, #F9F3E9);
    border: 3px solid var(--wood);
    border-radius: 15px;
    padding: 30px;
}

.progress {
    height: 15px;
    background: linear-gradient(to right, #F5E6D3, #E8D8C5);
    border: 2px solid var(--wood);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.progress-bar {
    background: linear-gradient(90deg,
            var(--gold-dark),
            #FFD700,
            var(--gold-dark));
    height: 100%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
}

/* Вопросы как скрижали */
.question {
    background: linear-gradient(135deg, #FFF, #FAF3E8);
    border: 2px solid var(--gold-dark);
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.1);
}

.question::before {
    content: '?';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 30px;
    height: 30px;
    background: var(--burgundy);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.question h3 {
    color: var(--dark-blue);
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-left: 20px;
    position: relative;
}

.question h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--gold-dark), var(--burgundy));
    border-radius: 2px;
}

/* Варианты ответов как свечи */
.option {
    background: linear-gradient(to right, #FFF, #FAF3E8);
    border: 2px solid rgba(139, 69, 19, 0.2);
    border-radius: 8px;
    padding: 15px 20px;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.option:hover {
    border-color: var(--gold-dark);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(to right,
            rgba(212, 175, 55, 0.1),
            transparent);
    transition: width 0.3s ease;
}

.option:hover::before {
    width: 100%;
}

.option input:checked+label {
    color: var(--burgundy);
    font-weight: bold;
}

.option.selected-correct {
    background: linear-gradient(135deg, #D4EDDA, #C3E6CB);
    border-color: #27ae60;
    animation: pulse-green 0.5s ease-in-out;
}

.option.selected-incorrect {
    background: linear-gradient(135deg, #F8D7DA, #F5C6CB);
    border-color: #e74c3c;
    animation: shake 0.5s ease-in-out;
}

@keyframes pulse-green {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* ---------- ВИДЕО-БЛОКИ ---------- */
.video-placeholder {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 3px solid var(--gold-dark);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.video-placeholder::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: rgba(212, 175, 55, 0.5);
    z-index: 1;
}

video {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Таймлайны как четки */
.timeline-links li {
    border-left: 3px solid var(--gold-dark);
    padding-left: 15px;
    margin: 12px 0;
    transition: all 0.3s ease;
    position: relative;
}

.timeline-links li::before {
    content: '•';
    position: absolute;
    left: -9px;
    top: 0;
    color: var(--gold-dark);
    font-size: 24px;
    transition: all 0.3s ease;
}

.timeline-links li:hover {
    border-left-color: var(--burgundy);
    transform: translateX(5px);
}

.timeline-links li:hover::before {
    color: var(--burgundy);
    transform: scale(1.5);
}

.timeline-link {
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: block;
}

.timeline-link:hover {
    background: linear-gradient(135deg,
            rgba(212, 175, 55, 0.1),
            rgba(123, 44, 63, 0.05));
    color: var(--burgundy);
}

.timeline-link.active {
    background: linear-gradient(135deg, var(--gold-dark), #C5A028);
    color: white;
    border-left-color: var(--burgundy);
}

/* ---------- РЕЗУЛЬТАТЫ ---------- */
.result {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    border: 3px solid var(--gold-dark);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

.result h2 {
    color: var(--gold-light);
    font-size: 2rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.result h2::before,
.result h2::after {
    content: '✞';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--gold-light);
    opacity: 0.7;
}

.result h2::before {
    left: -40px;
}

.result h2::after {
    right: -40px;
}

/* ---------- ФУТЕР КАК ХРАМОВАЯ ПЛИТА ---------- */
footer {
    background: linear-gradient(135deg, var(--wood), #5D2906);
    color: var(--gold-light);
    padding: 30px;
    border-top: 5px solid var(--gold-dark);
    position: relative;
    text-align: center;
}

footer::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 5px;
    background: linear-gradient(90deg,
            transparent,
            var(--gold-light),
            transparent);
}

footer p {
    margin: 10px 0;
    font-size: 1rem;
    opacity: 0.9;
}

/* ---------- СПЕЦИАЛЬНЫЕ ЭЛЕМЕНТЫ ---------- */
/* Свеча прогресса */
.question-counter {
    background: linear-gradient(135deg, var(--dark-blue), var(--dark-purple));
    color: white;
    padding: 15px;
    border-radius: 8px;
    display: inline-block;
    font-weight: bold;
    border: 2px solid var(--gold-dark);
    position: relative;
    overflow: hidden;
}

.question-counter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 70%);
    animation: candle-flicker 2s infinite;
}

@keyframes candle-flicker {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }
}

/* Режимы тестирования */
.mode-btn {
    background: linear-gradient(135deg, #FFF, #FAF3E8);
    border: 2px solid var(--wood);
    border-radius: 10px;
    padding: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mode-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(139, 69, 19, 0.2);
}

.mode-btn.active {
    background: linear-gradient(135deg, var(--gold-dark), #C5A028);
    color: white;
    border-color: var(--gold-light);
    box-shadow:
        0 5px 20px rgba(212, 175, 55, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
}

.mode-btn i {
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: block;
}

/* Уведомления как свитки */
.email-notification,
.fio-notification,
.fio-reminder {
    background: linear-gradient(135deg, #F5E6D3, #E8D8C5);
    border: 2px solid var(--wood);
    border-radius: 10px;
    padding: 20px;
    position: relative;
    animation: scroll-unroll 0.8s ease-out;
}

@keyframes scroll-unroll {
    0% {
        opacity: 0;
        transform: translateY(-20px) scaleY(0.5);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

/* ---------- АДАПТИВНОСТЬ ---------- */
@media (max-width: 768px) {
    .header-text h1 {
        font-size: 2rem;
        padding: 0 30px;
    }

    .header-text h1::before,
    .header-text h1::after {
        font-size: 1.2rem;
    }

    .main-nav a {
        padding: 20px 10px !important;
        font-size: 0.9rem;
    }

    .question h3 {
        font-size: 1.2rem;
    }

    .result h2 {
        font-size: 1.5rem;
    }

    .result h2::before,
    .result h2::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .header-text h1 {
        font-size: 1.5rem;
    }

    .header-text .subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .mode-btn {
        padding: 15px;
        margin-bottom: 10px;
    }

    .video-placeholder {
        padding: 10px !important;
    }

    .timeline-link {
        font-size: 0.9rem;
        padding: 6px 8px;
    }
}

/* ---------- СПЕЦИАЛЬНЫЕ ЭФФЕКТЫ ---------- */
/* Свечение святости */
@keyframes holy-glow {

    0%,
    100% {
        box-shadow:
            0 0 10px rgba(212, 175, 55, 0.5),
            0 0 20px rgba(212, 175, 55, 0.3),
            0 0 30px rgba(212, 175, 55, 0.1);
    }

    50% {
        box-shadow:
            0 0 15px rgba(212, 175, 55, 0.7),
            0 0 30px rgba(212, 175, 55, 0.5),
            0 0 45px rgba(212, 175, 55, 0.2);
    }
}

.holy-glow {
    animation: holy-glow 2s infinite ease-in-out;
}

/* Мерцание свечи */
@keyframes candle-flicker {

    0%,
    100% {
        opacity: 0.8;
        transform: scale(1);
    }

    25% {
        opacity: 0.9;
        transform: scale(1.02);
    }

    50% {
        opacity: 0.7;
        transform: scale(0.98);
    }

    75% {
        opacity: 0.95;
        transform: scale(1.01);
    }
}

.candle-flicker {
    animation: candle-flicker 1.5s infinite;
}

/* Парящие ангелы */
@keyframes angel-float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.angel-float {
    animation: angel-float 3s infinite ease-in-out;
}

/* ---------- ОРНАМЕНТАЛЬНЫЕ РАМКИ ---------- */
.ornamental-frame {
    position: relative;
    padding: 20px;
    border: 3px double var(--gold-dark);
    border-radius: 10px;
    background: linear-gradient(135deg, #FFF, #FAF3E8);
}

.ornamental-frame::before {
    content: '✙';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 20px;
    height: 20px;
    background: var(--burgundy);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.ornamental-frame::after {
    content: '✙';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: var(--burgundy);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* ---------- ДЕКОРАТИВНЫЕ ЭЛЕМЕНТЫ ---------- */
/* Звездочки как благословение */
.star-blessing::before {
    content: '★';
    position: absolute;
    color: var(--gold-light);
    font-size: 20px;
    opacity: 0.5;
    animation: star-twinkle 2s infinite;
}

@keyframes star-twinkle {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }
}

/* Виноградная лоза */
.vine-decoration {
    position: relative;
    padding-left: 30px;
}

.vine-decoration::before {
    content: '🍇';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 24px;
    opacity: 0.7;
}

/* ---------- АНИМАЦИИ ПОЯВЛЕНИЯ ---------- */
@keyframes icon-reveal {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.icon-reveal {
    animation: icon-reveal 0.8s ease-out forwards;
}

@keyframes text-glow {

    0%,
    100% {
        text-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
    }

    50% {
        text-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    }
}

.text-glow {
    animation: text-glow 2s infinite;
}

/* ---------- ПОСЛЕДНИЕ ШТРИХИ ---------- */
/* Тени от свечей */
.candle-shadow {
    position: relative;
}

.candle-shadow::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 10px;
    background: radial-gradient(ellipse at center,
            rgba(0, 0, 0, 0.3) 0%,
            transparent 70%);
    border-radius: 50%;
}

/* Дождь благодати */
@keyframes grace-rain {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.grace-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold-light);
    border-radius: 50%;
    pointer-events: none;
    animation: grace-rain 3s linear infinite;
}

/* Адаптация для темной темы */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }

    .container {
        background: linear-gradient(135deg, #2d2d2d, #252525);
        border-color: var(--gold-dark);
    }

    .welcome-card,
    .instruction-card,
    .info-card,
    .completion-card,
    .cta-card,
    .video-card,
    .test-container {
        background: linear-gradient(135deg, #333, #2a2a2a);
        border-color: var(--gold-dark);
    }

    .question,
    .option {
        background: linear-gradient(135deg, #3a3a3a, #2f2f2f);
        color: #e0e0e0;
    }
}

/* ---------- ПЕРЕХОДЫ МЕЖДУ СТРАНИЦАМИ ---------- */
.page-transition {
    animation: page-reveal 0.5s ease-out;
}

@keyframes page-reveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Применяем переход ко всем страницам */
.main-content {
    animation: page-reveal 0.5s ease-out;
}