/* ==== Главная: hero (тёмный баннер на белом фоне) ==== */

/* Белая полоса — фон вокруг баннера как у "Хиты недели" */
.um-hero-full {
    width: 100%;
    background: #f7f8fa;
    padding: 24px 0 0;
    box-sizing: border-box;
}

.um-hero-full__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Свечения — оставляем */
.um-hero-full__inner::before { content: none; }

/* Бейдж "Распродажа · до −40%" */
.um-hero-full__eyebrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    width: fit-content;
    margin-bottom: 18px;
    backdrop-filter: blur(10px);
}

.um-hero-full__dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #05ae51;
    border-radius: 50%;
    box-shadow: 0 0 12px #05ae51;
}

/* Заголовок */
.um-hero-full__title {
    position: relative;
    font-size: 50px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 14px;
    max-width: 800px;
}

.um-hero-full__title em {
    color: #05ae51;
    font-style: italic;
    font-weight: 700;
}

.um-hero-full__title b {
    font-weight: 900;
}

.um-hero-full__sub {
    position: relative;
    font-size: 17px;
    line-height: 1.5;
    color: rgba(255,255,255,.8);
    margin: 0 0 24px;
    max-width: 600px;
}

.um-hero-full__sub b {
    color: #fff;
    font-weight: 700;
}

.um-hero-full__btns {
    position: relative;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.um-hero-full__btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.um-hero-full__btn--primary {
    background: #05ae51;
    color: #fff;
    box-shadow: 0 8px 24px rgba(5,174,81,.4);
}

.um-hero-full__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(5,174,81,.5);
}

.um-hero-full__stats {
    position: relative;
    display: flex;
    gap: 44px;
    flex-wrap: wrap;
}

.um-hero-full__stats > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.um-hero-full__stats b {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}

.um-hero-full__stats span {
    font-size: 12px;
    color: rgba(255,255,255,.6);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600;
}

/* Чуть меньше отступ до "Хиты недели" */
.um-hero-full + .um-hits {
    padding-top: 32px;
}

/* ====== Адаптив ====== */
@media (max-width: 900px) {
    .um-hero-full { padding: 16px 16px 0; }
    .um-hero-full__inner {
        padding: 40px 32px;
        min-height: 240px;
        border-radius: 18px;
        max-width: none;
    }
    .um-hero-full__title { font-size: 36px; }
    .um-hero-full__sub { font-size: 15px; margin-bottom: 20px; }
    .um-hero-full__stats { gap: 28px; }
    .um-hero-full__stats b { font-size: 22px; }
}


.hero-slider__track {
    display: flex;
    height: 100%;
    transition: transform .55s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}
.hero-slider__slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
    color: inherit;
}
.hero-slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* Стрелки */
.hero-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    border: 0;
    cursor: pointer;
    color: #0f1419;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
    opacity: 0;
    transition: opacity .25s ease, transform .15s ease;
    z-index: 2;
    padding: 0;
}
.hero-slider:hover .hero-slider__arrow { opacity: 1; }
.hero-slider__arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.hero-slider__arrow:active { transform: translateY(-50%) scale(.95); }
.hero-slider__arrow svg { width: 22px; height: 22px; }
.hero-slider__arrow--prev { left: 16px; }
.hero-slider__arrow--next { right: 16px; }

/* Точки */
.hero-slider__dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 16px;
    display: flex;
    gap: 8px;
    z-index: 2;
    padding: 6px 10px;
    background: rgba(0,0,0,.25);
    border-radius: 100px;
    backdrop-filter: blur(8px);
}
.hero-slider__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.55);
    border: 0;
    cursor: pointer;
    transition: all .25s ease;
}
.hero-slider__dot:hover { background: rgba(255,255,255,.85); }
.hero-slider__dot.is-active {
    background: #fff;
    width: 28px;
    border-radius: 100px;
}

/* Адаптив */

/* Планшет: показываем баннер полностью, с минимальными полями по бокам */
@media (max-width: 1100px) {
    .hero-slider {
        border-radius: 20px;
        aspect-ratio: 16 / 9;
        background: #0f1419;
    }
    .hero-slider__slide img {
        object-fit: contain;
    }
    .hero-slider__arrow { width: 42px; height: 42px; opacity: 1; background: rgba(255,255,255,.9); }
    .hero-slider__arrow--prev { left: 12px; }
    .hero-slider__arrow--next { right: 12px; }
}

/* Мобильный: баннер вписан целиком, тёмный фон сливается с баннером */
@media (max-width: 640px) {
    .hero-slider {
        border-radius: 14px;
        aspect-ratio: 16 / 10;
        background: #0f1419;
    }
    .hero-slider__slide img {
        object-fit: contain;
    }
    .hero-slider__arrow {
        width: 36px;
        height: 36px;
        background: rgba(255,255,255,.85);
        opacity: 1;
    }
    .hero-slider__arrow svg { width: 18px; height: 18px; }
    .hero-slider__arrow--prev { left: 8px; }
    .hero-slider__arrow--next { right: 8px; }

    .hero-slider__dots { bottom: 8px; padding: 5px 8px; }
    .hero-slider__dot { width: 8px; height: 8px; }
    .hero-slider__dot.is-active { width: 20px; }
}

