:root {
  --bg: #050403;
  --bg-soft: #100c08;
  --panel: rgba(20, 16, 12, .76);
  --panel-solid: #17110c;
  --line: rgba(244, 198, 103, .22);
  --line-strong: rgba(244, 198, 103, .42);
  --gold: #d9a741;
  --gold-hot: #ffe1a0;
  --wine: #5d1018;
  --wine-hot: #c21d2b;
  --green-note: #b7c79a;
  --paper-note: #d8b887;
  --ink: #fff4dc;
  --muted: #cbb993;
  --dark: #050403;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, .48);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #050403 0%, #130d08 42%, #050403 100%);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.45;
}

body.modal-open { overflow: hidden; }

button, a, input { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  transform: translateY(-140%);
  padding: 10px 14px;
  color: #100b05;
  background: #fff;
  border-radius: var(--radius);
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.topbar {
  position: fixed;
  z-index: 80;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 68px;
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  background: linear-gradient(180deg, rgba(5, 4, 3, .94), rgba(5, 4, 3, .24));
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  line-height: .9;
  text-transform: uppercase;
}

.brand small {
  color: var(--gold-hot);
  font-size: 10px;
  font-weight: 800;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  box-shadow: 0 0 26px rgba(217, 167, 65, .36);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ghost-btn,
.icon-btn,
.telegram-nav-btn,
.footer-tg-btn,
.primary-btn,
.secondary-btn,
.support-btn,
.danger-btn,
.text-btn {
  min-height: 46px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform .18s ease, filter .18s ease, border-color .18s ease, background-color .18s ease;
}

.ghost-btn,
.icon-btn,
.telegram-nav-btn,
.footer-tg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, .075);
  border: 1px solid rgba(255, 255, 255, .13);
}

.ghost-btn {
  padding: 0 12px;
  font-size: 13px;
  font-weight: 850;
}

.telegram-nav-btn {
  width: 46px;
  padding: 0;
  color: #fff;
  background: linear-gradient(135deg, #229ed9, #146a99);
  box-shadow: 0 12px 30px rgba(34, 158, 217, .22);
}

.telegram-nav-btn span {
  display: none;
}

.mega-bars {
  width: 21px;
  height: 21px;
  color: #ff9d22;
  fill: currentColor;
  filter: drop-shadow(0 0 10px rgba(255, 157, 34, .45));
}

.mega-top-btn {
  text-transform: uppercase;
}

.icon-btn {
  width: 46px;
}

.ghost-btn svg,
.icon-btn svg,
.telegram-nav-btn svg,
.footer-tg-btn svg,
.primary-btn svg,
.support-btn svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  flex: 0 0 auto;
}

.ghost-btn:active,
.icon-btn:active,
.primary-btn:active,
.secondary-btn:active,
.support-btn:active,
.danger-btn:active,
.text-btn:active {
  transform: scale(.98);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  padding: calc(82px + env(safe-area-inset-top)) 14px calc(16px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 12px;
  background: #050403;
}

.hero-media,
.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-media {
  z-index: -5;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  filter: saturate(1.03) contrast(1.04);
}

.hero-scrim {
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(5, 4, 3, .30) 0%, rgba(5, 4, 3, .03) 24%, rgba(5, 4, 3, .24) 48%, rgba(5, 4, 3, .82) 75%, rgba(5, 4, 3, .98) 100%),
    linear-gradient(90deg, rgba(5, 4, 3, .90) 0%, rgba(5, 4, 3, .50) 50%, rgba(5, 4, 3, .08) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  box-shadow:
    inset 0 0 110px rgba(0, 0, 0, .64),
    inset 0 -130px 110px rgba(0, 0, 0, .88);
}

.poster-copy {
  position: relative;
  z-index: 4;
  align-self: start;
  max-width: 560px;
  padding-top: 4px;
  text-shadow: 0 3px 20px rgba(0, 0, 0, .82);
}

.poster-kicker,
.eyebrow {
  margin: 0 0 8px;
  color: var(--gold-hot);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.poster-copy h1 {
  max-width: 10.2ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(43px, 13.5vw, 82px);
  line-height: .9;
  font-weight: 900;
}

.poster-copy h1 span {
  display: block;
  color: var(--gold-hot);
}

.lead {
  max-width: 520px;
  margin: 12px 0 0;
  color: #f1dfbd;
  font-size: 16px;
  font-weight: 720;
}

.hero-deal {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 8px;
  margin-top: auto;
}

.deal-main,
.deal-mini {
  border: 1px solid rgba(255, 225, 160, .30);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(31, 24, 16, .82), rgba(9, 7, 5, .70));
  box-shadow: 0 18px 44px rgba(0, 0, 0, .34);
  backdrop-filter: blur(12px);
}

.deal-main {
  padding: 12px;
}

.deal-main b {
  display: block;
  color: var(--gold-hot);
  font-size: clamp(29px, 8vw, 34px);
  line-height: .95;
  font-weight: 950;
  white-space: nowrap;
}

.deal-main span,
.deal-mini span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.deal-mini {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.deal-mini span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--gold-hot);
  box-shadow: 0 0 12px rgba(255, 225, 160, .58);
}

