:root {
  color-scheme: dark;
  --bg: #07080d;
  --surface: #11131b;
  --surface-2: #171a24;
  --text: #f7f7fb;
  --muted: #9497a8;
  --line: rgba(255, 255, 255, 0.11);
  --cyan: #4db6ff;
  --gold: #ffc85a;
  --pink: #e44770;
  --violet: #9f91ff;
  --danger: #ff718c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(7, 8, 13, 0.88), rgba(7, 8, 13, 0.97)),
    url("assets/space-hero-v1.webp");
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 900;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 200, 90, 0.35);
  border-radius: 10px;
  background: #171923;
  color: var(--gold);
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

nav a:hover,
footer a:hover {
  color: var(--text);
}

.telegram-link {
  justify-self: end;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(77, 182, 255, 0.25);
  border-radius: 10px;
  background: rgba(77, 182, 255, 0.08);
  color: #91d5ff;
  font-size: 14px;
  font-weight: 800;
}

.telegram-link svg {
  width: 17px;
}

.storefront {
  min-height: calc(100vh - 100px);
  position: relative;
  padding: 54px 0 72px;
}

.store-heading {
  max-width: 720px;
  position: relative;
  z-index: 1;
  margin-bottom: 34px;
}

.eyebrow {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 12px;
  font-size: 48px;
  line-height: 1.04;
  letter-spacing: 0;
}

.store-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.store-rocket {
  width: 255px;
  position: absolute;
  z-index: 0;
  top: -16px;
  right: 42px;
  filter: drop-shadow(0 20px 26px rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.store-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(350px, 0.65fr);
  gap: 42px;
  align-items: start;
}

.catalog {
  min-width: 0;
}

.mode-switch {
  width: min(360px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(17, 19, 27, 0.9);
}

.mode-switch button,
.payment-switch button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.mode-switch button.is-active,
.payment-switch button.is-active {
  background: #242838;
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(77, 182, 255, 0.18);
}

.mode-switch svg,
.payment-switch svg {
  width: 18px;
  height: 18px;
}

.catalog-head {
  min-height: 74px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.catalog-head span:first-child,
.checkout-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.catalog-head h2 {
  margin: 3px 0 0;
  font-size: 24px;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.availability b {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5bd7a2;
  box-shadow: 0 0 10px rgba(91, 215, 162, 0.7);
}

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

.package-card {
  min-height: 116px;
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: space-between;
  gap: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 19, 27, 0.92);
  color: var(--text);
  text-align: left;
}

.package-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--gold);
  opacity: 0.5;
}

.package-card:hover,
.package-card.is-selected {
  border-color: rgba(255, 200, 90, 0.42);
  background: linear-gradient(145deg, #251c18, #16141a);
  transform: translateY(-2px);
}

.package-card strong {
  font-size: 18px;
}

.package-card span {
  color: var(--muted);
  font-size: 13px;
}

.package-card svg {
  width: 23px;
  height: 23px;
  position: absolute;
  top: 14px;
  right: 14px;
  color: var(--gold);
}

.custom-amount,
form label {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.input-wrap {
  min-height: 50px;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0f1118;
  color: var(--muted);
}

.custom-amount .input-wrap {
  max-width: 360px;
}

.input-wrap:focus-within {
  border-color: rgba(77, 182, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(77, 182, 255, 0.08);
}

.input-wrap svg {
  width: 19px;
  height: 19px;
}

input {
  width: 100%;
  height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.checkout {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(17, 19, 27, 0.94);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.38);
}

.checkout-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.checkout-title svg {
  width: 21px;
  color: var(--violet);
}

.order-product {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.product-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 200, 90, 0.1);
  color: var(--gold);
}

.product-icon svg {
  width: 23px;
}

.order-product div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.order-product div span {
  color: var(--muted);
  font-size: 12px;
}

.order-product b {
  color: var(--gold);
  font-size: 17px;
}

fieldset {
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.payment-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0f1118;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 22px 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.total-row strong {
  color: var(--text);
  font-size: 23px;
}

.checkout-button,
.support-band a,
#dialogAction {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #b72d55, var(--pink));
  color: white;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(183, 45, 85, 0.28);
}

.checkout-button {
  width: 100%;
}

.checkout-button svg,
.support-band a svg,
#dialogAction svg {
  width: 18px;
}

.checkout-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-error {
  min-height: 18px;
  margin: 9px 0 0;
  color: var(--danger);
  font-size: 12px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-bottom: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.facts > div {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px;
  background: rgba(17, 19, 27, 0.94);
}

.facts svg {
  flex: 0 0 auto;
  color: var(--cyan);
}

.facts span {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 12px;
}

.facts strong {
  color: var(--text);
  font-size: 14px;
}

.miniapp-showcase {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 70px;
  overflow: hidden;
  margin-bottom: 42px;
  padding: 54px 70px 0;
  border: 1px solid rgba(77, 182, 255, 0.2);
  border-radius: 8px;
  background-color: #0c2c41;
  background-image:
    linear-gradient(90deg, rgba(7, 18, 27, 0.2), rgba(7, 18, 27, 0.72)),
    url("assets/space-hero-v1.webp");
  background-position: center;
  background-size: cover;
}

.miniapp-copy {
  align-self: center;
  padding-bottom: 54px;
}

.miniapp-copy h2 {
  max-width: 520px;
  margin: 8px 0 14px;
  font-size: 38px;
  line-height: 1.08;
}

.miniapp-copy p {
  max-width: 510px;
  margin-bottom: 26px;
  color: #b5c4ce;
  font-size: 16px;
  line-height: 1.55;
}

.miniapp-copy a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: white;
  color: #10131a;
  font-weight: 900;
}

.miniapp-copy a svg {
  width: 18px;
}

.miniapp-preview {
  align-self: end;
  line-height: 0;
}

.miniapp-preview img {
  width: 100%;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}

.support-band {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 54px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-image:
    linear-gradient(90deg, rgba(12, 14, 22, 0.96), rgba(12, 14, 22, 0.62)),
    url("assets/space-hero-v1.webp");
  background-position: center;
  background-size: cover;
}

.support-band h2 {
  margin: 7px 0 0;
  font-size: 28px;
}

.support-band a {
  flex: 0 0 auto;
  padding: 0 20px;
  background: #238bc8;
  box-shadow: 0 12px 28px rgba(35, 139, 200, 0.24);
}

footer {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

footer div {
  display: flex;
  gap: 22px;
}

dialog {
  width: min(400px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
}

dialog::backdrop {
  background: rgba(2, 3, 8, 0.78);
}

.dialog-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
}

.dialog-card h2,
.dialog-card p {
  margin: 0;
}

.dialog-card p {
  color: var(--muted);
  line-height: 1.5;
}

.dialog-close {
  width: 34px;
  height: 34px;
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--muted);
}

.dialog-close svg {
  width: 18px;
}

.dialog-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 200, 90, 0.1);
  color: var(--gold);
}

