/* ==========================================================================
   Came & Built s.r.o. — stavební společnost
   Písmo Manrope, grafitová a betonová plocha, jediný akcent zelená #10A37F.
   ========================================================================== */

/* --- 0. Písmo (self-hosted, Manrope, SIL Open Font License 1.1) ---------- */
/* Proměnné písmo, tučnost 400–800. Diakritika je v podmnožině latin-ext.    */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../assets/fonts/manrope-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;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../assets/fonts/manrope-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;
}

/* --- 1. Tokeny ----------------------------------------------------------- */
:root {
  /* plocha */
  --ink:        #1b2127;
  --ink-soft:   #232b33;
  --ink-line:   #333c45;
  --paper:      #eceae6;
  --paper-warm: #e3e0da;
  --white:      #ffffff;

  /* text */
  --tx:         #1b2127;
  --tx-muted:   #575e66;
  --tx-on-ink:  #dcd9d4;
  --tx-on-ink-muted: #9aa1a9;

  /* linky výkresu */
  --line:       #cec9c1;
  --line-soft:  #dcd8d1;

  /* akcent — kontrasty ověřené podle WCAG AA */
  --accent:      #10a37f;  /* výplně, značky a tlačítka (bílý text — přání klienta) */
  --accent-text: #0a7057;  /* zelený text na světlém pozadí, 5,04 : 1              */
  --accent-dk:   #0b8566;  /* tlačítko při najetí ztmavne; bílý text na něm 4,6 : 1 */
  --accent-soft: rgba(16, 163, 127, .18);

  /* typografie */
  --ff: "Manrope", "Helvetica Neue", Arial, sans-serif;

  /* rytmus */
  --gut: 24px;
  --pad: 24px;
  --maxw: 1480px;
  --sec: clamp(72px, 9vw, 136px);

  /* pohyb */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (min-width: 768px)  { :root { --pad: 40px; --gut: 28px; } }
@media (min-width: 1200px) { :root { --pad: 64px; --gut: 32px; } }

/* --- 2. Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img, video, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

p { margin: 0 0 1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.u-sr {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  transform: translateY(-200%);
  background: var(--accent); color: var(--ink);
  padding: 12px 18px; font-weight: 600; text-decoration: none;
}
.skip:focus { transform: none; }

/* --- 3. Skelet ----------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gut);
}

.section { padding-block: var(--sec); }

/* dělicí čára sekce */
.hr {
  border: 0; border-top: 1px solid var(--line);
  margin: 0 0 clamp(28px, 4vw, 48px);
}

/* --- 4. Typografické třídy ----------------------------------------------- */
.t-display {
  font-size: clamp(34px, 9vw, 48px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
}
.t-h2   { font-size: clamp(30px, 4vw, 54px); }
.t-h3   { font-size: clamp(21px, 2vw, 28px); letter-spacing: -0.012em; }
.t-lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--tx-muted); }
.t-small{ font-size: 14px; line-height: 1.5; }

.t-meta {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--tx-muted);
}

/* --- 5. Tlačítka --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 30px;
  border: 1px solid transparent; border-radius: 0;
  font-weight: 650; font-size: 16px; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dk); color: var(--white); }

.btn-outline { background: transparent; color: var(--tx); border-color: var(--tx); }
.btn-outline:hover { background: var(--tx); color: var(--paper); }

/* Druhé tlačítko leží na běžícím videu, takže samotný obrys by místy mizel.
   Lehké ztmavení pod ním drží text čitelný, ať je za ním obloha nebo stromy. */
.btn-ghost {
  background: rgba(12, 16, 20, .34);
  color: var(--white);
  border-color: rgba(255, 255, 255, .72);
}
.btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* --- 6. Hlavička --------------------------------------------------------- */
/* Logo stojí přesně uprostřed. Tři sloupce 1fr | auto | 1fr ho tam drží,
   i když je pravá strana (odkazy, telefon, tlačítko) těžší než levá.
   Na telefonu: vlevo volání, uprostřed logo, vpravo menu. */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  color: var(--tx-on-ink);
  border-bottom: 1px solid var(--ink-line);
}
.hdr-in {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 20px;
  min-height: 72px;
}
@media (min-width: 1024px) { .hdr-in { min-height: 92px; } }

.hdr-call, .nav--l { grid-column: 1; grid-row: 1; justify-self: start; }
.hdr-logo          { grid-column: 2; grid-row: 1; justify-self: center; display: block; }
.hdr-r             { grid-column: 3; grid-row: 1; justify-self: end;
                     display: flex; align-items: center; gap: clamp(16px, 1.8vw, 28px); }

.hdr-logo img { height: 40px; width: auto; }
@media (min-width: 1024px) { .hdr-logo img { height: 54px; } }

/* volání — jen na telefonu a tabletu */
.hdr-call {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-left: -10px;
  border: 1px solid var(--ink-line);
  color: var(--white);
}
.hdr-call svg { width: 20px; height: 20px; }
@media (min-width: 1024px) { .hdr-call { display: none; } }

