/* ============================================================
   NUMERIORA — роскошный нумерологический дашборд
   Тёмная люкс-тема: глубокий фиолет, золото, серифная классика
   (v55)
   ============================================================ */

/* ---------- Шрифты ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/CormorantGaramond-normal-300-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/CormorantGaramond-normal-300-latin.woff2?v=2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/CormorantGaramond-normal-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/CormorantGaramond-normal-400-latin.woff2?v=2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/CormorantGaramond-normal-500-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/CormorantGaramond-normal-500-latin.woff2?v=2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/CormorantGaramond-normal-600-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/CormorantGaramond-normal-600-latin.woff2?v=2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/CormorantGaramond-normal-700-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/CormorantGaramond-normal-700-latin.woff2?v=2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/CormorantGaramond-italic-500-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/CormorantGaramond-normal-700-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/CormorantGaramond-normal-700-latin.woff2?v=2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/CormorantGaramond-italic-500-latin.woff2?v=2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/Cinzel-normal-500-latin.woff2?v=2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/PlayfairDisplay-normal-700-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/PlayfairDisplay-normal-700-latin.woff2?v=2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/Manrope-normal-300-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/PlayfairDisplay-normal-700-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/PlayfairDisplay-normal-700-latin.woff2?v=2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/Manrope-normal-300-latin.woff2?v=2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/PlayfairDisplay-normal-700-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/PlayfairDisplay-normal-700-latin.woff2?v=2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Manrope-normal-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/PlayfairDisplay-normal-700-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/PlayfairDisplay-normal-700-latin.woff2?v=2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Manrope-normal-400-latin.woff2?v=2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/PlayfairDisplay-normal-700-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/PlayfairDisplay-normal-700-latin.woff2?v=2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/Manrope-normal-500-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/PlayfairDisplay-normal-700-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/PlayfairDisplay-normal-700-latin.woff2?v=2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/Manrope-normal-500-latin.woff2?v=2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/PlayfairDisplay-normal-700-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/PlayfairDisplay-normal-700-latin.woff2?v=2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/Manrope-normal-600-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/PlayfairDisplay-normal-700-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/PlayfairDisplay-normal-700-latin.woff2?v=2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/Manrope-normal-600-latin.woff2?v=2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токены ---------- */
:root {
  --bg: #080717;
  --bg-2: #0d0a1e;
  --sidebar-bg: linear-gradient(180deg, #1c1433 0%, #151027 34%, #0e0a1d 62%, #0a0716 100%);
  --panel-bg: linear-gradient(160deg, rgba(44, 27, 78, .42) 0%, rgba(26, 17, 49, .66) 55%, rgba(17, 12, 33, .8) 100%);
  --panel-solid: #140f28;
  --inset-bg: rgba(10, 7, 22, .58);
  --border: rgba(217, 183, 121, .22);
  --border-strong: rgba(217, 183, 121, .4);
  --gold: #e2bd7c;
  --gold-bright: #f5d89a;
  --gold-deep: #b98a3e;
  --gold-soft: rgba(226, 189, 124, .12);
  --text: #f2ede4;
  --muted: #bfb2d6;
  --faint: #968db0;
  --violet: #b98ce0;
  --good: #7fcfa4;
  --hard: #e08a84;
  --neutral: #b3a4e0;
  --purple: #c069e8;
  --gray-bright: #cfccda;
  --blue-bright: #6cc4f5;
  --serif: "Cormorant Garamond", Georgia, serif;
  --logo-font: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 44px rgba(0, 0, 0, .42);
}

/* ---------- База ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }
html { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* звёздная пыль на фоне */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(245, 216, 154, .5), transparent 100%),
    radial-gradient(1px 1px at 28% 62%, rgba(245, 216, 154, .32), transparent 100%),
    radial-gradient(1.6px 1.6px at 44% 12%, rgba(185, 140, 224, .38), transparent 100%),
    radial-gradient(1px 1px at 61% 78%, rgba(245, 216, 154, .3), transparent 100%),
    radial-gradient(1.3px 1.3px at 76% 34%, rgba(245, 216, 154, .4), transparent 100%),
    radial-gradient(1px 1px at 88% 66%, rgba(185, 140, 224, .34), transparent 100%),
    radial-gradient(1.4px 1.4px at 8% 84%, rgba(245, 216, 154, .3), transparent 100%),
    radial-gradient(1px 1px at 52% 44%, rgba(245, 216, 154, .26), transparent 100%),
    radial-gradient(1.2px 1.2px at 94% 12%, rgba(245, 216, 154, .36), transparent 100%),
    radial-gradient(1px 1px at 36% 90%, rgba(185, 140, 224, .3), transparent 100%);
  pointer-events: none;
}
/* мягкие сияния по углам */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(140, 106, 255, .07), transparent 65%),
    radial-gradient(760px 480px at 96% 108%, rgba(217, 183, 121, .05), transparent 60%);
  pointer-events: none;
}

h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
a { color: inherit; text-decoration: none; }
.sparkle { width: 14px; height: 14px; color: var(--gold); flex: 0 0 auto; }

code {
  font-family: var(--mono);
  font-size: .92em;
  color: var(--muted);
}

/* ---------- Каркас ---------- */
.app { display: flex; min-height: 100vh; }

.main {
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

.content {
  width: min(1445px, 100%);
  margin: 0 auto;
  padding: 293px 20px 64px;
  display: flex;
  flex-direction: column;
  gap: 21px;
  position: relative;
  z-index: 1;
}

/* ---------- Сайдбар ---------- */
.sidebar {
  width: 190px;
  flex: 0 0 190px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--sidebar-bg);
  border-right: 1px solid rgba(217, 183, 121, .16);
  z-index: 30;
}
.sidebar::after { /* светящаяся золотая нить */
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg,
    rgba(245, 216, 154, .62) 0%,
    rgba(226, 189, 124, .32) 32%,
    rgba(226, 189, 124, .2) 100%);
  box-shadow: 0 0 8px rgba(226, 189, 124, .28);
  pointer-events: none;
}
.sidebar__emblem {
  display: block;
  padding: 16px 4px 6px 16px;
  line-height: 0;
}
.sidebar__emblem img {
  width: 158px;
  height: auto;
}
.sidenav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 14px 0 26px;
}
.sidenav__item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px 9px 26px;
  border-radius: 13px;
  font-size: 12.5px;
  line-height: 1.35;
  color: #cfc4e2;
  transition: color .15s ease, background .15s ease;
  position: relative;
}
.sidenav__icon {
  width: 21px;
  height: 21px;
  color: rgba(226, 189, 124, .78);
  flex: 0 0 21px;
}
.sidenav__item:hover { color: var(--text); background: rgba(185, 140, 224, .08); }
.sidenav__item--active {
  color: #fff;
  font-size: 12.5px;
  background:
    linear-gradient(90deg, rgba(38, 26, 66, .72), rgba(30, 21, 52, .5) 70%, rgba(24, 17, 42, .4));
  border: 1px solid rgba(226, 189, 124, .5);
  border-left: none;
  border-radius: 0 13px 13px 0;
  margin-left: -26px;
  padding-left: 29px;
  box-shadow:
    inset 0 0 18px rgba(185, 140, 224, .1),
    0 0 16px rgba(147, 100, 205, .16);
}
.sidenav__item--active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16%;
  bottom: 16%;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f6dfa4, #c89a4e);
  box-shadow: 0 0 8px rgba(246, 223, 164, .55);
}
.sidebar__bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 10px;
}
.sidebar__quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 18.5px;
  line-height: 1.35;
  text-align: center;
  color: #ecdcb8;
  text-shadow: 0 0 14px rgba(226, 189, 124, .28);
}
.sidebar__sparkle {
  width: 14px;
  height: 14px;
  color: var(--gold-bright);
  margin: 11px 0 5px;
  filter: drop-shadow(0 0 7px rgba(245, 216, 154, .65));
}
.sidebar__lotus {
  width: 172px;
  height: auto;
  margin-top: -8px;
}

/* ---------- Топбар ---------- */
.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 22px 26px 12px 0px;
  width: min(1445px, 100%);
  margin: 0 auto;
}
.topbar__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--logo-font);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: .3em;
  margin-right: -0.3em;
  color: #efe0bd;
  text-shadow: 0 0 16px rgba(226, 189, 124, .3);
  white-space: nowrap;
}
.topbar__brand .sparkle { width: 9px; height: 9px; color: var(--gold-bright); }
.topbar__menu {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 auto 0 94px;
  font-size: 13.5px;
  color: #ded5ec;
  white-space: nowrap;
}
.topbar__menu a { transition: color .15s ease; }
.topbar__menu a:hover { color: var(--gold-bright); }
.topbar__menu .sparkle { width: 9px; height: 9px; opacity: .8; }
.topbar__actions { display: flex; align-items: center; gap: 10px; }
.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(217, 183, 121, .42);
  background: rgba(20, 14, 38, .35);
  color: #e9e2f2;
  font-size: 13px;
  white-space: nowrap;
  transition: all .15s ease;
}
.account-btn:hover {
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(226, 189, 124, .22);
}
.account-btn svg:first-child { width: 16px; height: 16px; color: var(--gold); }
.account-btn .sparkle { width: 10px; height: 10px; }

