/*
 * Марго — главная страница (11.10.2026, владелец: «должен выглядеть как дорогой, исключительный продукт»; после первого
 * варианта: «всё ещё выглядит дёшево, не даёт чувства эксклюзивного продукта»).
 * Идея: Марго — циферблат дорогих часов. Ночь — бархатно-фиолетовая, металл — шампанское золото, антиква Cormorant в
 * заголовках; бумага цвета слоновой кости — для разделов, которые читают. Свет падает только на Марго и на деньги.
 * Изумрудный и красный — только прибыль и убыток. Общие блоки site.css (шапка, тарифы, калькулятор, вопросы, подвал)
 * перекрашиваются токенами разделов: [data-tone="dark"] и [data-tone="light"].
 */
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/cormorant-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/cormorant-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/cormorant-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/cormorant-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/cormorant-italic-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/cormorant-italic-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/cormorant-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/cormorant-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Армянский (site69t): у Cormorant нет армянских букв — заголовки на армянском набираются антиквой Noto Serif Armenian (только армянские знаки, свой хостинг). */
@font-face { font-family: "Noto Serif Armenian"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/noto-serif-armenian.woff2") format("woff2"); unicode-range: U+0308, U+0530-058F, U+2010, U+2024, U+25CC, U+FB13-FB17; }

body.home {
  --abyss: #0d0b16;
  --velvet: #16122a;
  --velvet-2: #1e1838;
  --champagne: #d9bf8e;
  --gold: #c9a45c;
  --gold-deep: #94733a;
  --platinum: #ece8e1;
  --mist: #a6a1b4;
  --ivory: #f4efe6;
  --paper: #fbf8f2;
  --ink-d: #1b1726;
  --emerald: #1f8a5f;
  --serif: "Cormorant", "Noto Serif Armenian", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: var(--font);
  --ease: cubic-bezier(0.2, 0.7, 0.15, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background: var(--abyss);
  color: var(--platinum);
  font-size: 17px;
  line-height: 1.65;
}
/* Токены разделов: общие блоки site.css берут цвета отсюда */
.home [data-tone="dark"], .home footer, .home .nav {
  --ink: #ece8e1; --ink-2: #cdc8d6; --muted: #a6a1b4; --faint: #77728a;
  --line: rgba(236, 232, 225, 0.1); --line-2: rgba(236, 232, 225, 0.2);
  --surface: #16122a; --bg: #0d0b16; --bg-2: #1e1838;
  --accent: #d9bf8e; --accent-ink: #f1dcae; --accent-soft: rgba(217, 191, 142, 0.12);
  --ok: #43c18f; --bad: #ec7272; --gain: #43c18f; --loss: #ec7272;
  color: var(--ink);
}
.home [data-tone="light"] {
  --ink: #1b1726; --ink-2: #4a4458; --muted: #7c7588; --faint: #a39d93;
  --line: #e4ddd0; --line-2: #d2c8b6;
  --surface: #fbf8f2; --bg: #f4efe6; --bg-2: #ece5d8;
  --accent: #94733a; --accent-ink: #7a5d2b; --accent-soft: #efe5d1;
  --ok: #1f8a5f; --bad: #c23b3f; --gain: #1f8a5f; --loss: #c23b3f;
  color: var(--ink);
  background-color: var(--bg);
}
.home [data-tone="dark"] { background-color: var(--abyss); }
.home ::selection { background: rgba(217, 191, 142, 0.35); color: inherit; }
.home .h-wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 44px); }
.home main > section { padding: clamp(96px, 12vw, 168px) 0; scroll-margin-top: 68px; }
.home h1, .home h2, .home h3, .home h4 { font-weight: 400; }
.home a:focus-visible, .home button:focus-visible, .home summary:focus-visible, .home input:focus-visible { outline: 2px solid var(--champagne); outline-offset: 4px; border-radius: 2px; }

/* Заголовки разделов — антиква */
.h-head { max-width: 900px; margin-bottom: clamp(44px, 6vw, 80px); }
.h-head.center { margin-inline: auto; text-align: center; }
.h-head h2 { margin: 0 0 22px; font-family: var(--serif); font-size: clamp(32px, 3.7vw, 54px); font-weight: 400; line-height: 1.02; letter-spacing: -0.012em; text-wrap: balance; }
.h-head p { margin: 0; max-width: 58ch; font-size: clamp(17px, 1.4vw, 19px); font-weight: 300; color: var(--ink-2); }
.h-head.center p { margin-inline: auto; }

