/* ===== ОСНОВНАЯ ЦВЕТОВАЯ ПАЛИТРА ===== */
:root {
    /* Основные цвета */
    --primary-green: #2E8B57;        /* Морская зелень - здоровье, природа */
    --primary-blue: #4682B4;          /* Стальной синий - доверие, медицина */
    --accent-teal: #20B2AA;           /* Морская волна - свежесть, баланс */
    
    /* Нейтральные цвета */
    --dark-text: #2C3E50;             /* Темно-синий для текста */
    --light-text: #5D6D7E;            /* Серо-синий для второстепенного текста */
    --background: #F8F9FA;            /* Светлый фон */
    --white: #FFFFFF;
    --border: #E5E7EB;
    
    /* Дополнительные акцентные цвета */
    --success: #27AE60;               /* Успех, здоровье */
    --warning: #F39C12;               /* Внимание, важное */
    --info: #3498DB;                  /* Информация */
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    --gradient-light: linear-gradient(135deg, #E8F4F8, #F0F8F0);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== ОБНОВЛЕННЫЙ ХЕДЕР ===== */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--white);
    box-shadow: 0 2px 20px rgba(46, 139, 87, 0.1);
    border-bottom: 3px solid var(--primary-green);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Стиль для лого-ссылки */
.logo-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.logo-link:hover,
.logo-link:focus {
    text-decoration: none;
    color: inherit;
}

.logo-link h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.logo-link:hover h1 {
    transform: scale(1.02);
}

.logo-link p {
    color: var(--light-text);
    font-size: 0.95rem;
    font-weight: 400;
    margin: 0;
}

/* Навигация */
.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-nav a {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav a:hover {
    color: var(--primary-green);
    background: var(--gradient-light);
    transform: translateY(-2px);
}

.main-nav a:active {
    color: var(--primary-blue);
}

.main-nav a:active {
    color: var(--primary-blue);
}

/* Активный пункт меню */
.main-nav a.active {
    background: var(--gradient-primary);
    color: var(--white) !important;
}

/* ===== ГЕРОЙ-СЛАЙДЕР ===== */
.hero-slider {
    background: var(--gradient-light);
    padding: 120px 20px 60px;
    margin-top: 80px;
}

.slider-container {
    position: relative;
    overflow: hidden;
}

.slider-content {
    min-height: 400px;
    position: relative;
}

.slide-title {
    font-size: 2rem !important;
    line-height: 1.3 !important;
    margin-bottom: 1rem !important;
}

.slide-description {
    font-size: 1.1rem !important;
    line-height: 1.5 !important;
}

.slide {
    display: flex;
    gap: 40px;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.slide-image img {
    height: 100%;
    object-fit: cover;
}

.slide-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.slide:hover .slide-image img {
    transform: scale(1.05);
}

.slide-content {
    flex: 1;
    color: var(--dark-text);
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--light-text);
    line-height: 1.6;
}

.slide-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--light-text);
}

.slide-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.slide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 139, 87, 0.3);
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 1rem;
}

.slider-btn {
    background: rgba(46, 139, 87, 0.9);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--primary-green);
    transform: scale(1.1);
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.slide.next {
    transform: translateX(100%);
}

.slide.slide-in {
    transform: translateX(0);
    opacity: 1;
}

.slide.slide-out {
    transform: translateX(-100%);
    opacity: 0;
}

.article-title,
.slide-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-excerpt,
.slide-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== ОСНОВНЫЕ СЕКЦИИ ===== */
section {
    padding: 60px 20px;
}

.featured-articles {
    background-color: var(--white);
    text-align: center;
}

.categories-overview {
    background-color: var(--background);
    text-align: center;
}