/* ---------- Hero ---------- */
.hero-art {
  position: absolute;
  top: 0;
  right: 0;
  width: min(970px, 68vw);
  height: auto;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  /* v50: у hero-картинки (JPEG без альфы) свой запечённый космос — без
     blend был виден прямоугольный шов по верх/лево/прав кромкам (низ
     давно растворён маской). screen делает тёмный фон картинки аддитивным:
     шов исчезает, кот/буквы/звёзды остаются. */
  mix-blend-mode: screen;
}
.hero-art > picture img {
  display: block; width: 100%; height: auto;
  /* нижний край уходит в затемнение: v45 — растворение сжато ещё вдвое
     (12% высоты, наклон ~4x от исходного); ноль на самой кромке сохранён —
     PNG снизу полностью непрозрачный, без маски-нуля был бы виден жёсткий срез */
  -webkit-mask-image: linear-gradient(180deg, #000 88%, rgba(0,0,0,.5) 94%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 88%, rgba(0,0,0,.5) 94%, transparent 100%);
}
/* v68 (2026-11-28, запрос заказчика): строка-дисклеймер мелким золотым
   шрифтом внизу шапки с кошкой. Живёт СОСЕДОМ с .hero-art, а не внутри:
   у .hero-art mix-blend-mode: screen — внутри него тени текста гаснут
   (screen «съедает» тёмное). На базовом десктопе (>1445px) строка
   прижата к правому нижнему углу картинки — заголовок занимает центр
   низа; на <=1445px — по центру всей ширины, в зоне растворения
   картинки (низ картинки = те же формулы, что у .content:
   min(150vw,72vh) и 72vh), ниже заголовка (<=960px) и выше панели
   формы — не мешает тексту на всех устройствах. */
/* v69 (2026-11-28, запрос заказчика): приветственная строка — отдельной
   строкой, чуть крупнее и жирнее остального текста; весь блок поднят выше,
   внахлёст на картинку (перенос на ~28px вверх во всех брейкпоинтах). */
.hero-disclaimer {
  position: absolute;
  z-index: 2;
  top: 273px;
  right: 20px;
  width: 430px;
  margin: 0;
  padding: 6px 14px;
  text-align: center;
  font-size: 11px;
  line-height: 1.4;
  color: #e9cf9a;
  /* мягкая виньетка под строками (не панель: края полностью прозрачны) —
     мелкий текст читается и поверх пёстрых роз, и поверх меха кота */
  background: radial-gradient(120% 135% at 50% 50%, rgba(6, 3, 16, .74) 0%, rgba(6, 3, 16, .52) 55%, rgba(6, 3, 16, 0) 80%);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 0 10px rgba(0, 0, 0, .45);
  pointer-events: none;
  user-select: none;
}
.hero-disclaimer__hello {
  display: block;
  font-size: 1.2em;
  font-weight: 600;
  letter-spacing: .015em;
  margin-bottom: 3px;
}
/* глянцевый заголовок: нижней строкой ложится на шар в лапах кота */
.hero-title {
  position: absolute;
  z-index: 2;
  left: 33%;
  bottom: 0%;
  width: 36%;
  margin: 0;
  transform: translateX(-50%);
  pointer-events: none;
}
/* тёмно-фиолетовое плотное пульсирующее свечение за заголовком */
.hero-title::before {
  content: "";
  position: absolute;
  inset: -9.6% -7.2% -12.8% -7.2%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(33, 11, 74, .69) 0%, rgba(22, 7, 52, .67) 42%, rgba(13, 4, 34, .56) 66%, rgba(8, 3, 22, .32) 84%, transparent 100%);
  filter: blur(7px);
  z-index: -1;
  animation: titleGlowPulse 2.4s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes titleGlowPulse {
  0%, 100% { transform: scale(.94); opacity: .85; }
  50% { transform: scale(1.07); opacity: 1; }
}
.hero-title img {
  display: block;
  width: 100%;
  height: auto;
  /* v56 (оптимизация): пульс тройного drop-shadow (перерисовка фильтра
     каждый кадр) заменён на статичную ауру + дыхание opacity —
     вид практически тот же, нагрузка несравнимо ниже */
  filter: drop-shadow(0 0 15px rgba(26, 9, 60, .62)) drop-shadow(0 0 38px rgba(18, 6, 44, .49)) drop-shadow(0 7px 20px rgba(10, 3, 26, .44));
  animation: titleImgBreath 2.4s ease-in-out infinite;
  will-change: opacity;
}
/* плотная тёмно-фиолетовая аура прямо вокруг букв, гасит светлый ореол картинки */
@keyframes titleImgBreath {
  0%, 100% { opacity: .93; }
  50% { opacity: 1; }
}


/* светящиеся частицы в шапке — такие же, как в окнах судьбы */
.hero-art__motes {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.hero-art__motes i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff8e2 0%, rgba(255, 226, 150, .9) 26%, rgba(255, 226, 150, .32) 55%, transparent 76%);
  opacity: 0;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  will-change: transform, opacity;
}
.hero-art__motes i:nth-child(2n) {
  background: radial-gradient(circle, #f6e8ff 0%, rgba(206, 164, 255, .9) 26%, rgba(206, 164, 255, .32) 55%, transparent 76%);
}
.hero-art__motes i:nth-child(1) { left: 39%; bottom: 2%; width: 4px; height: 4px; animation-name: heroMote2; animation-duration: 29s; animation-delay: -1s; }
.hero-art__motes i:nth-child(2) { left: 76%; bottom: 4%; width: 6px; height: 6px; animation-name: heroMote3; animation-duration: 34s; animation-delay: -2s; }
.hero-art__motes i:nth-child(3) { left: 17%; bottom: 6%; width: 4px; height: 4px; animation-name: heroMote4; animation-duration: 39s; animation-delay: -3s; }
.hero-art__motes i:nth-child(4) { left: 54%; bottom: 8%; width: 5px; height: 5px; animation-name: heroMote5; animation-duration: 25s; animation-delay: -5s; }
.hero-art__motes i:nth-child(5) { left: 91%; bottom: 10%; width: 5px; height: 5px; animation-name: heroMote6; animation-duration: 30s; animation-delay: -6s; }
.hero-art__motes i:nth-child(6) { left: 32%; bottom: 12%; width: 4px; height: 4px; animation-name: heroMote7; animation-duration: 35s; animation-delay: -7s; }
.hero-art__motes i:nth-child(7) { left: 69%; bottom: 14%; width: 6px; height: 6px; animation-name: heroMote8; animation-duration: 40s; animation-delay: -9s; }
.hero-art__motes i:nth-child(8) { left: 10%; bottom: 16%; width: 5px; height: 5px; animation-name: heroMote1; animation-duration: 26s; animation-delay: -10s; }
.hero-art__motes i:nth-child(9) { left: 47%; bottom: 18%; width: 4px; height: 4px; animation-name: heroMote2; animation-duration: 31s; animation-delay: -11s; }
.hero-art__motes i:nth-child(10) { left: 84%; bottom: 20%; width: 6px; height: 6px; animation-name: heroMote3; animation-duration: 36s; animation-delay: -13s; }
.hero-art__motes i:nth-child(11) { left: 25%; bottom: 22%; width: 4px; height: 4px; animation-name: heroMote4; animation-duration: 41s; animation-delay: -14s; }
.hero-art__motes i:nth-child(12) { left: 62%; bottom: 24%; width: 5px; height: 5px; animation-name: heroMote5; animation-duration: 27s; animation-delay: -15s; }
.hero-art__motes i:nth-child(13) { left: 3%; bottom: 26%; width: 5px; height: 5px; animation-name: heroMote6; animation-duration: 32s; animation-delay: -17s; }
.hero-art__motes i:nth-child(14) { left: 40%; bottom: 28%; width: 4px; height: 4px; animation-name: heroMote7; animation-duration: 37s; animation-delay: -18s; }
.hero-art__motes i:nth-child(15) { left: 77%; bottom: 30%; width: 6px; height: 6px; animation-name: heroMote8; animation-duration: 42s; animation-delay: -19s; }
.hero-art__motes i:nth-child(16) { left: 18%; bottom: 32%; width: 5px; height: 5px; animation-name: heroMote1; animation-duration: 28s; animation-delay: -20s; }
.hero-art__motes i:nth-child(17) { left: 55%; bottom: 34%; width: 4px; height: 4px; animation-name: heroMote2; animation-duration: 33s; animation-delay: -22s; }
.hero-art__motes i:nth-child(18) { left: 92%; bottom: 36%; width: 6px; height: 6px; animation-name: heroMote11; animation-duration: 38s; animation-delay: -23s; }
.hero-art__motes i:nth-child(19) { left: 33%; bottom: 38%; width: 4px; height: 4px; animation-name: heroMote12; animation-duration: 24s; animation-delay: -24s; }
.hero-art__motes i:nth-child(20) { left: 70%; bottom: 40%; width: 5px; height: 5px; animation-name: heroMote11; animation-duration: 29s; animation-delay: -26s; }
.hero-art__motes i:nth-child(21) { left: 11%; bottom: 42%; width: 5px; height: 5px; animation-name: heroMote12; animation-duration: 34s; animation-delay: -27s; }
.hero-art__motes i:nth-child(22) { left: 48%; bottom: 44%; width: 4px; height: 4px; animation-name: heroMote11; animation-duration: 39s; animation-delay: -28s; }
.hero-art__motes i:nth-child(23) { left: 85%; bottom: 46%; width: 6px; height: 6px; animation-name: heroMote12; animation-duration: 25s; animation-delay: -30s; }
.hero-art__motes i:nth-child(24) { left: 26%; bottom: 48%; width: 5px; height: 5px; animation-name: heroMote11; animation-duration: 30s; animation-delay: -31s; }
.hero-art__motes i:nth-child(25) { left: 63%; bottom: 50%; width: 4px; height: 4px; animation-name: heroMote12; animation-duration: 35s; animation-delay: -32s; }
.hero-art__motes i:nth-child(26) { left: 4%; bottom: 52%; width: 6px; height: 6px; animation-name: heroMote11; animation-duration: 40s; animation-delay: -34s; }
.hero-art__motes i:nth-child(27) { left: 41%; bottom: 54%; width: 4px; height: 4px; animation-name: heroMote12; animation-duration: 26s; animation-delay: -35s; }
.hero-art__motes i:nth-child(28) { left: 78%; bottom: 56%; width: 5px; height: 5px; animation-name: heroMote11; animation-duration: 31s; animation-delay: -36s; }
.hero-art__motes i:nth-child(29) { left: 19%; bottom: 58%; width: 5px; height: 5px; animation-name: heroMote12; animation-duration: 36s; animation-delay: -37s; }
.hero-art__motes i:nth-child(30) { left: 56%; bottom: 60%; width: 4px; height: 4px; animation-name: heroMote11; animation-duration: 41s; animation-delay: -39s; }
.hero-art__motes i:nth-child(31) { left: 93%; bottom: 62%; width: 6px; height: 6px; animation-name: heroMote12; animation-duration: 27s; animation-delay: -40s; }
.hero-art__motes i:nth-child(32) { left: 34%; bottom: 64%; width: 5px; height: 5px; animation-name: heroMote11; animation-duration: 32s; animation-delay: -0s; }
.hero-art__motes i:nth-child(33) { left: 71%; bottom: 66%; width: 4px; height: 4px; animation-name: heroMote10; animation-duration: 37s; animation-delay: -2s; }
.hero-art__motes i:nth-child(34) { left: 12%; bottom: 68%; width: 6px; height: 6px; animation-name: heroMote9; animation-duration: 42s; animation-delay: -3s; }
.hero-art__motes i:nth-child(35) { left: 49%; bottom: 70%; width: 4px; height: 4px; animation-name: heroMote10; animation-duration: 28s; animation-delay: -4s; }
.hero-art__motes i:nth-child(36) { left: 86%; bottom: 72%; width: 5px; height: 5px; animation-name: heroMote9; animation-duration: 33s; animation-delay: -6s; }
.hero-art__motes i:nth-child(37) { left: 27%; bottom: 74%; width: 5px; height: 5px; animation-name: heroMote10; animation-duration: 38s; animation-delay: -7s; }
.hero-art__motes i:nth-child(38) { left: 64%; bottom: 76%; width: 4px; height: 4px; animation-name: heroMote9; animation-duration: 24s; animation-delay: -8s; }
.hero-art__motes i:nth-child(39) { left: 5%; bottom: 78%; width: 6px; height: 6px; animation-name: heroMote10; animation-duration: 29s; animation-delay: -10s; }
.hero-art__motes i:nth-child(40) { left: 42%; bottom: 80%; width: 5px; height: 5px; animation-name: heroMote9; animation-duration: 34s; animation-delay: -11s; }
.hero-art__motes i:nth-child(41) { left: 79%; bottom: 82%; width: 4px; height: 4px; animation-name: heroMote10; animation-duration: 39s; animation-delay: -12s; }
.hero-art__motes i:nth-child(42) { left: 20%; bottom: 84%; width: 6px; height: 6px; animation-name: heroMote9; animation-duration: 25s; animation-delay: -14s; }
.hero-art__motes i:nth-child(43) { left: 57%; bottom: 86%; width: 4px; height: 4px; animation-name: heroMote10; animation-duration: 30s; animation-delay: -15s; }
.hero-art__motes i:nth-child(44) { left: 94%; bottom: 88%; width: 5px; height: 5px; animation-name: heroMote9; animation-duration: 35s; animation-delay: -16s; }
.hero-art__motes i:nth-child(45) { left: 35%; bottom: 90%; width: 5px; height: 5px; animation-name: heroMote10; animation-duration: 40s; animation-delay: -17s; }
.hero-art__motes i:nth-child(46) { left: 72%; bottom: 92%; width: 4px; height: 4px; animation-name: heroMote9; animation-duration: 26s; animation-delay: -19s; }
.hero-art__motes i:nth-child(47) { left: 13%; bottom: 94%; width: 6px; height: 6px; animation-name: heroMote10; animation-duration: 31s; animation-delay: -20s; }
.hero-art__motes i:nth-child(48) { left: 50%; bottom: 96%; width: 5px; height: 5px; animation-name: heroMote9; animation-duration: 36s; animation-delay: -21s; }

@keyframes heroMote1 {
  0%   { transform: translate3d(0, 0, 0) scale(.5); opacity: 0; }
  14%  { opacity: .95; }
  45%  { transform: translate3d(10px, -70px, 0) scale(1); opacity: .8; }
  75%  { transform: translate3d(-12px, -130px, 0) scale(.85); opacity: .35; }
  100% { transform: translate3d(6px, -190px, 0) scale(.4); opacity: 0; }
}

@keyframes heroMote2 {
  0%   { transform: translate3d(0, 0, 0) scale(.5); opacity: 0; }
  14%  { opacity: .95; }
  45%  { transform: translate3d(-14px, -60px, 0) scale(1); opacity: .8; }
  75%  { transform: translate3d(10px, -120px, 0) scale(.85); opacity: .35; }
  100% { transform: translate3d(-6px, -175px, 0) scale(.4); opacity: 0; }
}

@keyframes heroMote3 {
  0%   { transform: translate3d(0, 0, 0) scale(.5); opacity: 0; }
  14%  { opacity: .95; }
  45%  { transform: translate3d(12px, -80px, 0) scale(1); opacity: .8; }
  75%  { transform: translate3d(-8px, -140px, 0) scale(.85); opacity: .35; }
  100% { transform: translate3d(4px, -205px, 0) scale(.4); opacity: 0; }
}

@keyframes heroMote4 {
  0%   { transform: translate3d(0, 0, 0) scale(.5); opacity: 0; }
  14%  { opacity: .95; }
  45%  { transform: translate3d(-10px, -65px, 0) scale(1); opacity: .8; }
  75%  { transform: translate3d(12px, -125px, 0) scale(.85); opacity: .35; }
  100% { transform: translate3d(-5px, -180px, 0) scale(.4); opacity: 0; }
}

@keyframes heroMote5 {
  0%   { transform: translate3d(0, 0, 0) scale(.5); opacity: 0; }
  14%  { opacity: .95; }
  45%  { transform: translate3d(16px, -75px, 0) scale(1); opacity: .8; }
  75%  { transform: translate3d(-11px, -135px, 0) scale(.85); opacity: .35; }
  100% { transform: translate3d(7px, -200px, 0) scale(.4); opacity: 0; }
}

@keyframes heroMote6 {
  0%   { transform: translate3d(0, 0, 0) scale(.5); opacity: 0; }
  14%  { opacity: .95; }
  45%  { transform: translate3d(-12px, -70px, 0) scale(1); opacity: .8; }
  75%  { transform: translate3d(8px, -128px, 0) scale(.85); opacity: .35; }
  100% { transform: translate3d(-4px, -185px, 0) scale(.4); opacity: 0; }
}

@keyframes heroMote7 {
  0%   { transform: translate3d(0, 0, 0) scale(.5); opacity: 0; }
  14%  { opacity: .95; }
  45%  { transform: translate3d(14px, -110px, 0) scale(1); opacity: .8; }
  75%  { transform: translate3d(-10px, -180px, 0) scale(.85); opacity: .35; }
  100% { transform: translate3d(8px, -235px, 0) scale(.4); opacity: 0; }
}

@keyframes heroMote8 {
  0%   { transform: translate3d(0, 0, 0) scale(.5); opacity: 0; }
  14%  { opacity: .95; }
  45%  { transform: translate3d(-16px, -120px, 0) scale(1); opacity: .8; }
  75%  { transform: translate3d(12px, -190px, 0) scale(.85); opacity: .35; }
  100% { transform: translate3d(-6px, -255px, 0) scale(.4); opacity: 0; }
}

@keyframes heroMote9 {
  0%   { transform: translate3d(0, 0, 0) scale(.5); opacity: 0; }
  16%  { opacity: .9; }
  50%  { transform: translate3d(10px, -30px, 0) scale(1); opacity: .75; }
  84%  { transform: translate3d(-8px, -52px, 0) scale(.9); opacity: .4; }
  100% { transform: translate3d(5px, -70px, 0) scale(.4); opacity: 0; }
}

@keyframes heroMote10 {
  0%   { transform: translate3d(0, 0, 0) scale(.5); opacity: 0; }
  16%  { opacity: .9; }
  50%  { transform: translate3d(-12px, -38px, 0) scale(1); opacity: .75; }
  84%  { transform: translate3d(9px, -64px, 0) scale(.9); opacity: .4; }
  100% { transform: translate3d(-5px, -95px, 0) scale(.4); opacity: 0; }
}

@keyframes heroMote11 {
  0%   { transform: translate3d(0, 0, 0) scale(.5); opacity: 0; }
  15%  { opacity: .92; }
  48%  { transform: translate3d(12px, -60px, 0) scale(1); opacity: .78; }
  80%  { transform: translate3d(-9px, -100px, 0) scale(.88); opacity: .38; }
  100% { transform: translate3d(5px, -130px, 0) scale(.4); opacity: 0; }
}

@keyframes heroMote12 {
  0%   { transform: translate3d(0, 0, 0) scale(.5); opacity: 0; }
  15%  { opacity: .92; }
  48%  { transform: translate3d(-13px, -68px, 0) scale(1); opacity: .78; }
  80%  { transform: translate3d(10px, -112px, 0) scale(.88); opacity: .38; }
  100% { transform: translate3d(-6px, -150px, 0) scale(.4); opacity: 0; }
}

/* ---------- Панели ---------- */
.panel {
  position: relative;
  background: transparent; /* прозрачные «окна»: сквозь них виден глобальный звёздный фон */
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px 5px;
}

/* ---------- Форма ---------- */
.form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}
.person {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  min-width: 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 150px;
}
.field__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--gray-bright);
}
.field__label svg { width: 14px; height: 14px; color: var(--gold); opacity: .9; }
.field__box { position: relative; display: block; }
.field input {
  width: 100%;
  height: 48px;
  padding: 0 42px 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(217, 183, 121, .26);
  background: rgba(13, 9, 27, .85);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .35);
  outline: none;
  color: var(--text);
  font-size: 14px;
  letter-spacing: .02em;
  transition: border-color .15s ease, box-shadow .15s ease;
}
/* v42 («страница всегда во всю ширину, без горизонтального скролла» —
   рецепт gravikot.ru): у документа переполнений нет (аудит 320-1440px,
   лендинг и расчёт: scrollWidth == clientWidth), горизонтальный скролл
   возникает только от ЗУМА: pinch-zoom блокирует viewport meta в
   index.html (maximum-scale=1, user-scalable=no), а iOS Safari эту meta
   игнорирует, зато сам приближает страницу при фокусе на input с
   font-size <16px → горизонтальный пан-скролл. Поэтому на сенсорных/
   узких экранах инпуты 16px — авто-зум не срабатывает; на десктопе
   остаётся 14px. Страховка overflow-x: html clip + body hidden —
   выше по файлу (строки ~357/366) и в блоке модала. */
@media (pointer: coarse), (max-width: 640px) {
  .field input { font-size: 16px; }
}
.field input::placeholder { color: #6f6788; letter-spacing: .01em; }
.field input:hover { border-color: rgba(217, 183, 121, .4); }
.field input:focus {
  border-color: var(--gold);
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, .35),
    0 0 0 3px rgba(226, 189, 124, .13),
    0 0 18px rgba(226, 189, 124, .14);
}
.field__icon {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: rgba(226, 189, 124, .8);
  pointer-events: none;
}
.field__error {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--hard);
}
.field__error:empty { display: none; }.hands {
  position: relative;
  height: clamp(110px, 16vw, 220px);
  margin: 2px -24px;
  overflow: hidden;
  background: none;
  pointer-events: none;
  user-select: none;
}
.hands__plane {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  line-height: 0;
}
.hands__plane img { width: 100%; height: auto; display: block; }
/* маленькие искорки, разлетающиеся в разные стороны точно от точки касания пальцев */
.hands__spark {
  position: absolute;
  left: 50.5%;
  top: 46%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff8e6 0%, rgba(255, 226, 150, .9) 45%, transparent 78%);
  opacity: 0;
  pointer-events: none;
  animation-timing-function: cubic-bezier(.16, .67, .4, 1);
  animation-iteration-count: infinite;
  will-change: transform, opacity;
}
.hands__spark:nth-child(2) { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; animation-name: sparkFly1; animation-duration: 1.7s; animation-delay: -.2s; }
.hands__spark:nth-child(3) { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; animation-name: sparkFly2; animation-duration: 1.5s; animation-delay: -.9s; }
.hands__spark:nth-child(4) { width: 4px; height: 4px; margin: -2px 0 0 -2px; animation-name: sparkFly3; animation-duration: 1.9s; animation-delay: -1.3s; }
.hands__spark:nth-child(5) { width: 4px; height: 4px; margin: -2px 0 0 -2px; animation-name: sparkFly4; animation-duration: 1.6s; animation-delay: -.5s; }
.hands__spark:nth-child(6) { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; animation-name: sparkFly5; animation-duration: 2.1s; animation-delay: -1.7s; }
.hands__spark:nth-child(7) { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; animation-name: sparkFly6; animation-duration: 1.8s; animation-delay: -.35s; }
.hands__spark:nth-child(8) { width: 4px; height: 4px; margin: -2px 0 0 -2px; animation-name: sparkFly7; animation-duration: 1.55s; animation-delay: -1.1s; }
.hands__spark:nth-child(9) { width: 4px; height: 4px; margin: -2px 0 0 -2px; animation-name: sparkFly8; animation-duration: 1.75s; animation-delay: -.7s; }

@keyframes sparkFly1 {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  55%  { opacity: .6; }
  100% { transform: translate3d(56px, -14px, 0) scale(.25); opacity: 0; }
}
@keyframes sparkFly2 {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  55%  { opacity: .6; }
  100% { transform: translate3d(-52px, -22px, 0) scale(.25); opacity: 0; }
}
@keyframes sparkFly3 {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  55%  { opacity: .6; }
  100% { transform: translate3d(36px, -48px, 0) scale(.25); opacity: 0; }
}
@keyframes sparkFly4 {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  55%  { opacity: .6; }
  100% { transform: translate3d(-30px, -52px, 0) scale(.25); opacity: 0; }
}
@keyframes sparkFly5 {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  55%  { opacity: .6; }
  100% { transform: translate3d(60px, 22px, 0) scale(.25); opacity: 0; }
}
@keyframes sparkFly6 {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  55%  { opacity: .6; }
  100% { transform: translate3d(-56px, 26px, 0) scale(.25); opacity: 0; }
}
@keyframes sparkFly7 {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  55%  { opacity: .6; }
  100% { transform: translate3d(18px, 54px, 0) scale(.25); opacity: 0; }
}
@keyframes sparkFly8 {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  55%  { opacity: .6; }
  100% { transform: translate3d(-20px, 50px, 0) scale(.25); opacity: 0; }
}

/* v51: искры удвоены (8 → 16) — новые направления заполняют пустые сектора:
   строго вверх/вниз, дальние лево/право, крутые диагонали */
.hands__spark:nth-child(10) { width: 6px; height: 6px; margin: -3px 0 0 -3px; animation-name: sparkFly9; animation-duration: 2.2s; animation-delay: -1.6s; }
.hands__spark:nth-child(11) { width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; animation-name: sparkFly10; animation-duration: 1.3s; animation-delay: -.25s; }
.hands__spark:nth-child(12) { width: 4px; height: 4px; margin: -2px 0 0 -2px; animation-name: sparkFly11; animation-duration: 1.75s; animation-delay: -1s; }
.hands__spark:nth-child(13) { width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; animation-name: sparkFly12; animation-duration: 1.45s; animation-delay: -.7s; }
.hands__spark:nth-child(14) { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; animation-name: sparkFly13; animation-duration: 2s; animation-delay: -1.3s; }
.hands__spark:nth-child(15) { width: 4px; height: 4px; margin: -2px 0 0 -2px; animation-name: sparkFly14; animation-duration: 1.6s; animation-delay: -.45s; }
.hands__spark:nth-child(16) { width: 4px; height: 4px; margin: -2px 0 0 -2px; animation-name: sparkFly15; animation-duration: 1.85s; animation-delay: -1.05s; }
.hands__spark:nth-child(17) { width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; animation-name: sparkFly16; animation-duration: 1.4s; animation-delay: -.85s; }

@keyframes sparkFly9 {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  55%  { opacity: .6; }
  100% { transform: translate3d(70px, -4px, 0) scale(.25); opacity: 0; }
}
@keyframes sparkFly10 {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  55%  { opacity: .6; }
  100% { transform: translate3d(-70px, -2px, 0) scale(.25); opacity: 0; }
}
@keyframes sparkFly11 {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  55%  { opacity: .6; }
  100% { transform: translate3d(0, -68px, 0) scale(.25); opacity: 0; }
}
@keyframes sparkFly12 {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  55%  { opacity: .6; }
  100% { transform: translate3d(0, 66px, 0) scale(.25); opacity: 0; }
}
@keyframes sparkFly13 {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  55%  { opacity: .6; }
  100% { transform: translate3d(48px, -38px, 0) scale(.25); opacity: 0; }
}
@keyframes sparkFly14 {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  55%  { opacity: .6; }
  100% { transform: translate3d(-46px, -40px, 0) scale(.25); opacity: 0; }
}
@keyframes sparkFly15 {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  55%  { opacity: .6; }
  100% { transform: translate3d(44px, 42px, 0) scale(.25); opacity: 0; }
}
@keyframes sparkFly16 {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  55%  { opacity: .6; }
  100% { transform: translate3d(-42px, 46px, 0) scale(.25); opacity: 0; }
}

