/* =============================================
   WERWOLF — Animated Hero Slider
   ============================================= */


.hero-slider {
    position: relative;
    height: 600px; /* совпадает с основным дизайном */
    border-radius: var(--radius-l);
    overflow: hidden;
    margin-bottom: var(--gap);
    background: #000;
}

/* ── SLIDES ─────────────────────────────────── */
.slides-container {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none; /* не кликабельно пока неактивно */
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 5;
}

/* фото фона */
.hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    will-change: transform;
}

/* градиентная маска — текст читается */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(10, 10, 11, 0.88) 0%,
        rgba(10, 10, 11, 0.45) 55%,
        transparent 100%
    );
    z-index: 2;
}

/* ── ТЕКСТ СЛАЙДА (верхний левый угол) ──────── */
.hero-content {
    position: absolute;
    top: 64px;
    left: 64px;
    right: 15%;   /* ui-fix: expanded from 35% for more breathing room */
    z-index: 3;
}

.hero-content h1,
.hero-content .hero-slide-heading {
    font-size: 72px; /* ui-fix: extreme scale per design system */
    font-weight: 800;
    line-height: 1.0;
    color: var(--text-primary);
    margin-bottom: 24px;
    font-family: var(--font-logo);
    letter-spacing: -0.04em;
    max-width: 860px;      /* ui-fix: expanded from 680px for better flow */
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
}

.hero-content p {
    font-size: 18px;
    color: rgba(240, 237, 232, 0.75);
    line-height: 1.6;
    max-width: 640px;      /* ui-fix: expanded from 580px to match wider h1 */
    opacity: 0;   /* GSAP управляет */
    transform: translateY(20px);
    will-change: transform, opacity;
}

/* ── НИЖНИЙ ЛЕВЫЙ БЛОК: кнопка + стрелки ────── */
.hero-bottom-left {
    position: absolute;
    bottom: 40px;
    left: 64px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 6;
}

.slide-btn-area {
    opacity: 0;      /* GSAP управляет */
    transform: translateY(15px);
    will-change: transform, opacity;
}

/* ── TRUST BADGES — правый нижний ───────────── */
.hero-trust-area {
    position: absolute;
    bottom: 40px;
    right: 64px;
    display: flex;
    gap: 8px;
    z-index: 6;
}

.hero-trust-area .trust-badge {
    background: rgba(15, 15, 17, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(240, 237, 232, 0.9);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-family: var(--font-logo);
    font-size: 11px; /* ui-fix: technical labal scale */
    font-weight: 700;
    letter-spacing: 0.05em; /* ui-fix: technical tracking */
    text-transform: uppercase;
    white-space: nowrap;
}

/* .hero-controls — упразднён, стрелки переехали в .hero-bottom-left */

.slider-counter {
    font-family: var(--font-logo);
    font-weight: 700;
    font-size: 14px;
    color: rgba(240, 237, 232, 0.5);
    letter-spacing: 0.08em;
}

.slider-counter .current {
    color: var(--accent);
    font-size: 16px;
}

.slider-arrows {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.slider-arrow {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 16px;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
    user-select: none;
}

.slider-arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

/* ── ИНДИКАТОРЫ СЛАЙДОВ — правый бок, вертикально ── */
.slide-ticks {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 6;
}

.slide-tick {
    width: 3px;
    height: 28px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.slide-tick-fill {
    width: 100%;
    height: 0%;
    background: var(--accent);
    border-radius: 2px;
    transition: background 0.2s;
}

.slide-tick.done .slide-tick-fill {
    height: 100%;
    background: rgba(200, 145, 42, 0.4);
}

/* ── КНОПКИ HERO ─────────────────────────────── */
.btn-hero-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--accent);
    color: #000;
    min-width: 340px;
    height: 64px;
    border-radius: var(--radius-full); /* ui-fix: capsule rounding for premium feel */
    text-decoration: none;
    font-weight: 800;
    font-size: 16px;
    font-family: var(--font-logo);
    letter-spacing: 0.05em; /* ui-fix: cta tracking */
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-hero-large:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 145, 42, 0.35);
}

.btn-hero-large svg {
    transition: transform 0.2s;
}

.btn-hero-large:hover svg {
    transform: translate(2px, -2px);
}

.btn-text {
    color: rgba(240, 237, 232, 0.7);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 3px;
    transition: color 0.2s, border-color 0.2s;
}

