:root {
  --bg-base: #10162c;
  --text-primary: #f0f2f4;
  --text-secondary: #9aa2b1;
  --text-success: #61d395;
  --blue-800: #133593;
  --blue-900: #0c215a;
  --button-primary: #2559f6;
  --gray-1000: #050a15;
  --gray-900: #1b2233;
  --green-1000: #123223;
  --surface-100: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg-base);
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

img {
  display: block;
}

h1,
h2 {
  font-weight: 700;
}

.page {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 40px;
  background: var(--bg-base);
  overflow-x: clip;
}

/* ---------- typography ---------- */
.title-l {
  font-size: 36px;
  line-height: 44px;
  font-weight: 700;
  color: var(--text-primary);
}

.title-m {
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.text-l {
  font-size: 18px;
  line-height: 24px;
}

.text-m {
  font-size: 16px;
  line-height: 24px;
}

.text-xs {
  font-size: 12px;
  line-height: 16px;
}

.secondary {
  color: var(--text-secondary);
}

.green {
  color: #5ec269;
}

.center {
  text-align: center;
}

.pre {
  white-space: pre;
}

/* ---------- buttons ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--button-primary);
  border-radius: 16px;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 18px;
  line-height: 16px;
  white-space: nowrap;
}

.btn-hero {
  width: 100%;
  padding: 16px 24px;
}

.btn-card,
.btn-cta {
  height: 44px;
  padding: 16px 12px;
}

.btn-card,
.btn-full {
  width: 100%;
}

/* ---------- header / logo ---------- */
.header {
  width: 100%;
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 4px;
}

.logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.1;
  white-space: nowrap;
  /* Figma: linear-gradient(177.3deg, #4576b8 50.4%, #fff 64.6%) — в рендере Figma даёт голубой верх букв с переходом в белый */
  background-image: linear-gradient(177.29963544992026deg, #b4c8e3 20%, #ffffff 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  width: calc(100% + 2px);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  padding: 36px 16px;
  border-radius: 36px;
  overflow: clip;
}

.hero-content {
  position: relative;
  z-index: 4;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.hero-title {
  font-size: 40px;
  line-height: 48px;
  color: var(--text-primary);
}

.badges {
  position: relative;
  z-index: 3;
  width: 297px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.badge {
  background: var(--blue-800);
  border-radius: 100px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.hero-media {
  position: relative;
  width: 387px;
  height: 393px;
  flex-shrink: 0;
  border-radius: 64px;
}

.hero-media-bg {
  display: none;
}

.hero-glow {
  position: absolute;
  left: -2.02px;
  top: 52.8px;
  width: 391.635px;
  height: 274.446px;
  overflow: hidden;
}


.hero-glow img {
  position: absolute;
  left: 0;
  top: -20.65%;
  width: 100%;
  height: 139.44%;
  max-width: none;
}

.hero-tyler {
  position: absolute;
  left: 101.6px;
  top: -23.62px;
  width: 260.657px;
  height: 313.196px;
  object-position: bottom;
}

.hero-actions {
  position: absolute;
  left: 20px;
  bottom: 36px;
  width: 343px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-decoration {
  position: absolute;
  z-index: 1;
  left: calc(50% - 365.76px);
  top: -170.93px;
  width: 820.224px;
  height: 625.379px;
  pointer-events: none;
}

.hero-decoration img {
  position: absolute;
  inset: -13.02% -9.92%;
  width: calc(100% + 2 * 9.92%);
  height: calc(100% + 2 * 13.02%);
  max-width: none;
}

/* ---------- how it works ---------- */
.how {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 40px 16px;
}

.how-title {
  width: 302.941px;
  text-align: center;
}

.how-content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
}

.step-indicators {
  width: 36px;
  height: 376px;
  flex-shrink: 0;
  border-radius: 50px;
}

.steps {
  flex: 1 0 0;
  min-width: 1px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step p {
  max-width: 100%;
}

/* ---------- pricing ---------- */
.pricing {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px 16px;
}

.pricing-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.pricing-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-selector {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 4px;
  background: var(--gray-1000);
  border-radius: 200px;
}

.plan-option {
  flex: 1 0 0;
  min-width: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 16px;
  border-radius: 200px;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.plan-option img {
  display: none;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* выбранная вкладка не уже своего содержимого (текст + иконка), иначе «Advansed» вылезает за подложку;
   для Elit содержимое уже равной доли, поэтому состояние из макета не меняется */
.plan-option.is-active {
  background: var(--blue-900);
  color: var(--text-primary);
  min-width: max-content;
}

.plan-option.is-active img {
  display: block;
}

.plan-cards {
  display: flex;
  gap: 21px;
  margin: 0 -16px;
  padding: 0 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.plan-cards::-webkit-scrollbar {
  display: none;
}

.plan-card {
  flex-shrink: 0;
  width: calc(100% + 1px);
  height: 412px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--gray-1000);
  border-radius: 24px;
  scroll-snap-align: start;
}

.plan-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.plan-name {
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.promo {
  position: relative;
  width: 123px;
  height: 43px;
  overflow: clip;
  flex-shrink: 0;
}

.promo>img {
  position: absolute;
  left: -0.15px;
  top: 0;
  width: 123.179px;
  height: 43.313px;
}

.promo-text {
  position: absolute;
  left: 50%;
  top: 4px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.promo-label {
  opacity: .5;
}

.plan-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.plan-price {
  font-size: 36px;
  line-height: 44px;
  font-weight: 700;
  white-space: nowrap;
}

.plan-tagline {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-success);
  white-space: nowrap;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.feature p {
  font-size: 16px;
  line-height: 24px;
  white-space: nowrap;
}

.feature p.pre {
  white-space: pre;
}

.risk {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 24px;
  background: var(--gray-900);
  border-radius: 100px;
}

.risk>p {
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.risk>p.pre {
  white-space: pre;
}

.risk-pills {
  display: flex;
  align-items: center;
}

.risk-pills i {
  position: relative;
  width: 19.94px;
  height: 30.432px;
  margin-right: -2px;
  flex-shrink: 0;
}

.risk-pills i:last-child {
  margin-right: 0;
}

.risk-pills i::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 28px;
  border-radius: 14px;
  background: var(--c);
  transform: translate(-50%, -50%) rotate(13deg);
}

/* ---------- trust ---------- */
.trust {
  position: relative;
  width: 100%;
  height: 679px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 40px 0;
  background: #003162;
  border-radius: 24px;
  overflow: clip;
}

.trust-aurora {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.trust-title {
  position: relative;
  z-index: 1;
  width: 339.804px;
  text-align: center;
}

.trust-content {
  position: relative;
  z-index: 1;
  width: 390px;
  height: 667px;
  flex-shrink: 0;
}

.trust-slot {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-item {
  position: relative;
  flex: none;
  display: flex;
  gap: 4px;
  padding: 36px 24px;
  border-radius: 16px;
  -webkit-backdrop-filter: blur(20.2px);
  backdrop-filter: blur(20.2px);
}

.trust-item p {
  font-size: 18px;
  line-height: 24px;
}

.trust-icon-plain {
  position: absolute;
  right: 11.82px;
  top: 11.78px;
  width: 38px;
  height: 38px;
}

.trust-icon {
  position: absolute;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-100);
  border-radius: 12px;
  overflow: clip;
}

.trust-candles {
  flex: none;
  width: 655.858px;
  height: 640.353px;
  object-fit: cover;
  transform: rotate(-0.69deg);
}

/* ---------- risks ---------- */
.risks {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px 16px;
}

.risk-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.risk-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.risk-item img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.risk-item p {
  flex: 1 0 0;
  min-width: 1px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
}

/* ---------- diversify ---------- */
.diversify {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 40px 16px 0;
}

.cta-card {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  background: #000000;
  border-radius: 28px;
  overflow: clip;
}

.cta-deco {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 170px;
  filter: blur(62.7px);
  pointer-events: none;
}

.cta-title-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 60px;
}

.cta-title {
  width: 100%;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  line-height: 44px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

.cta-content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cta-body {
  width: 100%;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  color: var(--text-primary);
  text-align: center;
}

.cta-subbody {
  width: 100%;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: #9aa2b1;
  text-align: center;
}

.cta-image {
  position: absolute;
  left: -65px;
  top: -15px;
  width: 269.155px;
  height: 269.798px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}

.cta-rot {
  position: relative;
  flex: none;
  width: 189.163px;
  height: 193.789px;
  transform: rotate(39.36deg);
}

.cta-bg-slot {
  position: absolute;
  left: -3.73px;
  top: 66.78px;
  width: 203.48px;
  height: 178.67px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-bg {
  position: relative;
  flex: none;
  width: 177.1px;
  height: 144.78px;
  border-radius: 27px;
  overflow: hidden;
  transform: rotate(-12.09deg);
}

.cta-bg img {
  position: absolute;
  left: -3.63%;
  top: -11.24%;
  width: 96.57%;
  height: 115.38%;
  max-width: none;
}

.cta-coins-slot {
  position: absolute;
  left: 143.23px;
  top: 116px;
  width: 48.64px;
  height: 48.22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-coins {
  position: relative;
  flex: none;
  width: 35.68px;
  height: 33.43px;
  overflow: hidden;
  transform: rotate(-37.32deg);
}

.cta-coins img {
  position: absolute;
  left: 1.32%;
  top: 2.11%;
  width: 98.02%;
  height: 96.7%;
  max-width: none;
}

.cta-card .btn-cta {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 44px;
  flex-shrink: 0;
}

@media (min-width: 441px) {
  .cta-image {
    left: -42px;
    top: -29px;
    transform: scale(0.9);
    transform-origin: top left;
  }
}

/* ---------- faq ---------- */
.faq {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 40px 16px;
}

.faq-accent {}

.faq-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--surface-100);
  border-radius: 16px;
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  text-align: left;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.faq-q span {
  flex: 1 0 0;
  min-width: 1px;
}

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: url(assets/chevron-down.svg) center / 100% 100% no-repeat;
}

.faq-a {
  display: none;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-secondary);
}

.faq-item.is-open .faq-a {
  display: block;
}

/* раскрытое состояние — по фрейму section-faq (2877:10311) */
.faq-item.is-open .faq-q {
  color: #ffffff;
}

.faq-item.is-open .faq-a {
  color: #a0a5b8;
}

.faq-item.is-open .faq-chevron {
  width: 24px;
  height: 24px;
  background-image: url(assets/chevron-up.svg);
}

/* первый вопрос — как в основном макете (2781:4928) */
.faq-item--lg.is-open {
  padding: 20px;
}

.faq-item--lg.is-open .faq-q {
  font-size: 18px;
  line-height: 24px;
  color: var(--text-primary);
}

.faq-item--lg.is-open .faq-a {
  color: var(--text-secondary);
}

.faq-item--lg.is-open .faq-chevron {
  background-image: url(assets/chevron-up-lg.svg);
}

/* ---------- final cta ---------- */
.final {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 40px 16px;
}

.final-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

/* ---------- footer ---------- */
.footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 40px 16px 20px;
  border-top: 1px solid var(--surface-100);
}

.branding {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.branding .text-xs {
  white-space: nowrap;
}