:root {
  --green: #185d4b;
  --green-dark: #104638;
  --orange: #e7692e;
  --ink: #172522;
  --muted: #687873;
  --line: #dbe4e1;
  --panel: #fff;
  color: var(--ink);
  background: #f3f6f5;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; min-width: 320px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--green); }

.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { min-height: 74px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { display: grid; }
.brand strong { letter-spacing: .11em; font-size: 15px; }
.brand small { color: var(--muted); font-size: 10px; margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a { padding: 8px 11px; border-radius: 7px; color: #3d5850; font-size: 13px; font-weight: 600; text-decoration: none; }
.nav a:hover { background: #eaf2ef; }
.nav a.cta { background: var(--green); color: #fff; padding: 10px 16px; }
.nav a.cta:hover { background: var(--green-dark); }
/* Drugie narzedzie w naglówku: ta sama waga co CTA, ale bez wypełnienia,
   zeby dwa zielone kafle obok siebie nie konkurowały ze soba. */
.nav a.cta-ghost { border: 1px solid var(--green); color: var(--green); padding: 9px 15px; }
.nav a.cta-ghost:hover { background: #eaf2ef; }
/* Pelna etykieta drugiego narzedzia nie miesci sie obok CTA na waskim
   ekranie i rozbija naglowek na trzy rzedy. Ponizej 860 px zostaje sama
   nazwa narzedzia, bez czasownika. */
.nav a.cta-ghost .krotka { display: none; }

/* ---------- typography ---------- */
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
h1 { font-size: clamp(36px, 4.4vw, 58px); margin: 0 0 18px; letter-spacing: -.04em; }
h1 em { color: var(--green); font-style: normal; }
/* Trzecia linia naglowka: mniejsza, zeby dluga fraza zmiescila sie
   w jednym wierszu i nie zostawiala sierotki. */
h1 .dopisek { display: block; font-size: .62em; letter-spacing: -.02em; }
h2 { font-size: clamp(26px, 2.8vw, 36px); margin: 0 0 14px; }
h3 { font-size: 19px; margin: 0 0 8px; }
p { margin: 0 0 16px; }
.lead { font-size: 17px; color: #52635e; max-width: 62ch; }
.kicker { display: block; color: var(--orange); text-transform: uppercase; letter-spacing: .14em; font-weight: 750; font-size: 11px; margin-bottom: 12px; }
.muted { color: var(--muted); font-size: 13px; }

section { padding: clamp(48px, 6vw, 86px) 0; }
section.tight { padding: clamp(32px, 4vw, 54px) 0; }
.alt { background: #fff; border-block: 1px solid var(--line); }

/* ---------- buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 9px; padding: 13px 20px; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; transition: .15s ease; }
.button.primary { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(24, 93, 75, .2); }
.button.primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.button.ghost { border-color: #cfdcd8; background: #fff; color: #2f4d45; }
.button.ghost:hover { border-color: var(--green); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- hero ---------- */
.hero { padding: clamp(46px, 6vw, 90px) 0 clamp(40px, 5vw, 70px); background: radial-gradient(circle at 78% 30%, rgba(44, 124, 100, .12), transparent 34%), linear-gradient(135deg, #f8faf9 0%, #eaf1ee 100%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.hero-art { display: grid; place-items: center; }
.hero-art img { width: min(230px, 100%); opacity: .9; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding: 0; list-style: none; }
.badge-row li { padding: 7px 12px; border: 1px solid #d2dfdb; border-radius: 999px; background: rgba(255, 255, 255, .7); font-size: 11px; font-weight: 600; color: #3d5850; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.card p:last-child { margin-bottom: 0; }
.card .tag { display: inline-block; margin-bottom: 12px; padding: 4px 9px; border-radius: 5px; background: #eaf2ef; color: #2f6151; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.card.tool { display: flex; flex-direction: column; }
.card.tool .button { margin-top: auto; align-self: flex-start; }
/* .card.tool jest flexem w kolumnie, wiec inline-block na .tag ulega blokifikacji,
   a domyslny align-items: stretch rozciaga plakietke na cala szerokosc karty —
   zamiast pigulki wychodzil pasek. Przycisk wyzej ma juz ten sam zabieg. */
.card.tool .tag { align-self: flex-start; }
/* Gdy w siatce zostaje jedna karta, auto-fit zwija puste kolumny i jedyny tor ma
   pelna szerokosc — karta z max-width przykleja sie wtedy do lewej krawedzi.
   Przy dwoch i wiecej kartach tor jest wezszy niz max-width, wiec margines znika. */
.grid > .card.tool { margin-inline: auto; }

/* ---------- listy ---------- */
.check { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.check li { position: relative; padding-left: 27px; }
.check li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 6px; height: 11px; border: 2px solid var(--green); border-top: 0; border-left: 0; transform: rotate(40deg); }

/* ---------- formularz ---------- */
.signup { padding: clamp(26px, 4vw, 42px); border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: 0 24px 60px rgba(25, 68, 56, .08); }
.signup form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.signup input[type="email"], .signup input[type="text"] { flex: 1 1 240px; padding: 13px 14px; border: 1px solid #d5dfdc; border-radius: 9px; font: inherit; outline: 0; }
.signup input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(24, 93, 75, .12); }
.signup .consent { flex: 1 1 100%; display: flex; gap: 10px; align-items: flex-start; font-size: 11px; color: var(--muted); line-height: 1.55; }
.signup .consent input { margin-top: 3px; accent-color: var(--green); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 16px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 15px; }
.faq summary::marker { color: var(--green); }
.faq details[open] summary { margin-bottom: 10px; }
.faq p:last-child { margin-bottom: 0; }

/* ---------- proza ---------- */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 38px; }
.prose h3 { margin-top: 26px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 7px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 18px 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; vertical-align: top; }
.prose th { background: #eef3f1; }
.table-scroll { overflow-x: auto; }

.note { padding: 16px 18px; border-left: 3px solid #c8d9d3; background: #fff; color: #5c6d68; font-size: 13px; }

/* ---------- stopka ---------- */
.site-footer { padding: 46px 0 34px; background: #12241f; color: #b9c9c3; font-size: 13px; }
.site-footer a { color: #e4ede9; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .wrap { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.site-footer h4 { margin: 0 0 12px; color: #fff; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.site-footer .legal { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid #26403a; color: #86a099; font-size: 12px; }

@media (max-width: 860px) {
  .nav a.cta-ghost .pelna { display: none; }
  .nav a.cta-ghost .krotka { display: inline; }
  .site-header .wrap { min-height: 64px; flex-wrap: wrap; padding-block: 10px; }
  .nav { width: 100%; overflow-x: auto; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: 130px; }
}
