/* ==========================================================================
   martinsteiner.sk v4.0 „Konštrukcia“ — 03.11.2026 · v4.0.1 typografické doladenie 03.11.2026
   v4.1.0 (03.11.2026): bez ukrajinčiny/cyriliky, kompozícia hero na module 4 × 5, fakty pod seba < 480 px
   Geometrický systém z troch primitív (kruh · štvorec · štvrťkruh) a troch farieb:
   kobalt = Kód, signálna oranžová = Procesy, elektrická limetka = signál/fokus.
   Farby: tools/overenie-farieb.py (WCAG 2.2 + APCA + CVD) → PALETA-DOKAZ.md.
   Bez JS plne funkčné; prefers-reduced-motion vypína všetky animácie.
   ========================================================================== */

/* @tokens:start — GENEROVANÉ tools/overenie-farieb.py, paleta A „Kobalt · Signál · Limetka“. Ručne neupravovať. */
:root {
  color-scheme: light dark;
  --bg: #F5F7FB;
  --surface: #FDFDFF;
  --surface-2: #E9EDF5;
  --ink: #121A2B;
  --muted: #475061;
  --line: #D3D8E0;
  --line-strong: #5B6375;
  --danger: #B32322;
  --band-bg: #0E1A32;
  --band-ink: #F5F7FB;
  --band-muted: #CCD4E5;
  --primary: #1649D0;
  --on-primary: #FDFDFF;
  --link: #1142CA;
  --accent: #FF996A;
  --on-accent: #0E1626;
  --accent-text: #C33C00;
  --accent-3: #9AFD56;
  --focus: #1649D0;
  --band-accent: #9AFD56;
}
@supports (color: oklch(0 0 0)) {
  :root {
    --bg: oklch(0.975 0.006 264); /* #F5F7FB */
    --surface: oklch(0.995 0.002 264); /* #FDFDFF */
    --surface-2: oklch(0.945 0.012 264); /* #E9EDF5 */
    --ink: oklch(0.220 0.035 264); /* #121A2B */
    --muted: oklch(0.430 0.030 264); /* #475061 */
    --line: oklch(0.880 0.012 264); /* #D3D8E0 */
    --line-strong: oklch(0.500 0.030 264); /* #5B6375 */
    --danger: oklch(0.500 0.180 27); /* #B32322 */
    --band-bg: oklch(0.220 0.050 264); /* #0E1A32 */
    --band-ink: oklch(0.975 0.006 264); /* #F5F7FB */
    --band-muted: oklch(0.870 0.025 264); /* #CCD4E5 */
    --primary: oklch(0.470 0.215 264); /* #1649D0 */
    --on-primary: oklch(0.995 0.002 264); /* #FDFDFF */
    --link: oklch(0.450 0.215 264); /* #1142CA */
    --accent: oklch(0.780 0.137 45); /* #FF996A */
    --on-accent: oklch(0.200 0.035 264); /* #0E1626 */
    --accent-text: oklch(0.550 0.180 38); /* #C33C00 */
    --accent-3: oklch(0.900 0.220 135); /* #9AFD56 */
    --focus: oklch(0.470 0.215 264); /* #1649D0 */
    --band-accent: oklch(0.900 0.220 135); /* #9AFD56 */
  }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0F1A;
    --surface: #121927;
    --surface-2: #1A2334;
    --ink: #EFF2F7;
    --muted: #C9D1E2;
    --line: #2B3342;
    --line-strong: #8D99AF;
    --danger: #FFBFB6;
    --band-bg: #112144;
    --band-ink: #F5F7FB;
    --band-muted: #CFD8E9;
    --primary: #93B7FF;
    --on-primary: #080F1F;
    --link: #BAD1FF;
    --accent: #FFA56D;
    --on-accent: #080F1F;
    --accent-text: #FFA56D;
    --accent-3: #9AFD56;
    --focus: #9BF461;
    --band-accent: #9AFD56;
  }
  @supports (color: oklch(0 0 0)) {
    :root:not([data-theme="light"]) {
      --bg: oklch(0.170 0.025 264); /* #0A0F1A */
      --surface: oklch(0.215 0.030 264); /* #121927 */
      --surface-2: oklch(0.255 0.035 264); /* #1A2334 */
      --ink: oklch(0.960 0.008 264); /* #EFF2F7 */
      --muted: oklch(0.860 0.025 264); /* #C9D1E2 */
      --line: oklch(0.320 0.030 264); /* #2B3342 */
      --line-strong: oklch(0.680 0.035 264); /* #8D99AF */
      --danger: oklch(0.860 0.076 27); /* #FFBFB6 */
      --band-bg: oklch(0.255 0.070 264); /* #112144 */
      --band-ink: oklch(0.975 0.006 264); /* #F5F7FB */
      --band-muted: oklch(0.880 0.025 264); /* #CFD8E9 */
      --primary: oklch(0.780 0.111 264); /* #93B7FF */
      --on-primary: oklch(0.170 0.035 264); /* #080F1F */
      --link: oklch(0.860 0.069 264); /* #BAD1FF */
      --accent: oklch(0.800 0.129 52); /* #FFA56D */
      --on-accent: oklch(0.170 0.035 264); /* #080F1F */
      --accent-text: oklch(0.800 0.129 52); /* #FFA56D */
      --accent-3: oklch(0.900 0.220 135); /* #9AFD56 */
      --focus: oklch(0.880 0.200 135); /* #9BF461 */
      --band-accent: oklch(0.900 0.220 135); /* #9AFD56 */
    }
  }
}
:root[data-theme="dark"] {
  --bg: #0A0F1A;
  --surface: #121927;
  --surface-2: #1A2334;
  --ink: #EFF2F7;
  --muted: #C9D1E2;
  --line: #2B3342;
  --line-strong: #8D99AF;
  --danger: #FFBFB6;
  --band-bg: #112144;
  --band-ink: #F5F7FB;
  --band-muted: #CFD8E9;
  --primary: #93B7FF;
  --on-primary: #080F1F;
  --link: #BAD1FF;
  --accent: #FFA56D;
  --on-accent: #080F1F;
  --accent-text: #FFA56D;
  --accent-3: #9AFD56;
  --focus: #9BF461;
  --band-accent: #9AFD56;
}
@supports (color: oklch(0 0 0)) {
  :root[data-theme="dark"] {
    --bg: oklch(0.170 0.025 264); /* #0A0F1A */
    --surface: oklch(0.215 0.030 264); /* #121927 */
    --surface-2: oklch(0.255 0.035 264); /* #1A2334 */
    --ink: oklch(0.960 0.008 264); /* #EFF2F7 */
    --muted: oklch(0.860 0.025 264); /* #C9D1E2 */
    --line: oklch(0.320 0.030 264); /* #2B3342 */
    --line-strong: oklch(0.680 0.035 264); /* #8D99AF */
    --danger: oklch(0.860 0.076 27); /* #FFBFB6 */
    --band-bg: oklch(0.255 0.070 264); /* #112144 */
    --band-ink: oklch(0.975 0.006 264); /* #F5F7FB */
    --band-muted: oklch(0.880 0.025 264); /* #CFD8E9 */
    --primary: oklch(0.780 0.111 264); /* #93B7FF */
    --on-primary: oklch(0.170 0.035 264); /* #080F1F */
    --link: oklch(0.860 0.069 264); /* #BAD1FF */
    --accent: oklch(0.800 0.129 52); /* #FFA56D */
    --on-accent: oklch(0.170 0.035 264); /* #080F1F */
    --accent-text: oklch(0.800 0.129 52); /* #FFA56D */
    --accent-3: oklch(0.900 0.220 135); /* #9AFD56 */
    --focus: oklch(0.880 0.200 135); /* #9BF461 */
    --band-accent: oklch(0.900 0.220 135); /* #9AFD56 */
  }
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
/* @tokens:end */

/* --- odvodené tokeny (nie sú farbou textu, len dekor/tiene) --------------- */
:root {
  --mark: var(--primary);            /* podčiarknutie zvýrazneného slova */
  --photo-blend: multiply;
  --photo-op: 1;
  --shadow: 0 1px 0 oklch(0.22 0.035 264 / .04), 0 18px 40px -22px oklch(0.22 0.05 264 / .28);
  --glass: color-mix(in oklab, var(--bg) 82%, transparent);
  --grid-line: color-mix(in oklab, var(--ink) 7%, transparent);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --mark: var(--accent-3); --photo-op: .88;
    --shadow: 0 1px 0 oklch(1 0 0 / .03), 0 24px 50px -24px oklch(0 0 0 / .7);
    --grid-line: color-mix(in oklab, var(--ink) 6%, transparent);
  }
}
:root[data-theme="dark"] {
  --mark: var(--accent-3); --photo-op: .88;
  --shadow: 0 1px 0 oklch(1 0 0 / .03), 0 24px 50px -24px oklch(0 0 0 / .7);
  --grid-line: color-mix(in oklab, var(--ink) 6%, transparent);
}

