/* ==========================================================================
   NYBZ Digital Solutions — stylopis
   Viz DESIGN.md. Struktura: písmo → tokeny → základ → typografie →
   prvky → hlavička → scény (úvod … kontakt) → patička → pohyb → přístupnost.

   Statický vzhled platí vždy. Třída .motion (nastavená v <head>, pokud
   návštěvník nepožaduje omezený pohyb) zapíná jen vrstvu pro scroll animace.
   ========================================================================== */

/* ---------------------------------------------------------------- PÍSMO */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------- TOKENY */
:root {
  /* barvy změřené z brandmanuálu */
  --kost:            #F0EFEB;
  --papir:           #F8F7F4;
  --inkoust:         #0A0C0C;
  --uhel:            #393939;
  --bridlice:        #65717D;   /* jen velký text (4,33:1) */
  --bridlice-text:   #56616C;   /* drobný sekundární text (5,49:1) */
  --bridlice-svetla: #BCC4CD;   /* sekundární text na uhlu (6,55:1) */
  --linka:           rgba(10, 12, 12, .14);
  --linka-silna:     rgba(10, 12, 12, .32);
  --chyba:           #A3261B;

  --font: "Archivo", "Segoe UI", system-ui, sans-serif;

  --gut: clamp(20px, 4vw, 64px);
  --maxw: 1440px;
  --gap: clamp(16px, 2vw, 32px);
  --header-h: 76px;
  --sekce: clamp(104px, 15vh, 184px);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io:  cubic-bezier(.76, 0, .24, 1);

  color-scheme: light;
}

/* ---------------------------------------------------------------- ZÁKLAD */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  color: var(--inkoust);
  background: var(--kost);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
::selection { background: var(--inkoust); color: var(--kost); }

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

.wrap { width: min(100% - 2 * var(--gut), var(--maxw)); margin-inline: auto; }
.section { padding-block: var(--sekce); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: -80px; z-index: 300;
  padding: 12px 20px; border-radius: 999px;
  background: var(--inkoust); color: var(--kost); font-weight: 600;
  transition: top .25s var(--ease-out);
}
.skip:focus { top: 16px; }

/* ----------------------------------------------------------- TYPOGRAFIE
   Jedna rodina, role podle šířky: display 125 %, nadpisy 112 %, text 100 %.
   Stupnice: 14 · 16 · 18 · 21 · 24 · 36 · 48 · 72 (+ display přes clamp). */
.h2 {
  font-size: clamp(2.25rem, 4.6vw, 4.5rem);
  font-stretch: 118%;
  font-weight: 620;
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.h3 {
  font-size: clamp(1.375rem, 1.9vw, 1.75rem);
  font-stretch: 112%;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.02em;
}
.h4 {
  font-size: 1.3125rem;
  font-stretch: 108%;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.012em;
}
.lead {
  font-size: clamp(1.1875rem, 1.45vw, 1.375rem);
  line-height: 1.5;
  max-width: 34em;
  text-wrap: pretty;
}
p { text-wrap: pretty; }

/* Odrážky — krátká čárka místo tečky, vychází z tahu loga */
.ticks { display: grid; gap: .45em; margin-top: 1.25rem; }
.ticks li { position: relative; padding-left: 1.6em; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .78em;
  width: .9em; height: 2px; border-radius: 2px; background: currentColor; opacity: .55;
}
.ticks--small { font-size: .9375rem; }

/* ---------------------------------------------------------------- TLAČÍTKA
   Zaoblené jako oblouk loga. Text se při najetí „převalí" — reaguje na akci. */
.btn {
  --btn-bg: var(--inkoust); --btn-fg: var(--kost);
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 30px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-bg);
  font-size: 1rem; font-weight: 560; font-stretch: 108%; letter-spacing: -.005em;
  line-height: 1; white-space: nowrap;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), transform .3s var(--ease-out);
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn--small { min-height: 44px; padding: 0 22px; font-size: .9375rem; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--inkoust); border-color: var(--linka-silna); }
.btn--ghost:hover { border-color: var(--inkoust); }
.btn[disabled] { opacity: .5; cursor: progress; }

.btn__label { position: relative; display: inline-grid; overflow: hidden; }
.btn__label > span { grid-area: 1 / 1; transition: transform .45s var(--ease-out); padding-block: .15em; }
.btn__label > span + span { transform: translateY(105%); }
@media (hover: hover) {
  .btn:hover .btn__label > span:first-child { transform: translateY(-105%); }
  .btn:hover .btn__label > span + span { transform: translateY(0); }
}

/* Textový odkaz s podtržením, které se při najetí dokreslí */
.link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 560; font-stretch: 108%;
  background: linear-gradient(currentColor, currentColor) left calc(100% - 10px) / 100% 1.5px no-repeat;
  transition: background-size .45s var(--ease-out);
}
@media (hover: hover) {
  .link:hover { background-size: 0 1.5px; background-position: right calc(100% - 10px); }
}

/* --------------------------------------------------------------- HLAVIČKA */
.header {
  --logo-mark: var(--inkoust); --logo-claim: var(--bridlice);
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  color: var(--inkoust);
  transition: transform .5s var(--ease-out), background-color .35s, color .35s, box-shadow .35s;
}
.header.is-scrolled { background: var(--kost); box-shadow: 0 1px 0 var(--linka); }
.header.is-hidden { transform: translateY(-100%); }
.header[data-tone="dark"] { --logo-mark: var(--kost); --logo-claim: var(--bridlice-svetla); color: var(--kost); }
.header[data-tone="dark"].is-scrolled { background: var(--uhel); box-shadow: 0 1px 0 rgba(240,239,235,.12); }
.header[data-tone="dark"] .btn { --btn-bg: var(--kost); --btn-fg: var(--inkoust); }
.header[data-tone="dark"] :focus-visible { outline-color: var(--kost); }

.header__inner { height: 100%; display: flex; align-items: center; gap: clamp(16px, 3vw, 48px); }
.header__logo { display: flex; align-items: center; min-height: 44px; margin-right: auto; }
.logo { height: 30px; width: auto; aspect-ratio: 1114.86 / 177.72; }

.header__nav ul { display: flex; gap: clamp(16px, 2.2vw, 36px); }
.header__nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-size: .9375rem; font-weight: 520; font-stretch: 106%;
}
.header__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.header__nav a:hover::after, .header__nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

