/* ==========================================================
   AUREA — Rinascimento. Белый мрамор и золото
   ========================================================== */

:root {
  --marble: #f6f2eb;
  --marble-2: #ede6da;
  --stone: #d8cfbf;
  --ink: #2b241d;
  --ink-soft: #6e6356;
  --night: #17130f;
  --night-2: #221c16;
  --gold: #b48a35;
  --gold-light: #e8cd86;
  --gold-grad: linear-gradient(180deg, #f7e7b0 0%, #d6ac52 32%, #a77824 52%, #ebcb7c 74%, #8b631d 100%);
  /* блик не светлее #e8c66e — иначе золото пропадает на кремовом фоне */
  --gold-sheen: linear-gradient(100deg, #8b631d 0%, #b8862e 20%, #e8c66e 32%, #b8862e 44%, #96691f 62%, #c99a3e 80%, #8b631d 100%);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --roman: "Cinzel", "Forum", serif;
  --forum: "Forum", "Cormorant Garamond", serif;

  --container: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--marble);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* лёгкая «зернистость» камня поверх всей страницы */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: min(var(--container), 100% - 64px); margin-inline: auto; }
.section { padding: 140px 0; position: relative; }

/* ---------- типографика ---------- */

.cinzel { font-family: var(--roman); letter-spacing: .18em; text-transform: uppercase; }

.gold-text {
  background: var(--gold-sheen);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 9s ease-in-out infinite;
}

@keyframes sheen {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: 0 0; }
}

.eyebrow {
  font-family: var(--roman);
  font-size: 13px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.eyebrow::before {
  content: "";
  width: 48px;
  height: 1px;
  background: var(--gold-grad);
}

.eyebrow--light { color: var(--gold-light); }

.h2 {
  font-family: var(--forum);
  font-weight: 400;
  font-size: clamp(42px, 5.2vw, 76px);
  line-height: 1.04;
  letter-spacing: -.005em;
  text-transform: uppercase;
}

.h2 em,
.hero__ru em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.fleuron { width: 160px; height: 32px; margin: 28px 0; }

.section-head { text-align: center; max-width: 820px; margin: 0 auto 80px; }
.section-head .eyebrow { justify-content: center; }
.section-head .eyebrow::after { content: ""; width: 48px; height: 1px; background: var(--gold-grad); }
.section-head__lead { margin-top: 24px; color: var(--ink-soft); font-size: 22px; }
.section-head--light .h2 { color: var(--marble); }
.section-head--light .section-head__lead { color: #b9ad9b; }

/* ---------- кнопки: металлические таблички ---------- */

.btn {
  --h: 58px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: var(--h);
  padding: 0 34px;
  /* Cinzel без кириллицы → падал на тонкий Forum; полужирный Cormorant читается заметно лучше */
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  border: 0;
  transition: color .4s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease), filter .4s;
}

/* внутренняя гравированная рамка-волосок */
.btn--gold::before,
.btn--ghost::before {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: -1;
  border: 1px solid;
  pointer-events: none;
  transition: border-color .4s;
}

.btn--sm { --h: 44px; padding: 0 22px; font-size: 14px; }
.btn--sm::before { inset: 3px; }

/* золото: матовый литой металл с фаской, текст «вдавлен» */
.btn--gold {
  color: #1c1307;
  /* ровное светлое золото: без тёмной полосы-фаски посередине, где стоит текст */
  background: linear-gradient(180deg, #ecd394 0%, #dcb769 55%, #cfa452 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 214, .9),
    inset 0 -1px 0 rgba(92, 62, 14, .55),
    inset 1px 0 0 rgba(255, 240, 200, .35),
    inset -1px 0 0 rgba(120, 84, 22, .35),
    0 1px 0 rgba(255, 255, 255, .5),
    0 12px 26px -16px rgba(90, 62, 15, .9);
}

.btn--gold::before { border-color: rgba(255, 242, 205, .55); }

/* медленный блик по металлу при наведении */
.btn--gold::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 252, 235, .55) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 1.1s var(--ease);
  pointer-events: none;
}

.btn--gold:hover { filter: brightness(1.05) saturate(1.05); }
.btn--gold:hover::after { transform: translateX(120%); }
.btn--gold:active { filter: brightness(.96); box-shadow: inset 0 2px 6px rgba(92, 62, 14, .45), 0 4px 10px -8px rgba(90, 62, 15, .9); }

/* контур: двойная золотая рамка на светлом камне, при наведении — чернила */
.btn--ghost {
  color: var(--ink);
  background-color: rgba(251, 248, 242, .55);
  box-shadow: inset 0 0 0 1px rgba(180, 138, 53, .8);
}

.btn--ghost::before { border-color: rgba(180, 138, 53, .35); }

.btn--ghost:hover {
  color: var(--gold-light);
  background-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.btn--ghost:hover::before { border-color: rgba(232, 205, 134, .45); }

/* текстовая ссылка: золотая линия прорисовывается при наведении */
.btn--link {
  height: auto;
  padding: 0 0 6px;
  overflow: visible;
  background: none;
  color: var(--ink);
}

.btn--link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 22px;
  bottom: 0;
  height: 1px;
  background: var(--gold-grad);
  transform: scaleX(.25);
  transform-origin: left;
  transition: transform .6s var(--ease);
}

.btn--link:hover::after { transform: scaleX(1); }
.btn--link i { font-style: normal; transition: transform .4s var(--ease); color: var(--gold); }
.btn--link:hover i { transform: translateX(6px); }