/* v50: пурпурные сердечки к искрам — разлетаются от точки касания пальцев
   во все стороны (8 направлений), слегка кувыркаясь; форма — SVG-маска.
   v52: ничто не может остановить сердечки — running !important
   перекрывает любые anim-paused/инлайновые паузы.
   v53: плавное НЕПРЕРЫВНОЕ движение без дёрганья — было: cubic-bezier
   применялся к каждому сегменту кейфреймов отдельно (0→38%, 38→100%),
   сердечко тормозило на 38% и снова разгонялось (пульсация каждый цикл).
   Теперь easing linear: постоянная скорость по всему полёту, а точка 38%
   перенесена ровно на 38% прямого пути (иначе линейные сегменты имели
   разные скорости — ступенька посреди полёта). Затухание
   непрерывное от 8% до 55% (исчезают раньше, чем 66% в v52), и полёт
   быстрее — длительности сокращены на ~21% */
.hands__heart {
  position: absolute;
  left: 50.5%;
  top: 46%;
  width: 13px;
  height: 12px;
  margin: -6px 0 0 -6.5px;
  background: linear-gradient(180deg, #e2b6ff 0%, #b36bff 48%, #7d2bee 100%);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21C12 21 2 14.5 2 7.5 2 4 4.5 1.5 7.5 1.5 9.4 1.5 11 2.5 12 4 13 2.5 14.6 1.5 16.4 1.5 19.5 1.5 22 4 22 7.5 22 14.5 12 21 12 21Z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21C12 21 2 14.5 2 7.5 2 4 4.5 1.5 7.5 1.5 9.4 1.5 11 2.5 12 4 13 2.5 14.6 1.5 16.4 1.5 19.5 1.5 22 4 22 7.5 22 14.5 12 21 12 21Z'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  filter: drop-shadow(0 0 5px rgba(179, 107, 255, .8));
  opacity: 0;
  pointer-events: none;
  /* v53: linear — скорость постоянна на всём пути, сегменты кейфреймов
     не создают «стоп-старт» пульсации */
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-play-state: running !important;
  will-change: transform, opacity;
}
/* v53: img — 1-й ребёнок planes, искры 2–17 (16 шт), сердечки 18–25.
   Сердечки НЕ останавливаются вовсе (running !important), улетают
   на ±78–95px, исчезают к 55% полёта, длительности короче на ~21%
   (1.25–1.55s вместо 1.6–1.95s), delays пропорционально ужаты */
.hands__heart:nth-child(18) { width: 14px; height: 13px; margin: -6.5px 0 0 -7px; animation-name: heartFly1; animation-duration: 1.4s; animation-delay: -.27s; }
.hands__heart:nth-child(19) { width: 12px; height: 11px; margin: -5.5px 0 0 -6px; animation-name: heartFly2; animation-duration: 1.25s; animation-delay: -.97s; }
.hands__heart:nth-child(20) { width: 14px; height: 13px; margin: -6.5px 0 0 -7px; animation-name: heartFly3; animation-duration: 1.5s; animation-delay: -.66s; }
.hands__heart:nth-child(21) { width: 12px; height: 11px; margin: -5.5px 0 0 -6px; animation-name: heartFly4; animation-duration: 1.35s; animation-delay: -1.2s; }
.hands__heart:nth-child(22) { width: 13px; height: 12px; margin: -6px 0 0 -6.5px; animation-name: heartFly5; animation-duration: 1.45s; animation-delay: -.47s; }
.hands__heart:nth-child(23) { width: 12px; height: 11px; margin: -5.5px 0 0 -6px; animation-name: heartFly6; animation-duration: 1.55s; animation-delay: -1.5s; }
.hands__heart:nth-child(24) { width: 14px; height: 13px; margin: -6.5px 0 0 -7px; animation-name: heartFly7; animation-duration: 1.3s; animation-delay: -.9s; }
.hands__heart:nth-child(25) { width: 12px; height: 11px; margin: -5.5px 0 0 -6px; animation-name: heartFly8; animation-duration: 1.4s; animation-delay: -1.28s; }

@keyframes heartFly1 {
  0%   { transform: translate3d(0, 0, 0) scale(.4) rotate(-8deg); opacity: 0; }
  8%   { opacity: 1; }
  38%  { transform: translate3d(-30px, -24px, 0) scale(1) rotate(-12deg); }
  55%  { opacity: 0; }
  100% { transform: translate3d(-78px, -62px, 0) scale(.6) rotate(-18deg); opacity: 0; }
}
@keyframes heartFly2 {
  0%   { transform: translate3d(0, 0, 0) scale(.4) rotate(6deg); opacity: 0; }
  8%   { opacity: 1; }
  38%  { transform: translate3d(-6px, -33px, 0) scale(1) rotate(9deg); }
  55%  { opacity: 0; }
  100% { transform: translate3d(-16px, -86px, 0) scale(.6) rotate(12deg); opacity: 0; }
}
@keyframes heartFly3 {
  0%   { transform: translate3d(0, 0, 0) scale(.4) rotate(8deg); opacity: 0; }
  8%   { opacity: 1; }
  38%  { transform: translate3d(24px, -28px, 0) scale(1) rotate(12deg); }
  55%  { opacity: 0; }
  100% { transform: translate3d(62px, -73px, 0) scale(.6) rotate(16deg); opacity: 0; }
}
@keyframes heartFly4 {
  0%   { transform: translate3d(0, 0, 0) scale(.4) rotate(-6deg); opacity: 0; }
  8%   { opacity: 1; }
  38%  { transform: translate3d(-34px, -3px, 0) scale(1) rotate(-9deg); }
  55%  { opacity: 0; }
  100% { transform: translate3d(-89px, -8px, 0) scale(.6) rotate(-12deg); opacity: 0; }
}
@keyframes heartFly5 {
  0%   { transform: translate3d(0, 0, 0) scale(.4) rotate(6deg); opacity: 0; }
  8%   { opacity: 1; }
  38%  { transform: translate3d(34px, 2px, 0) scale(1) rotate(10deg); }
  55%  { opacity: 0; }
  100% { transform: translate3d(89px, 5px, 0) scale(.6) rotate(14deg); opacity: 0; }
}
@keyframes heartFly6 {
  0%   { transform: translate3d(0, 0, 0) scale(.4) rotate(-8deg); opacity: 0; }
  8%   { opacity: 1; }
  38%  { transform: translate3d(-27px, 22px, 0) scale(1) rotate(2deg); }
  55%  { opacity: 0; }
  100% { transform: translate3d(-70px, 59px, 0) scale(.6) rotate(12deg); opacity: 0; }
}
@keyframes heartFly7 {
  0%   { transform: translate3d(0, 0, 0) scale(.4) rotate(8deg); opacity: 0; }
  8%   { opacity: 1; }
  38%  { transform: translate3d(4px, 31px, 0) scale(1) rotate(4deg); }
  55%  { opacity: 0; }
  100% { transform: translate3d(11px, 81px, 0) scale(.6) rotate(-14deg); opacity: 0; }
}
@keyframes heartFly8 {
  0%   { transform: translate3d(0, 0, 0) scale(.4) rotate(-6deg); opacity: 0; }
  8%   { opacity: 1; }
  38%  { transform: translate3d(27px, 22px, 0) scale(1) rotate(10deg); }
  55%  { opacity: 0; }
  100% { transform: translate3d(70px, 57px, 0) scale(.6) rotate(18deg); opacity: 0; }
}

.calc-wrap { margin: 10px auto 0; width: 100%; max-width: 780px; position: relative; }
.calc-btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  width: 100%;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 243, 208, .55);
  background: linear-gradient(92deg, #f2d492 0%, #e9c176 40%, #d8a94f 80%, #c9973f 100%);
  color: #402708;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, .4),
    inset 0 1px 0 rgba(255, 244, 214, .85); /* v65: свечение (золотой ореол) убрано по просьбе заказчика */
  transition: transform .12s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.calc-btn .sparkle { width: 15px; height: 15px; color: rgba(64, 39, 8, .85); }
.calc-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, .4),
    inset 0 1px 0 rgba(255, 244, 214, .85); /* v65: без свечения и в hover */
}
.calc-btn:active { transform: translateY(0); }
/* орбитальные искры вокруг кнопки */
.calc-wrap::before,
.calc-wrap::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 9px 2px rgba(245, 216, 154, .7);
  pointer-events: none;
}
.calc-wrap::before { top: -10px; right: 30px; }
.calc-wrap::after { bottom: -8px; right: -14px; width: 3.5px; height: 3.5px; }

.privacy {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 11px;
  color: #8d84a6;
  font-size: 12.5px;
}
.privacy svg { width: 13px; height: 13px; color: var(--gold); flex: 0 0 auto; }
.privacy__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 183, 121, .38));
}
.privacy__line:last-child {
  background: linear-gradient(90deg, rgba(217, 183, 121, .38), transparent);
}

/* v51: сердечки НЕ останавливаются вне экрана (остановка убрана по
   просьбе юзера) — пауза остаётся только у искр и прочих i-анимаций */
.anim-paused i,
.anim-paused .hands__spark,
.hero-art__motes.anim-paused i {
  animation-play-state: paused;
}
.hero-title.anim-paused::before,
.hero-title.anim-paused img { animation-play-state: paused; }

/* ---------- Карточки партнёров ---------- */
.results { display: flex; flex-direction: column; gap: 21px; }
/* v64: рекламный баннер спонсора — той же ширины, что «окна» (панели
   секций), над блоком «Число судьбы каждого» */
.ad-banner {
  position: relative;
  /* ширина совпадает с обычными .panel внутри .results (запрос заказчика) */
  width: 100%;
}
.ad-banner__label {
  padding: 2px 16px 7px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gray-bright);
}
.ad-banner__img {
  display: block;
  width: 100%;
  height: auto;
}
.ad-banner__link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.ad-banner__link:hover .ad-banner__img { filter: brightness(1.08); }
.ad-banner__link:focus-visible { outline: 2px solid rgba(245, 216, 154, .8); outline-offset: 3px; }
/* v64: светлячки по контуру баннера — SVG .ad-banner__ff лежит поверх
   картинки (обёртка .ad-banner__frame), путь SMIL задан в bannerStars()
   (app_part2.js). v66: светлячки заменены на СВЕТЯЩИЕСЯ ЗВЁЗДОЧКИ
   (запрос заказчика) — пятиконечная звезда .ff__star вместо ядра-круга:
   медленно вращается (adStarSpin), мерцает (adFfTwinkle); ровно две —
   пурпурная и ярко-голубая, летят НАВСТРЕЧУ друг другу (одна — по
   контуру по часовой, вторая — по обратному пути против часовой).
   Мерцание — opacity на .ff (задержки — инлайново);
   ореол аддитивно светится над тёмной картинкой (mix-blend-mode screen); */
.ad-banner__frame { position: relative; display: block; line-height: 0; }
.ad-banner__ff {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* клик по баннеру не должен перехватываться */
  z-index: 1;
  /* v66: звёзды идут по ВНЕШНЕМУ краю контура — свечение не обрезается
     по границе svg (звезда чуть выступает за край баннера) */
  overflow: visible;
}
.ad-banner__ff .ff { animation: adFfTwinkle 2.8s ease-in-out infinite; }
.ad-banner__ff .ff__halo { mix-blend-mode: screen; }
/* v66: светящаяся звезда — двойное свечение под цвет (вместо ядра-круга)
   и медленное вращение вокруг своей оси (голубая — в обратную сторону) */
.ad-banner__ff .ff__star {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, .9)) drop-shadow(0 0 14px rgba(255, 255, 255, .55));
  animation: adStarSpin 7s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.ad-banner__ff .ff--pur  .ff__star { filter: drop-shadow(0 0 6px rgba(224, 160, 255, 1)) drop-shadow(0 0 14px rgba(165, 60, 255, .8)); }
