/* M-učilnica – javna stran. Slike se nikoli ne obrezujejo (object-fit ni cover).
   Pisave naloži theme_head() v lib/render.php (privzeto Bodoni Moda za naslove, Poppins za besedilo, Luxurious Script za citate). */

:root {
  --gold: #bf8b31;
  --gold-hi: #e7b861;
  --gold-dark: #8a621e;
  --gold-soft: #f7f0e1;
  --ink: #17171c;
  --ink-soft: #545866;
  --cream: #fbf8f2;
  --white: #ffffff;
  --line: #ebe4d4;
  --line-strong: #dcd2bd;
  --radius: 22px;
  --radius-lg: 32px;
  --shadow-sm: 0 1px 2px rgba(23, 23, 28, .05);
  --shadow: 0 1px 2px rgba(23, 23, 28, .04), 0 10px 30px -12px rgba(23, 23, 28, .12);
  --shadow-hi: 0 2px 4px rgba(23, 23, 28, .04), 0 30px 60px -24px rgba(23, 23, 28, .28);
  --shadow-gold: 0 18px 40px -18px rgba(154, 110, 34, .55);
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .15, 1);
  --head: "Bodoni Moda", "Bauer Bodoni", Georgia, serif;
  --script: "Luxurious Script", cursive;
  --body: "Poppins", system-ui, sans-serif;
  --dots: radial-gradient(rgba(23, 23, 28, .09) 1px, transparent 1.4px);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.05 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M3 15 C 60 4, 110 4, 160 12 S 260 21, 297 8' fill='none' stroke='%23e7b861' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.7; color: var(--ink);
  background: var(--cream); overflow-x: hidden; overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* Rahla papirnata tekstura čez celo stran */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none; background-image: var(--grain);
  opacity: .05; mix-blend-mode: multiply;
}
::selection { background: rgba(231, 184, 97, .45); color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }
h1, h2, h3 {
  font-family: var(--head); line-height: 1.12; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.015em;
  font-optical-sizing: auto; text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 600; line-height: 1.04; letter-spacing: -.025em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); font-weight: 600; letter-spacing: -.02em; }
h3 { font-size: 1.28rem; font-weight: 600; }
h1 em, h2 em, h1 i, h2 i { font-style: italic; font-weight: 500; color: var(--gold-dark); }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding: 0; }
strong, b { font-weight: 600; }
.wrap { width: min(100% - 48px, var(--max)); margin-inline: auto; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.lead { font-size: 1.16rem; line-height: 1.65; color: var(--ink-soft); max-width: 60ch; }
.section { padding: clamp(72px, 9vw, 128px) 0; position: relative; }
.section--tight { padding: clamp(36px, 5vw, 64px) 0; }
.section--alt { background: var(--white); }
.section--alt + .section--alt { padding-top: 0; }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 760px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head .lead { margin-top: 14px; }
.section-head h2 { margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--body); font-size: .76rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 18px; line-height: 1.3;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; flex-shrink: 0; background: var(--gold); transform: rotate(45deg); border-radius: 2px;
  box-shadow: 0 0 0 4px rgba(191, 139, 49, .16);
}
.center .eyebrow::after { content: none; }

/* Fokus in dostopnost */
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 1000; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; opacity: 0 !important; }

/* Gumbi */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--body); font-weight: 600; font-size: 1rem; letter-spacing: -.005em; padding: 1em 1.75em; border-radius: 999px;
  border: 1.5px solid transparent; text-decoration: none; cursor: pointer; background: var(--ink); color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 10px 24px -12px rgba(23, 23, 28, .6);
  transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .35s var(--ease), border-color .3s;
  will-change: transform;
}
.btn::after {
  content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.32), transparent 45%);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.btn:hover { background: var(--gold-dark); color: var(--white); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), var(--shadow-gold); }
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .7; cursor: progress; }
.btn--ghost { background: rgba(255, 255, 255, .6); color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--ink); box-shadow: 0 14px 30px -16px rgba(23,23,28,.35); }
.btn--light { background: var(--white); color: var(--ink); box-shadow: 0 12px 28px -14px rgba(0,0,0,.4); }
.btn--light:hover { background: var(--ink); color: var(--white); box-shadow: 0 16px 32px -14px rgba(0,0,0,.5); }

/* Glava: lebdeča plošča */
.site-header {
  position: sticky; top: 0; z-index: 60; padding: 14px 0;
  transition: transform .5s var(--ease), padding .4s var(--ease);
}
.site-header .nav {
  background: rgba(255, 255, 255, .72); border: 1px solid rgba(220, 210, 189, .7); border-radius: 999px;
  backdrop-filter: saturate(170%) blur(16px); -webkit-backdrop-filter: saturate(170%) blur(16px);
  padding: 0 10px 0 22px; box-shadow: 0 1px 2px rgba(23,23,28,.04);
  transition: box-shadow .4s, background .4s, border-color .4s;
}
.site-header.is-scrolled { padding: 10px 0; }
.site-header.is-scrolled .nav { background: rgba(255, 255, 255, .9); box-shadow: 0 16px 40px -20px rgba(23,23,28,.3); }
.site-header.is-hidden { transform: translateY(-110%); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 68px; position: relative; }
.brand { display: inline-flex; flex-shrink: 0; transition: transform .4s var(--ease); }
.brand:hover { transform: scale(1.03) rotate(-1deg); }
.brand img { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; }
.nav-links a {
  position: relative; display: block; padding: 9px 14px; border-radius: 999px; color: var(--ink); text-decoration: none;
  font-family: var(--body); font-weight: 500; font-size: .95rem; transition: color .3s, background .3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; margin-left: -2.5px; background: var(--gold); border-radius: 50%;
  transform: scale(0); transition: transform .4s var(--ease);
}
.nav-links a:hover { background: var(--gold-soft); color: var(--ink); }
.nav-links a[aria-current="page"]::after { transform: scale(1); }
.nav-links a[aria-current="page"] { color: var(--gold-dark); font-weight: 600; }
.nav-cta { margin-left: 8px; }
.nav-links .nav-cta a.btn { display: inline-flex; color: var(--white); background: var(--ink); }
.nav-links .nav-cta a.btn:hover { background: var(--gold-dark); }
.nav-links .nav-cta a.btn::after { display: none; }
.nav-cta .btn { padding: .72em 1.35em; font-size: .93rem; }
.nav-cta .btn::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 0 3px rgba(231,184,97,.25); }
.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: var(--white); border-radius: 50%;
  cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .4s var(--ease), background .3s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Napredek bralca */
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; background: transparent; z-index: 70; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold-dark), var(--gold-hi)); transform-origin: 0 50%; transform: scaleX(0); }

