.gtp-home-search-mount,
[data-gtp-home-search] {
  --gtp-hs-ink: #101828;
  --gtp-hs-muted: #667085;
  --gtp-hs-line: #d8e2f0;
  --gtp-hs-blue: #0b86f7;
  --gtp-hs-blue-dark: #075fc1;
  --gtp-hs-bg: #ffffff;
  --gtp-hs-soft: #f6f9fd;
  --gtp-hs-shadow: 0 18px 45px rgba(23, 51, 89, .13);
  display: block;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  font-family: inherit;
  color: var(--gtp-hs-ink);
  box-sizing: border-box;
}

[data-gtp-home-search] *,
[data-gtp-home-search] *::before,
[data-gtp-home-search] *::after { box-sizing: border-box; }

.gtp-home-search {
  position: relative;
  z-index: 80;
  width: 100%;
  padding: 0 clamp(10px, 2vw, 22px);
}

.gtp-home-search__tabs-wrap {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: flex-start;
  margin: 0 0 10px;
}

.gtp-home-search__tabs {
  display: flex;
  align-items: stretch;
  gap: clamp(8px, 1vw, 14px);
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 7px 12px;
  scroll-padding-inline: 7px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.gtp-home-search__tab {
  --gtp-hs-tab-a: #20a4f3;
  --gtp-hs-tab-b: #0066d6;
  appearance: none;
  position: relative;
  flex: 0 0 auto;
  min-width: clamp(68px, 7vw, 94px);
  min-height: 68px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 18px;
  padding: 9px 9px 8px;
  color: #fff;
  background: linear-gradient(145deg, var(--gtp-hs-tab-a), var(--gtp-hs-tab-b));
  box-shadow: 0 9px 22px rgba(21, 57, 95, .16), inset 0 1px 0 rgba(255,255,255,.38);
  cursor: pointer;
  opacity: .56;
  filter: saturate(.72) brightness(.91);
  transform: translateY(0) scale(.97);
  transition: opacity .18s ease, filter .18s ease, transform .18s ease, box-shadow .18s ease;
  scroll-snap-align: start;
  touch-action: manipulation;
}

.gtp-home-search__tab:hover,
.gtp-home-search__tab:focus-visible {
  opacity: .82;
  filter: saturate(.95) brightness(1);
  transform: translateY(-1px) scale(.99);
  outline: none;
}

.gtp-home-search__tab.is-active {
  opacity: 1;
  filter: saturate(1.17) brightness(1.09);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 15px 30px color-mix(in srgb, var(--gtp-hs-tab-b) 35%, transparent), 0 0 0 2px #fff, 0 0 0 4px color-mix(in srgb, var(--gtp-hs-tab-a) 42%, transparent);
}

.gtp-home-search__tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0 auto 4px;
}

.gtp-home-search__tab-icon svg {
  display: block;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.13));
}

