/* Публичные страницы (оферта, privacy, terms, оплата) — визуально как главный лендинг */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  font-family: Arial, sans-serif;
  background:
    radial-gradient(circle at 50% 20%, rgba(110, 140, 255, 0.28), transparent 28%),
    radial-gradient(circle at 20% 80%, rgba(255, 120, 220, 0.18), transparent 25%),
    linear-gradient(180deg, #101935 0%, #0b1026 100%);
  color: #fff;
  overflow-x: hidden;
}

html { scroll-behavior: smooth; }

.topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  width: min(1100px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 22px;
  background: rgba(10, 16, 38, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.topbar-logo {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  white-space: nowrap;
}

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

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

.topbar-social {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.topbar-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.topbar-social-link:hover,
.topbar-social-link:focus-visible {
  color: #fff;
  background: rgba(125, 211, 252, 0.14);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.16) inset;
  transform: translateY(-1px);
  outline: none;
}

.topbar-social-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.topbar-social-link--vc {
  width: auto;
  min-width: 40px;
  padding: 0 9px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 18px;
  margin-right: 4px;
  padding: 3px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 600 12px/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  padding: 7px 11px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.lang-switch__btn:hover,
.lang-switch__btn:focus-visible {
  color: rgba(255, 255, 255, 0.88);
  outline: none;
}

.lang-switch__btn.is-active {
  color: #fff;
  background: rgba(125, 211, 252, 0.22);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.14) inset;
}

.topbar-social-vc {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.topbar-link:hover,
.topbar-link:focus-visible {
  color: #fff;
  background: rgba(125, 211, 252, 0.14);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.16) inset;
  transform: translateY(-1px);
  outline: none;
}

.topbar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 36px;
  padding: 0 12px;
  border-radius: 14px;
  color: #07111a;
  text-decoration: none;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #7dd3fc, #60a5fa);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 16px 40px rgba(96,165,250,0.18);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.topbar-cta:hover,
.topbar-cta:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.03) saturate(1.05);
  box-shadow: 0 20px 50px rgba(96,165,250,0.22);
  outline: none;
}

.topbar-cta__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(7,17,26,0.86);
}

.topbar-cta__icon svg {
  width: 100%;
  height: 100%;
}

.topbar-burger {
  display: none;
  position: relative;
  z-index: 130;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(125, 211, 252, 0.08);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.topbar-burger:hover {
  background: rgba(125, 211, 252, 0.16);
  border-color: rgba(125, 211, 252, 0.35);
  box-shadow: 0 0 20px rgba(125, 211, 252, 0.12);
}

.topbar-burger__bars {
  display: block;
  width: 22px;
  height: 14px;
  position: relative;
}

.topbar-burger__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, top 0.35s ease;
}

.topbar-burger__bars span:nth-child(1) { top: 0; }
.topbar-burger__bars span:nth-child(2) { top: 6px; opacity: 1; }
.topbar-burger__bars span:nth-child(3) { top: 12px; }

.topbar.is-menu-open .topbar-burger__bars span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.topbar.is-menu-open .topbar-burger__bars span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.topbar.is-menu-open .topbar-burger__bars span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

.topbar-nav-backdrop {
  display: none;
}

.bg-ambient {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.orb-1 {
  width: 42vw;
  height: 42vw;
  left: -8vw;
  top: 8vh;
  background: radial-gradient(circle, rgba(84, 170, 255, 0.28), rgba(84, 170, 255, 0));
}

.orb-2 {
  width: 34vw;
  height: 34vw;
  right: -6vw;
  top: 12vh;
  background: radial-gradient(circle, rgba(170, 120, 255, 0.22), rgba(170, 120, 255, 0));
}

.orb-3 {
  width: 36vw;
  height: 36vw;
  left: 28vw;
  bottom: -10vw;
  background: radial-gradient(circle, rgba(83, 232, 194, 0.16), rgba(83, 232, 194, 0));
}

.bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(circle at center, black 20%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at center, black 20%, transparent 85%);
}

.bg-rays {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08), transparent 22%),
    radial-gradient(circle at 75% 18%, rgba(120, 200, 255, 0.12), transparent 18%),
    linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, 0.035) 48%, transparent 54%),
    linear-gradient(70deg, transparent 0 46%, rgba(120, 210, 255, 0.03) 50%, transparent 56%);
  mix-blend-mode: screen;
}

.site-page {
  position: relative;
  z-index: 2;
  padding-top: 92px;
  min-height: 100vh;
}

.site-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 24px 32px;
}

