/* SOS PC – jednoduchý web, ktorý sa správa trochu nepredvídateľne.
   Identita = premenné v :root. Akcent mení JavaScript podľa "seedu" návštevy. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(../assets/fonts/bricolage-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(../assets/fonts/bricolage-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../assets/fonts/jetbrains-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../assets/fonts/jetbrains-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../assets/fonts/jetbrains-symboly.woff2) format("woff2");
  unicode-range: U+2190, U+2192, U+2197-2198, U+21BB, U+2500, U+2502, U+250C, U+2510, U+2514, U+2518, U+2588, U+2591-2593, U+25CB, U+25CF, U+2713, U+2715, U+2736;
}

:root {
  --papier: #ecebe5;
  --atrament: #0e0e0c;
  --tlmene: #6b6a63;
  --linka: rgba(14, 14, 12, .16);
  --karta: #f4f3ee;
  --pas: #0e0e0c;
  --pas-text: #ecebe5;
  --pas-tlmene: #8e8d86;
  --pas-linka: rgba(236, 235, 229, .16);
  --akcent: #c8ff00;
  --na-akcente: #0e0e0c;
  --chyba: #c4161c;
  --ok: #1d7a3a;

  --f-display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --okraj: clamp(16px, 4vw, 56px);
  --sirka: 1480px;
  --lista: 56px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-tema="svetla"]) {
    --papier: #0d0d0c;
    --atrament: #e9e8e2;
    --tlmene: #8b8a83;
    --linka: rgba(233, 232, 226, .15);
    --karta: #151513;
    --pas: #e9e8e2;
    --pas-text: #0d0d0c;
    --pas-tlmene: #5d5c56;
    --pas-linka: rgba(13, 13, 12, .16);
    --chyba: #ff6b6b;
    --ok: #6fdc8c;
  }
}
:root[data-tema="tmava"] {
  --papier: #0d0d0c;
  --atrament: #e9e8e2;
  --tlmene: #8b8a83;
  --linka: rgba(233, 232, 226, .15);
  --karta: #151513;
  --pas: #e9e8e2;
  --pas-text: #0d0d0c;
  --pas-tlmene: #5d5c56;
  --pas-linka: rgba(13, 13, 12, .16);
  --chyba: #ff6b6b;
  --ok: #6fdc8c;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--lista) + 16px);
  background: var(--papier);
  transition: filter .12s;
  overflow-x: clip;
}
/* Prvky čakajúce na zjavenie sú posunuté do strán. Bez orezania by na mobile
   roztiahli stránku do šírky a prehliadač by ju oddialil. */
main, .paticka { overflow-x: clip; }
html.invert { filter: invert(1) hue-rotate(180deg); }

body {
  margin: 0;
  background: var(--papier);
  color: var(--atrament);
  font-family: var(--f-display);
  font-size: 17px;
  line-height: 1.5;
  font-variation-settings: "opsz" 16;
  overflow-x: clip;
  transition: background-color .4s, color .4s;
}

::selection { background: var(--akcent); color: var(--na-akcente); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--akcent); }
button { font: inherit; color: inherit; }
img, canvas, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--atrament); outline-offset: 3px; box-shadow: 0 0 0 5px var(--akcent); }

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skok {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--akcent); color: var(--na-akcente);
  padding: 10px 14px; font-family: var(--f-mono); font-size: 14px; text-decoration: none;
}
.skok:focus { top: 12px; }

.stitok {
  font-family: var(--f-mono);
  font-size: 12.5px;
  line-height: 1.4;
  letter-spacing: .01em;
  color: var(--tlmene);
  margin: 0 0 18px;
}
.tlmene { color: var(--tlmene); }

.zvyraznenie {
  background: var(--akcent);
  color: var(--na-akcente);
  padding: 0 .07em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-color .5s;
}

/* ---------- lišta ---------- */
.lista {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--lista);
  display: flex; align-items: center; gap: 24px;
  padding: 0 var(--okraj);
  background: color-mix(in srgb, var(--papier) 86%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linka);
}
.znacka {
  font-family: var(--f-mono); font-weight: 700; font-size: 15px;
  text-decoration: none; letter-spacing: -.01em; white-space: nowrap;
}
.znacka-kurzor { color: var(--atrament); animation: blik 1.06s steps(1) infinite; }
.znacka-kurzor.morse { animation: none; }
@keyframes blik { 50% { opacity: 0; } }
.menu { display: flex; gap: 22px; margin-left: auto; font-family: var(--f-mono); font-size: 13px; }
.menu a { text-decoration: none; position: relative; }
.menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--akcent); transform: scaleX(0); transform-origin: var(--o, left);
  transition: transform .35s var(--ease);
}
.menu a:hover::after { transform: scaleX(1); }
.lista-nastroje { display: flex; gap: 8px; align-items: center; }
.seed, .term-tlacidlo {
  font-family: var(--f-mono); font-size: 12px;
  background: transparent; border: 1px solid var(--linka);
  padding: 6px 10px; cursor: pointer; white-space: nowrap; line-height: 1.2;
  transition: background-color .2s, border-color .2s;
}
.seed b { font-weight: 700; }
.seed:hover, .term-tlacidlo:hover { background: var(--akcent); color: var(--na-akcente); border-color: var(--akcent); }
.term-tlacidlo { font-weight: 700; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; perspective: 1100px; perspective-origin: 50% 42%; }
.hero-scena {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-content: end;
  padding: calc(var(--lista) + 40px) var(--okraj) 28px;
}
/* 3D vrstvy úvodu. Pozor: opacity < 1 na prvku s preserve-3d zrúti hĺbku do roviny,
   preto sa pri odchode zo scény priehľadnosť mení len na koncových vrstvách. */
