/* =========================================================
   STAVCOM s.r.o. — site styles
   ========================================================= */

/* Archivo (self-hosted, variable wdth + wght) */
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('../fonts/archivo-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('../fonts/archivo-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;
}

:root {
  --blue: #2318d6;
  --blue-600: #1a10b8;
  --blue-900: #0d0a4a;
  --blue-50: #ecebfd;
  --ink: #101117;
  --ink-2: #3b3d47;
  --muted: #6d6f7a;
  --grey: #a3a3a8;
  --paper: #f5f3ef;
  --paper-2: #ebe8e2;
  --white: #ffffff;
  --line: rgba(16, 17, 23, 0.12);
  --line-light: rgba(255, 255, 255, 0.16);

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { display: block; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  font-weight: 900;
  font-stretch: 112%;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
}
.logo__stav { color: var(--blue); }
.logo__com { color: var(--grey); }
.logo--light .logo__stav { color: #fff; }
.logo--light .logo__com { color: rgba(255, 255, 255, 0.45); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.header.is-scrolled {
  background: rgba(245, 243, 239, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner {
  height: 100%;
  display: flex; align-items: center; gap: 32px;
}
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 8px 14px; border-radius: 999px; color: var(--ink-2);
  transition: background-color .2s, color .2s;
}
.nav a:hover { background: rgba(16, 17, 23, 0.06); color: var(--ink); }
.nav a.is-active { color: var(--blue); }

.header__phone {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: #fff;
  transition: background-color .2s;
}
.header__phone:hover { background: var(--blue); }
.header__phone svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }

.burger {
  display: none;
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  position: relative; margin-left: auto;
}
.burger span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-600); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--block { width: 100%; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  margin: 0 0 24px;
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }

.kicker {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 18px;
}
.kicker span {
  font-stretch: 112%; font-weight: 800; color: var(--blue);
  padding-right: 12px; border-right: 1px solid var(--line);
}
.kicker--light { color: rgba(255, 255, 255, 0.6); }
.kicker--light span { color: #fff; border-color: var(--line-light); }

.h2 {
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 800; font-stretch: 104%;
  line-height: 1.04; letter-spacing: -0.03em;
  margin: 0 0 24px;
  text-wrap: balance;
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(80px, 11vw, 140px); }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section__head--split {
  max-width: none;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
}
.section__head--split .h2 { margin-bottom: 0; }
.section__note { max-width: 360px; margin: 0; color: rgba(255, 255, 255, 0.65); font-size: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 88px));
  padding-bottom: clamp(64px, 8vw, 104px);
  overflow: hidden;
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 80% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 80% 30%, #000 0%, transparent 75%);
  opacity: .55;
}
.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.hero__title {
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 800; font-stretch: 104%;
  line-height: 0.98; letter-spacing: -0.04em;
  margin: 0 0 28px;
}
.hl { color: var(--blue); }
.hero__lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); max-width: 500px; margin: 0 0 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__media { position: relative; padding: 0 0 56px 40px; }
.hero__media figure { margin: 0; overflow: hidden; border-radius: var(--radius); }
.hero__main { aspect-ratio: 4 / 3.4; box-shadow: 0 30px 60px -30px rgba(13, 10, 74, 0.45); }
.hero__main img { width: 100%; height: 100%; object-fit: cover; }
.hero__sub {
  position: absolute; left: 0; bottom: 0; width: 42%;
  aspect-ratio: 4 / 3;
  border: 6px solid var(--paper);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.4);
}
.hero__sub img { width: 100%; height: 100%; object-fit: cover; }
.hero__card {
  position: absolute; right: 20px; bottom: 20px;
  display: flex; flex-direction: column; gap: 2px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 16px 20px; border-radius: 12px;
  font-size: 14px; color: var(--ink-2);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.25);
}
.hero__card strong { font-size: 18px; color: var(--ink); font-weight: 700; }
.hero__card-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--blue);
}
.hero__card-date { font-variant-numeric: tabular-nums; color: var(--muted); }

