body {
    background: var(--light-grayish-blue);
}

.blog-page-wrapper {
    padding-top: 5rem;
}

h1 {
    margin: 0;
}

.page-content {
    margin-top: 2rem;
}

.categories {
    position: sticky;
    top: 30px;
    margin-bottom: 8.125rem;
    background-color: var(--white);
    box-shadow: 0 0 2rem 0 rgba(0, 1, 1, 0.1);
}

.categories-row {
    margin-bottom: 2rem;
}


.categories-row .categories--list-item svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: var(--red-orange);
    margin-right: 0.5rem;
}

.categories-row .categories--list-item .active,
.categories-row .categories--list-item a:hover {
    color: var(--red-orange);
    text-decoration: underline;
}

.blog-grid:not(.related-grid) .blog-item:nth-child(n+4) {
    margin-top: 3.75rem;
}

.blog-item--inner {
    position: relative;
    background-color: var(--white);
    /*padding: 0 0 1.875rem;*/
    transition: box-shadow .2s linear;
    box-shadow: 0 0 2rem 0 rgba(0, 1, 1, 0.05);
}

.blog-item:hover .blog-item--inner {
    box-shadow: 0 0 2rem 0 rgba(0, 1, 1, 0.1);
}

.blog-item--author {
    position: relative;
    display: flex;
    margin-top: 1.25rem;
    margin-bottom: 0;
    align-items: center;
    padding: 0 1.875rem;
}

.blog-item--author img {
    border-radius: 100%;
}

.blog-item--author a {
    margin-left: 1rem;
    font-size: 0.875rem;
    font-weight: bold;
}

.blog-grid .blog-item--title {
    height: 74px;
    padding: 0 1.875rem;
}

.blog-grid.related-grid .blog-item--title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 50px;
    margin-top: 1rem;
}

.blog-item--title {
    margin-bottom: 1rem;
}

.blog-item--title a {
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.1;
}

.blog-grid.related-grid .blog-item--title a {
    font-size: 1rem;
    font-weight: normal;
}

.blog-item--meta {
    margin: 0.625rem 0 1.875rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.blog-grid .blog-item--meta {
    padding: 0 1.875rem;
}

.blog-item--category {
    display: block;
    margin-bottom: 0.625rem;
}

.blog-item--category a {
    color: var(--red-orange);
}

.blog-item--meta-footer {
    display: flex;
    justify-content: space-between;
}

.blog-item--meta svg {
    position: relative;
    top: -2px;
    width: 20px;
    height: 20px;
    fill: var(--red-orange);
}

.blog-item--excerpt {
    min-height: 72px;
    margin-bottom: 0;
    padding: 0 1.875rem;
}

.blog-item--excerpt p {
    overflow: hidden;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.blog-item--buttons {
    padding: 20px;
    /*position: relative;
    top: 3.75rem;
    margin-top: -1.875rem;
    text-align: center;*/
}

.blog-item--buttons .btn {
    /*width: 300px;
    height: 60px;
    line-height: 50px;*/
}

.blog-grid.related-grid .btn {
    width: 100%;
    height: 50px;
    line-height: 40px;
}

@media screen and (max-width: 1200px) {
    .blog-grid:not(.related-grid) .blog-item:nth-child(n+3) {
        margin-top: 3.75rem;
    }
}

@media screen and (max-width: 992px) {
    .blog-grid:not(.related-grid) .blog-item:nth-child(n+2) {
        margin-top: 3.75rem;
    }

    .blog-grid .blog-item--title {
        height: auto;
    }
}

@media screen and (max-width: 568px) {
    .categories--list {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

    .categories--list .categories--list-item {
        margin: .5rem 1rem;
        flex: none;
    }

    .pagination-wrapper {
        margin: 5.625rem 0 3rem;
    }

    .blog-item--buttons .btn {
        width: calc(100% - 2.5rem);
    }

    .blog-item--author,
    .blog-grid .blog-item--meta,
    .blog-grid .blog-item--title,
    .blog-item--excerpt {
        padding: 0 1.25rem;
    }
}

.categories--list {
    gap: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch; /* Плавная прокрутка на iOS */
    -ms-overflow-style: none; /* Скрытие полосы прокрутки в Internet Explorer и Edge */
}

.categories--list::-webkit-scrollbar {
    width: 6px; /* Уменьшаем ширину полосы прокрутки */
    height: 6px; /* Уменьшаем высоту полосы прокрутки */
    background-color: transparent; /* Делаем фон полосы прокрутки прозрачным */
}

.categories--list::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2); /* Цвет "ползунка" */
    border-radius: 10px; /* Закругляем края ползунка */
}

.categories-row .categories--list-item {
    flex: unset;
    margin: 0;
}

.categories-row .categories--list-item a {
    background: #f4f4f4;
    padding: 11px 24px;
    border-radius: 8px;
    white-space: nowrap;
    color: #242424;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-transform: lowercase;
    font-weight: 500;
    display: block;

}

.categories-row .categories--list-item a::first-letter {
    text-transform: uppercase;
}

.categories-row .categories--list-item a:hover,
.categories-row .categories--list-item a.active {
    text-decoration: none;
    background: linear-gradient(90deg, #37ad80 0.05%, #2ec68b 100.05%);
    color: #fff;
}