.hero-actions,
.inline-cta {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  align-self: end;
  width: 100%;
  max-width: 620px;
}

.primary-btn,
.secondary-btn,
.support-btn,
.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 142px;
  min-height: 54px;
  padding: 0 18px;
  border: 0;
  font-weight: 950;
}

.primary-btn {
  flex: 1 1 210px;
  color: #120b05;
  background: linear-gradient(135deg, #fff0b8, #d69c2f 45%, #9a5e17);
  box-shadow: 0 18px 44px rgba(217, 167, 65, .32), inset 0 1px rgba(255, 255, 255, .42);
}

.hero-actions .primary-btn,
.hero-actions .secondary-btn {
  min-height: 60px;
  padding: 0 20px;
  font-size: 14px;
  line-height: 1.05;
}

.hero-actions .primary-btn {
  position: relative;
  flex: 1.35 1 260px;
  overflow: hidden;
  border: 1px solid rgba(255, 232, 168, .62);
  box-shadow:
    0 22px 58px rgba(217, 167, 65, .38),
    inset 0 1px rgba(255, 255, 255, .52);
}

.hero-actions .primary-btn::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -55%;
  width: 44%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
  animation: buttonShine 4.8s ease-in-out infinite;
}

.hero-actions .primary-btn span,
.hero-actions .primary-btn svg {
  position: relative;
  z-index: 1;
}

.secondary-btn {
  color: var(--ink);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
}

.hero-actions .secondary-btn {
  flex: 1 1 190px;
  color: var(--gold-hot);
  background:
    linear-gradient(135deg, rgba(255, 225, 160, .12), rgba(93, 16, 24, .24)),
    rgba(5, 4, 3, .56);
  border-color: rgba(255, 225, 160, .34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035);
}

.instruction-btn::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold-hot);
  box-shadow: 0 0 18px rgba(255, 225, 160, .68);
}

.primary-btn:hover,
.support-btn:hover {
  filter: brightness(1.07);
}

.text-btn {
  min-height: 46px;
  padding: 0 2px;
  color: var(--gold-hot);
  background: transparent;
  border: 0;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 5px;
}

@keyframes buttonShine {
  0%, 56% { transform: translateX(0) rotate(18deg); opacity: 0; }
  66% { opacity: .9; }
  86%, 100% { transform: translateX(360%) rotate(18deg); opacity: 0; }
}

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 58px 16px;
}

.section-split {
  display: grid;
  gap: 22px;
  align-items: center;
}

.section-content {
  min-width: 0;
}

.moriarty-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 225, 160, .24);
  border-radius: var(--radius);
  background: #090604;
  box-shadow: var(--shadow);
}

.moriarty-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(5, 4, 3, .28));
  box-shadow: inset 0 0 50px rgba(0, 0, 0, .36);
}

.moriarty-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.moriarty-visual.compact img {
  aspect-ratio: 16 / 13;
}

.section-heading h2,
.payoff-copy h2 {
  max-width: 820px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 8vw, 58px);
  line-height: 1;
}

.gold-word {
  color: var(--gold-hot);
  text-shadow: 0 0 28px rgba(217, 167, 65, .34);
}

