:root {
  --initial-vh: 1vh;
  --ink: #17132f;
  --muted: #706a82;
  --violet: #7134ef;
  --violet-dark: #5621d3;
  --violet-soft: #eee7ff;
  --page: #f5efff;
  --surface: rgba(255, 255, 255, .9);
  --line: rgba(73, 43, 133, .1);
  --shadow: 0 24px 70px rgba(61, 34, 118, .11);
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--page);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--page);
  font-family: "Manrope", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 56% 34% at 7% 9%, rgba(123, 68, 244, .23) 0%, rgba(150, 103, 248, .09) 44%, transparent 73%),
    radial-gradient(ellipse 48% 31% at 94% 15%, rgba(255, 179, 222, .24) 0%, rgba(255, 204, 232, .1) 45%, transparent 72%),
    radial-gradient(ellipse 48% 30% at 79% 43%, rgba(136, 197, 255, .22) 0%, rgba(170, 216, 255, .08) 46%, transparent 74%),
    radial-gradient(ellipse 54% 32% at 8% 62%, rgba(165, 116, 255, .19) 0%, rgba(188, 151, 255, .07) 48%, transparent 75%),
    radial-gradient(ellipse 52% 35% at 91% 86%, rgba(232, 157, 255, .2) 0%, rgba(255, 196, 226, .08) 48%, transparent 76%),
    linear-gradient(180deg, #fbf9ff 0%, #f7f2ff 31%, #f1ebfb 68%, #eee7fa 100%);
}

button,
a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

h1,
h2,
h3,
p { margin-top: 0; }

.hero {
  position: relative;
  display: grid;
  min-height: calc(var(--initial-vh) * 100);
  place-items: center;
  overflow: hidden;
  padding: max(34px, env(safe-area-inset-top)) 24px max(92px, calc(72px + env(safe-area-inset-bottom)));
  background: transparent;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero::before {
  top: -250px;
  right: -210px;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(154, 91, 255, .22) 0%, rgba(188, 137, 255, .08) 48%, transparent 72%);
  filter: blur(8px);
}

.hero::after {
  top: 54%;
  left: -210px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 183, 222, .18) 0%, rgba(177, 207, 255, .08) 48%, transparent 72%);
  filter: blur(12px);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1080px);
  transform: translateY(calc(var(--initial-vh) * -1.5));
}

.hero__title {
  margin: 0 auto clamp(28px, calc(var(--initial-vh) * 4.2), 48px);
  text-align: center;
  font-size: clamp(50px, 6.1vw, 82px);
  line-height: .98;
  letter-spacing: -.065em;
}

.hero__title span { color: var(--violet); }

.hero__main {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(430px, 1.1fr);
  align-items: center;
  gap: clamp(30px, 5vw, 76px);
}

.hero__copy {
  position: relative;
  z-index: 4;
  max-width: 430px;
}

.hero__lead {
  max-width: 420px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(18px, 1.65vw, 21px);
  line-height: 1.58;
}

.viber-button {
  display: inline-flex;
  width: min(100%, 390px);
  min-height: 68px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 0 28px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #8244fb 0%, #5d20dc 100%);
  box-shadow: 0 17px 34px rgba(101, 43, 225, .28), inset 0 1px 0 rgba(255, 255, 255, .25);
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease;
}

.viber-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 21px 42px rgba(101, 43, 225, .34), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.viber-button:active { transform: scale(.985); }

.viber-button:focus-visible,
.copy-button:focus-visible,
.phone-row a:focus-visible,
.scroll-cue:focus-visible {
  outline: 3px solid rgba(113, 52, 239, .3);
  outline-offset: 4px;
}

.viber-button svg {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  fill: currentColor;
}

.hero__hint {
  display: flex;
  max-width: 390px;
  align-items: flex-start;
  gap: 12px;
  margin: 21px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.hero__hint svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  margin-top: 1px;
  fill: var(--violet);
}

.hero__hint strong { color: var(--violet); }

.wallet-stage {
  position: relative;
  width: 100%;
  height: clamp(390px, calc(var(--initial-vh) * 47), 500px);
  min-width: 0;
  contain: layout style;
}

