/* ========== 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&display=swap');

/* ========== RESET & VARIABLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2A7F6E;
    --primary-dark: #1E5F52;
    --primary-light: #E8F5F2;
    --secondary: #FF8C42;
    --secondary-dark: #E6762A;
    --text-dark: #1A2E2A;
    --text-muted: #5C6E6A;
    --bg-main: #F7F9F8;
    --bg-card: #FFFFFF;
    --border-light: #E2E8E6;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 35px -12px rgba(0, 0, 0, 0.15);
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.65;
    font-size: 16px;
    font-weight: 400;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
}

h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 0.75rem;
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.25s ease;
}

a:hover {
    color: var(--secondary);
}

/* ========== HEADER ========== */
.header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 32px;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    color: var(--text-dark);
    font-weight: 500;
    transition: 0.2s;
}

.nav a:hover {
    color: var(--secondary);
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, #FFFFFF 100%);
    padding: 60px 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin-bottom: 48px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-top: 16px;
}

/* ========== GRID CARDS ========== */
.section-title {
    font-size: 2rem;
    margin-bottom: 32px;
    text-align: center;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 48px 0;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-img {
    transform: scale(1.03);
}

.card-content {
    padding: 24px;
}

.card h3 {
    margin: 0 0 12px 0;
    font-size: 1.35rem;
}

.card h3 a {
    color: var(--text-dark);
}

.card h3 a:hover {
    color: var(--primary);
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.read-more {
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.read-more:hover {
    gap: 10px;
    color: var(--secondary);
}

/* ========== ARTICLE LAYOUT ========== */
.article-layout {
    display: flex;
    gap: 48px;
    margin: 48px 0;
}

.main-content {
    flex: 2.5;
}

.sidebar {
    flex: 1.2;
}

/* Article content */
.article-header {
    margin-bottom: 32px;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.article-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 16px;
}

.article-image {
    width: 100%;
    border-radius: var(--radius-md);
    margin: 24px 0;
    box-shadow: var(--shadow-sm);
}

.article-content h2 {
    margin-top: 2rem;
}

.article-content h3 {
    margin-top: 1.5rem;
}

.article-content ul, .article-content ol {
    margin: 1rem 0 1.5rem 1.8rem;
    color: var(--text-muted);
}

.article-content li {
    margin: 0.5rem 0;
}

/* Sidebar */
.sidebar-widget {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1.3rem;
    border-left: 4px solid var(--secondary);
    padding-left: 12px;
}

.related-list {
    list-style: none;
}

.related-list li {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.related-list a {
    color: var(--text-dark);
    font-weight: 500;
    display: block;
    transition: 0.2s;
}

.related-list a:hover {
    color: var(--primary);
    padding-left: 4px;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--text-dark);
    color: #fff;
    margin-top: 64px;
    padding: 48px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    margin-bottom: 20px;
    color: #fff;
}

.footer p, .footer a {
    color: #BFCAC7;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #BFCAC7;
    font-size: 0.85rem;
}

/* ========== ADS BLOCKS ========== */
.ad-block {
    background: #F0F2F1;
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    margin: 20px 0;
    border: 1px dashed var(--border-light);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.ad-block::before {
    content: "Реклама";
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-bottom: 12px;
    opacity: 0.6;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .article-layout {
        flex-direction: column;
    }
    
    .container {
        padding: 0 24px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .header .container {
        flex-direction: column;
        gap: 12px;
    }
    
    .nav {
        gap: 24px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 40px 0;
    }
}