/* ===================== NAV ===================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(248,250,252,.97);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--border);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--nav-py) var(--nav-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__link {
  color: var(--text-body);
  font-size: 15px;
  font-weight: 500;
  transition: color .2s ease;
}
.nav__link:hover { color: var(--accent); }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
}

.nav__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}

.nav__mobile {
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.nav__mobile-inner {
  padding: 14px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav__mlink {
  color: var(--text-body);
  font-size: 17px;
  font-weight: 500;
  padding: 13px 0;
  border-bottom: 1px solid var(--bg-2);
  display: block;
}

.nav__mcta {
  display: block;
  text-align: center;
  color: #fff;
  background: var(--accent);
  font-size: 16px;
  font-weight: 600;
  padding: 15px 0;
  border-radius: var(--r-btn);
  margin-top: 14px;
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__mobile { display: block; }
}

/* ===================== HERO ===================== */
.hero {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero__inner {
  padding: 150px 24px 88px;
}

.hero__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 52px;
}

.hero__copy {
  flex: 1 1 440px;
  min-width: 300px;
}

.hero__badge {
  margin-bottom: 26px;
}

.hero__h1 {
  font-family: var(--font-tight);
  font-weight: 700;
  color: var(--text);
  font-size: clamp(50px, 6vw, 78px);
  line-height: 1.04;
  letter-spacing: -.03em;
  margin-bottom: 24px;
  text-wrap: balance;
}

.hero__sub {
  color: #475569;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.5;
  margin-bottom: 36px;
  max-width: 500px;
}

.hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero__trust {
  color: var(--text-dark-muted);
  font-size: 14px;
}

/* --- Boarding pass --- */
.hero__pass-wrap {
  flex: 1 1 360px;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.pass {
  animation: cjPass 7s ease-in-out infinite;
}

.pass__card {
  display: flex;
  width: min(430px, 86vw);
  background: #fff;
  border-radius: var(--r-card-l);
  box-shadow: var(--shadow-pass);
  position: relative;
}

.pass__main { flex: 1; min-width: 0; }

.pass__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--accent);
  padding: 13px 18px;
  border-radius: var(--r-card-l) 0 0 0;
}

.pass__header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: var(--font-tight);
  font-weight: 800;
  font-style: italic;
  font-size: 17px;
  letter-spacing: -.3px;
}

.pass__boarding {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: rgba(255,255,255,.85);
}

.pass__body { padding: 20px 20px 22px; }

.pass__route {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.pass__loc-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  color: var(--text-dark-muted);
  margin-bottom: 4px;
}

.pass__loc-from {
  font-family: var(--font-tight);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -1px;
  color: #0F0F1E;
  line-height: 1;
}

.pass__loc-to {
  font-family: var(--font-tight);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -1px;
  color: var(--accent);
  line-height: 1;
  text-align: right;
}

.pass__divider { height: 1px; background: #E5E7EB; margin: 18px 0; }

.pass__meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.pass__meta-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--text-dark-muted);
  margin-bottom: 4px;
}

.pass__meta-val {
  font-size: 13px;
  font-weight: 600;
  color: #0F0F1E;
}

.pass__meta-val--accent { color: var(--accent); }

.pass__stub {
  width: 97px;
  flex: none;
  border-left: 2px dashed #E5E7EB;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.pass__stub-id {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .2em;
  color: var(--text-dark-muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.pass__barcode {
  width: 50px;
  height: 54px;
  background: repeating-linear-gradient(
    90deg,
    #0F0F1E 0 2px, #fff 2px 4px,
    #0F0F1E 4px 5px, #fff 5px 8px,
    #0F0F1E 8px 9px, #fff 9px 12px
  );
}

.pass__ok {
  font-family: var(--font-tight);
  font-weight: 800;
  font-size: 14px;
  color: var(--accent);
}

/* --- Departure board --- */
.board {
  margin-top: 60px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg);
  overflow: hidden;
}

.board__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.board__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: #64748B;
}

.board__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--success);
}

.board__live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: cjBlink 1.6s infinite;
}

.board__scroll { overflow-x: auto; }
.board__table  { min-width: 640px; }

