/* ============================================================
   WARIANT D — „Kontrast"
   Biel, czerń, szarości. Zero akcentu.
   Hierarchię niesie typografia, skala i jasność — nie kolor.
   Czysta czerń pojawia się dokładnie dwa razy i zawsze coś znaczy:
   wolny termin w siatce oraz sekcja kontaktu.
   ============================================================ */

:root {
  --paper:  #FFFFFF;
  --sur:    #F4F4F4;
  --sur-2:  #EAEAEA;
  --line:   #DCDCDC;
  --line-2: #BFBFBF;
  --grey:   #8C8C8C;
  --muted:  #5A5A5A;
  --ink:    #121212;
  --black:  #000000;

  --display: "Epilogue", system-ui, -apple-system, sans-serif;
  --body:    "Literata", Georgia, serif;
  --mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  --w:   1180px;
  --gut: clamp(20px, 5vw, 54px);
  --sp:  clamp(72px, 10vh, 124px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(16.5px, 1.05vw, 18px);
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.invert :focus-visible, .cell--free:focus-visible { outline-color: var(--paper); }

.sr {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; text-decoration: none;
}
.skip:focus { left: 12px; top: 12px; }

.wrap {
  width: 100%; max-width: var(--w);
  margin-inline: auto; padding-inline: var(--gut);
}

/* ---------- typografia ---------- */

/* mono to trzeci głos: wszystkie etykiety, godziny i liczby */
.lab {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0 0 1rem;
}
.lab--r { margin: 0; }

.h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.8vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -0.034em;
  margin: 0 0 0.6em;
  max-width: 19ch;
  text-wrap: balance;
}

.section__l, .note { color: var(--muted); }
.section__l { max-width: 52ch; font-size: 1.02rem; }
.note {
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.7;
  letter-spacing: -0.01em;
  max-width: 46ch;
}

/* ---------- przyciski ---------- */

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  padding: 15px 26px;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--muted); }
.btn--sm { padding: 10px 17px; font-size: 0.76rem; }

.ln {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.ln:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- pasek górny ---------- */

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; gap: 24px; min-height: 70px; }

.mark { text-decoration: none; display: grid; margin-right: auto; line-height: 1.15; }
.mark__n {
  font-family: var(--display); font-weight: 700;
  font-size: 1rem; letter-spacing: -0.03em;
}
.mark__d {
  font-family: var(--mono); font-size: 0.64rem; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey);
}

.nav { display: flex; gap: 22px; }
.nav a {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-decoration: none; color: var(--muted);
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--ink); }
.nav__cta { display: none; }

/* kreski pozycjonowane absolutnie względem środka — tylko wtedy
   po otwarciu stykają się dokładnie w krzyżyk */
.burger {
  display: none; position: relative;
  width: 40px; height: 40px; padding: 0;
  background: none; border: 1px solid var(--line-2); cursor: pointer;
}
.burger span {
  position: absolute; left: 50%; top: 50%;
  width: 16px; height: 1.5px;
  margin-left: -8px; margin-top: -0.75px;
  background: var(--ink);
  transition: transform 0.25s ease;
}
.burger span:first-child { transform: translateY(-3.5px); }
.burger span:last-child  { transform: translateY(3.5px); }
body.nav-open .burger span:first-child { transform: rotate(45deg); }
body.nav-open .burger span:last-child  { transform: rotate(-45deg); }

/* ---------- hero ---------- */

.hero { padding: clamp(52px, 9vh, 96px) 0 clamp(64px, 9vh, 104px); }

.hero__t {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.15rem, 5.6vw, 4.15rem);
  line-height: 0.99;
  letter-spacing: -0.05em;
  margin: 0 0 1.15rem;
  max-width: 21ch;
}
.hero__l { color: var(--muted); max-width: 54ch; margin: 0; font-size: 1.04rem; }

/* ---------- SIGNATURE: tydzień ---------- */

.week-block { margin-top: clamp(44px, 6vh, 72px); }
.week-block__top {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  align-items: baseline; justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
}
.week-block__top .lab { margin: 0; color: var(--ink); }

.week {
  display: grid;
  grid-template-columns: 62px repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-top: 4px;
}
.week__corner { display: block; }
.week__day {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  padding: 10px 0 12px;
  text-align: center;
}
.week__day-abbr { display: none; }
.week__time {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--grey);
  display: flex; align-items: center;
  padding-right: 12px;
}

