/* ============================================================
   Metria — LP (Projekt 1)
   Autorski CSS, bez frameworków i zewnętrznych zasobów.
   ============================================================ */

:root {
  --bg: #f6f4ee;
  --bg-tint: #efede5;
  --surface: #ffffff;
  --ink: #141712;
  --muted: #5b6157;
  --muted-2: #62685d;
  --line: rgba(20, 23, 18, 0.13);
  --line-strong: rgba(20, 23, 18, 0.28);
  --accent: #0b6b4f;
  --accent-ink: #064534;
  --lime: #ddf06b;
  --lime-soft: #eef7c8;
  --danger: #a61b1b;
  --danger-soft: #fff3f1;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(20, 23, 18, 0.05), 0 24px 48px -32px rgba(20, 23, 18, 0.35);
  --shadow-lg: 0 30px 80px rgba(20, 23, 18, 0.28);
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Cascadia Mono", SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --wrap: 1160px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.55rem, 4.05vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 20ch;
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.7rem);
  line-height: 1.05;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--lime-soft);
  color: var(--accent-ink);
  padding: 0.12em 0.4em;
  border-radius: 5px;
  white-space: nowrap;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

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

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(var(--wrap), 100% - 48px);
  margin-inline: auto;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}

.eyebrow--light {
  color: var(--lime);
}

/* ---------- Przyciski ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--solid {
  background: var(--ink);
  color: #fff;
}

.btn--solid:hover {
  background: #000;
}

.btn--lime {
  background: var(--lime);
  color: var(--ink);
}

.btn--lime:hover {
  background: #d3eb4f;
}

.btn--outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--ink);
  background: rgba(20, 23, 18, 0.04);
}

.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn--ghost:hover {
  background: rgba(20, 23, 18, 0.05);
}

.btn--small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.86rem;
}

.btn--lg {
  min-height: 54px;
  padding: 0 28px;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.link-arrow::after {
  content: "→";
  transition: transform 0.16s ease;
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

/* ---------- Nagłówek ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 244, 238, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-mark {
  border-radius: 9px;
  box-shadow: 0 2px 6px rgba(11, 107, 79, 0.25);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  font-size: 0.9rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 6px 0;
}

.nav a:hover {
  color: var(--ink);
}

.header-cta {
  flex: 0 0 auto;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 84px 0 96px;
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(221, 240, 107, 0.38) 0%, rgba(221, 240, 107, 0) 62%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 64px;
  align-items: center;
}

.hero-copy .eyebrow {
  margin-bottom: 20px;
}

.hero-copy h1 {
  margin-bottom: 22px;
}

.lead {
  max-width: 54ch;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--muted);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 30px;
}

.microcopy {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--muted-2);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 0.82rem;
  color: var(--muted);
}

.facts li {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.facts strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.plan-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--lime-soft);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-list {
  list-style: none;
  margin: 6px 0 0;
}

.event-list li {
  display: grid;
  grid-template-columns: 8px 124px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.88rem;
}

.event-list li:last-child {
  border-bottom: 0;
}

.event-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.event-list code {
  background: none;
  padding: 0;
  font-size: 0.78rem;
  color: var(--accent-ink);
}

.event-list span {
  color: var(--muted);
  font-size: 0.82rem;
}

.plan-card__note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--muted-2);
}

/* ---------- Sekcje ---------- */

.section {
  padding: 92px 0;
  border-bottom: 1px solid var(--line);
}

.section--tint {
  background: var(--bg-tint);
}

.section--ink {
  background: var(--ink);
  color: #f6f4ee;
  border-bottom: 0;
}

.section-head {
  display: grid;
  grid-template-columns: 172px 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 46px;
}

.section-head > .eyebrow {
  padding-top: 8px;
}

.section-lead {
  max-width: 62ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.02rem;
}

.section-lead--light {
  color: #c3c9bb;
}

.section-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 34px;
}

.section-cta p {
  font-size: 0.82rem;
  color: var(--muted-2);
}

/* ---------- Problem ---------- */

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pain-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.pain-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 30px;
}

.pain-card h3 {
  margin-bottom: 10px;
}

.pain-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Dla kogo ---------- */

.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.fit-panel {
  border-radius: var(--radius);
  padding: 30px;
}

.fit-panel--yes {
  background: var(--surface);
  border: 1px solid rgba(11, 107, 79, 0.28);
}

.fit-panel--no {
  border: 1px dashed var(--line-strong);
}

.fit-panel h3 {
  margin-bottom: 18px;
}

.check-list,
.cross-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li,
.cross-list li {
  position: relative;
  padding-left: 30px;
  font-size: 0.94rem;
}

.check-list li::before,
.cross-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 700;
}

.check-list li::before {
  content: "✓";
  background: var(--lime-soft);
  color: var(--accent-ink);
}

.cross-list li::before {
  content: "✕";
  background: rgba(20, 23, 18, 0.06);
  color: var(--muted);
}