/* --- fonty (self-hosted, variabilné) --------------------------------------- */
@font-face {
  font-family: "Bricolage"; src: url("../fonts/bricolage-v4.woff2") format("woff2");
  font-weight: 500 800; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0000-017F, U+0218-021B, U+02C6-02DD, U+1E9E, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+25CF;
}
@font-face {
  font-family: "Manrope"; src: url("../fonts/manrope-v4-latin.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-017F, U+0218-021B, U+02C6-02DD, U+1E9E, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+25CF;
}
/* náhradné písma s upravenou metrikou → minimálny posun pri výmene (CLS) */
@font-face { font-family: "Manrope Fallback"; src: local("Arial"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 98.9%; ascent-override: 107.8%; descent-override: 30.3%; line-gap-override: 0%; }
@font-face { font-family: "Bricolage Fallback"; src: local("Arial"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 100.9%; ascent-override: 92.2%; descent-override: 26.8%; line-gap-override: 0%; }

/* --- animovateľné vlastné vlastnosti (@property) --------------------------- */
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --sweep { syntax: "<percentage>"; inherits: false; initial-value: 0%; }

/* --- fluid typografia a priestor (clamp) ----------------------------------- */
:root {
  --sans: "Manrope", "Manrope Fallback", system-ui, sans-serif;
  --display: "Bricolage", "Manrope", "Bricolage Fallback", system-ui, sans-serif;
  --s--1: clamp(.9rem, .86rem + .14vw, .95rem);   /* v4.0.1: min 14,4 px (bolo 13,4 px) */
  --s-0:  clamp(1rem, .96rem + .2vw, 1.12rem);
  --s-1:  clamp(1.18rem, 1.08rem + .45vw, 1.42rem);
  --s-2:  clamp(1.42rem, 1.22rem + .95vw, 1.98rem);
  --s-3:  clamp(1.76rem, 1.38rem + 1.75vw, 2.85rem);
  --s-4:  clamp(2.2rem, 1.5rem + 3.2vw, 4.3rem);
  --s-5:  clamp(2.9rem, 1.6rem + 5.6vw, 6.6rem);
  --sp-1: clamp(.75rem, .68rem + .3vw, 1rem);
  --sp-2: clamp(1.25rem, 1.05rem + .9vw, 1.9rem);
  --sp-3: clamp(2rem, 1.5rem + 2.3vw, 3.6rem);
  --sp-4: clamp(3.5rem, 2.4rem + 5vw, 7.5rem);
  --r: 18px; --r-sm: 10px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --head-h: 72px;
}

/* --- základ ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
body {
  font-family: var(--sans); font-size: var(--s-0); line-height: 1.62; font-weight: 450;
  color: var(--ink); background: var(--bg); min-height: 100vh;
  font-optical-sizing: auto; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.05; letter-spacing: -.02em; word-spacing: .07em; font-weight: 700; text-wrap: balance; hyphens: manual; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
b, strong { font-weight: 700; }
::selection { background: var(--accent-3); color: var(--on-accent); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--primary); color: var(--on-primary); padding: .6em 1em; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(100% - 2 * clamp(16px, 4vw, 48px), 1240px); margin-inline: auto; }

/* --- SVG geometria: všetky farby z tokenov ---------------------------------- */
.g-p { fill: var(--primary); } .g-a { fill: var(--accent); } .g-3 { fill: var(--accent-3); }
.g-ink { fill: var(--ink); } .g-bg { fill: var(--bg); } .g-s2 { fill: var(--surface-2); }
.g-on { stroke: var(--on-primary); }
.g-stroke { fill: none; stroke: var(--ink); stroke-width: 3; }
.g-line path { stroke: var(--ink); stroke-width: 6; stroke-linecap: round; }
.g-n { fill: var(--band-bg); } .g-none { fill: transparent; }
.g-code path { stroke: var(--band-muted); stroke-width: 6; stroke-linecap: round; opacity: .55; }
.g-code .l1 { stroke: var(--band-accent); opacity: 1; }
.g-grid path { stroke: var(--grid-line); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }

/* --- tlačidlá ---------------------------------------------------------------- */
.btn {
  --bg-btn: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.35em; border-radius: 999px; border: 2px solid transparent;
  font: 700 var(--s-0)/1.1 var(--sans); letter-spacing: 0; word-spacing: .06em; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
  position: relative; isolation: isolate;
}
.btn-sm { min-height: 40px; padding: .45em 1em; font-size: var(--s--1); }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary::after {           /* geometrický „záblesk“ cez @property — len dekor */
  content: ""; position: absolute; inset: -2px; border-radius: inherit; z-index: -1; pointer-events: none;
  background: conic-gradient(from var(--angle), var(--accent) 0 var(--sweep), transparent var(--sweep));
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  padding: 2px; transition: --sweep .5s var(--ease), --angle .8s var(--ease);
}
.btn-primary:hover::after { --sweep: 100%; --angle: 180deg; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px var(--primary); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }

/* --- hlavička ---------------------------------------------------------------- */
.site-head { position: relative; z-index: 50; background: var(--glass); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(1px)) { .site-head { -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); } }
.head { display: flex; align-items: center; gap: var(--sp-1); min-height: var(--head-h); flex-wrap: wrap; }
/* logo: FLEX (poučenie v2.6 — grid s dvoma deťmi rozbil bodku) */
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font: 750 1.06rem/1 var(--display); letter-spacing: -.01em; word-spacing: .08em; }
.brand-mark { width: 36px; height: 36px; flex: none; transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.nav { display: flex; align-items: center; gap: clamp(.4rem, 1.4vw, 1.4rem); margin-inline-start: auto; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--s--1); padding: .4em .1em; background: linear-gradient(var(--primary), var(--primary)) left bottom / 0 2px no-repeat; transition: background-size .3s var(--ease); }
.nav a:not(.btn):hover { background-size: 100% 2px; }
.head-tools { display: flex; align-items: center; gap: .4rem; }
.progress { position: absolute; inset: auto 0 -1px 0; height: 3px; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent-3)); opacity: 0; }

