/* ==========================================================================
   Trazo — Strona główna (flight-only)
   Mobile-first · tokeny w CSS variables · komponenty BEM-owe
   Zależności: Manrope (Google Fonts) + lucide (ikony). Nic więcej.
   Kolory: Lazur = akcent (CTA/ikony), Granat = baza/linki. Nowa paleta.
   ========================================================================== */

/* ---------- Tokeny ---------- */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--sky); text-decoration: none; }
a:hover { color: var(--sky-hover); }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; padding: 0; }
input { font: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
.tnum { font-variant-numeric: tabular-nums; }
.lucide { width: 1em; height: 1em; stroke-width: 2; display: inline-block; vertical-align: -0.14em; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: 40px; }
.section--soft { background: var(--bg-softer); }
.section__head { margin-bottom: 20px; }
.section__title {
  font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15;
}
.section__sub { margin-top: 6px; color: var(--muted); font-size: 15px; }
.section__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 14px; color: var(--accent); margin-top: 12px;
}
.section__link:hover { color: var(--accent-hover); gap: 9px; }

/* ---------- Buttony ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--r-md); font-weight: 800; font-size: 15px; line-height: 1;
  padding: 13px 22px; white-space: nowrap; transition: background .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--block { width: 100%; }
.btn--ghost { border: 1.5px solid var(--accent); color: var(--accent); background: #fff; }
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent); }

/* eyebrow / bejdże */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
}
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 9px; border-radius: var(--r-sm); white-space: nowrap;
}
.badge--deal { color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-border); }
.badge--sky { color: var(--sky-hover); background: var(--sky-soft); border: 1px solid var(--sky-border); }
.price { font-weight: 800; color: var(--green); }
.price small { font-weight: 700; font-size: .72em; color: var(--muted-2); }

/* =========================================================================
   HEADER
   ========================================================================= */
/* ЕДИНЫЙ ХЕДЕР: логотип, меню, действия, языки и бургер стилизуются только в
   styles.css (общий header.php на всех страницах). Здесь ничего не переопределяем. */

/* mobilne menu (rozwijane) */
.mobile-menu {
  display: none; border-top: 1px solid var(--line); background: #fff;
  padding: 8px var(--pad) 18px;
}
.mobile-menu.is-open { display: block; }
.mobile-menu__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 2px; font-weight: 700; font-size: 17px; color: var(--ink);
  border-bottom: 1px solid var(--line-2);
}
.mobile-menu__link .lucide { color: var(--faint); }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { background: var(--bg-softer); border-bottom: 1px solid var(--line); }
.hero__inner { padding-block: 30px 34px; }
.hero__head { max-width: 720px; margin-bottom: 22px; }
.hero__title {
  font-size: 32px; line-height: 1.08; font-weight: 800; letter-spacing: -.025em;
}
.hero__title em { font-style: normal; color: var(--accent); }
.hero__sub { margin-top: 12px; font-size: 17px; line-height: 1.5; color: var(--muted); }

/* kontener wyszukiwarki (White Label) */
.hero-search {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-2xl); box-shadow: var(--shadow-widget);
  padding: 18px; position: relative;
}
.hero-search__label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 12px;
}
.hero-search__label .lucide { color: var(--accent); }
/* #tpwl-search: tu wstrzykiwana jest forma widżetu Travelpayouts White Label. */
#tpwl-search { display: block; }
/* stan pusty (finalna wersja bez imitacji) — znika, gdy widżet się załaduje */
#tpwl-search:empty {
  min-height: 118px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px;
}
#tpwl-search:empty::after {
  content: "#tpwl-search — tu ładuje się formularz widżetu White Label";
  color: var(--faint); font-family: ui-monospace, SFMono-Regular, monospace; font-size: 12px;
}