.ad-banner__ff .ff--blue .ff__star { filter: drop-shadow(0 0 6px rgba(131, 214, 255, 1)) drop-shadow(0 0 14px rgba(43, 177, 255, .8)); animation-direction: reverse; }
@keyframes adStarSpin {
  to { transform: rotate(360deg); }
}
@keyframes adFfTwinkle {
  0%, 100% { opacity: .55; } /* v65: ярче — нижняя граница мерцания поднята */
  50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  /* без движения: звёзды не нужны, картинка баннера остаётся */
  .ad-banner__ff { display: none; }
}
.fates {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.fate {
  position: relative;
  overflow: visible;
  /* v48: грид-элемент не расширяется от nowrap-имени — имя перетекает
     через край панели на карту, а не растягивает колонку */
  min-width: 0;
  /* v46.1→v49: панель должна вмещать карту (низ карты ~356px от верха),
     иначе карта свисает на следующий контент при коротких описаниях */
  min-height: 400px;
  padding: 22px 26px 30px 44px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    radial-gradient(430px 300px at 86% 10%, rgba(80, 52, 130, .13), transparent 70%),
    linear-gradient(160deg, rgba(30, 19, 56, .38) 0%, rgba(18, 12, 36, .6) 55%, rgba(11, 8, 23, .82) 100%);
  box-shadow: var(--shadow);
}
.fate__head {
  display: block;
  /* v48: имя рендерится над картой (карта z-index 1) — длинное имя
     продолжается ПОВЕРХ карты внахлёст */
  position: relative;
  z-index: 2;
}
/* имя партнёра — v49: всегда одной строкой (nowrap); если не влезает —
   продолжается дальше, залезая на карту внахлёст. Ярко-голубой цвет
   на ОБЕИХ панелях; чёрный кант убран (v48), кегль увеличен на 10% */
.fate__head span {
  display: inline-block;
  font-family: "Cormorant Garamond", var(--serif);
  font-weight: 600;
  font-size: clamp(44.5px, 3.63vw, 56px);
  line-height: 1.18;
  letter-spacing: .06em;
  white-space: nowrap;
  color: #3fd0ff;
  text-shadow: 0 3px 10px rgba(0, 0, 0, .55);
  filter: drop-shadow(0 0 14px rgba(63, 208, 255, .25));
}
.fate__num {
  font-family: var(--serif);
  font-family: "Playfair Display", var(--serif);
  font-weight: 700;
  font-size: 60px;
  /* v71 (запрос заказчика): 1.05 → 1.35 — число «Аркан судьбы» было
     подрезано снизу. Причина: background-clip:text красит градиент
     только внутри бокса элемента, а при line-height 1.05 нижние серифы
     цифр Playfair Display выходят за этот бокс и становятся прозрачными
     (срез ровно по нижней кромке цифр). 1.2 всё ещё подрезает,
     1.35 вмещает глифы полностью — проверено рендером в Chrome. */
  line-height: 1.35;
  margin: 6px 0 0 -12px;
  letter-spacing: 0;
  background: linear-gradient(180deg, #d8a959 0%, #eecf8e 42%, #fff3d2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(238, 207, 142, .34));
}
.fate__arcana {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.1;
  color: #f4efe6;
  margin-top: 20px;
  /* v49: длинные имена арканов не заходят под карту справа (карта 213px) */
  max-width: calc(100% - 280px);
}
/* v49: карта 213px занимает верх панели до ~356px — KB-блоки
   (полярность и описания) опускаются ПОД карту. На брейкпоинтах
   ≤960/≤560 карта меньше и стоит в потоке текста — там отступ сброшен. */
.fate__keys {
  margin-top: 138px;
  font-size: 13.5px;
  color: #ff9d4d; /* v53: короткая подпись под названием аркана — оранжевая */
}
/* подписи «Аркан судьбы:» / «Число судьбы:» и описания под ними */
.fate__label {
  margin-top: 15px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #c9ab72;
}
.fate__label--num { margin-top: 17px; }
.fate__desc {
  margin-top: 7px;
  max-width: 420px;
  font-size: 14.5px;
  line-height: 1.52;
  color: #cfc8dd;
}
.fate__text {
  margin-top: 16px;
  max-width: 325px;
  font-size: 14.5px;
  line-height: 1.52;
  color: #cfc8dd;
}
/* v57: анимированный фиолетовый дым за картой таро удалён совсем
   по просьбе заказчика: разметка убрана из tarotBlock (app_part1 v51),
   здесь удалены .tcard__smoke*, кейфреймы smokeA–smokeD и пауза */
/* v49 (2026-11-26): карта Таро в «Аркан судьбы» увеличена на 10% от v48
   (194→213px), обвязка масштабирована пропорционально; подписи на карте
   по-прежнему нет. Мобильные брейкпоинты ниже. */
.tcard {
  position: absolute;
  top: -47px;
  right: 26px; /* повёрнутая карта выпирает вправо ~32px — не задеваем соседнюю панель в 2-колоночной сетке */
  width: 213px;
  transform: rotate(10deg);
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
.tcard::before { /* внешние кольца-орбиты */
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: 208px;
  height: 208px;
  transform: translate(-58%, -50%);
  border: 1px solid rgba(226, 189, 124, .16);
  border-radius: 50%;
}
.tcard::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: 164px;
  height: 164px;
  transform: translate(-58%, -50%);
  border: 1px dashed rgba(185, 140, 224, .22);
  border-radius: 50%;
}
.tcard__glow {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 254px;
  height: 254px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(185, 140, 224, .2) 0%, rgba(226, 189, 124, .12) 45%, transparent 70%);
  border-radius: 50%;
}
.tcard__frame {
  position: relative;
  z-index: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #c79f58;
  box-shadow:
    0 0 0 1px rgba(13, 8, 25, .9),
    0 0 0 4px rgba(199, 159, 88, .45),
    0 0 0 5px rgba(13, 8, 25, .8),
    0 20px 42px rgba(0, 0, 0, .5),
    0 0 37px rgba(226, 189, 124, .12);
  background: #120c24;
}
.tcard__img {
  display: block;
  width: 100%;
  aspect-ratio: 0.556;
  object-fit: cover;
}


/* светящиеся частицы внутри окна судьбы: очень медленный подъём (только transform), золото вперемешку с фиолетовым */
.tcard__motes {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: var(--radius);
  pointer-events: none;
}
.tcard__motes i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff8e2 0%, rgba(255, 226, 150, .9) 26%, rgba(255, 226, 150, .32) 55%, transparent 76%);
  opacity: 0;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  will-change: transform, opacity;
}
.tcard__motes i:nth-child(2n) {
  background: radial-gradient(circle, #f6e8ff 0%, rgba(206, 164, 255, .9) 26%, rgba(206, 164, 255, .32) 55%, transparent 76%);
}
.tcard__motes i:nth-child(1) { left: 6%; bottom: 10%; width: 6px; height: 6px; animation-name: moteRise1; animation-duration: 44s; animation-delay: -3s; }
.tcard__motes i:nth-child(2) { left: 12%; bottom: 34%; width: 6px; height: 6px; animation-name: moteRise2; animation-duration: 48s; animation-delay: -21s; }
.tcard__motes i:nth-child(3) { left: 18%; bottom: 5%; width: 5px; height: 5px; animation-name: moteRise3; animation-duration: 38s; animation-delay: -30s; }
.tcard__motes i:nth-child(4) { left: 24%; bottom: 42%; width: 6px; height: 6px; animation-name: moteRise4; animation-duration: 52s; animation-delay: -10s; }
.tcard__motes i:nth-child(5) { left: 30%; bottom: 14%; width: 4px; height: 4px; animation-name: moteRise5; animation-duration: 41s; animation-delay: -26s; }
.tcard__motes i:nth-child(6) { left: 36%; bottom: 2%; width: 5px; height: 5px; animation-name: moteRise6; animation-duration: 54s; animation-delay: -36s; }
.tcard__motes i:nth-child(7) { left: 42%; bottom: 38%; width: 5px; height: 5px; animation-name: moteRise7; animation-duration: 46s; animation-delay: -7s; }
.tcard__motes i:nth-child(8) { left: 48%; bottom: 8%; width: 6px; height: 6px; animation-name: moteRise8; animation-duration: 50s; animation-delay: -33s; }
.tcard__motes i:nth-child(9) { left: 54%; bottom: 28%; width: 4px; height: 4px; animation-name: moteRise9; animation-duration: 39s; animation-delay: -18s; }
.tcard__motes i:nth-child(10) { left: 60%; bottom: 12%; width: 6px; height: 6px; animation-name: moteRise10; animation-duration: 43s; animation-delay: -40s; }
.tcard__motes i:nth-child(11) { left: 66%; bottom: 44%; width: 5px; height: 5px; animation-name: moteRise11; animation-duration: 47s; animation-delay: -13s; }
.tcard__motes i:nth-child(12) { left: 71%; bottom: 4%; width: 4px; height: 4px; animation-name: moteRise12; animation-duration: 36s; animation-delay: -2s; }
.tcard__motes i:nth-child(13) { left: 76%; bottom: 22%; width: 6px; height: 6px; animation-name: moteRise13; animation-duration: 49s; animation-delay: -28s; }
.tcard__motes i:nth-child(14) { left: 81%; bottom: 16%; width: 5px; height: 5px; animation-name: moteRise14; animation-duration: 42s; animation-delay: -15s; }

@keyframes moteRise1 {
  0%   { transform: translate3d(0, 0, 0) scale(.5); opacity: 0; }
  12%  { opacity: .95; }
  45%  { transform: translate3d(14px, -153px, 0) scale(1); opacity: .8; }
  75%  { transform: translate3d(-8px, -258px, 0) scale(.85); opacity: .35; }
  100% { transform: translate3d(4px, -340px, 0) scale(.4); opacity: 0; }
}
@keyframes moteRise2 {
  0%   { transform: translate3d(0, 0, 0) scale(.5); opacity: 0; }
  12%  { opacity: .95; }
  45%  { transform: translate3d(-16px, -117px, 0) scale(1); opacity: .8; }
  75%  { transform: translate3d(10px, -198px, 0) scale(.85); opacity: .35; }
  100% { transform: translate3d(-5px, -260px, 0) scale(.4); opacity: 0; }
}
@keyframes moteRise3 {
  0%   { transform: translate3d(0, 0, 0) scale(.5); opacity: 0; }
  12%  { opacity: .95; }
  45%  { transform: translate3d(12px, -167px, 0) scale(1); opacity: .8; }
  75%  { transform: translate3d(-7px, -283px, 0) scale(.85); opacity: .35; }
  100% { transform: translate3d(4px, -372px, 0) scale(.4); opacity: 0; }
}
@keyframes moteRise4 {
  0%   { transform: translate3d(0, 0, 0) scale(.5); opacity: 0; }
  12%  { opacity: .95; }
  45%  { transform: translate3d(-14px, -104px, 0) scale(1); opacity: .8; }
  75%  { transform: translate3d(8px, -176px, 0) scale(.85); opacity: .35; }
  100% { transform: translate3d(-4px, -232px, 0) scale(.4); opacity: 0; }
}
@keyframes moteRise5 {
  0%   { transform: translate3d(0, 0, 0) scale(.5); opacity: 0; }
  12%  { opacity: .95; }
  45%  { transform: translate3d(18px, -146px, 0) scale(1); opacity: .8; }
  75%  { transform: translate3d(-11px, -246px, 0) scale(.85); opacity: .35; }
  100% { transform: translate3d(5px, -324px, 0) scale(.4); opacity: 0; }
}
@keyframes moteRise6 {
  0%   { transform: translate3d(0, 0, 0) scale(.5); opacity: 0; }
  12%  { opacity: .95; }
  45%  { transform: translate3d(-12px, -171px, 0) scale(1); opacity: .8; }
  75%  { transform: translate3d(7px, -289px, 0) scale(.85); opacity: .35; }
  100% { transform: translate3d(-4px, -380px, 0) scale(.4); opacity: 0; }
}
@keyframes moteRise7 {
  0%   { transform: translate3d(0, 0, 0) scale(.5); opacity: 0; }
  12%  { opacity: .95; }
  45%  { transform: translate3d(16px, -110px, 0) scale(1); opacity: .8; }
  75%  { transform: translate3d(-10px, -185px, 0) scale(.85); opacity: .35; }
  100% { transform: translate3d(5px, -244px, 0) scale(.4); opacity: 0; }
}
@keyframes moteRise8 {
  0%   { transform: translate3d(0, 0, 0) scale(.5); opacity: 0; }
  12%  { opacity: .95; }
  45%  { transform: translate3d(-18px, -160px, 0) scale(1); opacity: .8; }
  75%  { transform: translate3d(11px, -271px, 0) scale(.85); opacity: .35; }
  100% { transform: translate3d(-5px, -356px, 0) scale(.4); opacity: 0; }
}
@keyframes moteRise9 {
  0%   { transform: translate3d(0, 0, 0) scale(.5); opacity: 0; }
  12%  { opacity: .95; }
  45%  { transform: translate3d(13px, -128px, 0) scale(1); opacity: .8; }
  75%  { transform: translate3d(-8px, -216px, 0) scale(.85); opacity: .35; }
  100% { transform: translate3d(4px, -284px, 0) scale(.4); opacity: 0; }
}
@keyframes moteRise10 {
  0%   { transform: translate3d(0, 0, 0) scale(.5); opacity: 0; }
  12%  { opacity: .95; }
  45%  { transform: translate3d(-13px, -151px, 0) scale(1); opacity: .8; }
  75%  { transform: translate3d(8px, -255px, 0) scale(.85); opacity: .35; }
  100% { transform: translate3d(-4px, -336px, 0) scale(.4); opacity: 0; }
}
@keyframes moteRise11 {
  0%   { transform: translate3d(0, 0, 0) scale(.5); opacity: 0; }
  12%  { opacity: .95; }
  45%  { transform: translate3d(15px, -101px, 0) scale(1); opacity: .8; }
  75%  { transform: translate3d(-9px, -170px, 0) scale(.85); opacity: .35; }
  100% { transform: translate3d(4px, -224px, 0) scale(.4); opacity: 0; }
}
@keyframes moteRise12 {
  0%   { transform: translate3d(0, 0, 0) scale(.5); opacity: 0; }
  12%  { opacity: .95; }
  45%  { transform: translate3d(-15px, -169px, 0) scale(1); opacity: .8; }
  75%  { transform: translate3d(9px, -286px, 0) scale(.85); opacity: .35; }
  100% { transform: translate3d(-4px, -376px, 0) scale(.4); opacity: 0; }
}
@keyframes moteRise13 {
  0%   { transform: translate3d(0, 0, 0) scale(.5); opacity: 0; }
  12%  { opacity: .95; }
  45%  { transform: translate3d(17px, -135px, 0) scale(1); opacity: .8; }
  75%  { transform: translate3d(-10px, -228px, 0) scale(.85); opacity: .35; }
  100% { transform: translate3d(5px, -300px, 0) scale(.4); opacity: 0; }
}
@keyframes moteRise14 {
  0%   { transform: translate3d(0, 0, 0) scale(.5); opacity: 0; }
  12%  { opacity: .95; }
  45%  { transform: translate3d(-11px, -157px, 0) scale(1); opacity: .8; }
  75%  { transform: translate3d(7px, -264px, 0) scale(.85); opacity: .35; }
  100% { transform: translate3d(-3px, -348px, 0) scale(.4); opacity: 0; }
}
/* ---------- Панель шагов (Число судьбы каждого) ---------- */
.steps-panel { padding: 24px 26px 0; overflow: visible; }
.steps-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(217, 183, 121, .14);
}
.steps-head__tile {
  position: relative;
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  border-radius: 15px;
  border: 1px solid rgba(217, 183, 121, .4);
  background:
    radial-gradient(circle at 50% 42%, rgba(226, 189, 124, .12), transparent 65%),
    rgba(11, 7, 22, .75);
  box-shadow: inset 0 0 14px rgba(0, 0, 0, .45), 0 0 16px rgba(226, 189, 124, .12);
  display: grid;
  place-items: center;
}
.steps-head__tile svg {
  width: 40px;
  height: 24px;
  color: var(--gold);
  filter: drop-shadow(0 0 7px rgba(226, 189, 124, .45));
}
.steps-head__tile::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 5px;
  height: 5px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--gold-bright);
  box-shadow: 0 0 8px 2px rgba(245, 216, 154, .55);
}
.steps-head__tile::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(226, 189, 124, .22);
  border-radius: 11px;
  pointer-events: none;
}
.steps-head__titles { min-width: 0; }
.steps-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 27px;
  line-height: 1.15;
  color: #f4efe6;
}
.steps-head__lead {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 780px;
}
.steps-head__lead b { color: #d9d0ea; font-weight: 500; }
.astro-gold-title {
  position: relative;
  z-index: 1;
  margin: 0 0 20px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.15;
  text-align: center;
  letter-spacing: .02em;
  color: var(--gold-bright);
  text-shadow: 0 0 14px rgba(0, 0, 0, .6), 0 0 30px rgba(0, 0, 0, .28);
}
.astro-gold-title::after {
  content: "";
  display: block;
  width: 120px;
  height: 1px;
  margin: 10px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  opacity: .7;
}
.steps-panel__arc {
  position: absolute;
  right: -30px;
  bottom: -66px;
  width: 660px;
  pointer-events: none;
  user-select: none;
  opacity: .68;
  mix-blend-mode: screen;
  z-index: 0;
}
.steps { position: relative; z-index: 1; }
.steps-head { position: relative; z-index: 1; }
.steps { display: flex; flex-direction: column; gap: 20px; padding: 22px 0 26px; }
.step { position: relative; padding-left: 46px; }
.step__num {
  position: absolute;
  left: 0;
  top: 1px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--gold-soft);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  color: var(--gold-bright);
}
.step h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18.5px;
  line-height: 30px;
  color: #eee7db;
}
.step__lead { font-size: 13px; color: var(--muted); margin: 2px 0 12px; }
.step__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.step__calc {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: var(--inset-bg);
  border: 1px solid rgba(217, 183, 121, .13);
}
.step__calc--inline { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px; }
.step__who { font-size: 12.5px; font-weight: 600; color: #ddd4ec; }
.step__date { font-size: 12px; color: var(--faint); margin-top: -3px; }
.step__calc code { font-size: 12.5px; }
.step__arrow { color: var(--gold) !important; }
.step__result { color: #efe9f5 !important; font-weight: 600; }
.step__result .tone-good { color: var(--good); }
.step__result .tone-hard { color: var(--hard); }
.step__result .tone-neutral { color: var(--neutral); }

/* ---------- Позиции А/Б/В/Г ---------- */
.positions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.pos {
  position: relative;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    radial-gradient(360px 260px at 10% 0%, rgba(94, 62, 148, .12), transparent 70%),
    linear-gradient(160deg, rgba(44, 27, 78, .46) 0%, rgba(26, 17, 49, .6) 55%, rgba(17, 12, 33, .78) 100%);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pos::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16%;
  bottom: 16%;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, transparent, var(--pos-tone, rgba(226, 189, 124, .65)) 30% 70%, transparent);
}
.pos.tone-good { --pos-tone: rgba(127, 207, 164, .6); }
.pos.tone-hard { --pos-tone: rgba(224, 138, 132, .6); }
.pos.tone-neutral { --pos-tone: rgba(179, 164, 224, .6); }
.pos__head { display: flex; gap: 13px; align-items: flex-start; }
.pos__letter {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  background: var(--gold-soft);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  color: var(--gold-bright);
}
.pos__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.25;
  color: #f0eadd;
}
.pos__subtitle { font-size: 12px; color: var(--gray-bright); margin-top: 2px; }
.pos__chip {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  align-self: flex-start;
  padding: 8px 16px 9px;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, rgba(226, 189, 124, .09), transparent 70%), var(--inset-bg);
}
.pos__chip-num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1;
  color: var(--chip-tone, var(--gold-bright));
}
.pos.tone-good .pos__chip-num { --chip-tone: var(--good); }
.pos.tone-hard .pos__chip-num { --chip-tone: var(--hard); }
.pos.tone-neutral .pos__chip-num { --chip-tone: var(--neutral); }
.pos__chip-name { font-family: var(--serif); font-weight: 500; font-size: 16.5px; color: #efe9f5; }
.pos__text { font-size: 13.5px; line-height: 1.55; color: #c6bed9; }
.pos__warn {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.5;
  color: #e6a49e;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  background: rgba(224, 138, 132, .09);
  border: 1px solid rgba(224, 138, 132, .25);
}
.pos__warn::before { content: "⚠"; }

/* ---------- Прогноз по году ---------- */
.forecast-panel { padding: 24px 26px 26px; }
.forecast__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.forecast__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  color: #f4efe6;
}
.forecast__lead { font-size: 13px; color: var(--muted); margin-top: 5px; }
.forecast__lead code { color: var(--gold); font-size: 1em; }
.forecast__year {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--faint);
}
.forecast__year input {
  width: 96px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(217, 183, 121, .26);
  background: rgba(13, 9, 27, .85);
  outline: none;
  font-size: 15px;
  letter-spacing: .06em;
  color: var(--text);
}
.forecast__year input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(226, 189, 124, .13);
}
.forecast__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 12px;
}
.fcell {
  padding: 15px 16px;
  border-radius: var(--radius-sm);
  background: var(--inset-bg);
  border: 1px solid rgba(217, 183, 121, .13);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fcell__head { display: flex; align-items: center; gap: 9px; }
.fcell__letter {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--gold-bright);
  background: var(--gold-soft);
  border: 1px solid rgba(217, 183, 121, .3);
}
.fcell__title { font-size: 12.5px; font-weight: 600; color: #e6dff2; }
.fcell__chip { display: flex; align-items: baseline; gap: 9px; }
.fcell__num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 25px;
  line-height: 1;
  color: var(--chip-tone, var(--gold-bright));
}
.fcell.tone-good .fcell__num { --chip-tone: var(--good); }
.fcell.tone-hard .fcell__num { --chip-tone: var(--hard); }
.fcell.tone-neutral .fcell__num { --chip-tone: var(--neutral); }
.fcell__name { font-family: var(--serif); font-weight: 500; font-size: 16px; color: #efe9f5; }
.fcell__hint { font-size: 11.5px; color: var(--faint); }
.fcell__text { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.forecast__warn,
.forecast__ok {
  margin-top: 16px;
  padding: 11px 15px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  line-height: 1.5;
}
.forecast__warn { color: #e6a49e; background: rgba(224, 138, 132, .09); border: 1px solid rgba(224, 138, 132, .25); }
.forecast__ok { color: #8fd4ae; background: rgba(127, 207, 164, .08); border: 1px solid rgba(127, 207, 164, .25); }

/* ---------- Заглушка (нет валидных дат) ---------- */
.hint-panel { text-align: center; color: var(--muted); padding: 36px; }

/* ---------- Адаптив ---------- */
/* Ноутбуки и планшеты: иллюстрация шапки — лента под топбаром, текст ниже */
@media (max-width: 1445px) {
  .steps-panel__arc { right: 14px; }
  .hero-art > picture img {
    display: block;
    width: 100%;
    object-fit: cover;
    object-position: top center;
  }
  .content { padding-top: calc(72vh - 75px); }
  .hero-art {
    top: 0;
    left: 0;
    right: auto;
    transform: none;
    width: 100%;
  }
  .hero-art > picture img { height: 72vh; }
  /* v69: дисклеймер — по центру всей ширины, внахлёст на картинку выше зоны
     растворения (низ картинки = 72vh), под заголовком (он прижат к top 16%) */
  .hero-disclaimer {
    left: 3%;
    right: 3%;
    width: auto;
    top: calc(72vh - 84px);
    font-size: clamp(9px, 1.2vw, 12px);
  }
  /* на широких планшетах шар в кадре обрезан — заголовок в тёмном небе над котом */
  .hero-title {
    left: 46%;
    bottom: auto;
    top: 16%;
    width: 60%;
  }
}
@media (max-width: 1280px) {
  .steps-panel__arc { width: 480px; right: 10px; }
}
@media (max-width: 1100px) {
  .topbar__menu { display: none; }
  .topbar__actions { margin-left: auto; }
}
@media (max-width: 960px) {
  .sidebar { display: none; }
  .hero-art {
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
  }
  .hero-art > picture img {
    height: auto;
    max-height: 72vh;
  }
  /* v69: дисклеймер — низ картинки = min(150vw,72vh); блок поднят внахлёст
     на картинку, ниже заголовка (bottom 17-21%) и выше формы */
  .hero-disclaimer {
    top: calc(min(150vw, 72vh) - 84px);
    font-size: clamp(8.5px, 2.3vw, 11.5px);
  }
  /* на совсем узких (<=359px) меньше подъём — не налезаем на заголовок
     и оставляем зазор до панели формы */
  @media (max-width: 359px) {
    .hero-disclaimer { top: calc(min(150vw, 72vh) - 78px); }
  }
  /* шар целиком в кадре (45% ширины / 61% высоты) — строка «Расшифруем?» на него */
  .hero-title {
    left: 45%;
    bottom: 17%;
    top: auto;
    width: 62%;
  }
  .content { padding-top: calc(min(150vw, 72vh) - 75px); }
  .form { flex-direction: column; align-items: stretch; }
  .calc-wrap { align-self: center; margin-top: 6px; }
  .fates, .positions, .step__grid { grid-template-columns: 1fr; }
  .fates { row-gap: 34px; margin-top: 24px; }
  .tcard { top: -37px; right: 15px; width: 170px; }
  .fate { min-height: 340px; }
  .fate__keys { margin-top: 8px; max-width: calc(100% - 300px); }
  .fate__desc { max-width: calc(100% - 315px); }
  .fate__text { max-width: calc(100% - 315px); }
  .fate__num { font-size: 88px; }
  .steps-panel__arc { display: none; }
  .forecast__year { margin-left: 0; }
}
/* Мобильные */
@media (max-width: 560px) {
  .panel { padding: 16px; }
  .hands { margin: 2px -16px; height: clamp(105px, 30vw, 150px); }
  /* v48: имя больше не ограничиваем — оно всегда одной строкой
     и при нехватке ширины залезает на карту внахлёст (см. базу) */
  .hero-title { width: 76%; bottom: 21%; }
  .topbar { gap: 12px; padding: 14px 16px; }
  .account-btn span { display: none; }
  .account-btn { padding: 9px 12px; }
  .content { padding-top: calc(min(150vw, 72vh) - 64px); }
  .fate__text, .fate__desc { max-width: none; }
  .fate__keys { max-width: none; padding-right: 24px; margin-top: 8px; }
  /* v49: карта 139px глубже прежней (низ ~232px) — лейбл и имя аркана
     опускаются ниже её нижней кромки */
  .fate__label { margin-top: 80px; }
  .fate { min-height: 270px; }
  .fate__arcana { max-width: none; }
  .tcard { width: 139px; top: -32px; right: 12px; }
  .person { grid-template-columns: 1fr; }
  .step__calc { padding: 11px 13px; }
  .step__calc code { font-size: 13px; }
  .fcell { padding: 13px 14px; }
  .forecast-panel { padding: 18px 16px 20px; }
}

/* ---------- Печать ---------- */
@media print {
  body::before, body::after { display: none; }
  .sidebar, .topbar, .hero-art, .steps-panel__arc, .topbar__actions { display: none !important; }
  body { background: #fff; }
  .fate, .pos, .panel { box-shadow: none; border-color: #c9b98d; background: #fff; }
  .tcard__motes, .tcard::before, .tcard::after { display: none; }
  .fate__num, .pos__letter, .fcell__num { -webkit-text-fill-color: #8a6a2f; }
  .fate__text, .pos__text, .step__lead { color: #333; }
}


/* ---------- Знаки зодиака / Китайская астрология / Натальные карты / Протокол ---------- */
.astro-panel { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 18px; }
.astro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: relative; z-index: 1; }
.astro__tile {
  padding: 16px 18px 15px;
  border-radius: var(--radius-sm);
  background: var(--inset-bg);
  border: 1px solid rgba(217, 183, 121, .13);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.astro__who { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.astro__main { font-size: 24px; font-weight: 700; color: var(--text); letter-spacing: .02em; line-height: 1.15; }
.astro__meta { font-size: 13px; color: var(--gold-bright); }
.astro__text { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.astro__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px dashed rgba(217, 183, 121, .18);
  padding-top: 9px;
}
.astro__row-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.astro__row-val { font-size: 15px; font-weight: 600; color: var(--text); }
.astro__pair {
  position: relative;
  z-index: 1;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}
.astro__pair b { color: var(--gold-bright); }
.astro__note { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); position: relative; z-index: 1; }
.proto__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.proto__item {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--inset-bg);
  border: 1px solid rgba(217, 183, 121, .13);
}
.proto__num {
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  margin-top: 2px;
}
.proto__title { margin: 0 0 5px; font-size: 15px; font-weight: 700; color: var(--text); }
.proto__text { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
/* слитный блок чисел судьбы в «Нумерологии» */
.num-merged {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(217, 183, 121, .16);
  border-radius: var(--radius-sm);
  background: var(--inset-bg);
}
.num-merged__col { padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.num-merged__col + .num-merged__col { border-left: 1px dashed rgba(217, 183, 121, .18); }
.num-merged__num { font-size: 13px; font-weight: 700; color: var(--gold-bright); }
.num-merged__text { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
@media (max-width: 960px) {
  .astro__grid, .num-merged { grid-template-columns: 1fr; }
  .num-merged__col + .num-merged__col { border-left: 0; border-top: 1px dashed rgba(217, 183, 121, .18); }
  .astro__main { font-size: 21px; }
  .astro-panel { padding: 18px 16px 20px; }
}
/* длинные строки протокола — ограничиваем ширину для читаемости */
.proto__item > div { max-width: 900px; }

/* ============================================================
   v7: слитное окно А–Г, канал отношений, число судьбы,
   протоколы КБ, уведомление «данные изменились»
   ============================================================ */

/* --- Слитное окно А/Б/В/Г: одна панель, сетка 2×2 --- */
.pos-panel .posgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.pos-panel .pos { display: flex; flex-direction: column; }
.pos__kb { margin: 8px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.pos__kb b { color: var(--purple); font-weight: 600; }
.pos__text--orig, .astro__text--orig, .fate__desc--orig {
  font-size: 12px; color: var(--faint); font-style: italic;
}
.fate__desc--alt { font-size: 12.5px; line-height: 1.55; color: var(--muted); margin-top: 8px; }
.fate__desc--alt b { color: var(--purple); font-weight: 600; }
@media (max-width: 900px) {
  .pos-panel .posgrid { grid-template-columns: 1fr; }
}

/* --- Канал отношений: три точки в ряд --- */
.fgrid { display: grid; gap: 10px; margin: 10px 0 4px; }
.fgrid--three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .fgrid--three { grid-template-columns: 1fr; } }
.fgrid .fcell { padding: 12px 12px 10px; }
.fgrid .fcell__text { font-size: 12px; line-height: 1.5; }
.chan-comp {
  margin-top: 16px; padding: 16px; border-radius: 14px;
  border: 1px solid var(--border-strong); background: var(--inset-bg);
}
.chan-comp .astro__who { margin-bottom: 6px; }

/* --- Число судьбы --- */
.lp__calc {
  display: block; margin: 8px 0 4px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--inset-bg);
  font-family: var(--mono-font, monospace); font-size: 11.5px; color: var(--gold-soft);
  line-height: 1.5;
}
.lp__num {
  font-size: 44px; line-height: 1.05; font-weight: 600; color: var(--gold-bright);
  margin: 6px 0 2px; font-family: var(--logo-font, inherit);
}
.lp-union {
  display: flex; align-items: center; gap: 18px; margin: 16px 0 4px;
  padding: 14px 18px; border-radius: 14px;
  border: 1px solid var(--border-strong); background: var(--inset-bg);
}
.lp-union__num {
  font-size: 40px; line-height: 1; font-weight: 600; color: var(--gold-bright);
  font-family: var(--logo-font, inherit); min-width: 64px; text-align: center;
}
.lp-union .astro__text { margin: 6px 0 0; }
@media (max-width: 640px) {
  .lp-union { flex-direction: column; text-align: center; }
}
.lp-score {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; padding: 5px 10px; border-radius: 999px; margin-right: 8px;
  font-weight: 700; font-size: 14px; vertical-align: middle;
}
.tone-good .lp-score, .lp-score.tone-good { color: var(--good); border: 1px solid var(--good); }
.tone-hard .lp-score, .lp-score.tone-hard { color: var(--hard); border: 1px solid var(--hard); }
.lp-score.tone-neutral { color: var(--purple); border: 1px solid var(--purple); }

/* --- Протоколы из базы знаний --- */
.proto__sub {
  margin: 20px 0 10px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue-bright); font-weight: 600;
}
.protod__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px) { .protod__grid { grid-template-columns: 1fr; } }
.protod {
  padding: 16px; border-radius: 14px; border: 1px solid var(--border-strong);
  background: var(--inset-bg);
}
.protod__head {
  font-size: 15px; font-weight: 600; color: var(--gold-bright);
  padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--border);
}
.protod__why { margin: 0 0 10px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.kb-lines { margin: 0; display: grid; gap: 8px; }
.kb-lines dt {
  font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--purple); font-weight: 600; margin-bottom: 2px;
}
.kb-lines dd { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); }

/* --- Отложенный расчёт: уведомление и подсветка кнопки --- */
.dirty-notice {
  display: none; align-items: center; gap: 10px; margin: 0 0 14px; padding: 11px 16px;
  border-radius: 12px; font-size: 12.5px; color: var(--gold-bright);
  background: linear-gradient(160deg, rgba(226, 189, 124, .12), rgba(10, 7, 22, .55));
  border: 1px dashed var(--border-strong);
}
.dirty-notice.is-visible { display: flex; }
.dirty-notice::before { content: "↻"; font-size: 15px; line-height: 1; }
.calc-btn--changed {
  /* v65: оставлено только кольцо-сигнал смены данных, без свечения */
  box-shadow: 0 0 0 1px rgba(226, 189, 124, .55);
}

/* Декоративные карты выходят за карточки нарочито (дизайн), но их layout-позиции
   создавали фантомную горизонтальную прокрутку на мобильных — запрещаем её.
   touch-action: pan-y — второй рубеж против зума: на сенсорных экранах
   корневые элементы разрешают только вертикальный пан; пинч и double-tap
   блокируются (переполнений в layout нет — только зум их «создаёт»).
   Дочерние элементы не наследуют touch-action: у стола Таро свои
   touch-action: none (драг карт), у скроллимых блоков — auto. */
html, body { overflow-x: hidden; overflow-x: clip; touch-action: pan-y; }

/* ============================================================
   v8: полная синастрия (6 планет), итог совместимости,
   методики, бейджи КБ, аспектные группы
   ============================================================ */

/* --- Аспектные группы синастрии --- */
.aspgroup {
  margin: 16px 0 0; padding: 16px; border-radius: 14px;
  border: 1px solid var(--border); background: rgba(10, 7, 22, .38);
}
.aspgroup__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-bottom: 8px; margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.aspgroup__title { margin: 0; font-size: 15px; font-weight: 600; color: var(--gold-bright); }
.aspgroup__w {
  font-size: 11px; font-weight: 500; color: var(--muted);
  border: 1px solid var(--border-strong); border-radius: 999px; padding: 2px 8px;
  margin-left: 8px; white-space: nowrap;
}
.asprow {
  display: grid; grid-template-columns: minmax(170px, 1.1fr) auto minmax(150px, 2fr);
  gap: 10px; align-items: baseline; padding: 7px 0;
  border-bottom: 1px dashed var(--border);
}
.asprow:last-child { border-bottom: 0; }
.asprow__name { font-size: 13px; color: var(--bright); font-weight: 500; }
.asprow__asp {
  font-size: 11.5px; font-weight: 700; white-space: nowrap;
  padding: 2px 10px; border-radius: 999px; border: 1px solid currentColor;
}
.asprow__asp.tone-good { color: var(--good); }
.asprow__asp.tone-hard { color: var(--hard); }
.asprow__txt { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
@media (max-width: 720px) {
  .asprow { grid-template-columns: 1fr auto; }
  .asprow__txt { grid-column: 1 / -1; }
}

/* --- Дома (справка «что добавит время рождения») --- */
.housegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px) { .housegrid { grid-template-columns: 1fr; } }
.housecard {
  padding: 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--inset-bg);
}
.housecard__name { font-size: 13.5px; font-weight: 600; color: var(--purple); margin-bottom: 6px; }
.housecard__text { font-size: 12.5px; line-height: 1.55; color: var(--muted); margin: 0; }

/* --- Бейджи «идеально/сложно» из базы знаний --- */
.arcverdict {
  margin-top: 16px; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--border-strong); background: var(--inset-bg);
}
.kb-badge {
  display: inline-block; margin: 8px 8px 0 0; padding: 5px 12px;
  border-radius: 999px; font-size: 12px; line-height: 1.4; font-weight: 500;
  border: 1px solid currentColor;
}
.kb-badge--good { color: var(--good); }
.kb-badge--hard { color: var(--hard); }

/* --- Итог совместимости --- */
.total-score {
  display: flex; align-items: center; gap: 22px; margin: 4px 0 16px;
  padding: 18px 22px; border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(150deg, rgba(226, 189, 124, .10), rgba(10, 7, 22, .55));
}
.total-score__num {
  font-size: 58px; line-height: 1; font-weight: 700; min-width: 96px; text-align: center;
  font-family: var(--logo-font, inherit);
}
.total-score__num.tone-good { color: var(--good); }
.total-score__num.tone-hard { color: var(--hard); }
.total-score__num.tone-neutral { color: var(--gold-bright); }
.total-score__text { font-size: 13.5px; line-height: 1.6; color: var(--bright); }
@media (max-width: 640px) {
  .total-score { flex-direction: column; text-align: center; }
}
.sumtable { width: 100%; border-collapse: collapse; margin: 6px 0 4px; }
.sumtable th, .sumtable td {
  padding: 10px 12px; text-align: left; font-size: 13px;
  border-bottom: 1px solid var(--border); vertical-align: middle;
}
.sumtable th {
  font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--purple); font-weight: 600; border-bottom: 1px solid var(--border-strong);
}
.sumtable td:last-child { text-align: right; white-space: nowrap; }
.sumlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sumlist--ol { list-style: decimal; padding-left: 22px; }
.sumlist li {
  font-size: 13px; line-height: 1.55; color: var(--bright);
  padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: rgba(10, 7, 22, .32);
}
.srctag {
  display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--purple); border: 1px solid var(--purple); vertical-align: 1px;
}

/* --- Методики --- */
.methodgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px) { .methodgrid { grid-template-columns: 1fr; } }
.methodcard {
  padding: 16px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--inset-bg);
}
.methodcard__name { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--gold-bright); }
.methodcard__formula {
  display: block; margin: 10px 0; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: rgba(10, 7, 22, .5);
  font-family: var(--mono-font, monospace); font-size: 11px; color: var(--purple);
  line-height: 1.5; word-break: break-word; white-space: normal;
}