/* Hero */
.hero { position: relative; margin-top: -96px; padding: calc(96px + clamp(36px, 6vw, 88px)) 0 clamp(72px, 9vw, 128px); overflow: hidden; isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; filter: blur(70px); z-index: -1; }
.hero::before { width: 620px; height: 620px; background: rgba(231,184,97,.32); top: -220px; right: -160px; animation: drift 18s ease-in-out infinite; }
.hero::after { width: 460px; height: 460px; background: rgba(191,139,49,.16); bottom: -200px; left: -160px; animation: drift 22s ease-in-out infinite reverse; }
.hero .wrap { position: relative; z-index: 1; }
.hero .wrap::before {
  content: ""; position: absolute; z-index: -1; left: -48px; top: -40px; width: 300px; height: 240px; background-image: var(--dots); background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent); pointer-events: none;
}
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-30px) scale(1.06); } }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { max-width: 13ch; }
.hero h1 span {
  font-style: italic; font-weight: 500; color: var(--gold-dark); padding-bottom: .08em;
  background: var(--squiggle) no-repeat left bottom / 100% .32em;
}
.hero .lead { font-size: 1.22rem; margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }
.hero-actions .btn:first-child::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 0 4px rgba(231,184,97,.25); }
.hero-meta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px; color: var(--ink-soft); font-size: .9rem; }
.hero-meta span {
  display: inline-flex; gap: 6px; align-items: baseline; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.7);
  border: 1px solid var(--line); line-height: 1.3;
}
.hero-meta strong { color: var(--ink); font-weight: 600; }
.hero-media { position: relative; margin: 0; isolation: isolate; }
.hero-media::before {
  content: ""; position: absolute; z-index: -1; inset: 8% -5% -6% 10%; border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--gold-hi), var(--gold) 60%, var(--gold-dark)); transform: rotate(4deg);
  box-shadow: var(--shadow-gold);
}
.hero-media::after {
  content: ""; position: absolute; z-index: -2; right: -28px; top: -34px; width: 150px; height: 150px; background-image: var(--dots); background-size: 14px 14px;
}
.hero-media img {
  width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-hi); border: 6px solid var(--white);
  transform: translateY(var(--py, 0px)); transition: transform .2s linear;
}
.hero-badge {
  position: absolute; left: -28px; bottom: -26px; background: var(--white); border-radius: 20px; padding: 16px 20px 16px 66px;
  box-shadow: var(--shadow-hi); font-size: .9rem; line-height: 1.45; max-width: 300px; animation: floatY 6s ease-in-out infinite;
  color: var(--ink-soft); border: 1px solid var(--line);
}
.hero-badge::before {
  content: "✦"; position: absolute; left: 16px; top: 16px; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  background: var(--ink); color: var(--gold-hi); font-size: 1rem;
}
.hero-badge strong { display: block; font-family: var(--head); color: var(--ink); font-size: 1.05rem; font-weight: 600; margin-bottom: 2px; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Podstrani */
.page-hero { margin-top: -96px; padding: calc(96px + clamp(36px, 5vw, 72px)) 0 clamp(48px, 6vw, 88px); position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; z-index: -1; width: 560px; height: 560px; border-radius: 50%; background: rgba(231,184,97,.26); filter: blur(80px);
  top: -240px; right: -140px;
}
.page-hero::after {
  content: ""; position: absolute; z-index: -1; inset: 0; background-image: var(--dots); background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%); mask-image: linear-gradient(180deg, #000 0%, transparent 75%); opacity: .7;
}
.page-hero .wrap { position: relative; }
.page-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.page-hero-grid > div:only-child { max-width: 760px; }
/* Glava strani brez slike: okrasni žig na desni strani */
.page-hero-grid:has(> div:only-child)::after {
  content: "M"; justify-self: end; align-self: center; display: grid; place-items: center; width: clamp(220px, 24vw, 320px); aspect-ratio: 1;
  border-radius: 50%; font-family: var(--head); font-style: italic; font-weight: 500; font-size: clamp(7rem, 12vw, 10rem); line-height: 1;
  color: var(--gold); background: radial-gradient(circle, var(--white) 52%, transparent 53%), repeating-radial-gradient(circle, transparent 0 14px, rgba(191,139,49,.18) 14px 15px);
  box-shadow: inset 0 0 0 1.5px rgba(191,139,49,.35); transform: rotate(-8deg);
}
.page-hero-media { position: relative; margin: 0 auto; width: fit-content; max-width: 100%; isolation: isolate; }
.page-hero-media::before {
  content: ""; position: absolute; z-index: -1; inset: 6% -18px -18px 8%; border-radius: 28px; background: var(--gold-soft);
  border: 1.5px dashed rgba(191,139,49,.55); transform: rotate(3deg);
}
.page-hero-media img {
  width: auto; max-width: 100%; max-height: min(620px, 72vh); height: auto; border-radius: 26px; box-shadow: var(--shadow-hi); border: 6px solid var(--white);
}
.page-hero h1 { margin-bottom: 0; }
.page-hero .lead { margin-top: 20px; }
.crumbs {
  display: inline-flex; gap: 6px; align-items: center; font-size: .84rem; color: var(--ink-soft); margin-bottom: 22px; padding: 6px 14px;
  border-radius: 999px; background: rgba(255,255,255,.75); border: 1px solid var(--line);
}
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--gold-dark); }
.crumbs + .eyebrow { display: flex; }

/* Drsni trak */
.marquee {
  position: relative; z-index: 2; overflow: hidden; background: var(--ink); color: var(--cream); padding: 20px 0;
  transform: rotate(-1.2deg) scaleX(1.03); margin: -8px 0; box-shadow: 0 20px 40px -24px rgba(23,23,28,.6);
}
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font-family: var(--head); font-style: italic; font-weight: 500; font-size: 1.35rem; white-space: nowrap; padding: 0 18px; letter-spacing: -.005em; }
.marquee i { font-style: normal; color: var(--gold-hi); padding: 0 6px; font-size: .9rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Banner */
.banner {
  position: relative; overflow: hidden; isolation: isolate; color: #efe9dc; border-radius: var(--radius-lg);
  background: radial-gradient(600px 300px at 90% 0%, rgba(231,184,97,.32), transparent 70%), linear-gradient(150deg, #24242c, var(--ink) 70%);
  padding: clamp(32px, 5vw, 64px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px;
  box-shadow: var(--shadow-hi);
}
.banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000);
}
.banner::after {
  content: ""; position: absolute; z-index: -1; right: -60px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%;
  border: 1px solid rgba(231,184,97,.25); box-shadow: 0 0 0 40px rgba(231,184,97,.04), 0 0 0 80px rgba(231,184,97,.03);
}
.banner > div { flex: 1 1 420px; }
.banner h2 { color: var(--white); margin-bottom: .3em; font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.banner p { margin: 0; color: #cfc8ba; max-width: 56ch; font-size: 1.05rem; }
.banner .eyebrow { color: var(--gold-hi); }
.banner .eyebrow::before { background: var(--gold-hi); box-shadow: 0 0 0 4px rgba(231,184,97,.18); }
.banner .btn--light:hover { background: var(--gold-hi); color: var(--ink); }

/* Mreže in kartice */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  position: relative; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column; isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(231,184,97,.16), transparent 45%);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hi); border-color: rgba(191,139,49,.45); }
.card:hover::before { opacity: 1; }
/* Slika v kartici: cela fotografija na »paspartuju«, nič se ne obreže */
.card-img {
  position: relative; overflow: hidden; aspect-ratio: 5 / 4; border-bottom: 1px solid var(--line);
  background: radial-gradient(rgba(154,110,34,.14) 1px, transparent 1.4px) 0 0 / 16px 16px, linear-gradient(160deg, #fbf3e3, var(--gold-soft));
}
.grid--4 .card-img { aspect-ratio: 4 / 5; }
.grid--3 .card-img { aspect-ratio: 1 / 1; }
.card-img img {
  position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: calc(100% - 40px); max-height: calc(100% - 40px);
  border-radius: 12px; border: 4px solid var(--white); box-shadow: 0 16px 30px -14px rgba(23,23,28,.45);
  transform: rotate(-2deg); transition: transform .8s var(--ease);
}
.grid > .card:nth-child(even) .card-img img { transform: rotate(2deg); }
.card:hover .card-img img, .grid > .card:nth-child(even):hover .card-img img { transform: rotate(0) scale(1.04); }
.card-body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--ink-soft); font-size: .98rem; margin-bottom: 0; }
.card-body h3 { margin-bottom: 10px; font-size: 1.32rem; }
.card-body .more {
  margin-top: auto; padding-top: 22px; font-family: var(--body); font-weight: 600; text-decoration: none; color: var(--ink);
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
}
.card-body p + .more { margin-top: auto; }
.card-body .more::after {
  content: "→"; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-dark);
  transition: transform .45s var(--ease), background .3s, color .3s;
}
.card:hover .card-body .more::after { transform: translateX(4px); background: var(--ink); color: var(--gold-hi); }
.card--plain { padding: clamp(26px, 3vw, 38px); }
.card--plain .card-body { padding: 34px; }
.card--plain > h3 { font-size: 1.4rem; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.icon {
  width: 56px; height: 56px; border-radius: 18px; background: linear-gradient(150deg, #fff6e4, var(--gold-soft)); border: 1px solid rgba(191,139,49,.25);
  display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 20px; transition: transform .5s var(--ease); flex-shrink: 0; color: var(--gold-dark);
}
.card:hover .icon { transform: rotate(-8deg) scale(1.08); }

/* Vrednote */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: val; }
.value {
  position: relative; padding: 32px 28px 30px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .5s var(--ease), box-shadow .5s, border-color .4s; overflow: hidden;
}
.value::before {
  counter-increment: val; content: "0" counter(val); display: block; font-family: var(--head); font-style: italic; font-weight: 500;
  font-size: 2.6rem; line-height: 1; color: var(--gold); margin-bottom: 22px; transition: transform .5s var(--ease);
}
.value::after {
  content: ""; position: absolute; left: 28px; right: 28px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-hi)); transform: scaleX(.2); transform-origin: left; transition: transform .6s var(--ease);
}
.value:hover { transform: translateY(-6px); box-shadow: var(--shadow-hi); border-color: rgba(191,139,49,.4); }
.value:hover::after { transform: scaleX(1); }
.value h3 { font-size: 1.22rem; margin-bottom: 8px; }
.value p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* Razdeljeni blok */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 104px); align-items: center; }
.split-img { position: relative; margin: 0 auto; width: fit-content; max-width: 100%; isolation: isolate; }
.split-img::before {
  content: ""; position: absolute; z-index: -1; inset: 10% 8% -22px -22px; border-radius: 30px;
  background: linear-gradient(150deg, var(--gold-hi), var(--gold)); transform: rotate(-3deg); opacity: .9;
}
.split-img img {
  width: auto; max-width: 100%; max-height: min(640px, 80vh); height: auto; border-radius: 26px; border: 6px solid var(--white);
  box-shadow: var(--shadow-hi); transition: transform 1.2s var(--ease);
}
.split-img:hover img { transform: rotate(.6deg) scale(1.015); }
.split-text h2 { margin-top: 0; }
.split-text p { color: var(--ink-soft); font-size: 1.06rem; }
.split .hero-actions { margin-top: 22px; }
/* Razdeljeni blok brez slike: levo besedilo ostane na mestu, desno se seznam in koraki zložijo v stolpec */
.split:not(:has(> .split-img)) { align-items: start; }
.split:not(:has(> .split-img)) > div:first-child { position: sticky; top: 120px; }
.split .steps { grid-template-columns: 1fr; gap: 14px; }
.split .steps .step { padding: 24px 26px 24px 90px; }
.split .steps .step::before { width: 46px; height: 46px; left: 24px; top: 22px; font-size: 1.3rem; }
.split > div > .checks + .steps { margin-top: 20px; }
.note {
  position: relative; background: linear-gradient(150deg, #fff8ea, var(--gold-soft)); border: 1px solid rgba(191,139,49,.28);
  padding: 20px 24px 20px 58px; border-radius: 18px; margin: 24px 0 0; color: var(--ink);
}
.note::before {
  content: "i"; position: absolute; left: 20px; top: 20px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: var(--white);
  display: grid; place-items: center; font-family: var(--head); font-style: italic; font-weight: 700; font-size: .9rem; line-height: 1;
}
.checks { list-style: none; margin: 0 0 1em; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 40px; color: var(--ink-soft); line-height: 1.6; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .12em; width: 26px; height: 26px; border-radius: 9px;
  background: linear-gradient(150deg, var(--gold-hi), var(--gold)); box-shadow: 0 6px 14px -4px rgba(191,139,49,.55);
}
.checks li::after {
  content: ""; position: absolute; left: 10px; top: calc(.12em + 6px); width: 6px; height: 11px; border: solid var(--white);
  border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.checks li strong { color: var(--ink); }
.split > div > .checks { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow); gap: 16px; }
.section--alt .split > div > .checks { background: var(--cream); box-shadow: none; }
.two-lists .card--plain h3 { margin-bottom: 22px; }
.two-lists + * .lead, .section > .wrap > .lead { margin-bottom: 32px; }
.more-line { margin-top: 40px; }
.more-line a {
  font-family: var(--body); font-weight: 600; text-decoration: none; color: var(--ink); display: inline-flex; gap: 10px; align-items: center;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--line-strong); transition: border-color .3s, background .3s;
}
.more-line a:hover { border-color: var(--ink); background: var(--white); }

