

/* Start:/local/templates/az/components/bitrix/search.page/search/style.css?17470799833288*/
.search-bar {
    margin-bottom: 50px;
}

.search-bar input[type="text"] {
    width: 89%;
    padding: 12px;
    font-size: 1.05em;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.search-bar button {
    padding: 10px 15px;
    border: none;
    background-color: #666881;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    width: 10%;
    font-size: 1.05em;
}

.search-bar button:hover {
    background-color: #B80002;
}

/* Основные стили для результатов поиска */
.search-result {
    display: flex;
    margin-bottom: 0px;
    padding: 15px 0; /* Отступ сверху и снизу одинаковый */
    min-height: 140px;
    align-items: flex-start;
    border-bottom: 1px solid #ddd;
}


/* Верхняя граница для ПЕРВОГО элемента */
.search-results-container > .search-result:first-child {
    border-top: 1px solid #ddd;
    margin-top: 15px;
}

.search-result a {
    text-decoration: unset;
    color: #666881;
}

.result-image-container {
    flex-shrink: 0;
    width: 130px;
    height: 125px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.result-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.result-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-right: 10px;
}

.result-title {
    font-size: 1.2em;
    margin: 0;
    margin-bottom: 10px;
}

.result-description {
    color: #555;
}

@media screen and (max-width: 1025px) {
    .result-description {
        display: none;
    }
}

/* Мобильная версия (max-width: 700px) */
@media screen and (max-width: 700px) {
    #search_input {
        width: 100%;
    }
    .search-bar button {
        width: 100%;
    }
    .search-result {
        min-height: 0px; /* Увеличиваем минимальную высоту */
        padding: 15px 0; /* Сохраняем отступы как в десктопе! */
    }
    .result-image-container {
        height: 125px; /* Фиксированная высота изображения */
    }
    .result-content {
        height: auto;
        overflow: hidden;
    }
}
/* Пагинация */
.paginations {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.paginations-link {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666881;
    text-decoration: none;
    transition: all 0.3s;
}

.paginations-link:hover {
    background-color: #f0f0f0;
}

.paginations-link.active {
    background-color: #666881;
    color: white;
    border-color: #666881;
}

/* Адаптивность пагинации */
@media screen and (max-width: 700px) {
    .paginations {
        gap: 5px;
    }
    .paginations-link {
        padding: 6px 10px;
        font-size: 0.9em;
    }
}

.result-date {
    color: #888;
    font-size: 0.9em;
    margin-top: 15px;
    margin-bottom: 0;
}


/* End */
/* /local/templates/az/components/bitrix/search.page/search/style.css?17470799833288 */