.tpwl-mock { display: flex; flex-direction: column; gap: 10px; }
.tpwl-mock__tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.tpwl-mock__tab {
  display: flex; align-items: center; gap: 7px; padding: 4px 1px 12px;
  font-weight: 700; font-size: 14px; color: var(--muted); position: relative;
}
.tpwl-mock__tab.is-active { color: var(--ink); }
.tpwl-mock__tab.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 3px; border-radius: 3px; background: var(--accent);
}
.tpwl-mock__fields { display: flex; flex-direction: column; gap: 10px; }
.tpwl-field {
  border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  padding: 9px 15px; display: flex; flex-direction: column; gap: 2px; min-width: 0; text-align: left;
}
.tpwl-field__label {
  font-size: 11px; font-weight: 700; color: var(--faint);
  text-transform: uppercase; letter-spacing: .05em;
}
.tpwl-field__value { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpwl-mock__go {
  background: var(--accent); color: #fff; border-radius: var(--r-md);
  padding: 15px; font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 2px;
}
.tpwl-mock__go:hover { background: var(--accent-hover); }
.tpwl-mock__note {
  margin-top: 4px; font-size: 11px; color: var(--faint); font-family: ui-monospace, SFMono-Regular, monospace;
  display: flex; align-items: center; gap: 6px;
}

/* pasek zaufania */
.trust-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--muted);
}
.trust-strip li { display: flex; align-items: center; gap: 7px; }
.trust-strip .lucide { color: var(--green); }
.trust-strip .lucide-star { color: var(--accent); }
.trust-strip .lucide-plane { color: var(--sky); }
.trust-strip .sep { width: 1px; height: 15px; background: var(--line-strong); padding: 0; }

/* =========================================================================
   OKAZJE DNIA — karty (.deal-card) — stan z foto i bez foto
   ========================================================================= */
.deals-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
.deal-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: border-color .15s, box-shadow .15s; color: var(--ink);
}
.deal-card:hover { border-color: var(--accent); box-shadow: var(--shadow-card); color: var(--ink); }
.deal-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--bg-soft); }
.deal-card__media image-slot { display: block; width: 100%; height: 100%; }
.deal-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.deal-card__badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.deal-card__price-tag {
  position: absolute; bottom: 10px; left: 10px; z-index: 2;
  background: rgba(255,255,255,.95); border-radius: var(--r-sm);
  padding: 5px 10px; font-size: 14px; box-shadow: var(--shadow-card);
}
/* placeholder bez foto — stylowa zaślepka z nazwą miasta + ikoną */
.deal-card__ph {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; text-align: center;
  background:
    radial-gradient(120% 90% at 50% 0%, var(--sky-soft) 0%, transparent 60%),
    linear-gradient(160deg, #f3f6fa 0%, #eaeef3 100%);
  color: var(--sky-hover);
}
.deal-card__ph .lucide { font-size: 34px; opacity: .55; }
.deal-card__ph-city { font-weight: 800; font-size: 18px; letter-spacing: -.01em; color: var(--ink); }
.deal-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.deal-card__route { font-weight: 800; font-size: 17px; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.deal-card__route .arr { color: var(--sky); }
.deal-card__meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted-2); }
.deal-card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.deal-card__foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: 4px; }
.deal-card__price { font-size: 18px; }
.deal-card__cta { font-size: 13px; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 5px; }
.deal-card--nophoto .deal-card__media { background: transparent; }

/* =========================================================================
   POPULARNE KIERUNKI — .dest-card
   ========================================================================= */
.dest-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.dest-card {
  display: flex; align-items: center; gap: 13px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.dest-card:hover { border-color: var(--sky); box-shadow: var(--shadow-card); color: var(--ink); }
.dest-card__iata {
  flex: none; width: 52px; height: 52px; border-radius: var(--r-md);
  background: var(--sky-soft); color: var(--sky-hover);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; letter-spacing: .02em;
}
.dest-card__body { min-width: 0; flex: 1; }
.dest-card__name { display: block; font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dest-card__meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-size: 13px; }
.dest-card__price { color: var(--green); font-weight: 800; }
.dest-card__direct { display: inline-flex; align-items: center; gap: 4px; color: var(--sky); font-weight: 700; }

/* =========================================================================
   LOTY Z TWOJEGO MIASTA — huby wylotu
   ========================================================================= */
.hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.hub-link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1.5px solid var(--chip-border); border-radius: var(--r-md);
  padding: 13px 16px; font-weight: 700; font-size: 15px; color: var(--ink);
  transition: border-color .15s, background .15s;
}
.hub-link:hover { border-color: var(--ink); color: var(--ink); }
.hub-link__code { font-size: 12px; font-weight: 800; color: var(--faint); font-family: ui-monospace, SFMono-Regular, monospace; }

/* =========================================================================
   POPULARNE LINIE LOTNICZE — .airline-row
   ========================================================================= */
