@import url("fonts/fonts.css");

/* Strona samorobi (z kierunku F „Kombajn”): czerń + pomarańcz, wszystko grube i czytelne. Cała redakcja marki, która pracuje sama. */
:root {
  --czern: #0b0b0b;
  --wegiel: #171717;
  --linia: #2c2c2c;
  --pom: #ff6a00;
  --pom-jasny: #ff9a4a;
  --krem: #fff6ec;
  --szary: #c9c2b8;
  --cykl: 14s;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--czern);
  color: var(--krem);
  font: 650 1.15rem/1.5 "Inter", system-ui, sans-serif;
  overflow-x: hidden;
}

a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }

.wrap { max-width: 78rem; margin: 0 auto; padding-left: clamp(1rem, 4vw, 3rem); padding-right: clamp(1rem, 4vw, 3rem); }

/* Nagłówek */

.top { position: sticky; top: 0; z-index: 5; background: var(--czern); border-bottom: 3px solid var(--pom); }
.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 0.9rem; }
.logo { font: 400 2.1rem/1 "Anton", sans-serif; text-decoration: none; letter-spacing: 0.01em; }
.logo span { color: var(--pom); }
.top nav { display: flex; align-items: center; gap: 1.4rem; font-weight: 800; }
.top nav a:not(.btn) { text-decoration: none; }
.top nav a:not(.btn):hover { color: var(--pom); }

.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border: 3px solid var(--pom);
  border-radius: 0.5rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1rem;
}

.btn--pom { background: var(--pom); color: var(--czern); }
.btn:hover { background: var(--pom-jasny); border-color: var(--pom-jasny); color: var(--czern); }

/* Hero */

.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 3rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero h1 { margin: 0; font: 400 clamp(4.5rem, 13vw, 11.5rem)/1.24 "Anton", sans-serif; text-transform: uppercase; }
.hero h1 em { font-style: normal; color: var(--pom); }
.hero p { margin: 1.6rem 0 2rem; max-width: 34rem; font-size: 1.35rem; font-weight: 700; }
.hero p b { color: var(--pom); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* Kanał zdarzeń: rzeczy, które same się zrobiły */

.feed { border: 3px solid var(--pom); border-radius: 1rem; background: var(--wegiel); overflow: hidden; }
.feed__head { display: flex; justify-content: space-between; padding: 0.8rem 1.1rem; background: var(--pom); color: var(--czern); font-weight: 900; text-transform: uppercase; font-size: 0.95rem; }
.feed__head span:last-child::before { content: "● "; animation: mig 1.2s steps(1) infinite; }
@keyframes mig { 50% { opacity: 0; } }

.feed ol { margin: 0; padding: 0.4rem 0; list-style: none; }
.feed li { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr) auto; gap: 0.8rem; align-items: center; padding: 0.75rem 1.1rem; border-bottom: 1px solid var(--linia); opacity: 0.25; animation: wpis var(--cykl) steps(1) infinite; }
.feed li:last-child { border-bottom: 0; }
.feed time { font: 800 0.95rem/1 "JetBrains Mono", monospace; color: var(--pom); }
.feed b { display: block; font-weight: 900; }
.feed small { color: var(--szary); font-weight: 600; font-size: 0.95rem; }
.feed .ok { font-weight: 900; color: var(--pom); }
.feed li:nth-child(1) { animation-delay: 0s; }
.feed li:nth-child(2) { animation-delay: 1.5s; }
.feed li:nth-child(3) { animation-delay: 3s; }
.feed li:nth-child(4) { animation-delay: 4.5s; }
.feed li:nth-child(5) { animation-delay: 6s; }
.feed li:nth-child(6) { animation-delay: 7.5s; }
.feed li:nth-child(7) { animation-delay: 9s; }
@keyframes wpis { 0% { opacity: 1; background: rgba(255, 106, 0, 0.12); } 8% { background: transparent; } 85% { opacity: 1; } 86%, 100% { opacity: 0.25; } }

/* Pasek modułów */