/* Очень маленькие экраны — совсем вертикальный формат */
@media (max-width: 400px) {
    .hero-slider {
        aspect-ratio: 4 / 3;
    }
}

/* ====== HERO SLIDER — Адаптив ====== */

.hero-slider__slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-slider__slide picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {
    .hero-slider {
        border-radius: 18px;
        /* Если мобильная картинка ~800×500 (1.6:1) — берём её пропорцию */
        aspect-ratio: 16 / 10;
        background: #0f1419;
    }
    .hero-slider__arrow { width: 40px; height: 40px; opacity: 1; background: rgba(255,255,255,.88); }
    .hero-slider__arrow--prev { left: 10px; }
    .hero-slider__arrow--next { right: 10px; }
}

@media (max-width: 640px) {
    .hero-slider {
        border-radius: 14px;
        aspect-ratio: 16 / 10;
    }
    .hero-slider__arrow {
        width: 34px;
        height: 34px;
        background: rgba(255,255,255,.85);
        opacity: 1;
    }
    .hero-slider__arrow svg { width: 16px; height: 16px; }
    .hero-slider__arrow--prev { left: 8px; }
    .hero-slider__arrow--next { right: 8px; }
    .hero-slider__dots { bottom: 8px; padding: 5px 8px; }
    .hero-slider__dot { width: 8px; height: 8px; }
    .hero-slider__dot.is-active { width: 20px; }
}

/* ====== HERO SLIDER — финальная версия ====== */

.hero-slider {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #0f1419;
    box-shadow: 0 10px 40px rgba(0,0,0,.15);
    width: 100%;
    max-width: 1352px;
    margin: 0 auto;
    /* Десктоп: горизонтальный формат */
    aspect-ratio: 1352 / 320;
}

.hero-slider__track {
    display: flex;
    height: 100%;
    transition: transform .55s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

.hero-slider__slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.hero-slider__slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-slider__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    user-select: none;
    -webkit-user-drag: none;
}

/* Стрелки */
.hero-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    border: 0;
    cursor: pointer;
    color: #0f1419;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
    opacity: 0;
    transition: opacity .25s ease, transform .15s ease;
    z-index: 2;
    padding: 0;
}
.hero-slider:hover .hero-slider__arrow { opacity: 1; }
.hero-slider__arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.hero-slider__arrow:active { transform: translateY(-50%) scale(.95); }
.hero-slider__arrow svg { width: 22px; height: 22px; }
.hero-slider__arrow--prev { left: 16px; }
.hero-slider__arrow--next { right: 16px; }

/* Точки */
.hero-slider__dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 16px;
    display: flex;
    gap: 8px;
    z-index: 2;
    padding: 6px 10px;
    background: rgba(0,0,0,.25);
    border-radius: 100px;
    backdrop-filter: blur(8px);
}
.hero-slider__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.55);
    border: 0;
    cursor: pointer;
    transition: all .25s ease;
}
.hero-slider__dot:hover { background: rgba(255,255,255,.85); }
.hero-slider__dot.is-active {
    background: #fff;
    width: 28px;
    border-radius: 100px;
}

/* ====== МОБИЛЬНЫЕ: показываем баннер ПОЛНОСТЬЮ (contain), без обрезки ====== */

@media (max-width: 900px) {
    .hero-slider {
        border-radius: 18px;
        /* Пропорция мобильного баннера ~800×500 = 8:5 = 1.6:1 */
        aspect-ratio: 16 / 10;
    }
    .hero-slider__slide img {
        object-fit: contain;    /* ← ПОКАЗЫВАЕМ ЦЕЛИКОМ */
    }
    .hero-slider__arrow {
        width: 40px;
        height: 40px;
        opacity: 1;
        background: rgba(255,255,255,.88);
    }
    .hero-slider__arrow--prev { left: 10px; }
    .hero-slider__arrow--next { right: 10px; }
}

@media (max-width: 640px) {
    .hero-slider {
        border-radius: 14px;
        aspect-ratio: 16 / 10;
    }
    .hero-slider__slide img {
        object-fit: contain;
    }
    .hero-slider__arrow {
        width: 34px;
        height: 34px;
        background: rgba(255,255,255,.85);
        opacity: 1;
    }
    .hero-slider__arrow svg { width: 16px; height: 16px; }
    .hero-slider__arrow--prev { left: 8px; }
    .hero-slider__arrow--next { right: 8px; }
    .hero-slider__dots { bottom: 8px; padding: 5px 8px; }
    .hero-slider__dot { width: 8px; height: 8px; }
    .hero-slider__dot.is-active { width: 20px; }
}

@media (max-width: 400px) {
    .hero-slider {
        aspect-ratio: 16 / 11;
    }
}
