/* ===== ОСНОВНЫЕ СТИЛИ ===== */
* {
    box-sizing: border-box;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f8f9fa;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;

    /* Растягиваем сайт на весь экран */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

main {
    flex: 1;
    width: 100%;

    /* УВЕЛИЧИВАЕМ ОТСТУП СВЕРХУ (ставим 190px или 200px) */
    padding-top: 1px !important;
}

/* ===== ЗАГОЛОВКИ ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: #1a2b4c;
}

/* ===== КНОПКИ ===== */
.btn-primary {
    display: inline-block;
    background: #c8102e;
    color: #fff;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: #a00c24;
    transform: translateY(-2px);
}
.btn-primary:active {
    transform: translateY(0);
}

/* ===== ШАПКА (фиксированная при прокрутке) ===== */
header {
    /* МЕНЯЕМ ABSOLUTE НА FIXED */
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}
header.hidden {
    transform: translateY(-110%);
    opacity: 0;
}
header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* ===== ЛОГОТИП ===== */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}
.logo img {
    max-height: 50px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    color: #1a2b4c !important; /* Темно-синий цвет */

    /* МЕНЯЕМ ШРИФТ И РАЗМЕР */
    font-family: 'Times New Roman', Times, serif !important;
    font-size: 1.4rem !important; /* Увеличили размер до 1.4rem (было 1rem) */
    font-weight: bold !important; /* Сделали жирным для выразительности */

    text-shadow: none !important;
}

.logo-sub {
    font-weight: 400;

    /* МЕНЯЕМ ШРИФТ И РАЗМЕР ДЛЯ ПОДЗАГОЛОВКА */
    font-family: 'Times New Roman', Times, serif !important;
    font-size: 1rem !important; /* Увеличили размер до 1rem (было 0.8rem) */

    color: #555555 !important;
    text-shadow: none !important;
}

/* ===== НАВИГАЦИЯ (горизонтальная, выпуклая) ===== */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
}
nav a {
    display: block;
    text-decoration: none;
    color: #8d068d !important; /* Белый текст */

    /* ПОЛНОСТЬЮ УБИРАЕМ ФОН И РАМКИ */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;

    font-weight: 700;
    font-size: 1rem;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8) !important; /* Тень для текста */
    white-space: nowrap;
}

/* Оставляем легкий эффект только при наведении мышки, чтобы было понятно, что это ссылки */
nav a:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px);
    color: #000000 !important;
}
nav a::after {
    display: none;
}

/* ===== ПОДВАЛ ===== */
footer {
    background: #1a2b4c;
    color: #fff;
    text-align: center;
    padding: 30px 20px; /* Добавили 20px отступа слева и справа */
    margin-top: auto;
    width: 100%;
}
footer p {
    margin: 0 auto 10px; /* Центрируем сам текст */
    font-size: 0.95rem;
    max-width: 1200px; /* Ограничиваем ширину текста, чтобы он не растягивался на огромных мониторах */
}
footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}
footer a:hover {
    color: #c8102e;
}

/* ===== СТРАНИЦЫ ===== */
.page-content {
    padding: 40px 20px; /* 20px — это отступы слева и справа */
    max-width: 1200px; /* Ограничиваем максимальную ширину текста */
    margin: 0 auto; /* Центрируем блок на экране */
}
.page-content h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}
.page-content h2 {
    font-size: 1.8rem;
    margin: 30px 0 15px;
}
.page-content p {
    margin-bottom: 15px;
}
.page-content ul, .page-content ol {
    margin: 10px 0 20px 25px;
}
.page-content li {
    margin-bottom: 5px;
}
.page-content pre {
    background: #f1f1f1;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.9rem;
}

/* ===== КАРТОЧКИ ===== */
.feature-card,
.activity-item,
.help-block,
.news-item {
    background: #fff;
    padding: 20px 25px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover,
.activity-item:hover,
.help-block:hover,
.news-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.news-item .date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.news-item h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

/* ===== ВИДЕОБЛОК ===== */
.video-block {
    padding: 40px 0; /* Оставляем серый фон на всю ширину экрана */
    background: #f8f9fa;
}
.video-block h2 {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 20px; /* Чтобы заголовок не прилипал к краям на телефонах */
}
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;

    /* ДОБАВЛЯЕМ ВОТ ЭТИ СТРОКИ, ЧТОБЫ ОТЦЕНТРИРОВАТЬ ВИДЕО: */
    max-width: 1200px; /* Максимальная ширина контента */
    margin: 0 auto;    /* Центрируем сетку на экране */
    padding: 0 20px;   /* Боковые отступы для мобильных */
}

