/* Общие настройки */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', sans-serif; line-height: 1.6; color: #1a1a1a; background: #fff; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* HERO SECTION (БАННЕР) */
.hero-section {
    position: relative;
    height: 75vh; /* Высота баннера как на макете */
    min-height: 550px;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
                url('/deti-assets/img/hero-bg.jpg') center/cover no-repeat;
    color: #fff;
    padding-top: 10px;
}

.hero-logo {
    font-size: 28px;
    font-weight: bold;
    font-family: serif;
    margin-bottom: 80px;
}

.hero-content {
    text-align: left; /* Выравнивание влево */
    max-width: 800px;
}

.hero-title {
    font-family: serif;
    font-size: 90px;
    line-height: 1;
    margin-bottom: 25px;
    font-weight: normal;
}

.hero-description {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 30px;
    max-width: 480px;
    opacity: 0.95;
}

.btn-hero {
    display: inline-block;
    background: #1a1a1a;
    color: #fff;
    padding: 20px 55px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.3s;
}

/* SUB NAVIGATION (ПЛИТКИ) */
.sub-nav {
    background: #fff;
    padding: 40px 0; /* Белое пространство между баннером и контентом */
}

.nav-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.nav-tile {
    height: 75px; /* Уменьшенная высота кнопок */
    display: flex;
    align-items: center;
    padding-left: 30px; /* Текст слева */
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: opacity 0.3s;
}

