/* =========================================================
   MATERRA – spletna stran
   Skupni slogi za index.html in projekt.html
   ========================================================= */

/* ---------- 1. BARVE IN OSNOVNE NASTAVITVE ---------- */
:root {
  --bg: #EEE4D3;        /* svetla bež – ozadje */
  --ink: #4B3424;       /* temno rjava – besedilo, logotip */
  --ink-2: #5A3E2B;     /* srednje rjava – sekundarno besedilo */
  --accent: #7A4E33;    /* zemlja – oznake, hover */
  --line: #DCCDB5;      /* tanke ločilne črte */
  --muted-dark: #CDBBA4;/* sekundarno besedilo na temni podlagi */
  --les: #8A5D38;
  --kamen: #7A5A44;
  --zemlja: #7A4E33;
  --s: .82;             /* hitrost animacije logotipa: .82 → trajanje ≈ 2,3 s (1 = 2,8 s; manj = hitreje) */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
[hidden] { display: none !important; }

.wrap { max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.h-xl { margin: 0; font-size: clamp(44px, 6vw, 88px); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.lead { margin: 0; max-width: 440px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.body-text { margin: 0; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* Prazno mesto za fotografijo – zamenjaj z <img src="img/..." alt="..."> */
.ph-box {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); border-radius: 2px;
}
.ph-box img { width: 100%; height: 100%; object-fit: cover; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- 2. KAZALEC MIŠKE: temno rjav krogec ---------- */
.cur { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .25s; will-change: transform; }
.cur .dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1px var(--bg); }
@media (hover: hover) and (pointer: fine) { * { cursor: none !important; } }
@media not all and (hover: hover) and (pointer: fine) { .cur { display: none; } }

/* ---------- 3. LOGOTIP: animacija skoka črke T ---------- */
.lg { display: block; width: 100%; height: auto; overflow: visible; margin-top: -13%; } /* -13 % = prostor za skok T nad logotipom (viewBox) */
.lg path { fill: var(--ink); fill-rule: evenodd; } /* logotip je že od začetka temno rjav */
/* zemeljske barve črk v začetnem stanju */
.c1 { --c: #B9875A; } .c2 { --c: #9C6440; } .c3 { --c: #7A4E33; } .c4 { --c: #C8A27A; }
.c5 { --c: #A6744C; } .c6 { --c: #8E5B3C; } .c7 { --c: #B07A4F; }

/* začetno stanje: ravna vrstica MATERRA */
.lg .gl { transform: translateX(-85px); }
.lg .gr { transform: translateX(85px); }
.lg .gt { transform: translate(-12px, 102px); }
.tw { display: inline-block; opacity: 0; color: var(--c); }

/* body.is-scrolled sproži animacijo (skok + padec + odboj T, barve, napis) */
.is-scrolled .gt { animation: in-drop calc(1.1s * var(--s)) both; }
.is-scrolled .gl { animation: in-left calc(.55s * var(--s)) both; }
.is-scrolled .gr { animation: in-right calc(.55s * var(--s)) both; }
.is-scrolled .tw { animation: in-word calc(1.5s * var(--s)) both; animation-delay: calc((1s + var(--i) * .07s) * var(--s)); }

@keyframes in-drop {
  0%    { transform: translate(-12px, 102px); animation-timing-function: cubic-bezier(.15,.85,.35,1); }
  26.2% { transform: translate(-4px, -260px); animation-timing-function: cubic-bezier(.6,0,.9,.5); }
  53.5% { transform: translate(0, 10px);      animation-timing-function: cubic-bezier(.2,.8,.4,1); }
  68.2% { transform: translate(0, -22px);     animation-timing-function: cubic-bezier(.6,0,.8,.4); }
  80.8% { transform: translate(0, 4px);       animation-timing-function: cubic-bezier(.45,0,.55,1); }
  91.4% { transform: translate(0, -1px);      animation-timing-function: cubic-bezier(.45,0,.55,1); }
  100%  { transform: translate(0, 0); }
}
@keyframes in-left  { 0%, 19.8% { transform: translateX(-85px); animation-timing-function: cubic-bezier(.65,0,.35,1); } 100% { transform: translateX(0); } }
@keyframes in-right { 0%, 19.8% { transform: translateX(85px);  animation-timing-function: cubic-bezier(.65,0,.35,1); } 100% { transform: translateX(0); } }
@keyframes in-tint  { 0% { fill: var(--c); animation-timing-function: cubic-bezier(.4,0,.6,1); } 100% { fill: var(--ink); } }
@keyframes in-word {
  0%   { opacity: 0; transform: translateY(28px); filter: blur(6px); color: var(--c); animation-timing-function: cubic-bezier(.22,1,.36,1); }
  30%  { opacity: 1; transform: translateY(0);    filter: blur(0);   color: var(--c); animation-timing-function: cubic-bezier(.4,0,.6,1); }
  100% { opacity: 1; transform: translateY(0);    filter: blur(0);   color: var(--ink); }
}

/* body.instant = brez animacije (npr. ob vrnitvi s podstrani) */
.instant .lg *, .instant .tw, .instant .hero-in, .instant .nav .lnk {
  animation-duration: 0s !important; animation-delay: 0s !important; transition-duration: 0s !important; transition-delay: 0s !important;
}

/* ---------- 4. MENI ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  padding: 10px 24px; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  visibility: hidden;
}
.is-done .nav { visibility: visible; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 32px; }
.nav-left { position: absolute; left: 24px; top: 0; bottom: 0; display: flex; align-items: center; }
.nav-right { position: absolute; right: 16px; top: 0; bottom: 0; display: flex; align-items: center; gap: 4px; }
.lnk {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none;
  opacity: 0; transform: translateY(-14px);
  transition: opacity calc(.6s * var(--s)), transform calc(.6s * var(--s)) cubic-bezier(.22,1,.36,1), color .2s;
  transition-delay: calc((.15s + var(--i) * .08s) * var(--s));
}
.is-done .lnk { opacity: 1; transform: translateY(0); }
.lnk:hover { color: var(--accent); }
.mini { display: flex; align-items: center; min-height: 44px; transition: opacity .4s, visibility .4s; }
.mini.off { opacity: 0; visibility: hidden; }
.mini svg { height: 18px; width: auto; display: block; }
.ib {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 6px;
  border: 0; background: transparent; color: var(--ink);
  font-size: 13px; font-weight: 700; letter-spacing: .12em; transition: color .2s;
}
.ib:hover { color: var(--accent); }
.ib[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 5px; }
.sep { width: 1px; height: 16px; background: #C9B79E; margin: 0 4px; }

/* ---------- 5. UVOD (logotip) ---------- */
.hero { height: 100vh; min-height: 520px; position: relative; display: flex; align-items: center; justify-content: center; padding: 0 24px; }
.hero-in { position: relative; width: 45vw; max-width: 710px; transition: transform calc(1.2s * var(--s)) cubic-bezier(.45,0,.2,1); will-change: transform; }
.is-done .hero-in { transform: translateY(-3vh); }
.lgbtn { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: transparent; overflow: visible; }
.lgbtn:focus-visible { outline-offset: 12px; }
.tagline {
  position: absolute; left: 0; right: 0; top: calc(100% + 26px);
  display: flex; flex-wrap: wrap; gap: .42em; justify-content: center;
  font-size: clamp(12px, 1.04vw, 16px); font-weight: 500; letter-spacing: .12em;
}

/* ---------- 6. IZBIRA: arhitektura / procesi / izdelki ---------- */
/* razdelek izbire zapolni cel zaslon – na strani je sam (pod menijem) */
.choice {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-content: center;
  min-height: 100vh; min-height: 100svh; padding: calc(var(--nav-h, 56px) + 16px) 16px 16px;
}
.opt {
  min-height: 46vh; border: 0; border-radius: 6px; color: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  padding: 40px; text-align: left;
  position: relative; overflow: hidden; isolation: isolate;
}
/* slika oddelka – prikaže se ob dotiku z miško */
.opt::before, .opt::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.opt::before { background: var(--img) center / cover no-repeat; }
.opt::after { background: linear-gradient(180deg, rgba(40,26,17,.55) 0%, rgba(40,26,17,.15) 45%, rgba(40,26,17,.6) 100%); }
.opt:hover::before, .opt:hover::after, .opt:focus-visible::before, .opt:focus-visible::after { opacity: 1; }
.opt--arh { --img: url("../img/projekti/trg-malecnik.jpg"); }
.opt--pro { --img: url("../img/procesi/zemlja-materiali.jpg"); }
.opt--izd { --img: url("../img/izdelki/opeke.jpg"); }
.opt:focus-visible { outline-offset: 4px; }
.opt--arh { background: #4B3424; }
.opt--pro { background: #6B4630; }
.opt--izd { background: #8E5B3C; }
.opt-sub { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.opt-title { font-size: clamp(30px, 3vw, 52px); font-weight: 800; line-height: 1; letter-spacing: -.01em; text-transform: uppercase; }

/* ---------- 7. RAZDELKI ---------- */
.sec { padding-top: 96px; padding-bottom: 140px; scroll-margin-top: 48px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 72px; }

/* filtri */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.flt {
  min-height: 44px; padding: 0 20px; border-radius: 22px; border: 1px solid var(--ink);
  background: transparent; color: var(--ink);
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.flt[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* kartice (projekti, izdelki) */
.card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--ink); }
.card:hover { color: var(--ink); }
.card-img { overflow: hidden; border-radius: 2px; }
.card-img > img, .proc-img > img { width: 100%; height: 100%; object-fit: cover; }
.proc-img { overflow: hidden; }
.card-img > * { transition: transform .9s cubic-bezier(.22,1,.36,1); }
.card:hover .card-img > * { transform: scale(1.04); }
.card-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.card-title { font-size: 20px; font-weight: 700; }
.card-meta { font-size: 14px; color: var(--ink-2); }
.card-tag { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.card .ar { display: inline-block; transition: transform .35s cubic-bezier(.22,1,.36,1); }
.card:hover .ar { transform: translateX(6px); }
.card:focus-visible { outline-offset: 6px; }

/* projekti – razgibana postavitev (12 stolpcev, mesta določa js/main.js → SLOTS) */
.pgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 56px; align-items: start; }

/* procesi */
.proc-list { display: flex; flex-direction: column; gap: 96px; }
.proc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.proc--rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.proc--rev .proc-img { order: 1; }
.proc-img { border-radius: 2px; }
.proc-num { font-size: 14px; font-weight: 700; color: var(--accent); }
.proc h3 { margin: 0; font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; line-height: 1.15; }

/* izdelki */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 48px 24px; }
.prod-title { font-size: 18px; font-weight: 700; }
.btn-line {
  align-self: flex-start; min-height: 44px; padding: 0 18px; border-radius: 22px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  transition: background .25s, color .25s;
}
.btn-line:hover { background: var(--ink); color: var(--bg); }

/* o nas */
.about { padding-top: 140px; padding-bottom: 140px; display: flex; flex-direction: column; gap: 96px; scroll-margin-top: 48px; }
.col2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.about-lead { margin: 0; font-size: 22px; line-height: 1.55; font-weight: 500; }
.block { display: flex; flex-direction: column; gap: 32px; }
.block h3 { margin: 0; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.field { border-top: 3px solid var(--c); padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.field-n { font-size: 14px; font-weight: 700; color: var(--c); }
.field-name { font-size: 24px; font-weight: 700; line-height: 1.2; }
.field-desc { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.member { display: flex; flex-direction: column; gap: 12px; }
.member-name { font-size: 20px; font-weight: 700; }
.member-role { font-size: 15px; color: var(--ink-2); }

/* ---------- 8. KONTAKT + NOGA ---------- */
.contact { background: var(--ink); color: var(--bg); padding: calc(var(--nav-h, 56px) + 40px) 24px 40px; scroll-margin-top: 48px; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end; }   /* vsebina na spodnji strani zaslona */
.contact-inner { width: 100%; max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; gap: 72px; }
.dl { margin: 0; display: grid; grid-template-columns: 110px minmax(0, 1fr); row-gap: 14px; column-gap: 16px; font-size: 16px; line-height: 1.5; }
.dl dt { color: var(--muted-dark); }
.dl dd { margin: 0; white-space: pre-line; }
.form { display: flex; flex-direction: column; gap: 22px; }
.fw { display: flex; flex-direction: column; gap: 4px; }
.lbl { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark); }
.fld {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid #8C7562; color: var(--bg);
  font-family: inherit; font-size: 17px; padding: 12px 0; min-height: 44px; outline: none; transition: border-color .2s;
}
.fld:focus { border-bottom-color: var(--bg); }
textarea.fld { resize: vertical; }
.btn-light {
  align-self: flex-start; min-height: 48px; padding: 0 28px; border-radius: 24px;
  border: 1px solid var(--bg); background: transparent; color: var(--bg);
  font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  transition: background .25s, color .25s;
}
.btn-light:hover { background: var(--bg); color: var(--ink); }
.contact :focus-visible { outline-color: var(--bg); }
/* priponke */
.file-in { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-btn {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 22px; border: 1px dashed #8C7562;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; transition: border-color .2s;
}
.file-btn:hover, .file-in:focus-visible + .file-btn { border-color: var(--bg); border-style: solid; }
.file-hint { font-size: 13px; line-height: 1.5; color: var(--muted-dark); margin-top: 4px; }
.file-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.file-list li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #5A4433; padding: 6px 0; min-width: 0; }
.file-list .fn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.file-list .fs { color: var(--muted-dark); flex: none; }
.thanks { border: 1px solid #8C7562; border-radius: 6px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.thanks-title { font-size: 24px; font-weight: 700; }
.thanks-text { font-size: 16px; line-height: 1.6; color: var(--muted-dark); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-err { font-size: 15px; line-height: 1.5; color: #F2C9A8; }
.form-err--dark { color: #8A2E1A; }
button:disabled { opacity: .6; }
.footer { border-top: 1px solid #5A4433; padding-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted-dark); }
.footer a { color: var(--bg); display: flex; align-items: center; min-height: 44px; }
.footer svg { height: 20px; width: auto; display: block; }

/* ---------- 9. ISKANJE, POVPRAŠEVANJE (prekrivna okna) ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; }
.search { background: var(--bg); overflow: auto; padding: 24px; }
.search-inner { max-width: 960px; margin: 0 auto; padding-top: 40px; display: flex; flex-direction: column; gap: 32px; }
.search-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.sinp {
  width: 100%; background: transparent; border: 0; border-bottom: 2px solid var(--ink); color: var(--ink);
  font-family: inherit; font-size: clamp(28px, 4vw, 48px); font-weight: 700; padding: 12px 0; outline: none;
}
.sinp::placeholder { color: #9C8670; }
.sr {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); min-height: 44px;
}
.sr:hover { color: var(--accent); }
.sr-title { font-size: 20px; font-weight: 700; }
.sr-type { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.modal { background: rgba(36, 25, 17, .6); display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-box {
  position: relative; width: 100%; max-width: 560px; max-height: 90vh; overflow: auto;
  background: var(--bg); border-radius: 6px; padding: 40px; display: flex; flex-direction: column; gap: 24px;
}
.modal-box h3 { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -.01em; }
.modal-close { position: absolute; top: 12px; right: 12px; font-size: 20px; }
.lbl-dark { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.fldl {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid #9C8670; color: var(--ink);
  font-family: inherit; font-size: 17px; padding: 10px 0; min-height: 44px; outline: none;
}
.fldl:focus { border-bottom-color: var(--ink); }
.btn-dark {
  align-self: flex-start; min-height: 48px; padding: 0 28px; border-radius: 24px; border: 0;
  background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; transition: background .25s;
}
.btn-dark:hover { background: var(--ink-2); }

/* ---------- 10. PODSTRAN PROJEKTA ---------- */
.p-header {
  position: sticky; top: 0; z-index: 10; background: var(--bg);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px;
  padding: 10px 24px; border-bottom: 1px solid var(--line);
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.p-header .logo svg { height: 18px; width: auto; display: block; }
.p-header .logo { display: flex; align-items: center; min-height: 44px; }
.p-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; }
.p-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.p-main { padding-top: 40px; padding-bottom: 140px; display: flex; flex-direction: column; gap: 96px; }
.thumb { display: block; width: 100%; padding: 0; border: 0; background: transparent; overflow: hidden; border-radius: 2px; }
.thumb > * { transition: transform .9s cubic-bezier(.22,1,.36,1); }
.thumb:hover > * { transform: scale(1.03); }
.p-title { margin: 0; font-size: clamp(36px, 4.5vw, 64px); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.p-data { margin: 0; display: grid; grid-template-columns: 120px minmax(0, 1fr); row-gap: 12px; font-size: 15px; border-top: 1px solid var(--line); padding-top: 20px; }
.p-data dt { color: var(--ink-2); }
.p-data dd { margin: 0; }
.p-h2 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.photos { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; align-items: start; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.plans figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.plans figcaption { font-size: 14px; color: var(--ink-2); }
.plan-box { background: #F7F2E9; border: 1px solid var(--line); }
.p-pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; font-size: 20px; font-weight: 700; }
.p-pager a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.p-pager .all { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.p-footer { background: var(--ink); color: var(--muted-dark); padding: 28px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; }
.lightbox { background: rgba(36, 25, 17, .94); color: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 72px 24px 32px; }
.lb-img { width: min(1100px, 86vw); max-height: 72vh; }
.lb-bar { display: flex; align-items: center; gap: 24px; }
.lb-cap { font-size: 14px; min-width: 200px; text-align: center; }
.lbb {
  min-width: 48px; min-height: 48px; border-radius: 24px; border: 1px solid var(--bg);
  background: transparent; color: var(--bg); font-size: 18px; transition: background .2s, color .2s;
}
.lbb:hover { background: var(--bg); color: var(--ink); }
.lightbox :focus-visible { outline-color: var(--bg); }
.lb-close { position: absolute; top: 16px; right: 16px; }

/* ---------- 11. PRILAGODITEV ZA MANJŠE ZASLONE ---------- */
@media (max-width: 980px) {
  .nav { flex-wrap: wrap; justify-content: space-between; }
  .nav-left { display: none; }
  .nav-right { position: static; }
}
@media (max-width: 760px) {
  .card[style] { grid-column: 1 / -1 !important; grid-row: auto !important; margin-top: 0 !important; }
  .col2, .proc, .proc--rev, .plans { grid-template-columns: minmax(0, 1fr); }
  .proc--rev .proc-img { order: 0; }
  .photos > * { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .p-nav .hide-sm { display: none; }
  .choice { height: 100svh; min-height: 0; grid-template-rows: repeat(3, minmax(0, 1fr)); align-content: stretch; }
  .opt { min-height: 0; padding: 24px; }
}

/* ---------- 12. MANJ ANIMACIJ (nastavitev operacijskega sistema) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .is-scrolled * { animation-duration: 1ms !important; animation-delay: 0s !important; }
}
