/* ==========================================================================
   VRLH — Velika Regularna Loža Hrvatske
   Navy · Antique gold · Parchment
   ========================================================================== */

:root {
  --navy: #0d1225;
  --navy-2: #141b33;
  --navy-3: #1f2848;
  --gold: #c9a977;
  --gold-light: #e2cfa9;
  --gold-text: #8a6b3c;
  --parchment: #fbf6ef;
  --parchment-2: #f3ebdf;
  --paper: #ffffff;
  --ink: #17140f;
  --text: #3e3b36;
  --muted: #6f6c66;
  --line: #e6dfd2;
  --line-dark: rgba(201, 169, 119, .28);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;

  --header-h: 88px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 24px 60px -28px rgba(13, 18, 37, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.005em; }
p { margin: 0 0 1.1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--navy); color: #fff; padding: 12px 18px; }
.skip:focus { left: 16px; top: 16px; }

/* ---------- decorative rule ∴ ---------- */
.rule { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; color: var(--gold); }
.rule::before { content: ""; width: 56px; height: 1px; background: currentColor; }
.rule::after { content: "∴"; font-family: var(--serif); font-size: 18px; line-height: 1; }

.h-display { font-size: clamp(34px, 4.4vw, 56px); margin-bottom: .55em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border: 1px solid transparent; border-radius: 0;
  font: 500 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn svg { width: 14px; height: 14px; }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--navy); color: var(--gold-light); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--outline { border-color: var(--gold); color: var(--ink); }
.btn--outline:hover { background: var(--gold); color: var(--navy); }
.btn--sm { padding: 11px 16px; font-size: 12px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--gold-text);
}
.link-arrow::after { content: ""; width: 28px; height: 1px; background: currentColor; transition: width .35s var(--ease); }
a:hover .link-arrow::after, .link-arrow:hover::after { width: 46px; }

/* ---------- reading progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; display: none; }
.has-progress .progress { display: block; }
.progress span { display: block; height: 100%; width: 0; background: var(--gold); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -22px rgba(13, 18, 37, .45); }
.site-header__inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand img { height: 56px; width: auto; }
.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; text-decoration: none; color: var(--ink);
  font: 500 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__item:hover > .nav__link::after, .nav__item.is-active > .nav__link::after { transform: scaleX(1); }
.nav__item.is-active > .nav__link { color: var(--gold-text); }
.nav__chev { width: 11px; height: 11px; opacity: .6; }
.nav__toggle { display: none; }
.nav__sub {
  list-style: none; margin: 0; padding: 12px 0; min-width: 250px;
  position: absolute; top: calc(100% + 14px); left: 0;
  background: #fff; border-top: 2px solid var(--gold); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .28s var(--ease);
}
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.has-sub:hover .nav__sub, .has-sub:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a {
  display: block; padding: 10px 22px; text-decoration: none; color: var(--text);
  font: 400 15px/1.4 var(--sans); transition: color .2s, background .2s, padding .25s var(--ease);
}
.nav__sub a:hover, .nav__sub a[aria-current] { color: var(--gold-text); background: var(--parchment); padding-left: 28px; }
.site-header__right { display: flex; align-items: center; gap: 14px; }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.nav-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1100px) {
  :root { --header-h: 76px; }
  .brand img { height: 46px; }
  .burger { display: block; }
  .site-header__right { margin-left: auto; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: auto;
    height: calc(100dvh - var(--header-h));
    background: #fff; overflow-y: auto; padding: 12px var(--gutter) 40px;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .3s var(--ease);
    border-top: 1px solid var(--line);
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav__link { padding: 20px 0; font-size: 15px; flex: 1; }
  .nav__link::after { display: none; }
  .nav__chev { display: none; }
  .nav__toggle {
    display: grid; place-items: center; width: 48px; height: 48px; border: 0; background: none; color: var(--ink);
  }
  .nav__toggle svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
  .nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .nav__sub {
    position: static; width: 100%; box-shadow: none; border: 0; padding: 0 0 14px;
    opacity: 1; visibility: visible; transform: none; display: none; background: none;
  }
  .nav__sub::before { display: none; }
  .nav__sub.is-open { display: block; }
  .nav__sub a { padding: 10px 0 10px 18px; border-left: 1px solid var(--gold); }
  .nav__sub a:hover, .nav__sub a[aria-current] { padding-left: 24px; }
}

/* ==========================================================================
   Home hero + news slider
   ========================================================================== */