/* === дополнительное звёздное небо + падающие звёзды === */
.starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.starfield__layer {
  position: absolute;
  top: 0; left: 0;
  border-radius: 50%;
  background: transparent;
  /* v67 (оптимизация): слои звёзд вынесены на GPU (will-change: opacity) —
     мерцание больше не перерисовывает огромный painted-область каждый кадр:
     при скролле были просадки до 33мс (p95), после — ~17мс. Эффект тот же */
  will-change: opacity;
}
.starfield__layer--1 {
  width: 1px; height: 1px;
  box-shadow:
        1725px 158px 0 0 rgba(245,216,154,0.51),
        189px 71px 0 0 rgba(245,216,154,0.28),
        549px 1275px 0 0 rgba(245,216,154,0.31),
        1574px 1271px 0 0 rgba(245,216,154,0.45),
        724px 585px 0 0 rgba(245,216,154,0.38),
        1486px 240px 0 0 rgba(245,216,154,0.37),
        72px 259px 0 0 rgba(245,216,154,0.6),
        1142px 1291px 0 0 rgba(245,216,154,0.32),
        950px 1315px 0 0 rgba(245,216,154,0.54),
        551px 1264px 0 0 rgba(245,216,154,0.43),
        681px 415px 0 0 rgba(245,216,154,0.3),
        999px 14px 0 0 rgba(245,216,154,0.34),
        1104px 527px 0 0 rgba(245,216,154,0.53),
        729px 1262px 0 0 rgba(245,216,154,0.64),
        55px 984px 0 0 rgba(245,216,154,0.54),
        1909px 592px 0 0 rgba(245,216,154,0.55),
        1868px 1225px 0 0 rgba(245,216,154,0.28),
        1729px 100px 0 0 rgba(245,216,154,0.32),
        185px 16px 0 0 rgba(245,216,154,0.46),
        2197px 888px 0 0 rgba(245,216,154,0.44),
        217px 860px 0 0 rgba(245,216,154,0.48),
        332px 946px 0 0 rgba(245,216,154,0.62),
        1507px 1342px 0 0 rgba(245,216,154,0.3),
        1676px 151px 0 0 rgba(245,216,154,0.41),
        941px 1168px 0 0 rgba(245,216,154,0.48),
        1032px 349px 0 0 rgba(245,216,154,0.33),
        1192px 1395px 0 0 rgba(245,216,154,0.34),
        2368px 1015px 0 0 rgba(245,216,154,0.6),
        1376px 816px 0 0 rgba(245,216,154,0.56),
        294px 166px 0 0 rgba(245,216,154,0.57),
        2330px 1338px 0 0 rgba(245,216,154,0.63),
        146px 254px 0 0 rgba(245,216,154,0.33),
        173px 1292px 0 0 rgba(245,216,154,0.46),
        1552px 278px 0 0 rgba(245,216,154,0.56),
        1248px 1289px 0 0 rgba(245,216,154,0.46),
        1798px 1300px 0 0 rgba(245,216,154,0.54),
        1015px 691px 0 0 rgba(245,216,154,0.45),
        1675px 320px 0 0 rgba(245,216,154,0.4),
        595px 638px 0 0 rgba(245,216,154,0.51),
        1138px 1336px 0 0 rgba(245,216,154,0.55),
        1807px 1016px 0 0 rgba(245,216,154,0.45),
        239px 796px 0 0 rgba(245,216,154,0.58),
        2019px 1299px 0 0 rgba(245,216,154,0.44),
        898px 767px 0 0 rgba(245,216,154,0.43),
        654px 795px 0 0 rgba(245,216,154,0.38),
        2268px 27px 0 0 rgba(245,216,154,0.58),
        423px 133px 0 0 rgba(245,216,154,0.63),
        660px 1296px 0 0 rgba(245,216,154,0.42),
        483px 752px 0 0 rgba(245,216,154,0.47),
        29px 223px 0 0 rgba(245,216,154,0.51),
        477px 287px 0 0 rgba(245,216,154,0.61),
        1224px 1026px 0 0 rgba(245,216,154,0.5),
        1707px 884px 0 0 rgba(245,216,154,0.29),
        55px 297px 0 0 rgba(245,216,154,0.39),
        1166px 11px 0 0 rgba(245,216,154,0.41),
        57px 373px 0 0 rgba(245,216,154,0.61),
        1416px 517px 0 0 rgba(245,216,154,0.51),
        2380px 465px 0 0 rgba(245,216,154,0.35),
        1411px 67px 0 0 rgba(245,216,154,0.29),
        717px 1011px 0 0 rgba(245,216,154,0.63),
        537px 623px 0 0 rgba(245,216,154,0.64),
        235px 103px 0 0 rgba(245,216,154,0.62),
        539px 1296px 0 0 rgba(245,216,154,0.52),
        1408px 388px 0 0 rgba(245,216,154,0.48),
        1717px 1335px 0 0 rgba(245,216,154,0.65),
        1895px 1068px 0 0 rgba(245,216,154,0.45),
        933px 123px 0 0 rgba(245,216,154,0.43),
        1680px 787px 0 0 rgba(245,216,154,0.65),
        931px 725px 0 0 rgba(245,216,154,0.34),
        1581px 843px 0 0 rgba(245,216,154,0.63),
        297px 492px 0 0 rgba(245,216,154,0.38),
        1309px 239px 0 0 rgba(245,216,154,0.45),
        1676px 1104px 0 0 rgba(245,216,154,0.35),
        2162px 756px 0 0 rgba(245,216,154,0.47),
        205px 924px 0 0 rgba(245,216,154,0.64),
        213px 963px 0 0 rgba(245,216,154,0.53),
        2342px 1388px 0 0 rgba(245,216,154,0.6),
        518px 1270px 0 0 rgba(245,216,154,0.43),
        853px 626px 0 0 rgba(245,216,154,0.42),
        406px 1352px 0 0 rgba(245,216,154,0.65),
        982px 930px 0 0 rgba(245,216,154,0.45),
        505px 3px 0 0 rgba(245,216,154,0.35),
        206px 1017px 0 0 rgba(245,216,154,0.32),
        1625px 1162px 0 0 rgba(245,216,154,0.64),
        216px 1212px 0 0 rgba(245,216,154,0.62),
        1397px 632px 0 0 rgba(245,216,154,0.38),
        329px 1350px 0 0 rgba(245,216,154,0.48),
        2257px 451px 0 0 rgba(245,216,154,0.5),
        493px 1399px 0 0 rgba(245,216,154,0.4),
        1365px 1118px 0 0 rgba(245,216,154,0.44),
        506px 1023px 0 0 rgba(245,216,154,0.5),
        1361px 112px 0 0 rgba(245,216,154,0.4),
        1286px 1058px 0 0 rgba(245,216,154,0.49),
        1907px 1212px 0 0 rgba(245,216,154,0.62),
        1599px 1290px 0 0 rgba(245,216,154,0.32),
        1739px 700px 0 0 rgba(245,216,154,0.35),
        1350px 1297px 0 0 rgba(245,216,154,0.51),
        283px 1245px 0 0 rgba(245,216,154,0.53),
        1338px 1180px 0 0 rgba(245,216,154,0.4),
        2360px 498px 0 0 rgba(245,216,154,0.33),
        797px 710px 0 0 rgba(245,216,154,0.46),
        1168px 384px 0 0 rgba(245,216,154,0.63),
        755px 820px 0 0 rgba(245,216,154,0.29),
        294px 1099px 0 0 rgba(245,216,154,0.55),
        1065px 505px 0 0 rgba(245,216,154,0.45),
        940px 554px 0 0 rgba(245,216,154,0.42),
        2011px 1223px 0 0 rgba(245,216,154,0.63),
        2364px 80px 0 0 rgba(245,216,154,0.36),
        2377px 1025px 0 0 rgba(245,216,154,0.54),
        554px 960px 0 0 rgba(245,216,154,0.33),
        545px 1310px 0 0 rgba(245,216,154,0.29),
        1368px 560px 0 0 rgba(245,216,154,0.31),
        1161px 1098px 0 0 rgba(245,216,154,0.64),
        1516px 680px 0 0 rgba(245,216,154,0.53),
        2158px 594px 0 0 rgba(245,216,154,0.36),
        613px 532px 0 0 rgba(245,216,154,0.65),
        441px 1201px 0 0 rgba(245,216,154,0.48),
        2159px 559px 0 0 rgba(245,216,154,0.32),
        768px 1240px 0 0 rgba(245,216,154,0.62),
        616px 921px 0 0 rgba(245,216,154,0.34),
        1669px 1309px 0 0 rgba(245,216,154,0.44),
        224px 1149px 0 0 rgba(245,216,154,0.48),
        2152px 828px 0 0 rgba(245,216,154,0.34),
        864px 357px 0 0 rgba(245,216,154,0.59),
        1176px 514px 0 0 rgba(245,216,154,0.37),
        1732px 1323px 0 0 rgba(245,216,154,0.48),
        2089px 620px 0 0 rgba(245,216,154,0.29),
        352px 279px 0 0 rgba(245,216,154,0.37),
        1433px 1178px 0 0 rgba(245,216,154,0.35),
        859px 1117px 0 0 rgba(245,216,154,0.35),
        669px 90px 0 0 rgba(245,216,154,0.29),
        2232px 602px 0 0 rgba(245,216,154,0.55),
        1174px 250px 0 0 rgba(245,216,154,0.52),
        53px 982px 0 0 rgba(245,216,154,0.63),
        2364px 1063px 0 0 rgba(245,216,154,0.29),
        710px 288px 0 0 rgba(245,216,154,0.33),
        1123px 1036px 0 0 rgba(245,216,154,0.42),
        791px 555px 0 0 rgba(245,216,154,0.38),
        663px 1201px 0 0 rgba(245,216,154,0.35),
        837px 998px 0 0 rgba(245,216,154,0.35),
        1492px 553px 0 0 rgba(245,216,154,0.37),
        222px 1230px 0 0 rgba(245,216,154,0.47),
        2113px 1033px 0 0 rgba(245,216,154,0.45),
        548px 96px 0 0 rgba(245,216,154,0.35),
        859px 1028px 0 0 rgba(245,216,154,0.38),
        661px 188px 0 0 rgba(245,216,154,0.34),
        2108px 171px 0 0 rgba(245,216,154,0.32),
        1185px 1237px 0 0 rgba(245,216,154,0.29),
        1299px 620px 0 0 rgba(245,216,154,0.46),
        379px 1391px 0 0 rgba(245,216,154,0.4),
        509px 325px 0 0 rgba(245,216,154,0.39),
        1995px 446px 0 0 rgba(245,216,154,0.58),
        1297px 1329px 0 0 rgba(245,216,154,0.58),
        507px 594px 0 0 rgba(245,216,154,0.34),
        1341px 1231px 0 0 rgba(245,216,154,0.32),
        913px 201px 0 0 rgba(245,216,154,0.38),
        1672px 1092px 0 0 rgba(245,216,154,0.35),
        803px 1024px 0 0 rgba(245,216,154,0.48),
        54px 270px 0 0 rgba(245,216,154,0.55),
        608px 39px 0 0 rgba(245,216,154,0.42);
  animation: starTwinkle1 7s ease-in-out infinite alternate;
}
.starfield__layer--2 {
  width: 2px; height: 2px;
  box-shadow:
        681px 668px 0 0 rgba(255,248,226,0.84),
        1985px 706px 0 0 rgba(255,248,226,0.92),
        1473px 168px 0 0 rgba(255,248,226,0.96),
        1199px 1083px 0 0 rgba(255,248,226,0.66),
        804px 1270px 0 0 rgba(255,248,226,0.84),
        268px 953px 0 0 rgba(255,248,226,0.89),
        2006px 853px 0 0 rgba(255,248,226,0.92),
        1068px 427px 0 0 rgba(255,248,226,0.82),
        1212px 715px 0 0 rgba(255,248,226,0.69),
        1813px 53px 0 0 rgba(255,248,226,0.58),
        808px 212px 0 0 rgba(255,248,226,0.58),
        703px 1044px 0 0 rgba(255,248,226,0.73),
        2145px 402px 0 0 rgba(255,248,226,0.59),
        32px 781px 0 0 rgba(255,248,226,0.9),
        995px 1015px 0 0 rgba(255,248,226,0.7),
        1670px 186px 0 0 rgba(255,248,226,0.55),
        1268px 110px 0 0 rgba(255,248,226,0.74),
        506px 131px 0 0 rgba(255,248,226,0.68),
        847px 316px 0 0 rgba(255,248,226,0.87),
        840px 416px 0 0 rgba(255,248,226,0.82),
        2107px 832px 0 0 rgba(255,248,226,0.63),
        1853px 1148px 0 0 rgba(255,248,226,0.72),
        710px 180px 0 0 rgba(255,248,226,0.85),
        2081px 976px 0 0 rgba(255,248,226,0.83),
        2004px 501px 0 0 rgba(255,248,226,0.64),
        1146px 1041px 0 0 rgba(255,248,226,0.79),
        1153px 18px 0 0 rgba(255,248,226,0.58),
        452px 1047px 0 0 rgba(255,248,226,0.97),
        450px 476px 0 0 rgba(255,248,226,0.81),
        1058px 1108px 0 0 rgba(255,248,226,0.64),
        1158px 1028px 0 0 rgba(255,248,226,0.56),
        1999px 695px 0 0 rgba(255,248,226,0.94),
        1594px 434px 0 0 rgba(255,248,226,0.73),
        977px 1035px 0 0 rgba(255,248,226,0.98),
        2210px 189px 0 0 rgba(255,248,226,0.55),
        318px 880px 0 0 rgba(255,248,226,0.95),
        1280px 51px 0 0 rgba(255,248,226,0.74),
        2048px 742px 0 0 rgba(255,248,226,0.69),
        994px 1218px 0 0 rgba(255,248,226,0.78),
        1235px 385px 0 0 rgba(255,248,226,0.96),
        2358px 454px 0 0 rgba(255,248,226,0.97),
        1157px 216px 0 0 rgba(255,248,226,0.78),
        316px 894px 0 0 rgba(255,248,226,0.7),
        1193px 851px 0 0 rgba(255,248,226,0.56),
        978px 734px 0 0 rgba(255,248,226,0.92),
        1166px 645px 0 0 rgba(255,248,226,0.63),
        610px 638px 0 0 rgba(255,248,226,0.78),
        261px 687px 0 0 rgba(255,248,226,0.88),
        2208px 97px 0 0 rgba(255,248,226,0.66),
        1230px 340px 0 0 rgba(255,248,226,0.98),
        1456px 308px 0 0 rgba(255,248,226,0.95),
        1119px 810px 0 0 rgba(255,248,226,0.67),
        637px 936px 0 0 rgba(255,248,226,0.91),
        1339px 1164px 0 0 rgba(255,248,226,0.59),
        1480px 127px 0 0 rgba(255,248,226,0.78),
        1022px 315px 0 0 rgba(255,248,226,0.59),
        1351px 694px 0 0 rgba(255,248,226,0.86),
        196px 753px 0 0 rgba(255,248,226,0.77),
        227px 729px 0 0 rgba(255,248,226,0.64),
        2380px 572px 0 0 rgba(255,248,226,0.58);
  animation: starTwinkle2 11s ease-in-out infinite alternate;
}
@keyframes starTwinkle1 { from { opacity: .5; } to { opacity: .92; } }
@keyframes starTwinkle2 { from { opacity: .65; } to { opacity: 1; } }

