:root {
  --blue: #0869e8;
  --navy: #102d4d;
  --muted: #61758a;
  --line: #dce8f2;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--navy);
  background: #fff;
  font-family: Aptos, "Segoe UI", sans-serif;
  line-height: 1.45;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  margin-inline: auto;
}

.header-inner,
.hero-grid,
.search-wrap {
  width: calc(100% - 48px);
  max-width: 1200px;
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 15px;
  color: #fff;
  background: var(--navy);
  border-radius: 7px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 3px solid #f0b429;
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(255, 255, 255, 96);
  transition: box-shadow .2s ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 30px rgba(16, 45, 77, .08);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 34px;
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 75px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  height: 38px;
  margin-bottom: 3px;
  padding: 0 4px;
  color: #eef2ee;
  background: #0000ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 4px 12px rgba(16, 45, 77, .22);
}

.desktop-nav>* {
  position: relative;
  display: flex;
}

.desktop-nav>*+*::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 0;
  width: 1px;
  background: rgba(255, 255, 255, .2);
  content: "";
}

.desktop-nav>a,
.has-sub>a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  margin: 5px 1px;
  padding: 0 11px;
  font-size: .84rem;
  font-weight: 300;
  text-decoration: none;
  transition: background .18s;
}

.desktop-nav>a:hover,
.has-sub:hover>a,
.has-sub:focus-within>a {
  background: rgba(255, 255, 255, .1);
}

.desktop-nav>a.is-active::after,
.has-sub>a.is-active::before {
  position: absolute;
  right: 11px;
  bottom: -2px;
  left: 11px;
  height: 2px;
  background: var(--blue);
  content: "";
}

.has-sub>a::after {
  width: 5px;
  height: 5px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  opacity: .6;
  transform: translateY(-2px) rotate(45deg);
  content: "";
}

.has-sub::after {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 12px;
  content: "";
}

.desktop-nav svg.i {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .7;
}