.dialog-icon svg {
  width: 28px;
}

#dialogAction {
  width: 100%;
  margin-top: 4px;
  background: #238bc8;
}

.legal-page {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 60px 0 90px;
}

.legal-page h1 {
  font-size: 38px;
}

.legal-page section {
  margin-top: 28px;
  color: var(--muted);
  line-height: 1.65;
}

.legal-page h2 {
  color: var(--text);
  font-size: 19px;
}

.legal-page .brand {
  margin-bottom: 46px;
}

.package-card,
.mode-switch button,
.payment-switch button,
.checkout-button,
a {
  transition: transform 150ms ease, border-color 150ms ease, color 150ms ease, background 150ms ease;
}

button:active,
.checkout-button:active,
.support-band a:active {
  transform: translateY(1px) scale(0.99);
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(77, 182, 255, 0.3);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

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

  nav {
    display: none;
  }

  .storefront {
    padding-top: 34px;
  }

  .store-heading {
    max-width: 560px;
  }

  h1 {
    max-width: 500px;
    font-size: 40px;
  }

  .store-rocket {
    width: 200px;
    top: 0;
    right: 0;
    opacity: 0.78;
  }

  .store-layout {
    grid-template-columns: 1fr;
  }

  .checkout {
    max-width: none;
  }

  .miniapp-showcase {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 34px;
    padding-inline: 40px;
  }
}