.stats {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.about {
    background-color: var(--white);
    text-align: center;
}

.subscribe {
    background-color: var(--background);
    text-align: center;
    padding: 40px 20px;
}

/* ===== КАРТОЧКИ СТАТЕЙ ===== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.article-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(46, 139, 87, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(46, 139, 87, 0.2);
}

.article-image {
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 25px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.article-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--dark-text);
    line-height: 1.3;
}

.article-excerpt {
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 15px;
}

.article-category {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
}

.read-more {
    display: inline-block;
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--primary-green);
    text-decoration: underline;
    transform: translateX(5px);
}

/* ===== КАТЕГОРИИ ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(46, 139, 87, 0.1);
    border-left: 5px solid var(--primary-green);
    transition: all 0.3s ease;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(46, 139, 87, 0.2);
}

.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary) !important;
    color: var(--white);
}

.category-card h3 {
    color: var(--dark-text);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.category-card p {
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.category-stats {
    display: flex;
    justify-content: space-between;
    margin: 1.5rem 0;
    color: var(--light-text);
    font-size: 0.9rem;
}

.category-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.category-link:hover {
    color: var(--primary-green);
    text-decoration: underline;
    transform: translateX(5px);
}

/* ===== СТАТИСТИКА ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    color: var(--white);
}

/* ===== СТРАНИЦА СТАТЬИ ===== */
.article-page {
    background: var(--background);
    min-height: 100vh;
    padding-top: 100px;
}

.article-page .container {
    background: var(--white);
    border-radius: 20px;
    margin: 2rem auto;
    box-shadow: 0 10px 30px rgba(46, 139, 87, 0.1);
    overflow: hidden;
}

/* Хлебные крошки */
.breadcrumbs {
    background: var(--background);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--light-text);
}

.breadcrumbs a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

/* Мета-информация статьи */
.article-meta-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
    padding: 0 2rem;
}

.article-category {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.4rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.article-rating-badge {
    color: #FFD700;
    font-weight: 700;
    background: rgba(255, 215, 0, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 25px;
}

.article-read-time,
.article-date {
    color: var(--light-text);
    background: var(--background);
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-weight: 500;
}

/* Заголовок и введение */
.blog-title {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark-text);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0 2rem;
}

.blog-intro {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--light-text);
    margin-bottom: 2rem;
    font-weight: 400;
    padding: 0 2rem;
}

/* Статистика статьи */
.article-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin: 2rem 0;
    padding: 2rem;
    background: var(--gradient-primary);
    border-radius: 15px;
    color: var(--white);
}

.article-stats .stat-item {
    text-align: center;
}

.article-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.article-stats .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    color: var(--white);
}

/* Основной контент статьи */
.blog-article {
    padding: 2rem;
}

.article-hero {
    margin: 0 auto 3rem;
    text-align: center;
    max-width: 100%;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.image-caption {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--light-text);
    font-style: italic;
}

.article-content {
    color: var(--dark-text);
    line-height: 1.8;
    font-size: 1.1rem;
    max-width: 900px;
    margin: 0 auto;
}

.article-content h2 {
    color: var(--primary-green);
    margin: 3rem 0 1.5rem 0;
    font-size: 2rem;
    border-bottom: 2px solid var(--accent-teal);
    padding-bottom: 0.5rem;
}

.article-content h3 {
    color: var(--primary-blue);
    margin: 2.5rem 0 1rem 0;
    font-size: 1.5rem;
}

/* Специальные блоки статьи */
.content-block {
    margin-bottom: 2.5rem;
}