.wallet-stage__halo,
.wallet-stage__ring,
.wallet-stage__glow,
.spark,
.bubble {
  position: absolute;
  pointer-events: none;
}

.wallet-stage__halo {
  top: 50%;
  left: 50%;
  width: min(100%, 490px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185, 112, 255, .34) 0%, rgba(176, 104, 255, .1) 48%, transparent 70%);
  filter: blur(8px);
  transform: translate(-50%, -50%);
}

.wallet-stage__ring {
  top: 50%;
  left: 50%;
  width: min(92%, 455px);
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, .78);
  border-radius: 50%;
  box-shadow: 0 0 55px rgba(255, 255, 255, .45), inset 0 0 45px rgba(255, 255, 255, .22);
  transform: translate(-50%, -50%);
}

.wallet-stage__glow {
  left: 51%;
  bottom: 7%;
  width: 68%;
  height: 19%;
  border-radius: 50%;
  background: rgba(73, 32, 164, .2);
  filter: blur(30px);
  transform: translateX(-50%);
}

.wallet-stage img {
  position: absolute;
  z-index: 2;
  right: 50%;
  bottom: -2%;
  width: min(122%, 600px);
  max-width: none;
  max-height: 108%;
  object-fit: contain;
  filter: drop-shadow(0 28px 30px rgba(48, 24, 102, .18));
  transform: translate3d(50%, 0, 0) rotate(-1deg);
  backface-visibility: hidden;
  will-change: transform;
  animation: wallet-float 5.8s ease-in-out infinite;
}

.spark {
  z-index: 3;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #b88aff, #7a42eb);
  clip-path: polygon(50% 0, 62% 36%, 100% 50%, 62% 64%, 50% 100%, 38% 64%, 0 50%, 38% 36%);
  filter: drop-shadow(0 8px 12px rgba(112, 54, 229, .22));
  animation: sparkle 3.6s ease-in-out infinite;
}

.spark--one { top: 14%; right: 5%; width: 46px; height: 46px; }
.spark--two { top: 34%; right: 0; width: 28px; height: 28px; animation-delay: .8s; }
.spark--three { top: 32%; left: 2%; width: 30px; height: 30px; background: rgba(255, 255, 255, .98); animation-delay: 1.2s; }
.spark--four { right: 0; bottom: 14%; width: 38px; height: 38px; background: rgba(255, 255, 255, .98); animation-delay: 1.7s; }

.bubble {
  z-index: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, .8), rgba(167, 103, 255, .18));
  box-shadow: inset 0 0 18px rgba(255, 255, 255, .65);
}

.bubble--one { top: 17%; left: 10%; width: 34px; height: 34px; }
.bubble--two { right: 12%; bottom: 7%; width: 22px; height: 22px; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 16px;
  color: #756f85;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  transform: translateX(-50%);
  transition: color .18s ease;
}

.scroll-cue:hover { color: var(--violet); }

.scroll-cue svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
  animation: cue-bounce 1.8s ease-in-out infinite;
}

.manual-help {
  position: relative;
  display: grid;
  min-height: calc(var(--initial-vh) * 100);
  place-items: center;
  overflow: hidden;
  padding: 90px 24px;
  background: transparent;
}

.manual-help::before,
.manual-help::after {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.manual-help::before {
  top: 12%;
  left: -190px;
  width: 470px;
  height: 470px;
  background: radial-gradient(circle, rgba(160, 100, 255, .16) 0%, rgba(205, 177, 255, .06) 50%, transparent 74%);
  filter: blur(12px);
}

.manual-help::after {
  right: -150px;
  bottom: 4%;
  width: 430px;
  height: 430px;
  background: radial-gradient(circle, rgba(226, 148, 255, .17) 0%, rgba(255, 190, 224, .07) 48%, transparent 73%);
  filter: blur(10px);
}

.manual-help__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1080px);
}

.manual-help__intro {
  max-width: 670px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-eyebrow,
.card__eyebrow {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--violet);
  background: var(--violet-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.section-eyebrow { margin-bottom: 16px; }

.manual-help__intro h2 {
  margin-bottom: 14px;
  font-size: clamp(35px, 4.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -.05em;
}

.manual-help__intro p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.card {
  position: relative;
  padding: 32px;
  border: 1px solid rgba(91, 48, 170, .12);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(250, 247, 255, .84));
  box-shadow: 0 28px 80px rgba(61, 34, 118, .13), inset 0 1px 0 rgba(255, 255, 255, .85);
  backdrop-filter: blur(18px);
}

.support-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) 1px minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: stretch;
  overflow: hidden;
}