.anim3d .hero-scena, .anim3d .hero-obsah { transform-style: preserve-3d; }
.ascii { pointer-events: auto; }
.ascii-hero {
  position: absolute;
  top: calc(var(--lista) + 12px); right: 0;
  width: 58%; height: calc(100% - var(--lista) - 120px);
  color: var(--atrament);
  cursor: pointer;
}
.hero-obsah { position: relative; z-index: 1; max-width: var(--sirka); pointer-events: none; }
.hero-obsah a, .hero-obsah button { pointer-events: auto; }
.hero-stitok { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-nadpis {
  margin: 0 0 28px;
  font-size: clamp(3.3rem, 12.4vw, 13.6rem);
  line-height: .86;
  letter-spacing: -.045em;
  font-weight: 760;
  font-stretch: 82%;
  font-variation-settings: "opsz" 96, "wght" 760, "wdth" var(--hw, 82);
}
.hero-riadok { display: block; white-space: nowrap; }
.hero-slovo { display: inline-block; padding: 0 .06em .02em; margin-left: -.06em; min-height: .9em; }
.pismeno { display: inline-block; white-space: pre; }
.hero-nadpis .pismeno {
  font-variation-settings: "opsz" 96, "wght" var(--w, 760), "wdth" var(--s, var(--hw, 82));
  transition: font-variation-settings .35s var(--ease);
}
.hero-text {
  max-width: 36rem;
  font-size: clamp(1.05rem, 1.35vw, 1.28rem);
  line-height: 1.45;
  margin: 0 0 28px;
  font-variation-settings: "opsz" 14, "wght" 430;
}
.hero-akcie { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.hero-pata {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between;
  margin: 44px 0 0; max-width: var(--sirka);
}

/* ---------- tlačidlá ---------- */
.tlacidlo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 14px; font-weight: 600;
  padding: 14px 18px;
  background: var(--atrament); color: var(--papier);
  border: 1px solid var(--atrament);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.tlacidlo:hover { background: var(--akcent); color: var(--na-akcente); border-color: var(--akcent); }
.tlacidlo:active { transform: translateY(1px); }
.tlacidlo[disabled] { opacity: .55; cursor: progress; }
.tlacidlo-obrys { background: transparent; color: var(--atrament); }

/* ---------- bežiaci pás ---------- */
.pas {
  border-top: 1px solid var(--linka);
  border-bottom: 1px solid var(--linka);
  overflow: hidden;
  font-family: var(--f-mono);
  font-size: 13.5px;
  padding: 14px 0;
}
.pas-stopa { display: flex; gap: 26px; width: max-content; white-space: nowrap; padding-left: var(--okraj); }
.pas-stopa i { font-style: normal; color: var(--tlmene); }

/* ---------- sekcie ---------- */
.sekcia {
  max-width: var(--sirka);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 176px) var(--okraj) 0;
}
.sekcia-hlava { margin-bottom: clamp(32px, 5vw, 64px); }
.nadpis-1, .nadpis-2 {
  margin: 0;
  letter-spacing: -.038em;
  line-height: .92;
  font-weight: 720;
  font-variation-settings: "opsz" 96, "wght" 720, "wdth" 86;
  text-wrap: balance;
}
.nadpis-1 { font-size: clamp(2.8rem, 8.6vw, 8.6rem); }
.nadpis-2 { font-size: clamp(2.2rem, 5.8vw, 5.6rem); max-width: 17ch; }

/* služby */
.sluzby { border-bottom: 1px solid var(--linka); }
.sluzba { border-top: 1px solid var(--linka); }
.sluzba summary {
  position: relative;
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) auto 2.2rem;
  align-items: center;
  gap: 18px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  isolation: isolate;
}
.sluzba summary::-webkit-details-marker { display: none; }
.sluzba summary::before {
  content: "";
  position: absolute; inset: 0 calc(var(--okraj) * -1);
  background: var(--akcent);
  transform: scaleX(0); transform-origin: var(--o, left);
  transition: transform .5s var(--ease);
  z-index: -1;
}
.sluzba summary:hover::before, .sluzba[open] summary::before { transform: scaleX(1); }
.sluzba summary:hover, .sluzba[open] summary { color: var(--na-akcente); }
.sluzba summary:hover .sluzba-kratko, .sluzba[open] .sluzba-kratko { color: var(--na-akcente); }
.sluzba-cislo { font-family: var(--f-mono); font-size: 13px; }
.sluzba-nazov {
  font-size: clamp(1.75rem, 4.4vw, 4.1rem);
  line-height: 1;
  letter-spacing: -.03em;
  font-weight: 700;
  font-variation-settings: "opsz" 72, "wght" 700, "wdth" 88;
}
.sluzba-kratko { font-family: var(--f-mono); font-size: 13px; color: var(--tlmene); text-align: right; transition: color .2s; }
.sluzba-plus { position: relative; width: 22px; height: 22px; justify-self: end; transition: transform .4s var(--ease); }
.sluzba-plus::before, .sluzba-plus::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: currentColor;
}
.sluzba-plus::after { transform: rotate(90deg); }
.sluzba[open] .sluzba-plus { transform: rotate(45deg); }
.sluzba-telo {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 18px;
  padding: 28px 0 40px;
}
.sluzba-telo p {
  grid-column: 2;
  margin: 0;
  font-size: clamp(1.08rem, 1.5vw, 1.35rem);
  line-height: 1.45;
  font-variation-settings: "opsz" 18, "wght" 430;
  max-width: 38rem;
}
.tagy { grid-column: 3; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.tagy li { font-family: var(--f-mono); font-size: 12px; border: 1px solid var(--linka); padding: 6px 10px; }

/* automatizácia */
.dvojica { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.karta {
  border: 1px solid var(--linka);
  background: var(--karta);
  padding: clamp(22px, 3vw, 36px);
  display: flex; flex-direction: column;
  min-height: 360px;
}
.napad-text {
  font-size: clamp(1.6rem, 2.9vw, 2.7rem);
  line-height: 1.06;
  letter-spacing: -.025em;
  font-weight: 640;
  font-variation-settings: "opsz" 48, "wght" 640, "wdth" 92;
  margin: 0 0 28px;
  min-height: 3.2em;
  flex: 1;
}
.napady { margin: 0 0 24px; padding-left: 1.1em; }
.js .napady { display: none; }
.napad-akcie { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.vibe { background: #0b0b0a; color: #e8e7e1; border-color: #0b0b0a; }
.vibe-hlava { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 12px; color: #8b8a83; margin-bottom: 22px; }
.vibe-bodky { display: flex; gap: 6px; }
.vibe-bodky i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a36; }
.vibe-bodky i:first-child { background: var(--akcent); }
.vibe-vystup {
  font-family: var(--f-mono); font-size: 14px; line-height: 1.75;
  white-space: pre-wrap; word-break: break-word;
  margin: 0 0 24px; flex: 1; min-height: 9.5em;
}
.vibe-vystup .c { color: var(--akcent); }
.vibe-pata { margin: 0; color: #b9b8b1; font-size: 15px; }
.vibe-pata b { color: #e8e7e1; }

/* repas */
.repas {
  margin-top: clamp(80px, 12vw, 176px);
  background: var(--pas);
  color: var(--pas-text);
  --linka: var(--pas-linka);
  --tlmene: var(--pas-tlmene);
  /* clip, nie hidden: hidden by z pásu urobil posuvný kontajner a vypol "sticky" vizuál. */
  overflow: clip;
}
.repas-vnutro {
  max-width: var(--sirka); margin: 0 auto;
  padding: clamp(72px, 10vw, 140px) var(--okraj);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.repas-vnutro { align-items: start; }
.repas-vizual {
  position: sticky; top: calc(var(--lista) + 24px);
  height: min(80vh, 760px); min-height: 460px;
}
.ascii-repas { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--pas-tlmene); pointer-events: none; }
.zlomok {
  position: absolute; left: -.04em; bottom: 34px; z-index: 1;
  display: grid; grid-template-columns: auto auto auto; align-items: center;
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--akcent);
  font-size: clamp(6rem, 12vw, 12rem);
  line-height: .8;
  font-weight: 800;
  font-variation-settings: "opsz" 96, "wght" 800, "wdth" 75;
  letter-spacing: -.04em;
}
.zlomok-hore { align-self: start; font-variant-numeric: tabular-nums; }
.zlomok-dole { align-self: end; font-variant-numeric: tabular-nums; }
.zlomok-ciara { width: .09em; height: 1.25em; background: currentColor; transform: rotate(28deg); margin: 0 .1em; }
.repas-popis { position: absolute; bottom: 0; left: 0; margin: 0; }
.repas-text > p { max-width: 36rem; font-size: clamp(1.05rem, 1.3vw, 1.22rem); }
.repas-text .nadpis-2 { margin-bottom: 28px; }
.fakty { list-style: none; margin: 32px 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.fakty li { border-top: 1px solid var(--linka); padding: 14px 0 18px; display: grid; gap: 4px; }
.fakty b { font-size: 1.55rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; font-variation-settings: "opsz" 48, "wght" 700, "wdth" 88; }
.fakty span { font-family: var(--f-mono); font-size: 12.5px; color: var(--tlmene); }
.repas-eko {
  font-size: clamp(1.3rem, 2vw, 1.8rem) !important; line-height: 1.2;
  font-variation-settings: "opsz" 36, "wght" 600, "wdth" 92;
  border-left: 3px solid var(--akcent); padding-left: 16px;
}
.repas-akcie { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 0; }
.repas .tlacidlo { background: var(--pas-text); color: var(--pas); border-color: var(--pas-text); }
.repas .tlacidlo:hover { background: var(--akcent); color: var(--na-akcente); border-color: var(--akcent); }
.repas .tlacidlo-obrys { background: transparent; color: var(--pas-text); }

/* pre koho */
.trojica { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.trojica > div { border-top: 1px solid var(--atrament); padding-top: 18px; }
.velky-text {
  margin: 0;
  font-size: clamp(1.4rem, 2.3vw, 2.05rem);
  line-height: 1.14;
  letter-spacing: -.02em;
  font-weight: 600;
  font-variation-settings: "opsz" 36, "wght" 600, "wdth" 94;
}
.kbd {
  font-family: var(--f-mono); font-size: .8em; font-weight: 700;
  background: var(--akcent); color: var(--na-akcente);
  border: 0; border-bottom: 3px solid var(--atrament);
  padding: 0 .35em; cursor: pointer; vertical-align: .08em;
}

/* kontakt */
.kontakt {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 96px);
  padding-bottom: clamp(80px, 10vw, 140px);
}
.kontakt .nadpis-1 { font-size: clamp(2.8rem, 6.6vw, 6.8rem); margin-bottom: 28px; }
.kontakt-text { max-width: 30rem; font-size: clamp(1.05rem, 1.3vw, 1.2rem); }
.kontakt-telefon { margin: 28px 0 6px; }
.kontakt-telefon a {
  font-size: clamp(2rem, 4.2vw, 3.6rem); font-weight: 760; letter-spacing: -.03em;
  font-variation-settings: "opsz" 72, "wght" 760, "wdth" 84;
  text-decoration: none; font-variant-numeric: tabular-nums;
  background: linear-gradient(var(--akcent), var(--akcent)) no-repeat 0 92% / 0 .22em;
  transition: background-size .45s var(--ease);
}
.kontakt-telefon a:hover { background-size: 100% .22em; }

.formular { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; align-content: start; position: relative; }
.pole { display: grid; gap: 6px; }
.pole-cele { grid-column: 1 / -1; }
.pole label { font-family: var(--f-mono); font-size: 12px; color: var(--tlmene); }
.pole input, .pole select, .pole textarea {
  width: 100%;
  font: inherit; font-size: 1.12rem; color: var(--atrament);
  background: transparent;
  border: 0; border-bottom: 1.5px solid var(--atrament);
  border-radius: 0;
  padding: 10px 0;
  transition: border-color .2s, box-shadow .2s;
}
.pole textarea { resize: vertical; min-height: 9em; line-height: 1.45; }
.pole select { -webkit-appearance: none; appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.pole select option { color: #0e0e0c; background: #fff; }
.pole input:focus, .pole select:focus, .pole textarea:focus { outline: none; border-color: var(--akcent); box-shadow: 0 2px 0 var(--akcent); }
.pole.zle input, .pole.zle select, .pole.zle textarea { border-color: var(--chyba); box-shadow: 0 2px 0 var(--chyba); }
.pole.zle label { color: var(--chyba); }
.pole-suhlas { display: flex; gap: 12px; align-items: flex-start; }
.pole-suhlas label { font-family: var(--f-display); font-size: 15px; color: var(--atrament); line-height: 1.4; }
.pole-suhlas input {
  -webkit-appearance: none; appearance: none;
  flex: 0 0 22px; width: 22px; height: 22px; padding: 0; margin: 0;
  border: 1.5px solid var(--atrament); cursor: pointer; position: relative;
}
.pole-suhlas input:checked { background: var(--akcent); border-color: var(--atrament); }
.pole-suhlas input:checked::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px;
  border: solid var(--na-akcente); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.pole-suhlas.zle input { border-color: var(--chyba); box-shadow: 0 0 0 2px var(--chyba); }
.pole-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.formular-pata { display: flex; flex-wrap: wrap; gap: 16px 22px; align-items: center; }
.formular-stav { margin: 0; font-family: var(--f-mono); font-size: 13px; flex: 1 1 260px; }
.formular-stav.zle { color: var(--chyba); }
.formular-stav.ok { color: var(--ok); }
.formular-noscript { grid-column: 1 / -1; font-family: var(--f-mono); font-size: 14px; }
.formular.odoslane .pole, .formular.odoslane .formular-pata .tlacidlo { opacity: .35; pointer-events: none; }

/* ---------- pätička ---------- */
.paticka { border-top: 1px solid var(--linka); padding: 40px var(--okraj) 96px; font-family: var(--f-mono); font-size: 12.5px; line-height: 1.7; }
.paticka-mriezka { max-width: var(--sirka); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.paticka-spodok { max-width: var(--sirka); margin: 36px auto 0; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.pokoj { background: none; border: 1px solid var(--linka); padding: 6px 10px; cursor: pointer; font-family: var(--f-mono); font-size: 12px; }
.pokoj:hover { border-color: var(--atrament); }

/* ---------- automat ---------- */
.automat {
  position: fixed; left: 16px; bottom: 16px; z-index: 55;
  max-width: min(380px, calc(100% - 32px));
  font-family: var(--f-mono); font-size: 11.5px;
  background: color-mix(in srgb, var(--papier) 92%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--linka);
}
.automat-hlava {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: none; border: 0; padding: 8px 12px; cursor: pointer; text-align: left;
  font-family: var(--f-mono); font-size: 11.5px;
}
.automat-led { flex: 0 0 8px; width: 8px; height: 8px; background: var(--akcent); box-shadow: 0 0 0 1px var(--atrament); animation: blik 2.4s steps(1) infinite; }
.automat-meno { font-weight: 700; }
.automat-posledne { color: var(--tlmene); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.automat-log { list-style: none; margin: 0; padding: 0 12px 10px; display: none; max-height: 40vh; overflow: auto; }
.automat.otvoreny .automat-log { display: block; }
.automat-log li { padding: 4px 0; border-top: 1px dashed var(--linka); color: var(--tlmene); }
.automat-log li b { color: var(--atrament); font-weight: 500; }
.automat-log time { margin-right: 6px; }
.automat.pulz { animation: pulz .6s var(--ease); }
@keyframes pulz { 30% { transform: translateY(-4px); box-shadow: 0 6px 0 var(--akcent); } }

/* ---------- terminál ---------- */
.term {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 16px;
  background: rgba(10, 10, 9, .42);
}
.term[hidden] { display: none; }
.term-okno {
  width: min(780px, 100%);
  height: min(68vh, 560px);
  display: flex; flex-direction: column;
  background: #0b0b0a; color: #e8e7e1;
  border: 1px solid #2c2c29;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .45), 8px 8px 0 var(--akcent);
  font-family: var(--f-mono); font-size: 14px; line-height: 1.55;
  animation: termIn .28s var(--ease);
}
@keyframes termIn { from { transform: translateY(24px); opacity: 0; } }
.term-hlava { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-bottom: 1px solid #2c2c29; color: #8b8a83; font-size: 12px; }
.term-zavri { background: none; border: 0; color: #e8e7e1; cursor: pointer; padding: 2px 6px; font-family: var(--f-mono); }
.term-vystup { flex: 1; overflow: auto; padding: 14px 16px 4px; white-space: pre-wrap; word-break: break-word; }
.term-vystup .p { color: var(--akcent); }
.term-vystup .t { color: #8b8a83; }
.term-vystup a { color: var(--akcent); }
.term-riadok { display: flex; gap: 10px; padding: 8px 16px 14px; }
.term-prompt { color: var(--akcent); white-space: nowrap; }
.term-riadok input:focus-visible { outline: none; box-shadow: none; }
.term-riadok input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: none;
  color: #e8e7e1; caret-color: var(--akcent);
  font: inherit;
}

/* ---------- kurzor, bug, poznámky ---------- */
.kurzor { position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; display: none; }
.kurzor-zap .kurzor { display: block; }
.kurzor i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; background: var(--akcent); box-shadow: 0 0 0 1px var(--atrament); }
.kurzor span {
  position: absolute; left: 12px; top: 10px; white-space: nowrap;
  font-family: var(--f-mono); font-size: 10.5px; color: var(--tlmene);
}

.bug {
  position: fixed; z-index: 90; width: 30px; height: 30px; padding: 0; margin: 0;
  background: none; border: 0; cursor: crosshair; color: var(--atrament);
}
.bug svg { width: 100%; height: 100%; }
.bug .oko { fill: var(--akcent); }
.bug.chyteny { animation: chyteny .5s var(--ease) forwards; }
@keyframes chyteny { to { transform: scale(2.4) rotate(40deg); opacity: 0; } }

.poznamka {
  position: fixed; z-index: 80;
  max-width: 270px;
  background: var(--akcent); color: var(--na-akcente);
  font-family: var(--f-mono); font-size: 13px; line-height: 1.45;
  padding: 14px 16px 16px;
  box-shadow: 6px 6px 0 var(--atrament);
  transform: rotate(var(--r, -2deg));
  animation: poznamkaIn .45s var(--ease);
}
.poznamka b { display: block; margin-bottom: 4px; }
.poznamka button { position: absolute; top: 4px; right: 6px; background: none; border: 0; cursor: pointer; color: inherit; font-family: var(--f-mono); }
.poznamka.odchod { animation: poznamkaOut .35s var(--ease) forwards; }
@keyframes poznamkaIn { from { transform: rotate(var(--r, -2deg)) translateY(30px) scale(.9); opacity: 0; } }
@keyframes poznamkaOut { to { transform: rotate(calc(var(--r, -2deg) * 3)) translateY(20px); opacity: 0; } }

/* ---------- 3D tunel ---------- */
.tunel { display: none; }
.anim3d .tunel { display: block; position: relative; height: 640vh; }
.tunel-pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: var(--pas);
  color: var(--pas-text);
  --tunel-linka: color-mix(in srgb, var(--pas-text) 17%, transparent);
}
.tunel-scena { position: absolute; inset: 0; perspective: 720px; perspective-origin: 50% 50%; }
.tunel-svet { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.tunel-svet > * { position: absolute; left: 0; top: 0; }
.tunel-stena {
  background-image:
    linear-gradient(to right, var(--tunel-linka) 1px, transparent 1px),
    linear-gradient(to bottom, var(--tunel-linka) 1px, transparent 1px);
  background-size: 125px 125px;
}
.tunel-stena.bok { width: var(--seg); height: var(--th); margin-top: calc(var(--th) / -2); transform-origin: 0 50%; }
.tunel-stena.lavo { transform: translate3d(calc(var(--tw) / -2), 0, var(--z)) rotateY(90deg); }
.tunel-stena.pravo { transform: translate3d(calc(var(--tw) / 2), 0, var(--z)) rotateY(90deg); }
.tunel-stena.plocha { width: var(--tw); height: var(--seg); margin-left: calc(var(--tw) / -2); transform-origin: 50% 0; }
.tunel-stena.hore { transform: translate3d(0, calc(var(--th) / -2), var(--z)) rotateX(-90deg); }
.tunel-stena.dole { transform: translate3d(0, calc(var(--th) / 2), var(--z)) rotateX(-90deg); }
.tunel-slovo {
  position: absolute; white-space: nowrap;
  font-family: var(--f-mono); font-size: 28px;
  color: color-mix(in srgb, var(--pas-text) 34%, transparent);
}
.tunel-slovo.akcent { color: var(--akcent); }
.tunel-ram {
  width: var(--tw); height: var(--th);
  margin: calc(var(--th) / -2) 0 0 calc(var(--tw) / -2);
  border: 1px solid color-mix(in srgb, var(--pas-text) 28%, transparent);
  transform: translateZ(var(--z));
}
.tunel-ram.akcent { border: 2px solid var(--akcent); }
.tunel-ram span { position: absolute; left: 16px; top: 12px; font-family: var(--f-mono); font-size: 15px; color: var(--pas-tlmene); }
.tunel-mlha {
  width: var(--tw); height: var(--th);
  margin: calc(var(--th) / -2) 0 0 calc(var(--tw) / -2);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--akcent) 55%, var(--pas)) 0%, var(--pas) 88%);
}
.tunel-polozka { width: min(1100px, 84vw); text-align: center; }
.tunel-cislo { font-family: var(--f-mono); font-size: clamp(14px, 1.4vw, 20px); color: var(--akcent); margin: 0 0 .7em; }
.tunel-nazov {
  margin: 0;
  font-size: clamp(3rem, 10vw, 10.5rem);
  line-height: .88;
  letter-spacing: -.045em;
  font-weight: 780;
  font-variation-settings: "opsz" 96, "wght" 780, "wdth" 80;
  text-wrap: balance;
}
.tunel-kratko { font-family: var(--f-mono); font-size: clamp(13px, 1.3vw, 19px); color: var(--pas-tlmene); margin: 1.1em 0 0; }
.tunel-hud { position: absolute; inset: 0; pointer-events: none; font-family: var(--f-mono); font-size: 12.5px; color: var(--pas-tlmene); }
.tunel-postup { position: absolute; left: 0; right: 0; top: var(--lista); height: 2px; background: color-mix(in srgb, var(--pas-text) 12%, transparent); }
.tunel-postup i { display: block; height: 100%; background: var(--akcent); transform-origin: 0 50%; transform: scaleX(0); }
.tunel-hud-hore {
  position: absolute; left: var(--okraj); right: var(--okraj); top: calc(var(--lista) + 16px);
  margin: 0; display: flex; justify-content: space-between; gap: 16px;
}
#tunel-kde { color: var(--pas-text); text-align: right; }

/* karty a riadky služieb s hĺbkou – len keď beží 3D */
.anim3d .karta { transform-style: preserve-3d; }
.anim3d .karta > * { transform: translateZ(38px); }
.anim3d .sluzba summary { transform-style: preserve-3d; }

/* Lenis (plynulé posúvanie) – povinné minimum z lenis.css */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------- logo: procesor ---------- */
.logo { display: block; cursor: pointer; color: var(--atrament); overflow: visible; flex: 0 0 auto; --teplo: 0; }
.logo-lista { width: 42px; height: 42px; margin-right: -14px; }
.logo-paticka { width: 104px; height: 104px; margin: 0 0 12px -14px; }
.logo-cesty line, .logo-cesty polyline { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }
.logo-cesty circle { fill: var(--papier); stroke: currentColor; stroke-width: 1.2; }
.logo-piny rect { fill: #a9a8a4; transition: fill .2s; }
.logo-telo { fill: color-mix(in srgb, #3a3836, #d4321f calc(var(--teplo) * 100%)); transition: fill .4s; }
.logo-svetlo { fill: rgba(255, 255, 255, .22); }
.logo-tien { fill: rgba(0, 0, 0, .35); }
.logo-napis text { font-family: var(--f-display); font-weight: 800; font-size: 25px; fill: #fff; stroke: #111; stroke-width: 2.2px; paint-order: stroke; text-anchor: middle; letter-spacing: -.5px; }
.logo-napis .logo-pc { font-size: 15px; text-anchor: start; }
/* signály bežia po cestičkách */
.logo:hover .logo-cesty, .logo.taktuje .logo-cesty { color: var(--akcent); stroke-dasharray: 3 3; animation: logoTok .5s linear infinite; }
.logo:hover .logo-cesty line, .logo:hover .logo-cesty polyline, .logo.taktuje .logo-cesty line, .logo.taktuje .logo-cesty polyline { stroke-dasharray: 3 3; animation: logoTok .5s linear infinite; }
@keyframes logoTok { to { stroke-dashoffset: -12; } }
.logo.taktuje .logo-piny rect { fill: var(--akcent); }
.logo.taktuje { animation: logoTras .25s steps(2) 1; }
.prehriate .logo { animation: logoTras .12s steps(2) infinite; }
.prehriate .logo-piny rect { fill: #ff6a3d; }
@keyframes logoTras { 50% { transform: translate(1px, -1px) rotate(-2deg); } }
.dym {
  position: fixed; z-index: 70; pointer-events: none;
  font-family: var(--f-mono); font-size: 16px; color: var(--tlmene);
  animation: dym 1.6s ease-out forwards;
}
@keyframes dym { to { transform: translate(var(--dx, 0), -70px) scale(1.8); opacity: 0; } }

/* znaky vybité z ASCII objektu poletujú nad stránkou */
.castice { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 45; }
.pokoj-zap .castice { display: none; }

/* ---------- efekty automatu ---------- */
.naklon { transition: transform .9s var(--ease); }
.slovo-prehodene { background: var(--akcent); color: var(--na-akcente); transition: background-color .3s; }
.glitch main { animation: glitch .36s steps(3) 1; }
@keyframes glitch {
  0% { clip-path: inset(0 0 0 0); transform: none; }
  33% { clip-path: inset(12% 0 48% 0); transform: translateX(-10px); }
  66% { clip-path: inset(56% 0 8% 0); transform: translateX(8px); }
  100% { clip-path: inset(0 0 0 0); transform: none; }
}

/* ---------- textové stránky ---------- */
.text-stranka { max-width: 820px; margin: 0 auto; padding: calc(var(--lista) + 72px) var(--okraj) 96px; }
.text-stranka h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: .95; letter-spacing: -.035em; margin: 0 0 28px; font-variation-settings: "opsz" 96, "wght" 720, "wdth" 86; }
.text-stranka h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.15; letter-spacing: -.02em; margin: 2.4em 0 .6em; font-variation-settings: "opsz" 36, "wght" 680, "wdth" 92; }
.text-stranka p, .text-stranka li { font-size: 1.06rem; line-height: 1.6; max-width: 66ch; }
.text-stranka p { margin: 0 0 1em; }
.text-stranka ul { margin: 0 0 1.2em; padding-left: 1.2em; }
.text-stranka li { margin-bottom: .4em; }
.text-stranka .perex { font-size: 1.25rem; line-height: 1.45; }
.chyba-stranka { min-height: 100vh; display: grid; align-content: center; }
.chyba-kod { font-size: clamp(7rem, 26vw, 20rem) !important; line-height: .8 !important; margin: 0 0 24px !important; }

/* ---------- pokojný režim a obmedzený pohyb ---------- */
.pokoj-zap *, .pokoj-zap *::before, .pokoj-zap *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; }
.pokoj-zap .pismeno { transition: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

/* ---------- menšie obrazovky ---------- */
@media (max-width: 1100px) {
  .menu { display: none; }
  .lista-nastroje { margin-left: auto; }
}
@media (max-width: 900px) {
  .ascii-hero { width: 100%; top: calc(var(--lista) + 8px); height: 48%; opacity: .55; }
  .dvojica, .repas-vnutro, .kontakt { grid-template-columns: minmax(0, 1fr); }
  .trojica { grid-template-columns: minmax(0, 1fr); }
  .repas-vizual { position: relative; top: 0; height: 64vh; min-height: 380px; max-height: 560px; }
  .paticka-mriezka { grid-template-columns: 1fr 1fr; }
  .sluzba summary { grid-template-columns: 3.2rem minmax(0, 1fr) 1.6rem; }
  .sluzba-kratko { grid-column: 2; grid-row: 2; text-align: left; margin-top: -8px; }
  .sluzba-plus { grid-column: 3; grid-row: 1; }
  .sluzba-telo { grid-template-columns: minmax(0, 1fr); padding-left: 0; }
  .sluzba-telo p, .tagy { grid-column: 1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .seed-popis { display: none; }
  .hero-scena { padding-bottom: 20px; }
  .tunel-slovo { font-size: 22px; }
  .hero-nadpis { font-size: clamp(3rem, 15vw, 6rem); margin-bottom: 22px; }
  .hero-pata { margin-top: 28px; }
  .formular { grid-template-columns: minmax(0, 1fr); }
  .fakty { grid-template-columns: minmax(0, 1fr); }
  .paticka-mriezka { grid-template-columns: minmax(0, 1fr); }
  .karta { min-height: 0; }
  .automat { left: 8px; bottom: 8px; max-width: calc(100% - 16px); }
  .term { padding: 8px; }
  .term-okno { height: 72vh; font-size: 13px; }
  .tlacidlo { padding: 13px 15px; font-size: 13.5px; }
}

/* ---------- otázka pred tunelom a autopilot ---------- */
.tunel-otazka {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  padding: 24px; text-align: center;
  background: color-mix(in srgb, var(--pas) 86%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: otazkaIn .5s var(--ease);
}
.tunel-otazka[hidden] { display: none; }
@keyframes otazkaIn { from { opacity: 0; transform: scale(1.06); } }
.tunel-otazka-text {
  margin: 0; max-width: 14ch;
  font-size: clamp(2.2rem, 6.5vw, 6rem); line-height: .92; letter-spacing: -.035em; text-transform: uppercase;
  font-variation-settings: "opsz" 96, "wght" 780, "wdth" 80;
  color: var(--pas-text);
}
.tunel-otazka-volby { display: flex; gap: 18px; margin: 0; }
.tunel-otazka-volby button {
  width: clamp(84px, 11vw, 128px); height: clamp(84px, 11vw, 128px);
  font-family: var(--f-mono); font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700;
  background: transparent; color: var(--pas-text);
  border: 2px solid var(--pas-text); cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.tunel-otazka-volby button:hover, .tunel-otazka-volby button:focus-visible { background: var(--akcent); color: var(--na-akcente); border-color: var(--akcent); transform: translateY(-4px); }
.tunel-otazka-pomoc { margin: 0; font-family: var(--f-mono); font-size: 13px; color: var(--pas-tlmene); }
.tunel-auto {
  position: absolute; left: var(--okraj); right: var(--okraj); bottom: 64px; z-index: 5; margin: 0;
  display: flex; justify-content: center; align-items: center; gap: 14px;
  font-family: var(--f-mono); font-size: 12.5px; color: var(--pas-tlmene); text-align: center;
}
.tunel-auto[hidden] { display: none; }
.tunel-auto b { color: var(--akcent); }
.tunel-auto button {
  font-family: var(--f-mono); font-weight: 700; font-size: 14px; width: 34px; height: 34px;
  background: transparent; color: var(--pas-text); border: 1.5px solid var(--pas-text); cursor: pointer;
}
.tunel-auto button:hover { background: var(--akcent); color: var(--na-akcente); border-color: var(--akcent); }
