/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8f9fc;
    color: #1a1a2e;
    line-height: 1.65;
}

/* GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700;14..32,800&display=swap');

/* CONTAINER */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 18px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo a {
    font-size: 28px;
    font-weight: 800;
    text-decoration: none;
    background: linear-gradient(135deg, #2d6a4f, #1b4332);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.nav-menu a {
    text-decoration: none;
    font-weight: 500;
    color: #2d3e50;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: #2d6a4f;
}

/* HERO SECTION */
.hero {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6d9 100%);
    border-radius: 32px;
    padding: 64px 48px;
    margin: 40px 0 48px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1b4332;
}

.hero p {
    font-size: 20px;
    color: #2d6a4f;
    max-width: 700px;
    margin: 0 auto;
}

/* GRID CARDS */
.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
    color: #1a1a2e;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.article-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-content {
    padding: 24px;
}

.card-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-content p {
    color: #4a5568;
    line-height: 1.6;
}

/* LAYOUT ARTICLE */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    margin: 48px 0;
}

.article-main {
    background: white;
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.article-main h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.article-main h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 36px 0 16px;
}

.article-main h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 28px 0 12px;
}

.article-main p {
    margin-bottom: 20px;
    font-size: 18px;
    color: #2d3748;
}

.article-main ul, .article-main ol {
    margin: 20px 0 24px 24px;
}

.article-main li {
    margin-bottom: 8px;
    font-size: 18px;
}

.article-image {
    width: 100%;
    border-radius: 24px;
    margin: 30px 0;
}

/* SIDEBAR */
.sidebar {
    align-self: start;
    position: sticky;
    top: 100px;
}

.sidebar-block {
    background: white;
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 32px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.sidebar-block h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    border-left: 4px solid #2d6a4f;
    padding-left: 16px;
}

.related-list {
    list-style: none;
}

.related-list li {
    margin-bottom: 16px;
}

.related-list a {
    text-decoration: none;
    font-weight: 500;
    color: #2d3e50;
    transition: color 0.2s;
    display: block;
}

.related-list a:hover {
    color: #2d6a4f;
}

/* FOOTER */
.site-footer {
    background: #0f1720;
    color: #e2e8f0;
    padding: 56px 0 32px;
    margin-top: 80px;
    border-radius: 32px 32px 0 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col p {
    max-width: 300px;
    margin-top: 12px;
    font-size: 14px;
    opacity: 0.7;
}

.footer-col a {
    color: #cbd5e1;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
}

.footer-col a:hover {
    color: #2d6a4f;
}

.copyright {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

/* ADS (адаптивные) */
.ad-placeholder {
    background: #f1f3f5;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin: 20px 0;
    border: 1px dashed #adb5bd;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.ad-sidebar {
    margin: 24px 0;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
    }
    .hero h1 {
        font-size: 32px;
    }
    .article-main h1 {
        font-size: 32px;
    }
    .article-main {
        padding: 24px;
    }
    .cards-grid {
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .header-inner {
        flex-direction: column;
    }
    .hero {
        padding: 40px 20px;
    }
}