/* ===== ГЛАВНЫЙ ЭКРАН ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0; /* Убираем отступ сверху */
    padding-top: 80px; /* Компенсация фиксированной шапки */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: -1;
}

.road-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(90deg, transparent, var(--asphalt), transparent);
    opacity: 0.3;
    z-index: -1;
}

.road-line {
    position: absolute;
    bottom: 75px;
    left: 0;
    width: 200%;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        var(--amber),
        var(--amber) 20px,
        transparent 20px,
        transparent 40px
    );
    animation: roadMove 20s linear infinite;
    opacity: 0.5;
}

@keyframes roadMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.typing-wrapper {
    display: inline-block;
    position: relative;
}

.typing-container {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--neon-blue);
    width: 0;
    animation: typing 3.5s steps(40, end) 1s forwards, blink-caret 0.75s step-end infinite;
    min-height: 1.2em;
}

.typing-container.typing-complete {
    border-right: none;
    animation: none;
    width: auto;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--neon-blue); }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeIn 1s ease 4.5s forwards;
}

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

/* Статистика */
.hero-stats {
    margin-top: 3rem;
    opacity: 0;
    animation: fadeIn 1s ease 5s forwards;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Кнопка прокрутки */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s ease 6s forwards;
    z-index: 10;
}

.scroll-indicator .float {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 2rem;
    animation: bounce 2s infinite 6s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scroll-indicator .float:hover {
    color: var(--amber);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Адаптивность */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 90vh;
        padding-top: 70px; /* Меньше на мобильных */
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .stat-value {
        font-size: 1.6rem;
    }
    
    .scroll-indicator {
        bottom: 1.5rem;
    }
    
    .scroll-indicator .float {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .hero {
        min-height: 85vh;
        padding-top: 60px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
        padding: 0 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 0.5rem;
        margin-bottom: 2rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .typing-container {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        display: inline-block;
        vertical-align: top;
    }
    
    .typing-wrapper {
        display: block;
        width: 100%;
    }
    
    .scroll-indicator {
        bottom: 1rem;
    }
    
    .scroll-indicator .float {
        font-size: 1.6rem;
    }
}

@media (max-width: 400px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
    
    .col-6 {
        width: 50%;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .typing-container {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .scroll-indicator .float {
        font-size: 1.5rem;
    }
}