.timeline {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  min-height: 132px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 225, 160, .22);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 225, 160, .16), transparent 34%),
    linear-gradient(160deg, rgba(31, 23, 15, .88), rgba(7, 5, 4, .78));
  box-shadow: 0 22px 70px rgba(0, 0, 0, .36);
}

.timeline article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 225, 160, .88), transparent);
}

.timeline article::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 225, 160, .18);
  border-radius: 50%;
  opacity: .44;
  box-shadow: inset 0 0 22px rgba(217, 167, 65, .14);
}

.timeline .step-ref {
  background:
    radial-gradient(circle at 90% 4%, rgba(194, 29, 43, .20), transparent 35%),
    linear-gradient(160deg, rgba(36, 18, 17, .88), rgba(7, 5, 4, .78));
}

.timeline .step-link {
  background:
    radial-gradient(circle at 92% 0%, rgba(183, 199, 154, .18), transparent 36%),
    linear-gradient(160deg, rgba(24, 31, 19, .72), rgba(7, 5, 4, .80));
}

.timeline span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #130b04;
  background: linear-gradient(135deg, var(--gold-hot), var(--gold));
  border-radius: 50%;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 10px 28px rgba(217, 167, 65, .26);
}

.timeline small {
  display: block;
  margin-bottom: 7px;
  color: var(--gold-hot);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.timeline article > div {
  position: relative;
  z-index: 1;
}

.timeline h3,
.support-panel h3,
.admin-card h3,
.admin-login h2 {
  margin: 0 0 5px;
  font-size: 21px;
  line-height: 1.08;
}

.timeline p,
.support-panel p,
.admin-card p,
.admin-login p,
.admin-header p,
.modal-copy {
  margin: 0;
  color: var(--muted);
}

.inline-cta {
  margin-top: 18px;
  align-items: center;
}

.payoff-section {
  max-width: none;
  display: grid;
  gap: 24px;
  padding-left: max(16px, calc((100vw - 1240px) / 2));
  padding-right: max(16px, calc((100vw - 1240px) / 2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(93, 16, 24, .42), rgba(217, 167, 65, .13)),
    #0c0906;
}

.payoff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.payoff-grid div {
  position: relative;
  display: flex;
  min-height: 224px;
  flex-direction: column;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(255, 225, 160, .24);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 225, 160, .20), transparent 36%),
    linear-gradient(160deg, rgba(44, 31, 16, .88), rgba(6, 4, 3, .74));
  box-shadow: var(--shadow);
}

.payoff-grid div::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(255, 225, 160, .16);
  border-radius: 50%;
  opacity: .5;
  box-shadow: inset 0 0 28px rgba(217, 167, 65, .16);
}

.payoff-grid div:nth-child(2) {
  background:
    radial-gradient(circle at 100% 0%, rgba(194, 29, 43, .24), transparent 38%),
    linear-gradient(160deg, rgba(55, 24, 18, .90), rgba(6, 4, 3, .76));
}

.payoff-grid div:nth-child(3) {
  border-color: rgba(255, 225, 160, .38);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 225, 160, .28), transparent 40%),
    linear-gradient(160deg, rgba(68, 44, 16, .90), rgba(8, 5, 3, .78));
}

.payoff-grid small {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 5px 8px;
  color: #1a0f05;
  background: linear-gradient(135deg, var(--gold-hot), var(--gold));
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.payoff-grid b {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--gold-hot);
  font-size: clamp(40px, 11vw, 72px);
  line-height: 1;
}

.payoff-money {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 10px;
  color: #fff8df;
  font-size: clamp(25px, 4.8vw, 40px);
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
  text-shadow: 0 0 28px rgba(217, 167, 65, .32);
}

.metric-card b {
  display: block;
  color: var(--gold-hot);
  font-size: 32px;
  line-height: 1;
}

.payoff-grid span {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 8px;
  color: #ead7ad;
  font-size: 13px;
  font-weight: 850;
}

.metric-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.payoff-grid p {
  position: relative;
  z-index: 1;
  margin: auto 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 225, 160, .15);
  color: #ead7ad;
  font-size: 14px;
  font-weight: 690;
}