/* ==========================================================
   1. HERO
   ========================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: linear-gradient(180deg, #f8f4ec 0%, #efe7d9 100%);
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: -10% 0 0;
  background: url("assets/img/colonnade.jpg") center / cover no-repeat;
  opacity: .32;
  filter: saturate(.55) sepia(.15);
  z-index: -2;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 50% 60% at 70% 55%, rgba(255, 246, 225, .0) 0%, rgba(246, 242, 235, .55) 70%),
    linear-gradient(90deg, var(--marble) 0%, rgba(246, 242, 235, .92) 38%, rgba(246, 242, 235, .25) 70%, rgba(246, 242, 235, .7) 100%),
    linear-gradient(0deg, var(--marble) 0%, transparent 25%);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 26px max(32px, (100% - var(--container)) / 2);
  transition: padding .4s var(--ease), background .4s, box-shadow .4s;
}

.nav.is-scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(246, 242, 235, .86);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(180, 138, 53, .35);
}

.logo { display: flex; align-items: center; gap: 14px; }

.logo__mark {
  font-family: var(--roman);
  font-size: 30px;
  font-weight: 700;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  line-height: 1;
  padding-top: 3px;
}

.logo__word { font-family: var(--roman); font-size: 18px; letter-spacing: .42em; font-weight: 500; }

.nav__links { display: flex; gap: 30px; margin-left: auto; }

.nav__links a {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  padding: 6px 0;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 0;
  height: 1px;
  background: var(--gold-grad);
  transition: left .4s var(--ease), right .4s var(--ease);
}

.nav__links a:hover::after { left: 0; right: 0; }

.nav__burger { display: none; background: none; border: 0; width: 32px; height: 20px; position: relative; cursor: pointer; }
.nav__burger span { position: absolute; left: 0; right: 0; height: 1px; background: var(--ink); transition: rotate .3s, top .3s, bottom .3s; }
.nav__burger span:first-child { top: 5px; }
.nav__burger span:last-child { bottom: 5px; }

.hero__inner {
  width: min(var(--container), 100% - 64px);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 130px 0 120px;
}

.hero__title { margin-bottom: 32px; }

.hero__latin {
  display: block;
  font-family: var(--roman);
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 52px);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero__ru {
  display: block;
  font-family: var(--forum);
  font-weight: 400;
  font-size: clamp(64px, 9vw, 138px);
  line-height: .92;
  text-transform: uppercase;
  letter-spacing: -.01em;
}

.hero__ru em { font-size: .82em; color: var(--gold); }

.hero__lead { max-width: 480px; font-size: 22px; color: var(--ink-soft); margin-bottom: 44px; }

.hero__cta { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }

.hero__statue {
  position: relative;
  align-self: end;
  height: min(86vh, 900px);
  display: flex;
  justify-content: center;
}

.hero__arch {
  position: absolute;
  bottom: 6%;
  left: 50%;
  translate: -50% 0;
  width: 78%;
  height: 92%;
  border-radius: 999px 999px 0 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 249, 232, .95), rgba(237, 228, 211, .9) 60%, rgba(222, 210, 188, .9));
  box-shadow:
    inset 0 0 0 1px rgba(180, 138, 53, .55),
    inset 0 0 0 14px rgba(246, 242, 235, .5),
    inset 0 0 0 15px rgba(180, 138, 53, .35),
    0 40px 80px -40px rgba(80, 60, 30, .35);
}

.hero__statue img {
  position: relative;
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 30px rgba(60, 45, 25, .25)) contrast(1.04);
}

.hero__plaque {
  position: absolute;
  right: -10px;
  bottom: 18%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 20px;
  background: rgba(246, 242, 235, .85);
  backdrop-filter: blur(6px);
  border-left: 2px solid var(--gold);
  font-size: 16px;
  font-style: italic;
  color: var(--ink-soft);
}

.hero__plaque .cinzel { font-size: 11px; font-style: normal; color: var(--gold); }

.hero__meta {
  position: absolute;
  left: max(32px, (100% - var(--container)) / 2);
  bottom: 40px;
  display: flex;
  gap: 56px;
}

.hero__meta div { display: flex; flex-direction: column; }
.hero__meta b { font-family: var(--roman); font-size: 30px; font-weight: 500; line-height: 1.1; }
.hero__meta span { font-family: var(--roman); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-soft); }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: 1px;
  height: 64px;
  background: rgba(180, 138, 53, .3);
  overflow: hidden;
}

.hero__scroll span {
  position: absolute;
  inset: 0;
  background: var(--gold-grad);
  animation: drip 2.4s var(--ease) infinite;
}

@keyframes drip {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ==========================================================
   2. TICKER
   ========================================================== */

.ticker {
  background: var(--night);
  color: var(--marble);
  padding: 26px 0;
  overflow: hidden;
  border-block: 1px solid rgba(214, 172, 82, .45);
}

.ticker__track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: marquee 55s linear infinite;
}

.ticker span { font-family: var(--roman); font-size: 30px; letter-spacing: .24em; text-transform: uppercase; }
.ticker i { font-style: normal; color: var(--gold); font-size: 18px; }

@keyframes marquee { to { transform: translateX(-50%); } }


/* ---------- hero: оффер, стелы, форма ---------- */

.mono { font-family: "JetBrains Mono", ui-monospace, monospace; letter-spacing: -.01em; }

.hero__inner { grid-template-columns: 1.25fr 1fr; padding-bottom: 80px; }
.hero__title { margin-bottom: 26px; }

.hero__title .hero__ru {
  font-size: clamp(40px, 4.6vw, 70px);
  line-height: 1;
  margin-bottom: 14px;
}

.hero__title .hero__ru { margin-bottom: 0; }

/* вторая строка манифеста — крупный золотой курсив */
.hero__accent {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(32px, 3.4vw, 54px);
  line-height: 1;
  padding-bottom: .08em;
}

.hero__accent b { font-weight: 600; font-style: normal; font-family: var(--forum); font-size: 1.15em; }
.hero__lead { margin-bottom: 30px; font-size: 20px; max-width: 560px; }