.home-hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: max(700px, calc(100svh - var(--header-h)));
  display: flex; align-items: center;
  background: var(--navy); color: #fff;
  padding: clamp(56px, 8vw, 96px) 0 clamp(88px, 10vw, 120px);
}
.home-hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: 70% 50%;
  animation: drift 40s var(--ease) infinite alternate;
}
.home-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 18, 37, .92) 0%, rgba(13, 18, 37, .55) 45%, rgba(13, 18, 37, .35) 100%),
    linear-gradient(0deg, rgba(13, 18, 37, .9) 0%, rgba(13, 18, 37, 0) 35%);
}
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.14) translate(-1.5%, 1%); } }

.home-hero__grid { display: grid; grid-template-columns: 1fr minmax(0, 1.02fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.home-hero__intro .display {
  font-size: clamp(42px, 6.2vw, 92px); color: #fff; letter-spacing: .02em; margin-bottom: .25em; line-height: 1.05;
}
.home-hero__intro h2 { color: var(--gold-light); font-size: clamp(24px, 2.6vw, 36px); font-style: italic; margin-bottom: .55em; }
.home-hero__intro p { color: rgba(255, 255, 255, .72); font-size: 18px; letter-spacing: .02em; margin-bottom: 36px; }

.slider {
  position: relative;
  background: rgba(13, 18, 37, .62);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-dark);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.slider::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: var(--gold); }
.slider__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 16px 26px; border-bottom: 1px solid var(--line-dark); }
.slider__label {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  font: 500 12.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.slider__label::before { content: "∴"; font-family: var(--serif); font-size: 16px; letter-spacing: 0; }
.slider__ctrl { display: flex; align-items: center; gap: 8px; }
.slider__count { font: 400 13px/1 var(--sans); color: rgba(255, 255, 255, .55); letter-spacing: .1em; margin-right: 10px; }
.slider__count b { color: #fff; font-weight: 500; }
.slider__arrow {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line-dark); background: transparent; color: #fff; transition: all .25s;
}
.slider__arrow svg { width: 14px; height: 14px; }
.slider__arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }

.slider__track { display: grid; touch-action: pan-y; }
.slide {
  grid-area: 1 / 1; opacity: 0; visibility: hidden;
  transition: opacity .8s var(--ease), visibility .8s;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide__link { display: block; text-decoration: none; color: inherit; }
.slide__media { aspect-ratio: 16 / 8.2; overflow: hidden; background: var(--navy-2); }
.slide__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transform: scale(1.08); transition: transform 7s linear; }
.slide.is-active .slide__media img { transform: scale(1); }
.slide__body { padding: 26px 28px 8px; }
.slide__body h3 {
  color: #fff; font-size: clamp(21px, 1.8vw, 26px); margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transform: translateY(10px); opacity: 0; transition: all .7s .15s var(--ease);
}
.slide__excerpt {
  color: rgba(255, 255, 255, .68); font-size: 15.5px; line-height: 1.65; margin-bottom: 18px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  transform: translateY(10px); opacity: 0; transition: all .7s .25s var(--ease);
}
.slide__excerpt p { display: inline; margin: 0; }
.slide__excerpt p + p::before { content: " "; }
.slide__excerpt strong { font-weight: 500; color: rgba(255, 255, 255, .85); }
.slide.is-active h3, .slide.is-active .slide__excerpt { transform: none; opacity: 1; }
.slide .link-arrow { color: var(--gold); }
.slide__link:hover h3 { color: var(--gold-light); }

