.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    color: white;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 20px; /* Добавляем отступы по бокам */
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.4), 0 0 10px rgba(255, 255, 255, 0.4);
    color: white;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

:root {
    --button-color: #590000FF;
}

.cta-button {
    background-color: var(--button-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
    transition:
            background-color 0.3s ease,
            backdrop-filter 0s ease,
            box-shadow 0.5s ease;
    max-width: 100%;
    box-sizing: border-box;
}

.cta-button:hover {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    box-shadow: inset 0 0 10px 2px var(--button-color);
    animation: blink-border 2s infinite alternate;
}

@keyframes blink-border {
    0% {
        box-shadow: inset 0 0 5px 1px var(--button-color);
    }
    50% {
        box-shadow: inset 0 0 15px 3px var(--button-color);
    }
    100% {
        box-shadow: inset 0 0 10px 2px var(--button-color);
    }
}

@media (max-width: 768px) {
    .hero-content {
        min-height: auto;
        padding: 3rem 15px; /* Увеличиваем отступы для мобильных */
        margin: 0 auto;
        width: 100%;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 6vw, 3rem);
        margin-bottom: 0.8rem;
        text-shadow: 0 0 3px rgba(255, 255, 255, 0.4), 0 0 8px rgba(255, 255, 255, 0.3);
        padding: 0 10px; /* Дополнительные отступы для текста */
        line-height: 1.2; /* Улучшаем межстрочный интервал */
    }

    .hero-content p {
        font-size: clamp(1rem, 3.5vw, 1.2rem);
        margin-bottom: 1rem;
        padding: 0 10px; /* Дополнительные отступы для текста */
        line-height: 1.4; /* Улучшаем межстрочный интервал */
    }

    .cta-button {
        padding: clamp(0.7rem, 2.5vw, 1rem) clamp(1.5rem, 5vw, 2rem);
        font-size: clamp(0.85rem, 3vw, 1.1rem);
        border-radius: clamp(4px, 2vw, 5px);
        margin: 0 10px; /* Отступы для кнопки */
        width: auto;
        max-width: 90%; /* Ограничиваем ширину кнопки */
    }
}

/* Дополнительные исправления для очень маленьких экранов */
@media (max-width: 480px) {
    .hero-content {
        padding: 2rem 10px;
    }

    .hero-content h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        padding: 0 5px;
    }

    .hero-content p {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
        padding: 0 5px;
    }

    .cta-button {
        max-width: 95%;
        padding: 0.8rem 1.5rem;
    }
}

/* Гарантируем, что ничего не выходит за границы */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

#hero,
#hero * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}