.subscribe input {
  height: 54px;
  padding: 0 18px;
  font: inherit;
  font-size: 18px;
  background: #fff;
  border: 1px solid rgba(180, 138, 53, .55);
  color: var(--ink);
  outline: none;
  min-width: 0;
}

.subscribe input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214, 172, 82, .2); }

/* общее сообщение об отправке формы */
.form-ok {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 20px;
  text-align: center;
  background: var(--night);
  color: var(--gold-light);
  font-style: italic;
  font-size: 21px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s;
}

.is-sent .form-ok { opacity: 1; pointer-events: auto; }

/* ==========================================================
   Мраморные фоны с параллаксом
   ========================================================== */

.marble-bg { position: relative; overflow: hidden; isolation: isolate; }

.marble-bg__layer {
  position: absolute;
  inset: -15% 0;
  z-index: -1;
  background: url("assets/img/marble.jpg") center / cover no-repeat;
  opacity: .5;
  filter: sepia(.2);
}

.marble-bg__layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(246, 242, 235, .75), rgba(246, 242, 235, .35));
}

.marble-bg--dark { color: var(--marble); background: var(--night); }

.marble-bg--dark .marble-bg__layer {
  background-image: url("assets/img/marble-dark.jpg");
  opacity: .9;
  filter: none;
}

.marble-bg--dark .marble-bg__layer::after {
  background:
    radial-gradient(ellipse 60% 55% at 50% 45%, rgba(23, 19, 15, .35), rgba(23, 19, 15, .85)),
    linear-gradient(180deg, rgba(23, 19, 15, .6), transparent 20%, transparent 80%, rgba(23, 19, 15, .6));
}

.lead-italic { font-size: 24px; font-style: italic; line-height: 1.35; margin-bottom: 22px; }
.body-soft { color: var(--ink-soft); margin-top: 16px; }

/* ==========================================================
   3. METHOD — методология и видео
   ========================================================== */

.method__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }

.portal { position: relative; }

.portal__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  padding: 12px;
  background: var(--marble);
  box-shadow: inset 0 0 0 1px var(--gold), 0 40px 80px -40px rgba(60, 45, 25, .6);
}

.portal__frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 0 0; }

.portal__play {
  position: absolute;
  left: 50%;
  top: 84%; /* ниже бюста на постере — не закрывает его */
  translate: -50% -50%;
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(23, 19, 15, .55);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px var(--gold-light), 0 0 0 10px rgba(232, 205, 134, .15);
  transition: transform .5s var(--ease), box-shadow .5s;
}

.portal__play span {
  position: absolute;
  left: 54%;
  top: 50%;
  translate: -50% -50%;
  border-style: solid;
  border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent var(--gold-light);
}

.portal__play:hover { transform: scale(1.08); box-shadow: inset 0 0 0 1px var(--gold-light), 0 0 0 18px rgba(232, 205, 134, .12); }

.portal figcaption {
  margin-top: 18px;
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
}

.portal figcaption .cinzel { display: block; font-style: normal; font-size: 11px; color: var(--gold); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 100px;
  border-block: 1px solid rgba(180, 138, 53, .4);
}

.stats > div { padding: 40px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.stats > div + div { border-left: 1px solid rgba(180, 138, 53, .3); }
.stats b { font-family: var(--forum); font-weight: 400; font-size: clamp(48px, 5vw, 76px); line-height: 1; }
.stats b.mono { font-family: "JetBrains Mono", monospace; font-size: clamp(34px, 3.4vw, 52px); padding: 10px 0; }
.stats span { margin-top: 10px; color: var(--ink-soft); font-size: 18px; max-width: 220px; }

/* ==========================================================
   4. AUTHOR
   ========================================================== */

.author { background: linear-gradient(180deg, var(--marble-2), var(--marble)); }
.author__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 100px; align-items: start; }

/* бюст «прилипает» под шапкой, пока читается текст справа — как арка в FAQ */
.author__bust {
  position: sticky;
  top: 120px;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.author__niche {
  position: absolute;
  inset: 0 6%;
  border-radius: 999px 999px 0 0;
  background: radial-gradient(ellipse at 50% 20%, #fffaf0 0%, #ece3d3 55%, #d9cdb8 100%);
  box-shadow: inset 0 30px 60px -30px rgba(80, 60, 30, .35), inset 0 0 0 1px rgba(180, 138, 53, .5);
}

.author__niche::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: inherit;
  border: 1px solid rgba(180, 138, 53, .35);
}

.author__bust img { position: relative; width: auto; max-width: 92%; max-height: 98%; filter: drop-shadow(0 30px 30px rgba(60, 45, 25, .3)); transition: opacity .35s; }

/* dev-переключатель бюста: мелкий, почти незаметный */
.bust-toggle {
  position: absolute;
  top: 14px;
  right: 8%;
  z-index: 2;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(180, 138, 53, .4);
  border-radius: 50%;
  background: rgba(251, 248, 242, .6);
  color: var(--gold);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  opacity: .35;
  transition: opacity .3s;
}

.bust-toggle:hover { opacity: 1; }

.author__bust figcaption {
  position: absolute;
  bottom: -18px;
  left: 50%;
  translate: -50% 0;
  background: var(--ink);
  color: var(--gold-light);
  padding: 10px 28px;
  font-size: 13px;
  white-space: nowrap;
}

.author__role { margin: 18px 0 8px; font-size: 22px; font-style: italic; }

.author__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 34px 0 10px;
  background: rgba(180, 138, 53, .35);
  box-shadow: 0 0 0 1px rgba(180, 138, 53, .35);
}

