/* ========================
   Базовые настройки (шрифты уже подключены в main.css)
   ======================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #000;
    background-color: #fcfcfc;
    overflow-x: hidden;
}

/* ========================
   Основной контент
   ======================== */
.sale-main {
    margin-top: 135px;
    padding-top: 0;
}

/* ========================
   Хлебные крошки
   ======================== */
.breadcrumbs {
    font-size: 18px;
    font-weight: 400;
    color: #929292;
    margin-bottom: 60px;
    padding-top: 0;
}

.breadcrumbs a {
    color: #929292;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: #D90D26;
}

.breadcrumbs__sep {
    margin: 0 2px;
}

.breadcrumbs__current {
    color: #929292;
}

/* ========================
   Заголовок и описание
   ======================== */
.sale-hero__title {
    font-size: 50px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 30px;
    color: #000;
}

.sale-hero__desc {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5;
    max-width: 1200px;
    margin-bottom: 60px;
    color: #000;
}

/* ========================
   Актуальные акции
   ======================== */
.promo-section {
    margin-bottom: 60px;
}

.promo-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.promo-section__title {
    font-size: 30px;
    font-weight: 500;
}

.promo-section__controls {
    display: flex;
    gap: 30px;
}

/* Стрелки (актуальные акции) */
.promo-arrow {
    width: 74px;
    height: 34px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: linear-gradient(-41deg, #D90D26, #E94055, #D90D26); 
    border: none;
    padding: 0;
    position: relative;
    box-sizing: border-box;
}

/* Обводка для неактивной кнопки – внутри границ */
.promo-arrow.disabled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 5px;
    background: linear-gradient(-41deg, #D90D26, #E94055, #D90D26);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1px;
    z-index: -1;
}

/* Неактивное состояние */
.promo-arrow.disabled {
    background: transparent;
    cursor: default;
    pointer-events: none;
}

/* Наведение на неактивную кнопку не меняет её вид */
.promo-arrow.disabled:hover {
    background: transparent;
    opacity: 1;
}

.promo-arrow:hover {
    opacity: 0.8;
}

.promo-arrow__icon {
    display: block;
    width: 50px;
    height: auto;
    object-fit: contain;
}

/* Отражаем иконку для левой кнопки */
.promo-arrow--left .promo-arrow__icon {
    transform: scaleX(-1);
}

/* Карточки акций */
.promo-card {
    width: 373px;
    height: 320px;
    background-color: #fcfcfc;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.promo-card__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 30px 30px 30px 30px;
    height: 100%;
}

.promo-card__title {
    font-size: 22px;
    font-weight: 500;
    text-align: right;
    width: 305px;
    margin-bottom: 65px;
    min-height: 54px;
    line-height: 1.25;
}

.promo-card__discount {
    font-size: 100px;
    font-weight: 500;
    line-height: 1;
    margin: 0 0 10px 0;
    background: linear-gradient(-41deg, #D90D26, #E94055, #D90D26);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.promo-card__date {
    font-size: 16px;
    font-weight: 300;
    color: #797979;
    margin-top: auto;
}

/* Обёртка слайдера для отображения тени */
.promo-slider-clip {
    overflow: hidden;
    padding: 20px;
    margin: -20px;
}

/* Слайдер для промо-карточек */
.promo-slider {
    overflow: visible;
}

.promo-slider__track {
    display: flex;
    gap: 40px;
    transition: transform 0.3s ease;
}

/* ========================
   Постоянные скидки 
   ======================== */
.regular-discounts {
    margin-bottom: 60px;
}

.regular-discounts__title {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 30px;
}

.discount-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.discount-item {
    background-color: #f5f5f5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    height: 86px;
    padding: 0 30px;
    gap: 40px;
}

.discount-item__name {
    font-size: 20px;
    font-weight: 400;
    text-align: left;
    width: 320px;
    flex-shrink: 0;
}

.discount-item__value {
    font-size: 22px;
    font-weight: 400;
    background: linear-gradient(-41deg, #D90D26, #E94055, #D90D26);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    width: 180px;
    text-align: center;
    flex-shrink: 0;
}

.discount-item__desc {
    font-size: 18px;
    font-weight: 400;
    margin-left: auto;
    text-align: right;
    max-width: 600px;
}

/* ========================
   Призыв к действию
   ======================== */
.cta-block {
    display: flex;
    flex-direction: row; //
    justify-content: flex-end;   
    align-items: flex-start;
    gap: 158px;                  
    margin-bottom: 100px;
}

.cta-block__text {
    order: 1;
    max-width: 460px;
    flex-shrink: 0;             
}

.cta-block__heading {
    font-size: 40px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 30px;
    width: 660px;
}

.btn--cta {
    order: 4;
    margin-left: -1350px;
    margin-top: 140px;
    text-decoration: none;
    font-weight: 400;
}

.cta-block__images {
    order: 2;
    position: relative;         
    width: 580px;              
    height: auto;               
    flex-shrink: 0;
    display: block;
}

.cta-block__img {
    display: block;
    border-radius: 10px;
}

.cta-block__img--front {
    width: 580px;
    height: auto;
    position: relative;
    z-index: 2;
}

.cta-block__img--back {
    width: 346px;
    height: auto;
    object-fit: cover;
    position: absolute;
    top: 10px;
    left: -180px;                
    z-index: 1;
}

.cta-block__note {
    order: 3;
    font-size: 18px;
    font-weight: 300;
    color: #000;
    text-align: right;
    white-space: nowrap;
    z-index: 3;
    margin-top: 330px; 
    margin-left: -540px;
}

/* ========================
   Адаптивность (мобильная версия)
   ======================== */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    body {
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
    }

    .container {
        max-width: 100%;
        padding: 0 16px;
        margin: 0 auto;
    }

    .sale-main {
        margin-top: 83px;
    }

    .breadcrumbs {
        font-size: 12px;
        margin-top: 0;
        margin-bottom: 30px;
    }

    .sale-hero__title {
        font-size: 30px;
        margin-bottom: 15px;
    }
    .sale-hero__desc {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .promo-section__title,
    .regular-discounts__title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .promo-section__controls {
        display: none;
    }

    /* Слайдер – одна видимая карточка */
    .promo-slider-clip {
        width: 290px;
        margin: 0 auto;
        overflow: hidden;
        padding: 10px 10px;
        margin: -30px auto;
        margin-bottom: -10px;
        touch-action: pan-y pinch-zoom;
    }
    .promo-slider__track {
        gap: 20px;
    }
    .promo-card {
        width: 270px;
        height: 230px;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
    }
    .promo-card__inner {
        padding: 15px;
    }
    .promo-card__title {
        width: auto;
        font-size: 16px;
        margin-bottom: 30px;
    }
    .promo-card__discount {
        font-size: 80px;
        margin-bottom: 15px;
        margin-top: -10px;
    }
    .promo-card__date {
        font-size: 14px;
        text-align: right;
        margin-bottom: 15px;
    }

    .promo-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin: 20px 0 30px;
    }
    .promo-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #d9d9d9;
        cursor: pointer;
    }
    .promo-dot.active {
        background: #b5b5b5;
        transform: scale(1.2);
    }

    /* Постоянные скидки */
    .discount-list {
        gap: 10px;
    }
    .discount-item {
        background: #f5f5f5;
        border-radius: 10px;
        padding: 15px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        height: auto;
        width: 100%;
    }
    .discount-item__name {
        font-size: 14px;
        font-weight: 500;
        white-space: nowrap;
        flex: 1;
    }
    .discount-item__value {
        font-size: 14px;
        color: #D90D26;
        text-align: right;
        margin-left: auto;
        margin-top: 0; 
        flex-shrink: 0;
    }
    .discount-item__desc {
        width: 100%;
        font-size: 14px;
        font-weight: 300;
        text-align: left;
        margin-top: 8px;
    }

    /* Блок призыва к действию */
    .cta-block {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 60px;
    }
    .cta-block__text {
        order: 1;
        text-align: center;
        max-width: 100%;
    }
    .cta-block__heading {
        font-size: 20px;
        width: auto;
        margin-bottom: 20px;
        word-break: break-word;
    }
    .btn--cta {
        width: 220px;
        height: 55px;
        font-size: 16px;
        margin: 0 auto;
        margin-bottom: -10px;
        display: block;
    }
    .cta-block__images {
        order: 2;
        position: relative;
        min-height: 220px;
        margin: 10px 0;
        width: 100%;
        margin-top: -30px;
    }
    .cta-block__img--back {
        position: absolute;
        left: -15px;
        top: -10px;
        width: 166px;
        height: auto;
        z-index: 1;
    }
    .cta-block__img--front {
        position: relative;
        width: 258px;
        margin-left: auto;
        z-index: 2;
    }
    .cta-block__note {
        order: 3;
        text-align: center;
        font-size: 14px;
        white-space: normal;
        width: 100%;
        margin-bottom: 10px;
        margin-top: -90px;
        margin-right: auto;
        margin-left: auto;
        display: block;
    }

    .regular-discounts {
        margin-bottom: 40px;
    }
    .sale-main {
        margin-bottom: 40px;
    }
}