:root {
  --bg: #08080a;
  --ink: #ece8e1;
  --muted: #8f8b84;
  --faint: #55524d;
  --line: rgba(236, 232, 225, 0.12);
  --accent: #f68338;
  --peach: #ffd2b0;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter Tight', system-ui, sans-serif;
  --gutter: clamp(20px, 4.5vw, 72px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* tón pozadí podle denní doby návštěvníka (nastavuje main.js) */
html { --daylight: rgba(255, 240, 225, 0.04); }
html[data-daypart='rano'] { --daylight: rgba(255, 196, 150, 0.09); }
html[data-daypart='den'] { --daylight: rgba(255, 240, 225, 0.05); }
html[data-daypart='vecer'] { --daylight: rgba(246, 131, 56, 0.1); }
html[data-daypart='noc'] { --daylight: rgba(96, 112, 255, 0.07); }

body {
  margin: 0;
  background: radial-gradient(120% 70% at 50% -20%, var(--daylight), transparent 65%) fixed, var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: var(--bg); }

a { color: inherit; }

#thread {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

main, .foot { position: relative; z-index: 1; }

/* filmové zrno přes celou stránku: z černé dělá materiál místo plochy */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  z-index: 60;
  /* předpočítaný šum (assets/img/grain.png), SVG filtr by se přepočítával při každém snímku */
  background-image: url(/assets/img/grain.png);
  opacity: 0.035;
  will-change: transform;
  pointer-events: none;
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(-1%, -2%); }
}
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }

main { transition: opacity 0.38s ease, filter 0.38s ease; }
/* náhled webu v úvodu reference nebo projektu: sedí uvnitř zářícího rámu vlákna
   (main.js podle jeho polohy nastaví, kam vlákno rám nakreslí) a naklání se za myší */
.frame-shot {
  position: absolute;
  z-index: 1;
  right: max(var(--gutter), 6vw);
  top: 50%;
  width: min(36vw, 620px);
  aspect-ratio: 1.52;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #111115;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transform: translateY(-50%) perspective(1400px) rotateY(var(--ry, -8deg)) rotateX(var(--rx, 4deg));
  transition: transform 0.6s var(--ease);
}
.frame-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.case-hero { position: relative; }
@media (max-width: 900px) {
  /* užší, aby se zářící rám kolem vešel na šířku telefonu */
  .frame-shot { position: relative; right: auto; top: auto; width: 78%; margin: 48px auto 8px; transform: perspective(1000px) rotateY(var(--ry, -6deg)) rotateX(var(--rx, 3deg)); }
}

/* detail vlastního projektu: text v úzkém sloupci, vpravo zůstane místo pro vlákno */
.project-body { max-width: 680px; margin-top: 56px; }

/* rychlost načtení v patičce */
/* ---------- Živý chat (assets/js/chat.js) ---------- */
.wchat { position: fixed; right: 16px; bottom: 10px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font-family: var(--sans); }
.wchat[hidden] { display: none; }
.wchat__bubble {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 8px 13px 8px 11px; border: 0; border-radius: 999px;
  background: rgba(14, 14, 18, 0.86); box-shadow: inset 0 0 0 1px var(--line), 0 12px 40px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--muted); font: 500 12px/1 var(--sans); cursor: pointer; transition: box-shadow 0.3s, transform 0.3s var(--ease);
}
.wchat__bubble:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(246, 131, 56, 0.6), 0 14px 44px rgba(0, 0, 0, 0.5); }
.wchat__bubble b { color: var(--ink); font-weight: 600; }
.wchat__bubble i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.wchat__bubble.is-online i { background: #3ddc84; animation: wchat-live 2s ease-out infinite; }
@keyframes wchat-live { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.55); } 70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.wchat__bubble em { position: absolute; top: -6px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #140b04; font: 700 11px/20px var(--sans); font-style: normal; text-align: center; }
.wchat.is-open .wchat__bubble { display: none; }
.wchat__panel {
  display: flex; flex-direction: column; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px));
  border-radius: 20px; overflow: hidden;
  background: rgba(12, 12, 15, 0.94); box-shadow: inset 0 0 0 1px var(--line), 0 24px 70px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  animation: wchat-in 0.35s var(--ease);
}
.wchat__panel[hidden] { display: none; }
@keyframes wchat-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.wchat__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 18px 14px; border-bottom: 1px solid var(--line); }
.wchat__head b { display: block; font: 400 26px/1.1 var(--serif); color: var(--ink); }
.wchat__head span { font-size: 12px; color: var(--muted); }
.wchat__close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(236, 232, 225, 0.08); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.wchat__msgs { flex: 1; overflow-y: auto; padding: 16px; }
.wchat__msg { display: flex; margin-bottom: 8px; }
.wchat__msg p { max-width: 82%; margin: 0; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.wchat__msg--op p { background: rgba(236, 232, 225, 0.08); color: var(--ink); border-bottom-left-radius: 4px; }
.wchat__msg--visitor { justify-content: flex-end; }
.wchat__msg--visitor p { background: var(--accent); color: #140b04; border-bottom-right-radius: 4px; }
.wchat__msg--system { justify-content: center; }
.wchat__msg--system p { max-width: 100%; background: none; color: var(--muted); font-size: 12.5px; text-align: center; }
.wchat__msg a { color: inherit; }
.wchat__typing { margin: 0 16px 6px; font-size: 12px; color: var(--muted); }
.wchat__typing[hidden], .wchat__contact[hidden] { display: none; }
.wchat__contact, .wchat__form { display: flex; gap: 8px; padding: 0 12px 10px; }
.wchat__contact input, .wchat__form textarea { flex: 1; min-width: 0; resize: none; padding: 11px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(236, 232, 225, 0.05); color: var(--ink); font: 14px/1.4 var(--sans); }
.wchat__contact input:focus, .wchat__form textarea:focus { outline: none; border-color: var(--accent); }
.wchat__contact button, .wchat__form button { flex: none; min-width: 44px; padding: 0 14px; border: 0; border-radius: 14px; background: var(--ink); color: var(--bg); font: 700 15px/1 var(--sans); cursor: pointer; }
.wchat__contact button:hover, .wchat__form button:hover { background: var(--accent); }
.wchat__legal { margin: 0; padding: 0 16px 12px; font-size: 11px; color: var(--muted); }
.wchat__legal a { color: inherit; }
/* okraj bubliny i okna chatu je zářící vlákno: světlo po něm obíhá a dýchá, jako vlákno webu */
@property --wthread { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.wchat__bubble, .wchat__panel { position: relative; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); }
.wchat__panel { overflow: visible; }
.wchat__bubble::before, .wchat__panel::before,
.wchat__bubble::after, .wchat__panel::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--wthread),
    rgba(246, 131, 56, 0.22) 0deg, rgba(246, 131, 56, 0.22) 200deg,
    #f68338 290deg, #ffe3cc 322deg, #ff9a4d 338deg, rgba(246, 131, 56, 0.22) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: wthread-run 4.5s linear infinite, wthread-breathe 2.6s ease-in-out infinite;
  pointer-events: none;
}
/* rozmazaná kopie dělá kolem linky záři */
.wchat__bubble::after, .wchat__panel::after { inset: -3px; padding: 4px; filter: blur(7px); opacity: 0.7; }
@keyframes wthread-run { to { --wthread: 360deg; } }
@keyframes wthread-breathe { 50% { opacity: 0.55; } }
/* když nejsme online (rozběhnutá konverzace), vlákno zešedne a zpomalí */
.wchat__bubble:not(.is-online)::before { animation-duration: 9s, 2.6s; filter: grayscale(1); }
.wchat__bubble:not(.is-online)::after { animation-duration: 9s, 2.6s; filter: blur(7px) grayscale(1); }
.wchat__bubble:hover { box-shadow: 0 18px 54px rgba(246, 131, 56, 0.25); }
@media (prefers-reduced-motion: reduce) {
  .wchat__bubble::before, .wchat__panel::before, .wchat__bubble::after, .wchat__panel::after { animation: none; }
}