@media (max-width: 600px) {
  .site-header,
  main,
  footer {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    height: 66px;
  }

  .telegram-link {
    width: 40px;
    padding: 0;
    justify-content: center;
  }

  .telegram-link span,
  .telegram-link:not(:has(span)) {
    font-size: 0;
  }

  .telegram-link svg {
    width: 18px;
  }

  .storefront {
    min-height: 0;
    padding: 30px 0 52px;
  }

  .store-heading {
    max-width: 230px;
    margin-bottom: 28px;
  }

  h1 {
    font-size: 32px;
  }

  .store-heading p {
    font-size: 14px;
    line-height: 1.45;
  }

  .store-rocket {
    width: 142px;
    top: 4px;
    right: -12px;
    opacity: 1;
  }

  .store-layout {
    gap: 26px;
  }

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

  .package-card {
    min-height: 108px;
  }

  .checkout {
    padding: 18px;
  }

  .facts {
    grid-template-columns: 1fr;
    margin-bottom: 52px;
  }

  .facts > div {
    min-height: 76px;
  }

  .miniapp-showcase {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 30px 24px 0;
  }

  .miniapp-copy {
    padding-bottom: 0;
  }

  .miniapp-copy h2 {
    font-size: 28px;
  }

  .miniapp-copy a {
    width: 100%;
    justify-content: center;
  }

  .miniapp-preview {
    width: min(100%, 330px);
    justify-self: center;
  }

  .support-band {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }

  .support-band h2 {
    font-size: 24px;
  }

  .support-band a {
    width: 100%;
  }

  footer {
    padding: 22px 0;
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Kinostar brand mark */
.brand-mark {
  overflow: hidden;
  padding: 3px;
  border-color: rgba(169, 130, 55, 0.24);
  background: #ffffff;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(28, 34, 43, 0.12));
}

/* Premium finish */
:root {
  --bg: #f2f3f5;
  --surface: #ffffff;
  --surface-2: #eceef1;
  --text: #17181b;
  --muted: #686b73;
  --line: #d9dce2;
  --cyan: #168ec7;
  --gold: #ba892d;
  --pink: #9b2f4c;
  --violet: #6557bd;
  --danger: #c33d55;
}

body {
  background: linear-gradient(180deg, #eef0f3 0, #f7f8fa 700px, #f4f5f7 100%);
  color: var(--text);
  font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header {
  height: 84px;
  position: relative;
}

.site-header::after {
  content: "";
  height: 1px;
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(32, 34, 40, 0.09);
}

.brand {
  font-size: 18px;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid #2a2c31;
  border-radius: 11px;
  background: #202226;
  color: #d2a84d;
  box-shadow: none;
}

nav {
  color: #646871;
  font-size: 13px;
  font-weight: 600;
}

.telegram-link {
  min-height: 42px;
  padding-inline: 16px;
  border: 1px solid #cbd4dc;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.74);
  color: #176f99;
  box-shadow: none;
}

.storefront {
  padding-top: 72px;
}

.store-heading {
  margin-bottom: 42px;
}

.store-heading .eyebrow {
  margin-bottom: 16px;
  color: #8b6726;
  font-size: 11px;
  font-weight: 800;
}

.store-heading h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: #141518;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.06;
}

.store-heading p {
  color: #5f626a;
  font-size: 16px;
}

.store-rocket {
  width: 214px;
  top: 30px;
  right: 102px;
  filter: drop-shadow(0 24px 26px rgba(31, 34, 42, 0.16));
}

.store-layout {
  grid-template-columns: minmax(0, 1.42fr) minmax(360px, 0.58fr);
  gap: 52px;
}

.mode-switch {
  width: min(380px, 100%);
  gap: 4px;
  padding: 4px;
  border: 1px solid #d6d9df;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: none;
}

.mode-switch button,
.payment-switch button {
  min-height: 46px;
  border-radius: 11px;
  color: #73767e;
  font-size: 14px;
  font-weight: 700;
}

.mode-switch button.is-active {
  background: #212328;
  color: #f7f7f5;
  box-shadow: none;
}

.mode-switch button.is-active svg {
  color: #d7ac4f;
}

.catalog-head {
  min-height: 88px;
  padding-right: 0;
}

.catalog-head span:first-child,
.checkout-title span {
  color: #777a82;
  font-size: 11px;
  font-weight: 700;
}

.catalog-head h2 {
  margin-top: 7px;
  font-size: 26px;
  font-weight: 700;
}

.availability {
  min-height: 28px;
  margin-bottom: 0;
  padding: 0 10px;
  border: 1px solid #d8ddd9;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #5f6962;
  font-size: 11px;
  font-weight: 600;
}

.availability b {
  width: 6px;
  height: 6px;
  background: #55a874;
  box-shadow: none;
}

.package-grid {
  gap: 14px;
}

.package-card {
  min-height: 128px;
  padding: 18px;
  border: 1px solid #d9dce2;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 7px 20px rgba(31, 34, 42, 0.045);
}

.package-card::before {
  display: none;
}

.package-card strong {
  font-size: 17px;
  font-weight: 700;
}

.package-card span {
  color: #777a82;
  font-size: 12px;
}

.package-card svg {
  top: 17px;
  right: 17px;
  color: #b58732;
}

.package-card:hover {
  border-color: #b9a16d;
  background: #fff;
  box-shadow: 0 12px 26px rgba(31, 34, 42, 0.075);
}

.package-card.is-selected,
.package-card.is-selected:hover {
  border-color: #22242a;
  background: #22242a;
  color: #f8f8f6;
  box-shadow: 0 14px 30px rgba(31, 34, 42, 0.18);
}

.package-card.is-selected span {
  color: #c8c9c6;
}

.package-card.is-selected svg {
  color: #d9ad4f;
}

.custom-amount,
form label,
legend {
  color: #6e7179;
  font-size: 12px;
  font-weight: 600;
}

.input-wrap {
  min-height: 52px;
  border: 1px solid #d8dbe1;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

.input-wrap:focus-within {
  border-color: #9fa5af;
  box-shadow: 0 0 0 3px rgba(32, 34, 40, 0.055);
}

.checkout {
  padding: 26px;
  border: 1px solid #d5d8de;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 24px 55px rgba(31, 34, 42, 0.12);
}

.checkout-title {
  margin-bottom: 20px;
}

.checkout-title svg {
  color: #7869b8;
}

.product-icon {
  border-radius: 12px;
  background: #f5efe1;
  color: #ae7e23;
}

.order-product b {
  color: #9b7227;
  font-size: 16px;
}

.payment-switch {
  gap: 4px;
  padding: 4px;
  border: 1px solid #d9dce2;
  border-radius: 14px;
  background: #eef0f3;
}

.payment-switch button.is-active {
  background: #ffffff;
  color: #202226;
  box-shadow: 0 3px 10px rgba(31, 34, 42, 0.1);
}

.payment-switch button.is-active svg {
  color: #1988bd;
}

.total-row {
  margin-top: 24px;
}

.total-row strong {
  color: #18191d;
  font-size: 22px;
}

.checkout-button,
.support-band a,
#dialogAction {
  min-height: 54px;
  border-radius: 13px;
  background: #202226;
  color: #ffffff;
  box-shadow: none;
}

.checkout-button svg,
.support-band a svg,
#dialogAction svg {
  color: #d8ad50;
}

.checkout-button:hover,
.support-band a:hover,
#dialogAction:hover {
  background: #2c2e33;
}

.facts {
  gap: 0;
  margin: 86px 0;
  border-top: 1px solid #d7dae0;
  border-bottom: 1px solid #d7dae0;
}

.facts > div {
  min-height: 104px;
  padding: 22px 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.facts > div + div {
  border-left: 1px solid #d7dae0;
}

.facts svg {
  color: #86692f;
}

.facts strong {
  color: #25272c;
  font-weight: 700;
}

.miniapp-showcase {
  min-height: 540px;
  border: 1px solid #24262b;
  border-radius: 12px;
  background-color: #17191d;
  background-image:
    linear-gradient(90deg, rgba(23, 25, 29, 0.96), rgba(23, 25, 29, 0.8)),
    url("assets/space-hero-v1.webp");
  box-shadow: 0 24px 55px rgba(31, 34, 42, 0.15);
}

.miniapp-copy .eyebrow {
  color: #d1a64d;
}

.miniapp-copy h2 {
  font-size: 40px;
  font-weight: 700;
}

.miniapp-copy p {
  color: #afb1b8;
}

.miniapp-copy a {
  min-height: 50px;
  border: 1px solid #dedfe2;
  border-radius: 12px;
  background: #f7f7f5;
  color: #1e2024;
}

.support-band {
  border: 1px solid #d7dae0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.support-band .eyebrow {
  color: #8b6726;
}

.support-band h2 {
  font-weight: 700;
}

footer {
  color: #6e7179;
}

.dialog-card {
  border-radius: 14px;
  box-shadow: 0 30px 75px rgba(31, 34, 42, 0.2);
}

.dialog-icon {
  border-radius: 14px;
  background: #f3ecdc;
  color: #a57927;
}

@media (max-width: 880px) {
  .store-heading h1 {
    max-width: 560px;
    font-size: 42px;
  }

  .store-rocket {
    width: 176px;
    top: 34px;
    right: 18px;
  }
}

@media (max-width: 600px) {
  .site-header {
    height: 72px;
  }

  .storefront {
    padding-top: 46px;
  }

  .store-heading {
    max-width: 245px;
    margin-bottom: 34px;
  }

  .store-heading .eyebrow {
    margin-bottom: 12px;
  }

  .store-heading h1 {
    font-size: 34px;
  }

  .store-heading p {
    font-size: 14px;
  }

  .store-rocket {
    width: 126px;
    top: 34px;
    right: -8px;
  }

  .catalog-head {
    padding-right: 0;
  }

  .availability {
    margin-right: 0;
  }

  .package-card {
    min-height: 118px;
    padding: 16px;
  }

  .checkout {
    padding: 20px;
  }

  .facts {
    gap: 0;
    margin: 58px 0;
  }

  .facts > div {
    min-height: 84px;
    padding: 18px 12px;
  }

  .facts > div + div {
    border-top: 1px solid #d7dae0;
    border-left: 0;
  }

  .miniapp-copy h2 {
    font-size: 30px;
  }
}

/* Light cosmic refinement */
:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f0f3f8;
  --text: #171a24;
  --muted: #697184;
  --line: #dfe4ed;
  --cyan: #258fce;
  --gold: #e8a91f;
  --pink: #df416a;
  --violet: #7769de;
  --danger: #d93c59;
}

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(245, 247, 251, 0.9), rgba(245, 247, 251, 0.98)),
    url("assets/space-hero-v1.webp");
  color: var(--text);
}

.brand-mark {
  border-color: #efd89c;
  border-radius: 12px;
  background: #fffaf0;
  box-shadow: 0 5px 14px rgba(91, 66, 15, 0.08);
}

nav {
  color: #555d6e;
}

.telegram-link {
  min-height: 42px;
  border-color: #cfe8f8;
  border-radius: 14px;
  background: #edf8ff;
  color: #167fbd;
}

.storefront {
  padding-top: 64px;
}

.store-heading .eyebrow {
  display: block;
  margin-bottom: 13px;
  color: #198bc9;
}

.store-heading h1 {
  margin: 0 0 16px;
  color: #151821;
}

.store-heading p {
  color: #5f687a;
}

.store-rocket {
  filter: drop-shadow(0 22px 28px rgba(52, 62, 82, 0.2));
}

.mode-switch {
  gap: 7px;
  padding: 6px;
  border-color: #dce2eb;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(36, 45, 65, 0.07);
}

.mode-switch button,
.payment-switch button {
  min-height: 46px;
  border-radius: 14px;
  color: #687184;
}

.mode-switch button.is-active,
.payment-switch button.is-active {
  background: #e9f6ff;
  color: #198dce;
  box-shadow: inset 0 0 0 1px #cbe8f8;
}

.catalog-head {
  min-height: 82px;
  padding-right: 12px;
}

.catalog-head span:first-child,
.checkout-title span {
  color: #71798a;
}

