/* DERTOX: biel i czerń, czerwień z logo jako jedyny akcent, duża typografia i cienkie linie.
   Sekcje .inv tylko przestawiają tokeny. Bez JS strona jest kompletna. */

:root {
  --bg: #ffffff;
  --tint: #f5f4f3;
  --line: #e6e4e2;
  --line-2: #cfccc9;
  --field: #85817e;
  --text: #0a0a0a;
  --muted: #666361;
  --prose: #2b2a29;
  --red: #c4202b;
  --red-2: #a31721;
  --accent: #c4202b;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(20px, 5vw, 90px);
  --sec: clamp(72px, 10vw, 150px);
  color-scheme: light;
}
.inv {
  --bg: #0a0a0a;
  --line: #2a2827;
  --line-2: #3f3c3a;
  --text: #ffffff;
  --muted: #a8a4a1;
  --prose: #d9d6d3;
  --accent: #ff6b73;
  background: var(--bg);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: #fff; color: var(--text); font: 400 17px/1.6 "Poppins", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
h1, h2 { font-weight: 500; letter-spacing: -.04em; text-wrap: balance; }
.haslo { font-size: clamp(2.75rem, 8.4vw, 8rem); font-weight: 500; line-height: 1.1; letter-spacing: -.04em; }
h1 { font-size: clamp(2.4rem, 6vw, 5.5rem); line-height: 1.06; }
h1.eyebrow { font-weight: 500; line-height: 1.5; letter-spacing: .14em; font-size: .75rem; }
h2 { font-size: clamp(2.1rem, 5.4vw, 5rem); line-height: 1.06; }
h3 { font-size: 1.2rem; font-weight: 500; line-height: 1.3; letter-spacing: -.015em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: var(--pad); }
.sec { padding-block: var(--sec); background: var(--bg); }
.sec--tint { background: var(--tint); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; padding: 10px 16px; background: #000; color: #fff; }
.skip:focus { left: 8px; }

.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex: none; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1.5; color: var(--muted); max-width: 44ch; }
.lead--wide { max-width: 60ch; margin-top: 28px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px; border: 1px solid var(--red); border-radius: 6px; background: var(--red); color: #fff; font-family: inherit; font-size: 1rem; font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.btn:hover { background: var(--red-2); border-color: var(--red-2); }
.btn--line { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn--line:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn--small { min-height: 44px; padding: 0 18px; font-size: .95rem; white-space: nowrap; }
.btn--big { min-height: 60px; padding: 0 30px; font-size: 1.08rem; }

/* Nagłówek */
.top { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__row { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
.brand img { width: 46px; }
.nav { display: flex; gap: 26px; font-size: .92rem; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--red); }

/* Start: nagłówek sam jest obietnicą. Szkodniki są wykreślane jeden po drugim. */
.hero { padding-block: clamp(36px, 5vw, 76px) clamp(48px, 5.5vw, 76px); }
.haslo { display: flex; flex-wrap: wrap; gap: 0 .28em; margin-top: 6px; }
.haslo s { position: relative; text-decoration: none; }
.haslo s::after { content: ""; position: absolute; left: -.04em; right: -.04em; top: 56%; height: .085em; background: var(--red); transform-origin: left; animation: wykresl .55s var(--ease) both; }
.haslo s:nth-of-type(1)::after { animation-delay: .35s; }
.haslo s:nth-of-type(2)::after { animation-delay: .7s; }
.haslo s:nth-of-type(3)::after { animation-delay: 1.05s; }
@keyframes wykresl { from { transform: scaleX(0); } }
.hero__end { flex-basis: 100%; color: var(--red); }
.hero__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 64px; align-items: end; margin-top: clamp(28px, 3.6vw, 52px); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .lead { color: var(--prose); }

/* Podstrony */
.podstrona { padding-block: clamp(32px, 4.6vw, 70px); }
.okruszki { margin-bottom: 18px; font-size: .88rem; color: var(--muted); }
.okruszki a { text-underline-offset: 3px; }
.podstrona__h1 { margin: 0; }
.prawne { max-width: 900px; }
.prawne h2 { margin: 32px 0 8px; font-size: 1.35rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.25; }
.prawne p { max-width: 68ch; color: var(--prose); }
.svc__body--pelne { gap: 32px clamp(24px, 5vw, 80px); }
.lista__tytul { margin: 0 0 12px; font-size: clamp(1.3rem, 2vw, 1.9rem); font-weight: 500; line-height: 1.2; letter-spacing: -.025em; }
.svc__body--pelne li { padding-block: 10px; border-top: 1px solid var(--line-2); line-height: 1.4; color: var(--prose); }
.opis { margin-top: clamp(32px, 4vw, 52px); max-width: 72ch; }
.opis h2 { margin-bottom: 10px; font-size: clamp(1.3rem, 2vw, 1.9rem); line-height: 1.2; letter-spacing: -.025em; }
.opis p { color: var(--prose); }
.koniec__siatka { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px clamp(28px, 6vw, 96px); }
.koniec .contact__phone { color: var(--accent); }
.koniec .lead { margin-top: 18px; }
.koniec .lead a { color: var(--text); text-underline-offset: 3px; }
.inne a { display: block; padding-block: 11px; border-top: 1px solid var(--line-2); text-decoration: none; }
.inne a:hover { color: var(--accent); }
.svc__head h3 a { text-decoration: none; }
.svc__head h3 a:hover { color: var(--red); }
.svc__wiecej { display: inline-block; margin-top: 14px; padding-block: 6px; font-weight: 500; color: var(--red); text-underline-offset: 4px; }
.form__note a { padding-block: 4px; display: inline-block; text-underline-offset: 3px; }

/* Pas zaufania */
.trust { padding-block: clamp(28px, 3.4vw, 44px); }
.trust__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px clamp(20px, 3vw, 48px); }
.trust b { display: block; font-size: clamp(1.05rem, 1.5vw, 1.35rem); font-weight: 500; letter-spacing: -.015em; line-height: 1.25; }
.trust span { display: block; margin-top: 5px; font-size: .9rem; line-height: 1.4; color: var(--muted); }

/* Co się dzieje */
.picker { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); margin-top: clamp(32px, 5vw, 64px); }
.picker > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.picker__opts { border-top: 1px solid var(--line); }
.picker__opts label { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 500; letter-spacing: -.01em; cursor: pointer; transition: color .2s, padding .3s var(--ease); }
.picker__opts label::after { content: "→" / ""; color: var(--line-2); transition: color .2s; }
.picker__opts label:hover { color: var(--red); }
.panel { display: none; }
#p1:checked ~ .picker__panels [data-for="p1"], #p2:checked ~ .picker__panels [data-for="p2"],
#p3:checked ~ .picker__panels [data-for="p3"], #p4:checked ~ .picker__panels [data-for="p4"],
#p5:checked ~ .picker__panels [data-for="p5"], #p6:checked ~ .picker__panels [data-for="p6"],
#p7:checked ~ .picker__panels [data-for="p7"] { display: block; animation: panel .45s var(--ease); }
@keyframes panel { from { opacity: 0; transform: translateY(10px); } }
#p1:checked ~ .picker__opts [for="p1"], #p2:checked ~ .picker__opts [for="p2"],
#p3:checked ~ .picker__opts [for="p3"], #p4:checked ~ .picker__opts [for="p4"],
#p5:checked ~ .picker__opts [for="p5"], #p6:checked ~ .picker__opts [for="p6"],
#p7:checked ~ .picker__opts [for="p7"] { color: var(--red); padding-left: 14px; box-shadow: inset 3px 0 0 var(--red); }
#p1:checked ~ .picker__opts [for="p1"]::after, #p2:checked ~ .picker__opts [for="p2"]::after,
#p3:checked ~ .picker__opts [for="p3"]::after, #p4:checked ~ .picker__opts [for="p4"]::after,
#p5:checked ~ .picker__opts [for="p5"]::after, #p6:checked ~ .picker__opts [for="p6"]::after,
#p7:checked ~ .picker__opts [for="p7"]::after { color: var(--red); }
#p1:focus-visible ~ .picker__opts [for="p1"], #p2:focus-visible ~ .picker__opts [for="p2"],
#p3:focus-visible ~ .picker__opts [for="p3"], #p4:focus-visible ~ .picker__opts [for="p4"],
#p5:focus-visible ~ .picker__opts [for="p5"], #p6:focus-visible ~ .picker__opts [for="p6"],
#p7:focus-visible ~ .picker__opts [for="p7"] { outline: 3px solid var(--red); outline-offset: 2px; }
.panel { padding: clamp(24px, 3vw, 44px); background: var(--tint); border-radius: 10px; }
.panel__kind { margin-bottom: 14px; font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.panel h3 { font-size: clamp(1.5rem, 2.7vw, 2.6rem); font-weight: 500; line-height: 1.14; letter-spacing: -.03em; text-wrap: balance; }
.panel p:not(.panel__kind) { margin-top: 18px; max-width: 54ch; color: var(--prose); }
.panel__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 26px; }
.panel__cta a:not(.btn) { font-weight: 500; text-underline-offset: 4px; }

/* Jak to wygląda: prawdziwa kolejność, stąd numeracja. */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px clamp(20px, 3vw, 48px); margin: clamp(32px, 4.6vw, 60px) 0 0; padding: 0; list-style: none; counter-reset: krok; }
.steps li { counter-increment: krok; padding-top: 18px; border-top: 2px solid var(--text); }
.steps li::before { content: counter(krok); display: block; margin-bottom: 10px; font-size: clamp(2rem, 3.4vw, 3.2rem); font-weight: 500; line-height: 1; letter-spacing: -.04em; color: var(--red); }
.steps p { margin-top: 8px; font-size: .97rem; line-height: 1.5; color: var(--prose); }

/* Usługi */
.svc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px clamp(28px, 6vw, 96px); padding-block: clamp(36px, 4.6vw, 64px); border-top: 1px solid var(--line-2); scroll-margin-top: 84px; }
.svc:first-of-type { margin-top: clamp(32px, 5vw, 64px); }
.svc__head h3 { font-size: clamp(2rem, 3.6vw, 3.4rem); font-weight: 500; line-height: 1.05; letter-spacing: -.035em; }
.svc__head p { margin-top: 18px; max-width: 42ch; color: var(--muted); }
.svc__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(24px, 3vw, 48px); align-content: start; }
.svc h4 { margin: 0 0 12px; font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.svc li { padding-block: 9px; border-top: 1px solid var(--line-2); font-size: .98rem; line-height: 1.4; color: var(--prose); }

/* Standardy */
.std { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(36px, 5vw, 64px); border-block: 1px solid var(--line); }
.std > div { padding: 22px 22px 26px; border-left: 1px solid var(--line); }
.std > div:first-child { padding-left: 0; border-left: 0; }
.std dt { font-size: clamp(1.5rem, 2.4vw, 2.25rem); font-weight: 500; letter-spacing: -.03em; color: var(--red); }
.std dd { margin-top: 6px; font-size: .92rem; line-height: 1.4; color: var(--muted); }
#firmy .btn { margin-top: clamp(28px, 3.6vw, 44px); text-align: center; padding-block: 12px; }

/* Dla kogo i o firmie */
.who { display: flex; flex-wrap: wrap; gap: .05em .32em; font-size: clamp(2rem, 5.4vw, 5rem); font-weight: 500; line-height: 1.12; letter-spacing: -.04em; }
.who li:not(:last-child)::after { content: ","; color: var(--accent); }
.who li:last-child::after { content: "."; color: var(--accent); }
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px clamp(28px, 6vw, 96px); margin-top: clamp(56px, 8vw, 120px); padding-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--line-2); }
.inv h2.eyebrow { letter-spacing: .14em; }
.about h2 { font-size: clamp(1.8rem, 3.2vw, 3rem); margin-bottom: 18px; }
.quals h3 { margin-bottom: 14px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.quals dl > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 6px 28px; padding-block: 16px; border-top: 1px solid var(--line); }
.quals dt { font-weight: 500; line-height: 1.35; }
.quals dd { font-size: .95rem; line-height: 1.45; color: var(--muted); }

