/* style.css - epohadigital.ru */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #F4F6FA;
    color: #1A1F2E;
    line-height: 1.65;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Typography */
h1, h2, h3, h4, .logo {
    font-family: 'Space Grotesk', monospace;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    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 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #1A1F2E, #2563EB);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.nav a {
    color: #4B5563;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover {
    color: #2563EB;
}

/* Hero */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #F4F6FA 0%, #E8ECF3 100%);
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hero h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1A1F2E, #2563EB);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 20px;
    color: #4B5563;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Title */
.section-title {
    font-size: 32px;
    font-weight: 700;
    margin: 50px 0 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #2563EB;
    display: inline-block;
}

/* Article Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 80px;
}

.article-card {
    background: #FFFFFF;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.1);
}

.article-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s;
}

.article-card:hover img {
    transform: scale(1.02);
}

.article-card-content {
    padding: 24px;
}

.article-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.article-card h3 a {
    color: #1A1F2E;
    text-decoration: none;
    transition: color 0.2s;
}

.article-card h3 a:hover {
    color: #2563EB;
}

.article-card p {
    color: #4B5563;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.meta {
    color: #2563EB;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Article Layout */
.article-layout {
    display: flex;
    gap: 50px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.article-main {
    flex: 2;
    min-width: 260px;
    background: #FFFFFF;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.article-header h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.article-meta {
    color: #6B7280;
    font-size: 14px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E5E7EB;
}

.article-image {
    width: 100%;
    border-radius: 20px;
    margin: 25px 0;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #E5E7EB;
}

.article-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 30px 0 15px;
    color: #2563EB;
}

.article-content p {
    margin-bottom: 24px;
    color: #374151;
}

.article-content ul, .article-content ol {
    margin: 20px 0 20px 30px;
    color: #374151;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content code {
    background: #F3F4F6;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'Space Grotesk', monospace;
    font-size: 14px;
    color: #2563EB;
}

/* Sidebar */
.sidebar {
    flex: 1;
    min-width: 280px;
}

.sidebar-widget {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 32px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-widget h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #2563EB;
    display: inline-block;
}

.sidebar-links {
    list-style: none;
}

.sidebar-links li {
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #F3F4F6;
}

.sidebar-links a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: color 0.2s;
}

.sidebar-links a:hover {
    color: #2563EB;
}

/* Footer */
.footer {
    background: #1A1F2E;
    color: #F4F6FA;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.footer p {
    color: #9CA3AF;
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #9CA3AF;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #FFFFFF;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9CA3AF;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    .hero h1 {
        font-size: 32px;
    }
    .hero p {
        font-size: 16px;
    }
    .section-title {
        font-size: 26px;
    }
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .article-header h1 {
        font-size: 28px;
    }
    .article-main {
        padding: 24px;
    }
    .article-layout {
        flex-direction: column;
    }
    .header-inner {
        flex-direction: column;
        text-align: center;
    }
}