.blog-page__title {
    position: relative;
    margin: 8px 0 32px;
    padding: 4px 0 4px 28px;
    font-family: CirceRounded-Regular4, sans-serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.15;
    color: #434242;
}

.blog-page__title::before,
.blog-article__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 10px;
    height: 100%;
    border-radius: 5px;
    background: #ee6e6c;
}

.blog-list {
    padding-bottom: 64px;
}

.blog-empty {
    margin: 8px 0 24px;
    font-family: Montserrat-Regular, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #5d646d;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid #e4e4e4;
    border-radius: 20px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.3s;
}

.blog-card:hover,
.blog-card:focus {
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-card:focus-visible {
    outline: 2px solid #137c75;
    outline-offset: 3px;
}

.blog-card__media {
    display: block;
    aspect-ratio: 3 / 2;
    background: #e7f3f2;
}

.blog-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card__media--empty {
    background:
        linear-gradient(135deg, rgba(19, 124, 117, 0.16), rgba(238, 110, 108, 0.18)),
        #e7f3f2;
}

.blog-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 20px 22px 24px;
}

.blog-card__title {
    display: block;
    margin: 0;
    font-family: CirceRounded-Regular4, sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.25;
    color: #434242;
}

.blog-card:hover .blog-card__title {
    color: #137c75;
}

.blog-card__preview {
    margin: 0;
    font-family: Montserrat-Regular, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: #5d646d;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

.blog-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
}

.blog-pager__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    background: #fff;
    color: #434242;
    font-family: Montserrat-Regular, sans-serif;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
}

.blog-pager__link:hover {
    border-color: #137c75;
    color: #137c75;
    text-decoration: none;
}

.blog-pager__link.is-current {
    border-color: #137c75;
    background: #137c75;
    color: #fff;
}

.blog-article {
    padding-bottom: 72px;
}

.blog-article__date {
    margin: 8px 0 12px;
    font-family: Montserrat-Regular, sans-serif;
    font-size: 14px;
    color: #868484;
}

.blog-article__title {
    position: relative;
    margin: 0 0 28px;
    padding-left: 28px;
    font-family: CirceRounded-Regular4, sans-serif;
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    color: #434242;
}

.blog-article__figure {
    margin: 0 0 28px;
    overflow: hidden;
    border-radius: 20px;
}

.blog-article__figure img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
}

.blog-article__text {
    max-width: 100%;
    font-family: Montserrat-Regular, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #252b33;
}

.blog-article__text p {
    margin: 0 0 16px;
}

.blog-article__text img {
    max-width: 100%;
    height: auto;
}

.blog-related {
    padding-bottom: 72px;
}

.blog-related__title {
    position: relative;
    margin: 0 0 28px;
    padding-left: 28px;
    font-family: CirceRounded-Regular4, sans-serif;
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    color: #434242;
}

.blog-related__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 10px;
    height: 100%;
    border-radius: 5px;
    background: #ee6e6c;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1200px) {
    .blog-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .blog-page__title {
        font-size: 32px;
    }

    .blog-article__title,
    .blog-related__title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .blog-page__title {
        font-size: 28px;
    }

    .blog-card__title {
        font-size: 20px;
    }
}
