/* ==========================================================================
   Trazo — wspólny arkusz stylów (Strona główna + Strona trasy)
   Mobile-first · tokens przez CSS variables · komponenty oparte na klasach
   Zależności: Manrope (Google Fonts) + lucide. Nic więcej.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --accent: #E2680E;
  --accent-hover: #C75A08;
  --accent-soft: #FFF6EE;
  --accent-border: #F6D9BD;
  --accent-ink: #FCEEDF;

  --ink: #14202e;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --bg-softer: #fbfcfd;

  --green: #15803D;
  --green-soft: #EAF6EE;
  --amber-text: #9a6a16;
  --amber-soft: #FBF1E2;

  --muted: #5b6b7c;
  --muted-2: #7a8794;
  --faint: #9aa3ab;
  --line: #e9edf1;
  --line-2: #eef1f4;
  --line-strong: #dde3e8;
  --chip-border: #e4e8ec;

  --dark: #14202e;
  --dark-2: #9aa6b2;
  --dark-3: #7a8794;
  --dark-line: rgba(255, 255, 255, .12);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 18px;
  --r-2xl: 22px;
  --r-pill: 999px;

  --shadow-card: 0 1px 3px rgba(20, 32, 46, .08);
  --shadow-widget: 0 14px 40px rgba(20, 32, 46, .08);
  --shadow-pop: 0 12px 30px rgba(226, 104, 14, .40);

  --maxw: 1200px;
  --pad: 18px;

  --font: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
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, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; padding: 0; }
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; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: 36px; }
.section--tight { padding-block: 22px; }
.soft { background: var(--bg-softer); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.section-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--accent); white-space: nowrap; }
.link-more:hover { color: var(--accent-hover); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; font-size: 15px; border-radius: var(--r-md);
  padding: 12px 20px; transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { border: 1.5px solid var(--accent); color: var(--accent); background: #fff; border-radius: var(--r-pill); padding: 8px 15px; font-size: 14px; font-weight: 700; }
.btn-outline:hover { background: var(--accent-soft); }
.btn-ghost { border: 1.5px solid var(--line-strong); color: var(--ink); background: #fff; border-radius: var(--r-md); padding: 12px 20px; font-weight: 700; font-size: 15px; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex: none; }
.brand__mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.brand__name { font-weight: 800; font-size: 21px; letter-spacing: -.03em; }

.main-nav { display: none; gap: 26px; font-weight: 600; font-size: 15px; }
.main-nav a:hover { color: var(--accent); }
.main-nav a.is-active { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn-outline { display: none; }
.header-actions .login { display: none; font-weight: 600; font-size: 15px; color: var(--muted); }
.header-actions .login:hover { color: var(--ink); }

.lang-switch { display: inline-flex; border: 1.5px solid var(--chip-border); border-radius: var(--r-pill); overflow: hidden; font-weight: 700; font-size: 13px; }
.lang-switch button, .lang-switch a { padding: 7px 12px; color: var(--muted); text-decoration: none; cursor: pointer; }
.lang-switch button.is-active, .lang-switch a.is-active { background: var(--ink); color: #fff; }

.burger { width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--chip-border); display: grid; place-items: center; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding-block: 28px 36px; }
.hero__head { max-width: 760px; margin-bottom: 24px; }
.hero h1 { font-size: clamp(28px, 6vw, 42px); line-height: 1.08; font-weight: 800; letter-spacing: -.025em; margin-bottom: 12px; }
.hero__sub { font-size: clamp(15px, 2.4vw, 18px); color: var(--muted); }
.hero__arrow { color: var(--accent); }

/* Route hero specifics */
.hero--route .hero__top { display: flex; flex-direction: column; gap: 18px; margin-bottom: 22px; }
.route-meta { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; font-size: 15px; font-weight: 600; color: var(--muted); }
.route-meta strong { color: var(--ink); font-weight: 800; }
.route-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: #cfd6dc; }
.hero__photo {
  width: 100%; aspect-ratio: 2 / 1; max-width: 320px; border-radius: var(--r-lg);
  background: repeating-linear-gradient(45deg, #eef1f4 0 12px, #e7ebef 12px 24px);
  display: flex; align-items: flex-end; padding: 11px; overflow: hidden;
}
.hero__photo:has(img) { padding: 0; background: none; }
.photo-tag { display: inline-flex; align-items: center; gap: 6px; font-family: ui-monospace, SFMono-Regular, monospace; font-size: 11px; font-weight: 600; color: #8a98a6; background: rgba(255, 255, 255, .9); border-radius: 7px; padding: 4px 9px; }

/* ---------- Search widget ---------- */
.search {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-widget); padding: 6px 16px 16px;
}
.search__tabs { display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line-2); margin-bottom: 15px; }
.tab { display: inline-flex; align-items: center; gap: 7px; padding: 14px 1px 12px; font-weight: 700; font-size: 14px; position: relative; color: var(--ink); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px; background: var(--accent); }
.tab:not([aria-selected="true"]) { color: var(--muted); }
.trip-toggle { margin-left: auto; }
.trip-toggle .add-return { color: var(--accent); font-weight: 700; font-size: 13px; padding: 6px 2px; }
.trip-toggle .add-return:hover { color: var(--accent-hover); }
.trip-toggle .one-way { display: none; align-items: center; gap: 5px; color: var(--muted); font-weight: 700; font-size: 13px; padding: 6px 2px; }
.trip-toggle .one-way:hover { color: var(--ink); }