.header__menu {
  display: none; align-items: center; gap: 12px; min-height: 44px; padding: 0 4px;
  font-weight: 560; font-stretch: 108%;
}
.header__menu-icon { position: relative; width: 22px; height: 12px; }
.header__menu-icon i {
  position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .45s var(--ease-out), top .45s var(--ease-out);
}
.header__menu-icon i:first-child { top: 0; }
.header__menu-icon i:last-child { top: 10px; }
.header__menu[aria-expanded="true"] .header__menu-icon i:first-child { top: 5px; transform: rotate(45deg); }
.header__menu[aria-expanded="true"] .header__menu-icon i:last-child { top: 5px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .header__nav, .header__cta { display: none; }
  .header__menu { display: inline-flex; }
}
@media (max-width: 520px) {
  :root { --header-h: 64px; }
  .logo { height: 24px; }
}

/* Celoobrazovkové menu */
.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--kost); color: var(--inkoust);
  padding-top: var(--header-h);
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu__inner { min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-block: 6vh 32px; gap: 40px; }
.menu__list { display: grid; gap: 2px; }
.menu__list a {
  display: block; padding-block: 6px;
  font-size: clamp(2.25rem, 9vw, 4rem); font-stretch: 120%; font-weight: 600;
  line-height: 1.05; letter-spacing: -.035em;
}
.menu__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--bridlice-text); }
.menu__foot a { color: var(--inkoust); font-weight: 560; min-height: 44px; display: inline-flex; align-items: center; }
html.menu-open { overflow: hidden; }

/* ======================================================= ÚVOD A OBLOUK */
.hero { position: relative; }
.hero__grid {
  min-height: 100svh;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: end;
  padding-top: calc(var(--header-h) + clamp(32px, 7vh, 96px));
}
.hero__content {
  position: relative; z-index: 1;
  grid-column: 1 / span 7;
  align-self: center;
  padding-bottom: clamp(32px, 8vh, 96px);
}
.hero__title {
  font-size: clamp(2.75rem, 6.4vw, 7.25rem);
  font-stretch: 122%;
  font-weight: 640;
  line-height: .94;
  letter-spacing: -.045em;
  text-wrap: balance;
  max-width: 9.6em;
}
.hero__lead { margin-top: clamp(24px, 3.4vh, 40px); max-width: 31em; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: clamp(28px, 4vh, 44px); }

/* Oblouk: písmeno n z loga stojí na spodní hraně obrazovky */
.arch {
  position: relative; z-index: 3;
  grid-column: 8 / span 5; justify-self: end;
  width: min(100%, 64svh);
  aspect-ratio: 101.5 / 94.62;
  margin-bottom: -2px;
  transform-origin: 0 0;
  will-change: transform;
}
.arch__inner { position: absolute; inset: 0; }
.arch__n { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--inkoust); }
.arch__window {
  position: absolute; bottom: 0;
  background: var(--uhel); color: var(--kost);
  overflow: hidden;
}
/* Ukázka začíná až pod zakřivením otvoru (oblouk končí ve ~36 % výšky okna) */
.arch__log {
  position: absolute; left: 0; right: 0; bottom: 0; top: 38%;
  padding: 0 clamp(12px, 9%, 28px) clamp(16px, 7%, 32px);
  display: flex; flex-direction: column;
  font-size: clamp(.6875rem, .92vw, .875rem); line-height: 1.35;
}
.arch__day {
  flex: none;
  color: var(--bridlice-svetla);
  font-weight: 520; font-stretch: 104%;
  margin-bottom: .9em;
}
/* Seznam roste odspodu; co se nevejde, nahoře plynule odezní místo tvrdého střihu */
.arch__list {
  flex: 1; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: .7em;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 2.2em);
  mask-image: linear-gradient(to bottom, transparent 0, #000 2.2em);
}
.arch__list li { flex: none; }
.arch__list li { display: grid; grid-template-columns: 1.15em 1fr; gap: .7em; align-items: start; }
.arch__state {
  position: relative; width: 1.15em; height: 1.15em; margin-top: .05em;
  border-radius: 50%; border: 1.5px solid currentColor; opacity: .55;
}
.arch__list li.is-done .arch__state { opacity: 1; background: var(--kost); border-color: var(--kost); }
.arch__list li.is-done .arch__state::after {
  content: ""; position: absolute; left: 32%; top: 20%; width: 30%; height: 50%;
  border: solid var(--uhel); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.arch__list li.is-running .arch__state {
  opacity: 1; border-color: var(--kost) transparent var(--kost) var(--kost);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Manifest — bez pohybu je to normální tmavá sekce */
.manifesto {
  position: relative; z-index: 2;
  background: var(--uhel); color: var(--kost);
  padding-block: var(--sekce);
}
.manifesto__inner { min-height: 100%; display: flex; flex-direction: column; justify-content: center; }
.manifesto__text {
  max-width: 21em;
  font-size: clamp(1.875rem, 4.3vw, 4.5rem);
  font-stretch: 112%;
  font-weight: 540;
  line-height: 1.08;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.manifesto__note { margin-top: clamp(28px, 5vh, 56px); max-width: 30em; color: var(--bridlice-svetla); font-size: clamp(1.0625rem, 1.3vw, 1.25rem); }
.manifesto :focus-visible { outline-color: var(--kost); }

/* Vrstva pohybu: úvod a manifest jsou jedna připnutá scéna.
   Na velmi nízkých obrazovkách (na šířku v telefonu) zůstávají pod sebou. */
@media (min-height: 520px) {
  .motion .scene { position: relative; height: 100svh; overflow: hidden; }
  .motion .hero, .motion .hero__grid { height: 100%; min-height: 0; }
  .motion .manifesto {
    position: absolute; inset: 0; padding-block: calc(var(--header-h) + 4vh) 6vh;
    clip-path: inset(100% 0 0 0);
  }
  .motion .manifesto__inner { height: 100%; }
}

/* Úvodní sekvence: do spuštění skriptu je obsah heroe skrytý (pojistka v <head>
   ho po 4 s ukáže, kdyby skript selhal). */
.motion:not(.is-ready) .hero__title,
.motion:not(.is-ready) .hero__lead,
.motion:not(.is-ready) .hero__actions,
.motion:not(.is-ready) .lp-hero__kicker,
.motion:not(.is-ready) .lp-fact,
.motion:not(.is-ready) .arch,
.motion:not(.is-ready) .header { opacity: 0; }
/* Maskované řádky nadpisu: místo pro háčky a dotahy (ý, Ž, y), aby je maska neořízla */
.hero__title > div { padding-block: .1em .16em; margin-block: -.1em -.16em; }
.manifesto__word { will-change: opacity; }

/* ======================================================= CO VÁS ZDRŽUJE */
.pains__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 24px; align-items: end; }
.pains__head .h2 { grid-column: 1 / span 7; }
.pains__head .lead { grid-column: 8 / span 5; }
.pains__board {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap);
  margin-top: clamp(48px, 8vh, 96px);
}
.note {
  position: relative;
  padding: clamp(24px, 2.4vw, 36px);
  background: var(--papir);
  border: 1px solid var(--linka);
  border-radius: 6px;
  will-change: transform;
}
.note__quote {
  font-size: clamp(1.375rem, 1.9vw, 1.75rem);
  font-stretch: 112%; font-weight: 600; line-height: 1.1; letter-spacing: -.02em;
}
.note__text { margin-top: 14px; color: var(--bridlice-text); font-size: 1rem; }
.pains__outro {
  margin-top: clamp(40px, 6vh, 72px); max-width: 22em;
  font-size: clamp(1.5rem, 2.4vw, 2.25rem); font-stretch: 112%; font-weight: 560;
  line-height: 1.15; letter-spacing: -.025em;
}
@media (max-width: 900px) {
  .pains__head .h2, .pains__head .lead { grid-column: 1 / -1; }
  .pains__board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) { .pains__board { grid-template-columns: 1fr; } }

/* ============================================================ SLUŽBY */
.services__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.services__visual { grid-column: 1 / span 5; }
.services__stage {
  position: sticky; top: calc(var(--header-h) + 8vh);
  aspect-ratio: 4 / 3; color: var(--inkoust);
}
/* Odchod rychlejší než příchod: stará kresba zmizí dřív, než nová naběhne,
   takže se dvě liniové kresby nikdy nepřekrývají. */
.services__art {
  position: absolute; inset: 0;
  opacity: 0; transform: scale(.96);
  transition: opacity .22s var(--ease-out), transform .22s var(--ease-out);
}
.services__art.is-active {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease-out) .2s, transform .8s var(--ease-out) .2s;
}
.services__list { grid-column: 7 / span 6; }
.services__list .h2 { margin-bottom: clamp(24px, 4vh, 48px); }
.svc {
  padding-block: clamp(32px, 7vh, 72px);
  border-top: 1px solid var(--linka);
  min-height: 52vh;
}
.svc .h3 { margin-bottom: 14px; }
.svc > p { max-width: 32em; }
.svc__art { display: none; }