.slider__dots { display: flex; gap: 8px; padding: 18px 28px 24px; }
.slider__dot { flex: 1; height: 18px; padding: 0; border: 0; background: none; position: relative; }
.slider__dot::before, .slider__dot span { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: rgba(255, 255, 255, .18); }
.slider__dot span { background: var(--gold); transform: scaleX(0); transform-origin: left; }
.slider__dot.is-done span { transform: scaleX(1); }
.slider__dot.is-active span { animation: fill var(--slide-ms, 7000ms) linear forwards; }
.slider.is-paused .slider__dot.is-active span { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 2px; height: 8px; margin-left: -1px; background: var(--gold); border-radius: 2px; animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 960px) {
  .home-hero { min-height: 0; padding-top: 64px; }
  .home-hero__grid { grid-template-columns: 1fr; }
  .home-hero__intro { text-align: center; }
  .home-hero__intro .btn { display: none; }
  .home-hero::before { background: linear-gradient(180deg, rgba(13, 18, 37, .8), rgba(13, 18, 37, .7) 50%, rgba(13, 18, 37, .95)); }
  .scroll-cue { display: none; }
}
@media (max-width: 560px) {
  .slider__head { padding: 12px 12px 12px 18px; }
  .slider__count { display: none; }
  .slide__body { padding: 22px 20px 4px; }
  .slider__dots { padding: 14px 20px 20px; }
}

/* ==========================================================================
   Home sections
   ========================================================================== */
.about { background: var(--parchment); overflow: hidden; }
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.about__media { position: relative; padding: 0 12% 18% 0; }
.about__img { overflow: hidden; box-shadow: var(--shadow); }
.about__img img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 1.2s var(--ease); }
.about__img:hover img { transform: scale(1.04); }
.about__img--b { position: absolute; width: 52%; right: 0; bottom: 0; border: 10px solid var(--parchment); }
.about__seal {
  position: absolute; left: -26px; bottom: 10%; width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: var(--gold);
  font: 400 40px/1 var(--serif); box-shadow: 0 0 0 8px var(--parchment), 0 0 0 9px var(--gold);
}
.about__text p { font-size: 17.5px; }
.about__text .btn { margin-top: 10px; }

.section-head { max-width: 620px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head .h-display { margin-bottom: 0; }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); }
.pillar {
  position: relative; display: flex; flex-direction: column; padding: 40px 32px 34px;
  text-decoration: none; color: var(--text); background: #fff; border-right: 1px solid var(--line);
  transition: background .4s var(--ease);
}
.pillar:last-child { border-right: 0; }
.pillar::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.pillar:hover { background: var(--parchment); }
.pillar:hover::before { transform: scaleX(1); }
.pillar__num { font: italic 400 44px/1 var(--serif); color: var(--gold); margin-bottom: 26px; }
.pillar h3 { font-size: 25px; margin-bottom: 14px; }
.pillar p { font-size: 15.5px; line-height: 1.7; color: var(--muted); flex: 1; }
.pillar .link-arrow { margin-top: 8px; }
@media (max-width: 1180px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(2n) { border-right: 0; }
  .pillar:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--line); padding: 32px 24px; }
  .pillar:last-child { border-bottom: 0; }
}

