/* ==========================================================================
   Furnea d.o.o. — redesign 2026
   System font stack (no external font requests = GDPR friendly, native optical sizing)
   ========================================================================== */

:root {
  --bg: #f5f1ea;
  --bg-2: #ece5d9;
  --surface: #ffffff;
  --ink: #1b1d18;
  --ink-2: #4a4c44;
  --ink-3: #7a7b72;
  --line: rgba(27, 29, 24, .1);
  --dark: #121410;
  --dark-2: #1c1f19;
  --on-dark: #f3efe7;
  --on-dark-2: rgba(243, 239, 231, .66);
  --green: #8cc63f;
  --green-deep: #5d8f1f;
  --wood: #c08a4e;
  --wood-deep: #8a5a2b;

  --radius-s: 12px;
  --radius: 22px;
  --radius-l: 32px;
  --shadow-1: 0 1px 2px rgba(20, 16, 10, .06), 0 4px 14px rgba(20, 16, 10, .06);
  --shadow-2: 0 2px 6px rgba(20, 16, 10, .08), 0 22px 50px -12px rgba(20, 16, 10, .28);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --header-h: 68px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;

  font: 100%/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2.5px solid var(--green); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--green); color: var(--dark); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typography ---------- */
.display, h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-optical-sizing: auto;
  margin: 0;
}
.display { font-size: clamp(2.6rem, 7.4vw, 6.4rem); line-height: .98; letter-spacing: -.035em; font-weight: 700; }
.h2 { font-size: clamp(2rem, 4.6vw, 3.8rem); line-height: 1.04; letter-spacing: -.03em; font-weight: 700; }
.h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.15; letter-spacing: -.015em; font-weight: 650; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green-deep);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--ink-2); letter-spacing: -.005em; }
.muted { color: var(--ink-3); }
.grad-text {
  background: linear-gradient(100deg, var(--green) 0%, #d8c27a 45%, var(--wood) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--ink); --b-fg: var(--on-dark);
  position: relative; display: inline-flex; align-items: center; gap: .6em;
  height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--b-bg); color: var(--b-fg);
  font-weight: 600; font-size: .98rem; letter-spacing: -.005em;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background-color .3s;
  will-change: transform; overflow: hidden; isolation: isolate;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn::after { /* sheen */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.28), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.btn:hover::after { opacity: 1; }
.btn:hover { box-shadow: 0 10px 30px -10px rgba(0,0,0,.45); }
.btn:active { transform: scale(.965); transition: transform .1s ease-out; }
.btn .arrow { transition: transform .45s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-green { --b-bg: var(--green); --b-fg: #10140b; }
.btn-light { --b-bg: rgba(255,255,255,.14); --b-fg: #fff; backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.btn-ghost { --b-bg: transparent; --b-fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { --b-bg: var(--surface); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none;
  background: linear-gradient(90deg, var(--green), var(--wood));
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}

/* ---------- Header (translucent material) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  color: var(--on-dark);
  transition: transform .6s var(--ease-out), background-color .4s, box-shadow .4s;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(18, 20, 16, .55);
  backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%);
  opacity: 0; transition: opacity .4s;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 32px; width: auto; }
.brand { gap: 10px; color: #fff; }
.brand-fallback { font-weight: 700; font-size: 1.35rem; letter-spacing: -.03em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 9px 15px; border-radius: 999px;
  font-size: .93rem; font-weight: 500; color: var(--on-dark-2);
  transition: color .25s, background-color .25s;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a.is-active { color: #fff; }
.nav a.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--green); transform: translateX(-50%);
}
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { height: 42px; padding: 0 18px; font-size: .9rem; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; }
.menu-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .5s var(--ease-out), opacity .3s;
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile sheet */
.mobile-sheet {
  position: fixed; inset: 0; z-index: 99; display: none;
  background: rgba(14, 16, 12, .72);
  backdrop-filter: blur(28px) saturate(170%); -webkit-backdrop-filter: blur(28px) saturate(170%);
  color: var(--on-dark);
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  opacity: 0; pointer-events: none; transition: opacity .45s var(--ease-out);
}
.menu-open .mobile-sheet { opacity: 1; pointer-events: auto; }
.mobile-sheet nav { display: grid; gap: 4px; }
.mobile-sheet nav a {
  font-size: clamp(2rem, 9vw, 2.8rem); font-weight: 700; letter-spacing: -.03em; padding: 6px 0;
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s var(--ease-out), transform .7s var(--ease-out);
}
.menu-open .mobile-sheet nav a { opacity: 1; transform: none; }
.menu-open .mobile-sheet nav a:nth-child(2) { transition-delay: .04s; }
.menu-open .mobile-sheet nav a:nth-child(3) { transition-delay: .08s; }
.menu-open .mobile-sheet nav a:nth-child(4) { transition-delay: .12s; }
.menu-open .mobile-sheet nav a:nth-child(5) { transition-delay: .16s; }
.mobile-sheet .sheet-foot { margin-top: 36px; display: grid; gap: 10px; color: var(--on-dark-2); }
.mobile-sheet .sheet-foot a { color: #fff; font-weight: 600; }

@media (max-width: 900px) {
  .nav, .header-cta .btn { display: none; }
  .menu-toggle { display: block; }
  .mobile-sheet { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh; color: var(--on-dark); background: var(--dark);
  overflow: hidden; display: flex; align-items: flex-end; isolation: isolate;
}
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.6s var(--ease-in-out);
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.14) translate3d(0, var(--py, 0px), 0);
  transition: transform 9s linear;
}
.hero-slide.is-active img { transform: scale(1.02) translate3d(0, var(--py, 0px), 0); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,12,8,.55) 0%, rgba(10,12,8,0) 28%),
    linear-gradient(0deg, rgba(10,12,8,.92) 0%, rgba(10,12,8,.45) 42%, rgba(10,12,8,.1) 70%);
}
.hero-inner { width: 100%; padding-bottom: clamp(40px, 8vh, 88px); padding-top: calc(var(--header-h) + 40px); }
.hero .eyebrow { color: var(--green); }
.hero h1 { margin-top: 18px; max-width: 12ch; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease-out); }
.is-loaded .hero h1 .line > span { transform: none; }
.is-loaded .hero h1 .line:nth-child(2) > span { transition-delay: .09s; }
.is-loaded .hero h1 .line:nth-child(3) > span { transition-delay: .18s; }
.hero-lead { max-width: 46ch; margin: 22px 0 0; color: var(--on-dark-2); font-size: clamp(1.05rem, 1.4vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fade-up { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.is-loaded .fade-up { opacity: 1; transform: none; }
.is-loaded .fade-up.d1 { transition-delay: .35s; }
.is-loaded .fade-up.d2 { transition-delay: .5s; }
.is-loaded .fade-up.d3 { transition-delay: .65s; }

.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-top: clamp(36px, 7vh, 72px); }
.hero-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-tab {
  position: relative; text-align: left; min-width: 170px; padding: 14px 16px 16px; border-radius: 16px;
  background: rgba(255,255,255,.07); color: var(--on-dark-2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
  transition: background-color .3s, color .3s, transform .4s var(--ease-out);
}
.hero-tab:hover { background: rgba(255,255,255,.12); color: #fff; }
.hero-tab:active { transform: scale(.97); }
.hero-tab small { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.hero-tab strong { display: block; margin-top: 2px; font-size: 1rem; color: inherit; font-weight: 600; }
.hero-tab .bar { position: absolute; left: 16px; right: 16px; bottom: 8px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.14); overflow: hidden; }
.hero-tab .bar i { position: absolute; inset: 0; background: var(--green); transform-origin: 0 50%; transform: scaleX(0); }
.hero-tab.is-active { color: #fff; background: rgba(255,255,255,.14); }
.hero-tab.is-active .bar i { animation: tabfill var(--slide-ms, 6500ms) linear forwards; }
.hero.is-paused .hero-tab.is-active .bar i { animation-play-state: paused; }
@keyframes tabfill { to { transform: scaleX(1); } }
.scroll-cue {
  display: grid; place-items: center; width: 54px; height: 54px; flex: none; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); color: #fff;
}
.scroll-cue svg { animation: cue 2.2s var(--ease-in-out) infinite; }
@keyframes cue { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }
@media (max-width: 700px) {
  .hero-tab { min-width: 0; flex: 1 1 30%; padding: 12px 12px 16px; }
  .hero-tab small { display: none; }
  .hero-tab strong { font-size: .88rem; }
  .scroll-cue { display: none; }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--dark); color: var(--on-dark); padding: 22px 0; overflow: hidden; border-top: 1px solid rgba(255,255,255,.06); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 28px; padding-right: 28px;
  font-size: clamp(1.2rem, 2.4vw, 1.9rem); font-weight: 650; letter-spacing: -.02em; white-space: nowrap;
}
.marquee-track span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.marquee-track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px rgba(243,239,231,.55); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 12vw, 160px) 0; }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-dark { background: var(--dark); color: var(--on-dark); }
.section-dark .lead, .section-dark .muted { color: var(--on-dark-2); }
.section-dark .eyebrow { color: var(--green); }

/* Reveal (IntersectionObserver) */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(.94); transition: opacity 1s var(--ease-out), transform 1.3s var(--ease-out); }
.reveal-scale.is-in { opacity: 1; transform: none; }
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-words .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--wi) * 45ms); }
.split-words.is-in .w > span { transform: none; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.about-media { position: relative; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-2); background: var(--bg-2); }
.about-media img { width: 100%; height: 118%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.about-badge {
  position: absolute; left: 20px; bottom: 20px; right: 20px; display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; border-radius: 18px; color: #fff;
  background: rgba(20, 22, 18, .5); backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.about-badge .ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--green); color: #10140b; }
.about-badge p { margin: 0; font-size: .92rem; line-height: 1.35; }
.about-badge strong { display: block; font-size: 1rem; }
.about-copy p { color: var(--ink-2); font-size: 1.06rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; }
.stat { padding: 20px 18px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); }
.stat b { display: block; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1; letter-spacing: -.04em; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; font-size: .86rem; color: var(--ink-3); line-height: 1.3; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { aspect-ratio: 4 / 3; }
}
@media (max-width: 480px) { .stats { grid-template-columns: 1fr 1fr; } .stats .stat:last-child { grid-column: span 2; } }