.nav { display: none; }
@media (min-width: 1024px) {
  .nav { display: flex; align-items: center; gap: clamp(18px, 2vw, 32px); }
}
.nav a {
  position: relative;
  font-size: 15.5px; font-weight: 600; text-decoration: none;
  color: var(--tx-on-ink);
  padding-block: 6px;
  transition: color .16s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s var(--ease);
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--white); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }

/* telefon: na menších počítačích jen ikona, na širokých i s číslem */
.hdr-tel {
  display: none; align-items: center; gap: 9px;
  font-weight: 700; font-size: 16px; color: var(--white); text-decoration: none;
  white-space: nowrap;
}
.hdr-tel svg { flex: none; width: 19px; height: 19px; color: var(--accent); }
.hdr-tel span { display: none; }
@media (min-width: 1024px) { .hdr-tel { display: inline-flex; } }
@media (min-width: 1360px) { .hdr-tel span { display: inline; } }
.hdr-tel:hover { color: var(--accent); }

.hdr-cta { display: none; }
@media (min-width: 1024px) { .hdr-cta { display: inline-flex; } }

.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-right: -10px;
  background: none; border: 1px solid var(--ink-line); cursor: pointer;
}
@media (min-width: 1024px) { .burger { display: none; } }
.burger span {
  position: relative; display: block; width: 20px; height: 1.5px;
  background: var(--tx-on-ink);
  transition: background-color .15s var(--ease);
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 1.5px;
  background: var(--tx-on-ink);
  transition: transform .22s var(--ease), top .22s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* mobilní panel */
.mnav {
  display: none;
  background: var(--ink); border-top: 1px solid var(--ink-line);
}
.mnav[data-open="true"] { display: block; }
@media (min-width: 1024px) { .mnav { display: none !important; } }
.mnav ul { list-style: none; margin: 0; padding: 8px 0 20px; }
.mnav li + li { border-top: 1px solid var(--ink-line); }
.mnav a {
  display: block; padding: 16px 0;
  font-size: 19px; font-weight: 600;
  color: var(--tx-on-ink); text-decoration: none;
}
.mnav .mnav-cta { display: grid; gap: 10px; padding-top: 20px; }

/* --- 7. Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(92svh, 860px);
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* Video se přehraje jednou a zůstane stát na dokončeném domě. O tom, co se
   zobrazí, rozhoduje třída na <html>, kterou nastaví krátký skript v hlavičce
   ještě před vykreslením — fotografie a video se tak nikdy nestřídají před
   očima návštěvníka. Přepínáme zobrazením, ne průhledností: to je spolehlivé
   a nic neprobliká. */
.hero-video {
  display: none;
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.m-hero-video .hero-video { display: block; }
.m-hero-video .hero-media picture { display: none; }

.hero-media::after {
  content: ""; position: absolute; inset: 0;
  /* Rovnoměrné ztmavení přes celý záběr + silnější vlevo, kde stojí text,
     + dole pod pruhem s čísly. Bílý doplňující text tak drží kontrast
     i nad nejsvětlejšími mraky; dům vpravo zůstává světlejší. */
  background:
    linear-gradient(90deg, rgba(12,16,20,.40) 0%, rgba(12,16,20,.14) 45%, rgba(12,16,20,0) 70%),
    linear-gradient(to top, rgba(12,16,20,.60) 0%, rgba(12,16,20,0) 32%),
    rgba(12,16,20,.42);
}
/* --- Telefon a tablet (do 1023 px) --------------------------------------
   Výškové video přestavby SOŠ Jarov: nahoře obloha, dole stavba. Text stojí
   nahoře na obloze na tmavém podkladu, který směrem dolů mizí, aby stavba
   ve videu zůstala čistá. Počítač má vlastní rozvržení výše a nemění se. */
@media (max-width: 1023px) {
  .hero { justify-content: flex-start; }
  /* .hero .hero-in — základní pravidlo .hero-in stojí v souboru níž
     a se stejnou váhou by tenhle odstup přebilo */
  .hero .hero-in {
    flex: 1 1 auto;
    padding-top: clamp(32px, 6vh, 64px);
    padding-bottom: 24px;
  }
  /* Telefon ořezává video jen po stranách, tablet nahoře a dole.
     72 % drží stavbu pod textem — začíná zhruba v 55 % výšky obrazovky. */
  .hero-media img, .hero-video { object-position: center 72%; }
  .hero-media::after {
    background: linear-gradient(to bottom,
      rgba(12,16,20,.84) 0%,
      rgba(12,16,20,.68) 30%,
      rgba(12,16,20,.30) 50%,
      rgba(12,16,20,0)   64%,
      rgba(12,16,20,0)   82%,
      rgba(12,16,20,.55) 100%);
  }
}
@media (max-width: 767px) and (max-height: 720px) {
  .hero .hero-in  { padding-top: 20px; }
  .hero .hero-sub { margin-top: 12px; }
  .hero .hero-cta { margin-top: 18px; }
}
/* tablet: bez stropu 860 px — jinak by video ořízlo tolik oblohy,
   že by stavba vjela pod text */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero { min-height: 92svh; }
}
/* telefon: nahoře jen nadpis, popis a jedno tlačítko, ať text nezasahuje
   do stavby; reference jsou v menu i hned pod úvodní obrazovkou */
@media (max-width: 559px) {
  .hero-cta .btn-ghost { display: none; }
}

.hero-in {
  position: relative; z-index: 2;
  padding-top: clamp(88px, 16vh, 180px);
  padding-bottom: clamp(28px, 4vw, 44px);
}

/* Na počítači text nestojí dole, ale uprostřed volné plochy mezi hlavičkou
   a pruhem s čísly — tedy na obloze, se stejnou mezerou nahoře i dole. */
@media (min-width: 1024px) {
  .hero-in {
    flex: 1 1 auto;
    display: flex; flex-direction: column; justify-content: center;
    padding-top: clamp(40px, 6vh, 80px);
    padding-bottom: clamp(40px, 6vh, 80px);
  }
}
.hero h1 { color: var(--white); max-width: none; }

/* Od 768 px drží nadpis levou část obrazu, aby zůstal dům volný. Každý span
   je samostatný řádek (čtyři), nejdelší je „Rekonstrukce“ — 6,42 em
   v Manrope 800. Pod 768 px se spany chovají jako běžná slova
   a zalomí se samy. */
@media (min-width: 768px) {
  .hero-title { font-size: clamp(36px, 6.2vw, 64px); }
  .hero-title > span { display: block; width: max-content; max-width: 100%; }
}
/* Tablet má stavbu dole, ne vedle textu — „komerčních prostor“ tam zůstává
   na jednom řádku (tři řádky), ať text nezabírá výšku nad stavbou. */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-title > span:nth-last-of-type(-n+2) { display: inline; }
}
@media (min-width: 1024px) {
  /* Ve videu pro počítač začíná budova zhruba na 38 % šířky. Nadpis má čtyři
     řádky, nejdelší („Rekonstrukce“) je 6,42 em — velikost ho drží vlevo
     od budovy na všech šířkách od 1024 do 1920 px. */
  /* Velikost dopočítaná tak, aby mezi nadpisem a budovou zůstalo aspoň
     40 px: 1024 px → 42 px, 1280 px → 58 px, od ~1380 px strop 64 px. */
  .hero-title { font-size: clamp(42px, calc(6.25vw - 22px), 64px); }
  .hero .hero-sub { max-width: 27ch; }
  /* Dvě tlačítka vedle sebe měří ~470 px a zajížděla by na budovu —
     na počítači proto pod sebou, stejně široká. */
  .hero .hero-cta { display: grid; width: max-content; gap: 12px; }
  .hero .hero-cta .btn { width: 100%; }
}
.hero-sub {
  margin: clamp(18px, 2.2vw, 26px) 0 0;
  font-size: clamp(17px, 1.5vw, 21px);
  color: rgba(255,255,255,.82);
  max-width: 46ch;
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: clamp(26px, 3.4vw, 40px);
}
@media (max-width: 559px) {
  .hero-cta .btn { flex: 1 0 100%; }
}

