/* plock.slot.edu.pl — prezentacja Feliksa Fidelisa (ZAD1311). Kierunek: „drukowany raport” (tasteskill, seed 1586541634):
   oś pionowa na 5/12 szerokości, pola płaskiego koloru, jeden krój (Instrument Sans, lokalnie), kolory marki SLOT. */
@font-face { font-family: "Instrument Sans"; src: url("fonty/InstrumentSans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonty/InstrumentSans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonty/InstrumentSans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --papier: #f5f6fb; --ton: #e7e9f5; --atrament: #1c1b45; --cichy: #5b5a80;
  --granat: #343380; --noc: #23225a; --roz: #ec3b71; --slonce: #fcdc09; --morze: #1b80a5;
  --m: 32px; --przerwa: clamp(96px, 13vw, 200px);
  --t-wielki: clamp(40px, 6.1vw, 104px); --t-tytul: clamp(32px, 4.3vw, 68px); --t-lead: clamp(21px, 2.1vw, 31px);
  --t-tekst: 18px; --t-maly: 15px;
  --ruch: 620ms cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--papier); color: var(--atrament); font: 400 var(--t-tekst)/1.5 "Instrument Sans", system-ui, sans-serif; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--roz); outline-offset: 3px; }
::selection { background: var(--slonce); color: var(--atrament); }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.035em; line-height: 0.98; text-wrap: balance; }
h2 { font-size: var(--t-tytul); }
h3 { font-size: var(--t-lead); letter-spacing: -0.02em; line-height: 1.1; }
p { max-width: 62ch; }
.siatka { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding-inline: var(--m); }
.os { grid-column: 6 / -1; }
.bok { grid-column: 1 / 5; }
section { padding-block: calc(var(--przerwa) / 2); scroll-margin-top: 0; }
.cichy { color: var(--cichy); }
.liczba { font-variant-numeric: tabular-nums; }

