/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fc;
    color: #1a1f2c;
    line-height: 1.6;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    z-index: 1000;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: #1a4d3e;
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: opacity 0.2s;
}

.logo a:hover {
    opacity: 0.8;
}

.main-nav {
    display: flex;
    gap: 32px;
}

.main-nav a {
    text-decoration: none;
    color: #2c3e38;
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: #e67e22;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, #e9f2ef 0%, #d4e4df 100%);
    padding: 80px 0;
    margin-bottom: 40px;
    border-radius: 0 0 40px 40px;
}

.hero .container {
    max-width: 900px;
    text-align: center;
}

.hero h1 {
    font-size: 52px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero .accent {
    color: #e67e22;
    position: relative;
    display: inline-block;
}

.hero p {
    font-size: 20px;
    color: #2c3e38;
    margin-bottom: 32px;
    opacity: 0.85;
}

.btn-primary {
    display: inline-block;
    background: #1a4d3e;
    color: white;
    padding: 14px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.2);
}

/* ===== ARTICLES GRID ===== */
.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 48px;
    letter-spacing: -0.01em;
    text-align: center;
}

.articles-grid-section {
    padding: 40px 0 80px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.article-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 24px;
}

.card-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1f2c;
    line-height: 1.4;
}

.card-content p {
    color: #5a6c6e;
    font-size: 15px;
    margin-bottom: 16px;
}

.read-more {
    color: #e67e22;
    font-weight: 600;
    font-size: 14px;
    transition: gap 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.article-card:hover .read-more {
    gap: 8px;
}

/* ===== ARTICLE PAGE STYLES ===== */
.article-container {
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    gap: 48px;
}

.article-main {
    flex: 2.5;
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.article-main h1 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: #8a9b9e;
    font-size: 14px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eef2f0;
}

.lead {
    font-size: 20px;
    font-weight: 500;
    color: #2c3e38;
    margin-bottom: 32px;
    line-height: 1.5;
}

.article-image {
    width: 100%;
    border-radius: 20px;
    margin: 32px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.article-main h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 40px 0 16px;
    padding-top: 8px;
}

.article-main h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 32px 0 12px;
}

.article-main p {
    margin-bottom: 20px;
    color: #2c3e38;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    background: #f8f9fc;
    border-radius: 16px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e0e8e5;
}

.comparison-table th {
    background: #1a4d3e;
    color: white;
    font-weight: 600;
}

/* ===== SIDEBAR ===== */
.article-sidebar {
    flex: 1;
}

.sidebar-widget {
    background: white;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.sidebar-widget h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e67e22;
    display: inline-block;
}

.sidebar-articles {
    list-style: none;
}

.sidebar-articles li {
    margin-bottom: 14px;
}

.sidebar-articles a {
    text-decoration: none;
    color: #2c3e38;
    transition: color 0.2s;
    display: block;
    padding: 6px 0;
}

.sidebar-articles a:hover {
    color: #e67e22;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tags-cloud a {
    background: #f0f4f2;
    padding: 6px 14px;
    border-radius: 30px;
    text-decoration: none;
    color: #1a4d3e;
    font-size: 13px;
    transition: all 0.2s;
}

.tags-cloud a:hover {
    background: #e67e22;
    color: white;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #1a2a26;
    color: #bbcdc8;
    padding: 48px 0 24px;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-info {
    max-width: 400px;
}

.footer-info h3 {
    color: white;
    font-size: 22px;
    margin-bottom: 12px;
}

.footer-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #bbcdc8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: #e67e22;
}

.copyright {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #2c403a;
    font-size: 14px;
}

/* ===== ADS BLOCKS (стили для рекламных контейнеров) ===== */
.ad-block {
    background: #f1f5f3;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
    font-size: 14px;
    color: #5a6c6e;
    border: 1px dashed #cbdcd6;
}

.ad-sidebar {
    margin-bottom: 32px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .article-container {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 16px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .article-main {
        padding: 24px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-nav {
        justify-content: center;
    }
}