/* ---------- Services / Ponudba ---------- */
.services-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 72px); }
.services-top .section-head { margin: 0; }
.cards { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.card {
  --tx: 0deg; --ty: 0deg;
  position: relative; grid-column: span 4; min-height: 440px; border-radius: var(--radius-l); overflow: hidden;
  color: #fff; background: var(--dark-2); isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end;
  transform: perspective(1000px) rotateX(var(--tx)) rotateY(var(--ty));
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06);
}
.card.wide { grid-column: span 8; }
.card:hover { box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.1); }
.card:active { transform: perspective(1000px) scale(.985); transition-duration: .15s; }
.card-img { position: absolute; inset: 0; z-index: -2; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.4s var(--ease-out), filter .8s; }
.card:hover .card-img img { transform: scale(1.12); }
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(10,12,8,.94) 0%, rgba(10,12,8,.55) 42%, rgba(10,12,8,.05) 75%);
  transition: opacity .6s;
}
.card::after { /* spotlight */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.12), transparent 55%);
  opacity: 0; transition: opacity .4s;
}
.card:hover::after { opacity: 1; }
.card-body { padding: 28px; }
.card-num { position: absolute; top: 22px; left: 26px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; color: rgba(255,255,255,.7); }
.card-go {
  position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .6s var(--ease-out), background-color .3s, color .3s;
}
.card:hover .card-go { background: var(--green); color: #10140b; transform: rotate(-45deg); }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: rgba(255,255,255,.76); font-size: .96rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color .3s; }
.card:hover p { -webkit-line-clamp: 8; color: rgba(255,255,255,.9); }
.card .tag { display: inline-block; margin-top: 14px; padding: 6px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: rgba(140,198,63,.2); color: #cfeaa6; }
@media (max-width: 1000px) { .card, .card.wide { grid-column: span 6; } }
@media (max-width: 640px) { .card, .card.wide { grid-column: span 12; min-height: 380px; } .card p { -webkit-line-clamp: 4; } }

.catalog {
  margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 26px 28px; border-radius: var(--radius-l);
  background: linear-gradient(120deg, rgba(140,198,63,.16), rgba(192,138,78,.16)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.catalog p { margin: 4px 0 0; color: var(--on-dark-2); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 28px 24px 26px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.step::before { counter-increment: s; content: "0" counter(s); display: block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; color: var(--green-deep); margin-bottom: 44px; }
.step .ico { position: absolute; top: 22px; right: 22px; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--bg); color: var(--wood-deep); }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.steps-line { position: relative; height: 2px; margin: 0 0 22px; background: var(--line); border-radius: 2px; overflow: hidden; }
.steps-line i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--green), var(--wood)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Horizontal gallery strip (scroll-driven) ---------- */
.hscroll { position: relative; background: var(--dark); color: var(--on-dark); }
.hscroll-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hscroll-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.hscroll-track { display: flex; gap: 18px; padding-inline: var(--gutter); will-change: transform; }
.hscroll-item { flex: none; width: clamp(240px, 30vw, 420px); aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--dark-2); position: relative; }
.hscroll-item:nth-child(even) { margin-top: 48px; }
.hscroll-item img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease-out); }
.hscroll-item:hover img { transform: scale(1.14); }
.hscroll-end { flex: none; width: clamp(240px, 30vw, 420px); display: grid; place-items: center; }
.hscroll-end a { display: grid; place-items: center; width: 190px; height: 190px; border-radius: 50%; background: var(--green); color: #10140b; font-weight: 700; text-align: center; line-height: 1.2; transition: transform .6s var(--ease-out); }
.hscroll-end a:hover { transform: scale(1.06) rotate(-4deg); }
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  .hscroll { height: auto !important; padding: 90px 0; }
  .hscroll-sticky { position: relative; height: auto; }
  .hscroll-track { transform: none !important; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hscroll-track::-webkit-scrollbar { display: none; }
  .hscroll-item, .hscroll-end { scroll-snap-align: center; width: 72vw; }
  .hscroll-item:nth-child(even) { margin-top: 0; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.info-list { display: grid; gap: 12px; margin-top: 32px; }
.info {
  display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
a.info:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
a.info:active { transform: scale(.98); }
.info .ico { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--bg); color: var(--green-deep); }
.info small { display: block; font-size: .78rem; color: var(--ink-3); letter-spacing: .02em; }
.info strong { display: block; font-weight: 600; letter-spacing: -.01em; }

.form-card { padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-l); background: var(--surface); box-shadow: var(--shadow-2); position: relative; overflow: hidden; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid transparent; border-radius: 16px;
  padding: 26px 16px 10px; outline: none; transition: border-color .25s, background-color .25s, box-shadow .25s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 150px; resize: vertical; }
.field label {
  position: absolute; left: 17px; top: 18px; color: var(--ink-3); pointer-events: none; transform-origin: 0 0;
  transition: transform .35s var(--ease-out), color .25s;
}
.field input:focus, .field textarea:focus { border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(140,198,63,.18); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.76); color: var(--green-deep); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #d64545; background: #fff6f5; }
.field .err { display: block; min-height: 0; font-size: .8rem; color: #c03a3a; margin: 6px 4px 0; }
.field.is-invalid { animation: shake .45s var(--ease-out); }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); cursor: pointer; line-height: 1.45; }
.check input { position: absolute; opacity: 0; }
.check .box { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); display: grid; place-items: center; transition: background-color .2s, box-shadow .2s; }
.check .box svg { opacity: 0; transform: scale(.4); transition: opacity .2s, transform .4s var(--ease-out); }
.check input:checked + .box { background: var(--green); box-shadow: none; }
.check input:checked + .box svg { opacity: 1; transform: none; }
.check input:focus-visible + .box { outline: 2.5px solid var(--green); outline-offset: 2px; }
.check a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 2px; }
.check.is-invalid .box { box-shadow: inset 0 0 0 1.5px #d64545; }

.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.recaptcha-note { font-size: .74rem; color: var(--ink-3); max-width: 42ch; line-height: 1.4; margin: 0; }
.recaptcha-note a { text-decoration: underline; }
.grecaptcha-badge { visibility: hidden !important; } /* skrito — obvestilo je prikazano v obrazcu (dovoljeno po Google pravilih) */
.btn .spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: none; animation: spin .7s linear infinite; }
.btn.is-loading .spinner { display: block; }
.btn.is-loading .arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; font-size: .92rem; display: none; }
.form-status.is-error { display: block; background: #fdecea; color: #9b2c2c; }
.form-status.is-info { display: block; background: #fff8e6; color: #7a5a12; }
.form-status .inline-btn { text-decoration: underline; font-weight: 600; color: inherit; }

.form-success {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 32px; background: var(--surface);
  opacity: 0; pointer-events: none; transform: scale(1.04); transition: opacity .5s var(--ease-out), transform .7s var(--ease-out);
}
.form-card.is-sent .form-success { opacity: 1; pointer-events: auto; transform: none; }
.form-success .tick { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: var(--green); display: grid; place-items: center; color: #10140b; transform: scale(.4); transition: transform .9s cubic-bezier(.34, 1.56, .64, 1) .15s; }
.form-card.is-sent .tick { transform: none; }
.form-success .tick path { stroke-dasharray: 40; stroke-dashoffset: 40; transition: stroke-dashoffset .6s var(--ease-out) .45s; }
.form-card.is-sent .tick path { stroke-dashoffset: 0; }

.map { margin-top: 12px; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-2) center / cover; box-shadow: var(--shadow-1); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; gap: 8px;
  background: radial-gradient(circle at 30% 20%, rgba(140,198,63,.22), transparent 55%), linear-gradient(135deg, #e7dfd1, #d9cdb9); }
.map-consent p { margin: 0 0 10px; font-size: .9rem; color: var(--ink-2); max-width: 36ch; }
.map-consent .btn { height: 44px; font-size: .9rem; }
.disclaimer { margin-top: 18px; font-size: .85rem; color: var(--ink-3); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-2); padding: 72px 0 36px; }
.footer-big { font-size: clamp(3rem, 13vw, 11rem); line-height: .9; letter-spacing: -.05em; font-weight: 800; color: rgba(243,239,231,.08); margin: 0 0 40px; user-select: none; white-space: nowrap; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-grid h4 { margin: 0 0 12px; color: #fff; font-size: .9rem; letter-spacing: .02em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: .86rem; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 2px; }
.linklike { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-meta { text-align: center; padding-top: 18px; margin-top: 14px; border-top: 1px solid rgba(255,255,255,.06); font-size: .84rem; color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
.footer-meta a { text-decoration: underline; text-underline-offset: 2px; }
.footer-meta a:hover { color: #fff; }

/* ---------- Cookie consent (GDPR) ---------- */
.cc {
  position: fixed; left: 50%; bottom: 16px; z-index: 200; width: min(640px, calc(100% - 24px));
  transform: translate(-50%, calc(100% + 40px)); opacity: 0;
  transition: transform .8s var(--ease-out), opacity .5s;
  padding: 22px; border-radius: 24px; color: var(--on-dark);
  background: rgba(22, 24, 20, .82); backdrop-filter: blur(26px) saturate(180%); -webkit-backdrop-filter: blur(26px) saturate(180%);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.12);
}
.cc.is-visible { transform: translate(-50%, 0); opacity: 1; }
.cc h2 { font-size: 1.1rem; letter-spacing: -.01em; margin-bottom: 6px; }
.cc p { margin: 0; font-size: .9rem; color: var(--on-dark-2); line-height: 1.5; }
.cc p a { color: #fff; text-decoration: underline; }
.cc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.cc-actions .btn { height: 44px; padding: 0 18px; font-size: .9rem; flex: 1 1 auto; justify-content: center; }
.cc-prefs { display: grid; gap: 10px; margin-top: 16px; max-height: 0; overflow: hidden; transition: max-height .6s var(--ease-out); }
.cc.show-prefs .cc-prefs { max-height: 520px; }
.cc:not(.show-prefs) [data-cc="save"] { display: none; }
.cc-row { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.06); }
.cc-row b { color: #fff; font-size: .92rem; }
.cc-row p { font-size: .82rem; margin-top: 2px; }
.switch { position: relative; flex: none; width: 51px; height: 31px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,.2); transition: background-color .3s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.25); transition: transform .45s cubic-bezier(.34, 1.4, .64, 1); }
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:disabled + i { opacity: .55; }
.switch input:focus-visible + i { outline: 2.5px solid var(--green); outline-offset: 2px; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: rgba(22,24,20,.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.45);
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: opacity .4s, transform .6s var(--ease-out);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:active { transform: scale(.92); }
.to-top svg circle.ring { stroke-dasharray: 145; stroke-dashoffset: calc(145 - 145 * var(--p, 0)); transition: stroke-dashoffset .1s linear; }

/* ---------- Header: always visible, stronger contrast ---------- */
:root { --header-h: 76px; }
.site-header::before { opacity: 1; background: rgba(14, 16, 12, .82); border-bottom: 1px solid rgba(255,255,255,.08); }
.site-header.is-scrolled::before { background: rgba(14, 16, 12, .9); }
.site-header.is-hidden { transform: none; }
.site-header .brand img { height: 38px; }
.site-header .brand-fallback { font-size: 1.5rem; color: #fff; }
.nav { gap: 6px; }
.nav a { color: rgba(255,255,255,.88); font-size: 1rem; font-weight: 600; padding: 10px 16px; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.12); }
.nav a.is-active { color: #10140b; background: var(--green); }
.nav a.is-active::after { display: none; }
.header-cta .btn { height: 46px; font-size: .95rem; }

/* ---------- Custom cursor dot (desktop only) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 300; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--green); pointer-events: none; mix-blend-mode: difference; opacity: 0; transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor.is-hover { width: 24px; height: 24px; margin: -12px 0 0 -12px; background: transparent; border: 2px solid var(--green); mix-blend-mode: normal; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Gallery page ---------- */
.page-hero { position: relative; background: var(--dark); color: var(--on-dark); padding: calc(var(--header-h) + clamp(60px, 10vw, 120px)) 0 clamp(50px, 7vw, 90px); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; width: 60vw; height: 60vw; right: -20vw; top: -30vw; border-radius: 50%; background: radial-gradient(circle, rgba(140,198,63,.28), transparent 65%); filter: blur(10px); animation: float 14s var(--ease-in-out) infinite alternate; }
@keyframes float { to { transform: translate(-6vw, 8vw); } }
.page-hero .lead { color: var(--on-dark-2); max-width: 52ch; margin-top: 18px; }
.crumbs { display: flex; gap: 8px; font-size: .85rem; color: var(--on-dark-2); margin-bottom: 22px; }
.crumbs a:hover { color: #fff; }
.gallery-bar { position: sticky; top: var(--header-h); z-index: 20; background: rgba(245,241,234,.78); backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%); border-bottom: 1px solid var(--line); }
.gallery-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 60px; font-size: .9rem; color: var(--ink-2); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(27,29,24,.07); position: relative; }
.seg button { position: relative; z-index: 1; padding: 7px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--ink-2); transition: color .3s; }
.seg button.is-active { color: var(--ink); }
.seg .thumb { position: absolute; top: 3px; bottom: 3px; left: 0; border-radius: 999px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.1); transition: transform .5s var(--ease-out), width .5s var(--ease-out); }
.masonry { columns: 4 260px; column-gap: 14px; padding: 28px 0 60px; }
.masonry.dense { columns: 6 170px; column-gap: 10px; }
.g-item {
  display: block; width: 100%; margin: 0 0 14px; break-inside: avoid; border-radius: 18px; overflow: hidden; position: relative; background: var(--bg-2);
  opacity: 0; transform: translateY(30px) scale(.97); transition: opacity .8s var(--ease-out), transform 1s var(--ease-out);
  cursor: zoom-in;
}
.masonry.dense .g-item { margin-bottom: 10px; border-radius: 12px; }
.g-item.is-in { opacity: 1; transform: none; }
.g-item img { width: 100%; height: auto; transition: transform 1s var(--ease-out), filter .6s; }
.g-item:hover img { transform: scale(1.06); }
.g-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.35), transparent 40%); opacity: 0; transition: opacity .4s; }
.g-item:hover::after { opacity: 1; }
.g-item:active { transform: scale(.98); transition-duration: .15s; }
.load-more { display: flex; justify-content: center; padding: 10px 0 100px; }
.sentinel { height: 1px; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 250; display: none; touch-action: none; user-select: none; -webkit-user-select: none; }
.lb.is-open { display: block; }
.lb-scrim { position: absolute; inset: 0; background: rgba(8,9,7,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; }
.lb-stage { position: absolute; inset: 0; display: flex; align-items: center; }
.lb-strip { display: flex; height: 100%; will-change: transform; }
.lb-slide { flex: none; width: 100vw; height: 100%; display: flex; align-items: center; justify-content: center; padding: 70px 16px; }
.lb-slide img { max-width: min(100%, 1600px); max-height: 100%; min-width: 0; min-height: 0; width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 40px 80px -20px rgba(0,0,0,.7); -webkit-user-drag: none; pointer-events: none; }
.lb-ui { position: absolute; inset: 0 0 auto 0; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; color: #fff; font-size: .9rem; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .4s; }
.lb.is-open .lb-ui { opacity: 1; }
.lb-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background-color .25s, transform .2s; }
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-btn:active { transform: scale(.9); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
@media (hover: none) { .lb-nav { display: none; } }

/* ---------- Legal page ---------- */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.5rem; letter-spacing: -.02em; margin: 44px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 12px 0; }
.legal th, .legal td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* ---------- Reduced motion / transparency / contrast ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal, .reveal-scale, .fade-up, .g-item, .split-words .w > span, .hero h1 .line > span { transform: none !important; transition: opacity .4s ease !important; }
  .hero-slide img { transform: none !important; transition: none !important; }
  .card, .card:hover .card-img img, .about-media img { transform: none !important; }
  .marquee-track { animation: none; }
  .hscroll-track { transform: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header::before, .mobile-sheet, .cc, .about-badge, .gallery-bar, .to-top { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .site-header::before, .cc, .mobile-sheet { background: #16181a; }
  .gallery-bar { background: var(--bg); }
}
@media (prefers-contrast: more) {
  :root { --ink-2: #2b2d27; --ink-3: #4a4c44; --line: rgba(27,29,24,.35); }
  .btn-ghost { box-shadow: inset 0 0 0 2px var(--ink); }
}


/* ==========================================================================
   Ponudba — mega menu, category & product pages
   ========================================================================== */
.nav .has-mega { position: static; display: flex; }
.nav .mega-trigger { display: inline-flex; align-items: center; gap: 6px; }
.nav .mega-trigger svg { transition: transform .45s var(--ease-out); opacity: .8; }
.has-mega.is-open .mega-trigger svg { transform: rotate(180deg); }
.mega {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 5;
  padding: 26px 0 30px; color: var(--on-dark);
  background: rgba(14, 16, 12, .94);
  backdrop-filter: blur(26px) saturate(170%); -webkit-backdrop-filter: blur(26px) saturate(170%);
  border-top: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transform-origin: 50% 0;
  transition: opacity .28s var(--ease-out), transform .45s var(--ease-out), visibility 0s linear .45s;
}
.mega > .container { display: block; height: auto; }
.has-mega.is-open .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .28s var(--ease-out), transform .45s var(--ease-out), visibility 0s; }
.mega-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.mega-col h3 { margin: 0 0 10px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.mega-col h3 a { color: var(--green); padding: 0; background: none; }
.mega-col h3 a:hover { color: #fff; background: none; }
.mega-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega .mega-link {
  display: flex; align-items: center; gap: 10px; padding: 7px 8px; margin: 0 -8px; border-radius: 12px;
  color: rgba(255,255,255,.88); font-size: .92rem; font-weight: 500; line-height: 1.25;
  opacity: 0; transform: translateY(6px); transition: background-color .2s, color .2s, opacity .4s var(--ease-out), transform .5s var(--ease-out);
}
.has-mega.is-open .mega-link { opacity: 1; transform: none; transition-delay: calc(var(--d, 0) * 22ms); }
.mega .mega-link:hover, .mega .mega-link:focus-visible { background: rgba(255,255,255,.09); color: #fff; }
.mega .mega-link img { width: 44px; height: 32px; flex: none; object-fit: cover; border-radius: 7px; background: #222; }
.mega .mega-link small { display: block; color: var(--on-dark-2); font-size: .76rem; font-weight: 500; }
.mega .mega-link::after { display: none !important; }
.mega-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: .9rem; color: var(--on-dark-2); }
.mega-foot a { color: #fff; font-weight: 600; padding: 0; }
.mega-foot a:hover { color: var(--green); background: none; }
.mega-foot .btn { height: 40px; padding: 0 16px; font-size: .88rem; color: #10140b; }
@media (max-width: 1100px) { .mega-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* mobile accordion */
.mobile-sheet { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.m-acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  font-size: clamp(2rem, 9vw, 2.8rem); font-weight: 700; letter-spacing: -.03em; padding: 6px 0; }
.m-acc summary::-webkit-details-marker { display: none; }
.m-acc summary svg { transition: transform .45s var(--ease-out); }
.m-acc[open] summary svg { transform: rotate(180deg); }
.m-acc .m-sub { display: grid; gap: 14px; padding: 6px 0 18px; }
.m-acc .m-sub b { display: block; color: var(--green); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.mobile-sheet nav .m-sub a { font-size: 1.05rem; font-weight: 500; letter-spacing: 0; padding: 5px 0; display: block; color: rgba(255,255,255,.85); opacity: 1; transform: none; }
.mobile-sheet nav .m-sub a.cat { color: #fff; font-weight: 700; }

/* page hero with image */
.page-hero.has-img { min-height: min(72vh, 640px); display: flex; align-items: flex-end; isolation: isolate; }
.page-hero.has-img .ph-img { position: absolute; inset: 0; z-index: -2; }
.page-hero.has-img .ph-img img { width: 100%; height: 118%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0) scale(1.04); }
.page-hero.has-img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,12,8,.94) 0%, rgba(10,12,8,.55) 50%, rgba(10,12,8,.35) 100%); }
.page-hero.has-img::before { display: none; }
.page-hero .hero-actions { margin-top: 28px; }
.page-hero h1 { max-width: 16ch; }

/* rich text */
.prose { max-width: 760px; }
.prose p, .prose li { color: var(--ink-2); font-size: 1.06rem; line-height: 1.7; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.025em; line-height: 1.15; margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose strong { color: var(--ink); }
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.aside-card { position: sticky; top: calc(var(--header-h) + 24px); padding: 28px; border-radius: var(--radius-l); background: var(--dark); color: var(--on-dark); box-shadow: var(--shadow-2); }
.aside-card h3 { font-size: 1.2rem; margin-bottom: 14px; letter-spacing: -.01em; }
.aside-card ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.aside-card li { display: flex; gap: 10px; color: var(--on-dark-2); font-size: .95rem; line-height: 1.4; }
.aside-card li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310140b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.aside-card .btn { width: 100%; justify-content: center; margin-top: 8px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .aside-card { position: relative; top: 0; } }

/* product grid */
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.p-card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius-l); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-1);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.p-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.p-card:active { transform: scale(.985); transition-duration: .15s; }
.p-card .p-img { position: relative; aspect-ratio: 373 / 190; overflow: hidden; background: var(--bg-2); }
.p-card .p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.p-card:hover .p-img img { transform: scale(1.07); }
.p-price { position: absolute; right: 12px; bottom: 12px; padding: 7px 12px; border-radius: 999px; font-weight: 700; font-size: .92rem; letter-spacing: -.01em;
  background: rgba(20,22,18,.72); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-variant-numeric: tabular-nums; }
.p-price em { font-style: normal; font-weight: 500; opacity: .75; font-size: .8em; margin-right: 3px; }
.p-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.p-body .p-cat { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-deep); }
.p-body h3 { font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.2; }
.p-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; color: var(--ink-2); font-size: .92rem; }
.p-body ul li::before { content: "·"; color: var(--green-deep); font-weight: 800; margin-right: 8px; }
.p-more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .94rem; color: var(--ink); }
.p-more svg { transition: transform .45s var(--ease-out); }
.p-card:hover .p-more svg { transform: translateX(4px); }
.section-dark .p-card { background: var(--dark-2); color: var(--on-dark); box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
.section-dark .p-body ul { color: var(--on-dark-2); }
.section-dark .p-more { color: #fff; }
.section-dark .p-body .p-cat { color: var(--green); }

/* category tiles (ponudba overview) */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.cat-tile { position: relative; min-height: 300px; border-radius: var(--radius-l); overflow: hidden; color: #fff; display: flex; align-items: flex-end; isolation: isolate; background: var(--dark-2);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.cat-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.3s var(--ease-out); }
.cat-tile:hover img { transform: scale(1.08); }
.cat-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,12,8,.92), rgba(10,12,8,.15) 65%); }
.cat-tile div { padding: 24px; }
.cat-tile h3 { font-size: 1.5rem; letter-spacing: -.02em; }
.cat-tile p { margin: 6px 0 0; color: rgba(255,255,255,.78); font-size: .93rem; }
.cat-tile .count { position: absolute; top: 18px; left: 20px; padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: .78rem; font-weight: 600; }

/* product detail */
.pd { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.pd-media { position: sticky; top: calc(var(--header-h) + 24px); }
.pd-media .frame { border-radius: var(--radius-l); overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow-2); aspect-ratio: 373 / 190; }
.pd-media .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.pd-media .frame:hover img { transform: scale(1.05); }
.pd-media .note { margin-top: 12px; font-size: .85rem; color: var(--ink-3); }
.pd-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.pd-thumbs a { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-2); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.pd-thumbs a:hover img { transform: scale(1.08); }
.pd-info h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.02; letter-spacing: -.035em; margin: 10px 0 14px; }
.price-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 22px 0; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); }
.price-box .amount { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.price-box small { display: block; color: var(--ink-3); font-size: .8rem; margin-top: 6px; }
.spec { width: 100%; border-collapse: collapse; margin: 8px 0 0; font-size: .96rem; }
.spec th, .spec td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 42%; color: var(--ink-3); font-weight: 500; padding-right: 16px; }
.spec td { color: var(--ink); font-weight: 500; }
.checklist { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; color: var(--ink-2); }
.checklist li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(140,198,63,.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d8f1f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.pd-info h2 { font-size: 1.2rem; letter-spacing: -.01em; margin: 32px 0 6px; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(140,198,63,.16); color: var(--green-deep); font-size: .8rem; font-weight: 700; }
@media (max-width: 900px) { .pd { grid-template-columns: 1fr; } .pd-media { position: relative; top: 0; } }

/* breadcrumbs (light) */
.crumbs a { text-decoration: none; }
.crumbs .sep { opacity: .5; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); overflow: hidden; transition: box-shadow .4s; }
.faq details[open] { box-shadow: var(--shadow-2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative; font-weight: 650; font-size: 1.05rem; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1d18' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 12px no-repeat; transition: transform .5s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq .a { padding: 0 22px 20px; color: var(--ink-2); line-height: 1.65; }
.faq .a p { margin: 0; }

/* inquiry section */
.inquiry { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.inquiry .info-list { margin-top: 24px; }
@media (max-width: 900px) { .inquiry { grid-template-columns: 1fr; } }

/* related */
.rel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-1); font-weight: 600; font-size: .92rem; transition: transform .4s var(--ease-out), background-color .25s, color .25s; }
.chip:hover { transform: translateY(-2px); background: var(--ink); color: var(--on-dark); }
.chip.is-current { background: var(--green); color: #10140b; }

.footer-grid.four { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
@media (max-width: 900px) { .footer-grid.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid.four { grid-template-columns: 1fr; } }

/* ==========================================================================
   AI assistant + Baza znanja
   ========================================================================== */
.ai { position: fixed; right: 18px; bottom: 18px; z-index: 150; display: flex; flex-direction: column; align-items: flex-end; }
.to-top { bottom: 84px !important; }
.ai-fab {
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 8px; border-radius: 999px;
  color: #fff; background: rgba(18, 20, 16, .82); backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.12);
  font-weight: 600; font-size: .95rem; transition: transform .5s var(--ease-out), opacity .3s;
}
.ai-fab:hover { transform: translateY(-2px); }
.ai-fab:active { transform: scale(.95); transition-duration: .1s; }
.ai-fab .orb { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #10140b;
  background: conic-gradient(from 180deg, var(--green), #d8c27a, var(--wood), var(--green)); animation: orb 6s linear infinite; }
.ai-fab .orb svg { animation: orb 6s linear infinite reverse; }
@keyframes orb { to { transform: rotate(360deg); } }
.ai.is-open .ai-fab { opacity: 0; pointer-events: none; transform: scale(.8); }

.ai-panel {
  position: absolute; right: 0; bottom: 0; width: min(410px, calc(100vw - 36px)); height: min(640px, calc(100vh - 110px)); height: min(640px, calc(100dvh - 110px));
  display: flex; flex-direction: column; overflow: hidden; border-radius: 26px;
  background: rgba(247, 244, 238, .9); backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%);
  box-shadow: 0 40px 90px -24px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.6);
  transform-origin: calc(100% - 30px) calc(100% - 27px); transform: scale(.2); opacity: 0; filter: blur(8px); pointer-events: none;
  transition: transform .55s cubic-bezier(.32, 1.25, .5, 1), opacity .25s, filter .35s;
}
.ai.is-open .ai-panel { transform: none; opacity: 1; filter: none; pointer-events: auto; }
.ai-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px 16px; background: var(--dark); color: #fff; }
.ai-head .orb { width: 34px; height: 34px; border-radius: 50%; flex: none; background: conic-gradient(from 180deg, var(--green), #d8c27a, var(--wood), var(--green)); }
.ai-head b { display: block; font-size: .98rem; letter-spacing: -.01em; }
.ai-head small { display: block; color: var(--on-dark-2); font-size: .75rem; }
.ai-head .sp { flex: 1; }
.ai-head button { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.1); transition: background-color .2s, transform .15s; }
.ai-head button:hover { background: rgba(255,255,255,.2); }
.ai-head button:active { transform: scale(.9); }

.ai-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.ai-msg { max-width: 88%; padding: 11px 14px; border-radius: 18px; font-size: .93rem; line-height: 1.5; opacity: 0; transform: translateY(8px) scale(.98);
  transition: opacity .35s var(--ease-out), transform .5s var(--ease-out); }
.ai-msg.is-in { opacity: 1; transform: none; }
.ai-msg p { margin: 0 0 6px; } .ai-msg p:last-child { margin-bottom: 0; }
.ai-msg ul { margin: 4px 0 6px; padding-left: 18px; }
.ai-msg a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 2px; }
.ai-user { align-self: flex-end; background: var(--dark); color: #fff; border-bottom-right-radius: 6px; }
.ai-bot { align-self: flex-start; background: #fff; color: var(--ink); box-shadow: var(--shadow-1); border-bottom-left-radius: 6px; }
.ai-welcome h3 { font-size: 1.05rem; margin: 0 0 4px; letter-spacing: -.01em; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ai-chip { padding: 7px 11px; border-radius: 999px; background: var(--bg); font-size: .8rem; font-weight: 600; color: var(--ink-2); transition: background-color .2s, transform .15s; }
.ai-chip:hover { background: var(--green); color: #10140b; }
.ai-chip:active { transform: scale(.95); }
.has-chat .ai-chips { display: none; }
.ai-typing { display: flex; gap: 5px; padding: 14px 16px; }
.ai-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: dot 1.1s infinite ease-in-out; }
.ai-typing span:nth-child(2) { animation-delay: .15s; } .ai-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-5px); opacity: 1; } }
.ai-src { margin-top: 10px; display: grid; gap: 4px; }
.ai-src b { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.ai-src a { display: block; padding: 7px 10px; border-radius: 10px; background: var(--bg); color: var(--ink) !important; text-decoration: none !important; font-size: .82rem; font-weight: 600; transition: background-color .2s; }
.ai-src a:hover { background: rgba(140,198,63,.22); }
.ai-src.web a span::before { content: "↗ "; color: var(--ink-3); }
.ai-gsearch { margin-top: 10px; overflow-x: auto; }

.ai-notice { padding: 16px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-2); line-height: 1.5; }
.ai-notice p { margin: 0 0 10px; }
.ai-notice a { color: var(--green-deep); text-decoration: underline; }
.ai-notice .btn { height: 42px; width: 100%; justify-content: center; }
.ai-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); background: rgba(255,255,255,.6); }
.ai-input { flex: 1; resize: none; border: 1.5px solid transparent; outline: none; font: inherit; font-size: .95rem; line-height: 1.4; padding: 10px 14px; border-radius: 18px; background: #fff; max-height: 120px; transition: border-color .2s, box-shadow .2s; }
.ai-input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(140,198,63,.18); }
.ai-send { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #10140b; transition: transform .15s, opacity .2s; }
.ai-send:active { transform: scale(.9); }
.ai-send:disabled { opacity: .5; }
.ai-foot { padding: 0 14px 10px; font-size: .7rem; color: var(--ink-3); text-align: center; background: rgba(255,255,255,.6); }
@media (max-width: 520px) {
  .ai { right: 12px; bottom: 12px; }
  .to-top { bottom: 76px !important; right: 12px !important; }
  .ai-fab .label { display: none; }
  .ai-fab { padding: 0 8px; }
  .ai-panel { position: fixed; left: 8px; right: 8px; bottom: 8px; width: auto; height: calc(100dvh - 16px); transform-origin: calc(100% - 30px) calc(100% - 30px); }
}
@media (prefers-reduced-motion: reduce) { .ai-panel { transition: opacity .2s; transform: none; filter: none; } .ai-fab .orb, .ai-fab .orb svg { animation: none; } }
@media (prefers-reduced-transparency: reduce) { .ai-panel { background: var(--bg); backdrop-filter: none; } .ai-fab { background: var(--dark); backdrop-filter: none; } }

/* Greeting bubble ("Imate vprašanje?") */
.ai-greet {
  position: absolute; right: 0; bottom: 68px; width: max-content; max-width: min(290px, calc(100vw - 40px));
  padding: 14px 40px 14px 16px; border-radius: 20px 20px 6px 20px; text-align: left; cursor: pointer;
  color: var(--ink); background: rgba(255,255,255,.92); backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 24px 60px -18px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.7);
  transform-origin: calc(100% - 22px) calc(100% + 12px); transform: translateY(10px) scale(.6); opacity: 0; filter: blur(6px); pointer-events: none;
  transition: transform .6s cubic-bezier(.32, 1.35, .5, 1), opacity .3s, filter .4s;
}
.ai-greet[hidden] { display: block; visibility: hidden; }
.ai-greet.is-in { transform: none; opacity: 1; filter: none; pointer-events: auto; visibility: visible; }
.ai-greet::after { content: ""; position: absolute; right: 18px; bottom: -7px; width: 16px; height: 16px; background: inherit; transform: rotate(45deg); border-radius: 0 0 4px 0; }
.ai-greet b { display: block; font-size: .98rem; letter-spacing: -.01em; margin-bottom: 2px; }
.ai-greet p { margin: 0; font-size: .9rem; line-height: 1.45; color: var(--ink-2); min-height: 2.9em; }
.ai-greet .caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--green-deep); animation: caret .9s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ai-greet-x { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); background: rgba(0,0,0,.05); transition: background-color .2s; }
.ai-greet-x:hover { background: rgba(0,0,0,.1); color: var(--ink); }
.ai.is-open .ai-greet { opacity: 0 !important; pointer-events: none !important; transform: scale(.6) !important; }
/* attention: soft ring pulse + gentle wave on the button while greeting */
.ai-fab { position: relative; }
.ai-fab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(140,198,63,.55); pointer-events: none; }
.ai.is-greeting .ai-fab::before { animation: ring 1.8s var(--ease-out) 3; }
.ai.is-greeting .ai-fab .orb { animation: orb 6s linear infinite, nudge 1.2s var(--ease-out) 2; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(140,198,63,.55); } 100% { box-shadow: 0 0 0 18px rgba(140,198,63,0); } }
@keyframes nudge { 0%, 100% { scale: 1; } 30% { scale: 1.18; } 60% { scale: .96; } }
@media (max-width: 520px) { .ai-greet { bottom: 64px; } }
@media (prefers-reduced-motion: reduce) { .ai-greet { transition: opacity .3s; transform: none; filter: none; } .ai.is-greeting .ai-fab::before, .ai.is-greeting .ai-fab .orb { animation: none; } }