.key-point {
    background: linear-gradient(135deg, #E8F6F3, #EBF5FB);
    border-left: 4px solid var(--accent-teal);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.warning-block {
    background: #FEF9E7;
    border-left: 4px solid var(--warning);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.science-block {
    background: #E8F4F8;
    border-left: 4px solid var(--info);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.success-story {
    background: #EAFAEE;
    border-left: 4px solid var(--success);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.alert-block {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-left: 4px solid #17a2b8;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

/* ===== ФОРМЫ ===== */
.consultation-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(46, 139, 87, 0.15);
    border: 1px solid var(--border);
}

.consultation-form h3 {
    color: var(--dark-text);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.4rem;
}

.consultation-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.consultation-form input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(70, 130, 180, 0.1);
}

.consultation-form button {
    width: 100%;
    padding: 12px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.consultation-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 139, 87, 0.3);
}

.subscribe form {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.subscribe input[type="email"] {
    padding: 12px;
    width: 100%;
    margin-bottom: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.subscribe input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(70, 130, 180, 0.1);
}

.subscribe button {
    padding: 12px 30px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.subscribe button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 139, 87, 0.3);
}

/* ===== ФУТЕР ===== */
footer {
    background: var(--dark-text);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-column h3 {
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 0.5rem;
}

.footer-column p,
.footer-column a {
    color: #BDC3C7;
    margin-bottom: 0.8rem;
    display: block;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--accent-teal);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495E;
    color: #95A5A6;
    margin-top: 2rem;
}

/* ===== СОСТОЯНИЯ ЗАГРУЗКИ И ОШИБОК ===== */
.loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: var(--light-text);
}

.error-message {
    text-align: center;
    padding: 3rem;
    color: #e74c3c;
    font-size: 1.2rem;
}

.success-message {
    display: none;
    color: var(--success);
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .slide {
        flex-direction: column;
        text-align: center;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        position: relative;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
    
    .hero-slider {
        margin-top: 0;
        padding: 2rem 1rem;
    }
    
    .slider-controls {
        position: relative;
        justify-content: center;
        gap: 2rem;
        margin-top: 1rem;
        transform: none;
    }
    
    .blog-title {
        font-size: 2rem;
        padding: 0 1rem;
    }
    
    .blog-intro {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .article-meta-header {
        justify-content: center;
        padding: 0 1rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .slide-content h2 {
        font-size: 1.8rem;
    }
    
    .article-card {
        margin: 0 0.5rem;
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .blog-article {
        padding: 1rem;
    }
    
    .consultation-form {
        margin: 0 1rem;
        padding: 1.5rem;
    }
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card {
    animation: fadeIn 0.5s ease-out;
}

.category-card {
    animation: slideInUp 0.6s ease-out;
}

/* Задержки для анимаций */
.category-card:nth-child(2) { animation-delay: 0.1s; }
.category-card:nth-child(3) { animation-delay: 0.2s; }
.category-card:nth-child(4) { animation-delay: 0.3s; }
.category-card:nth-child(5) { animation-delay: 0.4s; }

/* ===== УЛУЧШЕННАЯ ЧИТАЕМОСТЬ ===== */
.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul, 
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content strong {
    color: var(--primary-green);
    font-weight: 600;
}

.article-content em {
    color: var(--light-text);
    font-style: italic;
}

/* Стили для выделения кода */
.article-content code {
    background: var(--background);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary-blue);
    font-size: 0.9em;
}

.article-content pre {
    background: var(--dark-text);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Стили для таблиц */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.article-content th,
.article-content td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.article-content th {
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 600;
}

.article-content tr:hover {
    background: var(--gradient-light);
}

/* Стили для блоков с цитатами */
.article-content blockquote {
    border-left: 4px solid var(--accent-teal);
    padding: 1.5rem;
    margin: 1.5rem 0;
    background: var(--gradient-light);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.article-content blockquote p {
    margin: 0;
    color: var(--dark-text);
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ СТАТЕЙ ===== */
.articles-page {
    background: var(--background);
    min-height: 100vh;
    padding-top: 100px;
}

.articles-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Заголовок страницы */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(46, 139, 87, 0.1);
}

.page-title-section {
    flex: 1;
}

.page-main-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--light-text);
    margin: 0;
    line-height: 1.5;
}

.page-stats {
    text-align: right;
}

.stats-badge {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(46, 139, 87, 0.2);
}

.stats-badge .stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.stats-badge .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

.active-filters {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--primary-green);
    font-weight: 500;
}

/* Панель фильтров */
.filters-panel {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(46, 139, 87, 0.1);
    margin-bottom: 3rem;
    border: 1px solid var(--border);
}

.filters-header {
    margin-bottom: 2rem;
    text-align: center;
}

.filters-header h3 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.filters-header p {
    color: var(--light-text);
    margin: 0;
}

.filters-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 1.5rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--dark-text);
    font-size: 0.95rem;
}

/* Поле поиска */
.search-box {
    display: flex;
    gap: 0.5rem;
}

.search-box input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(70, 130, 180, 0.1);
}

.search-btn {
    padding: 0.8rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 139, 87, 0.3);
}

/* Выпадающие списки */
.filter-select {
    padding: 0.8rem 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235D6D7E' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 1rem) center;
    padding-right: 2.5rem;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(70, 130, 180, 0.1);
}

/* Кнопка сброса */
.reset-btn {
    padding: 0.8rem 1.5rem;
    background: var(--light-text);
    color: var(--white);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.reset-btn:hover {
    background: #4a5568;
    transform: translateY(-2px);
}

.reset-btn.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.reset-icon {
    font-size: 1rem;
}

/* Результаты поиска */
.results-section {
    margin-bottom: 3rem;
}

.search-results {
    min-height: 400px;
}

.loading-articles {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--light-text);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border);
    border-left: 4px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Сетка статей на странице статей */
.articles-extended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    animation: fadeIn 0.6s ease-out;
}

.article-large-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(46, 139, 87, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.article-large-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(46, 139, 87, 0.2);
}

