/* Основные переменные */
:root {
    --primary-color: #005792;
    --secondary-color: #00204a;
    --accent-color: #00b2ca;
    --light-color: #f6f9fc;
    --text-color: #333;
}

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    background: var(--light-color);
    color: var(--text-color);
}

/* Header и навигация */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.8rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
}



        .nav-menu {
            display: flex;
            list-style: none;
        }

        .nav-item {
            position: relative;
            margin-left: 2rem;
        }

        .nav-link {
            text-decoration: none;
            color: #333;
        }

        .dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            background: white;
            padding: 1rem;
            min-width: 200px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            display: none;
        }

        .nav-item:hover .dropdown {
            display: block;
        }

        .dropdown-item {
            display: block;
            padding: 0.5rem 0;
            text-decoration: none;
            color: #333;
        }

/* Слайдер */
.slider {
    margin-top: 80px;
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,32,74,0.7);
    z-index: 1;
}

.slide-text {
    position: relative;
    z-index: 2;
    max-width: 800px;
    font-size: 1.8rem;
    line-height: 1.4;
    font-weight: 300;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.slide.active {
    opacity: 1;
}

/* Секции */
.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 1rem auto;
    border-radius: 2px;
}

/* Карточки продуктов */
.products-grid, .products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-content {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Кнопки */
.button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.button:hover {
    background: var(--accent-color);
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.footer-links {
    list-style: none;
}

.footer-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    margin-bottom: 0.8rem;
    display: block;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* Мобильное меню */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 2px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Медиа-запросы */
@media (max-width: 768px) {
	
	
    .product-hero h1 {
        font-size: 2rem;
    }
    
    .product-subtitle {
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        flex-direction: column;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        margin: 0.8rem 0;
    }



    .dropdown {
        position: static;
        display: none;
        background: white; /* Непрозрачный белый фон */
        box-shadow: none;
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 8px;
        background: #f6f9fc; /* Светлый фон для отличия от основного меню */
    }

    .nav-item:hover .dropdown {
        display: block;
    }

    .dropdown-item {
        padding: 0.8rem 1rem;
        border-radius: 4px;
        background: white; /* Белый фон для пунктов */
        margin-bottom: 0.5rem; /* Отступ между пунктами */
    }


}


    .slide-text {
        font-size: 1.4rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: 4rem 1.5rem;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.product-page {
    margin-top: 80px;
    background: white;
}

.product-hero {
    position: relative;
    height: 400px;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.product-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.product-hero-content {
    position: relative;
    z-index: 2;
}

.product-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.product-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
}

.product-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.product-content-wrapper section {
    margin-bottom: 3rem;
}

.product-content-wrapper h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.product-content-wrapper ul {
    list-style: none;
    padding-left: 1.5rem;
}

.product-content-wrapper ul li {
    position: relative;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.product-content-wrapper ul li::before {
    content: "•";
    color: var(--accent-color);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -0.2rem;
}

.product-warning {
    background: #fff8f8;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #ff4444;
}

/* Стили для страницы О нас */
.about-page {
    margin-top: 80px;
}

.about-hero {
    position: relative;
    height: 400px;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

.about-hero-content {
    position: relative;
    z-index: 2;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.about-section {
    margin-bottom: 4rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-section h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
}

/* Временная шкала */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline-item {
    margin-bottom: 2rem;
    padding-left: 2rem;
    border-left: 3px solid var(--accent-color);
}

.timeline-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Сетки для разделов */
.facilities-grid,
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.facility-item,
.achievement-item {
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 8px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 2rem;
    }

    .about-section {
        padding: 1.5rem;
    }
}

/* Стили страницы новостей */
.news-page {
    margin-top: 80px;
    background: var(--light-color);
}

.news-hero {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.news-hero h1 {
    font-size: 2.5rem;
}

.news-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Фильтры */
.news-filters {
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    background: white;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Сетка новостей */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.news-category {
    color: var(--accent-color);
    font-weight: 500;
}

.news-card h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.news-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a, .pagination span {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color);
}

.pagination a.active {
    background: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .news-filters {
        justify-content: center;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}