.author__stats > div { background: var(--marble); padding: 20px 14px; text-align: center; display: flex; flex-direction: column; }
.author__stats b { font-family: var(--forum); font-weight: 400; font-size: 44px; line-height: 1; }
.author__stats b.mono { font-family: "JetBrains Mono", monospace; font-size: 28px; padding: 8px 0; }
.author__stats span { margin-top: 6px; font-size: 15px; color: var(--ink-soft); }
.author .quote { margin-bottom: 36px; }

.dropcap { font-size: 21px; color: var(--ink-soft); }

.dropcap::first-letter {
  float: left;
  font-family: var(--roman);
  font-size: 88px;
  line-height: .8;
  padding: 10px 14px 0 0;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.quote {
  margin-top: 32px;
  padding: 22px 0 0 30px;
  border-left: 1px solid var(--gold);
  font-size: 25px;
  font-style: italic;
  line-height: 1.35;
}

.quote cite { display: block; margin-top: 12px; font-size: 16px; color: var(--ink-soft); }

/* ==========================================================
   5. PILLARS — три опоры на тёмном мраморе
   ========================================================== */

.pillars { padding-bottom: 160px; }

.pillars__column {
  position: absolute;
  top: 6%;
  height: 105%;
  width: auto;
  max-width: none;
  opacity: .32;
  filter: brightness(.75) sepia(.3);
  pointer-events: none;
}

.pillars__column--l { left: -40px; }
.pillars__column--r { right: -40px; }

.pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }

/* карточка — сгенерированная мраморная стела с фронтоном (assets/img/stele.webp);
   поля = внутренняя панель стелы: фронтон сверху ~27% высоты, боковые рамы ~11% ширины */
.stele {
  position: relative;
  isolation: isolate;
  aspect-ratio: 640 / 1012;
  padding: 44% 15% 18%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  color: var(--ink);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6));
  transition: transform .6s var(--ease), filter .6s;
}

/* камень отдельным слоем: чуть светлее и холоднее, текст при этом не фильтруется */
.stele::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/img/stele.webp") center / 100% 100% no-repeat;
  filter: saturate(.55) brightness(1.07);
}

/* мягкая светлая «промывка» внутренней панели — прожилки не спорят с текстом */
.stele::after {
  content: "";
  position: absolute;
  inset: 31% 14% 8%;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 45%, rgba(251, 249, 244, .85), rgba(251, 249, 244, .55) 70%, rgba(251, 249, 244, 0));
  filter: blur(6px);
}

.stele:hover { transform: translateY(-8px); filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .7)) drop-shadow(0 0 30px rgba(214, 172, 82, .2)); }

/* римская цифра — в тимпане фронтона */
.stele__num {
  position: absolute;
  left: 50%;
  top: 15.5%;
  translate: -50% -50%;
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 600;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* формула — глубокое золото без блика: на светлом камне блик терял контраст */
.stele .stele__formula {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: #6f4f17;
  animation: none;
}

.stele__formula { display: block; font-size: clamp(16px, 1.45vw, 21px); font-weight: 500; margin-bottom: 18px; white-space: nowrap; }
.stele h3 { font-family: var(--forum); font-weight: 400; font-size: clamp(19px, 1.7vw, 24px); text-transform: uppercase; line-height: 1.15; margin-bottom: 12px; color: var(--ink); }
.stele p { color: #4d4339; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.45; }


/* ==========================================================
   6. PRODUCTS — портик из трёх ордеров
   ========================================================== */

.tickets {
  background:
    radial-gradient(ellipse 60% 45% at 50% 55%, rgba(232, 205, 134, .22), transparent 70%),
    linear-gradient(180deg, var(--marble) 0%, var(--marble-2) 100%);
  overflow: hidden;
}

.portico { position: relative; max-width: 1120px; margin: 0 auto; }

/* общий фронтон над колоннами */
.portico__pediment { position: relative; margin: 0 -2% -6px; }
.portico__pediment img { width: 100%; filter: drop-shadow(0 18px 24px rgba(60, 45, 25, .22)); }

/* антаблемент: архитрав с золотой надписью */
.portico__entablature {
  position: relative;
  z-index: 1;
  margin: 0 -1%;
  padding: 18px 0 16px;
  text-align: center;
  background: linear-gradient(180deg, #fbf8f2 0%, #ece4d6 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -1px 0 rgba(180, 138, 53, .5),
    0 10px 24px -14px rgba(60, 45, 25, .45);
}

.portico__entablature::before,
.portico__entablature::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 12%, var(--gold) 88%, transparent);
}

.portico__entablature::before { top: 7px; }
.portico__entablature::after { bottom: 7px; }
.portico__entablature span { font-size: clamp(14px, 1.6vw, 22px); font-weight: 600; letter-spacing: .5em; }

.portico__columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 3vw, 48px);
  align-items: stretch;
  padding: 0 5%;
}