/* pruh čísel */
.stats {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255,255,255,.22);
  background: rgba(12,16,20,.34);
  backdrop-filter: blur(6px);
}
.stats-in {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stat { padding: 16px 0 18px 14px; }
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.22); }
@media (min-width: 720px) {
  .stat { padding: 26px 0 26px 28px; }
  .stat:first-child { padding-left: 0; }
}
.stat-n {
  font-size: clamp(21px, 3.4vw, 40px); font-weight: 700;
  line-height: 1; letter-spacing: -0.02em; color: var(--white);
  white-space: nowrap;
}
.stat-l {
  margin-top: 7px;
  font-size: clamp(11.5px, 1.1vw, 14px); line-height: 1.35;
  color: rgba(255,255,255,.72);
}
@media (max-width: 719px) {
  /* popisek má vždy místo na dva řádky, takže sloupce drží stejnou výšku */
  .stat-l { min-height: 2.7em; }
}

/* zástupná hodnota, kterou klient doplní */
.todo {
  background: var(--accent-soft);
  box-shadow: inset 0 -2px 0 var(--accent);
  padding-inline: 2px;
}

/* --- 8. O nás ----------------------------------------------------------- */
/* Podle návrhu klienta. Fotografie sahají až k okraji obrazovky, text drží
   hranu obsahu webu. Hranu počítáme z šířky sekce (jednotka cqw), ne z okna,
   aby ji neposunul posuvník prohlížeče. */
.onas {
  container-type: inline-size;
  --edge: max(var(--pad), calc((100cqw - var(--maxw)) / 2 + var(--pad)));
  background: var(--paper);
}

/* nadpisek se zelenou linkou */
.eyebrow {
  display: flex; align-items: center; gap: 16px;
  margin: 0 0 clamp(14px, 1.6vw, 22px);
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--tx-muted);
}
.eyebrow::before { content: ""; width: 40px; height: 2px; background: var(--accent); flex: none; }

