/* Písma Inter a Montserrat (SIL Open Font License 1.1, licencie v public/fonts/). Jeden variabilný súbor
   na rodinu, zúžený na latinku so slovenskou, českou, maďarskou a poľskou abecedou (zdroj Google Fonts,
   parameter text=). Znak mimo tejto sady sa zobrazí náhradným písmom. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/inter.ac7be546.woff2") format("woff2"); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600 800; font-display: swap; src: url("../fonts/montserrat.57b16a26.woff2") format("woff2"); }

/* ==========================================================================
   JURMAT – verejný web, v6 „svetlá predloha“
   Martin 25. 11. 2026 poslal novú predlohu: svetlý úvod s fotkou plotu, ktorá
   plynulo vystupuje zo svetla, technický náčrt s kótami, šikmý pás výhod,
   „Naše riešenia“ + 4 šikmé karty v jednom riadku, šedý pás krokov a dole
   vedľa seba konfigurátor a kontakt. Všetko husté a v jednom celku.
   ========================================================================== */

:root {
  --c-red: #E30613;
  --c-red-dark: #B8000C;
  --c-black: #101113;
  /* Martin 25. 11.: tmavé plochy čierne „ako logo“ – pozadie loga je čisto čierne (#000),
     takže hlavička aj pätička s ním splývajú a okolo loga nie je vidieť rámik. */
  --c-anthracite: #000000;
  --c-anthracite-2: #161616;
  --c-light: #F3F4F5;
  --c-light-2: #E9EAEC;
  --c-white: #FFFFFF;
  --c-muted: #62666D;
  --c-text: #202226;
  --c-on-dark: #E4E6E9;
  --c-on-dark-muted: #A7ABB2;
  --c-line: rgba(16, 17, 19, 0.12);
  --c-line-strong: rgba(16, 17, 19, 0.26);
  --c-line-dark: rgba(255, 255, 255, 0.12);

  --f-head: 'Montserrat', 'Manrope', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;

  --container: 1760px;  /* širšie, aby na veľkých monitoroch neostávalo po stranách veľa bielej */
  --cut-portal: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)); /* rohy ako v portáli */
  --cut-portal-lg: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
  --gutter: clamp(16px, 3.5vw, 64px);
  --nav-h: 76px;
  --gap: 14px;
  --skew: -12deg;      /* jeden uhol pre všetky šikmé tvary */
  --unskew: 12deg;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 200ms;
  --t-base: 320ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
