:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, .08);
  --blue: #0071e3;
  --dark: #111114;
}

* { box-sizing: border-box; }

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 320px;
  overflow-x: hidden;
  padding-bottom: 86px;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, .95), transparent 34%),
    linear-gradient(180deg, #fbfbfd 0%, var(--bg) 38%, #ededf1 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
[hidden] { display: none !important; }

body.sheet-open {
  overflow: hidden;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(18px, calc((100vw - 1080px) / 2));
  background: rgba(251, 251, 253, .78);
  border-bottom: 1px solid rgba(0, 0, 0, .05);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 700;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
}

.nav-actions {
  min-width: 0;
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #424245;
  font-size: 13px;
}

.nav-actions a:nth-child(2) { color: var(--blue); }

.language-trigger {
  height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 999px;
  color: #1d1d1f;
  background: rgba(255, 255, 255, .72);
  cursor: pointer;
}

.language-trigger__icon {
  font-size: 13px;
  line-height: 1;
}

.wrap {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100svh - 56px);
  display: grid;
  align-items: center;
  padding: 34px 0 58px;
  text-align: center;
}

.hero-logo {
  width: 82px;
  height: 82px;
  margin: 0 auto 22px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 18px 50px rgba(95, 29, 152, .18);
}

h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(48px, 8vw, 92px);
  line-height: .98;
  letter-spacing: 0;
  font-weight: 800;
  background: linear-gradient(135deg, #1d1d1f 18%, #7c3aed 56%, #ff3d9b 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  overflow-wrap: anywhere;
}

.subtitle {
  max-width: 620px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.18;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-top: 24px;
  font-size: 18px;
}

.hero-links a { color: var(--blue); }

.hero-frame {
  position: relative;
  width: min(680px, 100%);
  min-width: 0;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  margin: 32px auto 0;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 38px;
  background: #fff;
  box-shadow: 0 38px 90px rgba(84, 52, 112, .18);
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
}

.slides {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  display: flex;
  transition: transform .45s ease;
  will-change: transform;
}

.slide {
  min-width: 0;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(29, 29, 31, .28);
  cursor: pointer;
  pointer-events: auto;
}

.dot.active { background: #1d1d1f; }

section { padding: 54px 0; }

.section-title {
  max-width: 680px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
  font-weight: 800;
}

.section-title p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.35;
  font-weight: 500;
}

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

.step {
  min-height: 220px;
  padding: 28px;
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 1px 0 var(--line), 0 18px 50px rgba(0, 0, 0, .04);
}

.step-num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #1d1d1f;
  font-size: 15px;
  font-weight: 700;
}

.step strong {
  display: block;
  margin-top: 28px;
  font-size: 28px;
  line-height: 1.05;
}

.step span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.38;
}

.rules {
  max-width: 840px;
  margin: 0 auto;
  padding: 34px;
  border-radius: 34px;
  color: #f5f5f7;
  background:
    radial-gradient(circle at top, rgba(97, 58, 158, .5), transparent 34%),
    linear-gradient(180deg, #1f1f27 0%, var(--dark) 100%);
  text-align: center;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .16);
}

.rules h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.05;
}

.rules p {
  margin: 13px auto 0;
  max-width: 560px;
  color: #c7c7cc;
  font-size: 18px;
  line-height: 1.42;
}

.rule-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
  text-align: left;
}

.rule {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  background: rgba(255, 255, 255, .075);
}

.rule strong {
  display: block;
  font-size: 15px;
}

.rule span {
  display: block;
  margin-top: 5px;
  color: #c7c7cc;
  font-size: 13px;
  line-height: 1.35;
}

.footer {
  padding: 18px 0 36px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.sticky {
  position: fixed;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(245, 245, 247, .86);
  border-top: 1px solid rgba(0, 0, 0, .08);
  backdrop-filter: blur(18px);
}

.sticky-inner {
  width: min(620px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
}

.button.primary {
  color: #fff;
  background: var(--blue);
}

.button.secondary {
  color: var(--blue);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 113, 227, .22);
}

.language-mask {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(0, 0, 0, .32);
  backdrop-filter: blur(5px);
}

.language-sheet {
  position: fixed;
  z-index: 40;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -24px 70px rgba(0, 0, 0, .18);
}

.language-sheet__handle {
  width: 42px;
  height: 4px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .14);
}

.language-sheet__header {
  width: min(620px, 100%);
  margin: 0 auto 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.language-sheet__header h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
}

.language-sheet__header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.language-sheet__close {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #6e6e73;
  background: #f0f0f3;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.language-list {
  width: min(620px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.language-option {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 18px;
  color: var(--text);
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.language-option__main {
  display: grid;
  gap: 2px;
}

.language-option__name {
  font-size: 16px;
  font-weight: 700;
}

.language-option__desc {
  color: var(--muted);
  font-size: 13px;
}

.language-option__check {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: transparent;
  font-size: 14px;
}

.language-option.active {
  border-color: rgba(0, 113, 227, .4);
  background: #f3f8ff;
}

.language-option.active .language-option__check {
  background: var(--blue);
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .hero-frame { border-radius: 26px; }
  .slide { height: 100%; }

  .steps,
  .rule-list {
    grid-template-columns: 1fr;
  }

  .step { min-height: 168px; }
}

@media (max-width: 520px) {
  body { padding-bottom: 78px; }

  .nav {
    height: 52px;
    padding: 0 12px;
  }

  .wrap { width: calc(100% - 24px); }

  .nav-actions {
    gap: 8px;
    font-size: 12px;
  }

  .nav-actions a {
    max-width: 58px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .language-trigger {
    height: 28px;
    width: 30px;
    padding: 0;
    justify-content: center;
  }

  .language-trigger span:not(.language-trigger__icon) {
    display: none;
  }

  .brand img {
    width: 28px;
    height: 28px;
  }

  .hero-logo {
    width: 66px;
    height: 66px;
    margin-bottom: 18px;
  }

  h1 {
    font-size: clamp(38px, 10.5vw, 48px);
    line-height: 1.02;
  }

  .subtitle {
    max-width: 100%;
    font-size: 18px;
    line-height: 1.32;
  }

  .hero-links {
    gap: 18px;
    font-size: 16px;
  }

  .hero-frame {
    margin-top: 28px;
    border-radius: 22px;
  }

  .slide { height: 100%; }
  .slide img { height: 100%; }

  section { padding: 40px 0; }
  .section-title p { font-size: 17px; }

  .step,
  .rules {
    padding: 22px;
    border-radius: 24px;
  }

  .step strong {
    margin-top: 20px;
    font-size: 25px;
  }

  .sticky {
    padding-left: 12px;
    padding-right: 12px;
  }
}
