/* Strona aplikacji – jeden plik CSS, bez kompilacji. Kolory jako zmienne: jasny, ciemny, systemowy. */

/* ---------- czcionki (na własnym serwerze) ---------- */
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-700-normal.woff2) format('woff2'); }

/* ---------- kolory ---------- */
:root {
  --bg: #F4F5F7; --surface: #FFFFFF; --surface-alt: #ECEEF2;
  --outline: #E1E4EA; --outline-strong: #C5CBD4;
  --text: #0D1421; --text-muted: #535D6D; --text-subtle: #667080;
  --primary: #1747D6; --on-primary: #FFFFFF; --primary-container: #DDE6FF; --on-primary-container: #0A2A85; --primary-soft: #EEF2FF;
  --hero-bg: #1747D6; --hero-fg: #FFFFFF; --hero-muted: #D3DCFA;
  --warn-container: #FFF2D6; --on-warn-container: #6B4000; --warn-accent: #9A5200;
  --hero-grad: linear-gradient(180deg, #EAF0FF 0%, #F4F5F7 100%);
  --play-bg: #0D1421; --play-fg: #FFFFFF; --play-border: #0D1421;
  --bezel: #0D1421; --scrim: rgba(8, 12, 20, 0.42);
  --seg-shadow: 0 1px 3px rgba(13, 20, 33, 0.14);
  --shadow: 0 1px 2px rgba(13, 20, 33, 0.05), 0 1px 6px rgba(13, 20, 33, 0.05);
  --shadow-hi: 0 24px 60px rgba(13, 20, 33, 0.18), 0 6px 16px rgba(13, 20, 33, 0.08);
  --show-light: block; --show-dark: none;
  color-scheme: light;

  --max: 1200px; --pad: 48px;
  --font: 'IBM Plex Sans', Roboto, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}
/* Ciemny motyw – ten sam zestaw dwa razy: wybrany ręcznie i systemowy. */
:root[data-scheme="dark"] {
  --bg: #0A0E15; --surface: #121823; --surface-alt: #1A2130;
  --outline: #222B3A; --outline-strong: #344155;
  --text: #E8ECF3; --text-muted: #A4AEBE; --text-subtle: #8F99AA;
  --primary: #8EAEFF; --on-primary: #0A1A4A; --primary-container: #1E3474; --on-primary-container: #DCE5FF; --primary-soft: #16213D;
  --hero-bg: #1E3474; --hero-fg: #EEF2FF; --hero-muted: #B9C7EE;
  --warn-container: #33250A; --on-warn-container: #FFD995; --warn-accent: #FFBF5E;
  --hero-grad: linear-gradient(180deg, #111A30 0%, #0A0E15 100%);
  --play-bg: #000000; --play-fg: #FFFFFF; --play-border: #5A6476;
  --bezel: #2A3446; --scrim: rgba(0, 0, 0, 0.6);
  --seg-shadow: none; --shadow: none; --shadow-hi: 0 24px 60px rgba(0, 0, 0, 0.55);
  --show-light: none; --show-dark: block;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-scheme="system"] {
    --bg: #0A0E15; --surface: #121823; --surface-alt: #1A2130;
    --outline: #222B3A; --outline-strong: #344155;
    --text: #E8ECF3; --text-muted: #A4AEBE; --text-subtle: #8F99AA;
    --primary: #8EAEFF; --on-primary: #0A1A4A; --primary-container: #1E3474; --on-primary-container: #DCE5FF; --primary-soft: #16213D;
    --hero-bg: #1E3474; --hero-fg: #EEF2FF; --hero-muted: #B9C7EE;
    --warn-container: #33250A; --on-warn-container: #FFD995; --warn-accent: #FFBF5E;
    --hero-grad: linear-gradient(180deg, #111A30 0%, #0A0E15 100%);
    --play-bg: #000000; --play-fg: #FFFFFF; --play-border: #5A6476;
    --bezel: #2A3446; --scrim: rgba(0, 0, 0, 0.6);
    --seg-shadow: none; --shadow: none; --shadow-hi: 0 24px 60px rgba(0, 0, 0, 0.55);
    --show-light: none; --show-dark: block;
    color-scheme: dark;
  }
}

/* ---------- podstawy ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; }
a { color: var(--primary); }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.only-light { display: var(--show-light) !important; }
.only-dark { display: var(--show-dark) !important; }
.mono { font-family: var(--mono); }
.muted { color: var(--text-muted); }
.small { font-size: 13px; line-height: 19px; color: var(--text-subtle); }

.wrap { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: calc(880px + 2 * var(--pad)); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--primary); color: var(--on-primary); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.eyebrow { font-family: var(--mono); font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0.12em; color: var(--primary); }
.eyebrow--muted { color: var(--text-muted); }
.overline { margin: 0; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.1em; color: var(--text-muted); }
.lead { font-size: 19px; line-height: 30px; color: var(--text-muted); max-width: 680px; }

/* przyciski */
.btn { height: 44px; padding: 0 20px; border-radius: 22px; border: 1px solid transparent; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--outline { border-color: var(--outline-strong); background: transparent; color: var(--text); }
.btn--lg { height: 52px; padding: 0 24px; border-radius: 26px; font-size: 16px; }
.btn--sm { height: 44px; padding: 0 18px; align-self: flex-start; }
.btn--block { display: flex; width: 100%; height: 52px; border-radius: 26px; font-size: 16px; }
.btn.is-disabled { opacity: 0.5; cursor: not-allowed; }
.btn:hover:not(.is-disabled) { filter: brightness(1.06); }
.btn--outline:hover { background: var(--surface-alt); filter: none; }

.link-arrow { min-height: 44px; font-size: 15px; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.link-arrow svg { transition: transform .15s; }
.link-arrow:hover svg { transform: translateX(3px); }

.play { height: 56px; padding: 0 22px 0 18px; border-radius: 14px; border: 1px solid var(--play-border); background: var(--play-bg); color: var(--play-fg); display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.play__text { display: flex; flex-direction: column; line-height: 1.1; }
.play__small { font-size: 11px; font-weight: 500; letter-spacing: 0.06em; }
.play__big { font-size: 19px; font-weight: 600; }
.play--sm { height: 48px; padding: 0 18px 0 14px; }
.play--sm svg { width: 22px; height: 22px; }
.play--sm .play__small { font-size: 10px; }
.play--sm .play__big { font-size: 16px; }

.chip { align-self: flex-start; height: 32px; padding: 0 14px 0 10px; border-radius: 16px; background: var(--primary-container); color: var(--on-primary-container); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.chip__dot { width: 8px; height: 8px; border-radius: 4px; background: var(--primary); }

/* przełącznik segmentowy (motyw, język, filtr) */
.seg { display: flex; gap: 2px; padding: 3px; border-radius: 24px; background: var(--surface-alt); }
.seg > button, .seg > a { border: 0; background: transparent; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; font-weight: 600; }
.seg > [aria-checked="true"], .seg > [aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: var(--seg-shadow); }
.seg--icons > button { width: 40px; height: 38px; border-radius: 19px; }
.seg--labels { gap: 4px; padding: 4px; border-radius: 26px; }
.seg--labels > button, .seg--labels > a { height: 44px; padding: 0 16px; border-radius: 22px; font-size: 14px; }
.seg--labels .mono { font-size: 12px; letter-spacing: 0.06em; }
.seg--filter { align-self: flex-start; }
.seg--filter > button { padding: 0 18px; font-size: 15px; }

/* logo */
.mark { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: var(--primary); color: var(--on-primary); display: flex; align-items: center; justify-content: center; }
.mark svg { width: 24px; height: 24px; }
.mark--small { width: 36px; height: 36px; border-radius: 11px; }
.mark--small svg { width: 22px; height: 22px; }
.mark--large { width: 52px; height: 52px; border-radius: 16px; }
.mark--large svg { width: 31px; height: 31px; }

/* ---------- nagłówek ---------- */
.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--outline); background: var(--surface); }
.site-header__bar { position: relative; z-index: 31; height: 76px; display: flex; align-items: center; gap: 28px; background: var(--surface); }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-size: 18px; line-height: 22px; font-weight: 700; letter-spacing: -0.01em; }
.brand__tag { font-size: 12px; line-height: 16px; color: var(--text-muted); }
.brand--small .brand__name { font-size: 17px; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.site-nav a { height: 40px; padding: 0 14px; border-radius: 20px; color: var(--text); font-size: 15px; font-weight: 500; display: flex; align-items: center; text-decoration: none; }
.site-nav a:hover { background: var(--surface-alt); }
.site-header__spacer { flex: 1; }
.site-header__desk { display: flex; align-items: center; gap: 28px; }
.menu-btn { display: none; width: 48px; height: 48px; margin-right: -6px; border: 0; border-radius: 24px; background: transparent; color: var(--text); align-items: center; justify-content: center; cursor: pointer; }
.menu-btn__close { display: none; }
.menu-btn[aria-expanded="true"] { background: var(--surface-alt); }
.menu-btn[aria-expanded="true"] .menu-btn__open { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__close { display: block; }
.site-menu { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; padding: 8px 20px 20px; border-bottom: 1px solid var(--outline); background: var(--surface); box-shadow: var(--shadow-hi); }
.site-menu nav { display: flex; flex-direction: column; margin-bottom: 20px; }
.site-menu nav a { height: 52px; border-bottom: 1px solid var(--outline); color: var(--text); font-size: 17px; font-weight: 500; display: flex; align-items: center; justify-content: space-between; text-decoration: none; }
.site-menu nav a svg { color: var(--text-subtle); }
.site-menu .overline { margin-bottom: 8px; }
.site-menu .seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px; }
.site-menu .seg > button { padding: 0 4px; }
.seg svg { flex-shrink: 0; }
.site-menu__scrim { position: fixed; inset: 0; z-index: 10; background: var(--scrim); }
body.menu-open { overflow: hidden; }

/* ---------- strona główna ---------- */
.hero { position: relative; z-index: 1; background: var(--hero-grad); overflow-x: clip; }
.hero__grid { padding-top: 48px; padding-bottom: 64px; display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: 48px; align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: 58px; line-height: 66px; letter-spacing: -0.025em; }
.hero .lead { max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.hero__actions--center { justify-content: center; }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks svg { color: var(--primary); }
.hero__phones { position: relative; height: 680px; }
.hero__phones .phone:nth-child(1) { position: absolute; right: 0; top: 0; }
.hero__phones .phone:nth-child(2) { position: absolute; left: 0; top: 56px; }

.phone { flex-shrink: 0; border-radius: 43px; padding: 9px; background: var(--bezel); box-shadow: var(--shadow-hi); }
.phone__screen { overflow: hidden; background: var(--bg); width: 100%; height: 100%; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone--lg { width: 307px; height: 643px; }
.phone--lg .phone__screen { border-radius: 34px; }
.phone--sm { width: 252px; height: 524px; border-radius: 37px; }
.phone--sm .phone__screen { border-radius: 28px; }

.section { padding: 96px 0; }
.section--surface { border-top: 1px solid var(--outline); border-bottom: 1px solid var(--outline); background: var(--surface); }
.section-head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 48px; }
.section-head h2, .news__head h2, .download h2 { font-size: 40px; line-height: 48px; letter-spacing: -0.02em; max-width: 760px; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { padding: 28px; border-radius: 24px; border: 1px solid var(--outline); background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.feature__icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.feature__body { display: flex; flex-direction: column; gap: 6px; }
.feature h3 { margin-top: 4px; font-size: 20px; line-height: 26px; }
.feature p { font-size: 15px; line-height: 23px; color: var(--text-muted); }

.gallery { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.gallery::-webkit-scrollbar { display: none; }
.gallery__track { display: flex; justify-content: space-between; gap: 24px; width: max-content; min-width: 100%; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 16px; scroll-snap-align: start; }
.gallery figcaption { font-size: 15px; line-height: 22px; font-weight: 600; }

.news { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 40px 64px; align-items: start; }
.news__head { display: flex; flex-direction: column; gap: 14px; }
.news__head .link-arrow { margin-top: 6px; align-self: flex-start; }
.news__list { margin: 0; padding: 8px 28px; list-style: none; border-radius: 24px; border: 1px solid var(--outline); background: var(--surface); box-shadow: var(--shadow); }
.news__list li { display: flex; align-items: flex-start; gap: 14px; padding: 18px 0; font-size: 17px; line-height: 25px; }
.news__list li + li { border-top: 1px solid var(--outline); }
.news__check { width: 28px; height: 28px; flex-shrink: 0; margin-top: -1px; border-radius: 14px; background: var(--primary-container); color: var(--on-primary-container); display: flex; align-items: center; justify-content: center; }

.download { padding: 0 0 104px; }
.download__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; }
.download__main, .download__legacy { padding: 48px; border-radius: 32px; display: flex; flex-direction: column; align-items: flex-start; }
.download__main { background: var(--hero-bg); color: var(--hero-fg); gap: 18px; }
.download__main .lead { max-width: 480px; color: var(--hero-muted); }
.download__legacy { border: 1px solid var(--outline); background: var(--surface); gap: 14px; }
.download__legacy h3 { font-size: 24px; line-height: 30px; }
.download__legacy p { font-size: 15px; line-height: 23px; color: var(--text-muted); }
.download__legacy .btn { margin-top: 6px; height: 48px; border-radius: 24px; }

/* ---------- podstrony ---------- */
.page-head { border-bottom: 1px solid var(--outline); background: var(--hero-grad); }
.page-head .wrap { padding-top: 56px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 14px; }
.page-head h1 { font-size: 48px; line-height: 56px; letter-spacing: -0.02em; }
.page-head .lead { max-width: 760px; }
.page-head--center .wrap { align-items: center; text-align: center; padding-top: 96px; padding-bottom: 104px; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.crumbs a { font-weight: 500; text-decoration: none; }
.doc-lang { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 4px; font-size: 14px; color: var(--text-muted); }

.doc { padding: 56px 0 104px; }
.doc__grid { display: grid; grid-template-columns: 260px minmax(0, 760px); gap: 40px 64px; align-items: start; }
.toc { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; padding: 20px; border-radius: 20px; border: 1px solid var(--outline); background: var(--surface); }
.toc .overline { margin-bottom: 8px; }
.toc a, .toc-mobile a { min-height: 34px; padding: 6px 10px; border-radius: 10px; font-size: 14px; line-height: 20px; color: var(--text); text-decoration: none; display: flex; gap: 8px; }
.toc a:hover { background: var(--surface-alt); }
.toc__n { width: 18px; flex-shrink: 0; color: var(--text-subtle); font-variant-numeric: tabular-nums; }
.toc-mobile { display: none; border-radius: 18px; border: 1px solid var(--outline); background: var(--surface); }
.toc-mobile summary { min-height: 52px; padding: 0 18px; display: flex; align-items: center; font-size: 15px; font-weight: 600; cursor: pointer; }
.toc-mobile div { padding: 0 12px 12px; display: flex; flex-direction: column; }
.toc-mobile a { min-height: 40px; align-items: center; font-size: 15px; }
.doc__body { display: flex; flex-direction: column; gap: 36px; }
.summary { padding: 24px; border-radius: 24px; background: var(--primary-soft); display: flex; flex-direction: column; gap: 16px; }
.summary h2 { font-size: 20px; line-height: 26px; }
.summary ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.summary li { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 21px; font-weight: 500; }
.summary__icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: var(--surface); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.doc__section { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 24px; }
.doc__section h2 { font-size: 24px; line-height: 30px; letter-spacing: -0.01em; }
.doc__n { color: var(--text-subtle); font-variant-numeric: tabular-nums; }
.doc__section p, .doc__section ul { font-size: 16px; line-height: 26px; color: var(--text-muted); }
.doc__section ul { margin: 0; padding: 0 0 0 22px; display: flex; flex-direction: column; gap: 6px; }
.doc__section dl { margin: 0; border-radius: 16px; border: 1px solid var(--outline); background: var(--surface); overflow: hidden; }
.doc__section dl div { padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; }
.doc__section dl div + div { border-top: 1px solid var(--outline); }
.doc__section dt { font-size: 15px; line-height: 22px; font-weight: 600; }
.doc__section dd { margin: 0; font-size: 15px; line-height: 22px; color: var(--text-muted); }

/* historia zmian */
.page-changelog .doc { padding-top: 48px; }
.page-changelog .narrow { display: flex; flex-direction: column; gap: 28px; }
.log { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 20px; }
.log__item { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px 32px; }
.log__meta { display: flex; flex-direction: column; gap: 4px 12px; padding-top: 20px; }
.log__v { font-family: var(--mono); font-size: 26px; line-height: 32px; font-weight: 700; letter-spacing: -0.01em; }
.log__date { font-size: 14px; line-height: 20px; color: var(--text-muted); }
.log__card { padding: 24px; border-radius: 24px; border: 1px solid var(--outline); background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; }
.log__card--latest { border-color: var(--outline-strong); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { height: 26px; padding: 0 10px; border-radius: 13px; background: var(--surface-alt); color: var(--text); font-size: 13px; line-height: 26px; font-weight: 600; }
.tag--primary { background: var(--primary); color: var(--on-primary); }
.log__group { display: flex; flex-direction: column; gap: 8px; }
.log__group h3 { font-size: 13px; line-height: 18px; font-weight: 700; letter-spacing: 0.08em; color: var(--text-muted); }
.log__group ul { margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 24px; }

/* wersja 1.X */
.page-legacy .doc { padding-top: 48px; }
.legacy { max-width: calc(1040px + 2 * var(--pad)); display: flex; flex-direction: column; gap: 24px; }
.notice { padding: 20px 24px; border-radius: 20px; background: var(--warn-container); color: var(--on-warn-container); display: flex; align-items: center; gap: 16px 20px; }
.notice__icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 22px; background: var(--surface); color: var(--warn-accent); display: flex; align-items: center; justify-content: center; }
.notice__text { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 22px; }
.notice__text strong { font-size: 17px; line-height: 24px; font-weight: 600; }
.legacy__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.card { padding: 28px; border-radius: 28px; border: 1px solid var(--outline); background: var(--surface); box-shadow: var(--shadow); }
.apk { display: flex; flex-direction: column; gap: 20px; }
.apk__head { display: flex; align-items: center; gap: 14px; }
.apk__head h2 { font-size: 22px; line-height: 28px; }
.apk__head .muted { font-size: 14px; line-height: 20px; }
.apk__meta { margin: 0; display: flex; flex-direction: column; }
.apk__meta div { padding: 12px 0; border-top: 1px solid var(--outline); display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.apk__meta dt { font-size: 14px; line-height: 20px; color: var(--text-muted); }
.apk__meta dd { margin: 0; font-size: 15px; line-height: 22px; font-weight: 500; word-break: break-all; }
.apk__meta dd.mono { font-size: 13px; }
.apk__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.steps { display: flex; flex-direction: column; gap: 16px; }
.steps h2, .compare h2 { font-size: 24px; line-height: 30px; }
.steps ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; position: relative; }
.steps li:not(:last-child)::before { content: ''; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--primary-container); }
.steps__n { width: 36px; height: 36px; border-radius: 18px; background: var(--primary-container); color: var(--on-primary-container); font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps__body { display: flex; flex-direction: column; gap: 4px; padding: 6px 0 20px; }
.steps__body strong { font-size: 17px; line-height: 24px; font-weight: 600; }
.steps__body span { font-size: 15px; line-height: 23px; color: var(--text-muted); }
.compare { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.compare .link-arrow { align-self: flex-start; }
.table-wrap { border-radius: 20px; border: 1px solid var(--outline); background: var(--surface); overflow: hidden; }
.compare table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; text-align: left; }
.compare thead { background: var(--surface-alt); }
.compare thead th { font-size: 13px; line-height: 18px; font-weight: 700; letter-spacing: 0.06em; color: var(--text-muted); }
.compare th, .compare td { padding: 14px 20px; vertical-align: top; }
.compare tbody tr { border-top: 1px solid var(--outline); }
.compare tbody th { width: 180px; font-weight: 600; }
.compare thead td { width: 180px; }

/* ---------- stopka ---------- */
.site-footer { border-top: 1px solid var(--outline); background: var(--surface); }
.site-footer__grid { padding: 56px 0 40px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 14px; }
.site-footer__brand p { max-width: 340px; font-size: 14px; line-height: 21px; color: var(--text-muted); }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; }
.site-footer__col h2 { margin: 0 0 4px; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.1em; color: var(--text-muted); }
.site-footer__col a { min-height: 28px; font-size: 15px; line-height: 22px; color: var(--text); text-decoration: none; display: flex; align-items: center; overflow-wrap: anywhere; }
.site-footer__col a:hover { color: var(--primary); }
.site-footer__bottom { padding: 20px 0 28px; border-top: 1px solid var(--outline); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; line-height: 19px; color: var(--text-subtle); }

/* ---------- tablet ---------- */
@media (max-width: 1140px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 32px; }
  .hero h1 { font-size: 48px; line-height: 56px; }
  .hero__phones { height: 600px; }
  .hero__phones .phone:nth-child(2) { display: none; }
  .hero__phones .phone:nth-child(1) { position: static; margin: 0 auto; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news { grid-template-columns: minmax(0, 1fr); }
  .site-nav { display: none; }
}

/* ---------- telefon ---------- */
@media (max-width: 760px) {
  :root { --pad: 20px; }
  .site-header__bar { height: 64px; }
  .site-header__desk { display: none; }
  .menu-btn { display: flex; }
  .lead { font-size: 16px; line-height: 25px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 36px; padding-bottom: 56px; }
  .hero h1 { font-size: 36px; line-height: 42px; }
  .hero__phones { height: auto; display: flex; justify-content: center; }
  /* na telefonie w hero jest ekran startowy (albo widżet) */
  .hero__phones .phone:nth-child(1) { display: none; }
  .hero__phones .phone:nth-child(2) { display: block; position: static; width: 299px; height: 626px; border-radius: 42px; }
  .hero__phones .phone:nth-child(2) .phone__screen { border-radius: 33px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head h2, .news__head h2, .download h2 { font-size: 28px; line-height: 34px; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .feature { flex-direction: row; padding: 20px; gap: 16px; }
  .feature h3 { font-size: 18px; }
  .gallery { padding-bottom: 8px; }
  .gallery__track { justify-content: flex-start; gap: 16px; }
  .news__list { padding: 4px 20px; }
  .news__list li { font-size: 16px; line-height: 24px; }
  .download { padding-bottom: 64px; }
  .download__grid { grid-template-columns: minmax(0, 1fr); }
  .download__main, .download__legacy { padding: 28px; }
  .page-head .wrap { padding-top: 28px; padding-bottom: 32px; }
  .page-head h1 { font-size: 32px; line-height: 38px; }
  .page-head--center .wrap { padding-top: 64px; padding-bottom: 72px; }
  .doc { padding: 28px 0 64px; }
  .page-changelog .doc, .page-legacy .doc { padding-top: 24px; }
  .doc__grid { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .toc-mobile { display: block; }
  .summary ul { grid-template-columns: minmax(0, 1fr); }
  .log__item { grid-template-columns: minmax(0, 1fr); }
  .log__meta { flex-direction: row; align-items: baseline; padding-top: 0; }
  .notice { flex-direction: column; align-items: flex-start; }
  .legacy__grid { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 22px; }
  .compare th, .compare td { padding: 12px 14px; }
  .compare tbody th, .compare thead td { width: 96px; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; padding: 40px 0 28px; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 761px) { .site-menu, .site-menu__scrim { display: none !important; } }