.gtp-home-search__tab-label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: inherit;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.12;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gtp-home-search__tab[data-section="tours"] { --gtp-hs-tab-a:#ffb02e; --gtp-hs-tab-b:#ff6b35; }
.gtp-home-search__tab[data-section="excursions"] { --gtp-hs-tab-a:#8b5cf6; --gtp-hs-tab-b:#5b35cc; }
.gtp-home-search__tab[data-section="hotels"] { --gtp-hs-tab-a:#ff7c86; --gtp-hs-tab-b:#e9475f; }
.gtp-home-search__tab[data-section="avia"] { --gtp-hs-tab-a:#42a5ff; --gtp-hs-tab-b:#0877df; }
.gtp-home-search__tab[data-section="rail"] { --gtp-hs-tab-a:#2fc58a; --gtp-hs-tab-b:#078e70; }
.gtp-home-search__tab[data-section="bus"] { --gtp-hs-tab-a:#55d96b; --gtp-hs-tab-b:#149447; }
.gtp-home-search__tab[data-section="transfers"] { --gtp-hs-tab-a:#19c6c2; --gtp-hs-tab-b:#047e9a; }
.gtp-home-search__tab[data-section="insurance"] { --gtp-hs-tab-a:#f3a532; --gtp-hs-tab-b:#db6b1b; }

.gtp-home-search__panel {
  position: relative;
  z-index: 2;
  width: 100%;
  border: 1px solid rgba(183, 202, 224, .78);
  border-radius: 23px;
  padding: clamp(11px, 1.4vw, 17px);
  background: rgba(255,255,255,.97);
  box-shadow: var(--gtp-hs-shadow);
  backdrop-filter: blur(12px);
}

.gtp-home-search__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  width: 100%;
  margin: 0;
}

.gtp-home-search__field {
  position: relative;
  min-width: 0;
}

.gtp-home-search__input {
  appearance: none;
  display: block;
  width: 100%;
  height: 58px;
  border: 2px solid #c9d8e9;
  border-radius: 17px;
  outline: 0;
  padding: 0 52px 0 18px;
  color: var(--gtp-hs-ink);
  background: #fff;
  font: inherit;
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 650;
  line-height: 1;
  box-shadow: inset 0 1px 2px rgba(16,24,40,.03);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.gtp-home-search__input::placeholder { color: #8793a5; font-weight: 520; opacity: 1; }
.gtp-home-search__input:focus {
  border-color: var(--gtp-hs-blue);
  box-shadow: 0 0 0 4px rgba(11,134,247,.13), inset 0 1px 2px rgba(16,24,40,.03);
}

.gtp-home-search__clear {
  appearance: none;
  position: absolute;
  z-index: 3;
  right: 12px;
  top: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  transform: translateY(-50%);
  color: #667085;
  background: #eef3f8;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.gtp-home-search__clear.is-visible { display: flex; }
.gtp-home-search__clear:hover { color: #101828; background: #e3eaf2; }

.gtp-home-search__submit {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(148px, 13vw, 190px);
  min-height: 58px;
  border: 0;
  border-radius: 17px;
  padding: 0 23px;
  color: #fff;
  background: linear-gradient(135deg, #1395ff, #0867d3);
  box-shadow: 0 11px 24px rgba(8,103,211,.24), inset 0 1px 0 rgba(255,255,255,.25);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.gtp-home-search__submit:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 14px 28px rgba(8,103,211,.29); }
.gtp-home-search__submit:active { transform: translateY(0); }
.gtp-home-search__submit:focus-visible { outline: 3px solid rgba(11,134,247,.25); outline-offset: 3px; }
.gtp-home-search__submit[disabled] { cursor: wait; opacity: .72; }
.gtp-home-search.is-navigating .gtp-home-search__option { pointer-events: none; }

.gtp-home-search__suggestions {
  position: absolute;
  z-index: 2147483000;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  display: none;
  max-height: min(56vh, 430px);
  overflow: auto;
  border: 1px solid #d7e2ef;
  border-radius: 17px;
  padding: 7px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(16, 36, 64, .2);
  overscroll-behavior: contain;
}
.gtp-home-search__suggestions.is-open { display: block; }

.gtp-home-search__option,
.gtp-home-search__message,
.gtp-home-search__root-link {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 11px 12px;
}

.gtp-home-search__option {
  appearance: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  color: var(--gtp-hs-ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.gtp-home-search__option:hover,
.gtp-home-search__option.is-active { background: #eef7ff; }

.gtp-home-search__option-copy { min-width: 0; }
.gtp-home-search__option-title {
  display: block;
  overflow: hidden;
  color: #101828;
  font-size: 15px;
  font-weight: 780;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gtp-home-search__option-subtitle {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: #667085;
  font-size: 12.5px;
  font-weight: 520;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gtp-home-search__option-arrow { color: #0b86f7; font-size: 22px; line-height: 1; }

.gtp-home-search__message {
  color: #667085;
  background: #f8fafc;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.gtp-home-search__root-link {
  display: block;
  margin-top: 5px;
  color: #0867d3;
  background: #eef7ff;
  font-size: 13.5px;
  font-weight: 780;
  text-align: center;
  text-decoration: none;
}
.gtp-home-search__root-link:hover { background: #e3f1ff; color: #064f9f; }

.gtp-home-search__status {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

.gtp-home-search-noscript {
  padding: 14px 18px;
  border: 1px solid #d8e2f0;
  border-radius: 14px;
  background: #fff;
  text-align: center;
}

body.gtp-home-search-is-open .gtp-home-search { z-index: 2147482900; }

/* Портальный слой: список подсказок переносится в body, чтобы не попадать
   под карточки, секции конструктора и их локальные stacking context. */
body > .gtp-home-search__suggestions.gtp-home-search__suggestions--portal {
  --gtp-hs-ink: #101828;
  --gtp-hs-muted: #667085;
  --gtp-hs-blue: #0b86f7;
  position: fixed !important;
  z-index: 2147483646 !important;
  right: auto !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  isolation: isolate;
  pointer-events: auto;
}

body > .gtp-home-search__suggestions.gtp-home-search__suggestions--portal,
body > .gtp-home-search__suggestions.gtp-home-search__suggestions--portal *,
body > .gtp-home-search__suggestions.gtp-home-search__suggestions--portal *::before,
body > .gtp-home-search__suggestions.gtp-home-search__suggestions--portal *::after {
  box-sizing: border-box;
}


@media (max-width: 760px) {
  .gtp-home-search { padding: 0 8px; }
  .gtp-home-search__tabs-wrap { margin-bottom: 7px; }
  .gtp-home-search__tabs { gap: 8px; padding: 9px 6px 11px; scroll-padding-inline: 6px; }
  .gtp-home-search__tab { min-width: 67px; min-height: 64px; border-radius: 16px; padding: 8px 7px 7px; }
  .gtp-home-search__tab.is-active { transform: translateY(-1px) scale(1.005); }
  .gtp-home-search__tab-icon { width: 29px; height: 29px; margin-bottom: 3px; }
  .gtp-home-search__tab-icon svg { width: 27px; height: 27px; }
  .gtp-home-search__tab-label { font-size: 10.5px; }
  .gtp-home-search__panel { border-radius: 19px; padding: 10px; }
  .gtp-home-search__form { grid-template-columns: 1fr; gap: 8px; }
  .gtp-home-search__input { height: 54px; border-radius: 15px; padding-left: 16px; font-size: 16px; }
  .gtp-home-search__submit { width: 100%; min-height: 52px; border-radius: 15px; }
  .gtp-home-search__suggestions { max-height: min(54vh, 390px); }
}

@media (prefers-reduced-motion: reduce) {
  .gtp-home-search__tab,
  .gtp-home-search__submit,
  .gtp-home-search__input { transition: none; }
}
