.xs_blog_list
{
    background-color: rgba(238, 238, 238, 1);
    padding-top: 60px;
    padding-bottom: 60px;
}




.xs_blog_list__wrap
{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}


.xs_blog_list__item___img
{
    width: 100%;
    height: 300px;
}

.xs_blog_list__item
{
    width: 32%;
    display: flex;
    flex-direction: column;
    color: inherit;
    background-color: #fff;
        position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease,
                border-color 0.3s ease;
}



/* Блик сверху */
.xs_blog_list__item::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255,255,255,0.18) 50%,
        transparent 100%
    );
    transition: left 0.6s ease;
    z-index: 2;
    pointer-events: none;
}



/* Полоска снизу */
.xs_blog_list__item::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #e63946, #ff6b6b);
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 3;
}

.xs_blog_list__item:hover {
    /* transform: translateY(-8px) scale(1); */
    box-shadow: 0 20px 40px rgba(0,0,0,0.12), 0 6px 12px rgba(0,0,0,0.08);
    border-color: transparent;
}

.xs_blog_list__item:hover::before {
    left: 150%; /* блик пробегает по карточке */
}

.xs_blog_list__item:hover::after {
    width: 100%; /* полоска разворачивается снизу */
}

/* Картинка зумируется */
.xs_blog_list__item___img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.xs_blog_list__item:hover .xs_blog_list__item___img {
    transform: scale(1.04);
}

/* "Читать далее" оживает */
.xs_blog__more {
    transition: color 0.3s ease, letter-spacing 0.3s ease;
    display: inline-block;
}

.xs_blog_list__item:hover .xs_blog__more {
    color: #e63946;
    letter-spacing: 0.03em;
}

.xs_blog_list__item___info
{
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1; /* растягивает блок на всю высоту карточки */
}


.xs_blog__date
{
    color: rgba(51, 51, 51, 0.5);
    font-size: 16px;
}

.xs_blog_list__item___info h2
{
    font-size: 20px;
    line-height: 22px;
    color: rgba(51, 51, 51, 1);
    min-height: 44px;
    margin-bottom: 20px;
    margin-top: 10px;
}

.xs_blog_exerpt
{
    font-size: 18px;
    line-height: 22px;
    color: rgba(51, 51, 51, 1);
    margin-bottom: 10px;
    flex: 1; /* выталкивает "читать далее" вниз */
}


.xs_blog__more
{
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.xs_blog__more span
{
    color: rgba(229, 44, 45, 1);
    border-bottom: 1px solid rgba(229, 44, 45, 1)
}



.paginate 
{
    margin-top: 15px;
}

.prev.page-numbers
{
    display: inline-flex !important;
    padding:  0 3px;
    width: 60px !important;
}
.paginate .nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.paginate .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #333;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

/* Активная страница — красная */
.paginate .page-numbers.current {
    background: #d32f2f;
    border-color: #d32f2f;
    color: #fff;
}

/* Стрелка "Далее" — без рамки, только символ */
.paginate .next.page-numbers {
    border-color: transparent;
    background: transparent;
    font-size: 20px;
    color: #999;
    width: auto;
    padding: 0 6px;
}

/* Текст "Далее" скрываем, оставляем только стрелку */
.paginate .next.page-numbers {
    font-size: 0;
}
.paginate .next.page-numbers::after {
    content: '→';
    font-size: 18px;
}

.paginate .page-numbers:hover:not(.current) {
    border-color: #bbb;
    background: #f5f5f5;
}



.xs_blog__form
{
    min-height: 691px;
}




.xs_blog__form__telegram {
    background: #f2f2f2;
    padding: 60px 0;
}

.tg-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.tg-block__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tg-block__title {
    font-size: 24px;
    font-weight: 600;
    color: #d32f2f; /* красный как в вашем дизайне */
    letter-spacing: -0.01em;
}

.tg-block__sub {
    font-size: 18px;
    color: #555;
}

.tg-block__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #2aabee; /* цвет Telegram при наведении */
    color: #fff;
    text-decoration: none;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background 0.25s ease, transform 0.25s ease, gap 0.25s ease;
    border-radius: 2px;
    
}

.tg-block__btn:hover {
    background: #2aabee; /* цвет Telegram при наведении */
    opacity: 0.8;
    transition: background 0.25s ease, transform 0.25s ease, gap 0.25s ease;
}










/* Мобилки */
@media (max-width: 768px) {
    .tg-block {
        flex-direction: column;
        align-items: flex-start;
    }

    .tg-block__btn {
        width: 100%;
        justify-content: center;
    }
}


@media screen and (max-width: 1200px) {
    .xs_blog_list__item
    {
        width: 31.5%;
    }

}




@media screen and (max-width: 992px) {
    .xs_blog_list__item {
        width: 48%;
        margin-bottom: 10px;
    }
}


@media screen and (max-width: 576px) {
    .xs_blog_list__item {
        width: 100%;
    }
}