.langsw { position: relative; }
.langsw summary { list-style: none; display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: 0 .75rem; border: 2px solid var(--line-strong); border-radius: 999px; cursor: pointer; font-weight: 700; font-size: var(--s--1); color: var(--ink); }
.langsw summary::-webkit-details-marker { display: none; }
.langsw summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.langsw[open] summary, .langsw summary:hover { border-color: var(--ink); }
.langsw-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; padding: .4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow); z-index: 60; }
.langsw-menu a { display: flex; gap: .7rem; align-items: center; padding: .55rem .7rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: var(--s--1); font-weight: 550; }
.langsw-menu a:hover { background: var(--surface-2); }
.langsw-menu a[aria-current] { color: var(--link); font-weight: 750; }
.langsw-menu .lc { font: 750 .72rem/1 var(--display); letter-spacing: .06em; width: 2.2em; height: 1.7em; display: inline-grid; place-items: center; border: 1.5px solid currentColor; border-radius: 5px; }

.theme-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; border: 2px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; transition: border-color .2s, transform .4s var(--ease); }
.theme-btn:hover { border-color: var(--ink); transform: rotate(180deg); }
.theme-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.theme-btn .half { fill: currentColor; stroke: none; }

@media (max-width: 899px) {
  /* mobil: bez hamburgera — tri kotvy a CTA ako vodorovne posuvný rad (funguje bez JS) */
  .head { padding-block: .55rem; row-gap: .5rem; }
  .head-tools { margin-inline-start: auto; }
  .nav { order: 3; width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; gap: .4rem; padding-bottom: .15rem; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a:not(.btn) { flex: none; border: 1.5px solid var(--line); border-radius: 999px; padding: .42em .95em; background: var(--surface); }
  .nav .btn { flex: none; margin-inline-start: auto; }
}
@media (max-width: 599px) { .nav .btn { display: none; } }  /* CTA je hneď v hero; v rade by sa orezávala (DE) */
@media (min-width: 900px) {
  .site-head { position: sticky; top: 0; }
  .head { flex-wrap: nowrap; }
}

/* --- eyebrow a nadpisy sekcií -------------------------------------------------- */
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-weight: 750; font-size: var(--s--1); line-height: 1.35; letter-spacing: .08em; text-transform: uppercase; color: var(--link); margin-bottom: var(--sp-1); text-wrap: balance; }
.eyebrow .dot { width: .7em; height: .7em; border-radius: 50%; background: var(--accent); box-shadow: 1.05em 0 0 var(--primary); margin-inline-end: 1.1em; }
.sec { padding-block: var(--sp-4); position: relative; }
.sec-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .4rem 2rem; margin-bottom: var(--sp-3); }
.sec-head .eyebrow { grid-column: 1; margin: 0; }
.sec-head h2 { grid-column: 1; font-size: var(--s-4); max-width: 18ch; }
.sec-num { grid-column: 2; grid-row: 1 / span 2; align-self: end; font: 650 var(--s--1)/1 var(--display); letter-spacing: .06em; color: var(--muted); writing-mode: vertical-rl; transform: rotate(180deg); border-inline-start: 2px solid var(--line-strong); padding-inline-start: .5rem; }