.board__cols {
  display: grid;
  grid-template-columns: 78px 1.5fr 1.3fr 84px 128px;
  gap: 16px;
  padding: 11px 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--text-dark-muted);
  border-bottom: 1px solid var(--border);
}

.board__cols span:last-child { text-align: right; }

.board__row {
  display: grid;
  grid-template-columns: 78px 1.5fr 1.3fr 84px 128px;
  gap: 16px;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  animation: cjReveal .5s ease both;
}
.board__row:last-child { border-bottom: none; }

.board__row--d1 { animation-delay: .05s; }
.board__row--d2 { animation-delay: .15s; }
.board__row--d3 { animation-delay: .25s; }
.board__row--d4 { animation-delay: .35s; }

.board__flight {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-2);
}

.board__dest {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}

.board__dest-flag { font-size: 18px; }

.board__bank {
  color: var(--text-muted);
  font-size: 14px;
}

.board__term {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 12.5px;
}

.board__status {
  text-align: right;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.board__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  flex: none;
}

.board__status-text {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--success);
}

@media (max-width: 640px) {
  .hero__inner { padding: 120px 24px 64px; }
  .hero__grid  { gap: 36px; }
  .hero__copy  { text-align: center; }
  .hero__sub   { margin-left: auto; margin-right: auto; }
  .hero__btns  { flex-direction: column; align-items: stretch; }
  .hero__btns .cj-btn { width: 100%; }

  /* Boarding pass: drop the constant -3deg tilt, keep the float — the
     tilt crowded the card against the edge on narrow viewports */
  .pass { animation-name: cjPassMobile; }

  /* Departure board: 2-line cards instead of a horizontally-scrolling table */
  .board__scroll { overflow-x: visible; }
  .board__table  { min-width: 0; }
  .board__cols   { display: none; }

  .board__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    padding: 13px 16px;
  }
  .board__dest   { order: 1; flex: 999 1 60%; }
  .board__status { order: 2; flex: 0 0 auto; }
  .board__flight { order: 3; font-size: 11px; opacity: .6; }
  .board__bank   { order: 4; font-size: 12px; }
  .board__bank::after { content: '·'; margin: 0 6px; opacity: .5; }
  .board__term   { order: 5; font-size: 12px; }
}

/* ===================== HOW IT WORKS ===================== */
.steps {
  background: var(--bg-2);
  padding: var(--section-py) 0;
}

.steps__title { margin-bottom: 28px; }
.steps__divider { margin-bottom: 48px; }

.steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.steps__item {
  padding: 0 32px;
  border-left: 1px solid var(--border);
}
.steps__item:first-child {
  border-left: none;
  padding-left: 0;
}

.steps__num {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: 24px;
  font-family: var(--font-mono);
}

.steps__icon { display: block; }

.steps__h {
  font-weight: 600;
  font-size: 20px;
  color: var(--text);
  margin: 20px 0 8px;
}

.steps__p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  /* Horizontal scroll-snap carousel instead of a tall vertical stack */
  .steps__grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    margin: 0 -24px;
    padding: 4px 24px 10px;
  }
  .steps__item {
    flex: 0 0 78%;
    scroll-snap-align: start;
    border: 1px solid var(--border) !important;
    border-radius: var(--r-card);
    background: var(--bg);
    padding: 24px !important;
    margin-bottom: 0;
  }
}

/* ===================== PRICING ===================== */
.pricing {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--section-py-sm) 0;
}

.pricing__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}

.pricing__card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: var(--card-p);
}

.pricing__card--featured {
  border: 2px solid var(--accent);
  border-radius: var(--r-card-l);
  position: relative;
}

.pricing__popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
}

.pricing__h {
  font-family: var(--font-tight);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 4px;
  color: var(--text);
}

.pricing__sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.pricing__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
}

.pricing__price-from {
  color: var(--text-muted);
  font-size: 15px;
}

.pricing__price-val {
  font-family: var(--font-tight);
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -1px;
  color: var(--text);
}

.pricing__features {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 13px;
  margin-bottom: 28px;
}

.pricing__feature {
  display: flex;
  gap: 10px;
  color: var(--text-body);
  font-size: 15px;
}

.pricing__check {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 760px) {
  /* Horizontal scroll-snap carousel instead of a tall vertical stack */
  .pricing__grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    margin: 0 -24px;
    padding: 16px 24px 10px;
  }
  .pricing__card {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
}

