/* Thorway — style strony. Bez zewnętrznych bibliotek i fontów. */
:root {
  --bg: #f6f8fc;
  --bg-alt: #eef2fa;
  --card: #ffffff;
  --text: #0f1b33;
  --muted: #52607a;
  --line: #dbe2ee;
  --navy: #0b1736;
  --navy-2: #132a5e;
  --accent: #facc15;      /* iskra */
  --accent-ink: #0b1736;  /* tekst na akcencie */
  --link: #1d4ed8;
  --ok: #16a34a;
  --warn: #b45309;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(15 27 51 / 6%), 0 8px 24px rgb(15 27 51 / 6%);
  --max: 1120px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #070f24;
  --bg-alt: #0b1736;
  --card: #101f45;
  --text: #e8eefb;
  --muted: #a3b1cc;
  --line: #22355f;
  --link: #93b4ff;
  --ok: #4ade80;
  --warn: #fbbf24;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.section { padding: 4rem 0; }
.section--alt { background: var(--bg-alt); }
.section__lead { color: var(--muted); max-width: 46rem; margin-bottom: 2rem; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .6rem;
}
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--card); padding: .5rem 1rem; }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.4rem; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #fde047; }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- pasek górny ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--navy) 92%, transparent);
  backdrop-filter: blur(8px); color: #fff;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.2rem; }
.logo svg { width: 30px; height: 30px; }
.nav { display: none; gap: 1.4rem; }
.nav a { color: #dbe4f7; text-decoration: none; font-size: .95rem; }
.nav a:hover { color: #fff; }
.topbar__right { display: flex; align-items: center; gap: .5rem; }
.theme-toggle {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid #ffffff33;
  background: transparent; color: #fff; cursor: pointer; font-size: 1.1rem;
}
.topbar .btn { min-height: 40px; padding: .45rem 1rem; font-size: .9rem; display: none; }
@media (min-width: 900px) { .nav { display: flex; } .topbar .btn { display: inline-flex; } }

/* ---------- nagłówek (hero) ---------- */
.hero {
  background:
    radial-gradient(60rem 30rem at 85% -10%, #1f3f8a 0%, transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 3rem 0 3.5rem; overflow: hidden;
}
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 span { color: var(--accent); }
.hero__lead { font-size: 1.15rem; color: #d3ddf3; max-width: 34rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1rem; }
.hero__note { font-size: .9rem; color: #a9b8d9; }
.hero__phone {
  justify-self: center; width: min(280px, 80vw); padding: 10px; border-radius: 36px;
  background: #1e293b; box-shadow: 0 30px 60px rgb(0 0 0 / 40%), 0 0 0 1px #ffffff1a;
}
.hero__phone img { border-radius: 26px; }
@media (min-width: 860px) {
  .hero { padding: 5rem 0; }
  .hero .wrap { grid-template-columns: 1.2fr .8fr; }
}

/* ---------- karty ---------- */
.grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--text); margin-bottom: .9rem;
}
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.question { font-size: 1.25rem; font-weight: 800; margin-bottom: .4rem; }

/* kroki */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding-top: 3.2rem; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 1.4rem; left: 1.4rem; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; background: var(--navy); color: var(--accent);
}
.steps li.card { padding-top: 4.4rem; }

/* ---------- Czy dojadę ---------- */
.reach { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .reach { grid-template-columns: 1fr 1fr; } }
.reach ul { padding-left: 1.2rem; color: var(--muted); }
.demo-panel { font-size: .95rem; }
.demo-panel__label { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.demo-panel__answer { font-size: 1.15rem; font-weight: 700; margin: .5rem 0 1rem; }
.demo-panel__answer strong { color: var(--ok); }
.demo-panel table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.demo-panel th, .demo-panel td { padding: .55rem .4rem; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.demo-panel td.no { white-space: normal; }
.demo-panel th:first-child, .demo-panel td:first-child { text-align: left; }
.demo-panel th { font-size: .8rem; color: var(--muted); font-weight: 600; }
.demo-panel .no { color: var(--warn); font-weight: 700; }
.demo-panel small { display: block; color: var(--muted); margin-top: .8rem; }
.tag {
  display: inline-block; font-size: .75rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--text);
}

/* ---------- zrzuty ---------- */
.shots { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .shots { grid-template-columns: repeat(2, 1fr); } .shot--wide { grid-column: 1 / -1; } }
.shot { margin: 0; min-width: 0; }
.shot img { border-radius: 12px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.shot figcaption { font-size: .92rem; color: var(--muted); margin-top: .6rem; }
/* szerokie zrzuty: na telefonie przewijane w bok, żeby dało się je przeczytać */
.shot__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.shot__scroll img { min-width: 720px; }
.shot__hint { display: inline; }
@media (min-width: 760px) { .shot__scroll img { min-width: 0; } .shot__hint { display: none; } }
.demo-note {
  display: flex; gap: .6rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 12px;
  background: color-mix(in srgb, var(--link) 10%, transparent); color: var(--text); font-size: .95rem; margin-bottom: 1.5rem;
}

/* ---------- wkrótce ---------- */
.soon .card { border-style: dashed; box-shadow: none; }
.soon .tag { margin-bottom: .7rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 50rem; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: .75rem; }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 1.2rem 1rem; margin: 0; color: var(--muted); }

/* ---------- formularz ---------- */
.contact { display: grid; gap: 2rem; }
@media (min-width: 900px) { .contact { grid-template-columns: .8fr 1.2fr; } }
.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
.form input, .form textarea {
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: .75rem .9rem; min-height: 48px; width: 100%;
}
.form textarea { min-height: 130px; resize: vertical; }
.form .consent { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--muted); }
.form .consent input { width: 22px; height: 22px; min-height: 0; margin-top: .15rem; flex: none; accent-color: var(--navy-2); }
.form .hp { position: absolute; left: -9999px; }
.form__status { min-height: 1.5em; font-weight: 600; }
.form__status.ok { color: var(--ok); }
.form__status.err { color: var(--warn); }
.optional { font-weight: 400; color: var(--muted); }

/* ---------- stopka ---------- */
.footer { background: var(--navy); color: #c4cfe6; padding: 2.5rem 0; font-size: .95rem; }
.footer a { color: #fff; }
.footer .wrap { display: grid; gap: 1.2rem; }
@media (min-width: 760px) { .footer .wrap { grid-template-columns: 1fr auto; align-items: end; } }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.2rem; list-style: none; padding: 0; margin: 0; }
.footer small { color: #8d9cbc; }

/* ---------- podstrona tekstowa ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.prose li { margin-bottom: .4rem; }
