/* Telegram303: RU preview navigation and its real search, not global site CSS.
   Keep the existing DOM, data, handlers, link destinations and type families. */
html body[data-page="home"] .site-header {
  inset: 14px 16px auto;
  min-height: 76px;
  padding: 10px 20px;
  grid-template-columns: 136px minmax(0, 1fr) auto;
  column-gap: 14px;
  border: 0;
  border-radius: 16px;
  background: rgba(247, 242, 233, .98);
  box-shadow: 0 2px 8px rgba(41, 4, 5, .14);
  backdrop-filter: none;
  transition: background 180ms ease-out;
}
html body[data-page="home"] .site-header.scrolled { background: var(--paper); }
html body[data-page="home"] .desktop-nav { gap: 1px; align-items: center; }
html body[data-page="home"] .desktop-nav a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 7px; border-radius: 999px;
  font-size: .7rem; color: var(--ink); transition: color 150ms ease-out, background 150ms ease-out;
}
html body[data-page="home"] .desktop-nav a::after { content: none; }
html body[data-page="home"] .desktop-nav a:is(:hover, :focus-visible, [aria-current="page"]) {
  background: var(--cream); color: var(--burgundy);
}
html body[data-page="home"] .header-actions { gap: 8px; }
html body[data-page="home"] .header-actions :is(.button, .careers-header-button, .site-search-trigger, select, .menu-toggle) {
  min-height: 44px; border-radius: 999px; box-shadow: none;
}
html body[data-page="home"] .header-actions .button { white-space: nowrap; }
html body[data-page="home"] .site-search-trigger {
  width: 44px; height: 44px; flex-basis: 44px; background: var(--cream); border: 0;
}
html body[data-page="home"] .site-search-trigger:hover { background: var(--burgundy); color: var(--paper); }
html body[data-page="home"] .site-search-trigger:hover .site-search-icon { color: inherit; }
html body[data-page="home"] .language-switch select { background: transparent; }
html body[data-page="home"] :is(.site-header, .mobile-menu, .site-search-dialog) :is(a, button, input, select):focus-visible {
  outline: 2px solid var(--burgundy); outline-offset: 3px;
}

/* The existing global search supplies real pages, courses and articles.
   This stylesheet changes its presentation only, including empty results. */