.home-lodges { color: #fff; overflow: hidden; isolation: isolate; background: var(--navy); }
.home-lodges__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.home-lodges::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--navy) 10%, rgba(13, 18, 37, .62)), linear-gradient(0deg, rgba(13, 18, 37, .4), rgba(13, 18, 37, .4));
}
.home-lodges .h-display { color: #fff; }
.hlodges { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.hlodge { text-align: center; text-decoration: none; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .25); padding-bottom: 26px; transition: border-color .3s; }
.hlodge:hover { border-color: var(--gold); }
.hlodge__img { overflow: hidden; margin-bottom: 24px; aspect-ratio: 1; width: 200px; max-width: 100%; margin: 0 auto 24px; border: 1px solid var(--line-dark); }
.hlodge__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: saturate(.85); }
.hlodge:hover img { transform: scale(1.05); filter: none; }
.hlodge h3 { color: #fff; font-size: clamp(22px, 2vw, 28px); margin-bottom: 14px; }
.hlodge__or { font: 500 12.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.hlodge__date { color: rgba(255, 255, 255, .7); font-size: 15.5px; margin: 0; }
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 560px; }
  .about__seal { left: auto; right: 6%; top: -20px; bottom: auto; width: 76px; height: 76px; font-size: 32px; }
  .hlodges { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

/* ==========================================================================
   Page hero
   ========================================================================== */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(360px, 46vw, 520px); display: flex; align-items: flex-end;
  background: var(--navy); color: #fff; padding: 72px 0 clamp(48px, 6vw, 80px);
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; animation: drift 40s var(--ease) infinite alternate; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 70% 40%, rgba(13, 18, 37, .25), rgba(13, 18, 37, .85) 75%),
    linear-gradient(0deg, rgba(13, 18, 37, .95), rgba(13, 18, 37, 0) 60%);
}
.page-hero--compact { min-height: clamp(300px, 34vw, 400px); }
.page-hero h1 { color: #fff; font-size: clamp(40px, 6vw, 80px); margin-bottom: .2em; letter-spacing: .01em; }
.page-hero__sub { color: rgba(255, 255, 255, .78); font-size: clamp(16px, 1.5vw, 19px); max-width: 640px; margin: 0; }
.page-hero--center { text-align: center; }
.page-hero--center .page-hero__inner { display: flex; flex-direction: column; align-items: center; }
.page-hero--center .page-hero__sub { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.8vw, 24px); color: var(--gold-light); }

