:root {
  --ink: #f8f7ff;
  --muted: #aaa7b9;
  --surface: rgba(27, 25, 36, 0.9);
  --line: rgba(255, 255, 255, 0.1);
  --background: #0d0c12;
  --gold: #f2b90c;
  --telegram: #2aabee;
}

* { box-sizing: border-box; }
html { background: var(--background); color-scheme: dark; }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 8% 14%, rgba(124, 92, 255, 0.15), transparent 31%),
    radial-gradient(circle at 90% 88%, rgba(42, 171, 238, 0.08), transparent 26%),
    linear-gradient(145deg, #121019 0%, #0d0c12 48%, #09090d 100%);
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.ambient {
  position: fixed;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.1;
  pointer-events: none;
}
.ambient-one { top: 4%; left: -180px; background: #ff6542; }
.ambient-two { right: -180px; bottom: 3%; background: #7c5cff; }

.selector { position: relative; z-index: 1; width: min(100%, 1180px); margin: 0 auto; }

.topbar {
  position: sticky;
  top: max(10px, env(safe-area-inset-top));
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 10px 12px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(18, 16, 25, 0.78);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.identity { display: flex; align-items: center; gap: 11px; }
.identity > div:last-child { display: grid; gap: 1px; }
.identity strong { font-size: 0.86rem; letter-spacing: -0.01em; }
.identity small { color: #7d798a; font-size: 0.62rem; }
.brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}
.brand-mark span {
  width: 15px;
  height: 15px;
  border-radius: 5px 9px;
  background: linear-gradient(135deg, #ff7658, #7c5cff);
  transform: rotate(10deg);
}

.telegram-link { color: inherit; text-decoration: none; }
.topbar .telegram-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 7px 13px 7px 8px;
  border: 1px solid rgba(42, 171, 238, 0.32);
  border-radius: 15px;
  background: rgba(42, 171, 238, 0.09);
  transition: transform 160ms ease, background 160ms ease;
}
.topbar .telegram-link:hover { background: rgba(42, 171, 238, 0.16); transform: translateY(-1px); }
.telegram-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--telegram);
  color: white;
  font-size: 0.9rem;
  transform: rotate(-26deg);
}
.topbar .telegram-link > span:nth-child(2) { display: grid; gap: 1px; }
.topbar .telegram-link small { color: #8fd9ff; font-size: 0.56rem; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; }
.topbar .telegram-link strong { font-size: 0.75rem; }
.telegram-arrow { margin-left: 3px; color: #8fd9ff; }

.content-grid { display: grid; gap: 24px; margin-top: 24px; }
.story-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(10px, 3vw, 34px) 4px 6px;
}
.intro { max-width: 480px; }
.kicker, .offer-eyebrow, .offers-heading p {
  margin: 0;
  color: #b8aaff;
  font-size: 0.66rem;
  font-weight: 780;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1 {
  max-width: 570px;
  margin: 10px 0 13px;
  font-size: clamp(2.55rem, 5.8vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.058em;
}
.subtitle { max-width: 470px; margin: 0; color: var(--muted); font-size: clamp(0.92rem, 1.5vw, 1.05rem); line-height: 1.65; }

.trust-row { display: flex; flex-wrap: wrap; gap: 8px 15px; margin-top: 22px; color: #7f7b8d; font-size: 0.66rem; }
.trust-row span { display: flex; align-items: center; gap: 6px; }
.trust-row i { width: 5px; height: 5px; border-radius: 50%; background: #51d5a5; box-shadow: 0 0 8px rgba(81, 213, 165, 0.65); }

.club-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  width: min(100%, 450px);
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(42, 171, 238, 0.24);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.13), rgba(124, 92, 255, 0.08));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  transition: transform 160ms ease, border-color 160ms ease;
}
.club-card:hover { transform: translateY(-2px); border-color: rgba(42, 171, 238, 0.5); }
.club-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--telegram); color: white; transform: rotate(-26deg); }
.club-copy { display: grid; gap: 3px; min-width: 0; }
.club-copy small { color: #7cd2ff; font-size: 0.56rem; font-weight: 800; letter-spacing: 0.11em; }
.club-copy strong { font-size: 0.87rem; }
.club-copy em { overflow: hidden; color: #858193; font-size: 0.66rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.club-arrow { color: #8fd9ff; font-size: 1.25rem; }

.offers-column {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(16, 14, 22, 0.62);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}
.offers-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 4px 2px 17px; }
.offers-heading p { color: #777286; font-size: 0.56rem; }
.offers-heading h2 { margin: 5px 0 0; font-size: 1.25rem; letter-spacing: -0.03em; }
.offers-heading > span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: #827e90; font-size: 0.61rem; }
.offer-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.offer-card {
  --accent: #7c5cff;
  position: relative;
  display: grid;
  grid-template-rows: 126px auto 46px;
  gap: 12px;
  min-width: 0;
  min-height: 318px;
  overflow: hidden;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
}
.offer-card::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(90px);
  opacity: 0.11;
  pointer-events: none;
}
.offer-card.featured {
  grid-column: 1 / -1;
  grid-template-columns: minmax(245px, 0.9fr) minmax(270px, 1.1fr);
  grid-template-rows: minmax(128px, 1fr) 50px;
  gap: 18px;
  min-height: 255px;
  padding: 15px;
  border-color: color-mix(in srgb, var(--accent) 48%, transparent);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 255, 0.035);
}
.offer-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 126px;
  overflow: hidden;
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 17%, #17151d);
}
.featured .offer-visual { grid-column: 1; grid-row: 1 / 3; height: 100%; min-height: 222px; border-radius: 18px; }
.visual-orbit { position: absolute; width: 100px; height: 100px; border: 1px solid color-mix(in srgb, var(--accent) 58%, transparent); border-radius: 50%; transform: translate(40px, -38px); }
.visual-core { position: relative; color: color-mix(in srgb, var(--accent) 82%, white); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; }
.visual-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.offer-copy { min-width: 0; align-self: end; padding: 0 3px; }
.featured .offer-copy { grid-column: 2; grid-row: 1; align-self: center; padding: 4px 4px 0; }
.offer-eyebrow { color: var(--accent); font-size: 0.56rem; letter-spacing: 0.1em; }
.offer-copy h2 { margin: 6px 0 6px; font-size: 1.12rem; line-height: 1.1; letter-spacing: -0.025em; }
.featured .offer-copy h2 { margin-top: 8px; font-size: clamp(1.55rem, 2.6vw, 2.15rem); }
.offer-copy > p:last-child { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); font-size: 0.72rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.featured .offer-copy > p:last-child { max-width: 380px; font-size: 0.82rem; -webkit-line-clamp: 3; }
.offer-cta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  height: 46px;
  padding: 0 15px;
  border-radius: 14px;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 9px 24px color-mix(in srgb, var(--accent) 25%, transparent);
  transition: transform 160ms ease, filter 160ms ease;
}
.featured .offer-cta { grid-column: 2; grid-row: 2; width: fit-content; min-width: 180px; height: 50px; padding-inline: 18px; }
.arrow { font-size: 1.15rem; line-height: 1; }
.offer-cta:hover { filter: brightness(1.08); transform: translateY(-2px); }
.offer-cta:active { transform: scale(0.98); }
.offer-cta:focus-visible, .telegram-link:focus-visible { outline: 3px solid white; outline-offset: 3px; }

