/* ==========================================================================
   Letter Motion - style główne (wygląd z projektu w Figmie, wersja „z kropkami”)
   Kolory i czcionki są w :root na górze. Komponenty używają ról (--ink, --muted,
   --panel...), nigdy surowych kolorów - dzięki temu tryb ciemny działa sam.
   ========================================================================== */

:root {
  /* ===== KOLORY MARKI ===== */
  --brand-navy: #102154;       /* tekst, nagłówki, stopka */
  --brand-coral: #FA695A;      /* główny przycisk i akcenty */
  --brand-cream: #F4EFE4;      /* koperta */

  /* Materiały fizyczne - wyglądają tak samo w obu trybach (to prawdziwy papier). */
  --pen: #1E3FD8;              /* niebieski tusz długopisu */
  --paper: #FFFFFF;
  --paper-edge: #E8E4DD;
  --envelope: var(--brand-cream);
  --envelope-edge: #DCD3C3;
  --on-paper: var(--brand-navy);

  /* Role kolorów - tryb jasny */
  --bg: #FFFFFF;
  --surface: #FFFFFF;          /* karty na tle strony */
  --panel: #F3F5F8;            /* szare sekcje i pola */
  --ink: var(--brand-navy);
  --muted: #627087;
  --line: #DEE3EB;
  --border: #DEE3EB;
  --input: #CBD2DD;
  --dot: #D5DBE5;              /* kropki w tle */
  --icon-bg: #EAF1FF;
  --accent: #C9412F;           /* koral czytelny jako tekst (kontrast 4,6:1) */
  --accent-soft: color-mix(in srgb, var(--brand-coral) 14%, transparent);
  --cta: var(--brand-coral);
  --on-cta: var(--brand-navy);
  --cta-hover: #F4533F;
  --hand-ink: var(--pen);
  --error: #B42318;
  --header-bg: rgba(255, 255, 255, 0.9);
  --footer-bg: var(--brand-navy);
  --footer-ink: #FFFFFF;
  --footer-line: #35446C;
  --shadow: 0 18px 40px rgba(16, 33, 84, 0.09);

  --pad: clamp(16px, 5.5vw, 80px);
  --max: 1440px;
  --section-y: clamp(64px, 8vw, 96px);
  --radius: 8px;
  --header-h: 96px;
  --font: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --display: 'Manrope', 'Inter', sans-serif;
  --hand: 'Caveat', cursive;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
@media (max-width: 1100px) { :root { --header-h: 72px; } }

/* ---------- tryb ciemny ---------- */
[data-theme="dark"] {
  --bg: #0A1230;
  --surface: #111B40;
  --panel: #0E1838;
  --ink: #EEF1F8;
  --muted: #9CA8C2;
  --line: #223062;
  --border: #26356B;
  --input: #3A4882;
  --dot: #1B2754;
  --icon-bg: #1C2A5C;
  --accent: #FF8F82;
  --accent-soft: color-mix(in srgb, var(--brand-coral) 20%, transparent);
  --hand-ink: #9DB0FF;
  --error: #FF9C8F;
  --header-bg: rgba(10, 18, 48, 0.86);
  --footer-bg: #070D24;
  --footer-line: #1E2A55;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}
/* Granatowe logo na ciemnym tle (tryb ciemny, stopka) zamieniamy na jasne. */
[data-theme="dark"] .site-header__logo img,
.footer-brand img { filter: brightness(0) invert(1); }

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;   /* bez szarego błysku po dotknięciu */
  -webkit-text-size-adjust: 100%;
}
/* Płynne przewijanie kółkiem (Lenis) - przewijaniem steruje skrypt. */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Kropki w tle (jak w projekcie). Na szarych sekcjach kropki są te same. */
.dots, main, .page, .section--panel, .cta-box {
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.6px);
  background-size: 28px 28px;
  background-position: 14px 14px;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--ink); }
button, a, [role="button"], summary { touch-action: manipulation; }
button, .btn, summary, .chip-radio span { -webkit-user-select: none; user-select: none; }

input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

section, footer { scroll-margin-top: calc(var(--header-h) + 12px); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.hand { font-family: var(--hand); color: var(--hand-ink); }
.icon { width: 1em; height: 1em; flex: none; }

/* ---------- typografia ---------- */
/* Etykieta sekcji: koralowa kreska + tekst wersalikami */
.label, .kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font-family: var(--font); font-size: 12px; font-weight: 600; line-height: 1.3;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
}
.label::before, .kicker::before { content: ''; flex: none; width: 20px; height: 2px; background: var(--brand-coral); }
.label:empty { display: none; }

.h1, .h2, .page-title, .hero__title {
  margin: 0; font-family: var(--display); font-weight: 800; color: var(--ink);
}
.hero__title { font-size: clamp(40px, 5vw, 68px); line-height: 1.08; letter-spacing: -0.045em; }
.h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.18; letter-spacing: -0.035em; }
.page-title { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.1; letter-spacing: -0.04em; }
.h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.lead { margin: 0; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; color: var(--muted); }
.text { margin: 0; font-size: 16px; line-height: 1.65; color: var(--muted); }
.small { font-size: 13px; color: var(--muted); }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  min-height: 56px; padding: 0 24px;
  border: 0; border-radius: var(--radius);
  background: var(--cta); color: var(--on-cta);
  font-family: var(--font); font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color 0.16s ease, transform 0.12s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(0.98); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease-out); }
.link-underline { font-size: 18px; text-decoration: underline; text-underline-offset: 4px; padding: 10px 0; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--cta-hover); color: var(--on-cta); }
  .link-arrow:hover svg { transform: translateX(3px); }
  .text a:hover, .prose a:hover, .small a:hover, .check a:hover, .faq a:hover { color: var(--accent); }
}