.article-large-card .article-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.article-large-card .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-large-card:hover .article-image img {
    transform: scale(1.05);
}

.article-rating {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 215, 0, 0.95);
    color: #333;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.article-large-card .article-content {
    padding: 1.5rem;
}

.article-large-card .article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-date, .article-read-time {
    color: var(--light-text);
    font-size: 0.85rem;
    font-weight: 500;
}

.article-category-badge {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.article-large-card .article-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: var(--dark-text);
}

.article-large-card .article-excerpt {
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-tags {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--gradient-light);
    color: var(--primary-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border);
}

/* Состояние "нет результатов" */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(46, 139, 87, 0.1);
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.no-results h3 {
    color: var(--dark-text);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.no-results p {
    color: var(--light-text);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Пагинация */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.pagination-btn {
    padding: 0.8rem 1.2rem;
    border: 2px solid var(--border);
    background: var(--white);
    color: var(--dark-text);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 45px;
    text-align: center;
}

.pagination-btn:hover:not(.active):not(.disabled) {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: var(--gradient-primary);
    border-color: var(--primary-green);
    color: var(--white);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.prev, .pagination-btn.next {
    font-weight: 600;
    padding: 0.8rem 1.5rem;
}

.pagination-info {
    color: var(--light-text);
    font-size: 0.9rem;
    margin: 0 1rem;
}

/* Анимации */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.article-large-card {
    animation: fadeIn 0.5s ease-out;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .filters-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .articles-extended-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    
    .page-stats {
        text-align: center;
        width: 100%;
    }
    
    .stats-badge {
        display: inline-block;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .articles-extended-grid {
        grid-template-columns: 1fr;
    }
    
    .article-large-card .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .pagination-container {
        gap: 0.3rem;
    }
    
    .pagination-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        min-width: 40px;
    }
}

@media (max-width: 480px) {
    .articles-page {
        padding-top: 120px;
    }
    
    .page-main-title {
        font-size: 2rem;
    }
    
    .filters-panel {
        padding: 1.5rem;
    }
    
    .article-large-card .article-content {
        padding: 1.25rem;
    }
    
    .container {
        padding: 0 0.5rem;
    }
}

/* Интерактивные элементы */
.filter-select:hover {
    border-color: var(--primary-blue);
}

.article-large-card {
    cursor: pointer;
}

.article-large-card:active {
    transform: scale(0.98);
}

/* Плавные переходы */
.filters-panel,
.article-large-card,
.pagination-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Улучшенная доступность */
@media (prefers-reduced-motion: reduce) {
    .article-large-card,
    .pagination-btn,
    .search-btn,
    .reset-btn {
        transition: none;
    }
    
    .loading-spinner {
        animation: none;
    }
}

/* Дополнительные стили для статьи о наборе веса */
.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.method-category {
    background: var(--gradient-light);
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-green);
}

.method-category h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.training-tips {
    margin: 2rem 0;
}

.tip-block {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.tip-block h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.modern-list {
    list-style: none;
    padding: 0;
}

.modern-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    padding-left: 2rem;
}

.modern-list li:before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.related-article-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(46, 139, 87, 0.1);
    transition: all 0.3s ease;
}

.related-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(46, 139, 87, 0.2);
}

.related-article-image {
    height: 180px;
    overflow: hidden;
}

.related-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-article-card:hover .related-article-image img {
    transform: scale(1.05);
}

.related-article-content {
    padding: 1.5rem;
}

.related-article-content h4 {
    color: var(--dark-text);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

.related-article-content p {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.read-more-small {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.read-more-small:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

.key-takeaways {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.takeaway-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--gradient-light);
    border-radius: 15px;
    border-left: 4px solid var(--accent-teal);
}

.takeaway-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.takeaway-item p {
    margin: 0;
    color: var(--dark-text);
    line-height: 1.5;
}

/* Адаптивность для новых элементов */
@media (max-width: 768px) {
    .methods-grid {
        grid-template-columns: 1fr;
    }
    
    .key-takeaways {
        grid-template-columns: 1fr;
    }
    
    .takeaway-item {
        flex-direction: column;
        text-align: center;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
}

/* Мобильное меню */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-text);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        display: none;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 1rem;
    }
    
    .header-top {
        flex-wrap: wrap;
    }
}

/* ===== СТРАНИЦА КАТЕГОРИЙ ===== */
.categories-page {
    background: var(--background);
    min-height: 100vh;
    padding-top: 100px;
}

