/* Krat-Tech — štýly. Svetlá téma na :root, tmavá cez prefers-color-scheme a [data-theme]. */
@view-transition { navigation: auto; }

:root {
  --bg: #F3F5F0;
  --bg-2: #E8EDE5;
  --surface: #FFFFFF;
  --ink: #0D2A20;
  --ink-2: #2A4539;
  --muted: #56695F;
  --line: #D6DED2;
  --line-2: #BCC9B8;
  --accent: #A5541D;
  --accent-h: #8E4614;
  --accent-ink: #FFFFFF;
  --accent-soft: #F4E4D6;
  --focus: #1C82B5;
  --ok: #2E8B57;

  /* doska plošného spoja: rovnaká v oboch témach */
  --board: #0B3A2C;
  --board-2: #0F4535;
  --board-3: #14523F;
  --board-line: #1F6650;
  --board-ink: #EAF4EE;
  --board-muted: #A6C8B8;
  --trace: #C98649;
  --trace-dim: #6E5A3A;
  --trace-lit: #FFD27A;
  --silk: #DCEBE2;
  --led: #6BF0A8;
  --led-amber: #FFC857;
  --led-red: #FF6B5E;

  --e1: #98773A; --e2: #BE5F27; --e3: #A98106; --e4: #23844F; --e5: #1A7DAF; --e6: #5153D2; --e7: #B2409A;
  --eb1: #D6B67A; --eb2: #F09A61; --eb3: #F3CE5B; --eb4: #63D59B; --eb5: #62C6F2; --eb6: #9C9FFB; --eb7: #EE83D6;

  --shadow-1: 0 1px 2px rgb(13 42 32 / .06), 0 4px 14px -6px rgb(13 42 32 / .12);
  --shadow-2: 0 2px 6px rgb(13 42 32 / .08), 0 24px 48px -24px rgb(13 42 32 / .35);
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;

  --f-ui: "Bricolage Grotesque", "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --f-read: "Source Serif 4", Georgia, "Times New Roman", "Songti SC", "Noto Serif SC", serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --maxw: 1200px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #06201A; --bg-2: #0A2821; --surface: #0D2E26; --ink: #E6F0EA; --ink-2: #C3D6CB; --muted: #8FAE9F;
    --line: #1A4437; --line-2: #265A48; --accent: #EBA062; --accent-h: #F3B57F; --accent-ink: #1B0E04; --accent-soft: #3A2A1A;
    --focus: #62C6F2; --board: #0C3B2E; --board-2: #104636; --board-3: #155340;
    --e1: var(--eb1); --e2: var(--eb2); --e3: var(--eb3); --e4: var(--eb4); --e5: var(--eb5); --e6: var(--eb6); --e7: var(--eb7);
    --shadow-1: 0 1px 2px rgb(0 0 0 / .3), 0 4px 14px -6px rgb(0 0 0 / .4);
    --shadow-2: 0 2px 6px rgb(0 0 0 / .3), 0 24px 48px -24px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #06201A; --bg-2: #0A2821; --surface: #0D2E26; --ink: #E6F0EA; --ink-2: #C3D6CB; --muted: #8FAE9F;
  --line: #1A4437; --line-2: #265A48; --accent: #EBA062; --accent-h: #F3B57F; --accent-ink: #1B0E04; --accent-soft: #3A2A1A;
  --focus: #62C6F2; --board: #0C3B2E; --board-2: #104636; --board-3: #155340;
  --e1: var(--eb1); --e2: var(--eb2); --e3: var(--eb3); --e4: var(--eb4); --e5: var(--eb5); --e6: var(--eb6); --e7: var(--eb7);
  --shadow-1: 0 1px 2px rgb(0 0 0 / .3), 0 4px 14px -6px rgb(0 0 0 / .4);
  --shadow-2: 0 2px 6px rgb(0 0 0 / .3), 0 24px 48px -24px rgb(0 0 0 / .7);
  color-scheme: dark;
}

.era-1 { --era: var(--e1); --era-b: var(--eb1); }
.era-2 { --era: var(--e2); --era-b: var(--eb2); }
.era-3 { --era: var(--e3); --era-b: var(--eb3); }
.era-4 { --era: var(--e4); --era-b: var(--eb4); }
.era-5 { --era: var(--e5); --era-b: var(--eb5); }
.era-6 { --era: var(--e6); --era-b: var(--eb6); }
.era-7 { --era: var(--e7); --era-b: var(--eb7); }

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.55 var(--f-ui);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; margin: 0; line-height: 1.1; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in oklab, var(--accent) 30%, transparent); }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
kbd { font: 600 .72rem/1 var(--f-ui); padding: .28em .45em; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); background: var(--bg); }

.wrap { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: .6em 1em; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .78em 1.2em; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.1; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), color .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-h); }
.btn-ghost { border-color: var(--line-2); background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); background: var(--surface); }
.btn-light { background: var(--board-ink); color: var(--board); }
.btn-light:hover { background: #fff; }
.btn-lg { padding: .95em 1.4em; font-size: 1.05rem; }
.btn-sm { padding: .55em .95em; font-size: .92rem; }
.btn b { font-weight: 700; font-variant-numeric: tabular-nums; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .2s; }
.icon-btn:hover { border-color: var(--line-2); }

/* ------------------------------------------------------------ header */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
  view-transition-name: site-head;
}
.head-in { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-chip { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.brand-chip rect { fill: color-mix(in oklab, var(--accent) 14%, transparent); }
.brand-chip circle { fill: var(--accent); stroke: none; }
.brand-word { font-weight: 750; font-size: 1.28rem; letter-spacing: -0.02em; font-variation-settings: "wdth" 90; }
.brand-word span, .foot-word span { color: var(--accent); }
.head-nav { display: flex; gap: 4px; }
.head-nav a { text-decoration: none; padding: .5em .8em; border-radius: 10px; color: var(--ink-2); font-weight: 520; transition: background-color .2s, color .2s; }
.head-nav a:hover { background: var(--bg-2); color: var(--ink); }
.head-nav a[aria-current] { color: var(--ink); background: var(--bg-2); }
.head-tools { display: flex; align-items: center; gap: 8px; }
.head-phone { display: inline-flex; align-items: center; gap: .45em; text-decoration: none; font-weight: 650; font-variant-numeric: tabular-nums; padding: .5em .8em; border-radius: 10px; color: var(--accent); }
.head-phone:hover { background: var(--accent-soft); }
.lang-dd { position: relative; }
.lang-dd summary { list-style: none; display: inline-flex; align-items: center; gap: .4em; cursor: pointer; padding: .5em .7em; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: .92rem; }
.lang-dd summary::-webkit-details-marker { display: none; }
.lang-dd[open] summary { border-color: var(--line-2); }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-2); display: grid; animation: pop .18s var(--ease); z-index: 5; }
.lang-list a, .lang-grid a, .foot-lang a { display: flex; align-items: center; gap: .7em; text-decoration: none; padding: .55em .7em; border-radius: 9px; }
.lang-list a:hover, .lang-grid a:hover { background: var(--bg-2); }
.lang-list a[aria-current], .lang-grid a[aria-current] { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.lg-s { min-width: 2.3em; font-weight: 700; font-size: .8rem; color: var(--muted); }
[aria-current] > .lg-s { color: inherit; }
.menu-btn { display: inline-flex; align-items: center; gap: .6em; height: 42px; padding: 0 .95em 0 .8em; border-radius: 12px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); cursor: pointer; font-weight: 600; transition: transform .2s var(--ease); }
.menu-btn:hover { transform: translateY(-1px); }
.burger { display: grid; gap: 4px; width: 18px; }
.burger i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease); }
.burger i:nth-child(2) { width: 70%; justify-self: end; }
.menu-btn:hover .burger i:nth-child(2) { transform: scaleX(1.43); transform-origin: right; }

