/* ==========================================================================
   Temida CRM — landing. System wizualny "Nocturne" z handoffu.
   Kolejnosc: tokeny -> baza -> prymitywy -> sekcje -> responsywnosc.
   ========================================================================== */

/* --- Tokeny --------------------------------------------------------------
   Wartosci wprost z handoffu. Nie wprowadzaj koloru poza ta lista:
   "nigdy nie zalewaj duzej powierzchni akcentem" to regula systemu, nie gust. */
:root {
  --bg:            #161826;  /* tlo bazowe */
  --surface:       #232532;  /* pasmo alternatywne, naprzemiennie z --bg */

  --text:          #E9E9ED;
  --text-muted:    #9397AB;
  --text-soft:     #B2B6CA;
  --text-faint:    #595D6C;

  --ring:          #3F424D;  /* 1px inset ring zamiast obramowania */
  --ring-hover:    #595D6C;
  --hairline:      rgba(233, 233, 237, 0.10);
  --hairline-rule: rgba(233, 233, 237, 0.16);

  --accent:         #9184D9;
  --accent-light:   #B5ABFC;
  --accent-lighter: #D2CEFD;
  --accent-tint:    #2B2741;  /* tlo chipow ikon, wyrozniona karta cennika */
  --accent-border:  #423A6A;

  --band:      #262A60;  /* jedyne nasycone pasmo na stronie — statystyki */
  --band-glow: #353B80;

  --radius-sm: 8px;   /* przyciski, inputy, chipy ikon */
  --radius-md: 10px;  /* karty funkcji i integracji */
  --radius-lg: 12px;  /* duze karty, ramki obrazow */
  --radius-xl: 14px;  /* karta CTA demo */

  --container: 1180px;
  --gutter: 32px;

  /* Ten system nie uzywa cieni do elewacji spoczynkowej — od tego jest ring. */
  --elev-rest:  0 0 0 1px var(--ring);
  --elev-hover: 0 0 0 1px var(--ring-hover), 0 6px 18px rgba(0, 0, 0, 0.55);
}

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

html { scroll-behavior: smooth; }

@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;
  }
}

/* Strona jest zaprojektowana wylacznie w ciemnym wariancie — mowimy o tym
   przegladarce, zeby nie malowala jasnych domyslnych formantow. */
:root { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-light); }

::selection { background: #5D5294; color: #F5F4FF; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ring); border-radius: 8px; }

/* Zadnego polegania na domyslnym outline przegladarki — handoff wymaga
   widocznego ringu akcentu wszedzie. */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Dla czytnikow ekranu: tresc widoczna tylko dla nich. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 18px; border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  box-shadow: var(--elev-rest); transition: top .15s ease;
}
.skip-link:focus { top: 16px; }

/* --- Prymitywy ----------------------------------------------------------- */
.container { max-width: var(--container); margin: 0 auto; }

.section { padding: 96px var(--gutter); }
.section--tight   { padding: 40px var(--gutter); }
.section--surface { background: var(--surface); }
.section--base    { background: var(--bg); }

/* Ikony: jeden sprite, referencja przez <use>. Rozmiar sterowany fontem
   rodzica, kolor przez currentColor — jak w font-ikonach, bez fontu. */
.icon {
  width: 1em; height: 1em; flex: none;
  fill: currentColor; vertical-align: -0.125em;
}

h1, h2, h3 { font-weight: 500; margin: 0; }

/* Naglowki skaluja sie plynnie clampem, bo projekt nie ma breakpointow,
   a 58 px na telefonie lamie sie w poprzek ekranu. */
h1 {
  font-size: clamp(34px, 6.4vw, 58px);
  line-height: 1.06; letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(27px, 4.4vw, 40px);
  line-height: 1.12; letter-spacing: -0.015em;
}
h3 { font-size: 18.5px; }

.kicker {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}
.kicker .icon { font-size: 13px; }
.kicker--center { justify-content: center; }

.lead {
  color: var(--text-muted);
  font-size: 16px; line-height: 1.65;
}

.section-head { max-width: 760px; }
.section-head--center { margin: 0 auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }
.section-head h2 { margin: 16px 0 0; }
.section-head .lead { margin: 18px 0 0; }

/* Sygnaturowy detal systemu: linie gasna do przezroczystosci na pierwszych
   i ostatnich 48 px zamiast konczyc sie twarda krawedzia. */