.payoff-note,
.partner-percent-note,
.calc-note {
  margin: 0;
  color: #ead7ad;
  font-size: 17px;
  font-weight: 820;
}

.payoff-note strong {
  color: var(--gold-hot);
  font-size: 1.25em;
}

.partner-percent-note {
  position: relative;
  overflow: hidden;
  padding: 14px 16px;
  border: 1px solid rgba(255, 67, 67, .68);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 67, 67, .42), transparent 36%),
    linear-gradient(135deg, rgba(125, 10, 18, .80), rgba(25, 4, 5, .88));
  box-shadow:
    0 0 0 1px rgba(255, 214, 154, .12),
    0 0 36px rgba(255, 42, 42, .32),
    0 18px 50px rgba(0, 0, 0, .34);
  animation: redAttentionPulse 1.25s ease-in-out infinite;
}

.partner-percent-note::before {
  content: "";
  position: absolute;
  inset: -30% auto -30% -28%;
  width: 24%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .34), transparent);
  animation: redAttentionShine 2.7s ease-in-out infinite;
}

.partner-percent-note a {
  position: relative;
  z-index: 1;
  color: #fff5c9;
  font-weight: 950;
  text-decoration: none;
}

@keyframes redAttentionPulse {
  0%, 100% {
    transform: scale(1);
    border-color: rgba(255, 67, 67, .58);
    box-shadow:
      0 0 0 0 rgba(255, 42, 42, .34),
      0 0 30px rgba(255, 42, 42, .26),
      0 18px 50px rgba(0, 0, 0, .34);
  }
  50% {
    transform: scale(1.012);
    border-color: rgba(255, 171, 82, .90);
    box-shadow:
      0 0 0 8px rgba(255, 42, 42, .08),
      0 0 52px rgba(255, 42, 42, .48),
      0 22px 60px rgba(0, 0, 0, .42);
  }
}

@keyframes redAttentionShine {
  0%, 48% { transform: translateX(0) rotate(18deg); opacity: 0; }
  58% { opacity: .85; }
  82%, 100% { transform: translateX(620%) rotate(18deg); opacity: 0; }
}

.traffic-grid {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.traffic-grid div {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(31, 23, 14, .78), rgba(7, 5, 3, .68));
  box-shadow: var(--shadow);
}

.traffic-icon {
  grid-row: span 2;
  width: 46px;
  height: 46px;
  padding: 10px;
  color: var(--gold-hot);
  fill: currentColor;
  border: 1px solid rgba(255, 225, 160, .24);
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  box-shadow: 0 0 26px rgba(217, 167, 65, .18);
}

.telegram-icon { color: #43b7ef; }
.site-icon { color: var(--gold-hot); }
.btc-icon { color: #f6b33b; }

.traffic-grid b {
  display: block;
  color: var(--gold-hot);
  font-size: 21px;
  line-height: 1;
}

.traffic-grid span {
  display: block;
  margin-top: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}

.support-panel,
.admin-card,
.admin-login,
.metric-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.support-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  padding: 18px;
}

.support-gradient-text {
  display: inline;
  color: #ffe6a5;
  background:
    linear-gradient(90deg, #fff6c9 0%, #f2b84d 28%, #ff5b5b 56%, #9bddff 78%, #fff6c9 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(217, 167, 65, .20));
  animation: supportTextFlow 5.2s ease-in-out infinite;
}

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

.support-mega-icon {
  width: 42px;
  height: 42px;
  padding: 9px;
  color: var(--gold-hot);
  fill: currentColor;
  border: 1px solid rgba(255, 225, 160, .25);
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}

.support-btn {
  grid-column: 1 / -1;
  color: #fff;
  background: linear-gradient(135deg, #229ed9, #146a99);
  box-shadow: 0 16px 36px rgba(34, 158, 217, .24);
}

.screens {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}

.earnings-section {
  position: relative;
  overflow: hidden;
}

.earnings-section::before {
  content: "";
  position: absolute;
  inset: 18px 16px auto auto;
  width: 170px;
  height: 170px;
  pointer-events: none;
  border: 1px solid rgba(255, 225, 160, .18);
  border-radius: 50%;
  box-shadow: inset 0 0 44px rgba(217, 167, 65, .10), 0 0 48px rgba(217, 167, 65, .08);
}

.earnings-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 24px;
}

.earnings-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(34, 25, 15, .88), rgba(7, 5, 4, .86));
  box-shadow: var(--shadow);
}