.catalog-head h2 {
  margin-top: 5px;
  color: #171a24;
}

.availability {
  flex: 0 0 auto;
  margin: 0 0 4px;
  color: #697184;
  white-space: nowrap;
}

.package-grid {
  gap: 14px;
}

.package-card {
  min-height: 122px;
  border-color: #dde3ec;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: #171a24;
  box-shadow: 0 9px 24px rgba(38, 47, 68, 0.07);
}

.package-card::before {
  height: 3px;
  opacity: 0.62;
}

.package-card:hover,
.package-card.is-selected {
  border-color: #edc35d;
  background: #fff9eb;
  box-shadow: 0 12px 30px rgba(116, 82, 17, 0.12);
}

.package-card span {
  color: #70788a;
}

.input-wrap {
  border-color: #dfe4ed;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: #7a8292;
  box-shadow: 0 7px 20px rgba(36, 45, 65, 0.05);
}

input {
  color: #171a24;
}

.checkout {
  padding: 24px;
  border-color: #dce2eb;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 20px 50px rgba(36, 45, 65, 0.13);
}

.checkout-title svg {
  color: #7566dc;
}

.order-product {
  border-color: #e3e7ee;
}

.product-icon {
  border-radius: 14px;
  background: #fff6dc;
}

.order-product div span,
legend,
.custom-amount,
form label,
.total-row {
  color: #70788a;
}

.payment-switch {
  gap: 7px;
  padding: 6px;
  border-color: #dfe4ed;
  border-radius: 18px;
  background: #f4f6fa;
}

.checkout-button,
.support-band a,
#dialogAction {
  min-height: 54px;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(190, 45, 86, 0.22);
}

.facts {
  gap: 12px;
  overflow: visible;
  border: 0;
  background: transparent;
}

.facts > div {
  border: 1px solid #dfe4ed;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(36, 45, 65, 0.06);
}

.facts span {
  color: #70788a;
}

.facts strong {
  color: #20242f;
}

.miniapp-showcase {
  box-shadow: 0 18px 48px rgba(23, 45, 61, 0.15);
}

.miniapp-copy h2 {
  color: white;
}

.support-band {
  border-color: #d7e6f1;
  background-image:
    linear-gradient(90deg, rgba(239, 248, 255, 0.96), rgba(239, 248, 255, 0.74)),
    url("assets/space-hero-v1.webp");
  box-shadow: 0 12px 34px rgba(36, 76, 102, 0.08);
}

.support-band h2 {
  color: #171a24;
}

footer {
  border-color: #dfe4ed;
  color: #737b8d;
}

dialog {
  color: #171a24;
}

dialog::backdrop {
  background: rgba(28, 34, 48, 0.48);
}

.dialog-card {
  border-color: #dce2eb;
  background: white;
  box-shadow: 0 24px 64px rgba(34, 42, 60, 0.25);
}

.dialog-card p,
.legal-page section {
  color: #697184;
}

.dialog-close {
  border-radius: 12px;
  background: #f0f3f8;
}

.dialog-icon {
  background: #fff6dc;
}

.legal-page h1,
.legal-page h2 {
  color: #171a24;
}

@media (max-width: 600px) {
  .storefront {
    padding-top: 38px;
  }

  .store-heading .eyebrow {
    margin-bottom: 10px;
  }

  .catalog-head {
    min-height: 76px;
    padding-right: 12px;
  }

  .package-card {
    border-radius: 12px;
  }

  .checkout {
    padding: 20px;
  }
}

/* Premium layer lock */
body {
  background: linear-gradient(180deg, #eef0f3 0, #f7f8fa 700px, #f4f5f7 100%);
}

.brand-mark {
  border-color: #2a2c31;
  background: #202226;
  color: #d2a84d;
  box-shadow: none;
}

.telegram-link {
  border-color: #cbd4dc;
  background: rgba(255, 255, 255, 0.74);
  color: #176f99;
}

.mode-switch {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: none;
}

.mode-switch button.is-active {
  background: #212328;
  color: #f7f7f5;
  box-shadow: none;
}

.mode-switch button.is-active svg {
  color: #d7ac4f;
}

.availability {
  border-color: #d8ddd9;
  background: rgba(255, 255, 255, 0.82);
  color: #5f6962;
}

.package-card {
  border-color: #d9dce2;
  background: rgba(255, 255, 255, 0.94);
  color: #17181b;
  box-shadow: 0 7px 20px rgba(31, 34, 42, 0.045);
}

.package-card:hover {
  border-color: #b9a16d;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(31, 34, 42, 0.075);
}

.package-card.is-selected,
.package-card.is-selected:hover {
  border-color: #22242a;
  background: #22242a;
  color: #f8f8f6;
  box-shadow: 0 14px 30px rgba(31, 34, 42, 0.18);
}

.package-card.is-selected span {
  color: #c8c9c6;
}

.package-card.is-selected svg {
  color: #d9ad4f;
}

.payment-switch {
  border-color: #d9dce2;
  background: #eef0f3;
}

.payment-switch button.is-active {
  background: #ffffff;
  color: #202226;
  box-shadow: 0 3px 10px rgba(31, 34, 42, 0.1);
}

.payment-switch button.is-active svg {
  color: #1988bd;
}

.checkout-button,
.support-band a,
#dialogAction {
  background: #202226;
  color: #ffffff;
  box-shadow: none;
}

.checkout-button svg,
.support-band a svg,
#dialogAction svg {
  color: #d8ad50;
}

.facts {
  gap: 0;
  overflow: visible;
  border: 0;
  border-top: 1px solid #d7dae0;
  border-bottom: 1px solid #d7dae0;
  background: transparent;
}

.facts > div {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.facts > div + div {
  border-left: 1px solid #d7dae0;
}

.miniapp-showcase {
  border-color: #24262b;
  background-color: #17191d;
  background-image:
    linear-gradient(90deg, rgba(23, 25, 29, 0.96), rgba(23, 25, 29, 0.8)),
    url("assets/space-hero-v1.webp");
}

.miniapp-copy h2 {
  color: #ffffff;
}

.support-band {
  border-color: #d7dae0;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

@media (max-width: 600px) {
  .facts > div + div {
    border-top: 1px solid #d7dae0;
    border-left: 0;
  }
}

@media (max-width: 880px) {
  .store-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .catalog,
  .checkout {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 600px) {
  .store-layout {
    gap: 26px;
  }

  .catalog-head {
    padding-right: 8px;
  }

  .telegram-link {
    width: 44px;
    min-width: 44px;
    padding: 0;
    font-size: 0;
  }

  .telegram-link svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
  }
}

/* Unified luxury dark theme */
:root {
  color-scheme: dark;
  --bg: #0b0c0f;
  --surface: #15171b;
  --surface-2: #1d1f24;
  --text: #f1f0eb;
  --muted: #90939a;
  --line: #292c32;
  --cyan: #72a8c5;
  --gold: #c8a35a;
  --pink: #a6475b;
  --violet: #8378aa;
  --danger: #d65f72;
}

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(11, 12, 15, 0.93), rgba(11, 12, 15, 0.985)),
    url("assets/space-hero-v1.webp");
  color: var(--text);
}

