/* tire.ua Hero Slider — стиль ориентирован на Journal-slider'е (фиксированное соотношение 3:1,
 * картинки = 1500x500 нативно, полная ширина внутри Journal-row). */

.tua-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #1a1a1a;
}

.tua-hero-track {
    position: relative;
    width: 100%;
    /* tireua: нативная пропорция баннеров 1360x420 (≈3.24:1) → картинка целиком, БЕЗ кропа */
    aspect-ratio: 1360 / 420;
    overflow: hidden;
}

.tua-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 550ms cubic-bezier(.215,.61,.355,1);
}
.tua-hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

/* <picture>-обёртка должна заполнять слайд (img внутри неё) */
.tua-hero .tua-hero-pic {
    display: block;
    width: 100%;
    height: 100%;
}

/* !important перебивает Journal-темовые `img { max-width: 100% }` и подобные */
.tua-hero .tua-hero-img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tua-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0 5%;
    background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0) 80%);
    z-index: 2;
}
.tua-hero-content {
    max-width: 600px;
    color: #fff;
}
.tua-hero-title {
    font-size: clamp(1.5rem, 3.5vw, 3rem);
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.tua-hero-subtitle {
    font-size: clamp(0.9rem, 1.3vw, 1.2rem);
    margin: 0 0 24px;
    line-height: 1.4;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.tua-hero-cta {
    display: inline-block;
    background: #FFAD00;
    color: #1a1a1a !important;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.tua-hero-cta:hover { background: #FF8500; color: #fff !important; }
.tua-hero-cta:active { transform: translateY(1px); }

/* Arrows */
.tua-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.85);
    color: #1a1a1a;
    border: 0;
    border-radius: 50%;
    font-size: 32px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: background 0.2s, transform 0.1s;
}
.tua-hero-arrow:hover { background: #FFAD00; color: #fff; }
.tua-hero-prev { left: 24px; }
.tua-hero-next { right: 24px; }

/* Dots */
.tua-hero-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 3;
}
.tua-hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 0;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.1s;
}
.tua-hero-dot:hover { background: rgba(255,255,255,0.8); }
.tua-hero-dot.active { background: #FFAD00; transform: scale(1.2); }

@media (max-width: 768px) {
    /* tireua: та же пропорция — баннер целиком, без кропа (контент во всю ширину, кропать нельзя) */
    .tua-hero-track { aspect-ratio: 1360 / 420; }
    /* на тачскрине стрелки убираем — листание свайпом (hero_slider.js) + точки */
    .tua-hero-arrow { display: none; }
    .tua-hero-dots { bottom: 8px; gap: 7px; }
    .tua-hero-dot { width: 8px; height: 8px; }
    /* текста на баннерах нет, но если появится — компактнее */
    .tua-hero-overlay { padding: 12px 18px; background: linear-gradient(180deg, rgba(0,0,0,0.4), rgba(0,0,0,0.7)); }
    .tua-hero-title { font-size: 1.3rem; }
    .tua-hero-subtitle { font-size: 0.8rem; margin-bottom: 12px; }
    .tua-hero-cta { padding: 9px 18px; font-size: 0.8rem; }
}