.support-card::before {
  position: absolute;
  top: -110px;
  right: -85px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(133, 72, 247, .12), transparent 70%);
  content: "";
  pointer-events: none;
}

.support-card__contact,
.support-card__steps {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.support-card__divider {
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(104, 56, 191, .18) 16%, rgba(104, 56, 191, .18) 84%, transparent);
}

.card__eyebrow { margin-bottom: 13px; }

.card h3 {
  margin-bottom: 9px;
  font-size: clamp(22px, 2.1vw, 29px);
  line-height: 1.2;
  letter-spacing: -.035em;
}

.support-card__contact > p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.phone-row {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 19px;
  background: #f4efff;
}

.phone-row__icon,
.copy-button {
  display: grid;
  place-items: center;
  border-radius: 14px;
}

.phone-row__icon {
  width: 50px;
  height: 50px;
  color: #fff;
  background: linear-gradient(135deg, #8044f7, #5c22d8);
}

.phone-row__icon svg { width: 26px; fill: currentColor; }

.phone-row a {
  min-width: 0;
  text-decoration: none;
  font-size: clamp(16px, 1.8vw, 21px);
  font-weight: 800;
  white-space: nowrap;
}

.copy-button {
  width: 44px;
  height: 44px;
  border: 0;
  color: var(--violet);
  background: #fff;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}

.copy-button:hover { transform: translateY(-1px); background: #fcfbff; }
.copy-button svg { width: 21px; fill: currentColor; }

.support-card__steps h3 { margin-bottom: 23px; }

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
}

.steps li > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1.5px solid var(--violet);
  border-radius: 50%;
  color: var(--violet);
  font-size: 14px;
  font-weight: 800;
}

.steps p {
  margin: 4px 0 0;
  color: #3f3a52;
  font-size: 14px;
  line-height: 1.55;
}

.steps strong { color: var(--ink); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 30;
  padding: 12px 17px;
  border-radius: 12px;
  color: #fff;
  background: #17142b;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .2);
  opacity: 0;
  transform: translate(-50%, 18px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

.toast--visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes wallet-float {
  0%, 100% { transform: translate3d(50%, 0, 0) rotate(-1deg); }
  50% { transform: translate3d(50%, -9px, 0) rotate(-.4deg); }
}

@keyframes sparkle {
  0%, 100% { opacity: .72; transform: scale(.88) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.08) rotate(12deg); }
}

@keyframes cue-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@media (max-width: 800px) {
  .hero { padding-inline: 18px; }

  .hero__inner { transform: translateY(calc(var(--initial-vh) * -2)); }

  .hero__title {
    margin-bottom: clamp(20px, calc(var(--initial-vh) * 3.2), 30px);
    font-size: clamp(38px, 8.2vw, 58px);
  }

  .hero__main {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    gap: 8px;
  }

  .hero__copy { max-width: 100%; }

  .hero__lead {
    max-width: 290px;
    margin-bottom: 22px;
    font-size: clamp(14px, 2.4vw, 17px);
  }

  .viber-button {
    width: min(100%, 300px);
    min-height: 58px;
    padding-inline: 18px;
    border-radius: 16px;
    font-size: 15px;
  }

  .hero__hint {
    max-width: 300px;
    margin-top: 16px;
    font-size: 11px;
  }

  .wallet-stage { height: clamp(320px, calc(var(--initial-vh) * 43), 410px); }

  .support-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .support-card__divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(104, 56, 191, .18) 12%, rgba(104, 56, 191, .18) 88%, transparent);
  }
}