footer { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 14px; color: #686475; font-size: 0.63rem; text-align: center; }
.secure-dot { width: 5px; height: 5px; border-radius: 50%; background: #4aca9d; box-shadow: 0 0 8px rgba(74, 202, 157, 0.7); }

@media (min-width: 900px) {
  .page-shell { display: grid; align-items: center; padding-block: 24px; }
  .content-grid { grid-template-columns: minmax(310px, 0.82fr) minmax(610px, 1.45fr); align-items: stretch; }
  .story-column { min-height: 600px; }
}

@media (max-width: 899px) {
  .selector { width: min(100%, 680px); }
  .story-column { padding-top: 18px; }
  .intro { text-align: center; margin-inline: auto; }
  h1 { margin-inline: auto; font-size: clamp(2.45rem, 10vw, 4.4rem); }
  .subtitle { margin-inline: auto; }
  .trust-row { justify-content: center; }
  .club-card { margin: 19px auto 0; }
}

@media (max-width: 600px) {
  .page-shell { padding: max(12px, env(safe-area-inset-top)) 11px max(14px, env(safe-area-inset-bottom)); }
  .page-shell::before { background-size: 48px 48px; }
  .topbar { min-height: 60px; padding: 7px 8px 7px 10px; border-radius: 18px; }
  .identity strong { font-size: 0.76rem; }
  .identity small { display: none; }
  .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .topbar .telegram-link { min-height: 42px; gap: 7px; padding: 5px 9px 5px 6px; border-radius: 13px; }
  .telegram-icon { width: 31px; height: 31px; border-radius: 10px; }
  .topbar .telegram-link small, .telegram-arrow { display: none; }
  .topbar .telegram-link strong { font-size: 0.68rem; }
  .content-grid { margin-top: 10px; gap: 13px; }
  .story-column { padding: 15px 3px 0; }
  .kicker { font-size: 0.58rem; }
  h1 { margin: 7px auto 9px; font-size: clamp(2.25rem, 12vw, 3.2rem); }
  .subtitle { max-width: 360px; font-size: 0.79rem; line-height: 1.5; }
  .trust-row { gap: 7px 12px; margin-top: 14px; font-size: 0.57rem; }
  .club-card { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; margin-top: 15px; padding: 10px; border-radius: 17px; }
  .club-icon { width: 42px; height: 42px; border-radius: 13px; }
  .club-copy strong { font-size: 0.77rem; }
  .club-copy em { font-size: 0.59rem; }
  .offers-column { padding: 11px; border-radius: 22px; }
  .offers-heading { padding: 3px 2px 11px; }
  .offers-heading h2 { font-size: 1rem; }
  .offer-list { grid-template-columns: 1fr; gap: 9px; }
  .offer-card, .offer-card.featured {
    grid-column: auto;
    grid-template-columns: 72px minmax(0, 1fr) 45px;
    grid-template-rows: 1fr;
    align-items: center;
    gap: 10px;
    min-height: 108px;
    padding: 10px;
    border-radius: 18px;
  }
  .offer-visual, .featured .offer-visual { grid-column: 1; grid-row: 1; width: 72px; height: 84px; min-height: 0; border-radius: 14px; }
  .offer-copy, .featured .offer-copy { grid-column: 2; grid-row: 1; align-self: center; padding: 0; }
  .offer-copy h2, .featured .offer-copy h2 { margin: 4px 0 3px; font-size: 0.98rem; }
  .offer-copy > p:last-child, .featured .offer-copy > p:last-child { font-size: 0.67rem; line-height: 1.35; -webkit-line-clamp: 2; }
  .offer-cta, .featured .offer-cta { grid-column: 3; grid-row: 1; width: 45px; min-width: 45px; height: 45px; padding: 0; justify-content: center; border-radius: 14px; }
  .offer-cta > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  footer { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .offer-cta, .telegram-link, .club-card { transition: none; }
}
