/* City Sightseeing Warsaw — układ motywu. Kolory i odstępy z tokens.css (księga „Warsaw Global”). */

/* ---------- Podstawy ---------- */
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-body); }
img { max-width: 100%; height: auto; }
.csw-container { max-width: var(--container); margin-inline: auto; padding-inline: max(16px, 3vw); box-sizing: border-box; }
.csw-muted { color: var(--ink-muted); }
.csw-lead { font-size: 17px; line-height: 1.6; max-width: 680px; }
.csw-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 12px 16px; background: var(--ink); color: var(--surface); border-radius: var(--radius-xs); }
.csw-skip:focus { left: 8px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.csw-hide-mobile { }
h1, h2, h3 { text-wrap: balance; }

/* ---------- Pasek zaufania ---------- */
.csw-trustbar { background: var(--red); color: var(--on-red); border-bottom: 1px solid rgba(255, 255, 255, .25); font-size: 14px; line-height: 20px; }
.csw-trustbar__inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 32px; padding-block: 8px; }
.csw-trustbar__item { display: inline-flex; align-items: center; gap: 8px; }
.csw-trustbar .csw-stars { color: var(--star); }

/* ---------- Nagłówek ---------- */
.csw-site-header { position: sticky; top: 0; z-index: 40; background: var(--red); color: var(--on-red); box-shadow: var(--shadow-lift); }
.admin-bar .csw-site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.csw-site-header__inner { display: flex; align-items: center; gap: var(--space-4); min-height: 72px; }
.csw-site-header__brand { display: block; flex: none; }
/* Mocniejszy selektor: WooCommerce ma „.woocommerce-page img { height: auto }” (koszyk, zamówienie, konto). */
.csw-site-header__brand img.csw-header__logo { display: block; height: 40px; width: auto; max-width: none; }
.csw-nav { display: flex; align-items: center; gap: var(--space-4); margin-left: var(--space-6); }
.csw-nav__list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.csw-nav__list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: var(--radius-pill); color: var(--on-red); font-size: 15px; font-weight: 500; text-decoration: none; }
.csw-nav__list a:hover, .csw-nav__list .current-menu-item > a { background: var(--red-strong); color: var(--on-red); }
.csw-nav__cta { display: none; }
.csw-site-header__tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.csw-site-header a:focus-visible, .csw-site-header button:focus-visible, .csw-trustbar a:focus-visible { outline-color: var(--on-red); }
.csw-cart { position: relative; text-decoration: none; }
.csw-cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--star); color: var(--ink); font: 700 11px/18px var(--font-body); text-align: center; box-sizing: border-box; }
.csw-menu-toggle { display: none !important; }
.csw-lang { position: relative; }
.csw-lang__list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px; margin: 0; padding: 8px; list-style: none; background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.csw-lang__list a { display: block; padding: 10px 12px; border-radius: var(--radius-xs); color: var(--ink); text-decoration: none; }
.csw-lang__list a:hover { background: var(--surface-alt); }

/* ---------- Pasek promocji ---------- */
.csw-promo a { color: var(--on-purple); }

/* ---------- Bloki i sekcje ---------- */
.csw-blocks > * { margin-block: 0; }
/* Siatki z bloku Grupa: WordPress dodaje górny margines kolejnym dzieciom, w siatce go zerujemy. */
.csw-tickets > *, .csw-facts > *, .csw-benefits > *, .csw-stoprow > * { margin-block: 0 !important; }
.csw-section { padding-block: var(--space-12); }
.csw-section--tight { padding-block: var(--space-2) var(--space-12); }
.csw-section--alt { background: var(--surface-alt); }
.csw-section--dark { background: var(--ink); color: var(--surface); }
.csw-section--dark h2, .csw-section--dark p { color: var(--surface); }
.csw-section > h2 + .csw-muted { margin-top: 4px; }
.csw-section__head { align-items: center; }
.csw-badge { display: inline-block; justify-self: start; width: fit-content; margin: 0; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--star); color: var(--ink); font-size: 12px; font-weight: 700; line-height: 16px; }

/* Lista z zielonym znakiem ✓ (ikona check_circle jako maska). */
.csw-checklist { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 20px; }
.csw-checklist li { position: relative; padding-left: 28px; }
.csw-checklist li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 20px; height: 20px; background: var(--success);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Intro i karta ceny ---------- */
.csw-hero { margin-block: 0 !important; }
.csw-intro__cols { gap: var(--space-8); align-items: flex-start; }
.csw-intro__text { flex: 999 1 560px !important; min-width: 0; }
.csw-intro__aside { flex: 1 1 320px !important; max-width: 420px; }
.csw-pricecard { display: grid; gap: var(--space-3); padding: var(--space-6); border: 1px solid var(--line-soft); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-card); }
.csw-pricecard > * { margin: 0; }
.csw-pricecard__from { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-muted); }
.csw-pricecard__price { font-family: var(--font-heading); font-size: 36px; line-height: 40px; font-weight: 900; font-variant-numeric: tabular-nums; }
.csw-pricecard__cta .wp-block-button__link { min-height: 56px; font-size: 20px; display: flex; align-items: center; justify-content: center; }

/* ---------- Fakty ---------- */
.csw-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-3); }
.csw-fact > p { margin: 0; }
.csw-fact > .csw-ico { color: var(--red); }

