/* home-hero.css - index.html hero section only (extracted from style.css). NOT the same as home.css (index2.html preview, untouched). */

/* --- from style.css lines 3735-3955 --- */
/* Hero Section Styles */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 0;
    background-color: #1a1a1a; /* Fallback background color */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Обновленное изображение */
    background-image: url('/static/img/new/intro-vokzal.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 1;
}

/* --- Mobile Fixes --- */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh; /* На мобильном лучше на весь экран */
        padding: 100px 0 60px; /* Больше отступ сверху для меню */
        height: auto;
    }

    .hero-background {
        background-attachment: scroll; /* Отключаем параллакс на мобильных (убирает "корявость") */
    }

    .hero-content {
        padding: 20px 15px;
        width: 100%;
    }

    .hero-title {
        font-size: 2rem !important; /* Фиксированный размер, clamp иногда сбоит */
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1.1rem !important;
        margin-bottom: 30px;
        line-height: 1.5;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .btn-hero {
        width: 100%; /* Кнопки на всю ширину */
        padding: 15px;
        display: flex;
        justify-content: center;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: #ffffff !important;
    margin-bottom: 40px;
    font-weight: 400;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 180px;
    justify-content: center;
}

.btn-hero-primary {
    background-color: #ff6600;
    color: #ffffff;
    border: 2px solid #ff6600;
}

.btn-hero-primary:hover {
    background-color: #e55a00;
    border-color: #e55a00;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 102, 0, 0.4);
}

.btn-hero-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-hero-secondary:hover {
    background-color: #ffffff;
    color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.btn-hero .btn-icon-right {
    width: 13px;
    height: 9px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.btn-hero:hover .btn-icon-right {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
        padding: 60px 0;
    }

    .hero-content {
        padding: 20px 15px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .btn-hero {
        width: 100%;
        padding: 14px 24px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 60vh;
        padding: 40px 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}


/* --- from style.css lines 4339-4459 --- */
/* Hero Section Styles */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 0;
    background-color: #1a1a1a; /* Fallback background color */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/img/new/intro-vokzal.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* For parallax effect */
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #ffffff !important; /* Ensure white text */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* Stronger shadow */
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: #ffffff !important; /* Ensure white text */
    margin-bottom: 40px;
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7); /* Stronger shadow */
    opacity: 0.95;
}

.btn-hero-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.btn-hero svg {
    fill: currentColor;
    transition: transform 0.3s ease;
}

.btn-hero:hover svg {
    transform: translateX(5px);
}

/* Mobile adjustments for hero section */
@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
        padding: 40px 15px; /* Increased padding */
    }

    .hero-background {
        background-attachment: scroll; /* Disable parallax on mobile */
    }

    .hero-content {
        padding: 20px 10px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem); /* Adjusted font size */
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.25rem); /* Adjusted font size */
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column; /* Stack buttons */
        gap: 15px;
    }

    .btn-hero {
        width: 100%; /* Full width buttons */
        max-width: 280px; /* Max width for stacked buttons */
        padding: 14px 25px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 60vh;
        padding: 30px 10px;
    }
    .hero-title {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
    }
    .hero-subtitle {
        font-size: clamp(0.9rem, 4.5vw, 1.1rem);
    }
}