.airline-list { display: flex; flex-direction: column; gap: 10px; }
.airline-row {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px 16px; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.airline-row:hover { border-color: var(--accent); box-shadow: var(--shadow-card); color: var(--ink); }
.airline-row__logo {
  flex: none; width: 54px; height: 40px; border-radius: var(--r-sm);
  background: var(--bg-soft); border: 1px dashed var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--faint); font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; font-family: ui-monospace, SFMono-Regular, monospace; text-align: center;
}
.airline-row__body { flex: 1; min-width: 0; }
.airline-row__name { display: block; font-weight: 800; font-size: 16px; }
.airline-row__desc { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.airline-row__cta { flex: none; color: var(--accent); font-size: 20px; }

/* =========================================================================
   DLACZEGO TRAZO
   ========================================================================= */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.why-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px;
}
.why-item__icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 13px;
}
.why-item__title { font-size: 17px; font-weight: 800; margin-bottom: 5px; }
.why-item__desc { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* =========================================================================
   Z MAGAZYNU — artykuły
   ========================================================================= */
.mag-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.mag-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.mag-card:hover { border-color: var(--sky); box-shadow: var(--shadow-card); color: var(--ink); }
.mag-card__media { aspect-ratio: 16 / 9; background: var(--bg-soft); position: relative; }
.mag-card__media image-slot { display: block; width: 100%; height: 100%; }
.mag-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mag-card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.mag-card__cat { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--sky); }
.mag-card__title { font-size: 17px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.mag-card__date { font-size: 13px; color: var(--muted-2); }

/* =========================================================================
   SEO TEXT
   ========================================================================= */
.seo { background: var(--bg-softer); }
.seo__inner { max-width: 820px; }
.seo__title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.seo__body p { color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 14px; }
.seo__body p strong { color: var(--ink); }
.seo__list { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.seo__list li { display: flex; gap: 10px; font-size: 15px; color: var(--ink); }
.seo__list .lucide { color: var(--green); margin-top: 3px; }

/* =========================================================================
   NEWSLETTER
   ========================================================================= */
.newsletter { background: var(--ink); color: #fff; }
.newsletter__inner {
  display: flex; flex-direction: column; gap: 20px;
  padding-block: 44px;
}
.newsletter__title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.newsletter__sub { margin-top: 8px; color: var(--dark-2); font-size: 15px; line-height: 1.55; max-width: 460px; }
.newsletter__form { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 460px; }
.newsletter__input {
  flex: 1; border: 1.5px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06);
  color: #fff; border-radius: var(--r-md); padding: 15px 16px; font-size: 15px;
}
.newsletter__input::placeholder { color: var(--dark-2); }
.newsletter__input:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.1); }
.newsletter__note { font-size: 12px; color: var(--dark-3); }

/* =========================================================================
   FOOTER (mega)
   ========================================================================= */