.categories-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

/* Общая статистика */
.global-stats-section {
    margin: 2rem 0 3rem;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(46, 139, 87, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-green);
    line-height: 1;
}

.stat-label {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Детальная сетка категорий */
.categories-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.category-detailed-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(46, 139, 87, 0.1);
    border-left: 5px solid;
    transition: all 0.3s ease;
}

.category-detailed-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(46, 139, 87, 0.2);
}

.category-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.category-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.category-title h3 {
    color: var(--dark-text);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.category-description {
    color: var(--light-text);
    line-height: 1.5;
    margin: 0;
}

/* Статистика категории */
.category-stats-detailed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--gradient-light);
    border-radius: 15px;
}

.category-stats-detailed .stat-item {
    text-align: center;
}

.category-stats-detailed .stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-green);
    line-height: 1;
}

.category-stats-detailed .stat-label {
    font-size: 0.8rem;
    color: var(--light-text);
    margin-top: 0.3rem;
}

/* Прогресс-бар */
.progress-bar {
    background: var(--border);
    border-radius: 10px;
    height: 8px;
    margin: 1.5rem 0;
    position: relative;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-label {
    position: absolute;
    top: -25px;
    right: 0;
    font-size: 0.8rem;
    color: var(--light-text);
}

/* Недавние статьи */
.recent-articles h4 {
    color: var(--dark-text);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.recent-articles-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.recent-article-item {
    display: block;
    padding: 1rem;
    background: var(--background);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.recent-article-item:hover {
    background: var(--gradient-light);
    border-left-color: var(--primary-green);
    transform: translateX(5px);
}

.article-title {
    display: block;
    color: var(--dark-text);
    font-weight: 600;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.article-meta {
    display: block;
    color: var(--light-text);
    font-size: 0.8rem;
}

.no-articles {
    color: var(--light-text);
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

/* Действия с категорией */
.category-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 139, 87, 0.3);
}

.btn-secondary {
    background: var(--background);
    color: var(--dark-text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--white);
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

/* Облако тегов */
.tags-section {
    margin: 4rem 0 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.tags-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-text);
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    min-height: 100px;
}

.tag-cloud-item {
    padding: 0.5rem 1rem;
    background: var(--gradient-light);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.tag-cloud-item:hover {
    background: var(--gradient-primary);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 139, 87, 0.2);
}

/* Быстрая навигация */
.quick-nav-section {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.quick-nav-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-text);
}

.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.quick-nav-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(46, 139, 87, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.quick-nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(46, 139, 87, 0.2);
    border-color: var(--primary-green);
}

.quick-nav-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.quick-nav-card h3 {
    color: var(--dark-text);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.quick-nav-card p {
    color: var(--light-text);
    line-height: 1.5;
    margin: 0;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .categories-detailed-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .categories-page {
        padding-top: 120px;
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
    }
    
    .category-stats-detailed {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .category-actions {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        text-align: center;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .quick-nav-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .category-detailed-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .category-icon-large {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* ===== СТРАНИЦА "О ПРОЕКТЕ" ===== */
.about-page {
    background: var(--background);
    min-height: 100vh;
    padding-top: 100px;
}

.about-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

/* Герой-секция */
.about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin: 3rem 0 5rem;
    padding: 2rem 0;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--light-text);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-green);
    line-height: 1;
}

.hero-stat .stat-label {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-top: 0.5rem;
}

.hero-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}

/* Секция миссии */
.mission-section {
    margin: 6rem 0;
    padding: 4rem 0;
    background: var(--white);
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(46, 139, 87, 0.1);
}

.mission-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.mission-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--dark-text);
}

.mission-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--light-text);
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: var(--gradient-light);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.value-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-green);
    box-shadow: 0 15px 35px rgba(46, 139, 87, 0.15);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.value-card h3 {
    color: var(--dark-text);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.value-card p {
    color: var(--light-text);
    line-height: 1.6;
    margin: 0;
}

/* Принципы работы */
.principles-section {
    margin: 6rem 0;
}

.principles-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--dark-text);
}