/* ---------- Bilety (karta z perforacją) ---------- */
/* 4 kolumny, potem 2, potem 1, żeby żaden bilet nie został sam w rzędzie. */
.csw-tickets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }
@media (max-width: 1100px) { .csw-tickets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .csw-tickets { grid-template-columns: minmax(0, 1fr); } }
.csw-ticket {
  --foot: 96px; --notch: 12px;
  display: grid; grid-template-rows: 1fr var(--foot); gap: 0 !important;
  border: 1px solid var(--line-soft); border-radius: var(--radius-md); background: var(--surface); color: var(--ink);
  -webkit-mask: radial-gradient(circle var(--notch) at 0 calc(100% - var(--foot)), #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--notch) at 100% calc(100% - var(--foot)), #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle var(--notch) at 0 calc(100% - var(--foot)), #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--notch) at 100% calc(100% - var(--foot)), #0000 98%, #000) right / 51% 100% no-repeat;
}
.csw-ticket > * { margin: 0 !important; }
.csw-ticket--featured { border: 2px solid var(--red); }
.csw-ticket__body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); }
.csw-ticket__body > * { margin: 0 !important; }
.csw-ticket__top { min-height: 32px; }
.csw-ticket__top > * { margin: 0 !important; }
.csw-ticket__dur { font-family: var(--font-heading); font-size: 32px; line-height: 32px; font-weight: 900; color: var(--red); font-variant-numeric: tabular-nums; }
.csw-ticket__title { font-size: 20px; }
.csw-ticket__foot { align-items: center; padding: 0 var(--space-6); border-top: 2px dashed var(--line-soft); }
.csw-ticket__foot > * { margin: 0 !important; }
.csw-ticket__price { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-muted); }
.csw-ticket__price strong { display: inline-block; font-family: var(--font-heading); font-size: 30px; line-height: 32px; font-weight: 900; color: var(--ink); white-space: nowrap; }
.csw-ticket .wp-block-button__link { white-space: nowrap; }

/* ---------- Korzyści ---------- */
.csw-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-6); }
.csw-benefit { display: grid; grid-template-columns: 32px 1fr; column-gap: 14px; row-gap: 4px; align-items: start; }
.csw-benefit > * { margin: 0 !important; grid-column: 2; }
.csw-benefit > .csw-ico { grid-column: 1; grid-row: 1 / span 2; color: var(--red); }
.csw-benefit h3 { font-size: 18px; }
.csw-benefit p { font-size: 14px; line-height: 1.45; }

/* ---------- Trasy ---------- */
.csw-routes { gap: var(--space-8); }
.csw-routes__lines { display: grid; gap: var(--space-6); align-content: start; }
.csw-route { --line: var(--route-red); display: grid; gap: var(--space-3); }
.csw-route > * { margin: 0 !important; }
.csw-route--blue { --line: var(--route-blue); }
.csw-route__name { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; }
.csw-route__name::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 4px solid var(--line); box-sizing: border-box; }
.csw-route__stops { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.csw-route__stops li { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line-soft); font-size: 14px; }
.csw-route__stops li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.csw-map { display: grid; place-items: center; aspect-ratio: 4 / 3; max-width: 100%; padding: var(--space-6); border-radius: var(--radius-md); background: var(--line); text-align: center; box-sizing: border-box; }

/* ---------- Przystanki ---------- */
.csw-scroll-nav { display: flex; gap: 8px; }
.csw-round-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: var(--radius-round); border: 1px solid var(--line-soft); background: var(--surface); color: var(--ink); cursor: pointer; }
.csw-round-btn:hover { border-color: var(--ink); }
.csw-stoprow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: var(--space-5); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; margin-inline: -4px; }
.csw-stoprow > .csw-stopcard { width: auto; scroll-snap-align: start; margin: 0 !important; }
.csw-stopcard { display: grid; gap: 0 !important; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-card); overflow: hidden; }
.csw-stopcard > * { margin: 0 !important; }
.csw-stopcard__media.wp-block-cover { position: relative; min-height: 180px; padding: 0; overflow: visible; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.csw-stopcard__media .wp-block-cover__inner-container { position: absolute; inset: auto auto 0 12px; width: auto; height: auto; transform: translateY(50%); z-index: 2; }
p.csw-stopcard__num { display: grid; place-items: center; width: 36px; height: 36px; margin: 0; border-radius: 50%; border: 3px solid var(--surface); background: var(--red); color: var(--on-red); font: 900 16px/1 var(--font-heading); box-sizing: border-box; }
.csw-stopcard--blue p.csw-stopcard__num { background: var(--route-blue); color: var(--on-route-blue); }
.csw-stopcard__body { display: grid; gap: 4px; padding: 28px var(--space-4) var(--space-4); }
.csw-stopcard__body > * { margin: 0 !important; }
.csw-stopcard__name { font-size: 18px; line-height: 24px; }
.csw-stopcard__route { font-size: 14px; font-weight: 700; color: var(--red); }
.csw-stopcard--blue .csw-stopcard__route { color: var(--route-blue); }

/* ---------- Chopin ---------- */
.csw-chopin { gap: var(--space-8); }
.csw-chopin__media { border-radius: var(--radius-md); overflow: hidden; }
.csw-chopin__price span { display: block; font-size: 12px; color: var(--line); }
.csw-chopin__price strong { font-family: var(--font-heading); font-size: 28px; line-height: 32px; font-weight: 900; }

/* ---------- FAQ ---------- */
.csw-faq .wp-block-details summary { min-height: 32px; font-weight: 700; cursor: pointer; }
.csw-faq .wp-block-details p { color: var(--ink-muted); }

/* ---------- Strony, wpisy, karty ---------- */
.csw-page { padding-block: var(--space-8) var(--space-12); }
.csw-page__header { padding-bottom: var(--space-6); }
.csw-page__title { margin: 0; }
.csw-page__content > :where(:not(.alignfull):not(.alignwide):not(.wp-block-group):not(.wp-block-cover)) { max-width: 760px; margin-inline: auto; padding-inline: max(16px, 3vw); box-sizing: content-box; }
.csw-article__meta { margin: 0 0 8px; font-size: 14px; color: var(--ink-muted); }
.csw-article__image { margin-block: 0 var(--space-6); }
.csw-article__image img { border-radius: var(--radius-md); width: 100%; }
.csw-article__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-8); padding-block: var(--space-6); border-top: 1px solid var(--line); }
.csw-article__cta p { margin: 0; font-weight: 700; }
.csw-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-6); }
.csw-card { border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-card); overflow: hidden; }
.csw-card__link { display: grid; color: var(--ink); text-decoration: none; }
.csw-card__link:hover { color: var(--ink); }
.csw-card__media { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--surface-alt); color: var(--grey); overflow: hidden; }
.csw-card__media img { width: 100%; height: 100%; object-fit: cover; }
.csw-card__body { padding: var(--space-4); }
.csw-card__title { margin: 0 0 8px; font-size: 20px; }
.csw-card__excerpt { margin: 0; font-size: 14px; color: var(--ink-muted); }
.csw-404__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- Stopka ---------- */
.csw-site-footer { background: var(--red); color: var(--on-red); font-size: 14px; line-height: 1.6; }
.csw-site-footer a { color: var(--on-red); }
.csw-site-footer a:focus-visible { outline-color: var(--on-red); }
.csw-site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-8); padding-block: var(--space-12) var(--space-6); }
.csw-site-footer__grid > * { display: grid; gap: 6px; align-content: start; }
.csw-site-footer__grid strong { font-size: 15px; }
.csw-site-footer__grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.csw-site-footer img.csw-site-footer__logo { display: block; height: 48px; width: auto; max-width: 100%; }
.csw-site-footer__brand p { margin: 0; }
.csw-site-footer__legal { padding-block: var(--space-4); border-top: 1px solid rgba(255, 255, 255, .3); font-size: 13px; }