/* стилобат — ступени под колоннами */
.portico__stylobate {
  height: 34px;
  margin: 0 -1%;
  background:
    linear-gradient(180deg, #f7f2ea 0 10px, rgba(180, 138, 53, .35) 10px 11px, #ece4d6 11px 22px, rgba(180, 138, 53, .3) 22px 23px, #e2d8c7 23px);
  box-shadow: 0 30px 50px -30px rgba(60, 45, 25, .5);
}

/* ---------- колонна-тариф ---------- */

.order {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .6s var(--ease);
}

/* капители из одного кадра (scripts/split-set.ts, by=height): одинаковые холст и высота —
   верх и низ у всех ордеров на одной линии, ширина своя по природе ордера */
.order__capital {
  position: relative;
  z-index: 2;
  width: 112%;
  height: auto;
  max-width: none;
  margin-bottom: -10px;
  filter: drop-shadow(0 14px 14px rgba(60, 45, 25, .28));
  transition: filter .6s var(--ease), transform .6s var(--ease);
}

/* ствол с каннелюрами и цилиндрической светотенью */
/* колонна = капитель → рама с условиями → база; рама слегка заходит на базу */
.order__shaft {
  position: relative;
  z-index: 3;
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  margin: -6px 0 -14px; /* небольшой нахлёст сверху — капители «садятся» на раму, кольцо коринфской видно */
}


/* табличка с условиями — сгенерированная резная мраморная рама через border-image:
   резной край повторяется (round), а не растягивается, центр тянется под любой объём текста */
.order__plaque {
  position: relative;
  z-index: 2;
  flex: none;
  width: 100%;
  padding: 10px 4px 6px;
  text-align: center;
  border: 24px solid transparent;
  /* резной край повторяется, а под текстом — ровный мрамор: прожилки при повторе давали шов */
  border-image: url("assets/img/tablet-frame.webp") 10.5% 15% / 24px round;
  background: linear-gradient(180deg, #fbfaf6, #f1ede5) padding-box;
  filter: drop-shadow(0 16px 18px rgba(60, 45, 25, .35));
}

.order__name { display: block; font-size: 11px; color: var(--gold); margin-bottom: 10px; }
.order h3 { font-family: var(--forum); font-weight: 400; font-size: 30px; line-height: 1.1; text-transform: uppercase; margin-bottom: 14px; }
.order__price { font-size: 24px; color: var(--ink-soft); margin-bottom: 22px; }
.order__price { margin-bottom: 4px !important; }
.order__price b { font-family: var(--forum); font-weight: 400; font-size: clamp(38px, 3.6vw, 52px); line-height: 1; white-space: nowrap; }
.order__usd { font-size: 13px; color: var(--gold); margin-bottom: 20px; }
.order--featured .order__usd { color: var(--gold-light); }

.order ul { font-size: 17px; color: var(--ink-soft); line-height: 1.4; }
.order li { padding: 10px 0; border-top: 1px solid rgba(180, 138, 53, .22); }

/* база колонны с кнопкой */
.order__base {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.order__plinth {
  width: 90%; /* по ширине верхней части колонны */
  max-width: none;
  margin-top: -6px;
  filter: saturate(.55) brightness(1.05) drop-shadow(0 14px 16px rgba(60, 45, 25, .35));
}

.order__base .btn { width: 100%; margin-top: 18px; }

.order:hover { transform: translateY(-8px); }
.order:hover .order__capital { filter: drop-shadow(0 22px 22px rgba(60, 45, 25, .32)) brightness(1.04); }

/* центральная колонна — ионическая, с позолотой */

.order--featured .order__plaque {
  color: var(--marble);
  border-image: url("assets/img/tablet-frame-dark.webp") 7% 10% / 22px round;
  border-width: 22px;
  background: radial-gradient(ellipse at 50% 0%, #2a241d, #0f0d0b 70%) padding-box;
  filter: drop-shadow(0 22px 26px rgba(40, 28, 10, .55));
}

.order--featured .order__price,
.order--featured ul { color: #c7bba8; }
.order--featured li { border-color: rgba(214, 172, 82, .25); }
.order--featured .order__capital { filter: drop-shadow(0 14px 22px rgba(180, 138, 53, .5)); }

/* «Рекомендовано» — гравированная надпись между золотыми линиями под названием тарифа */
.order__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: -6px 0 16px;
  font-size: 10px;
  letter-spacing: .32em;
  color: var(--gold-light);
}

.order__badge::before,
.order__badge::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold-grad);
}


/* ==========================================================
   6.1 VOLUMES — собрание томов: тёмный мрамор после светлого портика
   ========================================================== */

.volumes-band { padding: 140px 0 0; }
.volumes-band .section-head { margin-bottom: 70px; max-width: 980px; }
.volumes-band .h2 { font-size: clamp(36px, 4.4vw, 64px); }

/* тома стоят в «витрине»: тёплое золотое свечение за спиной, тень и золотая линия пола */
.volumes-band__art {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.volumes-band__glow {
  position: absolute;
  inset: -22% -6% -2%;
  background:
    radial-gradient(ellipse 52% 55% at 50% 50%, rgba(232, 205, 134, .42), rgba(232, 205, 134, 0) 70%),
    radial-gradient(ellipse 60% 22% at 50% 98%, rgba(232, 205, 134, .4), rgba(232, 205, 134, 0) 70%);
  filter: blur(10px);
}

.volumes-band__art img {
  position: relative;
  width: 100%;
  filter: drop-shadow(0 40px 36px rgba(0, 0, 0, .8)) drop-shadow(0 0 40px rgba(232, 205, 134, .16));
}

.volumes-band__floor {
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: -14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light) 18%, var(--gold-light) 82%, transparent);
  box-shadow: 0 0 20px 2px rgba(232, 205, 134, .55);
}

/* подписи — по одной под каждым томом */
.volumes-band__list {
  max-width: 1100px;
  margin: 56px auto 0;
  padding-bottom: 120px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.volumes-band__list li { text-align: center; padding: 0 6px; }

.volumes-band__list .cinzel {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  font-size: 14px;
  letter-spacing: .05em;
  color: var(--gold-light);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(214, 172, 82, .6), inset 0 0 0 4px rgba(16, 13, 10, .8), inset 0 0 0 5px rgba(214, 172, 82, .25);
}

.volumes-band__list b { display: block; font-family: var(--forum); font-weight: 400; font-size: 21px; line-height: 1.2; color: var(--marble); }
.volumes-band__list small { display: block; margin-top: 6px; font-size: 16px; font-style: italic; color: #d3c8b6; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }

.volumes-band .frieze { margin-top: 0; }

/* ==========================================================
   7. STAGES — путь по колоннаде
   ========================================================== */

.stages {
  position: relative;
  padding: 160px 0;
  overflow: hidden;
  isolation: isolate;
  color: var(--marble);
}

.stages__bg {
  position: absolute;
  inset: -20% 0;
  z-index: -2;
  background: url("assets/img/colonnade.jpg") center / cover no-repeat;
}

.stages__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(23, 19, 15, .86) 0%, rgba(23, 19, 15, .7) 45%, rgba(23, 19, 15, .88) 100%);
}

.path {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
  padding-top: 40px;
}

/* золотая нить между этапами */
.path::before {
  content: "";
  position: absolute;
  top: 120px;
  left: 16%;
  right: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light) 10%, var(--gold-light) 90%, transparent);
  box-shadow: 0 0 12px rgba(232, 205, 134, .6);
}

