* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f5f7fb;
    color: #172033;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

a {
    color: #155eef;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e9f2;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    color: #172033;
    font-size: 22px;
    font-weight: 700;
}

.hero {
    padding: 48px 0 28px;
    text-align: center;
}

.hero h1 {
    margin: 0 0 10px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.1;
}

.hero p {
    color: #5b6475;
    margin: 0;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    padding: 24px 0 56px;
}

.article-card,
.article-page,
.empty-state,
.related-articles {
    background: #ffffff;
    border: 1px solid #e5e9f2;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(23, 32, 51, 0.06);
}

.article-card {
    padding: 24px;
}

.article-card h2,
.article-card h3 {
    margin: 0 0 10px;
    line-height: 1.25;
}

.article-card p {
    color: #5b6475;
}

.article-card time,
.article-header time {
    color: #7b8496;
    display: block;
    font-size: 14px;
    margin-bottom: 14px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    background: #155eef;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 700;
    padding: 10px 16px;
}

.read-more:hover {
    background: #004eeb;
    text-decoration: none;
}

.article-page {
    margin: 36px 0 28px;
    padding: clamp(24px, 5vw, 52px);
}

.article-header {
    border-bottom: 1px solid #e5e9f2;
    margin-bottom: 28px;
    padding-bottom: 20px;
}

.article-header h1 {
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.12;
    margin: 0 0 12px;
}

.article-content img,
.article-content iframe {
    max-width: 100%;
}

.article-content pre {
    background: #101828;
    border-radius: 12px;
    color: #ffffff;
    overflow-x: auto;
    padding: 18px;
}

.related-articles {
    margin-bottom: 56px;
    padding: 28px;
}

.related-articles h2 {
    margin: 0;
}

.empty-state {
    margin: 42px 0;
    padding: 42px;
    text-align: center;
}

.site-footer {
    border-top: 1px solid #e5e9f2;
    color: #6d7586;
    padding: 24px 0;
    text-align: center;
}

@media (max-width: 900px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1120px);
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .site-header {
        position: static;
    }

    .article-page,
    .empty-state,
    .related-articles {
        border-radius: 14px;
        padding: 22px;
    }
}