/* ---------- Mascot (mizar) as the assistant button ---------- */
.to-top { bottom: 236px !important; }
.ai-fab.ai-mascot {
  display: block; width: 128px; height: auto; padding: 0; margin: 0 -8px -14px 0; border-radius: 0; background: none; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none; cursor: pointer; transform-origin: 50% 100%;
  transform: translateY(118%) rotate(10deg); opacity: 0;
  transition: transform .5s var(--ease-out), opacity .4s;
  -webkit-tap-highlight-color: transparent;
}
.ai-fab.ai-mascot::before { display: none; }
.ai-fab.ai-mascot::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 10px; height: 14px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.35), transparent); z-index: -1; transition: transform .5s var(--ease-out), opacity .4s; }
.ai-mascot img { display: block; width: 100%; height: auto; transform-origin: 50% 100%; filter: drop-shadow(0 10px 14px rgba(0,0,0,.28)); }
.ai.is-ready .ai-fab.ai-mascot { transform: none; opacity: 1; transition: transform 1s cubic-bezier(.34, 1.45, .5, 1), opacity .3s; }
.ai.is-ready .ai-mascot img { animation: bob 3.8s ease-in-out 1.4s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.ai.is-ready .ai-fab.ai-mascot:hover { transform: translateY(-6px) scale(1.04); transition: transform .5s cubic-bezier(.34, 1.45, .5, 1); }
.ai.is-ready .ai-fab.ai-mascot:active { transform: scale(.95); transition-duration: .12s; }
.ai.is-greeting .ai-mascot img { animation: wave 1.3s ease-in-out 2; }
@keyframes wave { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-4deg); } 45% { transform: rotate(3deg); } 70% { transform: rotate(-2deg); } }
.ai.is-ducking .ai-fab.ai-mascot { transform: translateY(64%); transition: transform .45s var(--ease-out); }
.ai.is-open .ai-fab.ai-mascot { opacity: 0; transform: translateY(30%) scale(.85); pointer-events: none; }
.ai-greet { right: 112px; bottom: 128px; border-radius: 20px 20px 20px 20px; }
.ai-greet::after { right: -6px; bottom: 26px; border-radius: 0 4px 0 0; }
.ai-ava { width: 40px; height: 40px; flex: none; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.ai-ava img { width: 100%; height: 100%; display: block; }
@media (max-width: 520px) {
  .ai-fab.ai-mascot { width: 86px; margin: 0 -6px -10px 0; }
  .to-top { bottom: 150px !important; }
  .ai-greet { right: 76px; bottom: 78px; max-width: min(230px, calc(100vw - 100px)); }
}
@media (prefers-reduced-motion: reduce) {
  .ai-fab.ai-mascot, .ai.is-ready .ai-fab.ai-mascot { transform: none; transition: opacity .3s; }
  .ai.is-ready .ai-mascot img, .ai.is-greeting .ai-mascot img { animation: none; }
  .ai.is-ducking .ai-fab.ai-mascot { transform: none; }
}

/* ---------- "Talking" mascot: AI badge, sound waves, typing dots ---------- */
.ai-badge {
  position: absolute; left: 50%; top: -10px; transform: translateX(-50%); z-index: 2; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em; color: #10140b;
  background: linear-gradient(100deg, var(--green), #d8c27a); box-shadow: 0 6px 16px -6px rgba(0,0,0,.4);
  animation: badge 3.2s ease-in-out 2s infinite;
}
@keyframes badge { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-3px); } }
.ai-waves { position: absolute; left: 34px; top: 18px; width: 28px; height: 28px; pointer-events: none; opacity: 0; transition: opacity .3s; }
.ai-waves i { position: absolute; right: 0; top: 50%; border: 2px solid var(--green); border-right: 0; border-top-color: transparent; border-bottom-color: transparent; border-radius: 50%; transform: translateY(-50%); opacity: 0; }
.ai-waves i:nth-child(1) { width: 10px; height: 10px; }
.ai-waves i:nth-child(2) { width: 18px; height: 18px; animation-delay: .15s !important; }
.ai-waves i:nth-child(3) { width: 26px; height: 26px; animation-delay: .3s !important; }
.ai.is-talking .ai-waves { opacity: 1; }
.ai.is-talking .ai-waves i { animation: wv 1s ease-out infinite; }
@keyframes wv { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
.ai.is-talking .ai-mascot img { animation: talk .34s ease-in-out infinite alternate; }
@keyframes talk { from { transform: translateY(0) rotate(0); } to { transform: translateY(-3px) rotate(-1.2deg); } }
.ai-greet-title .w { display: inline-block; opacity: 0; transform: translateY(8px) scale(.9); }
.ai-greet.is-in .ai-greet-title .w { animation: wpop .5s cubic-bezier(.34, 1.56, .64, 1) forwards; }
@keyframes wpop { to { opacity: 1; transform: none; } }
.ai-dots { display: none; gap: 4px; padding: 4px 0; }
.ai-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: dot 1s infinite ease-in-out; }
.ai-dots i:nth-child(2) { animation-delay: .15s; } .ai-dots i:nth-child(3) { animation-delay: .3s; }
.ai-greet.is-typing .ai-dots { display: inline-flex; }
.ai-greet.is-typing .caret { display: none; }
.ai.is-open .ai-badge { opacity: 0; }
@media (max-width: 520px) { .ai-badge { font-size: .64rem; padding: 4px 8px; top: -8px; left: auto; right: 10px; transform: none; animation: none; } .ai-waves { left: 20px; top: 8px; transform: scale(.75); } }
@media (prefers-reduced-motion: reduce) { .ai-badge, .ai.is-talking .ai-mascot img, .ai.is-talking .ai-waves i { animation: none; } .ai-greet-title .w { opacity: 1; transform: none; } }

