/* ============================================================
   NKsoft — strony dla lokalnych firm
   Jeden plik CSS, zero zależności zewnętrznych.
   Sekcje: fonty → zmienne → reset → typografia → komponenty
   ============================================================ */

/* ---------- 1. Fonty (self-hosted, woff2) ----------
   Inter: subsety latin + latin-ext (polskie znaki w latin-ext).
   Geist: pełny zestaw znaków w jednym pliku (v1.7, zawiera latin-ext). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/Geist-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/Geist-Bold.woff2") format("woff2");
}

/* ---------- 2. Zmienne ---------- */

:root {
  --white: #FFFFFF;
  --paper: #FAFAF7;
  --ink: #0A0A0A;
  --muted: #5C5C56;          /* tekst drugoplanowy, AA na bieli */
  --accent: #10B981;         /* tylko duże elementy: tła przycisków, detale */
  --accent-ink: #047857;     /* zieleń bezpieczna na tekst drobny (AA na bieli) */
  --accent-deep: #036148;
  --border: #E7E7E1;
  --border-soft: #EFEFEA;
  --error: #B42318;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Geist", "Inter", system-ui, sans-serif;

  --radius: 14px;
  --radius-s: 9px;
  --shadow-card: 0 1px 2px rgba(10, 10, 10, 0.04), 0 12px 32px -16px rgba(10, 10, 10, 0.12);
  --shadow-lift: 0 2px 4px rgba(10, 10, 10, 0.05), 0 20px 44px -18px rgba(10, 10, 10, 0.18);

  --header-h: 64px;
}

/* ---------- 3. Reset ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;             /* fallback dla kotwic bez JS */
  scroll-padding-top: calc(var(--header-h) + 12px);
}
html.lenis { scroll-behavior: auto; }  /* gdy Lenis przejmuje scroll */

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }

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

::selection { background: rgba(16, 185, 129, 0.22); }

/* ---------- 4. Typografia ---------- */

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.35rem, 4.6vw + 0.6rem, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.031em;
  text-wrap: balance;
}
h1 em {
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.085em;
  text-underline-offset: 0.14em;
}
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 2.6vw + 0.7rem, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.024em;
  text-wrap: balance;
}
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.22rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

.text-link {
  color: var(--accent-ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}
.text-link:hover { color: var(--accent-deep); }

/* ---------- 5. Układ ---------- */

.container {
  width: min(100% - 2.75rem, 71.25rem);
  margin-inline: auto;
}
.container.narrow { max-width: 47.5rem; }

.section {
  /* rytm sekcji: ~76 px mobile → ~140 px desktop */
  padding-block: clamp(4.75rem, 6vw + 2.5rem, 8.75rem);
}
.section-paper { background: var(--paper); }

.section h2 { margin-bottom: 1.1rem; }
.section-lead {
  max-width: 40rem;
  color: var(--muted);
  margin-bottom: clamp(2.4rem, 4vw, 3.6rem);
}
.section h2:only-of-type + .cards-3,
.section h2 + .benefits,
.section h2 + .steps,
.section h2 + .faq-list {
  margin-top: clamp(2.4rem, 4vw, 3.6rem);
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
}
.skip-link:focus { top: 12px; }

/* ---------- 6. Przyciski ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 0.985rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--ink);            /* ciemny tekst na zieleni = kontrast 8:1 */
  font-weight: 600;
}
.btn-primary:hover {
  background: #0DA574;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(16, 185, 129, 0.65);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-small { padding: 0.55rem 1.15rem; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }

/* ---------- 7. Nagłówek strony ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(10, 10, 10, 0.07);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand::after { content: "."; color: var(--accent); }
.nav-list {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-list a {
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}
.nav-list a:hover { color: var(--ink); }

@media (max-width: 47.9rem) {
  .nav-list { display: none; }  /* mobile: logo + CTA wystarczą */
}

/* ---------- 8. Hero ---------- */

.hero { background: var(--white); }

.hero-stage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0 3.5rem;
  position: relative;
}
.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.tagline {
  margin-top: 1.4rem;
  font-weight: 600;
  font-size: 1.13rem;
  letter-spacing: -0.01em;
}
.hero-lead {
  margin-top: 0.85rem;
  color: var(--muted);
  max-width: 30rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.1rem;
}
.hero-note {
  margin-top: 1.2rem;
  font-size: 0.855rem;
  color: var(--muted);
}

.scroll-hint {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  font-size: 0.855rem;
  color: var(--muted);
}
.scroll-hint-arrow {
  display: inline-block;
  margin-left: 8px;
  animation: hint-bob 1.6s ease-in-out infinite;
}
@keyframes hint-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Strefa scrolla elementu podpisowego — tylko desktop + JS + pełny motion.
   Bez JS lub z reduced-motion hero jest zwykłą, statyczną sekcją. */