.shooting-star {
  position: absolute;
  width: 130px;
  height: 1.5px;
  /* v67: анимация transform+opacity — на композиторе (без перерисовки) */
  will-change: transform, opacity;
  /* v56 (оптимизация): drop-shadow убран — фильтр на движущемся элементе
     стоил ~4 FPS; ореол имитирован более широким светлым участком градиента */
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,248,226,.38) 40%, rgba(255,250,232,.75) 70%, #fff 96%);
  border-radius: 50%;
  opacity: 0;
  transform: rotate(-28deg);
}
.shooting-star--1 { top: 7%;  left: 82%; animation: shoot1 19s linear infinite; }
.shooting-star--2 { top: 24%; left: 52%; animation: shoot2r 26s linear infinite; animation-delay: 7s; }
.shooting-star--3 { top: 4%;  left: 30%; animation: shoot3r 34s linear infinite; animation-delay: 15s; }
@keyframes shoot1 {
  0%   { transform: translate(0,0) rotate(-28deg); opacity: 0; }
  2%   { opacity: 1; }
  9%   { transform: translate(-480px,250px) rotate(-28deg); opacity: 0; }
  100% { transform: translate(-480px,250px) rotate(-28deg); opacity: 0; }
}
/* летящая вправо: наклон +28°, белый «головной» конец справа ведёт полёт */
@keyframes shoot2r {
  0%   { transform: translate(0,0) rotate(28deg); opacity: 0; }
  2%   { opacity: 1; }
  9%   { transform: translate(460px,240px) rotate(28deg); opacity: 0; }
  100% { transform: translate(460px,240px) rotate(28deg); opacity: 0; }
}
@keyframes shoot3r {
  0%   { transform: translate(0,0) rotate(24deg); opacity: 0; }
  2%   { opacity: 1; }
  8%   { transform: translate(520px,230px) rotate(24deg); opacity: 0; }
  100% { transform: translate(520px,230px) rotate(24deg); opacity: 0; }
}

