/* main.css — стили для hero-секции на главной странице */

.hero {
    background: url('/images/hero-bg.png') center/cover no-repeat;
    padding: 60px 0;
    position: relative;
    color: white;
    overflow: hidden; /* предотвращает выпадение контента */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(0 0 0 / 15%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    padding-left: 15px;
    padding-right: 15px;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-left {
     max-width: 60%;
}

.hero h1 {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-size: calc(1.5rem + 1.5vw); /* адаптивный размер */
}

.hero p {
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    font-size: 1.1rem;
}

/* Форма поиска */
.search-box form {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.search-box input {
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 0.6rem 1rem; /* уменьшена высота */
    font-size: 1rem;
}

.search-box button {
    background: #ff7a00;
    border: none;
    color: white;
    font-weight: 600;
    transition: background 0.2s;
    padding: 0.6rem 1.5rem; /* уменьшена высота */
    font-size: 1rem;
}

.search-box button:hover {
    background: #e56700;
}

/* Кнопки под поиском */
.hero-actions .btn {
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap; /* текст не переносится */
}

.hero-actions .btn-light {
    background: white;
    color: #2c3e50;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hero-actions .btn-light:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.hero-actions .btn-outline-light {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.hero-actions .btn-outline-light:hover {
    background: white;
    color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Персонаж */
.hero-character {
    max-height: 350px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .hero-left {
        max-width: 100%;
    }
    .hero-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 40px 0;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .search-box input,
    .search-box button {
        font-size: 0.95rem;
        padding: 0.5rem 1rem;
    }
    .hero-actions .btn {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }
}

@media (max-width: 576px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .hero-actions .btn {
        width: 100%;
        white-space: normal; /* разрешить перенос текста при необходимости */
    }
    .hero h1 {
        font-size: 1.8rem;
    }
}