/* notebooky: menu v lište zostane, telefón a „Menu“ len ako ikony */
@media (max-width: 1279px) and (min-width: 1060px) {
  .head-in { gap: 12px; }
  .head-phone span, .menu-lbl { display: none; }
  .head-phone { padding: .55em; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; }
  .menu-btn { padding: 0 .8em; }
  .head-nav a { padding: .5em .65em; }
}
@media (max-width: 1059px) {
  .head-nav { display: none; }
}
@media (max-width: 640px) {
  .head-phone span, .menu-lbl { display: none; }
  .head-phone { padding: .55em; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; }
  .head-in { gap: 10px; min-height: 60px; }
  .menu-btn { padding: 0 .8em; }
  .brand-word { font-size: 1.12rem; }
}

/* ------------------------------------------------------------ drawer (menu) */
dialog { border: 0; padding: 0; color: var(--ink); }
.drawer {
  margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(440px, 100vw);
  background: var(--surface); box-shadow: var(--shadow-2);
}
.drawer::backdrop { background: rgb(4 20 15 / .45); backdrop-filter: blur(3px); }
.drawer[open] { animation: slide-in .35s var(--ease); }
.drawer[open]::backdrop { animation: fade .3s ease; }
.drawer-in { display: grid; gap: 18px; padding: calc(18px + env(safe-area-inset-top, 0px)) 22px calc(24px + env(safe-area-inset-bottom, 0px)); }
.drawer-top { display: flex; align-items: center; justify-content: space-between; }
.drawer-h { font-weight: 700; font-size: 1.1rem; }
.drawer-search, .pal-form, .hero-search, .field { display: flex; align-items: center; gap: .6em; border: 1.5px solid var(--line-2); border-radius: 14px; padding: 0 .9em; background: var(--bg); transition: border-color .2s, box-shadow .2s; }
.drawer-search:focus-within, .field:focus-within, .hero-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 16%, transparent); }
.drawer-search input, .pal-form input, .field input { flex: 1; min-width: 0; border: 0; background: none; padding: .85em 0; outline: none; font-size: 1rem; }
.drawer-search .ic, .field .ic, .pal-form .ic { color: var(--muted); }
.drawer-wiki {
  display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 18px; border-radius: var(--r-m);
  background: var(--board); color: var(--board-ink); position: relative; overflow: hidden;
  background-image: radial-gradient(circle at 1px 1px, rgb(255 255 255 / .09) 1px, transparent 1.4px); background-size: 14px 14px;
  transition: transform .25s var(--ease);
}
.drawer-wiki:hover { transform: translateY(-2px); }
.drawer-wiki > .ic:first-child { width: 30px; height: 30px; color: var(--trace-lit); }
.drawer-wiki > span { flex: 1; display: grid; gap: 2px; }
.drawer-wiki b { font-size: 1.2rem; font-weight: 700; }
.drawer-wiki small { color: var(--board-muted); font-size: .9rem; }
.drawer-nav { display: grid; border-top: 1px solid var(--line); }
.drawer-nav a { padding: .9em .2em; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 1.15rem; font-weight: 600; display: flex; justify-content: space-between; }
.drawer-nav a::after { content: "→"; color: var(--muted); transition: transform .2s var(--ease); }
.drawer-nav a:hover::after { transform: translateX(4px); color: var(--accent); }
.drawer-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer-label { color: var(--muted); font-size: .88rem; font-weight: 600; }
.theme-sw { display: inline-flex; align-items: center; gap: .5em; border: 1px solid var(--line-2); background: var(--bg); padding: .5em .9em; border-radius: 999px; cursor: pointer; font-weight: 600; }
.ic-moon, .ts-dark { display: none; }
:root[data-theme="dark"] .ic-sun, :root[data-theme="dark"] .ts-light { display: none; }
:root[data-theme="dark"] .ic-moon, :root[data-theme="dark"] .ts-dark { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ic-sun, :root:not([data-theme="light"]) .ts-light { display: none; }
  :root:not([data-theme="light"]) .ic-moon, :root:not([data-theme="light"]) .ts-dark { display: inline; }
}
.drawer-langs { display: grid; gap: 8px; }
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.drawer-contact { display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.drawer-contact a { display: flex; align-items: center; gap: .7em; text-decoration: none; font-weight: 600; padding: .4em 0; color: var(--accent); }

/* ------------------------------------------------------------ palette (vyhľadávanie) */
.palette {
  width: min(640px, calc(100vw - 24px)); max-height: min(560px, 80dvh); margin: 12vh auto auto;
  background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow-2); overflow: hidden;
}
.palette[open] { display: flex; flex-direction: column; animation: pop .22s var(--ease); }
.palette::backdrop { background: rgb(4 20 15 / .45); backdrop-filter: blur(3px); }
.pal-form { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--surface); padding: 0 1.1em; }
.pal-form input { padding: 1.1em 0; font-size: 1.1rem; }
.pal-close { border: 1px solid var(--line-2); background: var(--bg); color: var(--muted); border-radius: 8px; font-size: .75rem; font-weight: 700; padding: .35em .6em; cursor: pointer; }
.pal-list { list-style: none; overflow-y: auto; padding: 8px; flex: 1; }
.pal-list li a { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 12px; align-items: baseline; padding: .7em .8em; border-radius: 12px; text-decoration: none; }
.pal-list li a[aria-selected="true"] { background: var(--bg-2); }
.pal-list .p-y { grid-row: span 2; font-weight: 800; font-variation-settings: "wdth" 78; font-size: 1.05rem; color: var(--era); min-width: 3.2em; font-variant-numeric: tabular-nums; }
.pal-list .p-t { font-weight: 650; }
.pal-list .p-c { font-size: .8rem; color: var(--muted); }
.pal-list .p-l { grid-column: 2 / 4; font-size: .88rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.pal-list .p-h { padding: .6em .8em .3em; font-size: .8rem; font-weight: 700; color: var(--muted); }
.pal-list .p-empty { padding: 1.4em .8em; color: var(--muted); }
.pal-list mark { background: color-mix(in oklab, var(--accent) 22%, transparent); color: inherit; border-radius: 3px; }
.pal-foot { display: flex; gap: 18px; padding: .7em 1.1em; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.pal-foot kbd { margin-right: 3px; }
@media (max-width: 640px) { .pal-foot { display: none; } .palette { margin-top: 10px; } }

/* ------------------------------------------------------------ hero (úvod) */
.hero { padding-block: clamp(28px, 6vw, 72px) clamp(40px, 6vw, 80px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 85% 35%, color-mix(in oklab, var(--accent) 12%, transparent), transparent 70%),
    radial-gradient(circle at 1px 1px, color-mix(in oklab, var(--ink) 9%, transparent) 1px, transparent 1.4px) 0 0 / 22px 22px;
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.hero-in { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.hero-tag { display: inline-flex; align-items: center; gap: .6em; justify-self: start; font-weight: 600; font-size: .92rem; color: var(--ink-2); padding: .45em .85em .45em .7em; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in oklab, var(--ok) 60%, transparent); animation: ping 2.4s infinite; }
.hero h1 {
  font-size: clamp(2.35rem, 1.2rem + 4.4vw, 4.6rem); font-weight: 760; line-height: .98; letter-spacing: -0.035em;
  font-variation-settings: "wdth" 84, "opsz" 96;
}
.hero-p { font-size: clamp(1.08rem, 1rem + .4vw, 1.28rem); color: var(--ink-2); max-width: 36em; line-height: 1.5; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-weight: 520; font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: .45em; }
.hero-points .ic { color: var(--ok); width: 1.1em; height: 1.1em; }
.hero-art {
  position: relative; border-radius: 28px; padding: clamp(10px, 2vw, 22px);
  background: var(--board); box-shadow: var(--shadow-2), inset 0 0 0 1px rgb(255 255 255 / .06);
  background-image: radial-gradient(circle at 1px 1px, rgb(255 255 255 / .08) 1px, transparent 1.5px); background-size: 16px 16px;
}
.hero-art::after { content: "KT-NET-01"; position: absolute; right: 22px; bottom: 16px; font: 600 .7rem/1 var(--f-ui); letter-spacing: .14em; color: rgb(220 235 226 / .35); }
.hero-net { display: block; width: 100%; height: auto; overflow: visible; }

/* Animovaný úvod: jedna orchestrácia pri načítaní */
.hero-copy > * { animation: rise .8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .14s; }
.hero-copy > :nth-child(4) { animation-delay: .22s; }
.hero-copy > :nth-child(5) { animation-delay: .3s; }
.hero-art { animation: rise 1s .1s var(--ease) both; }
.hn-traces path { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.4s .35s var(--ease) forwards; }

.hn-traces path { fill: none; stroke: var(--trace); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hn-vias circle { fill: var(--board); stroke: var(--trace); stroke-width: 2; }
.hn-pk { fill: var(--trace-lit); }
.hn-box { fill: var(--board-2); stroke: var(--trace); stroke-width: 2; }
.hn-core { fill: var(--board-3); }
.hn-unit { fill: var(--board); stroke: var(--board-line); stroke-width: 1.5; }
.hn-ink { fill: none; stroke: var(--silk); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hn-ink.thin { stroke-width: 1.4; opacity: .6; }
.hn-lbl { font: 600 12.5px var(--f-ui); fill: var(--board-muted); letter-spacing: .02em; }
.hn-lbl-in { fill: var(--board-ink); font-size: 13px; }
.hn-screen { fill: #0A2A20; stroke: var(--board-line); stroke-width: 1.5; }
.hn-code { stroke: var(--led); stroke-width: 2; stroke-linecap: round; opacity: .75; }
.hn-keys circle { fill: var(--silk); opacity: .7; }
.hn-lens { fill: #06170F; stroke: var(--silk); stroke-width: 2; }
.hn-lens-in { fill: var(--eb5); opacity: .8; }
.hn-cone { fill: var(--trace-lit); opacity: .08; transform-box: fill-box; transform-origin: 100% 51%; animation: sweep 6s ease-in-out infinite alternate; }
.hn-wave { fill: none; stroke: var(--trace-lit); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: wave 3s ease-out infinite; }
.hn-wave.w2 { animation-delay: 1.5s; }
.led { fill: var(--led); animation: blink 1.8s steps(2, jump-none) infinite; }
.led.l2 { animation-duration: 1.1s; animation-delay: .3s; }
.led.l3 { animation-duration: 2.6s; animation-delay: .7s; }
.led.l4 { animation-duration: .9s; animation-delay: .1s; }
.led.amber { fill: var(--led-amber); animation-duration: 3.2s; }
.led.rec { fill: var(--led-red); animation: rec 1.6s ease-in-out infinite; }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { max-width: 620px; }
}

/* ------------------------------------------------------------ sekcie */
.sec { padding-block: clamp(48px, 7vw, 96px) 0; }
.sec-head { display: grid; gap: 10px; margin-bottom: clamp(24px, 3vw, 40px); max-width: 44em; }
.sec-head h2, .wiki-band h2, .contact-sec h2 { font-size: clamp(1.9rem, 1.2rem + 2.3vw, 3rem); font-weight: 740; letter-spacing: -0.03em; font-variation-settings: "wdth" 86, "opsz" 72; }
.sec-head p { color: var(--muted); font-size: 1.1rem; }

/* služby */
.svc-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.svc {
  display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line);
  overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.svc-wide { grid-column: span 2; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; }
.svc-art {
  aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 14px;
  background: var(--bg-2);
  background-image: radial-gradient(circle at 1px 1px, color-mix(in oklab, var(--ink) 10%, transparent) 1px, transparent 1.4px); background-size: 14px 14px;
  color: var(--ink-2);
}
.svc-wide .svc-art { aspect-ratio: auto; min-height: 100%; }
.svc-art svg { width: 100%; height: auto; max-height: 190px; overflow: visible; }
.svc-body { display: grid; align-content: start; gap: 10px; padding: 20px 22px 24px; }
.svc-wide .svc-body { padding: 28px; align-content: center; }
.svc h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.015em; }
.svc-wide h3 { font-size: 1.7rem; }
.svc p { color: var(--ink-2); font-size: .98rem; }
.ticks { list-style: none; display: grid; gap: 6px; margin-top: 4px; }
.ticks li { display: flex; gap: .5em; align-items: flex-start; font-size: .93rem; font-weight: 520; }
.ticks .ic { color: var(--accent); margin-top: .1em; width: 1.1em; height: 1.1em; }
@media (max-width: 1080px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-wide { grid-column: auto; grid-template-columns: 1fr; }
  .svc-wide .svc-art { aspect-ratio: 16 / 10; }
  .svc-wide h3 { font-size: 1.4rem; }
  .svc-wide .svc-body { padding: 20px 22px 24px; }
}

/* ilustrácie služieb */
.il-dev, .il-phone { fill: var(--surface); stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.il-unit { fill: var(--bg); stroke: currentColor; stroke-width: 1.5; }
.il-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.il-line.thin { stroke-width: 1.4; opacity: .5; }
.il-link { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 6; animation: flow 1.2s linear infinite; }
.il-node { fill: var(--accent); }
.il-led { fill: var(--ok); animation: blink 1.6s steps(2, jump-none) infinite; }
.il-led.d2 { animation-duration: 1.1s; } .il-led.d3 { animation-duration: 2.3s; } .il-led.d4 { animation-duration: .8s; }
.il-led.amber { fill: #D99A1E; animation-duration: 3s; }
.il-led.rec { fill: #E0493C; animation: rec 1.6s ease-in-out infinite; }
.wv { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; opacity: .2; animation: wv 2.4s ease-in-out infinite; }
.wv.w2 { animation-delay: .25s; } .wv.w3 { animation-delay: .5s; }
.il-cone { fill: var(--accent); opacity: .12; }
.il-sweep { transform-origin: 92px 58px; animation: sweep2 5s ease-in-out infinite alternate; }
.il-lens { fill: var(--ink); } .il-lens-in { fill: var(--focus); }
.il-screen { fill: var(--bg); stroke: currentColor; stroke-width: 1.5; }
.il-bar { fill: var(--line); } .il-bar-fill { fill: var(--ok); transform-origin: 76px 82px; animation: progress 3.2s var(--ease) infinite; }
.il-badge circle { fill: var(--ok); } .il-badge path { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.il-badge { transform-origin: 186px 30px; animation: badge 3.2s var(--ease) infinite; }
.il-keys circle { fill: currentColor; opacity: .55; }
.il-glow { fill: #FFC857; opacity: .25; animation: glow 3s ease-in-out infinite; transform-origin: 120px 70px; }
.il-bulb { fill: #FFE7A3; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.il-dot { fill: var(--line-2); } .il-url { fill: var(--bg); stroke: var(--line-2); } .il-lock { fill: none; stroke: var(--ok); stroke-width: 1.6; stroke-linecap: round; }
.il-block { fill: var(--bg-2); stroke: var(--line-2); stroke-width: 1; } .il-block.acc { fill: var(--accent); stroke: none; opacity: .85; }
.il-btn { fill: var(--accent); } .il-caret { fill: currentColor; animation: blink 1s steps(2, jump-none) infinite; }

/* postup */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: st; }
.steps li { counter-increment: st; position: relative; padding: 22px 22px 24px; border-top: 3px solid var(--ink); background: linear-gradient(var(--surface), var(--surface)) padding-box; border-radius: 0 0 var(--r-m) var(--r-m); display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(st); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--accent); font-variation-settings: "wdth" 76; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.2rem; font-weight: 700; }
.steps p { color: var(--ink-2); font-size: .97rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* wiki pás na úvode */
.wiki-band { margin-top: clamp(56px, 8vw, 110px); background: var(--board); color: var(--board-ink); background-image: radial-gradient(circle at 1px 1px, rgb(255 255 255 / .08) 1px, transparent 1.5px); background-size: 16px 16px; }
.wb-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding-block: clamp(48px, 7vw, 88px); }
.wb-copy { display: grid; gap: 16px; justify-items: start; }
.wb-copy p { color: var(--board-muted); font-size: 1.1rem; max-width: 34em; }
.wb-eras { list-style: none; display: grid; gap: 8px; }
.wb-eras a { display: grid; grid-template-columns: 4.2em 1fr; align-items: center; gap: 14px; text-decoration: none; padding: 12px 16px; border-radius: 12px; background: rgb(255 255 255 / .04); border: 1px solid rgb(255 255 255 / .06); position: relative; overflow: hidden; transition: background-color .25s, transform .25s var(--ease); }
.wb-eras a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--era-b); }
.wb-eras a:hover { background: rgb(255 255 255 / .09); transform: translateX(4px); }
.wb-y { font-weight: 800; font-size: 1.35rem; color: var(--era-b); font-variation-settings: "wdth" 76; font-variant-numeric: tabular-nums; }
.wb-n { font-weight: 600; }
@media (max-width: 860px) { .wb-in { grid-template-columns: 1fr; } }

/* kontakt */
.contact-sec { padding-block: clamp(56px, 8vw, 110px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
.c-cards { display: grid; gap: 14px; }
.c-item { padding: 22px 24px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; }
.c-label { color: var(--muted); font-weight: 600; font-size: .9rem; }
.c-val { font-size: clamp(1.45rem, 1rem + 1.6vw, 2.1rem); font-weight: 720; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.c-val a { text-decoration: none; }
.c-val a:hover { color: var(--accent); }
.c-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.c-area { display: flex; align-items: center; gap: .5em; color: var(--muted); font-weight: 520; padding-inline: 6px; }
.composer { padding: 24px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; }
.composer-h { font-weight: 700; font-size: 1.25rem; }
.composer-p { color: var(--muted); font-size: .93rem; margin-top: -6px; }
.f-row { display: grid; gap: 6px; }
.f-row label { font-weight: 600; font-size: .92rem; }
.f-row input, .f-row select, .f-row textarea { width: 100%; border: 1.5px solid var(--line-2); background: var(--bg); border-radius: 12px; padding: .75em .9em; outline: none; transition: border-color .2s, box-shadow .2s; }
.f-row textarea { resize: vertical; min-height: 110px; }
.f-row input:focus, .f-row select:focus, .f-row textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 16%, transparent); }
.composer .btn { justify-self: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ footer */
.site-foot { border-top: 1px solid var(--line); background: var(--bg-2); padding-block: 48px 28px; margin-top: 0; }
.foot-in { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px 40px; }
.foot-word { font-weight: 760; font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 8px; font-variation-settings: "wdth" 90; }
.foot-tag { color: var(--muted); max-width: 30em; }
.foot-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.foot-cta .btn { font-variant-numeric: tabular-nums; }
.foot-col { display: grid; gap: 6px; align-content: start; }
.foot-col a { text-decoration: none; color: var(--ink-2); padding: .15em 0; }
.foot-col a:hover { color: var(--accent); }
.foot-h { font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.foot-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.foot-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.foot-langs > .ic { width: 18px; height: 18px; color: var(--muted); margin-right: 4px; }
.foot-langs a { text-decoration: none; font-weight: 700; font-size: .85rem; padding: .35em .7em; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); }
.foot-langs a:hover { border-color: var(--ink-2); color: var(--ink); }
.foot-langs a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--muted); font-size: .85rem; }
@media (max-width: 900px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot-cta .btn { flex: 1 1 100%; justify-content: center; } }

/* ------------------------------------------------------------ stránky */
.page { padding-block: clamp(28px, 5vw, 56px) clamp(48px, 7vw, 96px); }
.page-head { display: grid; gap: 14px; padding-block: clamp(28px, 5vw, 56px) clamp(20px, 3vw, 32px); }
.page-head h1 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5rem); font-weight: 780; letter-spacing: -0.04em; line-height: .95; font-variation-settings: "wdth" 80, "opsz" 96; }
.page-lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--ink-2); max-width: 42em; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5em; color: var(--muted); font-size: .92rem; font-weight: 520; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

/* doska: časová os */
.board-sec { padding-block: 8px 0; }
.board {
  position: relative; border-radius: 28px; padding: clamp(20px, 3vw, 34px); color: var(--board-ink);
  background: var(--board); box-shadow: var(--shadow-2), inset 0 0 0 1px rgb(255 255 255 / .06);
  background-image: radial-gradient(circle at 1px 1px, rgb(255 255 255 / .08) 1px, transparent 1.5px); background-size: 16px 16px;
}
.board-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.board-top h2 { font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); font-weight: 720; letter-spacing: -0.02em; }
.board-hint { color: var(--board-muted); margin-top: 6px; }
.silk { font-size: .72rem; letter-spacing: .14em; color: rgb(220 235 226 / .4); font-weight: 600; white-space: nowrap; }
.board-trace { position: relative; margin-top: 26px; }
.trace { position: absolute; left: 0; right: 0; top: 11px; width: 100%; height: 20px; overflow: visible; }
.trace path { fill: none; stroke-width: 3px; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.trace-base { stroke: var(--trace-dim); }
.trace-lit { stroke: var(--trace-lit); stroke-dasharray: 1000; filter: drop-shadow(0 0 5px rgb(255 210 122 / .7)); transition: stroke-dashoffset .9s var(--ease); }
.pads { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); position: relative; }
.pad { width: 100%; display: grid; justify-items: center; gap: 8px; background: none; border: 0; color: var(--board-ink); cursor: pointer; padding: 0 2px 6px; border-radius: 12px; text-align: center; }
.pad-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--board); border: 3px solid var(--trace); position: relative; z-index: 1; transition: transform .25s var(--ease), background-color .25s, border-color .25s, box-shadow .25s; margin-top: 10px; }
.pad-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--era-b); opacity: .5; transition: opacity .25s; }
.pad-y { font-weight: 800; font-size: 1.25rem; font-variation-settings: "wdth" 76; font-variant-numeric: tabular-nums; color: var(--era-b); }
.pad-n { font-size: .82rem; color: var(--board-muted); line-height: 1.2; font-weight: 520; }
.pad:hover .pad-dot { transform: scale(1.15); }
.pad[aria-pressed="true"] .pad-dot { border-color: var(--trace-lit); box-shadow: 0 0 0 6px rgb(255 210 122 / .16), 0 0 18px rgb(255 210 122 / .5); transform: scale(1.2); }
.pad[aria-pressed="true"] .pad-dot::after { opacity: 1; }
.pad[aria-pressed="true"] .pad-n { color: var(--board-ink); }
.rail-head { display: grid; gap: 6px; margin-top: 26px; padding-top: 22px; border-top: 1px dashed rgb(220 235 226 / .18); }
.rail-era { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.rail-name { font-size: 1.35rem; font-weight: 720; }
.rail-range { color: var(--board-muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.rail-desc { color: var(--board-muted); max-width: 52em; }
.rail {
  list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 230px); gap: 12px; margin-top: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: var(--board-line) transparent;
  mask-image: linear-gradient(to right, #000 88%, transparent); outline: none;
}
.rail li { scroll-snap-align: start; }
.ms { display: grid; gap: 6px; height: 100%; padding: 16px; border-radius: 16px; text-decoration: none; background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .07); transition: background-color .25s, transform .25s var(--ease), border-color .25s; animation: rise .45s var(--ease) both; }
.ms:hover { background: rgb(255 255 255 / .1); transform: translateY(-3px); border-color: color-mix(in oklab, var(--era-b) 50%, transparent); }
.ms-y { font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--era-b); font-variation-settings: "wdth" 76; font-variant-numeric: tabular-nums; }
.ms-t { font-weight: 650; line-height: 1.25; }
.ms-c { font-size: .8rem; color: var(--board-muted); margin-top: auto; }
@media (max-width: 720px) {
  .pad-n { display: none; }
  .pad-y { font-size: .95rem; }
  .pad-dot { width: 18px; height: 18px; }
  .silk { display: none; }
}

/* zoznam článkov */
.wiki-list { padding-block: clamp(40px, 6vw, 72px) 0; }
.list-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.list-head h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); font-weight: 740; letter-spacing: -0.03em; }
.filters { display: grid; gap: 14px; margin-bottom: 26px; position: sticky; top: calc(66px + env(safe-area-inset-top, 0px)); z-index: 10; padding-block: 12px; background: color-mix(in oklab, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.field-big input { padding: 1em 0; font-size: 1.08rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: .5em; border: 1px solid var(--line-2); background: var(--surface); padding: .45em .85em; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .92rem; transition: background-color .2s, color .2s, border-color .2s; }
.chip span { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip[aria-pressed="true"] span { color: inherit; opacity: .7; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.seg-b { border: 0; background: none; padding: .5em .9em; border-radius: 9px; font-weight: 600; font-size: .92rem; cursor: pointer; color: var(--muted); }
.seg-b[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.filter-count { color: var(--muted); font-size: .9rem; }
.wgroup { margin-bottom: 40px; scroll-margin-top: 220px; }
.wg-head { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 12px; margin-bottom: 12px; }
.wg-head .cat-ic, .wg-head .era-dot { grid-row: span 2; }
.cat-ic { width: 34px; height: 34px; padding: 6px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.wg-head h3 { font-size: 1.35rem; font-weight: 720; }
.wg-head p { color: var(--muted); font-size: .95rem; }
.tl-era .era-dot { width: 18px; height: 18px; }
.alist { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 10px; }
.al a { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; height: 100%; padding: 14px 16px 15px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; position: relative; overflow: hidden; transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.al a::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--era, var(--line-2)); }
.al a:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.al-t { font-weight: 680; line-height: 1.25; }
.al-y { font-weight: 800; color: var(--era, var(--muted)); font-variant-numeric: tabular-nums; font-variation-settings: "wdth" 80; }
.al-l { grid-column: 1 / -1; color: var(--muted); font-size: .9rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.al-c { grid-column: 1 / -1; font-size: .78rem; font-weight: 650; color: var(--ink-2); }
.empty { padding: 32px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r-m); }
.era-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--era, var(--accent)); box-shadow: 0 0 0 3px color-mix(in oklab, var(--era, var(--accent)) 22%, transparent); flex: none; }

/* práve sa deje */
.now { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.now-i { display: grid; grid-template-columns: 7.2em 1fr; gap: 16px; padding: 20px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
.now-d { font-weight: 750; color: var(--accent); font-variant-numeric: tabular-nums; font-variation-settings: "wdth" 84; }
.now-b { display: grid; gap: 6px; align-content: start; }
.now-b h3 { font-size: 1.12rem; font-weight: 700; }
.now-b h3 a { text-decoration: none; }
.now-b h3 a:hover { color: var(--accent); }
.now-b p { color: var(--ink-2); font-size: .95rem; }
.now-cd { display: inline-flex; gap: .35em; align-items: baseline; justify-self: start; margin-top: 4px; padding: .35em .75em; border-radius: 999px; background: var(--accent-soft); color: var(--accent) !important; font-weight: 600; }
.now-cd b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
@media (max-width: 800px) { .now { grid-template-columns: 1fr; } .now-i { grid-template-columns: 1fr; gap: 6px; } }

/* ------------------------------------------------------------ článok */
.article { padding-block: clamp(20px, 3vw, 36px) clamp(56px, 8vw, 100px); }
.a-head { display: grid; gap: 14px; padding-block: clamp(20px, 3vw, 36px) clamp(20px, 3vw, 32px); max-width: 60em; }
.a-meta { display: flex; align-items: center; gap: 10px; font-weight: 650; color: var(--ink-2); }
.a-year { font-weight: 800; font-size: 1.2rem; color: var(--era); font-variation-settings: "wdth" 78; font-variant-numeric: tabular-nums; }
.a-era { color: var(--muted); }
.a-head h1 { font-size: clamp(2.3rem, 1.3rem + 3.8vw, 4.4rem); font-weight: 780; letter-spacing: -0.035em; line-height: 1; font-variation-settings: "wdth" 82, "opsz" 96; }
.lead { font-family: var(--f-read); font-size: clamp(1.18rem, 1.05rem + .5vw, 1.42rem); line-height: 1.55; color: var(--ink-2); max-width: 38em; }
.fallback { padding: .7em 1em; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-size: .92rem; justify-self: start; }
.a-grid { display: grid; grid-template-columns: 210px minmax(0, 1fr) 290px; grid-template-areas: "toc body box"; gap: clamp(24px, 3vw, 48px); align-items: start; }
.toc { grid-area: toc; position: sticky; top: 96px; }
.toc summary { font-weight: 700; font-size: .9rem; cursor: pointer; list-style: none; margin-bottom: 10px; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: .35em .8em; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--muted); font-size: .92rem; line-height: 1.35; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--ink); border-left-color: var(--era, var(--accent)); font-weight: 600; }
.infobox { grid-area: box; position: sticky; top: 96px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.infobox::before { content: ""; display: block; height: 6px; background: linear-gradient(90deg, var(--era, var(--accent)), color-mix(in oklab, var(--era, var(--accent)) 30%, transparent)); }
.ib-h { font-weight: 720; padding: 16px 18px 6px; }
.infobox dl { margin: 0; padding: 0 18px 12px; display: grid; }
.infobox dl > div { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.infobox dl > div:last-child { border-bottom: 0; }
.infobox dt { font-size: .8rem; color: var(--muted); font-weight: 600; }
.infobox dd { margin: 0; font-weight: 560; display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.infobox dd a { color: var(--accent); }
.prose { grid-area: body; font-family: var(--f-read); font-size: 1.14rem; line-height: 1.72; max-width: 68ch; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-family: var(--f-ui); font-size: 1.7rem; font-weight: 720; letter-spacing: -0.02em; margin-top: 1.8em; scroll-margin-top: 96px; }
.prose h3 { font-family: var(--f-ui); font-size: 1.25rem; font-weight: 700; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--era, var(--accent)); }
.prose a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { font-weight: 650; color: var(--ink); }
.prose code { font-size: .88em; padding: .1em .35em; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); }
.callout { font-family: var(--f-ui); font-size: 1rem; line-height: 1.55; padding: 16px 18px; border-radius: 14px; background: var(--accent-soft); border-left: 4px solid var(--accent); }
.minitl { list-style: none; padding: 0 !important; display: grid; gap: 0; font-family: var(--f-ui); font-size: 1rem; border-left: 2px solid var(--line); margin-left: 6px; }
.minitl li { display: grid; grid-template-columns: 5.2em 1fr; gap: 12px; padding: 8px 0 8px 18px; position: relative; margin: 0 !important; }
.minitl li::before { content: ""; position: absolute; left: -7px; top: 15px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2.5px solid var(--era, var(--accent)); }
.mt-y { font-weight: 800; color: var(--era, var(--accent)); font-variant-numeric: tabular-nums; font-variation-settings: "wdth" 80; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.prose table { border-collapse: collapse; width: 100%; font-family: var(--f-ui); font-size: .95rem; }
.prose th, .prose td { padding: .65em .9em; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-2); font-weight: 700; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.countdown { font-family: var(--f-ui); border-radius: var(--r-l); padding: 20px 22px; background: var(--board); color: var(--board-ink); background-image: radial-gradient(circle at 1px 1px, rgb(255 255 255 / .08) 1px, transparent 1.5px); background-size: 16px 16px; }
.cd-label { color: var(--board-muted); font-weight: 600; }
.cd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px; max-width: 480px; }
.cd-grid span { display: grid; min-width: 0; padding: 10px 14px; border-radius: 12px; background: rgb(255 255 255 / .06); }
@media (max-width: 420px) { .cd-grid { gap: 6px; } .cd-grid span { padding: 8px 9px; } .cd-grid b { font-size: 1.65rem !important; } .cd-grid small { font-size: .72rem; } }
.cd-grid b { font-size: 2.2rem; font-weight: 800; line-height: 1; color: var(--trace-lit); font-variant-numeric: tabular-nums; font-variation-settings: "wdth" 76; }
.cd-grid small { color: var(--board-muted); font-size: .8rem; }
.evo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; }
.evo-a { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color .2s, transform .25s var(--ease); }
.evo-a:hover { border-color: var(--era, var(--line-2)); transform: translateY(-2px); }
.evo-a span { display: grid; gap: 2px; font-weight: 680; }
.evo-a small { color: var(--era, var(--muted)); font-weight: 650; font-size: .82rem; }
.evo-a .ic { color: var(--muted); }
.evo-next { justify-content: space-between; text-align: right; }
.evo-next span { justify-items: end; }
.related { margin-top: 48px; }
.related h2 { font-size: 1.5rem; font-weight: 720; margin-bottom: 16px; }
@media (max-width: 1120px) {
  .a-grid { grid-template-columns: minmax(0, 1fr) 280px; grid-template-areas: "toc toc" "body box"; }
  .toc { position: static; }
  .toc ol { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); border-left: 0; gap: 4px; }
  .toc a { border: 1px solid var(--line); border-radius: 10px; margin: 0; }
  .toc-empty { display: none; }
}
@media (max-width: 820px) {
  .a-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "box" "toc" "body"; }
  .infobox { position: static; }
  .toc details:not([open]) { margin-bottom: 0; }
  .evo { grid-template-columns: 1fr; }
  .prose { font-size: 1.08rem; }
}

/* 404 */
.page-404 { display: grid; gap: 18px; justify-items: start; padding-block: 72px 120px; }
.big-404 { font-size: clamp(6rem, 20vw, 14rem); font-weight: 800; line-height: .8; color: var(--accent); font-variation-settings: "wdth" 75; letter-spacing: -0.04em; }
.page-404 h1 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 760; }