@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: 1.04fr 0.96fr; }

  html.js .hero-zone { height: 210vh; }
  html.js .hero-stage {
    position: sticky;
    top: var(--header-h);              /* scena trzyma się pod sticky headerem */
    height: calc(100vh - var(--header-h));
    height: calc(100svh - var(--header-h));
  }
  html.js .scroll-hint { display: block; }
}

/* ---------- 9. Element podpisowy: mockup przeglądarki ---------- */

.hero-visual { max-width: 34rem; width: 100%; justify-self: center; }

.mockup {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.mockup-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--paper);
}
.chrome-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E3E3DC;
}
.chrome-url {
  margin-left: 10px;
  flex: 1;
  max-width: 240px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 3px 14px;
  font-size: 0.72rem;
  color: var(--muted);
}

.mockup-page { display: grid; }
.m-layer {
  grid-area: 1 / 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

/* wspólna geometria stref obu warstw (szkic i final muszą się pokrywać) */
.mz-nav {
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mz-hero {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 9px;
}
.mz-img { flex: 1; min-height: 74px; display: flex; }
.mz-cards {
  height: 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.mz-footer { height: 18px; display: flex; align-items: center; }

/* warstwa szkicu: szare klocki */
.wbox {
  display: block;
  background: #E9E9E3;
  border-radius: 6px;
}
.w-logo { width: 74px; height: 12px; }
.w-links { display: flex; gap: 8px; }
.w-link { width: 30px; height: 8px; }
.w-line { height: 15px; }
.w-line-a { width: 72%; }
.w-line-b { width: 54%; }
.w-sub { width: 42%; height: 8px; }
.w-btn { width: 88px; height: 26px; border-radius: 7px; margin-top: 4px; }
.w-img { width: 100%; height: 100%; border-radius: 9px; }
.w-card { border-radius: 9px; }
.w-foot { width: 38%; height: 7px; }

/* warstwa gotowej mini-strony */
.f-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: -0.01em;
}
.f-links { display: flex; gap: 12px; font-size: 0.62rem; color: var(--muted); }
.f-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.24rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.f-sub { font-size: 0.69rem; color: var(--muted); }
.f-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  font-size: 0.69rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 7px;
  margin-top: 4px;
}
.f-img {
  width: 100%;
  height: 100%;
  border-radius: 9px;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 45%),
    linear-gradient(118deg, #E8DED1 0%, #CDB9A2 58%, #B49B80 100%);
}
.f-card {
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}
.f-card strong {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.f-card i {
  display: block;
  width: 62%;
  height: 5px;
  border-radius: 3px;
  background: #ECECE6;
}
.f-foot { font-size: 0.6rem; color: var(--muted); }

/* Stan domyślny (bez JS / reduced-motion): od razu gotowa strona.
   JS z włączonym motion odwraca to i buduje scenę od szkicu. */
.m-wire { opacity: 0; visibility: hidden; }

.mockup-caption {
  margin-top: 1rem;
  font-size: 0.855rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- 10. Karty (wspólne) ---------- */

.cards-3 {
  display: grid;
  gap: 1.4rem;
}
@media (min-width: 60rem) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.965rem; color: var(--muted); }
.card .card-action {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-soft);
  color: var(--ink);
}

/* ---------- 11. Co dostajesz ---------- */

.benefits {
  list-style: none;
  display: grid;
  gap: 2.5rem 3rem;
}
@media (min-width: 40rem) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .benefits { grid-template-columns: repeat(3, 1fr); gap: 3rem 3.5rem; } }

.benefits li::before {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  margin-bottom: 0.9rem;
}
.benefits h3 { font-size: 1.13rem; margin-bottom: 0.45rem; }
.benefits p { font-size: 0.965rem; color: var(--muted); }

.fine-print {
  margin-top: clamp(2.4rem, 4vw, 3.4rem);
  font-size: 0.855rem;
  color: var(--muted);
  max-width: 38rem;
}

/* ---------- 12. Realizacje ---------- */

.demo-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.demo-card img {
  width: 100%;
  aspect-ratio: 640 / 400;
  object-fit: cover;
  background: var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.demo-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #3F3F39;
}
.demo-body { padding: 1.35rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.demo-body h3 { margin-bottom: 0.4rem; }
.demo-body p { flex: 1; margin-bottom: 0.95rem; }
.demo-link { font-size: 0.95rem; align-self: flex-start; }

/* ---------- 13. Współpraca (kroki) ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 2.25rem 2rem;
}
@media (min-width: 40rem) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.9rem;
}
.step h3 { font-size: 1.13rem; margin-bottom: 0.45rem; }
.step p { font-size: 0.965rem; color: var(--muted); }
.steps .step-time {
  margin-top: 0.7rem;
  font-size: 0.845rem;
  font-weight: 500;
  color: var(--accent-ink);
}

/* ---------- 14. Pakiety ---------- */

.pricing { align-items: stretch; }

.price-card { display: flex; flex-direction: column; position: relative; }
.price-card h3 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.price-tag { margin-bottom: 1.3rem; }
.price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.1rem;
}
.price-list {
  list-style: none;
  flex: 1;
  margin-bottom: 1.6rem;
}
.price-list li {
  padding: 0.42rem 0 0.42rem 1.7rem;
  position: relative;
  font-size: 0.95rem;
  color: #2E2E29;
}
.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.42rem;
  color: var(--accent-ink);
  font-weight: 700;
}

