.articles {
    margin-bottom: 64px;
}

.articles__swiper-container {
    position: relative;
    margin-bottom: 64px;
}

.articles_swiper {
    overflow: hidden;
    position: relative;
}

.articles .swiper-container {
    position: relative;
}

.articles .swiper-slide {
    height: auto;
}

.articles__card {
    display: flex;
    flex-direction: column;
    padding: 16px;
    border: 1px solid rgba(208, 208, 208, 1);
    border-radius: 12px;
    height: 100%;
    transition: all 0.3s ease;
}

.articles__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.articles__image-block {
    position: relative;
    margin-bottom: 16px;
}

.articles__image-block img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
}

.articles__rating {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.articles__card-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.articles__card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: rgba(0, 49, 60, 1);
    line-height: 1.4;
}

.articles__card-description {
    font-size: 14px;
    font-weight: 400;
    margin: 0 0 16px 0;
    color: rgba(111, 111, 111, 1);
    line-height: 1.4;
    flex-grow: 1;
}

.articles__card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(111, 111, 111, 1);
    margin-top: auto;
}

.articles__views {
    font-weight: 500;
}

.articles__author {
    font-style: italic;
}

.articles__date {
    font-size: 12px;
    color: rgba(111, 111, 111, 1);
    font-weight: 400;
}

.articles-nav__button-prev {
    width: 48px;
    height: 48px;
    position: absolute;
    box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.1);
    background-color: white;
    top: calc(50% - 24px);
    left: calc(0px - 55px);
    z-index: 10;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.articles-nav__button-next {
    width: 48px;
    height: 48px;
    position: absolute;
    top: calc(50% - 24px);
    right: calc(0px - 81px);
    z-index: 10;
    box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.1);
    background-color: white;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.articles-nav__button-prev:hover,
.articles-nav__button-next:hover {
    transform: scale(1.1);
}

.articles-nav__button-prev.swiper-button-disabled,
.articles-nav__button-next.swiper-button-disabled {
    opacity: 0.35;
    cursor: auto;
    pointer-events: none;
}

/* Стили для кнопок статей */
.articles__button-left {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.articles__button {
    border: none;
    padding: 13px 30px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

@media (max-width: 768px) {
    .articles__buttons-catalog {
        margin-bottom: 24px;
        justify-content: flex-start !important;
        width: 100% !important;
    }

    .articles__button-left-catalog {
        justify-content: flex-start !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
    }

    .reviews__button-left-catalog {
        justify-content: space-between !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
    }

    .reviews__button{
        padding: 13px 18px !important;
    }
}

.articles__button--active {
    background: rgba(0, 140, 149, 1);
    color: white;
}

.articles__button--not-active {
    background: rgba(0, 140, 149, 0.1);
    color: rgba(0, 140, 149, 1);
}

.articles__button--not-active::before {
    /* content: url('/themes/classic/styles/images/like-color.svg');
    margin-right: 6.5px; */
}

.articles__button--active::before {
    /* content: url('/themes/classic/styles/images/like-white.svg');
    margin-right: 6.5px; */
}

.articles__button:last-child {
    border-radius: 0px 4px 4px 0px;
}

.articles__button:first-child {
    border-radius: 4px 0px 0px 4px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .articles__card-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .articles-nav__button-prev {
        left: calc(0px - 30px);
        width: 40px;
        height: 40px;
    }
    
    .articles-nav__button-next {
        right: calc(0px - 30px);
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .articles__button-left {
        justify-content: center;
    }
    
    .articles__button {
        flex: 1;
        min-width: 0;
        text-align: center;
    }
}

/* Force square buttons inside articles button-left blocks */
.articles__button-left .articles__button,
.articles__button-left-catalog .articles__button,
.articles__button-left .articles__button:first-child,
.articles__button-left .articles__button:last-child,
.articles__button-left-catalog .articles__button:first-child,
.articles__button-left-catalog .articles__button:last-child {
    border-radius: 0 !important;
}
