/* ==========================================================================
   Widari — Design System
   Styl: Exaggerated Minimalism (bold typography, high contrast, negative space)
   Paleta: warm paper + ink + terracotta accent
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENY
   -------------------------------------------------------------------------- */
:root {
  /* Kolory — semantyczne, nie używaj surowych hexów w komponentach */
  --paper:        #FAF8F5;
  --paper-2:      #F2EDE6;
  --card:         #FFFFFF;
  --ink:          #14110F;
  --ink-2:        #57504A;
  --ink-3:        #6E6660;
  --line:         #E4DDD3;
  --line-2:       #EFEAE3;
  --accent:       #B93D0A;
  --accent-hover: #9A330A;
  --accent-ink:   #FFFFFF;
  --accent-soft:  #FDF1EA;
  --success:      #15803D;
  --danger:       #B91C1C;
  --ring:         #B93D0A;
  --scroll-thumb: #CBC2B6;

  /* Typografia */
  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-body:    'DM Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;

  --text-xs:   0.8125rem;
  --text-sm:   0.9375rem;
  --text-base: 1.0625rem;
  --text-lg:   clamp(1.125rem, 0.4vw + 1.05rem, 1.3125rem);
  --text-xl:   clamp(1.375rem, 0.8vw + 1.2rem, 1.75rem);
  --text-2xl:  clamp(1.75rem, 1.6vw + 1.4rem, 2.5rem);
  --text-3xl:  clamp(2.25rem, 3vw + 1.5rem, 3.75rem);
  --text-4xl:  clamp(2.75rem, 6vw + 1rem, 6rem);
  --text-hero: clamp(2.75rem, 8.5vw, 8.5rem);

  /* Spacing (skala standard: 16–64) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --section-y: clamp(4.5rem, 9vw, 9rem);

  /* Kształt */
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  /* Cień — ciepły, nie neutralny szary */
  --shadow-sm: 0 1px 2px rgba(20, 17, 15, 0.04), 0 1px 3px rgba(20, 17, 15, 0.06);
  --shadow:    0 4px 6px -1px rgba(20, 17, 15, 0.05), 0 10px 24px -6px rgba(20, 17, 15, 0.08);
  --shadow-lg: 0 12px 24px -8px rgba(20, 17, 15, 0.10), 0 32px 64px -16px rgba(20, 17, 15, 0.12);

  /* Ruch */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur:  220ms;

  /* Layout */
  --container: 1200px;
  --container-narrow: 760px;
  --nav-h: 72px;
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--space-8));
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
h3, h4 { line-height: 1.2; letter-spacing: -0.03em; }
p { text-wrap: pretty; }

/* Focus — nigdy nie usuwaj, tylko popraw */
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
:focus:not(:focus-visible) { outline: none; }

::selection { background: var(--ink); color: var(--paper); }

/* Paski przewijania — dotyczy strony, textarea, tabeli cennika i menu mobilnego.
   Firefox czyta scrollbar-*, reszta ::-webkit-scrollbar. */
* { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: var(--radius-full);
  /* przezroczysta ramka + background-clip = odstęp od krawędzi na dowolnym tle,
     bez dobierania koloru ramki do rodzica */
  border: 3px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--ink-3);
  background-clip: padding-box;
}
::-webkit-scrollbar-corner { background: transparent; }

/* --------------------------------------------------------------------------
   3. LAYOUT
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--sand { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h2, .section--ink h3 { color: var(--paper); }

.skip-link {
  position: absolute;
  top: -100px; left: var(--space-4);
  z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--space-4); }

/* --------------------------------------------------------------------------
   4. TYPOGRAFIA POMOCNICZA
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1.5px;
  background: currentColor;
}
.section--ink .eyebrow { color: #F0A882; }

.lead {
  font-size: var(--text-lg);
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 58ch;
}
.section--ink .lead { color: #C9C1B9; }

.accent-text { color: var(--accent); }
.muted { color: var(--ink-2); }
.text-sm { font-size: var(--text-sm); }

.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: var(--text-3xl); margin-bottom: var(--space-6); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

/* --------------------------------------------------------------------------
   5. PRZYCISKI
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: -0.01em;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition: transform var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
/* Bez podnoszenia — reakcja to pogłębiony cień, nie ruch w pionie. */
.btn:hover { box-shadow: var(--shadow); }
.btn:active { box-shadow: var(--shadow-sm); transition-duration: 90ms; }

