/* ===== ОСНОВНЫЕ СТИЛИ ===== */
* {
    box-sizing: border-box;
}
body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f8f9fa;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ЗАГОЛОВКИ ===== */
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 {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 20px;
}
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}
.logo img {
    max-height: 100px;
    width: auto;
    display: block;
}
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    color: #1a2b4c;
    font-weight: 600;
    font-size: 0.95rem;
}
.logo-sub {
    font-weight: 400;
    font-size: 0.8rem;
    color: #555;
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
}
nav a {
    display: block;
    text-decoration: none;
    color: #1a2b4c;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 0.2s ease;
    white-space: nowrap;
}
nav a:hover {
    background: #f1f3f5;
}

/* ===== ПОДВАЛ ===== */
footer {
    background: #1a2b4c;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}
footer p {
    margin: 0 0 10px;
    font-size: 0.95rem;
}
footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}
footer a:hover {
    color: #c8102e;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0 10px;
}
.social-links a {
    color: #fff;
    font-size: 1.6rem;
    transition: color 0.3s, transform 0.2s;
}
.social-links a:hover {
    color: #c8102e;
    transform: scale(1.1);
}

/* ===== СТРАНИЦЫ ===== */
.page-content {
    padding: 40px 0;
}
.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-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== КАЛЕНДАРЬ СОБЫТИЙ ===== */
.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.85rem;
    }
    .logo-sub {
        font-size: 0.75rem;
    }
}
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 8px;
    }
    .logo a {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 4px;
    }
    .logo-text {
        text-align: center;
        font-size: 0.9rem;
    }
    .logo-sub {
        font-size: 0.75rem;
    }
    nav ul {
        justify-content: center;
        gap: 2px 6px;
    }
    nav a {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
    .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;
    }
}
@media (max-width: 480px) {
    .logo img { max-height: 40px; }
    .logo-text { font-size: 0.8rem; }
    .btn-primary { padding: 10px 20px; font-size: 0.9rem; }
    .container { padding: 0 15px; }
}