.sub {
  position: absolute;
  z-index: 6;
  top: 100%;
  left: 50%;
  min-width: 210px;
  margin-top: 12px;
  padding: 6px;
  color: #26324d;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 14px 30px rgba(15, 25, 50, .22);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}

.has-sub:hover .sub,
.has-sub:focus-within .sub {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.sub a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: .84rem;
  font-weight: 500;
  text-decoration: none;
}

.sub a:hover {
  color: var(--blue);
  background: rgba(255, 255, 255, .9);
}

.bar-contact {
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 14px;
  font-size: .84rem;
  font-weight: 600;
  white-space: nowrap;
}

.bar-contact .msg {
  display: block;
  width: 20px;
  height: 20px;
  color: #fff;
  opacity: .85;
  transition: opacity .18s;
}

.bar-contact .msg:hover {
  opacity: 1;
}

.bar-contact .msg svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bar-contact .tel {
  margin-left: 4px;
  text-decoration: none;
}

@media (min-width: 821px) {
  .header-inner {
    align-items: flex-end;
    gap: 7px;
    padding-top: 15px;
  }

  .brand {
    position: relative;
    top: -4px;
    margin-left: auto;
  }
}

.menu-button {
  display: none;
  width: 43px;
  height: 43px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: var(--navy);
  border-radius: 4px;
  transition: .2s ease;
}

.menu-button[aria-expanded="true"] span:nth-last-child(3) {
  transform: translateY(6px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-last-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  padding: 8px 24px 22px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.mobile-menu[hidden] {
  display: none !important;
}

.mobile-menu a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid #edf2f7;
  font-weight: 600;
  text-decoration: none;
}

.tpwl-currency__wrapper {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 10px auto 15px;
  justify-content: center;
}

.currency-line {
  width: 100%;
  box-sizing: border-box;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background-color: #444f72;
  color: #ffffff;
  font-size: 13px;
  font-family: Aptos, 'Aptos Display', 'Segoe UI', Arial, sans-serif;
  line-height: 1;
  padding: 0 12px;
  text-align: center;
  white-space: nowrap;
}

.currency-group {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.currency-rates {
  gap: 8px;
}

.currency-times {
  gap: 12px;
}

@media (min-width: 1248px) {
  .tpwl-currency__wrapper {
    width: calc(56% - 32.5px);
    margin-right: 0;
    margin-left: auto;
  }
}

.currency-line .currency-label {
  text-transform: none;
}

.currency-line .time-colon {
  animation: 2.5s step-end infinite colon-blink;
}

@keyframes colon-blink {
  50% {
    opacity: 0;
  }
}

.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  padding: 20px 0 56px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff 0%, #fff 47%, #f0f9ff 100%);
}

.hero::before {
  position: absolute;
  top: 42px;
  right: -150px;
  width: 480px;
  height: 480px;
  border: 95px solid rgba(30, 148, 238, .055);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  align-items: center;
  gap: 58px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 18px 0 96px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

h1 {
  max-width: 620px;
  margin: 0 0 22px;
  color: var(--navy);
  font-size: clamp(3.4rem, 5.7vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -.058em;
  line-height: .92;
}

h1 span {
  color: var(--blue);
}

.hero-lead {
  max-width: 500px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.13rem;
  line-height: 1.58;
  visibility: hidden;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--blue);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  margin-left: 0;
}

.hero-link svg {
  width: 26px;
  height: 26px;
  padding: 1px;
  color: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 50%;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  transition: transform .2s ease;
}

.hero-link svg path {
  fill: none;
  stroke: var(--blue);
}

.hero-link:hover svg {
  transform: translateX(4px);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin: 42px 0 0 23px;
  color: var(--muted);
  font-size: .78rem;
}

.hero-points span {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-points b {
  color: var(--navy);
  font-size: 1.1rem;
}

.hero-visual {
  position: relative;
  min-height: 490px;
}

.image-frame {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  transform: translateY(-50%);
}

.image-frame img {
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

.flight-line {
  position: absolute;
  z-index: -1;
  border: 2px solid rgba(8, 105, 232, .13);
  border-radius: 50%;
}

.flight-line-one {
  right: -80px;
  bottom: -42px;
  width: 330px;
  height: 210px;
  transform: rotate(-20deg);
}

.flight-line-two {
  top: -30px;
  left: -45px;
  width: 190px;
  height: 120px;
}

.search-wrap {
  position: relative;
  z-index: 5;
  width: calc(100% - 48px);
  max-width: 1200px;
  margin: -59px auto 0;
  scroll-margin-top: 90px;
}

.search-wrap::after {
  display: block;
  height: var(--search-scroll-space, 0px);
  content: "";
  pointer-events: none;
}

.search-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 18px 16px;
  background: #fff;
  border: 1px solid #d8e8f4;
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(19, 77, 120, .14);
}

.search-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 28px;
}

.search-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: none;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  font-size: .8rem;
  transform: rotate(-12deg);
}

.search-title p {
  margin: 0;
  color: #0869e8;
  font-size: .9rem;
  font-weight: 800;
}

.search-hint {
  color: var(--muted);
  font-size: .75rem;
}

.search-hint::before {
  margin-right: 9px;
  color: #b1bfcc;
  content: "—";
}

.widget-area {
  position: relative;
  min-width: 0;
  min-height: 60px;
}

#tpwl-search {
  position: relative;
  z-index: 1;
  min-height: 106px;
  --search-form-link-color: var(--blue);
}

#tpwl-search>* {
  animation: widget-appear .16s ease-out both;
}

@keyframes widget-appear {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

#tpwl-search [class*="SearchEdit-module__multiRouteBtn"] {
  color: var(--blue) !important;
}

#tpwl-search [class*="SearchEdit-module__multiRouteIcon"] path {
  fill: var(--blue) !important;
}

#tpwl-search [class*="SearchInput-module__root"] {
  padding-block: .35rem;
}

#tpwl-search [class*="DefaultSearch-module__searchLine"] button {
  padding-block: .75rem;
}

#tpwl-tickets {
  margin-top: 25px;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 9px;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(16, 45, 77, .14);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease,
    transform .2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.back-to-top svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
}

@media (max-width: 1080px) {

  .desktop-nav>a,
  .has-sub>a {
    padding: 0 9px;
  }

  .desktop-nav svg.i,
  .bar-contact .msg {
    display: none;
  }

  .hero-grid {
    grid-template-columns: .95fr 1.05fr;
    gap: 30px;
  }

  .hero-visual {
    min-height: 430px;
  }
}

