/* ---------- Etykieta sekcji: | NAZWA ---------- */
.label {
  display: flex; align-items: center; gap: 12px;
  font-size: var(--fs-label); font-weight: 500; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--c-text-muted);
  margin-bottom: 24px;
}
.label::before { content: ""; width: 4px; height: 1.15em; background: var(--c-green); }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  font-family: var(--ff-body); font-size: 1rem; font-weight: 600; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.06em;
  border-radius: var(--radius);
  transition: background-color var(--t-fast) var(--ease-move), color var(--t-fast) var(--ease-move), border-color var(--t-fast) var(--ease-move);
  cursor: pointer; user-select: none;
}
@media (min-width: 768px) { .btn { min-height: 52px; } }
.btn > span[aria-hidden] { transition: transform var(--t-fast) var(--ease-move); }
.btn:hover > span[aria-hidden] { transform: translateX(4px); }

.btn--primary { background: var(--c-green); color: #000; }
.btn--primary:hover { background: var(--c-green-hover); }
.btn--primary:active { background: var(--c-green-deep); color: #fff; }

.btn--secondary { box-shadow: inset 0 0 0 1.5px var(--c-text); color: var(--c-text); }
.btn--secondary:hover { box-shadow: inset 0 0 0 1.5px var(--c-green-hover); color: var(--c-green-hover); }

.btn--ghost { color: var(--c-text); padding-inline: 8px; text-decoration: underline; text-decoration-color: var(--c-border); text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.btn--ghost:hover { color: var(--c-green-hover); text-decoration-color: currentColor; }

.btn--sm { min-height: 48px; padding: 0 18px; font-size: 0.9375rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.link { color: var(--c-green-hover); text-decoration: underline; text-underline-offset: 4px; }
.link-arrow {
  display: inline-flex; gap: 8px; align-items: center;
  color: var(--c-green-hover); font-weight: 500;
  min-height: 48px;
}
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Ramka z krzyżykami w rogach ---------- */
.frame { position: relative; border: 1px solid var(--c-border); }
.frame::before {
  content: ""; position: absolute; inset: -11px; pointer-events: none;
  background:
    url("../svg/plus.svg") left top no-repeat,
    url("../svg/plus.svg") right top no-repeat,
    url("../svg/plus.svg") left bottom no-repeat,
    url("../svg/plus.svg") right bottom no-repeat;
  transition: inset var(--t-fast) var(--ease-move);
}

/* ---------- Chip ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px;
  border: 1px solid var(--c-border);
  font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--c-text);
}

/* ---------- Pasek przystanku: A | B | C ---------- */
.stopbar {
  display: flex; flex-wrap: wrap; gap: 6px 0;
  max-width: none;
  font-size: var(--fs-label); font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em;
}
.stopbar > span:not(:last-child)::after { content: "|"; color: var(--c-green); margin-inline: 14px; }

/* ---------- Logo ---------- */
.logo-nav { height: 40px; width: auto; }
@media (min-width: 1024px) { .header .logo-nav { height: 44px; } }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-topo);
}
.header { transition: transform 300ms var(--ease-move); }
.header.is-hidden { transform: translateY(-100%); }
/* w trakcie scroll-story: tylko CTA, bez tła i nawigacji */
.header { transition: transform 300ms var(--ease-move), background-color 300ms, border-color 300ms; }
.header.is-story { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.header.is-story .header__logo, .header.is-story .header__nav { opacity: 0; pointer-events: none; }
.header__logo, .header__nav { transition: opacity 300ms; }
html:has(dialog[open]) { overflow: hidden; } /* blokada scrolla pod menu mobilnym */
.header__inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.header__logo { margin-right: auto; display: flex; align-items: center; min-height: 48px; }
.header__nav { display: none; }
.nav { display: flex; gap: clamp(12px, 1.6vw, 28px); }
.nav__link {
  position: relative; display: inline-flex; align-items: center; min-height: 48px;
  font-size: 0.9375rem; font-weight: 500; color: var(--c-text-muted);
  transition: color var(--t-fast) var(--ease-move);
}
.nav__link:hover, .nav__link.is-active { color: var(--c-text); }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px;
  background: var(--c-green); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-fast) var(--ease-move);
}
.nav__link.is-active::after { transform: scaleX(1); }

.header__burger { display: grid; place-items: center; width: 48px; height: 48px; margin-right: -12px; }
.header__burger .icon { width: 28px; height: 28px; }

@media (max-width: 380px) {
  .header__cta { padding-inline: 14px; }
}
@media (min-width: 1024px) {
  .header__nav { display: block; }
  .header__burger { display: none; }
  .header__logo { margin-right: 0; }
  .header__nav { margin-inline: auto; }
}

/* ---------- Menu mobile (dialog) ---------- */
.menu {
  width: 100%; max-width: none; height: 100%; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--c-bg) url("../svg/topo-bg-2.svg") center / cover no-repeat; color: var(--c-text);
  flex-direction: column;
}
.menu[open] { display: flex; }
.menu::backdrop { background: #000; }
.menu__top { display: flex; justify-content: space-between; align-items: center; height: var(--header-h); }
.menu__close { display: grid; place-items: center; width: 48px; height: 48px; margin-right: -12px; }
.menu__close .icon { width: 28px; height: 28px; }
.menu__list { display: flex; flex-direction: column; gap: 4px; padding-top: 32px; }
.menu__list a {
  display: block; padding-block: 8px;
  font-family: var(--ff-display); font-weight: 700; font-size: 2rem; line-height: 1.1;
  text-transform: uppercase;
}
.menu__bottom { margin-top: auto; padding-block: 24px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--c-topo); }
.menu__fb { display: grid; place-items: center; width: 48px; height: 48px; }

