/* latin-ext */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/schibsted-grotesk-italic-latin-ext.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;
}
/* latin */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/schibsted-grotesk-italic-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/schibsted-grotesk-normal-latin-ext.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;
}
/* latin */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/schibsted-grotesk-normal-latin.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;
}

/* ============================================================
   Above Pilot — strona-wizytówka
   Marka: steel-navy akcent, ciemne hero, jasne sekcje
   ============================================================ */

:root {
  --navy: hsl(215 45% 42%);
  --navy-bright: hsl(215 70% 60%);
  /* CTA button background: minimal darkening of --navy-bright so white
     16.5px/600 text passes WCAG 4.5:1 (measured 4.58:1; 60% gives 3.36:1) */
  --navy-cta: hsl(215 70% 51%);
  --navy-deep: hsl(218 40% 12%);
  --ink: hsl(220 25% 10%);
  --ink-soft: hsl(220 12% 38%);
  --paper: hsl(220 25% 98%);
  --paper-2: hsl(218 30% 95%);
  --line: hsl(218 20% 88%);
  --radius: 18px;
  --font: "Schibsted Grotesk", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: hsl(215 70% 60% / 0.25); }

img { display: block; }

a { color: inherit; text-decoration: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(20px, 5vw, 56px);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
  background: hsl(220 25% 98% / 0.82);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 hsl(218 20% 88% / 0.7);
}
.nav.on-dark:not(.scrolled) { color: white; }
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.02em;
}
.nav-brand .logo-dot {
  width: 30px; height: 30px; border-radius: 50%;
  background: currentColor;
  -webkit-mask: url("/assets/logo.svg") center / contain no-repeat;
  mask: url("/assets/logo.svg") center / contain no-repeat;
}
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 30px); font-size: 14.5px; font-weight: 500; }
.nav-links a { opacity: 0.75; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta {
  background: var(--navy);
  color: white !important;
  opacity: 1 !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: hsl(215 50% 36%); transform: translateY(-1px); }
.nav-cta-icon { display: none; width: 16px; height: 16px; flex-shrink: 0; }
.lang-switch {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-switch .globe { color: hsl(218 25% 55%); flex-shrink: 0; }
.lang-switch a {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  /* invisible padding keeps the prototype look while meeting the
     24x24px minimum target size (WCAG 2.2) */
  padding: 6px 4px;
  margin: -6px -4px;
  border: none;
  background: transparent;
  color: hsl(218 25% 65%);
  cursor: pointer;
  transition: color 0.2s;
}
.lang-switch a:hover { color: white; }
.lang-switch a.active { color: white; font-weight: 600; }
@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-links { gap: 10px; }
  .nav-cta { padding: 10px; }
  .nav-cta-icon { display: block; }
  /* keep the accessible name: visually hidden instead of display:none */
  .nav-cta-text {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(120% 90% at 70% -10%, hsl(215 55% 26%) 0%, transparent 55%),
    radial-gradient(100% 80% at 10% 110%, hsl(215 45% 20%) 0%, transparent 50%),
    var(--navy-deep);
  color: white;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 1000px; }
.hero-logo {
  width: clamp(64px, 8vw, 92px); height: clamp(64px, 8vw, 92px);
  margin: 0 auto 36px;
  border-radius: 50%;
  background: white;
  -webkit-mask: url("/assets/logo.svg") center / contain no-repeat;
  mask: url("/assets/logo.svg") center / contain no-repeat;
}
.hero h1 {
  font-size: clamp(44px, 7.5vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--navy-bright); }
.hero p.sub {
  margin: 28px auto 0;
  max-width: 620px;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
  color: hsl(218 30% 78%);
  text-wrap: pretty;
}
.hero-ctas { margin-top: 44px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 16.5px; font-weight: 600;
  border: none; cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.btn-primary { background: var(--navy-cta); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px hsl(215 70% 50% / 0.4); }
.btn-ghost { background: hsl(0 0% 100% / 0.1); color: white; border: 1px solid hsl(0 0% 100% / 0.25); }
.btn-ghost:hover { background: hsl(0 0% 100% / 0.18); }

/* ---------- Sekcje wspólne ---------- */
.section { padding: clamp(80px, 11vw, 150px) clamp(20px, 5vw, 56px); }
.section-inner { max-width: 1180px; margin: 0 auto; }
.kicker {
  display: inline-block;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 18px;
}
.section h2 {
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 760px;
  text-wrap: balance;
}
.section .lead {
  margin-top: 20px;
  font-size: clamp(16px, 1.8vw, 19.5px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 640px;
  text-wrap: pretty;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Oferta (bento z duszą) ---------- */
.offer-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .offer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .offer-grid { grid-template-columns: 1fr; } }

.offer-card {
  position: relative;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 36px;
  display: flex; flex-direction: column; gap: 14px;
  justify-content: flex-end;
  min-height: 270px;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), box-shadow 0.4s, border-color 0.4s;
}
.offer-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 52px hsl(218 40% 20% / 0.11);
  border-color: hsl(215 45% 42% / 0.35);
}
.offer-card--wide { grid-column: span 2; }
.offer-card--full { grid-column: 1 / -1; min-height: 0; }
@media (max-width: 980px) {
  .offer-card--wide { grid-column: span 2; }
}
@media (max-width: 620px) {
  .offer-card--wide, .offer-card--full { grid-column: auto; }
}

/* duchowy numer w tle */
.offer-ghost {
  position: absolute;
  top: -22px; right: 6px;
  font-size: 132px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: hsl(218 30% 95%);
  user-select: none;
  pointer-events: none;
  transition: color 0.4s, transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.offer-card:hover .offer-ghost { color: hsl(215 45% 42% / 0.1); transform: translateY(-6px); }

/* znak graficzny — język logo: szczyt + horyzont */
.offer-mark {
  position: relative;
  width: 72px; height: 46px;
  color: var(--navy);
  margin-bottom: auto;
}
.offer-mark svg { width: 100%; height: 100%; overflow: visible; }
.offer-mark .up { transition: transform 0.45s cubic-bezier(.2,.7,.2,1); }
.offer-card:hover .offer-mark .up { transform: translateY(-4px); }
.offer-mark .float { transition: transform 0.45s cubic-bezier(.2,.7,.2,1); }
.offer-card:hover .offer-mark .float { transform: translateY(-5px); }

.offer-card h3 { position: relative; font-size: 22px; letter-spacing: -0.02em; line-height: 1.22; }
.offer-card p { position: relative; font-size: 15px; line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }

/* linia horyzontu — sweep przy hoverze */
.offer-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--navy-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.offer-card:hover::after { transform: scaleX(1); }

/* karta wyróżniona — granatowa */
.offer-card--dark {
  background:
    radial-gradient(130% 110% at 85% -20%, hsl(215 55% 28%) 0%, transparent 55%),
    var(--navy-deep);
  border-color: hsl(215 40% 28%);
  color: white;
}
.offer-card--dark p { color: hsl(218 30% 76%); }
.offer-card--dark .offer-ghost { color: hsl(216 40% 20% / 0.85); }
.offer-card--dark:hover .offer-ghost { color: hsl(215 60% 55% / 0.22); }
.offer-card--dark .offer-mark { color: var(--navy-bright); }

/* karta pełnej szerokości — układ poziomy */
.offer-card--full {
  flex-direction: row;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: 34px clamp(28px, 4vw, 48px);
}
.offer-card--full .offer-mark { margin-bottom: 0; flex-shrink: 0; }
.offer-card--full .offer-body { display: flex; flex-direction: column; gap: 10px; max-width: 700px; }
.offer-card--full .offer-ghost { top: 50%; transform: translateY(-50%); right: 22px; }
.offer-card--full:hover .offer-ghost { transform: translateY(-50%); }
@media (max-width: 620px) {
  .offer-card--full { flex-direction: column; align-items: flex-start; gap: 16px; min-height: 270px; justify-content: flex-end; }
  .offer-card--full .offer-mark { margin-bottom: auto; }
  .offer-card--full .offer-ghost { top: -22px; right: 6px; transform: none; }
}

/* ---------- Proces (jeden ciemny blok, sceny) ---------- */
.process { background: var(--navy-deep); color: white; }
.process .kicker { color: var(--navy-bright); }
.process-track { position: relative; }
.process-step {
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
  padding: 6vh 0;
}
@media (max-width: 860px) { .process-step { grid-template-columns: 1fr; min-height: auto; padding: 60px 0; } }
.process-step .num {
  font-size: clamp(90px, 14vw, 190px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px hsl(215 60% 60% / 0.6);
}
.process-step h3 { font-size: clamp(26px, 3.4vw, 42px); letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 16px; }
.process-step p { font-size: clamp(15.5px, 1.7vw, 18px); line-height: 1.65; color: hsl(218 30% 75%); max-width: 480px; text-wrap: pretty; }
.process-step .tagchips { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.tagchip {
  font-size: 13px; font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  background: hsl(215 50% 50% / 0.16);
  border: 1px solid hsl(215 60% 60% / 0.35);
  color: hsl(215 80% 80%);
}

/* ---------- Big statement (skalująca typografia) ---------- */
.statement {
  background: var(--paper-2);
  text-align: center;
  overflow: hidden;
}
.statement h2 {
  max-width: 1000px;
  margin: 0 auto;
  font-size: clamp(34px, 5.4vw, 72px);
  transform-origin: center;
  will-change: transform, opacity;
}
/* 56% lightness: minimal darkening so large text passes 3:1 on --paper-2
   (3.08:1 measured; the prototype's 72% gave 1.83:1) */
.statement h2 .dim { color: hsl(218 15% 56%); }

/* ---------- Portale: cloud / apps ---------- */
.portal-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 860px) { .portal-grid { grid-template-columns: 1fr; } }
.portal-card {
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
  justify-content: flex-end;
  min-height: 300px;
  padding: 38px clamp(28px, 3.5vw, 42px);
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--line);
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), box-shadow 0.4s, border-color 0.4s;
}
.portal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 52px hsl(218 40% 20% / 0.13);
  border-color: hsl(215 45% 42% / 0.35);
}
.portal-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--navy-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.portal-card:hover::after { transform: scaleX(1); }
.portal-card--dark {
  background:
    radial-gradient(130% 110% at 85% -20%, hsl(215 55% 28%) 0%, transparent 55%),
    var(--navy-deep);
  border-color: hsl(215 40% 28%);
  color: white;
}
.portal-mark {
  width: 76px; height: 50px;
  color: var(--navy);
  margin-bottom: auto;
}
.portal-card--dark .portal-mark { color: var(--navy-bright); }
.portal-mark svg { width: 100%; height: 100%; overflow: visible; }
.portal-mark .up, .portal-mark .float { transition: transform 0.45s cubic-bezier(.2,.7,.2,1); }
.portal-card:hover .portal-mark .up { transform: translateY(-4px); }
.portal-card:hover .portal-mark .float { transform: translateY(-5px); }
.portal-domain {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.025em;
  display: inline-flex; align-items: baseline; gap: 8px;
  color: inherit;
}
.portal-card:not(.portal-card--dark) .portal-domain { color: var(--navy); }
.portal-arrow {
  display: inline-block;
  font-size: 0.8em;
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1);
}
.portal-card:hover .portal-arrow { transform: translate(4px, -4px); }
.portal-card p { font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; max-width: 440px; }
.portal-card--dark p { color: hsl(218 30% 76%); }
.portal-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* ---------- Produkty chmurowe ---------- */
.products-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .products-grid { grid-template-columns: 1fr; } }
.product-card {
  position: relative;
  border-radius: var(--radius);
  padding: 30px 26px 34px;
  background: white;
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
  justify-content: flex-end;
  min-height: 280px;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), box-shadow 0.4s, border-color 0.4s;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 52px hsl(218 40% 20% / 0.11);
  border-color: hsl(215 45% 42% / 0.35);
}
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% -30%, hsl(215 45% 42% / 0.07) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.product-card:hover::before { opacity: 1; }
.product-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--navy-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.product-card:hover::after { transform: scaleX(1); }
.product-card .pmark {
  position: relative;
  width: 76px; height: 50px;
  color: var(--navy);
  margin-bottom: auto;
}
.product-card .pmark svg { width: 100%; height: 100%; overflow: visible; }
.product-card .pmark .up { transition: transform 0.45s cubic-bezier(.2,.7,.2,1); }
.product-card:hover .pmark .up { transform: translateY(-4px); }
.product-card .pmark .float { transition: transform 0.45s cubic-bezier(.2,.7,.2,1); }
.product-card:hover .pmark .float { transform: translateY(-5px); }
.product-card .pmark .roll { transition: transform 0.5s cubic-bezier(.2,.7,.2,1); }
.product-card:hover .pmark .roll { transform: translateX(8px); }
.product-card h3 { position: relative; font-size: 21px; letter-spacing: -0.02em; }
.product-card p { position: relative; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); text-wrap: pretty; }
.product-card .domain {
  position: relative;
  margin-top: 12px;
  font-size: 13px; font-weight: 600; color: var(--navy);
  display: inline-flex; align-items: center; gap: 6px;
}
.product-card .domain::after {
  content: "→";
  transition: transform 0.3s;
}
.product-card:hover .domain::after { transform: translateX(4px); }

