:root {
  --bg: #0a0c11;
  --line: rgba(216, 179, 106, .38);
  --gold: #d8b36a;
  --gold-hi: #f4dc9f;
  --text: #efe6d2;
  --heading: #f3ead6;
  --muted: #b0a898;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --gold-text: linear-gradient(180deg, #f6dea3 0%, #e0b96d 55%, #b98c43 100%);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --c-tl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cg fill='none' stroke='%23d8b36a'%3E%3Cpath d='M1 21V9a8 8 0 0 1 8-8h12' stroke-width='1.2'/%3E%3Cpath d='M5 17v-7a5 5 0 0 1 5-5h7' stroke-opacity='.5'/%3E%3Ccircle cx='5' cy='5' r='1.3' fill='%23d8b36a' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
  --c-tr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cg fill='none' stroke='%23d8b36a' transform='matrix(-1 0 0 1 22 0)'%3E%3Cpath d='M1 21V9a8 8 0 0 1 8-8h12' stroke-width='1.2'/%3E%3Cpath d='M5 17v-7a5 5 0 0 1 5-5h7' stroke-opacity='.5'/%3E%3Ccircle cx='5' cy='5' r='1.3' fill='%23d8b36a' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
  --c-bl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cg fill='none' stroke='%23d8b36a' transform='matrix(1 0 0 -1 0 22)'%3E%3Cpath d='M1 21V9a8 8 0 0 1 8-8h12' stroke-width='1.2'/%3E%3Cpath d='M5 17v-7a5 5 0 0 1 5-5h7' stroke-opacity='.5'/%3E%3Ccircle cx='5' cy='5' r='1.3' fill='%23d8b36a' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
  --c-br: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cg fill='none' stroke='%23d8b36a' transform='matrix(-1 0 0 -1 22 22)'%3E%3Cpath d='M1 21V9a8 8 0 0 1 8-8h12' stroke-width='1.2'/%3E%3Cpath d='M5 17v-7a5 5 0 0 1 5-5h7' stroke-opacity='.5'/%3E%3Ccircle cx='5' cy='5' r='1.3' fill='%23d8b36a' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 12px;
  font: 600 15px/1 var(--sans); letter-spacing: .01em; white-space: nowrap;
  cursor: pointer;
  transition: translate .2s, box-shadow .2s, background-color .2s, border-color .2s, color .2s;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: translate .2s; }