.earnings-grid article.hot {
  border-color: rgba(255, 225, 160, .52);
  background:
    linear-gradient(160deg, rgba(90, 47, 12, .72), rgba(12, 8, 5, .90));
}

.earnings-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.earnings-grid b {
  display: block;
  margin-top: 8px;
  color: var(--gold-hot);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 12vw, 58px);
  line-height: .92;
  text-shadow: 0 0 28px rgba(217, 167, 65, .25);
}

.earnings-grid p {
  margin: 10px 0 0;
  color: #e4d0a7;
  font-weight: 720;
}

.calc-note {
  position: relative;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.profit-calculator {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-top: 24px;
}

.calc-result,
.calc-controls {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 225, 160, .28);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 225, 160, .18), transparent 34%),
    linear-gradient(160deg, rgba(52, 33, 12, .82), rgba(6, 4, 3, .78));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.calc-result::before,
.calc-controls::before {
  content: "₽  $  ₽  $";
  position: absolute;
  right: -18px;
  bottom: 8px;
  z-index: -1;
  color: rgba(255, 225, 160, .09);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(76px, 18vw, 142px);
  font-weight: 950;
  line-height: .82;
  white-space: nowrap;
  transform: rotate(-10deg);
  pointer-events: none;
}

.calc-result::after,
.calc-controls::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: -1;
  pointer-events: none;
  border: 1px solid rgba(255, 225, 160, .10);
  border-radius: calc(var(--radius) - 2px);
  background:
    repeating-linear-gradient(135deg, rgba(255, 225, 160, .055) 0 2px, transparent 2px 12px),
    radial-gradient(circle at 18% 80%, rgba(217, 167, 65, .10), transparent 34%);
  opacity: .9;
}

.calc-result > *,
.calc-controls > * {
  position: relative;
  z-index: 1;
}

.calc-result {
  padding: 20px;
}

.calc-result span {
  display: block;
  color: var(--gold-hot);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.calc-result b {
  display: block;
  margin-top: 8px;
  color: var(--gold-hot);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 13vw, 76px);
  line-height: .9;
  text-shadow: 0 0 38px rgba(217, 167, 65, .30);
}

.calc-result p {
  max-width: 560px;
  margin: 12px 0 0;
  color: #ead7ad;
  font-weight: 750;
}

.calc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.calc-pills span {
  padding: 8px 10px;
  color: #1a0f05;
  background: linear-gradient(135deg, var(--gold-hot), var(--gold));
  border-radius: 999px;
  font-size: 12px;
}

.calc-controls {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.calc-controls label {
  display: grid;
  gap: 8px;
  color: var(--ink);
}

.calc-controls label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.calc-controls strong {
  color: var(--gold-hot);
  font-size: 22px;
  line-height: 1;
}

.calc-controls input[type="range"] {
  min-height: 28px;
  padding: 0;
  accent-color: var(--gold-hot);
  background: transparent;
  border: 0;
}

.login-error {
  margin: 4px 0 0;
  color: #ffb8b8;
  font-weight: 850;
}

.scene-section {
  position: relative;
  isolation: isolate;
  max-width: none;
  min-height: 680px;
  overflow: hidden;
  padding-left: max(16px, calc((100vw - 1160px) / 2));
  padding-right: max(16px, calc((100vw - 1160px) / 2));
  border-top: 1px solid rgba(255, 225, 160, .18);
  background: #070503;
}

.scene-section::before,
.scene-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scene-section::before {
  z-index: 0;
  background-image: var(--scene-image);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: var(--scene-position, 62% center);
  opacity: .86;
  transform: scale(1.015);
}

.scene-section::after {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 4, 3, .90) 0%, rgba(5, 4, 3, .45) 31%, rgba(5, 4, 3, .74) 72%, rgba(5, 4, 3, .96) 100%),
    linear-gradient(90deg, rgba(5, 4, 3, .95) 0%, rgba(5, 4, 3, .72) 50%, rgba(5, 4, 3, .24) 100%);
}

