/* ─── Hero Slider — стили ────────────────────────────────────────────────── */
/* Файл: assets/hero-slider.css                                               */

/* Шрифты */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Переменные ─────────────────────────────────────────────────────────── */
.hs-hero {
    --hs-dark:       #050810;
    --hs-dark2:      #0a0f1e;
    --hs-dark3:      #0d1428;
    --hs-cyan:       #00d4ff;
    --hs-cyan-dim:   rgba(0, 212, 255, 0.15);
    --hs-white:      #f0f4ff;
    --hs-muted:      rgba(176, 190, 220, 0.7);
    --hs-border:     rgba(255, 255, 255, 0.08);
    --hs-duration:   0.65s;
    --hs-ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Ширина внутреннего контента */
    --hs-container: 1600px;
    --hs-side-gap: max(24px, calc((100vw - var(--hs-container)) / 2));
}

/* ── Контейнер ──────────────────────────────────────────────────────────── */
.hs-hero {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
    background: var(--hs-dark);
    font-family: 'Inter', sans-serif;
}

/* ── Трек ───────────────────────────────────────────────────────────────── */
.hs-track {
    display: flex;
    height: 100%;
    transition: transform var(--hs-duration) var(--hs-ease);
    will-change: transform;
}

/* ── Один слайд ─────────────────────────────────────────────────────────── */
.hs-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 80px var(--hs-side-gap);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Тёмный оверлей для слайдов с фото */
.hs-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(5, 8, 16, 0.92) 0%,
        rgba(5, 8, 16, 0.55) 50%,
        rgba(5, 8, 16, 0.3) 100%
    );
    z-index: 1;
}

/* ── Цветовые схемы фонов ───────────────────────────────────────────────── */
.hs-bg-slide-dark-blue  { background-color: var(--hs-dark2); }
.hs-bg-slide-dark-green { background-color: #050e08; }
.hs-bg-slide-dark-purple{ background-color: #080510; }

/* SVG-паттерн сетки */
.hs-slide-bg-pattern {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* ── Контент слайда ─────────────────────────────────────────────────────── */
.hs-content {
    position: relative;
    z-index: 3;
    max-width: 620px;
}

.hs-tag {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--hs-cyan);
    font-weight: 500;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s 0.1s, transform 0.5s 0.1s;
}

.hs-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 700;
    line-height: 1.08;
    color: var(--hs-white);
    margin: 0 0 18px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s 0.2s, transform 0.55s 0.2s;
}

.hs-desc {
    font-size: clamp(14px, 1.5vw, 16px);
    color: var(--hs-muted);
    line-height: 1.65;
    max-width: 500px;
    margin: 0 0 32px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s 0.3s, transform 0.5s 0.3s;
}

.hs-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--hs-cyan);
    text-decoration: none;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 0.5s 0.4s,
        transform 0.5s 0.4s,
        gap 0.25s ease;
}

.hs-cta:hover {
    gap: 18px;
}

.hs-cta-arrow {
    transition: transform 0.25s ease;
}

.hs-cta:hover .hs-cta-arrow {
    transform: translateX(4px);
}

/* Активный слайд — анимация появления */
.hs-slide.is-active .hs-tag,
.hs-slide.is-active .hs-title,
.hs-slide.is-active .hs-desc,
.hs-slide.is-active .hs-cta {
    opacity: 1;
    transform: translateY(0);
}

/* Номер слайда */
.hs-slide-num {
    position: absolute;
    right: var(--hs-side-gap);
    bottom: 60px;
    font-family: 'Inter', sans-serif;
    font-size: clamp(60px, 8vw, 100px);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    z-index: 2;
    pointer-events: none;
    user-select: none;
}

/* ── Стрелки навигации ──────────────────────────────────────────────────── */
.hs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--hs-border);
    color: var(--hs-white);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.hs-arrow:hover {
    background: var(--hs-cyan);
    border-color: var(--hs-cyan);
    color: var(--hs-dark);
}

.hs-arrow-prev {
    left: 24px;
}

.hs-arrow-next {
    right: 24px;
}

/* ── Точки-индикаторы ───────────────────────────────────────────────────── */
.hs-dots {
    position: absolute;
    bottom: 28px;
    left: var(--hs-side-gap);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hs-dot {
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: width 0.3s ease, background 0.3s ease;
}

.hs-dot.is-active {
    width: 44px;
    background: var(--hs-cyan);
}

/* ── Пустое состояние ───────────────────────────────────────────────────── */
.hs-empty {
    padding: 40px;
    background: #0a0f1e;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    border: 1px dashed rgba(255,255,255,0.1);
    text-align: center;
}

/* ── Адаптив ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hs-slide {
        padding: 40px var(--hs-side-gap);
    }

    .hs-slide-num {
        right: var(--hs-side-gap);
        bottom: 40px;
    }

    .hs-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .hs-arrow-prev {
        left: 12px;
    }

    .hs-arrow-next {
        right: 12px;
    }
}