:root {
  --bg: #060913;
  --panel: #0d1324;
  --panel-2: #121a2f;
  --line: rgba(158, 171, 215, 0.18);
  --text: #f6f7fb;
  --muted: #aeb7d5;
  --violet: #8868ff;
  --magenta: #d845d9;
  --gold: #e7b85b;
  --green: #27a46d;
  --danger: #e26b6b;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 18%, rgba(136, 104, 255, 0.26), transparent 28rem),
    radial-gradient(circle at 78% 38%, rgba(216, 69, 217, 0.14), transparent 24rem),
    linear-gradient(180deg, #070a14 0%, #080b15 54%, #050812 100%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(158, 171, 215, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(158, 171, 215, 0.05) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(circle at 50% 42%, black, transparent 74%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 8, 18, 0.96), transparent 34%, transparent 64%, rgba(5, 8, 18, 0.96));
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(6, 9, 19, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--violet), var(--magenta));
  box-shadow: 0 0 28px rgba(136, 104, 255, 0.36);
  overflow: hidden;
}

.brand-mark img {
  width: 42px;
  height: 42px;
  object-fit: cover;
}

.brand-title {
  display: block;
  font-weight: 900;
  font-size: 24px;
  line-height: 1;
  color: #b9a7ff;
}

.brand-subtitle {
  display: block;
  margin-top: 6px;
  color: #dbe1ff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
}

.nav .help-link,
.help-mark {
  width: 34px;
  height: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(231, 184, 91, 0.44);
  border-radius: 50%;
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}

.flash,
.error,
.notice {
  width: min(100% - 36px, 1120px);
  margin: 18px auto 0;
  padding: 14px 16px;
  border-radius: var(--radius);
}

.flash {
  border: 1px solid rgba(158, 171, 215, 0.24);
  background: rgba(18, 26, 47, 0.92);
}

.flash-success,
.notice {
  border: 1px solid rgba(39, 164, 109, 0.34);
  background: rgba(39, 164, 109, 0.12);
}

.flash-info {
  border-color: rgba(136, 104, 255, 0.34);
}

.flash-error {
  border-color: rgba(226, 107, 107, 0.4);
  background: rgba(226, 107, 107, 0.12);
}

.error {
  width: 100%;
  color: #ffd9d9;
  border: 1px solid rgba(226, 107, 107, 0.4);
  background: rgba(226, 107, 107, 0.12);
}

