/* Rezika: performance + phone/tablet layer. Loaded after anim.css on every page. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;-webkit-tap-highlight-color:rgba(201,142,75,.25)}
body{overflow-x:clip}
picture{display:block}
.legal{overflow-wrap:anywhere}
input,textarea{scroll-margin-top:110px}
.btt{right:max(1rem,env(safe-area-inset-right));bottom:max(1rem,env(safe-area-inset-bottom))}
.marquee.off .mq-track{animation-play-state:paused}

/* ---------- burger menu (phones + small tablets) ---------- */
.burger{display:none;position:relative;width:46px;height:46px;flex:none;border:1.5px solid rgba(24,32,27,.28);border-radius:50%;background:transparent;color:var(--ink);cursor:pointer;padding:0}
.burger i{position:absolute;left:13px;right:13px;height:2px;border-radius:2px;background:currentColor;transition:transform .25s cubic-bezier(.2,.7,.2,1),opacity .15s}
.burger i:nth-child(1){top:16px}.burger i:nth-child(2){top:22px}.burger i:nth-child(3){top:28px}
.burger[aria-expanded="true"] i:nth-child(1){transform:translateY(6px) rotate(45deg)}
.burger[aria-expanded="true"] i:nth-child(2){opacity:0}
.burger[aria-expanded="true"] i:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
.mpanel{display:none}
@media(max-width:860px){
  header .wrap{gap:.6rem}
  header .wrap>nav{margin-left:auto;gap:0}
  nav a:not(.btn){display:none}
  .burger{display:block}
  .mpanel{display:grid;position:absolute;left:0;right:0;top:100%;background:var(--birch);border-bottom:1px solid rgba(24,32,27,.12);box-shadow:0 26px 40px -26px rgba(24,32,27,.55);padding:.4rem clamp(1.25rem,4vw,2.5rem) 1.2rem;visibility:hidden;opacity:0;transform:translateY(-8px);transition:opacity .2s,transform .2s,visibility 0s .2s}
  .mpanel.open{visibility:visible;opacity:1;transform:none;transition:opacity .2s,transform .2s}
  .mpanel a{display:flex;align-items:center;min-height:54px;font-family:var(--serif);font-size:1.4rem;text-decoration:none;color:var(--ink);border-bottom:1px solid rgba(24,32,27,.1)}
  .mpanel a:last-child{border-bottom:0}
}

/* ---------- lite mode: phones, tablets, touch, save-data (html.lite set in anim.js) ---------- */
html.lite::after{display:none}
html.lite body::before,html.lite body::after{display:none!important}
html.lite.anim body{animation:pgIn .3s ease backwards}
html.lite header,html.lite header nav>*{animation:none!important}
html.lite .hero-words .w>span{animation-delay:calc(.1s + var(--i,0)*70ms)!important}
html.lite .scene .intro .lead{animation-delay:.45s!important}
html.lite .scene .intro .btn{animation-delay:.6s!important}
html.lite .pxw{transform:none;transition:none}
html.lite .pxw img{transform:none;will-change:auto;animation:none;scale:1}
html.lite.anim .rv-clip img,html.lite.anim .rv-clip.in img{clip-path:none}
html.lite.anim .rv-clip img{opacity:0}
html.lite.anim .rv-clip.in img{opacity:1;transition:opacity .7s ease var(--d,0ms)}
html.lite.anim .rv.in{animation-duration:.55s}
html.lite.anim .order .btn.rv.in,html.lite.anim .badge.rv.in{animation:rvZ .55s cubic-bezier(.2,.7,.2,1) var(--d,0ms) backwards}
html.lite.anim .split.in .w>span{transition-duration:.7s}
html.lite.anim .why,html.lite.anim .care{transform:none;border-radius:0}
html.lite .care::before{animation:none;inset:0}
html.lite .mote,html.lite .order::before,html.lite .order::after{display:none}
html.lite main.contact::before,html.lite main.legal::before,html.lite main.notfound::before,
html.lite main.contact::after,html.lite main.legal::after,html.lite main.notfound::after{animation:none}
html.lite .nf404{animation:none;background:none}
html.lite footer::before{transform:translateX(-50%)}
html.lite .scene .lb{-webkit-backdrop-filter:none;backdrop-filter:none;background:rgba(29,43,36,.95)}
html.lite .scene .hint::after{animation:none}