.ab-row { display: grid; }
.ab-text {
  padding: clamp(48px, 7vw, 96px) var(--pad);
  align-self: center;
}
.ab-text > p:not(.eyebrow):not(.ab-claim) {
  max-width: 56ch; margin: 0;
  font-size: clamp(16px, 1.15vw, 17.5px); line-height: 1.65; color: var(--tx-muted);
}
.ab-text > p:not(.eyebrow):not(.ab-claim) + p { margin-top: 1em; }

.ab-title {
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.02;
}
.ab-title--sm { font-size: clamp(30px, 3.6vw, 54px); margin-bottom: clamp(18px, 2vw, 26px); }

.ab-claim {
  margin: 4px 0 clamp(24px, 2.6vw, 36px) !important;
  font-size: clamp(28px, 3.4vw, 52px);
  font-weight: 300; line-height: 1.1; letter-spacing: -0.025em;
  color: var(--tx);
  max-width: 14ch;
}

.ab-img { margin: 0; position: relative; overflow: hidden; background: var(--paper-warm); }
.ab-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

.btn-arrow { gap: 14px; margin-top: clamp(26px, 3vw, 38px); }
.btn-arrow svg { width: 20px; height: 20px; transition: transform .2s var(--ease); }
.btn-arrow:hover svg { transform: translateX(4px); }

/* pás čtyř vlastností */
.ab-feats {
  list-style: none; margin: 0; padding: clamp(32px, 4vw, 52px) 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 20px;
}
.ab-feat { display: flex; align-items: center; gap: 16px; }
.ab-feat svg { flex: none; width: 46px; height: 46px; color: var(--tx); }
.ab-feat h3 { font-size: clamp(15px, 1.15vw, 18px); font-weight: 700; letter-spacing: -0.01em; }
.ab-feat p { margin: 4px 0 0; font-size: clamp(13px, .95vw, 15px); color: var(--tx-muted); }

@media (max-width: 899px) {
  .ab-row--2 .ab-text { padding-top: clamp(36px, 7vw, 56px); }
  .ab-feats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
}
@media (max-width: 479px) {
  .ab-feat { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ab-feat svg { width: 38px; height: 38px; }
}

@media (min-width: 900px) {
  .ab-row--1 { grid-template-columns: minmax(0, 47fr) minmax(0, 53fr); }
  /* „Came & Built s.r.o.“ je 8,21 em široké — velikost drží nadpis na jednom
     řádku v celé šíři textového sloupce od 900 do 1920 px */
  .ab-row--1 .ab-title { font-size: clamp(36px, 3.9vw, 60px); }
  .ab-row--2 { grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); }
  .ab-row--1 .ab-text { padding-left: var(--edge); padding-right: clamp(32px, 4.5vw, 80px); }
  .ab-row--2 .ab-text { padding-right: var(--edge); padding-left: clamp(32px, 5vw, 96px); }
  /* fotografie vyplní celou výšku řádku, ať je text jakkoli dlouhý */
  .ab-img img { aspect-ratio: auto; position: absolute; inset: 0; }
  .ab-img--1 { min-height: clamp(440px, 40vw, 680px); }
  .ab-img--2 { min-height: clamp(460px, 42vw, 720px); }
  .ab-img--1 img { object-position: 62% center; }
}
@media (min-width: 1024px) {
  .ab-feats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .ab-feat { padding: 0 clamp(16px, 2.2vw, 40px); }
  .ab-feat:first-child { padding-left: 0; }
  .ab-feat + .ab-feat { border-left: 1px solid var(--line); }
}

/* --- 9. Služby ----------------------------------------------------------- */
.svc { margin-top: clamp(32px, 4vw, 52px); }
.svc-item {
  position: relative; grid-column: 1 / -1;
  display: block; overflow: hidden;
  background: var(--ink);
  text-decoration: none; color: var(--white);
}
@media (min-width: 620px)  { .svc-item { grid-column: span 6; } }
@media (min-width: 1000px) {
  .svc-item { grid-column: span 3; }
  .svc-item--wide { grid-column: span 6; }
}
.svc-item img {
  width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: 1 / 1;
  filter: grayscale(1) contrast(1.02) brightness(1.02);
  transition: filter .4s var(--ease), transform .5s var(--ease);
}
.svc-item--wide img { aspect-ratio: 16 / 9; }
@media (max-width: 619px) { .svc-item img, .svc-item--wide img { aspect-ratio: 3 / 2; } }
.svc-item:hover img, .svc-item:focus-visible img {
  filter: grayscale(0) contrast(1) brightness(1);
  transform: scale(1.03);
}
.svc-body {
  position: absolute; inset: auto 0 0 0;
  padding: clamp(18px, 2vw, 26px);
  background: linear-gradient(to top, rgba(12,16,20,.94) 0%, rgba(12,16,20,.74) 45%, rgba(12,16,20,0) 100%);
}
.svc-body h3 { font-size: clamp(18px, 1.5vw, 23px); }
.svc-body p {
  margin: 8px 0 0; max-width: 42ch;
  font-size: 14.5px; line-height: 1.45; color: rgba(255,255,255,.78);
}

