/* ==========================================================================
   Przewodniki SEO (klub komputerowy 24/7, shisha bar 24/7, urodziny):
   częste pytania w <details> i tabela porównania klubów.
   Wyłącznie tokeny systemu (css/flood.css), ostre rogi, bez nowych kolorów.
   ========================================================================== */

/* --- Częste pytania: spokojne karty, pytanie zwykłym zdaniem ---------------
   Księga: tekst nigdy kursywą ani wersalikami, więc pytanie jest proste. */
.pg-faq { display: flex; flex-direction: column; gap: 12px; max-width: 940px; }
.pg-faq details { background: var(--surface); color: var(--surface-text); box-shadow: var(--cien-karta); }
[data-theme="dark"] .pg-faq details { background: var(--u-grad-pas) left top / 100% 4px no-repeat, var(--surface); }
.pg-faq summary {
  position: relative;
  display: block;
  min-height: 60px;
  padding: 18px 64px 18px 24px;
  list-style: none;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.4;
  cursor: pointer;
}
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  background:
    linear-gradient(currentColor, currentColor) center / 18px 3px no-repeat,
    linear-gradient(currentColor, currentColor) center / 3px 18px no-repeat;
  transition: transform 0.3s ease;
}
.pg-faq details[open] summary::after { transform: rotate(45deg); }
.pg-faq summary:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pg-faq summary:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.pg-faq details > p { margin: 0; max-width: 780px; padding: 0 24px 22px; font-size: 17px; line-height: 1.6; color: var(--surface-text-2); }
.pg-faq details > p a { color: var(--surface-text); font-weight: 700; }
@media (max-width: 480px) {
  .pg-faq summary { padding: 16px 52px 16px 18px; font-size: 17px; }
  .pg-faq summary::after { right: 18px; }
  .pg-faq details > p { padding: 0 18px 18px; }
}
@media (prefers-reduced-motion: reduce) { .pg-faq summary::after { transition: none; } }

/* --- Porównanie klubów: tabela na spokojnej karcie ------------------------- */
.pg-cmp { padding: clamp(20px, 3vw, 36px); overflow-wrap: anywhere; }
.pg-cmp table { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.4; }
.pg-cmp th, .pg-cmp td { padding: 14px 14px 14px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--chip); }
.pg-cmp thead th {
  padding-top: 0;
  vertical-align: bottom;
  border-bottom: 3px solid currentColor;
  font-style: italic;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pg-cmp thead .u-tag { margin-left: 6px; font-size: 14px; }
.pg-cmp tbody th { width: 21%; font-weight: 700; color: var(--surface-text); }
.pg-cmp td { font-weight: 500; color: var(--surface-text-2); }
.pg-cmp td.pg-cmp__us { width: 27%; font-weight: 800; color: var(--surface-text); }
.pg-cmp tbody tr:last-child > * { border-bottom: 0; }
.pg-cmp__foot { margin: 18px 0 0; font-size: 15px; line-height: 1.5; color: var(--surface-text-2); }

@media (max-width: 760px) {
  .pg-cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pg-cmp table, .pg-cmp tbody, .pg-cmp tr, .pg-cmp th, .pg-cmp td { display: block; width: auto; }
  .pg-cmp tbody th, .pg-cmp td.pg-cmp__us { width: auto; }
  .pg-cmp tr { padding: 16px 0; border-bottom: 1px solid var(--chip); }
  .pg-cmp tbody tr:first-child { padding-top: 0; }
  .pg-cmp tbody tr:last-child { padding-bottom: 0; border-bottom: 0; }
  .pg-cmp th, .pg-cmp td { padding: 0; border: 0; }
  .pg-cmp tbody th { margin-bottom: 6px; font-style: italic; font-weight: 900; font-size: 18px; text-transform: uppercase; }
  .pg-cmp td { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 5px 0; text-align: right; }
  .pg-cmp td::before { content: attr(data-label); flex: none; font-weight: 700; text-align: left; color: var(--surface-text); }
}

/* --- Tabela cen ze strefami w wierszach (.fl-pt.pg-zt) ---------------------
   Nazwy stref są długie, więc na telefonie nazwa z dopiskiem zajmuje całą
   szerokość, a ceny pn–pt i weekend schodzą pod nią, w kolumnach nagłówka. */
@media (max-width: 560px) {
  .pg-zt, .pg-zt thead, .pg-zt tbody { display: block; }
  .pg-zt tr { display: grid; grid-template-columns: minmax(0, 1fr) 38% 38%; align-items: baseline; border-bottom: 1px solid var(--accent-line); }
  .pg-zt tbody tr:last-child { border-bottom: 0; }
  .pg-zt th, .pg-zt td { border-bottom: 0; }
  .pg-zt .fl-pt__d, .pg-zt .fl-pt__w { width: auto; }
  .pg-zt tbody th { grid-column: 1 / -1; padding-bottom: 2px; }
  .pg-zt tbody td { padding-top: 6px; }
  .pg-zt tbody td.fl-pt__d { grid-column: 2; }
  .pg-zt tbody td.fl-pt__w { grid-column: 3; }
}

/* Bloki cen w jednym rzędzie równej wysokości; etykieta na dole bloku */
.pg-stretch { align-items: stretch; }
.pg-stretch .fl-block > .u-tag:last-child { margin-top: auto; }