@media (max-width: 900px) {
  .services__visual { display: none; }
  .services__list { grid-column: 1 / -1; }
  .svc { min-height: 0; }
  .svc__art { display: block; max-width: 420px; aspect-ratio: 4 / 3; margin-bottom: 24px; }
}

/* Ilustrace — pohyb běží jen u aktivní služby */
.art { width: 100%; height: 100%; overflow: visible; }
.art .art-fill { fill: var(--uhel); stroke: var(--uhel); }
.art .art-flow { stroke-dasharray: 4 7; }
.art .art-pulse, .art .art-token, .art .art-sweep, .art .art-scan, .art .art-detect, .art .art-frame { opacity: 0; }
.art .art-sweep { fill: rgba(10, 12, 12, .06); stroke: none; }
.art .art-pulse { transform-box: fill-box; transform-origin: center; }
.art .art-token { offset-rotate: 0deg; }
.art .art-bars rect { transform-box: fill-box; transform-origin: bottom; }
.art .art-belt { will-change: transform; }

.is-active > .art .art-flow   { animation: flow 1.4s linear infinite; }
.is-active > .art .art-token  { opacity: 1; animation: token 3.2s var(--ease-io) infinite; }
.is-active > .art .art-token--late { animation-delay: -1.6s; }
.is-active > .art .art-pulse  { animation: pulse 2.4s var(--ease-out) infinite; }
.is-active > .art .art-bars rect { animation: bars 2.8s var(--ease-io) infinite alternate; }
.is-active > .art .art-bars rect:nth-child(2) { animation-delay: -.7s; }
.is-active > .art .art-bars rect:nth-child(3) { animation-delay: -1.4s; }
.is-active > .art .art-bars rect:nth-child(4) { animation-delay: -2.1s; }
.is-active > .art .art-sweep  { opacity: 1; animation: sweep 3.6s var(--ease-io) infinite; }
.is-active > .art .art-scan   { opacity: 1; animation: scan 3s var(--ease-io) infinite; }
.is-active > .art .art-detect { animation: detect 3s var(--ease-io) infinite; }
.is-active > .art .art-detect--late { animation: detect-late 3s var(--ease-io) infinite; }
.is-active > .art .art-belt   { animation: belt 2.6s linear infinite; }
.is-active > .art .art-frame  { animation: frame 2.6s linear infinite; }

@keyframes flow   { to { stroke-dashoffset: -22; } }
@keyframes token  { 0% { offset-distance: 0%; } 70%, 100% { offset-distance: 100%; } }
@keyframes pulse  { 0% { opacity: .55; transform: scale(.82); } 100% { opacity: 0; transform: scale(1.18); } }
@keyframes bars   { 0% { transform: scaleY(.45); } 100% { transform: scaleY(1); } }
@keyframes sweep  { 0%, 8% { transform: translateY(0); } 33%, 41% { transform: translateY(26px); } 66%, 100% { transform: translateY(52px); } }
@keyframes scan   { 0% { transform: translateY(0); opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { transform: translateY(230px); opacity: 0; } }
@keyframes detect { 0%, 30% { opacity: 0; } 36%, 100% { opacity: 1; } }
@keyframes detect-late { 0%, 72% { opacity: 0; } 78%, 100% { opacity: 1; } }
@keyframes belt   { to { transform: translateX(90px); } }
@keyframes frame  { 0%, 30% { opacity: 0; } 38%, 62% { opacity: 1; } 70%, 100% { opacity: 0; } }

/* ============================================================ POSTUP */
.process__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 24px; align-items: end; }
.process__head .h2 { grid-column: 1 / span 6; }
.process__head .lead { grid-column: 7 / span 6; }
.process__viewport { position: relative; margin-top: clamp(48px, 8vh, 96px); }
.process__track {
  width: min(100% - 2 * var(--gut), var(--maxw)); margin-inline: auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px var(--gap);
}
.step { position: relative; }
.step__num {
  display: block;
  font-size: clamp(3.5rem, 6vw, 6rem); font-stretch: 125%; font-weight: 300;
  line-height: .9; letter-spacing: -.05em; color: var(--bridlice);
  font-variant-numeric: tabular-nums;
}
.step__dot { display: block; width: 12px; height: 12px; margin: 22px 0 22px; border-radius: 50%; border: 1.5px solid var(--inkoust); background: var(--kost); position: relative; z-index: 1; transition: background-color .4s; }
.step.is-reached .step__dot { background: var(--inkoust); }
.step .h3 { margin-bottom: 6px; }
.step__time { font-weight: 560; font-stretch: 106%; color: var(--bridlice-text); margin-bottom: 14px; }
.step > p:not(.step__time) { font-size: 1rem; max-width: 26em; }
.process__rail { display: none; }