/* ===== КАЛЕНДАРЬ СОБЫТИЙ ===== */
.events-block {
    padding: 40px 0;
    background: #fff;
}
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}
.event-card {
    display: flex;
    gap: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #c8102e;
    align-items: flex-start;
}
.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    background: #1a2b4c;
    color: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    text-align: center;
    flex-shrink: 0;
}
.event-date .day {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}
.event-date .month {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.event-info {
    flex: 1;
}
.event-info h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
}
.event-desc {
    font-size: 0.95rem;
    color: #555;
    margin: 0 0 8px;
}
.event-time,
.event-place {
    display: inline-block;
    font-size: 0.85rem;
    color: #666;
    margin-right: 15px;
}
.event-time i,
.event-place i {
    margin-right: 4px;
}
.events-more {
    text-align: center;
    margin-top: 30px;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 992px) {
    .logo-text {
        font-size: 0.9rem;
    }
    .logo-sub {
        font-size: 0.75rem;
    }
}
@media (max-width: 768px) {
    header {
        padding: 8px 0;
        background: rgba(255,255,255,0.9);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    header .container {
        gap: 6px;
    }
    .logo a {
        gap: 8px;
    }
    .logo img {
        max-height: 40px;
    }
    .logo-text {
        font-size: 0.85rem;
    }
    .logo-sub {
        font-size: 0.7rem;
    }
    nav ul {
        gap: 4px 6px;
    }
    nav a {
        font-size: 0.8rem;
        padding: 4px 10px;
        border-radius: 6px;
        background: rgba(255,255,255,0.3);
        border: 1px solid rgba(255,255,255,0.4);
    }
    nav a:hover {
        background: rgba(255,255,255,0.7);
    }
    .page-content h1 {
        font-size: 1.8rem;
    }
    .page-content h2 {
        font-size: 1.5rem;
    }
    .events-grid {
        grid-template-columns: 1fr;
    }
    .event-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        border-left: none;
        border-top: 4px solid #c8102e;
    }
    .event-date {
        flex-direction: row;
        gap: 12px;
        padding: 6px 18px;
    }
    .videos-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .logo img {
        max-height: 35px;
    }
    .logo-text {
        font-size: 0.75rem;
    }
    nav a {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    .btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .container {
        padding: 0 15px;
    }
}



/* 1. УВЕЛИЧИВАЕМ ВЫСОТУ КАРТИНКИ */
.hero-slider {
    /* 75vh означает 75% от высоты экрана.
       Хочешь еще больше? Поменяй на 80vh или 90vh */
    height: 75vh !important;
    min-height: 500px !important;
    position: relative !important;
    margin-bottom: 0 !important; /* Убираем возможный отступ снизу */
}

/* 2. ЗАСТАВЛЯЕМ ВНУТРЕННИЕ БЛОКИ ЗАПОЛНИТЬ ВСЮ ВЫСОТУ */
.slider-container,
.slides,
.slide {
    height: 100% !important;
    width: 100% !important;
}

/* 3. НАСТРАИВАЕМ КАРТИНКУ */
.slide {
    background-size: cover !important;
    /* На скриншоте видно, что верхняя часть голов обрезалась.
       Значение "center 20%" опускает акцент чуть ниже, чтобы лица было видно лучше.
       Можешь попробовать center 10% или center top */
    background-position: center 20% !important;
}

/* 4. ПРИЖИМАЕМ ВИДЕОБЛОК БЛИЖЕ К КАРТИНКЕ */
.video-block {
    padding-top: 100px !important; /* Уменьшаем отступ сверху у видео */
    margin-top: 0 !important;
}

/* 1. УВЕЛИЧИВАЕМ ВЫСОТУ КАРТИНКИ */
.hero-slider {
    /* 75vh означает 75% от высоты экрана.
       Хочешь еще больше? Поменяй на 80vh или 90vh */
    height: 100vh !important;
    min-height: 500px !important;
    position: relative !important;
    margin-bottom: 0 !important; /* Убираем возможный отступ снизу */
}

/* 2. ЗАСТАВЛЯЕМ ВНУТРЕННИЕ БЛОКИ ЗАПОЛНИТЬ ВСЮ ВЫСОТУ */
.slider-container,
.slides,
.slide {
    height: 100% !important;
    width: 100% !important;
}

/* 3. НАСТРАИВАЕМ КАРТИНКУ */
.slide {
    background-size: cover !important;
    /* На скриншоте видно, что верхняя часть голов обрезалась.
       Значение "center 20%" опускает акцент чуть ниже, чтобы лица было видно лучше.
       Можешь попробовать center 10% или center top */
    background-position: center 20% !important;
}

/* 4. ПРИЖИМАЕМ ВИДЕОБЛОК БЛИЖЕ К КАРТИНКЕ */
.video-block {
    padding-top: 30px !important; /* Уменьшаем отступ сверху у видео */
    margin-top: 0 !important;
}

/* Говорим внутренним контейнерам занять всю высоту */
.slider-container,
.slides {
    height: 100% !important;
    width: 100% !important;
}
/* Контейнер для картинок */
.gallery-row {
    display: flex;
    gap: 20px; /* Расстояние между картинками */
    margin-bottom: 20px;
    flex-wrap: wrap; /* Разрешаем перенос на телефонах */
    align-items: flex-start; /* Выравниваем по верхнему краю */
}

/* Стили для картинок внутри этого контейнера */
.gallery-img {
    flex: 1 1 calc(50% - 10px); /* Каждая картинка занимает ровно половину ширины минус отступ */
    max-width: 200px; /* Максимальная ширина, чтобы на больших экранах не были огромными */
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}