/* Klinika Tysiąc — tymczasowa wizytówka (KT · 70, 18.11.2026).
   Bez skryptów, bez zewnętrznych zasobów, bez plików cookie.
   Kroje: Gloock (OFL, lokalnie) w nagłówkach, tekst krojem systemowym. */

@font-face {
  font-family: "Gloock";
  src: url("/assets/fonts/Gloock-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --tlo: #f5f0ea;
  --tlo-karta: #fbf8f4;
  --tusz: #1f2c2e;
  --tusz-2: #4a5759;
  --marka: #3a4f52;
  --marka-ciemna: #24383a;
  --roz: #e6c9c3;
  --roz-jasny: #f0dfda;
  --szalwia: #d6dfd9;
  --linia: #ddd3c9;
  --todo: #fff3b0;
  --todo-ramka: #a67c00;
  --szer: 68rem;
  --szer-tekst: 42rem;
  --margines: clamp(1.25rem, 5vw, 2.5rem);
  --serif: "Gloock", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ruch: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--tlo);
  color: var(--tusz);
  font: 400 1.0625rem/1.65 var(--sans);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; }

a {
  color: var(--marka);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
a:hover { color: var(--marka-ciemna); text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--marka); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--roz); color: var(--tusz); }

.wrap { width: 100%; max-width: var(--szer); margin: 0 auto; padding: 0 var(--margines); }

main { flex: 1; }

/* Przyciski */
.przycisk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 1.75rem;
  border: 1.5px solid var(--marka);
  border-radius: 999px;
  background: var(--marka);
  color: #fff;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s var(--ruch);
}
.przycisk:hover { background: var(--marka-ciemna); border-color: var(--marka-ciemna); color: #fff; transform: translateY(-2px); }
.przycisk:active { transform: translateY(0) scale(0.98); }
.przycisk:focus-visible { outline: 3px solid var(--marka); outline-offset: 3px; border-radius: 999px; }
.przycisk--obrys { background: transparent; color: var(--marka-ciemna); }
.przycisk--obrys:hover { background: var(--marka); color: #fff; }

/* Strona główna */
.start { padding: clamp(2.5rem, 8vh, 5.5rem) 0 0; overflow: hidden; }
.start__uklad {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}
.start__tekst { padding-bottom: clamp(2.5rem, 8vh, 5rem); }
.start h1 { margin: 0; }
.start .logo { display: block; width: min(21rem, 72vw); height: auto; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 clamp(1.75rem, 5vh, 2.75rem);
  padding: 0.4rem 0.95rem 0.4rem 0.8rem;
  border: 1px solid var(--roz);
  border-radius: 999px;
  background: var(--roz-jasny);
  color: var(--marka-ciemna);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}
.status__kropka { flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--marka); }

.haslo {
  margin: clamp(1.75rem, 4.5vh, 2.5rem) 0 0;
  max-width: 17ch;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 2.75rem);
  line-height: 1.14;
  letter-spacing: -0.005em;
  color: var(--marka-ciemna);
  text-wrap: balance;
}
.start .lead {
  margin: 1.1rem 0 0;
  max-width: 31rem;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  color: var(--tusz-2);
  text-wrap: pretty;
}
.start .akcje { margin-top: clamp(1.75rem, 4.5vh, 2.5rem); display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* Łuki stoją na linii nad kontaktem */
.start__znak { justify-self: end; align-self: end; width: min(100%, 23rem); }
.start__znak svg { display: block; width: 100%; height: auto; overflow: visible; }
.znak-szalwia { fill: var(--szalwia); }
.znak-roz { fill: var(--roz); }
.znak-kolo { fill: var(--marka); }
.znak-linia { fill: none; stroke: var(--marka); stroke-width: 1.25; opacity: 0.55; }

/* Kontakt */
.kontakt-pas { background: var(--tlo-karta); border-top: 1px solid var(--linia); }
.kontakt {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: clamp(2rem, 5vh, 3rem);
  padding-bottom: clamp(2.25rem, 6vh, 3.5rem);
}
.kontakt > div { padding: 0 clamp(1.25rem, 3vw, 2.5rem); border-left: 1px solid var(--linia); }
.kontakt > div:first-child { padding-left: 0; border-left: 0; }
.kontakt > div:last-child { padding-right: 0; }
.kontakt h2 {
  margin: 0 0 0.6rem;
  font: 600 0.75rem/1.4 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tusz-2);
}
.kontakt p, .kontakt address { margin: 0; font-size: 1.125rem; line-height: 1.55; font-style: normal; }
.kontakt .lacze { display: inline-block; padding: 0.5rem 0; }
.strzalka::after { content: "\2192"; display: inline-block; margin-left: 0.4em; transition: transform 0.2s var(--ruch); }
.strzalka:hover::after { transform: translateX(4px); }