/* otevřený chat: okraj nekreslí CSS, ale samo vlákno webu (řečová bublina s ocáskem, thread.chat) */
.wchat.is-open { bottom: 60px; }
.wchat__panel { border-radius: 26px; background: rgba(10, 10, 13, 0.6); -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1); box-shadow: none; }
.wchat__panel::before, .wchat__panel::after { display: none; }
/* vlákno se při otevřeném chatu kreslí nad obsahem stránky, aby ho nic nezakrylo */
body.chat-open #thread { z-index: 41; }
.wchat__panel > * { animation: wchat-content 0.5s 0.45s var(--ease) both; }
@keyframes wchat-content { from { opacity: 0; transform: translateY(8px); } }
.wchat__head { border-bottom: 0; padding: 22px 22px 6px; }
.wchat__head b { font-size: 30px; }
.wchat__msgs { padding: 14px 22px; scrollbar-width: none; }
.wchat__msgs::-webkit-scrollbar { display: none; }
/* místo posuvníku se zprávy k okrajům rozplynou a polohu ukáže krátký žhnoucí kousek vlákna */
.wchat__msgs.is-up { -webkit-mask-image: linear-gradient(transparent, #000 48px); mask-image: linear-gradient(transparent, #000 48px); }
.wchat__msgs.is-down { -webkit-mask-image: linear-gradient(#000 calc(100% - 48px), transparent); mask-image: linear-gradient(#000 calc(100% - 48px), transparent); }
.wchat__msgs.is-up.is-down { -webkit-mask-image: linear-gradient(transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(transparent, #000 48px, #000 calc(100% - 48px), transparent); }
.wchat__panel { position: relative; }
.wchat__scroll { position: absolute; right: 12px; width: 3px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 6px var(--accent), 0 0 14px rgba(246, 131, 56, 0.6); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.wchat__panel:hover .wchat__scroll.is-on, .wchat__scroll.is-on.is-moving { opacity: 0.85; }
/* zprávy bez rámečků: odpovědi naším písmem, návštěvník oranžovou kurzívou vpravo */
.wchat__msg { margin-bottom: 16px; }
.wchat__msg p { max-width: 92%; padding: 0; border-radius: 0; background: none; }
.wchat__msg--op p { font: 400 19px/1.35 var(--serif); color: var(--ink); }
.wchat__msg--visitor p { background: none; color: var(--accent); font: italic 400 19px/1.35 var(--serif); text-align: right; }
.wchat__msg--system p { color: var(--muted); font: 400 12.5px/1.45 var(--sans); }
.wchat__typing { margin: 0 22px 8px; font: italic 400 15px var(--serif); }
.wchat__contact, .wchat__form { padding: 0 22px 12px; align-items: flex-end; }
.wchat__contact input, .wchat__form textarea { padding: 10px 2px; border: 0; border-bottom: 1px solid rgba(246, 131, 56, 0.45); border-radius: 0; background: transparent; }
.wchat__contact input:focus, .wchat__form textarea:focus { border-color: var(--accent); }
.wchat__contact button, .wchat__form button { min-width: 40px; height: 40px; padding: 0; border-radius: 50%; background: var(--accent); color: #140b04; }
.wchat__contact button { width: auto; padding: 0 16px; border-radius: 999px; }
.wchat__contact button:hover, .wchat__form button:hover { background: var(--ink); }
.wchat__legal { padding: 0 22px 18px; }
@media (max-width: 760px) {
  /* na telefonu kolem okna zbude místo, aby se obrys z vlákna vešel na obrazovku */
  .wchat.is-open { right: 24px; bottom: 56px; }
  .wchat__panel { width: calc(100vw - 48px); height: min(560px, calc(100vh - 150px)); }
  .wchat__head, .wchat__msgs, .wchat__contact, .wchat__form, .wchat__legal { padding-left: 16px; padding-right: 16px; }
  .wchat__msg--op p, .wchat__msg--visitor p { font-size: 17px; }
}
@media (max-width: 760px) {
  .wchat { right: 10px; bottom: 8px; }
}

/* firemní údaje pod kontaktem v zápatí */
.foot__company { margin-top: 18px; font-style: normal; font-size: 12.5px; line-height: 1.75; color: var(--muted); }
.foot__company b { display: block; font-weight: 500; color: var(--ink); }

/* spodní řádek zápatí: firemní údaje vlevo, rychlost načtení vpravo */
.foot__bottom { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 40px; margin-top: 64px; }
.foot__bottom .foot__legal { order: -1; flex: 0 1 auto; margin-top: 0 !important; }
.foot__speed { display: flex; align-items: baseline; gap: 6px; flex: 0 1 auto; max-width: 52%; margin: 0 0 0 auto; font-size: 12px; text-align: right; color: var(--muted); }
@media (max-width: 900px) {
  .foot__bottom { flex-wrap: wrap; }
  .foot__speed { max-width: none; text-align: left; margin: 0; }
}
.foot__speed b { font: 600 12px/1 var(--sans); color: var(--accent); white-space: nowrap; }
.foot__speed[hidden] { display: none; }

/* kreslení vláknem na úvodní stránce */
body.is-drawing { user-select: none; -webkit-user-select: none; cursor: crosshair; }
.draw-hint { margin: 18px 0 0; font-size: 13px; color: var(--muted); }
@media (hover: none), (pointer: coarse) { .draw-hint { display: none; } }
body.is-leaving main, body.is-leaving .foot { opacity: 0; filter: blur(6px); }

/* ---------- Kurzor ---------- */
.cursor { display: none; }
body.has-cursor .cursor {
  display: block;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--peach);
  pointer-events: none;
  mix-blend-mode: difference;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), opacity 0.3s;
}
body.has-cursor .cursor.is-link { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
body.has-cursor .cursor.is-hidden { opacity: 0; }

/* ---------- Hlavička ---------- */
.head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 26px var(--gutter);
  transition: padding 0.5s var(--ease), background 0.5s;
}
/* po odscrollování dostane hlavička vlastní matné pozadí, aby nepřekrývala text */
body.is-scrolled .head {
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(8, 8, 10, 0.78);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
.head__logo img { display: block; width: clamp(130px, 12vw, 170px); height: auto; }
.head__nav { display: flex; gap: 30px; margin-left: auto; }
.head__nav a, .head__cta {
  font: 500 13px/1 var(--sans);
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.3s;
}
.head__nav a:hover { color: var(--ink); }
.head__cta {
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  transition: box-shadow 0.3s, background 0.3s, color 0.3s;
}
.head__cta:hover { background: var(--ink); color: var(--bg); }
/* zvuk: čtyři pruhy, které se po zapnutí rozvlní */
.head__sound {
  display: flex; align-items: center; justify-content: center; gap: 3px;
  width: 40px; height: 40px; margin-right: -16px; padding: 0;
  border: 0; border-radius: 50%;
  background: transparent; box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer; transition: box-shadow 0.3s;
}
.head__sound:hover { box-shadow: inset 0 0 0 1px var(--muted); }
.head__sound i { width: 2px; height: 4px; border-radius: 1px; background: var(--muted); transition: height 0.4s var(--ease), background 0.3s; }
.head__sound[aria-pressed='true'] i { background: var(--accent); animation: eq 1.1s ease-in-out infinite alternate; }
.head__sound[aria-pressed='true'] i:nth-child(2) { animation-delay: -0.4s; animation-duration: 0.9s; }
.head__sound[aria-pressed='true'] i:nth-child(3) { animation-delay: -0.7s; animation-duration: 1.3s; }
.head__sound[aria-pressed='true'] i:nth-child(4) { animation-delay: -0.2s; animation-duration: 1s; }
@keyframes eq { from { height: 4px; } to { height: 14px; } }
@media (prefers-reduced-motion: reduce) { .head__sound[aria-pressed='true'] i { animation: none; height: 10px; } }

/* ---------- Typografie a společné prvky ---------- */
.wrap { padding: 0 var(--gutter); }

.eyebrow {
  margin: 0 0 28px;
  font: 500 12px/1.4 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow b { color: var(--accent); font-weight: 500; }

.display {
  margin: 0;
  font: 400 clamp(54px, 9.2vw, 168px)/0.9 var(--serif);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.display i, .h2 i { color: var(--accent); }

.h2 {
  margin: 0 0 32px;
  font: 400 clamp(40px, 5.6vw, 96px)/0.95 var(--serif);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lead { max-width: 36ch; margin: 36px 0 0; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.55; color: #bdb8b0; }
.muted { color: var(--muted); }

.label {
  display: block;
  margin-bottom: 18px;
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.label::before { content: ''; display: inline-block; width: 28px; height: 1px; margin-right: 14px; background: var(--accent); vertical-align: middle; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 30px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font: 600 14px/1 var(--sans);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.35s, color 0.35s, transform 0.35s var(--ease);
}
.btn::after { content: '→'; transition: transform 0.35s var(--ease); }
.btn:hover { background: var(--accent); }
.btn:hover::after { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: transparent; box-shadow: inset 0 0 0 1px var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }

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

/* postupné odkrývání */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal='2'] { transition-delay: 0.12s; }
.js [data-reveal='3'] { transition-delay: 0.24s; }
/* úvod stránky se odkrývá sám animací, nečeká na skript (rychlejší první zobrazení) */
.js :is(.hero, .subhero) [data-reveal] { opacity: 1; transform: none; animation: rise 1.1s var(--ease) both; }
.js :is(.hero, .subhero) [data-reveal='2'] { animation-delay: 0.12s; }
.js :is(.hero, .subhero) [data-reveal='3'] { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0.01; transform: translateY(28px); } }
@media (prefers-reduced-motion: reduce) { .js [data-reveal], .js :is(.hero, .subhero) [data-reveal] { opacity: 1; transform: none; transition: none; animation: none; } }

/* ---------- Úvod ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px var(--gutter) 72px;
}
.hero .display { max-width: 11ch; }
.hero__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.hero__foot strong { color: var(--ink); font-weight: 500; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; }
.scroll-cue::after { content: ''; width: 1px; height: 36px; background: linear-gradient(var(--accent), transparent); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Manifest ---------- */
.manifest { padding: 22vh var(--gutter); }
.manifest__text {
  max-width: 20ch;
  margin: 0;
  font: 400 clamp(36px, 5vw, 84px)/1.04 var(--serif);
  letter-spacing: -0.015em;
}
.manifest__text span { color: var(--faint); }
.manifest__note { max-width: 44ch; margin: 48px 0 0 auto; color: var(--muted); }

/* ---------- Služby ---------- */
.section { padding: 16vh var(--gutter); }
.section__head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 72px; }
.section__head p { max-width: 42ch; margin: 0 0 8px; color: var(--muted); }

.rows { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.row {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1.3fr) minmax(0, 1fr) 160px;
  gap: 32px;
  align-items: center;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: padding 0.5s var(--ease);
}
.row__num { font: 500 13px/1 var(--sans); color: var(--faint); }
.row__title { margin: 0; font: 400 clamp(32px, 3.6vw, 60px)/1 var(--serif); letter-spacing: -0.015em; transition: transform 0.6s var(--ease), color 0.4s; }
.row__text { margin: 0; color: var(--muted); font-size: 15px; }
.row__meta { justify-self: end; text-align: right; font-size: 14px; color: var(--muted); }
.row__meta b { display: block; color: var(--ink); font-weight: 500; }
a.row:hover .row__title, a.row:focus-visible .row__title { transform: translateX(18px); color: var(--accent); font-style: italic; }
a.row::after {
  content: '→';
  position: absolute;
  right: 0; top: 50%;
  font-size: 22px;
  color: var(--accent);
  opacity: 0;
  transform: translate(-20px, -50%);
  transition: opacity 0.4s, transform 0.5s var(--ease);
}
a.row:hover::after { opacity: 1; transform: translate(0, -50%); }
a.row:hover .row__meta { opacity: 0; }

/* ---------- Práce ---------- */
/* poslední sloupec nese doménu, i delší (cookie-lista.cz, vesmirneklany.cz) se vejde na jeden řádek */
.works .row { grid-template-columns: 70px minmax(0, 1.5fr) minmax(0, 1fr) minmax(150px, auto); padding: 46px 0; }
.works .row__meta b { white-space: nowrap; }
.works .row__title { font-size: clamp(40px, 6vw, 108px); }

/* ---------- Postup ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin: 0; padding: 0; list-style: none; counter-reset: p; }
.process li { padding: 36px 32px 44px 0; border-top: 1px solid var(--line); counter-increment: p; }
.process li::before { content: '0' counter(p); display: block; margin-bottom: 64px; font: 400 64px/1 var(--serif); color: var(--accent); }
.process h3 { margin: 0 0 12px; font: 500 19px/1.3 var(--sans); }
.process p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Region ---------- */
.region { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.cities { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 0; padding: 0; list-style: none; }
.cities li { padding: 9px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: #bdb8b0; }

/* ---------- Časté dotazy ---------- */
.faq { max-width: 980px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  font: 400 clamp(22px, 2.2vw, 34px)/1.2 var(--serif);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-family: var(--sans); font-weight: 400; transition: transform 0.4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 62ch; margin: -8px 0 30px; color: var(--muted); }

/* ---------- Závěrečná výzva ---------- */
.closing { min-height: 92svh; display: flex; flex-direction: column; justify-content: center; padding: 16vh var(--gutter); }
.closing .display { max-width: 12ch; font-size: clamp(50px, 8vw, 140px); }
.closing__contact { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 40px; font-size: 18px; }
.closing__contact a { text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color 0.3s; }
.closing__contact a:hover { border-color: var(--accent); }

/* ---------- Podstránka ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 40px; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 10px; color: var(--faint); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.subhero { min-height: 92svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 150px var(--gutter) 80px; }
.subhero .display { font-size: clamp(56px, 10vw, 180px); max-width: 9ch; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 64px; margin: 0; padding: 0; list-style: none; }
.features li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 26px 0; border-top: 1px solid var(--line); }
.features li::before { content: '✓'; color: var(--accent); }
.features b { display: block; margin-bottom: 4px; font-weight: 500; }
.features span { color: var(--muted); font-size: 15px; }

.price { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.price__big { margin: 0; font: 400 clamp(64px, 9vw, 150px)/0.9 var(--serif); letter-spacing: -0.02em; }
.price__big small { display: block; margin-bottom: 18px; font: 500 13px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.price ul { margin: 0; padding: 0; list-style: none; }
.price li { padding: 16px 0; border-top: 1px solid var(--line); color: #bdb8b0; }

/* ---------- 3D ukázka ---------- */
.showcase { padding: 14vh 0 10vh; }
.showcase__head { margin-bottom: 40px; }
.showcase__stage {
  position: relative;
  height: min(86vh, 860px);
  min-height: 520px;
  margin: 0 var(--gutter);
  border-radius: 28px;
  background:
    radial-gradient(70% 70% at 50% 40%, rgba(246, 131, 56, 0.07), transparent 70%),
    #0b0b0e;
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.showcase__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.showcase__canvas:active { cursor: grabbing; }
.showcase__ui {
  position: absolute;
  left: 28px; bottom: 28px;
  z-index: 2;
  width: min(330px, calc(100% - 56px));
  padding: 22px;
  border-radius: 20px;
  background: rgba(14, 14, 18, 0.72);
  box-shadow: inset 0 0 0 1px var(--line);
  backdrop-filter: blur(14px);
  font-size: 14px;
}
.showcase__tip { position: absolute; right: 28px; top: 24px; margin: 0; font-size: 13px; color: var(--muted); }
.showcase__caption { max-width: 60ch; margin: 28px 0 0; color: var(--muted); }
.showcase__fallback { display: none; }
.showcase__stage.is-failed .showcase__fallback { display: grid; place-items: center; position: absolute; inset: 0; color: var(--muted); }
/* bez WebGL: místo živé scény její snímek, ovládání zmizí */
.showcase__stage.is-failed[style*='--fallback'] { background: var(--fallback) center / cover no-repeat, #0b0b0e; }
.showcase__stage.is-failed[style*='--fallback'] :is(.showcase__canvas, .showcase__ui, .showcase__tip) { display: none; }
.showcase__stage.is-failed[style*='--fallback'] .showcase__fallback { inset: auto auto 20px 20px; padding: 10px 16px; border-radius: 999px; background: rgba(8, 8, 10, 0.78); font-size: 13px; }
.showcase__tooltip {
  position: absolute;
  top: 0; left: 0;
  z-index: 3;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(8, 8, 10, 0.88);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px;
  color: var(--muted);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.showcase__tooltip.is-on { opacity: 1; }
.showcase__tooltip b { display: block; color: var(--ink); font: 400 22px/1.1 var(--serif); }

.sc-group { margin-bottom: 16px; }
.sc-group > span { display: block; margin-bottom: 8px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.sc-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-chip {
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(236, 232, 225, 0.06);
  color: var(--ink);
  font: 500 13px/1.2 var(--sans);
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.sc-chip:hover { background: rgba(236, 232, 225, 0.12); }
.sc-chip[aria-pressed='true'] { background: var(--ink); color: var(--bg); }
.sc-swatch {
  width: 30px; height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--c);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.sc-swatch:hover { transform: scale(1.1); }
.sc-swatch[aria-pressed='true'] { box-shadow: 0 0 0 2px #0e0e12, 0 0 0 3.5px var(--ink); }
.sc-field { display: block; margin-bottom: 16px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.sc-field input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: 400 20px/1.2 var(--serif);
  letter-spacing: 0.06em;
}
.sc-field input:focus { outline: none; border-color: var(--accent); }
.sc-range { width: 100%; accent-color: var(--accent); }
.sc-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.sc-buy b { display: block; font: 400 28px/1 var(--serif); color: var(--ink); }
.sc-buy span { font-size: 12px; color: var(--muted); }
.sc-btn {
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font: 600 13px/1 var(--sans);
  cursor: pointer;
  transition: background 0.3s;
}
.sc-btn:hover { background: var(--accent); }
.sc-note { max-height: 0; margin: 0; overflow: hidden; color: var(--peach); font-size: 13px; transition: max-height 0.5s, margin 0.5s; }
.sc-note.is-on { max-height: 120px; margin-top: 12px; }
.sc-live { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.sc-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); }
.sc-live.is-tick::before { animation: live 1s ease-out; }
@keyframes live { from { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); } to { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } }

/* rozšířená realita */
.sc-ar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 12px; padding: 11px 16px;
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--ink);
  font: 500 13px/1 var(--sans); cursor: pointer;
}
.sc-ar small { padding: 3px 6px; border-radius: 6px; background: var(--accent); color: var(--bg); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; }
.sc-ar[hidden], .sc-ar-hint[hidden] { display: none; }
.sc-ar-hint { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
@media (pointer: coarse) { .sc-ar-hint { display: none; } }
.ar-overlay { position: fixed; inset: auto 16px 24px; z-index: 50; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(8, 8, 10, 0.78); color: #ece8e1; font: 400 14px/1.4 'Inter Tight', sans-serif; }
.ar-overlay p { margin: 0; flex: 1; }

/* scrollovaný příběh: plátno stojí, stránka pod ním běží a řídí rozložení */
.story { height: 320vh; }
.story__sticky { position: sticky; top: 7vh; }
.story .showcase__canvas { cursor: default; }
.sc-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.sc-steps li { position: relative; padding: 0 0 12px 34px; color: var(--muted); opacity: 0.45; transition: opacity 0.4s, color 0.4s; counter-increment: step; }
.sc-steps li::before { content: '0' counter(step); position: absolute; left: 0; top: 2px; font-size: 12px; letter-spacing: 0.1em; }
.sc-steps li:last-child { padding-bottom: 0; }
.sc-steps b { display: block; font: 400 24px/1.1 var(--serif); color: var(--ink); }
.sc-steps span { display: block; max-height: 0; overflow: hidden; font-size: 13px; transition: max-height 0.5s; }
.sc-steps li.is-on { opacity: 1; }
.sc-steps li.is-on::before { color: var(--accent); }
.sc-steps li.is-on span { max-height: 80px; margin-top: 4px; }

/* velín správy webu */
.sc-live.is-alert::before { background: #ff3b3b; }
.sc-live.is-warn::before { background: #febc2e; }
.sc-live.is-alert { color: #ff8a8a; }
.sc-log { min-height: 118px; margin: 12px 0 14px; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.sc-log li { padding: 4px 0; border-top: 1px solid var(--line); animation: log-in 0.4s var(--ease); }
.sc-log time { display: inline-block; width: 70px; color: var(--faint); font-variant-numeric: tabular-nums; }
.sc-log .is-alert { color: #ff8a8a; }
.sc-log .is-good { color: #3ddc84; }
@keyframes log-in { from { opacity: 0; transform: translateY(-6px); } }
.sc-btn:disabled { opacity: 0.4; cursor: default; }

/* 404: chytání stránek */
.sc-found { margin: 0 0 12px; font: 400 22px/1.2 var(--serif); color: var(--ink); }
.sc-pages { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sc-pages a { display: block; padding: 8px 14px; border-radius: 999px; background: rgba(236, 232, 225, 0.06); color: var(--muted); font-size: 13px; text-decoration: none; transition: background 0.3s, color 0.3s; }
.sc-pages li.is-found a { background: var(--ink); color: var(--bg); }
.sc-pages li.is-found a:hover { background: var(--accent); }

/* hra Lov jisker */
.showcase__stage--game .showcase__canvas { cursor: crosshair; }
.sc-hud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.sc-hud b { display: block; font: 400 34px/1 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.sc-hud span { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.sc-hud em { font-style: normal; color: var(--accent); letter-spacing: 0; }
.sc-help { margin: 14px 0 0; font-size: 13px; }
.sc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.sc-btn--ghost:hover { background: rgba(236, 232, 225, 0.1); }
.sc-btn[hidden] { display: none; }
.game__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
  font: 400 clamp(64px, 12vw, 150px)/1 var(--serif);
  color: var(--ink);
  text-shadow: 0 0 40px rgba(246, 131, 56, 0.6);
  opacity: 0;
}
.game__overlay.is-on { animation: overlay 0.9s var(--ease) forwards; }
.game__overlay.is-big { font-size: clamp(48px, 8vw, 110px); animation-duration: 2.2s; }
.game__overlay.is-combo { color: var(--accent); }
.game__overlay.is-warn { color: var(--peach); font-size: clamp(40px, 6vw, 80px); }
@keyframes overlay { 0% { opacity: 0; transform: scale(1.4); } 15% { opacity: 1; transform: scale(1); } 70% { opacity: 1; } 100% { opacity: 0; transform: scale(0.94); } }

.related .rows { margin-top: 24px; }
.related .row { grid-template-columns: 70px minmax(0, 1.3fr) minmax(0, 1fr) 40px; }

@media (max-width: 760px) {
  .showcase__stage { height: 92vh; min-height: 0; margin: 0 12px; border-radius: 20px; }
  .showcase__ui { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 14px 16px; font-size: 13px; }
  .sc-group { margin-bottom: 10px; }
  .sc-field { margin-bottom: 10px; }
  .sc-field input { padding: 6px 10px; font-size: 17px; }
  .sc-buy { padding-top: 10px; }
  .sc-buy b { font-size: 22px; }
  .showcase__tip { left: 16px; right: 16px; top: 14px; }
  .sc-hud { margin-bottom: 10px; }
  .sc-hud b { font-size: 26px; }
  .sc-help { margin-top: 8px; font-size: 12px; }
  .story__sticky { top: 9vh; }
  .story .showcase__stage { height: 88vh; }
  .sc-steps li { padding-bottom: 6px; }
  .sc-steps b { font-size: 19px; }
}

/* ---------- Mobilní menu ---------- */
.head__menu { display: none; }

/* ---------- Náhled referencí ---------- */
.preview-fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }

/* ---------- Kratší úvod podstránek ---------- */
.subhero--short { min-height: 72svh; }

/* ---------- Případová studie ---------- */
.case-hero .eyebrow b { color: var(--case); }
.case-hero::after {
  content: '';
  position: absolute;
  left: var(--gutter); bottom: 0;
  width: 120px; height: 3px;
  background: var(--case);
}
.case-hero { position: relative; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin: 0 0 12vh; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { margin-bottom: 8px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-size: 17px; }
.facts a { text-decoration: none; border-bottom: 1px solid var(--line); }
.facts a:hover { border-color: var(--accent); }
.facts--stack { grid-template-columns: 1fr; gap: 18px; margin: 32px 0 0; padding: 0; border: 0; }
.case-body { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.features--single { grid-template-columns: 1fr; }
.next-case__link { display: inline-flex; gap: 24px; align-items: baseline; margin-top: 12px; font: 400 clamp(48px, 8vw, 140px)/1 var(--serif); text-decoration: none; transition: color 0.4s; }
.next-case__link span { color: var(--accent); transition: transform 0.5s var(--ease); }
.next-case__link:hover { color: var(--accent); font-style: italic; }
.next-case__link:hover span { transform: translateX(16px); }

/* ---------- Studio ---------- */
.showcase__stage--bare { cursor: pointer; }
.showcase__counter { position: absolute; left: 28px; bottom: 22px; margin: 0; font: 400 28px/1 var(--serif); color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin: 0; padding: 0; list-style: none; }
.values li { padding-top: 28px; border-top: 1px solid var(--line); }
.values h3 { margin: 0 0 14px; font: 400 40px/1 var(--serif); }
.values p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 80px; padding-top: 4vh; }
.form__trap { position: absolute; left: -9999px; }
.form__alert { margin: 0 0 20px; padding: 12px 16px; border-radius: 12px; background: rgba(255, 107, 107, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 107, 107, 0.35); color: #ff9a9a; font-size: 14px; }
.form__captcha { margin: 0 0 20px; min-height: 65px; }
.form__group { margin: 0 0 32px; padding: 0; border: 0; }
.form__group legend { margin-bottom: 14px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.form__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 11px 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; transition: background 0.3s, color 0.3s, box-shadow 0.3s; }
.chip:hover span { box-shadow: inset 0 0 0 1px var(--muted); }
.chip input:checked + span { background: var(--ink); color: var(--bg); box-shadow: none; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.field { display: block; margin-bottom: 26px; }
.field span { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  display: block;
  width: 100%;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: 400 22px/1.3 var(--serif);
  resize: vertical;
  transition: border-color 0.3s;
}
.field textarea { font: 400 17px/1.6 var(--sans); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field em { display: block; margin-top: 6px; font-style: normal; font-size: 13px; color: #ff8a65; }
.field.is-error input, .field.is-error textarea { border-color: #ff8a65; }
.form__legal { margin: 0 0 24px; font-size: 13px; color: var(--muted); }
.contact__aside .label { margin-top: 28px; }
.contact__aside .label:first-child { margin-top: 0; }
.contact__big { margin: 0 0 6px; font: 400 clamp(24px, 2.4vw, 36px)/1.2 var(--serif); }
.contact__big a { text-decoration: none; }
.contact__big a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .head__menu {
    display: block;
    margin-left: auto;
    padding: 10px 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--line);
    color: var(--ink);
    font: 500 13px/1 var(--sans);
  }
  .head__cta { display: none; }
  .head__sound { margin: 0 0 0 -22px; }
  body.menu-open { overflow: hidden; }
  body.menu-open .head { background: transparent; box-shadow: none; backdrop-filter: none; }
  body.menu-open .head__nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    position: fixed;
    inset: 0;
    z-index: -1;
    padding: 90px var(--gutter) 40px;
    background: var(--bg);
  }
  body.menu-open .head__nav a { padding: 10px 0; border-bottom: 1px solid var(--line); font: 400 40px/1.1 var(--serif); color: var(--ink); letter-spacing: 0; }
  body.menu-open .head__nav a[aria-current='page'] { color: var(--accent); font-style: italic; }
  .facts { grid-template-columns: 1fr 1fr; }
  .case-body, .contact { grid-template-columns: 1fr; gap: 48px; }
  .values { grid-template-columns: 1fr 1fr; }
  .form__grid { grid-template-columns: 1fr; }
}

/* ---------- Města ---------- */
.city-local { max-width: 1100px; }
.city-local__big { max-width: 24ch; }
.cities--links a { display: block; text-decoration: none; transition: color 0.3s; }
.cities--links li { padding: 0; }
.cities--links a { padding: 9px 16px; }
.cities--links li:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.cities--links a:hover { color: var(--ink); }
.showcase__stage--map { height: min(80vh, 780px); }
.map-label {
  position: absolute;
  top: 0; left: 0;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.75);
  box-shadow: inset 0 0 0 1px var(--line);
  font: 500 13px/1 var(--sans);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.map-label--capital { font: 400 20px/1 var(--serif); padding: 8px 16px; }
.map-label:hover, .map-label.is-hot { background: var(--accent); color: var(--bg); box-shadow: none; }

.contact__big--xl { font-size: clamp(30px, 3.6vw, 56px); margin-bottom: 10px; }
.contact__form { margin-top: 64px; max-width: 640px; }

/* ---------- Jeden kontakt ---------- */
.one__head { max-width: 760px; margin-bottom: 64px; }
.one__head .lead { margin-top: 0; max-width: 52ch; }
.one__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 0 40px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.one__list li { padding: 28px 24px 30px 0; border-bottom: 1px solid var(--line); }
.one__list b { display: block; margin-bottom: 6px; font: 400 26px/1.1 var(--serif); }
.one__list span { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .one__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .one__list { grid-template-columns: 1fr; } }

/* ---------- Paušály ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 32px 32px;
  border-radius: 24px;
  background: rgba(14, 14, 18, 0.6);
  box-shadow: inset 0 0 0 1px var(--line);
  backdrop-filter: blur(6px);
}
.plan--featured { box-shadow: inset 0 0 0 1px var(--accent), 0 30px 80px -40px rgba(246, 131, 56, 0.45); }
.plan__badge { position: absolute; top: -12px; left: 32px; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: var(--bg); font: 600 11px/1.2 var(--sans); letter-spacing: 0.06em; }
.plan__name { margin: 0 0 6px; font: 400 40px/1 var(--serif); }
.plan__for { margin: 0 0 24px; font-size: 14px; color: var(--muted); }
.plan__price { margin: 0 0 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); font: 400 30px/1.1 var(--serif); }
.plan__price i { color: var(--accent); }
.plan__price small { font: 400 14px/1 var(--sans); color: var(--muted); }
.plan ul { flex: 1; margin: 0 0 28px; padding: 0; list-style: none; }
.plan li { position: relative; padding: 7px 0 7px 26px; font-size: 15px; color: #cfcac2; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); }
.plan .btn { align-self: flex-start; }
.plans__note { margin: 32px 0 0; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* ---------- Průvodce poptávkou ---------- */
.wizard { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 80px; padding-top: 4vh; }
.wizard__progress { display: none; }
.wizard__step { margin: 0 0 56px; padding: 0; border: 0; }
.wizard__title { display: block; margin-bottom: 28px; font: 400 clamp(32px, 3.4vw, 52px)/1.05 var(--serif); }
.wizard__title:focus { outline: none; }
.wizard__title span { display: block; margin-bottom: 12px; font: 500 12px/1 var(--sans); letter-spacing: 0.16em; color: var(--accent); }
.wizard__hint { margin: 0 0 12px; font-size: 13px; letter-spacing: 0.06em; color: var(--muted); }
.wizard__error { display: none; margin-top: 10px; font-style: normal; font-size: 13px; color: #ff8a65; }
.form__group.is-error .wizard__error { display: block; }
.form__group.is-error .chip span { box-shadow: inset 0 0 0 1px #ff8a65; }
.wizard__nav { display: flex; flex-wrap: wrap; gap: 12px; }
.wizard__nav .btn[hidden] { display: none; }
.wizard__back::after { content: none; }
.wizard__back::before { content: '←'; }
.wizard__summary { margin: 8px 0 28px; padding: 24px 28px; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); }
.wizard__summary dl { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 10px 24px; margin: 0; font-size: 15px; }
.wizard__summary dt { color: var(--muted); }
.wizard__summary dd { margin: 0; }
.wizard__aside { align-self: start; position: sticky; top: 120px; }

/* se skriptem jen jeden krok najednou a ukazatel postupu */
.wizard__form.is-wizard .wizard__step { display: none; margin-bottom: 40px; }
.wizard__form.is-wizard .wizard__step.is-active { display: block; animation: rise 0.6s var(--ease) both; }
.wizard__form.is-wizard .wizard__progress {
  display: flex;
  gap: 6px;
  margin: 0 0 44px;
  padding: 0;
  list-style: none;
  counter-reset: w;
}
.wizard__progress li {
  flex: 1;
  counter-increment: w;
  padding-top: 12px;
  border-top: 2px solid var(--line);
  font-size: 12px;
  color: var(--faint);
  transition: color 0.4s, border-color 0.4s;
}
.wizard__progress li::before { content: '0' counter(w) '  '; }
.wizard__progress li.is-done { border-color: rgba(246, 131, 56, 0.5); color: var(--muted); }
.wizard__progress li.is-current { border-color: var(--accent); color: var(--ink); }

@media (max-width: 900px) {
  .wizard { grid-template-columns: 1fr; gap: 48px; }
  .wizard__aside { position: static; }
  .wizard__progress li { font-size: 0; }
  .wizard__progress li::before { font-size: 12px; }
}

/* ---------- Magazín ---------- */
.articles .row { grid-template-columns: 120px minmax(0, 1.4fr) minmax(0, 1fr) 90px; }
.articles .row__num { color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; }
.articles .row__title { font-size: clamp(26px, 2.6vw, 44px); line-height: 1.08; }
.article-title { font-size: clamp(44px, 6.4vw, 110px); max-width: 16ch; }
.article { display: grid; grid-template-columns: 260px minmax(0, 68ch); gap: 80px; padding-top: 6vh; }
.article__toc { position: sticky; top: 110px; align-self: start; font-size: 14px; }
.article__toc ol { margin: 0; padding: 0; list-style: none; counter-reset: t; }
.article__toc li { counter-increment: t; padding: 8px 0; border-top: 1px solid var(--line); }
.article__toc li::before { content: counter(t, decimal-leading-zero) '  '; color: var(--faint); }
.article__toc a { color: var(--muted); text-decoration: none; transition: color 0.3s; }
.article__toc a:hover { color: var(--ink); }
.article__hint { margin: 20px 0 0; font-size: 12px; color: var(--muted); }
.article__body { font-size: 19px; line-height: 1.75; color: #d6d1c9; }
.article__body h2 { margin: 64px 0 18px; font: 400 clamp(30px, 3vw, 46px)/1.1 var(--serif); color: var(--ink); scroll-margin-top: 100px; }
.article__body h2:first-child { margin-top: 0; }
.article__body p { margin: 0 0 20px; }
.article__body ul { margin: 0 0 24px; padding: 0; list-style: none; }
.article__body li { position: relative; padding: 0 0 12px 30px; }
.article__body li::before { content: ''; position: absolute; left: 0; top: 0.8em; width: 16px; height: 1px; background: var(--accent); }
.article__body strong { color: var(--ink); font-weight: 600; }
.article-service {
  display: block;
  margin-bottom: 12vh;
  padding: 40px;
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px var(--line);
  text-decoration: none;
  transition: box-shadow 0.4s, background 0.4s;
}
.article-service:hover { box-shadow: inset 0 0 0 1px var(--accent); background: rgba(246, 131, 56, 0.04); }
.article-service__title { display: block; margin: 0 0 10px; font: 400 clamp(36px, 4vw, 64px)/1 var(--serif); }
.article-service__title span { color: var(--accent); }

@media (max-width: 900px) {
  .article { grid-template-columns: 1fr; gap: 32px; }
  .article__toc { position: static; }
  .article__body { font-size: 17px; }
  .articles .row { grid-template-columns: 1fr; }
  .articles .row__text, .articles .row__meta { grid-column: 1; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Patička ---------- */
/* zápatí na tmavém matném skle: vlákno za ním jen prosvítá a odkazy se dobře čtou */
.foot {
  position: relative;
  z-index: 1;
  padding: 80px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  background: rgba(10, 10, 13, 0.74);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  backdrop-filter: blur(22px) saturate(1.15);
  font-size: 14px;
  color: var(--muted);
}
.foot__grid { display: grid; grid-template-columns: 1.1fr 1.5fr 1fr 0.8fr 1.1fr; gap: 40px; }
.foot__logo { width: 150px; height: auto; margin-bottom: 18px; }
.foot__label { margin: 0 0 12px; font-weight: 500; color: var(--ink); }
.foot p { margin: 0; }
.foot a { display: inline-block; padding: 3px 0; text-decoration: none; }
.foot__grid p { line-height: 1.9; }
.foot__grid .foot__about { line-height: 1.6; }
.foot a:hover { color: var(--ink); }
.foot__legal { margin-top: 64px !important; font-size: 12px; color: var(--muted); }
.foot__legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .head__nav { display: none; }
  .head__cta { margin-left: auto; }
  .section__head, .region, .price { grid-template-columns: 1fr; gap: 24px; }
  .row, .works .row { grid-template-columns: 40px 1fr; gap: 8px 16px; padding: 28px 0; }
  .row__text, .row__meta { grid-column: 2; justify-self: start; text-align: left; }
  .row__meta b { display: inline; margin-right: 8px; }
  a.row::after { display: none; }
  .process { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .process { grid-template-columns: 1fr; }
  .process li::before { margin-bottom: 24px; font-size: 48px; }
  .foot__grid { grid-template-columns: 1fr; }
  .manifest { padding: 14vh var(--gutter); }
  .section { padding: 12vh var(--gutter); }
}