@media (max-width: 900px) {
  .process__head .h2, .process__head .lead { grid-column: 1 / -1; }
}

/* Vodorovná dráha na desktopu (jen s pohybem) */
@media (min-width: 1024px) {
  .motion .process { padding-block: 0; }
  .motion .process__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--header-h) + 4vh) 8vh; }
  .motion .process__viewport { overflow: hidden; }
  .motion .process__track {
    width: max-content; margin: 0; display: flex; gap: 0;
    padding-left: max(var(--gut), (100vw - var(--maxw)) / 2);
    padding-right: 12vw;
    will-change: transform;
  }
  .motion .step { width: clamp(320px, 31vw, 460px); padding-right: clamp(32px, 4vw, 72px); }
  .motion .process__rail {
    display: block; position: absolute; left: 0; right: 0; height: 1.5px;
    top: calc(clamp(3.5rem, 6vw, 6rem) * .9 + 22px + 6px);
    background: var(--linka);
  }
  .motion .process__rail i { display: block; height: 100%; background: var(--inkoust); transform-origin: left; transform: scaleX(0); }
}

/* ========================================================== VÝSLEDKY */
.results__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 48px; margin-bottom: clamp(32px, 6vh, 72px); }
.results__note { color: var(--bridlice-text); max-width: 24em; }
.case {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 24px;
  padding-block: clamp(40px, 7vh, 80px);
  border-top: 1px solid var(--linka);
}
.case__figure { grid-column: 1 / span 6; }
.case__num {
  display: block;
  font-size: clamp(4rem, 10.5vw, 11rem); font-stretch: 125%; font-weight: 640;
  line-height: .86; letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.case__label { display: block; margin-top: 16px; font-size: clamp(1.1875rem, 1.6vw, 1.5rem); font-stretch: 108%; font-weight: 520; color: var(--bridlice-text); }
.case__body { grid-column: 8 / span 5; align-self: end; }
.case__who { color: var(--bridlice-text); font-weight: 520; margin-bottom: 10px; }
.case__body .h3 { margin-bottom: 14px; }
.case__facts { display: flex; flex-wrap: wrap; gap: 20px 40px; margin-top: 24px; }
.case__facts dt { font-size: .9375rem; color: var(--bridlice-text); order: 2; }
.case__facts div { display: flex; flex-direction: column; }
.case__facts dd { font-size: 1.5rem; font-stretch: 116%; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.stats { margin-top: clamp(48px, 8vh, 96px); padding-top: 32px; border-top: 1px solid var(--linka-silna); }
.stats__intro { color: var(--bridlice-text); margin-bottom: 28px; }
.stats__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px var(--gap); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; }
.stat dd { font-size: clamp(2.25rem, 3.4vw, 3.5rem); font-stretch: 120%; font-weight: 620; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat dt { color: var(--bridlice-text); font-size: 1rem; max-width: 16em; }

@media (max-width: 900px) {
  .case__figure, .case__body { grid-column: 1 / -1; }
  .stats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ========================================================= REFERENCE
   Mřížka dlaždic jako arch brandmanuálu. Loga mají stejnou optickou plochu
   (šířka --w spočítaná z poměru stran), barvu přebírají z dlaždice. */
.refs__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 24px; align-items: end; }
.refs__head .h2 { grid-column: 1 / span 6; }
.refs__head .lead { grid-column: 7 / span 6; }
.refs__grid {
  --logo-scale: 1;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5px;
  margin-top: clamp(40px, 7vh, 80px);
  background: var(--linka-silna); border: 1.5px solid var(--linka-silna); border-radius: 6px; overflow: hidden;
}
/* Logo nahoře uprostřed, obor pod ním v běžném toku — nic absolutně umístěného,
   takže se popisek nemůže ztratit ani překrýt logo, ať je text jakkoli dlouhý. */
.ref {
  position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; row-gap: 12px;
  aspect-ratio: 16 / 10; padding: 28px 22px 16px;
  background: var(--kost); color: var(--inkoust);
  transition: background-color .55s var(--ease-out), color .55s var(--ease-out);
}
.ref__logo {
  align-self: center; justify-self: center;
  width: calc(var(--w) * 1px * var(--logo-scale)); max-width: 100%; height: auto; overflow: visible;
}
.ref__sector {
  font-size: .875rem; line-height: 1.35;
  color: var(--bridlice-text);                  /* 5,49:1 na kosti — pevná barva, žádné míchání */
  transition: color .55s var(--ease-out);
}
/* Tmavá varianta dlaždice: počáteční šachovnice (přidává skript) a najetí myší */
.ref.is-dark { background: var(--uhel); color: var(--kost); }
.ref.is-dark .ref__sector { color: var(--bridlice-svetla); }   /* 6,55:1 na uhlu */
@media (hover: hover) {
  .ref:hover { background: var(--uhel); color: var(--kost); }
  .ref:hover .ref__sector { color: var(--bridlice-svetla); }
}

@media (max-width: 1100px) { .refs__grid { --logo-scale: .82; } }
@media (max-width: 900px) {
  .refs__head .h2, .refs__head .lead { grid-column: 1 / -1; }
  .refs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); --logo-scale: .7; }
}
@media (max-width: 480px) {
  .refs__grid { --logo-scale: .56; }
  .ref { aspect-ratio: 1 / 1; padding: 20px 14px 12px; row-gap: 8px; }
}

/* =========================================================== SYSTÉMY */
.systems { padding-block: var(--sekce) calc(var(--sekce) * .8); overflow: hidden; }
.systems__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 24px; align-items: end; }
.systems__head .h2 { grid-column: 1 / span 6; }
.systems__head .lead { grid-column: 7 / span 6; }
.systems__rows { margin-top: clamp(48px, 8vh, 96px); display: grid; gap: clamp(8px, 1.4vw, 20px); }
.systems__row {
  display: flex; align-items: center; gap: clamp(20px, 2.6vw, 44px);
  width: max-content; white-space: nowrap; will-change: transform;
}
.systems__row[data-row="1"] { transform: translateX(-18%); }
.systems__item {
  font-size: clamp(2.5rem, 6.4vw, 6.75rem); font-stretch: 125%; font-weight: 300;
  line-height: 1.05; letter-spacing: -.045em; color: var(--bridlice);
}
.systems__sep { width: clamp(16px, 1.6vw, 26px); height: auto; aspect-ratio: 101.5 / 94.62; color: var(--inkoust); flex: none; }
@media (max-width: 900px) {
  .systems__head .h2, .systems__head .lead { grid-column: 1 / -1; }
}

