/* Kiper Security - strona statyczna. Bez zewnetrznych zasobow, fonty systemowe. */

:root {
  --bg: #ffffff;
  --surface: #f3f6f8;
  --surface-2: #e8eef2;
  --text: #14232b;
  --muted: #475862;
  --line: #d3dde3;
  --navy: #1f3641;
  --navy-text: #ffffff;
  --accent: #b9470f;
  --accent-soft: #fbe9dd;
  --btn-bg: #1f3641;
  --btn-text: #ffffff;
  --btn-hover: #2c4a58;
  --ph-bg: #fff3b0;
  --ph-text: #4a3b00;
  --focus: #b9470f;
  --radius: 12px;
  --max: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1a20;
    --surface: #16252d;
    --surface-2: #1d313b;
    --text: #e6edf1;
    --muted: #a8b8c1;
    --line: #2b414c;
    --navy: #0a1318;
    --navy-text: #e6edf1;
    --accent: #f5a26a;
    --accent-soft: #3a2518;
    --btn-bg: #f5a26a;
    --btn-text: #1a0f07;
    --btn-hover: #f8b88c;
    --ph-bg: #4a3b00;
    --ph-text: #fff3b0;
    --focus: #f5a26a;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 10;
  background: var(--btn-bg); color: var(--btn-text);
  padding: 10px 14px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 8px; }

/* Naglowek */
.site-header {
  background: var(--navy);
  color: var(--navy-text);
  position: sticky; top: 0; z-index: 5;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy-text); text-decoration: none; font-weight: 700; letter-spacing: 0.06em; }
.brand img { width: 32px; height: 32px; }
.brand span { font-size: 1rem; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--navy-text); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { text-decoration: underline; }
.nav .nav-link { display: none; }
@media (min-width: 900px) { .nav .nav-link { display: inline; } }

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 650; font-size: 1rem; text-decoration: none; line-height: 1.2;
  border: 2px solid transparent; text-align: center;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-hover); text-decoration: none; }
.btn-secondary { border-color: currentColor; color: var(--text); background: transparent; }
.btn-secondary:hover { background: var(--surface-2); }
.site-header .btn { min-height: 40px; padding: 8px 16px; font-size: 0.95rem; }
.site-header .btn-primary { background: #f5a26a; color: #1a0f07; }
.site-header .btn-primary:hover { background: #f8b88c; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 12px; }

/* Sekcje */
section { padding: 64px 0; }
@media (min-width: 720px) { section { padding: 88px 0; } }
.alt { background: var(--surface); }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.6em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.section-head { max-width: 46rem; margin-bottom: 36px; }
.small { font-size: 0.92rem; color: var(--muted); }

/* Hero */
.hero { padding-top: 48px; }
@media (min-width: 720px) { .hero { padding-top: 72px; } }
.hero h1 { max-width: 18ch; }
.hero .lead { font-size: 1.2rem; }
.shot {
  margin: 44px 0 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #fff;
  box-shadow: 0 20px 50px -24px rgba(15, 30, 40, 0.45);
}
.shot figcaption {
  font-size: 0.88rem; color: var(--muted); background: var(--surface);
  padding: 10px 14px; border-top: 1px solid var(--line);
}

/* Siatki i karty */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.alt .card { background: var(--bg); }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.quote { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5em; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps > li { position: relative; padding-top: 56px; }
.steps > li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 24px; top: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 800;
}

.tag { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); vertical-align: middle; }

.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 28px; margin-bottom: 0.5em; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

.note {
  border-left: 4px solid var(--accent); background: var(--accent-soft);
  padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 24px 0 0;
}
.note p:last-child { margin-bottom: 0; }

.split { display: grid; gap: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 0.9fr; align-items: start; } }

/* Cennik */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
caption { text-align: left; padding: 14px 16px; font-weight: 700; border-bottom: 1px solid var(--line); }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { background: var(--surface-2); font-size: 0.95rem; }
td.num, th.num { text-align: right; white-space: nowrap; }
@media (max-width: 420px) { th, td { padding: 10px 10px; font-size: 0.95rem; } }
.plans { margin-top: 24px; }
.plans .card h3 .tag { margin-left: 6px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 650; font-size: 1.08rem;
  padding: 16px 36px 16px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.5rem; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 16px; color: var(--muted); max-width: 52rem; }

/* Zespol */
.person h3 { margin-bottom: 0.2em; }
.person .role { color: var(--muted); margin-bottom: 0.8em; }

/* CTA koncowe */
.cta-final { background: var(--navy); color: var(--navy-text); }
.cta-final .lead { color: inherit; opacity: 0.9; }
.cta-final .btn-primary { background: #f5a26a; color: #1a0f07; }
.cta-final .btn-primary:hover { background: #f8b88c; }
.cta-final .btn-secondary { color: var(--navy-text); }
.cta-final .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }
.cta-final a:not(.btn) { color: #f8b88c; }

/* Stopka */
.site-footer { padding: 40px 0 48px; font-size: 0.93rem; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer .wrap { display: grid; gap: 24px; }
@media (min-width: 720px) { .site-footer .wrap { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h2 { font-size: 0.95rem; color: var(--text); margin-bottom: 0.6em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4em; }
.site-footer p { margin-bottom: 0.4em; }

/* Placeholder do uzupelnienia - widoczny celowo */
.ph { background: var(--ph-bg); color: var(--ph-text); padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* Strony tekstowe */
.doc { max-width: 46rem; padding-top: 48px; padding-bottom: 72px; }
.doc h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }
.doc h2 { font-size: 1.35rem; margin-top: 2em; }
.doc ol, .doc ul { padding-left: 1.4em; }
.doc li { margin-bottom: 0.6em; }
.doc .meta { color: var(--muted); }

.center { text-align: center; }
.page-404 { padding: 96px 0; }
.page-404 .actions { justify-content: center; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.page-404 .lead { margin-left: auto; margin-right: auto; }
