/* =========================================================
   Defence System — tokens
   ========================================================= */
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --mist: #f3f4f6;
  --ink: #15171a;
  --ink-2: #5b6068;
  --ink-3: #6b6f75; /* min. 4.5:1 także na tle --mist (WCAG AA) */
  --line: #e2e4e8;

  /* accents taken from Ajax device LEDs */
  --armed: #22c55e;
  --armed-deep: #15803d;
  --alarm: #ef4444;
  --night: #6d8bff;
  --water: #38bdf8;

  /* demo stage */
  --stage: #0b0c0e;
  --stage-2: #16181c;
  --stage-ink: #f3f4f6;
  --stage-ink-2: #9aa1ab;

  /* app (phone) */
  --app-bg: #000;
  --app-card: #262628;
  --app-ink: #ececee;
  --app-ink-2: #a1a1a6;
  --app-mint: #4fd8a0;
  --app-red: #ff5b52;
  --app-yellow: #f2c544;
  --app-line: #3a3a3c;

  --radius-lg: 28px;
  --radius: 18px;
  --radius-sm: 12px;

  --wrap: 1340px; /* jak w katalogu Ajax (decyzja właściciela 2026-10-22) */
  --gutter: clamp(20px, 5vw, 40px);
  --sec: clamp(46px, 6.1vw, 88px); /* odstęp sekcji: między wariantem B i C z audytu odstępów (decyzja właściciela 2026-10-22) */

  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: #c4c8ce transparent; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.5 var(--font);
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--armed-deep);
}
::selection { background: rgba(34,197,94,.22); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 650; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-defs { position: absolute; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 2 * var(--gutter)); }