/* ========================================================== PROČ MY */
.trust__title { max-width: 12em; }
.trust__list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 5vh, 56px) var(--gap);
  margin-top: clamp(40px, 7vh, 80px);
}
.trust__list li { padding-top: 22px; border-top: 1.5px solid var(--inkoust); }
.trust__list p { margin-top: 10px; color: var(--bridlice-text); font-size: 1rem; max-width: 24em; }
@media (max-width: 900px) { .trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .trust__list { grid-template-columns: 1fr; } }

.quote { margin-top: clamp(80px, 14vh, 160px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.quote blockquote { grid-column: 2 / span 10; }
.quote blockquote p {
  font-size: clamp(1.75rem, 3.6vw, 3.5rem); font-stretch: 112%; font-weight: 520;
  line-height: 1.12; letter-spacing: -.03em; text-wrap: balance;
}
.quote blockquote p::before { content: "„"; }
.quote blockquote p::after { content: "“"; }
.quote figcaption { grid-column: 2 / span 10; margin-top: 28px; color: var(--bridlice-text); }
@media (max-width: 900px) { .quote blockquote, .quote figcaption { grid-column: 1 / -1; } }

/* ======================================================== SPOLUPRÁCE */
.plans__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 24px; align-items: end; }
.plans__head .h2 { grid-column: 1 / span 6; }
.plans__head .lead { grid-column: 7 / span 6; }
.plans__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(40px, 7vh, 80px); }
.plan {
  display: flex; flex-direction: column;
  padding: clamp(28px, 3vw, 44px);
  border-left: 1px solid var(--linka);
}
.plan:first-child { border-left: 0; padding-left: 0; }
.plan--featured { background: var(--papir); border-left: 0; border-radius: 6px; }
.plan--featured + .plan { border-left: 0; }
.plan__flag { font-weight: 560; font-stretch: 106%; color: var(--bridlice-text); margin-bottom: 18px; }
.plan .h3 { margin-bottom: 12px; }
.plan__for { min-height: 3.2em; }
.plan__price { margin-top: 28px; font-size: clamp(1.75rem, 2.4vw, 2.25rem); font-stretch: 118%; font-weight: 620; letter-spacing: -.03em; line-height: 1; }
.plan__note { margin-top: 8px; color: var(--bridlice-text); font-size: 1rem; }
.plan .ticks { margin-bottom: 32px; font-size: 1rem; }
.plan__cta { margin-top: auto; align-self: flex-start; }
@media (max-width: 1000px) {
  .plans__head .h2, .plans__head .lead { grid-column: 1 / -1; }
  .plans__grid { grid-template-columns: 1fr; gap: 16px; }
  .plan, .plan:first-child { border-left: 0; border-top: 1px solid var(--linka); padding: 32px 0; }
  .plan--featured { padding: 32px 24px; border-top: 0; }
  .plan__for { min-height: 0; }
}

/* ============================================================== FAQ */
.faq__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; }
.faq__grid .h2 { grid-column: 1 / span 4; align-self: start; position: sticky; top: calc(var(--header-h) + 32px); }
.faq__list { grid-column: 6 / span 7; border-top: 1px solid var(--linka-silna); }
.faq__item { border-bottom: 1px solid var(--linka-silna); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  min-height: 72px; padding-block: 20px; cursor: pointer; list-style: none;
  font-size: clamp(1.125rem, 1.4vw, 1.3125rem); font-stretch: 108%; font-weight: 560; letter-spacing: -.012em; line-height: 1.25;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { position: relative; flex: none; width: 16px; height: 16px; }
.faq__item summary i::before, .faq__item summary i::after {
  content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .45s var(--ease-out);
}
.faq__item summary i::after { transform: rotate(90deg); }
.faq__item[open] summary i::after { transform: rotate(0); }
.faq__answer { overflow: hidden; }
.faq__answer p { padding: 0 48px 28px 0; color: var(--bridlice-text); max-width: 38em; }
@media (max-width: 900px) {
  .faq__grid .h2 { grid-column: 1 / -1; position: static; }
  .faq__list { grid-column: 1 / -1; }
  .faq__answer p { padding-right: 0; }
}

/* ========================================================== KONTAKT */
.contact { padding-bottom: calc(var(--sekce) * .8); }
.contact__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 56px; }
.contact__intro { grid-column: 1 / span 5; position: relative; }
.contact__arch {
  width: clamp(72px, 7vw, 112px); height: auto; margin-bottom: 32px;
  fill: none; stroke: var(--inkoust); stroke-width: 1.4; vector-effect: non-scaling-stroke;
  overflow: visible;
}
.contact__title { margin-bottom: 24px; }
.contact__facts { display: grid; gap: 18px; margin-top: 40px; }
.contact__facts div { display: grid; grid-template-columns: 8.5em 1fr; gap: 16px; padding-top: 18px; border-top: 1px solid var(--linka); }
.contact__facts dt { color: var(--bridlice-text); }
.contact__facts dd a {
  display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px;
  font-weight: 560; background: linear-gradient(currentColor, currentColor) left calc(100% - 11px) / 100% 1.5px no-repeat;
}