/* pozadie celej stránky = útržky technických výkresov (kóty, náčrty plotu a brány) – Martinova voľba „3“ */
body { margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.55; color: var(--c-text); background-color: var(--c-light); background-image: url("../img/pozadie-koty.svg"); background-size: 960px 760px; background-position: center top; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--c-red); outline-offset: 3px; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Nadpisy ---------- */
.slashes { display: inline-flex; gap: 3px; }
.slashes i { width: 5px; height: 14px; background: var(--c-red); transform: skewX(-20deg); }
.kicker { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--f-head); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-black); }
.title { margin: 10px 0 0; font-family: var(--f-head); font-weight: 700; font-size: clamp(26px, 2.2vw, 36px); line-height: 1.12; letter-spacing: -.02em; color: var(--c-black); padding-bottom: 12px; background: linear-gradient(#E30613, #E30613) left bottom / 0 3px no-repeat; transition: background-size 700ms var(--ease) 300ms; }
.dot { color: var(--c-red); }
.lead-s { margin: 12px 0 0; font-size: 15px; color: var(--c-muted); max-width: 420px; }

/* ---------- Tlačidlá (šikmé ako na predlohe, text rovný) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border: 0; cursor: pointer; text-decoration: none; transform: skewX(var(--skew)); transition: background-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.btn > span { display: inline-flex; align-items: center; gap: 10px; transform: skewX(var(--unskew)); font-family: var(--f-head); font-weight: 600; font-size: 15px; }
.btn .arrow { transition: transform var(--t-base) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-red { background: var(--c-red); color: var(--c-white); position: relative; overflow: hidden; }
.btn-red:hover { background: var(--c-red-dark); }
.btn-line { background: var(--c-white); color: var(--c-black); box-shadow: inset 0 0 0 1px var(--c-line-strong); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--c-black); }

/* ---------- Hlavička (tmavá ako na predlohe) ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--c-anthracite); color: var(--c-white); transition: box-shadow var(--t-base); }
.nav.is-scrolled { box-shadow: 0 8px 24px rgba(16,17,19,.2); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 30px; }
/* Keď sa menu do riadku nezmestí (zväčšenie samotného textu na 200 %), skript pridá triedu a menu sa zalomí, namiesto aby vytieklo mimo obrazovky. */
.nav--zalom .nav-inner { height: auto; min-height: var(--nav-h); flex-wrap: wrap; row-gap: 0; }
.nav--zalom .nav-menu { flex-wrap: wrap; }
.nav-logo { display: flex; align-items: center; gap: 24px; flex: none; text-decoration: none; }
.nav-logo img { height: 44px; width: auto; }
.nav-logo::after { content: ""; width: 2px; height: 28px; background: var(--c-red); transform: skewX(-18deg); }
.nav-menu { display: flex; align-items: center; margin: 0 auto; padding: 0; list-style: none; }
.nav-menu > li { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 7px; height: var(--nav-h); padding: 0 20px; font-family: var(--f-head); font-weight: 600; font-size: 15px; color: var(--c-on-dark); text-decoration: none; background: none; border: 0; cursor: pointer; position: relative; transition: color var(--t-fast); }
.nav-link::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 20px; height: 2px; background: var(--c-red); transform: scaleX(0); transform-origin: left; transition: transform var(--t-base) var(--ease); }
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--c-white); }
.nav-link:hover::after, .nav-link[aria-expanded="true"]::after { transform: scaleX(1); }
.chev { transition: transform var(--t-base) var(--ease); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% - 10px); left: 0; min-width: 260px; margin: 0; padding: 8px 0; list-style: none; background: var(--c-anthracite-2); border-top: 2px solid var(--c-red); box-shadow: 0 20px 40px rgba(0,0,0,.25); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity var(--t-fast), transform var(--t-fast), visibility 0s linear var(--t-fast); }
/* so skriptom zoznam otvára iba stav is-open (zhodný s aria-expanded); prejdenie myšou rieši skript, aby ho Esc vedel zavrieť */
html:not(.js) .has-dropdown:hover .dropdown, .dropdown.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dropdown a { display: block; padding: 11px 20px; color: var(--c-on-dark); text-decoration: none; font-size: 15px; }
.dropdown a:hover { background: #262626; color: var(--c-white); }
.nav-actions { display: flex; align-items: center; gap: 28px; flex: none; }
.nav-phone { display: inline-flex; align-items: center; gap: 12px; padding-left: 28px; border-left: 1px solid var(--c-line-dark); height: 34px; font-family: var(--f-head); font-weight: 600; font-size: 16px; text-decoration: none; font-variant-numeric: tabular-nums; }
.nav-phone svg { color: var(--c-red); }
.nav .btn { min-height: 44px; }
.nav-toggle { display: none; width: 46px; height: 46px; background: none; border: 1px solid var(--c-line-dark); color: var(--c-white); cursor: pointer; align-items: center; justify-content: center; }
.mobile-cta { display: none; margin-top: 24px; flex-direction: column; align-items: stretch; gap: 14px; list-style: none; }
.mobile-cta .tel { font-family: var(--f-head); font-weight: 600; font-size: 20px; text-decoration: none; color: var(--c-white); text-align: center; padding: 8px 0; }

/* ---------- Úvod: svetlý, fotka plynulo vystupuje zo svetla ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(90deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.55) 45%, rgba(255,255,255,0) 70%); min-height: clamp(420px, 52vh, 600px); }
/* jemná červená žiara v ľavom dolnom rohu úvodu, ktorá pomaly dýcha (ten istý efekt ako v portáli, len svetlý) */
.hero::before { content: ""; position: absolute; z-index: -2; inset: 0; background: radial-gradient(60% 90% at 8% 115%, rgba(230,0,0,.16) 0%, rgba(230,0,0,0) 60%); animation: breathe 6s ease-in-out infinite; }
.hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 64%; z-index: -1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%); mask-image: linear-gradient(90deg, transparent 0%, #000 34%); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1600ms ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide.is-active img { animation: drift 9s ease-out both; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.05); } }
/* technický náčrt plotu s kótami medzi textom a fotkou */
.hero-sketch { position: absolute; z-index: 0; left: clamp(640px, 38%, 900px); top: 12%; width: clamp(180px, 15vw, 260px); color: var(--c-anthracite); opacity: .75; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; padding: 34px 0 96px; max-width: 560px; }
.hero-tags { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--c-black); }
.hero-tags span { display: inline-block; color: var(--c-red); margin: 0 8px; } /* inline-block = miesto, kde sa riadok smie zalomiť */
.h1 { margin: 14px 0 0; font-family: var(--f-head); font-weight: 800; font-size: clamp(36px, 3.4vw, 60px); line-height: 1.02; letter-spacing: -.025em; color: var(--c-black); }
.h1 em { font-style: normal; color: var(--c-red); }
.hero-lead { margin: 16px 0 0; max-width: 420px; font-size: 16px; line-height: 1.55; color: var(--c-text); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin: 26px 0 0 8px; }
.hero-ctrl { position: absolute; z-index: 2; right: var(--gutter); bottom: 84px; display: flex; align-items: center; gap: 10px; }
.hero-cap { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-white); background: rgba(32,34,38,.55); padding: 5px 9px; }
/* Klikateľná plocha bodky aj pauzy je 44 × 44 px; viditeľná čiarka (22 × 3) a rámček pauzy (34 × 34) ostávajú. */
.hero-dots { display: flex; }
.hero-dot { position: relative; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero-dot::before { content: ""; position: absolute; left: 11px; right: 11px; top: 21px; height: 3px; background: rgba(255,255,255,.7); box-shadow: 0 0 0 1px rgba(16,17,19,.15); }
.hero-dot[aria-current="true"]::before { background: var(--c-red); }
.hero-pause { position: relative; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.6); background: rgba(32,34,38,.5); color: var(--c-white); cursor: pointer; }
.hero-pause::after { content: ""; position: absolute; inset: -6px; }

