@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --green: #2fc81e;
  --green-dark: #20b50f;
  --green-soft: #cff5c9;
  --orange: #ff7900;
  --orange-label: #8b4300;
  --ink: #171717;
  --muted: #565656;
  --line: #7b7b7b;
  --telegram: #29a9ea;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #ffffff;
}

body {
  min-height: 100%;
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: Montserrat, Helvetica, sans-serif;
}

button,
input,
a {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.25);
  opacity: 0.72;
}

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

[hidden] {
  display: none !important;
}

.app {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  overflow-x: hidden;
  background: #ffffff;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px 18px 36px;
  display: flex;
  flex-direction: column;
}

.site-header {
  flex: 0 0 auto;
  position: relative;
  margin: 0 -18px;
  padding: 0 18px 24px;
}

.site-header::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  bottom: -20px;
  height: 92px;
  background: linear-gradient(180deg, #dddddd 0%, #eeeeee 48%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.brand-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 4px 6px 16px;
}

.brand-logo {
  width: 214px;
  max-width: 60%;
  height: auto;
  display: block;
}

.brand-divider {
  width: 1px;
  align-self: stretch;
  min-height: 64px;
  background: var(--line);
}

.brand-name {
  color: #505050;
  font-size: 1.42rem;
  font-weight: 800;
  line-height: 0.86;
}

.stats-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.86fr);
  gap: 18px;
  margin: 0 8px -6px;
  transform: translateY(-6px);
}

.stat-card {
  min-height: 66px;
  padding: 12px 12px 11px;
  border-radius: 17px;
  background: var(--orange);
}

.stat-label {
  display: block;
  color: var(--orange-label);
  font-size: 0.80rem;
  font-weight: 600;
  line-height: 1.04;
  white-space: nowrap;
}

.stat-value {
  display: block;
  margin-top: 5px;
  color: #ffffff;
  font-size: 1.34rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.stat-value.is-updating {
  animation: statPulse 760ms cubic-bezier(0.2, 0.85, 0.28, 1);
}

.stat-muted {
  color: rgba(255, 255, 255, 0.5);
}

.screen {
  flex: 1 1 auto;
}

.hero-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 36px;
  isolation: isolate;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-money {
  display: block;
  color: var(--green-dark);
  font-size: 3.16rem;
  font-weight: 900;
  line-height: 0.92;
  text-shadow: 0 25px 0 rgba(47, 200, 30, 0.13), 0 42px 0 rgba(47, 200, 30, 0.08);
  white-space: nowrap;
}

.hero-title {
  margin: 56px 30px 0;
  color: var(--muted);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.06;
}

.hero-title strong {
  color: var(--green-dark);
}

.hero-subtitle {
  position: relative;
  z-index: 0;
  width: 76%;
  margin: 84px 30px 0;
  color: var(--muted);
  font-size: 1.42rem;
  font-weight: 600;
  line-height: 1.08;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 22px rgba(47, 200, 30, 0.16);
}

.hero-subtitle::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -12px -18px -10px -14px;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 35% 50%, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.58) 42%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(90deg, rgba(47, 200, 30, 0.12), rgba(47, 200, 30, 0));
  filter: blur(2px);
  pointer-events: none;
}

.hero-person {
  position: absolute;
  z-index: 1;
  right: -100px;
  bottom: 122px;
  width: 100%;
  max-width: 330px;
  height: auto;
  pointer-events: none;
}

.name-form {
  position: relative;
  z-index: 3;
  margin-top: auto;
  padding-top: 28px;
}

.name-input {
  width: 100%;
  height: 68px;
  border: 2px solid #a7a7a7;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 1.20rem;
  line-height: 1.1;
  outline: none;
  padding: 0 22px;
  text-align: center;
}

.name-input::placeholder {
  color: #666666;
  opacity: 1;
}

.primary-button,
.answer-button,
.telegram-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 72px;
  border-radius: 22px;
  background: var(--green);
  color: #ffffff;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  box-shadow: 0 0 0 6px var(--green-soft);
  transition: transform 160ms ease, background-color 160ms ease;
}

.primary-button {
  margin-top: 26px;
  font-size: 2.25rem;
  text-transform: uppercase;
}

.primary-button:not(:disabled):active,
.answer-button:active,
.telegram-button:active {
  transform: scale(0.985);
}

.mini-brand {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 54px 34px 0;
}

.mini-brand img {
  width: 130px;
  height: auto;
}

.mini-brand span {
  color: #565656;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 0.9;
}

.intro-screen,
.quiz-screen,
.loading-screen,
.offer-screen {
  display: flex;
  flex-direction: column;
}

.intro-screen {
  justify-content: center;
  padding: 10px 16px 18px;
}

.intro-title {
  margin: 0;
  color: var(--muted);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.08;
}

.accent {
  color: var(--green-dark);
}

.intro-title strong,
.intro-lead strong {
  color: inherit;
  font-weight: 900;
}

.intro-lead {
  margin: 36px 0 0;
  color: var(--muted);
  font-size: 1.68rem;
  font-weight: 600;
  line-height: 1.18;
}