/* ===================== COUNTRIES ===================== */
.countries {
  background: var(--bg-2);
  padding: var(--section-py) 0;
}

.countries__label {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-family: var(--font-mono);
}

.countries__title { margin-bottom: 40px; }

.countries__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.countries__card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: var(--card-p);
}

.countries__card--featured {
  border-color: var(--accent);
}

.countries__popular {
  position: absolute;
  top: 20px;
  right: 20px;
}

.countries__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.countries__flag { font-size: 32px; line-height: 1; }

.countries__name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.countries__divider { height: 1px; background: var(--border); margin: 16px 0; }

.countries__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}

.countries__stat-label {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 5px;
  font-family: var(--font-mono);
}

.countries__stat-val {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.countries__stat-val--bold { font-weight: 600; }

.countries__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  margin-top: 22px;
}

/* ===================== REVIEWS ===================== */
.reviews {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: var(--section-py-sm) 0;
}

.reviews__head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.reviews__title {
  font-family: var(--font-tight);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 14px;
}

.reviews__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 16px;
}

.reviews__stars { font-size: 20px; letter-spacing: 2px; }

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}

.review {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 30px;
}

.review__author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.review__name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 2px;
}

.review__city {
  color: #64748B;
  font-size: 13px;
}

.review__stars {
  font-size: 15px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.review__text {
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.review__date {
  color: #64748B;
  font-size: 13px;
}

@media (max-width: 760px) {
  /* Horizontal scroll-snap carousel instead of a tall vertical stack */
  .reviews__grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    margin: 0 -24px;
    padding: 4px 24px 10px;
  }
  .review {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
}

/* ===================== GUARANTEE ===================== */
.guarantee {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: var(--section-py-sm) 0;
}

.guarantee__inner {
  text-align: center;
}

.guarantee__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 26px;
  border-radius: var(--r-icon);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.guarantee__title {
  font-family: var(--font-tight);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}

.guarantee__text {
  color: #475569;
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.55;
  margin-bottom: 30px;
}

.guarantee__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.guarantee__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: #1e3a8a;
}

.guarantee__badge-check { color: var(--accent); }

/* ===================== FAQ ===================== */
.faq {
  background: var(--bg-2);
  padding: var(--section-py-sm) 0;
}

.faq__title {
  text-align: center;
  margin-bottom: 40px;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s ease;
}

.faq__item.is-open { border-color: var(--accent); }

.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  padding: 22px 24px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-sans);
}

.faq__icon {
  flex: none;
  font-size: 24px;
  color: var(--accent);
  transition: transform .3s ease;
  line-height: 1;
}

.faq__item.is-open .faq__icon { transform: rotate(45deg); }

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1);
}

.faq__a-inner {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.6;
}

/* ===================== CTA ===================== */
.cta-section {
  background: var(--bg);
  padding: 96px 0;
}

.cta-section__inner { text-align: center; }

.cta-section__title {
  font-family: var(--font-tight);
  font-weight: 700;
  color: var(--text);
  font-size: clamp(38px, 5vw, 60px);
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.cta-section__sub {
  color: var(--text-subtle);
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 36px;
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 48px;
}

.footer__brand-desc {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 14px 0 18px;
  max-width: 240px;
}

.footer__tg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14.5px;
}

.footer__col-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer__link {
  color: var(--text-body);
  font-size: 14.5px;
  transition: color .2s ease;
}
.footer__link:hover { color: var(--accent); }

.footer__contact {
  color: var(--text-body);
  font-size: 14.5px;
}

.footer__muted {
  color: var(--text-dark-muted);
  font-size: 14.5px;
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  color: var(--text-subtle);
  font-size: 13.5px;
}

.footer__legal {
  color: var(--text-subtle);
  font-size: 13.5px;
  transition: color .2s ease;
}
.footer__legal:hover { color: var(--text); }

@media (max-width: 640px) {
  /* 5 stacked blocks in one column made the footer very tall.
     Brand stays full-width on top, the other 4 pair up 2×2. */
  .footer { padding: 44px 0 24px; }
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
    margin-bottom: 32px;
  }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
  .footer__col-title { margin-bottom: 12px; }
  .footer__links { gap: 9px; }
}