.scene-section > * {
  position: relative;
  z-index: 2;
}

.scene-section .section-split,
.scene-section .timeline,
.scene-section .traffic-grid,
.scene-section .payoff-grid,
.scene-section .earnings-grid,
.scene-section .profit-calculator,
.scene-section .support-panel,
.scene-section .payoff-note,
.scene-section .partner-percent-note,
.scene-section .calc-note {
  max-width: 820px;
}

.start-section {
  --scene-image: url("assets/moriarty-start.png");
  --scene-position: 58% center;
}

.payoff-section {
  --scene-image: url("assets/moriarty-payoff.png");
  --scene-position: 62% center;
}

.channel-section {
  --scene-image: url("assets/moriarty-traffic.png");
  --scene-position: 58% center;
}

.earnings-section {
  --scene-image: url("assets/moriarty-earnings.png");
  --scene-position: 60% center;
}

.screen-card {
  display: grid;
  gap: 12px;
  min-height: 44px;
  padding: 14px;
  overflow: hidden;
  color: var(--ink);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(34, 25, 15, .86), rgba(8, 6, 4, .86)),
    var(--panel-solid);
  box-shadow: var(--shadow);
}

.screen-top {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--gold-hot);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.screen-top b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 26px;
  color: #120b05;
  background: linear-gradient(135deg, var(--gold-hot), var(--gold));
  border-radius: 999px;
  font-size: 12px;
}

.screen-frame {
  display: grid;
  place-items: center;
  min-height: 206px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 225, 160, .20);
  border-radius: 7px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 225, 160, .16), transparent 45%),
    #f7f7f4;
}

.screen-frame img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .18);
}

.phone-shot img {
  width: auto;
  max-width: 92%;
}

.menu-shot {
  min-height: 148px;
  padding: 16px;
}

.menu-shot img {
  max-height: 82px;
}

.wide-shot img {
  max-height: 190px;
}

.screen-caption {
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 26px 16px calc(26px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.footer button,
.footer-tg-btn {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.footer button {
  color: var(--gold-hot);
  background: transparent;
}

.footer-tg-btn {
  color: #fff;
  background: linear-gradient(135deg, #229ed9, #146a99);
  font-weight: 900;
}

.modal[hidden] { display: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: end center;
  padding: 14px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .70);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  width: min(100%, 660px);
  max-height: min(86svh, 780px);
  overflow: auto;
  padding: 24px 16px 18px;
  border: 1px solid rgba(255, 225, 160, .30);
  border-radius: var(--radius);
  background: #120d09;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .72);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius);
}

.modal-close svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.modal-panel h2 {
  margin: 0 48px 8px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  line-height: 1;
}

.mega-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.mega-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
  text-decoration: none;
}

.mega-link small {
  display: block;
  max-width: 36ch;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mega-link svg {
  width: 22px;
  height: 22px;
  fill: var(--gold-hot);
  flex: 0 0 auto;
}

.instruction-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.instruction-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #080706;
}

.instruction-grid img {
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  background: #fff;
}

.instruction-grid figcaption {
  padding: 12px;
  color: var(--ink);
  font-weight: 800;
}

.admin-body {
  background: #0d0d0d;
}

.admin-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px 14px 48px;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 22px;
}

.admin-logo {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(217, 167, 65, .25);
}

.admin-header h1 {
  margin: 0;
  font-size: clamp(34px, 9vw, 64px);
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
}

.admin-login,
.admin-card {
  padding: 18px;
}

.admin-login {
  max-width: 540px;
}

.admin-login form,
.links-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
}

textarea {
  width: 100%;
  min-height: 112px;
  padding: 12px;
  resize: vertical;
  color: var(--ink);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
}

.admin-dashboard {
  display: grid;
  gap: 18px;
}

.admin-toolbar,
.admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.admin-toolbar h2,
.admin-card h3,
.admin-subhead h4 {
  margin: 0;
}

.admin-subhead {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .10);
}

.admin-subhead h4 {
  color: var(--gold-hot);
  font-size: 16px;
}