h1 {
  font-size: clamp(2.75rem, 7.2vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 680;
}
h2 {
  font-size: clamp(2.125rem, 4.8vw, 3.625rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
@media (max-width: 480px) { h2 { font-size: 1.875rem; } } /* telefon: mniej łamań i pojedynczych słów w ostatniej linii */
h3 { font-size: 1.1875rem; line-height: 1.25; letter-spacing: -0.015em; font-weight: 620; }
.lead {
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 34em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.sec-head { margin-bottom: clamp(20px, 3.2vw, 36px); display: grid; gap: 18px; }
.sec-head--center { text-align: center; justify-items: center; }
.sec-head--row { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.sec-head__stack { display: grid; gap: 18px; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px;
  border-radius: 999px; border: 0;
  font-weight: 560; font-size: 1.0625rem; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
  transition: transform .12s ease-out, background-color .2s, color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #2b2f35; }
.btn--ghost { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #e9eaec; }
.btn--ghost-light { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28); background: none; }
.btn--ghost-light:hover { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
.btn--sm { min-height: 36px; padding: 0 16px; font-size: .9375rem; }
.btn--block { width: 100%; }

.link { color: var(--ink); font-weight: 560; text-decoration-thickness: 1.5px; }

/* =========================================================
   Nav — translucent material
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.74);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow .3s;
}
.nav.is-scrolled { box-shadow: 0 1px 0 rgba(0,0,0,.06); }
/* Zalogowany redaktor: pasek WordPressa (stały, 32 px; telefon 46 px; do 600 px przewija się ze stroną) nie zasłania menu */
.admin-bar .nav { top: 32px; }
.admin-bar .shopnav { top: 88px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } .admin-bar .shopnav { top: 102px; } }
@media (max-width: 600px) { .admin-bar .nav { top: 0; } .admin-bar .shopnav { top: 56px; } }
.nav__inner {
  width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto;
  height: 60px; display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand__mark { width: 30px; height: 30px; }
.brand__word { height: 21px; width: auto; } /* większe logo (właściciel 2026-10-24); plik przycięty do napisu */
@media (max-width: 560px) { .brand__mark { width: 26px; height: 26px; } .brand__word { height: 17px; } }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__top {
  position: relative; padding: 8px 12px; border: 0; background: none;
  text-decoration: none; font-size: .875rem; color: var(--ink-2); transition: color .2s;
}
.nav__top:hover, .nav__top[aria-expanded="true"] { color: var(--ink); }
.nav__top[aria-current] { color: var(--ink); }
.nav__top[aria-current]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1.5px; border-radius: 1px; background: var(--ink);
}
.nav__burger { display: none; }

/* Panel „Ochrona” — rozwija się pod paskiem, reszta strony lekko się rozmywa */
.fly {
  position: absolute; left: 0; right: 0; top: 100%;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .32s var(--ease), visibility 0s .32s;
}
.nav.is-open .fly { clip-path: inset(0 0 -1px 0); visibility: visible; transition: clip-path .4s var(--ease), visibility 0s; }
.fly__inner {
  width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto;
  display: grid; grid-template-columns: 1.15fr 1.95fr .9fr; gap: 48px;
  padding: 32px 0 48px;
}
/* „Montaż i usługi” — 13 stron usług (adresy ze starej strony) w dwóch kolumnach */
.fly .fly__col--svc ul { display: block; columns: 2; column-gap: 28px; }
.fly .fly__col--svc li { break-inside: avoid; padding-bottom: 8px; }
.fly .fly__col--svc a { font-size: .875rem; font-weight: 520; line-height: 1.35; }
.fly__col--more ul + .fly__title { margin-top: 26px; }
@media (max-width: 1100px) { .fly__inner { gap: 32px; } }
@media (max-width: 980px) { .fly .fly__col--svc ul { columns: 1; } }
.fly__title { font-size: .75rem; color: var(--ink-3); margin-bottom: 12px; }
.fly ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fly a { text-decoration: none; font-size: .9375rem; font-weight: 560; color: var(--ink); }
.fly a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; }
.fly__col--main a { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.025em; line-height: 1.3; }
.fly__col { opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s var(--ease); }
.nav.is-open .fly__col { opacity: 1; transform: none; transition: opacity .35s .08s, transform .45s .08s var(--ease); }
.nav.is-open .fly__col + .fly__col { transition-delay: .13s; }
.nav.is-open .fly__col + .fly__col + .fly__col { transition-delay: .18s; }

.nav-scrim {
  position: fixed; inset: 0; z-index: 40; pointer-events: none;
  background: rgba(240,241,243,.4);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .3s;
}
.nav-scrim.is-on { opacity: 1; pointer-events: auto; }

/* Menu na telefonie */
.sheet {
  max-height: calc(100dvh - 60px); overflow-y: auto; overscroll-behavior: contain;
  padding: 4px var(--gutter) 32px; border-top: 1px solid var(--line);
}
.sheet__nav { display: grid; }
.sheet__top {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left;
  font-size: 1.5rem; font-weight: 650; text-decoration: none; letter-spacing: -0.025em; color: var(--ink);
}
.sheet__top svg { width: 22px; height: 22px; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.sheet__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.sheet__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.sheet__toggle[aria-expanded="true"] + .sheet__sub { grid-template-rows: 1fr; }
.sheet__sub ul { overflow: hidden; list-style: none; margin: 0; padding: 0; }
.sheet__sub li:first-child { padding-top: 8px; }
.sheet__sub li:last-child { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sheet__sub a { display: block; padding: 9px 0 9px 2px; font-size: 1.0625rem; font-weight: 560; text-decoration: none; color: var(--ink-2); }
.sheet__sub a:hover { color: var(--ink); }
.sheet__more { list-style: none; margin: 20px 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.sheet__more a { font-size: .9375rem; color: var(--ink-2); text-decoration: none; }

@media (max-width: 880px) {
  .nav__links, .nav__cta, .fly { display: none; }
  .nav__burger {
    display: grid; place-content: center; gap: 6px;
    margin-left: auto; width: 44px; height: 44px; border: 0; background: none;
  }
  .nav__burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
  .nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }
}
@media (min-width: 881px) { .sheet { display: none !important; } }

/* Link „więcej ›” */
.more-link {
  display: inline-flex; align-items: center; gap: 2px; width: fit-content;
  font-size: 1.0625rem; font-weight: 560; color: var(--armed-deep); text-decoration: none;
}
.more-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.more-link:hover { text-decoration: underline; text-decoration-thickness: 1.5px; }
.more-link:hover svg { transform: translateX(3px); }
.demo .more-link { color: var(--armed); } /* na ciemnym tle ciemna zieleń była nieczytelna */

/* =========================================================
   Hero
   ========================================================= */
.hero { padding-top: clamp(32px, 5.2vw, 68px); text-align: center; overflow: hidden; }
.hero__text { display: grid; justify-items: center; gap: 24px; }
.hero .lead { max-width: 31em; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.hero__img { margin: clamp(20px, 3.2vw, 36px) auto 0; width: min(1240px, 100% + 80px); padding-inline: 12px; }
.hero__img img { width: 100%; }

.creds {
  list-style: none; padding: 0;
  margin-top: clamp(20px, 3.2vw, 36px); margin-bottom: 0;
  padding-block: 32px clamp(28px, 4.2vw, 52px);
  border-top: 1px solid var(--line);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 28px 24px;
  text-align: center;
} /* równe kolumny, ikona nad tekstem, wszystko wyśrodkowane — równe odstępy w każdym języku (właściciel 2026-10-24) */
.creds a, .creds li:not(:has(> a)) { display: grid; justify-items: center; align-content: start; row-gap: 4px; text-decoration: none; } /* align-content: punkt bez linku (li) rozciągnięty do wysokości rzędu nie rozsuwa tekstu */ /* /certyfikaty/: punkty bez linku — ten sam układ */
.creds a:hover strong { text-decoration: underline; text-decoration-thickness: 1.5px; }
.creds svg { width: 26px; height: 26px; margin-bottom: 6px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.creds strong { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
.creds span { max-width: 16em; font-size: .875rem; color: var(--ink-2); line-height: 1.35; text-wrap: balance; }
@media (max-width: 899px) and (min-width: 561px) { /* tablet: po trzy w rzędzie, niepełny rząd wyśrodkowany */
  .creds { display: flex; flex-wrap: wrap; justify-content: center; }
  .creds > li { flex: 0 0 calc((100% - 48px) / 3); }
}
@media (max-width: 560px) { /* telefon: po dwa w rzędzie, do lewej; ostatni nieparzysty — na całą szerokość */
  .creds { grid-auto-flow: row; grid-template-columns: 1fr 1fr; gap: 22px 16px; text-align: left; }
  .creds a, .creds li:not(:has(> a)) { justify-items: start; }
  .creds svg { margin-bottom: 4px; }
  .creds :is(strong, span) { text-wrap: wrap; }
  .creds li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Logo Ajax | nasze logo nad nagłówkiem (wytyczne Ajax: kreska między logami, ta sama waga obu logo) */
.cobrand { display: flex; align-items: center; gap: 22px; margin-bottom: 4px; text-decoration: none; }
.cobrand img { display: block; width: auto; }
.cobrand__ajax { height: 22px; }
.cobrand__ours { height: 18px; }
.cobrand__sep { width: 1px; height: 30px; background: var(--ink-3); opacity: .5; }
@media (max-width: 560px) { .cobrand { gap: 16px; } .cobrand__ajax { height: 18px; } .cobrand__ours { height: 15px; } .cobrand__sep { height: 24px; } }

@media (prefers-reduced-motion: no-preference) {
  .hero__text > * { animation: rise .9s var(--ease) both; }
  .hero__text > :nth-child(2) { animation-delay: .06s; }
  .hero__text > :nth-child(3) { animation-delay: .12s; }
  .hero__text > :nth-child(4) { animation-delay: .18s; }
  .hero__img img { animation: rise-img 1.3s var(--ease) .2s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes rise-img { from { opacity: 0; transform: translateY(40px) scale(.97); } }

/* =========================================================
   Demo — dark stage
   ========================================================= */
.demo { background: var(--stage); color: var(--stage-ink); padding-block: var(--sec); }
.demo .lead { color: var(--stage-ink-2); }
.demo__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(24px, 3.5vw, 48px); align-items: start;
}
.stage { display: grid; gap: 20px; }

.plan {
  background: var(--stage-2);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 3vw, 32px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
  transition: filter .6s var(--ease);
}
.plan.is-blackout { filter: brightness(.62) saturate(.7); }
.plan svg { width: 100%; height: auto; overflow: visible; }

.room { fill: transparent; transition: fill .5s var(--ease); }
.furn rect { fill: none; stroke: #2b3038; stroke-width: 2; }
.walls rect, .walls path { fill: none; stroke: #59606b; stroke-width: 6; stroke-linecap: square; transition: stroke .5s var(--ease); }
.openings .door-gap { stroke: var(--stage-2); stroke-width: 10; }
.openings .win { stroke: #8ea3c2; stroke-width: 3; stroke-linecap: round; transition: stroke .5s; }
.labels text { fill: #8a919c; font-size: 15px; font-weight: 600; text-anchor: middle; font-family: var(--font); }

.s .dot { fill: #4b525d; stroke: var(--stage-2); stroke-width: 3; transition: fill .35s var(--ease); }
.s .halo { fill: var(--armed); opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity .35s; }
.s .cone { fill: var(--armed); opacity: 0; transition: opacity .4s; }
.s--247 .dot { fill: #e4b84c; }
.s--valve .valve, .s--cam .cam { fill: #e4b84c; stroke: var(--stage-2); stroke-width: 3; transition: fill .3s; }

.plan[data-mode="armed"] .room { fill: rgba(34,197,94,.07); }
.plan[data-mode="night"] .room[data-room="salon"],
.plan[data-mode="night"] .room[data-room="kuchnia"] { fill: rgba(109,139,255,.09); }
.plan[data-mode="armed"] .walls rect, .plan[data-mode="armed"] .walls path { stroke: #3f8f5c; }
.plan[data-mode="night"] .walls rect { stroke: #5a6fc4; }
.plan[data-mode="armed"] .openings .win, .plan[data-mode="night"] .openings .win { stroke: #b6c8e6; }
.plan[data-mode="armed"] .s:not(.s--247) .dot { fill: var(--armed); }
.plan[data-mode="night"] .s[data-group="perimeter"] .dot,
.plan[data-mode="night"] .s[data-group="night"] .dot { fill: var(--night); }
.plan[data-mode="armed"] .s[data-id="m-salon"] .cone { opacity: .12; }
.plan[data-mode="night"] .s[data-id="m-salon"] .cone { opacity: .12; fill: var(--night); }

@media (prefers-reduced-motion: no-preference) {
  .plan[data-mode="armed"] .s:not(.s--247) .halo { animation: breathe 2.6s ease-in-out infinite; }
  .plan[data-mode="night"] .s[data-group="perimeter"] .halo,
  .plan[data-mode="night"] .s[data-group="night"] .halo { animation: breathe 2.6s ease-in-out infinite; fill: var(--night); }
}
@keyframes breathe { 0%, 100% { opacity: 0; transform: scale(.6); } 50% { opacity: .22; transform: scale(1); } }

.room.is-alarm { fill: rgba(239,68,68,.2) !important; }
.room.is-leak  { fill: rgba(56,189,248,.18) !important; }
.room.is-info  { fill: rgba(255,255,255,.06) !important; }
.s.is-alarm .dot { fill: var(--alarm) !important; }
.s.is-alarm .halo { fill: var(--alarm); opacity: .35; animation: ping 1s ease-out infinite !important; }
.s.is-leak .dot { fill: var(--water) !important; }
.s.is-leak .halo { fill: var(--water); opacity: .35; animation: ping 1.2s ease-out infinite !important; }
.s.is-info .halo { fill: #fff; animation: ping .9s ease-out 1 !important; }
.s--valve.is-closed .valve { fill: var(--armed) !important; }
@keyframes ping { from { opacity: .5; transform: scale(.6); } to { opacity: 0; transform: scale(2.2); } }
@media (prefers-reduced-motion: reduce) {
  .s.is-alarm .halo, .s.is-leak .halo, .s.is-info .halo { animation: none !important; opacity: .35; transform: none; }
}

.legend { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .8125rem; color: var(--stage-ink-2); }
.legend li { display: flex; align-items: center; gap: 8px; }
.lg { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.lg--armed { background: var(--armed); }
.lg--off { background: #4b525d; }
.lg--247 { background: #e4b84c; }

.sim { display: grid; gap: 12px; }
.sim__label { font-size: .8125rem; font-weight: 600; color: var(--stage-ink-2); }
.events { display: flex; flex-wrap: wrap; gap: 8px; }
.events button {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 16px 0 12px;
  border: 0; border-radius: 999px;
  background: #1f2227; color: var(--stage-ink);
  font-size: .9375rem; font-weight: 520;
  transition: background-color .2s, transform .12s ease-out;
}
.events button:hover { background: #2a2e35; }
.events button:active { transform: scale(.96); }
.events svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sim__hint { min-height: 2.9em; font-size: .9375rem; line-height: 1.45; color: var(--stage-ink-2); max-width: 46em; }
.reset {
  justify-self: start; border: 0; background: none; padding: 4px 0;
  color: #fff; font-size: .9375rem; font-weight: 560;
  text-decoration: underline; text-underline-offset: 4px;
}

/* ---------- phone ---------- */
.phone {
  position: sticky; top: 84px;
  width: 100%; max-width: 360px; justify-self: center;
  padding: 10px; border-radius: 52px;
  background: #1c1d20;
  box-shadow: inset 0 0 0 1.5px #3a3c41, 0 40px 80px -30px rgba(0,0,0,.8);
}
.phone__screen {
  position: relative; overflow: hidden;
  height: 720px; border-radius: 42px;
  background: var(--app-bg); color: var(--app-ink);
  display: flex; flex-direction: column;
  font-size: 15px;
}
.ios-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 28px 4px; font-size: 15px; font-weight: 600; }
.ios-bar__icons { display: flex; gap: 5px; }
.ios-bar__icons i { width: 16px; height: 10px; border-radius: 3px; background: #fff; opacity: .9; }
.ios-bar__icons i:last-child { width: 24px; border-radius: 4px; background: none; box-shadow: inset 0 0 0 1.5px #fff; position: relative; }
.ios-bar__icons i:last-child::after { content: ""; position: absolute; inset: 3px 9px 3px 3px; background: #fff; border-radius: 1.5px; }

.app-head {
  display: grid; grid-template-columns: 44px 1fr 32px; align-items: center; gap: 10px;
  padding: 10px 18px 12px; border-bottom: 1px solid #1d1d1f;
}
.app-head__ring {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1.5px #48484a; color: var(--app-mint);
}
.app-head__ring svg { width: 30px; height: 30px; }
.app-head__txt strong { display: block; font-size: 17px; font-weight: 600; }
.app-head__state { color: var(--app-mint); font-size: 14px; font-weight: 520; }
.app-head__warn svg { width: 26px; height: 26px; fill: none; stroke: var(--app-red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .18; transition: opacity .3s; }
.app-head__warn.is-on svg { opacity: 1; }
.phone.is-alarm .app-head__state, .phone.is-alarm .big-state span, .phone.is-alarm .app-head__ring, .phone.is-alarm .big-state__ico { color: var(--app-red); }

.view { flex: 1; overflow-y: auto; scrollbar-width: none; }
.view::-webkit-scrollbar { display: none; }
.view--control { display: flex; flex-direction: column; justify-content: space-between; padding: 0 16px 16px; }
.big-state { display: grid; justify-items: center; gap: 2px; padding: 42px 0 24px; }
.big-state__ico { width: 108px; height: 108px; color: var(--app-mint); margin-bottom: 14px; transition: color .3s; }
.big-state strong { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.big-state span { font-size: 19px; font-weight: 520; color: var(--app-mint); }

.arm-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--app-card); border-radius: 30px; overflow: hidden;
}
.arm-grid button {
  border: 0; background: none; color: var(--app-ink);
  min-height: 112px; padding: 16px 20px;
  display: flex; flex-direction: column; justify-content: space-between;
  font-size: 15px; font-weight: 520; text-align: left;
  transition: background-color .15s;
}
.arm-grid button:active { background: #333336; }
.arm-grid button:nth-child(1) { align-items: flex-start; border-right: 1px solid var(--app-line); border-bottom: 1px solid var(--app-line); }
.arm-grid button:nth-child(2) { align-items: flex-end; text-align: right; border-bottom: 1px solid var(--app-line); }
.arm-grid button:nth-child(3) { align-items: flex-start; border-right: 1px solid var(--app-line); }
.arm-grid button:nth-child(4) { align-items: flex-end; text-align: right; }
.arm-grid svg { width: 40px; height: 40px; color: #fff; transition: color .2s; }
.arm-grid button:nth-child(1) svg, .arm-grid button:nth-child(3) svg { align-self: flex-end; }
.arm-grid button:nth-child(2) svg, .arm-grid button:nth-child(4) svg { align-self: flex-start; }
.arm-grid button[aria-pressed="true"] svg { color: var(--app-mint); }

/* filters + feed */
.filters {
  position: sticky; top: 0; z-index: 2;
  display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none;
  padding: 12px 18px 0; background: #121214; border-bottom: 1px solid #1d1d1f;
}
.filters::-webkit-scrollbar { display: none; }
.filters button {
  flex: none; border: 0; background: none; padding: 6px 0 12px;
  font-size: 15px; font-weight: 520; color: var(--app-ink-2);
  box-shadow: inset 0 -2px 0 transparent;
}
.filters button[aria-selected="true"] { color: var(--app-mint); box-shadow: inset 0 -3px 0 var(--app-mint); }
.feed { display: grid; gap: 10px; padding: 0 12px 16px; }
.feed__day { margin: 0 -12px; padding: 9px 12px; text-align: center; font-size: 14px; color: var(--app-ink-2); background: #121214; }
.feed__empty { padding: 28px 8px; text-align: center; color: var(--app-ink-2); font-size: 14px; }
.ev {
  display: grid; grid-template-columns: 1fr 52px; column-gap: 10px; row-gap: 6px; align-items: center;
  padding: 13px 14px; border-radius: 14px; background: var(--app-card);
}
.ev__top { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--app-ink-2); }
.ev__top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ev p { font-size: 15.5px; line-height: 1.32; color: var(--app-ink); }
.ev__thumb { width: 46px; height: 46px; object-fit: contain; justify-self: end; border-radius: 10px; background: #e9e9ec; padding: 4px; }
.ev__user { width: 46px; height: 46px; justify-self: end; border-radius: 50%; background: #1c1c1e; display: grid; place-items: center; }
.ev__user svg { width: 26px; height: 26px; fill: none; stroke: #8e8e93; stroke-width: 1.6; }
.ev__map {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px; background: #1c1c1e; color: var(--app-ink); font-size: 12.5px; font-weight: 520;
}
.ev__map svg { width: 15px; height: 15px; }
.ev p, .ev__thumb, .ev__user { grid-row: 2; }
.ev--red .ev__top { color: var(--app-red); }
.ev--green .ev__top { color: var(--app-mint); }
.ev--yellow .ev__top { color: var(--app-yellow); }
@media (prefers-reduced-motion: no-preference) {
  .feed > .ev:first-of-type { animation: ev-in .45s var(--ease) both; }
}
@keyframes ev-in { from { opacity: 0; transform: translateY(-8px); } }

/* devices & rooms */
.dev-list, .room-list { list-style: none; margin: 0; padding: 12px; display: grid; gap: 8px; }
.dev-list li, .room-list li {
  display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--app-card);
}
.dev-list img { width: 46px; height: 46px; object-fit: contain; border-radius: 10px; background: #e9e9ec; padding: 4px; }
.dev-list strong, .room-list strong { display: block; font-size: 15px; font-weight: 560; }
.dev-list span, .room-list span { font-size: 13px; color: var(--app-ink-2); }
.st { font-style: normal; font-size: 13px; font-weight: 520; }
.st--ok { color: var(--app-mint); }
.st--warn { color: var(--app-yellow); }
.st--bad { color: var(--app-red); }
.room-list__ico { width: 46px; height: 46px; border-radius: 10px; background: #1c1c1e; display: grid; place-items: center; }
.room-list__ico svg { width: 24px; height: 24px; fill: none; stroke: var(--app-ink-2); stroke-width: 1.6; }

.cam-tile { margin: 12px; position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: radial-gradient(120% 90% at 50% 30%, #2e3238, #0e0f11); display: grid; place-items: center; }
.cam-tile img { width: 46%; opacity: .9; }
.cam-tile__name { position: absolute; left: 10px; bottom: 10px; font-size: 13px; font-weight: 560; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.55); }
.view__note { margin: 4px 18px; font-size: 13.5px; color: var(--app-ink-2); line-height: 1.4; }

/* tab bar */
.tabbar {
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 8px 2px 22px; background: #1a1a1c; border-top: 1px solid #2a2a2c;
}
.tabbar button {
  position: relative; border: 0; background: none; padding: 4px 0;
  display: grid; justify-items: center; gap: 4px;
  min-width: 0; font-size: 9.6px; color: var(--app-ink-2); letter-spacing: -0.025em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tabbar svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tabbar button[aria-current] { color: #fff; }
.tabbar__badge {
  position: absolute; top: -2px; left: calc(50% + 6px);
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--app-red); color: #fff; font: 600 11px/18px var(--font); font-style: normal;
}

/* push banner */
.push {
  position: absolute; top: 46px; left: 10px; right: 10px; z-index: 5;
  display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: start;
  padding: 11px 14px; border-radius: 20px;
  background: rgba(58,58,62,.82);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.6);
  cursor: pointer; text-align: left; color: #fff;
  opacity: 0; transform: translateY(-16px) scale(.97);
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.push.is-in { opacity: 1; transform: none; }
.push__app img { display: block; width: 38px; height: 38px; border-radius: 9px; } /* ikona aplikacji Ajax Security System */
.push__top { display: flex; justify-content: space-between; font-size: 12.5px; color: #d1d1d6; }
.push__title { display: block; font-size: 14.5px; font-weight: 600; color: #fff; margin-top: 1px; }
.push__text { display: block; font-size: 14px; color: #e5e5ea; line-height: 1.3; }

@media (max-width: 1000px) {
  .demo__grid { grid-template-columns: 1fr; }
  .phone { position: relative; top: 0; }
  /* phone: plan stays pinned so every tap shows its result */
  .plan { position: sticky; top: 68px; z-index: 3; padding: 12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 18px 30px -10px rgba(0,0,0,.8); }
  .legend { margin-top: 10px; gap: 4px 14px; font-size: .75rem; }
  /* push behaves like a real phone notification on small screens */
  .push { position: fixed; top: 70px; left: 12px; right: 12px; max-width: 420px; margin-inline: auto; z-index: 60; }
}
@media (max-width: 480px) { /* telefon: niższa makieta aplikacji — demo zajmuje mniej miejsca (decyzja właściciela 2026-10-22) */
  .phone { padding: 8px; border-radius: 46px; }
  .phone__screen { height: 600px; border-radius: 38px; }
  .big-state { padding: 20px 0 14px; }
  .big-state__ico { width: 80px; height: 80px; margin-bottom: 8px; }
  .big-state strong { font-size: 26px; }
  .arm-grid button { min-height: 92px; padding: 12px 16px; }
  .arm-grid svg { width: 34px; height: 34px; }
}

/* =========================================================
   Why
   ========================================================= */
/* Zapowiedź strony /dlaczego-ajax/ — ciemna karta obok tekstu „Jeden system” (jeden blok, decyzja właściciela 2026-10-22) */
.wa-teaser__card {
  display: grid; gap: 20px; justify-items: start;
  padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-lg); background: var(--stage); color: var(--stage-ink);
}
.wa-teaser__text { display: grid; gap: 12px; }
.wa-teaser__text h3 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 650; }
.wa-teaser__text .lead { color: var(--stage-ink-2); }
.wa-teaser__facts { justify-self: stretch; }
.wa-teaser__facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wa-teaser__facts a {
  display: grid; gap: 6px; height: 100%; padding: 20px; border-radius: var(--radius);
  background: var(--stage-2); text-decoration: none; transition: background-color .2s, transform .12s ease-out;
}
.wa-teaser__facts a:hover { background: #20242a; }
.wa-teaser__facts a:active { transform: scale(.98); }
.wa-teaser__facts strong { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.02em; color: var(--armed); }
.wa-teaser__facts span { font-size: .9375rem; line-height: 1.4; color: var(--stage-ink-2); }
@media (max-width: 480px) { .wa-teaser__facts a { padding: 14px; } .wa-teaser__facts strong { font-size: 1.0625rem; } } /* telefon: fakty po dwa w rzędzie */

.why { padding-block: var(--sec); }
.why__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.why__text { display: grid; gap: 22px; }
.points { margin: 16px 0 0; display: grid; }
.points div { padding: 18px 0; border-top: 1px solid var(--line); }
.points dt { font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.012em; }
.points dd { margin: 4px 0 0; color: var(--ink-2); }
@media (max-width: 860px) {
  .why__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Categories — horizontal rail of links
   ========================================================= */
.cats { padding-block: var(--sec); background: var(--mist); }
.rail-nav { display: flex; gap: 10px; }
.rail-nav__btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: #e2e4e8; color: var(--ink);
  transition: background-color .2s, opacity .2s;
}
.rail-nav__btn:hover { background: #d6d9de; }
.rail-nav__btn:disabled { opacity: .35; cursor: default; }
.rail-nav__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 700px) { .rail-nav { display: none; } }

.cats__rail {
  list-style: none; margin: 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(268px, 330px);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px max(var(--gutter), (100% - var(--wrap)) / 2) 24px;
  scroll-padding-inline: max(var(--gutter), (100% - var(--wrap)) / 2);
  scrollbar-width: none;
}
.cats__rail::-webkit-scrollbar { display: none; }
.cats__rail li { scroll-snap-align: start; display: grid; }
.cat {
  background: var(--paper); border-radius: var(--radius-lg);
  padding: 24px 24px 26px; display: grid; gap: 8px; align-content: start;
  text-decoration: none; color: inherit;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.cat:hover { box-shadow: 0 18px 40px -22px rgba(0,0,0,.25); }
.cat:active { transform: scale(.985); }
.cat__img { aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 14px; }
.cat__img img { width: 96%; transition: transform .6s var(--ease); }
.cat:hover .cat__img img { transform: scale(1.05); }
/* Zdjęcie kategorii (16:10, assets/img/cat) na całą szerokość karty — to samo w nagłówku kategorii i w „Zobacz też” */
.cat__img--photo { aspect-ratio: 16 / 10; margin: -24px -24px 14px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; background: var(--mist); }
.cat__img--photo img { width: 100%; height: 100%; object-fit: cover; }
.cat p { color: var(--ink-2); font-size: .9375rem; line-height: 1.45; }
.cat__more { margin-top: 10px; display: inline-flex; align-items: center; gap: 2px; font-size: .9375rem; font-weight: 560; color: var(--armed-deep); }
.cat__more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.cat:hover .cat__more svg { transform: translateX(3px); }

/* =========================================================
   Process
   ========================================================= */
.proc { padding-block: var(--sec); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.steps li { padding: 28px 24px 0 0; display: grid; gap: 8px; align-content: start; }
.steps__n {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 600; font-size: .9375rem;
  margin-bottom: 8px; font-variant-numeric: tabular-nums;
}
.steps p { color: var(--ink-2); font-size: .9375rem; line-height: 1.45; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .steps li { grid-template-columns: 34px 1fr; column-gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
  .steps__n { grid-row: span 2; margin: 0; }
}

/* =========================================================
   For whom
   ========================================================= */
.who { padding-bottom: var(--sec); }
.who__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.who__grid li { background: var(--mist); border-radius: var(--radius); padding: 22px; display: grid; grid-template-columns: 30px 1fr; column-gap: 14px; row-gap: 2px; }
.who__grid svg { grid-row: span 2; width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.who__grid strong { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.012em; }
.who__grid span { color: var(--ink-2); font-size: .9375rem; }
@media (max-width: 860px) { .who__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { /* telefon: dalej po dwa w rzędzie, ikona nad tekstem */
  .who__grid { gap: 8px; }
  .who__grid li { grid-template-columns: 1fr; row-gap: 4px; padding: 16px; align-content: start; }
  .who__grid svg { grid-row: auto; margin-bottom: 4px; }
}

/* =========================================================
   Cases
   ========================================================= */
.cases { padding-block: var(--sec); background: var(--mist); }
.cases__grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.case { background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; display: grid; }
.case--big { grid-row: span 2; }
.case__img { background: #eceef1; display: grid; place-items: center; padding: 32px; }
.case--big .case__img { aspect-ratio: 4 / 3; }
.case--big .case__img img { width: 46%; }
.case--example .case__img { aspect-ratio: 16 / 9; }
.case--example .case__img img { height: 100%; width: auto; max-height: 150px; }
.case__body { padding: 22px 24px 26px; display: grid; gap: 8px; align-content: start; }
.case__meta { font-size: .875rem; color: var(--ink-2); }
.case--big h3 { font-size: 1.5rem; letter-spacing: -0.022em; }
.case--example { opacity: .78; }
.case--example .case__meta { color: #b45309; font-weight: 560; }
.tags { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .8125rem; font-weight: 520; padding: 6px 12px; border-radius: 999px; background: var(--mist); }
@media (max-width: 860px) { .cases__grid { grid-template-columns: 1fr; } .case--big { grid-row: auto; } }

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding-block: var(--sec); }
.faq h2 { margin-bottom: clamp(16px, 2.6vw, 28px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font-size: 1.1875rem; font-weight: 560; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: translateY(-3px) rotate(45deg); transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq details p { padding: 0 40px 24px 0; color: var(--ink-2); max-width: 38em; }
/* „Więcej pytań”: pytania od 6. w zamkniętym <details>; po otwarciu przycisk znika */
.faq details.faq__more { border: 0; }
.faq .faq__more > summary {
  display: inline-flex; gap: 12px; min-height: 44px; margin-top: 28px; padding: 0 20px;
  border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); font-size: .9375rem; transition: box-shadow .2s;
}
.faq .faq__more > summary:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.faq .faq__more > summary::after { width: 8px; height: 8px; }
.faq .faq__more[open] > summary { display: none; }
.faq details:has(+ .faq__more) { border-bottom: 1px solid var(--line); }
.faq .faq__more > details:first-of-type { border-top: 0; }
.faq .faq__more > details:last-of-type { border-bottom: 1px solid var(--line); }

/* =========================================================
   Contact
   ========================================================= */
.contact { padding-block: var(--sec); background: var(--mist); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__info { display: grid; gap: 22px; }
.person { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.person__avatar { width: 56px; height: 56px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 600; }
.person strong { display: block; font-size: 1.0625rem; font-weight: 600; }
.person span { color: var(--ink-2); font-size: .9375rem; }
.contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 1.0625rem; }
.contact__list a { font-weight: 560; text-decoration: none; }
.contact__list a:hover { text-decoration: underline; }

.form { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(22px, 3.5vw, 36px); display: grid; gap: 18px; }
.form label, .form legend { display: grid; gap: 8px; font-size: .9375rem; font-weight: 560; }
.form .opt { font-weight: 400; color: var(--ink-3); }
.form input:not([type="radio"]):not([type="checkbox"]), .form textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 0; border-radius: var(--radius-sm); background: var(--mist);
  box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s, background-color .2s;
}
.form textarea { resize: vertical; min-height: 96px; }
.form input:focus, .form textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.form [aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--alarm) !important; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: block; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--mist); font-weight: 520; cursor: pointer; transition: background-color .2s, color .2s; }
.chips input:checked + span { background: var(--ink); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid #2563eb; outline-offset: 2px; }
.consent { grid-template-columns: 22px 1fr !important; align-items: start; font-weight: 400 !important; color: var(--ink-2); font-size: .875rem !important; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); }
.form__legal { margin: -8px 0 0; font-size: .8125rem; line-height: 1.45; color: var(--ink-3); }
.form__legal a { color: var(--ink-2); }
.form__msg { font-size: .9375rem; color: var(--armed-deep); font-weight: 560; min-height: 1.4em; }
.form__msg.is-error { color: #b91c1c; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }

/* =========================================================
   Category pages
   ========================================================= */
.crumbs { display: flex; gap: 8px; font-size: .875rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.cat-hero { padding-block: clamp(24px, 4.2vw, 56px) clamp(24px, 3.7vw, 48px); }
.cat-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.cat-hero__text { display: grid; gap: 22px; container-type: inline-size; }
.cat-hero__text h1.is-long { font-size: min(clamp(2.75rem, 7.2vw, 5.5rem), 11.4cqi); } /* długie słowo mieści się w kolumnie */
.cat-hero__text .hero__actions { justify-content: flex-start; }
.cat-hero__img { margin: 0; background: var(--mist); border-radius: var(--radius-lg); aspect-ratio: 1; display: grid; place-items: center; }
.cat-hero__img img { width: 66%; }
@media (prefers-reduced-motion: no-preference) {
  .cat-hero__text > * { animation: rise .8s var(--ease) both; }
  .cat-hero__text > :nth-child(2) { animation-delay: .05s; }
  .cat-hero__text > :nth-child(3) { animation-delay: .1s; }
  .cat-hero__img img { animation: rise-img 1.1s var(--ease) .15s both; }
}
@media (max-width: 860px) {
  .cat-hero__grid { grid-template-columns: 1fr; }
  .cat-hero__img { order: -1; aspect-ratio: 4 / 3; }
  .cat-hero__img img { width: auto; height: 78%; }
}
/* zdjęcie kategorii (16:10) — to samo co na stronie głównej; ramka zawsze tej samej wielkości */
.cat-hero__img--photo { aspect-ratio: 16 / 10; overflow: hidden; }
.cat-hero__img--photo img { width: 100%; height: 100%; object-fit: cover; }

.how { border-block: 1px solid var(--line); }
.how__list { list-style: none; padding: 0; margin-block: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.how__list li { padding: 32px 28px 34px 0; display: grid; gap: 4px; align-content: start; }
.how__list li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.how__list strong { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.015em; }
.how__list span { color: var(--ink-2); }
@media (max-width: 760px) {
  .how__list { grid-template-columns: 1fr; }
  .how__list li, .how__list li + li { padding: 22px 0; border-left: 0; }
  .how__list li + li { border-top: 1px solid var(--line); }
}

.prods { padding-block: var(--sec); }
.prods__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 40px 20px; }
.prod { display: grid; gap: 6px; align-content: start; }
.prod__img { aspect-ratio: 1; background: var(--mist); border-radius: var(--radius); display: grid; place-items: center; margin-bottom: 12px; overflow: hidden; }
.prod__img img { width: 62%; transition: transform .6s var(--ease); }
.prod:hover .prod__img img { transform: scale(1.05); }
.prod p { color: var(--ink-2); font-size: .9375rem; line-height: 1.45; }
@media (max-width: 600px) {
  .prods__grid { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .prod h3 { font-size: 1rem; }
  .prod p { font-size: .8125rem; }
  .prod__img { margin-bottom: 8px; border-radius: 14px; }
}

.variants { padding-bottom: var(--sec); }
.variants__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.variant { background: var(--mist); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); display: grid; gap: 8px; }
.variant h3 { font-size: 1.375rem; letter-spacing: -0.02em; }
.variant p { color: var(--ink-2); }
.variants__note { margin-top: 20px; color: var(--ink-2); }
@media (max-width: 700px) { .variants__grid { grid-template-columns: 1fr; } }

.band { background: var(--stage); color: #fff; padding-block: clamp(36px, 5.2vw, 68px); }
.band__inner { display: grid; justify-items: center; text-align: center; gap: 28px; }

.more { padding-block: clamp(32px, 4.2vw, 56px); }
.more__title { font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 24px; }
.more__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.more__list a {
  display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px;
  border-radius: var(--radius); background: var(--mist); text-decoration: none; font-weight: 560;
  transition: background-color .2s;
}
.more__list a:hover { background: #e8eaed; }
.more__list img { width: 52px; height: 52px; object-fit: contain; }

/* =========================================================
   Footer — mapa strony
   ========================================================= */
.foot { padding: 20px 0 40px; font-size: .8125rem; color: var(--ink-2); background: var(--mist); border-top: 1px solid var(--line); }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

.trail { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.trail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.trail li { display: flex; align-items: center; }
.trail li + li::before {
  content: ""; width: 7px; height: 7px; margin: 0 10px 0 8px;
  border: solid var(--ink-3); border-width: 1.5px 1.5px 0 0; transform: rotate(45deg);
}
.trail img { width: 16px; height: 16px; opacity: .8; }
/* Małe linki: większe pole dotyku na telefonie (niewidoczne, układ bez zmian) */
.trail a, .crumbs a, .foot__contact a, a[href^="tel:"]:not(.btn), a[href^="mailto:"]:not(.btn), .kit__name a { position: relative; }
.trail a::after, .crumbs a::after, .foot__contact a::after, a[href^="tel:"]:not(.btn)::after, a[href^="mailto:"]:not(.btn)::after { content: ""; position: absolute; inset: -10px -6px; }
.kit__name a::after { content: ""; position: absolute; inset: -6px -4px; }
a[href^="tel:"] { white-space: nowrap; } /* numer telefonu nie łamie się w pół */
.trail span { color: var(--ink-3); }

.dir { display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); gap: 24px; padding: 28px 0 32px; border-bottom: 1px solid var(--line); } /* wszystkie grupy w jednym rzędzie (--cols liczy footer.php), długie „Usługi” w dwóch kolumnach — równe wysokości */
@media (min-width: 761px) and (max-width: 1080px) { .dir { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; } }
.dir summary { list-style: none; font-weight: 600; color: var(--ink); margin-bottom: 10px; pointer-events: none; }
.dir summary::-webkit-details-marker { display: none; }
.dir summary svg { display: none; }
.dir ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.dir__col--wide { grid-column: span 2; }
.dir__col--wide ul { display: block; columns: 2; column-gap: 24px; }
.dir__col--wide li { break-inside: avoid; margin-bottom: 9px; }

.foot__inner { padding-top: 20px; display: grid; gap: 12px; }
.foot__contact { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; color: var(--ink-3); }
.foot__legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.foot__legal li + li::before { content: "|"; margin: 0 10px; color: var(--line); }

@media (max-width: 760px) {
  .dir { grid-template-columns: 1fr; gap: 0; padding: 0 0 20px; border-bottom: 0; }
  .dir__col { border-bottom: 1px solid var(--line); }
  .dir summary { pointer-events: auto; cursor: pointer; display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 14px 0; font-size: .9375rem; }
  .dir summary svg { display: block; width: 18px; height: 18px; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
  .dir__col[open] summary svg { transform: rotate(180deg); }
  .dir ul { padding: 0 0 16px 2px; gap: 12px; font-size: .9375rem; }
  .dir__col--wide { grid-column: auto; }
  .dir__col--wide ul { columns: 1; }
  .dir__col--wide li { margin-bottom: 12px; }
  .foot__bottom { flex-direction: column; gap: 6px; }
}

/* =========================================================
   Rabat z kontem (template-parts/discount.php) — strona główna, sklep, usługi, blog
   ========================================================= */
.perk-band { padding-block: clamp(20px, 3.2vw, 36px); }
.perk-band__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px 28px; padding: clamp(24px, 4vw, 36px) clamp(22px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--mist); }
.perk-band--dark .perk-band__inner { background: var(--ink); color: #fff; }
.perk-band__icon { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--paper); fill: none; stroke: var(--armed-deep); stroke-width: 1.8; stroke-linejoin: round; }
.perk-band h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.1; margin-bottom: 6px; }
.perk-band p { color: var(--ink-2); max-width: 36em; }
.perk-band--dark p { color: #c9ccd1; }
.perk-band__actions { display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; }
/* W ciemnym pasku „Nie wiesz, co wybrać?” na końcu kategorii i linii sklepu (template-parts/shop/band.php) */
.perk-band--inline { width: min(100%, 860px); margin-top: 4px; padding: 24px 0 0; border-top: 1px solid rgba(255,255,255,.14); border-radius: 0; background: none; text-align: left; }
.perk-band--inline .perk-band__icon { background: var(--stage-2); stroke: var(--armed); }
.perk-band--inline h3 { font-size: 1.25rem; letter-spacing: -0.02em; margin-bottom: 4px; }
.perk-band--inline p { color: var(--stage-ink-2); max-width: 36em; }
@media (max-width: 760px) {
  .perk-band__inner { grid-template-columns: 1fr; justify-items: start; }
}


/* =========================================================
   Usługi i teksty starej strony na stronie głównej (front-page.php)
   ========================================================= */
.svc-links { padding-block: var(--sec) 0; }
.svc-links--shop { padding-block: clamp(20px, 3.2vw, 32px); } /* w /sklep/ to ostatnia sekcja — odstęp od stopki */
.svc-links--shop .seealso__title { margin-bottom: 18px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--mist); color: var(--ink); font-size: .9375rem; font-weight: 520; text-decoration: none; transition: background-color .2s; }
.chips a:hover { background: #e6e8eb; }
@media (max-width: 760px) { /* telefon: usługi w jednym rzędzie, przewijanym w bok */
  :is(.svc-links, .seealso__svc) .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  :is(.svc-links, .seealso__svc) .chips::-webkit-scrollbar { display: none; }
  :is(.svc-links, .seealso__svc) .chips li { flex: none; }
  :is(.svc-links, .seealso__svc) .chips a { white-space: nowrap; }
}
.more-text { margin-top: clamp(16px, 2.6vw, 24px); border-top: 1px solid var(--line); }
.more-text summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; padding: 20px 0; font-weight: 560; color: var(--ink); }
.more-text summary::-webkit-details-marker { display: none; }
.more-text summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-3px) rotate(45deg); transition: transform .35s var(--ease); }
.more-text[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.more-text__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; padding: 8px 0 12px; }
.more-text__grid h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.more-text__grid p { color: var(--ink-2); font-size: .9375rem; line-height: 1.6; }
@media (max-width: 760px) { .more-text__grid { grid-template-columns: 1fr; } }

/* =========================================================
   Kafelki „dokąd dalej”
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tiles { padding-block: 12px var(--sec); }
.tiles__grid { list-style: none; padding: 0; margin-block: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 12px; } /* wszystkie kafelki tej samej wysokości */
.tiles__grid--3 .tile:first-child { grid-column: 1 / -1; }
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-rows: auto 1fr; min-height: 460px;
  background: var(--mist); border-radius: var(--radius-lg); text-align: center;
}
.tile__text { padding: 44px 28px 0; display: grid; justify-items: center; gap: 8px; }
.tile h3 { font-size: clamp(1.75rem, 3vw, 2.25rem); letter-spacing: -0.03em; font-weight: 650; }
.tile h3 a { text-decoration: none; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.tile p { color: var(--ink-2); font-size: 1.0625rem; max-width: 22em; }
.tile__actions { display: flex; align-items: center; gap: 20px; margin-top: 10px; position: relative; }
.tile__actions .btn { pointer-events: none; }
.tile__art { display: flex; align-items: flex-end; justify-content: center; padding: 28px 24px 0; pointer-events: none; }
.tile__art img { transition: transform .6s var(--ease); }
.tile:hover .tile__art > * { transform: translateY(-4px); }
.tile__art > * { transition: transform .6s var(--ease); }

.tile--zestaw .tile__art { padding-bottom: 32px; align-items: center; }
/* zdjęcie zestawu (assets/img/tiles/zestaw, tools/kit-image.py): niskie — kafelek tej samej wysokości co „Aplikacja” obok */
.tile--zestaw .tile__art img { width: auto; height: auto; max-width: min(86%, 420px); max-height: 220px; }

.mini-phone {
  width: 200px; height: 230px; border-radius: 34px 34px 0 0; background: #000;
  border: 7px solid #1d1d1f; border-bottom: 0;
  display: grid; justify-items: center; align-content: start; gap: 12px; padding-top: 40px;
}
.mini-phone__ring { width: 66px; height: 66px; border-radius: 50%; border: 7px solid var(--app-mint); }
.mini-phone__label { color: var(--app-ink); font-size: .9375rem; font-weight: 600; }
.mini-phone__bar { width: 70%; height: 30px; border-radius: 10px; background: var(--app-card); }
.mini-phone__bar--short { width: 50%; }

.tile--serwis .tile__art { flex-direction: column; align-items: center; justify-content: center; padding-bottom: 40px; }
.mini-push {
  width: min(320px, 100%); display: flex; gap: 12px; align-items: center; text-align: left;
  padding: 14px 16px; border-radius: 20px; background: #fff;
  box-shadow: 0 14px 34px -18px rgba(0,0,0,.35); font-size: .875rem; color: var(--ink-2); line-height: 1.35;
  position: relative; z-index: 1;
}
.mini-push img { width: 34px; height: 34px; padding: 6px; border-radius: 9px; background: var(--mist); }
.mini-push strong { display: block; color: var(--ink); font-weight: 600; }
.mini-push--back { height: 18px; width: min(290px, 90%); margin-top: -8px; padding: 0; z-index: 0; opacity: .7; box-shadow: 0 8px 20px -14px rgba(0,0,0,.3); }

.tile__doc { width: min(48%, 220px); border-radius: 6px; box-shadow: 0 18px 40px -20px rgba(0,0,0,.35); background: #fff; }
.tile--certyfikaty .tile__art { padding-bottom: 0; align-items: flex-end; }
.tile--certyfikaty .tile__art img:first-child { transform: rotate(-6deg) translate(18%, 8%); }
.tile--certyfikaty .tile__art img:last-child { transform: rotate(4deg) translate(-12%, 2%); }
.tile--certyfikaty:hover .tile__art img:first-child { transform: rotate(-8deg) translate(14%, 4%); }
.tile--certyfikaty:hover .tile__art img:last-child { transform: rotate(5deg) translate(-8%, -2%); }

@media (max-width: 760px) {
  .tiles__grid { grid-template-columns: 1fr; }
  .tile { min-height: 420px; }
  .tile__text { padding-top: 36px; }
}

.demo__more { margin-top: clamp(16px, 2.1vw, 24px); text-align: center; }
.why__text .more-link { margin-top: 4px; }

/* Ostatnia karta „Nie wiesz, od czego zacząć?”: znak zapytania jak urządzenie Ajax na falach (styl zdjęć kategorii) */
.cat__img--ask { display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, #fbfbfc 0%, #eceef1 100%); }
.cat__img--ask span {
  width: 25%; aspect-ratio: 1; border-radius: 30%; display: grid; place-items: center;
  background: linear-gradient(160deg, #2a2c30, #0d0e10); color: #fff;
  font-size: clamp(2.25rem, 4.2vw, 3rem); font-weight: 600; line-height: 1;
  box-shadow:
    0 22px 30px -14px rgba(0,0,0,.5),
    0 0 0 16px #f7f8f9, 0 0 0 17px #e2e4e8,
    0 0 0 36px #f9fafb, 0 0 0 37px #e6e8eb,
    0 0 0 58px #fbfbfc, 0 0 0 59px #eaecee,
    0 0 0 82px #fcfcfd, 0 0 0 83px #eef0f2;
  transition: transform .6s var(--ease);
}
.cat:hover .cat__img--ask span { transform: scale(1.05); }

/* =========================================================
   Accessibility preferences
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .fly { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-scrim { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(0,0,0,.12); }
  .push { background: #3a3a3e; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