/* --- 10. Přednosti ------------------------------------------------------- */
/* Tmavý pruh uprostřed světlé stránky. Přednosti nejsou tabulka údajů,
   ale pět slibů — proto nesou hlavní váhu písmem, ne rámečky. Popis stojí
   hned vedle názvu, ne přes půl obrazovky, aby je oko četlo jako jednu větu. */
.adv {
  background: var(--ink);
  color: var(--tx-on-ink);
}
.adv h2 { color: var(--white); }
.adv .t-lead { color: var(--tx-on-ink-muted); }

.adv-head  { grid-column: 1 / -1; }
.adv-intro { grid-column: 1 / -1; margin: 18px 0 0; }
@media (min-width: 900px) {
  .adv-head  { grid-column: 1 / span 5; }
  .adv-intro { grid-column: 7 / span 6; margin: 0; align-self: end; }
}

.adv-list { margin: clamp(40px, 5vw, 68px) 0 0; }

.adv-row {
  position: relative;
  display: grid; gap: 10px 32px;
  padding: clamp(22px, 2.6vw, 34px) 0 clamp(22px, 2.6vw, 34px) 0;
  border-top: 1px solid var(--ink-line);
  transition: padding-left .28s var(--ease);
}
.adv-row:last-child { border-bottom: 1px solid var(--ink-line); }
@media (min-width: 900px) { .adv-row { grid-template-columns: minmax(0, 9fr) minmax(0, 11fr); } }

/* okrová značka na levém okraji řádku — vyjede při najetí */
.adv-row::before {
  content: "";
  position: absolute; left: 0; top: -1px; bottom: -1px;
  width: 3px; background: var(--accent);
  transform: scaleY(0); transform-origin: top;
  transition: transform .28s var(--ease);
}
@media (hover: hover) {
  .adv-row:hover::before { transform: scaleY(1); }
  .adv-row:hover { padding-left: 22px; }
}

.adv-row dt {
  font-weight: 700;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.02; letter-spacing: -0.02em;
  color: var(--white);
}
.adv-row dd {
  margin: 0; align-self: center;
  max-width: 46ch;
  color: var(--tx-on-ink-muted);
  font-size: clamp(15.5px, 1.2vw, 17px); line-height: 1.55;
}

/* --- 11. Před a po ------------------------------------------------------- */
.ba-note { grid-column: 1 / -1; margin-top: 18px; }
@media (min-width: 900px) { .ba-note { grid-column: 7 / span 6; margin-top: 0; align-self: end; } }
.ba-head { grid-column: 1 / -1; }
@media (min-width: 900px) { .ba-head { grid-column: 1 / span 6; } }

/* posuvník */
.ba-block { margin: clamp(34px, 4vw, 54px) 0 0; }

.ba {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none; -webkit-user-select: none;
}
.ba img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 9; object-fit: cover;
  pointer-events: none;
}
@media (max-width: 700px) { .ba img { aspect-ratio: 4 / 3; } }

/* fotografie „po" drží výšku bloku, „před" leží přesně na ní a ořezává se */
.ba-before {
  position: absolute; inset: 0;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}
.ba-before img { height: 100%; }