/* ---------- Ticker ---------- */
.ticker {
  background: var(--blue); color: #fff; overflow: hidden;
  padding-block: 18px; white-space: nowrap;
}
.ticker__track {
  display: inline-flex; align-items: center; gap: 28px;
  animation: ticker 40s linear infinite;
  font-weight: 700; font-stretch: 112%; font-size: 20px; letter-spacing: -0.01em; text-transform: uppercase;
}
.ticker__track i { width: 8px; height: 8px; background: rgba(255, 255, 255, 0.5); transform: rotate(45deg); flex: none; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Profil ---------- */
.profil__inner {
  display: grid; grid-template-columns: 0.9fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center;
}
.profil__media { position: relative; }
.profil__media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: var(--radius); }
.profil__badge {
  position: absolute; right: -20px; top: 32px;
  background: var(--blue); color: #fff; padding: 20px 24px; border-radius: 12px;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 40px -16px rgba(35, 24, 214, 0.6);
}
.profil__badge span { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; opacity: .7; }
.profil__badge strong { font-size: 26px; font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em; }
.profil .h2 { font-size: clamp(30px, 3.6vw, 46px); }
.profil__text > p { color: var(--ink-2); font-size: 18px; max-width: 560px; }

.values { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 4px; }
.values li {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 20px 0; border-top: 1px solid var(--line);
}
.values svg {
  width: 40px; height: 40px; padding: 9px; flex: none;
  border-radius: 10px; background: var(--blue-50);
  fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.values strong { display: block; font-size: 18px; font-weight: 700; }
.values span { color: var(--muted); font-size: 15px; }

/* ---------- Služby ---------- */
.sluzby { background: var(--white); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.service:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(13, 10, 74, 0.3); }
.service__img { aspect-ratio: 16 / 10; overflow: hidden; }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service:hover .service__img img { transform: scale(1.05); }
.service__body { position: relative; padding: 32px 28px 30px; flex: 1; }
.service__num {
  position: absolute; top: -26px; right: 24px;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue); color: #fff; font-weight: 800; font-stretch: 112%; font-size: 20px;
  border: 4px solid var(--paper);
}
.service h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 10px; line-height: 1.15; }
.service p { color: var(--ink-2); margin: 0 0 22px; font-size: 16px; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-2); background: var(--white);
}

/* ---------- Referencie ---------- */
.referencie { background: var(--ink); color: #fff; }
.projects {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(260px, auto);
  gap: 16px;
}
.project {
  position: relative; overflow: hidden; isolation: isolate;
  border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left;
  border-radius: var(--radius); background: #1d1f27; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 260px;
}
.project > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform 1s var(--ease);
}
.project::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(16, 17, 23, 0.35) 0%, rgba(16, 17, 23, 0) 28%, rgba(16, 17, 23, 0.2) 48%, rgba(16, 17, 23, 0.92) 100%);
  transition: background-color .4s;
}
.project:hover > img { transform: scale(1.06); }
.project--featured { grid-column: span 2; grid-row: span 2; min-height: 540px; }
.project--featured::after { background: linear-gradient(180deg, rgba(16, 17, 23, 0.3) 0%, rgba(16, 17, 23, 0) 25%, rgba(16, 17, 23, 0.35) 55%, rgba(16, 17, 23, 0.95) 100%); }