.rule {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg,
    transparent,
    var(--hairline-rule) 48px,
    var(--hairline-rule) calc(100% - 48px),
    transparent);
}

/* Przyciski sa ZAWSZE obrysowane, nigdy wypelnione — dotyczy takze CTA
   na wyroznionym planie cennika. Wyroznienie niesie karta, nie przycisk. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px;
  font: inherit; font-size: 15.5px; font-weight: 600;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: rgba(145, 132, 217, 0.12); color: var(--accent-light); }

.btn--neutral { color: var(--text-soft); border-color: var(--ring); }
.btn--neutral:hover {
  background: transparent; color: var(--text); border-color: var(--ring-hover);
}
.btn--sm    { padding: 10px 20px; font-size: 14px; }
.btn--block { width: 100%; }

.card {
  background: var(--bg);
  border-radius: var(--radius-md);
  box-shadow: var(--elev-rest);
  transition: box-shadow .2s ease;
}
.section--base .card { background: var(--surface); }
.card--hover:hover { box-shadow: var(--elev-hover); }

/* Chip ikony: jedyne miejsce, gdzie akcent wystepuje jako wypelnienie —
   i to na kwadracie 42 px. */
.icon-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex: none;
  border-radius: var(--radius-sm);
  background: var(--accent-tint);
  color: var(--accent-light);
  font-size: 21px;
}

.grid { display: grid; gap: 18px; }
.grid--160 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.grid--200 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid--240 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--250 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--290 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

/* --- Nawigacja ----------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--gutter);
  background: rgba(22, 24, 38, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav__brand { display: flex; align-items: center; gap: 11px; color: inherit; }
.nav__brand:hover { color: inherit; }
.nav__logo {
  width: 36px; height: 36px; flex: none;
  border-radius: 50%; background: #F3F5FE; object-fit: cover;
}
.nav__wordmark { display: flex; align-items: baseline; gap: 8px; }
.nav__name {
  font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--text);
}
.nav__tag {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.24em; color: var(--accent);
}
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { color: var(--text-soft); font-size: 14.5px; font-weight: 500; }
.nav__links a:hover { color: var(--text); }

.nav__toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0;
  font-size: 21px; color: var(--text-soft);
  background: transparent; border: 1px solid var(--ring);
  border-radius: var(--radius-sm); cursor: pointer;
}
.nav__toggle:hover { color: var(--text); border-color: var(--ring-hover); }

.nav__panel {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  padding: 8px var(--gutter) 20px;
  background: rgba(22, 24, 38, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav__panel-link {
  display: block; padding: 15px 2px;
  color: var(--text-soft); font-size: 15.5px; font-weight: 500;
}
.nav__panel-link:hover { color: var(--text); }
.nav__panel .btn { margin-top: 14px; }

/* Handoff opisuje przelacznik nawigacji jako sterowany JS-em przy 900 px.
   Robimy to media query: ten sam prog i ten sam efekt, ale uklad nie zalezy
   od tego, czy JS sie wykonal. JS odpowiada wylacznie za otwarcie panelu. */
@media (max-width: 899.98px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav[data-open="true"] .nav__panel { display: block; }
}

/* --- Hero ---------------------------------------------------------------- */
.hero { padding: 96px var(--gutter) 72px; }
.hero__grid {
  display: grid; gap: 56px; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
}
.hero h1 { margin-top: 22px; }
.hero__accent { color: var(--accent-light); }
.hero__lead {
  margin: 24px 0 0; max-width: 520px;
  color: var(--text-soft); font-size: 18px; line-height: 1.65;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__trust {
  margin-top: 30px;
  color: var(--text-muted); font-size: 13.5px; font-weight: 500;
}

.hero__figure {
  position: relative; height: 496px;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg); box-shadow: var(--elev-rest);
}
/* mix-blend-mode: lighten sprawia, ze najciemniejsze tony zdjecia zlewaja sie
   z tlem strony zamiast konczyc sie twarda krawedzia prostokata. */
.hero__figure img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: lighten; background-color: transparent;
}
.hero__scrim {
  position: absolute; left: 0; right: 0; bottom: 0; height: 60%;
  pointer-events: none;
  background: linear-gradient(to top,
    rgba(22, 24, 38, 0.95) 10%, rgba(22, 24, 38, 0.4) 55%, transparent 100%);
}
.hero__quote {
  position: absolute; left: 24px; right: 24px; bottom: 24px;
  margin: 0; padding: 18px 22px;
  background: rgba(35, 37, 50, 0.82);
  backdrop-filter: blur(6px);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: var(--elev-rest);
}
.hero__quote p {
  margin: 0; font-style: italic; font-size: 19px; line-height: 1.4; color: var(--text);
}
.hero__quote figcaption {
  margin-top: 9px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--accent-light);
}
.hero__quote figcaption span {
  color: var(--text-muted); font-style: italic; font-weight: 400; letter-spacing: 0.02em;
}

