/* ===== CATALOG PAGE STYLES ===== */

/* Hero секция каталога с фоновым изображением */
.catalog-hero {
    position: relative;
    background-image: url('/images/mainbg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 20px 70px;
    text-align: center;
    isolation: isolate;
}

/* Затемняющий слой для читаемости текста */
.catalog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 0;
}

/* Контент поверх затемнения */
.catalog-hero .badge,
.catalog-hero h1,
.catalog-hero p {
    position: relative;
    z-index: 1;
}

/* Стили для заголовка */
.catalog-hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
    color: #ffffff;
}

/* Стили для подзаголовка */
.catalog-hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Бейдж на тёмном фоне */
.catalog-hero .badge {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    backdrop-filter: blur(4px);
    margin-bottom: 24px;
}

/* Секция категорий */
.categories-section {
    padding: 40px 20px 60px;
    background: var(--bg-secondary);
}

/* Сетка категорий - 3 колонки */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Карточка категории */
.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 32px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 159, 0, 0.3);
    box-shadow: var(--shadow-hover);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: var(--orange-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--orange);
}

.category-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.category-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--orange);
}

/* Список курсов */
.courses-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.course-item {
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 16px;
    transition: all 0.2s;
}

.course-item:hover {
    background: var(--orange-light);
    transform: translateX(4px);
}

.course-item a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 14px;
}

.course-icon {
    width: 44px;
    height: 44px;
    background: var(--orange-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    font-size: 20px;
    flex-shrink: 0;
}

.course-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.course-info p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Соцсети в футере */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.footer-social a:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.footer-social img {
    width: 32px;
    height: 32px;
    display: block;
}

/* Уведомление о переходе в мессенджеры */
.disclaimer-notice {
    text-align: center;
    padding: 20px 0;
    margin: 20px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.disclaimer-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.disclaimer-text strong {
    color: var(--orange);
    font-weight: 600;
}

.disclaimer-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 24px;
}

.disclaimer-links a {
    color: var(--orange);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s;
}

.disclaimer-links a:hover {
    text-decoration: underline;
}

/* Адаптив для уведомления */
@media (max-width: 600px) {
    .disclaimer-notice {
        padding: 16px 0;
        margin: 16px 0;
    }
    
    .disclaimer-links {
        gap: 16px;
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .category-card {
        padding: 24px 20px;
    }
    
    .catalog-hero {
        padding: 50px 20px 40px;
    }
    
    .catalog-hero h1 {
        font-size: 28px;
    }
    
    .catalog-hero p {
        font-size: 16px;
    }
    
    .modal-content {
        padding: 24px;
    }
    
    .footer-social {
        gap: 20px;
    }
    
    .footer-social img {
        width: 28px;
        height: 28px;
    }    
}