.hero {
  min-height: calc(100vh - 82px);
  padding: clamp(34px, 5vw, 84px) clamp(18px, 5vw, 72px) 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.hero-inner {
  width: min(100%, 960px);
  margin: 0 auto;
  text-align: center;
}

.crown {
  width: 112px;
  height: 112px;
  margin: 0 auto 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(136, 104, 255, 0.55);
  background: radial-gradient(circle, rgba(136, 104, 255, 0.26), rgba(11, 16, 33, 0.72));
  box-shadow: 0 0 54px rgba(136, 104, 255, 0.28);
}

.crown svg {
  width: 62px;
  height: 62px;
  color: #b8b7ff;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 92px);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.accent {
  color: #8d74ff;
}

.hero-copy {
  max-width: 760px;
  margin: 22px auto 0;
  color: #d9def0;
  font-size: clamp(18px, 2.2vw, 25px);
  font-weight: 650;
}

.hero-actions,
.actions-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-actions {
  width: min(100%, 460px);
  margin: 38px auto 0;
  display: grid;
}

.button,
button {
  min-height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-weight: 850;
  font-size: 18px;
  cursor: pointer;
  font-family: inherit;
}

.button-primary {
  background: linear-gradient(135deg, #796fff, #d541d5);
  box-shadow: 0 18px 48px rgba(181, 69, 217, 0.28);
}

.button-secondary {
  background: rgba(20, 27, 49, 0.82);
  border-color: rgba(158, 171, 215, 0.22);
  color: #dce2ff;
}

.button-small {
  min-height: 46px;
  font-size: 15px;
  padding: 10px 16px;
}

.version {
  margin-top: 48px;
  color: rgba(255, 255, 255, 0.48);
  font-weight: 750;
}

.section,
.page,
.dashboard {
  padding: 70px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.section-inner,
.dashboard {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.section-lead {
  max-width: 780px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 18px;
}

.section-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title-row h2 {
  margin-bottom: 0;
}

.section-title-row + .section-lead {
  margin-top: 18px;
}

.menu-grid,
.platforms,
.offer-grid,
.stat-row {
  display: grid;
  gap: 14px;
}

.menu-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.platforms {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

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

.partner-stat-row,
.admin-stat-row {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.menu-button,
.platform,
.offer,
.review,
.contact-item,
.panel,
.stat {
  border: 1px solid rgba(158, 171, 215, 0.18);
  border-radius: var(--radius);
  background: rgba(16, 23, 43, 0.78);
}

.menu-button {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: #e6eaff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 850;
  text-align: center;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.visual {
  min-height: 360px;
  border: 1px solid rgba(158, 171, 215, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(6, 9, 19, 0), rgba(6, 9, 19, 0.36)),
    url("/assets/splash.png");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.platform {
  min-height: 118px;
  padding: 18px;
}

.platform strong {
  display: block;
  font-size: 17px;
  margin-bottom: 5px;
}

.platform span,
.hint {
  color: var(--muted);
  font-size: 14px;
}

.platform span {
  display: block;
}

.platform a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  background: rgba(136, 104, 255, 0.18);
  color: #eef1ff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.download-count {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 750;
  color: var(--gold);
}

.offer,
.panel,
.stat {
  padding: 26px;
}

.offer h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.price {
  margin: 12px 0 16px;
  font-size: 40px;
  font-weight: 950;
  color: var(--gold);
}

.offer p {
  color: var(--muted);
  margin: 0 0 20px;
}

.review-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.review {
  min-height: 220px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote {
  margin: 0;
  color: #eef1ff;
  font-size: 20px;
  font-weight: 750;
  line-height: 1.45;
}

.author {
  margin: 28px 0 0;
  color: var(--gold);
  font-weight: 800;
}

.partner-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  border: 1px solid rgba(231, 184, 91, 0.24);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 12% 20%, rgba(231, 184, 91, 0.16), transparent 22rem),
    rgba(18, 26, 47, 0.82);
  padding: clamp(24px, 4vw, 42px);
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: center;
}

.contact-item {
  min-height: 118px;
  padding: 22px;
  color: inherit;
  text-decoration: none;
}

.contact-item span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.contact-item strong {
  display: block;
  margin-top: 8px;
  color: #eef1ff;
  font-size: 22px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.page {
  min-height: calc(100vh - 170px);
}

.page .panel {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.compact {
  width: 100%;
  margin: 24px 0;
}

.help-page .panel {
  max-width: 1040px;
}

.help-text {
  white-space: pre-wrap;
  margin: 0;
  color: #dce2ff;
  font: inherit;
  line-height: 1.68;
}

.field {
  display: grid;
  gap: 6px;
  margin: 14px 0;
}

.field label {
  color: #dbe1ff;
  font-size: 14px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(158, 171, 215, 0.24);
  border-radius: var(--radius);
  background: rgba(6, 9, 19, 0.64);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

textarea {
  resize: vertical;
  line-height: 1.5;
}

.check-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 18px 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.check-row input {
  width: 20px;
  min-height: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: #8868ff;
}

.check-row a {
  color: #dbe1ff;
  font-weight: 800;
}

.check-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.choice-form {
  display: grid;
  gap: 16px;
}

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

.choice-card {
  min-height: 58px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(158, 171, 215, 0.2);
  border-radius: var(--radius);
  background: rgba(6, 9, 19, 0.42);
  color: #eef1ff;
  font-weight: 800;
}

.choice-card input {
  width: 20px;
  min-height: 20px;
  height: 20px;
  accent-color: #8868ff;
}

.text-page .panel {
  width: 100%;
  max-width: 860px;
}

.text-page h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.text-page h2 {
  margin-top: 30px;
  font-size: 24px;
}

.text-page p {
  color: var(--muted);
  font-size: 17px;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.stat strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 34px;
  overflow: hidden;
  border-radius: var(--radius);
}

.admin-table {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

.table th,
.table td {
  padding: 12px 14px;
  border: 1px solid rgba(158, 171, 215, 0.18);
  background: rgba(16, 23, 43, 0.68);
  text-align: left;
}

.table th {
  background: rgba(24, 32, 56, 0.9);
  color: var(--muted);
}

.payment-ref {
  overflow-wrap: anywhere;
  white-space: normal;
}

.bank-table td {
  overflow-wrap: anywhere;
}

.bank-payment {
  display: grid;
  grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin: 26px 0 34px;
  padding: 24px;
  border: 1px solid rgba(230, 185, 86, 0.24);
  border-radius: var(--radius);
  background: rgba(16, 23, 43, 0.72);
}

.bank-payment-compact {
  margin-top: 22px;
}

.bank-payment-qr {
  display: grid;
  gap: 12px;
}

.bank-payment-qr img {
  width: 100%;
  max-width: 260px;
  padding: 12px;
  border-radius: 10px;
  background: #fff;
}

.bank-payment-qr .button {
  width: 100%;
  max-width: 284px;
  justify-content: center;
}

.bank-payment-info h2 {
  margin-top: 0;
}

.bank-payment-info .table {
  margin-bottom: 0;
}

.dashboard-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.admin-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0 34px;
}

.admin-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(158, 171, 215, 0.2);
  border-radius: var(--radius);
  background: rgba(16, 23, 43, 0.72);
  color: #e6eaff;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(120px, 150px) minmax(140px, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 420px;
}

.inline-form input,
.inline-form select {
  min-height: 40px;
}

.inline-form .button {
  min-height: 40px;
}

.payment-grid {
  margin: 24px 0 8px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.54);
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .menu-grid,
  .platforms,
  .offer-grid,
  .stat-row,
  .review-grid,
  .contact-grid,
  .split,
  .partner-band,
  .contact-band,
  .bank-payment {
    grid-template-columns: 1fr;
  }

  .bank-payment-qr img,
  .bank-payment-qr .button {
    max-width: 240px;
  }

  .visual {
    min-height: 260px;
  }

  .page .panel {
    max-width: calc(100vw - 24px);
  }

  .page .form-panel-wide,
  .page .checkout-panel {
    max-width: 366px;
    margin-left: 0;
    margin-right: auto;
  }
}

@media (max-width: 520px) {
  .page,
  .dashboard {
    padding-left: 12px;
    padding-right: 12px;
  }

  .page .panel {
    padding: 22px 18px;
  }

  .page h1,
  .text-page h1 {
    font-size: clamp(30px, 10vw, 38px);
    line-height: 1.06;
    overflow-wrap: anywhere;
  }

  .check-row {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
  }

  .check-row input {
    width: 18px;
    height: 18px;
    min-height: 18px;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .page .button {
    width: 100%;
  }
}

/* Motion and polish. Content remains visible without JS. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

section[id] {
  scroll-margin-top: 100px;
}

.button,
.nav a,
.offer,
.platform,
.review,
.contact-item,
.brand-mark,
.help-link,
.help-mark,
.visual {
  transition: transform .22s cubic-bezier(.22, 1, .36, 1),
    box-shadow .25s ease,
    border-color .2s ease,
    background-color .2s ease,
    color .2s ease,
    filter .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(1px);
}

.button-primary:hover {
  box-shadow: 0 22px 60px rgba(181, 69, 217, 0.45);
  filter: brightness(1.06);
}

.button-secondary:hover {
  border-color: rgba(136, 104, 255, 0.6);
  background: rgba(40, 50, 90, 0.92);
}

.button-primary {
  background-size: 200% 200%;
}

@media (prefers-reduced-motion: no-preference) {
  .button-primary {
    animation: btnGrad 7s ease infinite;
  }
}

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

  50% {
    background-position: 100% 50%;
  }
}

.nav a:not(.help-link) {
  position: relative;
}

.nav a:not(.help-link)::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--magenta));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s cubic-bezier(.22, 1, .36, 1);
  border-radius: 2px;
}

.nav a:not(.help-link):hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.nav a.active {
  color: var(--text);
}

.brand-mark:hover {
  transform: rotate(-4deg) scale(1.05);
}

.help-link:hover,
.help-mark:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(231, 184, 91, 0.4);
}

@media (prefers-reduced-motion: no-preference) {
  .crown {
    animation: crownFloat 6s ease-in-out 1s infinite, crownGlow 4.5s ease-in-out 1s infinite;
  }
}

@keyframes crownFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes crownGlow {
  0%,
  100% {
    box-shadow: 0 0 54px rgba(136, 104, 255, 0.28);
  }

  50% {
    box-shadow: 0 0 82px rgba(216, 69, 217, 0.42);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * {
    animation: heroUp .7s cubic-bezier(.22, 1, .36, 1) both;
  }

  .hero-inner > *:nth-child(1) {
    animation-delay: .05s;
  }

  .hero-inner > *:nth-child(2) {
    animation-delay: .15s;
  }

  .hero-inner > *:nth-child(3) {
    animation-delay: .25s;
  }

  .hero-inner > *:nth-child(4) {
    animation-delay: .35s;
  }

  .hero-inner > *:nth-child(5) {
    animation-delay: .45s;
  }
}

@keyframes heroUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.anim .section .section-inner {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1);
}

.anim .section.in .section-inner {
  opacity: 1;
  transform: none;
}

.offer:hover,
.platform:hover,
.review:hover,
.contact-item:hover {
  transform: translateY(-4px);
  border-color: rgba(136, 104, 255, 0.45);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(136, 104, 255, 0.12);
}

.visual {
  position: relative;
  overflow: hidden;
}

.visual:hover {
  transform: scale(1.02);
}

.visual::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: skewX(-18deg);
}

@media (prefers-reduced-motion: no-preference) {
  .visual::after {
    animation: sheen 6.5s ease-in-out 2s infinite;
  }
}

@keyframes sheen {
  0% {
    left: -60%;
  }

  35%,
  100% {
    left: 130%;
  }
}