/* ---------- Šikmý svetlý pás výhod ---------- */
.benefits-wrap { position: relative; z-index: 3; margin-top: -62px; }
/* „okienka“ majú rohy ako v portáli (vpravo hore, vľavo dole); tieň je na obale, lebo clip-path ho oreže */
.benefits-box { position: relative; filter: drop-shadow(0 14px 26px rgba(16,17,19,.12)); }
.benefits { position: relative; list-style: none; margin: 0; padding: 0 2%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: linear-gradient(180deg, #FFFFFF, #F1F2F4); clip-path: var(--cut-portal-lg); }
.benefits::before { content: ""; position: absolute; left: 0; top: 0; width: 120px; height: 3px; background: var(--c-red); }
.benefit { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 20px 10px; position: relative; color: var(--c-black); }
.benefit + .benefit::before { content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 1px; background: var(--c-line-strong); }
.benefit svg { flex: none; width: 34px; height: 34px; color: var(--c-red); }
.benefit strong { font-family: var(--f-head); font-weight: 600; font-size: 15px; line-height: 1.25; }

/* ---------- Naše riešenia + 4 šikmé karty v jednom riadku ---------- */
/* Martin: „veľa bielej … jemný moderný firemný efekt v pozadí“.
   Pozadia sú zámerne tiché: jedna šikmá plocha v uhle kariet, šrafovanie
   a technická mriežka – všetko odvodené z výkresov, nič „sci-fi“. */
.solutions { position: relative; isolation: isolate; overflow-x: clip; padding-top: 30px; padding-bottom: 26px; }
.solutions::before { content: ""; position: absolute; z-index: -1; right: -4%; top: 12%; width: 72%; height: 76%; background: linear-gradient(90deg, rgba(32,34,38,.02) 0%, rgba(32,34,38,.07) 100%); transform: skewX(var(--skew)); }
.solutions::after { content: ""; position: absolute; z-index: -1; right: 6%; top: 12%; width: 40%; height: 2px; background: linear-gradient(90deg, rgba(227,6,19,0), rgba(227,6,19,.35)); transform: skewX(var(--skew)); }
.solutions-inner { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 28px; align-items: center; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.pcard { position: relative; display: block; height: clamp(180px, 12vw, 240px); overflow: hidden; text-decoration: none; color: var(--c-white); background: var(--c-anthracite-2); clip-path: var(--cut-portal-lg); }
.pcard-in { position: absolute; inset: 0; }
.pcard-in img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.pcard:hover .pcard-in img { transform: scale(1.05); }
.pcard-in::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16,17,19,.85) 0%, rgba(16,17,19,.3) 34%, rgba(16,17,19,0) 55%); }
.pcard-label { position: absolute; z-index: 1; left: 22px; bottom: 16px; display: flex; align-items: center; gap: 10px; font-family: var(--f-head); font-weight: 700; font-size: 19px; white-space: nowrap; }
.pcard-label svg { flex: none; width: 30px; height: 26px; }
.pcard-tab { position: absolute; z-index: 2; right: 14px; bottom: 14px; width: 42px; height: 42px; display: grid; place-items: center; background: var(--c-red); clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px)); transition: background-color var(--t-fast); }
.pcard-tab svg { transition: transform var(--t-base) var(--ease); }
.pcard:hover .pcard-tab { background: var(--c-red-dark); }
.pcard:hover .pcard-tab svg { transform: translateX(3px); }
.pcard::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--c-red); transform: scaleX(0); transform-origin: left; transition: transform var(--t-base) var(--ease); z-index: 1; }
.pcard:hover::after { transform: scaleX(1); }
.pcard-note { position: absolute; z-index: 2; top: 12px; left: 12px; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: rgba(16,17,19,.6); padding: 3px 7px; }

/* ---------- Šedý pás krokov ---------- */
/* Martin: páči sa mu úvodný pás portálu (rohy + „dýchajúci“ červený efekt) a chce „trochu viac
   čiernej, ale jemne“. Pás krokov je preto tmavý panel presne v tom jazyku:
   zrezaný roh vpravo hore a vľavo dole (34 px), červená žiara zo spodku, ktorá pomaly dýcha,
   červená linka pri spodku a odlesk „po leštenom hliníku“ raz za 6 s. */