.tasma { overflow: hidden; background: var(--pom); color: var(--czern); white-space: nowrap; border-block: 3px solid var(--czern); }
.tasma div { display: inline-block; padding: 0.9rem 0; font: 400 2rem/1 "Anton", sans-serif; text-transform: uppercase; animation: jedzie 30s linear infinite; }
@keyframes jedzie { to { transform: translateX(-50%); } }

/* Sekcje */

.sekcja { padding-block: clamp(3.5rem, 8vw, 7rem); }
.sekcja h2 { margin: 0 0 1rem; font: 400 clamp(3rem, 8vw, 6.5rem)/0.95 "Anton", sans-serif; text-transform: uppercase; }
.sekcja h2 em { font-style: normal; color: var(--pom); }
.sekcja .lead { max-width: 44rem; margin: 0 0 3rem; font-size: 1.3rem; font-weight: 700; }

/* Moduły: mozaika o różnych rozmiarach */

.moduly { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.2rem; }
.modul { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; border: 3px solid var(--linia); border-radius: 1rem; background: var(--wegiel); min-width: 0; }
.modul--2 { grid-column: span 2; }
.modul--3 { grid-column: span 3; }
.modul--4 { grid-column: span 4; }
.modul--6 { grid-column: span 6; }
.modul--rzad { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: 1.5rem; }
.modul--rzad .przyklad { margin-top: 0; }
.modul--pom { background: var(--pom); border-color: var(--pom); color: var(--czern); }
.modul h3 { margin: 0; font: 400 2.4rem/1 "Anton", sans-serif; text-transform: uppercase; }
.modul h3 small { display: block; margin-bottom: 0.4rem; font: 900 0.85rem/1 "Inter", sans-serif; letter-spacing: 0.08em; color: var(--pom); }
.modul--pom h3 small { color: var(--czern); }
.modul > p { margin: 0; font-weight: 700; }
.przyklad { margin-top: auto; }
.etyk { display: inline-block; margin-bottom: 0.5rem; font: 800 0.8rem/1 "JetBrains Mono", monospace; color: var(--szary); text-transform: uppercase; letter-spacing: 0.06em; }
.modul--pom .etyk { color: var(--czern); }

/* Tematy */
.trend { display: grid; grid-template-columns: minmax(0, 1fr) 5rem; gap: 0.3rem 0.8rem; align-items: center; margin: 0; padding: 0; list-style: none; }
.trend li { display: contents; font-weight: 800; }
.trend i { display: block; height: 0.7rem; border-radius: 1rem; background: var(--pom); transform-origin: left; animation: rosnie var(--cykl) ease-out infinite; }
.trend li:nth-child(2) i { width: 70%; }
.trend li:nth-child(3) i { width: 45%; }
@keyframes rosnie { 0% { transform: scaleX(0.1); } 20%, 100% { transform: scaleX(1); } }

/* Research */
.fakt { padding: 1rem; border-left: 6px solid var(--czern); background: rgba(0, 0, 0, 0.12); font-weight: 800; }
.fakt cite { display: block; margin-top: 0.5rem; font: 700 0.85rem/1.3 "JetBrains Mono", monospace; font-style: normal; }

/* Teksty */
.post { padding: 1rem 1.1rem; border-radius: 0.7rem; background: var(--krem); color: var(--czern); font-weight: 700; }
.post b { display: block; margin-bottom: 0.3rem; color: var(--pom); font-weight: 900; font-size: 0.85rem; text-transform: uppercase; }
.posty { display: grid; gap: 0.7rem; }

/* Grafiki */
.grafiki { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2fr); gap: 0.6rem; align-items: stretch; }
.slajd { display: flex; align-items: flex-end; aspect-ratio: 4 / 5; padding: 0.7rem; border-radius: 0.5rem; background: var(--pom); color: var(--czern); font: 400 1.25rem/1 "Anton", sans-serif; text-transform: uppercase; }
.slajd:nth-child(2) { background: var(--krem); }
.slajd:nth-child(3) { background: var(--czern); color: var(--pom); border: 3px solid var(--pom); }
.miniatura { position: relative; border-radius: 0.5rem; overflow: hidden; border: 3px solid var(--pom); }
.miniatura img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.miniatura span { position: absolute; left: 0.6rem; bottom: 0.6rem; padding: 0.2rem 0.5rem; background: var(--pom); color: var(--czern); font: 400 1.4rem/1.05 "Anton", sans-serif; text-transform: uppercase; }