.form {
  grid-column: 7 / span 6;
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px var(--gap);
  align-content: start;
}
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field { grid-column: 1 / -1; display: grid; gap: 8px; }
.field--half { grid-column: span 1; }
.field label { font-weight: 560; font-stretch: 106%; font-size: 1rem; }
.field__opt { font-weight: 400; color: var(--bridlice-text); margin-left: .35em; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 56px; padding: 14px 18px;
  background: var(--papir); border: 1.5px solid var(--linka-silna); border-radius: 10px;
  font-size: 1rem; line-height: 1.4;
  transition: border-color .25s, background-color .25s;
}
.field textarea { min-height: 148px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(-45deg, transparent 50%, currentColor 50%); background-position: right 24px center, right 18px center; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 48px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--inkoust); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--inkoust); outline-offset: 2px; border-color: var(--inkoust); background: #fff; }
.field__hint { font-size: .9375rem; color: var(--bridlice-text); }
.field__error { display: none; font-size: .9375rem; color: var(--chyba); font-weight: 520; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--chyba); }
.field.is-invalid .field__error { display: block; }
.field.is-invalid .field__error::before { content: "Chyba: "; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.field--check { grid-template-columns: 24px 1fr; align-items: start; column-gap: 14px; }
.field--check input { width: 24px; height: 24px; min-height: 0; padding: 0; margin-top: 1px; accent-color: var(--inkoust); }
.field--check label { font-weight: 400; font-stretch: 100%; }
.field--check label a { text-decoration: underline; text-underline-offset: 3px; }
.field--check .field__error { grid-column: 2; }

.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 8px; }
.form__status { font-weight: 520; }
.form__status.is-error { color: var(--chyba); }
.form__done { grid-column: 1 / -1; padding: 40px 0; }
.form__done .h3 { margin-bottom: 12px; }

@media (max-width: 1000px) {
  .contact__intro, .form { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .field--half { grid-column: 1 / -1; }
  .contact__facts div { grid-template-columns: 1fr; gap: 4px; }
}

/* =========================================================== PATIČKA */
.footer { padding-top: clamp(72px, 12vh, 140px); border-top: 1px solid var(--linka); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px var(--gap); }
.footer__title { font-size: 1rem; font-weight: 560; font-stretch: 106%; color: var(--bridlice-text); margin-bottom: 14px; }
.footer__col p + p { margin-top: 12px; }
.footer__mail {
  display: inline-flex; align-items: center; min-height: 48px;
  font-size: clamp(1.375rem, 2vw, 1.75rem); font-stretch: 112%; font-weight: 600; letter-spacing: -.02em;
  background: linear-gradient(currentColor, currentColor) left calc(100% - 8px) / 100% 2px no-repeat;
}
.footer__muted { color: var(--bridlice-text); font-size: 1rem; }
.footer__links { display: grid; }
.footer__links a, .footer__linkbtn { display: inline-flex; align-items: center; min-height: 44px; text-align: left; }
.footer__links a:hover, .footer__linkbtn:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__mark { width: min(100% - 2 * var(--gut), var(--maxw)); margin: clamp(0px, 2vh, 24px) auto 0; color: var(--inkoust); }
/* Nad písmeny je místo na výskok (viewBox začíná na y = −60, i natažené b ve výskoku se vejde), dole je „podlaha":
   písmena se z ní vynoří a za ni se schovají. */
.footer__mark svg { width: 100%; height: auto; aspect-ratio: 424.34 / 224.65; overflow: hidden; }
.wordmark__l { will-change: transform; }
.motion .footer__mark { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 28px 32px; color: var(--bridlice-text); font-size: .9375rem; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

/* ======================================== SOUHLAS S COOKIES A UKAZATEL */
.consent {
  position: fixed; right: var(--gut); bottom: 20px; z-index: 120;
  width: min(420px, calc(100% - 2 * var(--gut)));
  padding: 22px 24px; border-radius: 12px;
  background: var(--papir); border: 1px solid var(--linka-silna);
  box-shadow: 0 18px 48px -24px rgba(10, 12, 12, .35);
}
.consent[hidden] { display: none; }
.consent__text { font-size: 1rem; }
.consent__text a { text-decoration: underline; text-underline-offset: 3px; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
@media (max-width: 560px) {
  .consent { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 16px 18px; }
  .consent__text { font-size: .9375rem; line-height: 1.45; }
  .consent__actions { margin-top: 12px; }
  .consent__actions .btn { flex: 1 1 0; padding: 0 14px; }
}

/* Ukazatel polohy: svisle v levém okraji stránky, aby nikdy nepřekryl obsah.
   Otočený kolem levého dolního rohu — text čte zdola nahoru. */
.hud {
  position: fixed; left: calc(var(--gut) / 2 + 10px); bottom: 28px; z-index: 80;
  display: none; align-items: center; gap: 14px;
  transform-origin: 0 100%; transform: rotate(-90deg);
  font-size: .8125rem; font-weight: 560; font-stretch: 106%; line-height: 20px; height: 20px;
  color: var(--inkoust); pointer-events: none; white-space: nowrap;
  transition: color .35s, opacity .35s;
}
.motion .hud { display: flex; }
.hud[data-tone="dark"] { color: var(--kost); }
.hud.is-hidden { opacity: 0; }
.hud__label { position: relative; display: block; height: 20px; overflow: hidden; min-width: 9em; }
.hud__text { display: block; line-height: 20px; }
.hud__bar { position: relative; width: 96px; height: 1.5px; background: rgba(10, 12, 12, .25); background: color-mix(in srgb, currentColor 25%, transparent); }
.hud__bar i { position: absolute; inset: 0; background: currentColor; transform-origin: left; transform: scaleX(0); }
@media (max-width: 1099px) { .motion .hud { display: none; } }   /* úzký okraj: ukazatel by se nevešel */

/* ============================================ PRÁVNÍ STRÁNKA (zásady) */
.legal { padding-top: calc(var(--header-h) + clamp(48px, 10vh, 120px)); padding-bottom: var(--sekce); }
.legal__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; }
.legal__head { grid-column: 1 / span 5; align-self: start; position: sticky; top: calc(var(--header-h) + 32px); }
.legal__head h1 { font-size: clamp(2.5rem, 4.6vw, 4.5rem); font-stretch: 118%; font-weight: 620; line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
.legal__head p { margin-top: 20px; color: var(--bridlice-text); }
.legal__body { grid-column: 7 / span 6; }
.legal__body h2 { font-size: 1.5rem; font-stretch: 112%; font-weight: 600; letter-spacing: -.02em; margin: 56px 0 14px; scroll-margin-top: calc(var(--header-h) + 24px); }
.legal__body h2:first-child { margin-top: 0; }
.legal__body p, .legal__body li { max-width: 36em; }
.legal__body p + p { margin-top: 14px; }
.legal__body ul { margin-top: 12px; display: grid; gap: 8px; }
.legal__body ul li { position: relative; padding-left: 1.4em; }
.legal__body ul li::before { content: ""; position: absolute; left: 0; top: .78em; width: .8em; height: 2px; background: currentColor; opacity: .55; }
.legal__body dl { display: grid; gap: 10px; margin-top: 14px; }
.legal__body dl div { display: grid; grid-template-columns: 7em 1fr; gap: 16px; }
.legal__body dt { color: var(--bridlice-text); }
.legal__body a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .legal__head, .legal__body { grid-column: 1 / -1; position: static; }
}

/* ======================================================== RESPONZIVITA */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; align-items: start; row-gap: 0; }
  .hero__content { grid-column: 1; align-self: start; padding-bottom: 28px; }
  .arch { grid-column: 1; justify-self: end; align-self: end; width: min(70vw, 38svh); }
  .hero__title { font-size: clamp(2.5rem, 10.6vw, 4.5rem); }
}
@media (max-width: 900px) and (max-height: 760px) {
  .hero__lead { font-size: 1rem; }
}
@media (max-width: 420px) {
  .hero__actions .link { display: none; }      /* na nejužších displejích jen hlavní akce */
}
@media (max-width: 900px) {
  .motion .hero__grid { grid-template-rows: auto 1fr; }
}
.arch--compact .arch__log { display: none; }  /* malé okno: bez ukázky, jen tvar */