/* Кнопки: золото и тонкая ссылка */
.h-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 34px; border-radius: 2px; font: inherit; font-size: 15px; font-weight: 500; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background-position 0.9s var(--ease); }
.h-btn-gold { color: #17121f; background: linear-gradient(120deg, #f4e6c3 0%, #d6b46f 32%, #a27f42 58%, #ead39f 82%, #c9a45c 100%); background-size: 220% 100%; background-position: 0% 50%; box-shadow: 0 20px 44px -22px rgba(217, 191, 142, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(90, 64, 20, 0.35); }
.h-btn-gold:hover { color: #17121f; background-position: 100% 50%; transform: translateY(-2px); box-shadow: 0 28px 56px -22px rgba(217, 191, 142, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.65), inset 0 -1px 0 rgba(90, 64, 20, 0.35); }
.h-link { display: inline-flex; align-items: center; min-height: 58px; padding: 0 4px; color: var(--ink); font-size: 15px; letter-spacing: 0.02em; text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 calc(50% + 0.9em) / 100% 1px no-repeat; transition: color 0.3s, background-size 0.4s var(--ease); }
.h-link:hover { color: var(--accent); background-size: 0% 1px; }

/* Шапка: ночью — тёмная, над бумагой — светлая; вместо значка приложения — надпись */
.home .nav { background: rgba(13, 11, 22, 0.6); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); border-bottom: 1px solid rgba(217, 191, 142, 0.1); transition: background 0.5s, border-color 0.5s; }
.home .nav.scrolled { border-bottom-color: rgba(217, 191, 142, 0.14); }
.home .nav .brand { gap: 12px; font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--champagne); }
.home .nav .brand img, .home footer .brand img { display: none; }
.home .nav .brand::before, .home footer .brand::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid currentColor; box-shadow: inset 0 0 0 3px var(--abyss), inset 0 0 0 4.5px currentColor; opacity: 0.9; }
.home .nav-links a, .home .nav-cta .login { color: var(--muted); font-weight: 400; letter-spacing: 0.01em; transition: color 0.3s; }
.home .nav-links a:hover, .home .nav-cta .login:hover { color: var(--ink); }
.home .nav .emo { display: none; }
.home .nav .lang-current { color: var(--muted); border-color: var(--line-2); background: transparent; }
.home .nav .lang-menu { background: var(--velvet-2); border-color: var(--line-2); }
.home .nav .lang-menu a { color: var(--muted); }
.home .nav .lang-menu a:hover { background: rgba(236, 232, 225, 0.06); color: var(--ink); }
.home .nav .lang-menu a.on { color: var(--champagne); }
.home .nav .btn-primary { background: transparent; color: var(--champagne); border: 1px solid rgba(217, 191, 142, 0.6); border-radius: 2px; box-shadow: none; padding: 9px 18px; font-size: 13.5px; font-weight: 500; letter-spacing: 0.01em; }
.home .nav .btn-primary:hover { background: var(--champagne); color: #17121f; transform: none; }
.home .nav .burger span { background: var(--champagne); }
.home .nav.on-light { --ink: #1b1726; --muted: #6f6880; --line-2: #d2c8b6; background: rgba(244, 239, 230, 0.86); border-bottom-color: rgba(148, 115, 58, 0.16); }
.home .nav.on-light .brand { color: var(--gold-deep); }
.home .nav.on-light .brand::before { box-shadow: inset 0 0 0 3px #f4efe6, inset 0 0 0 4.5px currentColor; }
.home .nav.on-light .btn-primary { color: var(--gold-deep); border-color: rgba(148, 115, 58, 0.55); }
.home .nav.on-light .btn-primary:hover { background: var(--gold-deep); color: #fff; }
.home .nav.on-light .burger span { background: var(--gold-deep); }
.home .nav.on-light .lang-menu { background: #fbf8f2; }
.home .nav.on-light .lang-menu a:hover { background: #f1eadd; }

/* ───────── Первый экран ───────── */
.home .h-hero { position: relative; overflow: hidden; display: flex; align-items: center; min-height: min(calc(100svh - 68px), 960px); padding: clamp(40px, 6vw, 90px) 0 clamp(56px, 7vw, 100px); background: var(--grain), radial-gradient(62% 70% at 74% 44%, #2b2150 0%, rgba(43, 33, 80, 0.35) 42%, rgba(13, 11, 22, 0) 70%), radial-gradient(40% 50% at 8% 96%, rgba(201, 164, 92, 0.12), rgba(13, 11, 22, 0) 70%), var(--abyss); }
.home .h-hero > .h-wrap { width: 100%; }
.h-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(520px circle at var(--mx, 74%) var(--my, 44%), rgba(217, 191, 142, 0.09), rgba(217, 191, 142, 0) 70%); }
.h-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.h-over { display: flex; align-items: center; gap: 16px; margin: 0 0 30px; font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: 0.22em; text-transform: uppercase; color: var(--champagne); opacity: 0; animation: h-fade 1.2s var(--ease) 0.1s forwards; }
.h-over::before { content: ""; flex: none; width: 44px; height: 1px; background: linear-gradient(90deg, rgba(217, 191, 142, 0), var(--champagne)); }
.h-title { margin: 0 0 30px; font-family: var(--serif); font-size: clamp(40px, 4.4vw, 68px); font-weight: 400; line-height: 1.02; letter-spacing: -0.01em; color: var(--platinum); text-wrap: pretty; }
.h-title .w.em > span { font-style: italic; color: var(--champagne); }
.h-title .w { display: inline-block; }
.h-title .w > span { display: inline-block; opacity: 0; filter: blur(14px); transform: translateY(0.3em); animation: h-focus 1.7s var(--ease) forwards; animation-delay: calc(0.25s + var(--i) * 0.075s); }
@keyframes h-focus { to { opacity: 1; filter: blur(0); transform: none; } }
.h-lead { max-width: 31em; margin: 0 0 40px; font-size: clamp(17px, 1.45vw, 20px); font-weight: 300; line-height: 1.65; color: var(--mist); opacity: 0; animation: h-fade 1.3s var(--ease) 0.9s forwards; }
@keyframes h-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.h-cta { display: flex; align-items: center; gap: 18px 30px; flex-wrap: wrap; opacity: 0; animation: h-fade 1.3s var(--ease) 1.05s forwards; }
.h-cta.center { justify-content: center; opacity: 1; animation: none; }
.h-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 40px 0 0; padding: 22px 0 0; list-style: none; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 300; color: var(--mist); opacity: 0; animation: h-fade 1.3s var(--ease) 1.2s forwards; }
.h-trust li { display: inline-flex; align-items: center; gap: 9px; }
.h-trust svg { display: none; }
.h-trust li::before { content: ""; flex: none; width: 3px; height: 3px; border-radius: 50%; background: var(--champagne); opacity: 0.8; }

.h-margo { position: relative; justify-self: end; width: min(100%, 560px); }
.h-dial { position: relative; width: 100%; aspect-ratio: 1; }
.h-dial::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; box-shadow: 0 70px 110px -30px rgba(0, 0, 0, 0.75), 0 0 120px 10px rgba(106, 75, 255, 0.16); }
.h-face { position: absolute; inset: 10%; overflow: hidden; border-radius: 50%; background: #fff; opacity: 0; transform: scale(0.95); animation: h-face 1.6s var(--ease) 0.35s forwards; }
.h-face img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.12); }
@keyframes h-face { to { opacity: 1; transform: none; } }
.h-crystal { position: absolute; inset: 10%; border-radius: 50%; pointer-events: none; background: radial-gradient(120% 85% at 26% 10%, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 32%), radial-gradient(closest-side, rgba(13, 11, 22, 0) 72%, rgba(13, 11, 22, 0.5) 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), inset 0 14px 34px rgba(0, 0, 0, 0.22); opacity: 0; animation: h-fade-o 1.6s var(--ease) 0.6s forwards; }
.h-bezel { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; transform: rotate(-14deg) scale(0.97); animation: h-bezel 2s var(--ease) 0.15s forwards; }
@keyframes h-bezel { to { opacity: 1; transform: none; } }
@keyframes h-fade-o { to { opacity: 1; } }
.h-rehaut { fill: none; stroke: #120e22; stroke-width: 20; }
.h-track line { stroke: rgba(217, 191, 142, 0.5); stroke-width: 1.4; }
.h-band { fill: none; stroke: url(#hGold); stroke-width: 40; }
.h-band-edge { fill: none; stroke: rgba(46, 32, 8, 0.6); stroke-width: 1.2; }
.h-band-edge.out { stroke: rgba(255, 246, 222, 0.55); stroke-width: 1; }
.h-ticks line { stroke: rgba(52, 36, 9, 0.62); stroke-width: 1.3; stroke-linecap: round; }
.h-ticks line.l { stroke-width: 2.4; }
.h-nums text { font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: 0.02em; fill: rgba(52, 36, 9, 0.75); }
.h-pip { fill: #fff9ea; filter: drop-shadow(0 0 5px rgba(255, 242, 214, 0.95)); }
.h-arc { fill: none; stroke: url(#hLume); stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: 0 60; transition: stroke-dasharray 2.4s var(--ease); filter: drop-shadow(0 0 6px rgba(206, 188, 255, 0.9)); }
.h-bezel .h-sec { transform-box: view-box; transform-origin: 300px 300px; animation: h-spin 60s linear infinite; }
.h-bezel .h-sec circle { fill: #fff9ea; filter: drop-shadow(0 0 6px rgba(255, 236, 200, 1)); }
@keyframes h-spin { to { transform: rotate(360deg); } }
.h-sheen { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: conic-gradient(from var(--h-a, 0deg), rgba(255, 250, 235, 0) 0deg, rgba(255, 250, 235, 0) 18deg, rgba(255, 250, 235, 0.75) 38deg, rgba(255, 250, 235, 0) 62deg, rgba(255, 250, 235, 0) 360deg); -webkit-mask: radial-gradient(closest-side, transparent 86.1%, #000 86.6%, #000 99.4%, transparent 99.8%); mask: radial-gradient(closest-side, transparent 86.1%, #000 86.6%, #000 99.4%, transparent 99.8%); mix-blend-mode: soft-light; animation: h-halo 11s linear infinite; }
@property --h-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes h-halo { to { --h-a: 360deg; } }
.h-next { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 12px; margin: 22px 0 0; font-size: 14px; font-weight: 300; letter-spacing: 0.02em; color: var(--mist); text-align: center; opacity: 0; animation: h-fade 1.2s var(--ease) 1.3s forwards; }
.h-next b { font-weight: 500; color: var(--platinum); }
.h-next-in { font-variant-numeric: tabular-nums; }
.h-live { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--champagne); animation: h-pulse 2.4s infinite; }
@keyframes h-pulse { 0% { box-shadow: 0 0 0 0 rgba(217, 191, 142, 0.55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(217, 191, 142, 0); } }
/* Последние действия — одной строкой под часами */
.h-toasts { position: relative; height: 28px; margin: 12px auto 0; padding: 0; list-style: none; opacity: 0; animation: h-fade-o 1.2s var(--ease) 1.6s forwards; }
.h-toast { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; gap: 10px; font-size: 13.5px; font-weight: 300; color: var(--mist); white-space: nowrap; opacity: 0; transform: translateY(8px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); pointer-events: none; }
.h-toast.on { opacity: 1; transform: none; }
.h-toast.out { opacity: 0; transform: translateY(-8px); }
.h-toast i { display: none; }
.h-toast div { display: flex; gap: 8px; min-width: 0; }
.h-toast b { flex: none; font-weight: 500; color: var(--platinum); }
.h-toast span { overflow: hidden; text-overflow: ellipsis; }
.h-toast time { order: -1; flex: none; font-variant-numeric: tabular-nums; color: var(--champagne); }

/* ───────── Боли — бумага ───────── */
.home .h-pains { background: var(--bg); }
.h-pain-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 7vw, 110px); margin: 0; padding: 0; list-style: none; }
.h-pain-list li { padding: 34px 0 36px; border-top: 1px solid var(--line-2); }
.h-pain-list h3 { margin: 0 0 12px; font-family: var(--serif); font-size: clamp(25px, 2.4vw, 32px); font-weight: 500; line-height: 1.1; letter-spacing: -0.006em; text-wrap: balance; }
.h-pain-list p { margin: 0; font-size: 16px; font-weight: 300; color: var(--ink-2); }
.h-pain-list .fix { display: flex; gap: 12px; margin-top: 16px; font-size: 15.5px; font-weight: 400; line-height: 1.5; color: var(--accent-ink); }
.h-pain-list .fix svg { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--accent); }

/* ───────── Правила Марго — манифест ───────── */
.home .h-creed { background: var(--grain), radial-gradient(70% 90% at 85% 50%, rgba(68, 50, 140, 0.32), rgba(13, 11, 22, 0) 70%), var(--abyss); }
.h-creed-title { display: flex; align-items: center; gap: 16px; margin: 0 0 clamp(28px, 4vw, 48px); font-family: var(--sans); font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: 0.22em; text-transform: uppercase; color: var(--champagne); }
.h-creed-title::before { content: ""; flex: none; width: 44px; height: 1px; background: linear-gradient(90deg, rgba(217, 191, 142, 0), var(--champagne)); }
.h-creed-list { margin: 0; padding: 0; list-style: none; }
.h-creed-list li { padding: clamp(22px, 3vw, 38px) 0; border-top: 1px solid rgba(217, 191, 142, 0.18); font-family: var(--serif); font-size: clamp(28px, 3.4vw, 50px); font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; color: var(--platinum); text-wrap: balance; }
.h-creed-list li:nth-child(even) { padding-left: clamp(0px, 12vw, 180px); }
.h-creed-list li:last-child { border-bottom: 1px solid rgba(217, 191, 142, 0.18); }
.js .h-creed-list li { opacity: 0.1; filter: blur(8px); transform: translateY(18px); transition: opacity 1.2s var(--ease), filter 1.2s var(--ease), transform 1.2s var(--ease); }
.js .h-creed-list li.in { opacity: 1; filter: none; transform: none; }

/* ───────── Ночная смена ───────── */
.home .h-night { position: relative; padding: 0; color: var(--platinum); --p: 0; --dawn: 0; }
.h-night-track { position: relative; height: 420vh; }
.h-night-stage { position: sticky; top: 0; display: flex; flex-direction: column; justify-content: center; height: 100vh; height: 100svh; overflow: hidden; padding: 76px 0 72px; box-sizing: border-box; }
.h-sky { position: absolute; inset: 0; background: var(--grain), radial-gradient(90% 70% at 80% 0%, rgba(68, 50, 140, 0.55), rgba(13, 11, 22, 0) 62%), radial-gradient(70% 60% at 0% 100%, rgba(52, 30, 110, 0.45), rgba(13, 11, 22, 0) 60%), var(--abyss); }
.h-sky i { position: absolute; left: var(--x); top: var(--y); width: 2px; height: 2px; border-radius: 50%; background: #fff6e4; opacity: 0.7; animation: h-twinkle 4.2s ease-in-out infinite; animation-delay: var(--d); }
.h-sky i:nth-child(4n) { width: 3px; height: 3px; box-shadow: 0 0 6px rgba(255, 240, 210, 0.8); }
@keyframes h-twinkle { 50% { opacity: 0.1; } }
.h-sky::after { content: ""; position: absolute; inset: 0; background: var(--grain), linear-gradient(180deg, #efe6d6 0%, var(--ivory) 70%); opacity: var(--dawn); }
.h-night-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 110px); align-items: center; }
.h-clock { display: flex; margin: 0 0 22px -0.03em; font-family: var(--serif); font-size: clamp(96px, 15vw, 224px); font-weight: 300; line-height: 0.86; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; color: var(--champagne); transition: color 0.9s var(--ease); }
.h-clock .c { padding: 0 0.04em; opacity: 0.6; animation: h-blink 2s steps(1) infinite; }
@keyframes h-blink { 50% { opacity: 0.15; } }
.h-night-title, .h-night-lead { display: grid; }
.h-night-title > span, .h-night-lead > span { grid-area: 1 / 1; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.h-night-title { margin: 0 0 18px; font-family: var(--serif); font-size: clamp(34px, 3.8vw, 58px); font-weight: 400; line-height: 1.02; letter-spacing: -0.01em; color: var(--platinum); text-wrap: balance; transition: color 0.9s var(--ease); }
.h-night-lead { max-width: 30em; max-height: 9em; margin: 0; font-size: clamp(16px, 1.35vw, 18px); font-weight: 300; color: var(--mist); transition: color 0.9s var(--ease), max-height 0.6s var(--ease), opacity 0.6s; }
.h-night .mt { opacity: 0; transform: translateY(14px); }
.h-night.morning .nt { opacity: 0; transform: translateY(-14px); }
.h-night.morning .mt { opacity: 1; transform: none; }
.h-night.morning .h-clock { color: var(--gold-deep); }
.h-night.morning .h-night-title { color: var(--ink-d); }
.h-night.morning .h-night-lead { color: #4a4458; }

.h-log { position: relative; padding: 0 0 0 22px; border-left: 1px solid rgba(217, 191, 142, 0.28); transition: border-color 0.9s; }
.h-log-head { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; padding: 0 0 16px; border-bottom: 1px solid rgba(236, 232, 225, 0.12); font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--champagne); transition: color 0.9s, border-color 0.9s; }
.h-log-head img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px var(--abyss), 0 0 0 2.5px var(--champagne); }
.h-log-head .h-live { margin-left: auto; }
.h-log ol { display: grid; margin: 0; padding: 0; list-style: none; }
.h-log li { position: relative; display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 16px; padding: 15px 0; border-bottom: 1px solid rgba(236, 232, 225, 0.08); opacity: 0.14; transform: translateY(8px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), border-color 0.9s; }
.h-log li::before { content: ""; position: absolute; left: -23px; top: 16px; bottom: 16px; width: 2px; background: var(--champagne); opacity: 0; transition: opacity 0.5s; }
.h-log li.on { opacity: 1; transform: none; }
.h-log li.new::before { opacity: 1; }
.h-log time { padding-top: 1px; font-family: var(--serif); font-size: 21px; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; color: var(--champagne); transition: color 0.9s; }
.h-log b { display: block; font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--platinum); transition: color 0.9s; }
.h-log p { margin: 4px 0 0; font-size: 14px; font-weight: 300; line-height: 1.5; color: var(--mist); transition: color 0.9s; }
.h-log-note { margin: 14px 0 0; font-size: 12.5px; font-weight: 300; line-height: 1.5; color: var(--mist); transition: color 0.9s; }
.h-night.morning .h-log { border-left-color: rgba(148, 115, 58, 0.4); }
.h-night.morning .h-log-head { color: var(--gold-deep); border-bottom-color: #d8cfbe; }
.h-night.morning .h-log-head img { box-shadow: 0 0 0 1.5px var(--ivory), 0 0 0 2.5px var(--gold-deep); }
.h-night.morning .h-log li { border-bottom-color: #e2d9c9; }
.h-night.morning .h-log li::before { background: var(--gold-deep); }
.h-night.morning .h-log time { color: var(--gold-deep); }
.h-night.morning .h-log b { color: var(--ink-d); }
.h-night.morning .h-log p, .h-night.morning .h-log-note { color: #6b6478; }
.h-night-bar { position: absolute; left: 50%; bottom: clamp(16px, 4vh, 34px); display: flex; align-items: center; gap: 14px; width: min(520px, calc(100% - 36px)); transform: translateX(-50%); font-family: var(--serif); font-size: 15px; font-variant-numeric: lining-nums; color: var(--mist); transition: color 0.9s; }
.h-night-bar i { position: relative; flex: 1; height: 1px; overflow: hidden; background: rgba(236, 232, 225, 0.18); }
.h-night-bar b { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(217, 191, 142, 0.2), var(--champagne)); transform-origin: left; transform: scaleX(var(--p)); }
.h-night.morning .h-night-bar { color: #7c7588; }
.h-night.morning .h-night-bar i { background: #d8cfbe; }
.h-night.morning .h-night-bar b { background: linear-gradient(90deg, rgba(148, 115, 58, 0.2), var(--gold-deep)); }

/* ───────── Распорядок — бумага ───────── */
.home .h-rhythm { background: var(--bg); }
.h-rh { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.h-rh-col { padding: 30px 28px 6px 0; }
.h-rh-col + .h-rh-col { padding-left: 28px; border-left: 1px solid var(--line); }
.h-rh-col h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-family: var(--serif); font-size: 27px; font-weight: 500; line-height: 1.1; }
.h-rh-col h3 i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.h-rh-col.now h3 i { animation: h-pulse-d 2.4s infinite; }
@keyframes h-pulse-d { 0% { box-shadow: 0 0 0 0 rgba(148, 115, 58, 0.5); } 70%, 100% { box-shadow: 0 0 0 9px rgba(148, 115, 58, 0); } }
.h-rh-col ul { margin: 0; padding: 0; list-style: none; }
.h-rh-col li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; font-weight: 300; line-height: 1.5; color: var(--ink-2); }

/* ───────── Куда уходят деньги — выписка на бумаге ───────── */
.home .h-money { background: var(--bg); padding-top: clamp(24px, 4vw, 56px); }
.h-calc { --z: 33%; padding: clamp(24px, 4.5vw, 64px); border: 1px solid var(--line-2); border-radius: 3px; background: var(--grain), var(--surface); box-shadow: 0 60px 90px -70px rgba(27, 23, 38, 0.55), inset 0 0 0 6px var(--surface), inset 0 0 0 7px var(--line); }
.h-calc-top { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.h-calc-top label { font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.h-calc-top output { font-family: var(--serif); font-size: clamp(56px, 7vw, 100px); font-weight: 300; line-height: 0.95; letter-spacing: -0.015em; font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.h-range { position: relative; margin: 78px 0 74px; }
.h-range input { -webkit-appearance: none; appearance: none; position: relative; z-index: 2; display: block; width: 100%; height: 36px; margin: 0; background: transparent; cursor: pointer; }
.h-range input::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--loss) 0 var(--z), var(--gain) var(--z) 100%); }
.h-range input::-moz-range-track { height: 2px; background: linear-gradient(90deg, var(--loss) 0 var(--z), var(--gain) var(--z) 100%); }
.h-range input::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -11px; border-radius: 50%; border: 0; background: radial-gradient(circle at 35% 30%, #fbefd2, #c9a45c 55%, #8f6c33); box-shadow: 0 0 0 6px rgba(201, 164, 92, 0.18), 0 6px 14px rgba(27, 23, 38, 0.35); transition: box-shadow 0.25s; }
.h-range input::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; border: 0; background: radial-gradient(circle at 35% 30%, #fbefd2, #c9a45c 55%, #8f6c33); box-shadow: 0 0 0 6px rgba(201, 164, 92, 0.18), 0 6px 14px rgba(27, 23, 38, 0.35); }
.h-range input:active::-webkit-slider-thumb { box-shadow: 0 0 0 10px rgba(201, 164, 92, 0.22), 0 6px 14px rgba(27, 23, 38, 0.35); }
.h-marks { position: absolute; left: 12px; right: 12px; top: 0; bottom: 0; pointer-events: none; }
.h-marks span { position: absolute; top: 40px; font-size: 12px; font-weight: 400; line-height: 1.3; color: var(--muted); white-space: nowrap; }
.h-marks span b { display: block; font-family: var(--serif); font-size: 19px; font-weight: 500; font-variant-numeric: lining-nums; color: var(--ink); }
.h-marks span i { position: absolute; top: -12px; width: 1px; height: 9px; background: var(--muted); }
.h-marks .zero { transform: translateX(-100%); padding-right: 9px; text-align: right; }
.h-marks .zero i { right: 0; }
.h-marks .promo { padding-left: 9px; }
.h-marks .promo i { left: 0; }
.h-marks .rec { top: auto; bottom: 40px; transform: translateX(-50%); text-align: center; color: var(--accent); }
.h-marks .rec b { color: var(--accent-ink); }
.h-marks .rec i { top: auto; bottom: -12px; left: 50%; background: var(--accent); }
.h-bar { position: relative; display: flex; gap: 2px; height: 58px; overflow: hidden; border-radius: 2px; background: var(--bg-2); }
.h-bar span { display: block; flex: none; width: var(--w); min-width: 0; transition: width 0.8s var(--ease); }
.h-calc.ready .h-bar span { transition-duration: 0.18s; }
.js .h-calc:not(.in) .h-bar span { width: 0; }
.h-calc.in:not(.ready) .h-bar span:nth-child(2) { transition-delay: 0.14s; }
.h-calc.in:not(.ready) .h-bar span:nth-child(3) { transition-delay: 0.28s; }
.h-calc.in:not(.ready) .h-bar span:nth-child(4) { transition-delay: 0.42s; }
.h-calc.in:not(.ready) .h-bar span:nth-child(5) { transition-delay: 0.58s; }
.s-cost { background: #241f33; }
.s-pack { background: #4a4359; }
.s-log { background: #7f778c; }
.s-fee { background: #bdb3a4; }
.s-gain { background: linear-gradient(180deg, #2a9a6c, #1d7a54); }
.h-bar .s-loss { position: absolute; top: 0; right: 0; bottom: 0; background: repeating-linear-gradient(135deg, rgba(194, 59, 63, 0.92) 0 7px, rgba(222, 110, 112, 0.92) 7px 14px); box-shadow: -2px 0 0 var(--surface); }
.h-legend { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 20px 0 0; padding: 0; list-style: none; }
.h-legend li { display: grid; grid-template-columns: 9px minmax(0, 1fr); column-gap: 10px; font-size: 12.5px; font-weight: 400; line-height: 1.35; color: var(--muted); }
.h-legend i { grid-row: span 2; width: 9px; height: 9px; margin-top: 3px; border-radius: 1px; }
.h-legend b { grid-column: 2; font-family: var(--serif); font-size: 23px; font-weight: 500; line-height: 1.2; font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.h-legend .s-cost, .h-legend .s-pack, .h-legend .s-log, .h-legend .s-fee, .h-legend .s-gain { background: none; }
.h-legend .s-cost i { background: #241f33; }
.h-legend .s-pack i { background: #4a4359; }
.h-legend .s-log i { background: #7f778c; }
.h-legend .s-fee i { background: #bdb3a4; }
.h-legend .s-gain i { background: #1f8a5f; }
.h-legend .s-gain b { color: var(--gain); }
.h-legend .s-gain.neg i { background: var(--loss); }
.h-legend .s-gain.neg b { color: var(--loss); }
.h-verdict { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line-2); }
.h-verdict p { margin: 0; font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; line-height: 1.2; transition: color 0.3s; }
.h-verdict p.neg { color: var(--loss); }
.h-snap { padding: 14px 24px; border: 1px solid var(--accent); border-radius: 2px; background: transparent; color: var(--accent-ink); font: inherit; font-size: 14px; font-weight: 500; letter-spacing: 0.01em; cursor: pointer; transition: background 0.3s, color 0.3s; }
.h-snap:hover { background: var(--accent); color: #fff; }
.h-note { margin: 20px 0 0; font-size: 13px; font-weight: 300; line-height: 1.55; color: var(--muted); }
.h-formula { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 14px clamp(32px, 6vw, 96px); margin-top: clamp(56px, 7vw, 96px); }
.h-formula h3 { grid-row: span 3; margin: 0; font-family: var(--serif); font-size: clamp(30px, 3vw, 42px); font-weight: 400; line-height: 1.05; }
.h-formula p { margin: 0; font-size: 16px; font-weight: 300; color: var(--ink-2); }
.h-formula a { justify-self: start; color: var(--accent-ink); border-bottom: 1px solid var(--accent); }

/* ───────── Навыки — бархат ───────── */
.home .h-skills { background: var(--grain), radial-gradient(60% 50% at 100% 0%, rgba(68, 50, 140, 0.28), rgba(13, 11, 22, 0) 70%), var(--velvet); }
/* site76 (пункт 47 владельца): все возможности одним блоком — группа: название и мысль слева, навыки сеткой справа. */
.h-allfeats { display: grid; gap: clamp(36px, 4.5vw, 64px); }
.h-group { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 2.22fr); gap: 0 clamp(28px, 4.5vw, 72px); align-items: start; padding-top: clamp(26px, 3vw, 38px); border-top: 1px solid var(--line); }
.h-group-head { padding-top: 8px; }
.h-group-title { margin: 0 0 14px; font-family: inherit; font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--champagne); }
.h-panel-lead { max-width: 30ch; margin: 0 0 12px; font-family: var(--serif); font-size: clamp(24px, 2.3vw, 34px); font-weight: 400; line-height: 1.12; color: var(--ink); }
.h-group .h-feats { column-gap: clamp(24px, 4vw, 64px); }
.home .h-group .h-feats .feat { padding: 26px 0; }
.home .h-group .h-feats .feat:nth-child(-n + 2) { border-top: 0; padding-top: 8px; }
.home .h-group .h-feats .feat h4 { font-size: 24px; }
.home .h-group .h-feats .feat p { font-size: 15px; }
.h-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 7vw, 110px); }
.home .h-feats .feat { padding: 34px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; opacity: 1; transform: none; transition: none; }
.home .h-feats .feat:hover { transform: none; box-shadow: none; border-color: var(--line); }
.home .h-feats .feat .ic { display: block; width: auto; height: auto; margin: 0 0 18px; background: none; border-radius: 0; color: var(--champagne); }
.home .h-feats .feat .ic svg { width: 26px; height: 26px; stroke-width: 1.4; }
.home .h-feats .feat h4 { margin: 0 0 10px; font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1.08; letter-spacing: -0.005em; color: var(--ink); }
.home .h-feats .feat p { margin: 0; font-size: 16px; font-weight: 300; color: var(--ink-2); }
.home .h-feats .feat ul { margin: 16px 0 0; padding: 0; list-style: none; font-size: 15px; font-weight: 300; color: var(--muted); }
.home .h-feats .feat li { position: relative; padding: 5px 0 5px 22px; }
.home .h-feats .feat li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 6px; height: 6px; border: 0; background: var(--champagne); transform: rotate(45deg); }
.h-ai-note { display: flex; gap: 12px; align-items: flex-start; max-width: 860px; margin: 40px 0 0; font-size: 14px; font-weight: 300; line-height: 1.55; color: var(--muted); }
.h-ai-note svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--champagne); }

/* ───────── Менеджер или Марго — бумага ───────── */
.home .h-save { background: var(--bg); }
.h-save-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.h-ledger { border-top: 1px solid var(--ink); }
.h-ledger .r { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line-2); }
/* Длинные армянские слова не раздвигают строку шире экрана телефона. */
.h-ledger .r > div { min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.h-ledger .r b { display: block; font-size: 16.5px; font-weight: 500; }
.h-ledger .r small { display: block; font-size: 13.5px; font-weight: 300; color: var(--muted); }
.h-ledger .r > span { font-family: var(--serif); font-size: 24px; font-weight: 500; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.h-ledger .r.total { border-bottom: 0; border-top: 1px solid var(--ink); margin-top: -1px; }
.h-ledger .r.total b { font-family: var(--serif); font-size: 26px; font-weight: 500; }
.h-ledger .r.total > span { font-size: clamp(28px, 2.8vw, 38px); color: var(--loss); }
.h-save-margo { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: clamp(28px, 3.6vw, 48px); border-radius: 3px; background: var(--grain), radial-gradient(90% 70% at 100% 0%, rgba(68, 50, 140, 0.55), rgba(22, 18, 42, 0) 65%), var(--velvet); color: var(--platinum); box-shadow: 0 50px 90px -50px rgba(27, 23, 38, 0.7), inset 0 0 0 1px rgba(217, 191, 142, 0.28); }
.h-save-margo img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--velvet), 0 0 0 3px var(--champagne); }
.h-save-margo .big { margin: 26px 0 8px; font-family: var(--serif); font-size: clamp(54px, 6vw, 80px); font-weight: 300; line-height: 0.95; font-variant-numeric: lining-nums; color: var(--champagne); }
.h-save-margo p { margin: 0 0 20px; font-size: 15px; font-weight: 300; color: var(--mist); }
.h-save-margo ul { margin: 0 0 30px; padding: 0; list-style: none; }
.h-save-margo li { position: relative; padding: 10px 0 10px 22px; border-top: 1px solid rgba(236, 232, 225, 0.1); font-size: 15px; font-weight: 300; line-height: 1.5; color: #dad6e2; }
.h-save-margo li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 6px; height: 6px; background: var(--champagne); transform: rotate(45deg); }
.h-save-margo .h-btn { margin-top: auto; align-self: flex-start; }
.h-foot { margin: 18px 0 0; font-size: 13px; font-weight: 300; color: var(--muted); }

/* ───────── Как начать — ночь ───────── */
.home .h-how { background: var(--grain), radial-gradient(50% 60% at 0% 0%, rgba(68, 50, 140, 0.3), rgba(13, 11, 22, 0) 70%), var(--abyss); }
.h-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin: 0; padding: 0; list-style: none; }
.h-steps li { position: relative; padding-top: 30px; border-top: 1px solid var(--line-2); }
.h-steps li::before { content: ""; position: absolute; left: 0; top: -1px; width: 56px; height: 1px; background: var(--accent); }
.h-steps .n { display: block; margin-bottom: 18px; font-family: var(--serif); font-size: 64px; font-weight: 300; line-height: 0.9; font-variant-numeric: lining-nums; color: var(--accent); }
.h-steps h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.1; }
.h-steps p { margin: 0; font-size: 15.5px; font-weight: 300; color: var(--ink-2); }
.h-steps .time { display: inline-block; margin-top: 16px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.h-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: clamp(56px, 7vw, 96px); }
.h-split > div { padding: clamp(26px, 3.4vw, 44px); border: 1px solid var(--line); border-radius: 3px; }
.h-split > div.us { border-color: rgba(217, 191, 142, 0.35); background: linear-gradient(160deg, rgba(217, 191, 142, 0.07), rgba(217, 191, 142, 0) 60%); }
.h-split h3 { margin: 0 0 16px; font-family: var(--serif); font-size: 30px; font-weight: 500; }
.h-split ul { margin: 0; padding: 0; list-style: none; }
.h-split li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 15.5px; font-weight: 300; line-height: 1.5; color: var(--ink-2); }

/* ───────── Тарифы — ночь ───────── */
.home .h-pricing { background: var(--grain), radial-gradient(60% 40% at 50% 0%, rgba(68, 50, 140, 0.32), rgba(13, 11, 22, 0) 70%), var(--abyss); }
.home .tiers { gap: 16px; margin-bottom: 18px; }
.home .tier { padding: 34px 26px 26px; border: 1px solid var(--line); border-radius: 3px; background: linear-gradient(180deg, rgba(236, 232, 225, 0.035), rgba(236, 232, 225, 0)); opacity: 1; transform: none; }
.home .tier h3 { font-family: var(--serif); font-size: 32px; font-weight: 500; letter-spacing: 0; }
.home .tier-for { color: var(--muted); font-weight: 300; }
.home .tier-price b { font-family: var(--serif); font-size: 44px; font-weight: 400; letter-spacing: -0.01em; font-variant-numeric: lining-nums; color: var(--ink); }
.home .tier-price span { color: var(--muted); font-weight: 300; }
.home .tier .btn { min-height: 48px; border-radius: 2px; font-size: 14px; font-weight: 500; letter-spacing: 0.01em; }
.home .tier .btn-ghost { background: transparent; color: var(--champagne); border-color: rgba(217, 191, 142, 0.5); }
.home .tier .btn-ghost:hover { background: var(--champagne); color: #17121f; border-color: var(--champagne); }
.home .tier-feats li { border-bottom-color: var(--line); color: var(--ink-2); font-weight: 300; }
.home .tier-feats li.off { color: #5f5a72; }
.home .tier-feats li.off::before { color: #5f5a72; }
.home .tier-feats li.on::before { border-color: var(--champagne); }
.home .tier-lim { border-top-color: var(--line); color: var(--ink-2); font-weight: 500; }
.home .tier.hot { border-color: transparent; background: var(--grain), radial-gradient(120% 70% at 50% 0%, rgba(217, 191, 142, 0.14), rgba(22, 18, 42, 0) 60%), var(--velvet); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.8); }
.home .tier.hot::before { content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; background: conic-gradient(from var(--h-a, 0deg), rgba(217, 191, 142, 0.95), rgba(217, 191, 142, 0.15) 25%, rgba(255, 246, 222, 0.9) 50%, rgba(217, 191, 142, 0.15) 75%, rgba(217, 191, 142, 0.95)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: h-halo 9s linear infinite; pointer-events: none; }
.home .tier.hot .btn-accent { color: #17121f; background: linear-gradient(120deg, #f4e6c3 0%, #d6b46f 35%, #a27f42 62%, #ead39f 100%); border: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.home .tier-badge { top: -11px; left: 26px; padding: 4px 12px; border-radius: 2px; background: var(--champagne); color: #17121f; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.home .calc { border: 1px solid var(--line); border-radius: 3px; background: linear-gradient(180deg, rgba(236, 232, 225, 0.03), rgba(236, 232, 225, 0)); opacity: 1; transform: none; }
.home .calc-title { font-family: var(--serif); font-size: 30px; font-weight: 500; }
.home .tier-pick button { border-color: var(--line-2); border-radius: 2px; background: transparent; color: var(--ink); }
.home .tier-pick button span { color: var(--muted); }
.home .tier-pick button[aria-checked="true"] { border-color: var(--champagne); background: rgba(217, 191, 142, 0.1); color: var(--champagne); }
.home .stepper { border-color: var(--line-2); border-radius: 2px; }
.home .stepper button { background: transparent; color: var(--ink); }
.home .calc-total .v { font-family: var(--serif); font-size: 56px; font-weight: 400; letter-spacing: -0.01em; font-variant-numeric: lining-nums; color: var(--champagne); }
.home .calc .btn-accent { min-height: 56px; border: 0; border-radius: 2px; color: #17121f; background: linear-gradient(120deg, #f4e6c3 0%, #d6b46f 35%, #a27f42 62%, #ead39f 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5); font-size: 15px; font-weight: 500; letter-spacing: 0.01em; }
.home .calc-pay a { border-color: var(--line); border-radius: 2px; background: transparent; color: var(--ink-2); font-weight: 400; }
.home .calc-pay svg { color: var(--champagne); }
.home .incl { border: 1px solid rgba(217, 191, 142, 0.3); border-radius: 3px; background: linear-gradient(160deg, rgba(217, 191, 142, 0.08), rgba(217, 191, 142, 0) 55%); opacity: 1; transform: none; }
.home .incl h3 { font-family: var(--serif); font-size: 30px; font-weight: 500; }
.home .incl li { color: var(--ink-2); font-weight: 300; border-bottom-color: var(--line); }
.home .incl li::before { border-color: var(--champagne); }
.home .incl .note { color: var(--muted); font-weight: 300; }
.home .incl .pay-link { color: var(--champagne); font-weight: 500; }

/* ───────── Оплата — бумага ───────── */
.home .h-pay { background: var(--bg); }
.h-steps-pay .n { font-size: 52px; }
.h-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line-2); }
.h-facts > div { padding: 30px 0 0; }
.h-facts .ic { display: block; margin-bottom: 16px; color: var(--accent); }
.h-facts .ic svg { width: 26px; height: 26px; stroke-width: 1.4; }
.h-facts h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 26px; font-weight: 500; }
.h-facts p { margin: 0; font-size: 15px; font-weight: 300; color: var(--ink-2); }

/* ───────── Безопасность — ночь ───────── */
.home .h-safe { background: var(--grain), radial-gradient(60% 60% at 100% 100%, rgba(68, 50, 140, 0.3), rgba(13, 11, 22, 0) 70%), var(--abyss); }
.h-safe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.h-safe-grid > div { padding: 34px 32px 38px 0; border-bottom: 1px solid var(--line); }
.h-safe-grid > div:not(:nth-child(3n + 1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.h-safe-grid svg { width: 26px; height: 26px; margin-bottom: 18px; color: var(--champagne); stroke-width: 1.4; }
.h-safe-grid h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.1; }
.h-safe-grid p { margin: 0; font-size: 15px; font-weight: 300; line-height: 1.55; color: var(--muted); }

/* ───────── Гайды и вопросы — бумага ───────── */
.home .h-guides { background: var(--bg); }
.h-guide-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); border-top: 1px solid var(--line-2); }
.h-guide-list a { display: block; padding: 28px 0 32px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.h-guide-list .k { display: block; margin-bottom: 12px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.h-guide-list h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 25px; font-weight: 500; line-height: 1.12; transition: color 0.3s; }
.h-guide-list p { margin: 0; font-size: 15px; font-weight: 300; color: var(--ink-2); }
.h-guide-list a:hover h3 { color: var(--accent); }
.home .h-faq { background: var(--bg); padding-top: 0; }
.h-faq-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(24px, 6vw, 96px); align-items: start; padding-top: clamp(80px, 9vw, 120px); border-top: 1px solid var(--line-2); }
.h-faq-grid .h-head { position: sticky; top: 110px; }
.home .faq { max-width: none; margin: 0; border-top: 1px solid var(--line-2); }
.home .faq details { padding: 0; border-bottom: 1px solid var(--line); }
.home .faq summary { padding: 24px 52px 24px 0; font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.2; letter-spacing: 0; }
.home .faq summary::after { right: 10px; top: 32px; width: 9px; height: 9px; border-width: 0 1.2px 1.2px 0; border-color: var(--accent); transition: transform 0.4s var(--ease); }
.home .faq details[open] summary::after { top: 36px; }
.home .faq details p { margin: 0 0 24px; padding-right: 52px; font-size: 16px; font-weight: 300; color: var(--ink-2); }
.home .faq details[open] p { animation: h-fade 0.5s var(--ease); }

/* ───────── Финал — ночь ───────── */
.home .h-final { position: relative; overflow: hidden; text-align: center; background: var(--grain), radial-gradient(55% 60% at 50% 30%, rgba(68, 50, 140, 0.4), rgba(13, 11, 22, 0) 70%), var(--abyss); }
.h-final-ring { position: relative; width: 156px; height: 156px; margin: 0 auto; padding: 8px; border-radius: 50%; background: conic-gradient(from var(--h-a, 0deg), #f4e6c3, #a27f42 25%, #ead39f 50%, #8f6c33 75%, #f4e6c3); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 0 80px rgba(106, 75, 255, 0.25); animation: h-halo 14s linear infinite; }
.h-final-ring img { display: block; width: 140px; height: 140px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--abyss); }
.h-final h2 { max-width: 15ch; margin: 40px auto 20px; font-family: var(--serif); font-size: clamp(36px, 4.4vw, 64px); font-weight: 400; line-height: 0.98; letter-spacing: -0.012em; text-wrap: balance; }
.h-final p { max-width: 44ch; margin: 0 auto 40px; font-size: clamp(17px, 1.45vw, 19px); font-weight: 300; color: var(--mist); }

/* Подвал главной — ночь */
.home footer { background: var(--abyss); border-top: 1px solid rgba(217, 191, 142, 0.14); color: var(--muted); }
.home footer .brand { gap: 12px; font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--champagne); }
.home footer h4 { color: var(--ink); font-weight: 500; letter-spacing: 0.04em; }
.home footer a { color: var(--muted); }
.home footer a:hover { color: var(--champagne); }

/* ───────── Экраны поменьше ───────── */
@media (max-width: 1100px) {
  .h-rh { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-rh-col:nth-child(3) { padding-left: 0; border-left: 0; }
  .h-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .h-guide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-legend { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .home .h-hero { min-height: 0; }
  .h-hero-grid { grid-template-columns: 1fr; }
  .h-margo { order: -1; justify-self: center; width: min(72%, 340px); margin-bottom: 0; }
  .h-next { margin-top: 16px; }
  .h-toasts { margin-top: 8px; }
  .h-over { margin-bottom: 20px; }
  .h-night-grid { grid-template-columns: 1fr; gap: 18px; align-content: center; }
  .h-night-stage { justify-content: flex-start; padding: 80px 0 40px; }
  .h-clock { margin-bottom: 8px; font-size: clamp(76px, 22vw, 130px); }
  .h-night-title { margin-bottom: 8px; font-size: clamp(30px, 8vw, 42px); }
  .h-night-lead { font-size: 15px; }
  .h-log { padding-left: 16px; }
  .h-log li { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 11px 0; }
  .h-log li::before { left: -17px; }
  .h-log time { font-size: 18px; }
  .js .h-log li:not(.on) { display: none; }
  .js .h-log li:not(.new) p { display: none; }
  .h-log-note { font-size: 11.5px; }
  .h-night-bar { display: none; }
  .h-night.deep .h-night-lead { max-height: 0; opacity: 0; }
  /* minmax(0, 1fr): колонка не шире экрана, даже если в ней длинное слово (армянский) — текст переносится. */
  .h-pain-list, .h-feats, .h-split, .h-save-grid, .h-formula, .h-faq-grid { grid-template-columns: minmax(0, 1fr); }
  .h-group { grid-template-columns: minmax(0, 1fr); }
  .home .h-group .h-feats .feat:nth-child(2) { border-top: 1px solid var(--line); padding-top: 26px; }
  .h-formula h3 { grid-row: auto; }
  .h-faq-grid .h-head { position: static; }
  .h-safe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-safe-grid > div:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .h-safe-grid > div:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
  .h-facts { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body.home { font-size: 16px; }
  .home main > section { padding: 84px 0; }
  .home .h-hero { padding: 22px 0 64px; }
  .h-over { font-size: 11px; letter-spacing: 0.18em; gap: 12px; }
  .h-over::before { width: 28px; }
  .h-title { margin-bottom: 22px; font-size: clamp(36px, 10.4vw, 48px); }
  .h-lead { margin-bottom: 30px; font-size: 16.5px; }
  .h-cta { gap: 8px 22px; }
  .h-cta .h-btn { flex: 1 1 100%; }
  .h-trust { gap: 8px 18px; margin-top: 30px; font-size: 12.5px; }
  .h-toast { font-size: 12.5px; }
  .h-toast span { display: none; }
  .h-rh { grid-template-columns: 1fr; }
  .h-rh-col, .h-rh-col + .h-rh-col { padding: 24px 0 4px; border-left: 0; }
  .h-steps { grid-template-columns: 1fr; }
  .h-guide-list { grid-template-columns: 1fr; }
  .h-safe-grid { grid-template-columns: 1fr; }
  .h-safe-grid > div, .h-safe-grid > div:nth-child(2n) { padding: 26px 0; border-left: 0; }
  .h-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-range { margin: 70px 0 70px; }
  .h-marks span { font-size: 10.5px; }
  .h-marks span b { font-size: 15px; }
  .h-bar { height: 48px; }
  .h-verdict .h-snap { width: 100%; }
  .home .faq summary { font-size: 21px; }
}
@media (max-height: 700px) and (max-width: 900px) {
  .h-night-lead { display: none; }
}

/* Меньше движения: всё сразу на месте, ночь — без прокрутки */
@media (prefers-reduced-motion: reduce) {
  .h-over, .h-title .w > span, .h-lead, .h-cta, .h-trust, .h-face, .h-crystal, .h-bezel, .h-next, .h-toasts { animation: none; opacity: 1; filter: none; transform: none; }
  .h-bezel .h-sec, .h-sheen, .home .tier.hot::before, .h-final-ring, .h-live, .h-rh-col.now h3 i, .h-sky i, .h-clock .c { animation: none; }
  .h-night-track { height: auto; }
  .js .h-creed-list li { opacity: 1; filter: none; transform: none; transition: none; }
  .h-night-stage { position: relative; height: auto; min-height: 100vh; }
  .h-log li { opacity: 1; transform: none; }
  .h-night-bar { display: none; }
  .js .h-calc:not(.in) .h-bar span { width: var(--w); }
  .h-bar span, .h-arc { transition: none; }
}

/* 28.10: demo and explanation precede the portrait on narrow screens. */
@media (max-width: 640px) {
  .h-hero-grid .h-copy { order: 0; }
  .h-hero-grid .h-margo { order: 1; }
}