.path li { position: relative; text-align: center; padding: 0 10px; }

/* символ этапа — сгенерированный предмет (stages-set), «парит» в золотом ореоле */
.path__icon {
  position: relative;
  height: 150px;
  margin: 0 auto 18px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.path__icon::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 170px;
  height: 170px;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 205, 134, .35), rgba(232, 205, 134, 0) 65%);
}

.path__icon img {
  position: relative;
  max-height: 100%;
  max-width: 170px;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .55));
  animation: float 6s ease-in-out infinite;
}

.path li:nth-child(2) .path__icon img { animation-delay: -2s; }
.path li:nth-child(3) .path__icon img { animation-delay: -4s; }

.path__num { display: block; font-size: 11px; letter-spacing: .3em; color: var(--gold-light); margin-bottom: 12px; }

.path__time {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  font-size: 13px;
  color: var(--gold-light);
  border: 1px solid rgba(232, 205, 134, .45);
}

.path h3 { font-family: var(--forum); font-weight: 400; font-size: 28px; text-transform: uppercase; line-height: 1.15; margin-bottom: 12px; }
.path p { color: #d4c9b6; font-size: 18px; max-width: 320px; margin: 0 auto; }
.stages__cta { text-align: center; margin-top: 70px; }

/* ==========================================================
   8. LICENSES — грамоты с печатями
   ========================================================== */

.charters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.charter {
  position: relative;
  padding: 72px 24px 30px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, .95), rgba(244, 238, 226, .95));
  box-shadow:
    inset 0 0 0 1px rgba(180, 138, 53, .55),
    inset 0 0 0 5px rgba(255, 253, 247, .9),
    inset 0 0 0 6px rgba(180, 138, 53, .25),
    0 30px 50px -34px rgba(60, 45, 25, .55);
  transition: transform .6s var(--ease);
}

.charter:hover { transform: translateY(-6px) rotate(-.4deg); }

.charter__seal {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% -42%;
  width: 104px;
  filter: drop-shadow(0 10px 12px rgba(100, 70, 20, .4));
  transition: rotate .8s var(--ease);
}

.charter:hover .charter__seal { rotate: 12deg; }
.charter__cat { display: block; font-size: 10px; color: var(--gold); margin-bottom: 12px; line-height: 1.6; }
.charter h3 { font-family: var(--forum); font-weight: 400; font-size: 21px; line-height: 1.2; margin-bottom: 18px; }

.charter__no {
  display: inline-block;
  font-size: 13px;
  padding: 6px 10px;
  background: rgba(180, 138, 53, .1);
  border-top: 1px solid rgba(180, 138, 53, .4);
  color: var(--ink);
}

/* ==========================================================
   9. REVIEWS — скрижали побед на тёмном мраморе
   ========================================================== */

.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* карточка кейса: тёмное стекло на чёрном мраморе, двойная золотая рамка-волосок */
.case {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 44px 38px 34px;
  background: linear-gradient(180deg, rgba(34, 28, 22, .82), rgba(16, 13, 10, .9));
  backdrop-filter: blur(8px);
  box-shadow:
    inset 0 0 0 1px rgba(214, 172, 82, .55),
    inset 0 0 0 6px rgba(16, 13, 10, .6),
    inset 0 0 0 7px rgba(214, 172, 82, .18),
    0 40px 70px -40px rgba(0, 0, 0, .8);
  transition: transform .6s var(--ease), box-shadow .6s;
}

.case:hover {
  transform: translateY(-6px);
  box-shadow:
    inset 0 0 0 1px var(--gold-light),
    inset 0 0 0 6px rgba(16, 13, 10, .6),
    inset 0 0 0 7px rgba(214, 172, 82, .3),
    0 40px 80px -36px rgba(214, 172, 82, .25);
}

.case__metric { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid rgba(214, 172, 82, .3); }
.case__metric b { display: block; font-family: var(--forum); font-weight: 400; font-size: clamp(54px, 5vw, 76px); line-height: 1; letter-spacing: -.01em; }
.case__metric span { display: block; margin-top: 10px; font-family: var(--roman); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #a99c88; line-height: 1.6; }

.case__quote {
  position: relative;
  flex: 1;
  padding-left: 30px;
  font-size: 19px;
  line-height: 1.55;
  color: #ddd3c3;
}

/* крупная золотая кавычка */
.case__quote::before {
  content: "“";
  position: absolute;
  left: -4px;
  top: -16px;
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  color: var(--gold);
}

.case__author { display: flex; align-items: center; gap: 16px; margin-top: 30px; }

.case__author .case__ini {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-family: var(--forum);
  font-size: 19px;
  color: #2b1f0c;
  background: var(--gold-grad);
  box-shadow: 0 0 0 4px rgba(16, 13, 10, .8), 0 0 0 5px rgba(214, 172, 82, .4);
}

.case__author b { display: block; font-family: var(--forum); font-weight: 400; font-size: 20px; color: var(--marble); }
.case__author span { display: block; font-size: 15px; line-height: 1.35; color: #a99c88; }
.case__author .case__company { color: var(--gold-light); font-style: italic; }

/* ==========================================================
   10. FAQ — диспут
   ========================================================== */

.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }

.faq__arch {
  position: sticky;
  top: 120px;
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  padding: 10px;
  background: var(--marble);
  box-shadow: inset 0 0 0 1px var(--gold), 0 40px 70px -40px rgba(60, 45, 25, .55);
}

.faq__arch img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 0 0; }