/* --- HERO ------------------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(2.2rem, 1rem + 5vw, 5.5rem) var(--sp-3); overflow: clip; }
.hero::before { /* geometrická mriežka v pozadí, maskovaná do stratena */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask: radial-gradient(ellipse 70% 80% at 70% 30%, #000 20%, transparent 75%); mask: radial-gradient(ellipse 70% 80% at 70% 30%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; gap: var(--sp-3) var(--sp-3); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto; align-items: center; }
  .hero-text { grid-column: 1; grid-row: 1; }
  .hero-art { grid-column: 2; grid-row: 1; align-self: end; }   /* spodná hrana = spodok tlačidiel; výška ≈ od h1 po CTA */
  .facts { grid-column: 1 / -1; }
}
.hero-text { container: hero / inline-size; }
.hero h1 { font-size: var(--s-5); line-height: .98; letter-spacing: -.03em; word-spacing: .1em; font-weight: 800; margin-bottom: var(--sp-2); max-width: 15ch; overflow-wrap: break-word; }
/* v4.0.1: najdlhšie slovo nadpisu musí vojsť do stĺpca, inak ho overflow-wrap rozdelí uprostred:
   DE „Maßgeschneiderte“ (7,95 em), PL „Oprogramowanie“ (7,28 em) a HU v Bricolage: strop podľa šírky stĺpca */
:lang(de) .hero h1 { font-size: min(var(--s-5), 12cqi); }
:lang(pl) .hero h1 { font-size: min(var(--s-5), 13cqi); }
:lang(hu) .hero h1 { font-size: min(var(--s-5), 13cqi); }   /* „a folyamataiban.“ s nedeliteľnou medzerou ≈ 7 em */
.hero h1 .ink-accent, .ink-accent {
  color: var(--accent-text); font-stretch: 78%; font-weight: 800;
  text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: .1em; text-underline-offset: .1em; text-decoration-skip-ink: none;
  
}
.hero h1 .ink-accent { transition: text-decoration-color .4s, text-underline-offset .4s var(--ease); }
.hero h1:hover .ink-accent { text-decoration-color: var(--accent-3); text-underline-offset: .16em; }
.lead { font-size: var(--s-1); line-height: 1.55; max-width: 56ch; color: var(--muted); font-weight: 500; margin-bottom: var(--sp-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* v4.1.0 kompozícia: modul 120 jednotiek, plátno 4 × 5 modulov (4 : 5). Na šírke < 960 px sa zobrazia len horné
   dva riadky ako pás 2 : 1 (SVG preserveAspectRatio slice, horný okraj) — na mobile nezaberie celú obrazovku. */
.hero-art { position: relative; width: min(100%, 500px); justify-self: center; aspect-ratio: 4 / 5; }
@media (max-width: 959px) {
  .hero-art { width: 100%; aspect-ratio: 2 / 1; margin-bottom: 1.25rem; }
  .hero-art .chip { left: auto; right: clamp(8px, 3vw, 24px); }   /* štítok vpravo, ľavý štvrťkruh ostane celý */
}
.compo { width: 100%; height: 100%; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); position: relative; z-index: 1; }
.compo .tile { transform-box: fill-box; transform-origin: center; transition: transform .7s var(--ease); }
.hero-art:hover .t1 { transform: rotate(90deg); }   /* štvrťkruhy sa otočia v rámci svojej bunky */
.hero-art:hover .t7 { transform: rotate(90deg); }
.hero-art:hover .sig { transform: translateX(-120px); }
.compo .sig { transition: transform .7s var(--ease); }
.ring { position: absolute; inset: -14px; border-radius: calc(var(--r) + 10px); z-index: 0;
  background: conic-gradient(from var(--angle), var(--primary), var(--accent), var(--accent-3), var(--primary));
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  padding: 3px; opacity: .9; }
.chip { position: absolute; z-index: 2; left: clamp(-24px, -2vw, -8px); bottom: 0; transform: translateY(50%); display: flex; gap: .7rem; align-items: center; max-width: 82%;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: .7rem 1rem; box-shadow: var(--shadow); }
.chip b { display: block; font-size: var(--s--1); line-height: 1.25; }
.chip small { display: block; font-size: .82rem; color: var(--muted); line-height: 1.35; }
.chip-dot { width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent-3) 30%, transparent), 0 0 0 1.5px var(--ink) inset; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 2px solid var(--ink); }
.fact { padding: var(--sp-1) clamp(.4rem, 1.5vw, 1.4rem); display: grid; grid-template-rows: auto 1fr; gap: .2rem; }
.fact + .fact { border-inline-start: 1px solid var(--line-strong); }
.fact dt { font: 800 var(--s-4)/1 var(--display); font-stretch: 75%; letter-spacing: -.03em; color: var(--ink); display: flex; align-items: baseline; gap: .15em; }
.fact dt::after { content: ""; width: .22em; height: .22em; border-radius: 50%; background: var(--accent); }
.fact-2 dt::after { border-radius: 0; background: var(--primary); }
.fact-3 dt::after { background: var(--accent-3); box-shadow: 0 0 0 1.5px var(--ink); }
.fact dd { font-size: var(--s--1); color: var(--muted); font-weight: 550; line-height: 1.35; text-wrap: balance; }
/* v4.1.0 (MS #56): pod 480 px fakty pod sebou — číslo vľavo, popis vpravo v jednom riadku */
@media (max-width: 479px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact { grid-template-columns: 3.4rem minmax(0, 1fr); grid-template-rows: auto; align-items: center; column-gap: 1rem; padding: .8rem 0; }
  .fact + .fact { border-inline-start: 0; border-top: 1px solid var(--line-strong); }
  .fact dt { font-size: var(--s-3); }
  .fact dd { text-wrap: pretty; }
}