.intro-screen .primary-button {
  margin-top: 78px;
}

.quiz-screen {
  padding-top: 10px;
}

.quiz-title {
  margin: 0 16px 32px;
  color: var(--ink);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.06;
}

.quiz-title--compact {
  margin-bottom: 26px;
  font-size: 1.94rem;
  line-height: 1.08;
}

.answer-list {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.answer-button {
  min-height: 78px;
  justify-content: flex-start;
  padding: 16px 24px;
  font-size: 1.56rem;
  line-height: 1.12;
  text-align: left;
}

.loading-screen {
  justify-content: center;
  gap: 26px;
  padding: 54px 12px 30px;
  text-align: center;
}

.loading-title {
  margin: 0;
  color: var(--green-dark);
  font-size: 2.65rem;
  font-weight: 900;
  line-height: 1.02;
}

.loading-text {
  margin: 0;
  color: var(--muted);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.22;
}

.progress-shell {
  width: 100%;
  height: 34px;
  border-radius: 999px;
  background: #e9f7e7;
  box-shadow: inset 0 0 0 2px var(--green-soft);
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  transition: width 90ms linear;
}

.progress-value {
  color: var(--ink);
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1;
}

.offer-screen {
  padding: 10px 12px 12px;
}

.offer-title {
  width: 100%;
  margin: 0;
  color: var(--green);
  font-size: clamp(3.22rem, 15.7vw, 4.28rem);
  font-weight: 900;
  line-height: 0.92;
  white-space: nowrap;
}

.offer-subtitle {
  margin: 16px 8px 22px;
  color: var(--muted);
  font-size: 1.58rem;
  font-weight: 600;
  line-height: 1.04;
}

.amount-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  border-radius: 20px;
  background: var(--green);
  color: #ffffff;
  font-size: 2.98rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  box-shadow: 0 0 0 6px var(--green-soft);
  white-space: nowrap;
}

.video-copy {
  margin: 38px 8px 28px;
  color: var(--muted);
  font-size: 1.62rem;
  font-weight: 600;
  line-height: 1.08;
}

.video-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  background: #111111;
  box-shadow: 0 0 0 6px var(--green-soft);
  overflow: hidden;
}

.offer-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #111111;
  object-fit: cover;
}

.video-toggle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 94px;
  height: 94px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 28%),
    linear-gradient(145deg, var(--green), var(--green-dark));
  color: #ffffff;
  box-shadow:
    0 0 0 8px rgba(207, 245, 201, 0.76),
    0 18px 42px rgba(0, 0, 0, 0.32);
  transform: translate(-50%, -50%);
  transition: transform 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
}

.video-toggle::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: inherit;
  background: rgba(47, 200, 30, 0.16);
  pointer-events: none;
}

.video-toggle:not(:disabled):active {
  transform: translate(-50%, -50%) scale(0.95);
}

.video-toggle-icon {
  position: relative;
  z-index: 1;
  display: block;
  width: 0;
  height: 0;
  margin-left: 8px;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-left: 30px solid currentColor;
}

.video-slot.is-playing .video-toggle {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
}