.footer { background: var(--ink); color: #fff; border-top: 1px solid var(--dark-line); }
.footer__top {
  display: grid; grid-template-columns: 1fr; gap: 30px;
  padding-block: 44px 30px;
}
.footer__brand-col { max-width: 300px; }
.footer__brand .brand__name, .footer__brand { color: #fff; }
.footer__about { margin-top: 14px; font-size: 14px; line-height: 1.6; color: var(--dark-2); }
.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
.footer__col-title {
  font-weight: 800; font-size: 12px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--dark-3); margin-bottom: 14px;
}
.footer__col a { display: block; font-size: 14px; color: #cdd5dd; padding: 5px 0; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  display: flex; flex-direction: column; gap: 18px;
  padding-block: 22px 30px; border-top: 1px solid var(--dark-line);
}
.footer__disc { font-size: 13px; color: var(--dark-3); line-height: 1.55; max-width: 640px; }
.footer__lang { display: flex; align-items: center; gap: 10px; }
.footer__lang .lucide { color: var(--dark-2); }
.footer .lang { border-color: rgba(255,255,255,.2); }
.footer .lang__btn { background: transparent; color: var(--dark-2); }
.footer .lang__btn.is-active { background: var(--accent); color: #fff; }

/* =========================================================================
   Pływający wpis AI (dyskretny)
   ========================================================================= */
.ai-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 70;
  height: 52px; padding: 0 20px; border-radius: var(--r-pill);
  background: var(--accent); color: #fff; display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 15px; box-shadow: var(--shadow-pop);
}
.ai-fab:hover { background: var(--accent-hover); color: #fff; }
.ai-fab .lucide { font-size: 20px; }
.ai-fab__label { display: none; }

/* =========================================================================
   RESPONSYWNOŚĆ
   ========================================================================= */
@media (min-width: 560px) {
  .deals-grid { grid-template-columns: repeat(2, 1fr); }
  .hub-grid { grid-template-columns: repeat(3, 1fr); }
  .ai-fab__label { display: inline; }
}

@media (min-width: 760px) {
  .section { padding-block: 52px; }
  .section__head { display: flex; align-items: flex-end; justify-content: space-between; }
  .section__link { margin-top: 0; }
  .section__title { font-size: 28px; }
  .hero__inner { padding-block: 44px 48px; }
  .hero__title { font-size: 44px; }
  .hero__sub { font-size: 18px; }
  .hero-search { padding: 22px; }
  .tpwl-mock__fields { flex-direction: row; align-items: stretch; }
  .tpwl-field { flex: 1.3; }
  .tpwl-field--date, .tpwl-field--pax { flex: 1; }
  .tpwl-mock__go { margin-top: 0; padding: 0 30px; }
  .dest-grid { grid-template-columns: repeat(3, 1fr); }
  .hub-grid { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .mag-grid { grid-template-columns: repeat(3, 1fr); }
  .newsletter__inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer__top { grid-template-columns: 1.4fr 3fr; }
  .footer__cols { grid-template-columns: repeat(4, 1fr); }
  .footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 1000px) {
  .nav { display: flex; }
  .ai-link { display: inline-flex; }
  .burger { display: none; }
  .hero__title { font-size: 50px; }
  .deals-grid { grid-template-columns: repeat(4, 1fr); }
  .dest-grid { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .airline-list { display: grid; grid-template-columns: repeat(2, 1fr); }
  .ai-fab { right: 24px; bottom: 24px; }
}


/* =========================================================================
   LANDING KIERUNKU (/loty/{miasto}) — moduły dodatkowe
   ========================================================================= */

/* ---------- Okruszki (breadcrumbs) ---------- */
.hub-link .hub-link__code { white-space: nowrap; }

/* ---------- Hero kierunku ---------- */
.dhero { position: relative; background: var(--bg-softer); border-bottom: 1px solid var(--line); overflow: hidden; }
.dhero--photo { background: #0a1a2e; }
.dhero--photo .dhero__bg { display: block; position: absolute; inset: 0; z-index: 0; }
.dhero--photo .dhero__bg img { width: 100%; height: 100%; object-fit: cover; }
.dhero--photo::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8,20,38,.88), rgba(8,20,38,.55) 55%, rgba(8,20,38,.18)); }
.dhero--photo .dhero__inner { position: relative; z-index: 2; }
.dhero--photo .crumbs a, .dhero--photo .crumbs .current, .dhero--photo .crumbs span { color: rgba(255,255,255,.85); }
.dhero--photo .dhero__title { color: #fff; }
.dhero--photo .dhero__title em { color: #16B6E0; }
.dhero--photo .dhero__sub { color: rgba(255,255,255,.92); }
.dhero__bg { display: none; }
.dhero__bg img { width: 100%; height: 100%; object-fit: cover; }
.dhero__ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--faint); background: repeating-linear-gradient(45deg, var(--bg-soft), var(--bg-soft) 14px, var(--bg-softer) 14px, var(--bg-softer) 28px); font-size: 13px; font-weight: 700; }
.dhero__ph .lucide { width: 30px; height: 30px; opacity: .6; }
.dhero__inner { position: relative; z-index: 2; padding-block: 30px 34px; }
.dhero__head { max-width: 760px; }
.dhero__title { font-size: 32px; line-height: 1.08; font-weight: 800; letter-spacing: -.025em; }
.dhero__title em { font-style: normal; color: var(--accent); }
.dhero__sub { margin-top: 12px; font-size: 17px; line-height: 1.5; color: var(--muted); max-width: 640px; }

/* fakty-chipy */
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.fact {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 8px 14px; font-size: 14px; font-weight: 700; color: var(--ink); box-shadow: var(--shadow-card);
}
.fact .lucide { color: var(--sky); font-size: 16px; }
.fact--price { border-color: var(--green-soft); background: var(--green-soft); }
.fact--price .fact__big { color: var(--green); font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.fact--price .lucide { color: var(--green); }
.fact__lbl { color: var(--muted-2); font-weight: 600; }

/* kontener wyszukiwarki w hero landingu — reużywa .hero-search */
.dhero .hero-search { margin-top: 22px; max-width: 900px; }

/* ---------- Kiedy najtaniej — ceny wg miesięcy ---------- */
.months { position: relative; }
.months__scroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(96px, 1fr);
  gap: 10px; overflow-x: auto; scroll-snap-type: x proximity;
  padding-bottom: 6px; margin: 0 calc(var(--pad) * -1); padding-inline: var(--pad);
  scrollbar-width: thin;
}
.month {
  scroll-snap-align: start; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 10px; text-align: center;
  display: flex; flex-direction: column; gap: 6px; align-items: center;
  transition: border-color .15s, box-shadow .15s;
}
.month:hover { border-color: var(--sky); box-shadow: var(--shadow-card); }
.month__name { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); }
.month__price { font-size: 16px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.month__price small { font-weight: 700; font-size: .72em; color: var(--muted-2); }
.month--min { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.month--min .month__name { color: var(--accent-hover); }
.month--min .month__price { color: var(--accent-hover); }
.month__tag { font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--accent); border-radius: var(--r-sm); padding: 2px 7px; }
.month--empty { background: var(--bg-soft); border-style: dashed; }
.month--empty .month__price { color: var(--faint); font-weight: 700; }
.months__legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.months__legend span { display: inline-flex; align-items: center; gap: 7px; }
.months__legend i { width: 13px; height: 13px; border-radius: 4px; display: inline-block; }
.months__legend .dot-min { background: var(--accent); }
.months__legend .dot-empty { background: var(--bg-soft); border: 1px dashed var(--line-strong); }

/* ---------- Najtańsze terminy (mini kalendarz) ---------- */
.dates-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.date-card {
  display: flex; flex-direction: column; gap: 4px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: #fff;
  padding: 13px 15px; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.date-card:hover { border-color: var(--sky); box-shadow: var(--shadow-card); color: var(--ink); }
.date-card__dow { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--sky); }
.date-card__day { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.date-card__price { font-size: 15px; font-weight: 800; color: var(--green); margin-top: 2px; }

/* ---------- Wiersz linii na trasie — rozszerzenie .airline-row ---------- */
.airline-row__route { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.airline-row__route .arr { color: var(--sky); font-weight: 800; }
.airline-row__end { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.airline-row__price { font-size: 16px; font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; }
.badge--direct { color: var(--sky-hover); background: var(--sky-soft); border: 1px solid var(--sky-border); }
.badge--stop { color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line-strong); }

/* ---------- FAQ (akordeon) ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; font-weight: 800; font-size: 16px; text-align: left; color: var(--ink);
}
.faq__q .lucide { flex: none; color: var(--sky); transition: transform .2s; }
.faq__item.is-open .faq__q .lucide { transform: rotate(180deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq__a-inner { padding: 0 18px 16px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.faq__item.is-open .faq__a { max-height: 320px; }

/* ---------- responsywność modułów ---------- */
@media (min-width: 560px) {
  .dates-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 760px) {
  .dhero__inner { padding-block: 44px 48px; }
  .dhero__title { font-size: 44px; }
  .dates-grid { grid-template-columns: repeat(6, 1fr); }
  .airline-row__route { }
}
@media (min-width: 1000px) {
  .dhero__title { font-size: 50px; }
  .months__scroll { grid-auto-columns: 1fr; overflow-x: visible; margin: 0; padding-inline: 0; }
}


/* =========================================================================
   FORMULARZ WYSZUKIWANIA (#trazo-search) — ciemny pasek, paleta Granat+Lazur
   Reużywalny widżet; logikę/autocomplete/kalendarz podłącza WP.
   Popovery (.tsf-pop / .tsf__ac) tworzy runtime — tu tylko widok statyczny.
   ========================================================================= */
.tsf { position: relative; z-index: 1; }
.tsf__trip {
  display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 14px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 12px;
}
.tsf__trip-opt { padding: 9px 18px; font-weight: 700; font-size: 14px; color: #a9bccf; border-radius: 9px; white-space: nowrap; transition: .15s; }
.tsf__trip-opt:hover { color: #fff; }
.tsf__trip-opt.is-active { background: #fff; color: var(--sky); }

.tsf__bar {
  display: flex; align-items: stretch; gap: 0; padding: 8px;
  background: #102A46; border: 1px solid rgba(255,255,255,.09); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(9,26,45,.35);
}
.tsf__field { position: relative; display: flex; align-items: center; gap: 11px; padding: 11px 16px; border-radius: 12px; text-align: left; min-width: 0; transition: background .15s, box-shadow .15s; }
.tsf__field + .tsf__field::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 1px; background: rgba(255,255,255,.08); }
.tsf__field:hover { background: rgba(255,255,255,.05); }
.tsf__field.is-open, .tsf__field:focus-within { background: #17385C; box-shadow: inset 0 0 0 1.5px rgba(22,182,224,.55); }
.tsf__field--city { flex: 1.35; }
.tsf__field--date { flex: 1; }
.tsf__field--pax { flex: 1.15; }
.tsf__inner { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; cursor: pointer; }
.tsf__label { font-size: 11px; font-weight: 700; color: #7f95ab; text-transform: uppercase; letter-spacing: .05em; }
.tsf__value { font-size: 16px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tsf__value--placeholder { color: #7f95ab; font-weight: 600; }
.tsf__input { border: none; outline: none; background: transparent; padding: 0; font-size: 16px; font-weight: 700; color: #fff; width: 100%; min-width: 0; }
.tsf__input::placeholder { color: #7f95ab; font-weight: 600; }
.tsf__ico { flex: none; width: 20px; height: 20px; background-repeat: no-repeat; background-position: center; background-size: contain; }
.tsf__field--city .tsf__ico { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316B6E0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/><circle cx='12' cy='10' r='3'/></svg>"); }
.tsf__field--date .tsf__ico { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316B6E0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2'/><path d='M16 2v4M8 2v4M3 10h18'/></svg>"); }
.tsf__field--pax .tsf__ico { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316B6E0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/><circle cx='9' cy='7' r='4'/><path d='M22 21v-2a4 4 0 0 0-3-3.87M16 3.13A4 4 0 0 1 16 11'/></svg>"); }
.tsf__swap { flex: none; align-self: center; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.18); background: #102A46; color: #a9bccf; display: flex; align-items: center; justify-content: center; margin: 0 -13px; z-index: 3; transition: .15s; }
.tsf__swap:hover { border-color: var(--sky-light, #16B6E0); color: #16B6E0; transform: rotate(180deg); }
.tsf__submit { flex: none; margin-left: 6px; background: var(--accent); color: #fff; border-radius: 12px; padding: 0 26px; font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 9px; transition: background .15s; }
.tsf__submit:hover { background: var(--accent-hover); }
.tsf__submit:focus-visible { outline: 3px solid rgba(14,157,201,.45); outline-offset: 2px; }
.tsf__trust { margin: 14px 2px 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.tsf.is-oneway .tsf__field--return { display: none; }

@media (max-width: 999px) and (min-width: 561px) {
  .tsf__bar { flex-wrap: wrap; }
  .tsf__field--pax { flex: 1 1 100%; }
  .tsf__field--pax + .tsf__submit { flex: 1 1 100%; margin-left: 0; margin-top: 4px; justify-content: center; }
}
@media (max-width: 560px) {
  .tsf__trip { display: flex; width: 100%; }
  .tsf__trip-opt { flex: 1; text-align: center; }
  .tsf__bar { flex-direction: column; gap: 8px; }
  .tsf__field { flex: 1 1 auto; width: 100%; }
  .tsf__field + .tsf__field::before { display: none; }
  .tsf__swap { align-self: flex-end; margin: -4px 6px; }
  .tsf__submit { padding: 14px; justify-content: center; }
}


/* ============================================================================
   MOBILE ≤600px — Hero A (bez zdjęcia) + kompaktowe chipy + karta poszukiwań TOP
   Strony kierunków. Desktop bez zmian.
   ============================================================================ */
@media (max-width:600px){
  .dhero--photo{ background:var(--bg-softer); }
  .dhero--photo .dhero__bg{ display:none; }
  .dhero--photo::after{ display:none; }
  .dhero--photo .dhero__title{ color:inherit; }
  .dhero--photo .dhero__title em{ color:var(--accent); }
  .dhero--photo .dhero__sub{ color:var(--muted); }
  .dhero--photo .crumbs a, .dhero--photo .crumbs .current, .dhero--photo .crumbs span{ color:var(--muted); }
  .dhero__sub{ font-size:14px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .facts{ gap:8px; }
  .fact{ padding:6px 11px; font-size:12px; }
  .fact--price .fact__big{ font-size:16px; }

  .tsf__bar{ flex-direction:column; align-items:stretch; gap:0; padding:0; background:#fff; border:1px solid #e6ebf1; border-radius:16px; box-shadow:0 8px 22px rgba(23,80,138,.10); position:relative; overflow:visible; }
  .tsf__trip{ display:flex; width:100%; gap:0; margin:0 0 12px; padding:0; background:transparent; border:none; border-radius:0; box-shadow:none; }
  .tsf__trip-opt{ flex:1; text-align:center; padding:12px 6px; font-size:13.5px; font-weight:800; color:#8a97a5; background:transparent; border:1px solid #e6ebf1; border-right:none; }
  .tsf__trip-opt:first-child{ border-radius:12px 0 0 12px; }
  .tsf__trip-opt:last-child{ border-radius:0 12px 12px 0; border-right:1px solid #e6ebf1; }
  .tsf__trip-opt.is-active{ background:#eaf4f9; color:#17508A; border-color:#bfe0ee; }
  .tsf__field{ width:100%; min-height:60px; padding:12px 15px; border-radius:0; border-bottom:1px solid #e6ebf1; background:#fff; gap:12px; }
  .tsf__field::before, .tsf__field + .tsf__field::before{ display:none !important; }
  .tsf__field:hover{ background:#fff; }
  .tsf__field.is-open, .tsf__field:focus-within{ background:#f4f9fc; box-shadow:none; }
  .tsf__label{ display:none; }
  .tsf__value{ color:#14202e; white-space:normal; font-weight:800; }
  .tsf__value--placeholder{ color:#9aa7b4; font-weight:700; }
  .tsf__input{ color:#14202e; font-size:15px; font-weight:800; }
  .tsf__input::placeholder{ color:#9aa7b4; font-weight:700; }
  .tsf__ico{ width:34px; height:34px; border-radius:9px; background-color:#eaf4f9; background-size:18px; background-position:center; }
  .tsf__swap{ position:absolute; right:12px; top:42px; align-self:auto; width:36px; height:36px; margin:0; background:#fff; border:1px solid #e6ebf1; color:#0E9DC9; box-shadow:0 3px 8px rgba(23,80,138,.14); }
  .tsf__swap:hover{ background:#fff; border-color:#0E9DC9; transform:rotate(180deg); }
  .tsf__field--date[data-field="return"]{ display:none; }
  .tsf__submit{ margin:12px; width:calc(100% - 24px); justify-content:center; background:#0E9DC9; border-radius:12px; padding:14px; font-size:16px; }
  .tsf__submit:hover{ background:#0B87AD; }
  .tsf__trust{ margin:12px 2px 0; text-align:center; color:var(--muted); }

  .tsf-pop{ position:fixed !important; left:0; right:0; bottom:0; top:auto; transform:none !important; width:100%; max-height:88vh; border-radius:20px 20px 0 0; padding:0; z-index:60; display:flex; flex-direction:column; box-shadow:0 -12px 40px rgba(9,26,45,.28); }
  .tsf-sheet-hd{ display:flex; align-items:center; justify-content:space-between; padding:16px 18px 10px; border-bottom:1px solid #eef2f6; }
  .tsf-sheet-hd__t{ font-weight:800; font-size:16px; }
  .tsf-pop--cal .tsf-cal-wrap{ flex:1; overflow:auto; -webkit-overflow-scrolling:touch; padding:10px 16px 8px; }
  .tsf-cal{ flex-direction:column; gap:18px; }
  .tsf-cal__month{ width:100%; }
  .tsf-cal__day{ height:42px; font-size:15px; }
  .tsf-cal__foot{ display:flex; flex-direction:column; gap:10px; flex:none; padding:12px 16px calc(14px + env(safe-area-inset-bottom)); border-top:1px solid #eef2f6; background:#fff; }
  .tsf-cal__sum{ display:flex; gap:16px; }
  .tsf-cal__sum-c{ flex:1; }
  .tsf-cal__sum-l{ display:block; font-size:11px; color:#8a97a5; font-weight:700; }
  .tsf-cal__sum-v{ display:block; font-size:14px; font-weight:800; margin-top:2px; text-transform:capitalize; }
  .tsf-cal__done{ width:100%; background:#0E9DC9; color:#fff; border-radius:12px; padding:14px; font-weight:800; font-size:15px; }
  .tsf-pop--pax{ right:0; width:100%; padding:0; }
  .tsf-pop--pax .tsf-pax{ padding:14px 18px; }
  .tsf-pop--pax .tsf-pax__done{ margin:6px 18px 18px; width:calc(100% - 36px); }
}

/* HARD OVERRIDE ≤600px — bije zduplikowaną sekcję .tsf (ta sama specyficzność, później w źródle). */
@media (max-width:600px){
  .tsf__bar{ background:#fff !important; padding:0 !important; gap:0 !important; border:1px solid #e6ebf1 !important; border-radius:16px !important; box-shadow:0 8px 22px rgba(23,80,138,.10) !important; position:relative !important; overflow:visible !important; }
  .tsf__field{ background:#fff !important; border-radius:0 !important; border:none !important; border-bottom:1px solid #e6ebf1 !important; margin:0 !important; min-height:60px !important; }
  .tsf__field.is-open, .tsf__field:focus-within{ background:#f4f9fc !important; box-shadow:none !important; }
  .tsf__field--date[data-field="return"]{ display:none !important; }
  .tsf__label{ display:none !important; }
  .tsf__value{ color:#14202e !important; }
  .tsf__input{ color:#14202e !important; }
  .tsf__ico{ width:34px !important; height:34px !important; border-radius:9px !important; background-color:#eaf4f9 !important; background-size:18px !important; }
  .tsf__swap{ position:absolute !important; right:12px !important; top:42px !important; margin:0 !important; align-self:auto !important; width:36px !important; height:36px !important; background:#fff !important; border:1px solid #e6ebf1 !important; color:#0E9DC9 !important; }
  .tsf__submit{ margin:12px !important; width:calc(100% - 24px) !important; background:#0E9DC9 !important; border-radius:12px !important; padding:14px !important; }
  .tsf-pop{ position:fixed !important; left:0 !important; right:0 !important; bottom:0 !important; top:auto !important; transform:none !important; width:100% !important; max-height:88vh !important; border-radius:20px 20px 0 0 !important; padding:0 !important; z-index:60 !important; display:flex !important; flex-direction:column !important; }
  .tsf-sheet-hd{ display:flex !important; }
  .tsf-pop--cal .tsf-cal-wrap{ flex:1 !important; overflow:auto !important; }
  .tsf-cal{ flex-direction:column !important; }
  .tsf-cal__month{ width:100% !important; }
  .tsf-cal__foot{ display:flex !important; flex-direction:column !important; }
}

/* HARD OVERRIDE 2 ≤600px — sheet ponad wszystkim, nieprzezroczysty */
@media (max-width:600px){
  .tsf-pop{ z-index:9999 !important; background:#fff !important; }
  .tsf-scrim{ z-index:9998 !important; }
}

/* HARD OVERRIDE 3 ≤600px — kalendarz/pax na cały ekran (jak Kayak), .tsf bez własnego kontekstu nakładania */
@media (max-width:600px){
  .tsf{ z-index:auto !important; }
  .tsf-pop{ position:fixed !important; top:0 !important; left:0 !important; right:0 !important; bottom:0 !important; width:100% !important; height:auto !important; max-height:none !important; border-radius:0 !important; z-index:99999 !important; background:#fff !important; display:flex !important; flex-direction:column !important; padding:0 !important; overflow:hidden !important; }
  .tsf-scrim{ z-index:99990 !important; }
  .tsf-sheet-hd{ display:flex !important; flex:none !important; }
  .tsf-pop--cal .tsf-cal-wrap{ flex:1 !important; overflow-y:auto !important; overscroll-behavior:contain !important; -webkit-overflow-scrolling:touch !important; }
  .tsf-pop--pax .tsf-pax{ flex:1 !important; overflow-y:auto !important; overscroll-behavior:contain !important; }
  .tsf-cal__foot{ flex:none !important; }
}