/* Smer A – Príbeh: 3D úvod z Blendera, potom pokojné striedanie svetlých a tmavých sekcií. */
:root {
  --black: #08090B; --dark: #101114; --dark-2: #17181C;
  --light: #F5F5F7; --white: #FFFFFF; --ink: #1D1D1F; --ink-2: #6E6E73; --line: #D9D9DE;
  --on-dark: #F5F5F7; --on-dark-2: #A1A1A6; --line-dark: rgb(255 255 255 / .12);
  --c1: #E2455F; --c2: #E0479B; --c3: #A970F0; --c4: #5B7BF5;
  --grad: linear-gradient(100deg, #E2455F, #E0479B 30%, #A970F0 62%, #5B7BF5);
  --f-d: 'Bricolage Grotesque', system-ui, sans-serif;
  --f-t: 'Instrument Sans', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --wrap: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--black); color: var(--on-dark); font: 400 17px/1.55 var(--f-t); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--f-d); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; padding: 10px 14px; background: #fff; color: #000; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--c4); outline-offset: 3px; }

/* ── navigácia ── */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; background: rgb(8 9 11 / .72); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid rgb(255 255 255 / .06); }
.nav__in { max-width: var(--wrap); height: 56px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); display: flex; align-items: center; gap: 28px; }
.nav__logo img { width: 72px; height: auto; }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: .88rem; color: var(--on-dark-2); }
.nav__links a:hover { color: #fff; }
.nav__cta { padding: 7px 14px; border-radius: 999px; background: #fff; color: #000; font-size: .85rem; font-weight: 600; }
.nav__burger { display: none; width: 40px; height: 40px; margin-left: auto; border: 0; background: none; position: relative; cursor: pointer; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: #fff; transition: transform .3s var(--ease); }
.nav__burger span:first-child { top: 16px; } .nav__burger span:last-child { top: 23px; }
.nav.is-open .nav__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav__burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav__menu { display: none; }

/* ── tlačidlá a odkazy ── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: 600 .95rem var(--f-t); cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--light { background: #fff; color: #000; }
.btn--ghost { border-color: rgb(255 255 255 / .35); color: #fff; background: transparent; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--c4); font-weight: 600; }
.link::after { content: '›'; font-size: 1.3em; line-height: 1; transition: transform .2s; }
.link:hover::after { transform: translateX(3px); }
.link--light { color: #fff; }
.eyebrow { font-size: .82rem; font-weight: 600; letter-spacing: .02em; color: var(--on-dark-2); margin-bottom: 14px; }
.eyebrow--it { color: var(--c4); } .eyebrow--en { color: var(--c1); } .eyebrow--tuna { color: #7E97FF; } .eyebrow--ligo { color: #3BD27F; }
.eyebrow--grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── úvod: text vľavo, 3D scéna vpravo, nikdy cez seba ── */
.seq { position: relative; height: calc(var(--len, 300) * 1vh); background: var(--black); }
.seq + .seq, .sec + .seq { border-top: 1px solid rgb(255 255 255 / .05); }
.intro__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; max-width: 1440px; margin: 0 auto; padding: 56px clamp(20px, 4vw, 40px) 0; gap: 2vw; }
.intro__copy { position: relative; display: grid; align-content: center; height: 100%; }
.intro__stage { position: relative; height: 100%; }
.intro__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.step { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s linear .35s; pointer-events: none; }
.step.is-on { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: .12s, .12s, 0s; }
.step h1 { font-size: clamp(2.6rem, 5.2vw, 4.8rem); }
.step h2 { font-size: clamp(2.3rem, 4.6vw, 4.2rem); }
.intro__lead { margin-top: 18px; max-width: 30ch; color: var(--on-dark-2); font-size: clamp(1.05rem, 1.4vw, 1.25rem); }
.intro__acts { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.intro__hint { position: absolute; left: 0; bottom: 30px; font-size: .78rem; color: var(--on-dark-2); letter-spacing: .08em; transition: opacity .4s; }
.intro__hint::after { content: ''; display: block; width: 1px; height: 28px; margin: 8px 0 0 4px; background: linear-gradient(var(--on-dark-2), transparent); animation: hint 1.8s var(--ease) infinite; }
@keyframes hint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.seq.is-scrolled .intro__hint { opacity: 0; }

/* ── sekcie ── */
.sec { padding: clamp(80px, 11vw, 150px) 0; }
.sec--light { background: var(--light); color: var(--ink); }
.sec--white { background: var(--white); color: var(--ink); }
.sec--dark { background: var(--black); }
.sec--light .eyebrow:not([class*='--']), .sec--white .eyebrow:not([class*='--']) { color: var(--ink-2); }
.head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.head h2 { font-size: clamp(2.3rem, 5vw, 4rem); }
.head__lead { margin-top: 16px; font-size: 1.15rem; color: var(--ink-2); }
.head--center { margin-inline: auto; text-align: center; }
.head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

/* IT služby */
.head__lead--side { max-width: 38ch; margin: 0; }
.svc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: s; }
.svc__row { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1.3fr) 168px; align-items: center; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.svc__n { font: 500 .9rem var(--f-t); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.svc__row h3 { font-size: clamp(1.45rem, 2.4vw, 2rem); letter-spacing: -.03em; }
.svc__row p { margin: 0; color: var(--ink-2); font-size: 1.02rem; max-width: 40ch; }
.svc__ex { justify-self: end; display: flex; align-items: center; gap: 12px; height: 64px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.svc__ex img { height: 64px; width: auto; transition: transform .4s var(--ease); }
.svc__ex span::after { content: ' →'; color: var(--c4); }
.svc__ex:hover img { transform: translateY(-3px) rotate(-3deg); }
.svc__ex--txt { color: var(--ink-2); font-weight: 500; }
@media (max-width: 860px) {
  .svc__row { grid-template-columns: 40px 1fr; gap: 6px 14px; padding: 22px 0; }
  .svc__row p, .svc__ex { grid-column: 2; }
  .svc__ex { justify-self: start; height: auto; margin-top: 8px; }
  .svc__ex img { height: 48px; }
}

/* AI – dve ukážky */
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.feature + .feature { margin-top: clamp(90px, 12vw, 160px); }
.feature--flip { grid-template-columns: 7fr 5fr; }
.feature--flip .feature__copy { order: 2; }
.feature__n { font-size: .85rem; font-weight: 600; color: var(--c3); }
.feature h3 { margin-top: 12px; font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.feature__copy > p:not(.feature__n):not(.note) { margin-top: 16px; color: var(--on-dark-2); font-size: 1.08rem; }
.ticks { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: center; }
.ticks li::before { content: ''; width: 18px; height: 18px; flex: none; border-radius: 50%; background: rgb(91 123 245 / .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237E97FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat; }
.note { margin-top: 16px; font-size: .88rem; color: #77777C; }
.feature__media { position: relative; aspect-ratio: 7 / 6; }
.feature__media::before { content: ''; position: absolute; inset: 8% 6%; border-radius: 50%; background: radial-gradient(closest-side, rgb(91 123 245 / .32), transparent); filter: blur(30px); }
.fm-ipad { position: absolute; left: 14%; top: 0; width: 50%; filter: drop-shadow(0 40px 50px rgb(0 0 0 / .6)); }
.fm-phone { position: absolute; left: 54%; top: 22%; width: 24%; filter: drop-shadow(0 30px 40px rgb(0 0 0 / .6)); }
.hub { margin: 0; }
.hub svg { width: 100%; height: auto; overflow: visible; }
.hub__lines path { fill: none; stroke: rgb(255 255 255 / .16); stroke-width: 1.5; stroke-dasharray: 4 6; }
.hub__dots circle { fill: #A970F0; }
.hub__dots circle:nth-child(odd) { fill: #5B7BF5; }
.hub__nodes rect { fill: var(--dark-2); stroke: rgb(255 255 255 / .14); }
.hub__nodes text { fill: #F5F5F7; font: 500 15px var(--f-t); text-anchor: middle; }
.hub__core rect { fill: #0E0F13; stroke: url(#g); stroke-width: 2; }
.hub__core .t1 { fill: #fff; font: 700 19px var(--f-d); text-anchor: middle; }
.hub__core .t2 { fill: var(--on-dark-2); font: 500 13px var(--f-t); text-anchor: middle; }

/* Energetika v 3D sekcii */
.energy__list { list-style: none; margin: 0 0 22px; padding: 0; }
.energy__list li { padding: 15px 0; border-top: 1px solid var(--line-dark); }
.energy__list h3 { font-size: 1.15rem; letter-spacing: -.02em; }
.energy__list p { margin-top: 3px; color: var(--on-dark-2); font-size: .97rem; }

/* Referencie */
.filters { display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: var(--light); }
.filters button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font: 500 .9rem var(--f-t); color: var(--ink-2); cursor: pointer; }
.filters button[aria-pressed='true'] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgb(0 0 0 / .1); }
.refs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ref { display: flex; flex-direction: column; gap: 14px; }
.ref[hidden] { display: none; }
.ref--wide { grid-column: span 2; }
.pv { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 11; border-radius: 22px; background: var(--light); }
.ref--wide .pv { aspect-ratio: auto; flex: 1; min-height: 240px; }
.ref--wide { grid-row: span 1; }
.pv img { transition: transform .9s var(--ease); }
a.ref:hover .pv img { transform: scale(1.03); }
.pv__mac { position: absolute; left: 6%; bottom: 7%; width: 80%; filter: drop-shadow(0 24px 30px rgb(0 0 0 / .35)); }
.pv__phone { position: absolute; right: 6%; bottom: 4%; width: 21%; filter: drop-shadow(0 20px 24px rgb(0 0 0 / .4)); }
.ref--wide .pv__mac { width: 64%; left: 8%; }
.ref--wide .pv__phone { width: 15%; right: 12%; }
.pv--tuna { background: radial-gradient(90% 90% at 30% 10%, #3D5EF0, #12278F 70%); }
.pv--ligo { background: radial-gradient(90% 90% at 30% 10%, #1F7A47, #0B2A1B 70%); }
.pv--monitor { background: radial-gradient(90% 90% at 30% 10%, #1A3A52, #070B10 70%); }
.pv--supportin { background: radial-gradient(90% 90% at 30% 10%, #1E4A57, #0A1418 70%); }
.pv--photo img, .pv--shot img { width: 100%; height: 100%; object-fit: cover; }
.pv--shot { background: #0B0E13; }
.pv--brand { display: grid; place-content: center; justify-items: center; gap: 14px; color: #fff;
  background: radial-gradient(120% 90% at 85% 10%, rgb(91 123 245 / .28), transparent 55%), radial-gradient(90% 80% at 10% 100%, rgb(226 69 95 / .22), transparent 60%), linear-gradient(160deg, #1B1C21, #0C0D10); }
.pv--brand::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent); }
.pv__name { position: relative; font: 700 clamp(1.7rem, 2.6vw, 2.3rem)/1 var(--f-d); letter-spacing: -.035em; }
.pv--brand em { position: relative; font-style: normal; font-size: .76rem; font-weight: 600; letter-spacing: .02em; padding: 5px 12px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .22); color: rgb(255 255 255 / .8); }
.pv--brand-soon { filter: saturate(.4); }
.pv--brand-soon .pv__name { color: rgb(255 255 255 / .75); }
.ref__t { display: grid; gap: 3px; font: 600 1.12rem/1.3 var(--f-d); letter-spacing: -.02em; }
.ref__t small { font: 500 .82rem var(--f-t); letter-spacing: 0; color: var(--ink-2); }

/* Kontakt */
.head__lead--dark { color: var(--on-dark-2); }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 1rem; gap: 8px; }
.contact__grid { display: grid; grid-template-columns: 4fr 7fr; gap: 18px; align-items: stretch; }
.contact__card, .contact__form { border-radius: 24px; background: var(--dark); border: 1px solid var(--line-dark); padding: clamp(24px, 3vw, 40px); }
.contact__lead { font: 700 1.35rem/1.2 var(--f-d); letter-spacing: -.02em; }
.contact__card dl { margin: 20px 0 0; }
.contact__card dl div { display: grid; grid-template-columns: 76px 1fr; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line-dark); }
.contact__card dt { color: var(--on-dark-2); font-size: .85rem; }
.contact__card dd { margin: 0; font-weight: 500; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.fld { display: block; margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.fld > span, .fld legend { display: block; margin-bottom: 8px; font-size: .86rem; font-weight: 600; padding: 0; color: #E6E6EA; }
.fld small { color: var(--on-dark-2); font-weight: 400; margin-left: 4px; }
.fld input, .fld textarea { width: 100%; padding: 13px 15px; border: 1px solid rgb(255 255 255 / .12); border-radius: 12px; background: rgb(255 255 255 / .035); color: #fff; font: inherit; font-size: 1rem; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.fld textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.fld input:hover, .fld textarea:hover { border-color: rgb(255 255 255 / .22); }
.fld input:focus, .fld textarea:focus { border-color: var(--c4); background: rgb(255 255 255 / .05); box-shadow: 0 0 0 4px rgb(91 123 245 / .18); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .14); background: rgb(255 255 255 / .03); color: var(--on-dark-2); font-size: .9rem; transition: all .2s; }
.chips label:hover span { border-color: rgb(255 255 255 / .3); color: #fff; }
.chips input:checked + span { background: #fff; border-color: #fff; color: #000; }
.chips input:focus-visible + span { outline: 2px solid var(--c4); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; color: var(--on-dark-2); font-size: .88rem; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--c4); flex: none; }
.contact__acts { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.contact__msg { color: var(--on-dark-2); font-size: .9rem; }
.contact__msg.is-err { color: #FF7A8A; }
.fld.is-bad input, .fld.is-bad textarea { border-color: #FF7A8A; box-shadow: 0 0 0 4px rgb(255 122 138 / .14); }
.consent.is-bad { color: #FF7A8A; }
.fld__hint { margin: 8px 0 0; font-size: .86rem; color: var(--on-dark-2); }
.fld__hint button { font: inherit; padding: 0; border: 0; background: none; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.fld__fix { color: #fff; font-weight: 600 !important; }
.fld__keep { color: var(--on-dark-2); margin-left: 6px; }
.fld__hint button:focus-visible { outline: 2px solid var(--c4); outline-offset: 2px; border-radius: 4px; }
.contact__ts { margin-top: 20px; min-height: 65px; }
.contact__ts:focus { outline: none; }
.contact__form.is-sent > :not(.contact__done) { display: none; }
.contact__done-t { font: 700 1.5rem var(--f-d); }
.contact__done p + p { margin-top: 6px; color: var(--on-dark-2); }
.contact__done .btn { margin-top: 18px; }

/* Päta */
.foot { background: var(--black); border-top: 1px solid var(--line-dark); padding: 50px 0 30px; color: var(--on-dark-2); font-size: .9rem; }
.foot__in { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.foot__in > div, .foot__in > nav { display: grid; gap: 6px; align-content: start; }
.foot__in img { width: 72px; margin-bottom: 8px; }
.foot__h { color: #fff; font-weight: 600; }
.foot a:hover { color: #fff; }
.foot__legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: .8rem; }
.foot__in > div:first-child p { margin-top: 4px; max-width: 26ch; }

/* Nabiehanie pri scrolle */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Responzivita */
@media (max-width: 980px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav.is-open { background: var(--black); }
  .nav.is-open .nav__menu { display: grid; align-content: start; height: calc(100vh - 56px); height: calc(100svh - 56px); overflow-y: auto; padding: 12px 20px 32px; background: var(--black); }
  .nav__menu a { padding: 16px 0; border-top: 1px solid rgb(255 255 255 / .08); font: 600 1.6rem/1.1 var(--f-d); letter-spacing: -.02em; }
  .nav__menu a:last-child { margin-top: 18px; border: 0; padding: 14px 0; text-align: center; border-radius: 999px; background: #fff; color: #000; font: 600 1rem var(--f-t); }

  .intro__sticky { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); align-items: stretch; padding-top: 76px; }
  .intro__copy { height: auto; min-height: 15.5em; align-content: start; }
  .intro__hint { display: none; }
  .feature, .feature--flip { grid-template-columns: 1fr; }
  .feature--flip .feature__copy { order: 0; }
  .refs { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .refs, .row2 { grid-template-columns: 1fr; }
  .intro__copy { min-height: 17em; }
  .seq--energy .intro__copy { min-height: 24em; }
  .seq--apps .intro__copy { min-height: 19em; }
  .step h1, .step h2 { font-size: 2.3rem; }
  .ref--wide { grid-column: auto; }
  .ref--wide .pv { aspect-ratio: 16 / 11; }
  .ref--wide .pv__mac { width: 80%; left: 6%; } .ref--wide .pv__phone { width: 21%; right: 6%; }
  .hub__nodes text { font-size: 17px; }
  .foot__in { grid-template-columns: 1fr 1fr; }
  .foot__in > div:first-child { grid-column: 1 / -1; }
  .head--row { align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .intro__hint::after { animation: none; }
}

/* sekvencie zobrazené ako fotka v ráme (reálne zábery, fotorealistický render) */
.seq[data-fit='card'] .intro__stage { height: auto; aspect-ratio: 16 / 10; align-self: center; border-radius: 24px; overflow: hidden; box-shadow: 0 40px 80px -40px rgb(0 0 0 / .8); }
@media (max-width: 980px) { .seq[data-fit='card'] .intro__stage { align-self: start; width: 100%; } }

/* ── úvod cez celú obrazovku: 3D scéna vypĺňa stránku, text na pokojnej tmavej časti ── */
.seq--full .intro__sticky { display: block; max-width: none; padding: 0; }
.seq--full .intro__stage { position: absolute; inset: 0; height: auto; width: auto; align-self: stretch; justify-self: stretch; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.seq--full .intro__stage::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgb(8 9 11 / .82) 0%, rgb(8 9 11 / .55) 28%, rgb(8 9 11 / 0) 52%), linear-gradient(0deg, rgb(8 9 11 / .7) 0%, rgb(8 9 11 / 0) 26%), linear-gradient(180deg, rgb(8 9 11 / .55) 0%, rgb(8 9 11 / 0) 14%); }
.seq--full .intro__copy { position: absolute; z-index: 2; top: 0; bottom: 0; left: max(clamp(20px, 4vw, 40px), calc((100vw - 1360px) / 2)); width: min(520px, 40vw); height: auto; }
.seq--full .intro__hint { bottom: 36px; }
@media (max-width: 980px) {
  .seq--full .intro__stage::after { background: linear-gradient(0deg, rgb(8 9 11 / .94) 0%, rgb(8 9 11 / .7) 34%, rgb(8 9 11 / 0) 60%), linear-gradient(180deg, rgb(8 9 11 / .6) 0%, rgb(8 9 11 / 0) 16%); }
  .seq--full .intro__copy { top: auto; left: 20px; right: 20px; width: auto; min-height: 0; padding-bottom: 36px; }
}

/* ── 3D scény cez celú obrazovku, hýbu sa podľa scrollu ── */
.scene { position: relative; height: calc(var(--len, 240) * 1vh); background: var(--black); }
.scene + .scene, .sec + .scene { border-top: 1px solid rgb(255 255 255 / .05); }
.scene__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.scene__media { position: absolute; top: 0; right: 0; bottom: 0; width: 70%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26%); mask-image: linear-gradient(90deg, transparent 0, #000 26%); }
.scene__media canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(8 9 11 / .5), transparent 20%), linear-gradient(180deg, rgb(8 9 11 / .5), transparent 14%); }
.scene__copy { position: absolute; z-index: 1; top: 0; bottom: 0; left: max(clamp(20px, 4vw, 40px), calc((100vw - 1360px) / 2 + clamp(20px, 4vw, 40px))); width: min(470px, 36vw); display: grid; align-content: center; }
.scene__step { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .18s ease-out, transform .18s ease-out, visibility 0s linear .18s; pointer-events: none; }
.scene__step.is-on { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .5s var(--ease) .2s, transform .5s var(--ease) .2s, visibility 0s linear 0s; }
.scene h1 { font-size: clamp(2.6rem, 5vw, 4.6rem); }
.scene h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
.scene__lead { margin-top: 18px; color: var(--on-dark-2); font-size: clamp(1.05rem, 1.4vw, 1.22rem); }
.scene__acts { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 24px; }
.apps2 { display: grid; gap: 22px; }
.apps2 > div { padding-top: 18px; border-top: 1px solid var(--line-dark); }
.apps2 h3 { font-size: 1.3rem; letter-spacing: -.02em; }
.apps2 p:not(.eyebrow):not(.scene__acts) { margin-top: 6px; color: var(--on-dark-2); }
.apps2 .eyebrow { margin-bottom: 6px; }
.apps2 .scene__acts { margin-top: 12px; }
.scene__hint { position: absolute; left: max(clamp(20px, 4vw, 40px), calc((100vw - 1360px) / 2 + clamp(20px, 4vw, 40px))); bottom: 26px; margin: 0; font-size: .78rem; letter-spacing: .08em; color: var(--on-dark-2); transition: opacity .4s; }
.scene__hint::after { content: ''; display: block; width: 1px; height: 26px; margin: 8px 0 0 4px; background: linear-gradient(var(--on-dark-2), transparent); animation: hint 1.8s var(--ease) infinite; }
.scene.is-scrolled .scene__hint { opacity: 0; }
.svc2 { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.svc2 li { position: relative; padding: 18px 0 0 52px; border-top: 1px solid var(--line-dark); }
.svc2 span { position: absolute; left: 0; top: 21px; font-size: .85rem; color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
.svc2 h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -.03em; }
.svc2 p { margin: 8px 0 10px; color: var(--on-dark-2); }
.scene .ticks { margin: 0; }
.scene__lead--top { margin-top: 0; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; padding: 0; }
.tags li { padding: 8px 14px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .16); background: rgb(255 255 255 / .04); font-size: .92rem; }
.scene .note { color: var(--on-dark-2); font-size: .88rem; }
@media (max-width: 960px) {
  .svc2 { gap: 14px; } .svc2 li { padding: 12px 0 0 40px; } .svc2 span { top: 15px; } .svc2 p { display: none; }
  .tags { margin: 10px 0 12px; } .tags li { padding: 6px 11px; font-size: .85rem; }
  .scene__media { left: 0; width: 100%; bottom: auto; height: 54%;
    -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent 100%); mask-image: linear-gradient(180deg, #000 74%, transparent 100%); }
  .scene__copy { top: auto; left: 20px; right: 20px; width: auto; height: 48%; align-content: start; padding-top: 4px; }
  .scene h1, .scene h2 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .scene__lead { margin-top: 12px; font-size: 1rem; }
  .scene__acts { margin-top: 18px; }
  .scene .energy__list li { padding: 10px 0; }
  .scene .energy__list p { display: none; }
  .apps2 { gap: 14px; } .apps2 > div { padding-top: 12px; }
  .apps2 p:not(.eyebrow):not(.scene__acts) { display: none; }
  .scene__hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { .scene { height: auto; } .scene__sticky { position: relative; } }

/* ── detail referencie (projekt.html) ── */
.pj-back { display: inline-block; margin-bottom: 22px; font-size: .85rem; color: var(--on-dark-2); transition: color .2s; }
.pj-back:hover { color: #fff; }
.pj-note { position: absolute; right: clamp(20px, 4vw, 40px); bottom: 24px; z-index: 2; margin: 0; padding: 6px 12px; border-radius: 999px; background: rgb(8 9 11 / .6); border: 1px solid rgb(255 255 255 / .14); font-size: .76rem; color: var(--on-dark-2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pj-chips { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pj-chips li { padding: 7px 13px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .16); font-size: .88rem; color: #E6E6EA; }
.scene .pj-hero h1, .pj-hero h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); }

/* úvod so skutočnou fotkou: fotka vpravo, okraj sa rozplynie do tmy, text vľavo na tmavom */
.pj-photo { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; overflow: hidden; background: var(--black); isolation: isolate; }
.pj-photo__img { position: absolute; top: 0; right: 0; bottom: 0; width: 66%; z-index: -1; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%); mask-image: linear-gradient(90deg, transparent 0, #000 30%); }
.pj-photo__img img { width: 100%; height: 100%; object-fit: cover; animation: pjkb 22s var(--ease) both; }
.pj-photo__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(8 9 11 / .5), transparent 22%), linear-gradient(180deg, rgb(8 9 11 / .5), transparent 16%); }
@keyframes pjkb { from { transform: scale(1.08); } to { transform: scale(1); } }
.pj-photo__copy { width: min(1360px, 100%); margin: 0 auto; padding: 96px clamp(20px, 4vw, 40px) 64px; }
.pj-photo__copy > * { max-width: min(470px, 36vw); }
.pj-photo h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
@media (max-width: 960px) {
  .pj-photo { display: block; min-height: 0; }
  .pj-photo__img { position: relative; width: 100%; height: 56vh; height: 56svh; min-height: 300px; z-index: 0;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%); }
  .pj-photo__copy { position: relative; margin-top: -5svh; padding: 0 20px 56px; }
  .pj-photo__copy > * { max-width: none; }
  .pj-photo h1 { font-size: clamp(2.1rem, 9vw, 2.8rem); }
}

/* o projekte */
.pj-about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.pj-about h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
.pj-text { margin-top: 18px; color: var(--ink-2); font-size: 1.12rem; max-width: 62ch; }
.pj-facts { margin: 0; border-top: 1px solid var(--line); }
.pj-facts div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.pj-facts dt { color: var(--ink-2); font-size: .88rem; }
.pj-facts dd { margin: 0; font-weight: 600; }
.pj-block { margin-top: clamp(56px, 8vw, 104px); }
.pj-h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -.03em; margin-bottom: 26px; }
.pj-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pj-steps li { padding: 26px 24px 28px; border-radius: 22px; background: var(--white); }
.pj-steps__n { font-size: .85rem; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pj-steps__t { margin-top: 18px; font: 700 1.25rem/1.15 var(--f-d); letter-spacing: -.02em; }
.pj-steps li p:last-child { margin-top: 8px; color: var(--ink-2); }
.pj-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pj-side { padding: 28px; border-radius: 22px; background: var(--white); }
.pj-side__t { font: 700 1.25rem var(--f-d); letter-spacing: -.02em; }
.pj-side ul { margin: 14px 0 0; padding: 0; list-style: none; }
.pj-side li { position: relative; padding: 10px 0 10px 22px; border-top: 1px solid var(--line); color: var(--ink-2); }
.pj-side li::before { content: ''; position: absolute; left: 2px; top: 19px; width: 7px; height: 7px; border-radius: 50%; background: var(--c4); }

/* galéria */
.pj-g { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pj-g__it:first-child { grid-column: 1 / -1; }
.pj-g__it, .pj-phones__it { margin: 0; }
.pj-g__btn { display: block; width: 100%; padding: 0; border: 0; border-radius: 20px; overflow: hidden; background: var(--dark-2); cursor: zoom-in; }
.pj-g__btn img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .9s var(--ease); }
.pj-g__btn:hover img { transform: scale(1.025); }
.pj-gallery--app .pj-g__btn img { object-fit: contain; background: #0E0F12; }
.pj-g__it figcaption, .pj-phones__it figcaption { margin-top: 12px; color: var(--on-dark-2); font-size: .94rem; max-width: 60ch; }
.pj-g__it figcaption b, .pj-phones__it figcaption b { color: #fff; font-weight: 600; }
.pj-phones { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px; margin-top: 40px; }
.pj-phones__it .pj-g__btn { border-radius: 30px; border: 7px solid #1A1B1F; box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 30px 60px -30px rgb(0 0 0 / .8); }
.pj-phones__it .pj-g__btn img { aspect-ratio: 780 / 1688; object-fit: cover; }

/* ďalší projekt */
.pj-next { display: block; background: var(--black); border-top: 1px solid var(--line-dark); transition: background .3s; }
.pj-next:hover { background: var(--dark); }
.pj-next__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.pj-next .eyebrow { display: block; }
.pj-next strong { display: block; font: 700 clamp(2rem, 4.5vw, 3.6rem)/1.02 var(--f-d); letter-spacing: -.04em; }
.pj-next small { display: block; margin-top: 10px; color: var(--on-dark-2); font-size: .95rem; }
.pj-next__go { font-size: clamp(2rem, 4vw, 3.4rem); color: var(--c3); transition: transform .3s var(--ease); }
.pj-next:hover .pj-next__go { transform: translateX(8px); }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; background: rgb(5 6 8 / .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lb[hidden] { display: none; }
.lb__fig { margin: 0; display: grid; justify-items: center; gap: 14px; padding: 56px 0 24px; }
.lb__fig img { max-width: 100%; max-height: calc(100vh - 140px); max-height: calc(100svh - 140px); border-radius: 14px; object-fit: contain; }
.lb__fig figcaption { color: var(--on-dark-2); font-size: .92rem; text-align: center; padding: 0 12px; }
.lb button { border: 0; background: rgb(255 255 255 / .08); color: #fff; cursor: pointer; border-radius: 999px; }
.lb button:hover { background: rgb(255 255 255 / .16); }
.lb__x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; font-size: 1.6rem; line-height: 1; }
.lb__nav { justify-self: center; width: 46px; height: 46px; font-size: 1.8rem; line-height: 1; }

@media (max-width: 960px) {
  .pj-note { right: 20px; top: 70px; bottom: auto; }
  .pj-about, .pj-sides { grid-template-columns: 1fr; }
  .pj-steps { grid-template-columns: 1fr; }
  .pj-back { margin-bottom: 14px; }
  .scene .pj-chips { display: none; }
  .scene .pj-hero h1, .pj-hero h1 { font-size: clamp(2.1rem, 9vw, 2.8rem); }
}
@media (max-width: 620px) {
  .pj-g { grid-template-columns: 1fr; }
  .pj-phones { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .pj-phones__it .pj-g__btn { border-width: 5px; border-radius: 22px; }
  .pj-facts div { grid-template-columns: 100px 1fr; }
  .lb { grid-template-columns: 1fr; }
  .lb__nav { position: absolute; bottom: 18px; } .lb__nav--prev { left: 18px; } .lb__nav--next { right: 18px; }
  .lb__fig { padding: 64px 12px 80px; }
}
@media (prefers-reduced-motion: reduce) { .pj-photo__img img { animation: none; } }

/* ── úvod ako video ── */
.scene--video { height: 100vh; height: 100svh; }
.scene--video .scene__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; display: block; }
@media (max-width: 960px) and (orientation: portrait) { .scene--video .scene__media video { object-position: 50% 45%; } }

/* ── ONVI Monitor: interaktívna ukážka v detaile projektu ── */
.pj-demo__frame { border-radius: 22px; padding: 10px; background: linear-gradient(160deg, #23252c, #121318); border: 1px solid var(--line-dark); box-shadow: 0 40px 90px -40px rgb(0 0 0 / .9); }
.pj-demo__frame iframe { display: block; width: 100%; height: min(860px, 82vh); border: 0; border-radius: 14px; background: #0b0f14; }
.pj-demo__open { margin-top: 16px; text-align: center; }
@media (max-width: 760px) { .pj-demo__frame { padding: 6px; border-radius: 18px; } .pj-demo__frame iframe { height: 78vh; height: 78svh; border-radius: 12px; } }

/* ── texty v scénach nabiehajú postupne riadok po riadku (jemné rozostrenie → ostro) ── */
.scene__step { transform: none; }
.scene__step > * { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity .25s ease-out, transform .25s ease-out, filter .25s ease-out; }
.scene__step.is-on > * { opacity: 1; transform: none; filter: blur(0); transition: opacity .8s var(--ease), transform .9s var(--ease), filter .8s var(--ease); }
.scene__step.is-on > :nth-child(1) { transition-delay: .15s; }
.scene__step.is-on > :nth-child(2) { transition-delay: .27s; }
.scene__step.is-on > :nth-child(3) { transition-delay: .39s; }
.scene__step.is-on > :nth-child(4) { transition-delay: .51s; }
.scene__step.is-on > :nth-child(5) { transition-delay: .63s; }
@media (prefers-reduced-motion: reduce) { .scene__step > *, .scene__step.is-on > * { transition: none; filter: none; transform: none; } }

/* ── živá appka na displeji 3D notebooku ── */
.screen-live { position: absolute; left: 0; top: 0; transform-origin: 0 0; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s linear .6s; z-index: 2; background: #0b0f14; }
.screen-live.is-on { opacity: 1; visibility: visible; transition: opacity .6s var(--ease), visibility 0s; }
.screen-live iframe { width: 100%; height: 100%; border: 0; display: block; background: #0b0f14; }

/* ── odkazy v drobnom texte (súhlas, päta) ── */
.consent a, .foot__legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover, .foot__legal a:hover { color: #fff; }

/* ── textové stránky (ochrana údajov) a 404 ── */
.doc-page main { min-height: 70vh; }
.legal { padding-top: clamp(110px, 12vw, 160px); }
.legal__in { max-width: 760px; }
.legal__head { margin-bottom: 40px; }
.legal h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
.legal h2 { margin: 40px 0 12px; font-size: 1.35rem; letter-spacing: -.02em; }
.legal p, .legal li { color: #3A3A3F; line-height: 1.65; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.legal a { color: var(--c4); text-decoration: underline; text-underline-offset: 2px; }
.notfound { min-height: 80vh; display: grid; align-items: center; padding-top: 120px; }
.notfound h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); max-width: 14ch; }
.notfound .head__lead { margin-top: 16px; font-size: 1.15rem; max-width: 46ch; }
.scene__live { margin-top: 18px; display: flex; align-items: center; gap: 8px; }
.scene__live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #3BD27F; box-shadow: 0 0 0 4px rgb(59 210 127 / .18); }
@media (max-width: 960px) { .scene__live { display: none; } }

/* ── hero: čitateľnosť textu na videu + kapitoly ── */
.scene--video .scene__media::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(8,9,14,.78) 0%, rgba(8,9,14,.5) 28%, rgba(8,9,14,0) 55%), linear-gradient(0deg, rgba(8,9,14,.55), rgba(8,9,14,0) 30%); }
.scene--video h1, .scene--video h2 { font-size: clamp(2.3rem, 4.2vw, 3.6rem); line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.scene--video .scene__lead { max-width: 30em; color: rgba(255,255,255,.82); text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.scene--video .eyebrow { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.hero-rail { position: absolute; z-index: 2; right: max(clamp(20px, 4vw, 40px), calc((100vw - 1360px) / 2 + clamp(20px, 4vw, 40px))); bottom: 30px; display: flex; gap: 10px; }
.hero-rail button { --p: 0; position: relative; min-width: 120px; padding: 12px 0 0; border: 0; background: none; color: rgba(255,255,255,.55); font: 600 .78rem/1 var(--font, inherit); letter-spacing: .04em; text-align: left; cursor: pointer; transition: color .3s; }
.hero-rail button::before, .hero-rail button::after { content: ''; position: absolute; left: 0; top: 0; height: 2px; border-radius: 2px; }
.hero-rail button::before { right: 0; background: rgba(255,255,255,.22); }
.hero-rail button::after { width: calc(var(--p) * 100%); background: #fff; }
.hero-rail button.is-on, .hero-rail button:hover { color: #fff; }
.hero-rail button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.no-rail .hero-rail { display: none; }
@media (max-width: 960px) {
  .scene--video .scene__media::after { background: linear-gradient(0deg, rgba(8,9,14,.92) 0%, rgba(8,9,14,.6) 45%, rgba(8,9,14,0) 70%); }
  .scene--video h1, .scene--video h2 { font-size: clamp(1.9rem, 8vw, 2.5rem); }
  .hero-rail { left: 20px; right: 20px; bottom: 18px; }
  .hero-rail button { flex: 1; min-width: 0; font-size: .72rem; }
}

/* ── prehľad služieb pod hero ── */
.svc-map { padding-block: clamp(72px, 9vw, 120px); }
.svc-map__groups { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 4vw, 56px); }
.svc-map__h { margin: 0 0 14px; }
.svc-map__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc-map__list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 16px; padding: 18px 2px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background .2s, padding .2s; }
.svc-map__list b { font-size: 1.12rem; font-weight: 600; }
.svc-map__list span { grid-column: 1; color: var(--ink-2); font-size: .98rem; margin-top: 4px; }
.svc-map__list a::after { content: '→'; grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 1.15rem; color: var(--ink-2); transition: transform .2s, color .2s; }
.svc-map__list a:hover { background: var(--light); padding-inline: 12px; }
.svc-map__list a:hover::after { transform: translateX(4px); color: var(--ink); }
.svc-map__list a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 860px) { .svc-map__groups { grid-template-columns: 1fr; } }

/* ── 3D vizualizácie: porovnanie model / render ── */
.d3 { padding-block: clamp(72px, 9vw, 120px); }
.d3__in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.d3 h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; text-wrap: balance; }
.d3__lead { margin-top: 18px; color: var(--on-dark-2); font-size: 1.08rem; }
.d3 .ticks { margin-top: 20px; }
.d3__cmp { --x: 50%; position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #111; }
.d3__cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.d3__top { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--x)); }
.d3__top::before { content: ''; position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: #fff; z-index: 1; box-shadow: 0 0 12px rgba(0,0,0,.5); }
.d3__cmp input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.d3__cmp figcaption { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; justify-content: space-between; pointer-events: none; }
.d3__cmp figcaption span { padding: 6px 10px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: .78rem; font-weight: 600; }
@media (max-width: 860px) { .d3__in { grid-template-columns: 1fr; } }

/* ── detail služby (sluzba.html, /sluzby/<slug>) ── */
.sv-page main { --acc: var(--c4); }
.sv-page main[data-group='en'] { --acc: var(--c1); }
.sv-page main[data-group='grad'] { --acc: var(--c3); }
.sv-deliver { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); border-top: 1px solid var(--line); }
.sv-deliver li { position: relative; padding: 22px 0 22px 38px; border-bottom: 1px solid var(--line); }
.sv-deliver li::before { content: ''; position: absolute; left: 0; top: 25px; width: 22px; height: 22px; border-radius: 50%; background: rgb(91 123 245 / .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B7BF5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.sv-deliver h3 { font-size: 1.22rem; letter-spacing: -.02em; line-height: 1.2; }
.sv-deliver p { margin-top: 6px; color: var(--ink-2); }
.sv-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.sv-steps li { padding: 26px 24px 28px; border-radius: 22px; background: var(--dark); border: 1px solid var(--line-dark); }
.sv-steps__n { font-size: .85rem; font-weight: 600; color: var(--acc, var(--c4)); font-variant-numeric: tabular-nums; }
.sv-steps h3 { margin-top: 16px; font-size: 1.28rem; letter-spacing: -.02em; line-height: 1.15; }
.sv-steps p { margin-top: 8px; color: var(--on-dark-2); }
.sv-who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sv-who__it { padding: 28px 26px 30px; border-radius: 22px; background: var(--light); }
.sv-who h3 { font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.15; }
.sv-who p { margin-top: 10px; color: var(--ink-2); }
.sv-tech { margin-top: clamp(56px, 8vw, 96px); }
.sv-tech .pj-h3 { margin-bottom: 10px; }
.sv-tech__lead { color: var(--ink-2); max-width: 62ch; }
.sv-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.sv-tags li { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--light); font-size: .94rem; font-weight: 500; }
.sv-refs .ref__t small { color: var(--on-dark-2); }
.sv-refs .pv { background: var(--dark-2); }
.sv-refs .refs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sv-show { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sv-show__it { display: grid; gap: 12px; font: 600 1.05rem var(--f-d); letter-spacing: -.02em; }
.sv-show__it img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; background: var(--dark-2); transition: transform .9s var(--ease); }
.sv-show__it:hover img { transform: scale(1.02); }
.sv-faq { max-width: 920px; }
.sv-faq { border-top: 1px solid var(--line); }
.sv-faq details { border-bottom: 1px solid var(--line); }
.sv-faq summary { position: relative; display: block; padding: 22px 48px 22px 0; cursor: pointer; list-style: none; font: 700 1.18rem/1.3 var(--f-d); letter-spacing: -.02em; }
.sv-faq summary::-webkit-details-marker { display: none; }
.sv-faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .25s var(--ease), margin .25s var(--ease); }
.sv-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.sv-faq summary:hover { color: #000; }
.sv-faq summary:focus-visible { outline-offset: 4px; border-radius: 6px; }
.sv-faq details p { padding: 0 48px 24px 0; color: var(--ink-2); font-size: 1.05rem; max-width: 70ch; }
.sv-cta { text-align: left; border-top: 1px solid var(--line-dark); }
.sv-cta h2 { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 18ch; }
.sv-cta__acts { margin-top: 30px; }
.sv-more { background: var(--black); border-top: 1px solid var(--line-dark); padding: clamp(40px, 6vw, 64px) 0; color: var(--on-dark-2); font-size: .95rem; }
.sv-more__in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.sv-more__h { font: 700 clamp(1.5rem, 2.6vw, 2rem)/1.1 var(--f-d); letter-spacing: -.03em; color: #fff; }
.sv-more ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.sv-more a:hover { color: #fff; }
.sv-more [aria-current] { color: #fff; font-weight: 600; }
.sv-video .scene__media picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.sv-video .scene__media video { opacity: 0; transition: opacity .8s var(--ease); }
.sv-video.is-playing .scene__media video { opacity: 1; }
.sv-video__btn { position: absolute; z-index: 3; right: max(clamp(20px, 4vw, 40px), calc((100vw - 1360px) / 2 + clamp(20px, 4vw, 40px))); bottom: 26px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .3); background: rgb(8 9 11 / .5); color: #fff; font: 600 .8rem var(--f-t); cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sv-video__btn[hidden] { display: none; }
.sv-video .pj-back { text-transform: none; letter-spacing: 0; }
@media (max-width: 960px) {
  .sv-deliver, .sv-who { grid-template-columns: 1fr; }
  .sv-refs .refs { grid-template-columns: 1fr 1fr; }
  .sv-more__in { grid-template-columns: 1fr 1fr; }
  .sv-more__h { grid-column: 1 / -1; }
  .sv-video .scene__media picture img { object-position: 50% 45%; }
  .sv-video__btn { top: 70px; bottom: auto; right: 20px; }
}
@media (max-width: 620px) {
  .sv-refs .refs, .sv-show { grid-template-columns: 1fr; }
  .sv-faq summary { font-size: 1.08rem; padding-right: 36px; }
  .sv-faq details p { padding-right: 0; }
}

/* ── počasie nad hero videom ── */
.wx-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.scene--video[data-pocasie="zamracene"] video, .scene--video[data-pocasie="dazd"] video, .scene--video[data-pocasie="sneh"] video { filter: saturate(.78) brightness(.9) contrast(.96); }
.scene--video[data-pocasie="hmla"] .scene__media::before { content: ''; position: absolute; inset: -10%; z-index: 1; pointer-events: none; background: radial-gradient(60% 40% at 30% 70%, rgba(220,225,232,.5), transparent 70%), radial-gradient(50% 35% at 75% 60%, rgba(220,225,232,.42), transparent 70%); animation: wxfog 40s ease-in-out infinite alternate; }
@keyframes wxfog { to { transform: translateX(6%); } }
.scene--video .wx { opacity: .75; }
@media (prefers-reduced-motion: reduce) { .wx-fx { display: none; } .scene--video[data-pocasie="hmla"] .scene__media::before { animation: none; } }
