/* Поиск по сайту GLL (search.js). Цвета брендбука: #3e286a, #5d2e8e, #a581ba, #ece3f0. */
.gs-open { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; margin: 0; background: transparent; color: #3e286a; border: 1px solid rgba(62, 40, 106, .18); cursor: pointer; flex: none; }
.gs-open:hover { background: #ece3f0; }
.gs-open svg { width: 20px; height: 20px; display: block; }
.gs-open:focus-visible, .gs-close:focus-visible, .gs-input:focus-visible, .gs-a:focus-visible, .gs-link:focus-visible { outline: 2px solid #5d2e8e; outline-offset: 2px; }

html.gs-lock { overflow: hidden; }
.gs-overlay { position: fixed; inset: 0; z-index: 2000; display: none; background: rgba(26, 20, 35, .45); font-family: "Tilda Sans", "Segoe UI", system-ui, sans-serif; }
.gs-overlay.gs-open-now { display: block; animation: gs-fade .15s ease-out; }
.gs-dialog { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; color: #1a1423; overflow: hidden; }
.gs-head { display: flex; align-items: center; gap: 8px; padding: 12px; border-bottom: 1px solid rgba(62, 40, 106, .18); }
.gs-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gs-input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; font: inherit; font-size: 16px; color: inherit; background: #fff; border: 1px solid rgba(62, 40, 106, .18); border-radius: 0; -webkit-appearance: none; appearance: none; }
.gs-input:focus { border-color: #5d2e8e; }
.gs-close { width: 44px; height: 44px; flex: none; font-size: 26px; line-height: 1; color: #3e286a; background: transparent; border: 1px solid rgba(62, 40, 106, .18); cursor: pointer; }
.gs-close:hover { background: #ece3f0; }
.gs-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.gs-item { margin: 0; border-bottom: 1px solid rgba(62, 40, 106, .1); }
.gs-a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px; min-height: 44px; color: inherit; text-decoration: none; }
.gs-active, .gs-item:hover { background: #ece3f0; }
.gs-active .gs-a { box-shadow: inset 3px 0 0 #5d2e8e; }
.gs-title { font-weight: 500; }
.gs-type { flex: none; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: #5d2e8e; }
.gs-note { padding: 16px; color: #5b5266; }
.gs-link { color: #5d2e8e; text-decoration: underline; }

@media (min-width: 769px) {
  .gs-dialog { inset: auto; top: 8vh; left: 50%; width: min(640px, calc(100% - 32px)); max-height: 76vh; transform: translateX(-50%); border: 1px solid rgba(62, 40, 106, .18); }
}

@keyframes gs-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .gs-overlay.gs-open-now { animation: none; }
}

/* тёмная тема сайта: html[data-theme="dark"] */
html[data-theme="dark"] .gs-open { color: #ece3f0; border-color: rgba(165, 129, 186, .4); }
html[data-theme="dark"] .gs-open:hover, html[data-theme="dark"] .gs-close:hover { background: rgba(165, 129, 186, .18); }
html[data-theme="dark"] .gs-dialog { background: #1a1423; color: #ece3f0; border-color: rgba(165, 129, 186, .3); }
html[data-theme="dark"] .gs-head, html[data-theme="dark"] .gs-item { border-color: rgba(165, 129, 186, .25); }
html[data-theme="dark"] .gs-input { background: #241b30; color: #ece3f0; border-color: rgba(165, 129, 186, .4); }
html[data-theme="dark"] .gs-close { color: #ece3f0; border-color: rgba(165, 129, 186, .4); }
html[data-theme="dark"] .gs-active, html[data-theme="dark"] .gs-item:hover { background: rgba(165, 129, 186, .2); }
html[data-theme="dark"] .gs-type, html[data-theme="dark"] .gs-link { color: #a581ba; }
html[data-theme="dark"] .gs-note { color: #c9bcd6; }
html[data-theme="dark"] .gs-open:focus-visible, html[data-theme="dark"] .gs-close:focus-visible, html[data-theme="dark"] .gs-input:focus-visible, html[data-theme="dark"] .gs-a:focus-visible, html[data-theme="dark"] .gs-link:focus-visible { outline-color: #a581ba; }
