/* Главный блок */
.hero-section {
    background: url('/assets/images/shutterstock_705507505.jfif') no-repeat center center/cover;
    color: white;
    text-align: center;
    width: 100%; /* Убедитесь, что ширина занимает весь экран */
    height: 100vh; /* Высота равна высоте видимой области экрана */
    display: flex; /* Используем Flexbox для центрирования содержимого */
    align-items: center; /* Центрируем по вертикали */
    justify-content: center; /* Центрируем по горизонтали */
    overflow: hidden; /* Убираем полосы прокрутки внутри секции */
}

/* Заголовок */
.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Добавляем тень для лучшей читаемости */
}

/* Динамическая часть текста */
.typewriter-text {
    font-weight: bold;
    white-space: nowrap; /* Запрещаем перенос текста */
    overflow: hidden; /* Скрываем лишний текст */
    border-right: 2px solid white; /* Эффект каретки печатной машинки */
    animation: blink-caret 0.75s step-end infinite; /* Мигание каретки */
}

.hero-buttons {
    display: flex;
    gap: 10px; /* Расстояние между кнопками */
    justify-content: center; /* Центрируем кнопки */
    margin-top: 20px;
}

.cta-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s ease-out;
    min-width: 350px;
    
    background: linear-gradient(135deg, #c31432 0%, #f00000 100%);
    box-shadow: 0 6px 20px rgba(240, 0, 0, 0.3);
    
    &::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -60%;
        width: 20px;
        height: 200%;
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(30deg);
        transition: all 0.8s;
        z-index: -1;
    }
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(195, 20, 50, 0.7);
    }
    70% {
        box-shadow: 0 0 0 30px rgba(195, 20, 50, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(195, 20, 50, 0);
    }
}

.cta-button.pulse {
    animation: pulse-red 2s infinite;
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(240, 0, 0, 0.5);
}

.cta-button:hover::after {
    left: 120%;
}

.cta-button:active {
    transform: translateY(2px);
    box-shadow: 0 3px 15px rgba(240, 0, 0, 0.3);
}

.cta-button i {
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .cta-button {
        padding: 10px 25px;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
    }
    
    .cta-button i {
        margin-right: 8px;
        font-size: 0.9em;
    }
}


/* Анимация мигания каретки */
@keyframes blink-caret {
    from,
    to {
        border-color: transparent;
    }
    50% {
        border-color: white;
    }
}