.project__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 18px; }
.tag {
  font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: var(--ink);
}
.project__count {
  font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px;
  background: rgba(16, 17, 23, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.project__body { display: flex; flex-direction: column; padding: 20px 64px 20px 20px; }
.project__loc { font-size: 13px; color: rgba(255, 255, 255, 0.7); font-weight: 500; }
.project__title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-top: 2px; }
.project__desc { font-size: 14px; color: rgba(255, 255, 255, 0.75); margin-top: 6px; }
.project--featured .project__body { padding: 32px 96px 32px 32px; }
.project--featured .project__title { font-size: clamp(30px, 3.4vw, 44px); font-stretch: 108%; font-weight: 800; letter-spacing: -0.03em; }
.project--featured .project__desc { font-size: 16px; max-width: 440px; }
.project__meta {
  display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--line-light); font-size: 15px; font-weight: 600;
}
.project__meta span { display: flex; flex-direction: column; }
.project__meta small { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, 0.6); text-transform: uppercase; letter-spacing: .06em; }
.project__open {
  position: absolute; right: 18px; bottom: 18px;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--ink);
  transition: background-color .3s, color .3s, transform .3s var(--ease);
}
.project__open svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.project:hover .project__open { background: var(--blue); color: #fff; transform: rotate(45deg); }
.project--featured .project__open { width: 56px; height: 56px; right: 28px; bottom: 28px; }

/* ---------- Postup ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  counter-reset: s;
}
.step { padding: 32px 28px 8px 0; border-top: 2px solid var(--ink); position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step::before {
  content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 4px var(--paper);
}
.step + .step::before { left: 28px; }
.step__n { font-weight: 800; font-stretch: 112%; color: var(--blue); font-size: 15px; letter-spacing: .02em; }
.step h3 { font-size: 22px; letter-spacing: -0.02em; margin: 10px 0 8px; font-weight: 700; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Kariéra ---------- */
.kariera { background: var(--paper-2); padding-block: clamp(64px, 8vw, 100px); }
.kariera__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.kariera .h2 { margin: 0; }
.empty {
  display: flex; align-items: center; gap: 20px;
  padding: 28px 32px; border-radius: var(--radius);
  border: 1.5px dashed rgba(16, 17, 23, 0.22); background: rgba(255, 255, 255, 0.5);
}
.empty svg { width: 48px; height: 48px; flex: none; padding: 11px; border-radius: 12px; background: var(--white); fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.empty p { margin: 0; font-size: 18px; font-weight: 500; color: var(--ink-2); }

/* ---------- Kontakt ---------- */
.kontakt {
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(255, 255, 255, 0.08), transparent 60%),
    var(--blue);
  color: #fff;
}
.kontakt__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.kontakt__primary { display: grid; gap: 4px; margin: 40px 0; }
.kontakt__big {
  display: flex; flex-direction: column; text-decoration: none;
  font-size: clamp(26px, 3vw, 38px); font-weight: 700; font-stretch: 106%; letter-spacing: -0.02em; line-height: 1.2;
  padding: 18px 0; border-bottom: 1px solid var(--line-light);
  transition: padding-left .3s var(--ease);
  overflow-wrap: anywhere;
}
.kontakt__big:hover { padding-left: 10px; }
.kontakt__big small { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, 0.6); font-stretch: 100%; }
.kontakt__details { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; }
.kontakt__details h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, 0.6); margin: 0 0 10px; }
.kontakt__details p { margin: 0; font-size: 16px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; font-size: 15px; }
.facts dt { color: rgba(255, 255, 255, 0.6); }
.facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.kontakt__reg { font-size: 13px; color: rgba(255, 255, 255, 0.55); margin: 32px 0 0; }

