/* === Межень Миров — base styles === */
:root {
  --bg:        #111410;
  --bg-deep:   #0a0d08;
  --forest-1:  #1A2018;
  --forest-2:  #2D4A2E;
  --forest-3:  #4A6B4A;
  --mist:      #8FAE7E;
  --teal:      #4A7A7A;
  --sky:       #C8D89A;
  --gold:      #C9A227;
  --gold-soft: #E0BE49;
  --parchment: #E8E0CF;
  --warm-white:#F0EDE6;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--parchment);
  font-family: 'EB Garamond', serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--bg-deep); }

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.page { position: relative; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  transition: padding .35s ease, background .35s ease, backdrop-filter .35s ease, border-color .35s ease, box-shadow .35s ease;
  background: rgba(10, 13, 8, 0.22);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 0 rgba(201, 162, 39, 0.04);
}
.nav--scrolled {
  padding: 10px 0;
  background: rgba(10, 13, 8, 0.55);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  border-bottom-color: rgba(201, 162, 39, 0.20);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}
.nav__inner {
  max-width: 1320px; margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}
.nav__brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--parchment);
}
.nav__brand-mark {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border: 1.4px solid var(--gold);
  border-radius: 50%;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--gold);
  background: rgba(10, 13, 8, 0.7);
}
.nav__brand-text {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--parchment);
}
.nav__links {
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: center; gap: 36px;
}
.nav__links a {
  position: relative;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(232, 224, 207, 0.78);
  padding: 6px 0;
  transition: color .25s ease;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 0; height: 1px; background: var(--gold);
  transition: width .35s ease;
}
.nav__links a:hover { color: var(--parchment); }
.nav__links a:hover::after { width: 100%; }

.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  transition: all .25s ease;
}
.nav__cta:hover {
  background: var(--gold);
  color: var(--bg-deep);
  box-shadow: 0 0 24px rgba(201, 162, 39, 0.35);
}
.nav__cta svg { transition: transform .25s ease; }
.nav__cta:hover svg { transform: translate(2px, -2px); }

/* ---------- BURGER + SLIDE-DOWN SHEET ---------- */
.nav__burger {
  display: none;
  width: 44px; height: 44px;
  background: rgba(10, 13, 8, 0.55);
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.nav__burger:hover { background: rgba(201,162,39,0.10); border-color: var(--gold); }
.nav__burger span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.6px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform .35s cubic-bezier(.7,.1,.2,1), opacity .25s ease, top .35s cubic-bezier(.7,.1,.2,1);
}
.nav__burger span:nth-child(1) { top: 14px; }
.nav__burger span:nth-child(2) { top: 21px; }
.nav__burger span:nth-child(3) { top: 28px; }
.nav__burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.nav__burger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.nav__sheet {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: rgba(7, 10, 6, 0.96);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border-bottom: 1px solid rgba(201, 162, 39, 0.20);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  padding: 22px 22px 28px;
  transform: translateY(-12px);
  transition: transform .45s cubic-bezier(.7,.1,.2,1), opacity .35s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 49;
  max-height: calc(100dvh - 100%);
  overflow-y: auto;
}
.nav__sheet.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav__sheet-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
}
.nav__sheet-list li {
  border-top: 1px solid rgba(201, 162, 39, 0.14);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .35s ease, transform .35s ease;
}
.nav__sheet-list li:last-child { border-bottom: 1px solid rgba(201, 162, 39, 0.14); }
.nav__sheet.is-open .nav__sheet-list li { opacity: 1; transform: translateY(0); }
.nav__sheet-list a {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px 4px;
  color: var(--parchment);
  font-family: 'Cinzel', serif;
  font-size: 17px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.nav__sheet-num {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.18em;
  font-feature-settings: "tnum" 1;
}
.nav__sheet-arrow {
  font-size: 16px;
  color: rgba(201, 162, 39, 0.55);
  transition: transform .25s ease, color .25s ease;
}
.nav__sheet-list a:hover .nav__sheet-arrow,
.nav__sheet-list a:active .nav__sheet-arrow { transform: translateX(4px); color: var(--gold); }
.nav__sheet-cta {
  margin-top: 22px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  padding: 16px;
  background: var(--gold);
  color: var(--bg-deep);
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 6px;
  font-weight: 600;
}

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: inline-block; }
  .nav__inner { grid-template-columns: auto 1fr auto; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-deep);
}

