/* Редизайн главной страницы в стиле SberSpasibo Travel */

@font-face {
    font-family: 'SB Sans Text Medium';
    src: url('../fonts/SB-SANS-TEXT-MEDIUM.TTF') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

.index-hero {
    position: relative;
    height: 680px;
    width: 100%;
    background-image: url('/static/image/home_hero_bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* align-items: flex-start;  Удалено, чтобы контейнер мог быть отцентрирован */
    margin-top: -50px;
}

.index-hero-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 0;
    padding-bottom: 0;
}

.index-hero-title {
    color: #1a1a1a;
    font-family: 'SF Pro Display', sans-serif;
    font-size: 54px;
    font-weight: 700; /* Регулируем жирность */
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 700px;
    text-align: left;
    margin-left: 0;
    padding-left: 0;
}

/* Прозрачный хедер на главной */
.header-4win.header-is-home {
    background: transparent !important;
    border-bottom: none !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Кнопка войти в стиле Sber */
.header-link.btn-login-sber {
    background: #111827 !important;
    color: #fff !important;
    border-radius: 12px !important;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.home-search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-top: 1px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.home-search-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 12px 24px; /* Увеличил padding-left до 56px в JS для выравнивания с текстом ввода */
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #1a1a1a;
    transition: background 0.2s;
    border-bottom: none; /* Убрал границы для чистоты */
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f8f9fa;
    color: var(--4win-primary);
}

.suggestion-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.suggestion-info {
    display: flex;
    flex-direction: column;
}

.suggestion-name {
    font-weight: 600;
    font-size: 15px;
    font-family: 'SB Sans Text Medium', sans-serif !important;
}

.suggestion-meta {
    font-size: 12px;
    color: #999;
}

.suggestion-empty {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

@media (min-width: 1024px) {
    .header-link.btn-login-sber {
        padding: 7px 14px !important;
        width: 105px !important;
    }
}

/* Область контента с закруглением */
.index-page__content {
    background-color: #f2f4f7;
    border-radius: 80px 80px 0 0;
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    padding: 70px 8px 20px; /* Как в запросе */
    position: relative;
    z-index: 10;
    margin-top: -80px; /* Плавный переход */
}

.container-search-wrapper {
    position: absolute;
    bottom: 40px; /* Сидит на стыке */
    left: 0;
    right: 0;
    z-index: 20;
    pointer-events: none;
}

/* Форма поиска */
.avia__search-form {
    pointer-events: auto;
    align-items: center;
    background-color: #fff;
    border-radius: 24px;
    display: flex;
    flex-wrap: wrap;
    max-height: 116px;
    padding: 12px 0 12px 14px; /* Небольшой отступ слева для иконки */
    width: 100%;
    box-shadow: none;
    gap: 0;
}

.search-form-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    background: transparent;
    padding: 0;
    border-radius: 16px;
    border: none;
}

.search-form-input-group svg {
    margin-right: 8px; /* Еще меньше отступ */
    color: #333;
    flex-shrink: 0;
}

.search-form-input-group input {
    border: none;
    outline: none;
    font-family: 'SB Sans Text Medium', sans-serif !important;
    font-size: 16px;
    color: #1a1a1a;
    width: 100%;
    background: transparent;
    padding: 8px 0;
    margin-left: 0; /* Гарантируем отсутствие отступа */
}

.search-form-input-group input::placeholder {
    font-family: 'SB Sans Text Medium', sans-serif !important;
    color: #999;
}

/* Стили кнопки теперь не нужны, так как кнопки нет, но оставим для порядка */
.btn-search-main {
    display: none;
}

.btn-search-main {
    background: var(--4win-primary);
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 12px 32px;
    font-weight: 700;
    font-size: 16px;
    transition: transform 0.2s;
}

.btn-search-main:hover {
    transform: translateY(-2px);
    background: var(--4win-primary-hover);
}

@media (max-width: 768px) {
    .index-hero {
        height: 500px;
    }
    .index-hero-title {
        font-size: 32px;
    }
    .index-page__content {
        border-radius: 40px 40px 0 0;
        padding: 40px 20px 20px;
        margin-top: -40px;
    }
    .avia__search-form {
        flex-direction: column;
        align-items: stretch;
    }
}
