/* ALUDOS - stránka Realizácie / referencie (samostatný základ + štýly stránky) */
:root{
  --wv-font:"Bricolage Grotesque", Arial, sans-serif;
  --wv-accent:#b93131; --wv-accent-dark:#6e1c1c;
  --wv-ink:#212121; --wv-muted:#8a8a8a; --wv-line:#e5e5e5; --wv-bg:#f7f7f7; --wv-radius:20px;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{-webkit-text-size-adjust:100%;}
body{font-family:var(--wv-font); color:var(--wv-ink); background:#f3f5f9; line-height:1.5; -webkit-font-smoothing:antialiased;}
img{display:block; max-width:100%; height:auto;}
a{color:inherit; text-decoration:none;}
button{font:inherit; color:inherit; cursor:pointer;}
ul{list-style:none;}
.muted{color:var(--wv-muted);}

.ref-wrap{max-width:1400px; margin-inline:auto; padding-inline:32px;}

/* hlavička stránky */
:root body .ref-hero:not(#_):not(#__){padding-top:150px; padding-bottom:8px;}
.ref-eyebrow{display:inline-flex; align-items:center; gap:10px; font-size:13px; font-weight:500; letter-spacing:.1em; text-transform:uppercase;}
.ref-eyebrow i{width:8px; height:8px; border-radius:50%; background:var(--wv-accent); display:block;}
.ref-hero h1{margin-top:18px; max-width:18ch;}
.ref-lede{margin-top:22px; max-width:60ch; font-size:19px; color:#555;}

/* filter (lepí sa pod navbar) */
:root body .ref-gallery:not(#_):not(#__){padding-top:24px; padding-bottom:24px;}
.ref-filterbar{
  position:sticky; top:92px; z-index:20; display:flex; gap:8px; padding:8px; margin-bottom:20px; border-radius:999px; width:max-content; max-width:100%;
  background:rgba(255,255,255,.7); backdrop-filter:blur(18px) saturate(180%); -webkit-backdrop-filter:blur(18px) saturate(180%);
  border:1px solid rgba(255,255,255,.8); box-shadow:0 10px 30px -12px rgba(13,39,80,.22); overflow-x:auto; scrollbar-width:none;
}
.ref-filterbar::-webkit-scrollbar{display:none;}
.ref-chip{
  display:inline-flex; align-items:center; gap:8px; padding:10px 18px; border:0; border-radius:999px; background:transparent;
  font-size:15px; font-weight:400; white-space:nowrap; transition:background .2s ease, color .2s ease;
}
.ref-chip span{font-size:12px; padding:2px 8px; border-radius:999px; background:rgba(13,26,45,.07); transition:background .2s ease, color .2s ease;}
.ref-chip:hover{background:rgba(13,26,45,.06);}
.ref-chip.is-active{background:#0d1a2d; color:#fff;}
.ref-chip.is-active span{background:rgba(255,255,255,.2); color:#fff;}
.ref-count{font-size:14px; color:var(--wv-muted); margin:0 4px 24px;}

/* mriežka (masonry cez stĺpce) */
.ref-grid{column-count:3; column-gap:20px;}
.ref-item{break-inside:avoid; margin-bottom:20px;}
.ref-item[hidden]{display:none;}
.ref-item.is-in{animation:ref-in .5s cubic-bezier(.22,1,.36,1) both;}
@keyframes ref-in{from{opacity:0; transform:translateY(14px) scale(.98);} to{opacity:1; transform:none;}}
.ref-card{
  position:relative; display:block; width:100%; padding:0; border:0; border-radius:14px; overflow:hidden; background:#dfe4ec; text-align:left;
  box-shadow:0 14px 38px -14px rgba(0,0,0,.28), 0 3px 10px rgba(0,0,0,.07);
  transition:transform .35s cubic-bezier(.22,1,.36,1), border-radius .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;
}
.ref-card img{width:100%; height:auto; transition:transform .6s cubic-bezier(.22,1,.36,1);}
.ref-cap{
  position:absolute; left:0; right:0; bottom:0; display:flex; flex-direction:column; gap:4px; padding:48px 20px 18px; color:#fff;
  background:linear-gradient(to top, rgba(8,14,26,.82) 0%, rgba(8,14,26,.4) 55%, rgba(8,14,26,0) 100%);
}
.ref-tag{font-size:12px; font-weight:500; letter-spacing:.08em; text-transform:uppercase; opacity:.8;}
.ref-title{font-size:18px; font-weight:500; line-height:1.25;}
.ref-zoom{
  position:absolute; top:14px; right:14px; width:42px; height:42px; display:grid; place-items:center; border-radius:50%; color:#fff;
  background:rgba(255,255,255,.2); border:1px solid rgba(255,255,255,.4); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  opacity:0; transform:translate(4px,-4px) scale(.85); transition:opacity .3s ease, transform .4s cubic-bezier(.22,1,.36,1);
}
.ref-zoom svg{width:18px; height:18px;}
.ref-count-badge{position:absolute; top:14px; left:14px; padding:6px 12px; border-radius:999px; font-size:12.5px; font-weight:500; color:#fff; background:rgba(13,26,45,.55); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);}
@media (hover:hover){
  .ref-card:hover{transform:translateY(-6px); border-radius:26px; box-shadow:0 26px 50px -16px rgba(0,0,0,.34), 0 4px 14px rgba(0,0,0,.08);}
  .ref-card:hover img{transform:scale(1.05);}
  .ref-card:hover .ref-zoom, .ref-card:focus-visible .ref-zoom{opacity:1; transform:none;}
}
.ref-card:focus-visible{outline:3px solid var(--wv-accent); outline-offset:3px;}
@media (hover:none){ .ref-zoom{opacity:1; transform:none;} }

/* výzva na konci */
:root body .ref-cta:not(#_):not(#__){padding-block:32px 72px;}
.ref-cta-card{
  display:flex; align-items:center; justify-content:space-between; gap:32px; padding:48px; border-radius:20px; color:#fff;
  background:#0d1a2d; box-shadow:0 20px 50px -20px rgba(13,26,45,.6);
}
.ref-cta-card h2{color:#fff;}
.ref-cta-card p{margin-top:12px; max-width:48ch; color:rgba(255,255,255,.7); font-size:18px;}
.ref-cta-actions{display:flex; gap:12px; flex-wrap:wrap; flex-shrink:0;}
.ref-btn{display:inline-flex; align-items:center; padding:16px 28px; border-radius:999px; background:var(--wv-accent); color:#fff; font-size:16px; transition:background .2s ease, transform .2s ease;}
.ref-btn:hover{background:#d04444; transform:translateY(-2px);}
.ref-btn-ghost{background:transparent; border:1px solid rgba(255,255,255,.35);}
.ref-btn-ghost:hover{background:rgba(255,255,255,.1);}

@media (max-width:1099px){
  .ref-grid{column-count:2;}
  :root body .ref-hero:not(#_):not(#__){padding-top:130px;}
  .ref-cta-card{flex-direction:column; align-items:flex-start; padding:36px;}
}
@media (max-width:700px){
  .ref-wrap{padding-inline:20px;}
  :root body .ref-hero:not(#_):not(#__){padding-top:110px;}
  .ref-lede{font-size:17px;}
  .ref-filterbar{top:84px; margin-inline:-20px; border-radius:0; width:auto; padding:8px 20px; max-width:none;}
  .ref-grid{column-count:1;}
  .ref-cta-card{padding:28px;}
}

/* ===== Stránka jednej realizácie ===== */
:root body .rp-head:not(#_):not(#__){padding-top:140px; padding-bottom:8px;}
.rp-bc{display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:14px; color:var(--wv-muted);}
.rp-bc a:hover{color:var(--wv-ink); text-decoration:underline;}
.rp-bc [aria-current]{color:var(--wv-ink);}
.rp-head h1{margin-top:16px; max-width:24ch;}
.rp-meta{display:flex; flex-wrap:wrap; gap:10px; margin-top:22px;}
.rp-meta li{display:flex; flex-direction:column; gap:2px; padding:10px 18px; border-radius:16px; background:#fff; box-shadow:0 6px 20px -12px rgba(13,26,45,.25);}
.rp-meta span{font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--wv-muted);}
.rp-meta b{font-size:16px; font-weight:500;}

:root body .rp-gal:not(#_):not(#__){padding-top:28px; padding-bottom:12px;}
.rp-stage{position:relative; border-radius:24px; overflow:hidden; background:#0d1a2d; aspect-ratio:16/10; max-height:78vh; width:100%; box-shadow:0 26px 60px -28px rgba(13,26,45,.5); outline-offset:4px;}
.rp-stage:focus-visible{outline:3px solid var(--wv-accent);}
.rp-slides{position:absolute; inset:0;}
.rp-slide{position:absolute; inset:0; opacity:0; visibility:hidden; transition:opacity .45s ease, visibility 0s linear .45s;}
.rp-slide.is-on{opacity:1; visibility:visible; transition:opacity .45s ease;}
.rp-bg{position:absolute; inset:-30px; background-size:cover; background-position:center; filter:blur(28px) brightness(.7) saturate(1.1);}
.rp-slide img{position:relative; width:100%; height:100%; object-fit:contain; display:block;}
.rp-nav{position:absolute; top:50%; transform:translateY(-50%); width:52px; height:52px; display:grid; place-items:center; border-radius:50%; border:1px solid rgba(255,255,255,.4); background:rgba(13,26,45,.45); color:#fff; backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); transition:background .2s ease, transform .2s ease;}
.rp-nav:hover{background:rgba(13,26,45,.75);} .rp-nav:active{transform:translateY(-50%) scale(.94);}
.rp-nav svg{width:22px; height:22px;}
.rp-prev{left:16px;} .rp-next{right:16px;}
.rp-pos{position:absolute; right:16px; bottom:16px; padding:6px 14px; border-radius:999px; font-size:14px; color:#fff; background:rgba(13,26,45,.55); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);}
.rp-thumbs{display:flex; gap:10px; margin-top:12px; overflow-x:auto; padding:4px; scrollbar-width:thin;}
.rp-thumbs li{flex:none;}
.rp-th{display:block; width:110px; height:76px; padding:0; border:0; border-radius:12px; overflow:hidden; background:#dfe4ec; opacity:.65; transition:opacity .2s ease, box-shadow .2s ease;}
.rp-th img{width:100%; height:100%; object-fit:cover;}
.rp-th:hover{opacity:1;}
.rp-th.is-on{opacity:1; box-shadow:0 0 0 3px #fff, 0 0 0 5px var(--wv-accent);}
.rp-th:focus-visible{outline:3px solid var(--wv-accent); outline-offset:2px;}

:root body .rp-body:not(#_):not(#__){padding-top:36px; padding-bottom:12px;}
.rp-grid{display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr); gap:40px; align-items:start;}
.rp-text h2{font-size:clamp(24px,2.6vw,32px);}
.rp-text p{margin-top:14px; max-width:62ch; font-size:18px; color:#444; line-height:1.65;}
.rp-side{display:flex; flex-direction:column; gap:16px; align-items:flex-start; padding:24px; border-radius:20px; background:#fff; box-shadow:0 10px 30px -18px rgba(13,26,45,.3);}
.rp-cta{display:inline-flex; align-items:center; justify-content:center; width:100%; min-height:52px; padding:0 24px; border-radius:999px; background:var(--wv-accent); color:#fff; font-size:16px; font-weight:500; transition:background .2s ease, transform .2s ease;}
.rp-cta:hover{background:#d04444; transform:translateY(-2px);}
.rp-link{display:inline-flex; align-items:center; gap:8px; font-size:15px; font-weight:500; border-bottom:1px solid currentColor; padding-bottom:2px;}
.rp-link svg{width:16px; height:16px;}
.rp-link:hover{color:var(--wv-accent);}

:root body .rp-more:not(#_):not(#__){padding-top:56px; padding-bottom:8px;}
.rp-more-head{display:flex; align-items:flex-end; justify-content:space-between; gap:20px; flex-wrap:wrap; margin-bottom:24px;}
.rp-more-grid{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px;}
.rp-more-grid .ref-card img{aspect-ratio:4/3; object-fit:cover; width:100%;}

@media (max-width:1099px){
  .rp-grid{grid-template-columns:1fr; gap:24px;}
  .rp-more-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:700px){
  :root body .rp-head:not(#_):not(#__){padding-top:108px;}
  .rp-stage{aspect-ratio:4/3; border-radius:18px;}
  .rp-nav{width:44px; height:44px;} .rp-prev{left:10px;} .rp-next{right:10px;}
  .rp-th{width:84px; height:60px;}
  .rp-more-grid{grid-template-columns:1fr;}
  .rp-text p{font-size:17px;}
}

/* ===== Prehľad systémov (systemy.html): mriežka galérie ===== */
:root body .sy-gallery:not(#_):not(#__){padding-top:28px; padding-bottom:24px;}
.sy-grid{display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:20px;}
.sy-item{grid-column:span 2;}
.sy-half{grid-column:span 3;} .sy-full{grid-column:1 / -1;}
.sy-card{position:relative; display:block; aspect-ratio:4/3; border-radius:20px; overflow:hidden; background:#0d1a2d;
  box-shadow:0 14px 38px -14px rgba(0,0,0,.28), 0 3px 10px rgba(0,0,0,.07);
  transition:transform .35s cubic-bezier(.22,1,.36,1), border-radius .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;}
.sy-card img{width:100%; height:100%; object-fit:cover; display:block; transition:transform .6s cubic-bezier(.22,1,.36,1);}
.sy-card::after{content:""; position:absolute; inset:0; background:linear-gradient(to top, rgba(8,14,26,.82) 0%, rgba(8,14,26,.35) 42%, rgba(8,14,26,0) 70%);}
.sy-cap{position:absolute; z-index:1; left:0; right:0; bottom:0; display:flex; align-items:center; justify-content:space-between; gap:14px; padding:20px 22px 22px; color:#fff;}
.sy-ico{flex:none; display:grid; place-items:center; width:44px; height:44px; border-radius:50%; background:rgba(255,255,255,.18); border:1px solid rgba(255,255,255,.35); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);}
.sy-ico svg{width:22px; height:22px;}
.sy-name{font-size:clamp(18px,1.6vw,22px); font-weight:500; line-height:1.2;}
@media (hover:hover){
  .sy-card:hover{transform:translateY(-6px); border-radius:28px; box-shadow:0 26px 50px -16px rgba(0,0,0,.34), 0 4px 14px rgba(0,0,0,.08);}
  .sy-card:hover img{transform:scale(1.05);}
}
.sy-card:focus-visible{outline:3px solid var(--wv-accent); outline-offset:3px;}
@media (max-width:1099px){
  .sy-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .sy-item, .sy-half, .sy-full{grid-column:auto;}
  .sy-item:last-child:nth-child(odd){grid-column:1 / -1;}
}
@media (max-width:700px){
  .sy-grid{grid-template-columns:1fr; gap:16px;}
  .sy-item:last-child:nth-child(odd){grid-column:auto;}
  .sy-card{border-radius:18px;}
  .sy-cap{padding:16px 16px 18px; gap:12px;}
}

/* ===== Pomocné stránky: poďakovanie, kontakt ===== */
:root body .ref-btn.ref-btn-line:not(#_):not(#__){background:transparent; color:#212121; border:1.5px solid #212121; box-shadow:none;}
:root body .ref-btn.ref-btn-line:not(#_):not(#__):hover{background:#212121; color:#fff;}
.ty .ref-wrap{max-width:760px;}
.ty-ico{display:grid; place-items:center; width:64px; height:64px; border-radius:50%; background:#e3f4ea; color:#12713a; margin-bottom:22px;}
.ty-ico svg{width:30px; height:30px;}
.ty-actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:30px;}
:root body .ty:not(#_):not(#__){padding-bottom:110px;}
:root body .kt:not(#_):not(#__){padding-top:28px; padding-bottom:8px;}
.kt-grid{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px;}
.kp{display:flex; flex-direction:column; gap:4px; padding:22px; border-radius:20px; background:#fff; box-shadow:0 10px 30px -18px rgba(13,26,45,.3);}
.kp-role{margin:0; font-size:12.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--wv-muted);}
.kp-name{margin:2px 0 8px; font-size:19px; font-weight:500; overflow-wrap:anywhere;}
.kp a{font-size:16px; overflow-wrap:anywhere;} .kp a:hover{color:var(--wv-accent);}
.kp span{color:#555;}
@media (max-width:1099px){ .kt-grid{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media (max-width:700px){ .kt-grid{grid-template-columns:1fr;} .ty-actions .ref-btn{width:100%; justify-content:center;} }

/* ===== Právne stránky (obchodné podmienky, ochrana osobných údajov) ===== */
.lg-eff{margin-top:14px; font-size:14px; color:var(--wv-muted);}
:root body .lg:not(#_):not(#__){padding-top:12px; padding-bottom:96px;}
.lg-body{max-width:780px; background:#fff; border-radius:24px; padding:clamp(24px,4vw,48px); box-shadow:0 10px 30px -18px rgba(13,26,45,.3); font-size:16.5px; line-height:1.7; color:#2b2f38;}
.lg-body h2{font-size:clamp(20px,2.2vw,26px); margin:34px 0 10px; scroll-margin-top:110px;} .lg-body h2:first-child{margin-top:0}
.lg-body h3{font-size:18px; margin:22px 0 6px;}
.lg-body p{margin:0 0 12px; overflow-wrap:anywhere;} .lg-body ul{margin:0 0 12px; padding-left:22px; list-style:disc;} .lg-body li{margin:0 0 6px;}
.lg-body a{color:var(--wv-accent); text-decoration:underline; text-underline-offset:3px;} .lg-body code{background:#eef0f5; padding:1px 6px; border-radius:6px; font-size:.92em;}