/* hover effects must not stick after a tap */
@media(hover:none){
  .why-list li:hover{padding-left:0;background:none}
  .facts>div:hover,.btn:hover,.legal-links a:hover{transform:none}
  .btn:hover{box-shadow:none}
  .facts>div:hover,.why-list li:hover,.stat-list li:hover{background-image:none}
  .logo:hover img,.fcontact li:hover .ic{transform:none}
}

/* ---------- touch ergonomics ---------- */
@media(pointer:coarse){
  input,textarea{font-size:max(16px,1rem)}
  .btn{min-height:48px}
  nav .btn{min-height:44px;display:inline-flex;align-items:center}
  .check input{width:1.5rem;height:1.5rem;margin-top:.15rem}
  .check{gap:.85rem}
  .legal a{padding-block:.15em}
}

/* ---------- tablet 561-860 ---------- */
@media(min-width:561px) and (max-width:860px){
  .hero-img img{aspect-ratio:16/9}
  .details .wrap{grid-template-columns:.55fr 1.45fr}
  .badge{max-width:240px}
  .story figure{max-width:620px}
}
@media(min-width:681px) and (max-width:860px){
  .why-list li{grid-template-columns:1fr 1.4fr}
}
@media(min-width:721px) and (max-width:1024px){
  .scene .lb{font-size:.9rem}
  .scene .intro{max-width:min(620px,80%)}
}

/* ---------- footer + legal links, all small screens ---------- */
@media(max-width:860px){
  footer .foot{flex-direction:column;gap:1.5rem}
  .legal-links{display:grid;grid-template-columns:1fr 1fr;gap:0 1.5rem;width:100%}
  .legal-links a{display:flex;align-items:center;min-height:44px}
  .fcontact a{display:inline-flex;align-items:center;min-height:44px}
}