/* ---------- Provider agnostic ---------- */
.providers { background: var(--navy-deep); color: white; text-align: center; }
.providers .kicker { color: var(--navy-bright); }
.providers h2 { margin-inline: auto; }
.providers .lead { margin-inline: auto; color: hsl(218 30% 75%); }
.provider-row {
  margin-top: 56px;
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 14px;
}
.provider-pill {
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 16px 30px;
  border-radius: 999px;
  border: 1px solid hsl(0 0% 100% / 0.18);
  background: hsl(0 0% 100% / 0.05);
  color: hsl(218 30% 82%);
  transition: transform 0.3s, background 0.3s, color 0.3s, border-color 0.3s;
}
.provider-pill:hover {
  transform: translateY(-3px);
  background: hsl(215 60% 55% / 0.18);
  border-color: hsl(215 70% 65% / 0.5);
  color: white;
}
.providers .note { margin-top: 36px; font-size: 15px; color: hsl(218 25% 60%); }

/* ---------- Kontakt ---------- */
.contact { background: var(--paper); }
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; } }
.contact-wrap > * { min-width: 0; }
.contact-info .email-line {
  margin-top: 30px;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 600;
  color: var(--navy);
}
.contact-info .email-line:hover { text-decoration: underline; }
.contact-form {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(26px, 3.5vw, 40px);
  display: grid;
  gap: 18px;
  box-shadow: 0 20px 60px hsl(218 40% 20% / 0.06);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: white;
  box-shadow: 0 0 0 3px hsl(215 45% 42% / 0.15);
}
.field .err { font-size: 12.5px; color: hsl(0 65% 48%); display: none; }
.field.invalid input, .field.invalid textarea { border-color: hsl(0 65% 55%); }
.field.invalid .err { display: block; }
/* ---------- Chipy tematu ---------- */
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chip {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  background: hsl(215 45% 42% / 0.07);
  border: 1px solid hsl(215 45% 42% / 0.22);
  color: var(--navy);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.topic-chip:hover { background: hsl(215 45% 42% / 0.13); transform: translateY(-1px); }
.topic-chip.active {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}
.form-error {
  display: none;
  color: hsl(0 65% 48%);
  font-size: 14.5px;
  font-weight: 500;
  margin: -4px 0 0;
}
.form-error.show { display: block; }
.form-submit { margin-top: 6px; }
.form-submit .btn-primary { background: var(--navy); width: 100%; justify-content: center; }
.form-submit .btn-primary:hover { background: hsl(215 50% 36%); box-shadow: 0 12px 32px hsl(215 45% 42% / 0.3); }
.form-sent {
  display: none;
  text-align: center;
  padding: 40px 10px;
}
.form-sent.show { display: block; }
.form-sent .check {
  width: 56px; height: 56px; border-radius: 50%;
  background: hsl(150 45% 42% / 0.12); color: hsl(150 45% 34%);
  display: grid; place-items: center; margin: 0 auto 18px;
}
.form-sent h3 { font-size: 22px; margin-bottom: 8px; }
.form-sent p { color: var(--ink-soft); font-size: 15px; }

/* ---------- Stopka ---------- */
.footer {
  background: var(--navy-deep);
  color: hsl(218 25% 65%);
  padding: 56px clamp(20px, 5vw, 56px) 40px;
}
.footer-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between;
}
.footer .brand { display: flex; align-items: center; gap: 10px; color: white; font-weight: 700; font-size: 16px; }
.footer .brand .logo-dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: white;
  -webkit-mask: url("/assets/logo.svg") center / contain no-repeat;
  mask: url("/assets/logo.svg") center / contain no-repeat;
}
.footer a { transition: color 0.2s; }
.footer a:hover { color: white; }
.footer .meta { font-size: 13.5px; display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom {
  max-width: 1180px;
  margin: 26px auto 0;
  padding-top: 18px;
  border-top: 1px solid hsl(218 30% 24% / 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

/* ============================================================
   Port additions: accessibility + form plumbing
   (everything below is invisible in the default visual state
   or required by the WCAG/security specs)
   ============================================================ */

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy-deep);
  color: white;
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
}
.skip-link:focus-visible {
  left: 0;
}

/* ---------- Visible focus, tuned per background ---------- */
:focus-visible {
  outline: 3px solid var(--navy-cta);
  outline-offset: 2px;
  border-radius: 4px;
}
.hero :focus-visible,
.process :focus-visible,
.providers :focus-visible,
.footer :focus-visible,
.offer-card--dark :focus-visible,
.portal-card--dark :focus-visible,
.nav.on-dark:not(.scrolled) :focus-visible {
  outline-color: white;
}

/* fixed nav must not obscure anchored/focused headings (WCAG 2.2) */
section[id], header[id] { scroll-margin-top: 76px; }

/* ---------- Topic chips as native radios ---------- */
fieldset.field { border: 0; min-width: 0; }
fieldset.field legend {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  padding: 0;
  margin-bottom: 7px;
}
/* relative anchors the visually-hidden radio inside its chip; the
   .field input.chip-input specificity beats the form-wide
   `.field input { width: 100% }` that was inflating it to ~318px and
   forcing horizontal scroll on phones */
.topic-chip { display: inline-flex; position: relative; }
.field input.chip-input {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.topic-chip:has(.chip-input:checked) {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}
.topic-chip:has(.chip-input:focus-visible) {
  outline: 3px solid var(--navy-cta);
  outline-offset: 2px;
}

/* ---------- Per-field errors / failure line ---------- */
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: hsl(0 65% 55%); }

/* ---------- Honeypot: off-screen, inert for humans and AT ---------- */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- No-JS notice ---------- */
.form-noscript {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
}

/* ---------- Turnstile widget slot ----------
   height reserved up-front so the lazy-rendered widget never
   shifts layout (CLS) when the user jumps straight to #kontakt */
.cf-turnstile-slot { min-height: 65px; }

/* ---------- Form hints ---------- */
.field ::placeholder { color: hsl(220 12% 44%); opacity: 1; }
