/* Hero Slider Styles */
.hero-slider {
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    min-height: 600px;
    overflow: hidden;
    background: #ffffff;
}

.hero-slider-container {
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 5%;
    box-sizing: border-box;
}

/* Обертка для контента - две фракции */
.hero-slider-content-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
    padding: 80px 0;
    min-height: 600px;
}

/* Левая фракция - текст */
.hero-slider-left {
    flex: 1;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
}

/* Главный заголовок H1 */
.hero-slide-main-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #0056b3;
    margin: 0 !important;
    margin-bottom: 20px !important;
    text-align: left;
}

/* Обертка для H2, описания и кнопки */
.hero-slider-text-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Заголовок H2 */
.hero-slide-title {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    margin-bottom: 24px;
    color: #000000;
    text-align: left;
}

/* Описание */
.hero-slide-description {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 40px;
    color: #000000;
    text-align: left;
}

/* Кнопка */
.hero-slide-btn {
    display: inline-block;
    padding: 16px 40px;
    background: #ff6b35;
    color: #000000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
    align-self: flex-start;
}

.hero-slide-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.hero-slide-btn:hover::before {
    left: 100%;
}

.hero-slide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 107, 53, 0.5);
    background: #ff5722;
}

/* Правая фракция - изображение */
.hero-slider-right {
    flex: 1;
    max-width: 800px;
    position: relative;
}

.hero-slide-image-wrapper {
    width: 100%;
    position: relative;
}

.hero-slide-image-wrapper img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    object-fit: contain;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Скрытые слайды для данных */
.hero-slides {
    display: none;
}

/* Табы-переключатели в форме вытянутых шестигранников */
.hero-slider-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 0;
    background: #ffffff;
    position: relative;
    z-index: 10;
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
    padding: 0 5%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Высокая специфичность для табов слайдера - переопределяет глобальные стили */
.hero-slider .hero-slider-tabs .hero-tab,
section.hero-slider .hero-slider-tabs .hero-tab,
#home.hero-slider .hero-slider-tabs .hero-tab {
    position: relative !important;
    padding: 20px 40px !important;
    background: #f5f5f5 !important;
    border: none !important;
    color: #000000 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
    min-width: 0 !important;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%, 20px 50%) !important;
    margin-left: -20px !important;
    z-index: 1 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin-right: 0 !important;
}

.hero-slider .hero-slider-tabs .hero-tab:first-child,
section.hero-slider .hero-slider-tabs .hero-tab:first-child,
#home.hero-slider .hero-slider-tabs .hero-tab:first-child {
    margin-left: 0 !important;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%) !important;
}

.hero-slider .hero-slider-tabs .hero-tab:last-child,
section.hero-slider .hero-slider-tabs .hero-tab:last-child,
#home.hero-slider .hero-slider-tabs .hero-tab:last-child {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 20px 50%) !important;
}

.hero-slider .hero-slider-tabs .hero-tab .hero-tab-text,
section.hero-slider .hero-slider-tabs .hero-tab .hero-tab-text,
#home.hero-slider .hero-slider-tabs .hero-tab .hero-tab-text {
    color: #000000 !important;
}

.hero-slider .hero-slider-tabs .hero-tab::before,
section.hero-slider .hero-slider-tabs .hero-tab::before,
#home.hero-slider .hero-slider-tabs .hero-tab::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, #ff6b35 0%, #ff5722 100%) !important;
    opacity: 0 !important;
    transition: opacity 0.4s !important;
    z-index: -1 !important;
    clip-path: inherit !important;
}

.hero-slider .hero-slider-tabs .hero-tab:hover::before,
section.hero-slider .hero-slider-tabs .hero-tab:hover::before,
#home.hero-slider .hero-slider-tabs .hero-tab:hover::before {
    opacity: 0.1 !important;
}

.hero-slider .hero-slider-tabs .hero-tab:hover,
section.hero-slider .hero-slider-tabs .hero-tab:hover,
#home.hero-slider .hero-slider-tabs .hero-tab:hover {
    color: #ff6b35 !important;
    z-index: 2 !important;
    background: #f5f5f5 !important;
    border: none !important;
}

.hero-slider .hero-slider-tabs .hero-tab.active,
section.hero-slider .hero-slider-tabs .hero-tab.active,
#home.hero-slider .hero-slider-tabs .hero-tab.active {
    background: linear-gradient(135deg, #ff6b35 0%, #ff5722 100%) !important;
    color: #000000 !important;
    z-index: 3 !important;
    box-shadow: 0 4px 25px rgba(255, 107, 53, 0.3) !important;
    border: none !important;
}

.hero-slider .hero-slider-tabs .hero-tab.active .hero-tab-text,
section.hero-slider .hero-slider-tabs .hero-tab.active .hero-tab-text,
#home.hero-slider .hero-slider-tabs .hero-tab.active .hero-tab-text {
    color: #000000 !important;
}

.hero-slider .hero-slider-tabs .hero-tab.active::before,
section.hero-slider .hero-slider-tabs .hero-tab.active::before,
#home.hero-slider .hero-slider-tabs .hero-tab.active::before {
    opacity: 0 !important;
}