.faq__arch figcaption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  translate: -50% 0;
  padding: 8px 22px;
  font-size: 12px;
  color: var(--gold-light);
  background: rgba(23, 19, 15, .8);
}

.faq__list { margin-top: 40px; border-top: 1px solid rgba(180, 138, 53, .4); }
.faq details { border-bottom: 1px solid rgba(180, 138, 53, .4); }

.faq summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 54px 1fr 24px;
  align-items: baseline;
  padding: 26px 0;
  font-family: var(--forum);
  font-size: 24px;
  line-height: 1.25;
  transition: color .3s;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary .cinzel { font-size: 15px; color: var(--gold); }

.faq summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 30px;
  color: var(--gold);
  text-align: right;
  transition: rotate .4s var(--ease);
}

.faq details[open] summary::after { rotate: 45deg; }
.faq summary:hover { color: var(--gold); }
.faq details p { padding: 0 34px 28px 54px; color: var(--ink-soft); font-size: 19px; }

/* ==========================================================
   11. ABOUT — контакты на фоне Алматы
   ========================================================== */

.about {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 140px 0;
}

/* слой 1 — дальний план: горы и закатное небо (движется медленнее всех) */
.about__layer--back {
  position: absolute;
  /* слой занимает только верх секции — хребет встаёт на линию горизонта площади, горы читаются далёкими */
  top: -20%;
  left: 0;
  right: 0;
  height: 82%;
  z-index: -5;
  background: url("assets/img/mountains-bg.jpg") center bottom / cover no-repeat, #e9c79a;
}

/* слой 2 — площадь с руинами: небо вырезано маской (горизонт + силуэты руин), сквозь него видны горы */
.about__layer--mid {
  position: absolute;
  left: 0;
  bottom: -6%;
  z-index: -4;
  width: 100%;
  height: 112%;
  max-width: none;
  object-fit: cover;
  object-position: center bottom;
}

/* слой 3 — туман: два дрейфующих полупрозрачных облака */
.about__fog {
  position: absolute;
  inset: 40% -20% -5%;
  z-index: -3;
  pointer-events: none;
}

.about__fog span {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 45% 22% at 22% 38%, rgba(255, 238, 214, .7), transparent 70%),
    radial-gradient(ellipse 40% 26% at 70% 55%, rgba(255, 238, 214, .6), transparent 70%),
    radial-gradient(ellipse 70% 30% at 45% 85%, rgba(250, 242, 228, .85), transparent 72%);
  filter: blur(22px);
  animation: fog 38s ease-in-out infinite alternate;
}

.about__fog span:last-child { opacity: .7; animation-duration: 52s; animation-direction: alternate-reverse; translate: 10% 0; }

@keyframes fog {
  from { transform: translateX(-6%); }
  to { transform: translateX(6%); }
}

/* слой 3 — золотые пылинки (canvas, script.js) */
.about__dust { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none; }

.about__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(246, 242, 235, 0) 0%, rgba(246, 242, 235, 0) 45%, rgba(23, 19, 15, .2) 100%);
}

.about__grid { display: flex; justify-content: flex-end; }

.about__card {
  max-width: 560px;
  padding: 54px 50px 46px;
  background: rgba(251, 248, 242, .9);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 0 7px rgba(251, 248, 242, .6), inset 0 0 0 8px rgba(180, 138, 53, .3), 0 40px 80px -40px rgba(23, 19, 15, .6);
}

.about__card .h2 { font-size: clamp(34px, 3.4vw, 50px); margin-bottom: 20px; }
.about__card > p { color: var(--ink-soft); font-size: 19px; }
.about__list { margin-top: 28px; }
.about__list > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(180, 138, 53, .3); align-items: baseline; }
.about__list dt { font-size: 11px; color: var(--gold); }
.about__list dd { font-size: 19px; }
.about__list a:hover { color: var(--gold); }


/* ==========================================================
   12. FINALE + 13. FOOTER
   ========================================================== */

.finale { position: relative; overflow: hidden; isolation: isolate; }

.finale__marble {
  position: absolute;
  inset: -12% 0 0;
  z-index: -1;
  background:
    url("assets/img/marble.jpg") center / cover no-repeat,
    linear-gradient(160deg, var(--marble) 0%, #e9e1d3 50%, var(--marble) 100%);
  opacity: .55;
  filter: sepia(.25) saturate(.9);
}

.finale__marble::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(246, 242, 235, .85) 0%, rgba(246, 242, 235, .35) 60%, rgba(246, 242, 235, .1) 100%),
    linear-gradient(180deg, var(--marble) 0%, transparent 25%);
}

.finale__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: end;
  gap: 40px;
  padding-top: 120px;
}

.finale__text { padding-bottom: 140px; }
.finale__laurel { width: 130px; margin-bottom: 20px; filter: drop-shadow(0 8px 14px rgba(120, 85, 20, .35)); }
.finale__text > p { margin: 26px 0 34px; max-width: 540px; color: var(--ink-soft); font-size: 22px; }
.finale__text > .btn--link { margin-top: 26px; }

.subscribe {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-width: 600px;
}

.subscribe .btn { grid-column: 1 / -1; }

.finale__statue { display: flex; justify-content: center; }
.finale__statue img { max-height: 760px; width: auto; filter: saturate(.8) contrast(1.03) drop-shadow(0 30px 40px rgba(60, 45, 25, .35)); }