.crumbs ol { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; font: 400 12.5px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.crumbs li { display: flex; align-items: center; max-width: 100%; }
.crumbs li + li::before { content: "/"; margin: 0 12px; color: var(--gold); }
.crumbs a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.crumbs a:hover { color: var(--gold-light); }
.crumbs [aria-current] { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: min(46ch, 70vw); display: inline-block; }

/* ==========================================================================
   Article layout
   ========================================================================== */
.article-wrap { padding-top: clamp(56px, 7vw, 96px); }
.article-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.side__inner { position: sticky; top: calc(var(--header-h) + 32px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; scrollbar-width: thin; padding-right: 6px; }
.side__title { font: 500 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.side__title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.side__nav { list-style: none; margin: 0 0 36px; padding: 0; border-left: 1px solid var(--line); }
.side__nav a {
  display: flex; align-items: baseline; gap: 14px; padding: 12px 16px 12px 20px; margin-left: -1px;
  text-decoration: none; color: var(--text); font-size: 15.5px; line-height: 1.4;
  border-left: 2px solid transparent; transition: all .25s var(--ease);
}
.side__nav .num { font: italic 400 15px/1 var(--serif); color: var(--gold); min-width: 26px; }
.side__nav a:hover { background: var(--parchment); color: var(--ink); }
.side__nav a.is-active { border-left-color: var(--gold); background: var(--navy); color: #fff; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: block; padding: 7px 0 7px 30px; position: relative; text-decoration: none;
  color: var(--muted); font-size: 14px; line-height: 1.45; transition: color .2s;
}
.toc a::before { content: counter(toc, decimal-leading-zero); position: absolute; left: 0; top: 8px; font: 400 11.5px/1.45 var(--sans); color: var(--gold); letter-spacing: .05em; }
.toc a:hover, .toc a.is-active { color: var(--ink); }
.toc a.is-active { font-weight: 500; }
.side .btn { margin-top: 0; }
.article-grid > .side, .faq-grid > .side { align-self: stretch; }

@media (max-width: 960px) {
  .article-grid { grid-template-columns: 1fr; }
  .side__inner { position: static; max-height: none; overflow: visible; padding: 0; }
  .side__nav { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin-bottom: 0; }
  .side__nav a { border: 1px solid var(--line); margin: 0; padding: 10px 14px; font-size: 14px; }
  .side__nav a.is-active { border-color: var(--navy); }
  .toc { display: none; }
  .side .btn--block { width: auto; margin-top: 16px; display: none; }
}

/* ---------- prose ---------- */
.prose { max-width: 780px; min-width: 0; }
.prose h2 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: .7em; color: var(--navy); }
.prose h3 {
  font-size: clamp(23px, 2.2vw, 29px); color: var(--navy); margin: 2.2em 0 .8em; padding-top: 1.2em;
  border-top: 1px solid var(--line); position: relative;
}
.prose h3::before { content: "∴"; position: absolute; top: -.62em; left: 0; padding-right: 12px; background: var(--paper); color: var(--gold); font-size: 20px; }
.prose h2 + h3 { margin-top: 1.2em; }
.prose p, .prose li { color: var(--text); }
.prose strong { color: var(--ink); font-weight: 500; }
.prose a { color: var(--gold-text); text-decoration: underline; text-decoration-color: rgba(201, 169, 119, .5); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; word-break: break-word; }
.prose a:hover { color: var(--navy); text-decoration-color: var(--navy); }
.prose em { font-family: var(--serif); font-size: 1.04em; }
.prose ul, .prose ol { padding-left: 0; margin: 0 0 1.6em; list-style: none; }
.prose li { position: relative; padding-left: 34px; margin-bottom: .75em; }
.prose ul > li::before { content: ""; position: absolute; left: 6px; top: .72em; width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--gold); }
.prose ol { counter-reset: li; }
.prose ol > li { counter-increment: li; }
.prose ol > li::before { content: counter(li) "."; position: absolute; left: 0; top: 0; font: italic 500 17px/1.75 var(--serif); color: var(--gold-text); }
.prose .figure, .prose figure { margin: 2.2em 0; }
.prose figure img { width: 100%; box-shadow: var(--shadow); }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--gold); line-height: 1.55; }
.prose > figure:first-of-type { margin-top: 0; }
.prose h2 + figure { margin-top: .4em; }
.prose--long > h2 + p::first-letter {
  float: left; font: 400 4.6em/.8 var(--serif); color: var(--gold); padding: .08em .12em 0 0;
}
.prose--post h2 { font-size: clamp(28px, 3vw, 40px); }
.embed { position: relative; aspect-ratio: 16 / 9; margin: 1.6em 0; background: var(--navy); box-shadow: var(--shadow); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose a.doc-link {
  display: flex; align-items: center; gap: 18px; padding: 20px 24px; margin: 8px 0;
  border: 1px solid var(--line); background: var(--parchment); text-decoration: none; color: var(--ink); font-weight: 500;
  transition: border-color .25s, background .25s;
}
.prose a.doc-link::before {
  content: "PDF"; flex: none; display: grid; place-items: center; width: 48px; height: 56px;
  background: var(--navy); color: var(--gold); font: 500 11px/1 var(--sans); letter-spacing: .14em;
  clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%);
}
.prose a.doc-link:hover { border-color: var(--gold); background: #fff; color: var(--ink); }
.post-back { margin: 3em 0 0; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.pager a { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: all .3s var(--ease); }
.pager a:hover { border-color: var(--gold); background: var(--parchment); }
.pager small { font: 500 11.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); }
.pager span { font: 400 19px/1.35 var(--serif); }
.pager__prev small::before { content: "← "; }
.pager__next { text-align: right; }
.pager__next small::after { content: " →"; }
.pager a span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 600px) { .pager { grid-template-columns: 1fr; } .pager > span:empty { display: none; } }

