:root {
  --green: #00ac08;
  --green-dark: #008f07;
  --dark: #363638;
  --gray: #8b8d91;
  --light-gray: #eef0f2;
  --muted: #bdbdbd;
  --yellow: #ffdd00;
  --video: #f3b339;
  --orange: #ffb000;
  --orange-dark: #ff8600;
  --cyan: #10bddb;
  --shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--dark);
  background: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

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

[hidden] {
  display: none !important;
}

.page {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background: #ffffff;
}

.header {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(2rem, 7vw, 4.5rem) clamp(1rem, 5vw, 4rem) clamp(1.4rem, 4vw, 2rem);
  background: #ffffff;
  border-bottom: 1px solid #e4e4e4;
}

.logo {
  width: min(72vw, 36rem);
}

.toolbar {
  display: flex;
  gap: clamp(1rem, 8vw, 5rem);
  align-items: center;
  width: 100%;
  max-width: 58rem;
}

.search {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
  min-height: clamp(3.4rem, 14vw, 8.2rem);
  padding: 0 clamp(1rem, 4vw, 2.8rem);
  overflow: hidden;
  color: var(--gray);
  background: var(--light-gray);
  border-radius: 0.45rem;
}

.search__icon {
  display: flex;
  flex: 0 0 clamp(2.25rem, 9vw, 5.2rem);
  align-items: center;
  justify-content: center;
  width: clamp(2.25rem, 9vw, 5.2rem);
  height: clamp(2.25rem, 9vw, 5.2rem);
  margin-right: clamp(0.8rem, 4vw, 2rem);
  transform: rotate(45deg);
}

.search__icon::before,
.search__icon::after {
  content: "";
  display: block;
}

.search__icon::before {
  width: 64%;
  aspect-ratio: 1;
  border: clamp(0.38rem, 1.6vw, 0.9rem) solid #85888c;
  border-radius: 50%;
}

.search__icon::after {
  width: 42%;
  height: clamp(0.38rem, 1.6vw, 0.9rem);
  margin-left: -4%;
  background: #85888c;
  border-radius: 99rem;
}

.search__text {
  min-width: 0;
  overflow: hidden;
  font-size: clamp(1.55rem, 6vw, 3rem);
  line-height: 1;
  white-space: nowrap;
}

.menu {
  flex: 0 0 clamp(3rem, 11vw, 5rem);
  display: grid;
  place-content: center;
  gap: clamp(0.25rem, 1.1vw, 0.65rem);
  width: clamp(3rem, 11vw, 5rem);
  aspect-ratio: 1;
  padding: 0;
  background: #f1f1f1;
  border: 0;
  border-radius: 0.45rem;
}

.menu span {
  display: block;
  width: clamp(1.65rem, 6vw, 3rem);
  height: clamp(0.22rem, 0.9vw, 0.5rem);
  background: var(--orange);
  border-radius: 99rem;
}

.main {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.78) 62%, #ffffff 100%),
    url("./assets/fon.png") top center / min(190%, 78rem) auto no-repeat;
}

.hero,
.screen {
  min-height: calc(100vh - 15rem);
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1rem, 4vw, 3rem) clamp(2.5rem, 7vw, 5rem);
}

.hero__content,
.screen__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 58rem);
  margin: 0 auto;
  text-align: center;
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  margin: 0;
  color: var(--dark);
  font-style: italic;
  font-weight: 900;
  line-height: 0.95;
  width: 100%;
  max-width: 54rem;
  overflow-wrap: break-word;
}

.hero__title span {
  font-size: clamp(2rem, 7.6vw, 4.8rem);
}

.hero__title strong {
  color: var(--green);
  font-size: clamp(3.4rem, 14vw, 8.8rem);
  line-height: 0.9;
  white-space: nowrap;
}

.hero__subtitle {
  width: min(100%, 52rem);
  margin: clamp(0.9rem, 2.5vw, 1.6rem) 0 0;
  color: var(--dark);
  font-size: clamp(1.45rem, 5.4vw, 4rem);
  font-weight: 900;
  line-height: 1.12;
}