/* AI pomočnik label BELOW the mascot */
.ai { bottom: 12px; }
.ai-fab.ai-mascot { display: flex; flex-direction: column; align-items: center; margin: 0 -4px 0 0; }
.ai-fab.ai-mascot::after { bottom: 30px; }
.ai-badge { position: relative; left: auto; right: auto; top: auto; transform: none; margin-top: -6px; animation: none; }
.ai-greet { bottom: 150px; }
@media (max-width: 520px) {
  .ai { bottom: 8px; }
  .ai-fab.ai-mascot { margin: 0 -2px 0 0; }
  .ai-fab.ai-mascot::after { bottom: 24px; }
  .ai-badge { top: auto; right: auto; margin-top: -4px; }
  .ai-greet { bottom: 100px; }
  .to-top { bottom: 172px !important; }
}
.to-top { bottom: 262px !important; }
@media (max-width: 520px) { .to-top { bottom: 172px !important; } }

/* Baza znanja */
.kb-search { position: relative; max-width: 720px; margin-top: 28px; }
.kb-search input { width: 100%; height: 62px; border-radius: 999px; border: 0; outline: none; padding: 0 150px 0 56px; font: inherit; font-size: 1.05rem; color: var(--ink);
  background: #fff; box-shadow: 0 20px 50px -20px rgba(0,0,0,.5); transition: box-shadow .3s; }
.kb-search input:focus { box-shadow: 0 0 0 4px rgba(140,198,63,.45), 0 20px 50px -20px rgba(0,0,0,.5); }
.kb-search > svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.kb-search .btn { position: absolute; right: 7px; top: 7px; height: 48px; padding: 0 18px; }
.kb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.kb-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius-l); background: var(--surface); box-shadow: var(--shadow-1); transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.kb-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.kb-card[hidden] { display: none; }
.kb-card .t { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-deep); }
.kb-card h3 { font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.25; }
.kb-card p { margin: 0; color: var(--ink-2); font-size: .94rem; line-height: 1.55; }
.kb-card .p-more { margin-top: auto; }
.article { max-width: 760px; }
.article .prose h2 { margin-top: 40px; }
.article-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.ask-box { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 48px; padding: 24px 26px; border-radius: var(--radius-l); background: var(--dark); color: var(--on-dark); }
.ask-box p { margin: 4px 0 0; color: var(--on-dark-2); }