/* Wideo */
.rolki { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; }
.rolki img { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 0.6rem; border: 3px solid var(--linia); }
.formaty { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.formaty li { padding: 0.4rem 0.8rem; border: 2px solid var(--pom); border-radius: 2rem; font-weight: 800; font-size: 0.95rem; }

/* Głos */
.fala { display: flex; align-items: center; gap: 3px; height: 3.4rem; }
.fala i { flex: 1; border-radius: 2px; background: var(--pom); animation: fala 1.1s ease-in-out infinite alternate; }
.fala i:nth-child(3n) { animation-delay: -0.3s; }
.fala i:nth-child(3n + 1) { animation-delay: -0.6s; }
.fala i:nth-child(4n) { animation-delay: -0.8s; }
@keyframes fala { from { height: 20%; } to { height: 100%; } }
.jezyki { display: flex; gap: 0.5rem; margin-top: 0.8rem; }
.jezyki span { padding: 0.3rem 0.7rem; border-radius: 0.4rem; background: var(--krem); color: var(--czern); font-weight: 900; }
.napis { margin-top: 0.8rem; font: 400 1.8rem/1.1 "Anton", sans-serif; text-transform: uppercase; }
.napis mark { background: var(--pom); color: var(--czern); padding: 0 0.15em; }

/* Publikacja */
.kal { display: grid; grid-template-columns: 3.5rem repeat(5, minmax(0, 1fr)); gap: 4px; font-size: 0.85rem; font-weight: 800; }
.kal span { padding: 0.45rem 0.3rem; border-radius: 0.3rem; background: var(--czern); text-align: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kal .h { background: transparent; color: var(--szary); text-align: left; }
.kal .x { background: var(--pom); color: var(--czern); animation: wpada var(--cykl) steps(1) infinite; }
.kal .x:nth-of-type(odd) { animation-delay: 2s; }
@keyframes wpada { 0% { opacity: 0.2; } 15%, 100% { opacity: 1; } }

/* Wyniki */
.wykres { display: flex; align-items: flex-end; gap: 0.5rem; height: 7rem; padding-bottom: 0.3rem; border-bottom: 3px solid var(--czern); }
.wykres i { flex: 1; border-radius: 0.3rem 0.3rem 0 0; background: var(--czern); transform-origin: bottom; animation: slupek var(--cykl) ease-out infinite; }
.wykres i:nth-child(1) { height: 35%; } .wykres i:nth-child(2) { height: 48%; } .wykres i:nth-child(3) { height: 44%; }
.wykres i:nth-child(4) { height: 62%; } .wykres i:nth-child(5) { height: 71%; } .wykres i:nth-child(6) { height: 92%; }
@keyframes slupek { 0% { transform: scaleY(0.1); } 18%, 100% { transform: scaleY(1); } }
.wniosek { margin-top: 0.8rem; font-weight: 900; }

/* Telegram */
.czat { display: grid; gap: 0.5rem; }
.dymek { max-width: 88%; padding: 0.6rem 0.9rem; border-radius: 1rem; background: var(--linia); font-weight: 700; }
.dymek--ty { justify-self: end; background: var(--pom); color: var(--czern); }

/* Jak to działa */

.kroki { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: krok; border-top: 3px solid var(--pom); }
.krok { padding: 1.6rem 1.4rem 0 0; }
.krok b { display: block; font: 400 5rem/1 "Anton", sans-serif; color: var(--pom); }
.krok h3 { margin: 0.4rem 0; font: 400 1.9rem/1 "Anton", sans-serif; text-transform: uppercase; }
.krok p { margin: 0; font-weight: 700; }

/* Kontrola */

.kontrola { background: var(--pom); color: var(--czern); }
.kontrola h2 em { color: var(--krem); }
.zasady { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 3rem; margin: 0; padding: 0; list-style: none; font-size: 1.35rem; font-weight: 900; }
.zasady li::before { content: "✓ "; }

/* FAQ */

.faq { display: grid; gap: 0; max-width: 56rem; }
.faq details { border-bottom: 3px solid var(--linia); padding: 1.2rem 0; }
.faq summary { cursor: pointer; font: 400 1.9rem/1.1 "Anton", sans-serif; text-transform: uppercase; }
.faq summary::marker { color: var(--pom); }
.faq p { margin: 0.8rem 0 0; font-weight: 700; max-width: 46rem; }

.koniec { text-align: center; }
.koniec h2 { margin-inline: auto; }
.koniec .adres { display: inline-block; margin: 1rem 0 2rem; font: 400 clamp(2rem, 6vw, 4rem)/1 "Anton", sans-serif; color: var(--pom); user-select: all; }

.stopka { border-top: 3px solid var(--pom); }
.stopka .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.6rem; font-weight: 800; }

:focus-visible { outline: 3px solid var(--pom-jasny); outline-offset: 3px; }

@media (max-width: 62rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .moduly { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modul--2, .modul--3, .modul--4, .modul--6 { grid-column: span 2; }
  .modul--rzad { grid-template-columns: minmax(0, 1fr); }
  .kroki, .zasady { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top nav a:not(.btn) { display: none; }
}

@media (max-width: 36rem) {
  .kroki, .zasady { grid-template-columns: minmax(0, 1fr); }
  .grafiki { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .miniatura { grid-column: span 3; }
  .rolki { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top nav .btn:not(.btn--pom) { display: none; }
  .feed li { grid-template-columns: 3.2rem minmax(0, 1fr); }
  .feed .ok { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .feed li { opacity: 1; }
}

/* Logo w nagłówku i stopce (L9 „Taśma bez końca”, pliki w logo/final/) */

.logo { display: inline-flex; align-items: center; }
.logo img { display: block; height: 2.4rem; width: auto; }
.skip { position: absolute; left: -999px; top: 0.5rem; z-index: 10; padding: 0.6rem 1rem; background: var(--pom); color: var(--czern); font-weight: 900; }
.skip:focus { left: 0.5rem; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--pom); outline-offset: 3px; }

.stopka .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem 2rem; }
.stopka__logo img { display: block; height: 2rem; width: auto; }
.stopka p { margin: 0; font-weight: 700; }
.stopka nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
.stopka nav a { text-decoration: none; }
.stopka nav a:hover { color: var(--pom); }
.stopka span { grid-column: 1 / -1; color: var(--szary); font-size: 1rem; }

/* Podstrony: bezpieczeństwo i szkice dokumentów */

.podstrona .container { max-width: 52rem; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem); }
.page-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1rem; }
.page-hero h1 { margin: 0.4rem 0 1rem; font: 400 clamp(2.8rem, 8vw, 5.5rem)/0.95 "Anton", sans-serif; text-transform: uppercase; }
.eyebrow { margin: 0; color: var(--pom); font-weight: 900; }
.podstrona .lead { max-width: 40rem; font-size: 1.3rem; }
.prose { padding-bottom: 4rem; }
.prose h2 { margin: 2.6rem 0 0.6rem; font: 400 2rem/1.05 "Anton", sans-serif; }
.prose p, .prose li { max-width: 46rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose a:not(.btn) { color: var(--pom); }
.meta-list { list-style: none; padding: 0; display: grid; gap: 0.4rem; }
.meta-list span:first-child { color: var(--szary); margin-right: 0.6rem; }
.draft-banner { margin: 1.5rem 0; padding: 1.2rem 1.4rem; border: 3px solid var(--pom); border-radius: 0.6rem; background: var(--wegiel); }
.draft-banner p { margin: 0.4rem 0 0; }

@media (max-width: 62rem) {
  .top nav a:not(.btn) { display: none; }
  .stopka .wrap { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 36rem) {
  .logo img { height: 1.9rem; }
  .top nav .btn:not(.btn--pom) { display: none; }
}
