:root {
  --bg: #4f0a85;
  --bg-dark: #2e0560;
  --card: #ffffff14;
  --text: #fff;
  --muted: #e4cffb;
  --red: #ee3b53;
  --magenta: #c90db6;
  --orange: #ff5200;
  --berry: #b5115f;
  --yellow: #ffd60a;
  --yellow-shadow: #c79a00;
  --green: #00a34a;
  --button-text: #2e0560;
  --bar: #2e0560f2;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #3b0768;
    --bg-dark: #1f0340;
    --card: #ffffff10;
    --bar: #1f0340f2;
  }
}

:root[data-theme="dark"] {
  --bg: #3b0768;
  --bg-dark: #1f0340;
  --card: #ffffff10;
  --bar: #1f0340f2;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  padding-top: env(safe-area-inset-top, 0px);
  font-family: "Cairo", Tahoma, Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background: linear-gradient(180deg, var(--bg), var(--bg-dark)) fixed;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.page {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 16px 110px;
}

.top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.logo {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 4px 12px #0004;
}

.brand {
  font-size: 18px;
  font-weight: 900;
  color: var(--yellow);
}

.language-toggle {
  margin-inline-start: auto;
  font-size: 14px;
  color: var(--muted);
  text-decoration: underline;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 22px 16px 20px;
  text-align: center;
  background: var(--red);
  border: 3px solid #e62a2a;
  border-radius: 26px;
}

.hero-emoji {
  font-size: 52px;
  line-height: 1.1;
}

.hero p {
  margin-bottom: 16px;
  font-size: 16px;
}

.note {
  position: absolute;
  font-size: 24px;
  opacity: 0.9;
}

.note-1 {
  top: 12px;
  right: 16px;
}

.note-2 {
  top: 44px;
  left: 16px;
}

.note-3 {
  bottom: 14px;
  right: 22px;
}

.badge {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 14px;
  font-size: 14px;
  font-weight: 700;
  background: #ffffff26;
  border-radius: 999px;
}

h1 {
  margin: 2px 0 8px;
  font-size: clamp(26px, 7.5vw, 34px);
  font-weight: 900;
  line-height: 1.35;
}

h2 {
  margin: 26px 0 12px;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 10px 24px;
  font: 900 19px "Cairo", Tahoma, sans-serif;
  color: var(--button-text);
  text-decoration: none;
  background: var(--yellow);
  border-radius: 999px;
  box-shadow: 0 5px 0 var(--yellow-shadow);
  transition: transform 0.1s, box-shadow 0.1s;
}

.cta:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--yellow-shadow);
}

.cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.icon {
  flex: none;
  width: 24px;
  height: 24px;
}

.hint {
  margin-top: 10px;
  font-size: 13px;
  color: #ffe9ec;
}

.steps {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  color: #fff;
  border-radius: 20px;
}

.step:nth-child(1) {
  background: var(--magenta);
}

.step:nth-child(2) {
  background: var(--orange);
}

.step:nth-child(3) {
  background: var(--berry);
}

.step:nth-child(4) {
  background: var(--green);
}

.step-number {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  font-size: 20px;
  font-weight: 900;
  color: var(--bg-dark);
  background: #fff;
  border-radius: 50%;
}

.step h3 {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.4;
}

.step p {
  font-size: 15px;
  opacity: 0.95;
}

.warning {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  background: var(--card);
  border: 2px dashed var(--yellow);
  border-radius: 20px;
}

.warning-icon {
  font-size: 26px;
  line-height: 1.3;
}

.warning strong {
  display: block;
  font-size: 17px;
  color: var(--yellow);
}

.warning p {
  font-size: 15px;
  color: var(--muted);
}

.help {
  margin-top: 22px;
  font-size: 14px;
  text-align: center;
  color: var(--muted);
}

.sticky-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--bar);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateY(110%);
  transition: transform 0.25s;
}

.sticky-bar.visible {
  transform: none;
}

.sticky-bar .cta {
  max-width: 528px;
  margin: 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  .sticky-bar,
  .cta {
    transition: none;
  }
}

@media (min-width: 900px) {
  .page {
    max-width: 1040px;
    padding: 32px 32px 56px;
  }

  .top {
    margin-bottom: 28px;
  }

  .logo {
    width: 56px;
    height: 56px;
  }

  .brand {
    font-size: 22px;
  }

  .layout {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 36px;
    align-items: start;
  }

  .hero {
    position: sticky;
    top: 24px;
    padding: 44px 32px;
  }

  .hero-emoji {
    font-size: 80px;
  }

  .note {
    font-size: 34px;
  }

  h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 18px;
  }

  .cta {
    font-size: 21px;
  }

  .cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 0 var(--yellow-shadow);
  }

  h2 {
    margin-top: 0;
    font-size: 26px;
    text-align: start;
  }

  .step {
    padding: 18px 20px;
  }

  .step-number {
    width: 46px;
    height: 46px;
    font-size: 23px;
  }

  .step h3 {
    font-size: 19px;
  }

  .step p {
    font-size: 16px;
  }

  .sticky-bar {
    display: none;
  }
}