.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); }
.btn--accent:hover { --btn-bg: var(--accent-hover); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); background: transparent; }

.btn--light { --btn-bg: var(--paper); --btn-fg: var(--ink); }

.btn--lg { min-height: 56px; padding: 1.05rem 2rem; font-size: var(--text-base); }
.btn--block { width: 100%; }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(3px); }

[data-magnetic] { will-change: transform; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--accent);
  padding-block: var(--space-2);
  min-height: 44px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   6. NAWIGACJA
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  min-height: var(--nav-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.05em;
  flex-shrink: 0;
}
.logo__mark {
  width: 30px; height: 30px;
  flex-shrink: 0;
  transition: transform 450ms var(--ease);
}
.logo:hover .logo__mark { transform: rotate(90deg); }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--radius-full);
  transition: color var(--dur) var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link::after {
  content: '';
  position: absolute;
  left: var(--space-4); right: var(--space-4);
  bottom: 8px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__cta { display: none; }
.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-right: -12px;
  border-radius: var(--radius);
}
.nav__toggle svg { width: 24px; height: 24px; }

/* Menu mobilne */
.nav__mobile {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 99;
  background: var(--paper);
  padding: var(--space-8) clamp(1.25rem, 4vw, 2.5rem) var(--space-12);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 260ms var(--ease), transform 260ms var(--ease), visibility 260ms;
}
.nav__mobile.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
.nav__mobile a:not(.btn) {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.04em;
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--line-2);
}
.nav__mobile .btn { margin-top: var(--space-6); }
.nav__mobile__contact {
  margin-top: auto;
  padding-top: var(--space-8);
  font-size: var(--text-sm);
  color: var(--ink-2);
}

@media (min-width: 900px) {
  .nav__toggle, .nav__mobile { display: none; }
  .nav__cta { display: inline-flex; }
}
@media (max-width: 899px) {
  .nav__links { display: none; }
}

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  /* Górny odstęp celowo mały: nawigacja i tak daje 72px oddechu,
     a dołożenie kolejnych 112px odsuwało nagłówek poniżej pierwszego ekranu. */
  padding-block: clamp(1.75rem, 3vw, 3rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -30%; left: 50%;
  width: min(1100px, 130vw);
  aspect-ratio: 1;
  translate: -50% 0;
  background: radial-gradient(circle, rgba(185, 61, 10, 0.09) 0%, rgba(185, 61, 10, 0) 62%);
  pointer-events: none;
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }

.hero__title {
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.055em;
  max-width: 15ch;
  margin-bottom: var(--space-8);
}
.hero__lead { font-size: var(--text-lg); max-width: 52ch; color: var(--ink-2); }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.4rem 0.9rem 0.4rem 0.5rem;
  background: var(--accent-soft);
  border: 1px solid #F7DCCB;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: #8A2D08;
  margin-bottom: var(--space-8);
}
.badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 4px;
  box-shadow: 0 0 0 3px rgba(185, 61, 10, 0.16);
}

/* Pasek zaufania */
.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-6);
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: var(--space-8);
  border-top: 1px solid var(--line);
}
.trust__item { display: flex; align-items: flex-start; gap: var(--space-3); }
.trust__item svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.trust__item strong { display: block; font-size: var(--text-sm); font-weight: 600; }
.trust__item span { font-size: var(--text-xs); color: var(--ink-3); }

/* --------------------------------------------------------------------------
   8. KARTY
   -------------------------------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
a.card:hover, .card--hover:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: var(--space-6);
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.card p { color: var(--ink-2); font-size: var(--text-sm); }

.grid { display: grid; gap: var(--space-6); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* --------------------------------------------------------------------------
   9. BRANŻE (pigułki)
   -------------------------------------------------------------------------- */