/* --- Pasmo statystyk ----------------------------------------------------- */
/* Jedyny nasycony moment na stronie. Reszta zostaje wyciszona z zalozenia. */
.stats {
  position: relative; overflow: hidden;
  padding: 52px var(--gutter); background: var(--band);
}
.stats::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 15% 0%, var(--band-glow) 0%, transparent 55%);
}
.stats .container { position: relative; }
.stats__grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  text-align: center;
}
.stats__value {
  font-size: 42px; font-weight: 500; line-height: 1; letter-spacing: -0.02em;
  color: #FFFFFF;
}
.stats__label {
  margin-top: 10px; font-size: 13.5px; line-height: 1.5; color: #C6C9EC;
}

/* --- Partnerzy ----------------------------------------------------------- */
.partners__label {
  text-align: center;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-faint);
}
.partners__grid { margin-top: 22px; }
.partners__tile {
  display: flex; align-items: center; justify-content: center;
  height: 62px; border-radius: var(--radius-md);
  border: 1px dashed var(--ring);
  color: var(--text-faint); font-size: 12.5px; font-weight: 500;
}

/* --- Podglad produktu ---------------------------------------------------- */
.preview { padding: 24px var(--gutter) 8px; }
.window {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--elev-rest);
}
.window__chrome {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--hairline);
}
.window__dots { display: flex; gap: 7px; }
.window__dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 12px; height: 12px; border-radius: 50%;
  font-size: 8px; color: rgba(0, 0, 0, 0.45);
}
.window__dot--red   { background: #C9573F; }
.window__dot--amber { background: #D7A24B; }
.window__dot--green { background: #6FA45A; }
.window__title {
  margin-left: 6px; font-size: 12.5px; font-weight: 500; color: var(--text-muted);
}
.window img { width: 100%; }

/* --- Funkcje ------------------------------------------------------------- */
.feature { padding: 26px 24px 28px; }
.feature h3 { margin: 18px 0 0; }
.feature p { margin: 10px 0 0; color: var(--text-muted); font-size: 14.5px; }

/* --- Moduly -------------------------------------------------------------- */
.modules { margin-top: 46px; }

/* Zakladki: aktywna jedna, reszta neutralna. Akcent siedzi na pojedynczym
   chipie, nie na calym pasku — "nigdy nie zalewaj duzej powierzchni akcentem". */
.modules__tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.modules__tab {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px;
  font-family: inherit; font-size: 14.5px; font-weight: 500; line-height: 1;
  color: var(--text-muted); background: transparent;
  border: 1px solid var(--ring); border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.modules__tab:hover { color: var(--text); border-color: var(--ring-hover); }
.modules__tab[aria-pressed="true"] {
  color: var(--accent-lighter);
  background: var(--accent-tint);
  border-color: var(--accent-border);
}

/* Wszystkie zrzuty leza w tej samej komorce gridu i przenikaja opacity —
   przelaczanie jest natychmiastowe i nie miga ladowaniem obrazka. */
.modules__stage {
  position: relative; display: grid; margin-top: 30px;
  background: var(--bg); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--elev-rest);
}
.modules__shot {
  grid-area: 1 / 1;
  opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
.modules__shot[data-active="true"] { opacity: 1; pointer-events: auto; }

/* Cala ramka jest przyciskiem: klikniecie gdziekolwiek w zrzut otwiera podglad. */
.modules__frame {
  position: relative; display: block;
  width: 100%; aspect-ratio: 2 / 1; margin: 0; padding: 0;
  background: var(--bg); border: 0; cursor: zoom-in;
}
/* contain, nie cover: zrzuty maja rozne proporcje (1.87 - 2.35), a przyciety
   interfejs sprzedaje gorzej niz kilkanascie pikseli tla po bokach. */
.modules__frame img { width: 100%; height: 100%; object-fit: contain; }

.modules__zoom {
  position: absolute; right: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px;
  font-size: 12.5px; font-weight: 500; color: var(--text-soft);
  background: rgba(22, 24, 38, 0.82); backdrop-filter: blur(4px);
  border: 1px solid var(--ring); border-radius: var(--radius-sm);
  transition: opacity .18s ease, color .18s ease;
}
/* Na dotyku hover nie istnieje, wiec podpowiedz musi byc widoczna od razu.
   Chowamy ja wylacznie tam, gdzie kursor ma jak ja przywolac. */
@media (hover: hover) {
  .modules__zoom { opacity: 0; }
  .modules__frame:hover .modules__zoom,
  .modules__frame:focus-visible .modules__zoom { opacity: 1; color: var(--text); }
}

.modules__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  font-size: 20px; color: var(--text-soft);
  background: rgba(22, 24, 38, 0.7); backdrop-filter: blur(4px);
  border: 1px solid var(--ring); border-radius: var(--radius-sm); cursor: pointer;
}
.modules__arrow:hover { color: var(--text); border-color: var(--ring-hover); }
.modules__arrow--prev { left: 14px; }
.modules__arrow--next { right: 14px; }

/* Opisy tez leza jeden na drugim: widac wylacznie ten, ktory nalezy do
   wyswietlanego zrzutu, a wysokosc bloku nie skacze przy przelaczaniu. */
.modules__captions { display: grid; margin-top: 26px; }
.modules__copy {
  grid-area: 1 / 1; max-width: 820px;
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.modules__copy[data-active="true"] { opacity: 1; pointer-events: auto; }
.modules__copy h3 { display: flex; align-items: center; gap: 11px; font-size: 19px; }
.modules__copy h3 .icon { font-size: 21px; color: var(--accent-light); }
.modules__copy p { margin: 10px 0 0; color: var(--text-muted); font-size: 15px; }

.modules__note {
  margin: 36px 0 0; max-width: 820px;
  color: var(--text-faint); font-size: 13.5px;
}

/* --- Podglad zrzutu ------------------------------------------------------ */
.lightbox {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: 64px 76px;
  background: rgba(15, 16, 27, 0.94); backdrop-filter: blur(6px);
}
/* .lightbox ma display:flex, wiec samo [hidden] by go nie schowalo. */
.lightbox[hidden] { display: none; }
.lightbox__figure {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  width: 100%; max-height: 100%; margin: 0;
}
.lightbox__pane { display: flex; justify-content: center; width: 100%; }
/* Obraz dostaje cale wolne pole i miesci sie w nim przez object-fit: contain.
   Sztywne max-width/max-height na <img> nie wchodzi w gre — zrzuty maja rozne
   proporcje (1.87 - 2.35), a przegladarka przycinajac wysokosc NIE przelicza
   szerokosci: zrzut wyszedlby rozciagniety. Bez ringu i zaokraglenia:
   obramowaloby pole, nie zrzut. */
.lightbox__figure img {
  width: 100%; height: calc(100vh - 170px);
  object-fit: contain;
}
.lightbox__caption { color: var(--text-soft); font-size: 13.5px; text-align: center; }

.lightbox__close, .lightbox__arrow {
  position: absolute;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0;
  font-size: 20px; color: var(--text-soft);
  background: rgba(22, 24, 38, 0.72);
  border: 1px solid var(--ring); border-radius: var(--radius-sm); cursor: pointer;
  transition: color .18s ease, border-color .18s ease;
}
.lightbox__close:hover, .lightbox__arrow:hover {
  color: var(--text); border-color: var(--ring-hover);
}
.lightbox__close { top: 20px; right: 20px; }
.lightbox__arrow { top: 50%; transform: translateY(-50%); }
.lightbox__arrow--prev { left: 20px; }
.lightbox__arrow--next { right: 20px; }

/* --- Dlaczego my / Bezpieczenstwo ---------------------------------------- */
.reasons { margin-top: 34px; }
.reason { padding-top: 26px; }
.reason + .reason { margin-top: 26px; }
.reason__head { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.reason__head h3 { font-size: 17px; }
.reason__head .icon { font-size: 22px; color: var(--accent); }
.reason p { margin: 10px 0 0; color: var(--text-muted); font-size: 14.5px; }

/* --- Integracje ---------------------------------------------------------- */
.integration { padding: 20px; }
.integration__head { display: flex; align-items: center; gap: 11px; }
.integration__head .icon { font-size: 20px; color: var(--accent); }
.integration__name { font-size: 15px; font-weight: 600; color: var(--text); }
.integration p { margin: 10px 0 0; color: var(--text-muted); font-size: 13.5px; }

/* --- Demo CTA ------------------------------------------------------------ */
.demo-card {
  max-width: 840px; margin: 0 auto; padding: 44px 36px; text-align: center;
  background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--elev-rest);
}
.demo-card h2 { margin: 16px 0 0; }
.demo-card p { margin: 16px auto 0; max-width: 520px; color: var(--text-muted); }
.demo-card__actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 18px; margin-top: 28px;
}
.demo-card__phone { font-size: 15px; font-weight: 600; color: var(--text-soft); }
.demo-card__phone:hover { color: var(--text); }

/* --- Cennik -------------------------------------------------------------- */
.billing-toggle {
  display: inline-flex; gap: 4px; margin: 26px 0 0; padding: 4px;
  border-radius: 999px; box-shadow: var(--elev-rest);
}
.billing-toggle button {
  padding: 9px 20px;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text-muted);
  background: transparent; border: 0; border-radius: 999px; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.billing-toggle button[aria-pressed="true"] {
  background: var(--accent-tint); color: var(--accent-lighter);
}

.plans { margin-top: 34px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 24px; }
.plan--featured {
  background: var(--accent-tint);
  box-shadow: 0 0 0 1px var(--accent);
}
.plan__badge {
  position: absolute; top: -11px; left: 26px;
  padding: 5px 11px; border-radius: 999px;
  background: var(--bg); color: var(--accent-lighter);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.plan__name { font-size: 17px; }
.plan__desc { margin: 8px 0 0; min-height: 42px; color: var(--text-muted); font-size: 13.5px; }
.plan__price { margin-top: 20px; display: flex; align-items: baseline; gap: 7px; }
.plan__amount { font-size: 32px; font-weight: 500; letter-spacing: -0.02em; color: var(--text); }
.plan__period { font-size: 13.5px; color: var(--text-muted); }
.plan__features {
  margin: 22px 0 26px; padding: 22px 0 0; list-style: none;
  border-top: 1px solid var(--hairline);
}
.plan--featured .plan__features { border-top-color: var(--accent-border); }
.plan__features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--text-soft);
}
.plan__features li + li { margin-top: 11px; }
.plan__features .icon { font-size: 16px; color: var(--accent); margin-top: 2px; }
.plan .btn { margin-top: auto; }
.pricing__note {
  margin: 26px auto 0; max-width: 640px; text-align: center;
  font-size: 12.5px; font-style: italic; line-height: 1.6; color: var(--text-faint);
}

/* --- Opinie -------------------------------------------------------------- */
.quote-card { margin: 0; padding: 26px 24px; }
.quote-card > .icon { font-size: 24px; color: var(--accent); }
.quote-card blockquote {
  margin: 14px 0 0; font-size: 15px; line-height: 1.6; color: var(--accent-lighter);
}
.quote-card figcaption { margin-top: 18px; font-size: 13px; color: var(--text-muted); }

/* --- FAQ ----------------------------------------------------------------- */
.faq { max-width: 900px; margin: 38px auto 0; }
.faq__item { padding-top: 4px; }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 100%; padding: 22px 2px;
  font: inherit; font-size: 16.5px; font-weight: 500; text-align: left; color: var(--text);
  background: transparent; border: 0; cursor: pointer;
}
.faq__q .icon { font-size: 18px; color: var(--accent); flex: none; }
.faq__a {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .28s ease, opacity .28s ease;
}
.faq__item[data-open="true"] .faq__a { grid-template-rows: 1fr; opacity: 1; }
.faq__a > div { overflow: hidden; }
.faq__a p { margin: 0 0 22px; padding-right: 40px; color: var(--text-muted); font-size: 14.5px; }

/* --- Kontakt + stopka ---------------------------------------------------- */
.contact { padding: 96px var(--gutter) 0; }
.contact__grid {
  display: grid; gap: 48px; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.contact__details { margin-top: 32px; display: grid; gap: 22px; }
.contact__row { display: flex; gap: 13px; }
.contact__row .icon { font-size: 18px; color: var(--accent); margin-top: 3px; }
.contact__key {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-faint);
}
.contact__val { display: block; margin-top: 4px; font-size: 15px; color: var(--text-soft); }
a.contact__val:hover { color: var(--accent-light); }

.form-card { padding: 28px 26px 30px; }
.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.form label {
  display: block; margin-bottom: 7px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-soft);
}
.form input, .form textarea {
  width: 100%; padding: 12px 14px;
  font: inherit; font-size: 14.5px; color: var(--text);
  background: var(--surface); border: 0; border-radius: var(--radius-sm);
  box-shadow: var(--elev-rest); transition: box-shadow .2s ease;
}
.form input::placeholder, .form textarea::placeholder { color: var(--text-faint); }
.form input:hover, .form textarea:hover { box-shadow: 0 0 0 1px var(--ring-hover); }
.form input:focus, .form textarea:focus { box-shadow: 0 0 0 1px var(--accent); }
.form textarea { min-height: 128px; resize: vertical; }
.form__note { margin: 0; font-size: 11.5px; line-height: 1.6; color: var(--text-faint); }
.form__error { margin: 6px 0 0; font-size: 12px; color: #E08A72; }
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"] {
  box-shadow: 0 0 0 1px #E08A72;
}