.cross-list li {
  color: var(--muted);
}

/* ---------- Zakres ---------- */

.scope-list {
  list-style: none;
  border-top: 1px solid var(--line);
}

.scope-list li {
  display: grid;
  grid-template-columns: 56px 210px 1fr;
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.scope-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding-top: 4px;
}

.scope-list h3 {
  font-size: 1.22rem;
}

.scope-list p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 56ch;
}

/* ---------- Proces ---------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.steps li {
  border-top: 2px solid var(--ink);
  padding-top: 22px;
}

.step-days {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.steps h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.steps p {
  font-size: 0.93rem;
  color: var(--muted);
}

.process-note {
  margin-top: 36px;
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0 12px 12px 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.process-note strong {
  color: var(--ink);
}

/* ---------- Tabela standardu ---------- */

.events-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--line-strong);
  font-size: 0.94rem;
}

.events-table th {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
}

.events-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.events-table td:last-child {
  color: var(--muted);
  font-size: 0.88rem;
}

.events-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.55);
}

/* ---------- Cennik ---------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}

.price-card--featured {
  background: var(--ink);
  color: #f6f4ee;
  border-color: var(--ink);
  box-shadow: var(--shadow);
}

.price-card h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 10px 0 4px;
}

.price small {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

.price-card--featured .price small {
  color: #c3c9bb;
}

.price-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 22px;
}

.price-card--featured .price-meta {
  color: #a9b09f;
}

.price-badge {
  position: absolute;
  top: -13px;
  right: 22px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-list {
  list-style: none;
  display: grid;
  gap: 11px;
  margin-bottom: 28px;
}

.price-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.9rem;
}

.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
}

.price-card--featured .price-list li::before {
  color: var(--lime);
}

.price-card .btn {
  margin-top: auto;
}

.price-card--featured .btn--lime {
  color: var(--ink);
}

/* ---------- FAQ ---------- */

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.18s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: var(--accent-ink);
}

.faq-answer {
  padding: 0 0 24px;
}

.faq-answer p {
  max-width: 72ch;
  font-size: 0.94rem;
  color: var(--muted);
}

/* ---------- Formularz ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 64px;
  align-items: start;
}

.form-intro h2 {
  margin: 18px 0 16px;
}

.next-steps {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.next-steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.93rem;
  color: #d7dccd;
}

.next-steps span {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(221, 240, 107, 0.55);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--lime);
}

.demo-note {
  margin-top: 32px;
  padding: 18px 20px;
  border: 1px dashed rgba(221, 240, 107, 0.5);
  border-radius: var(--radius-sm);
  background: rgba(221, 240, 107, 0.07);
}

.demo-note__title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 6px;
}

.demo-note p {
  font-size: 0.82rem;
  color: #c3c9bb;
}

.demo-note code {
  background: rgba(221, 240, 107, 0.14);
  color: var(--lime);
}

.form-card {
  background: var(--surface);
  color: var(--ink);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.86rem;
  font-weight: 650;
}

.optional {
  font-weight: 400;
  color: var(--muted-2);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #c9c6bc;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field select {
  padding-right: 36px;
  cursor: pointer;
}

.field input::placeholder {
  color: #6b7165;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 107, 79, 0.18);
}

.field-hint {
  margin-top: 6px;
  font-size: 0.76rem;
  color: var(--muted-2);
}

.field-error {
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--danger);
}

.field--invalid input,
.field--invalid select {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.field--invalid input:focus,
.field--invalid select:focus {
  box-shadow: 0 0 0 3px rgba(166, 27, 27, 0.18);
}

.field--check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 4px 10px;
  align-items: start;
  margin-top: 4px;
}

.field--check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.field--check label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted);
}

.field--check .field-error {
  grid-column: 2;
}

.form-summary {
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid #e7b4ae;
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  color: #7a1c14;
}

.form-summary__title {
  font-weight: 700;
  font-size: 0.86rem;
}

.form-summary ul {
  margin: 8px 0 0 18px;
  font-size: 0.82rem;
  display: grid;
  gap: 3px;
}

.form-summary a {
  color: inherit;
}

.lead-form > .btn {
  margin-top: 6px;
}

.form-foot {
  margin-top: 12px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted-2);
}

.form-success {
  padding: 10px 4px;
}

.form-success__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--lime-soft);
  color: var(--accent-ink);
  font-size: 1.2rem;
  font-weight: 700;
}

.form-success h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.form-success p {
  font-size: 0.92rem;
  color: var(--muted);
}

.form-success p strong {
  color: var(--ink);
}

.form-success .btn {
  margin-top: 22px;
}

/* ---------- Stopka ---------- */

.site-footer {
  padding: 60px 0 26px;
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1.1fr;
  gap: 44px;
}

.footer-brand p {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 0.86rem;
  color: var(--muted);
}

