* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #0d1b2a;
    background: #f6f8fb;
    font-family: "Roboto", Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.blog-header {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.blog-brand {
    font-size: 20px;
    font-weight: 900;
    color: #122d4a;
}

.blog-nav {
    display: flex;
    gap: 18px;
    color: #516070;
    font-size: 15px;
}

.blog-nav a:hover,
.blog-back:hover {
    color: #122d4a;
}

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

.blog-hero {
    padding: 56px 0 34px;
}

.blog-back {
    display: inline-block;
    margin-bottom: 28px;
    color: #667789;
    font-weight: 500;
}

.blog-hero h1 {
    margin: 0;
    font-size: clamp(42px, 8vw, 86px);
    line-height: .95;
    letter-spacing: 0;
}

.blog-hero p {
    max-width: 680px;
    margin: 18px 0 0;
    color: #596b7e;
    font-size: 22px;
    line-height: 1.45;
}

.blog-grid {
    padding: 10px 0 72px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.blog-card {
    min-height: 238px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    border: 1px solid #e1e7ee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(18, 45, 74, .05);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.blog-card:hover {
    transform: translateY(-3px);
    border-color: #c8d2dd;
    box-shadow: 0 16px 32px rgba(18, 45, 74, .09);
}

.blog-card-badge {
    width: max-content;
    max-width: 100%;
    margin-bottom: 14px;
    padding: 5px 9px;
    overflow: hidden;
    border-radius: 6px;
    background: #eef3f8;
    color: #526a82;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-card h2 {
    margin: 0;
    color: #10263d;
    font-size: 22px;
    line-height: 1.22;
    letter-spacing: 0;
}

.blog-card p {
    margin: 12px 0 20px;
    color: #5d6c7a;
    font-size: 16px;
    line-height: 1.5;
}

.blog-card time {
    margin-top: auto;
    color: #8794a2;
    font-size: 14px;
    font-weight: 500;
}

.blog-article {
    max-width: 860px;
    padding: 48px 0 78px;
}

.blog-article-head {
    margin-bottom: 34px;
}

.blog-article h1 {
    margin: 0 0 16px;
    color: #10263d;
    font-size: clamp(36px, 6vw, 62px);
    line-height: 1.05;
    letter-spacing: 0;
}

.blog-article time {
    display: block;
    margin-bottom: 22px;
    color: #8794a2;
    font-weight: 500;
}

.blog-article-preview {
    color: #506070;
    font-size: 20px;
    line-height: 1.55;
}

.blog-article-content {
    color: #203245;
    font-size: 18px;
    line-height: 1.7;
}

.blog-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.blog-article-content h2,
.blog-article-content h3 {
    margin: 36px 0 14px;
    color: #10263d;
    line-height: 1.2;
    letter-spacing: 0;
}

.blog-empty {
    grid-column: 1 / -1;
    padding: 38px;
    border: 1px solid #e1e7ee;
    border-radius: 8px;
    background: #fff;
}

.blog-empty h2 {
    margin: 0 0 10px;
}

.blog-empty p {
    margin: 0;
    color: #5d6c7a;
}

.blog-footer {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 30px 0 42px;
    color: #7b8794;
    font-size: 14px;
}

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

@media (max-width: 620px) {
    .blog-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .blog-hero {
        padding-top: 34px;
    }

    .blog-hero p {
        font-size: 19px;
    }

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

    .blog-card {
        min-height: 0;
    }
}
