@font-face {
  font-family: "HeliosExt";
  src: url("../fonts/HeliosExtC.woff2") format("woff2"),
    url("../fonts/HeliosExtC.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  /* метрики hhea, как в Figma и Safari (Chrome на Windows иначе берёт OS/2 win и опускает текст) */
  ascent-override: 72.6%;
  descent-override: 19.1%;
  line-gap-override: 28%;
}

@font-face {
  font-family: "HeliosExt";
  src: url("../fonts/HeliosExtC-Bold.woff2") format("woff2"),
    url("../fonts/HeliosExtC-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  ascent-override: 72.6%;
  descent-override: 19.1%;
  line-gap-override: 31.9%;
}

/* 1rem = 10px макета. Мобильный макет — 390px, масштабируется пропорционально ширине экрана */
html {
  font-size: calc(100vw / 39);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (min-width: 480px) {
  html {
    font-size: calc(480px / 39);
  }
}

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

body {
  margin: 0;
  background: #f2380f;
  color: #fff;
  font-family: "HeliosExt", Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
p {
  margin: 0;
}

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

a {
  color: inherit;
}

/* ---------- hero ---------- */

/* обрезает декор по краям окна, а не по краям мобильного контейнера */
.page {
  overflow: hidden;
}

.hero {
  position: relative;
  max-width: 39rem;
  height: 84.5rem;
  margin: 0 auto;
  background: #f2380f;
}

.hero__circle {
  position: absolute;
  top: 1.3rem;
  left: 13.1rem;
  width: 56.5rem;
  height: 56.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
  animation: hero-circle-float 16s ease-in-out infinite alternate;
}

@keyframes hero-circle-float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-1.6rem, 1.2rem) scale(1.02);
  }

  100% {
    transform: translate(0.8rem, 2.4rem) scale(0.99);
  }
}

.hero__coin {
  position: absolute;
  pointer-events: none;
  will-change: transform;
}

.hero__coin--usdt {
  top: 3.5rem;
  left: 20.4rem;
  width: 10.8rem;
  height: 10.8rem;
}

.hero__coin--dollar {
  top: 13.1rem;
  left: 28.8rem;
  width: 6rem;
  height: 6rem;
}

/* полупрозрачные монеты есть только на десктопе */
.hero__coin--usdt-faded,
.hero__coin--dollar-faded {
  display: none;
}

.hero__inner {
  position: relative;
  padding: 3.5rem 1.8rem 0;
}

/* блочная ссылка, чтобы не добавлять высоту строки под логотипом */
.hero__logo-link {
  display: block;
  width: fit-content;
}

.hero__logo {
  width: 14.7rem;
  height: 3.6rem;
}

.hero__subtitle {
  margin-top: 6.6rem;
  font-size: 2rem;
  line-height: 2.4rem;
}

/* строки заголовка имеют разный кегль и интерлиньяж, как в макете */
.hero__title {
  margin-top: 3.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero__title-line {
  display: block;
  font-size: 3.2rem;
  white-space: nowrap;
}

.hero__title-line--1 {
  line-height: 4rem;
}

.hero__title-line--2 {
  position: relative;
  top: -0.367rem;
  line-height: 2.2rem;
}

.hero__title-line--3 {
  font-size: 6.4rem;
  line-height: 6.2rem;
}

.hero__title-line--4 {
  line-height: 2rem;
  color: #000;
}

.hero__title-line--5 {
  line-height: 6rem;
  color: #000;
}

.hero__text {
  margin-top: 1rem;
  color: #000;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 2rem;
}

.hero__text-link,
.hero__subscribe-link {
  text-decoration: underline;
  text-decoration-skip-ink: none;
  text-underline-position: from-font;
}

/* толщина и отступ подчёркивания как в макете */
.hero__text-link {
  text-decoration-thickness: 0.109em;
  text-underline-offset: -0.167em;
}

.hero__subscribe-link {
  text-decoration-thickness: 0.064em;
  text-underline-offset: -0.094em;
}

.hero__cta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding-left: 2.5rem;
  width: 35.7rem;
  height: 8.2rem;
  margin: 4rem 0 0 -0.2rem;
  border-radius: 10rem;
  background: #000;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 2.2rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

/* пульсирует не сама кнопка, а два расходящихся кольца под ней — текст стоит на месте */
.hero__cta::before,
.hero__cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: hero-cta-ring 2.4s cubic-bezier(0.25, 0.6, 0.4, 1) infinite;
  pointer-events: none;
}

.hero__cta::after {
  animation-delay: 1.2s;
}

.hero__cta:hover {
  opacity: 0.85;
}

@keyframes hero-cta-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4);
  }

  70%,
  100% {
    box-shadow: 0 0 0 1.8rem rgba(0, 0, 0, 0);
  }
}

.hero__cta-icon {
  flex-shrink: 0;
  width: 2.9rem;
  height: 2.5rem;
  margin-bottom: 0.1rem;
}

.hero__cta-label {
  white-space: nowrap;
}

.hero__cta-accent {
  color: #f2380f;
}

.hero__subscribe {
  margin-top: 4.8rem;
  font-size: 1.6rem;
  line-height: 1.9rem;
  text-align: center;
  text-transform: uppercase;
}