.footer-title {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.footer-nav a {
  display: block;
  padding: 4px 0;
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--ink);
}

.footer-privacy p {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--muted-2);
}

.footer-bottom a {
  color: var(--accent);
}

/* ---------- Sticky CTA ---------- */

.sticky-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(20, 23, 18, 0.97);
  color: #fff;
  box-shadow: 0 -8px 30px rgba(20, 23, 18, 0.3);
  transition: transform 0.2s ease;
}

.sticky-cta p {
  font-size: 0.75rem;
  color: #c3c9bb;
}

body.consent-open .sticky-cta,
body.form-in-view .sticky-cta {
  transform: translateY(110%);
}

/* ---------- Banner zgód ---------- */

.consent {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: min(700px, calc(100% - 32px));
  max-height: min(86vh, 720px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.consent-inner {
  padding: 26px;
}

/* Dialog dostaje focus programowo (tabindex=-1); obramowanie focusa na całym
   panelu wygląda jak błąd, więc pokazujemy focus tylko na elementach w środku. */
.consent:focus,
.consent:focus-visible {
  outline: none;
}

.consent-head .mono {
  margin-bottom: 6px;
}

.consent-head h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.consent-head p {
  font-size: 0.85rem;
  color: var(--muted);
}

.consent-options {
  margin: 20px 0;
  border-top: 1px solid var(--line);
}

.consent-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.consent-option__title {
  font-size: 0.88rem;
  font-weight: 650;
}

.consent-option__desc {
  margin-top: 2px;
  font-size: 0.76rem;
  color: var(--muted);
  max-width: 52ch;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.consent-foot {
  margin-top: 12px;
  font-size: 0.68rem;
  color: var(--muted-2);
  text-align: right;
}

/* przełącznik */

.switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.switch input {
  position: absolute;
  width: 44px;
  height: 26px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.switch-track {
  position: relative;
  display: block;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #d6d3c9;
  transition: background-color 0.16s ease;
  pointer-events: none;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(20, 23, 18, 0.25);
  transition: transform 0.16s ease;
}

.switch input:checked + .switch-track {
  background: var(--accent);
}

.switch input:checked + .switch-track::after {
  transform: translateX(18px);
}

.switch input:focus-visible + .switch-track {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.switch input:disabled + .switch-track {
  opacity: 0.55;
}

/* ---------- Responsywność ---------- */

@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero {
    padding: 64px 0 72px;
  }

  .plan-card {
    max-width: 560px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .section-head > .eyebrow {
    padding-top: 0;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .price-grid {
    grid-template-columns: 1fr 1fr;
  }

  .price-card--featured {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .header-cta {
    margin-left: auto;
  }

  .pain-grid,
  .steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .steps li {
    padding-top: 18px;
  }

  .steps h3 {
    font-size: 1.3rem;
  }

  .fit-grid {
    grid-template-columns: 1fr;
  }

  .scope-list li {
    grid-template-columns: 44px 1fr;
    gap: 8px 16px;
  }

  .scope-list p {
    grid-column: 2;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .section {
    padding: 64px 0;
  }

  h1 {
    max-width: 100%;
  }

  .lead {
    font-size: 1.02rem;
  }

  .facts {
    gap: 6px 16px;
  }

  .facts strong {
    font-size: 1.2rem;
  }

  .price-grid {
    grid-template-columns: 1fr;
  }

  .price-card--featured {
    grid-column: auto;
    grid-row: auto;
  }

  .events-table thead {
    display: none;
  }

  .events-table,
  .events-table tbody,
  .events-table tr,
  .events-table td {
    display: block;
    width: 100%;
  }

  .events-table {
    border-top: 0;
  }

  .events-table tr {
    margin-bottom: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
  }

  .events-table td {
    padding: 4px 0;
    border: 0;
  }

  .events-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 1px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-2);
  }

  .events-table td:first-child code {
    font-size: 0.95rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom p + p {
    margin-top: 8px;
  }

  .form-card {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .consent {
    bottom: 0;
    width: 100%;
    max-height: 88vh;
    border-radius: 20px 20px 0 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
  }

  .consent-inner {
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
  }

  .consent-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .consent-actions .btn {
    width: 100%;
  }

  .consent-foot {
    text-align: left;
  }

  .sticky-cta {
    display: flex;
  }

  body {
    padding-bottom: 74px;
  }

  .hero-grid {
    gap: 28px;
  }

  .plan-card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .header-cta {
    padding: 0 13px;
    font-size: 0.78rem;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-actions {
    gap: 8px;
  }

  .link-arrow {
    min-height: 40px;
  }

  .section-cta .btn {
    width: 100%;
  }

  .event-list li {
    grid-template-columns: 8px 108px 1fr;
  }

  .consent-option {
    align-items: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media (forced-colors: active) {
  .btn,
  .price-card,
  .plan-card,
  .consent {
    border: 1px solid CanvasText;
  }
}
