/* Карточка акции */

.stock-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 0.0625rem solid #f6f6f6;
    border-radius: 1.5rem;
    background: #fff;
}

.stock-card__image {
    aspect-ratio: 416 / 240;
    overflow: hidden;
    background: #f7fffc;
}

.stock-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stock-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 0.5rem 1.25rem 1.25rem;
    justify-content: space-between;
}

.stock-card__top,
.stock-card__bottom {
    display: flex;
    flex-direction: column;
}

.stock-card__title {
    margin: 0;
    color: #2a2a2a;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5rem;
}

.stock-card__desc {
    margin-top: 0.25rem;
    color: #4c5355;
    font-size: 0.8125rem;
    line-height: 1.0625rem;
}

.stock-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.stock-card__chip {
    position: relative;
    padding: 0.25rem 0.625rem 0.25rem 1.25rem;
    border-radius: 0.5rem;
    background: #f6f6f6;
    color: #4c5355;
    font-size: 0.75rem;
    line-height: 0.9375rem;
}

.stock-card__chip::before {
    content: "";
    position: absolute;
    left: 0.625rem;
    top: 50%;
    width: 0.375rem;
    height: 0.375rem;
    margin-top: -0.1875rem;
    border-radius: 50%;
    background: #2a7831;
}

.stock-card__price {
    margin-top: 1rem;
}

.stock-card__price-label {
    color: #2a2a2a;
    font-size: 0.8125rem;
    line-height: 1rem;
}

.stock-card__price-value {
    color: #2a2a2a;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.875rem;
}

.stock-card__terms {
    display: flex;
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: #2a2a2a;
    font-size: 0.8125rem;
    line-height: 1rem;
}

.stock-card__term {
    padding-right: 0.75rem;
}

.stock-card__term_extra {
    padding-right: 0;
    padding-left: 0.75rem;
    border-left: 0.0625rem solid #e6e6e6;
}

.stock-card__term-label,
.stock-card__term-value {
    font-size: 0.8125rem;
    line-height: 1rem;
}

.stock-card__term-value {
    margin-top: 0.125rem;
}

.stock-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.125rem;
    padding: 0.9375rem 2rem;
    border-radius: 1rem;
    background: #28a679;
    color: #fff;
    font-size: 1rem;
    line-height: 1.25rem;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
}

.stock-card__btn:hover {
    background: #22916a;
    color: #fff;
}

@media (min-width: 1200px) {
    .stock-card__title {
        font-size: 1.5rem;
        line-height: 1.8125rem;
    }
}
/* Страница акций, вариант 3: ленты по категориям */

.stock-cats {
    padding: 2.375rem 0 3.75rem;
    overflow-x: clip;
}

.stock-cats__title {
    margin: 0;
    color: #2a2a2a;
    font-size: 3.375rem;
    font-weight: 700;
    line-height: 4.0625rem;
}

.stock-cats__filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.stock-cats__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 2.75rem;
    padding: 0 1.375rem;
    border: 0;
    border-radius: 6.25rem;
    background: #f6f6f6;
    color: #2a2a2a;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.25rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.stock-cats__chip:hover {
    background: #ededed;
}

.stock-cats__chip.is-active {
    background: #28a679;
    color: #fff;
}

.stock-cats__chip-count {
    color: #4c5355;
    font-size: 0.875rem;
    line-height: 1.125rem;
}

.stock-cats__chip.is-active .stock-cats__chip-count {
    color: #fff;
}

.stock-cats__lanes {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 4rem;
}

.stock-lane {
    display: flex;
    align-items: stretch;
    gap: 2.5rem;
}

.stock-lane[hidden] {
    display: none;
}

.stock-lane__info {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 0 0 21.25rem;
    flex-direction: column;
    max-width: 21.25rem;
    min-height: 18.5rem;
    background: #fff;
    box-shadow: 2.5rem 0 2.5rem #fff;
}

.stock-lane__info::before,
.stock-lane__info::after {
    content: "";
    position: absolute;
    top: 0;
    width: 4rem;
    height: 100%;
    pointer-events: none;
}