.price-featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
}
.featured-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--accent);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
}
@media (min-width: 60rem) {
  .price-featured { transform: translateY(-10px); }
  .price-featured:hover { transform: translateY(-13px); }
}

/* ---------- 15. Upsell (automatyzacje) ---------- */

.upsell-list {
  list-style: none;
  margin-bottom: 1.8rem;
}
.upsell-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 2rem;
}
.upsell-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0.5rem;
  color: var(--accent-ink);
  font-weight: 600;
}

/* ---------- 16. FAQ ---------- */

.faq-list details {
  border-bottom: 1px solid var(--border);
}
.faq-list details:first-of-type { border-top: 1px solid var(--border); }

.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0.25rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary h3 { font-size: 1.08rem; }
.faq-list summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent-ink);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p {
  padding: 0 0.25rem 1.4rem;
  max-width: 42rem;
  color: var(--muted);
}

/* ---------- 17. Kontakt ---------- */

.contact-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 60rem) {
  .contact-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 4rem; }
}

.contact-form .field { margin-bottom: 1.15rem; }
.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.optional { color: var(--muted); font-weight: 400; }
.req { color: var(--accent-ink); }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  border: 1px solid #D9D9D2;
  border-radius: var(--radius-s);
  padding: 0.75rem 0.9rem;
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form textarea { resize: vertical; min-height: 8rem; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-ink);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}
.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.field-row {
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 40rem) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-row .field { margin-bottom: 0; }
}
.field-row + .field-hint { margin-top: 0.5rem; }

.field-hint {
  font-size: 0.845rem;
  color: var(--muted);
  margin-bottom: 1.15rem;
}
.field-error {
  font-size: 0.845rem;
  color: var(--error);
  margin-top: 0.4rem;
}

/* honeypot: poza ekranem, nie display:none (boty to sprawdzają) */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  margin-top: 1.4rem;
}
.field-consent input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--accent-ink);
}
.field-consent label {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}
.field-consent a { color: var(--accent-ink); }
#err-consent { margin: 0.4rem 0 0; }

#cf-submit { margin-top: 1.5rem; }

.form-status { margin-top: 0.9rem; font-size: 0.925rem; }
.form-status.is-error { color: var(--error); }
.form-status a { color: var(--accent-ink); }

.form-success {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
}
.form-success h3 { margin-bottom: 0.6rem; }
.form-success p { color: var(--muted); }

.contact-aside {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem;
}
.contact-aside h3 { margin-bottom: 0.7rem; }
.contact-aside p { font-size: 0.965rem; color: var(--muted); margin-bottom: 0.9rem; }
.contact-aside p:last-child { margin-bottom: 0; }
.contact-aside .text-link { font-size: 1.08rem; }
.contact-area { padding-top: 0.5rem; border-top: 1px solid var(--border-soft); }

/* ---------- 18. Stopka ---------- */

.site-footer {
  background: var(--ink);
  color: #D6D6D0;
  padding: 3rem 0;
  font-size: 0.925rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 3rem;
  align-items: center;
  justify-content: space-between;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
}
.footer-links a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}
.footer-links a:hover { text-decoration-color: var(--accent); }
.site-footer :focus-visible { outline-color: var(--accent); }

/* ---------- 19. Strony tekstowe (polityka prywatności) ---------- */

.legal h1 { margin-bottom: 0.5rem; }
.legal-updated {
  font-size: 0.855rem;
  color: var(--muted);
  margin-bottom: 2.2rem;
}
.legal h2 {
  font-size: 1.35rem;
  margin: 2.4rem 0 0.7rem;
}
.legal p { margin-bottom: 0.9rem; max-width: 44rem; }
.legal ul {
  list-style: none;
  margin-bottom: 0.9rem;
}
.legal ul li {
  position: relative;
  padding: 0.22rem 0 0.22rem 1.6rem;
  max-width: 44rem;
}
.legal ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent-ink);
}
.legal a { color: var(--accent-ink); }

/* jaskrawe oznaczenie fragmentów do uzupełnienia przed publikacją */
.todo-placeholder {
  background: #FFF3C4;
  padding: 0 0.3rem;
  border-radius: 4px;
  font-weight: 500;
}

/* ---------- 20. Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .scroll-hint { display: none !important; }
}
