/* ============================= */
/*          BLOCK: RUBBER        */
/* ============================= */

.rubber {
    background: #f3f3f3;
    padding: 90px 0 100px 0;
}

.rubber__title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 40px;
    letter-spacing: 0.05em;
    color: #4c4843;
    margin-bottom: 48px;
    text-align: center;
}

/* Переключатели */
.rubber__switchers {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.rubber__switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px 12px;
    min-width: 200px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    align-items: center;
    justify-content: center;
}

.rubber__switcher--active {
    background: var(--color-primary);
    color: #fff;
}
.rubber__switcher--active img {
    filter: brightness(100);
}
/* Каталог карточки */
.rubber__catalog {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 36px;
}

.rubber__group {
    display: none;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.rubber__group.active {
    display: flex;
    transition: opacity 0.3s ease;
}

.rubber__card {
    width: 420px;
    height: 471px;
    background: #fff;
    border-radius: 20px;
    padding: 24px 24px 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;

    font-weight: 600;
    font-size: 16px;
    color: var(--color-text);


    flex-direction: column;
    justify-content: flex-start;
}
.rubber__card img {
    margin-bottom: 24px;
}

.rubber__card-title {
    font-weight: 600;
    font-size: 24px;
    line-height: 130%;
    text-align: center;
    color: #4c4843;
    margin-bottom: 12px;
}

.rubber__card-price {
    display: flex;
    flex-direction: row;
    margin-bottom: 14px;
    gap: 12px;
}
.rubber__card-price .value {
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: #4c4843;
}
.rubber__card-price .label {
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: #4c4843;
}

.rubber__card-thichness {
    display: flex;
    flex-direction: row;
    gap: 8px;
}
.rubber__card-thichness .item {
    border-radius: 30px;
    padding: 2px 8px;

    height: 28px;
    background: #f3f3f3;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: #4c4843;
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* Кнопка перейти в каталог */
.rubber__btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.rubber__btn {
    width: 215px;
    height: 48px;
    border-radius: 8px;
    padding: 10px 20px 12px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.3s;
}

.rubber__btn:hover {
    opacity: 0.85;
}

/* Адаптив */
@media (max-width: 992px) {
    .rubber {
        padding: 64px 0;
    }
    .rubber__card {
        width: 100%;
    }

    .rubber__catalog,
    .rubber__group {
        flex-direction: column;
        gap: 20px;
    }

    .rubber__switchers {

        flex-direction: row;
    }
    .rubber__switcher {
        min-width: unset;
        flex-direction: column;
        text-align: center;
        padding: 10px 40px 12px;
    }

}

.rubber__group--list {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 20px;
}
.slick-track .rubber__card {

    margin-right: 20px;
}

button.slick-prev.slick-arrow {
    position: absolute;
    left: -32px;
    top: 50%;
    z-index: 100;
    background-color: transparent;
    background-image: url('images/arrow.svg');
    border: none;
    width: 64px;
    height: 64px;
    text-indent: -9999px;
    transform: rotate(180deg);
    cursor: pointer;
}
button.slick-next.slick-arrow {
    position: absolute;
    right: -32px;
    top: 50%;
    z-index: 100;
    background-color: transparent;
    background-image: url('images/arrow.svg');
    border: none;
    width: 64px;
    height: 64px;
    text-indent: -9999px;
    cursor: pointer;
}
button.slick-prev:hover,
button.slick-next:hover {
    background-image: url('images/arrow-active.svg');
}
.rubber__group.active {
    display: flex;
    
    padding: 0 20px;

    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
    overflow: hidden;
}