.ai-form[hidden], .ai-notice[hidden], .ask-box[hidden] { display: none !important; }


/* ==========================================================================
   LIGHT THEME — svetlejši videz (prepiše temne sekcije)
   ========================================================================== */
:root {
  --dark: #ece6da;          /* ozadje "temnih" sekcij → topla svetla */
  --dark-2: #ffffff;        /* kartice v teh sekcijah */
  --on-dark: #1b1d18;
  --on-dark-2: #5a5c53;
}
/* fotografije ostanejo z belim besedilom */
.hero { color: #fff; background: #2a2c25; }
.hero .hero-lead { color: rgba(255,255,255,.86); }
.hero-tab { color: rgba(255,255,255,.78); }
.hero::after {
  background:
    linear-gradient(180deg, rgba(10,12,8,.28) 0%, rgba(10,12,8,0) 22%),
    linear-gradient(0deg, rgba(10,12,8,.72) 0%, rgba(10,12,8,.28) 45%, rgba(10,12,8,0) 72%);
}
.page-hero { background: linear-gradient(160deg, #f6f2ea 0%, #eef1e4 60%, #f3ebdd 100%); color: var(--ink); }
.page-hero .crumbs a:hover { color: var(--ink); }
.page-hero.has-img { color: #fff; background: #2a2c25; }
.page-hero.has-img .lead { color: rgba(255,255,255,.88); }
.page-hero.has-img .crumbs, .page-hero.has-img .crumbs a { color: rgba(255,255,255,.82); }
.page-hero.has-img::after { background: linear-gradient(0deg, rgba(10,12,8,.8) 0%, rgba(10,12,8,.4) 50%, rgba(10,12,8,.18) 100%); }

/* header */
.site-header { color: var(--ink); }
.site-header::before, .site-header.is-scrolled::before { background: rgba(251, 249, 245, .86); border-bottom: 1px solid rgba(27,29,24,.08); }
.brand, .site-header .brand-fallback { color: var(--ink); }
.nav a { color: rgba(27,29,24,.74); }
.nav a:hover { color: var(--ink); background: rgba(27,29,24,.06); }
.nav a.is-active { color: #10140b; background: var(--green); }

/* mega menu */
.mega { background: rgba(252, 250, 246, .97); color: var(--ink); border-top-color: rgba(27,29,24,.06); box-shadow: 0 40px 80px -30px rgba(40,30,10,.35); }
.mega .mega-link { color: var(--ink-2); }
.mega .mega-link:hover, .mega .mega-link:focus-visible { background: rgba(27,29,24,.05); color: var(--ink); }
.mega .mega-link img { background: #eee; }
.mega-col h3 a { color: var(--green-deep); }
.mega-col h3 a:hover { color: var(--ink); }
.mega-foot { border-top-color: var(--line); }
.mega-foot a { color: var(--ink); }
.mega-foot a:hover { color: var(--green-deep); }

/* mobile menu */
.mobile-sheet { background: rgba(250, 248, 243, .96); color: var(--ink); }
.mobile-sheet nav .m-sub a { color: var(--ink-2); }
.mobile-sheet nav .m-sub a.cat, .mobile-sheet .sheet-foot a { color: var(--ink); }
.m-acc .m-sub b { color: var(--green-deep); }

/* light sections */
.section-dark .eyebrow { color: var(--green-deep); }
.section-dark .p-card { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }
.section-dark .p-more { color: var(--ink); }
.section-dark .p-body .p-cat { color: var(--green-deep); }
.section-dark .btn-light, .page-hero:not(.has-img) .btn-light, .hscroll .btn-light, .aside-card .btn-light, .catalog .btn-light {
  --b-bg: #fff; --b-fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); backdrop-filter: none; -webkit-backdrop-filter: none;
}
.marquee { background: #e6ecd9; color: var(--ink); border-top-color: rgba(27,29,24,.06); }
.marquee-track span:nth-child(even) { -webkit-text-stroke: 1px rgba(27,29,24,.38); }
.catalog { background: linear-gradient(120deg, rgba(140,198,63,.2), rgba(192,138,78,.18)); box-shadow: none; }
.aside-card { background: #fff; color: var(--ink); box-shadow: var(--shadow-2); }
.ask-box { background: linear-gradient(120deg, rgba(140,198,63,.2), rgba(192,138,78,.16)); color: var(--ink); }
.card { box-shadow: var(--shadow-1); }

/* footer */
.site-footer { background: #e9e2d4; color: var(--ink-2); }
.footer-big { color: rgba(27,29,24,.07); }
.footer-grid { border-bottom-color: rgba(27,29,24,.1); }
.footer-grid h4 { color: var(--ink); }
.footer-grid a:hover, .footer-meta a:hover { color: var(--green-deep); }

/* cookie banner, to-top */
.cc { background: rgba(255,255,255,.95); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(40,30,10,.35), inset 0 0 0 1px rgba(27,29,24,.06); }
.cc p a { color: var(--green-deep); }
.cc-row { background: var(--bg); }
.cc-row b { color: var(--ink); }
.cc .btn-ghost { --b-fg: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--line) !important; }
.switch i { background: rgba(27,29,24,.14); }
.to-top { background: rgba(255,255,255,.92); color: var(--ink); box-shadow: 0 10px 30px -8px rgba(40,30,10,.3); }

/* AI chat */
.ai-head { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.ai-head small { color: var(--ink-3); }
.ai-head button { color: var(--ink); background: rgba(27,29,24,.06); }
.ai-head button:hover { background: rgba(27,29,24,.12); }
.ai-user { background: var(--green); color: #10140b; }

@media (prefers-reduced-transparency: reduce) {
  .site-header::before, .mobile-sheet, .cc { background: #fbf9f5 !important; }
}

/* ---------- Home gallery: two auto-scrolling rows ---------- */
.gal-marquee { overflow: hidden; }
.gal-marquee .rel-head { margin-bottom: 36px; }
.gm-rows { display: grid; gap: 14px; }
.gm-row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.gm-track { display: flex; gap: 14px; width: max-content; padding: 8px 0; animation: gm 70s linear infinite; }
.gm-right .gm-track { animation-direction: reverse; animation-duration: 80s; }
.gm-row:hover .gm-track { animation-play-state: paused; }
@keyframes gm { to { transform: translateX(calc(-50% - 7px)); } }
.gm-item { flex: none; width: clamp(200px, 22vw, 320px); aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow-1); transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.gm-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.gm-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.gm-item:hover img { transform: scale(1.08); }
@media (max-width: 640px) { .gm-item { width: 62vw; border-radius: 16px; } .gm-track { animation-duration: 55s; } }
@media (prefers-reduced-motion: reduce) { .gm-track { animation: none; } .gm-row { overflow-x: auto; } }

/* ---------- Footer: green animated FURNEA ---------- */
.footer-big { display: flex; color: transparent; }
.footer-big span {
  display: inline-block;
  background: linear-gradient(100deg, #5d8f1f 0%, #8cc63f 30%, #d4ec9f 45%, #8cc63f 60%, #5d8f1f 100%);
  background-size: 600% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; transform: translateY(40%) rotate(4deg);
  transition: opacity .7s var(--ease-out), transform 1s cubic-bezier(.34, 1.45, .5, 1);
  transition-delay: calc(var(--l) * 70ms);
  animation: fb-shine 7s linear infinite; animation-delay: calc(var(--l) * -.25s);
}
.footer-big.is-in span { opacity: 1; transform: none; }
.footer-big span:hover { transform: translateY(-8%); transition: transform .4s cubic-bezier(.34, 1.8, .5, 1); transition-delay: 0s; }
@keyframes fb-shine { from { background-position: 0% 0; } to { background-position: 600% 0; } }
@media (prefers-reduced-motion: reduce) { .footer-big span { opacity: 1; transform: none; animation: none; } }
