/* ==========================================================================
   Finestra-KRONS — static site styles
   Design tokens -> layout -> components. No framework, no build step.
   ========================================================================== */

/* --------------------------------------------------------- fonts (selfhost) */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  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: "Manrope";
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  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;
}

/* --------------------------------------------------------------- tokens */
:root {
  color-scheme: light;

  /* brand — sampled from the logo mark */
  --brand: #2f3f9e;
  --brand-deep: #1e2a6d;
  --brand-lift: #4457c4;
  --brand-tint: #eef0fb;

  /* surfaces / text (light) */
  --bg: #ffffff;
  --bg-alt: #f4f6fa;
  --surface: #ffffff;
  --fg: #101521;
  --fg-muted: #576076;
  --line: #e3e7ef;
  --shadow-sm: 0 1px 2px rgb(16 21 33 / 6%), 0 4px 12px rgb(16 21 33 / 5%);
  --shadow-md: 0 2px 4px rgb(16 21 33 / 6%), 0 18px 40px -12px rgb(16 21 33 / 18%);

  /* dark chrome — header and footer are always dark: the wordmark is light grey */
  --chrome-bg: #0b0e16;
  --chrome-bg-soft: #141926;
  --chrome-fg: #eef0f6;
  --chrome-fg-muted: #a2abc0;
  --chrome-line: #232a3b;

  /* rhythm */
  --header-h: 74px;
  --page: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  /* type */
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  --step-1: clamp(1.15rem, 1.09rem + 0.3vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.28rem + 0.6vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem);
  --step-4: clamp(2.2rem, 1.6rem + 2.8vw, 3.9rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0b0e16;
    --bg-alt: #11151f;
    --surface: #151a26;
    --fg: #e9ecf4;
    --fg-muted: #9aa3b8;
    --line: #242b3b;
    --brand-tint: #1a2140;
    --brand-lift: #7f8ee6;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 40%);
    --shadow-md: 0 2px 6px rgb(0 0 0 / 40%), 0 20px 44px -14px rgb(0 0 0 / 60%);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--step-0) / 1.65 var(--font);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.021em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.012em; }

p { margin: 0; text-wrap: pretty; }

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

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }

ul { margin: 0; padding: 0; list-style: none; }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--brand-lift);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ------------------------------------------------------------ utilities */
.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  inset-block-start: 0.5rem;
  inset-inline-start: 0.5rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  background: var(--brand);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.18s var(--ease);
}
.skip-link:focus-visible { transform: none; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-lift);
}
.eyebrow::before {
  content: "";
  width: 2rem; height: 2px;
  background: currentColor;
  flex: none;
}

.lead {
  max-width: 58ch;
  font-size: var(--step-1);
  color: var(--fg-muted);
}

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head p { margin-top: 0.9rem; color: var(--fg-muted); font-size: var(--step-1); }

/* ------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
    border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:hover { background: var(--brand-deep); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn svg { flex: none; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  border-color: color-mix(in oklab, currentColor 32%, transparent);
}
.btn--ghost:hover {
  background: color-mix(in oklab, currentColor 10%, transparent);
  border-color: currentColor;
}

.btn--sm { padding: 0.6rem 1.15rem; min-height: 42px; font-size: var(--step--1); }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 650;
  color: var(--brand-lift);
}
.link-more::after {
  content: "→";
  transition: transform 0.2s var(--ease);
}
a:hover > .link-more::after,
.link-more:hover::after { transform: translateX(4px); }

/* -------------------------------------------------------------- header */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--chrome-bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(150%);
  border-block-end: 1px solid var(--chrome-line);
  color: var(--chrome-fg);
  transition: box-shadow 0.2s var(--ease);
}
.site-header[data-scrolled] { box-shadow: 0 10px 30px -12px rgb(0 0 0 / 55%); }

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: var(--header-h);
}

.brand { flex: none; padding-block: 0.6rem; }
.brand img { width: clamp(150px, 18vw, 196px); height: auto; }