/* Koraki */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 8px; }
.step {
  position: relative; background: var(--white); border-radius: var(--radius); padding: 30px 30px 30px 100px; border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: transform .5s var(--ease), box-shadow .5s, border-color .4s;
}
.step::before {
  counter-increment: step; content: counter(step); position: absolute; left: 26px; top: 26px; width: 52px; height: 52px; border-radius: 16px;
  background: var(--ink); color: var(--gold-hi); font-family: var(--head); font-style: italic; font-weight: 600; font-size: 1.5rem;
  display: grid; place-items: center; transition: background .4s, color .4s, transform .5s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-hi); border-color: rgba(191,139,49,.4); }
.step:hover::before { background: var(--gold); color: var(--white); transform: rotate(-8deg); }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.section--alt .step { background: var(--cream); box-shadow: none; }

/* Predmeti */
.subjects { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; }
.subject {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 100%; padding: 22px 24px; border-radius: 18px;
  background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-family: var(--head); font-weight: 600; font-size: 1.15rem;
  box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), border-color .3s, box-shadow .4s, background .3s;
}
.subject small {
  font-family: var(--body); font-weight: 600; color: var(--gold-dark); background: var(--gold-soft); padding: 5px 11px; border-radius: 999px;
  font-size: .76rem; white-space: nowrap; letter-spacing: .02em; transition: background .3s, color .3s;
}
.subject:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow-hi); color: var(--ink); }
.subject:hover small { background: var(--ink); color: var(--gold-hi); }

/* Dogodki */
.event {
  display: grid; grid-template-columns: 112px 1fr; gap: 24px; align-items: center; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 26px 18px 18px; box-shadow: var(--shadow); transition: transform .5s var(--ease), box-shadow .5s, border-color .4s;
}
.event:hover { transform: translateY(-5px); box-shadow: var(--shadow-hi); border-color: rgba(191,139,49,.4); }
.event-date {
  position: relative; background: linear-gradient(160deg, #26262e, var(--ink)); color: var(--white); border-radius: 18px; text-align: center;
  padding: 22px 6px 16px; font-family: var(--head); overflow: hidden;
}
.event-date::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); }
.event-date b { display: block; font-size: 2.4rem; line-height: 1; font-weight: 600; }
.event-date span { display: block; margin-top: 6px; font-family: var(--body); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-hi); }
.event h3 { margin: 0 0 6px; font-size: 1.2rem; }
.event p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* Cenik */
.price-card { padding: 30px 30px 28px; gap: 6px; }
.price-card h3 { margin-bottom: 4px; font-size: 1.3rem; }
.tag-line { color: var(--ink-soft); font-size: .93rem; margin: 0; }
.price {
  font-family: var(--head); font-weight: 600; font-size: 1.55rem; line-height: 1.2; color: var(--ink); margin: auto 0 0; padding-top: 22px;
  border-top: 1px dashed var(--line-strong); margin-top: auto;
}
.tag-line + .price, h3 + .price { margin-top: 22px; }
.price::before {
  content: "Cena"; display: block; font-family: var(--body); font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 4px;
}
.price-card.is-featured {
  border: 1.5px solid var(--gold); background: radial-gradient(400px 200px at 100% 0%, rgba(231,184,97,.22), transparent 70%), var(--white);
  box-shadow: var(--shadow-gold);
}
.badge {
  align-self: flex-start; background: var(--ink); color: var(--gold-hi); font-family: var(--body); font-size: .74rem; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; letter-spacing: .04em; margin-bottom: 12px;
}
.is-featured .badge { background: linear-gradient(150deg, var(--gold-hi), var(--gold)); color: var(--ink); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--white); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { text-align: left; padding: 20px 26px; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  font-family: var(--body); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi);
  background: var(--ink);
}
td { color: var(--ink-soft); }
td:first-child { color: var(--ink); font-weight: 500; }
td:last-child { font-family: var(--head); font-weight: 600; color: var(--ink); }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .3s; }
tbody tr:nth-child(even) { background: #fdfbf6; }
tbody tr:hover { background: var(--gold-soft); }

/* Oznake */
.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; }
.tags li {
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px 10px 16px; font-size: .95rem; font-weight: 500;
  display: inline-flex; align-items: center; gap: 9px; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), background .3s, border-color .3s, box-shadow .35s;
}
.tags li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.tags li:hover { transform: translateY(-3px); background: var(--gold-soft); border-color: var(--gold); box-shadow: var(--shadow); }
.section--alt .tags li { background: var(--cream); }
.card .tags li { background: var(--cream); box-shadow: none; }
.card--plain .tags { margin-top: 4px; }

/* CTA */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-lg); padding: clamp(36px, 5.5vw, 72px);
  background: linear-gradient(120deg, var(--gold-hi) 0%, var(--gold) 55%, #b07c24 100%); color: var(--ink);
  display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; align-items: center; box-shadow: var(--shadow-gold);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(23,23,28,.12) 1px, transparent 1.4px); background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(270deg, #000, transparent 70%); mask-image: linear-gradient(270deg, #000, transparent 70%);
}
.cta-band::after {
  content: ""; position: absolute; z-index: -1; width: 360px; height: 360px; border-radius: 50%; right: -100px; top: -160px;
  background: radial-gradient(circle, rgba(255,255,255,.4), transparent 65%);
}
.cta-band > div { flex: 1 1 420px; }
.cta-band h2 { color: var(--ink); margin: 0 0 8px; font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
.cta-band p { margin: 0; color: rgba(23,23,28,.78); font-size: 1.08rem; max-width: 56ch; }
.cta-band .btn--light { background: var(--ink); color: var(--white); padding: 1.1em 2em; }
.cta-band .btn--light::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-hi); }
.cta-band .btn--light:hover { background: var(--white); color: var(--ink); }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-list { list-style: none; margin: 28px 0 0; display: grid; gap: 12px; }
.contact-list li {
  display: flex; gap: 18px; align-items: flex-start; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-sm); transition: border-color .3s, box-shadow .4s, transform .4s var(--ease);
}
.contact-list li:hover { border-color: rgba(191,139,49,.45); box-shadow: var(--shadow); transform: translateX(4px); }
.contact-list .icon { margin: 0; width: 48px; height: 48px; border-radius: 14px; background: var(--ink); color: var(--gold-hi); border: 0; font-size: 1.15rem; }
.contact-list strong { display: block; font-family: var(--body); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 2px; }
.contact-list a { text-decoration: none; font-weight: 600; color: var(--ink); }
.contact-list a:hover { color: var(--gold-dark); }
.contact-list li:last-child a { font-weight: 500; font-size: .93rem; color: var(--gold-dark); }
.contact-block h3 { margin-top: 0; }
.hours {
  max-width: 460px; margin-top: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 6px 22px; box-shadow: var(--shadow-sm);
}
.hours div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--line-strong); padding: 13px 0; }
.hours div:last-child { border-bottom: 0; }
.hours span:first-child { font-weight: 600; }
.hours span:last-child { color: var(--ink-soft); text-align: right; }
form.contact-form {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 48px);
  box-shadow: var(--shadow-hi); display: grid; gap: 18px; overflow: hidden;
}
form.contact-form::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-hi));
}
form.contact-form > h3 { margin: 0 0 4px; font-size: 1.7rem; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--body); font-weight: 600; font-size: .88rem; color: var(--ink); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--cream); color: var(--ink); width: 100%;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%239a6e22' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--line-strong); }
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9a988f; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 4px rgba(191,139,49,.16); }
.contact-form .btn { justify-self: start; padding-inline: 2.2em; }
.form-note { font-size: .85rem; color: var(--ink-soft); margin: 0; }
.form-status { display: none; padding: 12px 16px; border-radius: 14px; background: var(--gold-soft); margin: 0; }
.form-status.is-visible { display: block; animation: rise .4s var(--ease); }