.btn-text:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* =============================================
   Responsive hero: homepage
   ============================================= */
@media (max-width: 1200px) {
    .hero-slider {
        height: 560px;
    }

    .hero-content {
        top: 56px;
        left: 48px;
        right: 48px;
    }

    .hero-content h1,
    .hero-content .hero-slide-heading {
        max-width: 720px;
        font-size: 56px;
    }

    .hero-content p {
        max-width: 560px;
        font-size: 17px;
    }

    .hero-bottom-left {
        left: 48px;
        bottom: 32px;
    }

    .hero-trust-area {
        right: 48px;
        bottom: 32px;
        max-width: 420px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

@media (max-width: 900px) {
    .hero-slider {
        height: 560px;
        border-radius: 24px;
    }

    .hero-image {
        background-position: center top;
    }

    .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(10, 10, 11, 0.64) 0%,
            rgba(10, 10, 11, 0.82) 48%,
            rgba(10, 10, 11, 0.96) 100%
        );
    }

    .hero-content {
        top: 36px;
        left: 28px;
        right: 28px;
    }

    .hero-content h1 {
        max-width: 560px;
        font-size: 44px;
        line-height: 1.02;
        margin-bottom: 18px;
    }

    .hero-content p {
        max-width: 520px;
        font-size: 16px;
        line-height: 1.55;
    }

    .hero-bottom-left {
        left: 28px;
        right: 28px;
        bottom: 28px;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: nowrap;
    }

    .btn-hero-large {
        flex: 1;
        min-width: 0;
        width: auto;
        height: 56px;
        padding: 0 28px;
        font-size: 14px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
    }

    .hero-trust-area {
        left: 28px;
        right: 28px;
        bottom: 104px;
        justify-content: flex-start;
        max-width: none;
    }

    .hero-trust-area .trust-badge {
        min-height: 46px;
        padding: 9px 14px;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 800;
        border-color: rgba(255,255,255,0.22);
        background: rgba(12,12,14,0.58);
        white-space: normal;
    }

    .slide-ticks {
        right: 14px;
    }
}

@media (max-width: 640px) {
    .hero-slider {
        height: 500px;
        border-radius: 20px;
    }

    .hero-content {
        top: 28px;
        left: 20px;
        right: 20px;
    }

    .hero-content h1 {
        font-size: 34px;
        line-height: 1.04;
        max-width: 340px;
    }

    .hero-content p {
        font-size: 15px;
        max-width: 320px;
    }

    .hero-bottom-left {
        left: 20px;
        right: 20px;
        bottom: 20px;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .btn-hero-large {
        min-width: 0;
        flex: 1;
        height: 48px;
        padding: 0 18px;
        font-size: 12px;
        letter-spacing: 0.03em;
    }

    .slider-arrows {
        gap: 6px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .hero-trust-area {
        left: 20px;
        right: 20px;
        bottom: 88px;
        gap: 6px;
    }

    .hero-trust-area .trust-badge {
        font-size: 10px;
        line-height: 1.2;
        max-width: 160px;
    }

    .slide-ticks {
        display: none;
    }
}

@media (max-width: 420px) {
    .hero-slider {
        height: 470px;
    }

    .hero-content h1 {
        font-size: 30px;
        max-width: 300px;
    }

    .hero-content p {
        font-size: 14px;
        max-width: 290px;
    }

    .hero-trust-area .trust-badge:nth-child(3) {
        display: none;
    }
}

/* Final hero badge alignment — this file loads last */
@media (max-width: 900px) {
    .hero-trust-area {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        left: 28px !important;
        right: 28px !important;
        bottom: 112px !important;
    }

    .hero-trust-area .trust-badge {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        min-height: 42px !important;
        height: 42px !important;
        padding: 0 18px !important;
        box-sizing: border-box !important;
        border-radius: 999px !important;
        font-size: 11px !important;
        line-height: 1 !important;
        font-weight: 800 !important;
        letter-spacing: 0.03em !important;
        white-space: nowrap !important;
        text-align: center !important;
    }
}

@media (max-width: 520px) {
    .hero-trust-area {
        left: 20px !important;
        right: 20px !important;
        bottom: 92px !important;
        gap: 8px !important;
    }

    .hero-trust-area .trust-badge {
        height: 36px !important;
        min-height: 36px !important;
        padding: 0 13px !important;
        font-size: 9px !important;
        letter-spacing: 0.015em !important;
    }
}
