/* ==========================================================================
   #HERO SECTION STYLES
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-slider,
.hero-slide {
    height: 100%;
    position: relative;
}

.hero-slide {
    opacity: 0;
    transition: opacity 0.6s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide__image {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
}

.hero-slide__title {
    position: absolute;
    bottom: 130px;
    /* Опускаем заголовок ниже */
    left: 0;
    width: 100%;
    z-index: 3;
    text-align: center;
    padding: 0 2rem;
}

.hero-slide__title-content {
    display: inline-block;
    color: white;
    font-size: 1.5rem;
    /* Уменьшаем размер шрифта в 2 раза */
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    padding: 1.2rem 2.5rem;
    /* Увеличим внутренние отступы для большего текстового поля */
    background: rgba(0, 0, 0, 0.6);
    border-left: 3px solid #cf7b3c;
    backdrop-filter: blur(5px);
    transform: translateY(20px);
    animation: titleFadeIn 0.8s ease forwards;
    max-width: 80%;
    /* Ограничим максимальную ширину */
    word-wrap: break-word;
    /* Разрешим перенос слов */
    text-align: left;
    /* Выровняем текст по левому краю */
}

@keyframes titleFadeIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-slider__controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 3;
}

.hero-slider__prev,
.hero-slider__next {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-slider__prev:hover,
.hero-slider__next:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: #cf7b3c;
}

.hero__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    z-index: 2;
}

.hero__nav-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3rem;
    /* Увеличиваем отступы по бокам */
    background: rgba(0, 0, 0, 0.5);
    /* Добавляем фон для лучшей читаемости */
}

.hero__nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__nav-line {
    position: absolute;
    top: 40%;
    /* Поднимаем линии выше */
    height: 1px;
    background: linear-gradient(90deg, transparent, #cf7b3c, transparent);
    opacity: 0.7;
}

.hero__nav-line--left {
    left: 3rem;
    right: 50%;
    margin-right: 100px;
    /* Увеличиваем отступ от центра */
}

.hero__nav-line--right {
    right: 3rem;
    left: 50%;
    margin-left: 100px;
    /* Увеличиваем отступ от центра */
}

.hero__scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.hero__nav-label {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.hero__nav-arrow {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(207, 123, 60, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.hero__nav-arrow:hover {
    border-color: #cf7b3c;
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(207, 123, 60, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(207, 123, 60, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(207, 123, 60, 0);
    }
}

.hero__nav-timer {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-slider__timer {
    width: 50px;
    height: 50px;
}

.hero-slider__timer-progress {
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider__timer-progress::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #cf7b3c;
    border-radius: 50%;
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
    transform: rotate(45deg);
    animation: timer-progress 5s linear infinite;
}

.hero-slider__timer-text {
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

@keyframes timer-progress {
    0% {
        transform: rotate(45deg);
    }

    100% {
        transform: rotate(405deg);
    }
}

/* Адаптивность для героя */
@media (max-width: 768px) and (min-width: 600px) {
    .hero-slider__controls {
        padding: 0 1rem;
    }

    .hero-slider__prev,
    .hero-slider__next {
        width: 40px;
        height: 40px;
    }

    .hero__nav-panel {
        padding: 0 1rem;
        height: 75px;
    }

    .hero__nav-line--left {
        margin-right: 50px;
    }

    .hero__nav-line--right {
        margin-left: 50px;
    }

    .hero__nav-label {
        font-size: 0.8rem;
        margin-bottom: 7px;
    }

    .hero__nav-arrow {
        width: 35px;
        height: 35px;
    }

    .hero-slider__timer {
        width: 40px;
        height: 40px;
    }

    .hero-slide__title {
        bottom: 100px;
    }

    .hero-slide__title-content {
        font-size: 1.8rem;
        padding: 0.8rem 1.5rem;
    }

    .hero__overlay {
        height: 100px;
    }
}

@media (max-width: 576px) {
    .hero-slider__controls {
        padding: 0 0.8rem;
    }

    .hero-slider__prev,
    .hero-slider__next {
        width: 38px;
        height: 38px;
    }

    .hero__nav-panel {
        padding: 0 0.8rem;
        height: 70px;
    }

    .hero__nav-line--left {
        margin-right: 40px;
    }

    .hero__nav-line--right {
        margin-left: 40px;
    }

    .hero__nav-label {
        font-size: 0.75rem;
        margin-bottom: 6px;
    }

    .hero__nav-arrow {
        width: 32px;
        height: 32px;
    }

    .hero-slider__timer {
        width: 36px;
        height: 36px;
    }

    .hero-slide__title {
        bottom: 90px;
    }

    .hero-slide__title-content {
        font-size: 1.6rem;
        padding: 0.7rem 1.2rem;
    }

    .hero__overlay {
        height: 90px;
    }
}

@media (max-width: 480px) {
    .hero-slider__controls {
        padding: 0 0.6rem;
    }

    .hero-slider__prev,
    .hero-slider__next {
        width: 35px;
        height: 35px;
    }

    .hero__nav-panel {
        padding: 0 0.6rem;
        height: 72px;
    }

    .hero__nav-line--left {
        margin-right: 35px;
    }

    .hero__nav-line--right {
        margin-left: 35px;
    }

    .hero__nav-label {
        font-size: 0.78rem;
        margin-bottom: 6px;
    }

    .hero__nav-arrow {
        width: 30px;
        height: 30px;
    }

    .hero-slider__timer {
        width: 34px;
        height: 34px;
    }

    .hero-slide__title {
        bottom: 85px;
    }

    .hero-slide__title-content {
        font-size: 1.4rem;
        padding: 0.6rem 1rem;
    }

    .hero__overlay {
        height: 85px;
    }
}

@media (max-width: 375px) {
    .hero-slider__controls {
        padding: 0 0.5rem;
    }

    .hero-slider__prev,
    .hero-slider__next {
        width: 32px;
        height: 32px;
    }

    .hero__nav-panel {
        padding: 0 0.5rem;
        height: 60px;
    }

    .hero__nav-line--left {
        margin-right: 30px;
    }

    .hero__nav-line--right {
        margin-left: 30px;
    }

    .hero__nav-label {
        font-size: 0.7rem;
        margin-bottom: 5px;
    }

    .hero__nav-arrow {
        width: 28px;
        height: 28px;
    }

    .hero-slider__timer {
        width: 30px;
        height: 30px;
    }

    .hero-slide__title {
        bottom: 80px;
    }

    .hero-slide__title-content {
        font-size: 1.3rem;
        padding: 0.5rem 0.8rem;
    }

    .hero__overlay {
        height: 80px;
    }
}

@media (max-width: 320px) {
    .hero-slider__controls {
        padding: 0 0.4rem;
    }

    .hero-slider__prev,
    .hero-slider__next {
        width: 30px;
        height: 30px;
    }

    .hero__nav-panel {
        padding: 0 0.4rem;
        height: 55px;
    }

    .hero__nav-line--left {
        margin-right: 25px;
    }

    .hero__nav-line--right {
        margin-left: 25px;
    }

    .hero__nav-label {
        font-size: 0.65rem;
        margin-bottom: 4px;
    }

    .hero__nav-arrow {
        width: 24px;
        height: 24px;
    }

    .hero-slider__timer {
        width: 26px;
        height: 26px;
    }

    .hero-slide__title {
        bottom: 75px;
    }

    .hero-slide__title-content {
        font-size: 1.3rem;
        padding: 0.4rem 0.6rem;
    }

    .hero__overlay {
        height: 75px;
    }
}