/* Noga */
.site-footer {
  background: radial-gradient(700px 320px at 10% 0%, rgba(191,139,49,.18), transparent 70%), var(--ink);
  color: #c9c3b6; padding: 88px 0 32px; font-size: .95rem; position: relative; overflow: hidden; isolation: isolate;
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.site-footer::after {
  content: "M"; position: absolute; z-index: -1; right: -2vw; bottom: -.32em; font-family: var(--head); font-style: italic; font-weight: 600;
  font-size: clamp(16rem, 34vw, 30rem); line-height: 1; color: rgba(231,184,97,.05); pointer-events: none;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; }
.site-footer h3 {
  color: var(--gold-hi); font-family: var(--body); font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px;
}
.site-footer a { color: #f1ebdd; text-decoration: none; transition: color .3s, padding .3s var(--ease); }
.site-footer ul a:hover { color: var(--gold-hi); padding-left: 4px; }
.site-footer ul { list-style: none; margin: 0; display: grid; gap: 10px; }
.footer-logo { height: 62px; width: auto; background: var(--cream); border-radius: 16px; padding: 10px 16px; }
.footer-tag { margin-top: 20px; max-width: 34ch; font-family: var(--head); font-size: 1.3rem; line-height: 1.4; color: #efe9dc; font-weight: 400; font-style: italic; }
.footer-bottom {
  margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: .84rem; color: #9d978a;
}

/* Pojavljanje (samo z JavaScriptom) */
.js .reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .card.reveal.is-in:hover, .js .value.reveal.is-in:hover { transform: translateY(-6px); transition-delay: 0s; }
.js .step.reveal.is-in:hover, .js .subject:hover { transition-delay: 0s; }
.js .step.reveal.is-in:hover { transform: translateY(-4px); }
.js .event.reveal.is-in:hover { transform: translateY(-5px); transition-delay: 0s; }
.js .contact-list li.reveal.is-in:hover { transform: translateX(4px); transition-delay: 0s; }
.js .fx { opacity: 0; transform: translate3d(0, 22px, 0); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
.js .fx.is-in { opacity: 1; transform: none; filter: none; }
.js .hero-media { opacity: 0; transform: translate3d(0, 40px, 0) scale(.96); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); }
.js .hero-media.is-in { opacity: 1; transform: none; }
.js .hero-media.is-in img { animation: settle 1.6s var(--ease) both; }
@keyframes settle { from { clip-path: inset(0 0 100% 0 round 32px); } to { clip-path: inset(0 0 0 0 round 32px); } }
.js .hero-badge { opacity: 0; }
.js .hero-media.is-in .hero-badge { opacity: 1; transition: opacity .8s .9s; }

/* Nalagalni zaslon */
.loader { position: fixed; inset: 0; z-index: 999; background: radial-gradient(900px 500px at 50% 40%, #fff9ec, var(--cream)); display: grid; place-items: center; transition: opacity .7s var(--ease), visibility .7s; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; display: grid; justify-items: center; gap: 22px; }
.loader-inner::after { content: ""; display: block; width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--gold-soft); border-top-color: var(--gold); animation: spinSlow .9s linear infinite; margin-top: 4px; }
.loader-logo { width: min(280px, 64vw); height: auto; animation: loaderIn 1s var(--ease) both; filter: drop-shadow(0 16px 30px rgba(191,139,49,.2)); }
.loader-bar { display: none; }
.loader-text { margin: 0; font-family: var(--body); font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); }
@keyframes loaderIn { from { opacity: 0; transform: translateY(14px) scale(.94); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ===== Stran 404 – temna različica ===== */
.err-deep {
  position: relative; overflow: hidden; min-height: 72vh; display: grid; align-items: center; padding: clamp(64px, 10vw, 128px) 0;
  background: radial-gradient(900px 520px at 85% 15%, rgba(191,139,49,.28), transparent 60%), linear-gradient(160deg, #1d1d24 0%, var(--ink) 100%);
  color: #efe9dc;
}
.err-deep::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.err-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.err-deep h1 { color: var(--white); font-size: clamp(2.4rem, 5vw, 3.8rem); margin-top: 8px; }
.err-deep .lead { color: #cfc8ba; }
.err-deep .eyebrow { color: var(--gold-hi); }
.err-deep .eyebrow::before { background: var(--gold-hi); }
.err-visual { position: relative; aspect-ratio: 1; max-width: 380px; width: 100%; margin-inline: auto; display: grid; place-items: center; }
.err-num {
  font-family: var(--head); font-style: italic; font-weight: 600; font-size: clamp(6rem, 14vw, 10rem); line-height: 1; color: transparent;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold)); -webkit-background-clip: text; background-clip: text;
}
.err-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgba(231,184,97,.4); animation: spinSlow 40s linear infinite; }
.err-ring--2 { inset: 18%; border-style: solid; border-color: rgba(231,184,97,.18); animation-duration: 25s; animation-direction: reverse; }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); box-shadow: none; }
.btn--outline-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); box-shadow: 0 14px 30px rgba(0,0,0,.25); }
.err-deep .err-copy .hero-actions { margin-top: 30px; }
.err-deep .btn { background: var(--gold); color: var(--white); }
.err-deep .btn:hover { background: var(--gold-dark); color: var(--white); }
.err-deep .btn.btn--outline-light { background: transparent; }
.err-deep .btn.btn--outline-light:hover { background: var(--white); color: var(--ink); }
body[data-page="404"] .site-header { position: absolute; left: 0; right: 0; }
body[data-page="404"] .site-header .nav { background: rgba(255, 255, 255, .94); }

