.blog {
    margin-top: 120px;
    margin-bottom: 90px;
}

.blog__container {
    display: flex;
    flex-direction: column;
    gap: 2em;
}

.blog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5em;
}

.blog__item {
    display: flex;
    flex-direction: column;
    gap: 1em;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    transition: all 0.5s ease-in-out;
    border-radius: 10px;
    -webkit-box-shadow: 0px 15px 34px -17px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0px 15px 34px -17px rgba(0, 0, 0, 0.2);
    box-shadow: 0px 15px 34px -17px rgba(0, 0, 0, 0.2);
}

.blog__item:hover {
    transform: scale(0.98);
}

.blog__item-link {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
}

.blog__item-img {
    font-size: 0;
    width: 100%;
    position: relative;
    overflow: hidden;
    aspect-ratio: 820 / 500;
}

.blog__item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog__item-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.5em 1.5em 1.5em;
    flex: 1;
    gap: 1em;
}

.blog__item-content {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.blog__item-title {
    font-size: 1.2rem;
    line-height: 1;
    font-weight: 700;
}

.blog__item-description {
    font-size: 1rem;
    line-height: 1.2;
}

.blog__item-date {
    font-size: 0.8rem;
    color: #616161;
}

.blog__button-wrapper {
    text-align: center;
}

.blog__button {
    display: inline-block;
    margin: 0 auto;
}

.blog-page {
    max-width: 960px;
    margin: 0 auto;
}

.blog-page .blog__container {
    gap: 1em;
}

.blog__img {
    font-size: 0;
    width: 100%;
    position: relative;
    overflow: hidden;
    aspect-ratio: 900 / 450;
    border-radius: 10px;
}

.blog__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog__title {
    font-size: 2rem;
    line-height: 1;
    font-weight: 700;
}

.blog__date,
.blog__content {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.56;
}

.blog__content *:not(:last-child) {
    margin-bottom: 0.6em;
}

.blog__content h1:not(:first-child),
.blog__content h2:not(:first-child),
.blog__content h3:not(:first-child),
.blog__content h4:not(:first-child),
.blog__content h5:not(:first-child),
.blog__content h6:not(:first-child) {
    margin-top: 1.2em;
}

.blog__content ul,
.blog__content ol {
    margin-left: 20px;
}

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

@media (max-width: 679px) {
    .blog__grid {
        grid-template-columns: 1fr;
    }
}