.hero__parallax {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}

.layer {
  position: absolute; inset: 0;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
  will-change: transform, opacity;
}

/* === Photo background === */
.layer--photo {
  background-image: url("/assets/img/hero-bg.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  /* slight overscale so parallax doesn't expose edges */
}

.layer--overlay {
  background:
    radial-gradient(120% 80% at 50% 65%, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.35) 65%, rgba(0,0,0,0.65) 100%),
    linear-gradient(180deg, rgba(8,10,7,0.55) 0%, rgba(8,10,7,0.25) 35%, rgba(8,10,7,0.55) 100%);
}

/* Soft fog band horizon */
.layer--fog {
  background:
    radial-gradient(80% 36% at 50% 60%, rgba(143, 174, 126, 0.20) 0%, rgba(143, 174, 126, 0.06) 45%, transparent 80%),
    radial-gradient(60% 28% at 50% 70%, rgba(74, 122, 122, 0.14) 0%, transparent 70%);
  mix-blend-mode: screen;
  filter: blur(2px);
}

.layer--mist {
  background:
    linear-gradient(180deg, transparent 0%, transparent 45%, rgba(74, 122, 122, 0.08) 60%, rgba(143, 174, 126, 0.10) 75%, rgba(11, 14, 10, 0.0) 100%),
    radial-gradient(75% 22% at 50% 70%, rgba(143, 174, 126, 0.18) 0%, transparent 80%);
  mix-blend-mode: screen;
  filter: blur(8px);
}

.layer--vignette {
  background:
    radial-gradient(120% 80% at 50% 60%, transparent 50%, rgba(8, 10, 7, 0.55) 80%, rgba(8, 10, 7, 0.92) 100%),
    linear-gradient(180deg, rgba(10, 13, 8, 0.5) 0%, transparent 18%);
}

/* Grain */
.layer--grain {
  background-image: url("8fe539e3-8db5-4714-bb51-f9c284afe310");
  background-size: 240px 240px;
  opacity: 0.07;
  mix-blend-mode: overlay;
  pointer-events: none;
  /* very slow drift */
  animation: grainDrift 8s steps(8) infinite;
}
@keyframes grainDrift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-6px, 4px); }
  40%  { transform: translate(4px, -6px); }
  60%  { transform: translate(-4px, -4px); }
  80%  { transform: translate(6px, 2px); }
  100% { transform: translate(0, 0); }
}

/* Hero → next-section gradient fade (bottom 20vh) */
.layer--fade {
  top: auto; bottom: 0; height: 22vh;
  background: linear-gradient(180deg, transparent 0%, rgba(17, 20, 16, 0.6) 50%, var(--bg) 100%);
  z-index: 4;
}

/* Particles canvas */
.particles {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
}

/* ---------- HERO CONTENT ---------- */
.hero__content {
  position: relative; z-index: 5;
  height: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 110px 32px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.hero__content--logo-left  .hero__logo { margin-right: auto; margin-left: 0; }
.hero__content--logo-right .hero__logo { margin-left: auto; margin-right: 0; }
.hero__content--logo-center .hero__logo { margin-left: auto; margin-right: auto; }

.hero__logo {
  flex: 0 0 auto;
  opacity: 1;
  animation: heroLogoIn .9s ease both;
  margin-top: 8px;
}
@keyframes heroLogoIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.logo {
  position: relative;
  width: 100%; height: 100%;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.7));
  transition: filter .4s ease;
}
.logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.logo--glow {
  filter:
    drop-shadow(0 0 18px rgba(201, 162, 39, 0.45))
    drop-shadow(0 0 36px rgba(201, 162, 39, 0.22))
    drop-shadow(0 6px 24px rgba(0, 0, 0, 0.7));
}