/* ---------- post list ---------- */
.post-list { display: grid; gap: 28px; min-width: 0; }
.post-card { display: grid; grid-template-columns: 300px minmax(0, 1fr); border: 1px solid var(--line); background: #fff; transition: box-shadow .4s var(--ease), border-color .4s; }
.post-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.post-card__media { position: relative; overflow: hidden; background: var(--navy); min-height: 220px; }
.post-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__ph {
  position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold); font: 400 64px/1 var(--serif);
  background: repeating-conic-gradient(var(--navy) 0 25%, var(--navy-2) 0 50%) 0 0 / 40px 40px;
}
.post-card__body { padding: 32px 36px; display: flex; flex-direction: column; align-items: flex-start; }
.post-card h2 { font-size: clamp(22px, 2vw, 27px); margin-bottom: 14px; }
.post-card h2 a { text-decoration: none; color: var(--navy); transition: color .2s; }
.post-card h2 a:hover { color: var(--gold-text); }
.post-card__excerpt { font-size: 15.5px; line-height: 1.7; color: var(--muted); margin-bottom: 18px; }
.post-card__excerpt p:last-child { margin-bottom: 0; }
.post-card__excerpt strong { color: var(--text); font-weight: 500; }
.post-card .link-arrow { margin-top: auto; }
@media (max-width: 760px) {
  .post-card { grid-template-columns: 1fr; }
  .post-card__media { aspect-ratio: 16 / 9; min-height: 0; }
  .post-card__body { padding: 24px 22px 28px; }
}

/* ==========================================================================
   Lože
   ========================================================================== */