.hero-tab-icon {
    display: none;
}

.hero-tab-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

/* Анимация прогресс-бара для активного таба */
.hero-slider .hero-slider-tabs .hero-tab.active::after,
section.hero-slider .hero-slider-tabs .hero-tab.active::after,
#home.hero-slider .hero-slider-tabs .hero-tab.active::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    height: 3px !important;
    background: rgba(255, 255, 255, 0.8) !important;
    animation: progressBar 3s linear !important;
    animation-play-state: var(--progress-animation-state, running) !important;
    z-index: 4 !important;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%, 20px 50%) !important;
}

.hero-slider .hero-slider-tabs .hero-tab:first-child.active::after,
section.hero-slider .hero-slider-tabs .hero-tab:first-child.active::after,
#home.hero-slider .hero-slider-tabs .hero-tab:first-child.active::after {
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%) !important;
}

.hero-slider .hero-slider-tabs .hero-tab:last-child.active::after,
section.hero-slider .hero-slider-tabs .hero-tab:last-child.active::after,
#home.hero-slider .hero-slider-tabs .hero-tab:last-child.active::after {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 20px 50%) !important;
}

@keyframes progressBar {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

/* Адаптивность: 1920px */
@media (max-width: 1920px) {
    .hero-slide-main-title {
        font-size: 44px;
        margin-bottom: 66px;
    }
    
    .hero-slide-title {
        font-size: 30px;
    }
    
    .hero-slider-content-wrapper {
        padding: 80px 0;
    }
    
    .hero-slider-container {
        padding: 0 5%;
    }
    
    .hero-slider-tabs {
        padding: 0 5%;
    }
}

/* Адаптивность: 1600px */
@media (max-width: 1600px) {
    .hero-slider-left {
        padding-top: 35px;
    }
    
    .hero-slide-main-title {
        font-size: 40px;
        margin-bottom: 20px !important;
    }
    
    .hero-slide-title {
        font-size: 28px;
    }
    
    .hero-slide-description {
        font-size: 17px;
    }
    
    .hero-slider-content-wrapper {
        gap: 50px;
        padding: 70px 0;
    }
    
    .hero-slider-container {
        padding: 0 5%;
    }
    
    .hero-slider-tabs {
        padding: 0 5%;
    }
    
    .hero-slider .hero-slider-tabs .hero-tab,
    section.hero-slider .hero-slider-tabs .hero-tab,
    #home.hero-slider .hero-slider-tabs .hero-tab {
        padding: 18px 30px !important;
        font-size: 14px !important;
    }
}

/* Адаптивность: 1200px */
@media (max-width: 1200px) {
    .hero-slider {
        min-height: 500px;
    }
    
    .hero-slider-left {
        padding-top: 30px;
    }
    
    .hero-slide-main-title {
        font-size: 36px;
        margin-bottom: 18px !important;
    }
    
    .hero-slide-title {
        font-size: 26px;
    }
    
    .hero-slide-description {
        font-size: 16px;
    }
    
    .hero-slider-content-wrapper {
        gap: 40px;
        padding: 60px 0;
        min-height: 500px;
    }
    
    .hero-slider-container {
        padding: 0 5%;
    }
    
    .hero-slider-tabs {
        padding: 0 5%;
    }
    
    .hero-slider .hero-slider-tabs .hero-tab,
    section.hero-slider .hero-slider-tabs .hero-tab,
    #home.hero-slider .hero-slider-tabs .hero-tab {
        padding: 16px 24px !important;
        font-size: 13px !important;
    }
}

/* Адаптивность: 992px */
@media (max-width: 992px) {
    .hero-slider {
        min-height: 400px;
    }
    
    .hero-slider-left {
        padding-top: 30px;
        max-width: 50%;
        flex: 1;
    }
    
    .hero-slide-main-title {
        font-size: 28px;
        margin-bottom: 14px !important;
    }
    
    .hero-slide-title {
        font-size: 20px;
    }
    
    .hero-slide-description {
        font-size: 14px;
    }
    
    .hero-slide-btn {
        padding: 12px 28px;
        font-size: 14px;
    }
    
    .hero-slider-content-wrapper {
        flex-direction: row;
        padding: 40px 0;
        min-height: 400px;
        gap: 30px;
        text-align: left;
    }
    
    .hero-slider-right {
        max-width: 50%;
        flex: 1;
        margin-top: 0;
    }
    
    .hero-slider-container {
        padding: 0 5%;
    }
    
    .hero-slider-tabs {
        padding: 0 5%;
        flex-wrap: nowrap;
        gap: 0;
    }
    
    .hero-slider .hero-slider-tabs .hero-tab,
    section.hero-slider .hero-slider-tabs .hero-tab,
    #home.hero-slider .hero-slider-tabs .hero-tab {
        padding: 12px 16px !important;
        font-size: 11px !important;
        flex: 1 !important;
        min-width: 0 !important;
        margin-left: -12px !important;
        margin-bottom: 0 !important;
        clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%) !important;
    }
    
    .hero-slider .hero-slider-tabs .hero-tab:first-child,
    section.hero-slider .hero-slider-tabs .hero-tab:first-child,
    #home.hero-slider .hero-slider-tabs .hero-tab:first-child {
        margin-left: 0 !important;
        clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%) !important;
    }
    
    .hero-slider .hero-slider-tabs .hero-tab:last-child,
    section.hero-slider .hero-slider-tabs .hero-tab:last-child,
    #home.hero-slider .hero-slider-tabs .hero-tab:last-child {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 12px 50%) !important;
    }
}