.hero__arrow {
  position: relative;
  width: 5.8rem;
  height: 9.2rem;
  margin: 1.5rem auto 0;
}

/* стрелка и три полоски — одна картинка, разрезанная clip-path */
.hero__arrow-part {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__arrow-part--bar-1 {
  clip-path: inset(0 0 93.48% 0);
  animation: hero-arrow-bar-1 2.4s ease-in-out infinite;
}

.hero__arrow-part--bar-2 {
  clip-path: inset(6.52% 0 83.7% 0);
  animation: hero-arrow-bar-2 2.4s ease-in-out infinite;
}

.hero__arrow-part--bar-3 {
  clip-path: inset(16.3% 0 75% 0);
  animation: hero-arrow-bar-3 2.4s ease-in-out infinite;
}

.hero__arrow-part--head {
  clip-path: inset(25% 0 0 0);
}

/* полоски появляются по одной сверху вниз, держатся и вместе гаснут */
@keyframes hero-arrow-bar-1 {
  0%,
  10% {
    opacity: 0;
  }

  20%,
  80% {
    opacity: 1;
  }

  90%,
  100% {
    opacity: 0;
  }
}

@keyframes hero-arrow-bar-2 {
  0%,
  28% {
    opacity: 0;
  }

  38%,
  80% {
    opacity: 1;
  }

  90%,
  100% {
    opacity: 0;
  }
}

@keyframes hero-arrow-bar-3 {
  0%,
  46% {
    opacity: 0;
  }

  56%,
  80% {
    opacity: 1;
  }

  90%,
  100% {
    opacity: 0;
  }
}

/* ---------- desktop: макет 1512px, 1rem = 10px макета ---------- */

@media (min-width: 1024px) {
  /* масштаб по ширине или по высоте окна (что меньше), чтобы экран целиком влезал по высоте;
     ниже 580px по высоте не уменьшаем — появляется прокрутка */
  html {
    font-size: max(min(100vw / 151.2, 100vh / 98.2), 580px / 98.2);
  }

  .hero {
    max-width: none;
    height: 98.2rem;
    min-height: 100vh;
    overflow: hidden;
  }

  .hero__circle {
    top: -10.4rem;
    right: -43.3rem;
    left: auto;
    width: 118.9rem;
    height: 118.9rem;
  }

  .hero__coin--usdt {
    top: 7rem;
    right: 51.8rem;
    left: auto;
    width: 17.8rem;
    height: 17.8rem;
  }

  .hero__coin--dollar {
    top: 20.8rem;
    right: 43.2rem;
    left: auto;
    width: 10.3rem;
    height: 10.3rem;
  }

  .hero__coin--usdt-faded,
  .hero__coin--dollar-faded {
    display: block;
  }

  .hero__coin--usdt-faded {
    top: 22.8rem;
    right: -26.8rem;
    width: 59.7rem;
    height: 59.7rem;
    max-width: none;
  }

  .hero__coin--dollar-faded {
    top: 67.3rem;
    right: 28rem;
    width: 20.3rem;
    height: 20.3rem;
  }

  .hero__inner {
    padding: 5.8rem 6.4rem 0;
  }

  .hero__logo {
    width: 20rem;
    height: 5rem;
  }

  .hero__subtitle {
    margin-top: 6.8rem;
    font-size: 3.6rem;
    line-height: 4.3rem;
  }

  /* «и продавайте USDT» и «по выгодному курсу» — в одну строку */
  .hero__title {
    margin-top: 4.8rem;
    font-size: 6.4rem;
    line-height: 0;
  }

  .hero__title-line {
    font-size: 6.4rem;
  }

  .hero__title-line--1 {
    line-height: 7.91rem;
  }

  .hero__title-line--2,
  .hero__title-line--3,
  .hero__title-line--4,
  .hero__title-line--5 {
    display: inline;
  }

  .hero__title-line--2 {
    top: 0;
    line-height: 6.78rem;
  }

  .hero__title-line--3 {
    font-size: 9.6rem;
    line-height: 6.78rem;
  }

  .hero__title-line--3::after {
    content: "\A";
    white-space: pre;
  }

  .hero__title-line--4,
  .hero__title-line--5 {
    line-height: 8.91rem;
  }

  .hero__text {
    margin-top: 2.7rem;
    font-size: 2rem;
    line-height: 2.472rem;
  }

  .hero__text br:first-of-type {
    display: none;
  }

  .hero__cta {
    gap: 0.9rem;
    width: 41rem;
    padding-left: 3.3rem;
    height: 8.6rem;
    margin: 4.7rem 0 0;
    font-size: 2rem;
    line-height: 2.5rem;
  }

  .hero__cta-icon {
    width: 3.7rem;
    height: 3.1rem;
  }

  .hero__subscribe {
    margin-top: 7.5rem;
    font-size: 2.4rem;
    line-height: 2.873rem;
    text-align: left;
  }

  .hero__subscribe br,
  .hero__arrow {
    display: none;
  }

  .hero__subscribe-link {
    text-decoration-thickness: 0.042em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__circle,
  .hero__cta::before,
  .hero__cta::after,
  .hero__arrow-part {
    animation: none;
  }
}