.ba-handle {
  position: absolute; top: 0; bottom: 0;
  left: var(--pos, 50%);
  width: 2px; background: var(--accent);
  transform: translateX(-1px);
  pointer-events: none;
}
.ba-knob {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 54px; height: 54px;
  display: grid; place-items: center;
  background: var(--accent); color: var(--ink);
  border: 0; border-radius: 50%; cursor: ew-resize;
  pointer-events: auto;
  box-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.ba-knob svg { width: 22px; height: 22px; }
.ba-tag {
  position: absolute; top: 16px;
  padding: 7px 13px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  background: rgba(12,16,20,.72); color: var(--white);
  pointer-events: none;
}
.ba-tag--l { left: 16px; }
.ba-tag--r { right: 16px; }
.ba-cap {
  display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline;
  margin-top: 16px;
}
.ba-cap h3 { font-size: clamp(18px, 1.5vw, 22px); }

/* dvojice vedle sebe */
.pairs { margin-top: clamp(40px, 5vw, 64px); }
.pair { grid-column: 1 / -1; }
@media (min-width: 760px) { .pair { grid-column: span 4; } }
.pair-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.pair-imgs figure { position: relative; margin: 0; }
.pair-imgs img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.pair-imgs figcaption {
  position: absolute; left: 0; bottom: 0;
  padding: 5px 9px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  background: rgba(12,16,20,.74); color: var(--white);
}
.pair h3 { margin-top: 14px; font-size: 17.5px; }
.pair p { margin: 5px 0 0; font-size: 14.5px; color: var(--tx-muted); }

/* --- 12. Realizace ------------------------------------------------------- */
.ref { margin-top: clamp(32px, 4vw, 52px); }
.ref-card {
  grid-column: 1 / -1;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  background: var(--paper-warm);
}
@media (min-width: 820px) { .ref-card { grid-column: span 6; } }
.ref-media { position: relative; overflow: hidden; }
.ref-media img {
  width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform .6s var(--ease);
}
.ref-card:hover .ref-media img,
.ref-card:focus-visible .ref-media img { transform: scale(1.035); }

.ref-body { padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; flex: 1; }
.ref-body h3 { font-size: clamp(21px, 2vw, 29px); }
.ref-body > p { margin: 14px 0 0; font-size: 15.5px; color: var(--tx-muted); }
.ref-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px; margin: 22px 0 0;
  padding-top: 20px; border-top: 1px solid var(--line);
}
@media (min-width: 520px) { .ref-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ref-facts dt { font-size: 12.5px; color: var(--tx-muted); }
.ref-facts dd { margin: 4px 0 0; font-size: 15px; font-weight: 600; }
.ref-more {
  margin: 24px 0 0; padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 15.5px; font-weight: 600; color: var(--accent-text);
}
.ref-card:hover .ref-more { text-decoration: underline; }
.ref-body { /* popis roste, poznámka drží dole */ }
.ref-body > .ref-more { margin-top: auto; }

/* --- 13. Spolupráce ------------------------------------------------------ */
.steps { margin-top: clamp(32px, 4vw, 52px); counter-reset: step; }
.step { grid-column: 1 / -1; padding-top: 22px; border-top: 2px solid var(--ink); }
@media (min-width: 680px) { .step { grid-column: span 6; } }
@media (min-width: 1040px) { .step { grid-column: span 3; } }
.step-n {
  display: block;
  font-size: 13px; font-weight: 700; letter-spacing: .08em;
  color: var(--accent-text);
}
.step h3 { margin-top: 12px; font-size: clamp(18px, 1.5vw, 22px); }
.step p { margin: 10px 0 0; font-size: 15px; color: var(--tx-muted); }

/* --- 14. Kontakt --------------------------------------------------------- */
.contact {
  background: var(--ink);
  color: var(--tx-on-ink);
}
.contact h2, .contact h3 { color: var(--white); }
.contact .hr { border-color: var(--ink-line); }
.contact .t-lead { color: var(--tx-on-ink-muted); }

.form-col { grid-column: 1 / -1; }
.info-col { grid-column: 1 / -1; margin-top: 56px; }
@media (min-width: 900px) {
  .form-col { grid-column: 1 / span 7; }
  .info-col { grid-column: 9 / span 4; margin-top: 0; }
}

.form { margin-top: clamp(26px, 3vw, 38px); }
.fields { display: grid; gap: 22px; }
@media (min-width: 620px) { .fields { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--tx-on-ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px;
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  border-radius: 0;
  color: var(--white);
  transition: border-color .16s var(--ease), background-color .16s var(--ease);
}
.field textarea { min-height: 132px; resize: vertical; }
.field select { appearance: none; background-image: none; cursor: pointer; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #47525c; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); background: #27303a; outline: none;
}
.field input::placeholder, .field textarea::placeholder { color: #737b84; }
.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea { border-color: #e0674a; }
.field-err { font-size: 13px; color: #f0907a; min-height: 0; }
.field-err:empty { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start;
  margin-top: 24px;
}
.consent input {
  appearance: none; -webkit-appearance: none;
  flex: none; width: 22px; height: 22px; margin: 1px 0 0;
  background: var(--ink-soft); border: 1px solid #4a545e; cursor: pointer;
}
.consent input:checked {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b2127' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l5 5 10-11'/%3E%3C/svg%3E") center / 76% no-repeat;
  border-color: var(--accent);
}
.consent label { font-size: 14.5px; line-height: 1.45; color: var(--tx-on-ink-muted); cursor: pointer; }
.consent label a { color: var(--tx-on-ink); }
.consent[data-invalid="true"] input { border-color: #e0674a; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 28px; }
.form-msg { font-size: 15px; line-height: 1.45; }
.form-msg[data-state="ok"]   { color: #86d39b; }
.form-msg[data-state="err"]  { color: #f0907a; }
.form[data-busy="true"] .btn-primary { opacity: .6; pointer-events: none; }

/* kontaktní osoby */
.person { padding: 22px 0; border-top: 1px solid var(--ink-line); }
.person:first-of-type { border-top: 2px solid var(--accent); }
.person h3 { font-size: 19px; }
.person-role { margin: 4px 0 12px; font-size: 13.5px; color: var(--tx-on-ink-muted); }
.person a {
  display: block; font-size: 15.5px; text-decoration: none; color: var(--tx-on-ink);
  padding: 3px 0; word-break: break-word;
}
.person a:hover { color: var(--accent); }
.area { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--ink-line); }
.area p { font-size: 15px; color: var(--tx-on-ink-muted); }

/* --- 15. Patička --------------------------------------------------------- */
.ftr {
  background: var(--ink); color: var(--tx-on-ink-muted);
  border-top: 1px solid var(--ink-line);
  padding-block: clamp(48px, 6vw, 72px) 0;
}
.ftr-col { grid-column: 1 / -1; }
@media (min-width: 700px)  { .ftr-col { grid-column: span 6; } }
@media (min-width: 1020px) {
  .ftr-brand { grid-column: span 4; }
  .ftr-col   { grid-column: span 2; }
  .ftr-col--wide { grid-column: span 4; }
}
.ftr-brand img { height: 42px; width: auto; margin-bottom: 20px; }
.ftr-brand p { font-size: 14.5px; margin: 0; }
.ftr-brand strong { color: var(--tx-on-ink); font-weight: 600; }
.ftr h2 {
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  color: var(--tx-on-ink); margin-bottom: 16px;
}
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li + li { margin-top: 9px; }
.ftr a { font-size: 14.5px; text-decoration: none; word-break: break-word; }
.ftr a:hover { color: var(--accent); }
.ftr-btm {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  margin-top: clamp(40px, 5vw, 60px); padding-block: 24px;
  border-top: 1px solid var(--ink-line);
  font-size: 13.5px;
}

/* --- 16. Nástup úvodní obrazovky ----------------------------------------- */
/* Pořadí: slova nadpisu vyjedou zespodu jedno po druhém → doplňující text
   a tlačítka → pruh s čísly, která se rozpočítají. Kdo má v systému vypnuté
   animace, uvidí vše rovnou v konečné podobě. */

/* Slova nadpisu rozdělí js/main.js. Každé slovo sedí v ořezové masce;
   odsazení masky nechává místo pro háčky, kroužky a dolní tahy písmen. */
.hw   { display: inline-block; overflow: hidden; vertical-align: bottom;
        padding: .14em .03em .22em; margin: -.14em -.03em -.22em; }
.hw-i { display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  /* než skript nadpis rozdělí, je skrytý — jinak by bliknul celý a pak
     zmizel; pojistka ho po 3 s ukáže, i kdyby skript vůbec neběžel */
  .m-anim .hero-title:not(.is-split) { visibility: hidden; animation: hw-pojistka 0s 3s forwards; }
  @keyframes hw-pojistka { to { visibility: visible; } }

  .hero-title.is-split .hw-i { transform: translateY(125%); }
  .hero-title.is-on .hw-i {
    transform: none;
    transition: transform .95s cubic-bezier(.19, 1, .22, 1);
    transition-delay: calc(var(--i, 0) * 75ms + 120ms);
  }

  .hero-media img { animation: heroIn 1.4s var(--ease) both; }
  .m-hero-video .hero-media img { animation: none; }

  .hero-in > :not(.hero-title) { animation: riseIn .8s var(--ease) both; }
  .hero-in > :nth-child(2) { animation-delay: .62s; }
  .hero-in > :nth-child(3) { animation-delay: .76s; }
  .stats { animation: fadeIn .7s var(--ease) .9s both; }

  @keyframes heroIn { from { transform: scale(1.07); } to { transform: scale(1); } }
  @keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
}

/* --- 17. Tisk ------------------------------------------------------------ */
@media print {
  .hdr, .mnav, .hero-cta, .form { display: none; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   18. Stránka realizace
   ========================================================================== */
.crumbs {
  padding-block: 22px;
  font-size: 13.5px; color: var(--tx-muted);
  border-bottom: 1px solid var(--line);
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--tx); text-decoration: underline; }
.crumbs span { padding-inline: 8px; color: var(--line); }

.proj-head { padding-block: clamp(40px, 5vw, 68px) clamp(28px, 3vw, 40px); }
.proj-head h1 { font-size: clamp(32px, 4.4vw, 58px); max-width: 20ch; }
.proj-lead { margin-top: clamp(18px, 2vw, 26px); max-width: 60ch; }

.proj-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px; margin: clamp(30px, 3.4vw, 44px) 0 0;
  padding-top: clamp(24px, 2.6vw, 32px);
  border-top: 1px solid var(--line);
}
@media (min-width: 720px) { .proj-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.proj-facts dt { font-size: 12.5px; color: var(--tx-muted); }
.proj-facts dd {
  margin: 6px 0 0;
  font-size: clamp(16px, 1.4vw, 19px); font-weight: 600;
}

.proj-cover { margin: 0 0 clamp(56px, 7vw, 96px); }
.proj-cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 640px) { .proj-cover img { aspect-ratio: 4 / 3; } }

.proj-sec { padding-block: 0 clamp(56px, 7vw, 96px); }
.proj-sec > h2 { font-size: clamp(26px, 3vw, 40px); margin-bottom: clamp(24px, 3vw, 36px); }

/* Zadání / výsledek vedle sebe */
.proj-cols { display: grid; gap: clamp(28px, 3vw, 40px); }
@media (min-width: 860px) { .proj-cols { grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 72px); } }
.proj-col h3 {
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  color: var(--tx-muted); padding-bottom: 12px; margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.proj-col p { font-size: 16.5px; }

/* Fotogalerie */
.gal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .gal { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
.gal a {
  display: block; position: relative; overflow: hidden;
  background: var(--paper-warm); cursor: zoom-in;
}
.gal img {
  width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform .5s var(--ease);
}
.gal a:hover img, .gal a:focus-visible img { transform: scale(1.04); }

/* Provedené práce */
.works { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.works li {
  padding: 11px 18px;
  border: 1px solid var(--line);
  font-size: 15px; font-weight: 600;
  background: var(--paper-warm);
}

/* Výzva na konci */
.proj-cta { background: var(--ink); color: var(--tx-on-ink); }
.proj-cta h2 { color: var(--white); font-size: clamp(26px, 3.2vw, 44px); max-width: 18ch; }
.proj-cta p { margin: 18px 0 0; max-width: 52ch; color: var(--tx-on-ink-muted); }
.proj-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 3vw, 36px); }

/* Přechod mezi realizacemi */
.proj-nav {
  display: flex; flex-wrap: wrap; gap: 14px 24px;
  justify-content: space-between; align-items: center;
  padding-block: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line);
}
.proj-nav a { font-size: 15.5px; font-weight: 600; text-decoration: none; }
.proj-nav a:hover { color: var(--accent-text); text-decoration: underline; }
.proj-nav span { color: var(--tx-muted); font-size: 15.5px; }

/* ==========================================================================
   19. Lightbox
   ========================================================================== */
.lb {
  position: fixed; inset: 0; z-index: 300;
  display: none;
  background: rgba(10, 13, 16, .96);
}
.lb[data-open="true"] { display: flex; flex-direction: column; }
.lb-top {
  flex: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px clamp(16px, 3vw, 28px);
  color: var(--tx-on-ink);
}
.lb-count { font-size: 14px; font-variant-numeric: tabular-nums; }
.lb-stage {
  flex: 1 1 auto;
  min-height: 0;              /* bez toho by fotografie roztáhla řádek a zalezla pod tlačítka */
  display: flex; align-items: center; justify-content: center;
  padding: 0 clamp(8px, 2vw, 24px);
}
.lb-stage img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
}
.lb-bottom {
  flex: none;
  display: flex; justify-content: center; gap: 12px;
  padding: 16px clamp(16px, 3vw, 28px) clamp(20px, 3vw, 32px);
}
.lb-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 52px; height: 52px; padding: 0 16px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .28);
  color: var(--white);
  cursor: pointer;
  transition: background-color .16s var(--ease), border-color .16s var(--ease);
}
.lb-btn:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .5); }
.lb-btn svg { width: 22px; height: 22px; }
body[data-lb="open"] { overflow: hidden; }

/* ==========================================================================
   20. Přehled realizací a navazující drobnosti
   ========================================================================== */

/* nadpis sekce realizací a vpravo tlačítko „Všechny realizace“ */
.ref-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px 32px;
}