.process { padding-block: 26px 10px; }
.process-inner { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(220px, 300px) 1fr; align-items: center; gap: 28px; padding: 34px 40px 36px; color: var(--c-white);
  background: linear-gradient(90deg, #E60000 0%, #E60000 30%, rgba(230,0,0,0) 75%) left bottom / 100% 3px no-repeat, linear-gradient(110deg, #1A1A1C 0%, #111113 55%, #0B0B0C 100%);
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 34px 100%, 0 calc(100% - 34px)); }
.process-inner::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(120% 140% at 30% 115%, rgba(230,0,0,.42) 0%, rgba(230,0,0,0) 46%); animation: breathe 6s ease-in-out infinite; }
.process-inner::after { content: ""; position: absolute; z-index: -1; inset-block: 0; left: 0; width: 22%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.09), transparent); animation: shine 6s ease-in-out 1.2s infinite; pointer-events: none; }
@keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes shine { 0% { transform: translateX(-140%) skewX(-22deg); } 55%, 100% { transform: translateX(520%) skewX(-22deg); } }
.process .kicker { color: #C9CBD0; }
.process .title { color: var(--c-white); }
.steps { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0 24px; list-style: none; }
.step { position: relative; flex: 1 1 0; min-width: 0; }
/* rámik so zrezanými rohmi: tenká obrysová vrstva (::before) a výplň (::after) majú rovnaký tvar */
.step-box { position: relative; isolation: isolate; display: flex; align-items: center; gap: 14px; padding: 24px 18px 20px 22px; }
.step-box::before, .step-box::after { content: ""; position: absolute; z-index: -1; clip-path: var(--cut-portal); transition: background-color var(--t-base); }
.step-box::before { inset: 0; background: rgba(255,255,255,.26); }
.step-box::after { inset: 1px; background: #19191B; }
.step:hover .step-box::before { background: var(--c-red); }
.step:hover .step-box::after { background: #202022; }
.step-num { position: absolute; top: -12px; left: 50%; margin-left: -20px; width: 40px; height: 22px; display: grid; place-items: center; background: var(--c-red); color: var(--c-white); font-family: var(--f-head); font-weight: 700; font-size: 12px; transform: none !important; z-index: 1; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)); }
.step svg { flex: none; width: 34px; height: 34px; color: var(--c-white); }
.step strong { font-family: var(--f-head); font-weight: 600; font-size: 15px; line-height: 1.25; color: var(--c-white); }
.step-arrow { flex: none; color: #C9CBD0; }

/* ---------- Realizácie: hlavná fotka + menšie zábery ---------- */
.works { position: relative; isolation: isolate; padding-block: 44px 40px; }
.works::before { content: ""; position: absolute; z-index: -1; inset: 0 0 0 45%; background: repeating-linear-gradient(115deg, rgba(16,17,19,.045) 0 1px, transparent 1px 26px); -webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000 0%, transparent 60%); mask-image: radial-gradient(ellipse at 100% 0%, #000 0%, transparent 60%); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; margin-bottom: 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { border: 0; background: var(--c-white); box-shadow: inset 0 0 0 1px var(--c-line-strong); padding: 8px 16px; cursor: pointer; transform: skewX(var(--skew)); transition: background-color var(--t-fast), color var(--t-fast); }
.filter span { display: inline-block; transform: skewX(var(--unskew)); font-family: var(--f-head); font-weight: 600; font-size: 13px; }
.filter:hover { box-shadow: inset 0 0 0 1px var(--c-black); }
.filter[aria-pressed="true"] { background: var(--c-anthracite); color: var(--c-white); box-shadow: none; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.shot { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; margin: 0; padding: 0; border: 0; overflow: hidden; background: var(--c-anthracite-2); cursor: zoom-in; color: var(--c-white); text-align: left; clip-path: var(--cut-portal); }
.shot.is-featured { clip-path: var(--cut-portal-lg); grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery-grid.is-filtered .shot.is-featured { grid-column: span 1; grid-row: span 1; aspect-ratio: 4 / 3; }
.shot[hidden] { display: none; }
.shot .pcard-tab { display: none; }
.shot-in { position: absolute; inset: 0; }
.shot-in img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.shot:hover .shot-in img { transform: scale(1.04); }
.shot-in::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16,17,19,.7) 0%, rgba(16,17,19,0) 35%); }
.cap { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 11px; transition: translate 300ms var(--ease); }
.cap b { font-family: var(--f-head); font-weight: 600; font-size: 14px; line-height: 1.3; }
.shot.is-featured .cap { left: 22px; bottom: 18px; }
.shot.is-featured .cap b { font-size: 19px; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); width: 100%; color: var(--c-white); overflow: visible; }
.lightbox::backdrop { background: rgba(16,17,19,.92); }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; background: #000; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; }
.lightbox-bar b { font-family: var(--f-head); font-size: 18px; font-weight: 600; }
.lightbox-bar small { display: block; font-size: 12px; color: var(--c-on-dark-muted); text-transform: uppercase; letter-spacing: .1em; }
.lb-btns { display: flex; gap: 8px; }
.lb-btn { width: 46px; height: 46px; display: grid; place-items: center; background: var(--c-anthracite-2); border: 1px solid var(--c-line-dark); color: var(--c-white); cursor: pointer; }
.lb-btn:hover { background: var(--c-red); border-color: var(--c-red); }

/* ---------- Spodný riadok: konfigurátor a kontakt vedľa seba ---------- */
.bottom { position: relative; isolation: isolate; padding-block: 40px 56px; background: linear-gradient(180deg, rgba(232,234,236,0) 0%, rgba(232,234,236,.85) 100%); }
.bottom::before { content: ""; position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(rgba(16,17,19,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(16,17,19,.05) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 35%, transparent 65%, #000 100%); mask-image: linear-gradient(90deg, #000 0%, transparent 35%, transparent 65%, #000 100%); }
.form { background: var(--c-white); padding: 22px; clip-path: var(--cut-portal-lg); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bottom-inner { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 40px; align-items: start; }
.config { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 9fr); gap: 24px; align-items: start; }
.config .btn { margin: 20px 0 0 8px; }
.tool { background: var(--c-white); clip-path: var(--cut-portal-lg); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tool-canvas { padding: 12px 10px 4px; border-right: 1px solid var(--c-line); }
.tool-canvas svg { width: 100%; height: auto; display: block; }
.tool-head { display: none; }
/* minmax(0, 1fr): Firefox inak stĺpec roztiahne podľa posuvníka a pravý okraj ovládania sa oreže */
.tool-side { padding: 14px 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; }
.ctrl-label { display: block; font-family: var(--f-head); font-size: 13px; font-weight: 600; color: var(--c-black); margin-bottom: 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { border: 1px solid var(--c-line-strong); background: var(--c-white); padding: 6px 10px; font-family: var(--f-head); font-weight: 600; font-size: 12px; cursor: pointer; }
.seg button:hover { border-color: var(--c-black); }
.seg button[aria-pressed="true"] { background: var(--c-anthracite); color: var(--c-white); border-color: var(--c-anthracite); }
.seg .swatch { position: relative; width: 28px; height: 28px; padding: 0; }
/* klikateľná plocha vzorky 44 × 44 px bez zmeny jej veľkosti; rozostup 16 px, aby sa plochy neprekrývali */
.seg .swatch::after { content: ""; position: absolute; inset: -9px; }
.seg .swatch + .swatch { margin-left: 10px; }
.seg .swatch[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--c-white); outline: 2px solid var(--c-red); }
.range-row { display: flex; align-items: center; gap: 10px; }
.range-row output { font-weight: 600; font-size: 13px; min-width: 46px; padding: 3px 6px; box-shadow: inset 0 0 0 1px var(--c-line-strong); text-align: center; color: var(--c-black); font-variant-numeric: tabular-nums; }
input[type="range"] { flex: 1; min-width: 0; accent-color: var(--c-red); }
.config-note { margin: 12px 0 0; font-size: 13px; color: var(--c-muted); }
.config-note b { color: var(--c-black); font-family: var(--f-head); font-weight: 600; }
.spec-list { display: none; }

.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: start; }
.contact-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.contact-list a { font-family: var(--f-head); font-weight: 600; text-decoration: none; color: var(--c-black); }
.contact-list a:hover { color: var(--c-red); }
.field { display: flex; flex-direction: column; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.field input, .field textarea { width: 100%; border: 1px solid var(--c-line-strong); background: var(--c-white); padding: 11px 12px; font-size: 15px; border-radius: 0; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.field input::placeholder, .field textarea::placeholder { color: #5f636a; font-size: 14px; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--c-black); box-shadow: inset 0 -2px 0 var(--c-red); }
.field textarea { resize: vertical; min-height: 64px; }
.form-legal { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--c-muted); }
.form-status:empty { display: none; }
.form-status { grid-column: 1 / -1; margin: 0; padding: 8px 12px; background: var(--c-light); font-size: 14px; }
.form-actions { grid-column: 1 / -1; padding-left: 8px; }

/* ---------- Pätička ---------- */
/* pätička: čierna ako logo + rovnaká jemne dýchajúca červená žiara ako pás krokov */
.footer { position: relative; isolation: isolate; overflow: hidden; background: var(--c-anthracite); color: var(--c-on-dark-muted); }
.footer::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(70% 160% at 20% 130%, rgba(230,0,0,.28) 0%, rgba(230,0,0,0) 55%); animation: breathe 6s ease-in-out infinite; }
.footer::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, #E60000 0%, #E60000 22%, rgba(230,0,0,0) 65%); }
.footer-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding: 30px 0; }
.footer-logo { display: flex; align-items: center; gap: 22px; }
.footer-logo img { height: 40px; width: auto; }
.footer-logo::after { content: ""; width: 2px; height: 26px; background: var(--c-red); transform: skewX(-18deg); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--f-head); font-weight: 500; font-size: 15px; }
.footer a { text-decoration: none; transition: color var(--t-fast); }
.footer a:hover { color: var(--c-white); }
.footer-phone { font-family: var(--f-head); font-weight: 600; font-size: 17px; color: var(--c-white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 14px 0 20px; border-top: 1px solid var(--c-line-dark); font-size: 13px; }

/* ---------- Jemné odhalenie ---------- */
/* posun cez vlastnosť „translate“ (nie transform), aby sa nerozbili šikmé tvary */
.js .reveal { opacity: 0; translate: 0 18px; transition: opacity 500ms var(--ease), translate 600ms var(--ease); }
.js .reveal.is-visible { opacity: 1; translate: 0 0; }
/* postupné objavovanie v radoch (každý ďalší prvok o chvíľu neskôr) */
.cards .reveal:nth-child(2), .steps .reveal:nth-child(3), .gallery-grid .reveal:nth-child(2), .benefits .reveal:nth-child(2) { transition-delay: 90ms; }
.cards .reveal:nth-child(3), .steps .reveal:nth-child(5), .gallery-grid .reveal:nth-child(3), .benefits .reveal:nth-child(3) { transition-delay: 180ms; }
.cards .reveal:nth-child(4), .steps .reveal:nth-child(7), .gallery-grid .reveal:nth-child(4), .benefits .reveal:nth-child(4) { transition-delay: 270ms; }
.gallery-grid .reveal:nth-child(5), .benefits .reveal:nth-child(5) { transition-delay: 360ms; }
.gallery-grid .reveal:nth-child(n+6) { transition-delay: 200ms; }

/* náčrt v úvode sa „nakreslí“ čiarami, kóty sa ukážu na konci */
.js .hero-sketch g * { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.8s var(--ease) .5s forwards; }
.js .hero-sketch text { opacity: 0; animation: fadeIn .6s ease 1.9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

/* pás výhod sa jemne vysunie zľava */
.js .benefits-box { animation: slideIn .8s var(--ease) .25s both; }
@keyframes slideIn { from { opacity: 0; translate: -40px 0; } to { opacity: 1; translate: 0 0; } }

/* červené „///“ pri nadpisoch naskočia po jednom */
.js .slashes i { opacity: 0; translate: -6px 0; transition: opacity 300ms ease, translate 300ms var(--ease); }
.is-visible .slashes i, .hero .slashes i { opacity: 1; translate: 0 0; }
.is-visible .slashes i:nth-child(2) { transition-delay: 80ms; }
.is-visible .slashes i:nth-child(3) { transition-delay: 160ms; }

/* šípky medzi krokmi sa objavia spolu s rámikmi a raz sa jemne pohnú */
.js .step-arrow { opacity: 0; transition: opacity 500ms ease 250ms; }
.process.is-visible .step-arrow { opacity: 1; }
.process.is-visible .step-arrow svg { animation: nudge 1.4s var(--ease) .6s 2; }
@keyframes nudge { 0%, 100% { translate: 0 0; } 50% { translate: 5px 0; } }
.d1 { transition-delay: 80ms !important; } .d2 { transition-delay: 160ms !important; } .d3 { transition-delay: 240ms !important; }

/* ==========================================================================
   Responzívnosť
   ========================================================================== */
@media (max-width: 1360px) {
  .nav-phone { display: none; }
  .bottom-inner { grid-template-columns: 1fr; }
  .benefit strong { font-size: 14px; }
}
@media (max-width: 1100px) {
  :root { --nav-h: 66px; }
  .nav-menu, .nav-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav.is-open .nav-menu { display: flex; position: fixed; inset: var(--nav-h) 0 0 0; flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 32px; background: var(--c-anthracite); overflow-y: auto; }
  .nav.is-open .nav-link { height: auto; padding: 18px 0; font-size: 21px; border-bottom: 1px solid var(--c-line-dark); width: 100%; justify-content: space-between; }
  .nav.is-open .nav-link::after { display: none; }
  .nav.is-open .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 4px 0 12px; display: none; }
  .nav.is-open .dropdown.is-open { display: block; }
  .nav.is-open .mobile-cta { display: flex; }
  .hero-sketch { display: none; }
  .benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .benefit:nth-child(4)::before { display: none; }
  .solutions-inner, .process-inner { grid-template-columns: 1fr; gap: 20px; }
  .cards, .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .config, .contact { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --skew: -6deg; --unskew: 6deg; }
  .hero { min-height: 0; background: var(--c-white); }
  .hero-photo { position: relative; width: 100%; height: 60vw; -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 24%); mask-image: linear-gradient(0deg, transparent 0%, #000 24%); }
  .hero-ctrl { top: calc(60vw - 46px); bottom: auto; right: 10px; }
  .hero-cap { display: none; }
  .hero-inner { padding: 8px 0 84px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .benefits-wrap { margin-top: -56px; }
  .benefits { grid-template-columns: 1fr 1fr; padding: 0 12px; }
  .benefit { justify-content: flex-start; padding: 13px 8px; gap: 10px; }
  .benefit svg { width: 26px; height: 26px; }
  .benefit strong { font-size: 13px; }
  .benefit + .benefit::before { display: none; }
  .benefit:last-child { grid-column: 1 / -1; }
  .cards { padding-inline: 6px; gap: 10px; }
  .pcard { height: 140px; }
  .pcard-label { left: 18px; bottom: 12px; font-size: 15px; gap: 8px; }
  .pcard-label svg { width: 22px; height: 20px; }
  .pcard-tab { display: none; }
  .process-inner { padding: 26px 18px 28px; clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px)); }
  .steps { flex-direction: column; align-items: stretch; gap: 18px; padding: 0 8px; }
  .step-arrow { transform: rotate(90deg); align-self: center; }
  .gallery-grid { gap: 10px; }
  .shot.is-featured { grid-column: 1 / -1; grid-row: span 1; aspect-ratio: 4 / 3; }
  .cap b { font-size: 13px; }
  .tool { grid-template-columns: 1fr; }
  .tool-canvas { border-right: 0; border-bottom: 1px solid var(--c-line); }
  .form { grid-template-columns: 1fr; }
  .footer-main { flex-direction: column; align-items: flex-start; }
}
/* ---------- Ďalšie jemné oživenia (Martin: „trošičku viac animácií“) ---------- */
/* odlesk cez červené tlačidlá raz za 7 s – ten istý „leštený hliník“ ako v portáli */
.btn-red::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent); transform: translateX(-160%); animation: btnShine 7s ease-in-out 2s infinite; pointer-events: none; }
@keyframes btnShine { 0% { transform: translateX(-160%); } 18%, 100% { transform: translateX(360%); } }
/* svetlý odlesk cez fotku karty pri prejdení myšou */
.pcard::before { content: ""; position: absolute; z-index: 2; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.2) 50%, transparent 65%); transform: translateX(-110%); transition: transform 900ms var(--ease); pointer-events: none; }
.pcard:hover::before { transform: translateX(110%); }
/* ikony výhod pri zobrazení jemne vyskočia */
.js .benefit svg { scale: .6; opacity: 0; transition: scale 500ms cubic-bezier(.3,1.5,.5,1), opacity 400ms ease; transition-delay: inherit; }
.benefit.is-visible svg { scale: 1; opacity: 1; }
/* pod nadpisom sa vysunie krátka červená linka */
.is-visible .title { background-size: 56px 3px; }
/* popis fotky sa pri prejdení myšou nadvihne */
.shot:hover .cap { translate: 0 -5px; }

