/* ===== ГЛАВНАЯ (СВЕТЛЫЙ ФОН + ТЕМНЫЕ БЛОКИ) ===== */
.hero { text-align: center; margin: 40px 0 24px; }
.hero h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; color: #1a1a1a; }
.hero p { color: #666; font-size: 16px; }

.search-section {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Табы (сделаем их пошире) */
.search-tabs {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 700px; /* Такая же ширина, как у поиска */
    background: #fff;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 16px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.s-tab {
    flex: 1; /* Растягиваем на всю ширину */
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    color: #666;
    transition: all 0.2s;
    text-align: center;
}

.s-tab:hover {
    text-decoration: none !important;
    color: #1a1a1a;
}

.s-tab.active {
    background: #1e1e1e;
    color: #fff;
}

/* Поисковая строка */
.search-bar {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 700px;
    background: #fff;
    border-radius: 16px;
    padding: 6px 6px 6px 16px;
    border: 2px solid #e5e5e5;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: border-color 0.2s;
}

.search-bar:focus-within { border-color: #fc3f1d; }

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 10px;
    font-size: 16px;
    outline: none;
    color: #1a1a1a;
}

.search-bar input::placeholder { color: #999; }

.search-bar .am-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #1e1e1e;
    border-radius: 10px;
    margin-right: 12px;
    flex-shrink: 0;
}

.search-bar .am-logo svg { width: 20px; height: 20px; fill: #fff; }

.search-bar .btn-search {
    padding: 12px 24px;
    background: #fc3f1d;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    margin-left: 8px;
    transition: background 0.2s;
}

.search-bar .btn-search:hover { background: #d93025; }

@media (max-width: 768px) {
    .hero h1 { font-size: 24px; }
    
    .search-tabs {
        flex-direction: column;
        background: transparent;
        border: none;
        box-shadow: none;
        gap: 8px;
    }
    
    .s-tab {
        background: #fff;
        border: 1px solid #e5e5e5;
        padding: 12px;
    }
    
    .s-tab.active {
        background: #1e1e1e;
        color: #fff;
        border-color: #1e1e1e;
    }

    .search-bar { padding: 4px 4px 4px 12px; }
    .search-bar input { font-size: 15px; padding: 10px 8px; }
    .search-bar .btn-search { padding: 10px 16px; font-size: 14px; }
}