/* ---------- Odliczanie ---------- */
.countdown { padding: clamp(24px, 3vw, 40px); }
.countdown__label {
  font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--c-text-muted); margin-bottom: 16px;
}
.countdown__grid { display: flex; align-items: flex-start; gap: clamp(8px, 1.5vw, 20px); }
.countdown__cell { display: flex; flex-direction: column; gap: 8px; }
.countdown__num, .countdown__sep {
  font-family: var(--ff-body); font-weight: 500; font-variant-numeric: tabular-nums;
  font-size: clamp(2.5rem, 1.8rem + 3vw, 4.5rem); line-height: 1;
}
.countdown__sep { color: var(--c-text-subtle); }
.countdown__unit { font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-text-muted); }
.countdown[data-state="live"] .countdown__label,
.countdown[data-state="after"] .countdown__label {
  font-family: var(--ff-display); font-weight: 700; font-size: var(--fs-h3); line-height: 1.1;
  letter-spacing: 0; color: var(--c-green-hover); margin: 0;
}
.countdown--sm { padding: 0; }
.countdown--sm .countdown__num, .countdown--sm .countdown__sep { font-size: 2.25rem; }

/* ---------- Dodaj do kalendarza ---------- */
.cal { position: relative; }
.cal > summary { list-style: none; }
.cal > summary::-webkit-details-marker { display: none; }
.cal__menu {
  position: absolute; left: 0; top: calc(100% + 8px); z-index: 10;
  min-width: 100%; padding: 8px 0;
  background: var(--c-surface-2); border: 1px solid var(--c-border);
}
.cal__menu a { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; white-space: nowrap; }
.cal__menu a:hover { color: var(--c-green-hover); }

/* ---------- Akordeon (FAQ) ---------- */
.accordion__item { border-bottom: 1px solid var(--c-topo); }
.accordion__item:first-child { border-top: 1px solid var(--c-topo); }
.accordion__item > summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; min-height: 48px;
  font-size: 1.25rem; font-weight: 600; line-height: 1.3;
}
.accordion__item > summary::-webkit-details-marker { display: none; }
.accordion__item > summary::after {
  content: ""; flex: none; width: 20px; height: 20px;
  background: currentColor;
  -webkit-mask: url("../svg/plus.svg") center / contain no-repeat; mask: url("../svg/plus.svg") center / contain no-repeat;
  transition: transform var(--t-fast) var(--ease-move), color var(--t-fast);
}
.accordion__item[open] > summary::after { transform: rotate(45deg); color: var(--c-green-hover); }
.accordion__item > summary:hover { color: var(--c-green-hover); }
.accordion__item > p { padding-bottom: 24px; }

/* ---------- Tło z warstwicami ---------- */
.topo { position: relative; isolation: isolate; overflow: clip; } /* clip: dryf i scale warstwic nie mogą poszerzać strony na mobile */
.topo::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: center / cover no-repeat;
}
.topo--1::after { background-image: url("../svg/topo-bg-1.svg"); }
.topo--2::after { background-image: url("../svg/topo-bg-2.svg"); }
.topo--3::after { background-image: url("../svg/topo-bg-3.svg"); }

/* FAQ: płynna wysokość tam, gdzie przeglądarka to umie (progressive enhancement) */
@supports (interpolate-size: allow-keywords) {
  .accordion { interpolate-size: allow-keywords; }
  .accordion__item::details-content {
    height: 0; overflow: clip;
    transition: height 400ms var(--ease-move), content-visibility 400ms allow-discrete;
  }
  .accordion__item[open]::details-content { height: auto; }
}