.hero__text {
  text-align: center;
  /* shift text block up ~2cm so it doesn't crowd the bottom edge */
  margin-bottom: 75px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  opacity: 1;
  animation: heroTextIn 1.2s ease both .15s;
  flex: 0 0 auto;
  max-width: 920px;
  width: min(92vw, 920px);
  padding: 0 24px;
  position: relative;
  transition: transform .5s ease;
}
@keyframes heroTextIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 13px;
  font-style: italic;
  color: var(--gold-soft);
  letter-spacing: 0.06em;
  opacity: 0.85;
}
.hero__eyebrow .line {
  display: inline-block;
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero__title {
  margin: 0;
  font-size: clamp(36px, 5.0vw, 72px);
  line-height: 1.0;
  text-transform: uppercase;
  color: var(--parchment);
  display: block;
  text-shadow: 0 2px 20px rgba(0,0,0,0.85), 0 0 40px rgba(0,0,0,0.5);
  white-space: nowrap;
}
.hero__title-amp {
  display: inline-block;
  width: 0.7em;
  text-align: center;
  color: var(--gold);
  font-size: 0.55em;
  vertical-align: 0.25em;
}
.hero__title--glow {
  text-shadow:
    0 0 28px rgba(201, 162, 39, 0.35),
    0 0 60px rgba(201, 162, 39, 0.18),
    0 2px 24px rgba(0,0,0,0.6);
}

.hero__slogan {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--parchment);
  opacity: 0.9;
  max-width: 540px;
  line-height: 1.5;
  font-style: italic;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 14px rgba(0,0,0,0.85);
}

.hero__actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all .3s ease;
  border: 1px solid transparent;
  position: relative;
}
.btn--primary {
  color: var(--gold);
  background: rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  border-color: var(--gold);
  box-shadow:
    0 0 0 1px rgba(201, 162, 39, 0.15) inset,
    0 8px 28px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(201, 162, 39, 0.10);
}
.btn--primary::before {
  content: ""; position: absolute; inset: 3px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  pointer-events: none;
  transition: inset .3s ease, border-color .3s ease;
}
.btn--primary:hover {
  background: var(--gold);
  color: var(--bg-deep);
  box-shadow:
    0 0 0 1px var(--gold),
    0 10px 40px rgba(201, 162, 39, 0.32),
    0 0 60px rgba(201, 162, 39, 0.18);
}
.btn--primary:hover::before { inset: 5px; border-color: rgba(10,13,8,0.6); }
.btn--primary:hover svg path:first-child { fill: var(--bg-deep); }
.btn--primary:hover svg path:last-child { fill: var(--gold); }

.btn--ghost {
  color: var(--parchment);
  background: transparent;
  border-color: rgba(232, 224, 207, 0.25);
}
.btn--ghost:hover {
  border-color: var(--parchment);
  background: rgba(232, 224, 207, 0.06);
}

/* Scroll hint */
.hero__scroll-hint {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(232, 224, 207, 0.45);
  padding-bottom: 12px;
}
.hero__scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50%      { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

/* ---------- Placeholder section below hero ---------- */
.placeholder {
  position: relative;
  padding: 140px 32px 200px;
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}
.placeholder__inner {
  max-width: 760px; margin: 0 auto; text-align: center;
}
.placeholder__rule {
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 28px;
}
.placeholder__kicker {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
  margin: 0 0 16px;
}
.placeholder__h {
  margin: 0 0 24px;
  font-size: clamp(36px, 5vw, 64px);
  text-transform: uppercase;
  color: var(--parchment);
  line-height: 1.1;
}
.placeholder__body {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(232, 224, 207, 0.75);
}

/* Responsive tweaks */
@media (max-width: 720px) {
  .hero { min-height: 640px; }
  .hero__content { padding: 96px 20px 48px; }
  .hero__logo { width: 120px; height: 120px; }
  .hero__eyebrow { font-size: 11px; gap: 8px; }
  .hero__eyebrow .line { width: 30px; }
  .btn { padding: 13px 22px; font-size: 11px; }
}

/* =========================================================
   SECTIONS — shared
   ========================================================= */
.sec {
  position: relative;
  padding: 140px 32px;
  background: var(--bg);
  isolation: isolate;
}
.sec--about    { background: linear-gradient(180deg, var(--bg) 0%, #0d100c 100%); }
.sec--rubrics  { background: var(--bg-deep); }
.sec--videos   { background: linear-gradient(180deg, var(--bg-deep) 0%, #0c0f0b 100%); }
.sec--articles { background: var(--bg); }

.sec__inner {
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
}

.sec__header {
  text-align: center;
  margin-bottom: 80px;
}
.sec__header--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  text-align: left;
  gap: 32px;
}
.sec__header--row .sec__title { margin-bottom: 0; }

.sec__eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 13px;
  font-style: italic;
  color: var(--gold-soft);
  letter-spacing: 0.06em;
  opacity: 0.85;
  margin-bottom: 18px;
}
.sec__eyebrow .line {
  display: inline-block;
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold));
}

.sec__title {
  margin: 0 0 14px;
  font-size: clamp(40px, 5vw, 72px);
  text-transform: uppercase;
  color: var(--parchment);
  line-height: 1.05;
}

.sec__more {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.4);
  transition: border-color .25s, color .25s;
  white-space: nowrap;
}
.sec__more:hover { color: var(--gold-soft); border-bottom-color: var(--gold-soft); }