/* ===== Obrazec: rezervacija termina, stanja ===== */
[hidden] { display: none !important; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-status.is-err { background: #fbe9e6; color: #7a2418; }
.form-status.is-ok { background: var(--gold-soft); color: var(--ink); }

/* ===== Gladki prehodi med stranmi ===== */
main { transition: opacity .35s var(--ease), transform .35s var(--ease); }
main.is-leaving { opacity: 0; transform: translate3d(0, 10px, 0); }
main.is-entering { opacity: 0; transform: translate3d(0, -6px, 0); transition: none; }
.contact-block + h3 { margin-top: 40px; }

/* Odzivnost */
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .site-header .nav { padding: 0 8px 0 18px; }
  .nav-links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--white);
    border: 1px solid var(--line); border-radius: 26px; padding: 10px; box-shadow: var(--shadow-hi); display: none; gap: 2px;
  }
  .nav-links.is-open { display: flex; animation: rise .4s var(--ease); }
  .nav-links a { padding: 13px 18px; font-size: 1.02rem; border-radius: 16px; }
  .nav-links a::after { left: auto; right: 18px; top: 50%; bottom: auto; margin: -2.5px 0 0; }
  .nav-cta { margin: 6px 0 0; }
  .nav-cta .btn { width: 100%; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 .card-img { aspect-ratio: 5 / 4; }
  .subjects { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid, .split, .page-hero-grid, .contact-grid, .err-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .split:not(:has(> .split-img)) > div:first-child { position: static; }
  .page-hero-grid:has(> div:only-child)::after { display: none; }
  .hero-media { margin: 12px 14px 40px; }
  .hero-badge { left: -10px; bottom: -28px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .grid--3 .card-img { aspect-ratio: 5 / 4; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .page-hero-media img, .split-img img { max-height: 520px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { width: calc(100% - 32px); }
  .site-header { padding: 10px 0; }
  .nav { min-height: 60px; }
  .brand img { height: 38px; }
  .hero, .page-hero { margin-top: -80px; padding-top: calc(80px + 32px); }
  .hero .lead { font-size: 1.08rem; }
  .hero-actions .btn, .page-hero .hero-actions .btn { width: 100%; }
  .hero-meta span { font-size: .84rem; }
  .grid--4, .values, .steps, .subjects { grid-template-columns: 1fr; }
  .grid--4 .card-img, .grid--3 .card-img, .card-img { aspect-ratio: 1 / 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .event { grid-template-columns: 84px 1fr; gap: 16px; padding: 14px; }
  .event-date { padding: 18px 4px 12px; }
  .event-date b { font-size: 1.8rem; }
  .step { padding: 92px 24px 26px; }
  .step::before { left: 24px; top: 24px; }
  .hero-media { margin: 8px 6px 20px; }
  .hero-media::before { inset: 10% -10px -10px 14%; }
  .hero-badge { position: relative; left: auto; bottom: auto; margin: -36px 12px 0; max-width: none; animation: none; }
  .hero-media img, .split-img img, .page-hero-media img { border-radius: 22px; border-width: 4px; }
  .card-body { padding: 24px; }
  .card--plain { padding: 24px; }
  .banner, .cta-band, form.contact-form { border-radius: 24px; }
  .cta-band .btn--light, .banner .btn--light { width: 100%; }
  .marquee span { font-size: 1.12rem; }
  .split-img::before { inset: 10% 8% -12px -12px; }
  .page-hero-media::before { inset: 6% -10px -10px 8%; }
  th, td { padding: 16px 18px; }
  .contact-form .btn { justify-self: stretch; }
}
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal, .js .fx, .js .hero-media { opacity: 1; transform: none; filter: none; }
  .js .hero-badge { opacity: 1; }
  .loader { display: none; }
}

/* ===== Vsebina, ki jo dodaja lastnica: nič se ne sme odrezati ===== */
/* Dolga besedila, naslovi in povezave se prelomijo, mreža pa se ne razširi čez zaslon. */
html { hyphens: manual; }
h1, h2, h3, p, li, a, td, th, .btn, .eyebrow, .price, .subject, .tags li { overflow-wrap: anywhere; }
.grid > *, .values > *, .steps > *, .subjects > *, .events > *, .split > *, .hero-grid > *, .contact-grid > *, .page-hero-grid > *, .footer-grid > * { min-width: 0; }
.btn { white-space: normal; text-align: center; max-width: 100%; line-height: 1.3; }
.hero-actions { max-width: 100%; }
.card-body h3, .event h3, .step h3, .value h3 { overflow-wrap: anywhere; }
.price-card .price { overflow-wrap: anywhere; }
.nav-links a, .brand { min-width: 0; }
img { max-width: 100%; }
.hero-badge { max-width: min(300px, calc(100% - 28px)); }
@media (max-width: 640px) { .hero-badge { max-width: none; } }

/* ===== Predogled v administraciji: označena sekcija ===== */
[data-preview] .pv-focus { outline: 3px dashed var(--gold); outline-offset: -6px; border-radius: 12px; }
[data-preview] body::after { display: none; }

/* ===== Pas za prijavljene med vzdrževanjem ===== */
.maint-bar { position: relative; z-index: 80; background: var(--ink); color: #efe9dc; text-align: center; padding: 10px 16px; font-size: .9rem; }
.maint-bar a { color: var(--gold-hi); font-weight: 600; margin-left: 6px; }

/* ===== »Kmalu nazaj« ===== */
.soon-body { background: radial-gradient(900px 600px at 15% 10%, rgba(231,184,97,.28), transparent 60%), radial-gradient(700px 500px at 100% 100%, rgba(191,139,49,.16), transparent 60%), var(--cream); }
.soon { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: clamp(24px, 6vw, 72px) 16px; overflow: hidden; isolation: isolate; }
.soon::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--dots); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent); opacity: .8; }
.soon-card { position: relative; width: min(640px, 100%); text-align: center; background: rgba(255,255,255,.85); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(32px, 6vw, 64px) clamp(22px, 5vw, 56px); box-shadow: var(--shadow-hi); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: rise .9s var(--ease) both; }
.soon-logo { height: 54px; width: auto; margin: 0 auto 28px; }
.soon-card .eyebrow { justify-content: center; }
.soon-card h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 0 auto .35em; max-width: 14ch; }
.soon-card .lead { margin: 0 auto; }
.soon-until { margin: 22px 0 0; color: var(--ink-soft); }
.soon-until strong { color: var(--ink); }
.soon-actions { justify-content: center; margin-top: 30px; }
.soon-foot { margin: 34px 0 0; font-size: .85rem; color: var(--ink-soft); }
/* Ura s kazalcema: tiho namiguje, da bo kmalu */
.soon-clock { position: relative; width: 74px; height: 74px; margin: 0 auto 22px; border-radius: 50%; background: var(--white); border: 2px solid var(--gold);
  box-shadow: 0 0 0 8px rgba(231,184,97,.18), var(--shadow); }
.soon-hand { position: absolute; left: 50%; bottom: 50%; width: 3px; margin-left: -1.5px; border-radius: 3px; background: var(--ink); transform-origin: 50% 100%; }
.soon-hand--h { height: 20px; animation: spinSlow 60s linear infinite; }
.soon-hand--m { height: 28px; background: var(--gold-dark); animation: spinSlow 6s linear infinite; }
.soon-dot { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--gold); }
.soon-paper { position: absolute; z-index: -1; border-radius: 18px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
  background-image: repeating-linear-gradient(180deg, transparent 0 27px, rgba(191,139,49,.18) 27px 28px); }
.soon-paper--1 { width: 220px; height: 280px; left: 6%; top: 14%; transform: rotate(-9deg); animation: floatY 9s ease-in-out infinite; }
.soon-paper--2 { width: 180px; height: 230px; right: 7%; bottom: 10%; transform: rotate(8deg); animation: floatY 11s ease-in-out infinite reverse; }
@media (max-width: 760px) { .soon-paper { display: none; } .soon-actions .btn { width: 100%; } }

/* ===== 404: priljubljene strani ===== */
.err-links { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.err-links p { margin: 0 0 12px; color: #9d978a; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.err-links ul { list-style: none; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.err-links a { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); color: #efe9dc; text-decoration: none; font-size: .92rem; transition: background .3s, border-color .3s; }
.err-links a:hover { background: rgba(231,184,97,.14); border-color: var(--gold-hi); color: var(--white); }

/* ===== Pogosta vprašanja ===== */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-head { position: sticky; top: 120px; }
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); transition: border-color .3s, box-shadow .4s; overflow: hidden; }
.section--alt .faq-item { background: var(--cream); box-shadow: none; }
.faq-item[open] { border-color: rgba(191,139,49,.45); box-shadow: var(--shadow); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; cursor: pointer;
  font-family: var(--head); font-weight: 600; font-size: 1.12rem; line-height: 1.35; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-dark); }
.faq-item summary i { position: relative; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: var(--gold-soft); transition: background .3s, transform .4s var(--ease); }
.faq-item summary i::before, .faq-item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--gold-dark); transition: transform .4s var(--ease); }
.faq-item summary i::after { transform: rotate(90deg); }
.faq-item[open] summary i { background: var(--ink); transform: rotate(180deg); }
.faq-item[open] summary i::before, .faq-item[open] summary i::after { background: var(--gold-hi); }
.faq-item[open] summary i::after { transform: rotate(0deg); }
.faq-a { padding: 0 22px 22px; color: var(--ink-soft); }
.faq-a p { margin: 0; }
.faq-item[open] .faq-a { animation: rise .45s var(--ease); }