.lodges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.lodge { background: #fff; border: 1px solid var(--line); text-align: center; transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.lodge:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.lodge__img { aspect-ratio: 1; overflow: hidden; background: var(--navy); }
.lodge__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.lodge:hover .lodge__img img { transform: scale(1.04); }
.lodge__body { padding: 28px 24px 32px; }
.lodge h2 { font-size: clamp(22px, 2vw, 26px); margin-bottom: 12px; color: var(--navy); }
.lodge__or { font: 500 12.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 18px; }
.lodge__rule { display: block; width: 40px; height: 1px; background: var(--gold); margin: 0 auto 18px; }
.lodge__date { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 960px) { .lodges { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lodges { grid-template-columns: 1fr; } }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq__index { list-style: none; margin: 0; padding: 0; counter-reset: q; border-left: 1px solid var(--line); }
.faq__index li { counter-increment: q; }
.faq__index a {
  display: block; position: relative; padding: 10px 12px 10px 52px; margin-left: -1px; border-left: 2px solid transparent;
  text-decoration: none; color: var(--muted); font-size: 14.5px; line-height: 1.45; transition: all .2s;
}
.faq__index a::before { content: counter(q, decimal-leading-zero); position: absolute; left: 18px; top: 11px; font: italic 400 14px/1.45 var(--serif); color: var(--gold); }
.faq__index a:hover, .faq__index a.is-active { color: var(--ink); border-left-color: var(--gold); background: var(--parchment); }
.faq { border-top: 1px solid var(--line); min-width: 0; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; display: grid; grid-template-columns: 52px 1fr 40px; align-items: center; gap: 12px;
  padding: 28px 0; cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__n { font: italic 400 22px/1 var(--serif); color: var(--gold); }
.faq__item h2 { font-size: clamp(20px, 2vw, 26px); margin: 0; color: var(--navy); transition: color .2s; }
.faq__item summary:hover h2 { color: var(--gold-text); }
.faq__icon {
  width: 40px; height: 40px; border: 1px solid var(--gold); border-radius: 50%;
  display: grid; place-items: center; color: var(--gold-text); justify-self: end;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.faq__icon svg { width: 16px; height: 16px; overflow: visible; }
.faq__icon path { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; transition: transform .35s var(--ease), opacity .35s; transform-origin: 8px 8px; }
.faq__item summary:hover .faq__icon { background: var(--parchment); }
.faq__item[open] .faq__icon { background: var(--navy); border-color: var(--navy); color: var(--gold); }
.faq__item[open] .faq__v { transform: rotate(90deg); opacity: 0; }
.faq__a { padding: 0 52px 36px 64px; color: var(--text); }
.faq__a p:last-child { margin-bottom: 0; }
.faq__a strong { color: var(--ink); font-weight: 500; }
@media (max-width: 960px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .side { display: none; }
}
@media (max-width: 600px) {
  .faq__item summary { grid-template-columns: 1fr 36px; padding: 22px 0; }
  .faq__n { display: none; }
  .faq__icon { width: 36px; height: 36px; }
  .faq__a { padding: 0 0 28px; }
}

/* ==========================================================================
   Kontakt
   ========================================================================== */
.contact-hero {
  position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: #fff;
  min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; padding: 80px 0;
}
.contact-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 70% 50%, rgba(13, 18, 37, .3), var(--navy) 78%); }
.contact-grid { display: grid; grid-template-columns: 1fr minmax(0, 1.1fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.contact-intro h1 { color: #fff; font-size: clamp(40px, 5.4vw, 72px); margin-bottom: .3em; }
.contact-intro .page-hero__sub { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.9vw, 24px); color: var(--gold-light); }
.contact-knocks { display: flex; gap: 14px; margin-top: 36px; }
.contact-knocks span { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--gold); animation: knock 3.6s infinite; }
.contact-knocks span:nth-child(2) { animation-delay: .35s; }
.contact-knocks span:nth-child(3) { animation-delay: .7s; }
@keyframes knock { 0%, 30%, 100% { background: transparent; transform: none; } 10% { background: var(--gold); transform: scale(1.25); } }
.contact-card { background: #fff; color: var(--text); padding: clamp(28px, 4vw, 52px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); border-top: 2px solid var(--gold); }
.form { display: grid; gap: 22px; }
.field span { display: block; font: 500 11.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 10px; }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 10px 0 12px;
  font: 400 17px/1.5 var(--sans); color: var(--ink); border-radius: 0; transition: border-color .25s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.field ::placeholder { color: #a9a59e; }
.g-recaptcha { min-height: 78px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-hero { min-height: 0; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--parchment); color: var(--text); }
.mosaic { height: 18px; background: repeating-conic-gradient(var(--navy) 0 25%, var(--parchment) 0 50%) 0 0 / 36px 36px; opacity: .9; }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px; padding-top: 72px; padding-bottom: 64px; }
.footer__logo img { width: 260px; max-width: 100%; }
.footer__motto { font: 400 20px/1 var(--serif); color: var(--gold-text); letter-spacing: .08em; margin: 26px 0 0; }
.footer__col h4 { font: 500 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink); margin-bottom: 20px; }
.footer__col h4 a { text-decoration: none; }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: 10px; }
.footer__col a { text-decoration: none; color: var(--text); font-size: 15.5px; transition: color .2s; }
.footer__col a:hover { color: var(--gold-text); }
.footer__bottom { background: var(--navy); color: rgba(255, 255, 255, .65); font-size: 14px; }
.footer__bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; padding-bottom: 22px; }
.footer__bottom p { margin: 0; }
.footer__bottom a:not(.to-top) { color: var(--gold); text-decoration: none; }
.footer__bottom a:not(.to-top):hover { color: #fff; }
.to-top { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-dark); color: var(--gold); transition: all .25s; }
.to-top svg { width: 14px; height: 14px; }
.to-top:hover { background: var(--gold); color: var(--navy); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom .container { flex-direction: column; text-align: center; }
}

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* inline accordion inside articles (Zašto pristupiti) */
.prose .faq--inline { margin-top: 2.4em; }
.prose .faq__item h3 { font-size: clamp(19px, 1.8vw, 23px); margin: 0; padding: 0; border: 0; color: var(--navy); }
.prose .faq__item h3::before { display: none; }
.prose .faq__a { padding: 0 48px 30px 64px; }
@media (max-width: 600px) { .prose .faq__a { padding: 0 0 24px; } }

/* ---------- EE integracija ---------- */
.faq { counter-reset: faq; }
.faq__item { counter-increment: faq; }
.faq__n:empty::before { content: counter(faq, decimal-leading-zero); }
.lodge__or > *, .lodge__date > *, .hlodge__or > *, .hlodge__date > * { margin: 0; }
.toc:has(ol:empty) { display: none; }
.form__msg { margin: 14px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--gold-text); }
.form__msg.is-error { color: #b4232c; }
.prose figure img { max-height: 820px; width: auto; max-width: 100%; display: block; margin: 0 auto; }