.form-success { padding: 46px 26px; text-align: center; }
.form-success .icon { font-size: 44px; color: var(--accent); }
.form-success h3 { margin: 16px 0 0; font-size: 21px; }
.form-success p { margin: 10px 0 0; color: var(--text-muted); font-size: 14.5px; }

.footer { padding: 34px 0 40px; }
.footer__grid {
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: flex-start; justify-content: space-between;
}
.footer__brand { display: flex; align-items: center; gap: 11px; color: inherit; }
.footer__brand:hover { color: inherit; }
.footer__legal { margin: 12px 0 0; font-size: 12px; line-height: 1.7; color: var(--text-faint); }
.footer__right { text-align: right; font-size: 12px; line-height: 1.7; color: var(--text-faint); }
.footer__links { margin-top: 6px; }
.footer__links a { color: var(--text-muted); }
.footer__links a:hover { color: var(--accent-light); }

/* --- Baner cookies ------------------------------------------------------- */
.cookies {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 18px var(--gutter);
  background: rgba(22, 24, 38, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--hairline);
}
.cookies[hidden] { display: none; }
.cookies__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  max-width: var(--container); margin: 0 auto;
}
.cookies__text { flex: 1 1 320px; margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-muted); }
.cookies__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookies__close {
  position: absolute; top: 10px; right: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0;
  font-size: 15px; color: var(--text-faint);
  background: transparent; border: 0; border-radius: var(--radius-sm); cursor: pointer;
}
.cookies__close:hover { color: var(--text-soft); }