.tile-green { background: #142e1d; color: #fff; }
.tile-gray { background: #e0e0e0; color: #1a1a1a; }
.nav-tile:hover { opacity: 0.9; }

/* КАЛЕНДАРЬ */
.calendar-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; padding: 60px 0; }
.section-title { font-family: serif; font-size: 42px; margin-bottom: 30px; }
.cup-card { border: 1px solid #eee; padding: 40px; }
.year-display { font-size: 70px; font-family: serif; font-weight: bold; line-height: 1; margin-bottom: 25px; }
.step-row { background: #052c16; color: #fff; display: flex; justify-content: space-between; padding: 15px 20px; margin-bottom: 8px; font-size: 14px; }

.programs-section {
    padding: 80px 20px;
}

.programs-intro {
    max-width: 900px;
    margin-bottom: 50px;
    font-size: 16px;
    line-height: 1.4;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.program-card {
    display: flex;
    flex-direction: column;
    background: #052c16; /* Темно-зеленый фон карточки */
    color: #fff;
}

.card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-badge {
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 1px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.card-content h3 {
    font-family: serif;
    font-size: 24px;
    margin-bottom: 5px;
}

.card-subtitle {
    font-size: 14px;
    opacity: 0.6;
    margin-bottom: 20px;
}

.card-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.card-price {
    font-weight: bold;
    margin-bottom: 5px;
}

.card-membership {
    font-size: 14px;
    margin-bottom: 20px;
}

.card-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    flex-grow: 1;
}

.card-features li {
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.card-features li::before {
    content: "✓";
    margin-right: 10px;
    font-weight: bold;
}

.btn-more {
    background: #fff;
    color: #052c16;
    text-align: center;
    padding: 15px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-more:hover {
    background: #f0f0f0;
}

/* Мобильная версия */
@media (max-width: 992px) {
    .programs-grid {
        grid-template-columns: 1fr;
    }
}

.register-section {
        padding: 80px 20px;
        /* Установка фонового изображения из папки img */
        background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                    url('/deti-assets/img/footer.jpg') center/cover no-repeat;
        color: #fff;
        display: flex;
        align-items: center;
    }

    /* Стили для "стеклянных" полей ввода */
    .register-form input,
    .register-form select {
        padding: 15px;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: #fff;
        border-radius: 4px;
        backdrop-filter: blur(5px); /* Легкое размытие для эффекта стекла */
    }

.register-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 200px;
    align-items: center;
}

.register-text h2 { font-size: 42px; margin-bottom: 10px; }
.register-text h3 { font-size: 28px; font-weight: 400; margin-bottom: 20px; }
.phone-number { font-size: 24px; font-weight: bold; }

/* Форма */
.register-form { display: flex; flex-direction: column; gap: 15px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.register-form input,
.register-form select {
    padding: 15px;
    background: rgba(255, 255, 255, 0.15); /* Эффект прозрачности */
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 4px;
}

.register-form input::placeholder { color: #ccc; }
.register-form select { color: #fff; cursor: pointer; }
.register-form select option { color: #333; }

.btn-submit {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 15px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-submit:hover { background: #000; }


.results-section {
    padding: 60px 20px;
}

.section-serif-title {
    font-family: serif; /* Использование антиквы как на макете */
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 40px;
    color: #1a1a1a;
}

.table-container {
    width: 100%;
    overflow-x: auto; /* Для корректного отображения на мобильных */
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: #1a1a1a;
}

/* Шапка таблицы */
.results-table thead th {
    background-color: #052c16; /* Темно-зеленый фон из макета */
    color: #ffffff;
    text-align: left;
    padding: 20px 25px;
    font-weight: 500;
    white-space: nowrap;
}

/* Стили строк */
.results-table tbody td {
    padding: 25px 25px;
    border-bottom: 1px solid #ffffff; /* Тонкая полоса между строками */
}

/* Чередование цветов строк как на картинке */
.results-table tbody tr:nth-child(odd) {
    background-color: #f7f8f7; /* Светло-серый фон первой строки */
}

.results-table tbody tr:nth-child(even) {
    background-color: #ffffff; /* Белый фон второй строки */
}

/* Выравнивание прочерка по центру */
.text-center {
    text-align: center;
    width: 80px;
}

/* Жирный шрифт для текстовых заглушек, если нужно как на макете */
.results-table tbody td:not(:first-child):not(:last-child) {
    font-weight: 600;
}

/* Адаптивность */
@media (max-width: 768px) {
    .section-serif-title {
        font-size: 32px;
    }

    .results-table {
        font-size: 12px;
    }
}


/* Футер */
.main-footer {
    background: #1a1a1a;
    color: #888;
    padding: 30px 20px;
    text-align: left;
    font-size: 14px;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .register-wrapper { grid-template-columns: 1fr; gap: 30px; }
    .register-text { text-align: center; }
    .form-row { grid-template-columns: 1fr; }
}
/* Адаптивность */
@media (max-width: 992px) {
    .hero-title { font-size: 55px; }
    .calendar-grid, .register-wrapper { grid-template-columns: 1fr; }
    .nav-tiles { grid-template-columns: 1fr; }
}




/* Базовые стили модального окна — ИСПРАВЛЕНО */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px; /* Отступ от краев экрана на мобильных */
}

.modal-container {
    background: #fff;
    width: 100%;
    max-width: 900px; /* Немного уменьшили для компактности */
    max-height: 90vh; /* Окно не выше 90% экрана */
    position: relative;
    display: flex;
    flex-direction: column; /* Чтобы шапка и футер были фиксированы */
    overflow: hidden; /* Обрезаем лишнее, чтобы работала внутренняя прокрутка */
}

/* Шапка модального окна — КОМПАКТНЕЕ */
.modal-header {
    background: #052c16;
    color: #fff;
    padding: 20px 30px; /* Было 30px 40px */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0; /* Шапка не сжимается */
}

.modal-header h2 { font-family: serif; font-size: 24px; }

.modal-header-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.module-counter {
    font-size: 12px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-arrow {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s;
}

.nav-arrow:hover {
    background: #fff;
    color: #052c16;
}

.modal-close {
    background: none; border: none;
    color: #fff; cursor: pointer;
    font-size: 14px;
    opacity: 0.8;
    margin-left: 10px;
    white-space: nowrap;
}
.modal-close:hover { opacity: 1; }

/* Тело окна — С ПРОКРУТКОЙ */
.modal-body {
    padding: 10px;
    overflow-y: auto; /* Включает прокрутку, если контента много */
    flex-grow: 1;
}

.modal-slides {
    position: relative;
    width: 100%;
}

.modal-slide {
    display: none;
}

.modal-slide.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-subtitle { margin-bottom: 20px; font-weight: bold; opacity: 0.7; font-size: 14px; }

.modal-subtitle { margin-bottom: 10px; font-weight: bold; opacity: 0.7; font-size: 14px; }

.modal-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Даем больше места тексту */
    gap: 20px;
    border: 1px solid #eee;
}

.module-card { padding: 5px; position: relative; }
.module-header { display: flex; justify-content: space-between; margin-bottom: 15px; }
.module-header h3 { font-family: serif; font-size: 22px; border-bottom: 1px solid #000; }

/* Уменьшили гигантскую цифру */
.module-number {
    font-size: 60px;
    font-weight: bold;
    color: #f6f6f6;
    position: absolute;
    right: 15px;
    top: 5px;
    z-index: -1;
}

.module-list { list-style: none; }
.module-list li { margin-bottom: 12px; font-size: 13px; line-height: 1.4; }

.module-image { position: relative; background: #f9f9f9; }
.module-image img { width: 90%; height: 90%; object-fit: cover; display: block; }

.next-module {
    position: absolute;
    right: -20px; top: 50%;
    transform: translateY(-50%);
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #052c16; color: #fff;
    border: none; cursor: pointer;
    z-index: 10;
}

/* Футер — ФИКСИРОВАННЫЙ */
.modal-footer {
    background: #1a1a1a;
    padding: 15px;
    text-align: center;
    flex-shrink: 0;
}
.btn-modal-action { color: #fff; text-decoration: none; font-weight: bold; font-size: 14px; }

.modal-overlay.active {
    display: flex !important;
}

/* Адаптация модалки под маленькие экраны */
@media (max-width: 768px) {
    .modal-content-grid { grid-template-columns: 1fr; }
    .module-image { display: none; } /* Скрываем картинку на мобильных для экономии места */
    .modal-body { padding: 20px; }
}
