/* ============================================================
   СТИЛИ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ
   ============================================================ */

/* ===== ПОДКЛЮЧЕНИЕ КАЛЛИГРАФИЧЕСКИХ ШРИФТОВ ===== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600;1,700&display=swap');

/* ===== ГЕРОЙ-СЕКЦИЯ (СВЕТЛАЯ) ===== */
.hero-section {
    background: linear-gradient(160deg, #e8edf3 0%, #d5dfea 50%, #e0e8f0 100%);
    color: var(--dark);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid rgba(26, 79, 122, 0.08);
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(26, 79, 122, 0.04) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(26, 79, 122, 0.03) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-icon {
    display: inline-block;
    margin-bottom: 20px;
    opacity: 0.9;
}
.hero-icon svg path {
    fill: var(--primary);
}

.hero-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    font-size: 3.8rem;
    letter-spacing: 0.02em;
    line-height: 1.1;
    color: #0d1b2a;
    text-shadow: 0 1px 2px rgba(255,255,255,0.3);
}

.hero-title .accent {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    font-style: italic;
    color: var(--primary);
    letter-spacing: 0.03em;
}

.hero-subtitle {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 500;
    font-size: 1.9rem;
    font-style: italic;
    letter-spacing: 0.04em;
    opacity: 0.85;
    color: #1a2a3a;
}

.hero-region {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 400;
    font-size: 1.4rem;
    font-style: italic;
    letter-spacing: 0.06em;
    opacity: 0.6;
    color: #2a3a4a;
}

.accent-badge {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: rgba(26, 79, 122, 0.1);
    color: var(--primary);
    padding: 8px 28px;
    border-radius: 4px;
    border: 1px solid rgba(26, 79, 122, 0.08);
    display: inline-block;
}

.accent {
    color: var(--primary);
}

.hero-section .btn-outline-light {
    border: 1px solid rgba(26, 79, 122, 0.15);
    color: var(--primary);
    background: rgba(255, 255, 255, 0.02);
}

.hero-section .btn-outline-light:hover {
    background: rgba(26, 79, 122, 0.06);
    color: var(--primary-dark);
    border-color: var(--primary);
}

.hero-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23f7fafc" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* ===== КАРТОЧКИ КАТЕГОРИЙ ===== */
.category-card {
    background: var(--white);
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 32px -8px rgba(26, 79, 122, 0.08);
}

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

.category-card i {
    font-size: 2.8rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.category-card:hover i {
    transform: scale(1.05);
}

.category-card h5 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    color: #0d1b2a;
    margin-top: 12px;
    margin-bottom: 8px;
}

.category-card p {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1rem;
    line-height: 1.6;
    letter-spacing: 0.02em;
    color: #4a5a6a;
    font-weight: 500;
    margin-bottom: 12px;
}

.category-card .btn-outline-primary {
    border-color: var(--border);
    color: var(--gray);
    transition: all 0.3s ease;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
}

.category-card:hover .btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(26, 79, 122, 0.04);
}

/* ===== КАРТОЧКИ КУРСОВ ===== */
.course-card-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.badge-primary {
    background: var(--primary-gradient);
    color: white;
    font-weight: 500;
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.card-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    color: #0d1b2a;
}

.card-text {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1.05rem;
    line-height: 1.7;
    letter-spacing: 0.02em;
    color: #3a4a5a;
    font-weight: 500;
}

/* ===== ФИЧИ-КАРТОЧКИ ===== */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card .feature-icon {
    width: 52px;
    height: 52px;
    background: rgba(26, 79, 122, 0.06);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.feature-card .feature-icon i {
    font-size: 1.6rem;
    color: var(--primary);
}

.feature-card h5 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
    color: #0d1b2a;
}

.feature-card p {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1rem;
    line-height: 1.6;
    letter-spacing: 0.02em;
    color: #4a5a6a;
    font-weight: 500;
}

.feature-card .badge {
    background: var(--primary-gradient);
    color: white;
    padding: 4px 14px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.7rem;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* ===== СЕКЦИОННЫЕ ЗАГОЛОВКИ ===== */
.section-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    font-size: 2.4rem;
    letter-spacing: 0.03em;
    color: #0d1b2a;
}

.section-subtitle {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1.3rem;
    font-style: italic;
    letter-spacing: 0.04em;
    color: #3a4a5a;
    font-weight: 500;
}

/* ===== ИНФО-КАРТОЧКА В ГЕРОЕ (стекло на светлом фоне) ===== */
.info-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dark);
    opacity: 0.7;
    font-size: 0.85rem;
    padding: 4px 0;
}

.info-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.badge-tag {
    background: rgba(26, 79, 122, 0.06);
    padding: 2px 12px;
    border-radius: 4px;
    font-size: 0.6rem;
    color: var(--primary);
    border: 1px solid rgba(26, 79, 122, 0.04);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 700;
}

/* ===== СТАТИСТИКА ===== */
.stat-number {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    font-size: 2.6rem;
    letter-spacing: 0.03em;
}

.stat-label {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 0.95rem;
    font-style: italic;
    letter-spacing: 0.04em;
    opacity: 0.85;
}

.info-text {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1.05rem;
    font-style: italic;
    letter-spacing: 0.03em;
    line-height: 1.8;
    color: #3a4a5a;
    font-weight: 500;
}

/* ===== КНОПКИ ===== */
.btn-italic {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    font-style: italic;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 40px;
        min-height: 400px;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-region {
        font-size: 1.1rem;
    }

    .hero-icon svg {
        width: 50px;
        height: 50px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .category-card {
        padding: 20px 16px;
    }

    .card.p-4 {
        padding: 20px !important;
    }

    .info-card {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 40px 0 30px;
        min-height: 350px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-region {
        font-size: 0.95rem;
    }

    .accent-badge {
        font-size: 0.65rem;
        padding: 6px 18px;
    }

    .btn-lg {
        font-size: 0.95rem;
        padding: 10px 20px;
    }

    .feature-card .feature-icon {
        width: 44px;
        height: 44px;
    }

    .feature-card .feature-icon i {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-text {
        font-size: 0.95rem;
    }
}