.form {
  background: var(--white); color: var(--ink);
  border-radius: calc(var(--radius) + 4px); padding: clamp(24px, 3.5vw, 40px);
  box-shadow: 0 40px 80px -30px rgba(13, 10, 74, 0.6);
}
.form h3 { font-size: 26px; letter-spacing: -0.02em; margin: 0 0 24px; font-weight: 700; }
.field { margin-bottom: 16px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field label em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--paper);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px var(--blue-50);
}
.field .is-invalid { border-color: #d22; }
.form__status { margin: 12px 0 0; font-size: 14px; color: var(--muted); min-height: 1.4em; }

.map {
  margin-top: clamp(48px, 7vw, 80px);
  border-radius: var(--radius); overflow: hidden; height: 340px;
  background: var(--blue-600);
}
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.7); padding-block: 40px; }
.footer__inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer__nav { display: flex; gap: 24px; flex-wrap: wrap; margin-left: auto; }
.footer__nav a { text-decoration: none; font-size: 15px; }
.footer__nav a:hover { color: #fff; }
.footer__copy { margin: 0; font-size: 14px; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(10, 10, 14, 0.96); color: #fff;
  display: none; flex-direction: column;
}
.lightbox[open] { display: flex; animation: lb-in .3s var(--ease); }
.lightbox::backdrop { background: transparent; }
@keyframes lb-in { from { opacity: 0; } }
.lightbox__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
}
.lightbox__title { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.lightbox__title strong { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lightbox__title span { font-size: 14px; color: rgba(255, 255, 255, 0.55); font-variant-numeric: tabular-nums; flex: none; }
.lightbox__close, .lightbox__nav {
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; flex: none;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.1); color: #fff;
  transition: background-color .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox__close svg, .lightbox__nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__stage {
  flex: 1; min-height: 0; position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 0 calc(var(--gutter) + 64px);
  touch-action: pan-y;
}
.lightbox__stage img {
  max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px;
  user-select: none; -webkit-user-drag: none;
  transition: opacity .25s;
}
.lightbox__stage img.is-loading { opacity: 0; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: var(--gutter); }
.lightbox__nav--next { right: var(--gutter); }
.lightbox__thumbs {
  display: flex; gap: 8px; padding: 14px var(--gutter) 18px; overflow-x: auto;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent;
}
.lightbox__thumbs button {
  flex: none; width: 84px; height: 63px; padding: 0; border: 2px solid transparent; border-radius: 6px;
  overflow: hidden; cursor: pointer; background: #222; opacity: .5;
  transition: opacity .2s, border-color .2s;
}
.lightbox__thumbs button:hover { opacity: .85; }
.lightbox__thumbs button[aria-current="true"] { opacity: 1; border-color: #fff; }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }
body.is-locked { overflow: hidden; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .ticker__track { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .header__phone span { display: none; }
  .header__phone { padding: 12px; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .project--featured { grid-column: span 2; grid-row: auto; min-height: 480px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(3)::before { left: 0; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .burger { display: block; }
  .header__phone { margin-left: auto; }
  .burger { margin-left: 4px; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--paper); padding: 8px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,.2);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a { font-size: 20px; font-weight: 600; padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a:hover { background: transparent; }
  .header.menu-open { background: var(--paper); }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { padding-left: 24px; padding-bottom: 40px; }

  .profil__inner { grid-template-columns: 1fr; }
  .profil__media img { aspect-ratio: 4 / 3; }
  .profil__badge { right: 16px; top: 16px; }

  .services { grid-template-columns: 1fr; max-width: 560px; }
  .section__head--split { flex-direction: column; align-items: flex-start; gap: 20px; }

  .kariera__inner { grid-template-columns: 1fr; gap: 24px; }
  .kontakt__grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .header__phone { display: none; }
  .hero__title br:first-of-type { display: none; }
  .hero__media { padding-left: 0; padding-bottom: 0; }
  .hero__sub { display: none; }
  .hero__card { right: 12px; bottom: 12px; padding: 12px 14px; }
  .hero__card strong { font-size: 16px; }
  .hero__cta .btn { flex: 1 1 100%; }

  .projects { grid-template-columns: 1fr; }
  .project--featured { grid-column: auto; min-height: 460px; }
  .project--featured .project__body { padding: 24px 24px 84px; }
  .project--featured .project__open { right: 24px; bottom: 24px; }
  .project__meta { gap: 10px 24px; }

  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step, .step + .step { padding: 28px 0 28px 28px; border-left: 0; border-top: 0; }
  .step { border-left: 2px solid var(--ink) !important; }
  .step::before, .step + .step::before, .step:nth-child(3)::before { left: -7px; top: 34px; }

  .empty { padding: 22px; flex-direction: column; align-items: flex-start; }
  .kontakt__details { grid-template-columns: 1fr; gap: 24px; }
  .field--row { grid-template-columns: 1fr; gap: 0; }
  .field--row > div + div { margin-top: 16px; }
  .footer__nav { margin-left: 0; }

  .lightbox__stage { padding: 0; }
  .lightbox__nav { display: none; }
  .lightbox__stage img { border-radius: 0; }
  .lightbox__thumbs button { width: 64px; height: 48px; }
}

/* ---------- Map placeholder (before consent) ---------- */
.map__placeholder {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 32px var(--gutter); text-align: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    var(--blue-600);
  background-size: 40px 40px, 40px 40px, auto;
}
.map__placeholder svg { width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.map__placeholder p { margin: 0; max-width: 460px; font-size: 15px; color: rgba(255, 255, 255, 0.75); }
.map__placeholder strong { display: block; color: #fff; font-size: 17px; margin-bottom: 4px; }
.map__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.btn--light { background: #fff; color: var(--blue); }
.btn--light:hover { background: var(--blue-50); }
.btn--outline-light { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn--outline-light:hover { border-color: #fff; }

/* ---------- Form note ---------- */
.form__note { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.form__note a { color: var(--blue); }

/* ---------- Footer legal ---------- */
.footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; width: 100%; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 14px; }
.footer__legal .footer__copy { margin-right: auto; }
.footer__legal a, .footer__legal button { color: rgba(255, 255, 255, 0.7); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-size: 14px; }
.footer__legal a:hover, .footer__legal button:hover { color: #fff; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; z-index: 80; left: 20px; bottom: 20px;
  width: min(440px, calc(100vw - 24px));
  background: var(--white); color: var(--ink);
  border-radius: 16px; padding: 22px 22px 18px;
  box-shadow: 0 24px 60px -20px rgba(13, 10, 74, 0.45), 0 0 0 1px var(--line);
  opacity: 0; transform: translateY(16px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.cookie.is-visible { opacity: 1; transform: none; }
.cookie__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cookie__head svg { width: 28px; height: 28px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cookie h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.cookie p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.cookie p a { color: var(--blue); }
.cookie__prefs { margin: 0 0 16px; border-top: 1px solid var(--line); }
.pref { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pref strong { display: block; font-size: 15px; }
.pref small { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; }
.cookie__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie__btn {
  padding: 12px 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 15px;
  transition: background-color .2s;
}
.cookie__btn:hover { background: var(--blue); }
.cookie__btn--wide { grid-column: 1 / -1; }
.cookie__link {
  grid-column: 1 / -1; justify-self: center;
  background: none; border: 0; padding: 6px 8px; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px;
}
.cookie__link:hover { color: var(--blue); }

.switch { position: relative; flex: none; width: 46px; height: 28px; cursor: pointer; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: inherit; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: #cfcfd6; transition: background-color .2s; pointer-events: none; }
.switch i::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform .2s var(--ease);
}
.switch input:checked + i { background: var(--blue); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 2px solid var(--blue); outline-offset: 2px; }
.switch.is-locked { cursor: not-allowed; opacity: .55; }

@media (max-width: 600px) {
  .cookie { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px 18px 14px; }
}

/* ---------- Legal page ---------- */
.legal-header { position: sticky; top: 0; z-index: 50; background: rgba(245, 243, 239, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.legal-header .container { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.legal-back:hover { color: var(--blue); }
.legal-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.legal { padding-block: clamp(48px, 8vw, 96px); }
.legal__inner { max-width: 780px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; font-stretch: 104%; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 12px; }
.legal__updated { color: var(--muted); font-size: 15px; margin: 0 0 40px; }
.legal__toc { background: var(--white); border-radius: var(--radius); padding: 22px 26px; margin: 0 0 48px; box-shadow: 0 0 0 1px var(--line); }
.legal__toc strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.legal__toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: 15px; }
.legal__toc a { color: var(--ink-2); text-decoration: none; }
.legal__toc a:hover { color: var(--blue); }
.legal h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 48px 0 12px; scroll-margin-top: 88px; }
.legal h2 span { color: var(--blue); font-stretch: 112%; font-weight: 800; margin-right: 6px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--blue); }
.legal__card { background: var(--white); border-radius: var(--radius); padding: 22px 26px; box-shadow: 0 0 0 1px var(--line); }
.legal__card p { margin: 0; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.legal-table th, .legal-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; background: var(--paper-2); }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table-wrap { overflow-x: auto; margin: 16px 0; }
@media (max-width: 600px) { .legal__toc ol { columns: 1; } }
