/* Astroveda — оформление главной (multimagnet) */

:root {
    --av-bg-deep: #0f1419;
    --av-bg-mid: #1a2332;
    --av-gold: #c9a227;
    --av-gold-soft: #e8d48a;
    --av-indigo: #3d5a80;
    --av-slate: #e8eef5;
    --av-card: rgba(255, 255, 255, 0.06);
    --av-border: rgba(201, 162, 39, 0.35);
    --av-green: #2d6a4f;
    --av-green-light: #40916c;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--av-bg-deep);
    background-image:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(61, 90, 128, 0.45) 0%, transparent 55%),
        radial-gradient(ellipse 80% 50% at 100% 50%, rgba(201, 162, 39, 0.08) 0%, transparent 45%),
        radial-gradient(ellipse 60% 40% at 0% 80%, rgba(45, 106, 79, 0.12) 0%, transparent 50%);
    color: var(--av-slate);
    min-height: 100vh;
}

.main-content {
    padding-top: 88px;
}

/* Шапка — на всю ширину (как в базовой вёрстке), стеклянный фон */
.header {
    background: rgba(15, 20, 25, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.header-actions .btn-auth {
    border-color: var(--av-gold);
    color: var(--av-gold-soft);
    background: rgba(201, 162, 39, 0.08);
    font-weight: 500;
    border-radius: 999px;
    padding: 10px 20px;
}

.header-actions .btn-auth:hover {
    background: var(--av-gold);
    color: var(--av-bg-deep);
    border-color: var(--av-gold);
}

/* Герой */
.site-hero {
    max-width: 1200px;
    margin: 0 auto 12px;
    padding: 28px 24px 36px;
    text-align: center;
    position: relative;
}

.site-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.06) 0%, transparent 50%, rgba(61, 90, 128, 0.1) 100%);
    border-radius: 20px;
    border: 1px solid var(--av-border);
    pointer-events: none;
}

.site-hero__inner {
    position: relative;
    z-index: 1;
}

.site-hero__kicker {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--av-gold);
    margin-bottom: 12px;
    font-weight: 600;
}

.site-hero__lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.65;
    color: rgba(232, 238, 245, 0.88);
    max-width: 640px;
    margin: 0 auto;
}

/* Заголовок страницы курсов */
.courses-page h1 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: #f0f4fa;
    margin-bottom: 28px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

/* Пробный урок */
.trial-lesson-central-clickable {
    max-width: 920px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(64, 145, 108, 0.4);
}

.trial-lesson-central {
    background: linear-gradient(165deg, rgba(45, 106, 79, 0.35) 0%, rgba(15, 20, 25, 0.85) 100%);
    border: 1px solid rgba(64, 145, 108, 0.5);
    border-radius: 20px;
    padding: 36px 28px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.trial-lesson-central-clickable:hover .trial-lesson-central {
    background: linear-gradient(165deg, rgba(45, 106, 79, 0.45) 0%, rgba(15, 20, 25, 0.9) 100%);
}

.trial-lesson-central h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    color: #b7f5d8;
    letter-spacing: 0.06em;
}

.trial-description {
    color: rgba(190, 231, 210, 0.92);
    font-size: 1.05rem;
}

.trial-video-preview {
    border-radius: 12px;
    border-color: rgba(64, 145, 108, 0.6);
    overflow: hidden;
}

.trial-link-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--av-green-light), var(--av-green));
    color: #fff !important;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* Индикатор прокрутки */
.scroll-down-text {
    color: var(--av-gold-soft);
    opacity: 0.85;
}

.scroll-down-arrows {
    color: var(--av-gold);
}

/* Сайдбар на тёмном фоне */
.sidebar {
    background: linear-gradient(180deg, #151c28 0%, #0f1419 100%);
    border-right: 1px solid rgba(201, 162, 39, 0.15);
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.3);
}

.sidebar-header {
    background: rgba(201, 162, 39, 0.08);
    border-bottom-color: rgba(201, 162, 39, 0.2);
}

.sidebar-header h2 {
    color: var(--av-gold-soft);
}

.course-level-header {
    background: linear-gradient(90deg, var(--av-indigo), #2c4563);
}

.course-item {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.course-item:hover {
    background: rgba(201, 162, 39, 0.06);
}

.course-item.active {
    background: rgba(61, 90, 128, 0.35);
    border-left-color: var(--av-gold);
}

.nav-toggle {
    background: linear-gradient(135deg, var(--av-indigo), #2c4563);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

/* Модальные окна — светлые для читаемости форм */
.modal-content {
    background: #fafbfc;
    color: #222;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.modal-content h2 {
    color: #1a2332;
}

.modal .close {
    color: #666;
}

.form-group label {
    color: #333;
}

.form-group input {
    background: #fff;
    border: 1px solid #ccc;
    color: #222;
    border-radius: 8px;
}

.btn-primary {
    border-radius: 999px;
    background: linear-gradient(135deg, var(--av-indigo), #2c4563);
    border: none;
    font-weight: 600;
}

.btn-primary:hover {
    filter: brightness(1.08);
}

/* Детали курса */
.course-details {
    background: var(--av-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    color: var(--av-slate);
}

.course-details-header h2,
#courseDetailsTitle {
    font-family: "Cormorant Garamond", Georgia, serif;
    color: #f0f4fa;
}

#courseDetailsDescription {
    color: rgba(232, 238, 245, 0.88);
}

.lessons-list-express .lesson-item,
.lessons-list .lesson-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

@media (max-width: 768px) {
    .header {
        left: 0 !important;
    }

    .site-hero {
        padding: 20px 16px 28px;
    }
}
