/* ========== БАЗОВЫЕ СТИЛИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #14261C;
    background-color: #F4F6F4;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== УТИЛИТЫ ========== */
.text-center { text-align: center; }
.text-white { color: #fff; }
.bg-dark { background-color: #14261C; }
.bg-light { background-color: #F4F6F4; }
.bg-white { background-color: #fff; }

/* ========== КНОПКИ ========== */
.btn {
    display: inline-block;
    padding: 14px 22px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border: 2px solid #e20000;
    color: #e20000;
    background: transparent;
    transition: all 0.3s;
    cursor: pointer;
}

.btn:hover {
    background: #e20000;
    color: #fff;
}

.btn-xl {
    padding: 16px 40px;
    font-size: 15px;
}

/* ========== ШАПКА ========== */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: transparent;
    padding: 20px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 60px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: #e20000;
}

.phone-header {
    color: #fff;
}

.phone-header p {
    font-size: 14px;
    margin-bottom: 5px;
}

.phone-header a {
    color: #e20000;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* ========== ЗАГОЛОВОК СТРАНИЦЫ ========== */
.page-header {
    background: linear-gradient(rgba(20,38,28,0.9), rgba(20,38,28,0.9)), url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOTIwIiBoZWlnaHQ9IjQwMCI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0iIzE0MjYxQyIvPjwvc3ZnPg==');
    background-size: cover;
    padding: 150px 0 60px;
    margin-bottom: 40px;
    color: #fff;
}

.page-header h1 {
    font-size: 64px;
    font-weight: 500;
    font-family: 'Heebo', sans-serif;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    max-width: 600px;
}

.divider {
    width: 80px;
    height: 4px;
    background: #e20000;
    margin: 20px 0;
}

/* ========== СЕКЦИИ ========== */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 20px;
    font-family: 'Heebo', sans-serif;
}

.section-subtitle {
    color: #4E5652;
    margin-bottom: 30px;
}

/* ========== ВИДЕО СЕТКА ========== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.video-item video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.video-grid:last-child {
    margin-top: 10px;
}

/* ========== РАЗДЕЛИТЕЛЬ ========== */
.separator {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 20px 0;
}

/* ========== СЕТКА СТАТЕЙ ========== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.post-content {
    padding: 25px;
}

.post-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #14261C;
}

.post-title a {
    text-decoration: none;
    color: inherit;
}

.post-title a:hover {
    color: #e20000;
}

.post-excerpt {
    color: #4E5652;
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    color: #e20000;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.read-more:hover {
    text-decoration: underline;
}

/* ========== ЗАГЛУШКА ДЛЯ СТАТЕЙ ========== */
.post-card.placeholder {
    background: #f9f9f9;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.placeholder-content {
    text-align: center;
    padding: 20px;
}

.placeholder-icon {
    font-size: 60px;
    color: #aaa;
    margin-bottom: 20px;
}

.placeholder-title {
    color: #777;
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 700;
}

.placeholder-text {
    color: #999;
}

/* ========== КОНТАКТНАЯ СЕКЦИЯ ========== */
.contact-section {
    background: #14261C;
    color: #ffffff;
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-right-block {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    color: #14261C;
}

.contact-right-block h3 {
    font-size: 28px;
    margin-bottom: 20px;
    font-family: 'Heebo', sans-serif;
}

.about-divider {
    width: 60px;
    height: 3px;
    background: #e20000;
    margin: 20px 0;
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-info i {
    color: #e20000;
    width: 25px;
    margin-right: 10px;
}

.contact-info a {
    color: #14261C;
    text-decoration: none;
    border-bottom: 1px dashed #e20000;
}

.contact-info a:hover {
    color: #e20000;
}

.phone-large {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.phone-large small {
    font-size: 14px;
    color: #4E5652;
    margin-bottom: 5px;
    display: block;
}

.phone-large a {
    font-size: 32px;
    font-weight: 700;
    color: #14261C;
    text-decoration: none;
    letter-spacing: 1px;
}

.contact-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-btn {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.contact-btn.call {
    background: #e20000;
    border-color: #e20000;
    color: #ffffff;
}

.contact-btn.call:hover {
    background: transparent;
    color: #e20000;
}

.contact-btn.whatsapp {
    background: #25D366;
    border-color: #25D366;
    color: #ffffff;
}

.contact-btn.whatsapp:hover {
    background: transparent;
    color: #25D366;
}

.contact-btn.telegram {
    background: #0088cc;
    border-color: #0088cc;
    color: #ffffff;
}

.contact-btn.telegram:hover {
    background: transparent;
    color: #0088cc;
}

.working-hours {
    margin-top: 30px;
    font-size: 14px;
    color: #4E5652;
    text-align: center;
}

.working-hours i {
    color: #e20000;
    margin-right: 5px;
}

/* ========== ФУТЕР ========== */
.footer {
    background: #14261C;
    color: #fff;
    padding: 0 0 20px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #4E5652;
    margin-top: 40px;
}

.copyright {
    color: #ffffff;
    font-size: 14px;
}

.developer {
    color: #ffffff;
    font-size: 14px;
}

.developer a {
    color: #e20000;
    text-decoration: none;
    border-bottom: 1px solid #e20000;
}

.developer a:hover {
    border-bottom: 2px solid #e20000;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        margin-top: 20px;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .page-header h1 {
        font-size: 40px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-buttons {
        flex-direction: column;
    }
    
    .contact-btn {
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ========== ИСПРАВЛЕНИЕ ДЛЯ МОБИЛЬНОГО МЕНЮ ========== */
@media (max-width: 768px) {
    /* Увеличиваем отступ сверху для hero-секции, чтобы она не наезжала на шапку */
    .hero-section {
        padding-top: 100px; /* Добавляем отступ сверху */
        min-height: calc(100vh - 20px); /* Немного уменьшаем высоту */
    }
    
    /* Фиксируем шапку при открытом меню */
    .site-header {
        position: fixed;
        background: rgba(20, 38, 28, 0.95); /* Добавляем фон при фиксации */
        backdrop-filter: blur(5px); /* Эффект размытия */
        padding: 10px 0;
        z-index: 1000;
    }
    
    /* Стили для открытого меню */
    .main-nav.active {
        display: block;
        position: fixed;
        top: 80px; /* Отступ от шапки */
        left: 0;
        right: 0;
        background: #14261C;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
        z-index: 999;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    /* Затемнение фона при открытом меню */
    body.menu-open {
        overflow: hidden;
    }
    
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 998;
        pointer-events: none;
    }
    
    /* Отступ для hero-контента */
    .hero-content {
        padding-top: 20px;
    }
    
    /* Уменьшаем размер заголовка на мобильных */
    .hero-title {
        font-size: 36px !important;
    }
    
    .hero-text {
        font-size: 16px;
    }
    
    .hero-phone a {
        font-size: 20px;
    }
    
    /* Корректировка для страницы СМИ */
    .page-header {
        padding-top: 120px; /* Увеличиваем отступ сверху */
    }
}