html {
    scroll-behavior: smooth;
}

.hero-gradient {
    background: #fef9f7 !important;
    background-image: none !important;
}

.hero-gradient::before {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    background-image: none !important;
    background: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

body .hero-gradient::before {
    display: none !important;
    background-image: none !important;
    content: none !important;
}

/* Hero блок на мобильных устройствах */
@media (max-width: 1023px) {
    .hero-gradient {
        min-height: 100vh;
        display: flex;
        align-items: center;
        padding-top: 100px;
        padding-bottom: 40px;
    }
    
    .hero-gradient::before {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        background-image: none !important;
        background: none !important;
        content: '' !important;
        width: 0 !important;
        height: 0 !important;
        position: absolute !important;
        z-index: -1 !important;
    }
}

/* Десктоп стили */
@media (min-width: 1024px) {
    .hero-gradient {
        position: relative;
        height: 100vh;
        margin: 0;
        padding-top: 0;
        padding-bottom: 0;
        background-image: none !important;
    }
    
    .hero-gradient > div {
        align-items: center !important;
    }
    
    
    .hero-gradient::before {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        background-image: none !important;
        background: none !important;
        content: none !important;
        width: 0 !important;
        height: 0 !important;
        position: absolute !important;
        z-index: -1 !important;
        pointer-events: none !important;
    }
    
    body .hero-gradient::before {
        display: none !important;
        background-image: none !important;
        content: none !important;
        background: none !important;
    }
}

/* Плавность переключения фото */
.story-img {
    transition: opacity 0.6s ease-in-out;
}

/* Затемнения внутри контейнера сторис */
.story-overlay-top {
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 100%);
}

/* Светлое засветление снизу */
.story-overlay-bottom {
    background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
}

/* Прогресс бар */
.progress-bar-fill {
    transition: width 0.1s linear; 
}

/* Кнопки навигации */
.nav-btn {
    opacity: 0;
    transition: opacity 0.3s ease;
    background: transparent !important;
    padding: 0.5rem;
}
.story-container:hover .nav-btn {
    opacity: 1;
}

/* Затемнение по бокам при hover */
.story-side-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 30;
}
.story-side-overlay-left {
    left: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.4) 0%, transparent 100%);
}
.story-side-overlay-right {
    right: 0;
    background: linear-gradient(to left, rgba(0,0,0,0.4) 0%, transparent 100%);
}
.story-container:hover .story-side-overlay {
    opacity: 1;
}

/* Адаптивность контейнера stories */
.story-figure {
    width: 380px;
    overflow: visible !important;
}

@media (min-width: 640px) {
    .story-figure {
        max-width: 400px;
    }
}

@media (min-width: 768px) {
    .story-figure {
        max-width: 420px;
    }
}

@media (min-width: 1024px) {
    .story-figure {
        max-width: 280px;
        transform: scale(0.75);
    }
}

@media (min-width: 1280px) {
    .story-figure {
        max-width: 300px;
        transform: scale(0.8);
    }
}

/* Увеличение высоты на мобильных */
@media (max-width: 767px) {
    .story-figure {
        width: 100%;
        max-width: 100%;
        overflow: visible !important;
    }
    
    .story-figure .story-container {
        width: 100%;
        max-width: 100%;
        overflow: visible !important;
    }
    
    .story-figure .story-container > div {
        aspect-ratio: auto;
        min-height: 650px;
    }
    
    /* Исправление обрезания круглого элемента на мобильных */
    .w-full.lg\\:w-1\\/2:has(.story-figure) {
        overflow: visible !important;
        padding-bottom: 5rem !important;
    }
}

/* Анимации для блока результатов */
.fade-in-text {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    filter: blur(10px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, filter 1s ease-out;
}
.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    filter: blur(10px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, filter 1s ease-out;
}
.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

/* Скрываем скроллбар, но оставляем функционал */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* FAQ аккордеон */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding-top: 0;
}
.faq-item.active .faq-answer {
    max-height: 500px;
    padding-top: 1rem;
}
.faq-icon {
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}
.faq-item.active .faq-icon i {
    display: block;
}