:root {
  --brand: #cb0b43;
  --brand-dark: #9d0834;
  --ink: #141414;
  --muted: #5c5c5c;
  --line: #e6e6e6;
  --bg: #f5f5f5;
  --card: #ffffff;
  --footer: #1a1a1a;
  --green: #1f8a45;
  --shadow: 0 18px 50px rgba(20, 20, 20, 0.14);
  --radius: 18px;
  --wrap: 1120px;
  --header: 72px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin-inline: auto;
}
.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -40px;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--brand);
  color: #fff;
}
.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.brand img {
  width: 38px;
  height: 38px;
  filter: brightness(0) invert(1);
}
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name strong { font-size: 1.15rem; letter-spacing: -0.03em; }
.brand-name small { font-size: 0.75rem; opacity: 0.85; font-weight: 600; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}
.nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.16); }
.lang-btn, .menu-btn {
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  min-width: 46px;
  height: 38px;
  font-weight: 800;
}
.menu-btn { display: none; padding-inline: 14px; }
.header-inner :focus-visible { outline-color: #fff; }

.hero {
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(203, 11, 67, 0.45), transparent 60%),
    linear-gradient(160deg, #2a0c16 0%, #1a1a1a 58%, #111 100%);
  color: #fff;
  padding: 42px 0 36px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset-inline-end: -80px;
  bottom: -40px;
  width: 520px;
  height: 220px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 180'%3E%3Cpath d='M20 130h70l18-38h210l24 28h90l18-18h40' fill='none' stroke='white' stroke-width='8' stroke-linecap='round'/%3E%3Ccircle cx='120' cy='132' r='18' fill='none' stroke='white' stroke-width='8'/%3E%3Ccircle cx='390' cy='132' r='18' fill='none' stroke='white' stroke-width='8'/%3E%3Cpath d='M40 92h46l22-28h150' fill='none' stroke='white' stroke-width='8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0.14;
  pointer-events: none;
}
.eyebrow {
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: #ffd0dc;
}
.hero h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.15;
  font-weight: 800;
}
.lede {
  max-width: 46rem;
  margin: 14px 0 0;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.86);
}

.search-card {
  margin-top: 28px;
  background: #f3f3f3;
  color: var(--ink);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}
