:root {
  --granat: #0d1b2a;
  --granat-2: #16283d;
  --granat-3: #22384f;
  --akcent: #ffc629;
  --akcent-ciemny: #e0a800;
  --tekst: #1b2733;
  --tekst-2: #52606d;
  --tlo: #ffffff;
  --tlo-2: #f4f6f8;
  --linia: #dde3e9;
  --ok: #1f9d55;
  --blad: #c92a2a;
  --promien: 12px;
  --cien: 0 1px 2px rgb(13 27 42 / .06), 0 8px 24px rgb(13 27 42 / .08);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--tekst);
  background: var(--tlo);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; }
img, svg { display: block; }

.kontener { width: min(1160px, 100% - 32px); margin-inline: auto; }
.kontener--waski { width: min(800px, 100% - 32px); }

.etykieta {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--akcent-ciemny);
  margin-bottom: .8em;
}
.etykieta--jasna, .hero .etykieta { color: var(--akcent); }

/* przyciski */
.przycisk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .85em 1.5em;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s, background-color .15s, border-color .15s;
}
.przycisk:hover { transform: translateY(-1px); }
.przycisk:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 3px solid var(--akcent);
  outline-offset: 2px;
}
.przycisk--akcent { background: var(--akcent); color: var(--granat); }
.przycisk--akcent:hover { background: #ffd24f; }
.przycisk--obrys { border-color: rgb(255 255 255 / .35); color: #fff; }
.przycisk--obrys:hover { border-color: #fff; }
.przycisk--obrys-jasny { border-color: rgb(255 255 255 / .35); color: #fff; }
.przycisk--obrys-jasny:hover { border-color: #fff; }
.przycisk--maly { padding: .55em 1.1em; font-size: .88rem; }
.przycisk[disabled] { opacity: .6; cursor: wait; transform: none; }

/* nagłówek */
.naglowek {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(13 27 42 / .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgb(255 255 255 / .08);
  color: #fff;
}
.naglowek__wnetrze { display: flex; align-items: center; gap: 2rem; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: .04em; color: #fff; }
.logo svg { width: 32px; height: 32px; color: var(--granat-3); }
.menu { display: flex; gap: 1.6rem; margin-left: auto; }
.menu a { text-decoration: none; font-weight: 600; font-size: .95rem; color: rgb(255 255 255 / .8); }
.menu a:hover { color: #fff; }
.menu-przelacznik { display: none; }

/* hero */
.hero {
  background:
    radial-gradient(900px 500px at 85% 20%, rgb(255 198 41 / .12), transparent 60%),
    linear-gradient(180deg, var(--granat), var(--granat-2));
  color: #fff;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 6.5rem);
  overflow: hidden;
}
.hero__siatka { display: grid; grid-template-columns: 1.15fr 1fr; gap: 4rem; align-items: center; }
.hero__lead { font-size: 1.15rem; color: rgb(255 255 255 / .78); max-width: 36em; }
.hero__akcje { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0; }
.hero__atuty { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-size: .92rem; color: rgb(255 255 255 / .75); }
.hero__atuty li::before { content: "✓"; color: var(--akcent); font-weight: 800; margin-right: .45em; }

/* karta protokołu */
.protokol {
  margin: 0;
  background: #fff;
  color: var(--tekst);
  border-radius: 16px;
  padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: 0 30px 60px rgb(0 0 0 / .35);
  transform: rotate(1.5deg);
  font-size: .88rem;
}
.protokol__gora { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.protokol__nr { font-family: var(--mono); font-size: .8rem; color: var(--tekst-2); }
.protokol__tytul { font-weight: 700; margin-bottom: .6rem; }
.znacznik { font-size: .72rem; font-weight: 700; padding: .3em .75em; border-radius: 999px; }
.znacznik--ok { background: #e3f6ea; color: var(--ok); }
.protokol table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: .78rem; }
.protokol th { text-align: left; font-family: var(--font); font-weight: 600; color: var(--tekst-2); border-bottom: 2px solid var(--linia); padding: .45em .3em; white-space: nowrap; }
.protokol td { border-bottom: 1px solid var(--linia); padding: .5em .3em; }
.protokol td:first-child { font-family: var(--font); }
.protokol td.ok { color: var(--ok); font-weight: 700; text-align: center; }
.protokol__dol { display: flex; justify-content: space-between; margin-top: 1rem; padding-top: .8rem; font-size: .82rem; color: var(--tekst-2); }
.protokol__dol strong { font-family: var(--mono); color: var(--tekst); }

/* sekcje */
.sekcja { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.sekcja--tlo { background: var(--tlo-2); }
.sekcja--ciemna { background: var(--granat); color: #fff; }
.sekcja__naglowek { max-width: 44em; margin-bottom: 2.5rem; }
.sekcja__naglowek p:not(.etykieta) { color: var(--tekst-2); font-size: 1.05rem; }

.karty { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
.karta { background: var(--tlo); border: 1px solid var(--linia); border-radius: var(--promien); padding: 1.8rem; }
.karta--wyrozniona { border-top: 4px solid var(--akcent); box-shadow: var(--cien); }
.karta h3 { font-size: 1.3rem; }
.karta p { color: var(--tekst-2); margin: 0; }

.proby { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--linia); border: 1px solid var(--linia); border-radius: var(--promien); overflow: hidden; }
.proby li { background: var(--tlo); padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .25rem; }
.proby strong { font-size: .98rem; }
.proby span { font-size: .88rem; color: var(--tekst-2); }

.siatka-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.kafel { background: var(--tlo); border-radius: var(--promien); padding: 1.5rem; border: 1px solid var(--linia); }
.kafel p { color: var(--tekst-2); font-size: .94rem; margin: 0; }

.kroki { list-style: none; padding: 0; margin: 0 0 3rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: krok; }
.kroki li { position: relative; }
.kroki__nr { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--granat); color: var(--akcent); font-weight: 800; font-family: var(--mono); margin-bottom: 1rem; }
.kroki p { color: var(--tekst-2); font-size: .95rem; margin: 0; }

.dostajesz { background: var(--tlo-2); border-radius: var(--promien); padding: 2rem; }
.dostajesz ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 2rem; }
.dostajesz li { padding-left: 1.6em; position: relative; color: var(--tekst-2); }
.dostajesz li::before { content: ""; position: absolute; left: 0; top: .5em; width: .75em; height: .75em; border-radius: 3px; background: var(--akcent); }

/* aplikacja */
.aplikacja { display: grid; grid-template-columns: 1fr 1.25fr; gap: 4rem; align-items: start; }
.aplikacja__lead { color: rgb(255 255 255 / .78); font-size: 1.08rem; }
.aplikacja__lead em { color: var(--akcent); font-style: normal; font-weight: 700; }
.drobny { font-size: .9rem; color: rgb(255 255 255 / .6); }
.drobny a { color: var(--akcent); }
.funkcje { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.funkcje li { background: var(--granat-2); border: 1px solid rgb(255 255 255 / .08); border-radius: var(--promien); padding: 1.3rem; }
.funkcje li:last-child { grid-column: 1 / -1; }
.funkcje li:first-child { grid-column: 1 / -1; border-color: rgb(255 198 41 / .5); background: linear-gradient(135deg, rgb(255 198 41 / .1), var(--granat-2) 60%); }
.funkcje h3 { color: #fff; font-size: 1.02rem; }
.funkcje p { color: rgb(255 255 255 / .7); font-size: .92rem; margin: 0; }
.aplikacja__uwaga { margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / .1); color: rgb(255 255 255 / .6); font-size: .92rem; }
.aplikacja__uwaga strong { color: #fff; }

/* faq */
.faq details { border-bottom: 1px solid var(--linia); }
.faq summary { cursor: pointer; list-style: none; padding: 1.2rem 2.5rem 1.2rem 0; font-weight: 700; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--akcent-ciemny); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--tekst-2); padding-bottom: 1.2rem; margin: 0; }

/* kontakt */
.kontakt { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; }
.kontakt__tekst p:not(.etykieta) { color: var(--tekst-2); }
.formularz { background: var(--tlo); border-radius: 16px; padding: 2rem; box-shadow: var(--cien); display: grid; gap: 1.1rem; }
.formularz label { display: grid; gap: .35rem; font-weight: 600; font-size: .92rem; }
.formularz__wiersz { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.opcjonalne { font-weight: 400; color: var(--tekst-2); }
.formularz input[type="text"], .formularz input[type="email"], .formularz input[type="tel"], .formularz textarea {
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  padding: .7em .9em;
  border: 1.5px solid var(--linia);
  border-radius: 8px;
  background: var(--tlo);
  color: var(--tekst);
  width: 100%;
}
.formularz textarea { resize: vertical; min-height: 120px; }
.formularz input:focus, .formularz textarea:focus { border-color: var(--granat-3); outline: none; }
.formularz [aria-invalid="true"] { border-color: var(--blad) !important; }
.formularz__rodzaj { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.formularz__rodzaj legend { font-weight: 600; font-size: .92rem; margin-bottom: .5rem; padding: 0; }
.formularz__rodzaj label { display: inline-flex; align-items: center; gap: .45rem; border: 1.5px solid var(--linia); border-radius: 999px; padding: .45em 1em; cursor: pointer; font-weight: 600; }
.formularz__rodzaj label:has(input:checked) { border-color: var(--granat); background: var(--granat); color: #fff; }
.formularz__rodzaj input { accent-color: var(--akcent); margin: 0; }
.formularz__zgoda { grid-template-columns: auto 1fr !important; align-items: start; font-weight: 400 !important; color: var(--tekst-2); font-size: .85rem !important; }
.formularz__zgoda input { margin-top: .25em; width: 18px; height: 18px; accent-color: var(--granat); }
.formularz button { justify-self: start; }
.formularz__komunikat { margin: 0; font-weight: 600; min-height: 1.5em; }
.formularz__komunikat.ok { color: var(--ok); }
.formularz__komunikat.blad { color: var(--blad); }
.pulapka { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* stopka */
.stopka { background: var(--granat); color: rgb(255 255 255 / .65); padding: 3rem 0; font-size: .92rem; }
.stopka__wnetrze { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 2rem; }
.stopka nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.stopka a { text-decoration: none; }
.stopka nav a:hover { color: #fff; }
.stopka p { margin: .6rem 0 0; }
.stopka__prawa { width: 100%; border-top: 1px solid rgb(255 255 255 / .1); padding-top: 1.5rem; }

/* podstrona tekstowa */
.tresc { padding: 4rem 0 5rem; }
.tresc h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.tresc h2 { font-size: 1.3rem; margin-top: 2rem; }
.tresc p, .tresc li { color: var(--tekst-2); }

/* responsywność */
@media (max-width: 1000px) {
  .hero__siatka, .aplikacja, .kontakt { grid-template-columns: 1fr; gap: 3rem; }
  .protokol { transform: none; max-width: 520px; }
  .proby, .siatka-4 { grid-template-columns: 1fr 1fr; }
  .kroki { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .menu-przelacznik {
    display: grid; gap: 5px; margin-left: auto;
    background: none; border: 0; padding: 10px; cursor: pointer;
  }
  .menu-przelacznik span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
  .menu-przelacznik[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-przelacznik[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-przelacznik[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--granat); border-bottom: 1px solid rgb(255 255 255 / .1);
    padding: .5rem 16px 1rem;
    display: none;
  }
  .menu.otwarte { display: flex; }
  .menu a { padding: .8rem 0; border-bottom: 1px solid rgb(255 255 255 / .06); }
  .naglowek__cta { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .karty, .proby, .siatka-4, .kroki, .funkcje, .dostajesz ul, .formularz__wiersz { grid-template-columns: 1fr; }
  .formularz { padding: 1.3rem; }
  .hero__akcje .przycisk { flex: 1 1 100%; }
  .protokol { font-size: .8rem; padding: 1rem; }
  .protokol table { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