.principles-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.principles-timeline::before {
    content: '';
    position: absolute;
    left: 60px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.principle-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.principle-item.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.principle-number {
    width: 120px;
    height: 120px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.principle-content {
    flex: 1;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(46, 139, 87, 0.1);
}

.principle-content h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.principle-content p {
    color: var(--light-text);
    line-height: 1.6;
    margin: 0;
}

/* Команда */
.team-section {
    margin: 6rem 0;
    padding: 4rem 0;
    background: var(--gradient-light);
    border-radius: 30px;
}

.team-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.team-description {
    text-align: center;
    color: var(--light-text);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 4rem;
    line-height: 1.6;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.team-member {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(46, 139, 87, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.team-member.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(46, 139, 87, 0.2);
}

.member-photo {
    height: 250px;
    overflow: hidden;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member:hover .member-photo img {
    transform: scale(1.1);
}

.member-info {
    padding: 2rem;
}

.member-info h3 {
    color: var(--dark-text);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.member-role {
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.member-bio {
    color: var(--light-text);
    line-height: 1.6;
    margin: 0;
}

/* Статистика */
.stats-section {
    margin: 6rem 0;
}

.stats-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--dark-text);
}

.stats-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-item-large {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(46, 139, 87, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.9);
}

.stat-item-large.animate-in {
    opacity: 1;
    transform: scale(1);
}

.stat-item-large:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(46, 139, 87, 0.2);
}

.stat-icon-large {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.stat-number-large {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-green);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label-large {
    color: var(--light-text);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Партнеры */
.partners-section {
    margin: 6rem 0;
    padding: 4rem 0;
    background: var(--white);
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(46, 139, 87, 0.1);
}

.partners-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.partners-description {
    text-align: center;
    color: var(--light-text);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 4rem;
    line-height: 1.6;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.partner-logo {
    text-align: center;
}

.partner-logo img {
    height: 80px;
    width: auto;
    margin-bottom: 1rem;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.partner-logo p {
    color: var(--light-text);
    font-size: 0.9rem;
    margin: 0;
}

/* CTA секция */
.cta-section {
    margin: 6rem 0 4rem;
    padding: 4rem 2rem;
    background: var(--gradient-primary);
    border-radius: 30px;
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.subscribe-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.subscribe-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    background: var(--white);
}

.subscribe-form button {
    padding: 1rem 2rem;
    background: var(--dark-text);
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-form button:hover {
    background: var(--white);
    color: var(--primary-green);
    transform: translateY(-2px);
}

.success-message {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-weight: 600;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .about-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .principles-timeline::before {
        left: 40px;
    }
    
    .principle-number {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .about-page {
        padding-top: 120px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .principles-timeline::before {
        display: none;
    }
    
    .principle-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid-large {
        grid-template-columns: 1fr;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .mission-content,
    .team-grid,
    .partners-grid {
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .mission-section h2,
    .principles-section h2,
    .team-section h2,
    .stats-section h2,
    .partners-section h2 {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
}

/* ===== СТРАНИЦА КОНТАКТОВ ===== */
.contacts-page {
    background: var(--background);
    min-height: 100vh;
    padding-top: 100px;
}

.contacts-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Основной layout */
.contacts-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    margin: 3rem 0;
}

/* Контактная информация */
.contact-info-section h2 {
    color: var(--dark-text);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(46, 139, 87, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-30px);
}

.contact-card.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(46, 139, 87, 0.2);
}

.contact-icon {
    font-size: 2.5rem;
    width: 80px;
    height: 80px;
    background: var(--gradient-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-content h3 {
    color: var(--dark-text);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-content p {
    color: var(--light-text);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.contact-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

.contact-note {
    color: var(--light-text);
    font-size: 0.9rem;
    font-style: italic;
}

/* Социальные сети */
.social-section {
    padding: 2rem;
    background: var(--gradient-light);
    border-radius: 20px;
}

.social-section h3 {
    color: var(--dark-text);
    margin-bottom: 1.5rem;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    background: var(--white);
    border-radius: 15px;
    text-decoration: none;
    color: var(--dark-text);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.social-link.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(46, 139, 87, 0.2);
}

.social-link.vk:hover {
    background: #4C75A3;
    color: white;
}

.social-link.telegram:hover {
    background: #0088cc;
    color: white;
}

.social-link.youtube:hover {
    background: #FF0000;
    color: white;
}

.social-icon {
    font-size: 1.2rem;
}

/* Форма обратной связи */
.contact-form-section {
    background: var(--white);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(46, 139, 87, 0.1);
}

.form-container h2 {
    color: var(--dark-text);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.form-description {
    color: var(--light-text);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--dark-text);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem 1.5rem;
    border: 2px solid var(--border);
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(70, 130, 180, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: none;
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.8rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.3rem;
    transform: scale(1.2);
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    line-height: 1.4;
}

.checkbox-group a {
    color: var(--primary-blue);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.submit-btn {
    padding: 1.2rem 2rem;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 139, 87, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Сообщение об успехе */
.success-message {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.success-message h3 {
    color: var(--dark-text);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.success-message p {
    color: var(--light-text);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Карта */
.map-section {
    margin: 4rem 0;
}

.map-section h2 {
    color: var(--dark-text);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(46, 139, 87, 0.1);
    height: 400px;
}

.map-placeholder {
    height: 100%;
    background: var(--gradient-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-content {
    text-align: center;
    padding: 2rem;
}

.map-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.map-content h3 {
    color: var(--dark-text);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.map-content p {
    color: var(--light-text);
    margin-bottom: 2rem;
}

/* FAQ */
.faq-section {
    margin: 4rem 0;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

.faq-section h2 {
    color: var(--dark-text);
    margin-bottom: 3rem;
    text-align: center;
    font-size: 2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(46, 139, 87, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.faq-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(46, 139, 87, 0.2);
}

.faq-item h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.faq-item p {
    color: var(--light-text);
    line-height: 1.6;
    margin: 0;
}

/* CTA секция */
.cta-section {
    margin: 4rem 0;
    padding: 4rem 2rem;
    background: var(--gradient-primary);
    border-radius: 30px;
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Анимации */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-card.animate-in {
    animation: fadeInLeft 0.6s ease forwards;
}

.faq-item.animate-in,
.social-link.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Задержки для анимаций */
.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }
.contact-card:nth-child(4) { animation-delay: 0.4s; }

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }

.social-link:nth-child(1) { animation-delay: 0.1s; }
.social-link:nth-child(2) { animation-delay: 0.2s; }
.social-link:nth-child(3) { animation-delay: 0.3s; }

/* Адаптивность */
@media (max-width: 1024px) {
    .contacts-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contacts-page {
        padding-top: 120px;
    }
    
    .contact-form-section {
        padding: 2rem;
    }
    
    .contact-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .social-links {
        flex-direction: column;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .header-actions {
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-form-section {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .map-content {
        padding: 1rem;
    }
    
    .cta-section {
        padding: 3rem 1rem;
    }
}

/* ===== ЮРИДИЧЕСКИЕ СТРАНИЦЫ ===== */
.legal-page {
    background: var(--background);
    min-height: 100vh;
    padding-top: 100px;
}

.legal-page .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

/* Контент юридических страниц */
.legal-content {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(46, 139, 87, 0.1);
    margin-top: 2rem;
}

.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.legal-section h2 {
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-left: 4px solid var(--accent-teal);
    padding-left: 1rem;
}

.legal-section h3 {
    color: var(--dark-text);
    margin: 1.5rem 0 1rem;
    font-size: 1.3rem;
}

.legal-section h4 {
    color: var(--primary-blue);
    margin: 1rem 0 0.5rem;
    font-size: 1.1rem;
}

/* Важные заметки */
.important-note {
    background: linear-gradient(135deg, #E8F6F3, #EBF5FB);
    border-left: 4px solid var(--accent-teal);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.warning-note {
    background: #FEF9E7;
    border-left: 4px solid var(--warning);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.action-note {
    background: #E8F4F8;
    border-left: 4px solid var(--info);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

/* Cookie объяснение */
.cookie-explanation {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.cookie-types-overview {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.cookie-type-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid;
}

.cookie-type-badge.session {
    background: #E8F6F3;
    border-color: var(--accent-teal);
    color: var(--dark-text);
}

.cookie-type-badge.persistent {
    background: #EBF5FB;
    border-color: var(--info);
    color: var(--dark-text);
}

.cookie-type-badge.first-party {
    background: #EAFAEE;
    border-color: var(--success);
    color: var(--dark-text);
}

.cookie-type-badge.third-party {
    background: #FEF9E7;
    border-color: var(--warning);
    color: var(--dark-text);
}

.cookie-diagram {
    text-align: center;
    padding: 2rem;
    background: var(--gradient-light);
    border-radius: 15px;
}

.browser, .server {
    font-weight: 600;
    margin: 0.5rem 0;
}

.arrow {
    font-size: 1.5rem;
    margin: 1rem 0;
}

.cookie-file {
    font-size: 2rem;
    margin-top: 1rem;
}

/* Категории cookie */
.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cookie-category {
    background: var(--gradient-light);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid;
}

.cookie-category.essential {
    border-left-color: var(--success);
}

.cookie-category.analytics {
    border-left-color: var(--info);
}

.cookie-category.functional {
    border-left-color: var(--primary-blue);
}

.cookie-category.marketing {
    border-left-color: var(--warning);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.category-status {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--white);
}

/* Таблицы cookie */
.cookie-table {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.cookie-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 2fr;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.cookie-row.header {
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 600;
}

.cookie-row:last-child {
    border-bottom: none;
}

/* Управление cookie */
.management-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.management-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(46, 139, 87, 0.1);
}

.browser-instructions details {
    margin-bottom: 0.5rem;
}

.browser-instructions summary {
    cursor: pointer;
    padding: 0.8rem;
    background: var(--background);
    border-radius: 8px;
    font-weight: 600;
}

.browser-instructions p {
    margin: 0.5rem 0 0 1rem;
    color: var(--light-text);
}

.cookie-controls-demo {
    margin: 1.5rem 0;
}

.control-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.control-item:last-child {
    border-bottom: none;
}

.control-status {
    font-size: 0.8rem;
    color: var(--light-text);
    font-weight: 600;
}

.btn-save-settings {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save-settings:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 139, 87, 0.3);
}

/* Сторонние сервисы */
.third-party-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.service-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
}

.service-card h4 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.service-card a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.service-card a:hover {
    text-decoration: underline;
}

/* Таймлайн */
.storage-timeline {
    position: relative;
    max-width: 600px;
    margin: 2rem auto;
}

.storage-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-dot {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.timeline-content {
    flex: 1;
    padding: 1rem;
    background: var(--gradient-light);
    border-radius: 10px;
}

.timeline-content h4 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

/* Правовая основа */
.legal-framework {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.law-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary-green);
}

.law-card h4 {
    color: var(--dark-text);
    margin-bottom: 0.8rem;
}

/* FAQ */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.faq-item summary {
    padding: 1.5rem;
    background: var(--gradient-light);
    cursor: pointer;
    font-weight: 600;
    color: var(--dark-text);
    list-style: none;
    position: relative;
}

.faq-item summary::after {
    content: '▶';
    position: absolute;
    right: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(90deg);
}

.faq-item p {
    padding: 1.5rem;
    margin: 0;
    background: var(--white);
    color: var(--light-text);
    line-height: 1.6;
}

/* Контактная информация */
.contact-methods, .contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.contact-method, .contact-item {
    padding: 1rem;
    background: var(--gradient-light);
    border-radius: 10px;
}

.response-time {
    text-align: center;
    padding: 1.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 10px;
    margin: 1.5rem 0;
}

.authority-info {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--border);
    margin: 1.5rem 0;
}

/* Демо баннера cookie */
.cookie-banner-preview {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(46, 139, 87, 0.1);
    margin: 2rem 0;
    text-align: center;
}

.cookie-consent-demo {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--gradient-light);
    border-radius: 10px;
    border: 2px dashed var(--border);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.btn-accept, .btn-settings {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-accept {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-settings {
    background: var(--white);
    color: var(--dark-text);
    border: 2px solid var(--border);
}

.btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 139, 87, 0.3);
}

.btn-settings:hover {
    border-color: var(--primary-green);
}

/* Футер юридической страницы */
.legal-footer {
    text-align: center;
    padding: 2rem;
    background: var(--gradient-light);
    border-radius: 15px;
    margin-top: 3rem;
}

.last-updated {
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.consent-reset {
    margin-top: 2rem;
}

.btn-reset-consent {
    padding: 1rem 2rem;
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset-consent:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.reset-note {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-top: 0.5rem;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .cookie-explanation {
        grid-template-columns: 1fr;
    }
    
    .management-options {
        grid-template-columns: 1fr;
    }
    
    .cookie-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .legal-page {
        padding-top: 120px;
    }
    
    .legal-content {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .cookie-categories,
    .third-party-services,
    .legal-framework {
        grid-template-columns: 1fr;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .storage-timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .legal-content {
        padding: 1rem;
    }
    
    .cookie-category,
    .management-card,
    .service-card,
    .law-card {
        padding: 1rem;
    }
    
    .cookie-explanation,
    .management-options {
        gap: 1rem;
    }
}