/* ---------- Pasek zakupu: tylko telefon ---------- */
.csw-bookbar--fixed { display: none; }

/* ---------- WooCommerce: przyciski w kolorach marki ---------- */
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button {
  background: var(--red) !important; color: var(--on-red) !important; border-radius: var(--radius-pill) !important; font-weight: 700 !important; padding: 12px 20px !important;
}
.woocommerce .button:hover, .woocommerce button.button:hover, .woocommerce a.button:hover { background: var(--red-strong) !important; }

/* ---------- Telefon i tablet ---------- */
@media (max-width: 900px) {
  .csw-hide-mobile { display: none !important; }
  .csw-menu-toggle { display: inline-flex !important; }
  .csw-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: var(--space-3); margin: 0; padding: var(--space-4); background: var(--red); box-shadow: var(--shadow-lift); }
  .csw-nav.is-open { display: flex; }
  .csw-nav__list { flex-direction: column; align-items: stretch; }
  .csw-nav__list a { font-size: 17px; }
  .csw-nav__cta { display: inline-flex; background: var(--surface); color: var(--red); }
  .csw-site-header__brand img.csw-header__logo { height: 34px; }
  .csw-section { padding-block: var(--space-8); }
  .csw-hero { min-height: 260px !important; }
  .csw-intro__aside { max-width: none; }
  .csw-bookbar--fixed { display: flex; }
  body { padding-bottom: var(--bookbar-height); }
}

@media (prefers-reduced-motion: reduce) {
  .csw-stoprow { scroll-behavior: auto; }
}

/* =====================================================================
   Podmenu w nagłówku
   ===================================================================== */
.csw-nav__list > li { position: relative; display: flex; align-items: center; }
.csw-nav__subtoggle { display: inline-grid; place-items: center; width: 32px; height: 44px; margin-left: -6px; padding: 0; border: 0; background: transparent; color: var(--on-red); cursor: pointer; border-radius: var(--radius-pill); }
.csw-nav__subtoggle:hover { background: var(--red-strong); }
.csw-nav__subtoggle svg { transition: transform .15s ease-out; }
.csw-nav__list > li.is-open .csw-nav__subtoggle svg { transform: rotate(180deg); }
.csw-nav__list .sub-menu { display: none; position: absolute; left: 0; top: 100%; z-index: 60; min-width: 260px; margin: 0; padding: 8px; list-style: none; background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.csw-nav__list > li.is-open > .sub-menu, .csw-nav__list > li:hover > .sub-menu { display: block; }
.csw-nav__list .sub-menu a { display: flex; width: 100%; min-height: 44px; padding: 0 12px; border-radius: var(--radius-xs); color: var(--ink); font-weight: 500; box-sizing: border-box; }
.csw-nav__list .sub-menu a:hover { background: var(--surface-alt); color: var(--red); }
.csw-no-scroll, .csw-no-scroll body { overflow: hidden; }

/* =====================================================================
   Koszyk boczny
   ===================================================================== */
.csw-sidecart { position: fixed; inset: 0; z-index: 100; }
.csw-sidecart[hidden] { display: none; }
.csw-sidecart__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.csw-sidecart__panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(420px, 100%); background: var(--surface); box-shadow: var(--shadow-card); outline: none; padding-bottom: env(safe-area-inset-bottom, 0px); }
.csw-sidecart__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.csw-sidecart__title { margin: 0; font-size: 22px; }
.csw-sidecart__body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.csw-sidecart__list { margin: 0; padding: 0; list-style: none; }
.csw-sidecart__item { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.csw-sidecart__item strong { display: block; font-size: 15px; }
.csw-sidecart__meta { display: block; font-size: 13px; color: var(--ink-muted); }
.csw-sidecart__price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.csw-sidecart__remove { grid-column: 1; justify-self: start; padding: 4px 0; border: 0; background: none; color: var(--red); font: 500 13px/1.4 var(--font-body); text-decoration: underline; cursor: pointer; }
.csw-sidecart__empty { display: grid; justify-items: center; gap: 12px; padding: 48px 0; text-align: center; color: var(--ink-muted); }
.csw-sidecart__empty[hidden] { display: none; }
.csw-sidecart__msg { margin: 12px 0 0; color: var(--red); font-size: 14px; }
.csw-sidecart__msg:empty { display: none; }
.csw-sidecart__foot { display: grid; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--line); }
.csw-sidecart__foot[hidden] { display: none; }
.csw-sidecart__total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; font-size: 16px; }
.csw-sidecart__total strong { font-family: var(--font-heading); font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; }
.csw-sidecart__checkout { width: 100%; }
.csw-sidecart__cartlink { justify-self: center; font-size: 14px; }

/* =====================================================================
   Oferta i bilety
   ===================================================================== */