.admin-subhead p {
  margin: 4px 0 0;
  color: var(--muted);
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.danger-btn {
  color: #fff;
  background: var(--wine-hot);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric-card {
  padding: 16px;
}

.admin-columns {
  display: grid;
  gap: 18px;
}

.table-wrap {
  margin-top: 12px;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
}

th,
td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  color: var(--gold-hot);
  font-size: 12px;
  text-transform: uppercase;
}

td { color: #f0eadc; }

.link-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
}

.link-row button {
  min-height: 44px;
  color: #fff;
  background: rgba(194, 29, 43, .62);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
}

.save-links { margin-top: 12px; }

.modal-form {
  margin-top: 16px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.wide-field {
  grid-column: 1 / -1;
}

.empty-cell {
  color: var(--muted);
}

@media (max-width: 720px) {
  .scene-section {
    min-height: auto;
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .nav-actions {
    max-width: calc(100vw - 148px);
  }

  .ghost-btn {
    min-height: 42px;
    padding: 0 9px;
    gap: 7px;
  }

  .ghost-btn span {
    max-width: 112px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .telegram-nav-btn {
    width: 42px;
    min-height: 42px;
  }

  .scene-section::before {
    background-position: var(--scene-mobile-position, 68% top);
    opacity: .68;
  }

  .scene-section::after {
    background:
      linear-gradient(180deg, rgba(5, 4, 3, .78) 0%, rgba(5, 4, 3, .52) 30%, rgba(5, 4, 3, .86) 70%, rgba(5, 4, 3, .98) 100%),
      linear-gradient(90deg, rgba(5, 4, 3, .93) 0%, rgba(5, 4, 3, .72) 62%, rgba(5, 4, 3, .28) 100%);
  }

  .start-section { --scene-mobile-position: 63% top; }
  .payoff-section { --scene-mobile-position: 55% top; }
  .channel-section { --scene-mobile-position: 60% top; }
  .earnings-section { --scene-mobile-position: 58% top; }

  .admin-shell {
    padding: 12px 10px 36px;
  }

  .admin-header {
    display: grid;
    grid-template-columns: 62px 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px 0 16px;
  }

  .admin-logo {
    width: 58px;
    height: 58px;
  }

  .admin-header .secondary-btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .admin-toolbar,
  .admin-card-head {
    display: grid;
    gap: 12px;
  }

  .toolbar-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .toolbar-actions .secondary-btn,
  .toolbar-actions .danger-btn,
  .save-links,
  .admin-login .primary-btn {
    width: 100%;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-card {
    padding: 14px 12px;
  }

  .metric-card b {
    font-size: 28px;
  }

  .admin-card,
  .admin-login {
    padding: 14px;
  }

  .table-wrap {
    overflow: visible;
  }

  table {
    min-width: 0;
  }

  thead {
    display: none;
  }

  tbody {
    display: grid;
    gap: 8px;
  }

  tr {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .045);
  }

  td {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 8px;
    padding: 0;
    border: 0;
    word-break: break-word;
  }

  td::before {
    content: attr(data-label);
    color: var(--gold-hot);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .empty-cell {
    display: block;
  }

  .empty-cell::before {
    content: "";
  }

  .link-row {
    padding: 10px;
  }

  .traffic-grid {
    gap: 8px;
    margin-top: 16px;
  }

  .traffic-grid div {
    grid-template-columns: 32px 1fr;
    gap: 3px 9px;
    padding: 10px 12px;
    min-height: 0;
  }

  .traffic-icon {
    width: 32px;
    height: 32px;
    padding: 7px;
  }

  .traffic-grid b {
    font-size: 18px;
  }

  .traffic-grid span {
    font-size: 12.5px;
    line-height: 1.25;
  }

  .support-panel {
    grid-template-columns: 34px 1fr;
    gap: 10px;
    padding: 12px;
  }

  .support-mega-icon {
    width: 34px;
    height: 34px;
    padding: 7px;
  }

  .support-panel h3 {
    font-size: 18px;
  }

  .support-panel p {
    font-size: 13px;
    line-height: 1.35;
  }

  .profit-calculator {
    gap: 10px;
  }

  .calc-result {
    padding: 16px;
  }

  .calc-controls {
    padding: 12px;
  }
}

@media (max-width: 390px) {
  .ghost-btn span {
    max-width: 118px;
    font-size: 11px;
  }
  .poster-copy h1 { font-size: 40px; }
  .lead { font-size: 15px; }
  .hero-deal { grid-template-columns: 1fr; }
  .hero-actions .secondary-btn { flex: 1 1 100%; }
}

@media (min-width: 640px) {
  .payoff-grid,
  .screens {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .support-panel {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 24px;
  }

  .traffic-grid,
  .earnings-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .modal { place-items: center; }
  .modal-panel { padding: 28px; }
  .instruction-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .link-row {
    grid-template-columns: 1fr 1.8fr auto;
    align-items: end;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .start-section .timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: min(1080px, calc(100vw - 32px));
  }

  .start-section .timeline article {
    grid-template-columns: 1fr;
    min-height: 224px;
  }
}

@media (min-width: 900px) {
  .topbar {
    padding-left: 38px;
    padding-right: 38px;
  }

  .hero {
    min-height: 100vh;
    padding: 124px max(44px, calc((100vw - 1280px) / 2)) 68px;
    grid-template-columns: minmax(520px, 54vw) 1fr;
    grid-template-rows: auto 1fr auto;
    align-items: center;
  }

  .poster-copy,
  .hero-deal,
  .hero-actions {
    grid-column: 1;
  }

  .poster-copy h1 {
    font-size: clamp(74px, 7vw, 118px);
  }

  .lead {
    font-size: 18px;
  }

  .hero-deal {
    max-width: 680px;
  }

  .hero-actions { max-width: 680px; }

  .hero-media img {
    object-position: 76% center;
  }

  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(5, 4, 3, .08) 0%, rgba(5, 4, 3, .40) 82%, rgba(5, 4, 3, .94) 100%),
      linear-gradient(90deg, rgba(5, 4, 3, .99) 0%, rgba(5, 4, 3, .82) 38%, rgba(5, 4, 3, .20) 68%, rgba(5, 4, 3, .03) 100%);
  }

  .section { padding: 90px 24px; }

  .scene-section {
    min-height: 760px;
    padding-left: max(38px, calc((100vw - 1280px) / 2));
    padding-right: max(38px, calc((100vw - 1280px) / 2));
  }

  .scene-section::before {
    background-position: var(--scene-desktop-position, 74% center);
  }

  .scene-section::after {
    background:
      linear-gradient(180deg, rgba(5, 4, 3, .38) 0%, rgba(5, 4, 3, .58) 72%, rgba(5, 4, 3, .95) 100%),
      linear-gradient(90deg, rgba(5, 4, 3, .98) 0%, rgba(5, 4, 3, .86) 36%, rgba(5, 4, 3, .42) 62%, rgba(5, 4, 3, .10) 100%);
  }

  .start-section { --scene-desktop-position: 78% center; }
  .payoff-section { --scene-desktop-position: 76% center; }
  .channel-section { --scene-desktop-position: 76% center; }
  .earnings-section { --scene-desktop-position: 76% center; }

  .section-split {
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, .72fr);
    gap: 34px;
  }

  .scene-section .section-split {
    grid-template-columns: 1fr;
  }

  .scene-section .section-split,
  .scene-section .timeline,
  .scene-section .traffic-grid,
  .scene-section .payoff-grid,
  .scene-section .earnings-grid,
  .scene-section .profit-calculator,
  .scene-section .support-panel,
  .scene-section .payoff-note,
  .scene-section .partner-percent-note,
  .scene-section .calc-note {
    max-width: min(1080px, calc(100vw - 76px));
  }

  .timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .channel-section .traffic-grid {
    grid-template-columns: 1fr;
  }

  .timeline article {
    grid-template-columns: 1fr;
    min-height: 240px;
    padding: 20px;
  }

  .start-section .timeline {
    max-width: min(1120px, calc(100vw - 76px));
  }

  .payoff-grid div {
    min-height: 270px;
    padding: 24px;
  }

  .payoff-grid {
    max-width: min(1120px, calc(100vw - 76px));
  }

  .payoff-section {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-shell { padding: 28px 24px 60px; }
  .metric-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .admin-columns { grid-template-columns: 1.2fr .8fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