/* =========================================================
   ABOUT
   ========================================================= */
.sec__inner--about {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 80px;
  align-items: start;
}
.about__portrait {
  position: sticky; top: 110px;
}
.about__portrait-frame {
  position: relative;
  aspect-ratio: 3/4;
  border: 1px solid rgba(201, 162, 39, 0.25);
  padding: 10px;
  background: rgba(0,0,0,0.3);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.about__portrait-frame::before {
  content: "";
  position: absolute; inset: 4px;
  border: 1px solid rgba(201, 162, 39, 0.18);
  pointer-events: none;
}
.about__portrait-img {
  width: 100%; height: 100%;
  background:
    radial-gradient(60% 50% at 50% 38%, rgba(201, 162, 39, 0.18) 0%, transparent 70%),
    linear-gradient(180deg, #1a2018 0%, #0a0d08 100%);
  position: relative;
  overflow: hidden;
}
.about__portrait-img::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 30% at 50% 32%, rgba(232, 224, 207, 0.18) 0%, transparent 60%),
    radial-gradient(20% 24% at 50% 65%, rgba(74, 122, 122, 0.20) 0%, transparent 70%);
  filter: blur(2px);
}
.about__portrait-img::after {
  /* monogram silhouette suggestion */
  content: "M·M";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 96px;
  letter-spacing: 0.04em;
  color: rgba(201, 162, 39, 0.10);
  text-shadow: 0 0 40px rgba(201, 162, 39, 0.18);
}
.about__portrait-vignette {
  position: absolute; inset: 10px;
  background: radial-gradient(80% 60% at 50% 50%, transparent 50%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}
.about__portrait-caption {
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(232, 224, 207, 0.55);
  line-height: 1.7;
}
.about__portrait-caption em {
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 17px;
  color: var(--gold-soft);
  display: inline-block;
  margin-bottom: 4px;
}

.about__body {
  padding-top: 12px;
}
.about__rule {
  width: 60px; height: 1px;
  background: var(--gold);
  margin: 28px 0 36px;
}
.about__lead {
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.55;
  color: var(--parchment);
  margin: 0 0 28px;
  text-wrap: pretty;
}
.about__dropcap {
  float: left;
  font-family: 'Cinzel', serif;
  font-size: 64px;
  line-height: 0.78;
  color: var(--gold);
  padding: 6px 14px 0 0;
  margin-top: 4px;
  font-weight: 700;
  shape-outside: margin-box;
}
.about__body-text {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(232, 224, 207, 0.78);
  margin: 0 0 56px;
  font-style: italic;
  max-width: 60ch;
  text-wrap: pretty;
}
.about__meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  border-top: 1px solid rgba(201, 162, 39, 0.18);
  padding-top: 32px;
}
.about__meta > div {
  display: flex; flex-direction: column; gap: 4px;
}
.about__num {
  font-size: 36px;
  color: var(--gold);
  letter-spacing: 0.04em;
  line-height: 1;
}
.about__meta span:last-child {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(232, 224, 207, 0.55);
}

@media (max-width: 880px) {
  .sec__inner--about { grid-template-columns: 1fr; gap: 48px; }
  .about__portrait { position: static; max-width: 320px; margin: 0 auto; }
}

/* =========================================================
   RUBRICS
   ========================================================= */
.rubrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.rubric {
  position: relative;
  padding: 48px 36px 36px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(201, 162, 39, 0.18);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 380px;
  transition: transform .4s ease, border-color .4s ease, background .4s ease, box-shadow .4s ease;
  overflow: hidden;
}
.rubric::before {
  content: "";
  position: absolute; inset: 5px;
  border: 1px solid rgba(201, 162, 39, 0.10);
  pointer-events: none;
  transition: inset .4s ease, border-color .4s ease;
}
.rubric:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.04);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 60px rgba(201, 162, 39, 0.10);
}
.rubric:hover::before { inset: 8px; border-color: rgba(201, 162, 39, 0.35); }

.rubric__glyph {
  width: 56px; height: 56px;
  color: var(--gold);
  opacity: 0.85;
}
.rubric__glyph svg { width: 100%; height: 100%; }
.rubric__kicker {
  position: absolute;
  top: 36px; right: 36px;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: rgba(201, 162, 39, 0.6);
}
.rubric__title {
  margin: 4px 0 0;
  font-size: 26px;
  text-transform: uppercase;
  color: var(--parchment);
  line-height: 1.15;
}
.rubric__blurb {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(232, 224, 207, 0.7);
  font-style: italic;
  flex: 1;
}
.rubric__foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid rgba(201, 162, 39, 0.18);
  padding-top: 18px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.rubric__count { color: rgba(232, 224, 207, 0.45); }
.rubric__more  {
  color: var(--gold);
  letter-spacing: 0.22em;
  transition: transform .3s ease;
}
.rubric:hover .rubric__more { transform: translateX(4px); }

@media (max-width: 880px) {
  .rubrics { grid-template-columns: 1fr; }
  .rubric  { min-height: 0; }
}

/* =========================================================
   VIDEOS
   ========================================================= */