/* Nagłówek podstron */
.naglowek { padding: 1.1rem 0; border-bottom: 1px solid var(--linia); background: var(--tlo); }
.naglowek .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.naglowek a:has(img) { display: block; border-radius: 6px; }
.naglowek img { display: block; width: clamp(6.5rem, 22vw, 8.25rem); height: auto; }
.naglowek nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.4rem 1.2rem;
  border: 1.5px solid var(--marka);
  border-radius: 999px;
  color: var(--marka-ciemna);
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s var(--ruch);
}
.naglowek nav a:hover { background: var(--marka); color: #fff; transform: translateY(-1px); }
.naglowek nav a:active { transform: translateY(0) scale(0.98); }
.naglowek nav a:focus-visible { border-radius: 999px; }

/* Dokumenty */
.dokument { padding: clamp(2.5rem, 7vh, 4.5rem) 0 clamp(3.5rem, 9vh, 6rem); }
.dokument .tresc > * { max-width: var(--szer-tekst); }
.dokument h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 1.3rem + 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--marka-ciemna);
  text-wrap: balance;
}
.dokument .podtytul {
  margin: 1rem 0 clamp(2rem, 5vh, 3rem);
  padding-bottom: clamp(1.5rem, 4vh, 2.25rem);
  border-bottom: 1px solid var(--linia);
  color: var(--tusz-2);
  font-size: 1.125rem;
}
.dokument h2 {
  margin: 2.75rem 0 0.75rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.3rem, 1.15rem + 0.7vw, 1.5rem);
  line-height: 1.25;
  color: var(--marka-ciemna);
}
.dokument p { margin: 0 0 1rem; text-wrap: pretty; }
.dokument h1 + p:not(.podtytul) { margin-top: 1.5rem; }
.dokument ol, .dokument ul { margin: 0 0 1rem; padding-left: 1.5rem; }
.dokument li { margin: 0.6rem 0; padding-left: 0.3rem; }
.dokument ol > li::marker { color: var(--marka); font-weight: 600; font-variant-numeric: tabular-nums; }
.dokument ul > li::marker { color: #b98d86; }
.dokument li > ul { margin: 0.5rem 0 0; }
.dokument li > ul > li { margin: 0.35rem 0; }
.dokument strong { font-weight: 650; color: var(--marka-ciemna); }
.dokument .wersja {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--linia);
  color: var(--tusz-2);
  font-size: 0.9375rem;
}
.dokument .powrot { margin-top: 2rem; }

/* Stopka */
.stopka { background: var(--marka-ciemna); color: #dfe7e6; padding: 1.5rem 0; font-size: 0.9375rem; }
.stopka .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 2rem; }
.stopka p { margin: 0; }
.stopka nav { display: flex; flex-wrap: wrap; gap: 0 1.75rem; }
.stopka a { display: inline-flex; align-items: center; min-height: 2.75rem; color: #fff; text-decoration-color: rgba(255, 255, 255, 0.45); }
.stopka a:hover { color: var(--roz); text-decoration-color: currentColor; }
.stopka a:focus-visible { outline-color: #fff; }
.stopka a[aria-current="page"] { text-decoration: none; color: var(--roz); }

/* Pola do uzupełnienia przed publikacją — skrypt kontrolny pilnuje, żeby ich nie było */
.todo {
  display: inline;
  padding: 0.08em 0.3em;
  border: 1px dashed var(--todo-ramka);
  border-radius: 0.3em;
  background: var(--todo);
  color: #4a3b00;
  font-family: var(--sans);
  font-size: 0.9em;
  font-weight: 500;
  letter-spacing: 0;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Wejście strony głównej: raz, tylko gdy użytkownik nie ogranicza ruchu */
@media (prefers-reduced-motion: no-preference) {
  @keyframes wejscie { from { opacity: 0; transform: translateY(14px); } }
  @keyframes wzrost { from { opacity: 0; transform: translateY(36px); } }
  @keyframes osiadanie { from { opacity: 0; transform: translateY(-28px) scale(0.9); } }
  @keyframes rysowanie { from { stroke-dashoffset: 1; } }

  .start__tekst > * { animation: wejscie 0.7s var(--ruch) both; }
  .start__tekst > :nth-child(2) { animation-delay: 0.08s; }
  .start__tekst > :nth-child(3) { animation-delay: 0.16s; }
  .start__tekst > :nth-child(4) { animation-delay: 0.24s; }
  .start__tekst > :nth-child(5) { animation-delay: 0.32s; }
  .znak-szalwia { animation: wzrost 0.9s var(--ruch) 0.1s both; }
  .znak-roz { animation: wzrost 0.9s var(--ruch) 0.22s both; }
  .znak-kolo { animation: osiadanie 0.9s var(--ruch) 0.55s both; transform-box: fill-box; transform-origin: center; }
  .znak-linia { stroke-dasharray: 1; animation: rysowanie 1.4s var(--ruch) 0.5s both; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Węższe ekrany */
@media (max-width: 52rem) {
  .start__uklad { grid-template-columns: minmax(0, 1fr); }
  .start__uklad { gap: 1.5rem; }
  .start__tekst { padding-bottom: 0; }
  /* Na telefonie widać górną część rysunku */
  .start__znak { justify-self: end; width: min(60%, 13rem); height: 9.5rem; overflow: hidden; }
  .kontakt { grid-template-columns: minmax(0, 1fr); }
  .kontakt > div, .kontakt > div:first-child, .kontakt > div:last-child { padding: 1.25rem 0; border-left: 0; border-top: 1px solid var(--linia); }
  .kontakt > div:first-child { padding-top: 0; border-top: 0; }
  .kontakt > div:last-child { padding-bottom: 0; }
}

@media (max-width: 30rem) {
  .start .akcje { flex-direction: column; align-items: stretch; }
  .stopka .wrap { flex-direction: column; align-items: flex-start; }
}

@media print {
  .naglowek nav, .start__znak, .status { display: none; }
  body { background: #fff; }
  .stopka { background: none; color: #000; border-top: 1px solid #999; }
  .stopka a { color: #000; }
}