.hero__gif {
  display: block;
  width: 100%;
  max-width: 54rem;
  margin-top: clamp(2rem, 6vw, 3.8rem);
  margin-right: auto;
  margin-left: auto;
  object-fit: cover;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 54rem);
  min-height: clamp(5.8rem, 20vw, 11.8rem);
  margin-top: clamp(2rem, 6vw, 3.5rem);
  padding: 1rem 1.5rem;
  color: #ffffff;
  background: var(--green);
  border-radius: clamp(1.25rem, 5vw, 2.1rem);
  font-size: clamp(2rem, 7.6vw, 5rem);
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.note {
  width: min(100%, 46rem);
  margin: clamp(2rem, 6vw, 3rem) 0 0;
  color: var(--muted);
  font-size: clamp(1.65rem, 6vw, 3.6rem);
  font-weight: 900;
  line-height: 1.14;
}

.partners {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(2rem, 10vw, 5rem);
  width: 100%;
  margin-top: clamp(1.6rem, 5vw, 2.8rem);
}

.partners img:first-child {
  width: clamp(7.5rem, 27vw, 13rem);
}

.partners img:last-child {
  width: clamp(7rem, 25vw, 12rem);
}

.intro-copy,
.loading-copy,
.result-copy {
  width: 100%;
  text-align: center;
}

.intro-title,
.loading-title,
.result-title {
  margin: 0;
  color: var(--green);
  font-size: clamp(2.5rem, 9.5vw, 5.4rem);
  font-weight: 900;
  line-height: 1.08;
}

.intro-text,
.loading-text {
  width: min(100%, 54rem);
  margin: clamp(1.5rem, 5vw, 3rem) auto 0;
  color: var(--dark);
  font-size: clamp(2rem, 7vw, 4.6rem);
  font-weight: 900;
  line-height: 1.18;
}

.intro-text strong {
  color: var(--green);
}

.stat {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  width: min(100%, 54rem);
  min-height: clamp(4.8rem, 15vw, 8rem);
  margin-top: clamp(2rem, 6vw, 3.8rem);
  overflow: hidden;
  background: #ffffff;
  border: 0.18rem solid var(--orange-dark);
  border-radius: clamp(1rem, 4vw, 1.8rem);
}

.stat__number,
.stat__text {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  font-weight: 900;
  line-height: 1.1;
}

.stat__number {
  color: #ffffff;
  background: var(--orange-dark);
  font-size: clamp(1.9rem, 7vw, 4rem);
  gap: 5px;
}

.stat__text {
  color: var(--dark);
  font-size: clamp(1.05rem, 4vw, 2.3rem);
  text-align: left;
}

.cta--arrow {
  gap: 0.45em;
}

.cta__arrow {
  width: clamp(2.3rem, 8vw, 5rem);
  filter: brightness(0) invert(1);
  rotate: -90deg;
}

.quiz {
  width: min(100%, 58rem);
  margin: 0 auto;
}

.quiz__head {
  display: flex;
  flex-direction: column;
  gap: clamp(0.8rem, 3vw, 1.5rem);
  width: 100%;
}

.quiz__number {
  color: #868686;
  font-size: clamp(2rem, 7vw, 4rem);
  font-weight: 900;
  line-height: 1;
}

