/* ALKAM, s.r.o. — hliníkové konštrukcie
   Systémové písmo (SF na Apple zariadeniach), tokeny pre svetlý aj tmavý režim. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-2: #f3f4f5;
  --bg-3: #e8eaec;
  --ink: #111315;
  --ink-2: #5a6067;
  --ink-3: #868c93;
  --line: rgba(17, 19, 21, .1);
  --accent: #0a5fc2;
  --accent-hover: #084fa3;
  --accent-ink: #ffffff;
  --header: rgba(255, 255, 255, .74);
  --header-solid: #ffffff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 40px -12px rgba(0, 0, 0, .14);

  --dark: #0d0f11;
  --dark-2: #16191c;
  --dark-ink: #f4f5f6;
  --dark-ink-2: #9aa1a8;

  --radius-l: 28px;
  --radius-m: 20px;
  --radius-s: 12px;
  --gutter: clamp(20px, 4.4vw, 48px);
  --wrap: 1180px;
  --header-h: 52px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c0d;
    --bg-2: #161819;
    --bg-3: #212426;
    --ink: #f3f4f5;
    --ink-2: #a0a6ad;
    --ink-3: #6f767d;
    --line: rgba(255, 255, 255, .12);
    --accent: #4b9bff;
    --accent-hover: #6aacff;
    --accent-ink: #04111f;
    --header: rgba(22, 23, 24, .72);
    --header-solid: #161718;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 40px -12px rgba(0, 0, 0, .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.53 var(--font);
  letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); }
html { -webkit-tap-highlight-color: transparent; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* ---------- typografia ---------- */
.overline {
  display: block;
  margin: 0 0 14px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.display, .h1, .h2, .h3 { font-family: var(--font-display); margin: 0; font-weight: 700; color: var(--ink); text-wrap: balance; }
.display { font-size: clamp(2.75rem, 1.15rem + 5.6vw, 5.75rem); line-height: 1.02; letter-spacing: -.038em; }
.h1 { font-size: clamp(2.5rem, 1.3rem + 4.2vw, 4.75rem); line-height: 1.04; letter-spacing: -.034em; }
.h2 { font-size: clamp(2rem, 1.25rem + 2.9vw, 3.5rem); line-height: 1.07; letter-spacing: -.03em; }
.h3 { font-size: clamp(1.375rem, 1.1rem + .8vw, 1.75rem); line-height: 1.16; letter-spacing: -.02em; font-weight: 650; }
.lead { font-size: clamp(1.1875rem, 1.02rem + .6vw, 1.5rem); line-height: 1.38; letter-spacing: -.018em; color: var(--ink-2); font-weight: 500; margin: 0; text-wrap: pretty; }
.lead strong { color: var(--ink); font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
.muted { color: var(--ink-2); }

/* ---------- tlačidlá a odkazy ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: var(--radius-s);
  background: var(--accent); color: var(--accent-ink);
  font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em;
  cursor: pointer;
  transition: background-color .2s, transform .25s var(--ease);
  -webkit-user-select: none; user-select: none;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(.97); transition: transform 90ms ease-out; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { background: var(--bg-2); }
.btn--small { min-height: 34px; padding: 0 14px; font-size: .875rem; border-radius: 10px; }
.more {
  display: inline-flex; align-items: center; gap: .3em;
  color: var(--accent); font-weight: 500;
}
.more::after {
  content: ""; width: .5em; height: .5em; margin-top: .05em;
  border: solid currentColor; border-width: 1.6px 1.6px 0 0; transform: rotate(45deg) translate(-1px, 1px);
  transition: transform .3s var(--ease);
}
.more:hover { text-decoration: underline; text-underline-offset: .18em; }
.more:hover::after { transform: rotate(45deg) translate(1px, -1px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 32px; }

/* ---------- hlavička ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  background: var(--header);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.site-header::after {
  /* jemný prechod namiesto deliacej čiary, iba keď je pod hlavičkou obsah */
  content: ""; position: absolute; inset: 100% 0 auto; height: 18px; pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--ink) 7%, transparent), transparent);
  opacity: 0; transition: opacity .3s;
}
.is-scrolled .site-header::after { opacity: 1; }
.nav { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; letter-spacing: .16em;
  margin-right: auto; padding: 8px 0;
}
.brand svg { width: 22px; height: 22px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.nav-links a { font-size: .875rem; color: var(--ink-2); transition: color .2s; padding: 6px 0; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { font-weight: 600; }
.nav-toggle { display: none; }

@media (max-width: 1023px) {
  .nav-links, .nav .btn { display: none; }
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; margin-right: -12px;
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { position: relative; display: block; width: 18px; height: 12px; }
  .nav-toggle span::before, .nav-toggle span::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 2px; background: var(--ink);
    transition: transform .4s var(--ease), top .4s var(--ease);
  }
  .nav-toggle span::before { top: 2px; }
  .nav-toggle span::after { top: 9px; }
  .menu-open .nav-toggle span::before { top: 5.5px; transform: rotate(45deg); }
  .menu-open .nav-toggle span::after { top: 5.5px; transform: rotate(-45deg); }
}

.menu {
  position: fixed; inset: var(--header-h) 0 auto; z-index: 49;
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  background: var(--header-solid);
  padding: 12px 0 40px;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .45s var(--ease), visibility 0s .45s;
}
.menu-open .menu { visibility: visible; opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .45s var(--ease); }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li a {
  display: block; padding: 9px 0;
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 650; letter-spacing: -.025em;
  opacity: 0; transform: translateY(-6px);
  transition: opacity .25s, transform .4s var(--ease);
}
.menu-open .menu li a { opacity: 1; transform: none; transition-delay: calc(var(--i) * 30ms + 60ms); }
.menu .menu-contact { margin-top: 28px; color: var(--ink-2); font-size: .9375rem; line-height: 1.7; }
.menu .menu-contact a { color: var(--ink); font-weight: 500; }
.menu-open body { overflow: hidden; }
.menu-scrim { position: fixed; inset: 0; z-index: 48; background: rgba(0,0,0,.2); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.menu-open .menu-scrim { opacity: 1; visibility: visible; transition: opacity .3s; }
@media (min-width: 1024px) { .menu, .menu-scrim { display: none; } }

main { display: block; }

/* ---------- hero ---------- */
.hero { padding: calc(var(--header-h) + clamp(56px, 10vh, 128px)) 0 0; }
.hero .lead { max-width: 640px; margin-top: 26px; }
.hero .display { max-width: 980px; }

/* ---------- pás realizácií (ťahací) ---------- */
.strip-wrap { margin-top: clamp(56px, 8vh, 88px); }
.strip {
  --h: clamp(300px, 46vh, 520px);
  --pad: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  display: flex; gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  padding: 0 var(--pad) 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.strip::-webkit-scrollbar { display: none; }
.strip.is-grabbing { scroll-snap-type: none; cursor: grabbing; }
.strip.is-grabbing * { pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .strip { cursor: grab; } }
.strip figure { flex: none; margin: 0; width: calc(var(--h) * var(--r)); scroll-snap-align: start; }
.strip .shot {
  display: block; width: 100%; padding: 0; border: 0; background: var(--bg-2); cursor: inherit;
  border-radius: var(--radius-m); overflow: hidden;
  transition: transform .35s var(--ease);
}
.strip .shot:active { transform: scale(.985); transition-duration: 90ms; }
.strip img { width: 100%; height: var(--h); object-fit: cover; -webkit-user-drag: none; user-select: none; }
.strip figcaption { padding: 14px 4px 0; font-size: .875rem; line-height: 1.4; color: var(--ink-2); letter-spacing: -.005em; }
.strip figcaption b { display: block; color: var(--ink); font-weight: 600; }
.strip-ui { display: flex; align-items: center; gap: 22px; margin-top: 22px; }
.strip-progress { position: relative; flex: 1; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.strip-progress i { position: absolute; inset: 0 auto 0 0; width: 20%; border-radius: inherit; background: var(--ink); will-change: transform; }
.arrows { display: flex; gap: 4px; margin-right: -10px; }
.arrow {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--ink); transition: opacity .2s, transform .2s var(--ease);
}
.arrow svg { width: 22px; height: 22px; }
.arrow:active { transform: scale(.88); transition-duration: 80ms; }
.arrow:disabled { opacity: .25; cursor: default; }

/* ---------- sekcie ---------- */
.section { padding: clamp(96px, 14vh, 160px) 0; }
.section--tight { padding-top: clamp(64px, 9vh, 104px); }
.section-head { max-width: 860px; margin-bottom: clamp(40px, 6vh, 64px); }
.section-head .lead { margin-top: 20px; max-width: 700px; }
.bg-2 { background: var(--bg-2); }

/* dlaždice riešení */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tile {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg-2); border-radius: var(--radius-l);
  transition: transform .4s var(--ease);
  isolation: isolate;
}
.bg-2 .tile { background: var(--bg); }
.tile:active { transform: scale(.988); transition-duration: 100ms; }
.tile-text { padding: clamp(28px, 3.4vw, 44px) clamp(26px, 3.4vw, 44px) 28px; }
.tile-text p { margin-top: 10px; color: var(--ink-2); max-width: 30em; }
.tile-text .more { margin-top: 16px; }
.tile-img { margin-top: auto; overflow: hidden; aspect-ratio: 16 / 10.5; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
@media (hover: hover) { .tile:hover .tile-img img { transform: scale(1.035); } }
.tile-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ---------- technológia (tmavá sekcia s prierezom) ---------- */
.tech { background: var(--dark); color: var(--dark-ink); }
.tech .overline { color: var(--dark-ink-2); }
.tech .h2, .tech .h3 { color: var(--dark-ink); }
.tech .lead { color: var(--dark-ink-2); }
.tech-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 6vw, 96px); }
.tech-figure { position: sticky; top: calc(var(--header-h) + 4vh); height: calc(100vh - var(--header-h) - 8vh); display: grid; place-items: center; }
.tech-figure svg { width: 100%; height: 100%; max-height: 720px; overflow: visible; }
.tech-steps { padding: 6vh 0 10vh; }
.tech-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .6s var(--ease); }
.tech-step.is-active { opacity: 1; }
.tech-step .num { font-size: .875rem; font-weight: 600; color: var(--dark-ink-2); letter-spacing: .02em; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.tech-step p { margin-top: 14px; color: var(--dark-ink-2); font-size: 1.1875rem; line-height: 1.47; max-width: 30em; }
.tech-step p b { color: var(--dark-ink); font-weight: 600; }
.finishes { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 22px; }
.finish {
  padding: 8px 0; border: 0; background: none; cursor: pointer;
  color: var(--dark-ink-2); font-size: .9375rem; font-weight: 500;
  box-shadow: inset 0 -1.5px 0 transparent;
  transition: color .2s, box-shadow .3s var(--ease);
}
.finish:hover { color: var(--dark-ink); }
.finish[aria-pressed="true"] { color: var(--dark-ink); box-shadow: inset 0 -1.5px 0 currentColor; }

/* SVG prierez */
.xs { --alu-hi: #e4e7ea; --alu-mid: #b9bec4; --alu-lo: #8d939a; --alu-edge: #f7f8f9; }
.xs[data-finish="antracit"] { --alu-hi: #5b6268; --alu-mid: #3f454a; --alu-lo: #2c3135; --alu-edge: #7a8288; }
.xs[data-finish="biela"] { --alu-hi: #fbfbf8; --alu-mid: #ecebe6; --alu-lo: #d4d3cd; --alu-edge: #ffffff; }
.xs[data-finish="bronz"] { --alu-hi: #8f7657; --alu-mid: #6c573f; --alu-lo: #4d3d2c; --alu-edge: #a88d6a; }
.xs stop { transition: stop-color .7s var(--ease-in-out); }
.xs .part { transition: opacity .6s var(--ease); }
.xs[data-step="1"] .part:not(.p-alu),
.xs[data-step="2"] .part:not(.p-break),
.xs[data-step="3"] .part:not(.p-glass),
.xs[data-step="4"] .part:not(.p-alu) { opacity: .22; }
.xs .temps { opacity: 0; transition: opacity .8s var(--ease); }
.xs[data-step="2"] .temps { opacity: 1; }
.xs .break-glow { opacity: 0; transition: opacity .6s var(--ease); }
.xs[data-step="2"] .break-glow { opacity: 1; }
.xs .lowe { opacity: .5; transition: opacity .6s; }
.xs[data-step="3"] .lowe { opacity: 1; }
.xs .label { font: 600 11px/1 var(--font); letter-spacing: .12em; fill: var(--dark-ink-2); }
.xs .label-big { font: 600 22px/1 var(--font-display); letter-spacing: -.02em; }
.xs .callout { opacity: 0; transition: opacity .5s var(--ease); }
.xs[data-step="1"] .c1, .xs[data-step="2"] .c2, .xs[data-step="3"] .c3 { opacity: 1; }
.xs .callout text { font: 500 12.5px/1 var(--font); fill: var(--dark-ink); letter-spacing: 0; }
.xs .callout line { stroke: rgba(255,255,255,.4); stroke-width: 1; }

/* ---------- výrok so slovami, ktoré sa rozsvecujú ---------- */
.statement { font-family: var(--font-display); font-size: clamp(1.75rem, 1rem + 2.7vw, 3.25rem); line-height: 1.14; letter-spacing: -.028em; font-weight: 650; margin: 0; max-width: 1040px; text-wrap: pretty; }
.statement .w { color: color-mix(in srgb, var(--ink) 18%, var(--bg)); transition: color .45s ease; }
.statement .w.on { color: var(--ink); }
.no-js .statement .w, .reduce .statement .w { color: var(--ink); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px clamp(24px, 4vw, 56px); margin-top: clamp(64px, 9vh, 104px); }
.fact b { display: block; font-family: var(--font-display); font-size: clamp(2.75rem, 2rem + 2.4vw, 4rem); line-height: 1; letter-spacing: -.04em; font-weight: 700; font-variant-numeric: tabular-nums; }
.fact b small { font-size: .45em; letter-spacing: -.01em; font-weight: 600; margin-left: .12em; }
.fact p { margin-top: 14px; color: var(--ink-2); max-width: 22em; }

/* postup ako odstavec */
.process { font-family: var(--font-display); font-size: clamp(1.375rem, 1.05rem + 1.1vw, 2rem); line-height: 1.36; letter-spacing: -.022em; font-weight: 500; color: var(--ink); max-width: 980px; text-wrap: pretty; }
.process i { font-style: italic; font-weight: 600; font-size: .62em; color: var(--accent); vertical-align: .55em; margin: 0 .22em 0 .08em; letter-spacing: 0; }
.process span { color: var(--ink-2); }

/* ---------- kontaktný panel ---------- */
.cta-panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 80px); align-items: end; padding: clamp(36px, 5vw, 72px); background: var(--bg-2); border-radius: var(--radius-l); }
.bg-2 .cta-panel { background: var(--bg); }
.cta-panel .lead { margin-top: 18px; }
.contact-lines { display: grid; gap: 18px; }
.contact-lines span { display: block; font-size: .8125rem; color: var(--ink-2); font-weight: 500; margin-bottom: 2px; }
.contact-lines a, .contact-lines p { font-family: var(--font-display); font-size: clamp(1.375rem, 1.1rem + .9vw, 1.875rem); font-weight: 650; letter-spacing: -.022em; line-height: 1.2; }
.contact-lines a:hover { color: var(--accent); }
.contact-lines p { font-size: 1.0625rem; font-family: var(--font); font-weight: 500; letter-spacing: -.01em; line-height: 1.45; }

/* ---------- podstránky produktov ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(48px, 8vh, 104px)) 0 0; }
.page-hero .lead { max-width: 720px; margin-top: 24px; }
.hero-photo { margin: clamp(48px, 7vh, 80px) auto 0; width: min(1180px, 100% - 2 * var(--gutter)); border-radius: var(--radius-l); overflow: hidden; background: var(--bg-2); }
.hero-photo img { width: 100%; aspect-ratio: 16 / 8.6; object-fit: cover; }
.hero-photo figcaption { padding: 14px 0 0; }
.photo-cap { margin: 14px auto 0; width: min(1180px, 100% - 2 * var(--gutter)); font-size: .875rem; color: var(--ink-3); }
.intro-text { font-family: var(--font-display); font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem); line-height: 1.32; letter-spacing: -.022em; font-weight: 600; max-width: 940px; text-wrap: pretty; }
.intro-text span { color: var(--ink-2); }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(40px, 5vw, 64px) clamp(32px, 6vw, 96px); margin-top: clamp(64px, 9vh, 96px); }
.feature .h3 { margin-bottom: 12px; }
.feature p { color: var(--ink-2); max-width: 30em; }
.gallery-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; margin-bottom: 28px; }
.gallery-head .more { font-size: 1rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.gallery a { position: relative; display: block; overflow: hidden; border-radius: 14px; background: var(--bg-3); aspect-ratio: 4 / 3; transition: transform .35s var(--ease); }
.gallery a:active { transform: scale(.975); transition-duration: 90ms; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .4s; }
@media (hover: hover) { .gallery a:hover img { transform: scale(1.04); } }
.gallery .is-hidden { display: none; }
.subhead { margin: clamp(48px, 7vh, 72px) 0 20px; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related .tile-text { padding: 28px 28px 22px; }
.related .h3 { font-size: 1.375rem; }

/* filtre realizácií */
.filters { display: flex; gap: 4px 26px; flex-wrap: wrap; margin: 0 0 32px; padding: 0; list-style: none; }
.filters button {
  padding: 10px 0; border: 0; background: none; cursor: pointer;
  font-size: 1rem; font-weight: 500; color: var(--ink-2);
  box-shadow: inset 0 -1.5px 0 transparent;
  transition: color .2s, box-shadow .3s var(--ease);
}
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 -1.5px 0 currentColor; }
.filters sup { font-size: .7em; color: var(--ink-3); margin-left: 3px; font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- kontakt / formulár ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 6vw, 104px); margin-top: clamp(48px, 7vh, 80px); }
.form { display: grid; gap: 22px; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form legend, .field label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 10px; color: var(--ink); letter-spacing: -.005em; }
.field label .opt { color: var(--ink-3); font-weight: 500; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; min-height: 52px; padding: 10px 14px;
  border-radius: var(--radius-s); background: var(--bg-2);
  box-shadow: inset 0 0 0 1.5px transparent;
  font-size: .9375rem; font-weight: 500; line-height: 1.25;
  transition: box-shadow .2s, background-color .2s, transform .2s var(--ease);
}
.choice input:hover + span { background: var(--bg-3); }
.choice input:checked + span { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice input:active + span { transform: scale(.97); transition-duration: 80ms; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field input, .field textarea {
  display: block; width: 100%; padding: 14px 16px;
  border: 0; border-radius: var(--radius-s);
  background: var(--bg-2); color: var(--ink);
  font: inherit; font-size: 1.0625rem; letter-spacing: -.01em;
  box-shadow: inset 0 0 0 1.5px transparent;
  transition: box-shadow .2s, background-color .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.45; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:hover, .field textarea:hover { background: var(--bg-3); }
.field input:focus, .field textarea:focus { outline: none; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--accent); }
.field.is-invalid input, .field.is-invalid textarea { box-shadow: inset 0 0 0 1.5px #d93025; }
.field .err { display: none; margin-top: 8px; font-size: .8125rem; color: #d93025; }
.field.is-invalid .err { display: block; }
.form-note { font-size: .8125rem; color: var(--ink-3); line-height: 1.5; }
.form-note a { text-decoration: underline; text-underline-offset: .15em; }
.form .btn { justify-self: start; min-width: 200px; }
.form .btn[disabled] { opacity: .6; pointer-events: none; }
.form-done { display: none; padding: 40px 0; }
.form-done.is-on { display: block; animation: fadeUp .6s var(--ease) both; }
.form-done .h3 { margin-bottom: 10px; }
.hp { position: absolute; left: -9999px; }
.aside-block + .aside-block { margin-top: 40px; }
.aside-block .overline { margin-bottom: 10px; }
.aside-block p { color: var(--ink-2); line-height: 1.6; }
.aside-block a.big { display: inline-block; font-family: var(--font-display); font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.125rem); font-weight: 650; letter-spacing: -.025em; color: var(--ink); line-height: 1.15; }
.aside-block a.big:hover { color: var(--accent); }
.aside-block .more { margin-top: 10px; }
.company { font-size: .9375rem; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }

/* ---------- textová stránka ---------- */
.prose { max-width: 720px; }
.prose h2 { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -.02em; margin: 48px 0 12px; }
.prose p, .prose ul { color: var(--ink-2); margin: 0 0 14px; }
.prose ul { padding-left: 1.2em; }
.prose a { color: var(--accent); }

/* ---------- pätička ---------- */
.site-footer { background: var(--bg-2); color: var(--ink-2); font-size: .8125rem; line-height: 1.6; padding: 56px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: .8125rem; font-weight: 600; color: var(--ink); margin: 0 0 10px; letter-spacing: -.005em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 3px 0; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .15em; }
.foot-brand { font-family: var(--font-display); font-weight: 700; letter-spacing: .16em; color: var(--ink); font-size: 1rem; margin-bottom: 12px; display: block; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 48px; padding-top: 20px; box-shadow: inset 0 1px 0 var(--line); }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; touch-action: none; color: #f5f5f7; }
.lb[hidden] { display: none; }
.lb-scrim { position: absolute; inset: 0; background: #000; opacity: 0; }
.lb-stage { position: absolute; inset: 0; overflow: hidden; }
.lb-slide { position: absolute; left: 0; top: 0; margin: 0; will-change: transform; }
.lb-slide img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; pointer-events: none; }
.lb-chrome { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; }
.lb.is-open .lb-chrome { opacity: 1; }
.lb-top { position: absolute; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: max(12px, env(safe-area-inset-top)) 12px 12px 22px; }
.lb-count { font-size: .875rem; font-weight: 500; color: rgba(245,245,247,.72); font-variant-numeric: tabular-nums; }
.lb-close, .lb-nav { pointer-events: auto; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: #f5f5f7; cursor: pointer; transition: opacity .2s, transform .2s var(--ease); }
.lb-close:active, .lb-nav:active { transform: scale(.88); transition-duration: 80ms; }
.lb-close svg { width: 20px; height: 20px; }
.lb-nav { position: absolute; top: 50%; margin-top: -22px; }
.lb-nav svg { width: 28px; height: 28px; }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-nav:disabled { opacity: .2; cursor: default; }
.lb-cap { position: absolute; inset: auto 0 0; padding: 18px 24px max(22px, env(safe-area-inset-bottom)); text-align: center; font-size: .9375rem; color: rgba(245,245,247,.86); }
.lb-cap small { display: block; font-size: .75rem; color: rgba(245,245,247,.5); margin-bottom: 3px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
@media (hover: none) { .lb-nav { display: none; } }
.lb-open, .lb-open body { overflow: hidden; }

/* ---------- objavovanie pri skrolovaní ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 72vh; display: grid; align-content: center; padding-top: var(--header-h); }

/* ---------- responzívne ---------- */
@media (max-width: 1023px) {
  .tech-grid { grid-template-columns: 1fr; gap: 0; }
  .tech-figure { top: var(--header-h); height: 46vh; z-index: 1; background: linear-gradient(var(--dark) 82%, transparent); margin: 0 calc(-1 * var(--gutter)); padding: 12px var(--gutter) 0; }
  .tech-figure svg { max-height: 100%; }
  .tech-steps { padding: 0 0 6vh; }
  .tech-step { min-height: 62vh; justify-content: flex-start; padding-top: 4vh; }
  .related { grid-template-columns: 1fr 1fr; }
  .related > :nth-child(3) { display: none; }
  .cta-panel { grid-template-columns: 1fr; align-items: start; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .tiles, .features, .facts, .related { grid-template-columns: 1fr; }
  .related > :nth-child(3) { display: flex; }
  .tile-img { aspect-ratio: 4 / 3; }
  .choices { grid-template-columns: 1fr 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .strip { --h: min(62vw, 360px); gap: 10px; }
  .strip-ui .arrows { display: none; }
  .hero-photo img { aspect-ratio: 4 / 3; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 6px; }
  .gallery a { border-radius: 10px; }
  .form .btn { justify-self: stretch; }
  .tech-step p { font-size: 1.0625rem; }
}

/* ---------- prístupnosť ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .tile-img img, .gallery img { transform: none !important; }
  .xs stop, .xs .part, .tech-step { transition-duration: .2s !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--header-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --ink-2: #33373b; --ink-3: #4c5156; --line: rgba(0,0,0,.35); }
  .site-header { background: var(--header-solid); box-shadow: 0 1px 0 var(--ink); }
}
@media print {
  .site-header, .menu, .strip-ui, .lb, .nav-toggle { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

.form fieldset.is-invalid legend::after { content: " Vyberte jednu možnosť."; color: #d93025; font-weight: 500; }