.video-slot.is-playing:hover .video-toggle,
.video-slot.is-playing:focus-within .video-toggle {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.video-slot.is-playing .video-toggle-icon {
  width: 34px;
  height: 40px;
  margin-left: 0;
  border: 0;
}

.video-slot.is-playing .video-toggle-icon::before,
.video-slot.is-playing .video-toggle-icon::after {
  content: "";
  position: absolute;
  top: 0;
  width: 11px;
  height: 40px;
  border-radius: 999px;
  background: currentColor;
}

.video-slot.is-playing .video-toggle-icon::before {
  left: 2px;
}

.video-slot.is-playing .video-toggle-icon::after {
  right: 2px;
}

.telegram-button {
  min-height: 62px;
  margin-top: 28px;
  margin-bottom: 8px;
  background: var(--telegram);
  box-shadow: none;
  border-radius: 16px;
  gap: 10px;
  font-size: 1.25rem;
}

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

@keyframes statPulse {
  0% {
    transform: translateY(0) scale(1);
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }

  38% {
    transform: translateY(-2px) scale(1.045);
    text-shadow: 0 8px 18px rgba(255, 255, 255, 0.45);
  }

  100% {
    transform: translateY(0) scale(1);
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
}

@media (max-width: 380px) {
  .page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .site-header {
    margin-left: -14px;
    margin-right: -14px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand-row {
    gap: 14px;
  }

  .brand-logo {
    width: 188px;
  }

  .brand-name {
    font-size: 1.22rem;
  }

  .stats-row {
    gap: 12px;
    margin-inline: 4px;
  }

  .stat-card {
    padding: 11px 10px;
  }

  .stat-label {
    font-size: 0.76rem;
  }

  .stat-value {
    font-size: 1.08rem;
  }

  .hero-money {
    font-size: 2.55rem;
  }

  .hero-title {
    margin-left: 18px;
    margin-right: 18px;
    font-size: 1.7rem;
  }

  .hero-subtitle {
    margin-left: 18px;
    font-size: 1.18rem;
  }

  .hero-person {
    right: -96px;
    width: 78%;
  }

  .name-input {
    font-size: 1.08rem;
  }

  .primary-button {
    font-size: 1.82rem;
  }

  .intro-title {
    font-size: 2rem;
  }

  .intro-lead {
    font-size: 1.36rem;
  }

  .quiz-title {
    font-size: 1.86rem;
    margin-inline: 8px;
  }

  .quiz-title--compact {
    font-size: 1.58rem;
  }

  .answer-list {
    gap: 22px;
  }

  .answer-button {
    min-height: 72px;
    padding-inline: 18px;
    font-size: 1.22rem;
  }

  .offer-title {
    font-size: clamp(2.84rem, 15.2vw, 3.34rem);
  }

  .offer-subtitle,
  .video-copy {
    font-size: 1.28rem;
  }

  .amount-box {
    font-size: 2.22rem;
  }
}

@media (min-width: 1024px) {
  body {
    background: #f6f6f6;
  }

  .app {
    max-width: 1180px;
    min-height: 100vh;
    background: #ffffff;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.08);
  }

  .page {
    min-height: 100vh;
    padding: 34px 54px 46px;
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(480px, 1fr);
    align-items: center;
    gap: 34px;
    margin: 0 -54px;
    padding: 0 54px 30px;
  }

  .site-header::after {
    display: none;
    bottom: -18px;
    height: 108px;
  }

  .brand-row {
    justify-content: flex-start;
    gap: 28px;
    padding: 0;
  }

  .brand-logo {
    width: 260px;
    max-width: 72%;
  }

  .brand-divider {
    min-height: 78px;
  }

  .brand-name {
    font-size: 1.72rem;
  }

  .stats-row {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.82fr);
    gap: 22px;
    margin: 0;
    transform: none;
  }

  .stat-card {
    min-height: 82px;
    border-radius: 20px;
    padding: 15px 18px 14px;
  }

  .stat-label {
    font-size: 0.98rem;
  }

  .stat-value {
    margin-top: 8px;
    font-size: 1.72rem;
  }

  .hero-screen {
    min-height: calc(100vh - 170px);
    padding-top: 64px;
  }

  .hero-copy {
    max-width: 660px;
  }

  .hero-money {
    font-size: clamp(5.2rem, 7.8vw, 7rem);
  }

  .hero-title {
    margin: 72px 0 0 38px;
    font-size: clamp(2.85rem, 4vw, 4.15rem);
  }

  .hero-subtitle {
    width: 520px;
    margin: 82px 0 0 38px;
    font-size: 2.05rem;
  }

  .hero-person {
    right: 36px;
    bottom: 150px;
    width: 43%;
    max-width: 500px;
  }

  .name-form {
    width: min(620px, 58%);
    margin-top: 72px;
  }

  .name-input {
    height: 76px;
    font-size: 1.46rem;
  }

  .primary-button {
    min-height: 82px;
    font-size: 2.58rem;
  }

  .mini-brand {
    margin: 48px 0 0 38px;
  }

  .mini-brand img {
    width: 168px;
  }

  .mini-brand span {
    font-size: 1.18rem;
  }

  .intro-screen,
  .loading-screen {
    width: min(100%, 820px);
    margin-inline: auto;
  }

  .intro-screen {
    padding-top: 58px;
    justify-content: flex-start;
  }

  .intro-title {
    font-size: clamp(2.5rem, 4.1vw, 4.3rem);
  }

  .intro-lead {
    margin-top: 48px;
    font-size: clamp(2rem, 3vw, 3.15rem);
  }

  .intro-screen .primary-button {
    width: min(100%, 560px);
    margin-top: 70px;
  }

  .quiz-screen {
    width: min(100%, 960px);
    margin-inline: auto;
    padding-top: 58px;
  }

  .quiz-title {
    margin-inline: 0;
    font-size: clamp(2.25rem, 3vw, 3.35rem);
  }

  .quiz-title--compact {
    font-size: clamp(2.05rem, 2.7vw, 2.9rem);
  }

  .answer-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .answer-button {
    min-height: 104px;
    font-size: 1.72rem;
  }

  .loading-title {
    font-size: clamp(3rem, 4.7vw, 5rem);
  }

  .loading-text {
    font-size: 1.6rem;
  }

  .offer-screen {
    width: min(100%, 680px);
    margin-inline: auto;
    padding-top: 48px;
  }

  .offer-title {
    font-size: clamp(4.2rem, 7vw, 6rem);
  }

  .offer-subtitle,
  .video-copy {
    font-size: 2rem;
  }

  .amount-box {
    min-height: 100px;
    font-size: 3.6rem;
  }

  .video-slot {
    max-width: 520px;
    margin-inline: auto;
  }

  .telegram-button {
    width: min(100%, 520px);
    margin-inline: auto;
  }
}
