/**
 * Блок «Спец предложения / акции» — главная (редизайн)
 */
:root {
    --offers-container: 1500px;
    --offers-gap-section: 80px;
    --offers-gap-head: 64px;
    --offers-gap-cards: 24px;
    --offers-color-text: #111827;
    --offers-color-muted: #5a616c;
    --offers-color-bg: #f5f6fb;
    --offers-font: 'Vela Sans', 'Onest', system-ui, -apple-system, sans-serif;
    --offers-card-width: 461px;
    --offers-card-height: 520px;
    --offers-card-active-width: 530px;
    --offers-card-active-height: 620px;
}

.offers-main {
    padding: var(--offers-gap-section) 16px;
    font-family: var(--offers-font);
    color: var(--offers-color-text);
    overflow: visible;
}

@media (min-width: 1533px) {
    .offers-main {
        padding-left: 0;
        padding-right: 0;
    }
}

.offers-main__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--offers-gap-head);
    max-width: var(--offers-container);
    margin: 0 auto;
    overflow: visible;
    margin-bottom: 64px;
}

.offers-main__head {
    width: 100%;
    max-width: 732px;
    text-align: center;
}

.offers-main__title {
    margin: 0;
    font-size: 52px;
    font-weight: 600;
    line-height: 64px;
    color: var(--offers-color-text);
}

.offers-main__slider-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    min-height: var(--offers-card-active-height);
}

.offers-main__viewport {
    width: 100%;
    min-height: var(--offers-card-active-height);
    overflow: hidden;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}

.offers-main__viewport.is-dragging .offers-main__card {
    cursor: grabbing;
}

.offers-main__track {
    display: flex;
    align-items: center;
    gap: var(--offers-gap-cards);
    min-height: var(--offers-card-active-height);
    will-change: transform;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-user-select: none;
    user-select: none;
}

.offers-main__card {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 0 0 var(--offers-card-width);
    width: var(--offers-card-width);
    height: var(--offers-card-height);
    min-height: var(--offers-card-height);
    padding: 28px;
    border-radius: 20px;
    background: var(--offers-color-bg);
    isolation: isolate;
    cursor: grab;
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        min-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        border-radius 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.offers-main__card.is-active {
    flex-basis: var(--offers-card-active-width);
    width: var(--offers-card-active-width);
    height: var(--offers-card-active-height);
    min-height: var(--offers-card-active-height);
    padding: 32px;
    border-radius: 24px;
}

.offers-main__card-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    pointer-events: none;
}

.offers-main__card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.offers-main__card:not(.is-active) .offers-main__card-content {
    max-width: calc(100% - 64px);
}

.offers-main__card-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.offers-main__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    padding: 3px 8px 4px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
    color: #fff;
    background: #0084bd;
}

.offers-main__badge--hit {
    background: #0084bd;
}

.offers-main__badge--new,
.offers-main__badge--novinka,
.offers-main__badge--novelty {
    background: #009385;
}

.offers-main__badge--special,
.offers-main__badge--spec,
.offers-main__badge--sale,
.offers-main__badge--specpredlozhenie {
    background: #df700f;
}

.offers-main__badge--recommend,
.offers-main__badge--nabor,
.offers-main__badge--group,
.offers-main__badge--idet-nabor-grupp {
    background: #db5877;
}

.offers-main__badge--default {
    background: #0084bd;
}

.offers-main__card-title {
    margin: 0;
    font-size: 28px;
    font-weight: 500;
    line-height: 38px;
    color: var(--offers-color-text);
    transition: font-size 0.45s ease, line-height 0.45s ease;
}

.offers-main__card.is-active .offers-main__card-title {
    font-size: 32px;
    line-height: 40px;
}

.offers-main__card-desc {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    color: var(--offers-color-muted);
}

.offers-main__card-btn {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    width: 48px;
    height: 48px;
    margin-top: auto;
    border-radius: 8px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

a.offers-main__card-btn {
    cursor: pointer;
}

a.offers-main__card-btn:hover {
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
    transform: translateY(-1px);
}

.offers-main__card-btn svg {
    pointer-events: none;
}

.offers-main__viewport.is-dragging a.offers-main__card-btn {
    cursor: pointer;
}

.offers-main__nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.offers-main__nav-btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 14px;
    border: 2px solid #e9ebef;
    border-radius: 150px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.offers-main__nav-btn:hover {
    border-color: #d2d6dc;
    background: #fafbfc;
}

.offers-main__nav-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.drag-block.container.OFFERS_MAIN_drag {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    overflow: visible;
}

@media (max-width: 991px) {
    .offers-main__title {
        font-size: 36px;
        line-height: 44px;
    }

    :root {
        --offers-card-width: 320px;
        --offers-card-height: 420px;
        --offers-card-active-width: 340px;
        --offers-card-active-height: 460px;
    }

    .offers-main__slider-wrap,
    .offers-main__viewport,
    .offers-main__track {
        min-height: var(--offers-card-active-height);
    }

    .offers-main__card {
        padding: 24px;
    }

    .offers-main__card.is-active {
        padding: 24px;
    }

    .offers-main__card-content {
        max-width: 100%;
    }

    .offers-main__card:not(.is-active) .offers-main__card-content {
        max-width: calc(100% - 48px);
    }

    .offers-main__card-title {
        font-size: 22px;
        line-height: 30px;
    }

    .offers-main__card.is-active .offers-main__card-title {
        font-size: 24px;
        line-height: 32px;
    }

    .offers-main__card-desc {
        font-size: 16px;
        line-height: 22px;
    }
}