/* =============================================== OMEZENÝ POHYB A TISK */

/* ===================================================== PŘISTÁVACÍ STRÁNKY
   ai-skoleni.php — stejné tokeny a prvky jako úvod, jen bez scény s obloukem. */
.lp-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 24px; align-items: end; }
.lp-head .h2 { grid-column: 1 / span 7; }
.lp-head .lead { grid-column: 8 / span 5; }

.lp-hero { position: relative; }
.lp-hero__grid {
  min-height: min(100svh, 1000px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px;
  align-items: center;
  padding-top: calc(var(--header-h) + clamp(40px, 8vh, 104px));
  padding-bottom: clamp(32px, 6vh, 72px);
}
.lp-hero__content { grid-column: 1 / span 7; }
.lp-hero__kicker { font-weight: 560; font-stretch: 106%; color: var(--bridlice-text); margin-bottom: clamp(18px, 3vh, 32px); }
.lp-hero__title { font-size: clamp(2.75rem, 6vw, 6.5rem); max-width: 8.6em; }
.lp-hero__valid { color: var(--bridlice-text); font-size: .9375rem; padding-bottom: 32px; }

.lp-facts {
  grid-column: 9 / span 4;
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1.5px solid var(--inkoust);
}
.lp-fact { display: flex; flex-direction: column; gap: 6px; padding: 20px 0 22px; border-bottom: 1px solid var(--linka-silna); }
.lp-fact:nth-child(2n) { padding-right: 16px; }
.lp-fact:nth-child(2n+1):not(.lp-fact--main) { padding-left: 16px; border-left: 1px solid var(--linka-silna); }
.lp-fact dt { order: 2; color: var(--bridlice-text); font-size: .9375rem; line-height: 1.4; }
.lp-fact dd { order: 1; font-size: clamp(1.75rem, 2.4vw, 2.25rem); font-stretch: 118%; font-weight: 620; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lp-fact--main { grid-column: 1 / -1; padding-block: 24px 26px; }
.lp-fact--main dd:first-of-type { font-size: clamp(4rem, 8vw, 7.5rem); font-stretch: 125%; letter-spacing: -.05em; line-height: .9; }
.lp-fact--main dt { font-size: 1.0625rem; color: var(--inkoust); font-weight: 560; }
.lp-fact dd.lp-fact__note { order: 3; font-size: .9375rem; font-stretch: 100%; font-weight: 400; letter-spacing: 0; line-height: 1.45; white-space: normal; color: var(--bridlice-text); }

/* Chat vs. práce */
.lp-compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap);
  margin-top: clamp(40px, 7vh, 80px);
}
.lp-compare__col { padding: clamp(24px, 3vw, 44px); border-radius: 6px; }
.lp-compare__col .ticks { margin-top: 18px; }
.lp-compare__col--before { border: 1px solid var(--linka-silna); color: var(--uhel); }
.lp-compare__col--before .h4 { color: var(--inkoust); }
.lp-compare__col--before .ticks li::before { width: .7em; height: 1.5px; top: .8em; transform: rotate(45deg); box-shadow: none; }
.lp-compare__col--after { background: var(--uhel); color: var(--kost); }
.lp-compare__col--after .ticks li::before { opacity: 1; }
.lp-outcomes { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.lp-hero__proof { margin-top: 20px; color: var(--bridlice-text); font-size: 1rem; }
.lp-hero__proof a { color: var(--inkoust); font-weight: 560; text-decoration: underline; text-underline-offset: 3px; }

/* Lektor — tmavý pás jako „Po kurzu", číslo dominuje */
.lp-lector { background: var(--uhel); color: var(--kost); padding-block: var(--sekce); }
.lp-lector :focus-visible { outline-color: var(--kost); }
.lp-lector__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; align-items: center; }
.lp-lector__num {
  grid-column: 1 / span 6;
  font-size: clamp(4.5rem, 10.5vw, 10.5rem); font-stretch: 125%; font-weight: 640; letter-spacing: -.055em; line-height: .85;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.lp-lector__body { grid-column: 7 / span 6; }
.lp-lector__body .lead { margin-top: 24px; color: var(--bridlice-svetla); }
.lp-lector__body .ticks { margin-top: 28px; }
@media (max-width: 1000px) {
  .lp-lector__num, .lp-lector__body { grid-column: 1 / -1; }
}

/* Program */
.lp-modules { margin-top: clamp(40px, 7vh, 80px); border-top: 1px solid var(--linka-silna); }
.lp-module {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 12px;
  padding-block: clamp(24px, 4vh, 40px);
  border-bottom: 1px solid var(--linka-silna);
  align-items: start;
}
.lp-module__num {
  grid-column: 1 / span 2;
  font-size: clamp(2.5rem, 4vw, 4rem); font-stretch: 125%; font-weight: 300; line-height: .9; letter-spacing: -.05em;
  color: var(--bridlice); font-variant-numeric: tabular-nums;
}
.lp-module__body { grid-column: 3 / span 5; }
.lp-module__body p { margin-top: 10px; color: var(--bridlice-text); font-size: 1rem; max-width: 30em; }
.lp-module__out { grid-column: 9 / span 4; font-weight: 520; }
.lp-module__out span { display: block; font-size: .9375rem; font-weight: 400; color: var(--bridlice-text); margin-bottom: 4px; }
.lp-specs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px var(--gap);
  margin-top: clamp(40px, 6vh, 64px);
}
.lp-specs dt { color: var(--bridlice-text); font-size: .9375rem; }
.lp-specs dd { margin-top: 4px; font-weight: 520; }