html body[data-page="home"] .site-search-dialog {
  width: min(740px, calc(100vw - 32px)); height: auto;
  max-height: calc(100dvh - 40px); border: 0; border-radius: 16px;
  background: var(--paper); box-shadow: 0 4px 8px rgba(41, 4, 5, .2);
}
html body[data-page="home"] .site-search-dialog::backdrop {
  background: rgba(41, 4, 5, .5); backdrop-filter: blur(7px);
}
html body[data-page="home"] .site-search-dialog[open] {
  animation: guga-header-search-enter 220ms cubic-bezier(.16, 1, .3, 1);
}
html body[data-page="home"] .site-search-workspace {
  max-height: calc(100dvh - 40px); padding: 24px; background: var(--paper);
  scrollbar-gutter: stable;
}
html body[data-page="home"] .site-search-close { min-height: 44px; padding-inline: 14px; border-radius: 999px; }
html body[data-page="home"] .site-search-close i { border-radius: 50%; }
html body[data-page="home"] .site-search-form > div {
  padding: 5px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; box-shadow: none;
}
html body[data-page="home"] .site-search-form > div:focus-within { border-color: var(--burgundy); outline: 2px solid var(--burgundy); outline-offset: 2px; }
html body[data-page="home"] .site-search-form input:focus-visible { outline: none; }
html body[data-page="home"] .site-search-form input { min-width: 0; color: var(--ink); }
html body[data-page="home"] .site-search-form input::placeholder { color: #65564f; opacity: 1; }
html body[data-page="home"] .site-search-form button { border-radius: 9px; border: 0; }
html body[data-page="home"] .site-search-suggestions button { min-height: 36px; border-radius: 999px; }
html body[data-page="home"] .site-search-results { gap: 8px; }
html body[data-page="home"] .site-search-result {
  min-width: 0; padding: 14px; border: 0; border-radius: 12px;
  background: var(--cream); color: var(--ink);
  transition: background 150ms ease-out;
  animation: guga-header-result-enter 180ms cubic-bezier(.16, 1, .3, 1);
}
html body[data-page="home"] .site-search-result:is(:hover, :focus-visible) { background: #e4d9c8; }
html body[data-page="home"] .site-search-result > i { border-radius: 50%; }
html body[data-page="home"] .site-search-result-copy :is(b, p) { color: var(--ink); overflow-wrap: anywhere; }
html body[data-page="home"] .site-search-result-copy small { color: #65564f; }
html body[data-page="home"] .site-search-empty { padding: 20px; border-radius: 12px; background: var(--cream); }
html body[data-page="home"] .site-search-help a { border-radius: 999px; }

@media (min-width: 1440px) {
  html body[data-page="home"] .site-search-trigger {
    width: auto; flex-basis: auto; display: flex; gap: 10px; padding-inline: 14px;
  }
  html body[data-page="home"] .site-search-trigger::after { content: 'Поиск'; font: 600 .7rem var(--sans); }
}
@media (max-width: 1179px) {
  html body[data-page="home"] .site-header {
    inset: 10px 12px auto; min-height: 68px; padding: 10px 14px;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  html body[data-page="home"] .desktop-nav { display: none; }
  html body[data-page="home"] .header-actions { grid-column: 2; }
  html body[data-page="home"] .menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); width: 44px; height: 44px; }
  html body[data-page="home"] .menu-toggle span { width: 23px; height: 2px; margin: 0; }
  html body[data-page="home"] .menu-toggle.active span:first-child { transform: translateY(4px) rotate(45deg); }
  html body[data-page="home"] .menu-toggle.active span:last-child { transform: translateY(-4px) rotate(-45deg); }
  html body[data-page="home"] .mobile-menu { display: block; padding-top: 102px; }
  html body[data-page="home"] .mobile-menu:not(.open) { visibility: hidden; }
  html body[data-page="home"] .mobile-menu.open { visibility: visible; }
  html body[data-page="home"] .mobile-menu nav a { border-radius: 12px; padding-inline: 12px; }
  html body[data-page="home"] .mobile-menu nav a:is(:hover, :focus-visible) { background: var(--paper); }
  html body[data-page="home"] .mobile-careers-button { border-radius: 12px; box-shadow: none; }
}
@media (max-width: 600px) {
  html body[data-page="home"] .site-header { inset: 8px 8px auto; padding: 8px 10px; min-height: 64px; border-radius: 14px; }
  html body[data-page="home"] .header-actions { gap: 6px; }
  html body[data-page="home"] .header-actions .language-switch select { width: 104px; }
  html body[data-page="home"] .site-header .logo { grid-template-columns: 30px auto; gap: 7px; }
  html body[data-page="home"] .site-header .logo-crest { width: 30px; height: 30px; }
  html body[data-page="home"] .site-search-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  html body[data-page="home"] .site-search-workspace { padding: 16px 12px; max-height: calc(100dvh - 16px); }
  html body[data-page="home"] .site-search-form > div { grid-template-columns: 28px minmax(0, 1fr) 44px; padding: 4px; }
  html body[data-page="home"] .site-search-form button { min-width: 44px; min-height: 48px; }
  html body[data-page="home"] .site-search-form input { font-size: 16px; }
  html body[data-page="home"] .site-search-result { grid-template-columns: 24px minmax(0, 1fr) 26px; gap: 8px; padding: 12px; }
  html body[data-page="home"] .site-search-result > i { width: 26px; height: 26px; }
}
@keyframes guga-header-search-enter { from { opacity: .65; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes guga-header-result-enter { from { opacity: .6; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Message310: original heading, subtitle and lead centered at the top of
   the image. Actions and real search remain separate below. Type scales stay. */
html body[data-page="home"] main > .hero[data-header-ready] {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-areas: 'intro intro' 'actions search';
  grid-template-rows: auto 1fr; gap: 96px 32px;
  margin: 104px 16px 24px; padding: 32px 32px 88px;
  min-height: 720px; border-radius: 16px; background: #766353;
}
html body[data-page="home"] .hero[data-header-ready] .hero-visual {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; min-height: 0; aspect-ratio: auto;
  border: 0; border-radius: inherit; background: none;
  pointer-events: none;
}
html body[data-page="home"] .hero[data-header-ready] .hero-image {
  inset: 0; background: linear-gradient(180deg, rgba(247,242,233,.96), rgba(247,242,233,.9) 40%, rgba(247,242,233,.06) 72%, rgba(41,4,5,.45)), url('/assets/destinations/uk-clean.jpg') center / cover no-repeat;
}
html body[data-page="home"] .hero[data-header-ready] .hero-image::after { content: none; }
html body[data-page="home"] .hero[data-header-ready] .hero-copy {
  grid-area: actions; width: 100%; max-width: 660px; align-self: end;
  padding: 24px; border-radius: 16px;
  background: rgba(247,242,233,.97); color: var(--ink);
}
html body[data-page="home"] .hero-intro { grid-area: intro; justify-self: center; width: 100%; max-width: 960px; min-width: 0; text-align: center; color: var(--ink); }
html body[data-page="home"] .hero-intro .kicker { justify-content: center; }
html body[data-page="home"] .hero[data-header-ready] h1 { max-width: none; width: 100%; margin: 24px auto 0; text-align: center; text-wrap: balance; }
html body[data-page="home"] .hero[data-header-ready] .ru-hero-subtitle { max-width: none; margin: 12px auto 0; text-align: center; text-wrap: balance; }
html body[data-page="home"] .hero[data-header-ready] .hero-lead { max-width: 72ch; margin: 24px auto 0; color: #5b514c; text-align: center; text-wrap: pretty; }
html body[data-page="home"] .hero[data-header-ready] .hero-buttons { flex-wrap: wrap; gap: 16px 24px; margin-top: 0; }
html body[data-page="home"] .hero[data-header-ready] .hero-buttons .button { border-radius: 999px; }
html body[data-page="home"] .hero[data-header-ready] .hero-trust { margin-top: 26px; gap: 12px 20px; }
html body[data-page="home"] .hero[data-header-ready] .hero-trust small { color: #65564f; }
html body[data-page="home"] .hero-search-stage { grid-area: search; min-width: 0; align-self: end; margin-bottom: 0; }
html body[data-page="home"] .hero-search-stage:empty { display: none; }
html body[data-page="home"] .hero[data-header-ready] .hero-search {
  margin: 0; max-width: none; padding: 22px;
  border-radius: 16px; background: rgba(247,242,233,.95); backdrop-filter: blur(8px);
}
html body[data-page="home"] .hero[data-header-ready] .hero-search > label {
  margin-bottom: 14px; font-size: 14px; line-height: 1.4;
}
html body[data-page="home"] .hero[data-header-ready] .hero-search > div {
  grid-template-columns: minmax(0, 1fr) 48px; padding: 4px; border-radius: 12px; background: #fff;
}
html body[data-page="home"] .hero[data-header-ready] .hero-search > div:focus-within { outline: 2px solid var(--burgundy); outline-offset: 2px; }
html body[data-page="home"] .hero[data-header-ready] .hero-search input { font-size: 16px; padding: 0 10px; }
html body[data-page="home"] .hero[data-header-ready] .hero-search input::placeholder { color: #65564f; opacity: 1; }
html body[data-page="home"] .hero[data-header-ready] .hero-search button[type="submit"] { width: 48px; border-radius: 9px; }
html body[data-page="home"] .hero-search-examples { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; font-size: 12px; }
html body[data-page="home"] .hero-search-examples > span { margin-right: 3px; color: #65564f; }
html body[data-page="home"] .hero-search .hero-search-examples button {
  width: auto; height: auto; min-height: 36px; padding: 6px 10px;
  border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--burgundy); font-size: 12px;
}
html body[data-page="home"] .hero-search .hero-search-examples button:is(:hover, :focus-visible) { background: var(--burgundy); color: var(--paper); }
html body[data-page="home"] .hero[data-header-ready] .hero-stamp { top: auto; right: auto; left: 32px; bottom: 16px; width: 56px; height: 56px; border-width: 2px; box-shadow: none; transform: none; }
html body[data-page="home"] .hero[data-header-ready] .hero-note { position: static; width: 100%; margin-top: 16px; border-radius: 12px; background: rgba(247,242,233,.95); }
html body[data-page="home"] .hero[data-header-ready] .hero-foot { position: absolute; right: 32px; bottom: 24px; padding: 7px 12px; border-radius: 999px; color: var(--paper); background: rgba(41,4,5,.8); }
html body[data-page="home"] .hero[data-header-ready] .hero-foot .hero-line { display: none; }
@media (max-width: 1179px) {
  html body[data-page="home"] main > .hero[data-header-ready] { margin-top: 92px; padding: 24px 24px 88px; gap: 80px 24px; }
  html body[data-page="home"] .hero[data-header-ready] .hero-copy { padding: 24px; }
  html body[data-page="home"] .hero[data-header-ready] .hero-search { padding: 16px; }
}
@media (max-width: 900px) {
  html body[data-page="home"] main > .hero[data-header-ready] { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'intro' 'search' 'actions'; grid-template-rows: auto; padding: 24px 20px 88px; gap: 24px; }
  html body[data-page="home"] .hero[data-header-ready] .hero-copy { max-width: none; }
  html body[data-page="home"] .hero[data-header-ready] .hero-image { background-position: center, 58% center; }
  html body[data-page="home"] .hero-search-stage { margin-bottom: 0; }
  html body[data-page="home"] .hero[data-header-ready] .hero-foot { right: 20px; bottom: 18px; }
}
@media (max-width: 600px) {
  html body[data-page="home"] main > .hero[data-header-ready] { margin: 84px 8px 16px; padding: 24px 10px 88px; border-radius: 14px; }
  html body[data-page="home"] .hero-intro { padding-inline: 8px; }
  html body[data-page="home"] .hero-intro .kicker { gap: 8px; }
  html body[data-page="home"] .hero[data-header-ready] .hero-copy { padding: 24px 16px; border-radius: 14px; }
  html body[data-page="home"] .hero[data-header-ready] .hero-search { padding: 16px; border-radius: 14px; }
  html body[data-page="home"] .hero[data-header-ready] .hero-foot { right: 10px; }
  html body[data-page="home"] .hero[data-header-ready] .hero-stamp { left: 16px; width: 48px; height: 48px; }
  html body[data-page="home"] .hero[data-header-ready] .hero-buttons .button { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html body[data-page="home"] :is(.site-header, .site-search-dialog, .site-search-result, .desktop-nav a) { animation: none; transition: none; }
}