/* ===== Galerija ===== */
.gallery { display: grid; gap: 22px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); align-items: start; }
.gallery--1 { --cols: 1; max-width: 860px; margin-inline: auto; }
.gallery--2 { --cols: 2; }
.gallery--3 { --cols: 3; }
.gallery--4 { --cols: 4; }
.gallery-item { margin: 0; }
.gallery-img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(rgba(154,110,34,.14) 1px, transparent 1.4px) 0 0 / 16px 16px, linear-gradient(160deg, #fbf3e3, var(--gold-soft)); box-shadow: var(--shadow); }
.gallery-img img { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: calc(100% - 28px); max-height: calc(100% - 28px);
  border-radius: 12px; border: 4px solid var(--white); box-shadow: 0 16px 30px -14px rgba(23,23,28,.45); transition: transform .8s var(--ease); }
.gallery-item:hover .gallery-img img { transform: scale(1.03); }
.gallery-item figcaption { margin-top: 12px; font-size: .95rem; color: var(--ink-soft); text-align: center; }

/* Svetli logotip na temni nogi */
.footer-logo.footer-logo--light { background: none; padding: 0; border-radius: 0; height: 64px; }

@media (max-width: 900px) {
  .faq-wrap { grid-template-columns: 1fr; gap: 24px; }
  .faq-head { position: static; }
  .gallery--3, .gallery--4 { --cols: 2; }
}
@media (max-width: 640px) {
  .gallery, .gallery--2, .gallery--3, .gallery--4 { --cols: 1; }
  .faq-item summary { padding: 18px; font-size: 1.04rem; }
  .faq-a { padding: 0 18px 18px; }
}

/* Glavni naslov se pokaže takoj (hitrejši največji prikaz), samo rahlo zdrsne na mesto */
.js .hero h1.fx, .js .page-hero h1.fx { opacity: 1; filter: none; }

/* ===== Videz sekcije iz urejevalnika ===== */
[data-sx~="sx-pt"] { padding-top: var(--sx-pt) !important; }
[data-sx~="sx-pb"] { padding-bottom: var(--sx-pb) !important; }
[data-sx~="sx-bg-cream"] { background: var(--cream) !important; }
[data-sx~="sx-bg-custom"] { background: var(--sx-bg) !important; }
[data-sx~="sx-bg-gold"] { background: linear-gradient(150deg, #fff6e4, var(--gold-soft)) !important; }
[data-sx~="sx-bg-dark"] { background: radial-gradient(700px 300px at 90% 0%, rgba(231,184,97,.18), transparent 70%), var(--ink) !important; color: #e8e2d4; }
[data-sx~="sx-bg-dark"] h1, [data-sx~="sx-bg-dark"] h2, [data-sx~="sx-bg-dark"] h3 { color: var(--white); }
[data-sx~="sx-bg-dark"] .lead, [data-sx~="sx-bg-dark"] p, [data-sx~="sx-bg-dark"] .split-text p, [data-sx~="sx-bg-dark"] .checks li { color: #cfc8ba; }
[data-sx~="sx-bg-dark"] .eyebrow { color: var(--gold-hi); }
[data-sx~="sx-ink"], [data-sx~="sx-ink"] h1, [data-sx~="sx-ink"] h2, [data-sx~="sx-ink"] h3, [data-sx~="sx-ink"] p, [data-sx~="sx-ink"] .lead { color: var(--sx-ink) !important; }
[data-sx~="sx-align-center"] .section-head, [data-sx~="sx-align-center"] .split-text, [data-sx~="sx-align-center"] .hero-copy, [data-sx~="sx-align-center"] .page-hero-grid > div { text-align: center; margin-inline: auto; }
[data-sx~="sx-align-center"] .hero-actions, [data-sx~="sx-align-center"] .hero-meta { justify-content: center; }
[data-sx~="sx-align-center"] .lead { margin-inline: auto; }
[data-sx~="sx-align-left"] .section-head { text-align: left; margin-inline: 0; }
[data-sx~="sx-align-right"] .section-head, [data-sx~="sx-align-right"] .split-text { text-align: right; }
/* Skrita sekcija: v predogledu je bleda, na strani je ni */
[data-preview] [data-hidden] { opacity: .35; filter: grayscale(1); }

/* ===== Koledar dogodkov ===== */
.ev-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: -10px 0 40px; }
.ev-filter button { font: inherit; font-size: .92rem; font-weight: 600; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--white); color: var(--ink); cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.ev-filter button:hover { border-color: var(--ink); }
.ev-filter button.on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.ev-month + .ev-month { margin-top: 48px; }
.ev-month-title { display: flex; align-items: center; gap: 16px; font-size: 1.5rem; margin: 0 0 20px; }
.ev-month-title::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.ev-month.is-empty { display: none; }
.ev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ev-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s; }
.ev-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hi); border-color: rgba(191,139,49,.45); }
.js .ev-card.reveal.is-in:hover { transform: translateY(-6px); transition-delay: 0s; }
.ev-card[hidden] { display: none !important; }
.ev-card.is-past { opacity: .75; }
.ev-link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.ev-link:focus-visible { outline-offset: -3px; }
.ev-img { position: relative; aspect-ratio: 2 / 1; overflow: hidden; background: var(--gold-soft); border-bottom: 1px solid var(--line); }
.ev-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--ease); }
.ev-card:hover .ev-img img { transform: scale(1.04); }
.ev-body { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px 22px; flex: 1; }
.ev-top { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 14px; align-items: start; }
.ev-date { text-align: center; background: linear-gradient(160deg, #26262e, var(--ink)); color: var(--white); border-radius: 14px; padding: 10px 4px 8px; font-family: var(--head); position: relative; overflow: hidden; }
.ev-date::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); }
.ev-date b { display: block; font-size: 1.7rem; line-height: 1; font-weight: 600; }
.ev-date span { display: block; margin-top: 4px; font-family: var(--body); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-hi); }
.ev-date.is-soon { background: var(--gold-soft); color: var(--gold-dark); }
.ev-date.is-soon span { color: var(--gold-dark); }
.ev-cat { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-dark); margin: 0 6px 6px 0; }
.ev-cat--kreativna { background: #fde8dc; color: #9a3d12; }
.ev-cat--priprave { background: #e3ecfb; color: #234a8c; }
.ev-cat--urice { background: #e6f4ea; color: #1f6a3d; }
.ev-cat--drugo { background: #eeeef2; color: #4a4d58; }
.ev-soon { display: inline-block; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--gold-hi); }
.ev-card h3 { margin: 2px 0 0; font-size: 1.22rem; }
.ev-body > p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.ev-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .86rem; color: var(--ink-soft); }
.ev-body .more { margin-top: auto; font-weight: 600; display: inline-flex; gap: 10px; align-items: center; }
.ev-body .more::after { content: "→"; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-dark); transition: transform .4s var(--ease), background .3s, color .3s; }
.ev-card:hover .more::after { transform: translateX(4px); background: var(--ink); color: var(--gold-hi); }
.ev-empty { padding: 30px 0; }
.ev-past { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 24px; }
.ev-past summary { cursor: pointer; font-family: var(--head); font-weight: 600; font-size: 1.15rem; list-style: none; display: inline-flex; gap: 10px; align-items: center; }
.ev-past summary::-webkit-details-marker { display: none; }
.ev-past summary::before { content: "+"; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-dark); }
.ev-past[open] summary::before { content: "–"; }
.ev-past .ev-grid { margin-top: 22px; }
/* Stran dogodka */
.ev-hero .page-hero-grid.no-img { grid-template-columns: minmax(0, 760px); }
.ev-hero .ev-cat { margin-bottom: 14px; }
.ev-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 26px 0 0; }
.ev-facts > div { background: rgba(255,255,255,.8); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; }
.ev-facts dt { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.ev-facts dd { margin: 2px 0 0; font-weight: 600; }
.ev-article { max-width: 760px; }
.ev-text { font-size: 1.08rem; }
.ev-text p { color: var(--ink); }
.ev-text .checks { margin: 0 0 1.2em; }
@media (max-width: 1100px) { .ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .ev-grid { grid-template-columns: 1fr; }
  .ev-filter { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; margin-inline: -16px; padding-inline: 16px; }
  .ev-filter button { flex-shrink: 0; }
}

/* ===== Slika ozadja sekcije (zvezek, papir, listje …) ===== */
[data-sx~="sx-bg-img"] {
  background-color: var(--cream) !important;
  background-image: linear-gradient(rgba(251, 248, 242, var(--sx-ov, .55)), rgba(251, 248, 242, var(--sx-ov, .55))), var(--sx-img) !important;
  background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important;
}
[data-sx~="sx-bg-img"][data-sx~="sx-bg-fixed"] { background-attachment: scroll, fixed !important; }
[data-sx~="sx-bg-img"].section--alt, [data-sx~="sx-bg-img"] .card, [data-sx~="sx-bg-img"] .value, [data-sx~="sx-bg-img"] .faq-item { backdrop-filter: none; }
@media (max-width: 900px), (hover: none) {
  [data-sx~="sx-bg-img"][data-sx~="sx-bg-fixed"] { background-attachment: scroll !important; }
}

/* ===== Prenova po redesign/taste skillu: manj generičnih vzorcev ===== */
:root {
  /* Tople sence (barva rjavega papirja) namesto sivih */
  --shadow-sm: 0 1px 2px rgba(74, 52, 20, .06);
  --shadow: 0 1px 2px rgba(74, 52, 20, .05), 0 12px 30px -14px rgba(74, 52, 20, .2);
  --shadow-hi: 0 2px 4px rgba(74, 52, 20, .05), 0 32px 60px -26px rgba(74, 52, 20, .38);
}

/* Nadnaslovi: ležeči serif v stavčni obliki namesto VELIKIH ČRK */
.eyebrow {
  font-family: var(--head); font-style: italic; font-weight: 500; font-size: 1.02rem; letter-spacing: 0; text-transform: none;
  color: var(--gold-dark); margin-bottom: 12px;
}
.eyebrow::before { width: 22px; height: 1.5px; transform: none; border-radius: 2px; box-shadow: none; background: var(--gold); }
.center .eyebrow::after { content: ""; width: 22px; height: 1.5px; background: var(--gold); border-radius: 2px; }

/* Optično: spodnji razmik sekcij malo večji od zgornjega */
.section { padding-bottom: clamp(84px, 10vw, 144px); }

/* Storitve na naslovnici: namesto štirih enakih stolpov dve vrsti vodoravnih kartic */
@media (min-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .grid--4 .card { flex-direction: row; }
  .grid--4 .card-img { flex: 0 0 42%; aspect-ratio: auto; min-height: 280px; border-bottom: 0; border-right: 1px solid var(--line); }
  .grid--4 .card-body { padding: 30px 30px 28px; justify-content: center; }
  .grid--4 > .card:nth-child(4n+2), .grid--4 > .card:nth-child(4n+3) { flex-direction: row-reverse; }
  .grid--4 > .card:nth-child(4n+2) .card-img, .grid--4 > .card:nth-child(4n+3) .card-img { border-right: 0; border-left: 1px solid var(--line); }
}

/* Vrednote: oštevilčen seznam brez kartic (manj »kartica na kartici«) */
.values { gap: 0; border-top: 1px solid var(--line-strong); }
.value { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 30px 26px 28px 0; border-bottom: 1px solid var(--line-strong); }
.value + .value { padding-left: 26px; border-left: 1px solid var(--line-strong); }
.value:hover { transform: none; box-shadow: none; }
.js .value.reveal.is-in:hover { transform: none; }
.value::before { font-size: 3.2rem; margin-bottom: 14px; }
.value::after { left: 0; right: auto; width: 46px; bottom: -1px; transform: scaleX(1); height: 2px; }
.value + .value::after { left: 26px; }
.value:hover::before { transform: translateY(-4px); }
@media (max-width: 1180px) {
  .value + .value { padding-left: 0; border-left: 0; }
  .values { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
  .value + .value::after { left: 0; }
}
@media (max-width: 640px) { .values { grid-template-columns: 1fr; } }

/* Poudarjen blok sredi svetle strani: svetel namesto naključno temnega */
.banner {
  background: linear-gradient(150deg, rgba(255, 255, 255, .94), rgba(255, 248, 234, .92));
  color: var(--ink); border: 1px solid rgba(191, 139, 49, .35); box-shadow: var(--shadow-hi);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.banner::before { background-image: radial-gradient(rgba(154, 110, 34, .14) 1px, transparent 1.4px); }
.banner::after { border-color: rgba(191, 139, 49, .3); box-shadow: 0 0 0 40px rgba(231, 184, 97, .07), 0 0 0 80px rgba(231, 184, 97, .05); }
.banner h2 { color: var(--ink); }
.banner p { color: var(--ink-soft); }
.banner .eyebrow { color: var(--gold-dark); }
.banner .eyebrow::before { background: var(--gold); }
.banner .btn--light { background: var(--ink); color: var(--white); }
.banner .btn--light:hover { background: var(--gold-dark); color: var(--white); }

/* Obrazec: napake ob polju (preverjanje ob zapustitvi polja) */
.field-err { margin: 2px 0 0; font-size: .86rem; color: #9b2c1f; display: none; }
.field.is-invalid .field-err { display: block; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: #c0392b; background: #fff8f7; }
.field.is-valid input, .field.is-valid textarea { border-color: rgba(31, 138, 76, .45); }

/* ===== Telefon: hiter kontakt spodaj in gumb »Na vrh« ===== */
.m-cta { display: none; }
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 70; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--white);
  color: var(--ink); font-size: 18px; cursor: pointer; box-shadow: var(--shadow-hi); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.to-top.on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink); color: var(--gold-hi); }
@media (max-width: 760px) {
  .m-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 75;
    padding: 6px; border-radius: 999px; background: rgba(23,23,28,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 14px 34px -10px rgba(0,0,0,.45);
    transform: translateY(140%); transition: transform .4s var(--ease); }
  body.scrolled-far .m-cta { transform: none; }
  .m-cta a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 999px; color: var(--white); text-decoration: none; font-weight: 600; }
  .m-cta a:first-child { background: var(--gold); color: var(--ink); }
  .to-top { bottom: calc(80px + env(safe-area-inset-bottom)); right: 14px; width: 42px; height: 42px; }
  .site-footer { padding-bottom: 96px; }
  [data-preview] .m-cta { display: none; }
}

/* ===== Prijava na dogodek ===== */
.reg-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.reg-intro { position: sticky; top: 120px; }
.reg-status { margin: 18px 0; padding: 14px 18px; border-radius: 16px; background: #e8f5ec; color: #1f5f39; border: 1px solid #c3e3cf; }
.reg-status.is-full { background: #fff4e0; color: #7a4d0b; border-color: #efd9a6; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold); flex-shrink: 0; }
.reg-done { text-align: center; padding: 24px 6px; display: grid; gap: 8px; justify-items: center; }
.reg-ok { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; color: var(--white); background: linear-gradient(150deg, #34a26a, #1f8a4c); box-shadow: 0 0 0 10px rgba(31,138,76,.12); animation: rise .5s var(--ease); }
.reg-done h3 { margin: 10px 0 0; font-size: 1.6rem; }
.reg-done p { color: var(--ink-soft); margin: 0; }
.ev-free { color: #1f6a3d; font-weight: 600; }
.ev-free.is-full { color: #9a3d12; }
@media (max-width: 900px) { .reg-grid { grid-template-columns: 1fr; } .reg-intro { position: static; } }

/* ===== Uvodna animacija (prvi obisk) ===== */
.curtain { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; pointer-events: none;
  background: radial-gradient(700px 420px at 50% 45%, #fffaf0, var(--cream)); transition: clip-path .7s cubic-bezier(.76, 0, .24, 1); clip-path: inset(0 0 0 0); }
.curtain.is-up { clip-path: inset(0 0 100% 0); }
.curtain-in { position: relative; display: grid; justify-items: center; gap: 14px; animation: curtainIn .5s var(--ease) both; }
.curtain-ring { width: 120px; height: 120px; transform: rotate(-90deg); }
.curtain-ring circle { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; animation: ringDraw .8s .05s var(--ease) forwards; }
.curtain-m { position: absolute; top: 18px; width: 120px; text-align: center; font-family: var(--head); font-weight: 600; font-size: 66px; line-height: 84px; color: var(--ink); opacity: 0; animation: mIn .5s .25s var(--ease) forwards; }
.curtain-word { font-family: var(--head); font-style: italic; font-size: 1.4rem; color: var(--gold-dark); letter-spacing: .02em; opacity: 0; animation: mIn .5s .4s var(--ease) forwards; }
.curtain.is-up .curtain-in { transform: translateY(-30px); opacity: 0; transition: transform .6s var(--ease), opacity .4s; }
@keyframes ringDraw { to { stroke-dashoffset: 0; } }
@keyframes mIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes curtainIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
/* Prehod med stranmi: tanka zlata vrstica */
html.is-nav .progress i { transform: scaleX(.75) !important; transition: transform 1.2s cubic-bezier(.1, .7, .3, 1); background: linear-gradient(90deg, var(--gold), var(--gold-hi)); }
@media (prefers-reduced-motion: reduce) { .curtain { display: none; } }

/* ===== Zemljevid (naloži se ob kliku) ===== */
.map { margin-top: 22px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(160deg, #f4efe4, #ebe3d2); min-height: 240px; display: grid; }
.map-ph { display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; padding: 28px 18px;
  background-image: radial-gradient(rgba(154,110,34,.18) 1px, transparent 1.4px); background-size: 18px 18px; }
.map-pin { font-size: 30px; }
.map-act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.map.is-on iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ===== Gladko delovanje na vseh napravah =====
   Kar je brskalnik moral ob vsakem premiku strani risati znova, je odstranjeno ali zamenjano s cenejšim:
   prelivanje barv čez celo stran, zameglitve velikih ploskev, pritrjena ozadja. */
body::after { mix-blend-mode: normal; opacity: .03; }
.btn { will-change: auto; }
[data-sx~="sx-bg-img"][data-sx~="sx-bg-fixed"] { background-attachment: scroll !important; }
.hero::before { filter: none; background: radial-gradient(closest-side, rgba(231, 184, 97, .36), rgba(231, 184, 97, 0)); width: 820px; height: 820px; }
.hero::after { filter: none; background: radial-gradient(closest-side, rgba(191, 139, 49, .2), rgba(191, 139, 49, 0)); width: 640px; height: 640px; }
.page-hero::before { filter: none; background: radial-gradient(closest-side, rgba(231, 184, 97, .3), rgba(231, 184, 97, 0)); width: 760px; height: 760px; }
/* Sekcije pod prvim zaslonom se izrišejo šele, ko se jim obiskovalec približa (ne v urejevalniku) */
html:not([data-preview]) main > .section:nth-of-type(n+4) { content-visibility: auto; contain-intrinsic-size: auto 760px; }

/* Lahki način (html.lite): počasnejše naprave dobijo isto stran brez dragih učinkov */
html.lite body::after, html.lite body::before { display: none; }
html.lite .site-header .nav, html.lite .site-header.is-scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; }
html.lite .site-header .nav { background-color: rgba(255, 255, 255, .97); }
html.lite .hero::before, html.lite .hero::after, html.lite .hero-badge, html.lite .hero-media::before, html.lite .split-img img, html.lite .cta-band::before { animation: none; }
html.lite.js .reveal { transform: none; filter: none; transition: opacity .35s ease; }
html.lite .hero-media img { transform: none; transition: none; }
html.lite .card, html.lite .value, html.lite .step, html.lite .ev-card, html.lite .gallery-item { transition: none; }
html.lite .card:hover, html.lite .ev-card:hover { transform: none; }
html.lite main.is-leaving, html.lite main.is-entering { transition: none; }
html.lite { scroll-behavior: auto; }

/* Telefon: dovolj velike površine za dotik (drobtinice, povezave v nogi in kontaktih) in filtri koledarja, ki se prelomijo v več vrstic */
@media (max-width: 900px) {
  .crumbs a { display: inline-block; padding: 10px 4px; margin: -10px -4px; }
  .site-footer ul a { display: inline-block; padding: 9px 0; }
  .contact-list a { display: inline-block; padding: 9px 0; }
  .ev-filter { display: flex; flex-wrap: wrap; gap: 8px; }
  .ev-filter button { min-height: 42px; }
  .table-wrap { -webkit-overflow-scrolling: touch; }
}

.card-body h2 { margin-bottom: 10px; font-size: 1.32rem; letter-spacing: -.015em; overflow-wrap: anywhere; }

/* Telefon: prihod elementov brez blur (lažje za napravo) */
@media (max-width: 860px) { .js .fx { filter: none; transition: opacity .7s var(--ease), transform .7s var(--ease); } }


/* Novi razdelki: video, dokumenti za prenos, poljubna vsebina */
.video-wrap { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #111; box-shadow: var(--shadow-hi, 0 20px 50px rgba(0,0,0,.18)); }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-cap { margin: 12px 0 0; color: var(--ink-soft, #555); font-size: .95rem; text-align: center; }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 720px; }
.files a { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border: 1px solid var(--line, #e5e1d8); border-radius: 16px; background: #fff; text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.files a:hover { transform: translateY(-2px); border-color: var(--gold, #bf8b31); box-shadow: 0 12px 28px rgba(20,20,30,.08); }
.file-ext { flex: none; min-width: 52px; padding: 8px 10px; border-radius: 10px; background: #15171c; color: #e7b861; font: 700 .72rem/1 system-ui, sans-serif; letter-spacing: .06em; text-align: center; }
.file-body { flex: 1; display: grid; gap: 2px; }
.file-body small { color: var(--ink-soft, #666); }
.file-dl { font-size: 1.3rem; color: var(--gold-dark, #8a6320); }
.prose { max-width: 780px; margin-inline: auto; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.6em; }
.prose img, .prose iframe { max-width: 100%; border-radius: 14px; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line, #e5e1d8); text-align: left; }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--gold, #bf8b31); color: var(--ink-soft, #555); }


/* === Piškotki in zasebnost === */
.mu-cc { position: fixed; z-index: 1300; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: center; pointer-events: none; opacity: 0; transform: translateY(24px); transition: opacity .45s var(--ease, ease), transform .45s var(--ease, ease); }
.mu-cc.is-in { opacity: 1; transform: none; }
.mu-cc-card { pointer-events: auto; width: min(760px, 100%); background: rgba(251, 250, 247, .97); color: var(--ink, #15171c); border: 1px solid rgba(191, 139, 49, .35); border-radius: 22px; box-shadow: 0 30px 80px rgba(20, 20, 30, .22), 0 2px 10px rgba(20, 20, 30, .08); padding: 22px 24px 20px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mu-cc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.mu-cc-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #15171c; color: #e7b861; flex: none; }
.mu-cc-head h2, .mu-cs-card h2 { margin: 0; font-family: var(--head, Georgia, serif); font-size: 1.35rem; letter-spacing: -.01em; }
.mu-cc-card p { margin: 0 0 16px; font-size: .95rem; line-height: 1.6; color: var(--ink-soft, #4a4a4a); }
.mu-cc-card a, .mu-cs-card a { color: var(--gold-dark, #8a6320); text-decoration: underline; text-underline-offset: 3px; }
.mu-cc-actions, .mu-cs-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.mu-btn { all: unset; box-sizing: border-box; cursor: pointer; min-height: 46px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #15171c; color: #fff; font: 700 .86rem/1 var(--body, system-ui, sans-serif); letter-spacing: .06em; text-transform: uppercase; border: 1.5px solid #15171c; transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease; }
.mu-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20, 20, 30, .2); }
.mu-btn:focus-visible { outline: 3px solid var(--gold, #bf8b31); outline-offset: 3px; }
.mu-btn--ghost { background: transparent; color: var(--ink, #15171c); border-color: rgba(21, 23, 28, .35); }
.mu-btn--ghost:hover { background: rgba(231, 184, 97, .18); box-shadow: none; }
.mu-cs { position: fixed; inset: 0; z-index: 1400; display: grid; place-items: center; padding: 16px; background: rgba(15, 15, 18, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s ease; }
.mu-cs.is-in { opacity: 1; }
.mu-cs-card { position: relative; width: min(620px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fbfaf7; border-radius: 24px; padding: 30px 30px 24px; box-shadow: 0 40px 100px rgba(0, 0, 0, .4); outline: none; transform: translateY(16px) scale(.98); transition: transform .25s var(--ease, ease); }
.mu-cs.is-in .mu-cs-card { transform: none; }
.mu-cs-x { all: unset; cursor: pointer; position: absolute; top: 16px; right: 18px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; line-height: 1; color: #555; }
.mu-cs-x:hover { background: rgba(0, 0, 0, .06); }
.mu-cs-lead { margin: 8px 0 18px; color: var(--ink-soft, #555); line-height: 1.6; }
.mu-cs-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 16px 0; border-top: 1px solid rgba(0, 0, 0, .09); }
.mu-cs-row strong { display: block; margin-bottom: 4px; }
.mu-cs-row p { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--ink-soft, #555); }
.mu-sw { position: relative; flex: none; width: 52px; height: 30px; display: inline-block; }
.mu-sw input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.mu-sw i { position: absolute; inset: 0; border-radius: 999px; background: #cfc8b6; transition: background .2s; }
.mu-sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .2s; }
.mu-sw input:checked + i, .mu-sw.is-on i { background: #bf8b31; }
.mu-sw input:checked + i::after, .mu-sw.is-on i::after { transform: translateX(22px); }
.mu-sw.is-locked { opacity: .6; }
.mu-sw input:focus-visible + i { outline: 3px solid #15171c; outline-offset: 3px; }
.mu-cs-actions { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(0, 0, 0, .09); }
.mu-cs-foot { margin: 14px 0 0; font-size: .82rem; color: #6b665a; line-height: 1.5; }
html.mu-cs-open { overflow: hidden; }
@media (max-width: 560px) { .mu-cc { left: 0; right: 0; bottom: 0; } .mu-cc-card { border-radius: 22px 22px 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); } .mu-cc-actions .mu-btn, .mu-cs-actions .mu-btn { flex: 1 1 100%; } .mu-cs-card { padding: 24px 20px 20px; } }
@media (prefers-reduced-motion: reduce) { .mu-cc, .mu-cs, .mu-cs-card, .mu-btn { transition: none; } }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; }
.footer-legal a, .footer-legal button { all: unset; cursor: pointer; color: inherit; opacity: .8; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover, .footer-legal button:hover { opacity: 1; }
.footer-legal button:focus-visible, .footer-legal a:focus-visible { outline: 2px solid var(--gold-hi, #e7b861); outline-offset: 3px; }
label.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; line-height: 1.5; margin: 6px 0 12px; cursor: pointer; }
label.consent input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: #bf8b31; }
label.consent a { color: var(--gold-dark, #8a6320); text-decoration: underline; text-underline-offset: 3px; }
.video-ph { display: grid; place-items: center; gap: 10px; align-content: center; text-align: center; padding: 28px; min-height: 100%; background: radial-gradient(circle at 30% 20%, #2a2a30, #111); color: #fff; }
.video-ph .muted { color: rgba(255, 255, 255, .7); max-width: 46ch; font-size: .9rem; }
.video-wrap.is-on { background: #000; }


/* Stran 404: predlog in kartice z najpogostejšimi stranmi */
.err-guess { margin: 14px 0 0; font-size: 1.08rem; color: #e9e2d2; }
.err-guess a { color: var(--gold-hi, #e7b861); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.err-find h2 { margin: 6px 0 26px; }
.err-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.err-card { display: grid; gap: 6px; align-content: start; padding: 22px; border-radius: 20px; background: #fff; border: 1px solid var(--line, #e8e2d3); text-decoration: none; color: inherit; transition: transform .22s var(--ease, ease), box-shadow .22s var(--ease, ease), border-color .22s; }
.err-card:hover { transform: translateY(-4px); border-color: var(--gold, #bf8b31); box-shadow: 0 18px 40px rgba(20, 20, 30, .1); }
.err-card strong { font-family: var(--head, Georgia, serif); font-size: 1.2rem; }
.err-card > span:last-child { color: var(--ink-soft, #555); font-size: .94rem; line-height: 1.5; }
.err-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #15171c; color: #e7b861; font-size: 1.15rem; margin-bottom: 8px; }
.err-foot { margin: 26px 0 0; color: var(--ink-soft, #555); }
.err-foot a { color: var(--gold-dark, #8a6320); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
