@font-face {
  font-family: "TeleNeo";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/TeleNeo-Regular.otf") format("opentype");
}
@font-face {
  font-family: "TeleNeo";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/TeleNeo-Medium.otf") format("opentype");
}
@font-face {
  font-family: "TeleNeo";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/TeleNeo-Bold.otf") format("opentype");
}
@font-face {
  font-family: "TeleNeo";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/TeleNeo-ExtraBold.otf") format("opentype");
}

/*
  Baza strony: reset, typografia (style tekstu z Figmy), kontener i siatka.
  Wartości wyłącznie z tokenów (dist/css/tokens.css = zmienne Figmy, nazwy = motyw Tailwind v4).
  @font-face TeleNeo dokleja build.py.
*/

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

html {
  overflow-x: clip; /* dekoracje wychodzące za kadr nie poszerzają strony */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Proporcjonalne skalowanie desktopu (decyzja 2026-10-27): projekt jest na 1920 — na węższych
   ekranach desktopowych cała strona (rem: tekst, odstępy, przyciski) zmniejsza się razem z oknem
   (szerokość / 1920), najwyżej do 87,5 % (osiągane przy 1680; 1240–1680 stałe 87,5 %).
   ≥ 1920 i < 1240 — 100 %. „100 % − 16px” zachowuje powiększenie czcionki ustawione w przeglądarce. */
@media (min-width: 77.5em) {
  html {
    font-size: clamp(87.5%, 100% - 16px + 100vw / 120, 100%); /* 100vw / 120 = 16 px przy 1920 */
  }
}

body {
  margin: 0;
  /* tło strony kategorii 28_09 jest białe — celowo (docs/decisions.md);
     strefa jasnoszara zaczyna się od pierwszej ciemnej sekcji (S2) */
  background: var(--color-surface);
  color: var(--color-fg);
  font-family: var(--font-sans);
  font-size: var(--text-t2);
  line-height: var(--text-t2--line-height);
  font-weight: var(--font-weight-medium);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd {
  margin: 0;
}
ul, ol {
  padding: 0;
  list-style: none;
}
img, svg, video {
  display: block;
  max-width: 100%;
}
button, input, select, textarea {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}

/* zasada marki: „T-Mobile” i „T Business” zawsze w jednym wierszu */
.tm-nowrap {
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Pierścień fokusu dla elementów strony spoza katalogu — ten sam co w komponentach katalogu
   (decyzja 2026-10-23): czarny 2 px, 2 px od elementu + biały 2 px na zewnątrz; tylko z klawiatury. */
.focus-ring {
  position: relative;
}
.focus-ring:focus {
  outline: none;
}
.focus-ring:focus-visible {
  outline: 2px solid var(--color-line-focus);
  outline-offset: 2px;
}
.focus-ring:focus-visible::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px solid var(--color-line-on-dark);
  border-radius: inherit;
  pointer-events: none;
}

/* ── Style tekstu (Figma: jedna rodzina stylów, rozmiar z trybu „T-Mobile · skala”) ──
   W Tailwind v4: text-h1 + font-bold itd. Rozmiary mobilne podmienia media query w tokens.css. */
.t-h1 { font-size: var(--text-h1); line-height: var(--text-h1--line-height); font-weight: var(--font-weight-bold); }
.t-h2 { font-size: var(--text-h2); line-height: var(--text-h2--line-height); font-weight: var(--font-weight-bold); }
.t-h3 { font-size: var(--text-h3); line-height: var(--text-h3--line-height); font-weight: var(--font-weight-bold); }
.t-h4 { font-size: var(--text-h4); line-height: var(--text-h4--line-height); font-weight: var(--font-weight-bold); }
.t-h5 { font-size: var(--text-h5); line-height: var(--text-h5--line-height); font-weight: var(--font-weight-medium); }
.t-a2 { font-size: var(--text-a2); line-height: var(--text-a2--line-height); font-weight: var(--font-weight-regular); }
.t-a1 { font-size: var(--text-a1); line-height: var(--text-a1--line-height); font-weight: var(--font-weight-regular); }
.t-a1-bold { font-size: var(--text-a1); line-height: var(--text-a1--line-height); font-weight: var(--font-weight-bold); }
.t-t2 { font-size: var(--text-t2); line-height: var(--text-t2--line-height); font-weight: var(--font-weight-medium); }
.t-t2-bold { font-size: var(--text-t2); line-height: var(--text-t2--line-height); font-weight: var(--font-weight-bold); }
.t-t1 { font-size: var(--text-t1); line-height: var(--text-t1--line-height); font-weight: var(--font-weight-regular); }
.t-t1-bold { font-size: var(--text-t1); line-height: var(--text-t1--line-height); font-weight: var(--font-weight-extrabold); }
.t-t1-bold-700 { font-size: var(--text-t1); line-height: var(--text-t1--line-height); font-weight: var(--font-weight-bold); }
.t-s1 { font-size: var(--text-s1); line-height: var(--text-s1--line-height); font-weight: var(--font-weight-regular); }
.t-s1-bold { font-size: var(--text-s1); line-height: var(--text-s1--line-height); font-weight: var(--font-weight-extrabold); }

/* ── Układ ──────────────────────────────────────────────────────
   Siatka Figmy: 1920, 12 kolumn, gutter 20, margines 195 → treść 1530.
   Shell (biały / ciemny, radius 100): margines 100 → 1720, wnętrze 95.
   Mobile: margines 20 (uklad/margines-mobile). */
:root {
  /* gradienty marki (style Figmy; zmienne Figmy nie przechowują gradientów) */
  --gradient-magenta-brand: linear-gradient(-45deg, var(--color-magenta) 0%, #ff1f92 100%); /* Magenta Gradient Brand */
  --page-max: 120rem;
  --content-max: 95.625rem;
  --shell-max: 107.5rem;
  --page-gutter: var(--spacing-20); /* minimalny margines na węższych ekranach */
}

.tm-container {
  width: min(var(--content-max), 100% - 2 * var(--page-gutter));
  margin-inline: auto;
}

.tm-shell {
  width: min(var(--shell-max), 100% - 2 * var(--page-gutter));
  margin-inline: auto;
}

/* SEPARATOR — 100 px między sekcjami (mobile 60 / 40, zależnie od miejsca).
   Kolor = kolor strefy, w której stoi (biały u góry, od S2 w dół tło/jasnoszare) — nigdy ciemny. */
.tm-separator {
  height: var(--spacing-100);
}
.tm-separator--subtle {
  background: var(--color-surface-subtle);
}

@media (max-width: 47.999em) {
  :root {
    --page-gutter: var(--spacing-page-x-mobile);
  }
  /* SEPARATOR na mobile: 60 (w Figmie 40 albo 60 — tu wszędzie 60, wyjątki w sekcjach) */
  .tm-separator {
    height: var(--spacing-60);
  }
}

/* Link „Przejdź do treści” (WCAG 2.4.1) — pierwszy element strony; poza ekranem, po fokusie z klawiatury wjeżdża
   w lewy górny róg nad header (pigułka T2, biała, cień pływający, pierścień dwutonowy). Cel: <main id="tresc">. */
.skip-link {
  position: fixed;
  top: var(--spacing-10);
  left: var(--spacing-10);
  z-index: 100;
  padding: var(--spacing-10) var(--spacing-20);
  border-radius: var(--radius-100);
  background: var(--color-surface);
  box-shadow: var(--shadow-floating);
  color: var(--color-fg);
  font-size: var(--text-t2);
  line-height: var(--text-t2--line-height);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transform: translateY(calc(-100% - var(--spacing-20)));
}
.skip-link:focus {
  outline: none;
}
.skip-link:focus-visible {
  transform: none;
  outline: 2px solid var(--color-line-focus);
  outline-offset: 2px;
}
.skip-link:focus-visible::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px solid var(--color-line-on-dark);
  border-radius: inherit;
  pointer-events: none;
}
/* cel linku: fokus programowy na <main> i na sekcji-kotwicy (komponenty/przewijanie.js) bez obrysu —
   to nie są kontrolki; dalej Tab idzie od początku tej treści */
main:focus,
section[tabindex='-1']:focus {
  outline: none;
}



/* Ikony: wymiar z atrybutów w rem (generowane z użytych ikon) */
:where(svg[data-icon][width="8"][height="10"]) { width: 0.5rem; height: 0.625rem; }
:where(svg[data-icon][width="12"][height="12"]) { width: 0.75rem; height: 0.75rem; }
:where(svg[data-icon][width="16"][height="16"]) { width: 1rem; height: 1rem; }
:where(svg[data-icon][width="20"][height="20"]) { width: 1.25rem; height: 1.25rem; }
:where(svg[data-icon][width="24"][height="24"]) { width: 1.5rem; height: 1.5rem; }
:where(svg[data-icon][width="30"][height="30"]) { width: 1.875rem; height: 1.875rem; }
:where(svg[data-icon][width="40"][height="40"]) { width: 2.5rem; height: 2.5rem; }
:where(svg[data-icon][width="56"][height="56"]) { width: 3.5rem; height: 3.5rem; }
