:root {
  --blue: #287dfa;
  --blue-dark: #1668e8;
  --blue-deep: #1a4fd8;
  --navy: #0f294d;
  --text: #22354e;
  --muted: #6b7c93;
  --line: #e6ebf2;
  --bg: #f4f6f9;
  --card: #fff;
  --radius: 16px;
  --shadow: 0 8px 28px rgba(15, 41, 77, 0.1);
  --font: Inter, "Segoe UI", system-ui, sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

header.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand span { font-size: 1.12rem; letter-spacing: -0.02em; }
.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav-links a:hover { color: var(--blue); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--blue-dark);
  text-decoration: none;
}

.menu-btn {
  display: none;
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.hero-band {
  background: linear-gradient(120deg, #1d5ef0 0%, #287dfa 48%, #4aa3ff 100%);
  color: #fff;
  padding: 36px 0 88px;
  position: relative;
  overflow: hidden;
}

.hero-band::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -30px;
  width: 420px;
  height: 280px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 140'><path fill='white' fill-opacity='0.12' d='M230 70c-18-6-62-28-88-18l-42 16-70-8 8 14 58 2-28 22 16 6 40-18 36 20 18-8-24-22c28-2 62 8 82 14z'/></svg>") no-repeat center;
  background-size: contain;
  pointer-events: none;
}

.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
}

.hero-copy p {
  margin: 0 0 18px;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.9);
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.92);
}

.trust span { display: flex; align-items: center; gap: 6px; }

.search-wrap {
  margin-top: -64px;
  position: relative;
  z-index: 2;
}

.search-card {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 8px 18px 16px;
  position: relative;
}

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  padding: 14px 16px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.tab svg { width: 18px; height: 18px; }
.tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.panel {
  padding-top: 16px;
  display: block;
}
.panel.active {
  position: relative;
  visibility: visible;
  height: auto;
  overflow: visible;
  pointer-events: auto;
}
.panel[hidden] {
  display: block !important;
  position: absolute;
  left: 0;
  right: 0;
  visibility: hidden;
  height: 0 !important;
  overflow: hidden;
  padding: 0 !important;
  pointer-events: none;
}
.flight-full {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 8px 0 4px;
}
.flight-full p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}
.train-shell {
  background: #f7f9fc;
  border-radius: 12px;
}

.iframe-shell {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.iframe-shell iframe {
  border: 0;
  display: block;
  background: #fff;
}

.hotel-form {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 0.8fr 56px;
  gap: 0;
  border: 1px solid #d9e1ec;
  border-radius: 10px;
  overflow: hidden;
  min-height: 72px;
  background: #fff;
}

.hotel-form label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 10px 14px;
  border-right: 1px solid #eef2f7;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.hotel-form input,
.hotel-form select {
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  background: transparent;
  width: 100%;
  padding: 0;
}

.hotel-form button {
  border: 0;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-size: 1.3rem;
}

.hotel-form button:hover { background: var(--blue-dark); }

@media (max-width: 760px) {
  .hotel-form {
    grid-template-columns: 1fr 1fr;
  }
  .hotel-form label:first-child,
  .hotel-form button {
    grid-column: 1 / -1;
  }
  .hotel-form button { min-height: 48px; }
}

.flight-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--navy);
}

.flight-options .opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.flight-options .check {
  margin-left: auto;
  color: var(--text);
}

.flight-options input { accent-color: var(--blue); }

.flight-row {
  display: grid;
  grid-template-columns: 1.2fr 36px 1.2fr 1fr 1fr 0.85fr 0.9fr 56px;
  align-items: stretch;
  border: 1px solid #d9e1ec;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.flight-row.oneway {
  grid-template-columns: 1.2fr 36px 1.2fr 1fr 0.85fr 0.9fr 56px;
}

.flight-row label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 10px 12px;
  border-right: 1px solid #eef2f7;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.flight-row input,
