/* Strona ofertowa zmianyodreki.pl. Czysty CSS, fonty systemowe, bez zewnętrznych zasobów. */

:root {
  color-scheme: light dark;
  --bg: #f7f7f5;
  --bg-alt: #eef0f3;
  --card: #ffffff;
  --text: #17202a;
  --muted: #566070;
  --line: #d9dde3;
  --accent: #1b4fd8;
  --accent-strong: #163fae;
  --accent-text: #ffffff;
  --accent-soft: #e6edfd;
  --focus: #c2410c;
  --warn-bg: #fdf0d5;
  --warn: #7a4a00;
  --del-bg: #fde8e8;
  --del: #7a1c1c;
  --ins-bg: #e2f5e8;
  --ins: #14532d;
  --shadow: 0 1px 2px rgba(23, 32, 42, 0.06), 0 8px 24px rgba(23, 32, 42, 0.06);
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1419;
    --bg-alt: #141a21;
    --card: #1a2129;
    --text: #e6e9ee;
    --muted: #a3acb8;
    --line: #2b3440;
    --accent: #7fa4ff;
    --accent-strong: #9db9ff;
    --accent-text: #0b1020;
    --accent-soft: #1b2a4a;
    --focus: #fdba74;
    --warn-bg: #45300a;
    --warn: #fde68a;
    --del-bg: #4a1c1c;
    --del: #fecaca;
    --ins-bg: #113a24;
    --ins: #bbf7d0;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 72px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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;
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.6em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--accent-strong); }
strong { font-weight: 650; }
img, svg { max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.wrap {
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
}
.wrap-narrow { width: min(100% - 32px, 820px); }

.muted { color: var(--muted); }
.note { color: var(--muted); font-size: 0.95rem; margin-top: 1.2rem; }

/* Link pomijający nawigację */
.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--card);
  color: var(--text);
  border: 2px solid var(--accent);
  border-radius: 8px;
}
.skip:focus { top: 12px; }

/* Nagłówek */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 8px 0;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}
.brand-mark { color: var(--accent); flex: none; }
.nav { display: flex; align-items: center; }
.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu a {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.menu a:hover { background: var(--bg-alt); color: var(--text); }
.menu .menu-panel { color: var(--accent); font-weight: 600; }
.nav-toggle {
  display: none;
  font: inherit;
  font-weight: 600;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 760px) {
  html.js .nav-toggle { display: inline-flex; align-items: center; }
  html.js .menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 2px;
    padding: 8px 16px 16px;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  html.js .menu.open { display: flex; }
  html.js .menu a { display: block; padding: 12px 10px; }
}

/* Przyciski */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { border-color: var(--accent); color: var(--text); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-text); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 0.9rem; }

/* Sekcja powitalna */
.hero {
  padding: clamp(40px, 6vw, 88px) 0 clamp(40px, 6vw, 80px);
  background:
    radial-gradient(60% 80% at 100% 0%, var(--accent-soft) 0%, transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; }
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 20px; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* Makieta zgłoszenia */
.demo {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.demo-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.demo-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.demo-title { margin-left: 8px; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.demo-body { padding: 18px 18px 20px; }
.demo-label {
  margin: 0 0 6px;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.demo-request {
  margin: 0 0 18px;
  padding: 12px 14px;
  background: var(--bg-alt);
  border-radius: 10px;
  font-size: 1rem;
}
.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  vertical-align: middle;
}
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.diff { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: 0.95rem; }
.diff th, .diff td { text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.diff th { font-size: 0.8rem; font-weight: 650; color: var(--muted); }
.diff del { background: var(--del-bg); color: var(--del); text-decoration: line-through; padding: 1px 4px; border-radius: 4px; }
.diff ins { background: var(--ins-bg); color: var(--ins); text-decoration: none; padding: 1px 4px; border-radius: 4px; }
.demo-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.demo-actions .btn { cursor: default; pointer-events: none; }

/* Sekcje */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; margin-bottom: 2rem; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
}
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }

/* Kroki */
.steps {
  list-style: none;
  counter-reset: krok;
  display: grid;
  gap: 20px;
  margin: 0 0 40px;
  padding: 0;
}
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.steps li {
  counter-increment: krok;
  position: relative;
  padding: 18px 20px 14px 72px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.steps li::before {
  content: counter(krok);
  position: absolute;
  left: 20px;
  top: 18px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 1.1rem;
}
.steps h3 { margin-bottom: 0.3em; }
.steps p { margin-bottom: 0; color: var(--muted); }

.paths { display: grid; gap: 20px; }
@media (min-width: 760px) { .paths { grid-template-columns: 1fr 1fr; } }
.path h3 { color: var(--accent); }

/* Dla kogo */
.who {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.who h3 { font-size: 1.05rem; }
.who p { color: var(--muted); font-style: italic; }

/* Plany */
.plans {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
  align-items: stretch;
}
@media (min-width: 880px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { display: flex; flex-direction: column; padding: 26px 24px 24px; }
.plan-mid { border-color: var(--accent); box-shadow: var(--shadow); }
.plan h3 { font-size: 1.35rem; margin-bottom: 6px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; white-space: nowrap; }
.amount { font-size: 2.2rem; font-weight: 750; letter-spacing: -0.02em; }
.per { color: var(--muted); font-weight: 500; }
.plan-for { color: var(--muted); min-height: 2.6em; margin-bottom: 14px; }
.features {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  flex: 1;
}
.features li {
  position: relative;
  padding: 7px 0 7px 28px;
  border-top: 1px solid var(--line);
}
.features li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  top: 7px;
  color: var(--accent);
  font-weight: 700;
}
.plan-cta { width: 100%; }

/* Bezpieczeństwo */
.safety {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.safety h3 { font-size: 1.1rem; }
.safety p { color: var(--muted); }

/* Pytania */
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 52px 16px 20px;
  font-weight: 650;
  position: relative;
  border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--accent); }
.faq-body { padding: 0 20px 18px; color: var(--muted); }
.faq-body p:last-child { margin-bottom: 0; }

/* Kontakt */
.contact-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.form { display: grid; gap: 16px; padding: 26px 24px 24px; }
.form-title { margin: 0; font-size: 1.1rem; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.opt { color: var(--muted); font-weight: 400; }
input, textarea {
  font: inherit;
  font-size: 16px; /* poniżej 16 px iOS Safari powiększa stronę przy fokusie */
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
}
input:hover, textarea:hover { border-color: var(--muted); }
textarea { min-height: 120px; resize: vertical; }
input:user-invalid, textarea:user-invalid { border-color: var(--del); }
.field-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
}
.field-check input {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  padding: 0;
  accent-color: var(--accent);
}
.field-check label { font-weight: 400; font-size: 0.92rem; color: var(--muted); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }

/* Stopka */
.foot {
  border-top: 1px solid var(--line);
  padding: 40px 0 24px;
  font-size: 0.95rem;
}
.foot-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-brand { font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.foot-h { font-weight: 650; margin-bottom: 6px; }
.foot p { margin-bottom: 0.6em; }
.foot-bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.9rem; }

/* Podstrony tekstowe (polityka, podziękowanie) */
.page { padding: clamp(32px, 5vw, 64px) 0; }
.page h1 { margin-bottom: 0.3em; }
.page h2 { font-size: 1.35rem; margin-top: 2em; }
.page .updated { color: var(--muted); margin-bottom: 2em; }
.page ul li, .page ol li { margin-bottom: 0.4em; }
.page address { font-style: normal; }
.placeholder {
  background: var(--warn-bg);
  color: var(--warn);
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .top, .skip, .cta, .form, .demo-actions { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