.btn:hover .i-arrow, .link-arrow:hover .i-arrow { translate: 3px 0; }
.btn-gold {
  color: #1d1508;
  background: linear-gradient(180deg, #f6dea3 0%, #e2bd73 48%, #c49446 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 236, 190, .35), 0 8px 24px -8px rgba(216, 179, 106, .55);
}
.btn-gold:hover { translate: 0 -1px; box-shadow: inset 0 0 0 1px rgba(255, 236, 190, .55), 0 14px 32px -8px rgba(216, 179, 106, .75); }
.btn-ghost { color: var(--text); background: rgba(10, 12, 17, .55); border-color: rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn-outline { color: var(--gold-hi); background: rgba(0, 0, 0, .22); border-color: rgba(216, 179, 106, .6); border-radius: 999px; }
.btn-outline:hover { background: rgba(216, 179, 106, .14); border-color: var(--gold-hi); }
.btn-lg { min-height: 54px; padding: 0 28px; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; border-radius: 10px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 15px/1.2 var(--sans); color: var(--gold);
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
}
.link-arrow svg { width: 16px; height: 16px; transition: translate .2s; }
.link-arrow:hover { color: var(--gold-hi); }

.badge {
  display: inline-flex; align-items: center; padding: 6px 13px; border-radius: 999px;
  font: 600 13px/1 var(--sans); color: #fff; white-space: nowrap;
}
.badge-red {
  background: linear-gradient(180deg, #c62f2a, #8d1715);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 6px 16px -6px rgba(161, 31, 29, .9);
}

.ornate::after {
  content: ''; position: absolute; inset: 4px; z-index: 2; pointer-events: none;
  background:
    var(--c-tl) left top / 22px no-repeat, var(--c-tr) right top / 22px no-repeat,
    var(--c-bl) left bottom / 22px no-repeat, var(--c-br) right bottom / 22px no-repeat;
}

.gold-text, .hero-title em, .section-title em {
  background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-title em, .section-title em { font-style: italic; padding-right: .06em; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: background-color .3s, border-color .3s;
}
.site-header.is-scrolled, .nav-open .site-header {
  background: rgba(9, 11, 16, .86); border-bottom-color: rgba(216, 179, 106, .16);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { width: 38px; height: 44px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font: 600 25px/1 var(--serif); color: var(--heading); letter-spacing: .01em; }
.brand-tag { margin-top: 4px; font-size: 10.5px; line-height: 1; color: var(--muted); letter-spacing: .02em; }

.nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px;
  border: 0; border-radius: 8px; background: none; cursor: pointer;
  font: 500 14px/1 var(--sans); color: rgba(239, 230, 210, .86);
  transition: color .2s;
}
.nav-link:hover { color: var(--gold-hi); }
.nav-link svg { width: 14px; height: 14px; transition: rotate .2s; }
.dropdown-toggle { color: var(--gold); }
.dropdown { position: relative; }
.dropdown.is-open .dropdown-toggle svg { rotate: 180deg; }
.dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0; min-width: 300px;
  margin: 0; padding: 8px; list-style: none;
  background: rgba(13, 16, 23, .97); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .75);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.dropdown-menu::before { content: ''; position: absolute; inset: -12px 0 auto; height: 12px; }
.dropdown.is-open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 981px) {
  .dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
}
.dropdown-menu a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14px; line-height: 1.35; color: var(--text); }
.dropdown-menu a small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.dropdown-menu a:hover { background: rgba(216, 179, 106, .1); color: var(--gold-hi); }

.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.lang-switch { display: flex; padding: 3px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: rgba(0, 0, 0, .25); }
.lang-switch a { padding: 6px 10px; border-radius: 999px; font: 700 12px/1 var(--sans); letter-spacing: .06em; color: var(--muted); transition: color .2s; }
.lang-switch a:hover { color: var(--gold-hi); }
.lang-switch a[aria-current] { background: rgba(216, 179, 106, .16); color: var(--gold-hi); }

.nav-toggle {
  display: none; position: relative; width: 42px; height: 42px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; background: rgba(0, 0, 0, .25); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 50%; width: 18px; height: 1.6px; margin-left: -9px; background: var(--text);
  border-radius: 2px; transition: transform .25s, opacity .2s;
}
.nav-toggle span { top: 50%; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; left: 0; margin: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; display: block;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    padding: 8px var(--gutter) 24px;
    background: rgba(9, 11, 16, .98); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li + li { border-top: 1px solid rgba(255, 255, 255, .06); }
  .nav-link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 16px; }
  .dropdown-menu {
    position: static; translate: none; transform: none; min-width: 0; display: none;
    padding: 0 0 10px; border: 0; background: none; box-shadow: none; opacity: 1; visibility: visible;
  }
  .dropdown.is-open .dropdown-menu { display: block; }
  .nav-toggle { display: inline-block; }
}
@media (max-width: 560px) {
  .header-actions .btn, .brand-tag { display: none; }
  .header-inner { gap: 12px; }
  .header-actions { margin-left: auto; gap: 10px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + clamp(24px, 5svh, 56px)) 0 clamp(24px, 5svh, 48px);
  background: var(--bg);
}
.hero-art {
  position: absolute; inset: 0;
  background: url(img/hero-knight-panorama.webp) 76% center / cover no-repeat;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 12, 17, .34), transparent 24%, transparent 69%, var(--bg) 100%),
    linear-gradient(90deg, rgba(7, 10, 16, .58), rgba(7, 10, 16, .4) 39%, rgba(7, 10, 16, .08) 67%, transparent 88%);
}
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: clamp(36px, 7svh, 72px); }
.hero-copy { max-width: 600px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px; padding: 8px 16px;
  border: 1px solid rgba(216, 179, 106, .45); border-radius: 999px; background: rgba(10, 12, 17, .5);
  font: 600 13px/1 var(--sans); color: var(--gold-hi);
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.hero-title {
  margin: 0; font: 500 clamp(44px, 5.5vw, 82px)/.98 var(--serif); letter-spacing: -.01em; color: var(--heading);
  text-shadow: 0 2px 24px rgba(0, 0, 0, .5);
}
.hero-lead { max-width: 500px; margin: 28px 0 0; font-size: 17px; line-height: 1.65; color: rgba(239, 230, 210, .88); text-shadow: 0 1px 12px rgba(0, 0, 0, .8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }

.features {
  display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 18px 8px; list-style: none;
  border: 1px solid rgba(255, 255, 255, .09); border-radius: 14px;
  background: rgba(10, 12, 17, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.features li { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 6px 16px; font: 500 15px/1.3 var(--sans); }
.features li + li { border-left: 1px solid rgba(255, 255, 255, .12); }
.features svg { width: 28px; height: 28px; flex: none; color: var(--gold); }

@media (max-width: 860px) {
  .hero { align-items: flex-end; padding-top: clamp(245px, 40svh, 380px); }
  .hero-art {
    bottom: auto; height: clamp(460px, 68svh, 670px);
    background-image: url(img/hero-knight-mobile.webp);
    background-position: 46% 22%;
    mask-image: linear-gradient(#000 66%, transparent);
  }
  .hero::after {
    background: linear-gradient(180deg, rgba(10, 12, 17, .17), transparent 18%, rgba(10, 12, 17, .63) 37%, var(--bg) 69%);
  }
  .hero-inner { gap: 32px; }
}
@media (max-width: 760px) {
  .features { grid-template-columns: 1fr; padding: 4px 18px; }
  .features li { justify-content: flex-start; padding: 14px 0; }
  .features li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
}
@media (max-width: 480px) {
  .hero-lead { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: 110px 0; }
.section-head { position: relative; z-index: 1; max-width: 720px; margin: 0 auto 60px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px; margin: 0 0 14px;
  font: 700 13px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before, .eyebrow::after { content: ''; width: 40px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.eyebrow::after { scale: -1 1; }
.section-title { margin: 0; font: 500 clamp(38px, 4.6vw, 60px)/1.05 var(--serif); color: var(--heading); text-wrap: balance; }
.section-sub { margin: 16px 0 0; font-size: 17px; color: var(--muted); }

/* ---------- Three roads ---------- */
.roads {
  isolation: isolate; padding-top: 80px;
  background: radial-gradient(ellipse at 50% 32%, #17232d, var(--bg) 79%);
}
.roads::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  inset: 0 0 auto; height: min(100%, max(480px, 33.35vw));
  background:
    linear-gradient(180deg, var(--bg), transparent 17%, rgba(10, 12, 17, .12) 55%, var(--bg)),
    url(img/roads-fortress.webp) center top / max(1450px, 100%) auto no-repeat;
}
.roads-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.road {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--noise), linear-gradient(180deg, #141a28 0%, #0e121c 100%);
  border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .85);
  transition: translate .35s, border-color .35s, box-shadow .35s;
}
.road:hover { translate: 0 -4px; border-color: rgba(216, 179, 106, .7); box-shadow: 0 36px 70px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(216, 179, 106, .1); }
.road-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-bottom: 1px solid var(--line); }
.road-media img { width: 100%; height: 100%; object-fit: cover; transition: scale .7s; }
.road:hover .road-media img { scale: 1.04; }
.road-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(14, 18, 28, .55)); }
.road-media .badge { position: absolute; top: 12px; left: 12px; z-index: 1; }
.road-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 28px 28px 32px; }
.road-title { margin: 0; font: 500 32px/1.1 var(--serif); color: var(--heading); }
.road-text { margin: 14px 0 26px; font-size: 15px; line-height: 1.65; color: var(--muted); }
.road-body > :last-child { margin-top: auto; }
@media (max-width: 960px) {
  .roads-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  .roads::before { background-position: center, 35% top; }
}

/* ---------- Lesson types ---------- */
.formats {
  isolation: isolate; overflow: clip;
  --torch-edge: clamp(12px, 8vw, 205px);
  --torch-top: clamp(72px, 7vw, 144px);
  --torch-width: clamp(68px, 6.3vw, 126px);
  background: radial-gradient(ellipse at 50% 20%, #131b24, var(--bg) 73%);
}
.formats::before {
  content: ''; position: absolute; inset: 0 0 auto; z-index: -1; pointer-events: none;
  height: min(100%, max(820px, 47vw));
  mask-image: linear-gradient(#000 60%, transparent);
  background:
    linear-gradient(180deg, var(--bg), transparent 16%, rgba(10, 12, 17, .14) 72%),
    url(img/formats-stone-hall.webp) center top / max(1450px, 100%) 100% no-repeat;
}
.torch {
  position: absolute; top: var(--torch-top); width: var(--torch-width); aspect-ratio: 180 / 256;
  pointer-events: none; z-index: -1;
}
.torch-l { left: var(--torch-edge); --torch-art: url(img/torch-left.webp); }
.torch-r { right: var(--torch-edge); --torch-art: url(img/torch-right.webp); --fire-delay: -1.35s; }
.torch::before, .torch::after {
  content: ''; position: absolute; inset: 0;
  background: var(--torch-art) center / cover no-repeat;
}
.torch::before {
  mask-image: radial-gradient(ellipse 30% 37% at 50% 42%, #000 36%, rgba(0, 0, 0, .92) 68%, transparent 97%);
  transform-origin: 50% 71%;
  animation: flame-flicker 2.7s var(--fire-delay, 0s) ease-in-out infinite;
}
.torch::after {
  mask-image: radial-gradient(ellipse 34% 24% at 48% 82%, #000 31%, rgba(0, 0, 0, .96) 65%, transparent 97%);
}
.torch-glow {
  position: absolute; z-index: -1; pointer-events: none;
  width: calc(var(--torch-width) * 3.45); aspect-ratio: 1; top: calc(var(--torch-top) - var(--torch-width));
  background: radial-gradient(ellipse, rgba(255, 158, 62, .33), rgba(215, 106, 38, .1) 38%, transparent 69%);
  mix-blend-mode: screen;
  animation: wall-light 3.6s var(--fire-delay, 0s) ease-in-out infinite;
}
.torch-glow.l { left: calc(var(--torch-edge) - var(--torch-width) * 1.225); }
.torch-glow.r { right: calc(var(--torch-edge) - var(--torch-width) * 1.225); --fire-delay: -1.4s; }
.torch-sparks {
  position: absolute; z-index: 1; inset: 20% 21% 33%; pointer-events: none;
  background:
    radial-gradient(2px 2px at 37% 58%, #ffd497 35%, transparent 92%),
    radial-gradient(2px 2px at 61% 38%, #f9ad65 35%, transparent 92%),
    radial-gradient(1.5px 1.5px at 72% 67%, #f8c279 35%, transparent 92%);
  filter: drop-shadow(0 0 4px #f59d48);
  animation: rising-sparks 4.5s var(--fire-delay, 0s) linear infinite;
}
@keyframes flame-flicker {
  0%, 100% { transform: scale(.98, 1.01) rotate(-1deg); filter: brightness(.99); }
  23% { transform: scale(1.03, .96) rotate(2deg); filter: brightness(1.13); }
  42% { transform: scale(.98, 1.04) rotate(-2deg); filter: brightness(1.03); }
  68% { transform: scale(1.02, .99) rotate(1deg); filter: brightness(1.15); }
  82% { transform: scale(.97, 1.03) rotate(-1deg); filter: brightness(1.04); }
}
@keyframes wall-light {
  0%, 100% { opacity: .68; scale: .98; }
  27%, 72% { opacity: .98; scale: 1.035; }
  49%, 85% { opacity: .77; scale: 1; }
}
@keyframes rising-sparks {
  0%, 100% { opacity: 0; transform: translate(0, 14px); }
  18% { opacity: .78; }
  68% { opacity: .24; transform: translate(8px, -24px); }
  80%, 99% { opacity: 0; transform: translate(13px, -37px); }
}
@media (max-width: 760px) {
  .formats { --torch-edge: 6px; --torch-top: 86px; --torch-width: clamp(44px, 10vw, 64px); }
  .formats::before { height: 660px; background-size: auto, 1250px 100%; }
  .formats .section-head { padding-inline: clamp(34px, 9vw, 65px); }
}

.trial-callout {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin: 0 auto 38px; padding: 22px clamp(18px, 4vw, 32px);
  border: 1px solid var(--line); border-radius: 10px; background: #161717;
}
.trial-callout h3 { margin: 2px 0 5px; color: var(--heading); font: 600 30px/1.15 var(--serif); }
.trial-callout p { margin: 0; }
.trial-callout .trial-detail { color: var(--gold-hi); font-size: 13px; font-weight: 700; }
.trial-callout .btn { flex-shrink: 0; }
@media (max-width: 640px) { .trial-callout { align-items: flex-start; flex-direction: column; } }

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; row-gap: 0; }
.plan {
  --pennant: polygon(0 0, 100% 0, 100% calc(100% - 52px), 50% 100%, 0 calc(100% - 52px));
  --pennant-in: polygon(0 0, 100% 0, 100% calc(100% - 49px), 50% 100%, 0 calc(100% - 49px));
  --fill: linear-gradient(165deg, #283b60, #17263f 40%, #0e1728 85%);
  --cloth-light: rgba(143, 179, 232, .16);
  position: relative; isolation: isolate;
  grid-row: span 5; display: grid; grid-template-rows: subgrid; row-gap: 0;
  justify-items: center; text-align: center;
  margin-bottom: 56px; padding: 34px 22px 0;
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .56));
  transition: translate .4s cubic-bezier(.2, .7, .2, 1);
}
.plan--stone { --fill: linear-gradient(165deg, #474138, #282827 45%, #15181b 85%); --cloth-light: rgba(228, 210, 170, .11); }
.plan--red {
  --fill: linear-gradient(165deg, #803633, #551c25 45%, #2a101a 85%);
  --cloth-light: rgba(244, 160, 103, .20);
}
.plan--teal { --fill: linear-gradient(165deg, #2e4b51, #192f3b 45%, #101b2b 85%); --cloth-light: rgba(139, 209, 202, .13); }
.plan-frame {
  position: absolute; inset: 0; z-index: -1; clip-path: var(--pennant); pointer-events: none;
  background: var(--noise), linear-gradient(135deg, #e2c382, #705331 17%, #bf9863 43%, #624325 66%, #af8753 90%, #edce92);
}
.plan-frame::before {
  content: ''; position: absolute; inset: 4px; clip-path: var(--pennant-in);
  background:
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(8, 7, 8, .19) 2px 3px),
    repeating-linear-gradient(90deg, transparent 0 2px, rgba(236, 219, 184, .055) 2px 3px),
    radial-gradient(ellipse 100% 36% at 50% 8%, var(--cloth-light), transparent 80%),
    linear-gradient(90deg, rgba(5, 8, 14, .54), transparent 13%, rgba(1, 5, 11, .23) 32%, transparent 49%, rgba(7, 6, 10, .26) 66%, transparent 80%, rgba(6, 7, 13, .5)),
    var(--noise), var(--fill);
  box-shadow: inset 0 0 0 1px rgba(24, 15, 12, .7), inset 0 5px 9px rgba(0, 0, 0, .45);
}
.plan-frame::after {
  content: ''; position: absolute; inset: 4px; clip-path: var(--pennant-in);
  background: linear-gradient(110deg, transparent 42%, rgba(255, 223, 168, .11) 49%, transparent 58%) 100% 0 / 300% 100%;
  transition: background-position .85s ease;
}
.plan-stitch {
  position: absolute; inset: 11px 10px 46px;
  border: 1px solid rgba(221, 175, 105, .3); border-bottom: 0;
  background: var(--c-tl) left top / 23px 23px no-repeat, var(--c-tr) right top / 23px 23px no-repeat;
}
.plan-stitch::before {
  content: ''; position: absolute; inset: 4px 3px 0;
  border: 1px dashed rgba(248, 214, 152, .21); border-bottom: 0;
  mask-image: linear-gradient(#000, rgba(0, 0, 0, .4) 94%, transparent);
}
.plan-stitch::after {
  content: ''; position: absolute; bottom: -15px; left: 50%; width: 13px; height: 13px;
  transform: translateX(-50%) rotate(45deg);
  border: 1px solid rgba(234, 190, 122, .68); outline: 1px solid rgba(234, 190, 122, .27); outline-offset: 3px;
  background: radial-gradient(circle, #eac98d 0 2px, transparent 3px);
}
.plan::before {
  content: ''; position: absolute; z-index: -1; top: -6px; inset-inline: -8px; height: 14px;
  border: 1px solid #6e4c2f; border-radius: 99px;
  background:
    radial-gradient(circle at 7px 5px, #f9dba1 0 1px, #9e7543 2px 4px, transparent 5px),
    radial-gradient(circle at calc(100% - 7px) 5px, #f9dba1 0 1px, #9e7543 2px 4px, transparent 5px),
    linear-gradient(180deg, #a78351, #523b26 33%, #2a1b15 78%, #543824);
  box-shadow: 0 3px 5px rgba(0, 0, 0, .62);
}
.plan-badge { position: absolute; top: -13px; left: 50%; translate: -50% 0; z-index: 2; }
.plan-shield { padding-bottom: 16px; }
.plan-shield svg {
  width: 80px; height: 92px; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .67));
  transform-origin: 50% 20%;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), filter .4s ease;
}
.plan:is(:hover, :focus-within) .plan-frame::after { background-position: 0 0; }
.plan:is(:hover, :focus-within) .plan-shield svg {
  transform: translateY(-3px) rotate(-4deg) scale(1.06);
  filter: drop-shadow(0 9px 9px rgba(0, 0, 0, .62)) drop-shadow(0 0 10px rgba(216, 179, 106, .27));
}
@media (hover: hover) and (pointer: fine) {
  .plan:hover { translate: 0 -6px; }
}
.plan-head { display: flex; flex-direction: column; align-items: center; padding-bottom: 20px; }
.plan-title { margin: 0; font: 500 27px/1.15 var(--serif); color: var(--heading); text-wrap: balance; }
.plan-title--long { font-size: 18.5px; line-height: 1.2; text-wrap: pretty; }
.plan-sub { margin: 8px 0 0; font: italic 500 17px/1.3 var(--serif); color: var(--gold-hi); text-wrap: balance; }
.plan-title--long + .plan-sub { font-size: 14.5px; }
.plan-list { justify-self: stretch; display: grid; align-content: start; gap: 10px; margin: 0; padding: 0 0 22px; list-style: none; text-align: left; }
.plan-list li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.4; color: rgba(239, 230, 210, .86); }
.plan-list li::before {
  content: ''; position: absolute; left: 1px; top: .32em; width: 10px; height: 10px; border-radius: 50%;
  border: 1px solid var(--gold); background: radial-gradient(circle, var(--gold) 0 1.6px, transparent 2.2px);
}
.plan-price {
  justify-self: stretch; display: flex; align-items: baseline; justify-content: center; gap: 8px;
  margin: 0; padding: 18px 0 20px; border-top: 1px solid rgba(216, 179, 106, .22);
}
.plan-price .amount { font: 500 44px/1 var(--serif); background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.plan-price .unit { font-size: 13px; color: var(--muted); white-space: nowrap; }
.plan-btn { justify-self: stretch; margin-bottom: 72px; }

@media (max-width: 1140px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; margin-inline: auto; column-gap: 32px; }
}
@media (max-width: 600px) {
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 380px; }
}

/* ---------- CTA ---------- */
.formats { padding-bottom: 50px; }
.cta-wrap { padding: 10px 0 110px; }
.cta {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  min-height: 210px; padding: 44px 56px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--noise), linear-gradient(90deg, #15130f 0%, #0f0f12 45%, #17140f 100%);
}
.cta-art {
  position: absolute; top: 0; bottom: 0; left: 36%; width: 52%; pointer-events: none;
  background: url(img/cta-castle.webp) center 60% / cover no-repeat;
  -webkit-mask-image: radial-gradient(ellipse 58% 80% at 50% 55%, #000 40%, transparent 82%); mask-image: radial-gradient(ellipse 58% 80% at 50% 55%, #000 40%, transparent 82%);
}
.cta-title { position: relative; z-index: 1; margin: 0; font: 500 clamp(28px, 3vw, 40px)/1.15 var(--serif); color: var(--heading); }
.cta .btn { position: relative; z-index: 1; }
@media (max-width: 760px) {
  .cta { flex-direction: column; align-items: flex-start; padding: 36px 24px; }
  .cta-art { left: 0; width: 100%; opacity: .45; }
  .cta .btn { width: 100%; }
}

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 28px; border-top: 1px solid rgba(216, 179, 106, .15); background: #08090d; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.site-footer h3 { margin: 0 0 18px; font: 700 12.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.footer-about p { max-width: 360px; margin: 20px 0 0; font-size: 14.5px; }
.footer-nav ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 14.5px; }
.footer-nav a:hover, .footer-contacts a:not(.btn):hover { color: var(--gold-hi); }
.footer-contacts p { margin: 0 0 18px; font-size: 14.5px; }
.contact-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-seller { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-seller p { margin: 0 0 6px; font-size: 13px; }
.footer-seller h4 { margin: 18px 0 10px; font: 700 11px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.legal-links { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.legal-links a { text-decoration: underline; text-decoration-color: rgba(216, 179, 106, .35); text-underline-offset: 3px; }
.legal-links a:hover { color: var(--gold-hi); text-decoration-color: currentColor; }
.legal-page { max-width: 850px; padding-block: clamp(30px, 6vw, 72px); }
.legal-content { line-height: 1.65; overflow-wrap: anywhere; }
.legal-content h1 { margin: 18px 0 24px; font: 600 clamp(34px, 6vw, 58px)/1.05 var(--serif); color: var(--heading); }
.legal-content h2 { margin: 32px 0 8px; font: 600 clamp(25px, 4vw, 34px)/1.15 var(--serif); color: var(--heading); }
.legal-content p { margin: 0 0 14px; }
.legal-content a, .legal-back { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; }
.formats-terms { margin: 0; text-align: center; font-size: 14px; }
.formats-terms a { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 14px 0 26px; text-align: left; }
.legal-table th, .legal-table td { border-bottom: 1px solid var(--line); padding: 10px clamp(8px, 2vw, 16px); vertical-align: top; }
.legal-table thead { color: var(--gold-hi); }
.legal-table tbody th { font-weight: 500; }
.legal-table small { color: var(--muted); }
.legal-footer { max-width: 850px; display: grid; gap: 16px; }
.legal-footer p { margin: 0; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 13px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease, translate .35s, border-color .35s, box-shadow .35s; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .torch-glow { animation: none; }
}

/* ---------- Cinematic visual polish ---------- */
body {
  background:
    radial-gradient(ellipse 72% 30% at 50% 2%, rgba(100, 67, 34, .16), transparent 72%),
    radial-gradient(ellipse 58% 28% at 50% 72%, rgba(28, 41, 58, .18), transparent 74%),
    var(--noise);
  background-color: var(--bg);
}

::selection { color: #17120b; background: var(--gold); }

.site-header {
  background: linear-gradient(180deg, rgba(7, 9, 13, .86), rgba(7, 9, 13, .28));
  border-bottom-color: rgba(216, 179, 106, .14);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.site-header.is-scrolled, .nav-open .site-header {
  background: rgba(9, 11, 16, .92);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .28);
}

.hero { isolation: isolate; }
.hero-art {
  z-index: 0;
  filter: saturate(1.08) contrast(1.04);
  animation: hero-drift 28s ease-in-out infinite alternate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(2px 2px at 12% 31%, rgba(255, 211, 137, .8) 0 1px, transparent 2px),
    radial-gradient(2px 2px at 31% 63%, rgba(255, 178, 89, .72) 0 1px, transparent 2px),
    radial-gradient(1.5px 1.5px at 67% 22%, rgba(255, 222, 161, .75) 0 1px, transparent 2px),
    radial-gradient(2px 2px at 88% 48%, rgba(255, 181, 89, .6) 0 1px, transparent 2px),
    radial-gradient(1.5px 1.5px at 76% 76%, rgba(255, 219, 151, .6) 0 1px, transparent 2px);
  opacity: .25;
  animation: ember-drift 9s ease-in-out infinite;
}
.hero::after { z-index: 1; }
.hero-inner { z-index: 2; }
.hero-title { text-shadow: 0 3px 30px rgba(0, 0, 0, .7), 0 0 42px rgba(12, 14, 19, .45); }
.pill { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 24px rgba(0, 0, 0, .2); }
.features {
  border-color: rgba(216, 179, 106, .25);
  background: linear-gradient(115deg, rgba(18, 20, 25, .88), rgba(8, 10, 14, .7));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 20px 50px rgba(0, 0, 0, .28);
}
.features svg { filter: drop-shadow(0 0 9px rgba(216, 179, 106, .34)); }

.section-head { filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .25)); }
.eyebrow { text-shadow: 0 0 18px rgba(216, 179, 106, .35); }
.road {
  border-color: rgba(216, 179, 106, .5);
  border-radius: 12px;
  background: var(--noise), linear-gradient(155deg, #1a2230 0%, #111722 52%, #0b1018 100%);
  box-shadow: inset 0 1px 0 rgba(255, 240, 209, .12), 0 30px 70px -28px rgba(0, 0, 0, .9);
}
.road::before {
  content: '';
  position: absolute;
  inset: 5px;
  z-index: 2;
  border: 1px solid rgba(244, 220, 159, .15);
  border-radius: 8px;
  pointer-events: none;
}
.road:hover {
  border-color: rgba(244, 220, 159, .82);
  box-shadow: inset 0 1px 0 rgba(255, 240, 209, .2), 0 38px 76px -28px rgba(0, 0, 0, .95), 0 0 32px rgba(216, 179, 106, .12);
}
.road-media { border-bottom-color: rgba(216, 179, 106, .48); }
.road-media img { filter: saturate(1.06) contrast(1.04); transition: scale .8s cubic-bezier(.2, .7, .2, 1), filter .8s; }
.road:hover .road-media img { scale: 1.055; filter: saturate(1.16) contrast(1.08); }
.road-title { text-shadow: 0 2px 16px rgba(0, 0, 0, .55); }
.ornate::after { filter: drop-shadow(0 0 5px rgba(216, 179, 106, .18)); }

.plan-list li::before { box-shadow: 0 0 8px rgba(216, 179, 106, .3); }
.plan-badge { filter: drop-shadow(0 5px 8px rgba(0, 0, 0, .4)); }

.btn-gold { position: relative; overflow: hidden; isolation: isolate; }
.btn-gold::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: -45%;
  bottom: -45%;
  left: -40%;
  width: 30%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-22deg);
  transition: transform .75s cubic-bezier(.2, .7, .2, 1);
}
.btn-gold:hover::after, .btn-gold:focus-visible::after { transform: translateX(480%) skewX(-22deg); }

.cta {
  border-color: rgba(216, 179, 106, .55);
  background:
    radial-gradient(ellipse 80% 120% at 76% 50%, rgba(201, 130, 57, .14), transparent 70%),
    var(--noise), linear-gradient(100deg, #17140f 0%, #101116 50%, #19140e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 240, 209, .12), 0 26px 70px rgba(0, 0, 0, .3);
}
.cta-art { filter: saturate(1.12) contrast(1.06); animation: cta-drift 30s ease-in-out infinite alternate; }
.cta-title { text-shadow: 0 3px 22px rgba(0, 0, 0, .62); }

@keyframes hero-drift {
  from { transform: scale(1.01) translate3d(0, 0, 0); }
  to { transform: scale(1.045) translate3d(-.35%, -.35%, 0); }
}
@keyframes ember-drift {
  0%, 100% { opacity: .16; transform: translateY(0); }
  50% { opacity: .34; transform: translateY(-7px); }
}
@keyframes cta-drift {
  from { transform: scale(1); background-position: center 60%; }
  to { transform: scale(1.045); background-position: 54% 60%; }
}

@media (max-width: 759px) {
  .hero-art { animation: none; }
  .road::before { inset: 4px; }
}
@media (max-width: 560px) {
  .hero::before { opacity: .14; }
  .road-body { padding: 24px 22px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art, .hero::before, .torch::before, .torch-glow, .torch-sparks, .cta-art { animation: none; }
  .torch-sparks { display: none; }
  .plan:hover { translate: none; }
  .plan:is(:hover, :focus-within) .plan-shield svg { transform: none; }
  .plan-frame::after, .plan-shield svg { transition: none; }
  .btn-gold::after { transition: none; }
}
