:root {
  color-scheme: dark;
  --bg: #07080b;
  --surface: #10131a;
  --surface-2: #151a24;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.075);
  --text: #f7f4ee;
  --muted: #b7bcc7;
  --dim: #7f8795;
  --violet: #8f42ff;
  --blue: #2f6fff;
  --gold: #e2bf73;
  --content: 1180px;
  font-family: "Manrope", "Inter", "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(143, 66, 255, 0.11), transparent 390px),
    linear-gradient(115deg, #07080b 0%, #090c12 52%, #07080b 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.58), transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  inset: 76px 0 0;
  pointer-events: none;
  opacity: 0.46;
  background:
    linear-gradient(118deg, transparent 0 37%, rgba(143, 66, 255, 0.16) 37.2%, transparent 37.6%),
    linear-gradient(118deg, transparent 0 58%, rgba(47, 111, 255, 0.12) 58.15%, transparent 58.5%),
    linear-gradient(118deg, transparent 0 75%, rgba(226, 191, 115, 0.1) 75.1%, transparent 75.32%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.78), transparent 70%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 11, 0.88);
  backdrop-filter: blur(18px);
}

.brand,
.header-actions,
.main-nav,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 11px;
  min-width: max-content;
  font-weight: 900;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 12px 24px rgba(143, 66, 255, 0.34));
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.brand-last {
  color: #9b4dff;
  background: linear-gradient(135deg, #b72cff 18%, #2f7bff 86%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 22px rgba(143, 66, 255, 0.38);
}

.main-nav {
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.main-nav a,
.portal-link,
.site-footer a {
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.main-nav a:hover,
.portal-link:hover,
.site-footer a:hover {
  color: var(--text);
}
.portal-link.auth-pending {
  opacity: 0;
  pointer-events: none;
}


.header-actions {
  justify-content: flex-end;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
}

.lang-button {
  min-width: 38px;
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.lang-button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--blue));
}

.portal-link {
  padding: 11px 18px;
  border: 1px solid rgba(226, 191, 115, 0.42);
  border-radius: 8px;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
}

.section-shell {
  width: min(var(--content), calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(500px, 0.95fr) minmax(430px, 0.8fr);
  gap: clamp(30px, 3.4vw, 48px);
  align-items: start;
  min-height: 0;
  padding: clamp(34px, 4.8vw, 58px) 0 clamp(26px, 4vw, 40px);
}

.showcase {
  position: relative;
  min-height: 620px;
}

.showcase::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 22px;
  top: 76px;
  height: 500px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(143, 66, 255, 0.13), rgba(47, 111, 255, 0.055)),
    rgba(255,255,255,0.018);
  transform: skewY(-2deg);
}

.shot {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 24px;
  background: #060814;
  box-shadow: 0 34px 95px rgba(0,0,0,0.48);
}

.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
}

.shot-desktop {
  left: 0;
  top: 0;
  width: 398px;
  height: 625px;
  animation: floatDesktop 8s ease-in-out infinite;
}

.shot-phone {
  right: 0;
  bottom: 42px;
  width: 194px;
  height: 412px;
  border-radius: 32px;
  animation: floatPhone 7s ease-in-out infinite;
}

@keyframes floatDesktop {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -8px, 0);
  }
}

@keyframes floatPhone {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, 10px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shot-desktop,
  .shot-phone {
    animation: none;
  }
}

.shot-fallback {
  display: none;
  place-items: center;
  align-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 26px;
  text-align: center;
  background: #080b14;
}

.shot-fallback span {
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}

