:root {
  --bg: #0b0b0f;
  --card: #14141a;
  --text: #f2f2f4;
  --muted: #8b8b96;
  --line: #26262f;
  --accent: #7b82ff;
  --wrap: 1280px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(ellipse 80% 40% at 50% -10%, rgba(123, 130, 255, 0.12), transparent 55%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 11, 15, 0.92);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  min-height: 92px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand img {
  height: 72px;
  width: auto;
  display: block;
}

.contact-rail {
  position: fixed;
  right: 18px;
  bottom: 28px;
  top: auto;
  transform: none;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.contact-btn svg {
  width: 24px;
  height: 24px;
}

.contact-btn span {
  position: absolute;
  right: calc(100% + 10px);
  white-space: nowrap;
  background: #14141a;
  color: #f2f2f4;
  border: 1px solid #26262f;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.contact-btn.telegram {
  background: #229ed9;
}

.contact-btn[hidden] {
  display: none;
}

.contact-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.contact-btn:hover span {
  opacity: 1;
  transform: none;
}

.announcement {
  border-bottom: 1px solid rgba(123, 130, 255, 0.22);
  background: linear-gradient(90deg, rgba(123, 130, 255, 0.1), rgba(123, 130, 255, 0.04));
}

.announcement[hidden] {
  display: none;
}

.announcement-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 12px;
  padding-bottom: 12px;
  text-decoration: none;
  color: inherit;
}

.announcement-badge {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b0b0f;
  background: #c5c8ff;
  padding: 4px 8px;
  border-radius: 6px;
}

.announcement-text {
  margin: 0;
  flex: 1;
  color: #d8daf0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.announcement-text strong {
  color: #fff;
  font-weight: 600;
}

.announcement-cta {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 650;
  color: #c5c8ff;
  letter-spacing: 0.02em;
}

.announcement-inner:hover .announcement-cta {
  color: #fff;
}

main.wrap {
  padding-top: 28px;
  padding-bottom: 64px;
  padding-right: 88px;
}

.intro {
  text-align: center;
  margin-bottom: 8px;
}

h1 {
  margin: 0 0 6px;
  font-size: 1.85rem;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.lede {
  margin: 0 auto 22px;
  color: var(--muted);
  max-width: 42ch;
}

.tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(380px, 100%);
  margin: 0 auto 32px;
  padding: 6px;
  background: linear-gradient(180deg, #16161c, #101014);
  border: 1px solid #2e2e38;
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 24px rgba(0, 0, 0, 0.28);
}

.tabs::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(50% - 6px);
  height: calc(100% - 12px);
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.tabs[data-mode="agent"]::before {
  transform: translateX(100%);
}

.tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #9a9aa6;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.tab svg {
  width: 17px;
  height: 17px;
}

.tab:hover:not(.is-on) {
  color: #e8e8ee;
}

.tab.is-on {
  color: #0b0b0e;
  font-weight: 650;
}

.tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.ad-feature {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0 0 28px;
  padding: 20px 24px;
  border-radius: 16px;
  border: 1px solid rgba(123, 130, 255, 0.28);
  background: linear-gradient(90deg, rgba(123, 130, 255, 0.12), rgba(20, 20, 26, 0.9));
}

.ad-feature[hidden] {
  display: none;
}

.ad-feature img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.ad-feature-copy {
  flex: 1;
  min-width: 0;
}

.ad-feature-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b0b0f;
  background: #c5c8ff;
  padding: 3px 8px;
  border-radius: 6px;
}

.ad-feature h2 {
  margin: 8px 0 2px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.ad-feature-offer {
  margin: 0 0 4px;
  color: var(--accent);
  font-weight: 650;
}

.ad-feature-copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.ad-feature-cta {
  flex-shrink: 0;
  text-decoration: none;
  background: #f4f4f6;
  color: #111;
  font-weight: 650;
  font-size: 0.9rem;
  padding: 12px 18px;
  border-radius: 10px;
}

.ad-feature-cta:hover {
  background: #fff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px 14px 20px;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.card:hover,
.card:focus-visible {
  border-color: #4a4a5a;
  background: #18181f;
  transform: translateY(-3px);
  outline: none;
}

.card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.card span {
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  color: #d8d8e0;
}

footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 32px;
  color: var(--muted);
  font-size: 0.82rem;
}

footer p {
  margin: 0 0 6px;
}

.empty {
  margin: 28px 0 0;
  color: var(--muted);
  text-align: center;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  padding: 16px;
}

.overlay[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: min(440px, 100%);
  background: #141418;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px 28px;
  text-align: center;
}

.modal-kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-logo {
  width: min(100%, 360px);
  max-height: 280px;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
  margin: 12px auto 10px;
  display: block;
  background: #0f0f14;
}

.modal-logo[hidden] {
  display: none;
}

.modal h2 {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.modal-amount {
  margin: 12px 0 8px;
  font-size: 1.8rem;
  font-weight: 650;
  color: var(--accent);
}

.modal-copy {
  margin: 0 0 20px;
  color: var(--muted);
}

.promo-cta,
.modal-close {
  font: inherit;
  cursor: pointer;
}

.promo-cta {
  display: inline-block;
  text-decoration: none;
  border: 0;
  background: var(--text);
  color: #111;
  font-weight: 600;
  border-radius: 10px;
  padding: 10px 18px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
}

@media (max-width: 800px) {
  .topbar .wrap {
    min-height: 0;
    flex-wrap: wrap;
  }

  .brand img {
    height: 56px;
  }

  .contact-rail {
    right: 12px;
    bottom: 18px;
  }

  .contact-btn {
    width: 46px;
    height: 46px;
  }

  .contact-btn span {
    display: none;
  }

  .announcement-inner {
    flex-wrap: wrap;
    gap: 10px;
  }

  .ad-feature {
    flex-direction: column;
    text-align: center;
  }

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

  .card img {
    width: 96px;
    height: 96px;
  }
}