/* === слой 3: дополнительные звёзды (gen_starfield_layer3.py) === */
.starfield__layer--3 {
  width: 1px; height: 1px;
  box-shadow:
        2276px 1355px 0 0 rgba(245, 216, 154, 0.51),
        634px 388px 0 0 rgba(255, 248, 226, 0.82),
        239px 1186px 0 0 rgba(245, 216, 154, 0.36),
        249px 642px 0 0 rgba(245, 216, 154, 0.52),
        2392px 976px 0 0 rgba(245, 216, 154, 0.27),
        2175px 322px 0 0 rgba(255, 248, 226, 0.73),
        2080px 164px 0 0 rgba(255, 248, 226, 0.53),
        280px 1218px 0 0 rgba(245, 216, 154, 0.56),
        963px 826px 0 0 rgba(245, 216, 154, 0.28),
        2333px 504px 0 0 rgba(255, 248, 226, 0.55),
        162px 1268px 0 0 rgba(245, 216, 154, 0.46),
        2390px 1157px 0 0 rgba(190, 215, 255, 0.43),
        1068px 418px 0 0 rgba(245, 216, 154, 0.44),
        1286px 488px 0 0 rgba(255, 248, 226, 0.80),
        536px 1375px 0 0 rgba(255, 248, 226, 0.62),
        1872px 647px 0 0 rgba(190, 215, 255, 0.66),
        297px 19px 0 0 rgba(190, 215, 255, 0.77),
        2306px 204px 0 0 rgba(245, 216, 154, 0.42),
        873px 1036px 0 0 rgba(245, 216, 154, 0.28),
        1429px 140px 0 0 rgba(255, 248, 226, 0.62),
        1513px 583px 0 0 rgba(255, 248, 226, 0.90),
        2225px 619px 0 0 rgba(245, 216, 154, 0.31),
        2166px 16px 0 0 rgba(255, 248, 226, 0.78),
        2271px 613px 0 0 rgba(255, 248, 226, 0.80),
        424px 275px 0 0 rgba(245, 216, 154, 0.59),
        438px 1133px 0 0 rgba(245, 216, 154, 0.35),
        1154px 1238px 0 0 rgba(255, 248, 226, 0.57),
        1404px 416px 0 0 rgba(255, 248, 226, 0.59),
        1081px 1035px 0 0 rgba(245, 216, 154, 0.50),
        208px 189px 0 0 rgba(245, 216, 154, 0.43),
        1133px 90px 0 0 rgba(190, 215, 255, 0.65),
        535px 1304px 0 0 rgba(245, 216, 154, 0.25),
        661px 904px 0 0 rgba(255, 248, 226, 0.94),
        1751px 1148px 0 0 rgba(245, 216, 154, 0.45),
        308px 305px 0 0 rgba(255, 248, 226, 0.50),
        1512px 1192px 0 0 rgba(255, 248, 226, 0.75),
        1760px 261px 0 0 rgba(255, 248, 226, 0.75),
        1493px 81px 0 0 rgba(245, 216, 154, 0.27),
        860px 1396px 0 0 rgba(245, 216, 154, 0.58),
        421px 724px 0 0 rgba(245, 216, 154, 0.34),
        1664px 1271px 0 0 rgba(255, 248, 226, 0.85),
        969px 332px 0 0 rgba(255, 248, 226, 0.84),
        725px 844px 0 0 rgba(190, 215, 255, 0.79),
        1360px 843px 0 0 rgba(245, 216, 154, 0.26),
        1016px 546px 0 0 rgba(190, 215, 255, 0.72),
        442px 783px 0 0 rgba(245, 216, 154, 0.31),
        1927px 455px 0 0 rgba(190, 215, 255, 0.75),
        1885px 716px 0 0 rgba(245, 216, 154, 0.32),
        932px 456px 0 0 rgba(255, 248, 226, 0.64),
        791px 816px 0 0 rgba(245, 216, 154, 0.26),
        284px 571px 0 0 rgba(245, 216, 154, 0.37),
        2086px 818px 0 0 rgba(190, 215, 255, 0.54),
        2196px 678px 0 0 rgba(245, 216, 154, 0.50),
        472px 534px 0 0 rgba(255, 248, 226, 0.92),
        1087px 78px 0 0 rgba(245, 216, 154, 0.32),
        1779px 707px 0 0 rgba(245, 216, 154, 0.29),
        1284px 893px 0 0 rgba(245, 216, 154, 0.52),
        2094px 236px 0 0 rgba(245, 216, 154, 0.47),
        2361px 389px 0 0 rgba(190, 215, 255, 0.55),
        1786px 3px 0 0 rgba(255, 248, 226, 0.61),
        2205px 1373px 0 0 rgba(255, 248, 226, 0.73),
        1766px 143px 0 0 rgba(255, 248, 226, 0.59),
        1352px 1276px 0 0 rgba(245, 216, 154, 0.60),
        510px 615px 0 0 rgba(190, 215, 255, 0.53),
        1672px 668px 0 0 rgba(255, 248, 226, 0.73),
        1211px 1135px 0 0 rgba(255, 248, 226, 0.68),
        1722px 1361px 0 0 rgba(255, 248, 226, 0.56),
        712px 1260px 0 0 rgba(245, 216, 154, 0.60),
        1663px 1122px 0 0 rgba(245, 216, 154, 0.46),
        1244px 587px 0 0 rgba(255, 248, 226, 0.88),
        2375px 1242px 0 0 rgba(245, 216, 154, 0.33),
        1904px 904px 0 0 rgba(245, 216, 154, 0.49),
        875px 1046px 0 0 rgba(190, 215, 255, 0.58),
        695px 1349px 0 0 rgba(190, 215, 255, 0.59),
        2111px 1359px 0 0 rgba(255, 248, 226, 0.54),
        1372px 191px 0 0 rgba(245, 216, 154, 0.48),
        962px 1377px 0 0 rgba(245, 216, 154, 0.55),
        815px 301px 0 0 rgba(245, 216, 154, 0.36),
        1002px 973px 0 0 rgba(190, 215, 255, 0.41),
        298px 932px 0 0 rgba(245, 216, 154, 0.48),
        2357px 398px 0 0 rgba(190, 215, 255, 0.57),
        1572px 1012px 0 0 rgba(245, 216, 154, 0.52),
        604px 1343px 0 0 rgba(245, 216, 154, 0.40),
        436px 870px 0 0 rgba(255, 248, 226, 0.81),
        2121px 951px 0 0 rgba(245, 216, 154, 0.33),
        1020px 248px 0 0 rgba(255, 248, 226, 0.52),
        1903px 1367px 0 0 rgba(245, 216, 154, 0.42),
        2289px 1219px 0 0 rgba(190, 215, 255, 0.61),
        1812px 1254px 0 0 rgba(190, 215, 255, 0.53),
        2067px 873px 0 0 rgba(245, 216, 154, 0.55),
        2244px 913px 0 0 rgba(255, 248, 226, 0.87),
        1944px 921px 0 0 rgba(190, 215, 255, 0.76),
        1012px 1305px 0 0 rgba(255, 248, 226, 0.62),
        2135px 992px 0 0 rgba(245, 216, 154, 0.35),
        1124px 900px 0 0 rgba(245, 216, 154, 0.48),
        1170px 480px 0 0 rgba(245, 216, 154, 0.28),
        1309px 1106px 0 0 rgba(245, 216, 154, 0.35),
        617px 473px 0 0 rgba(255, 248, 226, 0.54),
        625px 438px 0 0 rgba(245, 216, 154, 0.39),
        1669px 677px 0 0 rgba(245, 216, 154, 0.27),
        1703px 127px 0 0 rgba(245, 216, 154, 0.45),
        1720px 797px 0 0 rgba(255, 248, 226, 0.59),
        2392px 40px 0 0 rgba(255, 248, 226, 0.91),
        2358px 779px 0 0 rgba(255, 248, 226, 0.89),
        1440px 611px 0 0 rgba(245, 216, 154, 0.43),
        1716px 1102px 0 0 rgba(245, 216, 154, 0.53),
        2236px 1235px 0 0 rgba(245, 216, 154, 0.53),
        1999px 449px 0 0 rgba(245, 216, 154, 0.58),
        1989px 59px 0 0 rgba(245, 216, 154, 0.35),
        1656px 338px 0 0 rgba(245, 216, 154, 0.39),
        522px 1274px 0 0 rgba(245, 216, 154, 0.56),
        1613px 1212px 0 0 rgba(245, 216, 154, 0.45),
        111px 171px 0 0 rgba(255, 248, 226, 0.75),
        555px 945px 0 0 rgba(255, 248, 226, 0.79),
        1065px 776px 0 0 rgba(245, 216, 154, 0.32),
        1862px 669px 0 0 rgba(190, 215, 255, 0.53),
        1552px 569px 0 0 rgba(255, 248, 226, 0.65),
        1726px 516px 0 0 rgba(245, 216, 154, 0.53),
        1926px 39px 0 0 rgba(255, 248, 226, 0.88),
        213px 716px 0 0 rgba(190, 215, 255, 0.70),
        281px 1334px 0 0 rgba(245, 216, 154, 0.33),
        127px 506px 0 0 rgba(245, 216, 154, 0.26),
        83px 1272px 0 0 rgba(245, 216, 154, 0.32),
        517px 969px 0 0 rgba(245, 216, 154, 0.31),
        2310px 446px 0 0 rgba(190, 215, 255, 0.67),
        1049px 755px 0 0 rgba(245, 216, 154, 0.42),
        469px 335px 0 0 rgba(245, 216, 154, 0.31),
        442px 1185px 0 0 rgba(245, 216, 154, 0.61),
        1277px 1179px 0 0 rgba(245, 216, 154, 0.26),
        1537px 812px 0 0 rgba(255, 248, 226, 0.80),
        812px 155px 0 0 rgba(255, 248, 226, 0.92),
        994px 208px 0 0 rgba(245, 216, 154, 0.47),
        1235px 1229px 0 0 rgba(190, 215, 255, 0.68),
        2318px 84px 0 0 rgba(245, 216, 154, 0.55),
        1754px 1354px 0 0 rgba(255, 248, 226, 0.66),
        2072px 1326px 0 0 rgba(255, 248, 226, 0.67),
        1720px 1003px 0 0 rgba(255, 248, 226, 0.65),
        1483px 1301px 0 0 rgba(245, 216, 154, 0.29),
        1883px 313px 0 0 rgba(255, 248, 226, 0.90),
        2137px 1332px 0 0 rgba(245, 216, 154, 0.41),
        2204px 990px 0 0 rgba(190, 215, 255, 0.51),
        1099px 660px 0 0 rgba(245, 216, 154, 0.42),
        354px 571px 0 0 rgba(245, 216, 154, 0.57),
        998px 951px 0 0 rgba(245, 216, 154, 0.58),
        1552px 688px 0 0 rgba(245, 216, 154, 0.46),
        1331px 372px 0 0 rgba(245, 216, 154, 0.26),
        1453px 529px 0 0 rgba(255, 248, 226, 0.72),
        1131px 1138px 0 0 rgba(245, 216, 154, 0.38),
        782px 175px 0 0 rgba(255, 248, 226, 0.50),
        1664px 1000px 0 0 rgba(255, 248, 226, 0.61),
        984px 975px 0 0 rgba(190, 215, 255, 0.62),
        2010px 917px 0 0 rgba(245, 216, 154, 0.49),
        381px 602px 0 0 rgba(255, 248, 226, 0.86),
        996px 627px 0 0 rgba(245, 216, 154, 0.33),
        1511px 969px 0 0 rgba(255, 248, 226, 0.80),
        1408px 871px 0 0 rgba(255, 248, 226, 0.75),
        2254px 677px 0 0 rgba(245, 216, 154, 0.62),
        1858px 554px 0 0 rgba(245, 216, 154, 0.38),
        944px 247px 0 0 rgba(245, 216, 154, 0.36),
        1292px 244px 0 0 rgba(245, 216, 154, 0.52),
        758px 392px 0 0 rgba(190, 215, 255, 0.70),
        1983px 566px 0 0 rgba(190, 215, 255, 0.49),
        2148px 1222px 0 0 rgba(255, 248, 226, 0.83),
        411px 397px 0 0 rgba(190, 215, 255, 0.51),
        1478px 367px 0 0 rgba(245, 216, 154, 0.36),
        2187px 259px 0 0 rgba(255, 248, 226, 0.64),
        223px 1133px 0 0 rgba(245, 216, 154, 0.35),
        517px 1306px 0 0 rgba(245, 216, 154, 0.36),
        2010px 210px 0 0 rgba(190, 215, 255, 0.75),
        2351px 582px 0 0 rgba(245, 216, 154, 0.57),
        1804px 697px 0 0 rgba(245, 216, 154, 0.42),
        210px 517px 0 0 rgba(245, 216, 154, 0.32),
        1956px 233px 0 0 rgba(190, 215, 255, 0.78),
        1641px 1007px 0 0 rgba(245, 216, 154, 0.55),
        219px 310px 0 0 rgba(245, 216, 154, 0.28),
        2305px 622px 0 0 rgba(245, 216, 154, 0.31),
        1016px 242px 0 0 rgba(255, 248, 226, 0.54),
        1704px 1241px 0 0 rgba(255, 248, 226, 0.75),
        924px 1070px 0 0 rgba(245, 216, 154, 0.47),
        1813px 608px 0 0 rgba(255, 248, 226, 0.67),
        1756px 625px 0 0 rgba(255, 248, 226, 0.89),
        246px 1248px 0 0 rgba(245, 216, 154, 0.46),
        406px 425px 0 0 rgba(245, 216, 154, 0.61),
        1083px 1352px 0 0 rgba(255, 248, 226, 0.78),
        982px 355px 0 0 rgba(245, 216, 154, 0.28),
        641px 5px 0 0 rgba(245, 216, 154, 0.45),
        1924px 596px 0 0 rgba(190, 215, 255, 0.56),
        1180px 579px 0 0 rgba(245, 216, 154, 0.26),
        1859px 145px 0 0 rgba(245, 216, 154, 0.51),
        1083px 1280px 0 0 rgba(245, 216, 154, 0.50),
        810px 870px 0 0 rgba(245, 216, 154, 0.47),
        920px 1326px 0 0 rgba(245, 216, 154, 0.29),
        1088px 291px 0 0 rgba(190, 215, 255, 0.46),
        679px 629px 0 0 rgba(245, 216, 154, 0.28),
        2331px 591px 0 0 rgba(255, 248, 226, 0.77),
        1919px 622px 0 0 rgba(255, 248, 226, 0.70),
        1115px 1024px 0 0 rgba(255, 248, 226, 0.81),
        1793px 164px 0 0 rgba(190, 215, 255, 0.62),
        1769px 660px 0 0 rgba(245, 216, 154, 0.47),
        105px 187px 0 0 rgba(245, 216, 154, 0.47),
        2356px 1202px 0 0 rgba(190, 215, 255, 0.49),
        1103px 1180px 0 0 rgba(190, 215, 255, 0.78),
        717px 963px 0 0 rgba(245, 216, 154, 0.26),
        1811px 569px 0 0 rgba(245, 216, 154, 0.44),
        2397px 892px 0 0 rgba(245, 216, 154, 0.32),
        2014px 186px 0 0 rgba(255, 248, 226, 0.79),
        1672px 682px 0 0 rgba(245, 216, 154, 0.42),
        428px 329px 0 0 rgba(255, 248, 226, 0.64),
        2029px 590px 0 0 rgba(255, 248, 226, 0.65),
        1640px 1126px 0 0 rgba(245, 216, 154, 0.50),
        360px 644px 0 0 rgba(255, 248, 226, 0.52),
        474px 827px 0 0 rgba(245, 216, 154, 0.34),
        4px 1346px 0 0 rgba(190, 215, 255, 0.75),
        1892px 846px 0 0 rgba(190, 215, 255, 0.75),
        2123px 740px 0 0 rgba(245, 216, 154, 0.27),
        2041px 1280px 0 0 rgba(245, 216, 154, 0.48),
        211px 416px 0 0 rgba(255, 248, 226, 0.70),
        536px 589px 0 0 rgba(245, 216, 154, 0.35),
        1985px 248px 0 0 rgba(255, 248, 226, 0.70),
        980px 324px 0 0 rgba(245, 216, 154, 0.26),
        56px 1131px 0 0 rgba(255, 248, 226, 0.64),
        920px 232px 0 0 rgba(245, 216, 154, 0.40),
        481px 1326px 0 0 rgba(245, 216, 154, 0.42),
        2041px 597px 0 0 rgba(255, 248, 226, 0.87),
        1119px 850px 0 0 rgba(245, 216, 154, 0.44),
        1934px 499px 0 0 rgba(245, 216, 154, 0.56),
        592px 785px 0 0 rgba(255, 248, 226, 0.71),
        2081px 279px 0 0 rgba(190, 215, 255, 0.48),
        1131px 849px 0 0 rgba(255, 248, 226, 0.89),
        2079px 547px 0 0 rgba(245, 216, 154, 0.38),
        1158px 611px 0 0 rgba(255, 248, 226, 0.87),
        2375px 1351px 0 0 rgba(245, 216, 154, 0.56),
        608px 914px 0 0 rgba(245, 216, 154, 0.43),
        1413px 680px 0 0 rgba(245, 216, 154, 0.45),
        2225px 772px 0 0 rgba(245, 216, 154, 0.45),
        1318px 386px 0 0 rgba(245, 216, 154, 0.42),
        978px 1171px 0 0 rgba(255, 248, 226, 0.94),
        1682px 89px 0 0 rgba(245, 216, 154, 0.39),
        1937px 780px 0 0 rgba(245, 216, 154, 0.37),
        623px 1014px 0 0 rgba(190, 215, 255, 0.55),
        517px 1028px 0 0 rgba(245, 216, 154, 0.61),
        1359px 205px 0 0 rgba(245, 216, 154, 0.61),
        1803px 204px 0 0 rgba(255, 248, 226, 0.89),
        1871px 31px 0 0 rgba(245, 216, 154, 0.44),
        1679px 1340px 0 0 rgba(255, 248, 226, 0.83),
        306px 961px 0 0 rgba(245, 216, 154, 0.61),
        1085px 693px 0 0 rgba(245, 216, 154, 0.54),
        1628px 1330px 0 0 rgba(255, 248, 226, 0.78),
        1345px 1381px 0 0 rgba(245, 216, 154, 0.28),
        1556px 648px 0 0 rgba(255, 248, 226, 0.89),
        1998px 1108px 0 0 rgba(245, 216, 154, 0.48),
        280px 480px 0 0 rgba(245, 216, 154, 0.26),
        1177px 465px 0 0 rgba(255, 248, 226, 0.78),
        1777px 201px 0 0 rgba(190, 215, 255, 0.70),
        411px 908px 0 0 rgba(245, 216, 154, 0.53),
        1226px 59px 0 0 rgba(255, 248, 226, 0.57),
        229px 600px 0 0 rgba(245, 216, 154, 0.27),
        1764px 298px 0 0 rgba(245, 216, 154, 0.38),
        1687px 1159px 0 0 rgba(255, 248, 226, 0.61),
        737px 348px 0 0 rgba(245, 216, 154, 0.50),
        1566px 1269px 0 0 rgba(255, 248, 226, 0.58),
        2038px 1194px 0 0 rgba(245, 216, 154, 0.50),
        1888px 1306px 0 0 rgba(245, 216, 154, 0.30),
        1045px 1365px 0 0 rgba(255, 248, 226, 0.61),
        1905px 589px 0 0 rgba(255, 248, 226, 0.50),
        647px 151px 0 0 rgba(245, 216, 154, 0.50),
        1415px 1203px 0 0 rgba(255, 248, 226, 0.70),
        1737px 512px 0 0 rgba(190, 215, 255, 0.52),
        1237px 407px 0 0 rgba(190, 215, 255, 0.58),
        1979px 218px 0 0 rgba(255, 248, 226, 0.95),
        2342px 735px 0 0 rgba(245, 216, 154, 0.34),
        1209px 44px 0 0 rgba(245, 216, 154, 0.46),
        1621px 562px 0 0 rgba(190, 215, 255, 0.79),
        200px 1241px 0 0 rgba(255, 248, 226, 0.50),
        1172px 471px 0 0 rgba(190, 215, 255, 0.70),
        1443px 448px 0 0 rgba(245, 216, 154, 0.47),
        1026px 1388px 0 0 rgba(245, 216, 154, 0.49),
        560px 1286px 0 0 rgba(245, 216, 154, 0.53),
        161px 632px 0 0 rgba(255, 248, 226, 0.54),
        136px 1186px 0 0 rgba(245, 216, 154, 0.54),
        538px 184px 0 0 rgba(255, 248, 226, 0.66),
        1338px 850px 0 0 rgba(190, 215, 255, 0.76),
        541px 1104px 0 0 rgba(245, 216, 154, 0.31),
        1498px 1087px 0 0 rgba(245, 216, 154, 0.57),
        1116px 336px 0 0 rgba(190, 215, 255, 0.60),
        1973px 604px 0 0 rgba(245, 216, 154, 0.35),
        1387px 235px 0 0 rgba(245, 216, 154, 0.53),
        308px 288px 0 0 rgba(245, 216, 154, 0.42),
        924px 1385px 0 0 rgba(245, 216, 154, 0.53),
        1627px 1141px 0 0 rgba(245, 216, 154, 0.52),
        1616px 28px 0 0 rgba(255, 248, 226, 0.66),
        506px 931px 0 0 rgba(245, 216, 154, 0.35),
        1073px 1197px 0 0 rgba(190, 215, 255, 0.55),
        1521px 221px 0 0 rgba(245, 216, 154, 0.39),
        1931px 51px 0 0 rgba(245, 216, 154, 0.50),
        2299px 671px 0 0 rgba(245, 216, 154, 0.48),
        906px 1326px 0 0 rgba(245, 216, 154, 0.59),
        1901px 618px 0 0 rgba(245, 216, 154, 0.27),
        477px 286px 0 0 rgba(245, 216, 154, 0.49),
        152px 623px 0 0 rgba(245, 216, 154, 0.27);
  animation: starTwinkle1 9s ease-in-out infinite alternate;
}