.csw-buy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: var(--space-8); align-items: start; }
.csw-buy__intro > * + * { margin-top: var(--space-4); }
.csw-buy__perks { max-width: 560px; }
.csw-buy__card { display: grid; gap: var(--space-5); padding: var(--space-6); border: 2px solid var(--red); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-card); }
.csw-buy__title { margin: 0; font-size: 24px; }
.csw-buy__group { display: grid; gap: var(--space-3); margin: 0; padding: 0; border: 0; min-width: 0; }
.csw-buy__group legend { padding: 0; margin-bottom: 8px; font-weight: 700; font-size: 14px; }
.csw-seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 0; border: 2px solid var(--red); border-radius: var(--radius-pill); overflow: hidden; }
.csw-seg__opt { position: relative; }
.csw-seg__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.csw-seg__opt span { display: grid; place-items: center; min-height: 44px; font-family: var(--font-heading); font-weight: 900; font-size: 18px; color: var(--red); }
.csw-seg__opt input:checked + span { background: var(--red); color: var(--on-red); }
.csw-seg__opt input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: -5px; }
.csw-qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.csw-qty[hidden] { display: none; }
.csw-qty__label strong { display: block; }
.csw-qty__label > span { font-size: 13px; color: var(--ink-muted); }
.csw-qty__price { font-weight: 700; color: var(--ink); }
.csw-qty__ctrl { display: flex; align-items: center; gap: 6px; }
.csw-qty__ctrl input { width: 48px; height: 44px; border: 1px solid var(--line-soft); border-radius: var(--radius-xs); text-align: center; font: 700 17px var(--font-body); -moz-appearance: textfield; }
.csw-qty__ctrl input::-webkit-outer-spin-button, .csw-qty__ctrl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.csw-qty__ctrl .csw-round-btn { font-size: 20px; font-weight: 700; }
.csw-qty__ctrl .csw-round-btn:disabled { opacity: .4; cursor: not-allowed; }
.csw-field__label { font-weight: 700; font-size: 14px; }
.csw-input { width: 100%; min-height: 48px; padding: 0 14px; border: 2px solid var(--grey); border-radius: var(--radius-xs); background: var(--surface); color: var(--ink); font: 400 16px var(--font-body); box-sizing: border-box; }
.csw-input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-color: var(--ink); }
.csw-buy__summary { display: grid; gap: 12px; padding-top: 4px; }
.csw-buy__summary p { display: flex; justify-content: space-between; align-items: baseline; margin: 0; }
.csw-buy__summary strong { font-family: var(--font-heading); font-size: 32px; font-weight: 900; font-variant-numeric: tabular-nums; }
.csw-buy__summary .csw-btn { width: 100%; }
.csw-buy__msg { margin: 0; color: var(--red); font-weight: 600; font-size: 14px; }
.csw-buy__msg:empty { display: none; }
.csw-tickets--two { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; max-width: 760px; }
.csw-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-5); }
.csw-offer { display: grid; align-content: start; gap: 8px; padding: var(--space-6); border: 1px solid var(--line-soft); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); text-decoration: none; transition: box-shadow .15s ease-out, border-color .15s ease-out; }
.csw-offer:hover { color: var(--ink); border-color: var(--red); box-shadow: var(--shadow-card); }
.csw-offer > .csw-ico { color: var(--red); }
.csw-offer__title { font-family: var(--font-heading); font-size: 19px; font-weight: 800; }
.csw-offer__desc { font-size: 14px; color: var(--ink-muted); }
.csw-offer__price { font-weight: 700; }
.csw-offer__more { display: inline-flex; align-items: center; gap: 2px; color: var(--red); font-weight: 700; font-size: 14px; }

/* =====================================================================
   Rozkład jazdy
   ===================================================================== */
.csw-tt { display: grid; gap: var(--space-6); }
.csw-tt__head > * + * { margin-top: var(--space-3); }
.csw-tt__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.csw-tt__tab { --line: var(--route-red); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 2px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); color: var(--line); font: 700 15px/1 var(--font-body); cursor: pointer; }
.csw-tt__tab--blue { --line: var(--route-blue); }
.csw-tt__tab::before { content: ""; width: 14px; height: 14px; border: 3px solid currentColor; border-radius: 50%; box-sizing: border-box; }
.csw-tt__tab[aria-selected="true"] { background: var(--line); color: var(--surface); }
.csw-tt__tab:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.csw-tt__panel { --line: var(--route-red); }
.csw-tt__panel--blue { --line: var(--route-blue); }
.csw-tt__stops { margin: 0; padding: 0; list-style: none; }
.csw-tt__stop { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1.4fr); gap: 4px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.csw-tt__stop::before { content: ""; position: absolute; left: 18px; top: 0; bottom: 0; width: 4px; background: var(--line); }
.csw-tt__stop:first-child::before { top: 50%; }
.csw-tt__stop:last-child::before { bottom: 50%; }
.csw-tt__num { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--line); color: var(--surface); font: 900 15px/1 var(--font-heading); border: 3px solid var(--surface); box-sizing: border-box; }
.csw-tt__info strong { display: block; font-size: 16px; }
.csw-tt__info span { display: block; font-size: 13px; color: var(--ink-muted); }
.csw-tt__closed { color: var(--red) !important; font-weight: 700; }
.csw-tt__stop.is-closed .csw-tt__times { opacity: .4; }
.csw-tt__times { display: flex; flex-wrap: wrap; gap: 6px; }
.csw-tt__time { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border-radius: var(--radius-pill); background: var(--surface-alt); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.csw-tt__time.is-passed { color: var(--grey); text-decoration: line-through; background: transparent; }
.csw-tt__time.is-next { background: var(--line); color: var(--surface); }
.csw-tt__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: var(--space-6); border-radius: var(--radius-md); background: var(--surface-alt); }
.csw-tt__cta p { margin: 0; font-weight: 700; }
.csw-notice { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; padding: 16px; border-radius: var(--radius-md); border: 1px solid var(--line-soft); background: var(--surface-alt); }
.csw-notice p { margin: 0; }
.csw-notice--warning { border-color: var(--orange); background: #fff4e0; }
.csw-notice--warning .csw-ico, .csw-notice--warning strong { color: #8a4b00; }

/* =====================================================================
   Kontakt
   ===================================================================== */
.csw-contact__head { max-width: 760px; margin-bottom: var(--space-8); }
.csw-contact__head > * + * { margin-top: var(--space-3); }
.csw-contact__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-5); }
.csw-contact__card { display: grid; align-content: start; gap: 6px; padding: var(--space-6); border: 1px solid var(--line-soft); border-radius: var(--radius-md); }
.csw-contact__card > .csw-ico { color: var(--red); margin-bottom: 6px; }
.csw-contact__card h2 { margin: 0 0 4px; font-size: 19px; font-weight: 800; }
.csw-contact__card a { font-weight: 700; font-size: 17px; }
.csw-contact__form { max-width: 760px; }
.csw-form input[type="text"], .csw-form input[type="email"], .csw-form input[type="tel"], .csw-form select, .csw-form textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--grey); border-radius: var(--radius-xs); background: var(--surface); font: 400 16px var(--font-body); box-sizing: border-box; }
.csw-form textarea { min-height: 160px; }
.csw-form label { font-weight: 700; font-size: 14px; }
.csw-form input[type="submit"], .csw-form button[type="submit"] { min-height: 48px; padding: 0 28px; border: 0; border-radius: var(--radius-pill); background: var(--red); color: var(--on-red); font: 700 16px var(--font-body); cursor: pointer; }
.csw-form input[type="submit"]:hover { background: var(--red-strong); }