.site-header::after {
  background: #27292e;
}

.brand {
  color: #f0efeb;
}

.brand-mark {
  border-color: #3b3528;
  background: #1b1c20;
  color: #cda95f;
}

nav {
  color: #92959b;
}

nav a:hover,
footer a:hover {
  color: #f0efeb;
}

.telegram-link {
  border-color: #31363d;
  background: #15171b;
  color: #8ab5cc;
}

.store-heading .eyebrow {
  color: #c9a257;
}

.store-heading h1 {
  color: #f3f2ed;
}

.store-heading p {
  color: #989ba2;
}

.store-rocket {
  opacity: 0.9;
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.5));
}

.mode-switch {
  border-color: #2c2f35;
  background: #14161a;
}

.mode-switch button,
.payment-switch button {
  color: #9699a0;
}

.mode-switch button.is-active {
  background: #e0d3b7;
  color: #17181b;
}

.mode-switch button.is-active svg {
  color: #8e6923;
}

.catalog-head span:first-child,
.checkout-title span,
.custom-amount,
form label,
legend,
.total-row {
  color: #8f9299;
}

.catalog-head h2 {
  color: #f0efea;
}

.availability {
  border-color: #30342f;
  background: #151914;
  color: #9ba49d;
}

.availability b {
  background: #6aaf7f;
}

.package-card {
  border-color: #292c32;
  background: #15171b;
  color: #efeee9;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.package-card span {
  color: #8f9299;
}

.package-card svg {
  color: #b99650;
}

.package-card:hover {
  border-color: #4a4335;
  background: #191b20;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.package-card.is-selected,
.package-card.is-selected:hover {
  border-color: #e0d3b7;
  background: #e0d3b7;
  color: #17181b;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
}

.package-card.is-selected span {
  color: #625b4c;
}

.package-card.is-selected svg {
  color: #8e6923;
}

.input-wrap {
  border-color: #2b2e34;
  background: #111216;
  color: #8f9299;
}

.input-wrap:focus-within {
  border-color: #776b50;
  box-shadow: 0 0 0 3px rgba(200, 163, 90, 0.08);
}

input {
  color: #efeee9;
}

.checkout {
  border-color: #2c2f35;
  background: #15171b;
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.42);
}

.checkout-title svg {
  color: #8b80ad;
}

.order-product {
  border-color: #292c32;
}

.product-icon {
  background: #24221c;
  color: #c8a35a;
}

.order-product div span {
  color: #8f9299;
}

.order-product b {
  color: #d0ad67;
}

.payment-switch {
  border-color: #292c32;
  background: #101115;
}

.payment-switch button.is-active {
  background: #24262b;
  color: #f0efeb;
  box-shadow: inset 0 0 0 1px #34373d;
}

.payment-switch button.is-active svg {
  color: #86b2c8;
}

.total-row strong {
  color: #f0efeb;
}

.checkout-button,
.support-band a,
#dialogAction {
  background: #dfc995;
  color: #17181b;
}

.checkout-button svg,
.support-band a svg,
#dialogAction svg {
  color: #6d511e;
}

.checkout-button:hover,
.support-band a:hover,
#dialogAction:hover {
  background: #ead8ad;
}

.facts {
  border-color: #292c32;
}

.facts > div + div {
  border-color: #292c32;
}

.facts svg {
  color: #b99650;
}

.facts span {
  color: #8f9299;
}

.facts strong {
  color: #e9e8e3;
}

.miniapp-showcase {
  min-height: 560px;
  padding: 64px 72px 0;
  border-color: rgba(200, 163, 90, 0.22);
  background-color: #111216;
  background-image:
    linear-gradient(90deg, rgba(15, 16, 19, 0.98), rgba(15, 16, 19, 0.82)),
    url("assets/space-hero-v1.webp");
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.018),
    0 30px 70px rgba(0, 0, 0, 0.34);
}

.miniapp-copy .eyebrow {
  color: #c8a35a;
}

.miniapp-copy h2 {
  color: #f1f0eb;
}

.miniapp-copy p {
  color: #9b9ea4;
}

.miniapp-copy a {
  border-color: #e1d8c4;
  background: #eee7d8;
  color: #17181b;
}

.miniapp-preview {
  padding: 14px 14px 0;
  border: 1px solid #303238;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: #0b0c0f;
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.58);
}

.miniapp-preview img {
  border: 0;
  border-radius: 10px 10px 0 0;
  box-shadow: none;
}

.support-band {
  border-color: #2c2f35;
  background: #15171b;
}

.support-band .eyebrow {
  color: #b99650;
}

.support-band h2 {
  color: #f0efeb;
}

footer {
  border-color: #292c32;
  color: #8f9299;
}

dialog {
  color: #f0efeb;
}

dialog::backdrop {
  background: rgba(2, 3, 5, 0.78);
}

.dialog-card {
  border-color: #2c2f35;
  background: #15171b;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.62);
}

.dialog-card p,
.legal-page section {
  color: #989ba2;
}

.dialog-close {
  background: #24262b;
  color: #a8abb1;
}

.dialog-icon {
  background: #24221c;
  color: #c8a35a;
}

.legal-page h1,
.legal-page h2 {
  color: #f0efeb;
}

@media (max-width: 880px) {
  .miniapp-showcase {
    padding-inline: 42px;
  }
}

@media (max-width: 600px) {
  .miniapp-showcase {
    padding: 34px 22px 0;
  }

  .miniapp-preview {
    padding: 10px 10px 0;
    border-radius: 15px 15px 0 0;
  }

  .facts > div + div {
    border-top-color: #292c32;
  }
}

/* Pearl luxury theme */
:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #eef1f4;
  --text: #17191e;
  --muted: #747982;
  --line: #dde1e6;
  --cyan: #438eaf;
  --gold: #a98237;
  --pink: #a6475b;
  --violet: #75699d;
  --danger: #b94d61;
}

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(248, 249, 251, 0.965), rgba(244, 246, 248, 0.99)),
    url("assets/space-hero-v1.webp");
  color: var(--text);
}

.site-header::after {
  background: #dde1e6;
}

.brand {
  color: #17191e;
}

.brand-mark {
  border-color: rgba(169, 130, 55, 0.26);
  background: #ffffff;
  color: #9a7329;
  box-shadow: 0 8px 22px rgba(28, 34, 43, 0.07);
}

nav,
footer {
  color: #747982;
}

nav a:hover,
footer a:hover {
  color: #17191e;
}