/* --- tech pás ------------------------------------------------------------------------- */
.stack { border-block: 1px solid var(--line); background: var(--surface); }
.stack-row { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 2rem; padding-block: 1.1rem; }
.stack-label { font-weight: 750; font-size: var(--s--1); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.langs { display: flex; flex-wrap: wrap; gap: .6rem clamp(1rem, 3vw, 2.6rem); }
@media (max-width: 479px) { .langs { display: grid; grid-template-columns: repeat(2, max-content); column-gap: 2rem; } }
.langs li { display: inline-flex; align-items: center; gap: .55rem; font: 700 var(--s-2)/1 var(--display); letter-spacing: -.02em; }
.sh { width: .62em; height: .62em; display: inline-block; flex: none; }
.sh-c { border-radius: 50%; background: var(--primary); }
.sh-s { background: var(--accent); }
.sh-t { background: var(--ink); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.sh-q { background: var(--primary); border-radius: 100% 0 0 0; }

/* --- služby: dráhy + karty (subgrid + container queries) ------------------------------ */
.track { --tc: var(--primary); margin-top: var(--sp-3); container: track / inline-size; }
.track-proc { --tc: var(--accent); }
.track-head { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; align-items: center; margin-bottom: var(--sp-2); padding-bottom: var(--sp-1); border-bottom: 2px solid var(--ink); }
.track-head h3 { font-size: var(--s-2); }
.track-head p { grid-column: 2; color: var(--muted); font-weight: 550; max-width: 65ch; }
.track-glyph { grid-row: 1 / span 2; width: 52px; height: 52px; background: var(--tc); border-radius: 50%; position: relative; }
.track-glyph::after { content: ""; position: absolute; inset: 14px; background: var(--bg); border-radius: 4px; }
.track-proc .track-glyph { border-radius: 0 100% 0 0; }
.track-proc .track-glyph::after { inset: auto 6px 6px auto; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); }

.cards { display: grid; gap: var(--sp-2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.card {
  /* POZOR: container-type na karte by vypol subgrid (layout containment) → kontajner je .track a .card-fig */
  display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; position: relative;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
@supports not (grid-template-rows: subgrid) { .card { display: flex; flex-direction: column; } }
.cards { grid-auto-rows: auto; }
.card::before { /* geometrický roh — mikrointerakcia */
  content: ""; position: absolute; z-index: 2; top: 0; right: 0; width: 64px; height: 64px; background: var(--tc);
  border-radius: 0 0 0 100%; transform: scale(0); transform-origin: 100% 0; transition: transform .5s var(--ease); pointer-events: none;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card:hover::before { transform: scale(1); }
.card::after { /* svetelná stopa za kurzorom (JS nastaví --mx/--my; bez JS nič) */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), color-mix(in oklab, var(--tc) 9%, transparent), transparent 70%);
}
.card:hover::after { opacity: 1; }
.card-fig { position: relative; aspect-ratio: 16 / 9; background: var(--tc); overflow: hidden; container: fig / inline-size; }
.card-fig picture, .card-fig img { width: 100%; height: 100%; }
.card-fig img { object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(1.04); mix-blend-mode: var(--photo-blend); opacity: var(--photo-op); transition: transform .8s var(--ease); }
.card:hover .card-fig img { transform: scale(1.04); }
.ix { position: absolute; z-index: 1; left: 14px; top: 12px; font: 800 clamp(.9rem, .5rem + 2.4cqi, 1.25rem)/1 var(--display); letter-spacing: .02em; color: var(--ink); background: var(--surface); border-radius: 999px; padding: .4em .7em; }
.card h4 { font-size: var(--s-1); padding: var(--sp-2) var(--sp-2) .5rem; letter-spacing: -.015em; }
.card > p { padding: 0 var(--sp-2) 1rem; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 var(--sp-2) var(--sp-2); align-content: start; }
.tags li { font-size: .82rem; font-weight: 650; padding: .3em .75em; border-radius: 999px; border: 1.5px solid var(--line-strong); color: var(--ink); }
/* karty reagujú na šírku SVOJEJ dráhy, nie okna */
@container track (min-width: 1000px) {
  .card h4 { font-size: var(--s-2); }
  .card-fig { aspect-ratio: 2 / 1; }
}
@container track (max-width: 420px) {
  .card h4 { padding-inline: 1.1rem; } .card > p, .tags { padding-inline: 1.1rem; }
}

/* diagram architektúry (karta Konzultácie) */
.diagram { width: 100%; height: 100%; background: var(--surface-2); padding: 6% 8%; }
.diagram .d-box rect { fill: var(--surface); stroke: var(--ink); stroke-width: 1.4; }
.diagram .d-wire path { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 4 4; animation: dash 1.6s linear infinite; }
.diagram .d-core { fill: var(--primary); }
.diagram .d-orbit { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 2 6; transform-box: fill-box; transform-origin: center; animation: spin 14s linear infinite; }
.diagram .d-txt { fill: var(--ink); font: 700 11px var(--sans); }
.diagram .d-txt-core { fill: var(--on-primary); font: 800 12px var(--sans); }
@keyframes dash { to { stroke-dashoffset: -16; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- O mne ---------------------------------------------------------------------------- */
.about { background: linear-gradient(var(--surface-2), var(--surface-2)) 0 0 / 100% 100% no-repeat; overflow-x: clip; }
.about-grid { display: grid; gap: var(--sp-3); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 880px) { .about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.portrait { position: relative; width: min(100%, 440px); justify-self: center; }
.portrait picture { border-radius: 999px 999px var(--r) var(--r); overflow: hidden; background: var(--primary); aspect-ratio: 4 / 5; }
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); mix-blend-mode: var(--photo-blend); opacity: var(--photo-op); }
.orbit { position: absolute; right: max(-6%, -12px); bottom: 8%; width: 32%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); border: 6px solid var(--surface-2); }
.orbit::after { content: ""; position: absolute; left: -38%; top: -38%; width: 34%; aspect-ratio: 1; background: var(--accent-3); box-shadow: 0 0 0 1.5px var(--ink); border-radius: 50%; }
.about h2 { font-size: var(--s-4); margin-bottom: var(--sp-2); max-width: 16ch; }
.about-text > p { max-width: 62ch; margin-bottom: 1rem; }
.points { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; margin-top: var(--sp-2); background: var(--line-strong); border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; }
@media (min-width: 520px) { .points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.point { background: var(--surface); padding: 1rem 1.1rem; display: grid; grid-template-columns: auto 1fr; gap: .1rem .8rem; align-items: center; }
.point b { font-family: var(--display); font-size: var(--s-0); line-height: 1.2; text-wrap: balance; }
.point small { grid-column: 2; color: var(--muted); font-size: var(--s--1); }
.pg { grid-row: 1 / span 2; width: 22px; height: 22px; background: var(--primary); border-radius: 50%; }
.p2 .pg { background: var(--accent); border-radius: 0; }
.p3 .pg { background: var(--ink); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.p4 .pg { background: var(--primary); border-radius: 100% 0 0 0; }

/* --- Proces (tmavý pás) ---------------------------------------------------------------- */
.band { background: var(--band-bg); color: var(--band-ink); overflow: clip; }
.band::before { content: ""; position: absolute; right: -8vw; top: -10vw; width: 34vw; aspect-ratio: 1; border-radius: 50%; border: 2px solid color-mix(in oklab, var(--band-ink) 14%, transparent); pointer-events: none; }
.band .eyebrow { color: var(--band-accent); }
.band .sec-num { color: var(--band-muted); border-color: color-mix(in oklab, var(--band-ink) 40%, transparent); }
.band h2, .band h3 { color: var(--band-ink); }
.band-word { position: absolute; left: -.04em; bottom: -.18em; z-index: 0; pointer-events: none; user-select: none;
  font: 800 clamp(7rem, 4rem + 18vw, 22rem)/1 var(--display); font-stretch: 85%; letter-spacing: -.05em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px color-mix(in oklab, var(--band-ink) 16%, transparent); }
.band .wrap { position: relative; z-index: 1; }
.flow { width: 100%; height: auto; margin-bottom: var(--sp-3); color: var(--band-ink); overflow: visible; }
.flow .f-rail { stroke: var(--band-muted); stroke-width: 1.4; stroke-dasharray: 2 7; fill: none; opacity: .7; }
.flow .f-draw { stroke: var(--band-accent); stroke-width: 3; fill: none; stroke-dasharray: 1; stroke-dashoffset: .7; }
.flow .f-nodes > * { fill: var(--band-accent); }
.flow .f-nodes .hollow { fill: var(--band-bg); stroke: var(--band-accent); stroke-width: 2.5; }
.flow .f-txt text { fill: var(--band-ink); font: 700 15px var(--sans); }
@media (max-width: 999px) { .flow { display: none; } }   /* v4.0.1: dráha len pri 4 stĺpcoch krokov — uzly sú zarovnané na stĺpce (x = 25 + 250·i) */
.steps { display: grid; gap: 1px; grid-template-columns: minmax(0, 1fr); background: color-mix(in oklab, var(--band-ink) 18%, transparent); border-radius: var(--r); overflow: hidden; }
@media (min-width: 560px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { background: var(--band-bg); padding: var(--sp-2); }
.step .n { display: block; font: 800 var(--s-4)/1 var(--display); font-stretch: 75%; color: var(--band-accent); margin-bottom: .8rem; letter-spacing: -.03em; }
.step h3 { font-size: var(--s-1); margin-bottom: .45rem; }
.step p { color: var(--band-muted); font-size: var(--s--1); line-height: 1.55; text-wrap: pretty; }

/* --- Kontakt ----------------------------------------------------------------------------- */
.contact-grid { display: grid; gap: var(--sp-3); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 940px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.contact h2 { font-size: var(--s-4); margin-bottom: var(--sp-1); max-width: 14ch; }
.contact-info > p { color: var(--muted); max-width: 52ch; margin-bottom: var(--sp-2); }
.cinfo li { display: grid; grid-template-columns: 4.6rem 1fr; gap: 1rem; align-items: baseline; padding-block: .85rem; border-top: 1px solid var(--line); }
.cinfo li:last-child { border-bottom: 1px solid var(--line); }
.ci { font-weight: 800; font-size: .78rem; letter-spacing: .1em; color: var(--muted); }
.cinfo b { display: block; font-size: var(--s-1); font-family: var(--display); font-weight: 700; letter-spacing: -.01em; }
.cinfo b a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--mark), var(--mark)) 0 100% / 0 3px no-repeat; transition: background-size .35s var(--ease); }
.cinfo b a:hover { background-size: 100% 3px; }
.cinfo small { color: var(--muted); font-size: var(--s--1); }
.next { margin-top: var(--sp-2); padding: var(--sp-2); border-radius: var(--r); background: var(--surface-2); }
.next-h { font: 750 var(--s-1)/1.2 var(--display); margin-bottom: .8rem; }
.next ol { counter-reset: n; display: grid; gap: .7rem; }
.next li { text-wrap: pretty; counter-increment: n; display: grid; grid-template-columns: 2rem 1fr; gap: .6rem; color: var(--ink); font-size: var(--s--1); }
.next li::before { content: counter(n); width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: var(--on-primary); font: 800 .8rem/1 var(--display); }

.form-col { position: relative; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--sp-2); box-shadow: var(--shadow); display: grid; gap: 1.05rem; }
.form .row { display: grid; gap: 1.05rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.fg { display: grid; gap: .4rem; }
.fg label { font-weight: 700; font-size: var(--s--1); color: var(--ink); }
.fg input, .fg select, .fg textarea {
  width: 100%; font: 500 var(--s-0)/1.4 var(--sans); color: var(--ink); background: var(--surface);
  border: 2px solid var(--line-strong); border-radius: var(--r-sm); padding: .72rem .9rem; min-height: 48px;
  transition: border-color .2s, box-shadow .2s;
}
.fg textarea { min-height: 140px; resize: vertical; }
.fg select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: right 1.15rem center, right .8rem center; background-size: .36rem .36rem; background-repeat: no-repeat; padding-right: 2.4rem; }
.fg input::placeholder, .fg textarea::placeholder { color: var(--muted); opacity: 1; font-style: italic; font-weight: 400; }  /* kontrast textu, no odlíšené tvarom od vyplnenej hodnoty */
.fg input:hover, .fg select:hover, .fg textarea:hover { border-color: var(--ink); }
.fg input:focus-visible, .fg select:focus-visible, .fg textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--ink); }
.fg :is(input, select, textarea):user-invalid, .fg [aria-invalid="true"] { border-color: var(--danger); }
.fhint { color: var(--muted); font-size: .86rem; }
.ferr[hidden] { display: none; }
.ferr { color: var(--danger); font-size: .88rem; font-weight: 700; display: flex; gap: .4rem; align-items: center; }
.ferr::before { content: ""; width: .7em; height: .7em; flex: none; background: var(--danger); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.gdpr { display: grid; grid-template-columns: auto 1fr; gap: .4rem .75rem; align-items: start; font-size: var(--s--1); color: var(--ink); }
.gdpr input { width: 22px; height: 22px; margin-top: .15rem; accent-color: var(--primary); }
.gdpr .ferr { grid-column: 2; }
.hp { position: absolute; left: -9999px; top: -9999px; }
.form-note { border-radius: var(--r-sm); padding: 1rem 1.2rem; margin-bottom: 1rem; font-weight: 600; background: var(--surface); border: 2px solid var(--line-strong); color: var(--ink); }
.form-note.err { border-color: var(--danger); color: var(--danger); }
.form-note.ok { border-color: var(--primary); }
.form-note .pv { display: block; margin-top: .4rem; color: var(--muted); font-weight: 600; }

/* --- Pätička ------------------------------------------------------------------------------ */
.site-foot { border-top: 2px solid var(--ink); padding-top: var(--sp-3); position: relative; overflow: clip; }
.foot { display: grid; gap: var(--sp-2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); padding-bottom: var(--sp-2); }
.foot-brand p { color: var(--muted); margin-top: 1rem; max-width: 34ch; font-size: var(--s--1); }
.foot-col { display: grid; gap: .45rem; align-content: start; }
.foot-col h3 { font-size: var(--s-0); margin-bottom: .35rem; }
.foot-col a, .foot-col span { color: var(--muted); font-size: var(--s--1); text-decoration: none; }
.foot-col a:hover { color: var(--ink); text-decoration: underline; }
.copy { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-block: 1.2rem; font-size: .86rem; color: var(--muted); }
.foot-geo { display: grid; grid-template-columns: repeat(6, 1fr); height: clamp(28px, 5vw, 64px); }
.foot-geo i { display: block; }
.foot-geo i:nth-child(1) { background: var(--primary); border-radius: 100% 100% 0 0; }
.foot-geo i:nth-child(2) { background: var(--accent); }
.foot-geo i:nth-child(3) { background: var(--ink); border-radius: 0 100% 0 0; }
.foot-geo i:nth-child(4) { background: var(--accent-3); border-radius: 100% 100% 0 0; }
.foot-geo i:nth-child(5) { background: var(--primary); }
.foot-geo i:nth-child(6) { background: var(--accent); border-radius: 100% 0 0 0; }

/* --- Modaly (bez JS cez :target) ----------------------------------------------------------- */
.modal-overlay { position: fixed; inset: 0; z-index: 90; display: none; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow-y: auto; background: color-mix(in oklab, var(--ink) 55%, transparent); }
.modal-overlay:target, .modal-overlay.open { display: flex; }
.modal { position: relative; width: min(100%, 700px); background: var(--surface); color: var(--muted); font-size: .95rem; line-height: 1.6; border-radius: var(--r); padding: clamp(1.4rem, 4vw, 2.6rem); box-shadow: var(--shadow); border-top: 6px solid var(--primary); }
.modal h2 { font-size: var(--s-3); margin-bottom: .4rem; padding-right: 3rem; color: var(--ink); }
.modal h3 { font-size: var(--s-0); margin: 1.4rem 0 .35rem; color: var(--ink); }
.modal strong { color: var(--ink); }
.modal p, .modal li { color: var(--muted); font-size: .95rem; margin-bottom: .5rem; }
.modal ul { padding-left: 1.2em; list-style: square; margin-bottom: .5rem; }
.modal .updated { font-size: .82rem; font-weight: 700; color: var(--muted); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--line-strong); color: var(--ink); background: var(--surface); }
.modal-close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.modal-close:hover { border-color: var(--ink); }

/* --- Cookie lišta --------------------------------------------------------------------------- */
.cookie { position: fixed; z-index: 80; left: 16px; right: 16px; bottom: 16px; max-width: 420px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: 14px; padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.cookie[hidden] { display: none; }
.cookie p { font-size: .9rem; color: var(--muted); margin-bottom: .8rem; }
.cookie-btns { display: flex; gap: .5rem; flex-wrap: wrap; }
@media (min-width: 900px) { .cookie { left: 24px; right: auto; bottom: 24px; } }

/* --- 404 ------------------------------------------------------------------------------------- */
.nf { padding-block: var(--sp-4); }
.nf-grid { display: grid; gap: var(--sp-3); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .nf-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.nf h1 { font-size: var(--s-4); margin-bottom: var(--sp-1); max-width: 18ch; }
.nf-art { width: min(100%, 360px); justify-self: center; border-radius: var(--r); }

/* ===========================================================================================
   POHYB — len ak používateľ nechce obmedzený pohyb. Bez podpory sa nič neskrýva.
   =========================================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .ring { animation: turn 14s linear infinite; }
  @keyframes turn { to { --angle: 360deg; } }
  .compo .t6 .g-stroke { transform-box: fill-box; transform-origin: center; animation: pulse 4s var(--ease) infinite alternate; }
  @keyframes pulse { from { transform: scale(.82); } to { transform: scale(1); } }

  /* úvodná choreografia (len CSS) */
  .hero-text > * { animation: rise .9s var(--ease) both; }
  .hero-text > :nth-child(2) { animation-delay: .06s; }
  .hero-text > :nth-child(3) { animation-delay: .14s; }
  .hero-text > :nth-child(4) { animation-delay: .22s; }
  .compo .tile { animation: pop .8s var(--ease) both; }
  .compo .t2, .compo .t4 { animation-delay: .08s; } .compo .t3, .compo .t5, .compo .t7 { animation-delay: .16s; }
  .compo .t6, .compo .t8 { animation-delay: .24s; } .compo .t9 { animation-delay: .32s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
  @keyframes pop  { from { opacity: 0; transform: scale(.6) rotate(-45deg); } }

  /* scroll-driven animácie (Chromium 115+, Safari 26) — inak všetko ostáva viditeľné */
  @supports (animation-timeline: view()) {
    .progress { opacity: 1; animation: grow linear both; animation-timeline: scroll(root block); }
    @keyframes grow { to { transform: scaleX(1); } }
    .card, .step, .point, .sec-head, .track-head, .next, .form { animation: enter linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    @keyframes enter { from { opacity: .001; transform: translateY(42px) scale(.98); } }
    .flow .f-draw { animation: draw linear both; animation-timeline: view(); animation-range: entry 20% cover 55%; }
    @keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
    /* variabilné písmo v pohybe len na absolútne umiestnenom dekore (zmena šírky nesmie posúvať obsah → CLS) */
    .band-word { animation: breathe linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes breathe { from { font-stretch: 75%; font-weight: 500; } to { font-stretch: 100%; font-weight: 800; } }
    .foot-geo i { animation: lift linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; transform-origin: 50% 100%; }
    @keyframes lift { from { transform: scaleY(0); } }
  }

  /* View Transitions: prechod medzi jazykovými mutáciami (MPA) */
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .flow .f-draw { stroke-dashoffset: 0; }
}
/* pri prepnutí režimu farieb kruhová clona z tlačidla (JS nastaví --vx/--vy) */
@media (prefers-reduced-motion: no-preference) {
  html.vt-theme::view-transition-old(root) { animation: none; }
  html.vt-theme::view-transition-new(root) { animation: reveal .6s var(--ease); }
  @keyframes reveal { from { clip-path: circle(0 at var(--vx, 90%) var(--vy, 0)); } to { clip-path: circle(150vmax at var(--vx, 90%) var(--vy, 0)); } }
}

@media print {
  .site-head, .cookie, .hero-art, .foot-geo, .flow, .progress { display: none !important; }
  body { background: #fff; color: #000; }
}