@media (max-width: 520px) {
  .hero {
    padding: max(24px, env(safe-area-inset-top)) 12px max(82px, calc(66px + env(safe-area-inset-bottom)));
  }

  .hero__inner { transform: translateY(calc(var(--initial-vh) * -1)); }

  .hero__title {
    width: 100%;
    max-width: none;
    margin-bottom: 20px;
    font-size: clamp(22px, 7vw, 34px);
    line-height: 1.05;
    letter-spacing: -.06em;
    white-space: nowrap;
  }

  .hero__title span { display: inline; }

  .hero__main {
    grid-template-columns: 1fr;
    grid-template-areas:
      "lead"
      "wallet"
      "button"
      "hint";
    justify-items: center;
    gap: 0;
  }

  .hero__copy { display: contents; }

  .hero__lead {
    grid-area: lead;
    max-width: 330px;
    margin: 0 auto 4px;
    text-align: center;
    font-size: clamp(13px, 3.8vw, 16px);
    line-height: 1.5;
  }

  .viber-button {
    grid-area: button;
    width: min(100%, 330px);
    min-height: 54px;
    gap: 10px;
    padding: 0 18px;
    border-radius: 15px;
    font-size: 14px;
    white-space: nowrap;
  }

  .viber-button svg { width: 22px; height: 22px; }

  .hero__hint {
    grid-area: hint;
    max-width: 320px;
    justify-content: center;
    gap: 8px;
    margin: 12px auto 0;
    font-size: 10px;
    line-height: 1.45;
  }

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

  .wallet-stage {
    grid-area: wallet;
    width: min(100%, 390px);
    height: clamp(250px, calc(var(--initial-vh) * 35), 315px);
    transform: none;
  }

  .wallet-stage__halo { width: 232px; }
  .wallet-stage__ring { width: 220px; border-width: 1px; }
  .wallet-stage__glow { bottom: 11%; width: 205px; height: 54px; }
  .wallet-stage img { bottom: 2%; width: 330px; max-height: 100%; }

  .spark--one { top: 14%; right: -3px; width: 31px; height: 31px; }
  .spark--two { top: 36%; right: -6px; width: 19px; height: 19px; }
  .spark--three { top: 33%; left: -4px; width: 20px; height: 20px; }
  .spark--four { right: -7px; bottom: 17%; width: 24px; height: 24px; }
  .bubble--one { top: 20%; left: 8px; width: 23px; height: 23px; }
  .bubble--two { right: 18px; bottom: 13%; width: 16px; height: 16px; }

  .scroll-cue {
    width: calc(100% - 24px);
    padding-inline: 8px;
    text-align: center;
    font-size: 10px;
  }

  .scroll-cue svg { width: 22px; height: 22px; }

  .manual-help { padding: 72px 12px; }

  .manual-help__intro { margin-bottom: 28px; }

  .manual-help__intro h2 { font-size: clamp(31px, 10vw, 43px); }
  .manual-help__intro p { font-size: 14px; }

  .card { padding: 25px 20px; border-radius: 24px; }
  .support-card { gap: 24px; }
  .steps { grid-template-columns: 1fr; gap: 15px; }
}

@media (max-width: 370px) {
  .hero__title { font-size: clamp(21px, 6.6vw, 24px); }

  .hero__lead { max-width: 285px; }
  .hero__hint { max-width: 280px; }

  .viber-button {
    width: min(100%, 300px);
    min-height: 50px;
    padding-inline: 14px;
  }

  .wallet-stage { height: 245px; }
  .wallet-stage img { width: 300px; }

  .phone-row {
    grid-template-columns: 44px minmax(0, 1fr) 40px;
    gap: 8px;
  }

  .phone-row__icon { width: 44px; height: 44px; }
  .copy-button { width: 40px; height: 40px; }
  .phone-row a { font-size: 15px; }
}

/* Компактний режим визначається один раз під час завантаження,
   тому приховування панелей браузера не перемикає макет під час прокручування. */
html.compact-mobile .hero { padding-top: max(18px, env(safe-area-inset-top)); }
html.compact-mobile .hero__title { margin-bottom: 10px; font-size: clamp(20px, 6.2vw, 25px); }
html.compact-mobile .hero__lead { margin-bottom: 0; font-size: 12px; }
html.compact-mobile .hero__hint { margin-top: 8px; }
html.compact-mobile .wallet-stage { height: 225px; }
html.compact-mobile .wallet-stage img { width: 275px; }
html.compact-mobile .viber-button { min-height: 48px; }

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
