/* ==========================================================================
   Strefa Dostępu — Newsletter Mai
   Arkusz stylów. Bez zależności, bez frameworków.
   ========================================================================== */

:root {
  --paper: #faf6f0;
  --paper-2: #f1e9dd;
  --surface: #ffffff;
  --ink: #211c1a;
  --ink-2: #3a322e;
  --muted: #6d655d;
  --line: #e3dacd;
  --accent: #c2487a;         /* ciepły malinowy róż */
  --accent-dark: #a5346a;    /* kontrast z bielą 4.9:1 */
  --accent-soft: rgba(194, 72, 122, 0.10);
  --ok: #2f6d4a;
  --err: #a83a34;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1100px;
  --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 24px 56px rgba(33, 28, 26, 0.12);
  --shadow-sm: 0 6px 20px rgba(33, 28, 26, 0.07);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 16.5px; line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 600; line-height: 1.12;
  letter-spacing: -0.02em; color: var(--ink); margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.15em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; }
.section--alt { background: var(--paper-2); }
.section--white { background: var(--surface); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink .lead, .section--ink .muted { color: rgba(255,255,255,.70); }
.section--ink a { color: #f0b9d2; }

.eyebrow {
  font-family: var(--font-body); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.lead { font-size: 1.14rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 30px; border: 1.5px solid transparent; border-radius: 999px;
  font-family: var(--font-display); font-size: 0.97rem; font-weight: 600; letter-spacing: 0;
  text-decoration: none; cursor: pointer;
  transition: transform .16s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn--primary { background: var(--accent-dark); color: #fff; }
.btn--primary:hover { background: #8e2b5a; color: #fff; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-2); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--paper-2); color: var(--ink); }
.btn--block { width: 100%; }
.nav a.btn--primary, .nav a.btn--primary:hover { color: #fff; }
.section--ink a.btn--light, .section--ink a.btn--light:hover { color: var(--ink); }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(250,246,240,.9);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 20px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; line-height: 1.1;
}
.brand:hover { color: var(--ink); }
.brand__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); flex: none; }
.brand small {
  display: block; font-family: var(--font-body); font-size: 0.64rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 2px;
}
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--muted); font-size: 0.93rem; font-weight: 500; text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav .btn { padding: 11px 20px; font-size: 0.9rem; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 9px; color: var(--ink); padding: 9px 12px; cursor: pointer; font-size: 1rem; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 14px 22px 24px; background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm); display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; border-bottom: none; }
}

/* ---------- Hero + formularz zapisu ---------- */
.hero { padding: 80px 0 76px; border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__note { margin-top: 16px; font-size: 0.88rem; color: var(--muted); }
@media (max-width: 860px) { .hero { padding: 52px 0 50px; } .hero__grid { grid-template-columns: 1fr; gap: 38px; } }

.signup {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.signup h3 { font-size: 1.35rem; margin-bottom: 6px; }
.signup > p { font-size: 0.93rem; color: var(--muted); margin-bottom: 20px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}

/* ---------- Pasek ---------- */
.strip { background: var(--ink); color: #fff; padding: 20px 0; }
.strip__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; text-align: center; }
.strip__item strong { display: block; font-family: var(--font-display); font-size: 1.02rem; }
.strip__item span { font-size: 0.82rem; color: rgba(255,255,255,.6); }

/* ---------- Karty ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card__num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--accent); display: block; margin-bottom: 12px; }

/* ---------- Avatar (CSS) ---------- */
.avatar {
  width: min(320px, 78%); aspect-ratio: 1/1; margin-inline: auto; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #f6d9e6 0 46%, transparent 47%),
              linear-gradient(145deg, var(--accent) 0%, #8e2b5a 100%);
  position: relative; box-shadow: var(--shadow);
}
.avatar::after {
  content: "M"; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 5rem; color: #fff;
}

/* ---------- Kroki ---------- */
.steps { counter-reset: st; display: grid; gap: 16px; max-width: 880px; margin-inline: auto; }
.step {
  display: grid; grid-template-columns: 54px 1fr; gap: 22px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 28px; box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: st; content: counter(st, decimal-leading-zero);
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--accent); line-height: 1.3;
}
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { margin-bottom: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Lista ---------- */
.feature-list { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 12px; }
.feature-list li { position: relative; padding-left: 30px; color: var(--muted); }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 8px; border: solid var(--accent); border-width: 0 0 2px 2px; transform: rotate(-45deg); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 2px 24px; box-shadow: var(--shadow-sm); }
.faq details[open] { border-color: var(--accent); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 34px 20px 0; font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 11px; height: 11px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > p { color: var(--muted); padding-bottom: 18px; margin: 0; font-size: 0.96rem; }

/* ---------- Formularze ---------- */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 7px; }
.field .req { color: var(--accent); }
.field input, .field textarea { width: 100%; padding: 13px 15px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); font-family: inherit; font-size: 0.98rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field .hint { font-size: 0.79rem; color: var(--muted); margin-top: 6px; }
.field .error { display: none; font-size: 0.81rem; color: var(--err); margin-top: 6px; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--err); }
.field.is-invalid .error { display: block; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.consent input { width: 18px; height: 18px; margin-top: 4px; flex: none; accent-color: var(--accent); }
.consent label { font-size: 0.82rem; color: var(--muted); line-height: 1.55; }
.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 0.91rem; }
.form-status[data-state="ok"] { display: block; background: rgba(47,109,74,.08); border: 1px solid var(--ok); color: var(--ok); }
.form-status[data-state="err"] { display: block; background: rgba(168,58,52,.07); border: 1px solid var(--err); color: var(--err); }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* ---------- Nagłówek podstrony ---------- */
.page-head { padding: 66px 0 52px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: 0.81rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }

/* ---------- Treść prawna ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.46rem; margin-top: 44px; }
.legal h3 { font-size: 1.04rem; margin-top: 26px; }
.legal ol, .legal ul { color: var(--muted); padding-left: 22px; }
.legal li { margin-bottom: 9px; }
.legal p { color: var(--muted); }
.legal table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 0.91rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: 11px 13px; text-align: left; vertical-align: top; color: var(--muted); }
.legal th { background: var(--paper-2); color: var(--ink); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.notice { background: var(--paper-2); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 18px 22px; margin: 26px 0; font-size: 0.92rem; color: var(--muted); }
.notice strong { color: var(--ink); }
.todo { background: rgba(194,72,122,.12); border-bottom: 1px dashed var(--accent); color: var(--accent-dark); padding: 0 5px; border-radius: 3px; font-style: italic; font-size: 0.95em; }

/* ---------- Strona podziękowania ---------- */
.thanks { max-width: 640px; margin-inline: auto; text-align: center; }
.thanks__badge { width: 72px; height: 72px; border-radius: 50%; background: var(--accent-soft); border: 2px solid var(--accent); display: grid; place-items: center; margin: 0 auto 24px; }
.thanks__badge::after { content: ""; width: 22px; height: 12px; border: solid var(--accent); border-width: 0 0 3px 3px; transform: rotate(-45deg) translateY(-2px); }

/* ---------- Stopka ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.70); padding: 60px 0 28px; font-size: 0.9rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: rgba(255,255,255,.5); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 34px; margin-bottom: 42px; }
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--font-body); font-size: 0.77rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,.48); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: rgba(255,255,255,.70); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.company-data { font-size: 0.85rem; line-height: 1.85; color: rgba(255,255,255,.64); }
.company-data strong { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.82rem; color: rgba(255,255,255,.48); }

/* ---------- Baner cookie ---------- */
.cookie { position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 90; max-width: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: none; }
.cookie[data-visible="true"] { display: block; }
.cookie p { font-size: 0.88rem; color: var(--muted); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.cookie .btn { padding: 11px 20px; font-size: 0.9rem; }

/* ---------- Pomocnicze ---------- */
.skip-link { position: absolute; left: -9999px; background: var(--accent); color: #fff; padding: 12px 18px; z-index: 200; }
.skip-link:focus { left: 12px; top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