.cell {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  display: grid; place-items: center;
  min-height: 46px;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
/* zajęte: płaska szarość, nie zaprasza */
.cell--busy { background: var(--sur); color: var(--line-2); }
/* wolne: pierwsze z dwóch użyć czystej czerni na stronie */
.cell--free {
  background: var(--black);
  color: var(--paper);
}
.cell--free:hover {
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
@keyframes pop {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: none; }
}

.week__legend {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  display: flex; align-items: center; gap: 8px;
  margin: 18px 0 0;
}
.key {
  display: inline-block;
  width: 22px; height: 10px;
}
.key--free { background: var(--black); }
.key--busy { background: var(--sur); margin-left: 14px; }

.week__note {
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.7;
  color: var(--grey);
  max-width: 56ch;
  margin: 14px 0 0;
}
.week__fallback { font-size: 0.95rem; color: var(--muted); margin: 20px 0 0; }
.week__fallback a { text-decoration: underline; text-underline-offset: 2px; }

/* wersja telefonowa siatki — te same dane, inny kształt */
.week-list { display: none; }
.week-list__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.week-list__day {
  font-family: var(--mono);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--grey);
}
.week-list__slots { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--mono);
  font-size: 0.86rem;
  background: var(--black); color: var(--paper);
  padding: 11px 18px;
  text-decoration: none;
}
.chip--none {
  background: var(--sur); color: var(--line-2);
  letter-spacing: 0.04em; font-size: 0.78rem;
}

/* ---------- sekcje ---------- */

.section { padding-block: var(--sp); border-top: 1px solid var(--line); }
.section--sur { background: var(--sur); border-top-color: var(--sur); }

.two {
  display: grid;
  grid-template-columns: minmax(230px, 0.74fr) 1fr;
  gap: clamp(30px, 5vw, 86px);
  align-items: start;
}
.two__side { position: sticky; top: 100px; }

/* obszary — płaskie plansze, bez obrysów */
.plates {
  list-style: none; margin: clamp(38px, 5vh, 58px) 0 0; padding: 0;
  display: grid; gap: 4px;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
}
.plates li {
  background: var(--sur);
  padding: 30px 28px 32px;
  transition: background 0.2s ease;
}
.plates li:hover { background: var(--sur-2); }
.plates h3 {
  font-family: var(--display);
  font-weight: 700; font-size: 1.02rem;
  letter-spacing: -0.026em;
  line-height: 1.25;
  margin: 0 0 0.6em;
}
.plates p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* o mnie */
.about {
  display: grid;
  grid-template-columns: minmax(220px, 0.66fr) 1fr;
  gap: clamp(32px, 5vw, 82px);
  align-items: start;
}
.ph { margin: 0; }
.ph__box {
  aspect-ratio: 3 / 4;
  background: linear-gradient(165deg, #E2E2E2, #CFCFCF);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 0.72rem; letter-spacing: 0.1em; color: var(--muted);
}
.ph figcaption {
  font-family: var(--mono);
  font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--grey); margin-top: 10px;
}
.about__main p { color: var(--muted); max-width: 60ch; }
.bigger {
  font-size: 1.16rem; line-height: 1.5;
  color: var(--ink) !important;
  margin-top: 0;
}

.creds {
  margin: 2.4rem 0 0; padding-top: 1.8rem;
  border-top: 1px solid var(--line-2);
  display: grid; gap: 0.9rem;
}
.creds > div {
  display: grid; grid-template-columns: 118px 1fr;
  gap: 6px 22px; align-items: baseline;
}
.creds dt {
  font-family: var(--mono);
  font-size: 0.74rem; letter-spacing: 0.06em;
  color: var(--grey);
}
.creds dd { margin: 0; font-size: 0.96rem; }

/* przebieg */
.band {
  list-style: none; margin: clamp(38px, 5vh, 58px) 0 0; padding: 0;
  display: grid; gap: clamp(24px, 3vw, 40px);
  grid-template-columns: repeat(auto-fit, minmax(224px, 1fr));
}
.band li { padding-top: 20px; border-top: 2px solid var(--ink); }
.band__n {
  display: block;
  font-family: var(--mono);
  font-size: 0.74rem; letter-spacing: 0.14em;
  color: var(--grey); margin-bottom: 0.85rem;
}
.band h3 {
  font-family: var(--display);
  font-weight: 700; font-size: 1.04rem;
  letter-spacing: -0.026em;
  margin: 0 0 0.5em;
}
.band p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* cennik */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td {
  text-align: left;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-2);
  font-weight: 400;
}
.tbl tr:first-child th, .tbl tr:first-child td { border-top: 1px solid var(--line-2); }
.tbl th {
  font-family: var(--display);
  font-weight: 700; font-size: 0.98rem;
  letter-spacing: -0.024em;
}
.tbl td {
  font-family: var(--mono);
  font-size: 0.8rem; color: var(--grey);
  width: 96px;
}
.tbl__v {
  text-align: right !important;
  font-size: 0.98rem !important;
  font-weight: 500 !important;
  color: var(--ink) !important;
  width: 104px;
}

