/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
    line-height: 1.65;
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #0f172a 0%, #2563eb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
}

h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 0.75rem;
}

p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

a {
    text-decoration: none;
    color: #2563eb;
    transition: all 0.2s ease;
}

a:hover {
    color: #1d4ed8;
}

/* ============================================
   HEADER (Sticky)
   ============================================ */
.main-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e2e8f0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    color: #1e293b;
}

.nav-menu a:hover {
    color: #2563eb;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: white;
    border-radius: 32px;
    padding: 64px 48px;
    margin: 40px 0;
    text-align: center;
}

.hero h1 {
    color: white;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    font-size: 3rem;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   CARDS GRID
   ============================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin: 48px 0;
}

.article-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
}

.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-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: #0f172a;
}

.card-excerpt {
    color: #475569;
    line-height: 1.5;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    font-weight: 600;
    color: #2563eb;
}

/* ============================================
   LAYOUT: ARTICLE + SIDEBAR
   ============================================ */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    margin: 48px 0;
}

.article-content {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.article-content img {
    width: 100%;
    border-radius: 20px;
    margin: 24px 0;
}

.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-widget {
    background: white;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.sidebar-widget h3 {
    margin-top: 0;
    border-left: 4px solid #2563eb;
    padding-left: 16px;
}

.related-list {
    list-style: none;
}

.related-list li {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.related-list a {
    font-weight: 500;
    color: #1e293b;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 48px 0 24px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-col a {
    color: #94a3b8;
    display: block;
    margin-bottom: 12px;
}

.copyright {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid #1e293b;
}

/* ============================================
   ADS (Адаптивные блоки)
   ============================================ */
.ad-block {
    background: #f1f5f9;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin: 20px 0;
    border: 1px dashed #cbd5e1;
}

.ad-block-inline {
    background: #f8fafc;
    border-left: 4px solid #2563eb;
    padding: 20px;
    margin: 24px 0;
    border-radius: 12px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .two-columns {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .sidebar {
        position: static;
    }
    
    .hero {
        padding: 40px 20px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .article-content {
        padding: 24px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .header-inner {
        flex-direction: column;
    }
}