/* --- Responsywnosc ------------------------------------------------------- */
/* Uklad jest plynny (auto-fit/minmax), wiec regul jest malo — tylko tam,
   gdzie plynnosc sama nie wystarcza. */
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .section { padding: 68px var(--gutter); }
  .hero { padding: 60px var(--gutter) 52px; }
  .hero__figure { height: 380px; }
  .hero__quote p { font-size: 17px; }
  .contact { padding: 68px var(--gutter) 0; }
  .demo-card { padding: 34px 22px; }
  .modules { margin-top: 34px; }
  .modules__tab { padding: 9px 13px; font-size: 13.5px; }
  .modules__arrow { width: 34px; height: 34px; font-size: 17px; }
  .modules__arrow--prev { left: 8px; }
  .modules__arrow--next { right: 8px; }
  .modules__copy h3 { font-size: 17.5px; }
  .lightbox { padding: 70px 14px 86px; }
  /* Zrzut ma ~1200 px szerokosci naturalnej. Wciesniety w 375 px jest
     nieczytelny, wiec w podgladzie pokazujemy go w pelnej szerokosci
     i pozwalamy przesuwac w poziomie — po to sie w niego klika. */
  .lightbox__pane { justify-content: flex-start; overflow-x: auto; overflow-y: hidden; }
  .lightbox__figure img {
    flex: none;
    /* max-width: none jest tu konieczne — globalne `img { max-width: 100% }`
       sciagneloby zrzut z powrotem do szerokosci ekranu. */
    width: auto; max-width: none; height: calc(100vh - 200px);
    object-fit: fill;
  }
  /* Na waskim ekranie strzalki po bokach zjadalyby zrzut — schodza pod niego. */
  .lightbox__arrow { top: auto; bottom: 18px; transform: none; }
  .lightbox__arrow--prev { left: 50%; margin-left: -50px; }
  .lightbox__arrow--next { right: 50%; margin-right: -50px; }
  .footer__grid { flex-direction: column; }
  .footer__right { text-align: left; }
}