.videos {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.video {
  display: block;
  color: inherit;
  transition: transform .35s ease;
}
.video:hover { transform: translateY(-2px); }

.video__thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.20);
  display: grid;
  place-items: center;
}
/* Color blocks as cinematic placeholders */
.video__thumb--1 {
  background:
    radial-gradient(60% 40% at 50% 60%, rgba(201,162,39,0.20) 0%, transparent 70%),
    linear-gradient(135deg, #1A2018 0%, #0a0d08 60%, #2D4A2E 110%);
}
.video__thumb--2 {
  background:
    radial-gradient(50% 50% at 30% 50%, rgba(74,122,122,0.30) 0%, transparent 70%),
    linear-gradient(135deg, #0a0d08 0%, #1A2018 100%);
}
.video__thumb--3 {
  background:
    radial-gradient(70% 60% at 70% 50%, rgba(143,174,126,0.20) 0%, transparent 75%),
    linear-gradient(135deg, #1A2018 0%, #0a0d08 100%);
}
.video__thumb--4 {
  background:
    radial-gradient(60% 50% at 50% 30%, rgba(201,162,39,0.18) 0%, transparent 70%),
    linear-gradient(135deg, #2D4A2E 0%, #0a0d08 80%);
}
.video__thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.video__play {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(201, 162, 39, 0.6);
  color: var(--gold);
  display: grid; place-items: center;
  z-index: 2;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .3s, transform .3s, border-color .3s;
}
.video__play--sm { width: 40px; height: 40px; }
.video:hover .video__play {
  background: var(--gold);
  color: var(--bg-deep);
  transform: scale(1.06);
}
.video__duration {
  position: absolute;
  bottom: 10px; right: 10px;
  z-index: 2;
  font-size: 12px;
  padding: 3px 8px;
  background: rgba(0,0,0,0.65);
  color: var(--parchment);
  letter-spacing: 0.04em;
  border: 1px solid rgba(255,255,255,0.08);
}
.video__meta {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.video__tag {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
}
.video__title {
  margin: 0;
  font-size: 19px;
  color: var(--parchment);
  text-transform: uppercase;
  line-height: 1.25;
  font-weight: 600;
  text-wrap: balance;
}
.video__title--lg { font-size: 26px; }
.video__date {
  font-size: 13px;
  color: rgba(232, 224, 207, 0.45);
  font-style: italic;
}

.videos__list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.video--row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: start;
}
.video--row .video__meta { margin-top: 0; gap: 6px; }
.video--row .video__title { font-size: 17px; }

@media (max-width: 880px) {
  .videos { grid-template-columns: 1fr; }
  .video--row { grid-template-columns: 1fr; }
  .video--row .video__meta { margin-top: 14px; }
}

/* =========================================================
   ARTICLES
   ========================================================= */
.articles {
  list-style: none;
  margin: 0; padding: 0;
  border-top: 1px solid rgba(201, 162, 39, 0.18);
}
.article {
  display: grid;
  grid-template-columns: 100px 1fr 50px;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(201, 162, 39, 0.18);
  align-items: start;
  cursor: pointer;
  transition: background .3s, padding-left .3s;
}
.article:hover {
  background: linear-gradient(90deg, rgba(201,162,39,0.04) 0%, transparent 100%);
  padding-left: 16px;
}
.article__num {
  font-size: 38px;
  color: var(--gold);
  opacity: 0.5;
  line-height: 1;
  letter-spacing: 0.04em;
  transition: opacity .3s ease;
}
.article:hover .article__num { opacity: 1; }
.article__main {
  display: flex; flex-direction: column; gap: 12px;
}
.article__meta {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(232, 224, 207, 0.5);
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.article__tag {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.article__title {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  color: var(--parchment);
  line-height: 1.2;
  text-wrap: balance;
  transition: color .3s ease;
}
.article:hover .article__title { color: var(--gold-soft); }
.article__excerpt {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(232, 224, 207, 0.65);
  font-style: italic;
  max-width: 64ch;
}
.article__arrow {
  align-self: center;
  color: rgba(201, 162, 39, 0.4);
  transition: transform .3s ease, color .3s ease;
}
.article:hover .article__arrow {
  color: var(--gold);
  transform: translate(4px, -4px);
}

@media (max-width: 720px) {
  .article {
    grid-template-columns: 60px 1fr;
    gap: 16px;
  }
  .article__arrow { display: none; }
  .article__num { font-size: 26px; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: #07090a;
  padding: 100px 32px 32px;
  border-top: 1px solid rgba(201, 162, 39, 0.15);
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 180px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer__top {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer__logo {
  width: 64px; height: 64px;
  object-fit: contain;
  opacity: 0.92;
}
.footer__name {
  font-size: 16px;
  text-transform: uppercase;
  color: var(--parchment);
  margin-bottom: 6px;
}
.footer__tag {
  font-size: 13px;
  font-style: italic;
  color: rgba(232, 224, 207, 0.5);
  max-width: 260px;
  line-height: 1.5;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__h {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.footer__col a {
  font-size: 14px;
  color: rgba(232, 224, 207, 0.65);
  transition: color .25s;
}
.footer__col a:hover { color: var(--parchment); }

.footer__rule {
  max-width: 1320px;
  margin: 80px auto 24px;
  height: 1px;
  background: rgba(201, 162, 39, 0.18);
}
.footer__bottom {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232, 224, 207, 0.4);
}

/* === NAV LOGO IMG (replaces M·M chip) === */
.nav__brand-logo {
  width: 44px; height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
  transition: filter .3s ease;
}
.nav--scrolled .nav__brand-logo { width: 40px; height: 40px; }
.nav__brand:hover .nav__brand-logo {
  filter: drop-shadow(0 0 16px rgba(201,162,39,0.45)) drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}

/* === MOBILE WORDMARK (next to burger) — swappable block ===
   Hidden on desktop. On mobile (≤820px) replaces the desktop brand-text.
   To swap for a PNG: in the JSX, replace <span className="nav__wordmark nav__wordmark--text">…</span>
   with <img className="nav__wordmark nav__wordmark--img" src="assets/wordmark.png" alt="Межень Миров" />.
   The .nav__wordmark--img rule below sizes the image so no CSS change needed. */
.nav__wordmark { display: none; }
.nav__wordmark--text {
  font-family: 'Cinzel Decorative', 'Cinzel', serif;
  font-weight: 700;
  color: #C9A227;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(0,0,0,0.4);
}
.nav__wordmark--img {
  height: 22px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
@media (max-width: 820px) {
  .nav__wordmark { display: inline-block; }
  /* Tuned font-size so "МЕЖЕНЬ МИРОВ" fits next to logo + burger on a 375px viewport */
  .nav__wordmark--text { font-size: 13px; }
}
@media (max-width: 360px) {
  .nav__wordmark--text { font-size: 12px; letter-spacing: 0.08em; }
}

/* RUBRICS — 4-col on desktop for 8 cards */
@media (min-width: 1100px) {
  .rubrics { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 720px) and (max-width: 1099px) {
  .rubrics { grid-template-columns: repeat(2, 1fr); }
}

.rubric { padding: 36px 28px 28px; min-height: 280px; }
.rubric__kicker {
  position: absolute;
  top: 28px; right: 28px;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: rgba(201, 162, 39, 0.55);
}
.rubric__title { font-size: 22px; }
.rubric__blurb { font-size: 15px; }

/* VIDEO IMG OVERLAY */
.video__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(0.95) contrast(1.05);
  transition: transform .6s ease, filter .4s ease;
}
.video:hover .video__img { transform: scale(1.04); filter: saturate(1.1) contrast(1.1); }

/* COMING SOON sections */
.sec--coming {
  padding: 130px 32px;
  background:
    radial-gradient(60% 50% at 50% 30%, rgba(201,162,39,0.06) 0%, transparent 70%),
    var(--bg-deep);
  position: relative;
}
.sec--coming + .sec--coming { background:
    radial-gradient(60% 50% at 50% 30%, rgba(74,122,122,0.10) 0%, transparent 70%),
    var(--bg); }
.sec__inner--coming {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.coming__sigil {
  width: 88px; height: 88px;
  margin: 0 auto 28px;
  opacity: 0.85;
  filter: drop-shadow(0 0 24px rgba(201,162,39,0.18));
}
.coming__sigil img { width: 100%; height: 100%; object-fit: contain; }
.coming__rule {
  width: 60px; height: 1px;
  background: var(--gold);
  margin: 24px auto;
}
.coming__blurb {
  font-size: 18px;
  font-style: italic;
  color: rgba(232,224,207,0.7);
  line-height: 1.6;
  margin: 0 auto 32px;
  max-width: 56ch;
}
.coming__badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 10px 22px;
  border: 1px solid rgba(201,162,39,0.4);
  border-radius: 999px;
  background: rgba(0,0,0,0.3);
}

/* SOCIAL */
.sec--social {
  background: linear-gradient(180deg, var(--bg) 0%, #07090a 100%);
  padding-bottom: 80px;
}
.social {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.social__card {
  position: relative;
  padding: 28px 24px 24px;
  border: 1px solid rgba(201,162,39,0.18);
  background: rgba(255,255,255,0.02);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 150px;
  transition: transform .35s ease, border-color .35s ease, background .35s ease, box-shadow .35s ease;
  overflow: hidden;
}
.social__card::before {
  content: "";
  position: absolute; inset: 5px;
  border: 1px solid rgba(201,162,39,0.10);
  pointer-events: none;
  transition: inset .35s ease, border-color .35s ease;
}
.social__card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  background: rgba(201,162,39,0.05);
  box-shadow: 0 16px 50px rgba(0,0,0,0.5), 0 0 40px rgba(201,162,39,0.10);
}
.social__card:hover::before { inset: 8px; border-color: rgba(201,162,39,0.35); }
.social__name {
  font-size: 17px;
  text-transform: uppercase;
  color: var(--parchment);
}
.social__handle {
  font-size: 13px;
  font-style: italic;
  color: rgba(232,224,207,0.55);
}
.social__foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.social__arrow { font-size: 18px; transition: transform .25s ease; }
.social__card:hover .social__arrow { transform: translate(3px, -3px); }

@media (max-width: 1099px) { .social { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .social { grid-template-columns: repeat(2, 1fr); } }

/* MOBILE TIGHTENING */
@media (max-width: 720px) {
  .sec { padding: 90px 20px; }
  .sec__header { margin-bottom: 48px; }
  .sec__header--row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .sec__title { font-size: 30px; letter-spacing: 0.04em; }
  .sec__inner--about { gap: 36px; }
  .about__portrait { max-width: 240px; }
  .about__lead { font-size: 18px; }
  .about__dropcap { font-size: 50px; padding: 4px 10px 0 0; line-height: 0.78; margin-top: 2px; }
  .about__meta { grid-template-columns: 1fr 1fr; gap: 18px; }
  .video__title--lg { font-size: 20px; }
  .article { padding: 24px 0; gap: 14px; }
  .article__title { font-size: 20px; }
  .article__excerpt { font-size: 14px; }
  .footer { padding: 70px 20px 24px; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .footer__col { gap: 8px; }
  .footer__h { font-size: 10px; letter-spacing: 0.18em; margin-bottom: 4px; }
  .footer__col a { font-size: 12px; }
  .nav__inner { padding: 0 18px; gap: 12px; }
  .nav__cta { padding: 7px 14px; font-size: 10px; }
  .nav__brand-text { display: none; }
  .nav__brand-logo { width: 40px; height: 40px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .hero__text { margin-bottom: 0; }
  /* Hero bg on mobile: keep cover (full screen fill) and remove the parallax overscale so the image is ~7% less zoomed in than desktop — figures of knight + creature stay well-visible */
  .layer--photo {
    background-size: cover !important;
    background-position: center 40% !important;
    transform: scale(1) !important;
  }
}

/* ═══════════════ ADDITIONS FOR PHP CMS ═══════════════ */

/* Dynamic font vars */
body { font-family: var(--body-font, 'EB Garamond', serif); }
.hero__title, .sec__title, .rubric__title, .rubric__kicker,
.video__title, .article__title, .social__name, .footer__name,
.nav__brand-text, .nav__links a, .nav__cta, .article__tag,
.rubric__more, .sec__more, .about__num, .nav__sheet-num {
  font-family: var(--heading-font, 'Cinzel Decorative', serif);
}

/* Logo img */
.logo__img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo--glow { filter: drop-shadow(0 0 28px rgba(201,162,39,0.5)); }

/* Nav brand logo */
.nav__brand-logo { width: 38px; height: 38px; object-fit: contain; border-radius: 50%; }
.nav__wordmark--text {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--gold);
  display: none;
}
.nav__wordmark--img { height: 28px; width: auto; display: none; }

/* Boosty section */
.sec--boosty { background: linear-gradient(to bottom, var(--bg), var(--forest-1)); }
.boosty__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.boosty__card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px 24px;
  background: rgba(26,32,24,0.7);
  border: 1px solid rgba(201,162,39,0.2);
  border-radius: 12px;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}
.boosty__card:hover {
  border-color: rgba(201,162,39,0.6);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.boosty__lock { color: var(--gold); opacity: 0.6; }
.boosty__tag {
  font-family: var(--heading-font, 'Cinzel', serif);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.boosty__title {
  font-family: var(--heading-font, 'Cinzel', serif);
  font-size: 15px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: var(--parchment);
  margin: 0;
}
.boosty__date {
  font-family: var(--body-font, 'EB Garamond', serif);
  font-size: 13px;
  color: rgba(232,224,207,0.5);
  margin-top: auto;
}
.boosty__cta { text-align: center; }
.btn--gold {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px;
  background: var(--gold);
  color: var(--bg-deep);
  border: none;
  border-radius: 999px;
  font-family: var(--heading-font, 'Cinzel', serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: all .25s ease;
}
.btn--gold:hover {
  background: var(--gold-soft);
  box-shadow: 0 0 32px rgba(201,162,39,0.5);
  transform: translateY(-2px);
}

/* Article cover image */
.article__cover {
  width: 80px; height: 60px; flex-shrink: 0;
  border-radius: 6px; overflow: hidden;
}
.article__cover img { width: 100%; height: 100%; object-fit: cover; }

/* Article arrow as link */
.article__arrow {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex-shrink: 0;
  color: rgba(201,162,39,0.5);
  border-radius: 50%;
  border: 1px solid rgba(201,162,39,0.2);
  transition: all .25s ease;
}
.article:hover .article__arrow {
  color: var(--gold);
  border-color: var(--gold);
  transform: translate(3px,-3px);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  z-index: 40;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(10,13,8,0.85);
  border: 1px solid rgba(201,162,39,0.45);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, background .25s ease, border-color .25s ease;
  backdrop-filter: blur(12px);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { background: var(--gold); color: var(--bg-deep); border-color: var(--gold); }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal.revealed { opacity: 1; transform: none; }

/* Footer gold line */
.footer__gold-line {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0.5;
}

/* Mobile nav wordmark */
@media (max-width: 900px) {
  .nav__wordmark--text, .nav__wordmark--img { display: block; }
  .nav__brand-text { display: none; }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
  .boosty__grid { grid-template-columns: 1fr; }
}