.quiz__title {
  margin: 0;
  color: var(--dark);
  font-size: clamp(2.4rem, 8.5vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
}

.quiz__rule {
  width: 100%;
  height: clamp(0.3rem, 1.2vw, 0.7rem);
  background: var(--green);
  border-radius: 99rem;
}

.quiz__body {
  display: grid;
  gap: clamp(1.4rem, 5vw, 2.7rem);
  width: 100%;
  margin-top: clamp(2rem, 6vw, 3.8rem);
}

.option,
.range-card {
  width: 100%;
  min-width: 0;
  background: #ffffff;
  border: 0.18rem solid var(--green);
  border-radius: clamp(1.2rem, 5vw, 2rem);
}

.option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(4.4rem, 13vw, 7.6rem);
  padding: 0.8rem 1rem;
  color: #626262;
  font-size: clamp(1.8rem, 6.8vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}

.option.is-selected,
.option:hover {
  color: #ffffff;
  background: var(--green);
  box-shadow: inset 0 -0.35rem 0 var(--green-dark);
}

.range-card {
  display: grid;
  gap: clamp(1rem, 4vw, 2rem);
  padding: clamp(1.2rem, 5vw, 2rem);
}

.range-card__value {
  color: var(--green);
  font-size: clamp(2.6rem, 10vw, 5.4rem);
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.range-card input {
  width: 100%;
  accent-color: var(--green);
}

.range-card__labels {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #626262;
  font-size: clamp(1rem, 4vw, 2rem);
  font-weight: 900;
}

.loading-screen .screen__content {
  justify-content: center;
  min-height: 32rem;
}

.progress {
  display: grid;
  gap: clamp(1rem, 4vw, 1.8rem);
  width: min(100%, 52rem);
  margin-top: clamp(2rem, 6vw, 3.5rem);
}

.progress__track {
  display: flex;
  width: 100%;
  height: clamp(2rem, 7vw, 4rem);
  overflow: hidden;
  background: #ffffff;
  border: 0.28rem solid var(--green);
  border-radius: 99rem;
}

.progress__fill {
  width: 0%;
  background: var(--green);
  border-radius: 99rem;
}

.progress__fill.is-running {
  animation: progress-load 2.4s ease-in-out forwards;
}

.progress__value {
  color: var(--green);
  font-size: clamp(2.4rem, 9vw, 4.6rem);
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

@keyframes progress-load {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}

.result-card {
  display: grid;
  gap: clamp(1.8rem, 6vw, 3.2rem);
  width: min(100%, 54rem);
  margin: clamp(1.5rem, 5vw, 2.5rem) auto 0;
  padding: clamp(1.1rem, 4vw, 2rem);
  background: #ffffff;
  border-radius: clamp(1.4rem, 5vw, 2.2rem);
  box-shadow: var(--shadow);
}

.recommendation {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "media";
  align-items: start;
  width: 100%;
}

.recommendation__image,
.recommendation__badge {
  grid-area: media;
}

.recommendation__image {
  width: 100%;
  border-radius: clamp(1rem, 4vw, 1.8rem);
}

.recommendation__badge {
  justify-self: end;
  align-self: start;
  width: clamp(6rem, 25vw, 12rem);
  margin: 0.5rem;
}

.fund-title {
  margin: 0;
  color: var(--green);
  font-size: clamp(2.2rem, 8vw, 4.6rem);
  font-weight: 900;
  line-height: 1.08;
}

.video-prompt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1rem, 4vw, 2rem);
  align-items: center;
}

.video-prompt__text {
  margin: 0;
  color: #707070;
  font-size: clamp(1.9rem, 7vw, 4rem);
  font-weight: 900;
  line-height: 1.18;
}

.video-prompt__arrow {
  width: clamp(3.5rem, 13vw, 7rem);
}

.video-box {
  display: grid;
  width: 100%;
  overflow: hidden;
  background: var(--video);
  border-radius: clamp(1.4rem, 5vw, 2.5rem);
}

.video-box video {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: auto;
  z-index: 1;
}

.video-play {
  display: grid;
  grid-area: 1 / 1;
  place-items: center;
  align-self: center;
  justify-self: center;
  width: clamp(5rem, 18vw, 8rem);
  aspect-ratio: 1;
  padding: 0;
  background: rgba(0, 0, 0, 0.58);
  border: 0.22rem solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  z-index: 2;
}

.video-play__icon {
  width: 0;
  height: 0;
  margin-left: 0.35rem;
  border-top: clamp(0.9rem, 3vw, 1.4rem) solid transparent;
  border-bottom: clamp(0.9rem, 3vw, 1.4rem) solid transparent;
  border-left: clamp(1.35rem, 4.5vw, 2.2rem) solid #ffffff;
}

.telegram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 2rem);
  width: 100%;
  min-height: clamp(5.8rem, 18vw, 9.5rem);
  color: #ffffff;
  background: var(--cyan);
  border-radius: clamp(1.4rem, 5vw, 2.2rem);
  font-size: clamp(2.8rem, 10vw, 5.6rem);
  font-weight: 900;
  line-height: 1;
}

.telegram img {
  width: clamp(4rem, 14vw, 7.5rem);
}

