/* Общий контейнер для топ-блока */
.top-container {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 15px 0;
    background-color: #f9f9f9;
}

/* Карточка с формой выбора региона, города и типа заведения */
.top-card {
    width: 100%;
    max-width: 900px;
    padding: 20px 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Заголовок блока */
.top-card h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

/* Форма с горизонтальным расположением элементов */
.top-card form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

/* Стили для select и кнопки внутри формы */
.top-card form select,
.top-card form button {
    padding: 6px 10px; /* немного меньше */
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fff;
    transition: border 0.3s, box-shadow 0.3s;
}

/* Фокус */
.top-card form select:focus,
.top-card form button:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 5px rgba(33, 150, 243, 0.5);
}

/* Кнопка */
.top-card form button {
    background-color: #2196F3;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.3s;
}

.top-card form button:hover {
    background-color: #1976D2;
}

/* Блок со списком ТОП */
.top-list-block {
    width: 100%;
    max-width: 900px;
    margin: 15px auto;
    padding: 20px 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

/* Заголовок списка ТОП */
.top-list-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

/* Контейнер списка заведений */
.top-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Карточка заведения */
.top-item {
    display: flex;
    gap: 15px;
    background: #fafafa;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #e3e3e3;
    transition: 0.2s;
}

.top-item:hover {
    background: #f1f8ff;
    border-color: #c7e0ff;
}

/* Логотип */
.top-logo {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    background: #ddd;
}

/* Текстовое описание */
.top-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
}

.top-info .addr {
    margin-top: 3px;
    font-size: 14px;
    color: #666;
}

/* Номер рейтинга */
.rank-num {
    font-size: 22px;
    font-weight: 700;
    width: 30px;
    text-align: center;
    color: #444;
}


/* Адаптив */
@media (max-width: 700px) {
    .top-card {
        padding: 15px 20px;
    }

    .top-card form {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .top-card form select,
    .top-card form button {
        font-size: 14px;
        padding: 7px 10px;
        width: 100%;
    }
}