/* ============================================================
   Правый нижний угол (v40): контейнер .corner-actions — баннер
   «Расклад Таро» (модал-заглушка «в разработке»; статичен, лишь
   слегка пульсирует) стоит СЛЕВА от стрелки «наверх», оба на
   одном уровне: в ряд на ВСЕХ экранах (раньше на ≤640px были
   колонкой). v38: баннер +20% (280→336px, мобильный 184→221px)
   и слегка отодвинут влево от стрелки (gap 14→26px, мобильный
   10→18px). v39: ЕЩЁ ЛЕВЕЕ — gap 26→46px, мобильный 18→30px
   (fallback ≤330px: gap 22px, чтобы ряд влезал в 320px).
   v40: пара сдвинута НИЖЕ к нижнему краю (bottom 16→6px,
   мобильный 12→6px) и поднята НАД вуалью .page-fade —
   z-index 40→85: при переходе-затухании «наверх» (fadeToTop)
   баннер и стрелка НЕ гаснут и видны всегда; модал (z-100)
   по-прежнему выше обоих.
   v41: стрелка «наверх» СКРЫТА по умолчанию (opacity+visibility,
   не display — место в ряду сохраняется, баннер не сдвигается)
   и появляется ТОЛЬКО у нижнего края страницы: класс .is-visible
   вешает updateToTopVisibility в app.js (scroll/resize/load,
   допуск 8px); при клике fadeToTop прячет её немедленно.
   Клик по стрелке — мгновенный перенос в самый верх через
   переход с затуханием .page-fade (fadeToTop в app.js);
   анимация прокрутки удалена.
   v35: стрелка +15% (76→87.5px, мобильная 56→64.5px).
   v62: баннер «Расклад Таро» ЧУТЬ ПРАВЕЕ (запрос заказчика):
   gap 46→32px, мобильный 30→20px — стрелка и правый край
   экрана на месте, баннер придвинут к стрелке; невидимые зоны
   клика ::after (±12px / ±8px) по-прежнему не пересекаются
   (32 > 12+12, 20 > 8+8); fallback ≤330px (gap 9px) без изменений
   — ряд в 320px по-прежнему влезает.
   v63: ЕЩЁ ЧУТЬ ПРАВЕЕ (повторный запрос заказчика «чуть чуть»):
   gap 32→26px, мобильный 20→18px — зоны клика по-прежнему не
   пересекаются (26 > 24, 18 > 16), запас 2px.
   v74 (2026-11-30, запрос заказчика): КОМПОЗИЦИЯ НИЗА ПЕРЕСТРОЕНА.
   Баннер «Расклад Таро» ЦЕНТРИРУЕТСЯ по ширине экрана: выведен из
   потока .corner-actions (position: fixed; left 50% + translate
   -50% 0 — свойство translate не конфликтует ни с hover-transform,
   ни с пульсацией soonPulse, которая анимирует scale). Стрелка
   «наверх» остаётся в правом углу и получила ЗЕРКАЛЬНУЮ копию в
   левом углу — контейнер .corner-actions--left (left 18px, картинка
   отражается scaleX(-1)); обе стрелки ведут наверх одинаково, их
   видимость и клики обрабатываются в app.js v67 для ВСЕХ .to-top
   сразу. Итоговый ряд: [стрелка] … баннер по центру … [стрелка].
   На узких экранах ширина баннера считается формулой, чтобы ряд
   влезал без наложений: ≤700px — min(426px, 100vw − 230px);
   ≤640px — min(280px, 100vw − 170px); ≤330px — min(280px,
   100vw − 158px) (запас 8.5px с каждой стороны до зоны клика
   стрелки, ::after баннера ±8px не пересекает стрелки).
   v75 (2026-11-30, запрос заказчика): ЗОНА СРАБАТЫВАНИЯ БАННЕРА
   БОЛЬШЕ + ОТЗЫВЧИВОСТЬ. Невидимая рамка клика ::after расширена:
   десктоп ±14px по вертикали и ±22px по горизонтали (было ±12px
   равномерно) — до стрелок при 701px запас 10px; ≤700px — ±12px
   по вертикали / ±10px по горизонтали (зазор до стрелок 0.5px при
   худших 641px — карты не перекрываются); ≤640px — ±8px без
   изменений. Плюс touch-action: manipulation — браузер не тратит
   время на ожидание двойного тапа на тач-экранах (сама скорость
   отклика поднята в tarot-table.js v60: открытие по pointerdown,
   по нажатию, а не по отпусканию). ============================================================ */
.corner-actions {
  position: fixed;
  right: 18px;
  bottom: 6px; /* v40: ниже к краю (было 16px) */
  z-index: 85; /* v40: выше вуали .page-fade (80) — угол не гаснет при переходе; ниже модала (100) */
  display: flex;
  align-items: flex-end;
  gap: 26px; /* v39: ещё левее (+20px к v38); v62: чуть правее (46→32px); v63: ещё чуть правее (32→26px); v74: баннер вышел из потока — gap остался только как запас */
}
/* v74: зеркальный контейнер левой стрелки «наверх» — та же геометрия,
   отражённая к левому углу; картинка зеркалится scaleX(-1) на img,
   чтобы hover-scale кнопки не затирал отражение */
.corner-actions--left {
  left: 18px;
  right: auto;
}
.corner-actions--left .to-top img { transform: scaleX(-1); }
.to-top {
  width: 87.5px;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .55));
  transition: transform .25s ease, filter .25s ease,
              opacity .3s ease, visibility 0s linear .3s;
  animation: toTopFloat 3.4s ease-in-out infinite;
  /* v41: скрыта по умолчанию — видна только у нижнего края страницы */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform .25s ease, filter .25s ease,
              opacity .3s ease, visibility 0s linear 0s;
}
.to-top img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.to-top:hover,
.to-top:focus-visible {
  transform: scale(1.09);
  filter: drop-shadow(0 0 14px rgba(226, 189, 124, .45)) drop-shadow(0 6px 16px rgba(0, 0, 0, .55));
}
.to-top:active { transform: scale(.94); }
.to-top:focus-visible {
  outline: 2px solid rgba(226, 189, 124, .55);
  outline-offset: 4px;
  border-radius: 14px;
}
@keyframes toTopFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -6px; }
}
/* Баннер «Расклад Таро»: не левитирует — статичен, слегка пульсирует */
.to-soon {
  width: 426px; /* v73 (2026-11-30): +15% (было 370); на ≤700px сужается формулой — см. медиа ниже */
  position: fixed; /* v74: центрирование по экрану (left 50% + translate), вне потока .corner-actions; предок body без transform/filter — якорь вьюпорт */
  left: 50%; /* v74: горизонтальный центр экрана */
  bottom: 6px; /* v74: тот же низ, что у стрелок */
  translate: -50% 0; /* v74: сдвиг на половину своей ширины; не конфликтует с transform:hover и scale-пульсацией */
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation; /* v75: без задержки двойного тапа на тач-экранах */
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .55));
  transition: transform .25s ease, filter .25s ease;
  animation: soonPulse 3s ease-in-out infinite;
}
/* v41: зона срабатывания больше видимой картинки — невидимая рамка
   вокруг баннера (визуал кнопки не меняется).
   v75 (2026-11-30, запрос заказчика): зона ЕЩЁ БОЛЬШЕ — ±14px по
   вертикали и ±22px по горизонтали (было ±12px равномерно); до
   невидимых зон стрелок на худшей десктопной ширине 701px запас
   10px; на ≤700px рамка скромнее (±12px/±10px — зазор 0.5px при
   641px), на ≤640px — прежние ±8px (см. медиа ниже) */
.to-soon::after {
  content: "";
  position: absolute;
  inset: -14px -22px;
}
/* v70 (2026-11-28, запрос заказчика): клик по баннеру — он растворяется
   (opacity → 0 за .55s) ОДНОВРЕМЕННО с переходом на виртуальный стол
   (открывает его tarot-table.js v38, вход «затуханием» v35); после
   закрытия стола класс снимается — баннер проявляется обратно
   v76 (2026-11-30): растворение быстрее — .55s→.3s: нажатие чувствуется
   сразу, баннер не «висит» полупрозрачным во время короткого перехода */
.to-soon.is-dissolved { opacity: 0; pointer-events: none; transition: opacity .3s ease; }
/* v77 (2026-11-30, запрос заказчика): «пресс»-пульсация баннера —
   подтверждение нажатия, когда стол не может открыться прямо сейчас
   (идёт другой переход: открытие/закрытие стола, стрелка «наверх»):
   клик больше не пропадает молча. Класс вешает tarot-table.js v63 и
   снимает через 300мс — обычная пульсация soonPulse продолжается */
.to-soon.is-press { animation: soonPress .3s ease; }
@keyframes soonPress {
  0% { scale: 1; } 45% { scale: .93; } 100% { scale: 1; }
}
.to-soon img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.to-soon:hover,
.to-soon:focus-visible {
  transform: scale(1.04);
  filter: drop-shadow(0 0 16px rgba(226, 189, 124, .45)) drop-shadow(0 6px 16px rgba(0, 0, 0, .55));
}
.to-soon:active { transform: scale(.97); }
.to-soon:focus-visible {
  outline: 2px solid rgba(226, 189, 124, .55);
  outline-offset: 4px;
  border-radius: 14px;
}
@keyframes soonPulse {
  0%, 100% { scale: 1; }
  50%      { scale: 1.03; }
}
@media (max-width: 700px) {
  /* v74: узкие экраны (вплоть до мобильной границы 640px) — баннер
     слегка сжимается, чтобы ряд «стрелка | баннер | стрелка» не
     подходил вплотную к угловым стрелкам (запас ≈9.5px с каждой
     стороны при худшей ширине 641px) */
  .to-soon { width: min(426px, calc(100vw - 230px)); }
  /* v75: рамка клика скромнее, чем на десктопе, — не задеть стрелки:
     ±12px по вертикали, ±10px по горизонтали (при худших 641px
     зазор до зоны стрелок 0.5px) */
  .to-soon::after { inset: -12px -10px; }
}
@media (max-width: 640px) {
  /* v74: ряд из ТРЁХ элементов — левая стрелка | баннер по центру |
     правая стрелка; ширина баннера считается формулой, чтобы он
     поместился между стрелками (12 + 64.5 + 8.5 запаса с каждой
     стороны); раньше: баннер слева от стрелки (v39–v63) */
  .corner-actions { right: 12px; bottom: 6px; gap: 18px; } /* v40: ниже к краю (было 12px); v63: чуть правее */
  .corner-actions--left { left: 12px; } /* v74: зеркало правого контейнера */
  .to-top { width: 64.5px; }
  .to-soon { width: min(280px, calc(100vw - 170px)); } /* v74: центр экрана между двумя стрелками (v73 был 280px) */
  /* v41: расширение клика меньше на мобильных — не перекрыть стрелки:
     формула ширины оставляет по 8.5px до зон клика стрелок, ±8px
     баннера не пересекают их (v75: без изменений на ≤640px) */
  .to-soon::after { inset: -8px; }
}
@media (max-width: 330px) {
  /* сверхузкие экраны (320px): v74 — поля стрелок ужимаются до 6px,
     баннер считается от 158px (6 + 64.5 + 8.5 с каждой стороны):
     при 320px баннер ≈162px, ряд влезает без наложений и горскролла */
  .corner-actions { gap: 9px; right: 6px; }
  .corner-actions--left { left: 6px; }
  .to-soon { width: min(280px, calc(100vw - 158px)); }
}
@media (prefers-reduced-motion: reduce) {
  .to-top, .to-soon { animation: none; transition: none; }
  .page-fade { transition: none; }
}

/* Переход-затемнение для прыжка «наверх»: экран плавно гаснет, в темноте
   страница мгновенно переносится к началу и снова проявляется */
.page-fade {
  position: fixed;
  inset: 0;
  z-index: 80; /* v40: выше контента, но НИЖЕ угловых кнопок (85) — они не гаснут; ниже модала (100) */
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  /* v76 (2026-11-30): затемнение быстрее — .32s→.22s (отклик кнопок
     «наверх» и «Расклад Таро»; тайминги в tarot-table.js v62 под
     новую длительность согласованы) */
  transition: opacity .22s ease;
}
.page-fade.is-on { opacity: 1; }

/* ---------- Раздел «Расклад Таро» — модал-заглушка (в разработке) ---------- */
.soon-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 3, 12, .74);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease;
}
.soon-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.soon-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  padding: 42px 34px 38px;
  text-align: center;
  border: 1px solid rgba(217, 183, 121, .35);
  border-radius: 20px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(60, 34, 110, .35), rgba(8, 7, 23, 0) 60%),
    linear-gradient(180deg, rgba(19, 14, 40, .97), rgba(10, 7, 22, .97));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .6), 0 0 40px rgba(226, 189, 124, .07);
  transform: translateY(18px) scale(.97);
  transition: transform .28s ease;
}
.soon-overlay.is-open .soon-modal { transform: none; }
.soon-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(217, 183, 121, .25);
  border-radius: 50%;
  background: rgba(10, 7, 22, .6);
  color: var(--gold-bright);
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.soon-close svg { width: 18px; height: 18px; }
.soon-close:hover,
.soon-close:focus-visible {
  border-color: rgba(217, 183, 121, .6);
  box-shadow: 0 0 14px rgba(226, 189, 124, .25);
  transform: rotate(90deg);
}
.soon-cards { display: flex; justify-content: center; margin: 0 0 22px; }
.soon-cards img {
  width: 96px;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(217, 183, 121, .35);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .5);
}
.soon-cards img:nth-child(1) { transform: rotate(-12deg) translateY(8px); }
.soon-cards img:nth-child(2) { position: relative; z-index: 1; margin: 0 -14px; transform: translateY(-4px); }
.soon-cards img:nth-child(3) { transform: rotate(12deg) translateY(8px); }
.soon-modal .astro-gold-title { font-size: clamp(28px, 5vw, 38px); margin-bottom: 16px; }
.soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 7px 16px;
  border: 1px solid rgba(217, 183, 121, .4);
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(226, 189, 124, .08);
}
.soon-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 8px rgba(245, 216, 154, .9);
  animation: soonDot 1.6s ease-in-out infinite;
}
@keyframes soonDot {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}
.soon-text {
  margin: 0 auto;
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}
@media (max-width: 640px) {
  .soon-modal { padding: 36px 22px 32px; }
  .soon-cards { margin-bottom: 18px; }
  .soon-cards img { width: 82px; }
}
@media (prefers-reduced-motion: reduce) {
  .soon-overlay, .soon-modal, .soon-close { transition: none; }
  .soon-badge__dot { animation: none; }
}

/* ===================================================================
   v9.8 (2026-11-27): Колода Таро внизу главной — кнопка-рубашка
   Клик по рубашке открывает первую карту; каждый следующий клик —
   следующая карта по порядку (78); после последней карты снова
   рубашка. Логика — initDeckViewer в js/app_part5.js.
   =================================================================== */
.deck-panel {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; padding: 26px 24px 30px; text-align: center;
}
.deck-panel__head { max-width: 640px; }
.deck-panel__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  background: linear-gradient(180deg, #f8e7bb 15%, var(--gold) 48%, #a87e37 78%, #f2d492);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* v55: подсказка «Нажмите на рубашку…» и счётчик «карта N из 78»
   удалены по просьбе заказчика (v9.9) */
.deck-panel__stage {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  margin-top: 4px;
}
.deck-card {
  /* v55: карта на всю доступную высоту (не мешая заголовку сверху и
     подписи снизу): высота ограничена 72vh, 700px и доступной шириной
     панели (100vw − 96px padding), пропорция 420/735 сохраняется.
     v56: position: relative — под вуаль засветления; фон-подложка на
     время загрузки лица карты (чтобы не мигало пустотой).
     v57 (2026-11-26): высота ещё +5% (72→76vh, 700→735px) по просьбе
     заказчика. */
  position: relative;
  height: min(76vh, 735px, calc((100vw - 96px) * 1.75));
  width: auto;
  aspect-ratio: 420 / 735;
  padding: 0; border: 0; background: #1a1230; cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(240, 210, 140, .75),
    0 0 0 2.5px rgba(64, 36, 12, .55),
    0 0 0 3.5px rgba(240, 210, 140, .35),
    0 14px 34px rgba(3, 1, 10, .5);
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease, box-shadow .2s ease;
}
.deck-card__img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; user-select: none;
  -webkit-user-drag: none;
}
/* v58 (2026-11-27): новая рубашка «звёзды и самоцветы» — отображается
   целиком, без обрезки (contain); класс is-back ставит/снимает JS
   (apply() в initDeckViewer): рубашка — contain, лица карт — cover.
   Фон #000 сливается с чёрным фоном рубашки (боковые поля contain). */
.deck-card__img.is-back {
  object-fit: contain; background: #000;
}
.deck-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(245, 216, 154, .95),
    0 0 0 2.5px rgba(64, 36, 12, .55),
    0 0 0 3.5px rgba(240, 210, 140, .45),
    0 0 22px rgba(226, 189, 124, .35),
    0 20px 40px rgba(3, 1, 10, .55);
}
.deck-card:active { transform: translateY(0) scale(.97); }
.deck-card:focus { outline: none; }
.deck-card:focus-visible { outline: 2px solid rgba(226, 189, 124, .7); outline-offset: 4px; }
/* v62 (2026-11-28), запрос заказчика: переход колоды — НАСТОЯЩИЙ ПЕРЕВОРОТ
   карты, как при раскладе на столе Таро: тот же механизм, что у
   .tt-card__inner (rotateY, .7s, тот же easing --tt-ease). Кнопка —
   двухсторонняя карта: внутренний слой .deck-card__flip вращается на
   180deg за каждый шаг; стороны скрыты обратной стороной
   (backface-visibility). Вспышка-затемнение (веил deckCardLighten)
   удалена. Подмену картинки выполняет initDeckViewer (app_part5.js)
   ДО старта флипа — на открывающейся стороне уже лежит следующий контент. */
.deck-card__flip {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transition: transform .7s var(--tt-ease, cubic-bezier(.22, .8, .28, 1));
}
.deck-card__side {
  position: absolute; inset: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-user-select: none; user-select: none;
}
.deck-card__side--face { transform: rotateY(180deg); }
.deck-panel__info { display: flex; flex-direction: column; gap: 4px; }
.deck-panel__name {
  font-family: var(--serif); font-size: 17px; font-weight: 600;
  letter-spacing: .06em; color: var(--gold-bright);
}
@media (prefers-reduced-motion: reduce) {
  .deck-card { transition: none; }
  .deck-card__flip { transition: none; }
}
