/* AVM Elektro – site.css (mobile-first, bez frameworku) */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-ext-standard-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-standard-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1A0B4D;          /* tmavé plochy */
  --ink-2: #251266;
  --violet: #3600B3;       /* brand */
  --violet-600: #2C0094;
  --violet-50: #EEEAFB;
  --signal: #02DBC7;       /* tyrkys z loga – len na tmavom */
  --signal-dark: #00796F;  /* tyrkys pre text na bielom (AA) */
  --paper: #F3F4F7;
  --white: #fff;
  --text: #17162A;
  --muted: #55536B;
  --line: #DCDBE6;
  --ok: #0B7A4B;
  --err: #B42318;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wide: 118%;            /* rozšírený rez pre nadpisy */
  --radius: 6px;
  --radius-lg: 14px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --shadow: 0 1px 2px rgba(26, 11, 77, .06), 0 8px 24px -12px rgba(26, 11, 77, .22);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--violet); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--violet-600); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 2px; }
.section-ink :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: #fff; }
button { font: inherit; }
address { font-style: normal; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 8px; color: #fff; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-sm { width: 1em; height: 1em; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(780px + 2 * var(--gutter)); }

/* ---------- typografia ---------- */
.h1, .h2, .h3, .hero-title { font-stretch: var(--wide); letter-spacing: -.01em; line-height: 1.08; margin: 0 0 .5em; text-wrap: balance; }
.h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem); font-weight: 800; }
.h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); font-weight: 780; }
.h3 { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem); font-weight: 720; line-height: 1.2; }
p { margin: 0 0 1em; }
.section-lead, .page-lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 62ch; text-wrap: pretty; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.6rem; font-weight: 760; font-stretch: var(--wide); line-height: 1.15; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 1.25rem; font-weight: 720; margin: 1.5em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.2em; }
.prose li { margin: .3em 0; }
.prose ol li::marker { font-weight: 700; color: var(--violet); }
.prose ul li::marker { color: var(--signal-dark); }
.prose-lead { font-size: 1.2rem; line-height: 1.5; color: var(--text); font-weight: 450; }
.updated { color: var(--muted); font-size: .9rem; margin-top: 2.5em; }

/* ---------- tlačidlá ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: .7em 1.25em; border-radius: var(--radius);
  border: 2px solid transparent; font-weight: 650; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: .5em 1em; font-size: .95rem; }
.btn-lg { min-height: 54px; padding: .85em 1.5em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-600); color: #fff; }
.btn-accent { background: var(--signal); color: var(--ink); }
.btn-accent:hover { background: #3BEADA; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--violet); border-color: currentColor; }
.btn-ghost:hover { background: var(--violet-50); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.linklike { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.more { display: inline-flex; gap: .4em; align-items: center; font-weight: 650; text-decoration: none; }
.more::after { content: ""; width: .5em; height: .5em; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); }
.more:hover { text-decoration: underline; }

/* ---------- pruhy z loga ---------- */
.stripes { position: absolute; display: grid; gap: 7px; justify-items: end; pointer-events: none; z-index: 2; }
.stripes i { display: block; height: 11px; background: var(--signal); transform: skewX(-38deg); transform-origin: bottom right; }
.stripes i:nth-child(1) { width: 92px; }
.stripes i:nth-child(2) { width: 150px; }
.stripes i:nth-child(3) { width: 208px; }
.stripes-hero { right: -14px; bottom: -6px; }
.stripes-hero i { height: 14px; }
.stripes-hero i:nth-child(1) { width: 120px; } .stripes-hero i:nth-child(2) { width: 210px; } .stripes-hero i:nth-child(3) { width: 300px; }
.stripes-head { right: -14px; bottom: -4px; }
.stripes-cta { left: -14px; top: 28px; justify-items: start; }
.stripes-cta i { transform: skewX(38deg); transform-origin: top left; }
.stripes-footer { right: -14px; top: -4px; }
.stripes-footer i { transform-origin: top right; }