.telegram-link {
  border-color: #d8dde3;
  background: rgba(255, 255, 255, 0.9);
  color: #397f9e;
  box-shadow: 0 8px 24px rgba(28, 34, 43, 0.06);
}

.store-heading .eyebrow,
.miniapp-copy .eyebrow,
.support-band .eyebrow {
  color: #987128;
}

.store-heading h1,
.catalog-head h2,
.miniapp-copy h2,
.support-band h2,
.legal-page h1,
.legal-page h2 {
  color: #17191e;
}

.store-heading p,
.miniapp-copy p,
.dialog-card p,
.legal-page section {
  color: #747982;
}

.store-rocket {
  opacity: 1;
  filter: drop-shadow(0 24px 24px rgba(32, 37, 45, 0.16));
}

.mode-switch {
  border-color: #dce1e6;
  background: #eef1f4;
  box-shadow: inset 0 1px 2px rgba(28, 34, 43, 0.035);
}

.mode-switch button,
.payment-switch button {
  color: #777d86;
}

.mode-switch button.is-active {
  background: #ffffff;
  color: #17191e;
  box-shadow: 0 5px 16px rgba(28, 34, 43, 0.08);
}

.mode-switch button.is-active svg {
  color: #9a7329;
}

.catalog {
  padding-bottom: 24px;
}

.catalog-head span:first-child,
.checkout-title span,
.custom-amount,
form label,
legend,
.total-row {
  color: #747982;
}

.availability {
  border-color: #dce5dd;
  background: #f2f8f3;
  color: #65726a;
}

.availability b {
  background: #58a873;
}

.package-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.package-grid > .package-card {
  grid-column: span 2;
}

.package-grid:has(> .package-card:nth-child(5):last-child) > .package-card:nth-child(4),
.package-grid:has(> .package-card:nth-child(5):last-child) > .package-card:nth-child(5) {
  grid-column: span 3;
}

.package-grid > .package-card:only-child {
  grid-column: 1 / -1;
}

.package-card {
  border-color: #dfe3e8;
  background: rgba(255, 255, 255, 0.96);
  color: #17191e;
  box-shadow: 0 12px 30px rgba(28, 34, 43, 0.07);
}

.package-card span {
  color: #747982;
}

.package-card svg {
  color: #a98237;
}

.package-card:hover {
  border-color: rgba(169, 130, 55, 0.42);
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(28, 34, 43, 0.1);
}

.package-card.is-selected,
.package-card.is-selected:hover {
  border-color: rgba(169, 130, 55, 0.68);
  background: #fffdf8;
  color: #17191e;
  box-shadow:
    inset 0 0 0 1px rgba(169, 130, 55, 0.08),
    0 16px 36px rgba(35, 31, 23, 0.1);
}

.package-card.is-selected span {
  color: #726b5d;
}

.package-card.is-selected svg {
  color: #8d6824;
}

.input-wrap {
  border-color: #dce1e6;
  background: #ffffff;
  color: #747982;
  box-shadow: 0 8px 24px rgba(28, 34, 43, 0.05);
}

.input-wrap:focus-within {
  border-color: rgba(169, 130, 55, 0.58);
  box-shadow: 0 0 0 3px rgba(169, 130, 55, 0.09);
}

input {
  color: #17191e;
}

.checkout {
  border-color: #dce1e6;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 68px rgba(28, 34, 43, 0.13);
}

.checkout-title svg {
  color: #75699d;
}

.order-product {
  border-color: #e0e4e8;
}

.product-icon {
  background: #f5f1e7;
  color: #9a7329;
}

.order-product div span {
  color: #747982;
}

.order-product b {
  color: #8e6923;
}

.payment-switch {
  border-color: #dce1e6;
  background: #eef1f4;
}

.payment-switch button.is-active {
  background: #ffffff;
  color: #17191e;
  box-shadow: 0 5px 16px rgba(28, 34, 43, 0.08);
}

.payment-switch button.is-active svg {
  color: #438eaf;
}

.total-row strong {
  color: #17191e;
}

.checkout-button,
.support-band a,
#dialogAction {
  background: #191c22;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(20, 23, 29, 0.18);
}

.checkout-button svg,
.support-band a svg,
#dialogAction svg {
  color: #d2ad64;
}

.checkout-button:hover,
.support-band a:hover,
#dialogAction:hover {
  background: #292d34;
}

.facts {
  border-color: #dde1e6;
  background: rgba(255, 255, 255, 0.64);
}

.facts > div + div {
  border-color: #dde1e6;
}

.facts svg {
  color: #9a7329;
}

.facts span {
  color: #747982;
}

.facts strong {
  color: #23262c;
}

.miniapp-showcase {
  border-color: rgba(169, 130, 55, 0.22);
  background-color: #ffffff;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.99), rgba(247, 249, 251, 0.88)),
    url("assets/space-hero-v1.webp");
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.8),
    0 30px 70px rgba(28, 34, 43, 0.11);
}

.miniapp-copy a {
  border-color: #191c22;
  background: #191c22;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(20, 23, 29, 0.16);
}

.miniapp-copy a svg {
  color: #d2ad64;
}

.miniapp-preview {
  border-color: #d9dee4;
  background: #eef1f4;
  box-shadow: 0 32px 72px rgba(28, 34, 43, 0.18);
}

.support-band {
  border-color: #dde1e6;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(28, 34, 43, 0.07);
}

footer {
  border-color: #dde1e6;
}

dialog {
  color: #17191e;
}

dialog::backdrop {
  background: rgba(27, 31, 38, 0.38);
  backdrop-filter: blur(8px);
}

.dialog-card {
  border-color: #dde1e6;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(28, 34, 43, 0.2);
}

.dialog-close {
  background: #eef1f4;
  color: #626872;
}

.dialog-icon {
  background: #f5f1e7;
  color: #9a7329;
}

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

  .package-grid > .package-card,
  .package-grid:has(> .package-card:nth-child(5):last-child) > .package-card:nth-child(4),
  .package-grid:has(> .package-card:nth-child(5):last-child) > .package-card:nth-child(5) {
    grid-column: auto;
  }

  .package-grid > .package-card:last-child:nth-child(odd),
  .package-grid:has(> .package-card:nth-child(5):last-child) > .package-card:nth-child(5),
  .package-grid > .package-card:only-child {
    grid-column: 1 / -1;
  }

  .facts > div + div {
    border-top-color: #dde1e6;
  }
}