.flight-row select,
.multi-actions select {
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  background: transparent;
  width: 100%;
}

.flight-row .swap {
  border: 0;
  background: #f4f8ff;
  color: var(--blue);
  font-size: 1.1rem;
  cursor: pointer;
  border-right: 1px solid #eef2f7;
}

.flight-row button[type="submit"] {
  border: 0;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
}

.flight-row button[type="submit"]:hover { background: var(--blue-dark); }
.flight-row button[type="submit"] svg { display: block; margin: 0 auto; }

.flight-legs { display: grid; gap: 10px; margin-bottom: 12px; }

.leg {
  display: grid;
  grid-template-columns: 28px 1.2fr 1.2fr 1fr 40px;
  border: 1px solid #d9e1ec;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.leg .n {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f8ff;
  color: var(--blue);
  font-weight: 800;
}

.leg label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 10px 12px;
  border-right: 1px solid #eef2f7;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.leg input {
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  width: 100%;
}

.leg .remove {
  border: 0;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.2rem;
}

.multi-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.multi-actions label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  border: 1px solid #d9e1ec;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}

.link-btn {
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 980px) {
  .flight-row {
    grid-template-columns: 1fr 36px 1fr;
  }
  .flight-row button[type="submit"] { grid-column: 1 / -1; min-height: 48px; }
  .leg { grid-template-columns: 28px 1fr 1fr; }
  .leg .remove { grid-column: 1 / -1; min-height: 36px; }
}

.promo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 22px 0 8px;
}

.promo {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(15, 41, 77, 0.04);
}

.promo h3 { margin: 0 0 6px; color: var(--navy); font-size: 1rem; }
.promo p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.section { padding: 48px 0; }
.section h2 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}
.section .sub { margin: 0 0 22px; color: var(--muted); }

.banners { display: grid; gap: 14px; }
.banner-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.banner-card h3 {
  margin: 0 0 10px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.dest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.dest {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  min-height: 230px;
  display: block;
  color: #fff;
  text-decoration: none;
}

.dest img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.dest:hover img { transform: scale(1.06); }
.dest:hover { text-decoration: none; }

.dest::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(10, 24, 48, 0.82));
}

.dest-body {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 1;
}

.dest-body small {
  display: block;
  color: #9ec8ff;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.dest-body strong {
  display: block;
  font-size: 1.2rem;
}

.steps, .why-grid {
  display: grid;
  gap: 14px;
}

.steps { grid-template-columns: repeat(4, 1fr); }
.why-grid { grid-template-columns: repeat(2, 1fr); }

.step, .why-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.step .num {
  color: var(--blue);
  font-weight: 800;
  font-size: 1.1rem;
}

.step h3, .why-card h3 {
  margin: 8px 0;
  color: var(--navy);
}

.cta {
  text-align: center;
  background: linear-gradient(120deg, #1d5ef0, #4aa3ff);
  color: #fff;
  border-radius: 18px;
  padding: 42px 22px;
}

.cta p { color: rgba(255, 255, 255, 0.9); }
.cta .btn { background: #fff; color: var(--blue); }
.cta .btn:hover { background: #eef5ff; }

footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 36px 0 20px;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

footer h3 { color: var(--navy); margin: 0 0 12px; font-size: 0.95rem; }
footer ul { margin: 0; padding: 0; list-style: none; }
footer li { margin: 0 0 8px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--blue); }

.copy {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 0.84rem;
}

.legal { padding: 40px 0 80px; max-width: 760px; }
.legal h1 { color: var(--navy); margin-top: 0; }
.legal p, .legal li { color: var(--text); }

@media (max-width: 980px) {
  .dest-grid, .steps, .promo-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    right: 16px;
    top: 64px;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    min-width: 190px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .dest-grid, .steps, .why-grid, .footer-grid, .promo-row { grid-template-columns: 1fr; }
  .hero-band { padding-bottom: 76px; }
}