/* =====================================================================
   Koszyk i zamówienie WooCommerce
   ===================================================================== */
.woocommerce-cart .csw-page__content, .woocommerce-checkout .csw-page__content { max-width: var(--container); margin-inline: auto; padding-inline: max(16px, 3vw); }
.woocommerce table.shop_table { border: 1px solid var(--line-soft) !important; border-radius: var(--radius-md) !important; border-collapse: separate !important; overflow: hidden; }
.woocommerce table.shop_table th { font-family: var(--font-heading); font-weight: 800; background: var(--surface-alt); }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { padding: 14px 16px !important; }
.woocommerce a.remove { color: var(--red) !important; }
.woocommerce a.remove:hover { background: var(--red) !important; color: var(--on-red) !important; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .woocommerce .quantity .qty, .select2-container .select2-selection--single { min-height: 48px; padding: 10px 14px; border: 2px solid var(--grey) !important; border-radius: var(--radius-xs) !important; font: 400 16px var(--font-body); box-sizing: border-box; }
.woocommerce form .form-row label { font-weight: 700; font-size: 14px; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-checkout #order_review { padding: var(--space-6); border: 2px solid var(--red); border-radius: var(--radius-md); }
.woocommerce-checkout #order_review_heading, .woocommerce .cart_totals h2 { font-family: var(--font-heading); font-weight: 900; }
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce #place_order, .woocommerce .checkout-button { min-height: 56px; font-size: 18px !important; display: inline-flex !important; align-items: center; justify-content: center; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--red) !important; border-radius: var(--radius-xs); background: var(--surface-alt) !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--red) !important; }
#payment { background: var(--surface-alt) !important; border-radius: var(--radius-md) !important; }

@media (max-width: 900px) {
  .csw-nav__list { width: 100%; }
  .csw-nav__list > li { flex-wrap: wrap; }
  .csw-nav__list > li > a { flex: 1; }
  .csw-nav__subtoggle { width: 44px; margin: 0; }
  .csw-nav__list .sub-menu { position: static; width: 100%; min-width: 0; margin: 4px 0 8px; box-shadow: none; background: rgba(255, 255, 255, .1); }
  .csw-nav__list > li:hover > .sub-menu { display: none; }
  .csw-nav__list > li.is-open > .sub-menu { display: block; }
  .csw-nav__list .sub-menu a { color: var(--on-red); }
  .csw-nav__list .sub-menu a:hover { background: var(--red-strong); color: var(--on-red); }
  .csw-buy { grid-template-columns: minmax(0, 1fr); }
  .csw-tickets--two { grid-template-columns: minmax(0, 1fr) !important; }
  .csw-tt__stop { grid-template-columns: 40px minmax(0, 1fr); }
  .csw-tt__times { grid-column: 2; }
}
.woocommerce-cart .csw-page__content > *, .woocommerce-checkout .csw-page__content > *, .woocommerce-account .csw-page__content > * { max-width: none !important; padding-inline: 0 !important; }
.csw-nav__list a { white-space: nowrap; }
/* 901–1000 px: pełne menu się nie mieści, więc menu pod przyciskiem (jak na telefonie); ikony koszyka, konta i języka zostają. */
@media (min-width: 901px) and (max-width: 1000px) {
  .csw-menu-toggle { display: inline-flex !important; }
  .csw-site-header__inner { position: relative; }
  .csw-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: var(--space-3); margin: 0; padding: var(--space-4); background: var(--red); box-shadow: var(--shadow-lift); }
  .csw-nav.is-open { display: flex; }
  .csw-nav__list { flex-direction: column; align-items: stretch; width: 100%; }
  .csw-nav__list a { font-size: 17px; }
  .csw-nav__list > li { flex-wrap: wrap; }
  .csw-nav__list > li > a { flex: 1; }
  .csw-nav__subtoggle { width: 44px; margin: 0; }
  .csw-nav__list .sub-menu { position: static; width: 100%; min-width: 0; margin: 4px 0 8px; box-shadow: none; background: rgba(255, 255, 255, .1); }
  .csw-nav__list > li:hover > .sub-menu { display: none; }
  .csw-nav__list > li.is-open > .sub-menu { display: block; }
  .csw-nav__list .sub-menu a { color: var(--on-red); }
  .csw-nav__list .sub-menu a:hover { background: var(--red-strong); color: var(--on-red); }
}
@media (min-width: 901px) and (max-width: 1180px) {
  /* Pełne menu w 4 językach nie mieści się obok ikon (np. 1024 px): bez lupy i separatora. */
  .csw-site-header__tools > a[href*="?s="], .csw-site-header__tools > .csw-header__sep { display: none !important; }
  .csw-site-header__inner { gap: var(--space-2); }
  .csw-nav { margin-left: var(--space-2); }
  .csw-nav__list a { padding: 0 8px; font-size: 14px; }
  .csw-site-header__brand img.csw-header__logo { height: 34px; }
}
.woocommerce-cart .csw-page__content > h1, .woocommerce-checkout .csw-page__content > h1 { margin: 0 0 var(--space-6); font-family: var(--font-heading); font-size: var(--wp--preset--font-size--xx-large, 40px); font-weight: 900; text-transform: none; }
.woocommerce dl.variation { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; margin: 6px 0 0; font-size: 13px; color: var(--ink-muted); }
.woocommerce dl.variation dt, .woocommerce dl.variation dd { margin: 0 !important; padding: 0 !important; float: none !important; }
.woocommerce dl.variation dd p { margin: 0; }
.csw-contact__form { max-width: var(--container); }
.csw-contact__form .csw-form { max-width: 760px; }

/* Strona podziękowania i formularz zamówienia (woo-thankyou.css, woo-checkout.css) w fontach marki */
.csw-thankyou-card h2, .csw-thankyou-order-details-box h2, .csw-checkout-container h3, .csw-box-header h3 { font-family: var(--font-heading); font-weight: 900; }
.csw-grid-icon .csw-ico, .csw-status-circle .csw-ico, .csw-step-num .csw-ico { display: block; }
.woocommerce-order-received .csw-page__content > h1 { display: none; }

/* =====================================================================
   Mapa na żywo
   ===================================================================== */
.csw-livemap { display: grid; gap: 12px; }
.csw-livemap__map { width: 100%; max-width: 100%; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line-soft); background: var(--surface-alt); z-index: 0; }
.csw-livemap__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 14px; }
.csw-livemap__key { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.csw-livemap__key::before { content: ""; width: 24px; height: 5px; border-radius: 3px; background: var(--route-red); }
.csw-livemap__key--blue::before { background: var(--route-blue); }
.csw-livemap__live { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-muted); }
.csw-livemap__pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(46, 125, 50, .5); animation: csw-pulse 2s infinite; }
@keyframes csw-pulse { 70% { box-shadow: 0 0 0 10px rgba(46, 125, 50, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0); } }
.csw-livemap__stop { display: grid !important; place-items: center; border-radius: 50%; background: #fff; border: 3px solid var(--route-red); color: var(--ink); font: 800 11px/1 var(--font-heading); box-sizing: border-box; }
.csw-livemap__stop--blue { border-color: var(--route-blue); }
.csw-livemap__bus { display: grid !important; place-items: center; border-radius: 50%; background: var(--route-red); color: #fff; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); box-sizing: border-box; }
.csw-livemap__bus--blue { background: var(--route-blue); }
.csw-livemap .leaflet-popup-content { font: 400 14px/1.45 var(--font-body); color: var(--ink); }
.csw-map { aspect-ratio: auto !important; padding: 0 !important; background: none !important; display: block !important; }
.csw-tt__map { margin-top: var(--space-4); }
@media (prefers-reduced-motion: reduce) { .csw-livemap__pulse { animation: none; } }

/* =====================================================================
   Widget szybkiego zakupu (csw_quick_buy)
   ===================================================================== */
.csw-qb { position: relative; display: grid; gap: 14px; padding: 20px; border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); box-shadow: 0 12px 32px rgba(0, 0, 0, .18); }
.csw-qb__field { display: grid; gap: 6px; position: relative; }
.csw-qb__label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.csw-qb__input { width: 100%; min-height: 50px; padding: 0 14px; border: 2px solid var(--line-soft); border-radius: var(--radius-sm, 8px); background: var(--surface); color: var(--ink); font: 500 16px var(--font-body); box-sizing: border-box; appearance: none; -webkit-appearance: none; }
select.csw-qb__input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233e3e3e'%3E%3Cpath d='M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 22px; padding-right: 40px; }
.csw-qb__input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-color: var(--ink); }
.csw-qb__toggle { display: flex; align-items: center; justify-content: space-between; text-align: left; cursor: pointer; }
.csw-qb__toggle:disabled { cursor: default; color: var(--ink-muted); }
.csw-qb__toggle:disabled .csw-ico { opacity: .3; }
.csw-qb__toggle[aria-expanded="true"] .csw-ico { transform: rotate(180deg); }
.csw-qb__people { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; margin-top: 6px; padding: 6px 14px; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-card); border: 1px solid var(--line-soft); }
.csw-qb__people[hidden] { display: none; }
.csw-qb__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.csw-qb__row:last-child { border-bottom: 0; }
.csw-qb__row strong { display: block; font-size: 15px; }
.csw-qb__row span { font-size: 13px; color: var(--ink-muted); }
.csw-qb__ctrl { display: flex; align-items: center; gap: 10px; }
.csw-qb__ctrl output { min-width: 20px; text-align: center; font-weight: 700; font-size: 17px; }
.csw-qb__ctrl .csw-round-btn { font-size: 20px; font-weight: 700; }
.csw-qb__ctrl .csw-round-btn:disabled { opacity: .35; cursor: not-allowed; }
.csw-qb__submit { width: 100%; }
.csw-qb__total { font-weight: 500; }
.csw-qb__msg { margin: -4px 0 0; color: var(--red); font-weight: 600; font-size: 14px; }
.csw-qb__msg:empty { display: none; }
.csw-qb__link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 14px; text-decoration: none; }