@media (max-width: 820px) {

  .header-inner,
  .hero-grid,
  .search-wrap {
    width: calc(100% - 30px);
  }

  .header-inner {
    min-height: 72px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
    margin-left: auto;
  }

  .mobile-menu:not([hidden]) {
    display: block;
  }

  .brand img {
    height: 56px;
  }

  .hero {
    min-height: auto;
    padding: 28px 0 28px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-copy {
    padding: 8px 0 0;
  }

  h1 {
    font-size: clamp(3rem, 12vw, 4.8rem);
  }

  .hero-lead {
    display: none;
  }

  .hero-visual {
    min-height: 320px;
  }

  .hero-visual {
    transform: none;
  }

  .image-frame {
    top: 50%;
    right: 0;
    left: 0;
  }

  .search-wrap {
    margin-top: 14px;
  }

  .search-card {
    gap: 8px;
    padding: 12px;
  }

  .tpwl-currency__wrapper {
    display: none;
  }

  #tpwl-search [class*="SearchInput-module__root"] {
    padding-block: .45rem;
  }

  #tpwl-search [class*="DefaultSearch-module__searchLine"] button {
    padding-block: .9rem;
  }

  .back-to-top {
    display: none;
  }
}

@media (max-width: 520px) {

  .header-inner,
  .hero-grid,
  .search-wrap {
    width: calc(100% - 24px);
  }

  .header-inner {
    min-height: 66px;
  }

  .brand img {
    height: 48px;
  }

  .eyebrow {
    margin-bottom: 13px;
    font-size: .67rem;
  }

  h1 {
    margin-bottom: 18px;
    font-size: 3.15rem;
    line-height: .96;
  }

  .hero-points {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    font-size: .7rem;
  }

  .hero-points .hero-link {
    gap: 5px;
    font-size: .8rem;
    white-space: nowrap;
  }

  .hero-points .hero-link svg {
    width: 22px;
    height: 22px;
  }

  .hero-points b {
    font-size: .95rem;
  }

  .hero-visual {
    min-height: 260px;
  }

  .image-frame {
    top: 50%;
    right: 0;
    left: 0;
  }

  .search-card {
    padding: 15px 12px;
    border-radius: 16px;
  }

  .search-title {
    flex-wrap: wrap;
    padding-inline: 3px;
  }

  .search-hint {
    width: 100%;
    padding-left: 37px;
    margin-top: -5px;
  }

  .search-hint::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }

  .currency-line .time-colon {
    animation-duration: 2.5s !important;
  }
}

/* Временный тест: меню скрыто, HTML не изменён */
.desktop-nav,
.menu-button,
.mobile-menu {
  display: none !important;
}

/* Временный тест: логотип слева */
@media (min-width: 821px) {
  .brand {
    margin-left: 0;
  }
}

/* Временный тест: логотип уменьшен на 40% (75px -> 45px) */
.brand img {
  height: 45px;
}

@media (max-width: 820px) {
  .brand img {
    height: 34px;
  }
}

@media (max-width: 520px) {
  .brand img {
    height: 29px;
  }
}

/* Временный тест: подпись под заголовком — справа, курсив, не жирная */
.eyebrow {
  margin: 14px 0 26px;
  color: #444f72;
  font-size: 20px;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0;
  text-align: right;
  text-transform: none;
}

h1 {
  margin-top: -.17em;
  margin-bottom: 0;
}

/* Временный тест: верх заголовка вровень с верхом картинки */
.hero-grid {
  align-items: start;
}

.hero-copy {
  padding-top: 0;
}

.hero-visual {
  display: flex;
  align-items: flex-start;
}

.image-frame {
  position: static;
  transform: none;
}

/* Временный тест: фон страницы чуть темнее */
body {
  background: #f2f6fb;
}

.hero {
  background: linear-gradient(135deg, #fbfdff 0%, #f4f9fe 47%, #e6f2fd 100%);
}

/* Временный тест: логотип по левой границе картинки */
@media (min-width: 1081px) {
  .brand {
    margin-left: calc(44% + 32.5px);
  }
}

@media (min-width: 821px) and (max-width: 1080px) {
  .brand {
    margin-left: calc(47.5% + 15.75px);
  }
}