/* pytania */
.qa { border-bottom: 1px solid var(--line-2); }
.qa:first-child { border-top: 1px solid var(--line-2); }
.qa summary {
  cursor: pointer; list-style: none;
  font-family: var(--display);
  font-weight: 700; font-size: 0.99rem;
  letter-spacing: -0.026em;
  padding: 21px 46px 21px 0;
  position: relative;
  transition: color 0.2s ease;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--muted); }
.qa summary::before,
.qa summary::after {
  content: "";
  position: absolute; right: 8px; top: 50%;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.qa summary::before { width: 13px; height: 1.5px; margin-top: -0.75px; }
.qa summary::after  { width: 1.5px; height: 13px; margin-top: -6.5px; right: 13.75px; }
.qa[open] summary::after { transform: scaleY(0); opacity: 0; }
.qa > div { padding: 0 46px 24px 0; }
.qa p { margin: 0; color: var(--muted); max-width: 62ch; font-size: 0.96rem; }

/* ---------- kontakt: druga czerń ---------- */

.invert {
  background: var(--black);
  color: var(--paper);
  padding-block: var(--sp);
}
.invert .lab { color: #9A9A9A; }
.invert .h2 { color: var(--paper); }
.invert .note { color: #A8A8A8; }
.invert .btn { background: var(--paper); color: var(--ink); }
.invert .btn:hover { background: #C9C9C9; }
.invert .ln { color: #A8A8A8; border-color: #4A4A4A; }
.invert .ln:hover { color: var(--paper); border-color: var(--paper); }

.cta-row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 14px 24px; margin-top: 2rem;
}

.addr { font-style: normal; }
.addr dl { margin: 0; }
.addr > dl > div {
  display: grid; grid-template-columns: 100px 1fr;
  gap: 6px 22px;
  padding: 17px 0;
  border-bottom: 1px solid #2A2A2A;
}
.addr > dl > div:first-child { border-top: 1px solid #2A2A2A; }
.addr dt {
  font-family: var(--mono);
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #9A9A9A; padding-top: 4px;
}
.addr dd { margin: 0; font-size: 0.97rem; line-height: 1.5; }
.addr a { text-decoration: none; border-bottom: 1px solid #4A4A4A; }
.addr a:hover { border-color: var(--paper); }
.addr__x {
  font-family: var(--mono);
  font-size: 0.76rem; color: #8A8A8A; letter-spacing: -0.01em;
}

/* stopka — czerń domyka stronę razem z kontaktem */
.foot {
  background: var(--black);
  color: #8A8A8A;
  padding-block: 34px 46px;
  border-top: 1px solid #2A2A2A;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.7;
}
.foot__in { display: grid; gap: 10px; }
.foot p { margin: 0; }
.foot__n {
  font-family: var(--display);
  font-weight: 700; font-size: 0.95rem;
  letter-spacing: -0.028em;
  color: var(--paper);
}
.foot__links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 6px !important; }
.foot__links a { text-decoration: none; border-bottom: 1px solid #3A3A3A; }
.foot__links a:hover { border-color: var(--paper); }
.foot__crisis {
  margin-top: 10px !important;
  padding-top: 15px;
  border-top: 1px solid #2A2A2A;
  font-size: 0.74rem; max-width: 68ch;
}

/* ---------- responsywność ---------- */

@media (max-width: 1000px) {
  .week { grid-template-columns: 54px repeat(4, minmax(0, 1fr)); }
  .week__day-full { display: none; }
  .week__day-abbr { display: inline; }
  .cell { min-height: 42px; font-size: 0.78rem; }
}

@media (max-width: 940px) {
  .two, .about { grid-template-columns: 1fr; }
  .two__side { position: static; }
  .ph { max-width: 280px; }
  .h2 { max-width: 24ch; }
}

@media (max-width: 700px) {
  .burger { display: block; }
  .topbar__in { gap: 12px; }
  .topbar .btn--sm { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line-2);
    padding: 4px var(--gut) 20px;
  }
  body.nav-open .nav { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: none; }

  /* na telefonie siatka 4×8 jest nieczytelna — te same dane jako lista */
  .week { display: none; }
  .week-list { display: block; }
  .week-list__row:first-child { border-top: 1px solid var(--line); }

  .tbl td { width: auto; }
  .creds > div, .addr > dl > div { grid-template-columns: 1fr; gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  .cell--free { animation: none !important; }
}