/* ponuka jazyka */
.lang-hint { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px 12px 18px; border-radius: 16px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-2); width: max-content; max-width: calc(100vw - 32px); animation: rise .4s var(--ease); }
.lang-hint a { color: inherit; font-weight: 700; }
.lang-hint button { border: 0; background: rgb(255 255 255 / .12); color: inherit; border-radius: 10px; padding: .45em .75em; cursor: pointer; font-weight: 600; }
.lang-hint .lh-go { background: var(--accent); color: var(--accent-ink); text-decoration: none; padding: .45em .8em; border-radius: 10px; }

/* toast */
.toast { position: fixed; left: 50%; top: 84px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: .6em 1em; border-radius: 12px; font-weight: 600; z-index: 70; animation: pop .2s var(--ease); }

/* ------------------------------------------------------------ pohyb */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes rec { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--ok) 55%, transparent); } 80%, 100% { box-shadow: 0 0 0 9px transparent; } }
@keyframes wave { 0% { opacity: .7; transform: scale(.4); } 100% { opacity: 0; transform: scale(2.4); } }
@keyframes wv { 0%, 100% { opacity: .15; } 40% { opacity: 1; } }
@keyframes sweep { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
@keyframes sweep2 { from { transform: rotate(-10deg); } to { transform: rotate(8deg); } }
@keyframes flow { to { stroke-dashoffset: -22; } }
@keyframes progress { 0% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }
@keyframes badge { 0%, 65% { transform: scale(0); opacity: 0; } 75% { transform: scale(1.15); opacity: 1; } 85%, 100% { transform: scale(1); opacity: 1; } }
@keyframes glow { 0%, 100% { opacity: .15; transform: scale(.9); } 50% { opacity: .45; transform: scale(1.1); } }

@supports (animation-timeline: view()) {
  .svc, .steps li, .now-i, .wgroup, .c-item, .composer, .wb-eras li {
    animation: reveal linear forwards; animation-timeline: view(); animation-range: entry 0% entry 55%;
  }
  @keyframes reveal { from { opacity: 0; transform: translateY(28px) scale(.985); } to { opacity: 1; transform: none; } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hn-traces path { stroke-dashoffset: 0; }
  .hn-pk { display: none; }
  @view-transition { navigation: none; }
}

/* čínština: bez zúženého prestrkania a s väčším riadkovaním */
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(zh) .brand-word + * { letter-spacing: 0; }
:lang(zh) .hero h1, :lang(zh) .page-head h1, :lang(zh) .a-head h1 { line-height: 1.18; font-size: clamp(2.1rem, 1.1rem + 3.4vw, 3.9rem); }
:lang(zh) .prose, :lang(zh) .lead { line-height: 1.9; }

/* Konami kód: retro obrazovka na pár sekúnd */
body.konami::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgb(0 0 0 / .18) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 55%, rgb(0 0 0 / .35));
  animation: crt 7s ease forwards;
}
body.konami { animation: phosphor 7s ease forwards; }
body.konami .hn-pk { r: 5; }
@keyframes crt { 0% { opacity: 0; } 8%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes phosphor { 0%, 100% { filter: none; } 10%, 85% { filter: sepia(.35) hue-rotate(60deg) saturate(1.4) contrast(1.05); } }

/* ------------------------------------------------------------ bohatšie menu */
.drawer { width: min(500px, 100vw); overflow-y: auto; overscroll-behavior: contain; }
.drawer-in { gap: 22px; }
.drawer-top { position: sticky; top: calc(-18px - env(safe-area-inset-top, 0px)); z-index: 2; background: var(--surface); padding-block: 4px; }
.drawer-sec { display: grid; gap: 10px; }
.drawer-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer-sec-h a { font-size: .86rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.drawer-sec-h a:hover { text-decoration: underline; }
.drawer-svc { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.drawer-svc a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .93rem; line-height: 1.2; height: 100%; transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.drawer-svc a:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.dsv-ic { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--bg-2); color: var(--accent); }
.drawer-pop { list-style: none; display: grid; gap: 2px; }
.drawer-pop a { display: grid; grid-template-columns: 4.2em 1fr; align-items: baseline; gap: 10px; padding: 8px 10px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.drawer-pop a:hover { background: var(--bg-2); }
.dp-y { font-weight: 800; color: var(--era, var(--accent)); font-variant-numeric: tabular-nums; font-variation-settings: "wdth" 80; }
.drawer-random { display: inline-flex; align-items: center; gap: .45em; border: 1px solid var(--line-2); background: var(--bg); border-radius: 999px; padding: .4em .8em; font-weight: 600; font-size: .86rem; cursor: pointer; color: var(--ink); }
.drawer-random:hover { border-color: var(--accent); color: var(--accent); }
.drawer-random .ic { width: 1.1em; height: 1.1em; }
.drawer-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.drawer-cats a { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 11px; background: var(--bg); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .92rem; }
.drawer-cats a .ic { color: var(--accent); width: 1.15em; height: 1.15em; }
.drawer-cats a small { margin-left: auto; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.drawer-cats a:hover { border-color: var(--line-2); background: var(--bg-2); }
.drawer-tip { font-size: .82rem; color: var(--muted); text-align: center; padding-top: 4px; }
@media (max-width: 400px) { .drawer-svc, .drawer-cats { grid-template-columns: 1fr; } }
.drawer[open] .drawer-sec, .drawer[open] .drawer-wiki, .drawer[open] .drawer-nav { animation: rise .5s var(--ease) both; }
.drawer[open] .drawer-sec:nth-of-type(1) { animation-delay: .05s; }
.drawer[open] .drawer-sec:nth-of-type(2) { animation-delay: .1s; }
.drawer[open] .drawer-sec:nth-of-type(3) { animation-delay: .15s; }
.drawer { max-width: 100vw; }
.drawer-svc li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.drawer-in { grid-template-columns: minmax(0, 1fr); }
.drawer-search input { width: 100%; }

/* ---------------------------------------------------------------- vyhľadávanie: služby a stránky */
.pal-list .p-ic { grid-row: span 2; align-self: center; width: 2.4em; height: 2.4em; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); margin-right: .8em; }
.pal-list .p-ic .ic { width: 18px; height: 18px; }
.head-search .ic { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- prečo Krat-Tech */
.why { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.why li { display: grid; gap: 10px; align-content: start; padding: 24px 22px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
.why-ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.why-ic .ic { width: 24px; height: 24px; }
.why h3 { font-size: 1.15rem; font-weight: 700; }
.why p { color: var(--ink-2); font-size: .97rem; }
@media (max-width: 980px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .why { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- časté otázky */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; font-weight: 650; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 14px; height: 14px; position: relative; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--accent); transition: transform .25s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq details p { padding: 0 22px 20px; color: var(--ink-2); max-width: 62em; }
.faq summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: var(--r-m); }

/* ---------------------------------------------------------------- odporúčané články */
.rec { margin-block: 8px clamp(28px, 4vw, 44px); }
.rec-h { font-size: 1rem; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.rec-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rec-grid a { display: grid; gap: 4px; height: 100%; padding: 16px 18px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--era, var(--accent)); text-decoration: none; transition: transform .2s var(--ease), border-color .2s; }
.rec-grid a:hover { transform: translateY(-2px); border-color: var(--line-2); }
.rec-y { font-size: .82rem; font-weight: 800; color: var(--era, var(--accent)); font-variant-numeric: tabular-nums; }
.rec-grid b { font-size: 1.05rem; font-weight: 700; line-height: 1.25; }
.rec-l { font-size: .9rem; color: var(--muted); }
@media (max-width: 900px) { .rec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .rec-grid { grid-template-columns: 1fr; } }
.wb-rec-h { margin-top: 22px; font-size: .85rem; font-weight: 700; color: var(--board-muted); }
.wb-rec { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.wb-rec a { display: inline-block; padding: .45em .85em; border-radius: 999px; border: 1px solid rgb(255 255 255 / .25); color: var(--board-ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.wb-rec a:hover { background: rgb(255 255 255 / .1); }

/* ---------------------------------------------------------------- horúce novinky */
.hot-ic { color: #E8590C; }
.drawer-label .hot-ic { width: 1.05em; height: 1.05em; vertical-align: -2px; margin-right: 4px; }
.drawer-news { list-style: none; display: grid; gap: 2px; }
.drawer-news a { display: grid; grid-template-columns: 5.6em 1fr auto; align-items: baseline; gap: 10px; padding: 8px 10px; border-radius: 10px; text-decoration: none; }
.drawer-news a:hover { background: var(--bg-2); }
.dn-d { font-size: .78rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.dn-t { font-weight: 600; line-height: 1.3; }
.dn-cd { font-size: .78rem; font-weight: 700; color: #E8590C; white-space: nowrap; }
.dn-cd[hidden] { display: none; }
.hot-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 24px; max-width: none; }
.hot-head h2 { display: flex; align-items: center; gap: .3em; }
.hot-head h2 .ic { width: .9em; height: .9em; }
.hot-all { display: inline-flex; align-items: center; gap: .4em; font-weight: 650; text-decoration: none; color: var(--accent); }
.hot-all .ic { transition: transform .2s var(--ease); }
.hot-all:hover .ic { transform: translateX(4px); }
.hot-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hot-grid a { position: relative; display: grid; gap: 8px; align-content: start; height: 100%; padding: 22px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform .2s var(--ease), border-color .2s; overflow: hidden; }
.hot-grid a::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #E8590C, var(--trace-lit)); }
.hot-grid a:hover { transform: translateY(-3px); border-color: var(--line-2); }
.hot-d { font-size: .82rem; font-weight: 750; color: #E8590C; font-variant-numeric: tabular-nums; }
.hot-grid b { font-size: 1.15rem; line-height: 1.25; }
.hot-t { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 900px) { .hot-grid { grid-template-columns: 1fr; } }
.hot-ic-lg { width: .85em; height: .85em; vertical-align: -.05em; margin-right: .15em; }
.news-list { grid-template-columns: 1fr; max-width: 860px; }
.news-t { font-size: 1.25rem; font-weight: 700; }
.news-t a { text-decoration: none; }
.news-t a:hover { color: var(--accent); }
.news-more { font-weight: 600; color: var(--accent); text-decoration: none; font-size: .92rem; }
.news-wiki { margin-top: 32px; }
@media (max-width: 520px) { .now-i { grid-template-columns: 1fr; gap: 6px; } }