/* ---------- nagłówek (przyklejony) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; justify-content: space-between; align-items: center; gap: 12px 24px;
  min-height: var(--header-h);
}
.site-header__logo { display: inline-flex; align-items: center; min-height: 44px; }
.site-header__logo img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px 32px; margin-left: auto; font-size: 14px; font-weight: 500; }
.nav a:not(.btn) { text-decoration: none; padding: 10px 0; color: var(--ink); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.tool-btn, .menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: transparent; color: var(--ink); cursor: pointer;
}
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.menu-toggle { display: none; }
@media (hover: hover) and (pointer: fine) { .tool-btn:hover, .menu-toggle:hover { border-color: var(--ink); } }

@media (max-width: 1100px) {
  .site-header__logo img { height: 30px; }
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 20px; font-size: 16px;
  }
  .nav.is-open { display: flex; }
  @supports (height: 100svh) { .nav { max-height: calc(100svh - var(--header-h)); } }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; min-height: 52px; }
}

/* podkreślenie linków w menu (rośnie od lewej po najechaniu) */
@media (min-width: 1101px) {
  .nav > a:not(.btn), .nav-drop__btn { position: relative; }
  .nav > a:not(.btn)::after, .nav-drop__btn::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
    background: currentColor; transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s ease;
  }
  .nav-drop.is-open .nav-drop__btn::after,
  .nav > a:not(.btn):focus-visible::after, .nav-drop__btn:focus-visible::after { transform: scaleX(1); }
  .nav > a[aria-current="page"]:not(.btn), .nav-drop__btn[aria-current] { color: var(--accent); }
  .nav > a[aria-current="page"]:not(.btn)::after, .nav-drop__btn[aria-current]::after { transform: scaleX(1); }
}
@media (min-width: 1101px) and (hover: hover) and (pointer: fine) {
  .nav > a:not(.btn):hover::after, .nav-drop__btn:hover::after, .nav-drop:hover .nav-drop__btn::after { transform: scaleX(1); }
}