/* ---------- phone <=720 ---------- */
@media(max-width:720px){
  .scene .track{height:470vh}
  .scene .lb{font-size:.78rem;padding:.3rem .65rem}
  .scene .phase strong{font-size:1.7rem}
  .scene .phase span{font-size:.95rem}
  .scene .prog{right:.55rem;height:90px}
  .legal table,.legal tbody,.legal tr,.legal td{display:block;width:100%}
  .legal tr:first-child{display:none}
  .legal tr{padding:.9rem 0;border-bottom:1px solid rgba(24,32,27,.2)}
  .legal td{border:0;padding:.25rem 0}
  .legal td::before{content:attr(data-label);display:block;font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
  .legal .form{padding:1.1rem}
}
@media(max-width:560px){
  .wrap{padding-inline:1.1rem}
  .scene .intro{right:1.1rem;left:1.1rem;max-width:none;bottom:2.6rem}
  .scene h1{font-size:clamp(2.3rem,11vw,3rem)}
  .scene .lead{font-size:1.05rem;max-width:30ch;margin-bottom:1.1rem}
  .scene .intro .btn{display:block;text-align:center}
  .scene .hint{display:none}
  .scene .legalnote{font-size:.76rem;bottom:.75rem;left:1.1rem}
  .order .btn,button.btn{display:block;width:100%;text-align:center}
  .order .btn::after{display:none}
  .contact h1{font-size:2.1rem}
  .stat-list li{padding-inline:.9rem}
  .seal{width:84px;height:84px}
  .mq-track span{padding:0 .8rem}
  .legal-links{grid-template-columns:1fr}
}
@media(max-width:360px){
  .logo img{height:44px}
  nav .btn{padding-inline:.9rem;font-size:.9rem}
  .burger{width:42px;height:42px}
  .burger i{left:11px;right:11px}
}

/* ---------- landscape phones: very little height ---------- */
@media(max-height:520px) and (orientation:landscape){
  header .wrap{height:56px}
  .logo img{height:42px}
  .scene .stage{top:56px;height:calc(100vh - 56px);height:calc(100svh - 56px)}
  .scene h1{font-size:clamp(1.7rem,7vh,2.5rem);margin-bottom:.4rem}
  .scene .lead,.scene .hint,.scene .legalnote{display:none}
  .scene .intro{bottom:1.2rem}
  .scene .phase{top:.8rem}
  .scene .phase strong{font-size:1.3rem}
  .scene .phase span{font-size:.82rem}
  .scene .track{height:620vh}
}

/* marquee: isolate its painting so scrolling never re-rasterises the long text strip */
.marquee{contain:content;transform:translateZ(0)}
.mq-track{backface-visibility:hidden}

/* credit line: sits right under the footer links */
.foot-r{display:flex;flex-direction:column;position:relative;z-index:2}
footer .credit{align-self:flex-end;text-align:right;margin:1.2rem 0 0;font-size:.72rem;line-height:1.4;opacity:.75;white-space:nowrap}
footer .credit b{font-family:var(--sans);font-weight:700;color:var(--birch);letter-spacing:0;animation:none}
@media(max-width:860px){.foot-r{width:100%}}

/* price slot (shown only when podjetje.js has a price) */
.pricetag{font-family:var(--serif);font-size:1.35rem;margin:0 0 1.1rem}
.pricetag b{font-weight:400;color:var(--oak)}
.order .pricetag{color:var(--ink)}
#naslov{min-height:90px}
.pricetag small{display:block;font-family:var(--sans);font-size:.82rem;opacity:.75;margin-top:.2rem}

/* price block */
.pricetag{font-size:1rem;margin:0 0 1.2rem}
.pricetag b{font-size:2.3rem;line-height:1}
.pricetag small{margin-top:.35rem}
.pricing{display:grid;grid-template-columns:1fr 1fr;gap:1rem;max-width:560px;margin:0 auto 1.1rem;text-align:center}
.pcard{position:relative;display:grid;gap:.15rem;justify-items:center;background:#fff;border:2px solid transparent;border-radius:18px;padding:1.4rem .8rem 1.2rem;box-shadow:0 18px 40px -26px rgba(24,32,27,.5)}
.pcard.feat{border-color:var(--oak)}
.pq{font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.pn{font-family:var(--serif);font-weight:400;font-size:clamp(2.4rem,9vw,3.4rem);line-height:1.05;color:var(--ink)}
.pu{color:var(--muted);font-size:.95rem}
.ps{position:absolute;top:-.8rem;left:50%;transform:translateX(-50%);background:var(--oak);color:var(--moss);font-weight:700;font-size:.78rem;border-radius:999px;padding:.2rem .75rem;white-space:nowrap}
.pinc{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:.45rem .6rem;max-width:620px;margin:0 auto 1rem;padding:0}
.pinc li{margin:0;font-size:.9rem;color:var(--ink);background:rgba(24,32,27,.06);border-radius:999px;padding:.3rem .8rem}
.pinc li::before{content:"\2713";color:var(--oak-dark);font-weight:700;margin-right:.4rem}
.order .pnote{max-width:46ch;margin:0 auto 2rem;font-size:.92rem}
.calc{display:grid;grid-template-columns:1fr auto;align-items:baseline;gap:.1rem .8rem;margin-top:.7rem;background:var(--birch);border-radius:12px;padding:.8rem 1rem}
.calc[hidden]{display:none}
.calc .cl{color:var(--muted)}
.calc .ct{font-family:var(--serif);font-weight:400;font-size:1.7rem}
.calc .cn{grid-column:1/-1;font-size:.85rem;color:var(--muted)}
@media(max-width:340px){.pricing{grid-template-columns:1fr}}