.nav { margin-inline-start: auto; }
.nav__list { display: flex; align-items: center; gap: 0.25rem; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--r-sm);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--chrome-fg-muted);
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.nav__link:hover,
.nav__item:hover > .nav__link,
.nav__item:focus-within > .nav__link { color: var(--chrome-fg); background: var(--chrome-bg-soft); }
.nav__link[aria-current="page"] { color: #fff; }

.nav__caret { transition: transform 0.2s var(--ease); }
.nav__item:hover .nav__caret,
.nav__item:focus-within .nav__caret { transform: rotate(180deg); }

/* mega panel */
.nav__item--has-panel { position: relative; }
.nav__panel {
  position: absolute;
  inset-block-start: calc(100% + 0.5rem);
  inset-inline-end: 0;
  padding: 1.5rem;
  min-width: min(58rem, 90vw);
  background: var(--chrome-bg-soft);
  border: 1px solid var(--chrome-line);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 70%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease),
    visibility 0.18s;
}
.nav__panel--narrow { min-width: 15rem; padding: 1rem; }
.nav__item--has-panel:hover > .nav__panel,
.nav__item--has-panel:focus-within > .nav__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav__panel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem 1.75rem;
}
.nav__group-title {
  display: block;
  margin-bottom: 0.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--chrome-line);
  font-size: var(--step-0);
  font-weight: 700;
  color: var(--chrome-fg);
}
.nav__group-title:hover { color: var(--brand-lift); }
.nav__sub a {
  display: block;
  padding: 0.4rem 0.5rem;
  margin-inline: -0.5rem;
  border-radius: var(--r-sm);
  font-size: var(--step--1);
  color: var(--chrome-fg-muted);
  transition: color 0.14s var(--ease), background-color 0.14s var(--ease);
}
.nav__sub a:hover { color: #fff; background: rgb(255 255 255 / 6%); }
.nav__sub a[aria-current="page"],
.nav__group-title[aria-current="page"] { color: var(--brand-lift); }

.nav__panel-note {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-block-start: 0.5rem;
  padding-block-start: 1.25rem;
  border-block-start: 1px solid var(--chrome-line);
  font-size: var(--step--1);
  color: var(--chrome-fg-muted);
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--brand-lift) 24%, transparent);
  color: #cdd5ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.header-cta { display: flex; align-items: center; gap: 0.75rem; flex: none; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--step--1);
  font-weight: 650;
  color: var(--chrome-fg);
}
.header-phone:hover { color: var(--brand-lift); }