/* ---------- rozwijane menu „Zastosowania” ---------- */
.nav-drop__btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 0;
  background: none; border: 0; color: var(--ink); font: inherit; cursor: pointer;
}
.nav-drop__btn svg { transition: transform 0.2s ease; }
.nav-drop.is-open .nav-drop__btn svg { transform: rotate(180deg); }
.nav-drop__menu { display: none; }
.nav-drop.is-open .nav-drop__menu { display: grid; }
.nav-drop__label { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.nav-drop__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.nav .nav-drop__menu .nav-drop__list a {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 26px 12px 4px;
  border-bottom: 1px solid var(--line); font-size: 14.5px; font-weight: 500; text-decoration: none;
  transition: color 0.2s ease, padding 0.2s ease;
}
/* każda pozycja wypełnia cały wiersz siatki - kreski w obu kolumnach są na tej samej wysokości */
.nav-drop__list li { display: flex; }
.nav .nav-drop__menu .nav-drop__list li > a { flex: 1 1 auto; min-width: 0; }
.nav-drop__icon { flex: none; color: var(--muted); }
.nav-drop__list span { flex: 1 1 auto; min-width: 0; }
.nav-drop__arrow { position: absolute; right: 2px; top: 50%; margin-top: -8px; opacity: 0; transform: translateX(-8px); transition: opacity 0.2s ease, transform 0.25s var(--ease-out); }
.nav .nav-drop__menu .nav-drop__list a:focus-visible,
.nav .nav-drop__menu .nav-drop__list a[aria-current="page"] { color: var(--accent); padding-left: 10px; padding-right: 20px; }
.nav-drop__list a:focus-visible .nav-drop__arrow { opacity: 1; transform: none; }
.nav .nav-drop__all { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600; text-decoration: none; }
.nav .nav-drop__all svg { transition: transform 0.25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .nav .nav-drop__menu .nav-drop__list a:hover { color: var(--accent); padding-left: 10px; padding-right: 20px; }
  .nav-drop__list a:hover .nav-drop__arrow { opacity: 1; transform: none; }
  .nav .nav-drop__all:hover { color: var(--accent); }
  .nav .nav-drop__all:hover svg { transform: translateX(4px); }
}
.nav-drop__preview { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 24px; border-radius: 16px; background: var(--panel); }
.nav-drop__card {
  padding: 22px 24px; background: var(--paper); color: var(--pen);
  border: 1px solid var(--paper-edge); border-radius: 4px;
  font-family: var(--hand); font-size: 22px; line-height: 1.3;
  box-shadow: var(--shadow);
}
.nav-drop__card p { margin: 0 0 8px; }
.nav-drop__sign { text-align: right; margin-bottom: 0 !important; }
.nav-drop__hint { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }

@media (min-width: 1101px) {
  .nav-drop { position: relative; }
  .nav-drop__menu {
    display: grid; position: absolute; top: calc(100% + 20px); left: 50%; z-index: 60;
    width: min(960px, calc(100vw - 2 * var(--pad)));
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px;
    padding: 28px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 16px;
    box-shadow: 0 24px 60px rgba(16, 33, 84, 0.14);
    opacity: 0; visibility: hidden; transform: translate(-50%, -6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav-drop.is-open .nav-drop__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  /* mostek, żeby menu nie znikało, gdy kursor przechodzi z przycisku na menu */
  .nav-drop__menu::before { content: ''; position: absolute; left: 0; right: 0; top: -32px; height: 32px; }
}
@media (hover: hover) and (min-width: 1101px) { .nav-drop:hover .nav-drop__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); } }
@media (max-width: 1100px) {
  .nav-drop { position: relative; }
  .nav-drop__btn { width: 100%; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-drop__menu { padding: 12px 0 8px; }
  .nav-drop__list { grid-template-columns: minmax(0, 1fr); }
  .nav-drop__preview { display: none; }
  .nav .nav-drop__menu .nav-drop__list a { padding: 12px 2px; }
  .nav .nav-drop__all { display: flex; padding: 14px 2px; }
}

/* ---------- sekcje ---------- */
.section { position: relative; padding: var(--section-y) 0; border-top: 1px solid var(--line); }
main > .section:first-child { border-top: 0; }
.section--panel { background-color: var(--panel); }
.section__head { display: flex; flex-direction: column; gap: 24px; margin-bottom: clamp(32px, 4vw, 48px); }
/* nagłówek sekcji: tytuł po lewej, krótki opis po prawej (wyrównany do dołu) */
.intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 24px clamp(40px, 7vw, 120px); align-items: end; }
.intro .text { max-width: 460px; }
@media (max-width: 900px) { .intro { grid-template-columns: minmax(0, 1fr); } }
.stack { display: flex; flex-direction: column; gap: 40px; }

/* Podstrony: etykieta nad treścią (stary układ „etykieta | treść”) */
.split { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.split > .content { width: 100%; max-width: 880px; }
.split > .label-col { display: flex; flex-direction: column; gap: 10px; }

/* karta */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }

/* ---------- HERO ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 6vw, 88px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 8fr); gap: 40px clamp(40px, 5.5vw, 80px); align-items: center; }
.hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero__lead { max-width: 500px; }
.hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hero__cta .small { margin: 0; }
.media-card {
  display: flex; flex-direction: column; gap: 16px; padding: 20px 0;
  background: var(--surface); border-radius: 24px;
}
.media-card__head, .media-card__caption { display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
.media-card__head { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.media-card__head svg { width: 20px; height: 20px; }
.media-card__img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 12px; background: var(--panel); }
.media-card__caption { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.45; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .media-card { padding: 14px 0; border-radius: 18px; }
  .media-card__head, .media-card__caption { padding: 0 16px; }
}

/* pasek „Zakres obsługi” pod hero */
.scope { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.scope__list {
  list-style: none; margin: 0 auto; padding-top: 28px; padding-bottom: 28px;
  display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 16px 24px;
}
.scope__list li { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 500; }
.scope__list span { font-size: 12px; font-weight: 400; color: var(--muted); }
.scope__list svg { width: 16px; height: 16px; color: var(--ink); }
@media (max-width: 760px) { .scope__list { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: 22px; padding-bottom: 22px; } }

/* ---------- DLACZEGO KARTKA: telefon + tekst ---------- */
.compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 96px); align-items: center; }
.phone-card {
  display: flex; flex-direction: column; gap: 24px; padding: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
}
.phone-card__head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
.phone-card__head svg { width: 20px; height: 20px; }
/* iPhone ze starej wersji strony - statyczny (bez animacji) */
.iphone {
  zoom: 0.78; /* pomniejszenie całego telefonu; wymiary niżej to skala 1:1 */
  position: relative; width: 340px; max-width: 100%; height: 739px;
  border-radius: 62px; background: #3A3A3D; padding: 10px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18), inset 0 0 0 2px #59595E;
}
.iphone__btn { position: absolute; width: 3px; border-radius: 2px; background: #2C2C2E; }
.iphone__btn--action { left: -3px; top: 150px; height: 34px; }
.iphone__btn--volume { left: -3px; top: 200px; height: 60px; }
.iphone__btn--power { right: -3px; top: 220px; height: 92px; }
.iphone__screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 52px; background: color-mix(in srgb, var(--brand-navy) 85%, #000000); overflow: hidden; color: #FFFFFF;
}
.iphone__island {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 104px; height: 30px; border-radius: 20px; background: #000000;
}
.iphone__clock { position: absolute; top: 70px; left: 0; right: 0; text-align: center; }
.iphone__date { margin: 0; font-size: 15px; color: rgba(255, 255, 255, 0.75); }
.iphone__time { margin: 2px 0 0; font-size: 84px; font-weight: 300; line-height: 1; letter-spacing: -0.04em; }
.iphone__meta {
  position: absolute; top: 196px; left: 18px; right: 18px; margin: 0;
  display: flex; justify-content: space-between; font-size: 13px; color: rgba(255, 255, 255, 0.8);
}
.iphone__list { position: absolute; top: 224px; left: 10px; right: 10px; bottom: 0; overflow: hidden; }
.iphone__stack { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.iphone__home {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.8);
}

.notif {
  height: 68px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  display: flex; gap: 10px; align-items: center; padding: 10px 12px;
  transition: opacity 0.5s, filter 0.5s;
}
.notif--mine { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7); }
.notif__icon {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 500;
}
.notif__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.notif__top { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: rgba(255, 255, 255, 0.7); }
.notif__title, .notif__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif__title { font-size: 13px; font-weight: 500; }
.notif__text { font-size: 12px; color: rgba(255, 255, 255, 0.75); }

.phone-caption { margin: 0; font-size: 24px; text-align: center; color: var(--hand-ink); font-family: var(--hand); }

/* Skrzynka mailowa - na telefonie zastępuje makietę iPhone'a
   (telefon na ekranie telefonu wyglądał dziwnie). */
.inbox { display: none; }
@media (max-width: 760px) {
  .phone-card .iphone { display: none; }
  .inbox { display: flex; }
}
.inbox {
  flex-direction: column; width: 100%; max-width: 440px; height: 500px; overflow: hidden;
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}
.inbox__head { flex: none; display: flex; flex-direction: column; gap: 2px; padding: 18px 16px 12px; border-bottom: 1px solid var(--line); }
.inbox__title { margin: 0; font-size: 28px; font-weight: 500; letter-spacing: -0.03em; }
.inbox__meta { margin: 0; font-size: 13px; }
.inbox__search { display: block; margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: var(--panel); font-size: 15px; }
.inbox__list { flex: 1 1 auto; margin: 0; padding: 0; list-style: none; overflow: hidden; }
.mail {
  height: 74px; display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px 0 12px;
  border-bottom: 1px solid var(--line); transition: opacity 0.5s, filter 0.5s;
}
.mail__dot { flex: none; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--accent); }
.mail__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mail__top { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; }
.mail__from { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail__time { flex: none; font-size: 13px; }
.mail__subject, .mail__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail__subject { font-size: 14px; }
.mail__text { font-size: 13px; }
.mail--mine { background: var(--accent-soft); }
.mail--mine .mail__from { color: var(--accent); }
.phone-card .iphone, .phone-card .inbox { align-self: center; }
.compare__text { display: flex; flex-direction: column; gap: 24px; }
.compare__text p { margin: 0; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); }
.compare__text p:last-child { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) {
  .compare { grid-template-columns: minmax(0, 1fr); }
  .phone-card { padding: 20px 16px; }
}

