@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;
}

/* Первый экран UZEX */

/* обрезает декор по краям окна, а не по краям мобильного контейнера */
.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.08);
  pointer-events: none;
}

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

.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.2rem;
  height: auto;
}

.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:hover {
  opacity: 0.85;
}

.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;
}

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

@media (min-width: 1024px) {
  /* Масштабируем весь фрейм пропорционально ширине, включая фон и декор. */
  html {
    font-size: calc(100vw / 151.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: 19.45rem;
  }

  .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__cta {
    transition: none;
  }
}
