/* assets/css/style.css - Стили для портала stop-hepatit.ru */

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Основные стили */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: #2c5aa0;
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.header-main {
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #2c5aa0;
    text-decoration: none;
}

.logo span {
    color: #28a745;
}

.contact-info {
    text-align: right;
}

.contact-info .phone {
    font-size: 18px;
    font-weight: bold;
    color: #2c5aa0;
}

/* Навигация */
.navigation {
    background: #2c5aa0;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s;
}

.nav-menu a:hover {
    background: #1e4080;
}

/* Hero секция */
.hero {
    background: linear-gradient(135deg, #2c5aa0, #28a745);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 90, 160, 0.1);
    z-index: 1;
}

.hero > .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-primary {
    background: #28a745;
    color: #fff;
}

.btn-primary:hover {
    background: #218838;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #2c5aa0;
}

/* Основной контент */
.main-content {
    padding: 40px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.content-section {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.section-title {
    font-size: 24px;
    color: #2c5aa0;
    margin-bottom: 20px;
    border-bottom: 2px solid #28a745;
    padding-bottom: 10px;
}

/* Карточки */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: #2c5aa0;
    margin-bottom: 15px;
}

.card-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

/* Список новостей и статей */
.news-list, .articles-list {
    list-style: none;
}

.news-item, .article-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.news-item:last-child, .article-item:last-child {
    border-bottom: none;
}

.news-item h4, .article-item h4 {
    color: #2c5aa0;
    margin-bottom: 5px;
}

.news-item a, .article-item a {
    text-decoration: none;
    color: #333;
}

.news-item a:hover, .article-item a:hover {
    color: #2c5aa0;
}

.news-date, .article-date {
    font-size: 12px;
    color: #666;
}

/* Боковая панель */
.sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
}

.sidebar h3 {
    color: #2c5aa0;
    margin-bottom: 15px;
    font-size: 18px;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.sidebar li:last-child {
    border-bottom: none;
}

.sidebar a {
    color: #333;
    text-decoration: none;
}

.sidebar a:hover {
    color: #2c5aa0;
}

.emergency-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.emergency-info h4 {
    color: #856404;
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: #28a745;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    padding: 5px 0;
}

.footer-section a {
    color: #bbb;
    text-decoration: none;
}

.footer-section a:hover {
    color: #28a745;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    color: #bbb;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-menu a {
        padding: 10px 15px;
    }
    
    .hero {
        padding: 60px 0;
        min-height: 400px;
    }
    
    .hero > .container > div {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .section-title {
        font-size: 20px;
    }
}

/* Добавить в конец style.css */

/* Мобильное меню - базовые стили */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 5px;
}

.hamburger-container {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

/* Анимация кнопки */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.menu-text {
    font-size: 10px;
    margin-top: 2px;
}

/* Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-overlay.active {
    display: block;
}

/* Мобильные стили */
@media (max-width: 768px) {
    /* Показываем кнопку меню */
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    /* Скрываем обычное меню и делаем его мобильным */
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 280px !important;
        height: 100vh !important;
        background: #2c5aa0 !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        transition: right 0.3s ease !important;
        z-index: 1000 !important;
        padding-top: 60px !important;
        box-shadow: -2px 0 10px rgba(0,0,0,0.3) !important;
        overflow-y: auto !important;
    }
    
    /* Показываем меню когда активно */
    .nav-menu.mobile-active {
        right: 0 !important;
    }
    
    /* Стили элементов меню */
    .nav-menu li {
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    }
    
    .nav-menu a {
        padding: 15px 20px !important;
        display: block !important;
        color: #fff !important;
        text-decoration: none !important;
        border: none !important;
    }
    
    .nav-menu a:hover {
        background: #1e4080 !important;
    }
}