/* Адаптивность: 768px (мобильные устройства) */
@media (max-width: 768px) {
    .hero-slider {
        min-height: auto;
        position: relative;
    }
    
    .hero-slider-container {
        padding: 0 5%;
    }
    
    .hero-slider-content-wrapper {
        flex-direction: column;
        padding: 20px 0;
        min-height: auto;
        gap: 20px;
        text-align: left;
    }
    
    /* Фотография по центру с отступами 5% слева и справа (как на странице шаттловых стеллажей) */
    .hero-slider-right {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        order: 1;
        position: relative;
    }
    
    .hero-slide-image-wrapper {
        width: 100%;
        position: relative;
    }
    
    .hero-slide-image-wrapper img {
        width: 100%;
        height: auto;
        display: block;
    }
    
    /* Прогресс-бар поверх нижней части фотографии */
    .hero-slide-progress-bar {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 95%;
        height: 5px;
        background: rgba(0, 0, 0, 0.2);
        z-index: 2;
        border-radius: 0 0 8px 8px;
    }
    
    .hero-slide-progress-bar-fill {
        height: 100%;
        background: #0056b3;
        width: 0%;
        transition: width 0.1s linear;
        border-radius: 0 0 8px 8px;
    }
    
    /* Левая фракция - текст */
    .hero-slider-left {
        padding-top: 0;
        max-width: 100%;
        order: 2;
        text-align: left;
        padding-left: 5%;
        padding-right: 5%;
    }
    
    .hero-slide-main-title {
        font-size: 2rem; /* 32px - как production-title на 768px */
        margin-bottom: 12px !important;
        text-align: left !important;
    }
    
    .hero-slide-title {
        font-size: 1.3rem; /* 20.8px - пропорционально production-subtitle */
        text-align: left;
    }
    
    .hero-slide-description {
        font-size: 1rem; /* 16px - пропорционально production-description */
        text-align: left;
        line-height: 1.6;
    }
    
    .hero-slide-btn {
        padding: 12px 28px;
        font-size: 1rem; /* 16px */
    }
    
    /* Скрываем табы */
    .hero-slider-tabs {
        display: none !important;
    }
}

/* Адаптивность: 420px (маленькие мобильные устройства) */
@media (max-width: 420px) {
    .hero-slider {
        min-height: auto;
        position: relative;
    }
    
    .hero-slider-container {
        padding: 0 5%;
    }
    
    .hero-slider-content-wrapper {
        flex-direction: column;
        padding: 15px 0;
        min-height: auto;
        gap: 15px;
        text-align: left;
    }
    
    /* Фотография по центру с отступами 5% слева и справа (как на странице шаттловых стеллажей) */
    .hero-slider-right {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        order: 1;
        position: relative;
    }
    
    .hero-slide-image-wrapper {
        width: 100%;
        position: relative;
    }
    
    .hero-slide-image-wrapper img {
        width: 100%;
        height: auto;
        display: block;
    }
    
    /* Прогресс-бар поверх нижней части фотографии */
    .hero-slide-progress-bar {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 95%;
        height: 5px;
        background: rgba(0, 0, 0, 0.2);
        z-index: 2;
        border-radius: 0 0 8px 8px;
    }
    
    .hero-slide-progress-bar-fill {
        height: 100%;
        background: #0056b3;
        width: 0%;
        transition: width 0.1s linear;
        border-radius: 0 0 8px 8px;
    }
    
    /* Левая фракция - текст */
    .hero-slider-left {
        padding-top: 0;
        max-width: 100%;
        order: 2;
        text-align: left;
        padding-left: 5%;
        padding-right: 5%;
    }
    
    .hero-slide-main-title {
        font-size: 1.8rem; /* 28.8px - как section-title h2 на 420px */
        margin-bottom: 10px !important;
        text-align: left !important;
    }
    
    .hero-slide-title {
        font-size: 1.1rem; /* 17.6px - пропорционально production-subtitle */
        text-align: left;
    }
    
    .hero-slide-description {
        font-size: 0.95rem; /* 15.2px - пропорционально production-description */
        text-align: left;
        line-height: 1.6;
    }
    
    .hero-slide-btn {
        padding: 10px 24px;
        font-size: 0.95rem; /* 15.2px */
        width: 100%;
        text-align: center;
    }
    
    /* Скрываем табы */
    .hero-slider-tabs {
        display: none !important;
    }
}

/* Плавные переходы для всех элементов */
.hero-slide-image-wrapper img {
    will-change: opacity;
}

.hero-tab {
    will-change: transform, background-color, clip-path;
}
