/* Умный поиск: выпадающее окно и страница результатов */
.gd_sr_wrap { position: relative; }
.gd_sr {
	--sr-teal: var(--gd-teal, #0a93a6); --sr-teal-d: var(--gd-teal-dark, #076b7a); --sr-green: var(--gd-green, #7cc520);
	--sr-ink: var(--gd-ink, #14323a); --sr-muted: var(--gd-muted, #5d7177); --sr-mint: var(--gd-mint, #effaf8); --sr-line: var(--gd-line, #dcebea);
	position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 10050;
	background: #fff; border: 1px solid var(--sr-line); border-radius: 18px;
	box-shadow: 0 18px 50px rgba(11, 60, 70, .18);
	max-height: min(70vh, 620px); overflow: auto; padding: 8px 0; text-align: left;
	font-size: 15px; color: var(--sr-ink);
}
.gd_sr[hidden] { display: none; }
.gd_sr.is-loading { opacity: .7; }
.gd_sr_sec { padding: 6px 0; border-bottom: 1px solid var(--sr-line); }
.gd_sr_sec:last-of-type { border-bottom: 0; }
.gd_sr_title {
	display: flex; justify-content: space-between; align-items: center;
	padding: 6px 18px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sr-muted);
}
.gd_sr_clear { background: none; border: 0; color: var(--sr-teal); font-size: 12px; cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 600; }
.gd_sr_item {
	display: flex; align-items: center; gap: 12px; padding: 8px 18px; color: var(--sr-ink) !important; text-decoration: none;
	line-height: 1.3; cursor: pointer;
}
.gd_sr_item:hover, .gd_sr_item.is-active { background: var(--sr-mint); }
.gd_sr_item img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; background: var(--sr-mint); }
.gd_sr_ico {
	width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--sr-mint);
	display: inline-flex; align-items: center; justify-content: center; font-size: 17px; color: var(--sr-teal);
}
.gd_sr_txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.gd_sr_name { overflow: hidden; text-overflow: ellipsis; }
.gd_sr_txt small { color: var(--sr-muted); font-size: 12.5px; margin-top: 2px; }
.gd_sr mark, .gd_hl_target mark {
	background: linear-gradient(transparent 55%, rgba(124, 197, 32, .35) 55%); color: inherit; font-weight: 700; padding: 0;
}
.gd_sr_price { flex: none; font-weight: 700; color: var(--sr-teal-d); white-space: nowrap; font-size: 14px; }
.gd_sr_hist { display: flex; align-items: center; }
.gd_sr_hist .gd_sr_item { flex: 1; }
.gd_sr_hist .gd_sr_ico { width: 28px; height: 28px; font-size: 14px; background: none; }
.gd_sr_del { background: none; border: 0; color: var(--sr-muted); font-size: 20px; line-height: 1; padding: 6px 16px; cursor: pointer; }
.gd_sr_del:hover { color: #c0392b; }
.gd_sr_chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 18px 10px; }
.gd_chip, .gd_sr_chips .gd_sr_item {
	display: inline-flex; padding: 7px 14px !important; border-radius: 999px; background: var(--sr-mint, #effaf8);
	border: 1px solid var(--sr-line, #dcebea); color: var(--sr-teal-d, #076b7a) !important; font-size: 14px; font-weight: 600; gap: 0;
}
.gd_chip:hover, .gd_sr_chips .gd_sr_item:hover, .gd_sr_chips .gd_sr_item.is-active { background: var(--sr-teal, #0a93a6); color: #fff !important; border-color: transparent; }
.gd_sr_info { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; padding: 8px 0; }
.gd_sr_links .gd_sr_item { padding: 6px 18px; }
.gd_sr_links .gd_sr_ico { width: 30px; height: 30px; font-size: 14px; }
.gd_sr_book { color: var(--sr-teal-d) !important; font-weight: 700; }
.gd_sr_contacts { display: flex; flex-direction: column; gap: 8px; padding: 8px 18px; background: var(--sr-mint); border-radius: 14px; margin: 4px 14px 4px 0; }
.gd_sr_contacts a { display: flex; flex-direction: column; color: var(--sr-ink) !important; font-weight: 700; font-size: 16px; }
.gd_sr_contacts small { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--sr-teal); }
.gd_sr_contacts span { font-size: 12.5px; color: var(--sr-muted); }
.gd_sr_hint { padding: 10px 18px 6px; font-size: 12.5px; color: var(--sr-muted); }
.gd_sr_note { margin: 4px 14px 6px; padding: 8px 12px; border-radius: 12px; background: #f3fbe9; color: var(--sr-ink); font-size: 14px; }
.gd_sr_empty { padding: 14px 18px; color: var(--sr-muted); line-height: 1.5; }
.gd_sr_all { justify-content: center; font-weight: 700; color: var(--sr-teal-d) !important; padding: 12px 18px; }

/* страница результатов */
.gd_sp_head { margin: 10px 0 24px; }
.gd_sp_form { display: flex; gap: 10px; max-width: 720px; position: relative; }
.gd_sp_form .gd_sp_input {
	flex: 1; height: 52px; padding: 0 18px; font-size: 17px; border-radius: 999px;
	border: 1.5px solid var(--gd-line, #dcebea); background: #fbfefe; outline: none;
}
.gd_sp_form .gd_sp_input:focus { border-color: var(--gd-teal, #0a93a6); box-shadow: 0 0 0 4px rgba(10, 147, 166, .12); }
.gd_sp_form button {
	height: 52px; padding: 0 28px; border: 0; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 16px; color: #fff;
	background: linear-gradient(135deg, var(--gd-teal, #0a93a6), var(--gd-teal-dark, #076b7a));
}
.gd_sp_form .gd_sr { top: 60px; right: 120px; }
.gd_sp_count { margin-top: 12px; color: var(--gd-muted, #5d7177); }
.gd_sp_h2 { margin: 28px 0 14px; font-size: 24px; }
.gd_sp_cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.gd_sp_cards--list { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.gd_sp_card {
	display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: #fff;
	border: 1px solid var(--gd-line, #dcebea); box-shadow: 0 6px 18px rgba(11, 60, 70, .06); color: var(--gd-ink, #14323a) !important;
	transition: transform .2s, box-shadow .2s;
}
.gd_sp_card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(11, 60, 70, .12); }
.gd_sp_card img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; }
.gd_sp_card span { display: flex; flex-direction: column; gap: 3px; }
.gd_sp_card small { color: var(--gd-muted, #5d7177); font-size: 13px; }
.gd_sp_empty { padding: 18px 20px; border-radius: 16px; background: var(--gd-mint, #effaf8); line-height: 1.8; margin-bottom: 20px; }
.gd_sp_empty .gd_chip { margin: 2px 4px; }

@media (max-width: 820px) {
	.gd_sr { max-height: 66vh; border-radius: 16px; }
	.gd_sr_info { grid-template-columns: 1fr; }
	.gd_sr_contacts { margin: 4px 14px; }
	.gd_sp_form .gd_sr { position: absolute; top: 60px; left: 0; right: 0; }
	.gd_sp_form button { padding: 0 18px; }
	.gd_sp_cards--list { grid-template-columns: 1fr; }
}