/* pasek */
.pasek { position: absolute; inset: 0 0 auto 0; z-index: 5; display: flex; align-items: center; gap: 28px; padding: 22px var(--m); color: #fff; font-size: var(--t-maly); }
.pasek .znak { font-weight: 600; font-size: 18px; text-decoration: none; margin-right: auto; letter-spacing: -0.01em; }
.pasek a { text-decoration: none; padding-block: 12px; }
.pasek a:hover { text-decoration: underline; text-underline-offset: 5px; }
.pasek .akcja { background: var(--slonce); color: var(--atrament); padding: 12px 18px; font-weight: 600; transition: transform 160ms; }
.pasek .akcja:hover { text-decoration: none; transform: translateY(-2px); }
.pasek .akcja:active { transform: translateY(0); }

/* pierwszy ekran */
.start { position: relative; min-height: 100svh; background: var(--noc); color: #fff; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); overflow: hidden; }
.start .portret { grid-column: 8 / -1; grid-row: 1; position: relative; overflow: hidden; }
.start .portret img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; animation: dryf 26s ease-in-out infinite alternate; }
@keyframes dryf { from { transform: scale(1.02); } to { transform: scale(1.1) translateY(-1.5%); } }
.start .slowo { grid-column: 1 / 8; grid-row: 1; align-self: center; padding: 120px var(--m) 220px; }
.start h1 { font-size: var(--t-wielki); letter-spacing: -0.045em; line-height: 0.92; }
.start .pod { margin-top: 36px; font-size: var(--t-lead); line-height: 1.25; max-width: 30ch; letter-spacing: -0.015em; }
.start .gdzie { margin-top: 20px; font-size: var(--t-tekst); color: #c9cbee; }
.karty { position: absolute; left: var(--m); bottom: var(--m); display: flex; gap: 16px; z-index: 3; }
.karta { width: 232px; text-decoration: none; color: var(--atrament); background: var(--papier); transition: transform 200ms; }
.karta:hover { transform: translateY(-6px); }
.karta img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: top left; }
.karta span { display: flex; justify-content: space-between; padding: 9px 12px; font-size: 16px; font-weight: 500; }

/* wstęp */
.wstep .lead { grid-column: 1 / -1; font-size: var(--t-lead); line-height: 1.22; letter-spacing: -0.015em; max-width: 46ch; }
.wstep .kolumny { grid-column: 1 / -1; margin-top: 72px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.wstep .kolumny p { font-size: 16px; line-height: 1.5; color: var(--cichy); }
.wstep .kolumny b { color: var(--atrament); font-weight: 600; }

/* liczby */
.liczby h2 { grid-column: 1 / -1; margin-bottom: 40px; }
.mozaika { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; height: min(62vw, 880px); }
.mozaika figure { grid-row: 1 / 3; overflow: hidden; background: var(--ton); }
.mozaika figure img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.kafel { padding: 28px; }
.kafel.a { background: var(--slonce); }
.kafel.b { background: var(--granat); color: #fff; }
.kafel .liczba { font-size: clamp(54px, 6.4vw, 108px); font-weight: 600; letter-spacing: -0.05em; line-height: 0.9; }
.kafel p { margin-top: 14px; max-width: 24ch; line-height: 1.35; }
.tabela { grid-column: 6 / -1; margin-top: 88px; width: 100%; border-collapse: collapse; }
.tabela-tytul { grid-column: 1 / 5; margin-top: 88px; }
.tabela-tytul p { margin-top: 18px; color: var(--cichy); font-size: 16px; }
.tabela td { padding: 15px 0; border-top: 2px solid var(--ton); vertical-align: baseline; }
.tabela tr:first-child td { border-top: 0; padding-top: 0; }
.tabela td:first-child { font-size: var(--t-lead); font-weight: 600; letter-spacing: -0.03em; width: 4.4em; padding-right: 1em; text-align: right; font-variant-numeric: tabular-nums; }

/* trzy stany */
.stany h2 { grid-column: 6 / -1; margin-bottom: 20px; }
.stany .opis { grid-column: 6 / -1; margin-bottom: 64px; }
.stan { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: start; margin-bottom: 48px; }
.stan > .nazwa { grid-column: 1 / 5; font-size: 22px; color: var(--cichy); padding-top: 18px; }
.stan > .nazwa b { display: block; color: var(--atrament); font-weight: 600; font-variant-numeric: tabular-nums; }
.wiersz { grid-column: 6 / 12; background: #fff; border: 1px solid #cdd0e6; border-radius: 12px; padding: 20px 22px; font-size: 16px; }
.wiersz .q { display: inline-block; font-size: 13px; color: var(--cichy); border: 1px solid #cdd0e6; border-radius: 6px; padding: 1px 8px; margin-bottom: 10px; }
.wiersz .prop { font-weight: 600; font-size: 18px; line-height: 1.35; }
.wiersz .ctx { margin-top: 8px; color: var(--cichy); }
.wiersz .guziki { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.wiersz button { font: 600 16px "Instrument Sans", sans-serif; min-height: 44px; padding: 0 22px; border-radius: 8px; border: 1px solid #cdd0e6; background: #fff; color: var(--cichy); cursor: pointer; transition: transform 120ms, background 160ms; }
.wiersz button:hover { background: var(--ton); }
.wiersz button:active { transform: scale(.96); }
.wiersz button.tak-wybrane { background: #17803d; border-color: #17803d; color: #fff; }
.wiersz .wynik { margin-top: 14px; font-weight: 600; color: #17803d; }
.wiersz[data-stan="nowe"] { opacity: .78; }
#zywy .wynik { display: none; }
#zywy.zrobione .wynik { display: block; }
#zywy.odmowa .wynik { display: block; color: #a8163f; }

/* etapy */
.etapy h2 { grid-column: 1 / -1; font-size: var(--t-wielki); letter-spacing: -0.045em; margin-bottom: 64px; }
.belka { grid-column: 1 / -1; display: flex; gap: 6px; height: 24vh; min-height: 170px; }
.belka div { padding: 20px; font-size: clamp(19px, 1.9vw, 29px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; min-width: 13%; transform-origin: left; }
.belka div:nth-child(1) { background: var(--slonce); }
.belka div:nth-child(2) { background: var(--roz); color: var(--atrament); }
.belka div:nth-child(3) { background: var(--granat); color: #fff; }
.belka div:nth-child(4) { background: var(--morze); color: #fff; }
.podpisy { grid-column: 1 / -1; display: flex; gap: 6px; margin-top: 16px; }
.podpisy p { font-size: 17px; line-height: 1.35; min-width: 13%; padding-right: 14px; }

/* systemy: tytuł i opis u góry, pod nimi zrzut na całą szerokość */
.systemy-tytul h2 { grid-column: 6 / -1; }
.systemy-tytul p { grid-column: 6 / -1; margin-top: 24px; font-size: var(--t-lead); line-height: 1.25; letter-spacing: -0.015em; max-width: 30ch; }
.system { padding-block: 56px; align-items: start; }
.system h3 { grid-column: 1 / 6; font-size: clamp(28px, 3.4vw, 54px); letter-spacing: -0.04em; line-height: 0.98; }
.system .tresc { grid-column: 6 / -1; }
.system .tresc p { font-size: clamp(18px, 1.45vw, 22px); line-height: 1.45; }
.system .kto { margin-top: 12px; color: var(--cichy); }
.system .kto b { color: var(--atrament); font-weight: 600; }
.system figure { grid-column: 1 / -1; margin-top: 36px; background: var(--ton); }
.system figure img { width: 100%; }
.system figcaption { font-size: 14px; color: var(--cichy); padding: 10px 0 0; background: var(--papier); }
.system.pole figure { background: var(--granat); color: #fff; min-height: 180px; display: flex; align-items: flex-end; padding: 28px; }
.system.pole figure p { font-size: clamp(24px, 2.5vw, 36px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; max-width: 24ch; }
.system figure.fragment { background: none; }

/* fragmenty rysowane (poczta, skaner, rozmowa) */
.obieg { display: grid; grid-template-columns: 1fr 1.25fr 0.9fr; gap: 16px; align-items: start; background: var(--ton); padding: 28px; }
.okno { background: #fff; border-radius: 12px; padding: 22px 24px; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.45; }
.okno .skad { font-size: 15px; color: var(--cichy); }
.okno .temat { font-weight: 600; margin: 6px 0 10px; font-size: clamp(18px, 1.5vw, 23px); line-height: 1.2; letter-spacing: -0.015em; }
.okno.szkic { outline: 3px solid var(--slonce); }
.okno .podpis { margin-top: 14px; color: var(--cichy); font-size: 16px; }
.dymek { padding: 14px 18px; border-radius: 18px; margin-top: 12px; max-width: 46ch; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.4; }
.dymek b { display: block; font-size: 14px; font-weight: 600; opacity: .7; margin-bottom: 2px; }
.dymek.oni { background: var(--ton); border-bottom-left-radius: 4px; }
.dymek.ja { background: var(--granat); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.okno.sms .dymek { max-width: none; }
.czat { background: var(--ton); padding: 28px clamp(20px, 12vw, 220px); }
.czat .dymek { max-width: 62ch; }
.czat .dymek.oni { background: #fff; }
.czat .dymek:first-child { margin-top: 0; }
.skany { width: 100%; border-collapse: collapse; background: #fff; font-size: clamp(15px, 1.25vw, 19px); line-height: 1.35; }
.skany th { text-align: left; font-weight: 600; font-size: 15px; color: var(--cichy); padding: 16px 20px; background: var(--ton); }
.skany td { padding: 16px 20px; border-top: 2px solid var(--ton); vertical-align: top; }
.skany td:first-child { color: var(--cichy); white-space: nowrap; }
.skany td:nth-child(2) { font-weight: 600; }
.skany tr:last-child td { background: #fff3f6; }

/* dzień */
.dzien { background: var(--noc); color: #fff; padding-block: var(--przerwa); }
.dzien h2 { grid-column: 1 / 5; position: sticky; top: 40px; align-self: start; }
.dzien .teraz { grid-column: 1 / 5; grid-row: 2; align-self: start; position: sticky; top: calc(40px + 3 * var(--t-tytul)); margin-top: 28px; font-size: 16px; color: #c9cbee; }
.dzien .teraz b { display: block; font-size: var(--t-lead); color: var(--slonce); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin-top: 6px; }
.dzien ol { grid-column: 6 / -1; grid-row: 1 / 4; list-style: none; }
.dzien li { display: grid; grid-template-columns: 6.4em 1fr; gap: 20px; padding: 17px 16px; margin-inline: -16px; transition: background 300ms, color 300ms; }
.dzien li time { font-size: var(--t-lead); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dzien li.jest { background: var(--slonce); color: var(--atrament); }

/* granice */
.granice h2 { grid-column: 1 / 5; }
.granice .listy { grid-column: 6 / -1; columns: 3; column-gap: 32px; font-size: 19px; line-height: 1.4; }
.granice .listy div { break-inside: avoid; margin-bottom: 12px; }
.granice .listy .rodzaj { color: var(--cichy); break-before: column; margin-bottom: 14px; }
.granice .listy .rodzaj:first-child { break-before: auto; }

/* budowa */
.budowa { background: var(--ton); padding-block: var(--przerwa); }
.budowa h2 { grid-column: 1 / 5; }
.budowa dl { grid-column: 6 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 32px; }
.budowa dt { font-weight: 600; font-size: 22px; letter-spacing: -0.02em; margin-bottom: 8px; }
.budowa dd { font-size: 17px; }

/* zakończenie */
.koniec { padding: 0; }
.pas { display: grid; grid-template-columns: repeat(3, 1fr); }
.pas img { width: 100%; height: 40svh; object-fit: cover; object-position: top left; }
.pole-konca { background: var(--slonce); padding-block: 72px; position: relative; min-height: 44svh; }
.pole-konca h2 { grid-column: 1 / 9; font-size: var(--t-tytul); }
.pole-konca .zdanie { grid-column: 1 / 8; margin-top: 28px; font-size: var(--t-lead); line-height: 1.25; letter-spacing: -0.015em; max-width: 34ch; }
.pole-konca .zdanie a { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 6px; }
.pole-konca .zdanie a:hover { background: var(--atrament); color: var(--slonce); }
.pole-konca .drugie { grid-column: 1 / 8; margin-top: 28px; font-size: 16px; }
.pole-konca .twarz { position: absolute; right: var(--m); bottom: 40px; width: 150px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 10%; }

footer { background: var(--noc); color: #fff; overflow: hidden; padding: 0 var(--m) 40px; }
footer .imie { font-size: 15.6vw; font-weight: 600; letter-spacing: -0.06em; line-height: .8; white-space: nowrap; margin-top: -0.09em; margin-left: -0.04em; }
footer .rzad { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; margin-top: 72px; }
footer .adresy { grid-column: 1 / 7; font-size: clamp(22px, 2.6vw, 36px); line-height: 1.3; letter-spacing: -0.02em; }
footer .adresy a { color: var(--slonce); text-decoration: none; display: block; overflow-wrap: anywhere; }
footer .adresy a:hover { text-decoration: underline; text-underline-offset: 6px; }
footer .noty { grid-column: 8 / -1; font-size: var(--t-maly); line-height: 1.5; color: #c9cbee; }
footer .noty p + p { margin-top: 12px; }
footer .ostatni { display: flex; justify-content: space-between; margin-top: 80px; font-size: 13px; color: #c9cbee; }

/* wejścia (tylko z JS; bez JS wszystko widać) */
.js .wej { opacity: 0; transform: translateY(26px); transition: opacity var(--ruch), transform var(--ruch); transition-delay: calc(var(--i, 0) * 75ms); }
.js .wej.widac { opacity: 1; transform: none; }
.js .belka div { transform: scaleX(0); transition: transform 900ms cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 140ms); }
.js .belka.widac div { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .wej, .js .belka div { opacity: 1; transform: none; transition: none; }
  .start .portret img { animation: none; }
}

/* telefon i tablet */
@media (max-width: 900px) {
  :root { --m: 16px; }
  .siatka { column-gap: 12px; }
  .os, .bok, .tabela, .tabela-tytul, .stany h2, .stany .opis, .systemy-tytul h2, .systemy-tytul p, .dzien h2, .dzien .teraz, .dzien ol,
  .granice h2, .granice .listy, .budowa h2, .budowa dl, .pole-konca h2, .pole-konca .zdanie, .pole-konca .drugie { grid-column: 1 / -1; }
  .pasek a:not(.znak):not(.akcja) { display: none; }
  .start { display: block; }
  .start .portret { height: 46svh; }
  .start .slowo { padding: 28px var(--m) 32px; }
  .start h1 { font-size: 10vw; }
  .start .pod { margin-top: 20px; font-size: 20px; }
  .karty { position: static; padding: 0 var(--m) 20px; }
  .karta { width: 50%; }
  .wstep .kolumny { grid-template-columns: 1fr 1fr; gap: 36px 20px; margin-top: 48px; }
  .mozaika { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; }
  .mozaika figure { grid-row: 1; grid-column: 1 / 3; aspect-ratio: 4 / 3; }
  .kafel { aspect-ratio: 1; padding: 16px; }
  .kafel .liczba { font-size: 13vw; }
  .kafel p { font-size: 15px; }
  .tabela-tytul { margin-top: 56px; } .tabela { margin-top: 28px; }
  .stan { display: block; }
  .stan > .nazwa { font-size: 17px; padding: 0 0 10px; } .stan > .nazwa b { display: inline; }
  .etapy h2 { margin-bottom: 36px; }
  .belka { flex-direction: column; height: auto; }
  .belka div { min-height: 72px; flex: none !important; }
  .belka div span { display: block; font-size: 16px; font-weight: 400; letter-spacing: 0; line-height: 1.35; margin-top: 8px; }
  .podpisy { display: none; }
  .system { padding-block: 32px; }
  .system h3, .system .tresc { grid-column: 1 / -1; }
  .system .tresc { margin-top: 14px; }
  .system figure { margin-top: 22px; }
  .system figure:not(.fragment) { margin-inline: calc(-1 * var(--m)); }
  .system figure:not(.fragment) figcaption { padding-inline: var(--m); }
  .obieg { grid-template-columns: 1fr; padding: 14px; margin-inline: calc(-1 * var(--m)); }
  .czat { padding: 16px; margin-inline: calc(-1 * var(--m)); }
  .skany, .skany tbody, .skany tr, .skany td { display: block; }
  .skany thead { display: none; }
  .skany tr { padding: 12px 0; border-top: 2px solid var(--ton); }
  .skany td { border: 0; padding: 2px 14px; white-space: normal !important; }
  .dzien h2, .dzien .teraz { position: static; } .dzien .teraz { grid-row: auto; margin: 20px 0 28px; } .dzien ol { grid-row: auto; }
  .dzien li { grid-template-columns: 4.6em 1fr; gap: 12px; }
  .dzien li time { font-size: 20px; }
  .granice .listy { columns: 1; margin-top: 32px; font-size: 17px; }
  .granice .listy .rodzaj { margin-top: 28px; break-before: auto; }
  .budowa dl { grid-template-columns: 1fr; margin-top: 32px; }
  .pas { grid-template-columns: 1fr 1fr; }
  .pas img { height: auto; aspect-ratio: 4 / 3; } .pas img:first-child { grid-column: 1 / 3; }
  .pole-konca { padding-bottom: 170px; } .pole-konca .twarz { width: 96px; bottom: 24px; }
  footer .rzad { display: block; margin-top: 48px; } footer .noty { margin-top: 36px; }
}
@media (min-width: 901px) { .belka div span { display: none; } }
