/* Сайт myfic.me (с 28.11.2026) — тот же «Бархатный вечер», что в приложении: бордовый, зелёный, серебро, золото, чёрный.
   Сначала телефон (люди приходят из Telegram), потом планшет и компьютер. Анимации выключаются
   при «уменьшить движение» в настройках телефона. */

:root {
  --bg: #0e0a0b;
  --bg-2: #140c0f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(215, 219, 224, 0.13);
  --line-strong: rgba(215, 219, 224, 0.28);
  --text: #f3eee9;
  --text-2: #cfc5c8;
  --text-3: #95898d;
  --gold: #e3c77a;
  --gold-hi: #f3dc9a;
  --gold-lo: #b8893a;
  --gold-fill: linear-gradient(135deg, #f6e2a6, #c39a45);
  --title-fill: linear-gradient(180deg, #f8e7b0 10%, #c39a45 95%);
  --ink: #15100a;
  --burgundy: #7a1c30;
  --burgundy-lo: #4a0f1c;
  --burgundy-hi: #b0384f;
  --emerald: #2e8c68;
  --emerald-lo: #12382b;
  --emerald-hi: #4fb38c;
  --parchment: #f3ead7;
  --parchment-ink: #2b2018;
  --radius: 20px;
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1140px;
  --gutter: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.62 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
/* бархатные отсветы по всему сайту */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vmax 50vmax at 85% -10%, rgba(122, 28, 48, 0.34), transparent 60%),
    radial-gradient(50vmax 40vmax at -10% 40%, rgba(46, 140, 104, 0.10), transparent 60%),
    radial-gradient(60vmax 50vmax at 110% 110%, rgba(122, 28, 48, 0.22), transparent 60%);
}
img { max-width: 100%; display: block; }
a { color: var(--gold-hi); text-decoration: none; }
a:hover { color: #fff3cf; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: 0.002em; text-wrap: balance; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
.eyebrow { font: 700 12px/1.2 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.age { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--gold); color: var(--gold-hi);
  border-radius: 999px; padding: 1px 8px; font: 800 11px/1.5 var(--sans); letter-spacing: 0.04em; }
.gold-text { background: var(--title-fill); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 11px 26px;
  border-radius: 999px; border: 1px solid transparent; font: 700 15.5px/1.2 var(--sans); letter-spacing: 0.01em; text-align: center;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  max-width: 100%; /* длинная надпись переносится, а не распирает страницу на телефоне */
}
.btn:active { transform: scale(0.98); }
.btn-gold { background: var(--gold-fill); color: var(--ink); box-shadow: 0 10px 30px rgba(195, 154, 69, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn-gold:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 14px 38px rgba(227, 199, 122, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(14, 10, 11, 0.35); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn-velvet { background: linear-gradient(160deg, #8a2238, #4a0f1c); color: var(--gold-hi); border-color: rgba(227, 199, 122, 0.45);
  box-shadow: 0 12px 30px rgba(74, 15, 28, 0.5); }
.btn-velvet:hover { color: #fff3cf; transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.topbar-cta, .nav a { white-space: nowrap; }
.builder-box > *, .how-grid > *, .hero-cards > *, .footer-grid > * { min-width: 0; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- свеча-знак (как в приложении) ---------- */
svg.mark { width: 15px; height: 24px; overflow: visible; flex: none; }
.mark .c-glow { filter: blur(2.2px); transform-origin: 10px 8px; animation: c-glow 2.6s ease-in-out infinite; }
.mark .c-flame { transform-origin: 10px 13px; animation: c-flicker 1.9s ease-in-out infinite; }
.mark .c-core { transform-origin: 10px 12.5px; animation: c-core 1.3s ease-in-out infinite; }
@keyframes c-flicker {
  0% { transform: scale(1, 1) skewX(0deg); } 18% { transform: scale(.95, 1.07) skewX(-2.5deg); }
  37% { transform: scale(1.04, .94) skewX(1.5deg); } 55% { transform: scale(.97, 1.09) skewX(-1deg); }
  74% { transform: scale(1.03, .96) skewX(2.5deg); } 100% { transform: scale(1, 1) skewX(0deg); }
}
@keyframes c-core { 0%, 100% { transform: scale(1, 1); opacity: .95; } 50% { transform: scale(.9, 1.08); opacity: 1; } }
@keyframes c-glow { 0%, 100% { opacity: .55; transform: scale(1); } 45% { opacity: .85; transform: scale(1.15); } 70% { opacity: .65; transform: scale(1.05); } }

/* ---------- шапка ---------- */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .35s, box-shadow .35s, backdrop-filter .35s; }
.topbar.scrolled, body:not(.page-home) .topbar { background: rgba(14, 10, 11, 0.78); backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 14px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--gold-hi); }
.brand:hover { color: var(--gold-hi); }
.brand-name { font: italic 600 27px/1 var(--display); letter-spacing: 0.01em; background: var(--title-fill); -webkit-background-clip: text;
  background-clip: text; color: transparent; padding-right: 2px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--text-2); font: 600 14.5px/1 var(--sans); padding: 8px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0);
  transition: transform .3s var(--ease); }
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }
.nav .nav-cta { display: none; }
.topbar-cta .short { display: none; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; background: rgba(14, 10, 11, 0.4);
  color: var(--text); cursor: pointer; position: relative; flex: none; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.menu-btn span:first-child { top: 17px; } .menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-btn { display: inline-block; }
  .topbar-cta { margin-left: auto; }
  .nav { position: fixed; top: 66px; left: 12px; right: 12px; flex-direction: column; gap: 0; padding: 10px 18px 18px; border-radius: 18px;
    background: rgba(22, 11, 16, 0.97); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .nav-cta { display: block; border: 0; color: var(--gold-hi); }
}
@media (max-width: 420px) {
  .topbar-cta .long { display: none; }
  .topbar-cta .short { display: inline; }
  .brand-name { font-size: 25px; }
}

/* хлебные крошки (страницы героев и статьи) */
.crumbs { padding-top: 84px; display: flex; flex-wrap: wrap; gap: 6px; font: 600 13px/1.4 var(--sans); color: var(--text-3); }
.crumbs a { color: var(--text-2); }
.crumbs .sep { opacity: .6; }

/* ---------- появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }
/* первый экран проявляется сам, без скрипта: не ждём JavaScript, чтобы показать заголовок */
.rise { animation: rise 1s var(--ease) both; }
.rise.d1 { animation-delay: .12s; } .rise.d2 { animation-delay: .24s; } .rise.d3 { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- первый экран ---------- */
.hero { position: relative; min-height: 100vh; min-height: min(100svh, 1000px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -3; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 30%; transform: scale(1.06); animation: slow-zoom 30s ease-in-out infinite alternate; }
@keyframes slow-zoom { from { transform: scale(1.06); } to { transform: scale(1.14) translate(-1%, 1%); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, rgba(14, 10, 11, 0.55) 0%, rgba(14, 10, 11, 0.15) 28%, rgba(14, 10, 11, 0.55) 58%, #0e0a0b 96%),
    radial-gradient(120% 80% at 50% 30%, transparent 40%, rgba(14, 10, 11, 0.6) 100%); }
/* тёплое дыхание свечей поверх картинки */
.hero::after { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(28% 22% at 62% 38%, rgba(255, 170, 70, 0.22), transparent 70%), radial-gradient(18% 14% at 30% 30%, rgba(255, 150, 60, 0.12), transparent 70%);
  animation: candle-breath 4.2s ease-in-out infinite; }
@keyframes candle-breath { 0%, 100% { opacity: .75; } 35% { opacity: 1; } 60% { opacity: .82; } 80% { opacity: .95; } }
.hero-dust { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { padding-top: 110px; padding-bottom: 76px; }
.hero-title { font-size: clamp(46px, 11.5vw, 96px); line-height: 0.98; margin: 0 0 22px; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45); max-width: 12ch; }
.hero-title em { font-style: italic; display: inline-block; background: var(--title-fill); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 0.08em; text-shadow: none; filter: drop-shadow(0 2px 18px rgba(227, 199, 122, 0.25)); }
.lead { font-size: clamp(17px, 2.3vw, 20px); line-height: 1.6; color: var(--text-2); max-width: 36em; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero-note { color: var(--text-3); font-size: 14px; margin: 0; }
.scroll-hint { position: absolute; left: 50%; bottom: 18px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid var(--line-strong); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: scroll-dot 2s ease-in-out infinite; }
@keyframes scroll-dot { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (min-width: 900px) {
  .hero { align-items: center; }
  .hero-inner { padding-bottom: 60px; }
  .hero-bg img { object-position: 60% 35%; }
}

/* ---------- разделы ---------- */
.section { padding: 84px 0; position: relative; }
.section-head { max-width: 720px; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(36px, 6.4vw, 58px); }
.section-head h2 em { font-style: italic; color: var(--gold-hi); }
.section-lead { color: var(--text-2); font-size: 17.5px; margin: 16px 0 0; }
.divider { width: 160px; height: 14px; margin: 0 auto; background:
  linear-gradient(90deg, transparent, rgba(227, 199, 122, 0.6) 40%, transparent 40%, transparent 60%, rgba(227, 199, 122, 0.6) 60%, transparent) center/100% 1px no-repeat; position: relative; }
.divider::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; transform: rotate(45deg);
  border: 1px solid var(--emerald-hi); background: var(--emerald-lo); }

/* как это работает */
.how-grid { display: grid; gap: 48px; align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .3s, background .3s; }
.step:hover { border-color: rgba(227, 199, 122, 0.35); background: var(--surface-2); }
.step-num { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font: italic 600 24px/1 var(--display); color: var(--gold-hi);
  background: radial-gradient(circle at 35% 30%, #8a2238, #3a0a15); border: 1px solid rgba(227, 199, 122, 0.45); }
.step h3 { font-size: 27px; margin: 4px 0 8px; }
.step p { color: var(--text-2); margin: 0; }
@media (min-width: 960px) { .how-grid { grid-template-columns: 1.15fr 0.85fr; gap: 64px; } }

/* телефон со скриншотами */
.phones { display: grid; justify-items: center; gap: 16px; }
.phone { position: relative; width: min(290px, 78vw); padding: 34px 10px 12px; border-radius: 42px; background: linear-gradient(160deg, #2a1a1f, #0d0809);
  box-shadow: 0 0 0 1px rgba(227, 199, 122, 0.35), 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 120px rgba(122, 28, 48, 0.35); }
/* вырез — в рамке над экраном, не поверх скриншота */
.phone::before { content: ""; position: absolute; top: 11px; left: 50%; width: 70px; height: 14px; margin-left: -35px; border-radius: 10px; background: #050304;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); z-index: 2; }
.slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 22px 22px 30px 30px; scrollbar-width: none; aspect-ratio: 402 / 680; background: #0e0a0b; }
.slider::-webkit-scrollbar { display: none; }
.slider figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; position: relative; }
.slider img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.slider figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 10px 14px; border-radius: 14px; text-align: center;
  background: rgba(14, 10, 11, 0.82); backdrop-filter: blur(8px); border: 1px solid var(--line); font: 600 13.5px/1.35 var(--sans); color: var(--text); }
.dots { display: flex; gap: 8px; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: var(--line-strong); cursor: pointer; transition: background .3s, width .3s; }
.dots button[aria-current="true"] { background: var(--gold); width: 26px; border-radius: 6px; }

/* ---------- соберите свою историю ---------- */
.builder-box { display: grid; gap: 22px; }
.builder-form { display: grid; gap: 20px; padding: 24px; border-radius: 24px; background: linear-gradient(170deg, rgba(122, 28, 48, 0.22), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line); }
.builder-form fieldset { border: 0; margin: 0; padding: 0; }
.builder-form legend { font: 700 12px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { min-height: 42px; padding: 0 17px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(14, 10, 11, 0.45);
  color: var(--text-2); font: 600 14.5px/1 var(--sans); cursor: pointer; transition: all .25s var(--ease); }
.chip:hover { color: var(--text); border-color: rgba(227, 199, 122, 0.55); }
.chip[aria-pressed="true"] { color: var(--ink); background: var(--gold-fill); border-color: transparent; box-shadow: 0 6px 18px rgba(195, 154, 69, 0.3); }
.builder-go { justify-self: start; }
@media (max-width: 480px) {
  .builder-form { padding: 20px 16px; gap: 18px; }
  .chips { gap: 7px; }
  .chip { min-height: 38px; padding: 0 13px; font-size: 13.5px; }
}
.parchment { position: relative; border-radius: 22px; padding: 30px 26px 26px; color: var(--parchment-ink);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, 0.55), transparent 55%),
    radial-gradient(110% 80% at 100% 100%, rgba(170, 120, 60, 0.22), transparent 60%),
    var(--parchment);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(122, 90, 51, 0.25), inset 0 0 60px rgba(122, 90, 51, 0.15); }
.parchment::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(122, 90, 51, 0.28); border-radius: 15px; pointer-events: none; }
.parchment-label { font: 700 11.5px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: #8b6a3a; margin: 0 0 12px; }
.parchment-title { font: italic 600 clamp(28px, 5vw, 36px)/1.1 var(--display); color: #6b1a2c; margin: 0 0 14px; min-height: 1.1em; }
.parchment-text { font: 17.5px/1.7 var(--serif); min-height: 9.5em; }
.parchment-text p { margin: 0 0 .7em; }
.parchment-text p:first-child::first-letter { float: left; font: 600 3.4em/0.78 var(--display); margin: 0.06em 0.08em 0 0; color: #9a6d24; }
.parchment .caret { display: inline-block; width: 2px; height: 1.05em; background: #6b1a2c; vertical-align: -0.15em; margin-left: 1px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.parchment-cta { margin-top: 18px; }
.parchment-note { font: 13px/1.5 var(--sans); color: #7d6a55; margin: 16px 0 0; }
@media (min-width: 960px) {
  .builder-box { grid-template-columns: 0.95fr 1.05fr; align-items: start; gap: 28px; }
  .parchment { padding: 40px 40px 32px; }
}

/* ---------- герои ---------- */
.hero-cards { display: grid; gap: 18px; }
.hero-card { position: relative; display: block; border-radius: 24px; overflow: hidden; aspect-ratio: 3 / 4; color: var(--text); isolation: isolate;
  border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s; }
.hero-card:hover { color: var(--text); transform: translateY(-6px); border-color: rgba(227, 199, 122, 0.5); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 60px rgba(122, 28, 48, 0.35); }
.hero-card .portrait { position: absolute; inset: 0; z-index: -2; }
.hero-card .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform 1.2s var(--ease); }
.hero-card:hover .portrait img { transform: scale(1.05); }
.hero-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 10, 11, 0) 35%, rgba(14, 10, 11, 0.92) 85%); }
.hero-card .card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; }
.hero-card h3 { font-size: 34px; margin-bottom: 8px; }
.hero-card p { color: var(--text-2); margin: 0 0 14px; font-size: 15px; }
.hero-card .more { color: var(--gold-hi); font: 700 14px/1 var(--sans); }
/* место для картинки героя, пока её нет: монограмма на бархате */
.monogram { width: 100%; height: 100%; display: grid; place-items: center; position: relative; }
.monogram::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(227, 199, 122, 0.35); border-radius: 16px; }
.monogram span { font: italic 600 min(46vw, 240px)/1 var(--display); background: var(--title-fill); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .9; transform: translateY(-14%); }
.monogram.emerald { background: radial-gradient(90% 70% at 50% 25%, #1f6b50, #0b2a1f 70%, #06140f); }
.monogram.velvet { background: radial-gradient(90% 70% at 50% 25%, #8a2238, #3a0a15 70%, #1a050a); }
.monogram.ink { background: radial-gradient(90% 70% at 50% 25%, #3a2a1a, #17100b 70%, #0b0806); }
.heroes-note { text-align: center; color: var(--text-3); margin: 26px 0 0; }
@media (min-width: 760px) { .hero-cards { grid-template-columns: repeat(3, 1fr); } .monogram span { font-size: 180px; } }

/* ---------- что внутри ---------- */
.features { display: grid; gap: 14px; }
.feature { padding: 26px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden;
  transition: border-color .3s, transform .4s var(--ease); }
.feature:hover { border-color: rgba(227, 199, 122, 0.35); transform: translateY(-3px); }
/* тонкая золотая линия сверху при наведении — вместо пятна в углу */
.feature::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227, 199, 122, 0.7), transparent); opacity: 0; transition: opacity .4s; }
.feature:hover::before { opacity: 1; }
.feature .icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--gold-hi); margin-bottom: 18px;
  background: rgba(227, 199, 122, 0.08); border: 1px solid rgba(227, 199, 122, 0.25); }
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 26px; margin-bottom: 8px; }
.feature p { color: var(--text-2); margin: 0; font-size: 15.5px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }

/* обещания */
.promises { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.promise { padding: 20px 18px; border-radius: 18px; border: 1px solid var(--line); background: rgba(18, 56, 43, 0.18); }
.promise b { display: block; font: 600 21px/1.15 var(--display); color: var(--gold-hi); margin-bottom: 6px; }
.promise span { color: var(--text-2); font-size: 14px; line-height: 1.5; }
@media (min-width: 900px) { .promises { grid-template-columns: repeat(4, 1fr); } }

/* ---------- вопросы и ответы ---------- */
.qa-list { display: grid; gap: 10px; }
.qa { border-radius: 16px; border: 1px solid var(--line); background: var(--surface); transition: border-color .3s, background .3s; }
.qa[open] { border-color: rgba(227, 199, 122, 0.4); background: var(--surface-2); }
.qa summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; position: relative; font: 600 17px/1.4 var(--sans); color: var(--text); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold); transform: rotate(45deg); transition: transform .3s var(--ease); }
.qa[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.qa .answer { padding: 0 20px 20px; color: var(--text-2); }
.qa .answer p:last-child { margin: 0; }
.center-link { text-align: center; margin-top: 26px; }

/* ---------- статьи: карточки ---------- */
.cards { display: grid; gap: 18px; }
.card { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  transition: transform .45s var(--ease), border-color .45s, box-shadow .45s; }
.card:hover { color: var(--text); transform: translateY(-5px); border-color: rgba(227, 199, 122, 0.45); box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5); }
.card .cover { aspect-ratio: 16 / 9; }
.card .card-text { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 26px; }
.card p { color: var(--text-2); margin: 0; font-size: 15px; flex: 1; }
.card .more { color: var(--gold-hi); font: 700 14px/1 var(--sans); margin-top: 6px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
/* обложка статьи: своя картинка или узор с символом */
.cover { position: relative; overflow: hidden; display: grid; place-items: center; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover.art-velvet { background: radial-gradient(120% 120% at 20% 10%, #962a40, #3a0a15 55%, #14060a); }
.cover.art-emerald { background: radial-gradient(120% 120% at 80% 10%, #2e8c68, #0f3326 55%, #06140f); }
.cover.art-gold { background: radial-gradient(120% 120% at 50% 0%, #a07a36, #3a2612 55%, #120b06); }
.cover.art-ink { background: radial-gradient(120% 120% at 30% 20%, #3b2c4a, #1a1224 55%, #0b0710); }
.cover .glyph { color: rgba(243, 220, 154, 0.9); display: grid; place-items: center; }
.cover .glyph svg { width: clamp(52px, 9vw, 88px); height: auto; filter: drop-shadow(0 0 22px rgba(243, 220, 154, 0.35)); }
.cover::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(243, 220, 154, 0.25); border-radius: 12px; pointer-events: none; }

/* ---------- финальный призыв ---------- */
.final { padding: 96px 0 104px; text-align: center; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(255, 170, 70, 0.14), rgba(122, 28, 48, 0.18) 35%, transparent 65%); animation: candle-breath 5s ease-in-out infinite; }
.final .big-candle { width: 54px; height: 86px; margin: 0 auto 24px; }
.final .big-candle svg.mark { width: 54px; height: 86px; }
.final h2 { font-size: clamp(40px, 7vw, 68px); margin-bottom: 16px; }
.final p { color: var(--text-2); font-size: 18px; max-width: 32em; margin: 0 auto 30px; }

/* ---------- страница героя ---------- */
.hero-page-head { display: grid; gap: 28px; padding: 18px 0 40px; }
.hero-page-head .portrait { border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--line); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55); }
.hero-page-head .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.hero-page-head h1 { font-size: clamp(44px, 8vw, 74px); margin-bottom: 18px; }
.hero-page-head h1 em { font-style: italic; color: var(--gold-hi); }
@media (min-width: 900px) { .hero-page-head { grid-template-columns: 0.85fr 1.15fr; align-items: center; gap: 56px; padding: 30px 0 56px; } }

/* ---------- текст статей и страниц героев ---------- */
.prose { font: 18px/1.78 var(--serif); color: #e6dcde; padding-bottom: 30px; }
.prose > * { max-width: 700px; }
.prose h2 { font-size: clamp(32px, 5vw, 42px); color: var(--text); margin: 54px 0 16px; }
.prose h3 { font-size: 27px; color: var(--gold-hi); margin: 34px 0 10px; }
.prose p { margin: 0 0 1.15em; }
.prose a { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(243, 220, 154, 0.4); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--gold); }
.prose strong { color: var(--text); font-weight: 600; }
/* кнопки и списки ссылок внутри текста — со своим видом, а не как ссылки в тексте */
.prose a.btn { text-decoration: none; }
.prose a.btn-gold, .prose a.btn-gold:hover { color: var(--ink); }
.prose .related { padding: 0; }
.prose .tropes { list-style: none; padding: 0; display: grid; gap: 12px; max-width: none; }
.prose .tropes li { margin: 0; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); font: 15.5px/1.55 var(--sans); color: var(--text-2); }
.prose .tropes b { display: block; font: 600 22px/1.2 var(--display); color: var(--gold-hi); margin-bottom: 4px; }
@media (min-width: 760px) { .prose .tropes { grid-template-columns: repeat(2, 1fr); } }
.excerpt { margin: 10px 0 30px; max-width: 700px; }
.excerpt .parchment-text { min-height: 0; }
.excerpt .parchment-text p:first-child::first-letter { float: none; font: inherit; margin: 0; color: inherit; }
.article-head { padding: 18px 0 34px; }
.article-head h1 { font-size: clamp(38px, 7vw, 64px); margin-bottom: 16px; max-width: 18ch; }
.article-meta { color: var(--text-3); font: 600 13.5px/1.4 var(--sans); }
.article-cover { border-radius: 24px; overflow: hidden; aspect-ratio: 21 / 9; margin: 0 0 40px; border: 1px solid var(--line); }
.article-cover .cover { height: 100%; }
@media (max-width: 600px) { .article-cover { aspect-ratio: 16 / 9; } }
.not-found .btn { margin: 4px; }
.cta-card { margin: 44px 0 10px; padding: 30px 26px; border-radius: 24px; text-align: center; max-width: 700px;
  background: radial-gradient(120% 140% at 50% 0%, rgba(150, 42, 64, 0.5), rgba(30, 8, 15, 0.7)); border: 1px solid rgba(227, 199, 122, 0.4); }
.cta-card h2, .prose .cta-card h2 { font-size: clamp(28px, 5vw, 38px); margin: 0 0 10px; }
.cta-card p { font: 16px/1.6 var(--sans); color: var(--text-2); margin: 0 0 20px; }
.related { display: grid; gap: 12px; padding: 0; list-style: none; max-width: 700px; }
.related a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--surface); text-decoration: none; font: 600 16px/1.4 var(--sans); color: var(--text); }
.related a:hover { border-color: rgba(227, 199, 122, 0.45); color: var(--gold-hi); }
.page-head { padding: 18px 0 40px; }
.page-head h1 { font-size: clamp(42px, 8vw, 72px); margin-bottom: 14px; }

/* ---------- 404 ---------- */
.not-found { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 120px 0 60px; }
.not-found h1 { font-size: clamp(48px, 10vw, 92px); margin-bottom: 14px; }
.not-found p { color: var(--text-2); max-width: 30em; margin: 0 auto 26px; }

/* ---------- подвал ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: linear-gradient(180deg, rgba(20, 12, 15, 0), rgba(20, 12, 15, 0.9)); }
.footer-grid { display: grid; gap: 34px; }
.footer-brand p { color: var(--text-3); margin: 14px 0 18px; max-width: 24em; }
.footer nav { display: grid; gap: 10px; align-content: start; }
.footer nav h2 { font: 700 12px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.footer nav a { color: var(--text-2); font-size: 15px; }
.footer nav a:hover { color: var(--gold-hi); }
.footer-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; display: grid; gap: 6px; }
.footer-legal p { margin: 0; }
.footer-legal .age { margin-right: 6px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } .footer-legal { grid-template-columns: 1fr auto; align-items: end; } }

/* ---------- уведомление о cookie (только когда включена Метрика) ---------- */
.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; max-width: 560px; margin: 0 auto; padding: 18px 18px 16px; border-radius: 18px;
  background: rgba(22, 11, 16, 0.97); border: 1px solid var(--line-strong); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); font-size: 14.5px; color: var(--text-2); }
.cookie p { margin: 0 0 12px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* «уменьшить движение» — всё стоит спокойно */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-dust { display: none; }
}