/* trzy powody (i podobne kolumny z kreską u góry) */
.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; margin-top: clamp(48px, 5vw, 64px); }
.reason { display: flex; flex-direction: column; gap: 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.reason > svg { width: 28px; height: 28px; color: var(--ink); }
.reason .text { font-size: 16px; }
@media (max-width: 900px) { .reasons { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ---------- PRAWDZIWY DŁUGOPIS ---------- */
.ink { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(40px, 5.5vw, 80px); align-items: center; }
.ink__sample { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.ink__sample img { width: 100%; aspect-ratio: 600 / 426; object-fit: cover; border-radius: 16px; background: var(--paper); }
.ink__sample figcaption { font-size: 12px; line-height: 1.5; color: var(--muted); }
.ink__text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; width: 100%; padding-top: 20px; border-top: 1px solid var(--line); }
.facts b { display: block; font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.facts span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .ink { grid-template-columns: minmax(0, 1fr); } }

/* ---------- JAK PRACUJEMY ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.steps li { display: flex; flex-direction: column; gap: 14px; padding-top: 26px; border-top: 1px solid var(--line); }
.steps__no { font-family: var(--display); font-size: 32px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.steps .text { font-size: 15px; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.banner {
  display: flex; align-items: center; gap: 24px; margin-top: 40px; padding: 28px;
  background: var(--panel); border-radius: 16px;
}
.banner > svg { width: 28px; height: 28px; flex: none; }
.banner__text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; }
.banner__text b { font-family: var(--display); font-size: 18px; font-weight: 700; }
.banner__text .text { font-size: 15px; }
.banner .link-arrow { flex: none; }
@media (max-width: 760px) { .banner { flex-direction: column; align-items: flex-start; padding: 22px; gap: 14px; } }

/* ---------- ZASTOSOWANIA (kafelki) ---------- */
.uses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.uses a {
  height: 100%; display: flex; flex-direction: column; gap: 16px; padding: 26px;
  background: var(--surface); border: 1px solid transparent; border-radius: 16px;
  text-decoration: none; color: var(--ink);
  transition: border-color 0.2s ease, transform 0.2s var(--ease-out);
}
.uses svg { width: 26px; height: 26px; }
.uses .h3 { font-size: 20px; }
.uses .text { font-size: 14px; }
.uses a:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) { .uses a:hover { border-color: var(--input); color: var(--ink); } }
@media (max-width: 1100px) { .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .uses { grid-template-columns: minmax(0, 1fr); gap: 12px; } .uses a { padding: 20px; } }

/* ---------- PO TWOJEMU (personalizacja) ---------- */
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.choice { display: flex; flex-direction: column; gap: 22px; }
.choice__visual {
  height: 168px; border-radius: 16px; background: var(--panel);
  display: flex; align-items: center; justify-content: center; gap: 14px; padding: 20px;
}
.choice__body { display: flex; flex-direction: column; gap: 10px; }
.choice .text { font-size: 15px; }
.opt {
  width: 144px; height: 98px; padding: 16px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  font-family: var(--display); font-size: 12px; font-weight: 700;
}
.opt i { width: 32px; height: 32px; border-radius: 8px; background: var(--icon-bg); display: flex; align-items: center; justify-content: center; }
.opt svg { width: 18px; height: 18px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.ticks li { display: flex; align-items: center; gap: 10px; }
.ticks svg { width: 16px; height: 16px; }
.env-swatch {
  position: relative; width: 100px; height: 68px; border-radius: 3px; overflow: hidden;
  background: #FFFFFF; border: 1px solid #DCD3C3;
}
.env-swatch::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 68' preserveAspectRatio='none'%3E%3Cpath d='M0 0 L50 40 L100 0' fill='none' stroke='%23000' stroke-opacity='.18' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.env-swatch--cream { background: #F2EDE1; }
.env-swatch--navy { background: #102154; border-color: #102154; }
.env-swatch--navy::before { filter: invert(1); opacity: 0.8; }
@media (max-width: 1000px) { .choices { grid-template-columns: minmax(0, 1fr); gap: 36px; } .choice__visual { height: 150px; } }
@media (max-width: 400px) { .env-swatch { width: 80px; height: 56px; } .opt { width: 128px; } }

/* ---------- GALERIA: „Wybierasz, co zobaczy adresat” ----------
   Na komputerze sekcja przykleja się do ekranu, a przewijanie strony przechodzi
   przez kolejne okazje (wysokość toru liczy main.js). Po ostatniej okazji strona
   przewija się dalej. Na telefonie i przy „ograniczaniu ruchu” - zwykła karuzela. */
.gallery { padding: 0; }
.gallery__track { position: relative; }
.gallery__pin { padding: var(--section-y) 0; }
.gallery.is-pinned .gallery__pin {
  position: sticky; top: var(--header-h);
  height: calc(100vh - var(--header-h));
  padding: clamp(24px, 4vh, 56px) 0; display: flex; flex-direction: column;
}
@supports (height: 100svh) { .gallery.is-pinned .gallery__pin { height: calc(100svh - var(--header-h)); } }
.gallery.is-pinned .gallery__pin > .container { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; width: 100%; }
.gallery__head { display: flex; flex-direction: column; gap: clamp(10px, 1.6vh, 20px); margin-bottom: clamp(20px, 3.2vh, 32px); }
.gallery__eyebrow { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.gallery__title { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(30px, min(3.2vw, 5.2vh), 44px); line-height: 1.15; letter-spacing: -0.035em; }
.gallery__head .text b { color: var(--ink); font-weight: 600; }
.gallery__body { display: grid; grid-template-columns: minmax(0, 9fr) minmax(300px, 4fr); gap: 32px; align-items: stretch; }
.gallery.is-pinned .gallery__body { flex: 1 1 auto; min-height: 0; grid-template-rows: minmax(0, 1fr); }

.gallery__stage { display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.gallery__paper {
  position: relative; flex: 1 1 auto; min-height: 420px;
  background: var(--panel); border-radius: 4px; overflow: hidden;
}
.gallery.is-pinned .gallery__paper { min-height: 0; }
.gslide {
  position: absolute; inset: 0; margin: 0; padding: clamp(20px, 3.6vh, 36px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s;
}
.gslide.is-active { opacity: 1; visibility: visible; }
/* kartka zrobiona w HTML */
.pcard {
  width: min(648px, 100%); max-height: 100%; overflow: hidden;
  display: flex; flex-direction: column; gap: clamp(12px, 2.2vh, 22px);
  padding: clamp(22px, 3.6vh, 36px);
  background: var(--paper); color: var(--on-paper);
  border: 1px solid var(--paper-edge); border-radius: 4px;
  box-shadow: 0 1px 2px rgba(16, 33, 84, 0.04);
}
.pcard > * { flex-shrink: 0; }
.pcard__top { display: flex; justify-content: space-between; align-items: center; font-size: 10px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.pcard__top i { width: 12px; height: 12px; border-radius: 50%; background: var(--brand-coral); }
.pcard__title { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(28px, min(3.2vw, 5vh), 45px); line-height: 1.18; letter-spacing: -0.02em; }
.pcard__rule { width: 40px; height: 3px; background: var(--brand-coral); }
.pcard__body { margin: 0; font-size: clamp(15px, min(1.25vw, 2vh), 17px); line-height: 1.45; }
.pcard__body + .pcard__body { margin-top: -6px; }
.pcard__foot { padding-top: 12px; border-top: 1px solid #DCE1EB; font-size: 10px; color: #657087; }
/* zdjęcie prawdziwej kartki */
.gslide--photo img {
  width: auto; max-width: 100%; max-height: 100%; height: auto;
  object-fit: contain; border-radius: 4px; box-shadow: 0 10px 30px rgba(16, 33, 84, 0.12);
}
.gslide--photo figcaption {
  position: absolute; left: 16px; bottom: 14px; padding: 4px 10px; border-radius: 999px;
  background: var(--surface); font-size: 11px; font-weight: 600; color: var(--muted);
}

.gallery__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.gallery__now { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gallery__now b { font-family: var(--display); font-size: 18px; font-weight: 700; }
.gallery__now a { font-size: 12px; color: var(--muted); text-decoration: none; }
.gallery__now a span { color: var(--ink); font-weight: 600; }
.gallery__ctrl { display: flex; align-items: center; gap: 10px; flex: none; }
.gallery__count { min-width: 46px; text-align: right; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.round-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer;
  transition: transform 0.12s var(--ease-out), border-color 0.16s ease;
}
.round-btn svg { width: 18px; height: 18px; }
.round-btn:active { transform: scale(0.94); }
.round-btn[disabled] { opacity: 0.4; cursor: default; }
@media (hover: hover) and (pointer: fine) { .round-btn:not([disabled]):hover { border-color: var(--ink); } }

.gallery__side { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.gallery__side-label { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.gallery__listwrap { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.gallery__list {
  list-style: none; margin: 0; padding: 2px; display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.35s var(--ease-out);
}
.gallery:not(.is-pinned) .gallery__listwrap { max-height: 560px; overflow-y: auto; overscroll-behavior: contain; }
.occ {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 10px; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  color: var(--ink); font: inherit; cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.occ[aria-current="true"] { border-color: var(--brand-coral); box-shadow: inset 0 0 0 1px var(--brand-coral); }
@media (hover: hover) and (pointer: fine) { .occ:not([aria-current="true"]):hover { border-color: var(--input); } }
.occ__thumb {
  flex: none; width: 64px; height: 62px; padding: 8px; border-radius: 4px;
  display: flex; flex-direction: column; justify-content: space-between;
  font-family: var(--display); font-size: 9.5px; font-weight: 600; line-height: 1.15;
  background: #F3F5F8; color: #102154; overflow: hidden; overflow-wrap: anywhere;
}
.occ__thumb::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-coral); }
.occ__thumb--navy { background: #102154; color: #FFFFFF; }
.occ__thumb--coral { background: #FFF0ED; }
.occ__thumb--cream { background: #F4EFE4; }
.occ__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.occ__text b { font-family: var(--display); font-size: 15px; font-weight: 700; line-height: 1.3; }
.occ__text span { font-size: 12px; line-height: 1.4; color: var(--muted); }
.occ__state { font-size: 11px; font-weight: 600; color: var(--accent); display: none; }
.occ[aria-current="true"] .occ__state { display: block; }
.gallery__progress { height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.gallery__progress i { display: block; height: 100%; width: 100%; background: var(--brand-coral); transform-origin: left; transform: scaleX(0.1); transition: transform 0.3s var(--ease-out); }

@media (max-width: 1000px) {
  .gallery__body { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .gallery__side { order: -1; }
  .gallery__side-label, .gallery__progress { display: none; }
  .gallery:not(.is-pinned) .gallery__listwrap { max-height: none; overflow: visible; }
  /* okazje jako przewijany w bok pasek */
  .gallery__list {
    flex-direction: row; gap: 8px; overflow-x: auto; padding: 2px 2px 8px;
    scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain;
    margin: 0 calc(-1 * var(--pad)); padding-left: var(--pad); padding-right: var(--pad);
    scroll-padding: 0 var(--pad);
  }
  .gallery__list::-webkit-scrollbar { display: none; }
  .gallery__list li { flex: none; scroll-snap-align: start; }
  .occ { width: auto; padding: 0 16px; min-height: 44px; border-radius: 999px; }
  .occ__thumb, .occ__text span, .occ[aria-current="true"] .occ__state { display: none; }
  .occ__text b { font-size: 14px; white-space: nowrap; }
  .gallery__paper { min-height: 0; aspect-ratio: 4 / 3.4; }
  .gallery__all { display: none; }
}
@media (max-width: 560px) {
  .gallery__paper { aspect-ratio: 4 / 4.6; }
  .pcard__foot { display: none; }
  .gslide { padding: 14px; }
}

/* ---------- SAMPLE BOX: formularz + koperta na żywo ---------- */
.order { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(40px, 6.5vw, 96px); align-items: start; }
.order__intro { display: flex; flex-direction: column; gap: 20px; }
.envelope-wrap { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.envelope-wrap figcaption, .envelope-caption { margin: 0; font-size: 12px; color: var(--muted); }
/* koperta (strona główna i blok Sample Box na podstronach) */
.envelope {
  position: relative; width: 100%; aspect-ratio: 2 / 1; min-height: 210px;
  padding: clamp(18px, 2vw, 24px);
  background: var(--envelope); color: var(--on-paper);
  border: 1px solid var(--envelope-edge); border-radius: 12px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  overflow: hidden;
}
.envelope__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.envelope__sender { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.envelope__sender b { font-family: var(--display); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; }
.envelope__sender img { height: 18px; width: auto; }
.envelope__stamp {
  width: 52px; height: 62px; border: 1px dashed color-mix(in srgb, var(--on-paper) 30%, transparent); border-radius: 2px;
  display: flex; align-items: center; justify-content: center; font-size: 10px; color: color-mix(in srgb, var(--on-paper) 55%, transparent);
}
.envelope__address {
  align-self: flex-end; width: min(62%, 300px);
  display: flex; flex-direction: column; gap: 2px;
}
.envelope__line {
  font-family: var(--display); font-size: 16px; font-weight: 700; line-height: 24px;
  color: color-mix(in srgb, var(--on-paper) 45%, var(--envelope));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color 0.2s ease;
}
.envelope__line.is-filled { color: var(--on-paper); }
.box-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.box-list li {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  font-size: 16px; font-weight: 500; line-height: 1.5;
}
.box-list i { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--panel); display: flex; align-items: center; justify-content: center; }
.box-list svg { width: 16px; height: 16px; }
.box-note { margin: 0; font-size: 13px; color: var(--muted); }

.form {
  display: flex; flex-direction: column; gap: 24px; padding: clamp(20px, 2.6vw, 36px);
  background: var(--surface); border-radius: 24px; border: 1px solid var(--line);
}
.form__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; }
.form__head h3 { margin: 0; font-family: var(--display); font-size: 23px; font-weight: 700; }
.form__head span { font-size: 12px; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 9px; font-size: 13px; font-weight: 500; }
.field--wide { grid-column: 1 / -1; }
.field-row { grid-column: 1 / -1; display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; }
.field input {
  height: 48px; padding: 0 14px; min-width: 0;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface); color: var(--ink);
  font-family: inherit; font-size: 16px;   /* 16 px: iPhone nie powiększa strony przy wpisywaniu */
  transition: border-color 0.16s ease;
}
.field input:focus { border-color: var(--ink); outline: none; }
.field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: var(--error); }
@media (max-width: 560px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
}
.volume { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.volume legend { padding: 0; margin-bottom: 12px; font-size: 13px; font-weight: 500; }
.volume__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-radio { position: relative; cursor: pointer; }
.chip-radio input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip-radio span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 6px; font-size: 13px;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.chip-radio span::before {
  content: ''; width: 10px; height: 10px; border-radius: 50%;
  border: 1px solid var(--muted); box-sizing: border-box; transition: border-width 0.16s ease, border-color 0.16s ease;
}
.chip-radio input:checked + span { border-color: var(--ink); background: var(--panel); }
.chip-radio input:checked + span::before { border: 3px solid var(--ink); }
.chip-radio input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip-radio input[aria-invalid="true"] + span { border-color: var(--error); }
@media (hover: hover) and (pointer: fine) { .chip-radio:hover input:not(:checked) + span { border-color: var(--input); } }
/* pułapka na boty - pole poza ekranem */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.form__submit .small, .form .small { margin: 0; font-size: 12px; line-height: 1.6; }
.form__status { margin: 0; font-size: 15px; line-height: 1.5; }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--error); }
.form__status.is-ok { color: var(--accent); font-weight: 600; }
/* checkboxy (wypełnienie rośnie, znaczek się rysuje) */
.checks { display: flex; flex-direction: column; gap: 6px; }
.check { position: relative; display: flex; align-items: flex-start; font-size: 12px; line-height: 1.65; color: var(--muted); cursor: pointer; }
.check > span:last-child { padding-top: 11px; }
.check a { color: var(--ink); }
.check input { position: absolute; top: 0; left: -13px; width: 44px; height: 44px; margin: 0; opacity: 0; cursor: pointer; }
.check__box {
  flex: none; position: relative; width: 18px; height: 18px; margin: 12px 12px 12px 0; pointer-events: none;
  border: 1px solid var(--muted); border-radius: 3px; background: var(--surface); color: var(--surface);
  transition: border-color 0.16s var(--ease-out), transform 0.26s var(--ease-out);
}
.check__fill {
  position: absolute; inset: -1px; border-radius: inherit; background: var(--ink);
  opacity: 0; transform: scale(0.6);
  transition: opacity 0.16s var(--ease-out), transform 0.26s var(--ease-out);
}
.check__box svg { position: absolute; inset: -1px; width: 18px; height: 18px; overflow: visible; }
.check__box path { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset 0.26s var(--ease-out), opacity 0.16s var(--ease-out); }
.check input:checked + .check__box { border-color: var(--ink); }
.check input:checked + .check__box .check__fill { opacity: 1; transform: none; }
.check input:checked + .check__box path { stroke-dashoffset: 0; opacity: 1; }
.check:active .check__box { transform: scale(0.95); }
.check input:focus-visible + .check__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.check input[aria-invalid="true"] + .check__box { border-color: var(--error); }
@media (max-width: 900px) { .order { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .envelope { aspect-ratio: auto; min-height: 200px; }
  .envelope__address { width: 100%; align-self: stretch; padding-left: 20%; }
  .envelope__line { font-size: 15px; line-height: 22px; }
}

/* ---------- FAQ ----------
   Zawsze otwarte jest dokładnie jedno pytanie (main.js). */
.faq-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 40px clamp(40px, 7vw, 100px); align-items: start; }
.faq-grid__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
@media (min-width: 901px) { .faq-grid__intro { position: sticky; top: calc(var(--header-h) + 32px); } }
@media (max-width: 900px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }
.faq { display: flex; flex-direction: column; overflow-anchor: none; }
#faq { overflow-anchor: none; }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 24px 40px 24px 0;
  font-family: var(--display); font-size: clamp(17px, 1.5vw, 19px); font-weight: 700; line-height: 1.35; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
/* plus, który w otwartym pytaniu zamienia się w minus */
.faq summary::before, .faq summary::after {
  content: ''; position: absolute; right: 4px; top: 50%; width: 14px; height: 1.5px; margin-top: -0.75px;
  background: currentColor; transition: transform 0.2s var(--ease-out);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary { cursor: default; }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p, .faq details > div { margin: -8px 0 26px; max-width: 720px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.faq details a { color: var(--ink); }

/* ---------- stopka ---------- */
.site-footer {
  --ink: var(--footer-ink);
  --muted: rgba(255, 255, 255, 0.72);
  --accent: #FF978A;
  background: var(--footer-bg); color: var(--ink);
  padding: clamp(56px, 6vw, 80px) 0 32px;
}
.site-footer a { color: var(--ink); }
.site-footer__inner { display: flex; flex-direction: column; gap: 48px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 32px clamp(40px, 7vw, 100px); }
.footer-top__title { display: flex; flex-direction: column; gap: 16px; }
.footer-top__title .label { color: var(--ink); }
.footer-top__title .label::before { display: none; }
.footer-top__title h2 { margin: 0; font-family: var(--display); font-size: clamp(26px, 2.4vw, 34px); font-weight: 700; line-height: 1.25; letter-spacing: -0.03em; }
.footer-top__contact { display: flex; flex-direction: column; gap: 22px; }
.footer-top__contact p { margin: 0; font-size: 17px; line-height: 1.65; }
.footer-mail {
  display: inline-flex; align-items: center; gap: 20px; align-self: flex-start;
  font-family: var(--display); font-weight: 500; font-size: clamp(26px, 2.9vw, 41px); line-height: 1.15; letter-spacing: -0.035em;
  color: var(--accent) !important; text-decoration: none; overflow-wrap: anywhere;
}
.footer-mail svg { width: 28px; height: 28px; flex: none; transition: transform 0.2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .footer-mail:hover svg { transform: translate(3px, -3px); } }
.footer-cols {
  display: grid; grid-template-columns: minmax(0, 380px) repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 5vw, 80px);
  border-top: 1px solid var(--footer-line); padding-top: 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 20px; }
.footer-brand img { height: 34px; width: auto; align-self: flex-start; }
.footer-brand p { margin: 0; font-size: 14px; line-height: 1.7; max-width: 310px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.footer-col__title { margin: 0 0 8px; font-size: 12px; font-weight: 600; opacity: 0.65; }
.footer-col a { padding: 6px 0; font-size: 14px; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; } }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 12px; opacity: 0.7; border-top: 1px solid var(--footer-line); padding-top: 24px;
}
@media (max-width: 1000px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- sekcje, do których prowadzi menu (Sample Box, Pytania, hero) ----------
   Na komputerze mają się zmieścić na jednym ekranie pod menu: odstępy zależą od
   wysokości okna, a gdy to nie wystarcza, main.js (initFit) lekko je pomniejsza. */
@media (min-width: 1001px) {
  .section--fit { padding: clamp(28px, 5vh, 72px) 0; }
  .hero { padding: clamp(24px, 6vh, 80px) 0 clamp(28px, 6vh, 88px); }
  .scope__list { padding-top: clamp(16px, 3vh, 28px); padding-bottom: clamp(16px, 3vh, 28px); }
  #wniosek .order { align-items: center; }
  #wniosek .order__intro { gap: clamp(12px, 1.8vh, 18px); }
  #wniosek .envelope { aspect-ratio: auto; min-height: 0; height: auto; gap: 12px; }
  #wniosek .box-list { gap: 8px; }
  #wniosek .box-list li { padding: 8px 14px; font-size: 15px; line-height: 1.4; }
  #wniosek .box-list i { width: 28px; height: 28px; }
  #wniosek .form { gap: clamp(14px, 2vh, 20px); padding: clamp(20px, 3vh, 32px); }
  #wniosek .form-grid { gap: clamp(10px, 1.6vh, 16px) 16px; }
  #wniosek .field { gap: 6px; }
  #wniosek .field input { height: 44px; }
  #wniosek .field-row { gap: 16px; }
  #wniosek .volume legend { margin-bottom: 8px; }
  #wniosek .chip-radio span { min-height: 36px; }
  #wniosek .checks { gap: 0; }
  #wniosek .check > span:last-child { padding-top: 10px; }
  #wniosek .check__box { margin: 10px 12px 10px 0; }
  #wniosek .btn { min-height: 50px; }
  #faq .faq summary { padding: clamp(14px, 2.2vh, 22px) 40px clamp(14px, 2.2vh, 22px) 0; }
  #faq .faq details p { margin-bottom: clamp(16px, 2.4vh, 24px); }
}

/* ==========================================================================
   PODSTRONY
   ========================================================================== */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; } }
.more { margin: 0; display: flex; justify-content: flex-end; }
.more--left { justify-content: flex-start; }
.more__link { display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 15px; font-weight: 600; text-decoration: none; }
.more__link svg { transition: transform 0.2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .more__link:hover svg { transform: translateX(3px); } }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .cols-2 { grid-template-columns: minmax(0, 1fr); } }
.prose { display: flex; flex-direction: column; gap: 12px; }
.prose p, .prose li { margin: 0; font-size: 17px; line-height: 1.7; color: var(--muted); }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.content.text { font-size: 17px; }

/* list od założycieli / przykładowa kartka pisana długopisem */
.founder-letter-wrap { display: flex; justify-content: center; }
.founder-letter {
  width: min(680px, 100%); background: var(--paper); color: var(--pen);
  padding: clamp(26px, 4vw, 44px) clamp(24px, 4vw, 52px) clamp(22px, 3vw, 36px);
  border: 1px solid var(--paper-edge); border-radius: 4px;
  box-shadow: var(--shadow);
  font-family: var(--hand); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.35;
}
.founder-letter p { margin: 0 0 12px; }
.founder-letter__sign { text-align: right; font-size: 1.25em; }
.founder-signs { display: flex; flex-wrap: wrap; gap: 20px 48px; margin-top: 20px; align-items: flex-end; }
.founder-sign { display: flex; align-items: center; gap: 12px; }
.founder-sign__photo {
  flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--panel);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font); font-size: 11px; color: var(--muted);
}
.founder-sign b { display: block; font-weight: 600; font-size: 1.2em; line-height: 1; }
.founder-sign small { display: block; margin-top: 4px; font-family: var(--font); font-size: 12px; color: #627087; }

/* strona okazji */
.topic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(40px, 5.5vw, 80px); align-items: center; }
.topic__letter { display: flex; justify-content: center; padding: clamp(24px, 4vw, 48px); background: var(--panel); border-radius: 16px; }
.topic__text { display: flex; flex-direction: column; gap: 32px; }
.topic__text h2 { margin: 0 0 12px; font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
@media (max-width: 900px) { .topic { grid-template-columns: minmax(0, 1fr); } }
.how { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: how; }
.how li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.how li::before { counter-increment: how; content: '0' counter(how); font-family: var(--display); color: var(--ink); font-weight: 700; font-size: 15px; line-height: 1.75; }

/* kafelki zastosowań (podstrony) */
.related { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.related--hub { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.related a {
  height: 100%; display: flex; flex-direction: column; gap: 14px; padding: 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  color: var(--ink); text-decoration: none; transition: border-color 0.2s ease;
}
@media (hover: hover) and (pointer: fine) { .related a:hover { border-color: var(--input); color: var(--ink); } .related a:hover .related__go { color: var(--accent); } }
.related h2, .related h3 { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 700; line-height: 1.3; }
.related .quote { font-family: var(--hand); font-size: 22px; line-height: 1.25; color: var(--hand-ink); }
.related__go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }

/* badania */
.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.proof--single { grid-template-columns: minmax(0, 1fr); }
.proof--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) { .proof { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.proof__item { display: flex; flex-direction: column; gap: 14px; padding: 26px; }
.proof__item h3 { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 700; line-height: 1.3; }
.proof__value {
  margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(40px, 4vw, 56px); line-height: 1; letter-spacing: -0.04em;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.proof__value span { font-size: 0.42em; letter-spacing: -0.01em; color: var(--ink); }
.proof__source { margin-top: auto; font-size: 13px; color: var(--muted); text-underline-offset: 3px; }
.proof-bars { display: flex; flex-direction: column; gap: 10px; }
.proof-bar { display: grid; grid-template-columns: 1fr 48px; gap: 4px 10px; align-items: center; font-size: 13px; color: var(--muted); }
.proof-bar__label { grid-column: 1 / -1; }
.proof-bar__track { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.proof-bar__track i { display: block; height: 100%; border-radius: 5px; background: var(--input); transform-origin: left center; }
.proof-bar.is-accent .proof-bar__track i { background: var(--brand-coral); }
.proof-bar b { font-weight: 600; font-size: 14px; text-align: right; color: var(--ink); }
.proof-bar.is-accent b { color: var(--accent); }
.is-visible .proof-bar__track i { animation: growx 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.is-visible .proof-bar + .proof-bar .proof-bar__track i { animation-delay: 0.15s; }
.footnote { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

/* wykresy Bklit UI - kolory z kolorów strony, więc same zmieniają się w trybie ciemnym */
:root {
  --chart-1: var(--brand-coral);
  --chart-2: var(--input);
  --chart-line-primary: var(--chart-1);
  --chart-line-secondary: var(--chart-2);
  --chart-label: var(--ink);
  --chart-grid: var(--line);
  --chart-foreground: var(--ink);
  --chart-foreground-muted: var(--muted);
  --chart-background: var(--surface);
  --chart-crosshair: var(--ink);
  --chart-tooltip-background: var(--surface);
  --chart-indicator-color: var(--ink);
  --chart-indicator-secondary-color: var(--line);
}
.lm-chart { position: relative; height: 76px; --foreground: var(--ink); }
.charts-loading .lm-chart:not(.is-mounted) > * { visibility: hidden; }
.lm-chart__box { height: 100%; }
.lm-chart__label { font-family: var(--font); font-size: 13px; }

/* blok Sample Box (koniec podstron) */
.cta-box { background-color: var(--panel); }
.cta-box__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(40px, 5.5vw, 80px); align-items: center; }
.cta-box__text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.cta-box__text .text { max-width: 540px; }
.cta-box__visual { display: flex; justify-content: center; }
.cta-box .envelope { max-width: 500px; }
@media (max-width: 900px) { .cta-box__grid { grid-template-columns: minmax(0, 1fr); } }

/* strony tekstowe (regulamin, polityka, RODO, 404) */
.page { padding: clamp(56px, 8vw, 112px) var(--pad); }
.page__inner { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.page h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.1; letter-spacing: -0.04em; }
.page h2 { margin: 20px 0 0; font-family: var(--display); font-size: 22px; font-weight: 700; }
.page p, .page li { margin: 0; font-size: 16px; line-height: 1.7; color: var(--muted); }
.page ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.page .lead { font-size: 19px; }
.todo { background: var(--accent-soft); color: var(--ink); padding: 2px 6px; border-radius: 4px; }

/* ---------- animacje ---------- */
@keyframes growx { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
[data-theme="dark"] .occ__thumb--navy { box-shadow: inset 0 0 0 1px #33427A; }