.nav-toggle { display: none; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--chrome-bg);
  color: var(--chrome-fg);
  padding-block: clamp(3rem, 7vw, 6rem);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.hero::before {
  inset: 0;
  background:
    radial-gradient(70rem 40rem at 12% -10%, color-mix(in oklab, var(--brand) 42%, transparent), transparent 70%),
    radial-gradient(50rem 34rem at 96% 4%, color-mix(in oklab, #1b3d8f 30%, transparent), transparent 72%);
}
.hero::after {
  inset: 0;
  background-image:
    linear-gradient(to right, rgb(255 255 255 / 4%) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / 4%) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(60% 60% at 50% 40%, #000, transparent);
}
.hero > .wrap { position: relative; }

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 62rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: stretch;
  }
  .hero__figure { display: flex; align-self: center; }
  .hero__figure img { aspect-ratio: auto; height: 100%; min-height: 24rem; max-height: 32rem; }
}

.hero .eyebrow { color: #9fb0ff; }
.hero h1 { color: #fff; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #8fa2ff, #d7dcff 60%, #8fa2ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  max-width: 46ch;
  margin-block-start: 1.4rem;
  font-size: var(--step-1);
  color: var(--chrome-fg-muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-block-start: 2rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 1.25rem 1.75rem;
  margin-block-start: clamp(2.5rem, 5vw, 3.5rem);
  padding-block-start: 1.75rem;
  border-block-start: 1px solid var(--chrome-line);
}
.hero__stats dt {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}
.hero__stats dd {
  margin: 0.15rem 0 0;
  font-size: var(--step--1);
  color: var(--chrome-fg-muted);
}

/* framed hero image — kept ~640px wide because the source is only 1365px */
.hero__figure {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  padding: 10px;
  background: linear-gradient(150deg, rgb(255 255 255 / 14%), rgb(255 255 255 / 2%));
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 80%);
}
.hero__figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: calc(var(--r-lg) - 8px);
}
.hero__figure figcaption {
  position: absolute;
  inset-block-end: 1.5rem;
  inset-inline-start: 1.5rem;
  inset-inline-end: 1.5rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-md);
  background: color-mix(in oklab, var(--chrome-bg) 72%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid rgb(255 255 255 / 12%);
  font-size: var(--step--1);
  color: var(--chrome-fg);
}

/* --------------------------------------------------------- partner strip */
.partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 3.5rem);
}
.partners a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.partners a:hover,
.partners a:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.partners img {
  width: 132px;
  height: auto;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter 0.2s var(--ease), opacity 0.2s var(--ease);
}
.partners a:hover img,
.partners a:focus-visible img { filter: none; opacity: 1; }
.partners__label {
  width: 100%;
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ------------------------------------------------------------- services */
.cards {
  display: grid;
  gap: clamp(1.1rem, 2vw, 1.6rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    border-color 0.22s var(--ease);
}
.card:has(a:hover),
.card:has(a:focus-visible) {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in oklab, var(--brand) 40%, var(--line));
}
.card__media {
  aspect-ratio: 358 / 258;
  overflow: hidden;
  background: var(--bg-alt);
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.card:has(a:hover) .card__media img { transform: scale(1.04); }
.card__body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.4rem 1.5rem 1.6rem;
  flex: 1;
}
.card__body p { color: var(--fg-muted); font-size: var(--step--1); }
.card__body .link-more { margin-block-start: auto; padding-block-start: 0.6rem; }
.card__link::after { content: ""; position: absolute; inset: 0; }
.card--soon { opacity: 0.92; }
.card__flag {
  position: absolute;
  inset-block-start: 0.9rem;
  inset-inline-end: 0.9rem;
  z-index: 1;
  background: color-mix(in oklab, var(--brand) 82%, #000);
  color: #fff;
}

/* --------------------------------------------------------------- why us */
.why {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
@media (min-width: 60rem) {
  .why { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
}
.why__list { display: grid; gap: 1rem; }
.why__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.1rem;
  padding: 1.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.why__icon {
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--brand-lift);
}
.why__item p { margin-block-start: 0.3rem; color: var(--fg-muted); font-size: var(--step--1); }

/* -------------------------------------------------------------- gallery */
.gallery {
  display: grid;
  gap: clamp(0.75rem, 1.5vw, 1.15rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}
.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg-alt);
}
.gallery img {
  width: 100%;
  aspect-ratio: 358 / 258;
  object-fit: cover;
  transition: transform 0.5s var(--ease), filter 0.3s var(--ease);
}
.gallery figure:hover img { transform: scale(1.05); }

/* ------------------------------------------------------------ contact */
.contact {
  position: relative;
  overflow: hidden;
  background: var(--chrome-bg);
  color: var(--chrome-fg);
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60rem 34rem at 80% 0%, color-mix(in oklab, var(--brand) 48%, transparent), transparent 70%);
  pointer-events: none;
}
.contact > .wrap { position: relative; }
.contact__grid {
  display: grid;
  gap: clamp(2.25rem, 5vw, 4rem);
}
@media (min-width: 58rem) {
  .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: center; }
}
.contact h2 { color: #fff; }
.contact__lead { margin-block-start: 1rem; color: var(--chrome-fg-muted); font-size: var(--step-1); max-width: 44ch; }
.contact__card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--r-lg);
  background: color-mix(in oklab, var(--chrome-bg-soft) 92%, transparent);
  border: 1px solid var(--chrome-line);
  box-shadow: 0 30px 60px -28px rgb(0 0 0 / 75%);
}
.contact__rows { display: grid; gap: 1.15rem; }
.contact__row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; }
.contact__row .why__icon { width: 2.4rem; height: 2.4rem; background: rgb(255 255 255 / 8%); color: #b7c2ff; }
.contact__row dt {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chrome-fg-muted);
}
.contact__row dd { margin: 0.15rem 0 0; font-weight: 600; color: #fff; }
.contact__row dd a:hover { color: var(--brand-lift); }
.contact__note { margin-block-start: 1.5rem; padding-block-start: 1.25rem; border-block-start: 1px solid var(--chrome-line); font-size: var(--step--1); color: var(--chrome-fg-muted); }

/* --------------------------------------------------------------- footer */
.site-footer {
  background: var(--chrome-bg);
  color: var(--chrome-fg-muted);
  border-block-start: 1px solid var(--chrome-line);
  padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem;
  font-size: var(--step--1);
}
.footer__top {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  padding-block-end: 2.5rem;
  border-block-end: 1px solid var(--chrome-line);
}
@media (min-width: 46rem) {
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 68rem) {
  .footer__top { grid-template-columns: 1.3fr repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 56rem) and (max-width: 67.99rem) {
  .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.footer__brand img { width: 180px; margin-bottom: 1.15rem; }
.footer__brand p { max-width: 32ch; }
.footer__brand address { margin-block-start: 1.15rem; font-style: normal; line-height: 1.8; }
.footer__brand address a:hover { color: #fff; }
.footer h2, .footer__col h2 {
  margin-bottom: 0.9rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chrome-fg);
}
.footer__col li + li { margin-block-start: 0.35rem; }
.footer__col a { transition: color 0.14s var(--ease); }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block-start: 1.5rem;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer__legal a:hover { color: #fff; }

/* -------------------------------------------------- mobile navigation */
@media (max-width: 71.99rem) {
  :root { --header-h: 66px; }
  .header-phone span { display: none; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border: 1px solid var(--chrome-line);
    border-radius: var(--r-sm);
    background: var(--chrome-bg-soft);
    color: var(--chrome-fg);
    cursor: pointer;
  }
  .nav-toggle svg + svg,
  .nav-toggle[aria-expanded="true"] svg:first-child { display: none; }
  .nav-toggle[aria-expanded="true"] svg + svg { display: block; }

  .header-cta { order: 2; margin-inline-start: auto; }
  .header-cta .btn { display: none; }
  .nav-toggle { order: 3; margin-inline-start: 0.35rem; }

  /* the header uses backdrop-filter, which makes it the containing block for
     fixed descendants — so the drawer is absolute inside the sticky header */
  .nav {
    position: absolute;
    inset-block-start: 100%;
    inset-inline: 0;
    height: calc(100dvh - var(--header-h));
    z-index: 40;
    margin: 0;
    padding: 1.25rem var(--gutter) 3rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--chrome-bg);
    border-block-start: 1px solid var(--chrome-line);
    translate: 0 -0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s var(--ease), translate 0.2s var(--ease), visibility 0.2s;
  }
  .nav[data-open] { opacity: 1; visibility: visible; translate: 0; }

  .nav__list { display: block; }
  .nav__link { display: flex; padding: 0.95rem 0; font-size: var(--step-0); border-radius: 0; }
  .nav__item + .nav__item { border-block-start: 1px solid var(--chrome-line); }

  .nav__panel {
    position: static;
    min-width: 0;
    padding: 0 0 0.75rem;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__panel-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .nav__panel-note { padding-block-start: 1rem; }
  .nav__group-title { color: var(--brand-lift); }

  .nav__mobile-cta { margin-block-start: 1.75rem; display: grid; gap: 0.75rem; }
  .nav__mobile-cta .btn { width: 100%; }

  body:has(.nav[data-open]) { overflow: hidden; }
}

@media (min-width: 72rem) {
  .nav__mobile-only { display: none; }
}

/* ==========================================================================
   Podstrony: page head, prose, produkty, specyfikacje, karty
   ========================================================================== */

/* ---------------------------------------------------------- nagłówek strony */
.page-head {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3.25rem);
  background: var(--chrome-bg);
  color: var(--chrome-fg);
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(56rem 30rem at 8% -20%, color-mix(in oklab, var(--brand) 46%, transparent), transparent 70%),
    radial-gradient(40rem 26rem at 92% 0%, color-mix(in oklab, #1b3d8f 28%, transparent), transparent 74%);
}
.page-head > .wrap { position: relative; }
.page-head h1 { color: #fff; max-width: 30ch; }
.page-head .eyebrow { color: #9fb0ff; }
.page-head .lead {
  margin-block-start: 1.1rem;
  max-width: 56ch;
  color: var(--chrome-fg-muted);
}

.crumbs { margin-bottom: 1.5rem; font-size: var(--step--1); }
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--chrome-fg-muted);
}
.crumbs li + li::before {
  content: "/";
  margin-inline-end: 0.5rem;
  opacity: 0.45;
}
.crumbs a { color: var(--chrome-fg-muted); }
.crumbs a:hover { color: #fff; }
.crumbs li:last-child { color: var(--chrome-fg); }

/* -------------------------------------------------------------- treść */
.page-body { padding-block: clamp(2rem, 3.5vw, 3rem) clamp(2.5rem, 5vw, 4.5rem); }
.page-body--narrow { max-width: 52rem; }

.prose { max-width: 68ch; }
.prose--lead { font-size: var(--step-1); color: var(--fg-muted); }
.prose > * + * { margin-block-start: 1rem; }
.prose h3, .prose h4 {
  margin-block-start: 2rem;
  font-size: var(--step-2);
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--fg);
}
.prose h4 { font-size: var(--step-1); }
.prose > h3:first-child, .prose > h4:first-child { margin-block-start: 0; }
.prose p { color: var(--fg-muted); }
.prose--lead p { color: var(--fg-muted); }
.prose a { color: var(--brand-lift); text-decoration: underline; text-underline-offset: 2px; }
.prose a.btn { color: var(--btn-fg, #fff); text-decoration: none; }
.prose a.btn--ghost { color: inherit; }

.list { display: grid; gap: 0.5rem; }
.list li {
  position: relative;
  padding-inline-start: 1.4rem;
  color: var(--fg-muted);
  font-size: var(--step--1);
  line-height: 1.6;
}
.list li::before {
  content: "";
  position: absolute;
  inset-block-start: 0.62em;
  inset-inline-start: 0.25rem;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand-lift);
}
.list--check li::before {
  inset-block-start: 0.5em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: color-mix(in oklab, var(--brand-lift) 70%, transparent);
}

.note, .notice {
  padding: 1rem 1.15rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg-alt);
  font-size: var(--step--1);
  color: var(--fg-muted);
}
.notice {
  border-color: color-mix(in oklab, var(--brand) 35%, var(--line));
  background: var(--brand-tint);
}
.note strong, .notice strong { color: var(--fg); }

.section--sub { padding-block: clamp(2rem, 4vw, 3.25rem) 0; }
.section--sub > h2 {
  margin-bottom: 1.5rem;
  font-size: var(--step-2);
  scroll-margin-top: 6rem;
}
.section--sub > h2::after {
  content: "";
  display: block;
  width: 2.5rem; height: 3px;
  margin-block-start: 0.75rem;
  border-radius: 2px;
  background: var(--brand-lift);
}

/* ------------------------------------------------------- karty z opisem */
.spec-cards {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}
.spec-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.spec-card__media {
  display: grid;
  place-items: center;
  padding: 1rem;
  background: var(--bg-alt);
  border-block-end: 1px solid var(--line);
}
.spec-card__media img { width: auto; max-height: 9rem; }
.spec-card__body { padding: 1.1rem 1.25rem 1.35rem; }
.spec-card__body h4 { font-size: var(--step-0); margin-bottom: 0.4rem; }
.spec-card__body p { font-size: var(--step--1); color: var(--fg-muted); }
.spec-card__body p + p { margin-block-start: 0.5rem; }

.split {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  margin-block-start: 1.5rem;
}
@media (min-width: 58rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.split__media {
  margin: 0;
  padding: 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.diagram {
  margin: 1.5rem 0 0;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow-x: auto;
}
.diagram img { margin-inline: auto; }

.table-wrap { overflow-x: auto; margin-block-start: 1rem; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
}
td, th {
  padding: 0.6rem 0.8rem;
  border-block-end: 1px solid var(--line);
  text-align: start;
  color: var(--fg-muted);
}
tr:first-child td { font-weight: 650; color: var(--fg); }

/* ----------------------------------------------------------- produkty */
.pills {
  position: sticky;
  inset-block-start: calc(var(--header-h) + 0.5rem);
  z-index: 20;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding: 0.6rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  scrollbar-width: none;
}
.pills::-webkit-scrollbar { display: none; }
.pills ul { display: flex; gap: 0.35rem; }
.pills a {
  display: block;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--fg-muted);
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.pills a:hover { background: var(--brand-tint); color: var(--brand-lift); }

.product {
  scroll-margin-top: calc(var(--header-h) + 4.5rem);
  padding-block: clamp(2rem, 4vw, 3rem);
  border-block-start: 1px solid var(--line);
}
.product:first-of-type { border-block-start: 0; padding-block-start: 0; }
.product__head h2 {
  font-size: var(--step-2);
  margin-bottom: 1.5rem;
}
.product__grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
@media (min-width: 58rem) {
  .product__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
}
.product__media {
  margin: 0;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 2vw, 1.75rem);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.product__media img { width: auto; max-height: 22rem; }
.product__facts h4,
.specs h4 {
  margin-bottom: 0.75rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-lift);
}
.product__facts p { margin-bottom: 0.9rem; color: var(--fg-muted); }

.specs { margin-block-start: clamp(1.5rem, 3vw, 2rem); }
.spec {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
}
.spec + .spec { margin-block-start: 0.5rem; }
.spec > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  font-weight: 650;
  font-size: var(--step--1);
  cursor: pointer;
  list-style: none;
}
.spec > summary::-webkit-details-marker { display: none; }
.spec > summary svg { flex: none; transition: transform 0.2s var(--ease); color: var(--fg-muted); }
.spec[open] > summary { border-block-end: 1px solid var(--line); }
.spec[open] > summary svg { transform: rotate(180deg); }
.spec__body { padding: 1rem 1.1rem 1.15rem; }
.spec__body > * + * { margin-block-start: 0.75rem; }

/* ----------------------------------------------------------- partnerzy */
.partner-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  margin-block-start: 2.5rem;
}
.partner-card {
  display: grid;
  gap: 1rem;
  justify-items: center;
  padding: 1.75rem 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-weight: 650;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in oklab, var(--brand) 40%, var(--line));
}
.partner-card picture {
  display: grid;
  place-items: center;
  padding: 0.5rem 0.85rem;
  background: #fff;
  border-radius: 10px;
}
.partner-card img { width: 120px; height: auto; }
.partner-card__ext { margin-inline-start: 0.35rem; color: var(--fg-muted); }

/* ------------------------------------------------------------- kontakt */
.contact-layout {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (min-width: 58rem) {
  .contact-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); }
}
.contact-layout .contact__card {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.contact-layout .contact__row dt { color: var(--fg-muted); }
.contact-layout .contact__row dd { color: var(--fg); }
.contact-layout .contact__row dd a { color: var(--brand-lift); }
.contact-layout .prose p + p { margin-block-start: 1.25rem; }
.contact-layout .btn + .btn { margin-inline-start: 0.6rem; }

/* ------------------------------------------------------------ CTA band */
.cta-band {
  background: var(--chrome-bg);
  color: var(--chrome-fg);
}
.cta-band__inner {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}
@media (min-width: 50rem) {
  .cta-band__inner { grid-template-columns: minmax(0, 1fr) auto; }
}
.cta-band h2 { color: #fff; font-size: var(--step-2); }
.cta-band p { margin-block-start: 0.75rem; color: var(--chrome-fg-muted); max-width: 52ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------------------------------------------------------------- lightbox */
.gallery__hint {
  margin-bottom: 1.25rem;
  font-size: var(--step--1);
  color: var(--fg-muted);
}
.gallery__link {
  position: relative;
  display: block;
  cursor: zoom-in;
}
.gallery__zoom {
  position: absolute;
  inset-block-end: 0.6rem;
  inset-inline-end: 0.6rem;
  display: grid;
  place-items: center;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  background: color-mix(in oklab, var(--chrome-bg) 72%, transparent);
  backdrop-filter: blur(6px);
  color: #fff;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.gallery__link:hover .gallery__zoom,
.gallery__link:focus-visible .gallery__zoom { opacity: 1; transform: none; }

.lb {
  width: min(96vw, 84rem);
  max-width: none;
  max-height: 94dvh;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: visible;
}
.lb::backdrop {
  background: rgb(6 8 14 / 88%);
  backdrop-filter: blur(6px);
}
.lb[open] {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.35rem, 1.5vw, 1rem);
  animation: lb-in 0.18s var(--ease);
}
@keyframes lb-in {
  from { opacity: 0; transform: scale(0.985); }
}

.lb__figure {
  grid-column: 2;
  margin: 0;
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}
.lb__stage img {
  max-width: 100%;
  max-height: 82dvh;
  width: auto;
  border-radius: var(--r-md);
  box-shadow: 0 30px 70px -20px rgb(0 0 0 / 80%);
}
.lb__meta {
  font-size: var(--step--1);
  color: rgb(255 255 255 / 68%);
  font-variant-numeric: tabular-nums;
}

.lb__btn {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 50%;
  background: rgb(255 255 255 / 8%);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.lb__btn:hover { background: rgb(255 255 255 / 18%); border-color: rgb(255 255 255 / 40%); }
.lb__prev { grid-column: 1; }
.lb__next { grid-column: 3; }
.lb__close {
  position: fixed;
  inset-block-start: clamp(0.75rem, 2vw, 1.5rem);
  inset-inline-end: clamp(0.75rem, 2vw, 1.5rem);
}

@media (max-width: 40rem) {
  .lb[open] { grid-template-columns: minmax(0, 1fr); }
  .lb__figure { grid-column: 1; }
  .lb__prev, .lb__next {
    position: fixed;
    inset-block-end: 1.25rem;
    grid-column: 1;
  }
  .lb__prev { inset-inline-start: 1.25rem; }
  .lb__next { inset-inline-end: 1.25rem; }
  .lb__stage img { max-height: 72dvh; }
}