.shot-fallback strong {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.shot.is-missing img {
  display: none;
}

.shot.is-missing .shot-fallback {
  display: grid;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 560px;
  margin-bottom: 18px;
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4.5vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-lead {
  max-width: 510px;
  margin-bottom: 20px;
  color: #ddd6ca;
  font-size: clamp(17px, 1.55vw, 19px);
}

.hero-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0 0 22px;
  list-style: none;
}

.hero-list li {
  position: relative;
  padding-left: 28px;
  color: #eef0f6;
  line-height: 1.45;
  font-weight: 800;
}

.hero-list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.55em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

.hero-list .hero-trial {
  padding-left: 0;
  color: #d9dee9;
  font-weight: 800;
}

.hero-list .hero-trial::before {
  display: none;
}

.hero-trial .trial-en {
  display: none;
}

html[lang="en"] .hero-trial .trial-ru {
  display: none;
}

html[lang="en"] .hero-trial .trial-en {
  display: inline;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
  transition: transform 160ms ease, opacity 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 0 32px rgba(143, 66, 255, 0.32), 0 12px 28px rgba(47, 111, 255, 0.18);
}

.button-secondary {
  color: #f7ebd0;
  border-color: rgba(226, 191, 115, 0.42);
  background: rgba(226, 191, 115, 0.06);
}

.full-width {
  width: 100%;
}

.system-note {
  max-width: 460px;
  margin: 18px 0 10px;
  color: var(--dim);
  font-size: 14px;
}

.platform-row,
.platform-icons,
.download-platform {
  display: flex;
  align-items: center;
}

.platform-row {
  gap: 10px;
  flex-wrap: wrap;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 8px;
  color: #a7afbc;
  background: rgba(255,255,255,0.035);
  font-size: 12px;
  font-weight: 900;
}

.platform-chip svg,
.platform-icon svg,
.download-platform svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

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

.platform-icons {
  gap: 8px;
  transform: translateY(3px);
}

.platform-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #89929f;
  background: rgba(255,255,255,0.035);
}


.router-chip svg,
.router-info-tile svg {
  width: 22px;
  height: 22px;
}

.router-chip,
.plan-card-router,
.router-info-tile {
  border-color: rgba(125, 211, 252, 0.22);
}

.router-info-tile::after {
  content: "→";
}

.install-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.install-strip div {
  display: grid;
  gap: 6px;
  padding: 18px;
  background: rgba(15, 18, 25, 0.9);
}

.install-strip span,
.plan-label,
.selected-plan span,
.download-tile span {
  color: var(--dim);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.install-strip strong {
  color: #fff;
  font-size: 17px;
}

.compact-section {
  padding: clamp(54px, 7vw, 82px) 0;
}

.section-head {
  max-width: 620px;
  margin-bottom: 22px;
}

.billing-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
}

.billing-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
}

.billing-option small {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.billing-option.is-active {
  color: #fff;
  background: rgba(143, 66, 255, 0.78);
}

.pricing-grid,
.download-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.plan-card,
.checkout-form,
.download-consent,
.download-tile,
.legal-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 18, 25, 0.82);
}

.plan-card {
  display: grid;
  gap: 11px;
  min-height: 140px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  outline: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035), 0 18px 54px rgba(0,0,0,0.22);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.plan-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 0%, rgba(143, 66, 255, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.07), transparent 42%);
  opacity: 0.72;
}

.plan-card:hover,
.plan-card:focus-visible,
.plan-card.is-selected {
  border-color: rgba(143, 66, 255, 0.62);
  background: rgba(22, 25, 36, 0.98);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 24px 70px rgba(0,0,0,0.34), 0 0 36px rgba(143, 66, 255, 0.14);
}

.plan-card p {
  margin: 0;
}

.plan-card > * {
  position: relative;
  z-index: 1;
}

.plan-card strong {
  color: #fff;
  font-size: 31px;
  line-height: 1;
}

.plan-card.is-yearly .plan-price strong {
  color: var(--gold);
  text-shadow: 0 0 22px rgba(226, 191, 115, 0.26);
}