.search__fields { display: flex; flex-direction: column; gap: 9px; }
.field {
  position: relative; 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; flex: 1;
  background: #fff; text-align: left; cursor: pointer;
}
.field:hover { border-color: var(--muted); }
.field__label { font-size: 11px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; }
.field__value { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field-row { display: flex; gap: 9px; }
.swap {
  position: absolute; right: 14px; top: 46px; transform: translateY(-50%); z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  background: #fff; display: grid; place-items: center; color: var(--muted);
}
.swap:hover { border-color: var(--ink); color: var(--ink); }
.search .btn-primary { padding: 15px 20px; font-size: 16px; margin-top: 3px; }

/* return field hidden until round-trip is on */
.field--return { display: none; }
.field--pax-row { display: none; }
.search[data-trip="round"] .field--return { display: flex; }
.search[data-trip="round"] .trip-toggle .add-return { display: none; }
.search[data-trip="round"] .trip-toggle .one-way { display: inline-flex; }
.search[data-trip="round"] .field--pax-inline { display: none; }
.search[data-trip="round"] .field--pax-row { display: flex; }

/* ---------- AI prompt bar (hero) ---------- */
.ai-prompt {
  margin-top: 13px; width: 100%; display: flex; align-items: center; gap: 11px;
  background: var(--accent-soft); border: 1.5px solid var(--accent-border);
  border-radius: var(--r-md); padding: 12px 14px; text-align: left;
}
.ai-prompt:hover { border-color: var(--accent); }
.ai-prompt__icon { flex: none; width: 36px; height: 36px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.ai-prompt__body { flex: 1; min-width: 0; }
.ai-prompt__title { display: block; font-weight: 700; font-size: 14px; color: var(--ink); }
.ai-prompt__sub { display: block; font-size: 12px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge-new { flex: none; font-size: 11px; font-weight: 800; letter-spacing: .05em; color: var(--accent); background: #fff; border: 1px solid var(--accent-border); border-radius: 6px; padding: 4px 8px; text-transform: uppercase; white-space: nowrap; }
.ai-prompt .lucide-arrow { color: var(--accent); flex: none; }

/* ---------- Citable "W skrócie" ---------- */
.citable { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; margin-top: 16px; }
.citable__tag { flex: none; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-border); border-radius: 6px; padding: 4px 9px; margin-top: 1px; }
.citable p { font-size: 14px; line-height: 1.55; color: var(--ink); font-weight: 600; max-width: 900px; }

/* ---------- Trust strip ---------- */
.trust-strip { display: flex; align-items: center; gap: 14px; margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--muted); flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.trust-strip::-webkit-scrollbar { display: none; }
.trust-strip li { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.trust-strip .num { color: var(--ink); }
.trust-strip .sep { width: 1px; height: 16px; background: var(--line-strong); flex: none; }
.ic-amber { color: var(--accent); }
.ic-green { color: var(--green); }

/* ---------- Route cards ---------- */
.routes-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.route-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; }
.route-card:hover { border-color: var(--accent); }
.route-card__photo { position: relative; height: 94px; background: repeating-linear-gradient(45deg, #eef1f4 0 11px, #e7ebef 11px 22px); display: flex; align-items: flex-end; padding: 8px; overflow: hidden; }
.route-card__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.route-card__photo:has(img) { background: none; }
.route-card__photo .mini-tag { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 5px; font-family: ui-monospace, monospace; font-size: 10px; font-weight: 600; color: #8a98a6; background: rgba(255, 255, 255, .9); border-radius: 6px; padding: 3px 7px; }
.route-card__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.modes { display: flex; gap: 9px; color: var(--faint); font-size: 15px; }
.route-card__name { font-weight: 800; font-size: 16px; letter-spacing: -.01em; }
.route-card__name .arr { color: #c2cad1; }
.route-card__meta { font-size: 13px; color: var(--muted-2); }
.route-card__foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: 4px; }
.price { font-weight: 800; font-size: 16px; color: var(--green); }
.route-card__cta { font-size: 13px; font-weight: 700; color: var(--accent); }

/* compact list variant (mobile popular routes) */
.route-list { display: flex; flex-direction: column; gap: 10px; }
.route-row { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; }
.route-row__thumb { flex: none; width: 54px; height: 54px; border-radius: 10px; background: repeating-linear-gradient(45deg, #eef1f4 0 8px, #e7ebef 8px 16px); display: grid; place-items: center; color: #b6c0c9; overflow: hidden; }
.route-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.route-row__main { flex: 1; min-width: 0; }
.route-row__name { font-weight: 800; font-size: 15px; }
.route-row__meta { font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.route-row__right { text-align: right; flex: none; }
.route-row__right .price { font-size: 15px; }
.route-row__right .modes { justify-content: flex-end; font-size: 13px; margin-top: 3px; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 10px; display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; transition: box-shadow .15s; }
.cat-card:hover { box-shadow: 0 12px 32px rgba(20, 32, 46, .10); }
.cat-card__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-ink); color: var(--accent); display: grid; place-items: center; }
.cat-card__name { font-weight: 800; font-size: 14px; }
.cat-card__desc { display: none; color: var(--muted); font-size: 14px; line-height: 1.5; }
.cat-card__link { display: none; margin-top: 6px; color: var(--accent); font-weight: 700; font-size: 14px; align-items: center; gap: 6px; }

/* ---------- AI dark section ---------- */
.ai-band { background: var(--dark); border-radius: var(--r-2xl); padding: 24px; color: #fff; }
.ai-band__grid { display: flex; flex-direction: column; gap: 22px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #F6B97A; background: rgba(226, 104, 14, .18); border-radius: var(--r-pill); padding: 5px 11px; text-transform: uppercase; white-space: nowrap; }
.ai-band h2 { font-size: clamp(21px, 4vw, 30px); font-weight: 800; letter-spacing: -.02em; line-height: 1.13; margin: 14px 0 10px; }
.ai-band__desc { font-size: 15px; line-height: 1.55; color: #b6c0cb; max-width: 440px; }
.ai-band__list { display: flex; flex-direction: column; gap: 12px; margin: 18px 0 22px; }
.ai-band__list li { display: flex; align-items: center; gap: 11px; font-size: 15px; color: #e4e9ee; }
.ai-band__list .lucide { color: #F6B97A; }
.ai-band__card { background: #fff; border-radius: var(--r-xl); padding: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); color: var(--ink); }
.ai-msg { display: flex; gap: 9px; margin-bottom: 14px; }
.ai-avatar { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--accent-ink); color: var(--accent); display: grid; place-items: center; }
.ai-bubble { background: var(--bg-soft); border-radius: 4px 14px 14px 14px; padding: 11px 14px; font-size: 14px; line-height: 1.45; }
.offer { border: 1px solid var(--line); border-radius: 13px; padding: 13px; }
.offer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.offer__route { font-weight: 800; font-size: 15px; }
.offer__route .arr { color: #c2cad1; }
.offer__carrier { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--bg-soft); border-radius: 6px; padding: 3px 8px; }
.offer__mid { display: flex; align-items: baseline; justify-content: space-between; }
.offer__meta { font-size: 13px; color: var(--muted-2); }

/* ---------- City chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips li { display: flex; }
.chip { display: inline-flex; align-items: center; border: 1.5px solid var(--chip-border); border-radius: var(--r-pill); padding: 10px 18px; font-weight: 600; font-size: 15px; line-height: 1.2; color: var(--ink); }
.chip:hover { border-color: var(--ink); }

/* ---------- Trust grid ---------- */
.trust-box { background: var(--bg-softer); border: 1px solid var(--line); border-radius: var(--r-2xl); padding: 22px; }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.trust-item__title { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; margin-bottom: 5px; }
.trust-item__title .big { font-size: 18px; }
.trust-item__desc { font-size: 13px; color: var(--muted-2); line-height: 1.5; }
.trust-note { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--muted-2); line-height: 1.5; }

/* ---------- FAQ ---------- */
.faq-lead { font-size: clamp(15px, 2.5vw, 18px); line-height: 1.55; color: var(--ink); font-weight: 600; margin-bottom: 12px; max-width: 820px; }
.faq__item { border-top: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0; text-align: left; font-weight: 700; font-size: 16px; }
.faq__q .sign { flex: none; color: var(--muted); display: grid; place-items: center; }
.faq__q .sign .minus { display: none; }
.faq__item[aria-expanded="true"] .sign .minus { display: block; }
.faq__item[aria-expanded="true"] .sign .plus { display: none; }
.faq__a { display: none; padding: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 760px; }
.faq__item[aria-expanded="true"] .faq__a { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #fff; padding-block: 32px 26px; }
.footer-top { display: flex; flex-direction: column; gap: 26px; margin-bottom: 26px; }
.footer-about { max-width: 300px; }
.footer-about p { font-size: 14px; line-height: 1.55; color: var(--dark-2); margin-top: 12px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 28px 56px; }
.footer-col h4 { font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--dark-3); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: #cdd5dd; margin-bottom: 11px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-direction: column; gap: 18px; padding-top: 20px; border-top: 1px solid var(--dark-line); }
.footer-disc { font-size: 12px; color: var(--dark-3); line-height: 1.55; max-width: 640px; }
.footer-lang { display: flex; align-items: center; gap: 10px; }
.footer-lang .globe { color: var(--dark-2); }
.lang-switch--dark { border-color: rgba(255, 255, 255, .2); }
.lang-switch--dark button, .lang-switch--dark a { color: var(--dark-2); }
.lang-switch--dark button.is-active, .lang-switch--dark a.is-active { background: var(--accent); color: #fff; }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--faint); margin-bottom: 14px; overflow-x: auto; white-space: nowrap; }
.crumbs::-webkit-scrollbar { display: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs .current { color: var(--ink); }

/* ---------- Key numbers strip ---------- */
.keynums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.keynum { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 13px 14px; }
.keynum .lucide { font-size: 17px; color: var(--accent); }
.keynum__value { font-weight: 800; font-size: 18px; letter-spacing: -.02em; margin-top: 7px; }
.keynum__label { font-size: 12px; color: var(--muted-2); margin-top: 1px; }

/* ---------- Schedule (responsive table) ---------- */
.schedule-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.schedule { width: 100%; border-collapse: collapse; }
.schedule thead { display: none; }
.schedule tr { display: block; border-bottom: 1px solid var(--line); padding: 14px 15px; }
.schedule tr:last-child { border-bottom: none; }
.schedule td { display: block; padding: 0; }
.sched-time { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; }
.sched-time .arr { color: #c2cad1; font-size: 15px; }
.sched-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 9px 0 12px; font-size: 13px; }
.sched-line .dur { color: var(--muted); font-weight: 600; }
.sched-line .carrier { font-weight: 700; }
.sched-line .dot { width: 4px; height: 4px; border-radius: 50%; background: #cfd6dc; }
.tag-direct { font-size: 12px; font-weight: 700; color: var(--green); background: var(--green-soft); border-radius: 6px; padding: 3px 8px; display: inline-flex; align-items: center; gap: 5px; }
.tag-transfer { font-size: 12px; font-weight: 700; color: var(--amber-text); background: var(--amber-soft); border-radius: 6px; padding: 3px 8px; display: inline-flex; align-items: center; gap: 5px; }
.sched-price { font-weight: 800; font-size: 16px; color: var(--green); }
.sched-row__head { display: flex; align-items: center; justify-content: space-between; }
.schedule .btn { width: 100%; }
.schedule-more { padding: 16px 15px; display: flex; justify-content: center; }

/* ---------- Price block ---------- */
.price-grid { display: flex; flex-direction: column; gap: 10px; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 16px; }
.price-card__label { font-size: 12px; color: var(--muted-2); font-weight: 600; margin-bottom: 5px; }
.price-card__value { font-weight: 800; font-size: 28px; letter-spacing: -.02em; }
.price-card__value.green { color: var(--green); }
.price-card__sub { font-size: 13px; color: var(--faint); margin-top: 4px; }
.price-cards-row { display: flex; gap: 10px; }
.price-cards-row .price-card { flex: 1; }
.price-tip { background: var(--accent-soft); border: 1px solid var(--accent-border); border-radius: 13px; padding: 15px; display: flex; gap: 12px; align-items: flex-start; }
.price-tip .lucide { font-size: 22px; color: var(--accent); flex: none; margin-top: 1px; }
.price-tip__title { font-weight: 800; font-size: 15px; margin-bottom: 3px; }
.price-tip__desc { font-size: 13px; color: #7a5a36; line-height: 1.5; }

/* ---------- Carriers ---------- */
.carriers { display: grid; grid-template-columns: 1fr; gap: 10px; }
.carrier { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 13px 14px; display: flex; align-items: center; gap: 13px; }
.carrier__logo { flex: none; width: 52px; height: 52px; border-radius: 11px; background: var(--bg-soft); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 800; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.05; white-space: pre-line; }
.carrier__main { flex: 1; min-width: 0; }
.carrier__name { font-weight: 800; font-size: 15px; }
.carrier__meta { display: flex; gap: 14px; margin-top: 4px; font-size: 12px; color: var(--muted-2); flex-wrap: wrap; }
.carrier__meta span { display: inline-flex; align-items: center; gap: 5px; }
.carrier__right { flex: none; text-align: right; }
.carrier__right .price { font-size: 15px; }
.carrier__right .btn { margin-top: 6px; padding: 8px 14px; font-size: 13px; }

/* ---------- Tips ---------- */
.tips { background: var(--bg-softer); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 20px; }
.tips h3 { font-size: 17px; font-weight: 800; margin-bottom: 14px; }
.tips li { display: flex; gap: 10px; margin-bottom: 12px; font-size: 14px; line-height: 1.5; color: #33414f; }
.tips li:last-child { margin-bottom: 0; }
.tips .lucide { font-size: 17px; color: var(--green); flex: none; margin-top: 1px; }

/* ---------- Interlinking ---------- */
.faq-tips { display: flex; flex-direction: column; gap: 24px; }
.links-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.links-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; }
.links-card h3 { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; margin-bottom: 14px; }
.links-card h3 .lucide { color: var(--accent); }
.links-card a { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: #33414f; padding: 6px 0; font-weight: 600; }
.links-card a:hover { color: var(--accent); }
.links-card a .lead { display: inline-flex; align-items: center; gap: 9px; }
.links-card a .lead .lucide { color: var(--faint); }
.links-card a .chev { color: var(--faint); }

/* ---------- AI drawer + floating button ---------- */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 70; height: 56px;
  border-radius: var(--r-pill); background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 800; font-size: 15px; box-shadow: var(--shadow-pop); width: 56px; padding: 0;
}
.fab:hover { background: var(--accent-hover); }
.fab .label { display: none; }
.fab .lucide { font-size: 24px; }

.ai-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(20, 32, 46, .45); opacity: 0; visibility: hidden; transition: opacity .2s; }
.ai-drawer {
  position: fixed; inset: 0; z-index: 90; background: var(--bg-softer);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease;
}
body.ai-open { overflow: hidden; }
body.ai-open .ai-overlay { opacity: 1; visibility: visible; }
body.ai-open .ai-drawer { transform: translateX(0); }
.ai-drawer__head { display: flex; align-items: center; gap: 11px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.ai-drawer__head .ai-avatar { width: 36px; height: 36px; border-radius: 10px; }
.ai-drawer__title { flex: 1; }
.ai-drawer__title b { font-weight: 800; font-size: 16px; display: block; }
.ai-status { font-size: 12px; color: var(--green); display: flex; align-items: center; gap: 5px; }
.ai-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; }
.ai-icon-btn { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); }
.ai-icon-btn:hover { background: var(--bg-soft); }
.ai-body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 13px; }
.ai-suggest { display: flex; flex-direction: column; gap: 8px; padding-left: 39px; }
.ai-suggest button { text-align: left; border: 1.5px solid var(--chip-border); border-radius: 10px; padding: 9px 13px; font-size: 13px; font-weight: 600; background: #fff; color: var(--ink); }
.ai-suggest button:hover { border-color: var(--accent); }
.ai-user { align-self: flex-end; background: var(--ink); color: #fff; border-radius: 14px 14px 4px 14px; padding: 11px 14px; font-size: 14px; max-width: 80%; }
.ai-reply { display: flex; gap: 9px; }
.ai-reply__col { display: flex; flex-direction: column; gap: 10px; max-width: 90%; }
.ai-reply .ai-bubble { background: #fff; border: 1px solid var(--line); }
.ai-reply .offer { background: #fff; }
.ai-foot { padding: 13px 16px; border-top: 1px solid var(--line); background: #fff; }
.ai-inputbar { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); padding: 7px 7px 7px 15px; }
.ai-inputbar input { flex: 1; border: none; outline: none; font: inherit; font-size: 14px; color: var(--ink); background: none; }
.ai-inputbar input::placeholder { color: var(--faint); }
.ai-send { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.ai-send:hover { background: var(--accent-hover); }
.ai-disclaimer { margin-top: 7px; font-size: 11px; color: var(--faint); text-align: center; }

/* ==========================================================================
   Tablet  ≥ 640px
   ========================================================================== */
@media (min-width: 640px) {
  .routes-grid { grid-template-columns: repeat(2, 1fr); }
  .keynums { grid-template-columns: repeat(3, 1fr); }
  .links-grid { grid-template-columns: repeat(3, 1fr); }
  .price-grid { flex-direction: row; align-items: stretch; }
  .price-cards-row { flex: none; }
  .price-card--fixed { width: 220px; }
  .price-tip { flex: 1; align-items: center; }
  .footer-top { flex-direction: row; justify-content: space-between; }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
  .carriers { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Desktop  ≥ 1024px
   ========================================================================== */
@media (min-width: 1024px) {
  :root { --pad: 50px; }
  .section { padding-block: 52px; }
  .section--tight { padding-block: 32px; }

  .main-nav { display: flex; }
  .header-actions { gap: 16px; }
  .header-actions .btn-outline { display: inline-flex; }
  .header-actions .login { display: inline; }
  .burger { display: none; }

  .section-title { font-size: 27px; }

  /* search widget → single row */
  .search { padding: 8px 22px 22px; }
  .search__tabs { gap: 30px; margin-bottom: 20px; }
  .tab { padding: 16px 2px 14px; font-size: 15px; gap: 8px; }
  .trip-toggle .add-return, .trip-toggle .one-way { font-size: 14px; }
  .search__fields { flex-direction: row; align-items: stretch; gap: 10px; }
  .field { padding: 9px 16px; justify-content: center; }
  .field--from, .field--to { flex: 1.3; }
  .field--pax-row { display: none !important; }
  .search[data-trip="round"] .field--pax-inline { display: flex; }
  .swap { position: static; transform: none; align-self: center; margin: 0 -6px; flex: none; }
  .search .btn-primary { margin-top: 0; padding: 0 32px; font-size: 17px; flex: none; }

  .ai-prompt__title { font-size: 15px; }
  .ai-prompt__sub { font-size: 13px; white-space: normal; }
  .citable p { font-size: 15px; }
  .trust-strip { font-size: 14px; gap: 26px; flex-wrap: wrap; overflow: visible; }

  .routes-grid { grid-template-columns: repeat(4, 1fr); }
  .route-list { display: none; }

  /* categories → rich cards */
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .cat-card { align-items: flex-start; text-align: left; padding: 26px; gap: 13px; }
  .cat-card__icon { width: 54px; height: 54px; border-radius: 15px; }
  .cat-card__icon .lucide { font-size: 27px; }
  .cat-card__name { font-size: 21px; }
  .cat-card__desc { display: block; }
  .cat-card__link { display: flex; }

  .ai-band { padding: 44px; }
  .ai-band__grid { flex-direction: row; align-items: center; gap: 44px; }
  .ai-band__main { flex: 1; }
  .ai-band__card { flex: none; width: 380px; }
  .ai-band__list li { font-size: 15px; }

  .trust-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .trust-box { padding: 36px 40px; }
  .trust-item__title { font-size: 17px; }
  .trust-item__title.rating { font-size: 22px; }
  .trust-item__title .big { font-size: 22px; }
  .trust-item__desc { font-size: 14px; }

  .faq__q { font-size: 17px; padding: 20px 0; }

  .footer-top { margin-bottom: 36px; }
  .footer-cols { gap: 64px; }
  .site-footer { padding-block: 44px 28px; }

  .chip { font-size: 15px; }

  /* hero route layout */
  .hero--route .hero__top { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 34px; }
  .hero__photo { width: 300px; max-width: none; height: 150px; aspect-ratio: auto; flex: none; }

  .keynums { grid-template-columns: repeat(6, 1fr); }
  .keynum { padding: 16px; }
  .keynum .lucide { font-size: 19px; }
  .keynum__value { font-size: 21px; }
  .keynum__label { font-size: 12.5px; }

  /* schedule → real table */
  .schedule thead { display: table-header-group; }
  .schedule, .schedule tbody { display: table; width: 100%; }
  .schedule tbody { display: table-row-group; }
  .schedule tr { display: table-row; padding: 0; border-bottom: 1px solid var(--line-2); }
  .schedule th, .schedule td { display: table-cell; padding: 14px 12px; vertical-align: middle; text-align: left; }
  .schedule th { background: var(--bg-softer); font-size: 12px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line); }
  .schedule th:first-child, .schedule td:first-child { padding-left: 22px; }
  .schedule th:last-child, .schedule td:last-child { padding-right: 22px; }
  .sched-row__head { display: contents; }
  .sched-time { font-size: 18px; }
  .sched-time.arr-cell::before { content: none; }
  .sched-line { margin: 0; }
  .schedule .td-dur, .schedule .td-carrier { font-size: 14px; }
  .schedule .td-carrier { font-weight: 700; }
  .schedule .btn { width: auto; padding: 10px 16px; font-size: 13px; }
  .schedule td.td-cta { text-align: right; }
  .carriers { grid-template-columns: repeat(2, 1fr); }
  .carrier__logo { width: 64px; height: 64px; border-radius: 13px; font-size: 14px; }
  .carrier__name { font-size: 17px; }
  .carrier__right .price { font-size: 17px; }
  .carrier__right .btn { padding: 9px 18px; font-size: 14px; }

  .faq-tips { flex-direction: row; align-items: flex-start; gap: 48px; }
  .faq-tips__faq { flex: 1.4; min-width: 0; }
  .faq-tips__aside { flex: 1; min-width: 0; }

  /* AI drawer → right side panel */
  .ai-drawer { left: auto; width: 430px; box-shadow: -24px 0 60px rgba(20, 32, 46, .25); }

  .fab { width: auto; padding: 0 22px; right: 28px; bottom: 28px; }
  .fab .label { display: inline; }
}

/* schedule cell labels only matter on mobile card view */
@media (max-width: 1023px) {
  .schedule td.td-dur, .schedule td.td-carrier, .schedule td.td-type { display: inline; }
}

/* ==========================================================================
   ETAP 2 — Hub · Wyniki wyszukiwania · AI-chat · Artykuł · Blog
   Mobile-first, te same tokeny i komponenty.
   ========================================================================== */

/* ---------- Wspólne drobiazgi ---------- */
.intro-narrow { max-width: 760px; }
.pagecount { font-size: 14px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.pagecount b { color: var(--ink); font-weight: 800; }

/* ---------- Kompaktowy pasek wyszukiwania (search.html) ---------- */
.searchbar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); padding: 10px; display: flex; align-items: center;
  gap: 8px; flex-wrap: wrap;
}
.searchbar__fields { display: flex; align-items: stretch; gap: 8px; flex: 1; min-width: 0; flex-wrap: wrap; }
.searchbar__field {
  display: flex; flex-direction: column; gap: 1px; padding: 6px 12px; border-radius: var(--r-sm);
  min-width: 0; text-align: left; background: var(--bg-softer); border: 1px solid var(--line); flex: 1;
}
.searchbar__field:hover { border-color: var(--muted); }
.searchbar__field .l { font-size: 10px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; }
.searchbar__field .v { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.searchbar .btn { flex: none; }

/* ---------- Sortowanie + licznik ---------- */
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 18px 0 14px; flex-wrap: wrap; }
.sort-tabs { display: inline-flex; border: 1.5px solid var(--chip-border); border-radius: var(--r-pill); overflow: hidden; background: #fff; }
.sort-tabs button { padding: 8px 14px; font-size: 13px; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.sort-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }

/* ---------- Układ: filtry + wyniki ---------- */
.results-layout { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.filters-toggle { display: inline-flex; }
.filters {
  display: none; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px;
}
.filters.is-open { display: block; }
.filters__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.filters__head h3 { font-size: 16px; font-weight: 800; }
.filters__clear { font-size: 13px; font-weight: 700; color: var(--accent); }
.filter-group { padding-block: 16px; border-top: 1px solid var(--line-2); }
.filter-group__title { font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; cursor: pointer; color: var(--ink); }
.check input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.check .count { margin-left: auto; color: var(--faint); font-size: 13px; }
.range input[type="range"] { width: 100%; accent-color: var(--accent); }
.range__row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 8px; font-weight: 700; }

/* ---------- Karta wyniku ---------- */
.result-list { display: flex; flex-direction: column; gap: 12px; }
.result-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; transition: border-color .15s, box-shadow .15s; }
.result-card:hover { border-color: var(--accent); box-shadow: var(--shadow-card); }
.result-card__inner { display: flex; flex-direction: column; gap: 14px; }
.result-trip { display: flex; align-items: center; gap: 14px; }
.result-end { text-align: center; }
.result-end__time { font-weight: 800; font-size: 22px; line-height: 1; }
.result-end__city { font-size: 12px; color: var(--muted-2); margin-top: 4px; }
.result-mid { flex: 1; text-align: center; min-width: 0; }
.result-mid__dur { font-size: 12px; color: var(--muted-2); font-weight: 600; }
.result-mid__line { height: 2px; background: var(--line-strong); border-radius: 2px; margin: 6px 0; position: relative; }
.result-mid__line::after { content: ""; position: absolute; right: -1px; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.result-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.result-carrier { display: flex; align-items: center; gap: 10px; min-width: 0; }
.result-logo { flex: none; width: 42px; height: 42px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 800; font-size: 11px; color: var(--muted); text-align: center; line-height: 1.05; white-space: pre-line; }
.result-carrier__txt { min-width: 0; }
.result-carrier__name { font-weight: 700; font-size: 14px; }
.result-carrier__tags { display: flex; gap: 7px; margin-top: 4px; flex-wrap: wrap; }
.result-price { display: flex; align-items: center; gap: 14px; flex: none; }
.result-price__amount { text-align: right; }
.result-price__amount .price { font-size: 20px; display: block; }
.result-price__amount .from { font-size: 11px; color: var(--muted-2); }

/* podpowiedź AI na liście wyników */
.ai-hint { display: flex; gap: 12px; align-items: flex-start; background: var(--accent-soft); border: 1px solid var(--accent-border); border-radius: var(--r-lg); padding: 14px 16px; }
.ai-hint__icon { flex: none; width: 36px; height: 36px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.ai-hint__body { flex: 1; min-width: 0; }
.ai-hint__body b { font-weight: 800; font-size: 14px; }
.ai-hint__body p { font-size: 13px; color: #7a5a36; line-height: 1.5; margin-top: 2px; }
.ai-hint .btn { flex: none; align-self: center; }

/* ---------- AI-chat (pełny ekran, ai-chat.html) ---------- */
.chat-page { display: flex; flex-direction: column; height: 100vh; height: 100dvh; background: var(--bg-softer); }
.chat-head { display: flex; align-items: center; gap: 11px; padding: 12px var(--pad); border-bottom: 1px solid var(--line); background: #fff; flex: none; }
.chat-head .ai-avatar { width: 38px; height: 38px; border-radius: 10px; }
.chat-head__title { flex: 1; min-width: 0; }
.chat-head__title b { font-weight: 800; font-size: 16px; display: block; }
.chat-scroll { flex: 1; overflow-y: auto; }
.chat-stream { width: 100%; max-width: 760px; margin: 0 auto; padding: 22px var(--pad) 28px; display: flex; flex-direction: column; gap: 16px; }
.chat-greet { text-align: center; padding: 14px 0 4px; }
.chat-greet h1 { font-size: clamp(22px, 5vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.chat-greet p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.quick-q { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-top: 6px; }
.quick-q button { border: 1.5px solid var(--chip-border); border-radius: var(--r-pill); padding: 9px 15px; font-size: 13px; font-weight: 600; background: #fff; color: var(--ink); }
.quick-q button:hover { border-color: var(--accent); color: var(--accent); }
.chat-input-wrap { flex: none; border-top: 1px solid var(--line); background: #fff; padding: 13px var(--pad); }
.chat-input-inner { width: 100%; max-width: 760px; margin: 0 auto; }
.offer-row { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Artykuł (article.html) ---------- */
.article { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.article__head h1 { font-size: clamp(27px, 5vw, 38px); line-height: 1.12; font-weight: 800; letter-spacing: -.025em; }
.article__meta { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--muted-2); font-weight: 600; }
.article__meta span { display: inline-flex; align-items: center; gap: 6px; }
.article__cover { aspect-ratio: 16 / 7; border-radius: var(--r-lg); background: repeating-linear-gradient(45deg, #eef1f4 0 14px, #e7ebef 14px 28px); display: flex; align-items: flex-end; padding: 12px; margin-top: 20px; }
.toc { background: var(--bg-softer); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; }
.toc h2 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-2); margin-bottom: 12px; }
.toc a { display: flex; gap: 9px; padding: 7px 0; font-size: 14px; color: #33414f; font-weight: 600; }
.toc a:hover { color: var(--accent); }
.toc a .n { color: var(--faint); font-variant-numeric: tabular-nums; }
.prose { max-width: 720px; }
.prose h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 32px 0 12px; scroll-margin-top: 76px; }
.prose h3 { font-size: 19px; font-weight: 800; margin: 22px 0 10px; }
.prose p { font-size: 16px; line-height: 1.65; color: #33414f; margin-bottom: 14px; }
.prose ul.bullets { margin: 0 0 16px; display: flex; flex-direction: column; gap: 9px; }
.prose ul.bullets li { display: flex; gap: 11px; font-size: 16px; line-height: 1.55; color: #33414f; }
.prose ul.bullets li .lucide { color: var(--green); flex: none; margin-top: 3px; font-size: 17px; }
.prose a.inline { color: var(--accent); font-weight: 700; }
.prose a.inline:hover { color: var(--accent-hover); }
.prose-table-wrap { overflow-x: auto; margin: 4px 0 20px; border: 1px solid var(--line); border-radius: var(--r-md); }
.prose-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 420px; }
.prose-table th, .prose-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line-2); }
.prose-table th { background: var(--bg-softer); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-2); }
.prose-table tr:last-child td { border-bottom: none; }
.prose-table .price { font-size: 14px; }
.article-cta { background: var(--dark); border-radius: var(--r-2xl); padding: 26px; color: #fff; margin-top: 28px; }
.article-cta h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.article-cta p { color: var(--dark-2); font-size: 15px; margin: 8px 0 18px; line-height: 1.55; }

/* ---------- Blog (blog.html) ---------- */
.post-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.post-card:hover { border-color: var(--accent); box-shadow: 0 12px 32px rgba(20, 32, 46, .10); }
.post-card__thumb { aspect-ratio: 16 / 9; background: repeating-linear-gradient(45deg, #eef1f4 0 12px, #e7ebef 12px 24px); display: flex; align-items: flex-end; padding: 10px; }
.post-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.post-card__cat { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.post-card__title { font-size: 18px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.post-card__excerpt { font-size: 14px; color: var(--muted); line-height: 1.5; }
.post-card__meta { margin-top: auto; padding-top: 4px; font-size: 13px; color: var(--muted-2); display: flex; align-items: center; gap: 8px; }
.post-card--feat .post-card__title { font-size: 22px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 28px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; border-radius: var(--r-md); display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; font-weight: 700; font-size: 14px; border: 1.5px solid var(--chip-border); color: var(--ink); background: #fff; }
.pagination a:hover { border-color: var(--ink); }
.pagination .is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .dots { border: none; background: none; color: var(--faint); min-width: 24px; }
.pagination .nav-prev { color: var(--faint); }

/* ---------- Hub: pasek kategorii ---------- */
.hub-modes { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 18px; }
.hub-modes a { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--chip-border); border-radius: var(--r-pill); padding: 9px 16px; font-weight: 700; font-size: 14px; color: var(--ink); }
.hub-modes a:hover { border-color: var(--ink); }
.hub-modes a.is-active { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent); }

/* ==========================================================================
   ETAP 2 — Tablet ≥ 640px
   ========================================================================== */
@media (min-width: 640px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card--feat { grid-column: 1 / -1; flex-direction: row; }
  .post-card--feat .post-card__thumb { aspect-ratio: auto; width: 46%; flex: none; }
  .post-card--feat .post-card__body { justify-content: center; }
  .result-mid__line { min-width: 90px; }
}

/* ==========================================================================
   ETAP 2 — Desktop ≥ 1024px
   ========================================================================== */
@media (min-width: 1024px) {
  .searchbar__field { padding: 6px 14px; }
  .searchbar__field.is-wide { flex: 1.4; }

  .results-layout { grid-template-columns: 264px 1fr; gap: 24px; }
  .filters-toggle { display: none; }
  .filters { display: block; position: sticky; top: 76px; }

  .result-card__inner { flex-direction: row; align-items: center; gap: 20px; }
  .result-trip { flex: 1; }
  .result-foot { border-top: none; padding-top: 0; border-left: 1px solid var(--line-2); padding-left: 20px; flex: none; gap: 20px; }
  .result-mid__line { min-width: 120px; }

  .article { grid-template-columns: 248px 1fr; gap: 44px; }
  .article__aside { position: sticky; top: 76px; }
  .article__head, .article__cover { grid-column: 1 / -1; }

  .post-grid { grid-template-columns: repeat(3, 1fr); }
  .post-card--feat .post-card__thumb { width: 50%; }
  .post-card--feat .post-card__title { font-size: 26px; }

  .quick-q { margin-top: 10px; }
}

/* ==========================================================================
   ETAP 3 — Przewoźnik · Rozkłady · Strona treściowa · Kontakt · 404
   Mobile-first, te same tokeny i komponenty.
   ========================================================================== */

/* ---------- Plakietka logo (hero przewoźnika) ---------- */
.op-hero { display: flex; flex-direction: column; gap: 18px; }
.op-hero__top { display: flex; align-items: center; gap: 16px; }
.brand-plaque {
  flex: none; width: 76px; height: 76px; border-radius: var(--r-lg);
  background: var(--bg-soft); border: 1px solid var(--line);
  display: grid; place-items: center; font-weight: 800; font-size: 17px;
  color: var(--muted); text-align: center; line-height: 1.05; white-space: pre-line;
}
.op-hero__titles { min-width: 0; }
.op-hero__badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--green); background: var(--green-soft); border-radius: var(--r-pill); padding: 4px 11px; margin-bottom: 8px; }

/* ---------- Udogodnienia (ikona + podpis) ---------- */
.amenities { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.amenity { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.amenity__ic { flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--accent-ink); color: var(--accent); display: grid; place-items: center; }
.amenity__txt b { display: block; font-size: 14px; font-weight: 800; }
.amenity__txt span { font-size: 12.5px; color: var(--muted-2); }

/* ---------- Tabela specyfikacji (bagaż/zwroty) → karty na mobile ---------- */
.spec-table { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.spec-row { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 14px 18px; border-top: 1px solid var(--line-2); }
.spec-row:first-child { border-top: none; }
.spec-row__key { font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 9px; }
.spec-row__key .lucide { color: var(--accent); font-size: 18px; }
.spec-row__val { font-size: 14px; color: #33414f; line-height: 1.5; }

/* ---------- Kroki (jak kupić) ---------- */
.steps { list-style: none; display: grid; grid-template-columns: 1fr; gap: 12px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; position: relative; }
.step__n { counter-increment: step; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); border: 1px solid var(--accent-border); color: var(--accent); font-weight: 800; display: grid; place-items: center; margin-bottom: 12px; }
.step__n::before { content: counter(step); }
.step h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ---------- Wyszukaj wg stacji (grupy alfabetyczne) ---------- */
.station-groups { display: grid; grid-template-columns: 1fr; gap: 18px; }
.station-group__letter { font-weight: 800; font-size: 15px; color: var(--accent); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }

/* ---------- Carrier logos row ---------- */
.logo-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.logo-card { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; transition: border-color .15s; }
.logo-card:hover { border-color: var(--accent); }
.logo-card__mark { flex: none; width: 48px; height: 48px; border-radius: 11px; background: var(--bg-soft); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 800; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.05; white-space: pre-line; }
.logo-card__txt b { display: block; font-size: 14px; font-weight: 800; }
.logo-card__txt span { font-size: 12.5px; color: var(--muted-2); }

/* ---------- Formularz (kontakt) ---------- */
.form { display: flex; flex-direction: column; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field > label { font-size: 13px; font-weight: 700; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--bg-softer);
  border: 1.5px solid var(--line-strong); border-radius: var(--r-md); padding: 12px 14px; width: 100%;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--faint); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-field textarea { min-height: 130px; resize: vertical; }
.form-consent { display: flex; align-items: flex-start; gap: 11px; font-size: 13.5px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.form-consent input { width: 19px; height: 19px; accent-color: var(--accent); flex: none; margin-top: 1px; }
.form-consent a { color: var(--accent); font-weight: 700; }

/* ---------- Karty kontaktu ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.contact-card { background: var(--bg-softer); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.contact-card__ic { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-ink); color: var(--accent); display: grid; place-items: center; margin-bottom: 12px; }
.contact-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 5px; }
.contact-card p { font-size: 14px; color: var(--muted); line-height: 1.55; }
.contact-card a.strong { color: var(--ink); font-weight: 700; }
.contact-card a.strong:hover { color: var(--accent); }

.contact-layout { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }

/* ---------- Strona 404 ---------- */
.error-hero { text-align: center; padding: 40px 0 12px; }
.error-code { font-size: clamp(80px, 22vw, 150px); font-weight: 800; line-height: .9; letter-spacing: -.04em; color: var(--ink); }
.error-code .accent { color: var(--accent); }
.error-hero h1 { font-size: clamp(24px, 6vw, 34px); font-weight: 800; letter-spacing: -.02em; margin-top: 10px; }
.error-hero p { color: var(--muted); font-size: 16px; margin-top: 10px; max-width: 520px; margin-inline: auto; line-height: 1.55; }
.error-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }

/* ---------- Prose wyśrodkowana (strony treściowe bez sidebaru) ---------- */
.prose--centered { max-width: 760px; margin-inline: auto; }
.callout { display: flex; gap: 13px; background: var(--accent-soft); border: 1px solid var(--accent-border); border-radius: var(--r-lg); padding: 16px 18px; margin: 4px 0 18px; }
.callout__ic { flex: none; color: var(--accent); }
.callout p { margin: 0; font-size: 15px; line-height: 1.6; color: #33414f; }
.callout p b { color: var(--ink); }

/* ==========================================================================
   ETAP 3 — Tablet ≥ 640px
   ========================================================================== */
@media (min-width: 640px) {
  .amenities { grid-template-columns: repeat(3, 1fr); }
  .spec-row { grid-template-columns: 240px 1fr; gap: 18px; align-items: baseline; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .logo-row { grid-template-columns: repeat(3, 1fr); }
  .form-row.two { grid-template-columns: 1fr 1fr; }
  .station-groups { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   ETAP 3 — Desktop ≥ 1024px
   ========================================================================== */
@media (min-width: 1024px) {
  .op-hero__top { gap: 20px; }
  .brand-plaque { width: 88px; height: 88px; font-size: 19px; }
  .amenities { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .logo-row { grid-template-columns: repeat(4, 1fr); }
  .station-groups { grid-template-columns: repeat(3, 1fr); }
  .contact-layout { grid-template-columns: 1.4fr 1fr; gap: 40px; }
}

/* ==========================================================================
   ETAP 4 — Loty (hub) · Kierunek · Okazje · Przesiadka
   Mobile-first, te same tokeny i komponenty. Wartości z API → placeholdery.
   ========================================================================== */

/* ---------- Placeholder pod dane automatyczne (Travelpayouts) ---------- */
.ph { color: var(--faint); font-weight: 700; font-variant-numeric: tabular-nums; }
.price .ph { color: var(--faint); }

/* ---------- Karty okazji na hubie (deal) ---------- */
.deal-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.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; }
.deal-card:hover { border-color: var(--accent); box-shadow: 0 12px 32px rgba(20, 32, 46, .10); }
.deal-card__photo { aspect-ratio: 16 / 10; background: repeating-linear-gradient(45deg, #eef1f4 0 12px, #e7ebef 12px 24px); display: flex; align-items: flex-start; justify-content: space-between; padding: 10px; }
.deal-card__photo .mini-tag { display: inline-flex; align-items: center; gap: 5px; font-family: ui-monospace, monospace; font-size: 10px; font-weight: 600; color: #8a98a6; background: rgba(255, 255, 255, .9); border-radius: 6px; padding: 3px 7px; }
.deal-badge { font-size: 11px; font-weight: 800; letter-spacing: .03em; color: #fff; background: var(--accent); border-radius: 6px; padding: 4px 8px; white-space: nowrap; }
.deal-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.deal-card__title { font-weight: 800; font-size: 16px; letter-spacing: -.01em; line-height: 1.28; }
.deal-card__meta { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--muted-2); flex-wrap: wrap; }
.deal-card__meta .count { font-weight: 700; color: var(--ink); }
.deal-card__meta .price { font-size: 15px; }
.deal-card__foot { margin-top: auto; padding-top: 4px; }
.deal-card__foot .btn { width: 100%; }

/* ---------- Siatka krajów / miast (flaga + nazwa) ---------- */
.geo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.geo-card { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; transition: border-color .15s; }
.geo-card:hover { border-color: var(--accent); }
.geo-card:hover .geo-card__name { color: var(--accent); }
.geo-flag { flex: none; width: 36px; height: 26px; border-radius: 5px; background: var(--bg-soft); border: 1px solid var(--line); display: grid; place-items: center; font-size: 10px; font-weight: 800; color: var(--muted); letter-spacing: .03em; overflow: hidden; }
.geo-card__name { font-weight: 700; font-size: 14px; min-width: 0; line-height: 1.3; }
.geo-card__name b { font-weight: 800; }
.geo-card .chev { margin-left: auto; color: var(--faint); flex: none; }

/* ---------- Kalendarz cen (heatmapa miesięcy) ---------- */
.price-cal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.price-cal__cell { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 8px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.price-cal__cell.is-cheapest { border-color: var(--green); background: var(--green-soft); }
.price-cal__month { font-size: 12px; font-weight: 700; color: var(--muted-2); text-transform: capitalize; }
.price-cal__cell.is-cheapest .price-cal__month { color: var(--green); }
.price-cal__bars { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 44px; }
.price-cal__bar { width: 60%; max-width: 34px; background: var(--accent-ink); border-radius: 4px 4px 0 0; }
.price-cal__bar.lvl-1 { height: 28%; }
.price-cal__bar.lvl-2 { height: 46%; }
.price-cal__bar.lvl-3 { height: 64%; }
.price-cal__bar.lvl-4 { height: 82%; }
.price-cal__bar.lvl-5 { height: 100%; }
.price-cal__cell.is-cheapest .price-cal__bar { background: var(--green); }
.price-cal__price { font-size: 13px; font-weight: 800; color: var(--ink); }
.price-cal__price .ph { color: var(--faint); }
.price-cal__cell.is-cheapest .price-cal__price { color: var(--green); }
.price-cal__note { margin-top: 12px; font-size: 13px; color: var(--muted-2); display: flex; align-items: center; gap: 8px; }
.price-cal__note .lucide { color: var(--green); }

/* ---------- Lista okazji (okazje.html) ---------- */
.okazja-list { display: flex; flex-direction: column; gap: 12px; }
.okazja { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.okazja:hover { border-color: var(--accent); box-shadow: var(--shadow-card); }
.okazja__photo { aspect-ratio: 16 / 9; flex: none; background: repeating-linear-gradient(45deg, #eef1f4 0 12px, #e7ebef 12px 24px); display: flex; align-items: flex-start; justify-content: space-between; padding: 10px; }
.okazja__photo .mini-tag { display: inline-flex; align-items: center; gap: 5px; font-family: ui-monospace, monospace; font-size: 10px; font-weight: 600; color: #8a98a6; background: rgba(255, 255, 255, .9); border-radius: 6px; padding: 3px 7px; }
.okazja__valid { font-size: 11px; font-weight: 700; color: var(--amber-text); background: var(--amber-soft); border-radius: 6px; padding: 4px 8px; white-space: nowrap; }
.okazja__body { padding: 15px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.okazja__route { font-weight: 800; font-size: 18px; letter-spacing: -.01em; display: flex; align-items: center; gap: 9px; }
.okazja__route .arr { color: #c2cad1; }
.okazja__meta { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted-2); }
.okazja__meta span { display: inline-flex; align-items: center; gap: 5px; }
.okazja__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: #cfd6dc; }
.okazja__meta .line { font-weight: 700; color: var(--ink); }
.okazja__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }
.okazja__price { display: flex; align-items: baseline; gap: 6px; }
.okazja__price .from { font-size: 12px; color: var(--muted-2); }
.okazja__price .price { font-size: 20px; }

/* ---------- Trasa po odcinkach (przesiadka) ---------- */
.legs { display: flex; flex-direction: column; }
.leg { display: flex; gap: 14px; }
.leg__rail { flex: none; width: 36px; display: flex; flex-direction: column; align-items: center; }
.leg__dot { flex: none; width: 36px; height: 36px; border-radius: 11px; background: var(--accent-ink); color: var(--accent); display: grid; place-items: center; }
.leg__node-dot { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 2px dashed var(--line-strong); color: var(--amber-text); display: grid; place-items: center; }
.leg__line { flex: 1; width: 2px; background: var(--line-strong); margin: 6px 0; }
.leg:last-child .leg__line { display: none; }
.leg__body { flex: 1; min-width: 0; padding-bottom: 14px; }
.leg__card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.leg__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.leg__route { font-weight: 800; font-size: 16px; letter-spacing: -.01em; }
.leg__route .arr { color: #c2cad1; }
.leg__price { font-weight: 800; font-size: 16px; color: var(--green); white-space: nowrap; }
.leg__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted-2); margin-bottom: 13px; }
.leg__meta .carrier { font-weight: 700; color: var(--ink); }
.leg__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: #cfd6dc; }
.leg__card .btn { width: 100%; }
.info-plate { display: flex; gap: 10px; align-items: flex-start; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-md); padding: 11px 13px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.info-plate .lucide { color: var(--muted-2); flex: none; margin-top: 1px; font-size: 17px; }
.leg__node { padding: 6px 0 18px; display: flex; align-items: center; }
.leg-transfer { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--amber-text); background: var(--amber-soft); border-radius: var(--r-pill); padding: 7px 13px; }

/* ---------- Alternatywa bez przesiadki ---------- */
.alt-card { display: flex; align-items: center; gap: 14px; background: var(--accent-soft); border: 1px solid var(--accent-border); border-radius: var(--r-lg); padding: 16px 18px; flex-wrap: wrap; }
.alt-card__ic { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.alt-card__body { flex: 1; min-width: 180px; }
.alt-card__title { font-weight: 800; font-size: 16px; }
.alt-card__meta { font-size: 13px; color: #7a5a36; margin-top: 3px; line-height: 1.5; }
.alt-card .btn { flex: none; }

/* ==========================================================================
   ETAP 4 — Tablet ≥ 640px
   ========================================================================== */
@media (min-width: 640px) {
  .deal-grid { grid-template-columns: repeat(2, 1fr); }
  .geo-grid { grid-template-columns: repeat(3, 1fr); }
  .price-cal { grid-template-columns: repeat(4, 1fr); }
  .okazja { flex-direction: row; align-items: stretch; }
  .okazja__photo { width: 210px; aspect-ratio: auto; }
  .alt-card { flex-wrap: nowrap; }
}

/* ==========================================================================
   ETAP 4 — Desktop ≥ 1024px
   ========================================================================== */
@media (min-width: 1024px) {
  .deal-grid { grid-template-columns: repeat(4, 1fr); }
  .geo-grid { grid-template-columns: repeat(4, 1fr); }
  .price-cal { grid-template-columns: repeat(6, 1fr); }
  .okazja__photo { width: 250px; }
  .okazja__route { font-size: 19px; }
}

/* ==========================================================================
   ETAP 5 — Stany wyszukiwarki · stany danych · komponenty prawne / email / system
   Mobile-first, te same tokeny. Komponenty gotowe do osadzenia w motywie WP.
   Overlaye (fixed) w pokazówkach są „uwięzione” w .demo-frame (transform).
   ========================================================================== */

:root { --red: #C0392B; --red-soft: #FBECEC; --red-border: #F3D2D2; --green-border: #BFE3CC; }

/* ---------- Strona-pokazówka (styleguide) ---------- */
.sg-tag { font-size: 13px; font-weight: 700; color: var(--muted-2); }
.specimens { display: flex; flex-direction: column; gap: 32px; }
.specimen__label { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; }
.specimen__label .n { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 12px; }
.specimen__hint { font-size: 13.5px; color: var(--muted); margin: -2px 0 14px; max-width: 760px; line-height: 1.55; }
.demo-frame { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-soft); transform: translateZ(0); }
.demo-frame--pad { padding: 28px; display: flex; justify-content: center; align-items: flex-start; }
.demo-frame--sm { min-height: 300px; }
.demo-frame--md { min-height: 460px; }
.demo-frame--phone { max-width: 390px; margin-inline: auto; min-height: 600px; background: #fff; }
.demo-frame--open { overflow: visible; transform: none; }
.demo-fill { width: 100%; }
.demo-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.demo-dim { position: absolute; inset: 0; background: rgba(20, 32, 46, .45); z-index: 1; }

/* ---------- Współdzielone: spinner / switch / segment / input ---------- */
.spinner { display: inline-block; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--line-strong); border-top-color: var(--accent); animation: tz-spin .7s linear infinite; vertical-align: -.2em; }
.spinner--lg { width: 36px; height: 36px; border-width: 3px; }
.spinner--light { border-color: rgba(255, 255, 255, .4); border-top-color: #fff; }
@keyframes tz-spin { to { transform: rotate(360deg); } }

.switch { position: relative; display: inline-flex; flex: none; width: 46px; height: 26px; cursor: pointer; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch__track { flex: 1; border-radius: var(--r-pill); background: var(--line-strong); transition: background .15s; position: relative; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(20, 32, 46, .25); transition: transform .15s; }
.switch input:checked + .switch__track { background: var(--accent); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:disabled + .switch__track { opacity: .45; }

.seg { display: inline-flex; border: 1.5px solid var(--chip-border); border-radius: var(--r-pill); overflow: hidden; background: #fff; }
.seg button { padding: 9px 18px; font-size: 13px; font-weight: 700; color: var(--muted); }
.seg button[aria-selected="true"] { background: var(--ink); color: #fff; }

.input { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--bg-softer); border: 1.5px solid var(--line-strong); border-radius: var(--r-md); padding: 12px 14px; }
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.is-error { border-color: var(--red); background: var(--red-soft); }

/* ---------- 1. Popovery wyszukiwarki ---------- */
.popover { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 18px 50px rgba(20, 32, 46, .16); overflow: hidden; }

.ac__search { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-bottom: 1px solid var(--line-2); }
.ac__search .lucide { color: var(--faint); flex: none; }
.ac__search input { flex: 1; border: none; outline: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); background: none; }
.ac__search input::placeholder { color: var(--faint); font-weight: 500; }
.ac__search .clear { flex: none; color: var(--faint); }
.ac__search .clear:hover { color: var(--ink); }
.ac__sections { max-height: 330px; overflow-y: auto; }
.ac__section { padding: 8px 0; }
.ac__section + .ac__section { border-top: 1px solid var(--line-2); }
.ac__section-title { padding: 6px 16px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.ac__item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 16px; text-align: left; }
.ac__item:hover, .ac__item.is-active { background: var(--bg-softer); }
.ac__item-ic { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--bg-soft); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.ac__item-main { flex: 1; min-width: 0; }
.ac__item-name { font-weight: 700; font-size: 15px; }
.ac__item-sub { font-size: 12.5px; color: var(--muted-2); }
.ac__item-code { flex: none; font-weight: 800; font-size: 12px; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; }

.cal { width: 100%; max-width: 340px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 18px 50px rgba(20, 32, 46, .16); padding: 16px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal__title { font-weight: 800; font-size: 16px; text-transform: capitalize; }
.cal__nav { width: 34px; height: 34px; border-radius: 9px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: var(--muted); }
.cal__nav:hover { border-color: var(--ink); color: var(--ink); }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal__dow { text-align: center; font-size: 11px; font-weight: 700; color: var(--faint); text-transform: uppercase; padding: 4px 0 8px; }
.cal__day { position: relative; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1; }
.cal__day:hover { background: var(--bg-soft); }
.cal__day.is-out { color: var(--faint); opacity: .5; }
.cal__day.is-range { background: var(--accent-soft); border-radius: 0; }
.cal__day.is-start { background: var(--accent); color: #fff; border-radius: 9px 0 0 9px; }
.cal__day.is-end { background: var(--accent); color: #fff; border-radius: 0 9px 9px 0; }
.cal__day.is-selected { background: var(--accent); color: #fff; }
.cal__day .cheap { font-size: 9px; font-weight: 800; color: var(--green); margin-top: 3px; }
.cal__day.is-start .cheap, .cal__day.is-end .cheap, .cal__day.is-selected .cheap { color: #fff; }
.cal__foot { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.cal__legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted-2); }
.cal__legend .swatch { width: 12px; height: 12px; border-radius: 3px; }
.cal__legend .swatch.sel { background: var(--accent); }
.cal__legend .swatch.cheap { background: var(--green); }

.pax { width: 100%; max-width: 360px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 18px 50px rgba(20, 32, 46, .16); padding: 6px 18px 18px; }
.pax__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.pax__label b { display: block; font-weight: 800; font-size: 15px; }
.pax__label span { font-size: 12.5px; color: var(--muted-2); }
.stepper { display: inline-flex; align-items: center; gap: 14px; }
.stepper__btn { width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: var(--ink); }
.stepper__btn:hover { border-color: var(--ink); }
.stepper__btn:disabled { color: var(--faint); border-color: var(--line); cursor: not-allowed; }
.stepper__val { min-width: 18px; text-align: center; font-weight: 800; font-size: 16px; }
.pax__class { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0 4px; }
.pax__class-label { font-weight: 800; font-size: 15px; }
.pax .btn { width: 100%; margin-top: 14px; }

/* Bottom-sheet (mobilne wersje popoverów) */
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: #fff; border-radius: 20px 20px 0 0; box-shadow: 0 -20px 50px rgba(20, 32, 46, .2); display: flex; flex-direction: column; max-height: 92%; }
.sheet__handle { width: 40px; height: 4px; border-radius: var(--r-pill); background: var(--line-strong); margin: 10px auto 2px; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 18px 14px; border-bottom: 1px solid var(--line-2); }
.sheet__head h3 { font-size: 17px; font-weight: 800; }
.sheet__body { padding: 12px 18px 16px; overflow-y: auto; }
.sheet__foot { padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); }
.sheet .popover, .sheet .cal, .sheet .pax { max-width: none; border: none; box-shadow: none; border-radius: 0; }
.sheet .cal, .sheet .pax { padding: 0; }

/* ---------- 2. Stany danych ---------- */
.skel { position: relative; overflow: hidden; background: #e7ebef; border-radius: 7px; }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .65), transparent); animation: tz-shimmer 1.3s infinite; }
@keyframes tz-shimmer { 100% { transform: translateX(100%); } }
.skel-line { height: 12px; }
.skel-line.tall { height: 18px; }
.skel-line.w-30 { width: 30%; }
.skel-line.w-45 { width: 45%; }
.skel-line.w-60 { width: 60%; }
.skel-line.w-80 { width: 80%; }
.skel-photo { width: 100%; aspect-ratio: 16 / 10; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.skel-pill { width: 90px; height: 34px; border-radius: 10px; }
.skel-circle { width: 42px; height: 42px; border-radius: 11px; flex: none; }
.skel-stack { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; }

.state { text-align: center; padding: 44px 24px; max-width: 460px; margin-inline: auto; }
.state__ic { width: 64px; height: 64px; border-radius: 18px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted-2); margin: 0 auto 18px; }
.state__ic .lucide { font-size: 30px; }
.state--error .state__ic { background: var(--red-soft); border-color: var(--red-border); color: var(--red); }
.state__title { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.state__desc { font-size: 15px; color: var(--muted); line-height: 1.55; margin-top: 8px; }
.state__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }

.interstitial { position: fixed; inset: 0; z-index: 100; background: rgba(255, 255, 255, .93); backdrop-filter: blur(4px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; }
.interstitial__brand { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.interstitial__brand .brand__mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; }
.interstitial__brand .brand__name { font-weight: 800; font-size: 19px; letter-spacing: -.03em; }
.interstitial__title { font-size: 18px; font-weight: 800; }
.interstitial__sub { font-size: 14px; color: var(--muted); max-width: 330px; line-height: 1.55; }
.interstitial__partner { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted-2); }

/* ---------- Toast (współdzielone) ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 110; display: flex; align-items: flex-start; gap: 12px; width: calc(100% - 32px); max-width: 400px; background: var(--ink); color: #fff; border-radius: var(--r-md); padding: 14px 15px; box-shadow: 0 16px 40px rgba(20, 32, 46, .3); }
.toast__ic { flex: none; display: grid; place-items: center; margin-top: 1px; }
.toast__body { flex: 1; min-width: 0; }
.toast__title { font-weight: 800; font-size: 14px; }
.toast__msg { font-size: 13px; color: rgba(255, 255, 255, .8); margin-top: 2px; line-height: 1.45; }
.toast__close { flex: none; color: rgba(255, 255, 255, .7); }
.toast__close:hover { color: #fff; }
.toast--success .toast__ic { color: #6EE7A8; }
.toast--error .toast__ic { color: #FF9B8A; }
.toast--info .toast__ic { color: #F6B97A; }
.toast--static { position: static; transform: none; }

/* ---------- 3. Komponenty prawne ---------- */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 92; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -12px 40px rgba(20, 32, 46, .12); padding: 16px var(--pad); }
.cookie-bar__inner { max-width: var(--maxw); margin-inline: auto; display: flex; flex-direction: column; gap: 14px; }
.cookie-bar__text { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.cookie-bar__text b { color: var(--ink); }
.cookie-bar__text a { color: var(--accent); font-weight: 700; }
.cookie-bar__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.modal { position: fixed; inset: 0; z-index: 96; display: flex; align-items: flex-end; justify-content: center; }
.modal__panel { position: relative; z-index: 1; width: 100%; max-width: 520px; background: #fff; border-radius: 20px 20px 0 0; max-height: 92%; display: flex; flex-direction: column; box-shadow: 0 -20px 60px rgba(20, 32, 46, .25); }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line-2); }
.modal__head h3 { font-size: 18px; font-weight: 800; }
.modal__body { padding: 4px 20px 12px; overflow-y: auto; }
.modal__foot { display: flex; gap: 10px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); }
.modal__foot .btn { flex: 1; }

.consent-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-2); }
.consent-row:first-child { border-top: none; }
.consent-row__txt b { display: block; font-weight: 800; font-size: 15px; margin-bottom: 3px; }
.consent-row__txt span { font-size: 13px; color: var(--muted); line-height: 1.5; }
.consent-lock { font-size: 12px; font-weight: 700; color: var(--green); display: inline-flex; align-items: center; gap: 5px; flex: none; white-space: nowrap; }

.aff { position: relative; display: inline-flex; align-items: center; }
.aff__badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--muted-2); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; cursor: help; }
.aff__badge .lucide { font-size: 13px; }
.aff__tip { position: absolute; bottom: calc(100% + 9px); left: 50%; transform: translateX(-50%); width: 220px; background: var(--ink); color: #fff; font-size: 12px; line-height: 1.5; border-radius: 10px; padding: 10px 12px; box-shadow: 0 12px 30px rgba(20, 32, 46, .3); z-index: 5; }
.aff__tip::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--ink); }

/* ---------- 4. Email ---------- */
.news { background: var(--dark); color: #fff; border-radius: var(--r-2xl); padding: 28px; }
.news__title { font-size: clamp(20px, 4vw, 26px); font-weight: 800; letter-spacing: -.02em; margin-top: 12px; }
.news__desc { font-size: 14px; color: var(--dark-2); margin-top: 8px; line-height: 1.55; max-width: 460px; }
.news__form { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.news__inputrow { display: flex; flex-direction: column; gap: 10px; }
.news__field { flex: 1; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: var(--r-md); padding: 0 6px 0 14px; }
.news__field .lucide { color: var(--faint); flex: none; }
.news__field input { flex: 1; border: none; outline: none; font: inherit; font-size: 15px; color: var(--ink); background: none; padding: 13px 0; }
.news__field input::placeholder { color: var(--faint); }
.news__field .btn { flex: none; }
.news__consent { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; color: var(--dark-2); line-height: 1.5; cursor: pointer; }
.news__consent input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; margin-top: 1px; }
.news__consent a { color: #F6B97A; font-weight: 700; }
.news--compact { background: var(--bg-softer); color: var(--ink); border: 1px solid var(--line); padding: 20px; border-radius: var(--r-lg); }
.news--compact .news__title { font-size: 18px; margin-top: 0; }
.news--compact .news__desc { color: var(--muted); }
.news--compact .news__field { border: 1.5px solid var(--line-strong); }
.news--compact .news__consent { color: var(--muted); }
.news--compact .news__consent a { color: var(--accent); }
.news__success { display: flex; align-items: center; gap: 14px; }
.news__success-ic { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.news__success b { font-size: 17px; font-weight: 800; display: block; }
.news__success span { font-size: 14px; opacity: .8; }

.watch-btn { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); padding: 9px 16px; font-weight: 700; font-size: 14px; color: var(--ink); background: #fff; }
.watch-btn:hover { border-color: var(--accent); color: var(--accent); }
.watch-btn .lucide { font-size: 17px; }
.watch-btn.is-on { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent); }
.watch-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; max-width: 420px; box-shadow: var(--shadow-card); }
.watch-card h3 { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.watch-card h3 .lucide { color: var(--accent); }
.watch-card > p { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 14px; }
.watch-form { display: flex; flex-direction: column; gap: 10px; }
.watch-confirm { display: flex; gap: 12px; align-items: flex-start; background: var(--green-soft); border: 1px solid var(--green-border); border-radius: var(--r-md); padding: 13px 15px; }
.watch-confirm .lucide { color: var(--green); flex: none; margin-top: 1px; }
.watch-confirm b { font-weight: 800; font-size: 14px; }
.watch-confirm p { font-size: 13px; color: #2f6b45; margin: 2px 0 0; line-height: 1.5; }

/* ---------- 5. System UI ---------- */
.nav-drawer { position: fixed; top: 0; bottom: 0; right: 0; z-index: 95; width: min(86%, 360px); background: #fff; box-shadow: -20px 0 50px rgba(20, 32, 46, .25); display: flex; flex-direction: column; }
.nav-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.nav-drawer__links { display: flex; flex-direction: column; padding: 8px 0; }
.nav-drawer__links a { display: flex; align-items: center; gap: 13px; padding: 14px 20px; font-weight: 700; font-size: 16px; }
.nav-drawer__links a .lucide { color: var(--muted-2); font-size: 20px; }
.nav-drawer__links a.is-active { color: var(--accent); }
.nav-drawer__links a.is-active .lucide { color: var(--accent); }
.nav-drawer__foot { margin-top: auto; padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.nav-drawer__foot .btn { width: 100%; }

.form-field.is-error input, .form-field.is-error textarea, .form-field.is-error select { border-color: var(--red); background: var(--red-soft); }
.form-error { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--red); }
.form-error .lucide { font-size: 15px; }
.form-success { display: flex; gap: 13px; align-items: flex-start; background: var(--green-soft); border: 1px solid var(--green-border); border-radius: var(--r-md); padding: 14px 16px; }
.form-success .lucide { color: var(--green); flex: none; margin-top: 1px; }
.form-success b { font-weight: 800; font-size: 15px; }
.form-success p { font-size: 13.5px; color: #2f6b45; margin-top: 2px; line-height: 1.5; }
.btn-primary:disabled, .btn-primary.is-disabled { background: var(--line-strong); cursor: not-allowed; }
.btn-primary:disabled:hover, .btn-primary.is-disabled:hover { background: var(--line-strong); }

/* ==========================================================================
   ETAP 5 — Tablet ≥ 640px
   ========================================================================== */
@media (min-width: 640px) {
  .news__inputrow { flex-direction: row; }
  .modal { align-items: center; padding: 24px; }
  .modal__panel { border-radius: var(--r-2xl); max-height: 86%; }
}

/* ==========================================================================
   ETAP 5 — Desktop ≥ 1024px
   ========================================================================== */
@media (min-width: 1024px) {
  .cookie-bar__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 28px; }
  .cookie-bar__text { flex: 1; }
  .cookie-bar__actions { flex: none; }
}

/* ===== Trazo theme — production overrides (po dostawie designu) ===== */
.aff__tip { opacity: 0; visibility: hidden; transition: opacity .15s ease; pointer-events: none; }
.aff:hover .aff__tip, .aff:focus-within .aff__tip { opacity: 1; visibility: visible; }
[hidden] { display: none !important; }

/* ===== Mobile nav drawer (wysuwane menu) ===== */
.nav-drawer { transform: translateX(100%); transition: transform .25s ease; will-change: transform; }
body.nav-open .nav-drawer { transform: translateX(0); }
.nav-overlay { position: fixed; inset: 0; background: rgba(20, 32, 46, .45); z-index: 94; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; }
body.nav-open .nav-overlay { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }

/* ===== Toast stack (powiadomienia, auto-dismiss) ===== */
.toast-stack { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 110; display: flex; flex-direction: column; gap: 10px; width: calc(100% - 32px); max-width: 400px; pointer-events: none; }
.toast-stack .toast { position: static; left: auto; bottom: auto; transform: none; width: 100%; max-width: none; opacity: 0; translate: 0 12px; transition: opacity .2s ease, translate .2s ease; pointer-events: auto; }
.toast-stack .toast.is-in { opacity: 1; translate: 0 0; }

/* ===== SEO-лонгрид (раскрывающийся текст внизу лендинга, heleum-style) ===== */
.seo-longread { padding-block: 30px 40px; border-top: 1px solid var(--line); background: var(--bg-softer); }
.seo-longread__title { font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; }
.seo-longread__teaser p, .seo-longread__body p { color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 12px; max-width: 78ch; }
.seo-longread__body { margin-top: 6px; }
.seo-longread__body a { color: var(--accent); font-weight: 600; }
.seo-longread__body a:hover { color: var(--accent-hover); text-decoration: underline; }
.seo-longread__kw { font-size: 13.5px; color: var(--muted-2); }
.seo-longread__more { margin-top: 4px; }
.seo-longread__more > summary {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none;
  color: var(--accent); font-weight: 700; font-size: 14px; padding: 6px 0; user-select: none;
}
.seo-longread__more > summary::-webkit-details-marker { display: none; }
.seo-longread__more > summary:hover { color: var(--accent-hover); }
.seo-longread__more > summary i { width: 16px; height: 16px; transition: transform .2s ease; }
.seo-longread__more[open] > summary i { transform: rotate(180deg); }
.seo-longread__more > summary .seo-longread__more-close { display: none; }
.seo-longread__more[open] > summary .seo-longread__more-open { display: none; }
.seo-longread__more[open] > summary .seo-longread__more-close { display: inline; }

/* ===== Блок «Z magazynu» на лендингах + пагинация paginate_links ===== */
.magazyn-block { border-top: 1px solid var(--line); padding-top: 30px; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .page-numbers.dots { border: none; background: none; color: var(--faint); min-width: 24px; }
.empty-state { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty-state i { width: 40px; height: 40px; color: var(--muted-2); margin-bottom: 10px; }
.empty-state p { font-size: 15px; }
.empty-state__search { max-width: 420px; margin: 16px auto 0; }
.empty-state__search input[type="search"], .empty-state__search input[type="text"] { width: 100%; padding: 12px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); font-size: 15px; }

/* Реальное фото в hero маршрута (если задано Featured image) — заполняет плашку */
.hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }

/* Реальное фото в карточке статьи и обложке — заполняет блок без серой рамки-заглушки */
.post-card__thumb:has(img) { padding: 0; background: none; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article__cover:has(img) { padding: 0; background: none; }
.article__cover img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }

/* Сырой HTML из контента статьи (the_content) в .prose: списки, таблицы, ссылки */
.prose ul:not(.bullets) { margin: 2px 0 16px; padding-left: 22px; list-style: disc; }
.prose ol { margin: 2px 0 16px; padding-left: 22px; }
.prose ul:not(.bullets) li, .prose ol li { font-size: 16px; line-height: 1.6; color: #33414f; margin-bottom: 7px; }
.prose a:not(.inline):not(.btn) { color: var(--accent); font-weight: 600; }
.prose a:not(.inline):not(.btn):hover { color: var(--accent-hover); text-decoration: underline; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 10px 0 22px; border: 1px solid var(--line); border-radius: var(--r-md); }
.prose table th, .prose table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line-2); }
.prose table th { background: var(--bg-softer); font-weight: 800; font-size: 12.5px; color: var(--ink); }
.prose table tr:last-child td { border-bottom: none; }

/* ===== Карта маршрута (Leaflet/OSM) ===== */
.bilety-map { position: relative; z-index: 0; height: 380px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); }
.leaflet-container { font: inherit; }
.map-note { font-size: 13px; color: var(--muted-2); margin-top: 8px; }

/* ===== Destination-блок (туристические направления) ===== */
.dest-block .section-title { margin: 24px 0 12px; }
.dest-intro { color: var(--muted); font-size: 15px; line-height: 1.6; margin-bottom: 14px; max-width: 78ch; }
.dest-see { display: grid; gap: 10px; }
@media (min-width: 700px) { .dest-see { grid-template-columns: repeat(2, 1fr); } }
.dest-see__item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; }
.dest-see__item b { display: block; font-size: 15px; }
.dest-see__item span { font-size: 13.5px; color: var(--muted); }
.dest-stay { display: flex; flex-direction: column; gap: 8px; }
.dest-stay__item { font-size: 14.5px; color: var(--muted); }
.dest-stay__item b { color: var(--ink); }
.dest-table { width: 100%; border-collapse: collapse; font-size: 14px; border: 1px solid var(--line); border-radius: var(--r-md); margin: 6px 0 14px; }
.dest-table th, .dest-table td { padding: 10px 13px; text-align: left; border-bottom: 1px solid var(--line-2); }
.dest-table th { background: var(--bg-softer); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-2); }
.dest-table tr:last-child td { border-bottom: none; }
.dest-season { font-size: 14px; color: var(--muted); }

/* ===== Fast facts «W pigułce» + «Skąd jeszcze dojedziesz?» ===== */
.fast-facts { background: var(--bg-softer); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; }
.fast-facts__title { font-size: 18px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.fast-facts__list { display: flex; flex-direction: column; gap: 7px; }
.fast-facts__list li { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.fast-facts__list b { color: var(--ink); font-weight: 700; }
.origins-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .origins-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .origins-grid { grid-template-columns: repeat(3, 1fr); } }
.origin-card { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.origin-card:hover { border-color: var(--accent); box-shadow: 0 8px 22px rgba(20,32,46,.08); }
.origin-card__head { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 15px; flex: 1; min-width: 0; }
.origin-card__head .lucide { width: 16px; height: 16px; color: var(--muted-2); flex: none; }
.origin-card__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.origin-card__price { font-weight: 800; color: var(--accent); font-size: 14px; }
.origin-card__dur { font-size: 12px; color: var(--muted-2); }
.origin-card__chev { color: var(--muted-2); font-weight: 700; flex: none; }

/* ===== Фигуры (фото/схемы) в теле статьи ===== */
.prose figure, .prose .prose-fig { margin: 20px 0 24px; }
.prose figure img { width: 100%; border-radius: var(--r-lg); display: block; }
.prose figcaption { font-size: 13px; color: var(--muted-2); margin-top: 8px; text-align: center; }
.prose-fig__ph { aspect-ratio: 16 / 9; border-radius: var(--r-lg); background: repeating-linear-gradient(45deg, #eef1f4 0 12px, #e7ebef 12px 24px); display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted-2); font-weight: 700; font-size: 13px; }
.prose-fig__ph .lucide, .prose-fig__ph svg { width: 18px; height: 18px; }

/* ===== Сквозной поиск билетов (стандартный вид, функциональный) ===== */
.search-cta__box { background: var(--bg-softer); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 22px; }
.search-cta__title { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.search-cta__sub { color: var(--muted); font-size: 14px; margin: 6px 0 14px; }
.article__search { grid-column: 1 / -1; margin: 2px 0 6px; }
.search-live__fields { display: flex; flex-wrap: wrap; gap: 9px; align-items: stretch; }
.search-live__fields > .field { flex: 1 1 150px; }
.search-live__fields > .btn-primary { flex: 0 0 auto; }
.search--live .field { cursor: text; }
.search--live .field:focus-within { border-color: var(--accent); }
.field__input { border: none; background: transparent; font-size: 16px; font-weight: 700; font-family: inherit; padding: 0; width: 100%; color: var(--ink); min-width: 0; }
.field__input:focus { outline: none; }
.field__input::placeholder { color: var(--muted-2); font-weight: 600; }

/* ===== Brand mark → poziomy „kropka → strzałka" (1:1 z favicon) ===== */
.brand__mark{font-size:0!important;line-height:0;background-color:var(--accent);background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='4.2' cy='12' r='2.4' fill='white'/><rect x='3.5' y='10.6' width='13' height='2.8' rx='1.4' fill='white'/><path d='M16.2 7.2 L21 12 L16.2 16.8 Z' fill='white'/></svg>");background-repeat:no-repeat;background-position:center;background-size:66%;}

/* ===== Footer credit „Powered by" ===== */
.footer-bottom__left{display:flex;flex-direction:column;gap:6px;}
.footer-credit{font-size:12px;color:var(--dark-3);line-height:1.5;margin:0;}
.footer-credit a{color:#cdd5dd;font-weight:700;text-decoration:none;border-bottom:1px solid var(--dark-line);transition:color .15s ease,border-color .15s ease;}
.footer-credit a:hover{color:var(--accent);border-color:var(--accent);}

/* ===== Back-to-top (особенно для моб.) ===== */
.to-top{position:fixed;right:16px;bottom:84px;z-index:69;width:46px;height:46px;border-radius:50%;background:#fff;color:var(--ink);border:1px solid var(--line);box-shadow:var(--shadow-pop);display:grid;place-items:center;cursor:pointer;opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .2s ease,transform .2s ease,visibility .2s ease,background .15s ease,color .15s ease,border-color .15s ease;}
.to-top.is-visible{opacity:1;visibility:visible;transform:none;}
.to-top:hover{background:var(--accent);color:#fff;border-color:var(--accent);}
.to-top .lucide{width:22px;height:22px;}
@media(min-width:768px){.to-top{right:28px;bottom:96px;}}