/* Pytania */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px clamp(28px, 6vw, 96px); }
.faq__list { border-top: 1px solid var(--line-2); }
details { border-bottom: 1px solid var(--line-2); }
summary { display: flex; justify-content: space-between; gap: 20px; padding-block: 18px; font-size: clamp(1.02rem, 1.4vw, 1.22rem); font-weight: 500; line-height: 1.35; letter-spacing: -.01em; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+" / ""; flex: none; color: var(--red); font-size: 1.4em; line-height: 1; }
details[open] summary::after { content: "–" / ""; }
details p { max-width: 62ch; padding-bottom: 20px; color: var(--prose); }

/* Kontakt */
.contact { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 44px clamp(28px, 7vw, 110px); }
.contact__phone { display: inline-block; margin-top: clamp(24px, 3vw, 40px); font-size: clamp(2.2rem, 5vw, 4.6rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.1; color: var(--red); text-decoration: none; white-space: nowrap; }
.contact__phone:hover { color: var(--red-2); }
.contact__data { margin-top: clamp(28px, 3.4vw, 48px); max-width: 620px; }
.contact__data > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px 20px; padding-block: 15px; border-top: 1px solid var(--line-2); }
.contact__data dt { font-size: .9rem; color: var(--muted); }
.contact__data a { text-underline-offset: 3px; }
.form { display: grid; gap: 8px; align-content: start; padding: clamp(22px, 3vw, 40px); background: #fff; border-radius: 10px; }
.form h3 { margin-bottom: 10px; font-size: 1.5rem; letter-spacing: -.025em; }
.form label { font-size: .9rem; font-weight: 500; }
.form label:not(:first-of-type) { margin-top: 10px; }
.form input, .form select, .form textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--field); border-radius: 6px; background: #fff; color: var(--text); font: 400 1rem/1.4 "Poppins", system-ui, sans-serif; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
.form .btn { width: 100%; margin-top: 14px; }
.form .btn:disabled { opacity: .6; cursor: progress; }
.form__pole-pulapka { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__wynik:empty { display: none; }
.form__wynik { margin-top: 8px; padding: 12px 14px; border-radius: 6px; background: var(--tint); font-size: .95rem; line-height: 1.45; }
.form__wynik[data-stan="ok"] { font-weight: 500; }
.form__wynik[data-stan="blad"] { color: var(--red-2); }

.form__note { margin-top: 6px; font-size: .84rem; line-height: 1.45; color: var(--muted); }

/* Stopka */
.foot { padding-block: 36px; }
.foot__siatka { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(24px, 4vw, 64px); font-size: .94rem; color: var(--muted); }
.foot__name, .foot__tytul { margin-bottom: 8px; font-weight: 600; color: var(--text); }
.foot address { font-style: normal; }
.foot__prawne { margin-top: 10px; }
.foot a, .contact__data a { display: inline-block; padding-block: 6px; text-underline-offset: 3px; }
.callbar { display: none; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .trust__row, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero__foot, .picker, .svc, .about, .contact, .faq, .koniec__siatka, .foot__siatka { grid-template-columns: minmax(0, 1fr); }
  .std { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .std > div { padding-left: 0; padding-right: 16px; border-left: 0; }
  .std > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .picker__panels { order: 2; }
}
@media (max-width: 620px) {
  body { padding-bottom: 68px; }
  .top .btn { display: none; }
  .top__row { min-height: 62px; gap: 12px; }
  .brand img { width: 40px; }
  .svc__body--pelne { grid-template-columns: minmax(0, 1fr); }
  .svc__body, .quals dl > div { grid-template-columns: minmax(0, 1fr); }
  .hero__cta .btn { width: 100%; }
  .trust__row, .steps { grid-template-columns: minmax(0, 1fr); }
  .hero__end { margin-top: .08em; }
  .contact__data > div { grid-template-columns: 72px minmax(0, 1fr); }
  .callbar { position: fixed; inset: auto 0 0; z-index: 30; display: flex; align-items: center; justify-content: center; min-height: 58px; padding-bottom: env(safe-area-inset-bottom); background: var(--red); color: #fff; font-weight: 600; text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