/* Cena a kalkulačka */
.lp-price { background: var(--papir); border-block: 1px solid var(--linka); }
.lp-calc {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px;
  margin-top: clamp(40px, 7vh, 80px);
  padding: clamp(24px, 3.4vw, 56px);
  background: var(--kost); border: 1px solid var(--linka-silna); border-radius: 6px;
}
.lp-calc__input { grid-column: 1 / span 5; display: grid; grid-template-columns: 1fr auto; align-content: start; gap: 8px 16px; }
.lp-calc__label { font-weight: 560; font-stretch: 106%; align-self: end; }
.lp-calc__n {
  font-size: clamp(3.5rem, 6vw, 6rem); font-stretch: 125%; font-weight: 620; letter-spacing: -.05em; line-height: .9;
  font-variant-numeric: tabular-nums; text-align: right;
}
.lp-calc__groups { grid-column: 1 / -1; color: var(--bridlice-text); font-size: .9375rem; }
.lp-calc__range {
  grid-column: 1 / -1; width: 100%; height: 44px; margin-top: 12px;
  -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer;
  --fill: 16.6%;
}
.lp-calc__range::-webkit-slider-runnable-track {
  height: 3px; border-radius: 3px;
  background: linear-gradient(var(--inkoust), var(--inkoust)) 0 0 / var(--fill) 100% no-repeat, var(--linka-silna);
}
.lp-calc__range::-moz-range-track { height: 3px; border-radius: 3px; background: var(--linka-silna); }
.lp-calc__range::-moz-range-progress { height: 3px; border-radius: 3px; background: var(--inkoust); }
.lp-calc__range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; margin-top: -12.5px; border-radius: 50%;
  background: var(--inkoust); border: 4px solid var(--kost); box-shadow: 0 0 0 1.5px var(--inkoust);
}
.lp-calc__range::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--inkoust); border: 4px solid var(--kost); box-shadow: 0 0 0 1.5px var(--inkoust);
}
.lp-calc__range:focus-visible { outline: 2px solid var(--inkoust); outline-offset: 4px; }
.lp-calc__out { grid-column: 7 / span 6; display: grid; align-content: start; }
.lp-calc__out div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--linka); }
.lp-calc__out div:first-child { padding-top: 0; }
.lp-calc__out dt { color: var(--bridlice-text); }
.lp-calc__out dd { font-weight: 600; font-stretch: 110%; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lp-calc__out .lp-calc__total { border-bottom: 0; padding-top: 20px; }
.lp-calc__total dt { color: var(--inkoust); font-weight: 560; }
.lp-calc__total dd { font-size: clamp(2.25rem, 3.6vw, 3.5rem); font-stretch: 122%; font-weight: 620; letter-spacing: -.04em; line-height: 1; }
.lp-calc__pay { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--linka-silna); color: var(--bridlice-text); font-size: 1rem; max-width: 52em; }
.lp-calc__pay span { color: var(--inkoust); font-weight: 560; white-space: nowrap; }

.lp-table { margin-top: 32px; overflow-x: auto; }
.lp-table:focus-visible { outline-offset: 4px; }
.lp-table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 1rem; font-variant-numeric: tabular-nums; }
.lp-table th, .lp-table td { padding: 14px 16px 14px 0; text-align: right; border-bottom: 1px solid var(--linka); white-space: nowrap; }
.lp-table thead th { font-weight: 400; color: var(--bridlice-text); font-size: .9375rem; border-bottom-color: var(--linka-silna); }
.lp-table th:first-child { text-align: left; }
.lp-table tbody th { font-weight: 520; }
.lp-note { margin-top: 24px; color: var(--bridlice-text); font-size: .9375rem; max-width: 60em; }

/* Postup */
.lp-steps__list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 6vh, 64px) var(--gap);
  margin-top: clamp(40px, 7vh, 80px);
  counter-reset: none;
}
.lp-step { padding-top: 20px; border-top: 1.5px solid var(--inkoust); }
.lp-step__num { display: block; font-size: 1rem; font-weight: 560; color: var(--bridlice-text); font-variant-numeric: tabular-nums; margin-bottom: 14px; }
.lp-step p { margin-top: 10px; color: var(--bridlice-text); font-size: 1rem; max-width: 26em; }
.lp-cond {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px var(--gap);
  margin-top: clamp(56px, 9vh, 104px); padding-top: 32px; border-top: 1px solid var(--linka-silna);
}
.lp-cond .ticks { max-width: 34em; }

.lp-source { color: var(--bridlice-text); font-size: .875rem; padding-bottom: 48px; }

/* Lepicí výzva na mobilu */
.lp-sticky {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70;
  display: none;
  transition: transform .45s var(--ease-out), opacity .3s;
}
.lp-sticky .btn { width: 100%; box-shadow: 0 12px 32px -12px rgba(10, 12, 12, .5); }
.lp-sticky.is-off { transform: translateY(140%); opacity: 0; pointer-events: none; }

@media (max-width: 1000px) {
  .lp-head .h2, .lp-head .lead { grid-column: 1 / -1; }
  .lp-hero__content, .lp-facts { grid-column: 1 / -1; }
  .lp-hero__grid { min-height: 0; }
  .lp-facts { max-width: 560px; }
  .lp-calc__input, .lp-calc__out { grid-column: 1 / -1; }
  .lp-module__num { grid-column: 1 / span 2; }
  .lp-module__body { grid-column: 3 / -1; }
  .lp-module__out { grid-column: 3 / -1; }
  .lp-specs { grid-template-columns: 1fr 1fr; }
  .lp-steps__list, .lp-outcomes { grid-template-columns: 1fr 1fr; }
  .lp-sticky:not([hidden]) { display: block; }
  .lp .contact { padding-bottom: calc(var(--sekce) * .8 + 72px); }
}
@media (max-width: 700px) {
  .lp-compare, .lp-cond { grid-template-columns: 1fr; }
  .lp-steps__list, .lp-outcomes { grid-template-columns: 1fr; }
  .lp-module { grid-template-columns: 3.2em 1fr; }
  .lp-module__num { grid-column: 1; font-size: 2rem; }
  .lp-module__body, .lp-module__out { grid-column: 2; }
}
@media (max-width: 420px) {
  .lp-fact dd { font-size: 1.5rem; }
  .lp-specs { grid-template-columns: 1fr; }
  .lp-calc__out div { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .art .art-token, .art .art-scan, .art .art-detect, .art .art-frame { opacity: 1; }
}
@media print {
  .header, .menu, .consent, .hud, .arch, .footer__mark, .form { display: none !important; }
  .manifesto { background: none; color: #000; }
}