.stock-lane__info::before {
    right: 100%;
    background: linear-gradient(-90deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.stock-lane__info::after {
    left: 100%;
    background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.stock-lane__heading {
    display: block;
}

.stock-lane__number {
    color: #28a679;
    font-size: 1rem;
    line-height: 1.25rem;
}

.stock-lane__title {
    margin: 1rem 0 0;
    color: #2a2a2a;
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 2.875rem;
}

.stock-lane__desc {
    margin-top: 1rem;
    color: #4c5355;
    font-size: 1rem;
    line-height: 1.375rem;
}

.stock-lane__controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.stock-lane__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    padding: 0;
    border: 0.0625rem solid #e3e3e3;
    border-radius: 50%;
    background: #fff;
    color: #2a2a2a;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}

.stock-lane__arrow_next {
    border-color: #28a679;
    background: #28a679;
    color: #fff;
}

.stock-lane__arrow_next:hover {
    border-color: #22916a;
    background: #22916a;
}

.stock-lane__arrow.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.stock-lane__count {
    margin-left: 0.5rem;
    color: #2a2a2a;
    font-size: 1rem;
    line-height: 1.25rem;
    white-space: nowrap;
}

.stock-lane__progress {
    height: 0.25rem;
    margin-top: 2rem;
    overflow: hidden;
    border-radius: 0.125rem;
    background: #f6f6f6;
}

.stock-lane__progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 0.125rem;
    background: #28a679;
    transition: width 0.25s;
}

.stock-lane__progress_mobile {
    display: none;
}

.stock-lane__slider-wrap {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 90.75rem;
}

@media (min-width: 1760px) {
    .stock-lane__slider-wrap {
        max-width: none;
        margin-right: calc((100vw - 109rem) / -2);
    }
}

.stock-lane__slider.swiper {
    width: 100%;
    overflow: visible;
}

.stock-lane__slider .stock-lane__slide {
    display: flex;
    flex: 0 0 26.125rem;
    width: 26.125rem;
    height: auto;
}

.stock-lane__slide .stock-card {
    width: 100%;
    height: 100%;
}

/* Планшет: описание над слайдером */

@media (max-width: 1199px) {
    .stock-cats__title {
        font-size: 2.5rem;
        line-height: 3rem;
    }

    .stock-cats__lanes {
        margin-top: 3rem;
        gap: 3rem;
    }

    .stock-lane {
        display: block;
        height: auto;
    }

    .stock-lane__info {
        width: 100%;
        max-width: none;
        height: auto;
        min-height: 0;
    }

    .stock-lane__info::after {
        display: none;
    }

    .stock-lane__title {
        font-size: 2rem;
        line-height: 2.375rem;
    }

    .stock-lane__desc {
        max-width: 37.5rem;
    }

    .stock-lane__controls {
        margin-top: 1.25rem;
    }

    .stock-lane__progress {
        margin-top: 1.5rem;
    }

    .stock-lane__slider-wrap {
        max-width: none;
        margin-top: 1.5rem;
    }

    .stock-lane__slider .stock-lane__slide {
        flex: 0 0 21.25rem;
        width: 21.25rem;
    }
}

@media (max-width: 767px) {
    .stock-cats {
        padding: 1.1875rem 0;
    }

    .stock-cats__title {
        font-size: 1.75rem;
        line-height: 1.8125rem;
    }

    .stock-cats__filter {
        flex-wrap: nowrap;
        gap: 0.5rem;
        width: calc(100% + 0.9375rem);
        margin-top: 1.5rem;
        padding-right: 0.9375rem;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .stock-cats__filter::-webkit-scrollbar {
        display: none;
    }

    .stock-cats__chip {
        flex: 0 0 auto;
        height: 2.375rem;
        padding: 0 1rem;
        font-size: 0.875rem;
        line-height: 1.125rem;
    }

    .stock-cats__chip-count {
        font-size: 0.8125rem;
        line-height: 1rem;
    }

    .stock-cats__lanes {
        margin-top: 2.5rem;
        gap: 2.5rem;
    }

    .stock-lane__info {
        height: auto;
        min-height: 5.25rem;
    }

    .stock-lane__heading {
        padding-right: 4.8125rem;
    }

    .stock-lane__number {
        display: inline-block;
        margin-right: 0.625rem;
        font-size: 0.875rem;
        line-height: 1.125rem;
        vertical-align: middle;
    }

    .stock-lane__title {
        display: inline;
        margin: 0;
        font-size: 1.1875rem;
        font-weight: 500;
        line-height: 1.625rem;
        vertical-align: middle;
    }

    .stock-lane__desc {
        max-width: 17.5rem;
        margin-top: 1rem;
        font-size: 0.8125rem;
        line-height: 1.125rem;
    }

    .stock-lane__controls {
        position: absolute;
        top: 0;
        right: 0;
        gap: 0.5rem;
        margin: 0;
    }

    .stock-lane__arrow {
        width: 2.5rem;
        height: 2.5rem;
    }

    .stock-lane__count,
    .stock-lane__info > .stock-lane__progress {
        display: none;
    }

    .stock-lane__slider-wrap {
        width: calc(100% + 0.9375rem);
        margin-top: 1rem;
    }

    .stock-lane__slider .stock-lane__slide {
        flex: 0 0 18.75rem;
        width: 18.75rem;
    }

    .stock-lane__progress_mobile {
        display: block;
        width: calc(100% - 0.9375rem);
        margin-top: 0.75rem;
    }
}

@media (max-width: 359px) {
    .stock-lane__title {
        font-size: 1.25rem;
        line-height: 1.5rem;
    }

    .stock-lane__desc {
        max-width: 15.625rem;
    }
}