.plan-card small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.plan-price {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.plan-price span {
  color: var(--dim);
  font-size: 13px;
  font-weight: 800;
}

.plan-discount {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-top: -3px;
  padding: 4px 7px;
  border: 1px solid rgba(226, 191, 115, 0.28);
  border-radius: 7px;
  color: var(--gold);
  background: linear-gradient(135deg, rgba(226, 191, 115, 0.16), rgba(143, 66, 255, 0.1));
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.plan-discount s {
  color: #d8dce6;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
}

.plan-discount em {
  color: #ffe19a;
  font-style: normal;
}

.discount-save {
  display: inline-grid;
  min-height: 20px;
  place-items: center;
  padding: 0 7px;
  border-radius: 6px;
  color: #111318;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(226, 191, 115, 0.2);
}

.pricing-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 18px;
}

.band {
  padding: clamp(70px, 10vw, 112px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
}

.payment-page,
.cabinet-page {
  min-height: calc(100svh - 76px);
  padding: clamp(42px, 7vw, 78px) 0 clamp(70px, 8vw, 96px);
}

.checkout-hero,
.cabinet-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 0.56fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

.payment-page .checkout-hero {
  grid-template-columns: minmax(0, 0.9fr) minmax(390px, 0.52fr);
}

.checkout-intro h1,
.cabinet-copy h1 {
  max-width: 650px;
}

.telegram-auth-card,
.checkout-panel,
.cabinet-panel,
.cabinet-action {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 18, 25, 0.84);
}

.telegram-auth-card {
  display: flex;
  align-items: center;
  gap: 13px;
  max-width: 620px;
  padding: 14px;
  margin-top: 24px;
}

.telegram-auth-card p {
  margin: 2px 0 0;
  font-size: 14px;
}

.telegram-auth-card strong {
  color: #fff;
}

.status-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(226, 191, 115, 0.45);
}

.status-dot.is-connected {
  background: #45e18f;
  box-shadow: 0 0 18px rgba(69, 225, 143, 0.38);
}

.compact-button {
  min-height: 38px;
  margin-left: auto;
  white-space: nowrap;
}

.checkout-panel,
.cabinet-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.payment-page .checkout-panel {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-color: rgba(255,255,255,0.16);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.075), rgba(255,255,255,0.028) 42%, rgba(143,66,255,0.08)),
    rgba(11, 13, 20, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 30px 90px rgba(0,0,0,0.34),
    0 0 0 1px rgba(143,66,255,0.05);
}

.payment-page .checkout-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 0%, rgba(226,191,115,0.16), transparent 32%),
    radial-gradient(circle at 100% 18%, rgba(143,66,255,0.18), transparent 34%);
  opacity: 0.7;
}

.payment-page .checkout-panel > * {
  position: relative;
  z-index: 1;
}

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