/* Widget w zdjęciu strony głównej: tylko telefon i tablet */
.csw-hero__buy { display: none; }

/* =====================================================================
   Pływający koszyk (telefon)
   ===================================================================== */
.csw-cart-fab { display: none; position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 45; width: 58px; height: 58px; place-items: center; border-radius: 50%; background: var(--red); color: var(--on-red); box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.csw-cart-fab:hover { color: var(--on-red); background: var(--red-strong); }
.csw-cart-fab:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.csw-cart-fab--raised { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
.csw-cart-fab__count { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--star); color: var(--ink); font: 800 12px/22px var(--font-body); text-align: center; box-sizing: border-box; }
.csw-nav__langs { display: none; }

@media (max-width: 900px) {
  .csw-site-header__inner { min-height: 64px; }
  .csw-site-header__brand img.csw-header__logo { height: 42px; }
  .csw-site-header__tools { gap: 0; }
  .csw-cart-fab { display: grid; }
  body { padding-bottom: 0; }
  body:has(.csw-bookbar--fixed) { padding-bottom: var(--bookbar-height); }
  .csw-nav__langs { display: flex; gap: 8px; margin: 4px 0 0; padding: 12px 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .3); }
  .csw-nav__langs a { display: grid; place-items: center; min-width: 48px; min-height: 44px; border-radius: var(--radius-pill); color: var(--on-red); font-weight: 700; text-decoration: none; border: 2px solid rgba(255, 255, 255, .5); }
  .csw-nav__langs a[aria-current] { background: var(--surface); color: var(--red); border-color: var(--surface); }
  .csw-hero__buy { display: block; position: relative; z-index: 5; margin: -140px auto 0; padding: 0 16px 24px; max-width: 520px; }
  .csw-hero { min-height: 340px !important; }
}