/* фриз: AI-орнамент, склеенный с зеркальной копией — бесшовный по горизонтали */
.frieze {
  height: clamp(64px, 7vw, 96px);
  background: url("assets/img/frieze.jpg") repeat-x left center / auto 100%;
  box-shadow: inset 0 1px 0 rgba(232, 205, 134, .5), inset 0 -1px 0 rgba(232, 205, 134, .5);
}

.footer {
  position: relative;
  background:
    linear-gradient(180deg, rgba(23, 19, 15, .9), rgba(23, 19, 15, .97)),
    url("assets/img/marble-dark.jpg") center / cover;
  color: #b9ad9b;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr 1.2fr;
  gap: 40px;
  padding: 70px 0 40px;
  font-size: 17px;
}

.footer .logo__word { color: var(--marble); }
.footer__desc { margin-top: 16px; font-style: italic; max-width: 260px; }
.footer__grid .cinzel { font-size: 11px; color: var(--gold-light); display: block; margin-bottom: 12px; }
.footer nav { display: flex; flex-direction: column; gap: 6px; }
.footer a { transition: color .3s; }
.footer a:hover { color: var(--gold-light); }

.footer__copy {
  grid-column: 1 / -1;
  padding-top: 28px;
  border-top: 1px solid rgba(214, 172, 82, .2);
  font-size: 14px;
  text-align: center;
  color: #7f7364;
}

.footer__copy .cinzel { margin: 14px 0 0; font-size: 10px; color: #7f7364; }

/* ==========================================================
   Анимации появления
   ========================================================== */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.is-in { opacity: 1; transform: none; }

.hero__statue img { animation: rise 1.8s var(--ease) both .2s; }
.hero__arch { animation: arch 1.6s var(--ease) both; }

@keyframes rise { from { opacity: 0; transform: translateY(60px) scale(.97); } }
@keyframes arch { from { opacity: 0; transform: scaleY(.6); transform-origin: bottom; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   Адаптив
   ========================================================== */

@media (max-width: 1180px) {
  .nav__links { gap: 26px; }
  .charters { grid-template-columns: repeat(2, 1fr); row-gap: 70px; }
}

@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav.is-open { background: rgba(246, 242, 235, .97); }
  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 36px 0 44px;
    background: rgba(246, 242, 235, .97);
    box-shadow: 0 1px 0 rgba(180, 138, 53, .35);
  }
  .nav.is-open .nav__burger span:first-child { top: 9px; rotate: 45deg; }
  .nav.is-open .nav__burger span:last-child { bottom: 10px; rotate: -45deg; }
  .nav__burger { display: block; }
  .nav .btn { margin-left: auto; }
  .hero__inner { grid-template-columns: 1fr; padding-bottom: 0; }
  .hero__statue { height: 70vh; }
  .hero__scroll { display: none; }
  .method__grid, .author__grid, .faq__grid { grid-template-columns: 1fr; gap: 70px; }
  .portal, .author__bust { max-width: 460px; margin: 0 auto; width: 100%; }
  .volumes-band__list { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .faq__arch { position: relative; top: 0; max-width: 420px; margin: 0 auto; width: 100%; }
  .author__bust { position: relative; top: 0; }
  .pillars__grid, .cases, .path { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; gap: 70px; }
  .pillars__column { opacity: .15; }
  .path::before { top: 0; bottom: 0; left: 50%; right: auto; width: 1px; height: auto; background: linear-gradient(transparent, var(--gold-light) 8%, var(--gold-light) 92%, transparent); }
  .path li { background: rgba(23, 19, 15, .55); padding: 30px 20px; }
  .portico__columns { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; gap: 120px; padding: 70px 0 0; }
  .portico__stylobate { display: none; }
  .order__base { width: 100%; }
  .order__capital { width: 110%; }
  .about__grid { justify-content: center; }
  .finale__grid { grid-template-columns: 1fr; }
  .finale__text { padding-bottom: 0; }
  .finale__statue img { max-height: 560px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 18px; }
  .container, .hero__inner { width: calc(100% - 40px); }
  .nav { padding-inline: 20px; gap: 16px; }
  .logo__word { display: none; }
  .section { padding: 100px 0; }
  .subscribe { grid-template-columns: 1fr; }
  .stats, .author__stats { grid-template-columns: 1fr; }
  .stats > div + div { border-left: 0; border-top: 1px solid rgba(180, 138, 53, .3); }
  .charters { grid-template-columns: 1fr; }
  .volumes-band__list { grid-template-columns: 1fr; }
  .ticker span { font-size: 22px; }
  .about__card { padding: 40px 26px; }
  .about__list > div { grid-template-columns: 1fr; gap: 2px; }
  .faq summary { grid-template-columns: 40px 1fr 24px; font-size: 21px; }
  .faq details p { padding-left: 40px; padding-right: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .stele__formula { white-space: normal; }
  .hero .eyebrow { display: none; }
  .hero__inner { padding-top: 110px; }
}

/* заглушка для ещё не сгенерированных картинок */
.is-missing { visibility: hidden; }

.method .h2 { font-size: clamp(38px, 4vw, 60px); }
@media (min-width: 1081px) { .about__card .eyebrow { white-space: nowrap; } }

/* книга в арке hero: мягко «парит» */
.hero__statue--book img {
  height: 72%;
  margin: auto 0;
  filter: drop-shadow(0 40px 40px rgba(60, 45, 25, .4)) drop-shadow(0 8px 10px rgba(60, 45, 25, .25));
  animation: rise 1.8s var(--ease) both .2s, float 7s ease-in-out 2s infinite;
}

@keyframes float {
  50% { transform: translateY(-14px) rotate(-.6deg); }
}