@media (max-width: 420px) {
  .header {
    padding-top: 2.2rem;
  }

  .logo {
    width: min(72vw, 18rem);
  }

  .toolbar {
    gap: 1rem;
  }
}

@media (min-width: 760px) {
  .header {
    display: grid;
    grid-template-columns: 20rem minmax(20rem, 34rem);
    gap: 3rem;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
  }

  .logo {
    width: 20rem;
  }

  .toolbar {
    gap: 1.5rem;
    max-width: 34rem;
  }

  .search {
    min-height: 4rem;
    padding: 0 1.5rem;
  }

  .search__icon {
    flex-basis: 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    margin-right: 1rem;
  }

  .search__icon::before {
    border-width: 0.45rem;
  }

  .search__icon::after {
    height: 0.45rem;
  }

  .search__text {
    font-size: 1.75rem;
  }

  .menu {
    flex-basis: 3.5rem;
    width: 3.5rem;
    gap: 0.35rem;
  }

  .menu span {
    width: 2rem;
    height: 0.32rem;
  }

  .main {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.84) 66%, #ffffff 100%),
      url("./assets/fon.png") top center / cover no-repeat;
  }

  .hero,
  .screen {
    min-height: auto;
    padding: 3.5rem 2rem 4.5rem;
  }

  .hero__content,
  .screen__content,
  .quiz {
    width: 100%;
    max-width: 46rem;
  }

  .hero__title,
  .hero__subtitle,
  .intro-text,
  .loading-text {
    max-width: 46rem;
  }

  .hero__title span {
    font-size: 3rem;
  }

  .hero__title strong {
    font-size: 5.6rem;
  }

  .hero__subtitle {
    font-size: 2.25rem;
  }

  .cta,
  .note,
  .stat,
  .progress,
  .result-card {
    width: 100%;
    max-width: 42rem;
  }

  .hero__gif {
    width: 100%;
    max-width: 42rem;
    margin-top: 2.5rem;
  }

  .cta {
    min-height: 5.8rem;
    margin-top: 2.5rem;
    font-size: 2.8rem;
    border-radius: 1.4rem;
  }

  .cta__arrow {
    width: 3.2rem;
  }

  .note {
    font-size: 2rem;
  }

  .partners {
    gap: 3rem;
  }

  .partners img:first-child {
    width: 9rem;
  }

  .partners img:last-child {
    width: 8.5rem;
  }

  .intro-title,
  .loading-title,
  .result-title {
    font-size: 3rem;
  }

  .intro-text,
  .loading-text {
    font-size: 2.35rem;
  }

  .stat {
    min-height: 5.3rem;
    margin-top: 2.5rem;
  }

  .stat__number {
    font-size: 2.4rem;
  }

  .stat__text {
    font-size: 1.45rem;
  }

  .quiz__body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .quiz__body--single {
    grid-template-columns: 1fr;
  }

  .quiz__number {
    font-size: 2.25rem;
  }

  .quiz__title {
    font-size: 3rem;
  }

  .option {
    min-height: 5.2rem;
    font-size: 2rem;
  }

  .range-card {
    padding: 1.5rem;
  }

  .range-card__value {
    font-size: 3.4rem;
  }

  .range-card__labels {
    font-size: 1.35rem;
  }

  .loading-screen .screen__content {
    min-height: 26rem;
  }

  .progress__track {
    height: 2.7rem;
  }

  .progress__value {
    font-size: 3rem;
  }

  .result-card {
    gap: 2rem;
    margin-top: 2rem;
    padding: 1.5rem;
  }

  .fund-title {
    font-size: 3rem;
  }

  .video-prompt__text {
    font-size: 2.35rem;
  }

  .video-prompt__arrow {
    width: 4.2rem;
  }

  .video-box {
    width: 100%;
  }

  .telegram {
    min-height: 5.8rem;
    font-size: 3.2rem;
  }

  .telegram img {
    width: 4.4rem;
  }
}

@media (min-width: 1180px) {
  .header {
    grid-template-columns: 22rem minmax(22rem, 36rem);
    gap: 4rem;
  }

  .logo {
    width: 22rem;
  }

  .hero__content,
  .screen__content,
  .quiz {
    max-width: 50rem;
  }
}