/* Desktop commerce layout */
@media (min-width: 881px) {
  .site-header,
  main,
  footer {
    width: min(1320px, calc(100% - 64px));
  }

  .site-header {
    height: 72px;
  }

  .storefront {
    min-height: 0;
    padding: 32px 0 56px;
  }

  .store-heading {
    max-width: 760px;
    margin-bottom: 24px;
  }

  .store-heading h1 {
    max-width: 760px;
    margin: 6px 0 10px;
    font-size: 46px;
    line-height: 1.06;
  }

  .store-heading p {
    font-size: 16px;
  }

  .store-rocket {
    width: 230px;
    top: -4px;
    right: 54px;
  }

  .store-layout {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 400px);
    gap: clamp(34px, 4vw, 58px);
  }

  .catalog {
    display: grid;
    grid-template-columns: minmax(330px, 0.92fr) minmax(280px, 1.08fr);
    grid-template-areas:
      "modes heading"
      "packages packages"
      "custom custom";
    gap: 16px 22px;
    align-content: start;
    padding-bottom: 0;
  }

  .mode-switch {
    grid-area: modes;
    width: 100%;
    align-self: end;
  }

  .catalog-head {
    grid-area: heading;
    min-height: 56px;
    align-items: center;
  }

  .catalog-head h2 {
    font-size: 23px;
  }

  .package-grid {
    grid-area: packages;
  }

  .package-card {
    min-height: 104px;
    padding: 16px 17px;
  }

  .package-card strong {
    padding-right: 30px;
    font-size: 17px;
  }

  .custom-amount {
    grid-area: custom;
    grid-template-columns: minmax(180px, 0.48fr) minmax(280px, 1fr);
    align-items: center;
    gap: 22px;
    margin-top: 0;
  }

  .custom-amount .input-wrap {
    max-width: none;
  }

  .checkout {
    position: sticky;
    top: 20px;
    padding: 20px;
  }

  .checkout-title {
    margin-bottom: 12px;
  }

  .order-product {
    padding-bottom: 14px;
  }

  .checkout form label {
    margin-top: 14px;
  }

  .checkout fieldset {
    margin-top: 14px;
  }

  .checkout .total-row {
    margin: 16px 0 12px;
  }

  .checkout .form-error {
    margin-top: 6px;
  }

  .facts {
    margin-bottom: 56px;
  }

  .miniapp-showcase {
    min-height: 540px;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: clamp(48px, 7vw, 96px);
    padding: 52px 76px 0;
  }

  .miniapp-copy {
    padding-bottom: 52px;
  }

  .miniapp-preview {
    width: 280px;
    justify-self: end;
  }

  .support-band {
    min-height: 156px;
    margin-bottom: 44px;
  }
}

@media (min-width: 881px) and (max-width: 1100px) {
  .site-header,
  main,
  footer {
    width: min(100% - 40px, 1320px);
  }

  .store-layout {
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 28px;
  }

  .catalog {
    grid-template-columns: 1fr;
    grid-template-areas:
      "modes"
      "heading"
      "packages"
      "custom";
    gap: 12px;
  }

  .catalog-head {
    min-height: 50px;
  }

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

  .package-grid > .package-card,
  .package-grid:has(> .package-card:nth-child(5):last-child) > .package-card:nth-child(4),
  .package-grid:has(> .package-card:nth-child(5):last-child) > .package-card:nth-child(5) {
    grid-column: auto;
  }

  .package-grid > .package-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .custom-amount {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .store-rocket {
    right: 16px;
  }

  .miniapp-showcase {
    padding-inline: 52px;
  }
}

.package-note,
.checkout-assurance {
  display: none;
}

/* 2K and ultrawide workspace */
@media (min-width: 1800px) {
  .site-header,
  main,
  footer {
    width: min(1760px, calc(100% - 120px));
  }

  .site-header {
    height: 88px;
  }

  .brand {
    gap: 12px;
    font-size: 22px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  nav {
    gap: 36px;
    font-size: 15px;
  }

  .telegram-link {
    min-height: 48px;
    padding-inline: 19px;
    font-size: 15px;
  }

  .storefront {
    padding: 48px 0 76px;
  }

  .store-heading {
    max-width: 1040px;
    margin-bottom: 34px;
  }

  .store-heading .eyebrow {
    font-size: 14px;
  }

  .store-heading h1 {
    max-width: 1040px;
    margin: 9px 0 13px;
    font-size: 62px;
  }

  .store-heading p {
    font-size: 20px;
  }

  .store-rocket {
    width: 330px;
    top: 2px;
    right: 118px;
  }

  .store-layout {
    grid-template-columns: minmax(0, 1fr) 500px;
    gap: 76px;
  }

  .catalog {
    grid-template-columns: minmax(480px, 0.92fr) minmax(420px, 1.08fr);
    gap: 22px 28px;
  }

  .mode-switch {
    padding: 7px;
  }

  .mode-switch button,
  .payment-switch button {
    min-height: 54px;
    gap: 10px;
    font-size: 16px;
  }

  .mode-switch svg,
  .payment-switch svg {
    width: 21px;
    height: 21px;
  }

  .catalog-head {
    min-height: 68px;
  }

  .catalog-head span:first-child,
  .checkout-title span {
    font-size: 14px;
  }

  .catalog-head h2 {
    margin-top: 5px;
    font-size: 31px;
  }

  .availability {
    padding: 7px 12px;
    font-size: 14px;
  }

  .package-grid {
    gap: 18px;
  }

  .package-card {
    min-height: 148px;
    gap: 7px;
    padding: 22px;
  }

  .package-card strong {
    padding-right: 40px;
    font-size: 22px;
  }

  .package-card .package-note {
    display: block;
    align-self: end;
    color: #9a9fa7;
    font-size: 13px;
    font-weight: 600;
  }

  .package-card span {
    font-size: 15px;
  }

  .package-card svg {
    width: 28px;
    height: 28px;
    top: 20px;
    right: 20px;
  }

  .package-card.is-selected .package-note {
    color: #726b5d;
  }

  .custom-amount {
    grid-template-columns: minmax(230px, 0.48fr) minmax(420px, 1fr);
    gap: 28px;
    font-size: 15px;
  }

  .input-wrap {
    min-height: 58px;
    padding-inline: 18px;
  }

  input {
    height: 56px;
    font-size: 16px;
  }

  .checkout {
    top: 28px;
    padding: 28px;
  }

  .checkout-title {
    margin-bottom: 18px;
  }

  .checkout-title svg {
    width: 25px;
    height: 25px;
  }

  .order-product {
    grid-template-columns: 56px 1fr auto;
    gap: 15px;
    padding-bottom: 18px;
  }

  .product-icon {
    width: 56px;
    height: 56px;
  }

  .product-icon svg {
    width: 28px;
    height: 28px;
  }

  .order-product div strong {
    font-size: 18px;
  }

  .order-product div span {
    font-size: 14px;
  }

  .order-product b {
    font-size: 20px;
  }

  .checkout form label,
  .checkout fieldset {
    margin-top: 18px;
  }

  .checkout form label,
  .checkout legend {
    font-size: 15px;
  }

  .payment-switch {
    padding: 6px;
  }

  .checkout .total-row {
    margin: 22px 0 15px;
    font-size: 16px;
  }

  .checkout .total-row strong {
    font-size: 29px;
  }

  .checkout-button {
    min-height: 60px;
    font-size: 17px;
  }

  .checkout-assurance {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 17px;
    padding-top: 17px;
    border-top: 1px solid #e1e4e8;
  }

  .checkout-assurance > div {
    min-width: 0;
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 10px;
    align-items: start;
  }

  .checkout-assurance svg {
    width: 21px;
    height: 21px;
    color: #a98237;
  }

  .checkout-assurance span {
    min-width: 0;
    display: grid;
    gap: 3px;
  }

  .checkout-assurance strong {
    color: #2a2d32;
    font-size: 13px;
  }

  .checkout-assurance small {
    color: #777d86;
    font-size: 11px;
    line-height: 1.4;
  }

  .facts {
    margin-bottom: 72px;
  }

  .facts > div {
    min-height: 132px;
    gap: 17px;
    padding: 28px;
  }

  .facts svg {
    width: 30px;
    height: 30px;
  }

  .facts span {
    gap: 5px;
    font-size: 14px;
  }

  .facts strong {
    font-size: 17px;
  }

  .miniapp-showcase {
    min-height: 700px;
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 120px;
    padding: 70px 108px 0;
  }

  .miniapp-copy {
    padding-bottom: 70px;
  }

  .miniapp-copy .eyebrow,
  .support-band .eyebrow {
    font-size: 14px;
  }

  .miniapp-copy h2 {
    max-width: 720px;
    font-size: 48px;
  }

  .miniapp-copy p {
    max-width: 680px;
    margin-bottom: 32px;
    font-size: 19px;
  }

  .miniapp-copy a {
    min-height: 58px;
    padding-inline: 22px;
    font-size: 16px;
  }

  .miniapp-preview {
    width: 370px;
  }

  .support-band {
    min-height: 190px;
    margin-bottom: 54px;
    padding: 44px;
  }

  .support-band h2 {
    font-size: 34px;
  }

  .support-band a {
    min-height: 58px;
    padding-inline: 24px;
    font-size: 16px;
  }

  footer {
    min-height: 100px;
    font-size: 14px;
  }
}

/* Search content and FAQ */
#benefits,
#miniapp,
#guide,
#faq,
#support {
  scroll-margin-top: 24px;
}

.seo-guide {
  margin-bottom: 58px;
}

.seo-guide-intro {
  max-width: 760px;
  margin-bottom: 38px;
}

.seo-guide-intro h2,
.faq h2 {
  margin: 8px 0 14px;
  color: #17191e;
  font-size: 36px;
  line-height: 1.12;
}

.seo-guide-intro p,
.seo-guide-grid article > p,
.faq details p {
  margin-bottom: 0;
  color: #747982;
  font-size: 16px;
  line-height: 1.65;
}

.seo-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #dde1e6;
  border-bottom: 1px solid #dde1e6;
}