/* Stopka biletu poza blokami (strona Bilety): cena i przycisk w jednym rzędzie */
.csw-ticket > .csw-ticket__foot { display: flex; flex-wrap: wrap; row-gap: 10px; justify-content: space-between; align-items: center; gap: 12px; }
.csw-ticket > .csw-ticket__body > * { margin: 0; }
.csw-ticket__foot .csw-btn { flex: none; }

/* Strona Oferta i link do niej ze strony Bilety */
.csw-offer-page__head { max-width: 760px; margin-bottom: var(--space-8); }
.csw-offer-page__head > * + * { margin-top: var(--space-3); }
.csw-offer-page__content { margin-bottom: var(--space-8); }
.csw-offer-link { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: var(--space-6); border: 1px solid var(--line-soft); border-radius: var(--radius-md); color: var(--ink); text-decoration: none; }
.csw-offer-link:hover { color: var(--ink); border-color: var(--red); }
.csw-offer-link__more { display: inline-flex; align-items: center; gap: 2px; color: var(--red); font-weight: 700; white-space: nowrap; }
.csw-tt__cta.csw-container { border-radius: 0; background: none; padding-inline: max(16px, 3vw); }
.csw-livemap__open { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; font-weight: 700; font-size: 14px; text-decoration: none; }
.csw-qb__family { display: flex; align-items: flex-start; gap: 12px; margin: 6px 0 4px; padding: 12px; border: 2px solid var(--line-soft); border-radius: var(--radius-md); cursor: pointer; }
.csw-qb__family[hidden] { display: none; }
.csw-qb__family:has(input:checked) { border-color: var(--red); background: rgba(226, 19, 22, .04); }
.csw-qb__family input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--red); flex: none; }
.csw-qb__family strong { display: block; font-size: 15px; }
.csw-qb__family span span { font-size: 13px; color: var(--ink-muted); }
.csw-qb__row.is-disabled { opacity: .45; }

/* =====================================================================
   Bilety: karta produktu (galeria, cechy, opis, panel zakupu)
   ===================================================================== */
.csw-pdp { padding-block: var(--space-6) var(--space-12); }
.csw-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ink-muted); margin-bottom: var(--space-3); }
.csw-crumbs a { color: var(--ink-muted); }
.csw-pdp__title { margin: 0 0 var(--space-6); font-size: var(--wp--preset--font-size--xx-large, 40px); line-height: 1.15; }
.csw-pdp__layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: var(--space-8); align-items: start; }
.csw-pdp__main { display: grid; gap: var(--space-8); min-width: 0; }
.csw-pdp__sticky { position: sticky; top: calc(var(--header-height) + 24px); display: grid; gap: var(--space-4); }
.admin-bar .csw-pdp__sticky { top: calc(var(--header-height) + 56px); }
.csw-pdp__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 0; padding: var(--space-4) var(--space-6); border-radius: var(--radius-md); background: var(--red); color: var(--on-red); }
.csw-pdp__price strong { font-family: var(--font-heading); font-size: 32px; font-weight: 900; font-variant-numeric: tabular-nums; }
.csw-pdp__price span { font-size: 14px; }
.csw-pdp__aside .csw-buy__card { box-shadow: var(--shadow-card); }
.csw-pdp__block h2 { margin: 0 0 var(--space-4); }
.csw-pdp__block p { max-width: 720px; line-height: 1.65; }
.csw-pdp__highlights { font-size: 16px; line-height: 24px; gap: 12px; }
.csw-pdp__highlights li { padding-left: 32px; }
.csw-pdp__features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); margin: 0; padding: var(--space-6); list-style: none; border: 1px solid var(--line-soft); border-radius: var(--radius-md); }
.csw-pdp__features li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.csw-pdp__features .csw-ico { color: var(--red); }
.csw-pdp__features strong { display: block; font-size: 16px; }
.csw-pdp__features p { margin: 2px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-muted); }

/* Galeria: duże zdjęcie + 4 mniejsze */
.csw-gallery { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; height: 420px; border-radius: var(--radius-md); overflow: hidden; }
.csw-gallery__item { position: relative; padding: 0; border: 0; background: var(--surface-alt); cursor: zoom-in; overflow: hidden; }
.csw-gallery__item--main { grid-row: 1 / span 2; }
.csw-gallery__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease-out; }
.csw-gallery__item:hover img { transform: scale(1.04); }
.csw-gallery__item:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; z-index: 1; }
.csw-gallery__all { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font: 700 14px var(--font-body); box-shadow: var(--shadow-card); cursor: pointer; }
.csw-gallery__all:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* Podgląd pełnoekranowy */
.csw-lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, .92); color: #fff; }
.csw-lightbox[open] { display: grid; place-items: center; }
.csw-lightbox::backdrop { background: rgba(0, 0, 0, .92); }
.csw-lightbox__img { max-width: min(92vw, 1400px); max-height: 82vh; object-fit: contain; border-radius: var(--radius-sm, 8px); }
.csw-lightbox__close, .csw-lightbox__nav { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.csw-lightbox__close:hover, .csw-lightbox__nav:hover { background: rgba(255, 255, 255, .26); }
.csw-lightbox__close:focus-visible, .csw-lightbox__nav:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.csw-lightbox__close { top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; }
.csw-lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.csw-lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }
.csw-lightbox__count { position: absolute; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); left: 0; right: 0; margin: 0; text-align: center; font-size: 14px; }

