/* Disserplus: поиск в шапке и страница результатов (задача 3.1). */
.dp-search__panel, .dp-search--mobile { position: relative; }
.dp-search__suggestions[hidden] { display: none !important; }
.dp-search__suggestions {
    position: absolute; z-index: 10001; top: 100%; left: 0; right: 0;
    display: flex; flex-direction: column; max-height: 320px; overflow-y: auto;
    background: #fff; border: 1px solid #d4deec; border-radius: 8px;
    box-shadow: 0 10px 24px rgba(16,45,88,.17);
}
.dp-search__suggestion {
    display: flex; flex-direction: column; gap: 4px; padding: 12px 14px;
    font-size: 14px; line-height: 1.4; color: #17396d !important;
    background: #fff; border-bottom: 1px solid #edf0f5;
    text-decoration: none !important; white-space: normal; overflow-wrap: anywhere;
}
.dp-search__suggestion:last-child { border-bottom: 0; }
.dp-search__suggestion small { font-size: 12px; color: #667791; }
.dp-search__suggestion:hover, .dp-search__suggestion.is-active,
.dp-search__suggestion:focus-visible { background: #eef3fa; outline-offset: -2px; }
@media screen and (max-width: 768px) {
    .dp-search--mobile .dp-search__suggestions { position: static; margin-top: 6px; max-height: 260px; }
}

.dp-search-page {
    width: 100%; min-height: 400px; box-sizing: border-box;
    padding: clamp(24px, 5vw, 60px) 16px 80px; color: #162b4d;
}
.dp-search-page__inner { width: 100%; max-width: 1130px; margin: 0 auto; }
.dp-search-page h1 { margin: 0 0 25px; font-size: clamp(28px, 4vw, 40px); color: #17396d; }
.dp-search-page__form { display: block; max-width: 800px; margin-bottom: 32px; }
.dp-search-page__form label { display: block; margin-bottom: 10px; font-size: 15px; font-weight: 600; }
.dp-search-page__field { display: flex; gap: 10px; width: 100%; }
.dp-search-page__field input {
    flex: 1 1 auto; min-width: 0; width: 100%; height: 48px; padding: 12px 14px;
    border: 1px solid #b8c5d6; border-radius: 7px; background: #fff;
    color: #17396d; font: inherit; font-size: 15px; box-sizing: border-box;
}
.dp-search-page__field button, .dp-search-empty__button {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 26px; min-height: 48px; border: 0; border-radius: 7px;
    background: #17396d; color: #fff !important; font: inherit; font-size: 15px;
    font-weight: 600; cursor: pointer; text-decoration: none !important; box-sizing: border-box;
}
.dp-search-page__field button:hover, .dp-search-empty__button:hover { background: #24518c; }
.dp-search-page__correction { padding: 16px 20px; background: #f4f7fc; border-radius: 8px; line-height: 1.7; }
.dp-search-page__correction a { color: #17396d; font-weight: 700; }
.dp-search-page__subtitle { margin: 0 0 24px; color: #526078; }
.dp-search-results { display: grid; gap: 14px; }
.dp-search-result { border: 1px solid #e0e7f0; border-radius: 10px; padding: 22px 24px; background: #fff; }
.dp-search-result__type { font-size: 12px; color: #62718b; }
.dp-search-result h2 { margin: 8px 0; font-size: clamp(18px, 3vw, 23px); line-height: 1.35; }
.dp-search-result h2 a { color: #17396d; text-decoration: none; }
.dp-search-result h2 a:hover { text-decoration: underline; }
.dp-search-result p { margin: 0; font-size: 15px; line-height: 1.6; color: #3f4a5d; }
.dp-search-empty { padding: 24px; background: #f4f7fc; border-radius: 12px; }
.dp-search-empty h2 { color: #17396d; font-size: 24px; }
.dp-search-empty h3 { margin: 30px 0 10px; color: #17396d; font-size: 19px; }
.dp-search-empty p { line-height: 1.6; }
.dp-search-empty ul { margin: 0; padding-left: 20px; }
.dp-search-empty li { margin: 8px 0; }
.dp-search-empty li a { color: #17396d; }
.dp-search-empty__button { margin: 12px 0 4px; }
.dp-search-page__pages { margin-top: 25px; }
.dp-search-page__pages ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.dp-search-page__pages a, .dp-search-page__pages span {
    display: block; padding: 8px 13px; border: 1px solid #d1daea;
    border-radius: 6px; color: #17396d; text-decoration: none;
}
.dp-search-page__pages .current { background: #17396d; color: #fff; }
@media screen and (max-width: 480px) {
    .dp-search-page { padding: 28px 14px 55px; }
    .dp-search-page__field { flex-direction: column; }
    .dp-search-page__field button { width: 100%; }
    .dp-search-result { padding: 18px 16px; }
    .dp-search-empty { padding: 18px; }
}
