/* ============================================
   Анимации появления элементов
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Базовые классы для анимации */
.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.animated {
    animation: fadeInUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-on-scroll.fade-in {
    animation: fadeIn 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Задержки для последовательного появления */
.animate-on-scroll.delay-1 {
    animation-delay: 0.1s;
}

.animate-on-scroll.delay-2 {
    animation-delay: 0.2s;
}

.animate-on-scroll.delay-3 {
    animation-delay: 0.3s;
}

.animate-on-scroll.delay-4 {
    animation-delay: 0.4s;
}

.animate-on-scroll.delay-5 {
    animation-delay: 0.5s;
}

.animate-on-scroll.delay-6 {
    animation-delay: 0.6s;
}

.animate-on-scroll.delay-7 {
    animation-delay: 0.7s;
}

.animate-on-scroll.delay-8 {
    animation-delay: 0.8s;
}

/* ============================================
   Главная страница - Hero секция
   ============================================ */
.main-hero {
    width: 100%;
}

.main-hero .container-fluid {
    width: 100%;
    max-width: 1280px;
    padding: 0 1.25rem; /* 20px */
    margin: 0 auto;
}

.main-hero-inner {
    margin: 0 auto;
    border-radius: 0.3125rem; /* 5px */
    background-image: url('/assets/images/mainImg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    height: 31rem; /* 496px */
    min-height: 31rem;
}

.main-hero-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(20, 29, 48, 0.6) 0%, rgba(20, 29, 48, 0.6) 100%);
    border-radius: 0.3125rem; /* 5px */
}

/* Контент поверх градиента */
.hero-content {
    position: relative;
    z-index: 1;
    padding: 3.75rem; /* 60px */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 2.1875rem; /* 35px */
    line-height: 120%;
    letter-spacing: 0%;
    color: #FFFFFF;
    margin: 0 0 1.25rem 0; /* 20px */
    text-transform: uppercase;
}

.hero-line {
    width: 100%;
    height: 1px;
    border: 1px solid #FAFAFA80;
    margin: 0 0 1.25rem 0; /* 20px */
}

.hero-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem; /* 20px */
}

.hero-description {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 1rem; /* 16px */
    line-height: 120%;
    letter-spacing: 0%;
    color: #FFFFFF;
    margin: 0;
    width: 38.25rem; /* 612px */
    max-width: 100%;
    flex-shrink: 0;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 0.3125rem; /* 5px */
    flex-shrink: 0;
}

.hero-buttons:hover .btn-order,
.hero-buttons:hover .btn-arrow {
    box-shadow: 0 0 20px rgba(250, 250, 250, 0.6), 0 0 40px rgba(250, 250, 250, 0.4);
    transform: translateY(-2px);
}

.hero-buttons:hover .btn-order {
    color: #0A141C;
}

.hero-buttons:hover .btn-arrow {
    box-shadow: 0 0 20px rgba(230, 0, 18, 0.6), 0 0 40px rgba(230, 0, 18, 0.4);
}

/* Стрелка уже белая изначально */

.btn-order {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 0.8125rem; /* 13px */
    line-height: 120%;
    letter-spacing: 0%;
    text-align: center;
    color: #0A141C;
    background: #FAFAFA;
    padding: 0.9375rem 2rem; /* 15px 32px */
    border-radius: 0.3125rem; /* 5px */
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}


.btn-order:hover {
    text-decoration: none;
}

.btn-arrow {
    background: #E60012;
    border: none;
    border-radius: 0.3125rem; /* 5px */
    padding: 0.9375rem; /* 15px */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}


.btn-arrow img {
    width: 0.9375rem; /* 15px */
    height: 0.9375rem; /* 15px */
    display: block;
    filter: brightness(0) invert(1);
    position: relative;
    z-index: 1;
}

/* ============================================
   Адаптив для планшета (768px - 1024px)
   ============================================ */
@media (min-width: 769px) and (max-width: 1024px) {
    .main-hero .container-fluid {
        width: 95%;
        max-width: 95%;
        padding: 0 1.5rem; /* 24px */
    }
    
    .main-hero-inner {
        height: 28rem; /* 448px */
        min-height: 28rem;
    }
    
    .hero-content {
        padding: 2.5rem 2rem; /* 40px 32px */
    }
    
    .hero-title {
        font-size: 1.75rem; /* 28px */
        margin: 0 0 1rem 0;
    }
    
    .hero-line {
        margin: 0 0 1rem 0;
    }
    
    .hero-bottom-row {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .hero-description {
        font-size: 0.9375rem; /* 15px */
        width: 100%;
        max-width: 70%;
    }
    
    .hero-buttons {
        gap: 0.5rem;
    }
    
    .btn-order {
        padding: 0.875rem 1.75rem; /* 14px 28px */
        font-size: 0.75rem; /* 12px */
    }
    
    .btn-arrow {
        padding: 0.875rem; /* 14px */
    }
    
    .btn-arrow img {
        width: 0.875rem; /* 14px */
        height: 0.875rem; /* 14px */
    }
}

@media (max-width: 768px) {
    .main-hero .container-fluid {
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .main-hero-inner {
        border-radius: 0;
        min-height: 18.75rem; /* 300px */
        margin: 0;
    }
    
    .main-hero-inner::before {
        border-radius: 0;
        background: linear-gradient(180deg, rgba(20, 29, 48, 0.6) 0%, rgba(20, 29, 48, 0.6) 100%);
    }
    
    .hero-content {
        padding: 1.875rem 0.625rem 0 0.625rem; /* 30px 10px 0 10px */
        justify-content: flex-start;
    }
    
    .hero-title {
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        font-style: normal;
        font-size: 1.125rem; /* 18px */
        line-height: 120%;
        letter-spacing: 0%;
        color: #FFFFFF;
        margin: 0 0 0.9375rem 0; /* 15px */
        text-transform: uppercase;
    }
    
    .hero-line {
        width: 100%;
        height: 1px;
        border: 1px solid #FAFAFA80;
        margin: 0 0 0.9375rem 0; /* 15px */
    }
    
    .hero-bottom-row {
        display: block;
    }
    
    .hero-description {
        font-family: 'Inter', sans-serif;
        font-weight: 400;
        font-style: normal;
        font-size: 0.875rem; /* 14px */
        line-height: 120%;
        letter-spacing: 0%;
        color: #FFFFFF;
        margin: 0 0 1.875rem 0; /* 30px */
        width: 100%;
    }
    
    .hero-buttons {
        display: flex;
        align-items: center;
        gap: 0.3125rem; /* 5px */
        width: 100%;
        max-width: 100%;
        flex-wrap: wrap;
    }
    
    .btn-order {
        font-family: 'Inter', sans-serif;
        font-weight: 600;
        font-style: normal;
        font-size: 0.8125rem; /* 13px */
        line-height: 120%;
        letter-spacing: 0%;
        text-align: center;
        color: #0A141C;
        background: #FAFAFA;
        padding: 0.9375rem 2rem; /* 15px 32px */
        border-radius: 0.3125rem; /* 5px */
        border: none;
        text-decoration: none;
        display: inline-block;
        transition: opacity 0.3s ease;
        cursor: pointer;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .btn-arrow {
        background: #E60012;
        border: none;
        border-radius: 0.3125rem; /* 5px */
        padding: 0.9375rem; /* 15px */
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 0;
        transition: opacity 0.3s ease;
        flex-shrink: 0;
    }
    
    .btn-arrow img {
        width: 0.9375rem; /* 15px */
        height: 0.9375rem; /* 15px */
        display: block;
    }
}