.seo-guide-grid article {
  min-width: 0;
  padding: 42px 48px 42px 0;
}

.seo-guide-grid article + article {
  padding-inline: 48px 0;
  border-left: 1px solid #dde1e6;
}

.seo-guide-grid h3 {
  margin: 0 0 24px;
  color: #23262c;
  font-size: 24px;
}

.order-steps,
.seo-points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-steps {
  display: grid;
  gap: 20px;
}

.order-steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
}

.order-steps b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(169, 130, 55, 0.34);
  border-radius: 50%;
  background: #f8f4eb;
  color: #8e6923;
  font-size: 13px;
}

.order-steps span {
  display: grid;
  gap: 4px;
}

.order-steps strong {
  color: #2a2d32;
  font-size: 15px;
}

.order-steps small {
  color: #747982;
  font-size: 13px;
  line-height: 1.5;
}

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

.seo-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #34373d;
  font-size: 14px;
  font-weight: 700;
}

.seo-points svg {
  width: 18px;
  height: 18px;
  color: #9a7329;
}

.faq {
  max-width: 920px;
  margin-top: 68px;
}

.faq-list {
  margin-top: 26px;
  border-top: 1px solid #dde1e6;
}

.faq details {
  border-bottom: 1px solid #dde1e6;
}

.faq summary {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 4px;
  color: #24272c;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  list-style: none;
}

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

.faq summary svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: #9a7329;
  transition: transform 180ms ease;
}

.faq details[open] summary svg {
  transform: rotate(180deg);
}

.faq details p {
  max-width: 760px;
  padding: 0 44px 22px 4px;
}

.faq details a {
  color: #397f9e;
  font-weight: 700;
}

@media (max-width: 880px) {
  .seo-guide-grid {
    grid-template-columns: 1fr;
  }

  .seo-guide-grid article {
    padding: 34px 0;
  }

  .seo-guide-grid article + article {
    padding-inline: 0;
    border-top: 1px solid #dde1e6;
    border-left: 0;
  }
}

@media (max-width: 600px) {
  .seo-guide {
    margin-bottom: 46px;
  }

  .seo-guide-intro {
    margin-bottom: 28px;
  }

  .seo-guide-intro h2,
  .faq h2 {
    font-size: 28px;
  }

  .seo-guide-intro p,
  .seo-guide-grid article > p,
  .faq details p {
    font-size: 14px;
  }

  .seo-guide-grid h3 {
    font-size: 21px;
  }

  .faq {
    margin-top: 48px;
  }

  .faq summary {
    min-height: 64px;
    gap: 18px;
    font-size: 14px;
    line-height: 1.4;
  }

  .faq details p {
    padding-right: 26px;
  }

  footer div {
    flex-wrap: wrap;
    row-gap: 12px;
  }
}

@media (min-width: 1800px) {
  .seo-guide {
    margin-bottom: 76px;
  }

  .seo-guide-intro {
    max-width: 1040px;
    margin-bottom: 52px;
  }

  .seo-guide-intro h2,
  .faq h2 {
    font-size: 48px;
  }

  .seo-guide-intro p,
  .seo-guide-grid article > p,
  .faq details p {
    font-size: 19px;
  }

  .seo-guide-grid article {
    padding: 56px 68px 56px 0;
  }

  .seo-guide-grid article + article {
    padding-inline: 68px 0;
  }

  .seo-guide-grid h3 {
    margin-bottom: 30px;
    font-size: 31px;
  }

  .order-steps {
    gap: 26px;
  }

  .order-steps li {
    grid-template-columns: 42px 1fr;
    gap: 17px;
  }

  .order-steps b {
    width: 42px;
    height: 42px;
    font-size: 15px;
  }

  .order-steps strong {
    font-size: 18px;
  }

  .order-steps small,
  .seo-points li {
    font-size: 16px;
  }

  .faq {
    max-width: 1240px;
    margin-top: 90px;
  }

  .faq summary {
    min-height: 84px;
    font-size: 19px;
  }
}