@media (max-width: 1000px) {
  /* Telefon/tablet: galeria, potem zakup, potem reszta opisu */
  .csw-pdp__layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .csw-pdp__main { display: contents; }
  .csw-pdp__main > * { order: 3; }
  .csw-pdp__main > .csw-gallery { order: 1; }
  .csw-pdp__aside { order: 2; }
  .csw-pdp__sticky { position: static; }
}
@media (max-width: 700px) {
  .csw-pdp__title { font-size: 28px; }
  .csw-gallery { grid-template-columns: repeat(4, 1fr); grid-template-rows: 220px 80px; height: auto; }
  .csw-gallery__item--main { grid-column: 1 / -1; grid-row: 1; }
  .csw-gallery__all { bottom: 96px; }
  .csw-pdp__features { grid-template-columns: minmax(0, 1fr); padding: var(--space-4); }
  .csw-lightbox__nav { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .csw-gallery__item img { transition: none; } }

/* Zdjęcia z Wikimedia Commons w okładkach i podpis autora (wymagany przez licencję CC) */
.wp-block-cover .csw-wiki-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.wp-block-cover .wp-block-cover__background { z-index: 1; }
.wp-block-cover .wp-block-cover__inner-container { z-index: 2; }
.csw-credit { position: absolute; right: 8px; bottom: 6px; z-index: 3; max-width: calc(100% - 16px); padding: 2px 8px; border-radius: 10px; background: rgba(0, 0, 0, .55); color: #fff !important; font: 400 10px/1.5 var(--font-body); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csw-credit:hover { text-decoration: underline; }
.csw-stopcard__media .csw-credit { bottom: auto; top: 6px; }

/* ---------- Jesień (inc/season.php, klasa csw-season-autumn na body) ---------- */
.csw-leaf { flex: none; }
.csw-promo--autumn { background: linear-gradient(90deg, #b8410c, #9a3412 55%, #b8410c); }
.csw-promo--autumn .csw-leaf { color: #f6c445; }
.csw-promo--autumn a:focus-visible { outline-color: #fff; }
.csw-hero__leaves { position: absolute; top: 0; z-index: 2; pointer-events: none; background: no-repeat center / contain; }
.csw-hero__leaves--left { left: 0; width: 260px; height: 220px; background-image: url('../images/seasonal/autumn-leaves-left.svg'); }
/* Ten sam układ co prawy dolny róg, odbity do góry: dolny róg zostaje dla podpisu autora zdjęcia. */
.csw-hero__leaves--right { right: 0; width: 280px; height: 220px; background-image: url('../images/seasonal/autumn-leaves-right.svg'); transform: scaleY(-1); }
.csw-season-badge { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 5px 12px 4px 10px; border: 1.5px solid #e9a23b; border-radius: var(--radius-pill); background: #fff4e5; color: #9a3412; font: 700 12px/1.2 var(--font-body); }
.csw-season-badge .csw-leaf { color: #c2410c; }
@media (max-width: 781px) {
  .csw-hero__leaves--left { width: 120px; height: 102px; }
  .csw-hero__leaves--right { width: 104px; height: 82px; }
}
/* Strona biletów jesienią */
.csw-season-badge--title { display: inline-flex; margin: 0 0 var(--space-2); }
.csw-gallery { position: relative; }
.csw-gallery__leaves { z-index: 3; }
.csw-gallery__leaves.csw-hero__leaves--left { left: 0; top: 0; width: 170px; height: 144px; }
.csw-gallery__leaves.csw-hero__leaves--right { right: 0; top: 0; width: 150px; height: 118px; }
.csw-autumn-tips { padding: var(--space-5) var(--space-6); border-radius: var(--radius-md); background: #fff4e5; border: 1px solid #f3d3a6; }
.csw-autumn-tips h2 { display: flex; align-items: center; gap: var(--space-2); margin-top: 0; }
.csw-autumn-tips h2 .csw-leaf { color: #c2410c; }
.csw-autumn-tips ol { margin: 0; padding: 0; list-style: none; counter-reset: csw-tip; display: grid; gap: var(--space-3); }
.csw-autumn-tips li { position: relative; padding-left: 40px; line-height: 1.5; counter-increment: csw-tip; }
.csw-autumn-tips li::before { content: counter(csw-tip); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; font: 900 14px/28px var(--font-heading); text-align: center; }
.csw-autumn-tips a { color: var(--red); font-weight: 700; }
@media (max-width: 781px) {
  .csw-gallery__leaves.csw-hero__leaves--left { left: 0; top: 0; width: 110px; height: 94px; }
  .csw-gallery__leaves.csw-hero__leaves--right { right: 0; top: 0; width: 96px; height: 76px; }
}

/* ---------- Strona chroniona hasłem (inc/protected-pages.php) ---------- */
.csw-pass { min-height: 55vh; display: flex; align-items: center; background: var(--surface-alt); }
.csw-pass__card { max-width: 440px; margin: 0 auto; padding: var(--space-8) var(--space-6); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-card); text-align: center; }
.csw-pass__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin: 0 0 var(--space-3); border-radius: 50%; background: var(--red); color: var(--on-red); }
.csw-pass__title { margin: 0 0 var(--space-3); font: 900 28px/1.25 var(--font-heading); color: var(--ink); }
.csw-pass .post-password-form p { margin: 0 0 var(--space-4); color: var(--ink-muted); }
.csw-pass .post-password-form label { display: block; text-align: left; font: 700 14px/1.2 var(--font-body); color: var(--ink); }
.csw-pass .post-password-form input[type="password"] { display: block; width: 100%; min-height: 48px; margin-top: var(--space-2); padding: 0 var(--space-4); border: 2px solid var(--line-soft); border-radius: var(--radius-md); font: 16px var(--font-body); box-sizing: border-box; }
.csw-pass .post-password-form input[type="password"]:focus { outline: none; border-color: var(--ink); }
.csw-pass .post-password-form input[type="submit"] { width: 100%; min-height: 48px; border: 0; border-radius: var(--radius-pill); background: var(--red); color: var(--on-red); font: 700 16px var(--font-body); cursor: pointer; }
.csw-pass .post-password-form input[type="submit"]:hover { background: var(--red-strong); }