.industries {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.industry {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0.6rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--dur) var(--ease);
}
.industry svg { width: 17px; height: 17px; color: var(--ink-3); transition: color var(--dur) var(--ease); }
.industry:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.industry:hover svg { color: #F0A882; }

/* --------------------------------------------------------------------------
   10. PROCES
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  counter-reset: step;
}
.step { position: relative; padding-top: var(--space-8); border-top: 2px solid var(--line); }
.section--ink .step { border-top-color: #332C27; }

/* Kółko z numerem, osadzone na linii jak węzeł osi czasu.
   display:grid + place-items:center centruje cyfry w obu osiach niezależnie
   od kroju i wysokości linii — inaczej line-height znosi je w pionie.
   Kółko jest zawsze w kolorze akcentu, więc nie trzeba dobierać tła
   pod jasną, piaskową i ciemną sekcję osobno. */
.step::before {
  counter-increment: step;
  content: '0' counter(step);
  position: absolute;
  top: 0; left: 0;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
}
.step h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.step p { font-size: var(--text-sm); color: var(--ink-2); }
.section--ink .step p { color: #A79E96; }

/* --------------------------------------------------------------------------
   11. MOCKUPY PORTFOLIO (czyste CSS — zero obrazków, zero wagi)
   -------------------------------------------------------------------------- */
.work {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.work:hover { box-shadow: var(--shadow-lg); border-color: var(--ink); }

.work__frame {
  --mk-bg: #F5F3F0;
  --mk-ink: #1A1A1A;
  --mk-accent: #B93D0A;
  background: var(--paper-2);
  padding: var(--space-6) var(--space-6) 0;
  border-bottom: 1px solid var(--line);
}
.browser {
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  box-shadow: 0 -1px 0 var(--line), 0 12px 28px -12px rgba(20,17,15,.28);
  background: #fff;
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 11px;
  background: #E9E5E0;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.browser__dot { width: 8px; height: 8px; border-radius: 50%; background: #C6BFB7; }
.browser__url {
  flex: 1;
  margin-left: 8px;
  height: 16px;
  border-radius: 4px;
  background: #F7F5F2;
  font-size: 8px;
  line-height: 16px;
  text-align: center;
  color: #9A938B;
  letter-spacing: .02em;
  overflow: hidden;
  white-space: nowrap;
}
.browser__screen {
  background: var(--mk-bg);
  padding: 14px;
  height: 190px;
  overflow: hidden;
  transition: transform 600ms var(--ease);
}
.work:hover .browser__screen { transform: scale(1.03); }

/* miniaturowe elementy "strony" wewnątrz mockupu */
.mk-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mk-logo { width: 34px; height: 6px; border-radius: 3px; background: var(--mk-ink); }
.mk-links { display: flex; gap: 5px; }
.mk-links i { width: 14px; height: 4px; border-radius: 2px; background: var(--mk-ink); opacity: .3; }
.mk-hero { display: flex; gap: 12px; align-items: flex-start; }
.mk-copy { flex: 1.15; }
.mk-h { height: 11px; border-radius: 3px; background: var(--mk-ink); margin-bottom: 5px; }
.mk-h.w-90 { width: 90%; } .mk-h.w-65 { width: 65%; } .mk-h.w-40 { width: 40%; }
.mk-p { height: 4px; border-radius: 2px; background: var(--mk-ink); opacity: .22; margin-bottom: 4px; }
.mk-p.w-full { width: 100%; } .mk-p.w-80 { width: 80%; } .mk-p.w-55 { width: 55%; }
.mk-btn { width: 52px; height: 13px; border-radius: 7px; background: var(--mk-accent); margin-top: 9px; }
.mk-img { flex: 0.85; height: 62px; border-radius: 6px; background: var(--mk-accent); opacity: .16; }
.mk-row { display: flex; gap: 7px; margin-top: 14px; }
.mk-tile { flex: 1; height: 40px; border-radius: 5px; background: var(--mk-ink); opacity: .07; }
.mk-tile--on { background: var(--mk-accent); opacity: .2; }

.work__body { padding: var(--space-6); }
.work__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}
/* Nazwa pakietu ma zostać w jednej linii. Długi tag branży
   („Gabinet stomatologiczny") ściskał ją i łamał na „Pakiet / Biznes". */
.work__meta > :last-child { white-space: nowrap; flex-shrink: 0; }
.work__tag {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.work__body h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.work__body p { font-size: var(--text-sm); color: var(--ink-2); }
.work__feats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-2);
}
.work__feats span {
  font-size: var(--text-xs);
  color: var(--ink-2);
  background: var(--paper-2);
  border-radius: var(--radius-sm);
  padding: 3px 9px;
}

/* --------------------------------------------------------------------------
   Rozwijany panel „dlaczego demo" — pod kartami, domyślnie zwinięty.
   Uczciwa informacja nie musi krzyczeć nad projektami; kto chce, ten rozwinie.
   data-collapse podpina go pod tę samą animację, co FAQ (patrz main.js).
   -------------------------------------------------------------------------- */
.notice-toggle {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--accent-soft);
  border: 1px solid #F7DCCB;
  border-radius: var(--radius);
}
.notice-toggle summary {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 44px;
  padding: 1.25rem var(--space-6);
  cursor: pointer;
  list-style: none;
  font-size: var(--text-sm);
  font-weight: 600;
  color: #7A2B0A;
  transition: color var(--dur) var(--ease);
}
.notice-toggle summary::-webkit-details-marker { display: none; }
.notice-toggle summary:hover { color: #5C1F06; }
.notice-toggle__icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent); }
.notice-toggle__label { flex: 1; }
.notice-toggle__chevron {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 260ms var(--ease);
}
.notice-toggle[open] .notice-toggle__chevron { transform: rotate(45deg); }
.notice-toggle__body {
  /* wcięcie równa tekst z etykietą w summary, ponad ikoną */
  padding: 0 var(--space-6) var(--space-6) calc(var(--space-6) + 20px + var(--space-4));
  overflow: hidden;   /* konieczne — animacja zwijania przycina treść */
}
.notice-toggle__body p { font-size: var(--text-sm); color: #7A2B0A; max-width: 78ch; }
.notice-toggle__body strong { color: #5C1F06; }

/* Uczciwy komunikat o makietach demo */
.notice {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-6);
  background: var(--accent-soft);
  border: 1px solid #F7DCCB;
  border-radius: var(--radius);
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.notice svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.notice p { font-size: var(--text-sm); color: #7A2B0A; max-width: 78ch; }
.notice strong { color: #5C1F06; }

/* --------------------------------------------------------------------------
   12. CENNIK
   -------------------------------------------------------------------------- */
.plans {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  align-items: start;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.plan:hover { box-shadow: var(--shadow-lg); }
.plan--featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.plan--featured h3 { color: var(--paper); }
.plan__badge {
  position: absolute;
  top: 0; right: var(--space-8);
  translate: 0 -50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}
.plan__name { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.plan__for { font-size: var(--text-sm); color: var(--ink-2); min-height: 3em; }
.plan--featured .plan__for { color: #A79E96; }
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: var(--space-6) 0 var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}
.plan__price small { font-size: var(--text-base); font-weight: 500; letter-spacing: normal; color: var(--ink-2); }
.plan--featured .plan__price small { color: #A79E96; }
.plan__note { font-size: var(--text-xs); color: var(--ink-3); margin-bottom: var(--space-6); }
.plan--featured .plan__note { color: #8A817A; }
.plan__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
  flex: 1;
}
.plan--featured .plan__list { border-top-color: #332C27; }
.plan__list li { display: flex; gap: var(--space-3); font-size: var(--text-sm); align-items: flex-start; }
.plan__list svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 4px; }
.plan--featured .plan__list svg { color: #F0A882; }
.plan--featured .btn { --btn-bg: var(--paper); --btn-fg: var(--ink); }

/* Tabela porównawcza */
/* position:relative jest tu KONIECZNE, nie kosmetyczne.
   Komórki tabeli zawierają .sr-only (position:absolute) z tekstem „Tak"/„Nie"
   dla czytników ekranu. Bez pozycjonowanego rodzica ich blokiem zawierającym jest
   .section, więc overflow-x poniżej ich NIE przycina — lądują poza ekranem
   i rozpychają całą stronę w bok na telefonie. */
.table-wrap {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: var(--space-4) var(--space-6); text-align: left; font-size: var(--text-sm); border-bottom: 1px solid var(--line-2); }
thead th { font-weight: 700; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); background: var(--paper-2); }
tbody tr:last-child td { border-bottom: none; }
td:first-child { font-weight: 500; }
.tick { width: 18px; height: 18px; color: var(--success); }
.cross { width: 18px; height: 18px; color: var(--line); }

/* --------------------------------------------------------------------------
   13. FAQ (natywne details — dostępne z klawiatury out of the box)
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-6);
  min-height: 44px;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.03em;
  cursor: pointer;
  list-style: none;
  transition: color var(--dur) var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  transition: transform 260ms var(--ease);
}
.faq__item[open] .faq__icon { transform: rotate(45deg); color: var(--accent); }
/* overflow:hidden — bez tego treść wylewa się poza panel w trakcie zwijania */
.faq__answer { padding-bottom: var(--space-6); overflow: hidden; }
.faq__answer p { color: var(--ink-2); max-width: 72ch; font-size: var(--text-sm); }
.faq__answer p + p { margin-top: var(--space-4); }

/* --------------------------------------------------------------------------
   14. FORMULARZ
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--space-6); }
.field { display: grid; gap: var(--space-2); }
.field label { font-size: var(--text-sm); font-weight: 600; }
.field label .req { color: var(--accent); }
.field__hint { font-size: var(--text-xs); color: var(--ink-3); }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 50px;
  padding: 0.8rem 1rem;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-size: var(--text-base);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
/* Pole rośnie razem z tekstem (patrz main.js). max-height wyznacza moment,
   w którym suwak ma się w końcu pojawić — do tej pory jest niepotrzebny.
   overflow-y: auto zostaje jako bezpieczny domyślny: gdyby JS padł,
   klient dostanie suwak zamiast uciętego tekstu. */
.field textarea {
  min-height: 130px;
  max-height: 340px;
  resize: vertical;
  line-height: 1.6;
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2357504A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
  padding-right: 42px;
}
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--ink-3); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(185, 61, 10, 0.12);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field__error {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--danger);
  display: none;
  align-items: center;
  gap: 5px;
}
.field__error.is-visible { display: flex; }
.field__error svg { width: 13px; height: 13px; flex-shrink: 0; }

.form__row { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.form__status {
  display: none;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius);
  font-size: var(--text-sm);
}
.form__status.is-visible { display: flex; }
.form__status svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; }
.form__status--ok { background: #ECFDF3; border: 1px solid #ABEFC6; color: #05603A; }
.form__status--err { background: #FEF3F2; border: 1px solid #FECDCA; color: #912018; }

.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* Spinner w przycisku podczas wysyłki */
.btn[data-loading="true"] { pointer-events: none; opacity: .72; }
.btn[data-loading="true"] .btn__label::after {
  content: '';
  display: inline-block;
  width: 13px; height: 13px;
  margin-left: 9px;
  vertical-align: -2px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 640ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   15. CTA + STOPKA
   -------------------------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: var(--text-4xl); max-width: 16ch; margin: 0 auto var(--space-6); }
.cta-band .lead { margin: 0 auto var(--space-8); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }

.footer { background: var(--ink); color: #A79E96; padding-block: var(--space-16) var(--space-8); }
.footer h3 { color: var(--paper); }
/* Trzy kolumny wprost, nie auto-fit: przy auto-fit ostatnia kolumna
   zawijała się do drugiego rzędu i stopka rozjeżdżała się w pionie. */
.footer__grid {
  display: grid;
  gap: var(--space-12);
  grid-template-columns: 1fr;
  padding-bottom: var(--space-12);
  border-bottom: 1px solid #332C27;
}
@media (min-width: 780px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1.3fr;
    gap: var(--space-8) var(--space-12);
    align-items: start;
  }
  .footer__brand { max-width: 34ch; }
}
.footer__brand .logo { color: var(--paper); margin-bottom: var(--space-4); }
.footer__brand p { font-size: var(--text-sm); }
.footer__col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8A817A;
  margin-bottom: var(--space-4);
}
.footer__col a, .footer__col span {
  display: block;
  font-size: var(--text-sm);
  padding-block: 7px;
  transition: color var(--dur) var(--ease);
}
.footer__col a:hover { color: var(--paper); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-8);
  font-size: var(--text-xs);
}

/* --------------------------------------------------------------------------
   16. ANIMACJE (stan początkowy tylko gdy JS działa → brak FOUC bez JS)
   -------------------------------------------------------------------------- */
.js [data-reveal] > * { opacity: 0; transform: translateY(24px); }
.js [data-reveal-self] { opacity: 0; transform: translateY(24px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] > *, .js [data-reveal-self] { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   17. UTILITIES
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.stack-8 > * + * { margin-top: var(--space-8); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.text-center { text-align: center; }

/* Sticky CTA na telefonie */
.mobile-cta {
  position: fixed;
  left: var(--space-4); right: var(--space-4);
  bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: flex;
  gap: var(--space-3);
  opacity: 0;
  transform: translateY(120%);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
  pointer-events: none;
}
.mobile-cta.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-cta .btn { flex: 1; box-shadow: var(--shadow-lg); }
.mobile-cta .btn--icon { flex: 0 0 56px; padding: 0; }
@media (min-width: 900px) { .mobile-cta { display: none; } }