.payment-plan {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 18px;
  align-items: center;
  width: 100%;
  min-height: 86px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #fff;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025)),
    rgba(14, 17, 25, 0.82);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.payment-plan:hover,
.payment-plan.is-selected {
  border-color: rgba(143, 66, 255, 0.62);
  background:
    radial-gradient(circle at 0% 0%, rgba(226,191,115,0.14), transparent 40%),
    linear-gradient(135deg, rgba(143,66,255,0.2), rgba(255,255,255,0.035)),
    rgba(18, 20, 30, 0.96);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 18px 52px rgba(0,0,0,0.28);
}

.payment-plan span,
.summary-grid span,
.cabinet-kicker {
  color: var(--dim);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.payment-plan strong {
  grid-column: 1;
  grid-row: 2;
  font-size: 21px;
  line-height: 1.05;
  white-space: nowrap;
}

.payment-plan small {
  grid-column: 1;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.payment-plan b {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: #fff;
  font-size: 24px;
  text-shadow: 0 0 18px rgba(255,255,255,0.1);
  white-space: nowrap;
}

.payment-plan.is-yearly b {
  color: var(--gold);
  text-shadow: 0 0 22px rgba(226, 191, 115, 0.22);
}

.payment-plan .year-discount {
  grid-column: 1 / -1;
  grid-row: 3;
  display: flex;
  justify-self: start;
  align-items: center;
  gap: 8px;
  padding: 4px 7px;
  border: 1px solid rgba(226, 191, 115, 0.28);
  border-radius: 7px;
  color: var(--gold);
  background: linear-gradient(135deg, rgba(226, 191, 115, 0.16), rgba(143, 66, 255, 0.1));
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
}

.year-discount s,
.summary-discount s {
  color: #d8dce6;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
}

.year-discount .discount-save {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  color: #111318;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(226, 191, 115, 0.2);
}

.payment-plan.is-plan-downgrade {
  opacity: 0.76;
}

.payment-plan .plan-relation-note {
  grid-column: 1 / -1;
  grid-row: 4;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.28;
  text-transform: none;
  letter-spacing: 0;
}

.payment-plan .plan-relation-note.is-danger,
.payment-plan .plan-relation-note.is-info {
  color: #ff8d8d;
}

.payment-plan .plan-relation-note.is-router {
  color: rgba(255, 255, 255, 0.78);
}

.payment-plan .plan-relation-note.is-success {
  color: #8dffb1;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 18px;
  padding: 16px;
  border: 1px solid rgba(226, 191, 115, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(226,191,115,0.13), rgba(255,255,255,0.035)),
    rgba(17, 18, 22, 0.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.summary-grid strong {
  color: #fff;
  font-size: 25px;
  line-height: 1;
  text-shadow: 0 0 18px rgba(255,255,255,0.1);
}

.summary-grid.is-yearly strong {
  color: var(--gold);
  text-shadow: 0 0 22px rgba(226, 191, 115, 0.22);
}

.summary-grid small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.summary-grid .summary-discount {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--dim);
  font-weight: 850;
}

.checkout-note {
  margin: 0;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.55;
}

.checkout-note a {
  color: var(--gold);
  font-weight: 850;
}

.payment-result {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
}

.payment-result[hidden] {
  display: none;
}

.payment-result.is-success {
  border-color: rgba(226,191,115,0.38);
  background: linear-gradient(135deg, rgba(226,191,115,0.12), rgba(143,66,255,0.08));
}

.payment-result.is-error {
  border-color: rgba(255,91,118,0.4);
  background: rgba(255,91,118,0.08);
}

.payment-result h3,
.payment-result p {
  margin: 0;
}

.result-meta,
.result-note {
  color: var(--muted);
  font-size: 13px;
}

.access-key-box {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(226,191,115,0.26);
  border-radius: 8px;
  background: rgba(0,0,0,0.18);
}

.access-key-box span {
  color: var(--dim);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.access-key-box code {
  color: var(--gold);
  font-size: 20px;
  font-weight: 900;
  word-break: break-word;
}

.result-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cabinet-panel {
  min-height: 320px;
}

.cabinet-user {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.cabinet-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  box-shadow: 0 0 28px rgba(143, 66, 255, 0.34);
  font-weight: 950;
}

.cabinet-user h2 {
  margin-bottom: 4px;
  font-size: 24px;
}

.cabinet-actions {
  display: grid;
  gap: 10px;
}

.cabinet-action {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  color: #fff;
  font-weight: 900;
  transition: border-color 160ms ease, transform 160ms ease;
}

.cabinet-action:hover {
  border-color: rgba(143, 66, 255, 0.62);
  transform: translateY(-1px);
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 0.58fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.checkout-form {
  display: grid;
  gap: 15px;
  padding: 22px;
}

.selected-plan {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(226, 191, 115, 0.28);
  border-radius: 8px;
  background: rgba(226, 191, 115, 0.055);
}

.selected-plan strong {
  color: #fff;
}

.form-field {
  display: grid;
  gap: 8px;
  color: #fff;
  font-weight: 850;
}

.form-field input {
  min-height: 50px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  outline: 0;
  background: rgba(255,255,255,0.04);
}

.form-field input:focus {
  border-color: rgba(143, 66, 255, 0.65);
}

.checkbox-line {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  color: #dfe3ec;
  line-height: 1.5;
}

.checkbox-line input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--violet);
}

.download-consent {
  display: grid;
  gap: 12px;
  max-width: 830px;
  padding: 17px;
  margin-bottom: 16px;
}

.download-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  grid-template-columns: none;
}

.download-tile {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(100%, 292px);
  min-height: 46px;
  padding: 0 14px 0 16px;
  border-color: rgba(255,255,255,0.14);
  background: linear-gradient(135deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025));
  transition: transform 160ms ease, opacity 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.download-tile::after {
  content: "\2193";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  color: #fff;
  background: rgba(143, 66, 255, 0.72);
  font-weight: 900;
}

.download-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(143, 66, 255, 0.62);
  box-shadow: 0 0 26px rgba(143, 66, 255, 0.22);
}

.download-tile.is-disabled,
.download-tile[aria-disabled="true"] {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(0.75);
  border-color: rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
  box-shadow: none;
}

.download-tile.is-disabled:hover,
.download-tile[aria-disabled="true"]:hover {
  transform: none;
  border-color: rgba(255,255,255,0.08);
  box-shadow: none;
}

.download-tile.is-disabled::after,
.download-tile[aria-disabled="true"]::after {
  background: rgba(255,255,255,0.12);
  color: var(--dim);
}

.download-tile.is-disabled strong,
.download-tile[aria-disabled="true"] strong,
.download-tile.is-disabled .download-platform,
.download-tile[aria-disabled="true"] .download-platform {
  color: #8d95a1;
}

.download-tile strong {
  color: #fff;
  font-size: 15px;
  line-height: 1;
}

.download-platform {
  min-width: 95px;
  gap: 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.download-platform svg {
  color: #8f98a7;
}

.download-platform b {
  font: inherit;
}

.legal-section {
  padding: clamp(64px, 8vw, 96px) 0 110px;
}

.legal-list {
  display: grid;
  gap: 10px;
  max-width: 880px;
}

.legal-list details {
  padding: 0;
}

.legal-list summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  color: #fff;
  font-weight: 900;
}

.legal-list summary::-webkit-details-marker {
  display: none;
}

.legal-list summary::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 1px solid rgba(226,191,115,0.28);
  border-radius: 6px;
  color: var(--gold);
  background: rgba(226,191,115,0.08);
  font-size: 18px;
  line-height: 1;
}

.legal-list details[open] summary::before {
  content: "-";
}

.legal-list p {
  margin: 0;
  padding: 0 20px 18px;
  color: #cdd2dd;
}

.legal-list ul {
  margin: -6px 0 18px;
  padding: 0 20px 0 38px;
  color: #cdd2dd;
}

.legal-list li {
  margin: 8px 0;
}

[data-lang-block="en"] {
  display: none;
}

html[lang="en"] [data-lang-block="ru"] {
  display: none;
}

html[lang="en"] [data-lang-block="en"] {
  display: grid;
}

.site-footer {
  padding: 30px clamp(18px, 4vw, 52px);
  border-top: 1px solid var(--line);
  background: #050609;
}

.footer-inner {
  width: min(var(--content), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a:last-child {
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .main-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .hero,
  .checkout-hero,
  .cabinet-layout,
  .payment-layout {
    grid-template-columns: 1fr;
  }

  .showcase {
    width: min(100%, 640px);
    min-height: 650px;
  }
}

@media (max-width: 760px) {
  .site-header {
    gap: 14px;
    padding: 12px 16px;
  }

  .portal-link {
    display: inline-flex;
    padding: 9px 12px;
    max-width: 46vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    align-items: center;
    justify-content: center;
    font-size: 12px;
  }

  .portal-link.is-auth {
    max-width: 52vw;
  }

  .hero {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-height: auto;
    padding-top: 30px;
  }

  .hero-copy {
    order: 1;
  }

  .showcase {
    order: 2;
    position: relative;
    width: min(100%, 620px);
    min-height: clamp(470px, 112vw, 600px);
    margin: 4px auto 8px;
  }

  .showcase::before {
    display: block;
    left: 12%;
    right: 2%;
    top: 34px;
    height: 310px;
    border-radius: 8px;
  }

  .shot {
    position: absolute;
    inset: auto;
    transform: none;
  }

  .shot-desktop {
    left: 0;
    top: 0;
    width: min(72%, 335px);
    height: auto;
    aspect-ratio: 470 / 738;
  }

  .shot-phone {
    top: 74px;
    right: 0;
    width: min(39%, 170px);
    height: auto;
    aspect-ratio: 445 / 947;
  }

  .hero-actions,
  .install-strip,
  .pricing-grid,
  .download-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .install-strip,
  .pricing-grid,
  .download-grid {
    display: grid;
  }

  .install-strip {
    position: relative;
    z-index: 3;
    margin-top: 0;
  }

  .button {
    width: 100%;
  }

  .platform-row,
  .platform-icons {
    gap: 8px;
  }

  .platform-chip {
    flex: 1 1 140px;
    justify-content: center;
  }

  .payment-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .checkout-hero,
  .cabinet-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .payment-page {
    padding: 24px 0 56px;
    overflow-x: hidden;
  }

  .payment-page .checkout-hero {
    display: flex;
    flex-direction: column;
    width: min(var(--content), calc(100% - 32px));
    gap: 22px;
  }

  .payment-page .checkout-intro,
  .payment-page .checkout-panel {
    width: 100%;
    min-width: 0;
  }

  .payment-page .checkout-intro h1 {
    max-width: none;
    font-size: clamp(34px, 9.5vw, 50px);
    line-height: 1.06;
  }

  .payment-page .hero-lead {
    max-width: none;
    font-size: 18px;
  }

  .payment-page .telegram-auth-card {
    max-width: none;
  }

  .payment-page .checkout-panel {
    padding: 18px;
  }

  .payment-page .billing-toggle {
    width: 100%;
  }

  .payment-page .payment-plan {
    min-height: 82px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    padding: 14px;
  }

  .payment-page .payment-plan span {
    font-size: 11px;
  }

  .payment-page .payment-plan strong {
    font-size: 20px;
    white-space: normal;
  }

  .payment-page .payment-plan b {
    font-size: 23px;
  }

  .payment-page .payment-plan .year-discount {
    max-width: 100%;
    flex-wrap: wrap;
    gap: 6px;
    white-space: normal;
  }

  .payment-page .summary-grid {
    gap: 4px 12px;
    padding: 14px;
  }

  .payment-page .summary-grid strong {
    font-size: 24px;
  }

  .telegram-auth-card {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .compact-button {
    width: 100%;
    margin-left: 0;
  }

  .footer-inner {
    justify-items: start;
  }
}

@media (max-width: 430px) {
  .brand-name {
    font-size: 19px;
  }

  .lang-button {
    min-width: 34px;
  }

  .main-nav {
    font-size: 13px;
  }

  .header-actions {
    gap: 6px;
  }

  .portal-link {
    max-width: 38vw;
    padding-inline: 10px;
  }

  h1 {
    font-size: 36px;
  }

  .showcase {
    min-height: clamp(460px, 118vw, 540px);
  }

  .shot-desktop {
    width: 74%;
  }

  .shot-phone {
    top: 64px;
    width: 41%;
  }

  .payment-page {
    padding-top: 18px;
  }

  .payment-page .checkout-hero {
    width: calc(100% - 28px);
    gap: 18px;
  }

  .payment-page .checkout-intro h1 {
    font-size: 36px;
  }

  .payment-page .hero-lead {
    font-size: 16px;
  }

  .payment-page .telegram-auth-card,
  .payment-page .checkout-panel {
    padding: 14px;
  }

  .payment-page .billing-toggle {
    padding: 5px;
  }

  .payment-page .billing-option {
    min-height: 34px;
    padding: 0 11px;
  }

  .payment-page .billing-option small {
    font-size: 10px;
  }

  .payment-page .payment-plan {
    min-height: 76px;
    padding: 13px;
  }

  .payment-page .payment-plan b {
    font-size: 22px;
  }
}

@media (max-width: 1180px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