/* krátký úvod pod nadpisem sekce na stránce realizace */
.proj-sub { margin: calc(-1 * clamp(8px, 1.2vw, 16px)) 0 clamp(24px, 3vw, 36px); max-width: 60ch; }
.proj-sec .ba-block { margin-top: 0; }

.list-head { padding-block: clamp(40px, 5vw, 68px) clamp(32px, 4vw, 52px); }
.list-head h1 { font-size: clamp(34px, 5vw, 64px); font-weight: 800; letter-spacing: -0.03em; }
.list-head .t-lead { margin-top: clamp(16px, 2vw, 22px); max-width: 58ch; }
.list-count {
  margin: 22px 0 0;
  font-size: 14px; font-weight: 700; color: var(--accent-text);
}

/* Každá realizace je široký řádek: velká fotografie a vedle ní popis.
   Řádky se střídají, aby se dlouhý seznam nečetl jako tabulka. */
.case {
  display: grid; gap: clamp(22px, 3.4vw, 56px);
  align-items: center;
  padding-block: clamp(36px, 5vw, 72px);
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) {
  .case { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .case:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .case:nth-child(even) .case-media { order: 2; }
}

.case-media { position: relative; display: block; overflow: hidden; background: var(--paper-warm); }
.case-media img {
  width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform .6s var(--ease);
}
.case:hover .case-media img { transform: scale(1.03); }
.case-tags {
  position: absolute; left: 14px; bottom: 14px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.case-tags span {
  padding: 6px 11px;
  font-size: 12.5px; font-weight: 700;
  background: rgba(12, 16, 20, .76); color: var(--white);
}

.case-body h2 { font-size: clamp(26px, 2.8vw, 40px); }
.case-body h2 a { text-decoration: none; }
.case-body h2 a:hover { color: var(--accent-text); }
.case-body > p { margin: 14px 0 0; color: var(--tx-muted); font-size: 16px; }

.case-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px; margin: 22px 0 0;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.case-facts dt { font-size: 12.5px; color: var(--tx-muted); }
.case-facts dd { margin: 4px 0 0; font-size: 15px; font-weight: 600; }

.case .works { margin-top: 20px; }
.works--sm { gap: 8px; }
.works--sm li { padding: 7px 12px; font-size: 13.5px; }
.works--sm .works-more { background: none; color: var(--tx-muted); border-style: dashed; }

.case-body .btn { margin-top: 26px; }
.list + .proj-cta { margin-top: clamp(24px, 3vw, 40px); }