/* ---------- hlavička ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(26,11,77,.5); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand img { width: 150px; height: auto; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-phone { display: none; align-items: center; gap: .45em; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.header-phone .icon { color: var(--violet); }
.header-cta { display: none; }
.nav-toggle { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: var(--radius); background: var(--violet-50); color: var(--ink); cursor: pointer; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-close { display: block; }
.nav-open .nav-toggle .i-open { display: none; }

.main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; padding: 12px var(--gutter) 120px; overflow-y: auto; clip-path: inset(0 0 0 100%); visibility: hidden; transition: clip-path .25s ease, visibility .25s; }
.nav-open .main-nav { clip-path: inset(0); visibility: visible; transition: clip-path .25s ease; }
.nav-open { overflow: hidden; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list > li { border-bottom: 1px solid var(--line); }
.nav-link { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; font-weight: 680; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.nav-link.is-active { color: var(--violet); }
.sub { display: none; padding: 0 0 12px; }
.has-sub.is-open .sub { display: block; }
.has-sub.is-open .nav-link .icon { transform: rotate(180deg); }
.sub-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sub-grid a { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: var(--radius); color: var(--text); text-decoration: none; font-weight: 520; }
.sub-grid a:hover, .sub-grid a[aria-current] { background: var(--violet-50); color: var(--violet); }
.sub-ico { color: var(--violet); }
.sub-all { display: inline-block; margin: 8px 8px 0; font-weight: 650; }
.nav-mobile-contact { display: grid; gap: 14px; padding-top: 24px; }
.nav-mobile-contact a { display: flex; gap: 10px; align-items: center; font-weight: 650; text-decoration: none; color: var(--ink); }

@media (min-width: 560px) { .header-cta { display: inline-flex; } }
@media (min-width: 1080px) {
  .brand img { width: 176px; }
  .nav-toggle, .nav-mobile-contact { display: none; }
  .header-phone { display: inline-flex; }
  .main-nav { position: static; clip-path: none; visibility: visible; padding: 0; overflow: visible; background: none; margin-left: 12px; }
  .nav-list { display: flex; gap: 4px; }
  .nav-list > li { border: 0; position: relative; }
  .nav-link { padding: 10px 12px; font-size: 1rem; gap: 4px; border-radius: var(--radius); }
  .nav-link:hover { color: var(--violet); background: var(--violet-50); }
  .nav-link.is-active { box-shadow: inset 0 -3px 0 var(--signal); border-radius: 0; }
  .sub { position: absolute; top: calc(100% + 8px); left: -12px; width: 620px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 14px; }
  .has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.is-open .sub { display: block; }
  .has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
  .sub-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media picture, .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,11,77,.55) 0%, rgba(26,11,77,.86) 62%, rgba(26,11,77,.96) 100%); }
.hero-inner { padding-block: clamp(56px, 12vw, 132px) clamp(72px, 10vw, 128px); }
.hero-kicker { display: inline-block; font-weight: 620; color: var(--signal); margin-bottom: 1.1em; }
.hero-title { font-size: clamp(2.3rem, 1.2rem + 5.4vw, 4.6rem); font-weight: 820; max-width: 15ch; margin-bottom: .35em; }
.hero-text { font-size: clamp(1.05rem, 1rem + .45vw, 1.3rem); max-width: 54ch; color: rgba(255,255,255,.88); margin-bottom: 1.8em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) {
  .hero-media::after { background: linear-gradient(90deg, rgba(26,11,77,.96) 0%, rgba(26,11,77,.82) 42%, rgba(26,11,77,.2) 78%, rgba(26,11,77,.05) 100%); }
}

/* mozaika realizácií v pozadí banneru (voliteľná) */
.hero-media-mosaic { overflow: hidden; background: #140838; }
.mz { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.mz.is-ready { opacity: 1; }
.mz-plane { position: absolute; left: 50%; top: 50%; display: flex; gap: 22px; align-items: flex-start; transform: translate(-50%, -50%) rotate(-12deg) skewX(8deg) scale(.72); }
.mz-col { flex: 0 0 250px; height: 2100px; overflow: hidden; }
.mz-track { display: flex; flex-direction: column; gap: 22px; animation: mz-up var(--d, 90s) linear infinite; }
.mz-track.mz-rev { animation-name: mz-down; }
@keyframes mz-up { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, calc(-50% - 11px), 0); } }
@keyframes mz-down { from { transform: translate3d(0, calc(-50% - 11px), 0); } to { transform: translate3d(0, 0, 0); } }
.mz-card { margin: 0; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 14px 34px rgba(10,4,40,.4); }
.mz-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #2a1a66; }
.mz-card figcaption { display: grid; gap: 3px; padding: 10px 12px 12px; font-size: 12px; line-height: 1.3; color: var(--ink, #1A0B4D); opacity: .55; }
.mz-cat { font-size: 11px; font-weight: 700; color: #00A896; text-transform: uppercase; letter-spacing: .04em; }
.mz-t { font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mz-l { color: #6B6680; }
/* --mz-k: 1 = predvolené stmavenie, 0 = najsvetlejšie (Stránky a texty → Úvodná stránka → Jas mozaiky) */
.hero-media-mosaic { --mz-k: 1; }
.hero-media-mosaic::after { z-index: 1; background: linear-gradient(180deg, rgba(26,11,77,calc(.62 + .18 * var(--mz-k))) 0%, rgba(26,11,77,calc(.78 + .12 * var(--mz-k))) 45%, rgba(26,11,77,.97) 100%); }
@media (min-width: 900px) {
  .mz-plane { left: 58%; transform: translate(-50%, -50%) rotate(-12deg) skewX(8deg); }
  .mz-card figcaption { opacity: 1; }
  .hero-media-mosaic::after { background: linear-gradient(90deg, rgba(26,11,77,.97) 0%, rgba(26,11,77,calc(.7 + .18 * var(--mz-k))) 38%, rgba(26,11,77,calc(.08 + .42 * var(--mz-k))) 72%, rgba(26,11,77,calc(.38 * var(--mz-k))) 100%); }
}
@media (prefers-reduced-motion: reduce) { .mz-track { animation: none; } }

/* ---------- fakty ---------- */
.facts { background: var(--ink-2); color: rgba(255,255,255,.82); }
.facts-list { list-style: none; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; padding-block: 22px; font-size: .95rem; line-height: 1.35; text-align: center; }
.facts-list strong { display: block; color: #fff; font-size: 1.45rem; font-stretch: var(--wide); font-weight: 780; }
.facts-list strong span { color: var(--signal); font-size: .8em; }
@media (min-width: 820px) { .facts-list { grid-template-columns: repeat(4, 1fr); gap: 18px 0; } .facts-list li { padding-inline: 16px; } .facts-list li + li { border-left: 2px solid rgba(2,219,199,.5); } }

/* ---------- sekcie ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tight { padding-block: clamp(32px, 5vw, 56px); }
.section-tint { background: var(--paper); }
.section-ink { background: var(--ink); color: #fff; }
.section-ink .section-lead { color: rgba(255,255,255,.75); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .section-lead { margin-bottom: 0; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; }
.section-head-row .h2 { margin-bottom: .25em; }

/* ---------- služby ---------- */
.svc-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-tile { display: flex; flex-direction: column; text-decoration: none; color: var(--text); border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.svc-tile:hover { border-color: var(--violet); box-shadow: var(--shadow); color: var(--text); }
.svc-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.svc-tile:hover .svc-img img { transform: scale(1.03); }
.svc-body { padding: 20px 22px 24px; }
.svc-body p { color: var(--muted); margin: 0; font-size: .98rem; }
.svc-title { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 720; font-stretch: 108%; margin: 0 0 .45em; line-height: 1.2; }
.svc-ico { color: var(--violet); width: 1.35em; height: 1.35em; }
.svc-more { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .svc-more { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .svc-more { grid-template-columns: repeat(3, 1fr); } }
.svc-more a { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-left: 3px solid var(--signal-dark); background: var(--paper); text-decoration: none; color: var(--muted); font-size: .95rem; line-height: 1.45; height: 100%; }
.svc-more a:hover { background: var(--violet-50); }
.svc-more a .icon { color: var(--violet); margin-top: 2px; }
.svc-more strong { display: block; color: var(--text); font-size: 1.02rem; margin-bottom: 2px; }

.svc-list { display: grid; gap: clamp(32px, 5vw, 56px); }
.svc-row { display: grid; gap: 20px; align-items: center; }
.svc-row-img { display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--paper); }
.svc-row-img img { width: 100%; height: 100%; object-fit: cover; }
.svc-row .h3 a { display: flex; gap: 10px; align-items: center; color: var(--text); text-decoration: none; }
.svc-row .h3 a:hover { color: var(--violet); }
.svc-row-body > p { color: var(--muted); }
@media (min-width: 900px) {
  .svc-row { grid-template-columns: 5fr 6fr; gap: 48px; }
  .svc-row:nth-child(even) .svc-row-img { order: 2; }
}

.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .35em; width: 14px; height: 8px; border-left: 2.5px solid var(--signal-dark); border-bottom: 2.5px solid var(--signal-dark); transform: rotate(-45deg); }

/* ---------- realizácie ---------- */
.proj-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .proj-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .proj-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) {
  .proj-grid-feature { grid-template-columns: repeat(3, 1fr); }
  .proj-grid-feature .is-big { grid-column: span 2; grid-row: span 2; }
}
.proj-card { position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--text); background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.proj-card:hover { color: var(--text); border-color: var(--violet); }
.proj-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.proj-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.proj-card:hover .proj-img img { transform: scale(1.03); }
.proj-body { padding: 16px 18px 20px; }
.proj-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .85rem; font-weight: 620; color: var(--signal-dark); margin: 0 0 6px; }
.proj-meta span { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 500; }
.proj-title { font-size: 1.08rem; font-weight: 700; line-height: 1.3; margin: 0; }
.proj-excerpt { color: var(--muted); margin: 10px 0 0; font-size: .98rem; }
.section-ink .proj-card { background: var(--ink-2); border-color: rgba(255,255,255,.12); color: #fff; }
.section-ink .proj-card:hover { border-color: var(--signal); }
.section-ink .proj-meta { color: var(--signal); }
.section-ink .proj-meta span, .section-ink .proj-excerpt { color: rgba(255,255,255,.72); }
@media (min-width: 900px) {
  .proj-card.is-big .proj-img { aspect-ratio: auto; flex: 1; min-height: 340px; position: relative; }
  .proj-card.is-big .proj-img picture { position: absolute; inset: 0; }
  .proj-card.is-big .proj-title { font-size: 1.45rem; font-stretch: 108%; }
}

.chips { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.chips a span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.chips a:hover { border-color: var(--violet); color: var(--violet); }
.chips a[aria-current] { background: var(--violet); border-color: var(--violet); color: #fff; }
.chips a[aria-current] span { color: rgba(255,255,255,.8); }
.chips-dark { margin: 28px 0 0; }
.chips-dark a { color: #fff; border-color: rgba(255,255,255,.28); }
.chips-dark a span { color: var(--signal); }
.chips-dark a:hover { border-color: var(--signal); color: #fff; }
.empty { color: var(--muted); }

/* ---------- postup ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { counter-increment: step; position: relative; padding-top: 64px; }
.step::before { content: counter(step); position: absolute; top: 0; left: 0; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--violet); color: #fff; font-weight: 800; font-size: 1.25rem; }
.step::after { content: ""; position: absolute; top: 23px; left: 60px; right: -14px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.15rem; font-weight: 720; margin: 0 0 .35em; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 1099px) { .step::after { display: none; } }

/* ---------- akcie ---------- */
.offers { display: grid; gap: 18px; }
@media (min-width: 900px) { .offers { grid-template-columns: repeat(3, 1fr); } }
.offer { position: relative; display: grid; grid-template-columns: auto 1fr; background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.offer .offer-badge { display: grid; place-items: center; min-width: 108px; margin: 0; padding: 18px 12px; background: var(--violet); color: #fff; font-size: 1.6rem; font-weight: 820; font-stretch: var(--wide); border-right: 2px dashed rgba(255,255,255,.55); white-space: nowrap; }
.offer > div { padding: 18px 20px; display: flex; flex-direction: column; }
.offer h3 { font-size: 1.08rem; font-weight: 720; margin: 0 0 .3em; line-height: 1.25; }
.offer p { color: var(--muted); font-size: .95rem; margin: 0 0 .6em; }
.offer-link { font-weight: 650; margin-top: auto; padding-top: .2em; } /* tlačidlá „Mám záujem“ v jednej rovine */

/* ---------- prečo + pôsobnosť ---------- */
.why { display: grid; gap: 48px; }
@media (min-width: 960px) { .why { grid-template-columns: 7fr 5fr; gap: 72px; } }
.benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; }
@media (min-width: 640px) { .benefits { grid-template-columns: 1fr 1fr; } }
.benefits li { display: flex; gap: 14px; }
.benefits .icon { width: 2.2rem; height: 2.2rem; padding: 8px; border-radius: 10px; background: var(--violet-50); color: var(--violet); box-sizing: content-box; }
.benefits h3 { font-size: 1.08rem; font-weight: 720; margin: 0 0 .2em; }
.benefits p { margin: 0; color: var(--muted); font-size: .97rem; }
.coverage { background: var(--ink); color: rgba(255,255,255,.85); border-radius: var(--radius-lg); padding: 28px; position: relative; overflow: hidden; }
.coverage .h3 { color: #fff; }
.places { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.places li { padding: 4px 10px; border-radius: 4px; background: rgba(255,255,255,.08); font-size: .9rem; }

/* ---------- formulár dopytu ---------- */
.inquiry { background: var(--paper); }
.inquiry-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .inquiry-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }
.inquiry-contacts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.inquiry-contacts a, .inquiry-contacts .ic-row { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--text); font-weight: 680; font-size: 1.1rem; }
.inquiry-contacts .icon { width: 2.6rem; height: 2.6rem; padding: 10px; border-radius: 50%; background: var(--violet); color: #fff; box-sizing: border-box; }
.inquiry-contacts small { display: block; font-weight: 500; color: var(--muted); font-size: .85rem; }
.inquiry-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 36px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 620; font-size: .95rem; margin-bottom: 6px; }
.req { color: var(--err); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; font-size: 1rem; color: var(--text);
  background: #fff; border: 1.5px solid #B9B7C9; border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--violet); outline: 3px solid rgba(54,0,179,.18); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--err); }
.field-error { color: var(--err); font-size: .9rem; font-weight: 600; margin: 6px 0 0; }
.field-check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 450; font-size: .95rem; }
.field-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--violet); flex: none; }
.form-note { font-size: .88rem; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--radius); margin-bottom: 18px; }
.notice:focus { outline: none; }
.notice p { margin: 0; }
.notice h3 { margin: 0 0 .3em; font-size: 1.15rem; }
.notice-ok { background: #E6F6EE; color: #064E30; }
.notice-ok .icon { color: var(--ok); width: 1.8em; height: 1.8em; }
.notice-err { background: #FDECEA; color: #7A1A12; font-weight: 600; }

/* ---------- hlavičky podstránok ---------- */
.page-head { position: relative; background: var(--ink); color: #fff; padding-block: 28px clamp(44px, 7vw, 76px); overflow: hidden; }
.page-head .page-lead { color: rgba(255,255,255,.82); margin-bottom: 0; }
.page-head .h1 { max-width: 22ch; }
.h1-project { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3rem); max-width: 28ch; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; padding: 0; margin: 0 0 22px; font-size: .88rem; }
.crumbs li { display: inline-flex; align-items: center; color: rgba(255,255,255,.7); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: rgba(255,255,255,.4); }
.crumbs a { color: rgba(255,255,255,.88); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.proj-facts { display: flex; flex-wrap: wrap; gap: 16px 36px; margin: 22px 0 0; }
.proj-facts dt { font-size: .82rem; color: rgba(255,255,255,.6); }
.proj-facts dd { margin: 0; font-weight: 650; }
.proj-facts a { color: var(--signal); }

.svc-hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.svc-hero-media { position: absolute; inset: 0; z-index: -1; }
.svc-hero-media picture, .svc-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,11,77,.78), rgba(26,11,77,.94)); }
.svc-hero-inner { padding-block: 28px clamp(56px, 8vw, 96px); }
.svc-hero .page-lead { color: rgba(255,255,255,.86); margin-bottom: 1.6em; }
@media (min-width: 900px) {
  .svc-hero-media { left: 50%; }
  .svc-hero-media::after { background: linear-gradient(90deg, rgba(26,11,77,1) 0%, rgba(26,11,77,.45) 40%, rgba(26,11,77,0) 75%); }
  .svc-hero-inner > * { max-width: 560px; }
}

.content-split { display: grid; gap: 40px; }
@media (min-width: 960px) { .content-split { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; } }
.scope-card { background: var(--paper); border-radius: var(--radius-lg); padding: 26px; border-top: 4px solid var(--signal-dark); }
@media (min-width: 960px) { .scope-card { position: sticky; top: calc(var(--header-h) + 24px); } }
.scope-card .more { margin-top: 14px; }
.scope-cta { font-weight: 650; margin: 8px 0 10px; }

.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 0; cursor: pointer; font-weight: 680; font-size: 1.08rem; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ico { color: var(--violet); transition: transform .2s; }
.faq-item[open] .faq-ico { transform: rotate(180deg); }
.faq-item p { margin: 0 0 18px; color: var(--muted); max-width: 70ch; }

/* ---------- detail realizácie ---------- */
.proj-cover { margin: 0 0 40px; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); }
.proj-cover a { display: block; }
.proj-cover img { width: 100%; max-height: 640px; object-fit: cover; }
.gallery-title { margin-top: 56px; }
.gallery-title span { color: var(--muted); font-weight: 500; font-size: .85em; }
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--paper); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(12, 6, 36, .94); display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; }
.lightbox[hidden] { display: none; }
.lb-fig { margin: 0; grid-column: 2; display: grid; justify-items: center; gap: 10px; max-height: 100vh; padding: 56px 0 24px; }
.lb-fig img { max-height: calc(100vh - 120px); width: auto; max-width: 100%; object-fit: contain; border-radius: 4px; }
.lb-fig figcaption { color: rgba(255,255,255,.8); font-size: .92rem; text-align: center; }
.lightbox button { width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { position: absolute; top: 12px; right: 12px; }
.lb-prev { grid-column: 1; justify-self: center; }
.lb-next { grid-column: 3; justify-self: center; }

/* ---------- o nás, kontakt ---------- */
.about-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .about-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; } }
.about-img { margin: 0 0 20px; border-radius: var(--radius-lg); overflow: hidden; }
.about-facts { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.about-facts li { padding: 14px 16px; background: var(--paper); border-left: 3px solid var(--violet); color: var(--muted); }
.about-facts strong { color: var(--text); font-stretch: var(--wide); }
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 7fr; } }
.company-card { background: #fff; border-radius: var(--radius-lg); padding: 26px; border: 1px solid var(--line); }
.kv { margin: 0; display: grid; gap: 10px; }
.kv div { display: grid; grid-template-columns: 9.5em 1fr; gap: 8px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.map { position: relative; min-height: 340px; border-radius: var(--radius-lg); overflow: hidden; background: var(--violet-50); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 6px; padding: 24px; color: var(--muted); }
.map-placeholder .icon { width: 2.4rem; height: 2.4rem; color: var(--violet); }
.map-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- CTA pás ---------- */
.cta-band { position: relative; background: var(--violet); color: #fff; overflow: hidden; }
.cta-inner { display: grid; gap: 24px; padding-block: clamp(56px, 8vw, 88px); }
.cta-inner .h2 { margin-bottom: .3em; }
.cta-inner p { color: rgba(255,255,255,.88); max-width: 56ch; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 960px) { .cta-inner { grid-template-columns: 1fr auto; align-items: center; padding-left: 260px; } }

/* ---------- pätička ---------- */
.site-footer { position: relative; background: var(--ink); color: rgba(255,255,255,.78); font-size: .97rem; overflow: hidden; }
.footer-grid { display: grid; gap: 36px; padding-block: 64px 40px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-about img { width: 190px; margin-bottom: 16px; }
.footer-h { font-size: 1rem; font-weight: 720; color: #fff; margin: 0 0 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a, .site-footer .linklike { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover, .site-footer .linklike:hover { color: #fff; text-decoration: underline; }
.footer-contact { display: grid; gap: 10px; }
.footer-contact a, .footer-contact span { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--signal); margin-top: 3px; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px 96px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }
@media (min-width: 760px) { .footer-bottom { padding-bottom: 24px; } }

/* ---------- mobilná lišta ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -18px rgba(26,11,77,.6); padding-bottom: env(safe-area-inset-bottom); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; font-weight: 700; text-decoration: none; }
.mb-call { background: var(--violet); color: #fff; }
.mb-call:hover { color: #fff; }
.mb-form { color: var(--violet); }
@media (min-width: 760px) { .mobile-bar { display: none; } }
.nav-open .mobile-bar { display: none; }

/* ---------- cookie lišta ---------- */
.consent { position: fixed; z-index: 80; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: center; }
.consent[hidden] { display: none; }
.consent-box { width: 100%; max-width: 760px; max-height: calc(100vh - 24px); overflow-y: auto; background: #fff; color: var(--text); border-radius: var(--radius-lg); padding: 22px; box-shadow: 0 20px 60px -20px rgba(26,11,77,.55); border: 1px solid var(--line); border-top: 5px solid var(--signal); }
.consent-title { font-size: 1.15rem; font-weight: 750; margin: 0 0 .4em; }
.consent-text { font-size: .95rem; color: var(--muted); }
.consent-prefs { display: grid; gap: 10px; margin: 0 0 16px; }
.consent-prefs[hidden] { display: none; }
.consent-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: .92rem; color: var(--muted); }
.consent-opt strong { display: block; color: var(--text); font-size: 1rem; }
.consent-opt input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--violet); flex: none; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consent-actions [hidden] { display: none; }
@media (min-width: 640px) { .consent-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; } .consent { left: 24px; right: 24px; bottom: 24px; } }

@media print {
  .site-header, .mobile-bar, .consent, .site-footer, .cta-band, .inquiry, .stripes { display: none !important; }
  .page-head, .hero, .svc-hero { background: none; color: #000; }
}

/* úzke displeje: dlhé slovenské slová (Elektroinštalácie) sa musia zmestiť */
@media (max-width: 520px) {
  .h1, .h2, .hero-title { font-stretch: 104%; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
  .hero-title { font-size: clamp(1.9rem, 8.6vw, 2.6rem); }
  .h1 { font-size: clamp(1.75rem, 7.6vw, 2.2rem); }
  .h1-project { font-size: clamp(1.5rem, 6.4vw, 2rem); }
}

/* <picture> v orezávaných kontajneroch musí mať plnú výšku, inak object-fit: cover nefunguje pri panorámach */
.svc-img picture, .proj-img picture, .svc-row-img picture, .gallery a picture, .about-img picture { display: block; width: 100%; height: 100%; }

/* ---------- e-shop v hlavičke ---------- */
.eshop-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--ink); border: 2px solid var(--signal); border-radius: 999px; padding: 8px 16px 8px 12px; margin: 12px 0; background: #E6FBF9; }
.eshop-link .icon { color: var(--signal-dark); width: 1.35em; height: 1.35em; }
.eshop-link:hover { background: var(--signal); color: var(--ink); }
.eshop-link:hover .icon { color: var(--ink); }
.nav-list > li.nav-eshop { border-bottom: 0; }
@media (min-width: 1080px) {
  .nav-eshop { margin-left: 6px; display: flex; align-items: center; }
  .eshop-link { margin: 0; padding: 6px 14px 6px 10px; font-size: .97rem; }
}
.footer-eshop { display: inline-flex; align-items: center; gap: 6px; color: var(--signal) !important; font-weight: 650; }
.footer-eshop .icon { width: 1.1em; height: 1.1em; }

/* ---------- recenzie ---------- */
.reviews { background: var(--paper); }
.reviews-score { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; color: var(--muted); }
.reviews-score strong { font-size: 2rem; font-stretch: var(--wide); font-weight: 800; color: var(--ink); line-height: 1; }
.reviews-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.stars { position: relative; display: inline-block; line-height: 0; vertical-align: middle; }
.stars-base, .stars-fill { display: flex; gap: 2px; }
.stars-base svg { fill: #D9D6E6; }
.stars-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; }
.stars-fill svg { fill: #F5A524; flex: none; }
.review-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
@media (min-width: 720px) { .review-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .review-list { grid-template-columns: repeat(3, 1fr); } }
.review figure { margin: 0; height: 100%; display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.review blockquote { margin: 0; flex: 1; }
.review blockquote p { margin: 0; color: var(--text); line-height: 1.55; }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.review figcaption span { display: grid; }
.review figcaption a, .review figcaption strong { font-weight: 700; color: var(--text); text-decoration: none; }
.review figcaption a:hover { text-decoration: underline; }
.review figcaption small { color: var(--muted); font-size: .85rem; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--violet); color: #fff; font-weight: 700; object-fit: cover; }

/* =========================================================
   Animácie (len s triedou .js-motion; pri prefers-reduced-motion sa nič nespustí)
   ========================================================= */
@keyframes rise { from { opacity: .01; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes stripe-in { from { transform: skewX(-38deg) scaleX(0); } to { transform: skewX(-38deg) scaleX(1); } }
@keyframes stripe-in-r { from { transform: skewX(38deg) scaleX(0); } to { transform: skewX(38deg) scaleX(1); } }
@keyframes current { from { transform: translateX(-120%); } to { transform: translateX(420%); } }
@keyframes pop { 0% { box-shadow: 0 0 0 0 rgba(2, 219, 199, .55); } 100% { box-shadow: 0 0 0 14px rgba(2, 219, 199, 0); } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(3px) rotate(-6deg); } 60% { transform: translateX(-2px); } }

/* 1) úvodná scéna – text banneru (fotka sa neanimuje kvôli rýchlosti načítania) */
.js-motion .hero-kicker, .js-motion .hero-title, .js-motion .hero-text, .js-motion .hero-actions,
.js-motion .svc-hero-inner > *, .js-motion .page-head .wrap > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.js-motion .hero-title, .js-motion .svc-hero-inner > :nth-child(2), .js-motion .page-head .wrap > :nth-child(2) { animation-delay: .07s; }
.js-motion .hero-text, .js-motion .svc-hero-inner > :nth-child(3), .js-motion .page-head .wrap > :nth-child(3) { animation-delay: .14s; }
.js-motion .hero-actions, .js-motion .svc-hero-inner > :nth-child(4), .js-motion .page-head .wrap > :nth-child(4) { animation-delay: .21s; }

/* 2) pruhy z loga sa „nabijú“ a prebehne nimi prúd */
.js-motion .stripes i { transform: skewX(-38deg) scaleX(0); position: relative; overflow: hidden; }
.js-motion .stripes.is-in i { animation: stripe-in .55s cubic-bezier(.3, .8, .2, 1) both; }
.js-motion .stripes.is-in i:nth-child(2) { animation-delay: .08s; }
.js-motion .stripes.is-in i:nth-child(3) { animation-delay: .16s; }
.js-motion .stripes-cta i { transform: skewX(38deg) scaleX(0); }
.js-motion .stripes-cta.is-in i { animation-name: stripe-in-r; }
.js-motion .stripes.is-in i::after { content: ""; position: absolute; inset: 0; width: 35%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent); animation: current .9s ease-in-out .55s both; }
.js-motion .stripes.is-in i:nth-child(2)::after { animation-delay: .65s; }
.js-motion .stripes.is-in i:nth-child(3)::after { animation-delay: .75s; }

/* 3) postupné objavovanie kariet pri scrollovaní */
/* bez priehľadnosti: obsah je vždy čitateľný (kontrast, roboty, náhľady pri zdieľaní) – karty sa len vysunú */
.js-motion [data-reveal] > * { transform: translateY(18px); transition: transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.js-motion [data-reveal].is-in > * { transform: none; }

/* 4) postup: prúd v spojnici a rozsvietenie krokov */
.js-motion .steps .step::after { background-size: 0% 2px; background-repeat: no-repeat; background-image: linear-gradient(90deg, var(--signal), var(--violet)); transition: background-size .5s ease; transition-delay: calc(var(--i, 0) * 180ms + .2s); }
.js-motion .steps.is-in .step::after { background-size: 100% 2px; }
.js-motion .steps.is-in .step::before { animation: pop .9s ease-out both; animation-delay: calc(var(--i, 0) * 180ms + .1s); }

/* 5) hviezdičky sa vyplnia, keď sú vidieť */
.js-motion .stars .stars-fill { clip-path: inset(0 100% 0 0); transition: clip-path .8s ease .15s; }
.js-motion .stars.is-in .stars-fill { clip-path: inset(0 0 0 0); }

/* 6) reakcie na myš */
.btn { will-change: transform; }
@media (hover: hover) {
  .btn-primary:hover, .btn-accent:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -8px rgba(54, 0, 179, .55); }
  .btn-accent:hover { box-shadow: 0 6px 18px -8px rgba(2, 219, 199, .8); }
  .eshop-link:hover .icon { animation: nudge .5s ease; }
  .header-phone:hover .icon { animation: nudge .5s ease; }
  .svc-tile, .proj-card { transition: border-color .15s, box-shadow .2s, transform .2s; }
  .svc-tile:hover, .proj-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
}

/* lightbox sa otvorí plynulo */
.lightbox:not([hidden]) { animation: rise .25s ease both; }
@media (hover: hover) {
  .js-motion [data-reveal].is-in > .svc-tile:hover, .js-motion [data-reveal].is-in > .proj-card:hover { transform: translateY(-3px); transition-delay: 0s; }
}

/* pozadie nadpisu realizácie (voliteľné) */
.page-head.has-bg { isolation: isolate; }
.page-head-bg { position: absolute; inset: 0; z-index: -1; }
.page-head-bg picture, .page-head-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-head-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(26,11,77,.94) 0%, rgba(26,11,77,.82) 45%, rgba(26,11,77,.55) 100%); }
@media (max-width: 760px) { .page-head-bg::after { background: rgba(26,11,77,.86); } }