.site-main--center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 92px - 120px);
  padding-bottom: 48px;
}

.site-main--center .site-center-card {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.site-main h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.site-main .lead {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  line-height: 1.55;
}

.site-muted-intro {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.55;
}

.site-muted-intro a {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-muted-intro a:hover {
  color: #bfdbfe;
}

.site-legal-box {
  margin-top: 16px;
  padding: 22px 24px;
  border-radius: 18px;
  background: rgba(10, 16, 38, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.site-main .lead + .site-legal-box {
  margin-top: 24px;
}

.site-main .site-muted-intro + .site-legal-box {
  margin-top: 24px;
}

.site-legal-box--accent {
  background: rgba(31, 70, 216, 0.12);
  border-left: 4px solid #4f7cff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.site-legal-box h2 {
  margin: 0 0 12px;
  font-size: 1.2em;
  font-weight: 700;
  color: #fff;
}

.site-legal-box h2:first-child {
  margin-top: 0;
}

.site-legal-box h3 {
  margin: 16px 0 8px;
  font-size: 1.05em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.site-legal-box p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.site-legal-box p:last-child {
  margin-bottom: 0;
}

.site-legal-box ul {
  margin: 8px 0 12px;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.65;
}

.site-legal-box li {
  margin-bottom: 6px;
}

.site-legal-box a {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-legal-box a:hover {
  color: #bfdbfe;
}

.site-legal-muted-small {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.55;
}

.site-footer {
  margin-top: 28px;
  padding: 22px 24px 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.site-footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.site-footer-links a {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
}

.site-footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer-social {
  margin-top: 10px;
}

.site-footer-social-label {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 600;
  margin-right: 6px;
}

.site-footer-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  line-height: 1.6;
  max-width: 620px;
}

.payment-result-card {
  padding: 36px 28px;
  border-radius: 22px;
  background: rgba(10, 16, 38, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.payment-result-card h1 {
  font-size: 26px;
  margin-bottom: 16px;
}

.payment-result-card p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  margin: 0 0 16px;
}

.payment-result-card .btn-row {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.payment-result-card a {
  color: #93c5fd;
  font-weight: 600;
}

.payment-result-card .btn-bot {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 14px;
  background: rgba(125, 211, 252, 0.16);
  border: 1px solid rgba(125, 211, 252, 0.35);
  color: #fff;
  text-decoration: none;
}

.payment-result-card .btn-bot:hover {
  background: rgba(125, 211, 252, 0.24);
}

.telegram-widget-wrap {
  margin: 24px 0;
  display: flex;
  justify-content: center;
}

.site-center-card .sub {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 900px) {
  .topbar {
    top: 10px;
    width: calc(100% - 20px);
    padding: 12px 14px;
    border-radius: 18px;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
  }

  .topbar-logo {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 140;
  }

  .topbar-burger {
    display: flex;
    position: relative;
    z-index: 140;
  }

  .topbar-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 118;
    background: rgba(4, 8, 22, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.38s ease, visibility 0.38s ease;
  }

  .topbar.is-menu-open .topbar-nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .topbar-nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
  }

  .topbar-social {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    justify-content: flex-start;
    flex-wrap: wrap;
    width: 100%;
  }

  .topbar-social-link {
    transform: none;
    min-height: 44px;
    min-width: 44px;
  }

  .topbar-social-link:hover {
    transform: none;
  }

  .topbar-social-link--vc {
    min-width: 44px;
  }

  .topbar-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 119;
    width: min(100vw - 48px, 340px);
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: calc(env(safe-area-inset-top, 0px) + 88px) 20px 32px 24px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    background:
      linear-gradient(165deg, rgba(18, 28, 58, 0.97) 0%, rgba(10, 16, 38, 0.98) 45%, rgba(8, 12, 28, 0.99) 100%);
    border-left: 1px solid rgba(125, 211, 252, 0.18);
    box-shadow:
      -24px 0 60px rgba(0, 0, 0, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translate3d(105%, 0, 0);
    transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
    pointer-events: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .topbar.is-menu-open .topbar-nav {
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
  }

  .topbar-nav::before {
    content: "Навигация";
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(125, 211, 252, 0.55);
    margin-bottom: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .topbar-link {
    min-height: 52px;
    padding: 14px 18px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 16px;
    justify-content: flex-start;
    transform: none;
  }

  .topbar-link:hover {
    transform: none;
  }

  .topbar-cta {
    width: 100%;
    height: 52px;
    border-radius: 16px;
    margin-top: 10px;
  }
}