.search-note {
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.92rem;
}
.search-grid {
  display: grid;
  grid-template-columns: 1.25fr auto 1.25fr 0.9fr 0.7fr auto;
  gap: 10px;
  align-items: end;
}
.field { position: relative; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.82rem; font-weight: 800; color: #333; }
.field input, .field select {
  width: 100%;
  height: 52px;
  border: 1px solid #dedede;
  border-radius: 12px;
  background: #fff;
  padding: 0 14px;
}
.field input:focus, .field select:focus { border-color: var(--brand); outline: none; }
.date-field input { direction: ltr; text-align: start; }
.swap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  margin-bottom: 4px;
  font-size: 1.2rem;
}
.swap:hover { border-color: var(--brand); color: var(--brand); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 12px;
  border: 0;
  text-decoration: none;
  font-weight: 800;
}
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-line {
  background: #fff;
  color: var(--ink);
  border: 1px solid #ddd;
}
.form-error {
  min-height: 1.2em;
  margin: 8px 0 0;
  color: var(--brand-dark);
  font-weight: 700;
}
.suggest {
  position: absolute;
  z-index: 5;
  inset-inline: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  max-height: 280px;
  overflow: auto;
}
.suggest button {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: start;
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 700;
}
.suggest small { color: #666; font-size: 0.78rem; font-weight: 600; }
.suggest button[aria-selected="true"], .suggest button:hover { background: #fde8ee; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.chips button, .station-pill {
  border: 0;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  color: #333;
}
.chips button:hover, .station-pill:hover { color: var(--brand); }

.section { padding: 64px 0; }
.section h2 { margin: 0 0 8px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-lead { margin: 0 0 24px; color: var(--muted); max-width: 42rem; }
.muted { color: var(--muted); }
.bg { background: var(--bg); }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.feature, .step, .faq details, .route-card, .trip, .panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.feature, .step, .panel { padding: 20px; }
.feature svg, .step svg { color: var(--brand); }
.feature h3, .step h3, .panel h3 { margin: 10px 0 6px; font-size: 1.08rem; }
.feature p, .step p, .panel p { margin: 0; color: var(--muted); }

.steps, .split, .route-grid, .panels {
  display: grid;
  gap: 16px;
}
.steps { grid-template-columns: repeat(3, 1fr); }
.step-no {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fde8ee;
  color: var(--brand);
  font-weight: 800;
}
.route-grid { grid-template-columns: repeat(3, 1fr); }
.route-card {
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
}
.route-card:hover { border-color: var(--brand); }
.route-card strong { display: block; }
.route-card span { color: var(--muted); font-weight: 700; }
.arrow { color: var(--brand); font-size: 1.3rem; display: inline-block; }
[dir="ltr"] .arrow { transform: scaleX(-1); }

.band {
  background: var(--ink);
  color: #fff;
  border-radius: 28px;
  padding: 36px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
}
.band .brand-mark { width: 84px; height: 84px; background: #fff; border-radius: 20px; padding: 8px; }
.band h2 { margin: 0 0 6px; }
.band p { margin: 0; color: #d0d0d0; }
.store {
  display: inline-flex;
  line-height: 0;
  background: transparent;
  text-decoration: none;
}
.play-badge { height: 64px; width: auto; display: block; }

.stations { display: flex; flex-wrap: wrap; gap: 8px; }
.station-pill { border: 1px solid var(--line); text-decoration: none; }

.faq { display: grid; gap: 10px; }
.faq details { padding: 4px 16px; }
.faq summary { cursor: pointer; font-weight: 800; padding: 12px 0; }
.faq p { margin: 0 0 14px; color: var(--muted); }

.page-hero { background: var(--brand); color: #fff; padding: 48px 0 42px; }
.page-hero h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); }
.page-hero p { max-width: 40rem; margin: 10px 0 0; font-size: 1.08rem; }

.panels { grid-template-columns: repeat(3, 1fr); }
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}
.phone { font-size: 1.8rem; font-weight: 800; color: var(--brand); text-decoration: none; }

.results-head { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin-bottom: 14px; }
.trips { display: grid; gap: 12px; }
.trip {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 16px;
  padding: 18px;
  align-items: center;
}
.trip time { font-size: 1.5rem; font-weight: 800; display: block; }
.trip .sub { color: var(--muted); font-weight: 700; }
.line {
  display: flex;
  align-items: center;
  gap: 10px;
}
.line i {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--green));
  border-radius: 99px;
}
.price { font-size: 1.35rem; font-weight: 800; text-align: end; }
.trip-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.live-pill {
  display: inline-block;
  background: #e8f6ee;
  color: var(--green);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.78rem;
  font-weight: 800;
}
.empty {
  background: #fff;
  border: 1px dashed #ccc;
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.empty h3 { margin: 0 0 8px; font-size: 1.4rem; }

.site-footer { background: var(--footer); color: #ececec; padding: 42px 0 18px; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 24px;
}
.site-footer a { color: #ececec; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h3 { margin: 0 0 10px; font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.legal {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid #333;
  color: #bdbdbd;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
}
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.foot-brand img { width: 32px; height: 32px; filter: brightness(0) invert(1); }

@media (max-width: 980px) {
  .search-grid, .features, .steps, .route-grid, .panels, .foot-grid, .contact-grid, .band, .trip {
    grid-template-columns: 1fr;
  }
  .band { text-align: start; }
  .swap { justify-self: center; }
  .price, .trip-actions { text-align: start; align-items: flex-start; }
  .menu-btn { display: inline-flex; align-items: center; margin-inline-start: auto; }
  .nav {
    display: none;
    position: absolute;
    inset-inline: 16px;
    top: calc(var(--header) - 6px);
    background: #fff;
    color: var(--ink);
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    border-radius: 16px;
    box-shadow: var(--shadow);
  }
  .nav a { color: var(--ink); }
  .site-header.is-open .nav { display: flex; }
  .lang-btn { margin-inline-start: 0; }
  .legal { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
