/* =============================================
   mobile_hero.css — Мобильный баннер главной
   Картинка = весь фон баннера, текст поверх слева
   ============================================= */

/* ---------- Показ/скрытие ---------- */
@media (min-width: 769px) {
    .hero-mob { display: none !important; }
}
@media (max-width: 768px) {
    .hero--desktop { display: none !important; }
    .hero-mob { display: block; }
}

/* ---------- Обёртка ---------- */
.hero-mob {
    margin: 12px 0 0;
    position: relative;
}

/* ---------- Трек ---------- */
.hero-mob__track { position: relative; }

/* ---------- Слайд: картинка = весь фон ---------- */
.hero-mob__slide {
    display: none;
    align-items: center;
    border-radius: 18px;
    overflow: hidden;
    min-height: 168px;
    background: #1a1a22 no-repeat right center;
    background-size: cover;
    position: relative;
    cursor: pointer;
}
.hero-mob__slide.active {
    display: flex;
    animation: heroMobIn 0.35s ease;
}
@keyframes heroMobIn {
    from { opacity: 0; transform: scale(0.98) translateX(6px); }
    to   { opacity: 1; transform: scale(1) translateX(0); }
}

/* Тёмный градиент слева — для читаемости текста поверх картинки */
.hero-mob__slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(15,15,20,0.92) 0%,
        rgba(15,15,20,0.75) 45%,
        rgba(15,15,20,0.15) 70%,
        transparent 100%
    );
    z-index: 1;
    border-radius: inherit;
}

/* ---------- Текст слева поверх картинки ---------- */
.hero-mob__body {
    flex: 0 0 60%;
    padding: 20px 0 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    z-index: 2;
    position: relative;
}

.hero-mob__badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    background: rgba(133,198,53,0.15);
    border: 1px solid rgba(133,198,53,0.4);
    color: #85c635;
    font-size: 10px; font-weight: 800;
    letter-spacing: 0.6px; text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
}

.hero-mob__title {
    font-size: 17px; font-weight: 900;
    color: #fff; line-height: 1.2;
    margin: 0;
}
.hero-mob__title span { color: #85c635; }

.hero-mob__desc {
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.hero-mob__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    padding: 9px 16px;
    background: #85c635;
    color: #fff;
    font-size: 13px; font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    align-self: flex-start;
    transition: background 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}
.hero-mob__btn i { font-size: 11px; }
.hero-mob__btn:active { transform: scale(0.95); background: #74b02a; }

/* ---------- Номер слайда (верхний правый угол) ---------- */
.hero-mob__slide::after {
    content: attr(data-num);
    position: absolute;
    top: 12px; right: 14px;
    font-size: 10px; font-weight: 700;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.5px;
    z-index: 3;
}

/* ---------- Точки ---------- */
.hero-mob__dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px 0 6px;
}
.hero-mob__dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    border: none; cursor: pointer; padding: 0;
    transition: all 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}
.hero-mob__dot.active {
    background: #85c635;
    width: 20px;
    border-radius: 4px;
}