/* ---------- Tmavý úvod (nápad z Martinovej predlohy, v našich farbách) ----------
   Fotka na celú šírku, tmavý prechod zľava, biely nadpis, výhody priamo v spodku fotky
   a veľký tenký obrys značky vpravo, ktorý sa nakreslí. */
.hero--dark { background: #000; min-height: clamp(560px, 74vh, 820px); padding-bottom: 96px; }
.hero--dark .hero-photo { width: 100%; -webkit-mask-image: none; mask-image: none; }
.hero--dark .hero-photo img { filter: brightness(.62) contrast(1.08) saturate(.7); }
.hero--dark::before { z-index: 0; background: linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.6) 34%, rgba(0,0,0,.05) 62%), linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 34%), radial-gradient(50% 70% at 10% 105%, rgba(230,0,0,.28) 0%, rgba(230,0,0,0) 60%); animation: none; }
.hero--dark .hero-sketch { display: none; }
.hero--dark .hero-inner { padding: 70px 0 40px; max-width: 640px; }
.hero--dark .hero-tags { color: #E4E6E9; letter-spacing: .2em; }
.hero--dark .h1 { color: #fff; font-size: clamp(44px, 5vw, 86px); }
.hero--dark .hero-lead { color: #D6D8DC; font-size: 18px; max-width: 460px; }
.hero--dark .btn-line { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }
.hero--dark .btn-line:hover { box-shadow: inset 0 0 0 1px #fff; background: rgba(255,255,255,.08); }
.hero--dark .hero-ctrl { bottom: 112px; }
.hero-mark { display: none; }
.hero--dark .hero-mark { display: block; position: absolute; z-index: 1; right: 6%; top: 14%; width: clamp(200px, 22vw, 380px); opacity: .6; pointer-events: none; }
.js .hero--dark .hero-mark path { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 2.4s var(--ease) .6s forwards; }
.hero--dark .hero-mark path { stroke-width: .3; }
/* výhody ležia priamo v spodku tmavej fotky, bez samostatného panelu */
.hero--dark + .benefits-wrap { margin-top: -60px; }
.hero--dark + .benefits-wrap .benefits-box { filter: drop-shadow(0 18px 34px rgba(0,0,0,.45)) !important; }
/* Martin: „zvýrazniť tú lištu“ – výhody majú vlastný tmavý polopriehľadný panel so zrezanými rohmi */
/* Martin 2×: „lišta je nevýrazná“ → biely pás s tieňom cez spodok tmavej fotky = najväčší kontrast */
.hero--dark + .benefits-wrap .benefits { background: #fff; clip-path: var(--cut-portal-lg); padding: 0 1% 0 calc(1% + 10px); }
.hero--dark + .benefits-wrap .benefits::before { display: block; left: 0; top: 0; width: 10px; height: 100%; }
.hero--dark + .benefits-wrap .benefit { color: var(--c-black); justify-content: center; padding: 28px 16px 30px; }
.hero--dark + .benefits-wrap .benefit + .benefit::before { background: var(--c-line-strong) !important; }
.hero--dark + .benefits-wrap .benefit strong { font-weight: 700 !important; font-size: 16px; }
.hero--dark + .benefits-wrap .benefit svg { width: 40px; height: 40px; }
@media (max-width: 720px) {
  .hero--dark { padding-bottom: 0; }
  .hero--dark .hero-photo { position: relative; height: 62vw; }
  .hero--dark .hero-mark { display: none; }
  .hero--dark .hero-inner { padding: 22px 0 30px; }
  /* ovládanie karuselu patrí do spodku fotky; bez tohto ho pravidlo pre počítač (bottom) natiahlo cez slogan */
  .hero--dark .hero-ctrl { top: calc(62vw - 54px); bottom: auto; }
  .hero--dark + .benefits-wrap { margin-top: 0; background: #000; }
  /* jeden stĺpec: v dvoch stĺpcoch sa text výhod na mobile nezmestil a pravý okraj bol orezaný */
  .hero--dark + .benefits-wrap .benefits { grid-template-columns: minmax(0, 1fr); }
  .hero--dark + .benefits-wrap .benefit { justify-content: flex-start; padding: 16px 14px; }
}
/* Kontrast červeného sloganu (WCAG 3 : 1): tam, kde text leží na fotke, siaha stmavenie po pravý okraj
   textového bloku (640 px + 24 px rezerva) a až potom slabne. Sila .78 stačí aj pri bielom mieste fotky.
   Na mobile a tablete na výšku je text pod fotkou na čiernej. */
@media (min-width: 1001px) {
  .hero--dark::before { background: linear-gradient(90deg, rgba(0,0,0,.88) 0, rgba(0,0,0,.78) calc(max(var(--gutter), (100% - var(--container)) / 2) + 664px), rgba(0,0,0,.05) calc(max(var(--gutter), (100% - var(--container)) / 2) + 664px + 22%)), linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 34%), radial-gradient(50% 70% at 10% 105%, rgba(230,0,0,.28) 0%, rgba(230,0,0,0) 60%); }
}
/* Tablet na výšku (721–1000 px): text siaha takmer cez celú šírku, preto je fotka nad textom ako na mobile
   (schválil Martin 28. 11. 2026). Text je na čiernej a fotka ostáva celá viditeľná. */
@media (min-width: 721px) and (max-width: 1000px) {
  .hero--dark { padding-bottom: 0; min-height: 0; }
  .hero--dark .hero-photo { position: relative; height: 56vw; }
  .hero--dark::before { background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 34%), radial-gradient(50% 70% at 10% 105%, rgba(230,0,0,.28) 0%, rgba(230,0,0,0) 60%); }
  .hero--dark .hero-mark { display: none; }
  .hero--dark .hero-inner { padding: 30px 0 40px; }
  .hero--dark .hero-ctrl { top: calc(56vw - 58px); bottom: auto; }
  .hero--dark + .benefits-wrap { margin-top: 0; background: #000; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* bez oneskorenia: postupné objavovanie (fotky galérie až 2 s) je tiež pohyb */
  *, *::before, *::after { transition-duration: 1ms !important; transition-delay: 0s !important; animation: none !important; }
  .js .reveal { opacity: 1; translate: 0 0; }
  .js .hero-sketch g *, .js .hero-sketch text { stroke-dashoffset: 0; opacity: 1; }
  .js .benefits-box, .js .slashes i, .js .step-arrow { opacity: 1; translate: 0 0; }
}
