/* ===== ПЕРВЫЙ ЭКРАН ===== */

.hero {
  position: relative;

  min-height: calc(100svh - 80px);
  padding: 40px clamp(24px, 5vw, 80px) 96px;

  display: flex;
  justify-content: center;
  align-items: center;

  overflow: hidden;

  background-color: #353334;
  color: #ffffff;
  text-align: center;
}

.hero-content {
  width: 100%;
  max-width: 1500px;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 0;
}

.hero-subtitle {
  margin: 0;

  font-family: 'Sofia Sans Extra Condensed', sans-serif;
  font-size: clamp(72px, 7.3vw, 131px);
  font-style: normal;
  font-weight: 600;
  line-height: 0.9;

  white-space: nowrap;
}

.hero-title {
  margin: 0;

  color: #ffd000;

  font-family: 'Sofia Sans Extra Condensed', sans-serif;
  font-size: clamp(138px, 13.8vw, 249px);
  font-style: normal;
  font-weight: 800;
  line-height: 0.86;

  white-space: nowrap;
}

/* ===== СТРЕЛКА ВНИЗ ===== */

.scroll-arrow {
  position: absolute;
  left: 50%;
  bottom: 34px;

  width: 52px;
  height: 52px;

  display: flex;
  justify-content: center;
  align-items: center;

  border: 1px solid rgba(255, 208, 0, 0.45);
  border-radius: 50%;

  background-color: rgba(34, 32, 33, 0.35);
  color: #ffd000;

  text-decoration: none;

  transform: translateX(-50%);

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  animation: arrow-float 1.8s ease-in-out infinite;

  transition:
    border-color 0.25s ease,
    background-color 0.25s ease;
}

.scroll-arrow span {
  width: 15px;
  height: 15px;
  margin-top: -6px;

  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;

  transform: rotate(45deg);
}

.scroll-arrow:hover {
  border-color: #ffd000;
  background-color: rgba(255, 208, 0, 0.08);
}

.scroll-arrow:hover span {
  color: #ffffff;
}

.scroll-arrow:focus-visible {
  outline: 3px solid rgba(255, 208, 0, 0.4);
  outline-offset: 5px;
}

@keyframes arrow-float {
  0%,
  100% {
    transform: translateX(-50%) translateY(-5px);
    opacity: 0.7;
  }

  50% {
    transform: translateX(-50%) translateY(7px);
    opacity: 1;
  }
}

/* ===== НОУТБУКИ ===== */

@media (max-width: 1440px) {
  .hero {
    padding-bottom: 88px;
  }

  .hero-subtitle {
    font-size: clamp(58px, 6.6vw, 94px);
  }

  .hero-title {
    font-size: clamp(112px, 12vw, 172px);
  }
}

/* ===== ПЛАНШЕТЫ ===== */

@media (max-width: 1180px) {
  .hero {
    min-height: calc(100svh - 72px);
    padding: 36px 32px 88px;
  }

  .hero-subtitle {
    font-size: clamp(50px, 7.5vw, 76px);
  }

  .hero-title {
    font-size: clamp(96px, 14.5vw, 146px);
  }

  .scroll-arrow {
    bottom: 26px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: calc(100svh - 72px);
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero-subtitle,
  .hero-title {
    white-space: normal;
  }

  .hero-subtitle {
    max-width: 620px;
    font-size: clamp(42px, 10vw, 64px);
    line-height: 0.94;
  }

  .hero-title {
    font-size: clamp(78px, 20vw, 126px);
    line-height: 0.9;
  }

  .scroll-arrow {
    width: 46px;
    height: 46px;
  }

  .scroll-arrow span {
    width: 13px;
    height: 13px;
    border-right-width: 2px;
    border-bottom-width: 2px;
  }
}

/* ===== ТЕЛЕФОНЫ ===== */

@media (max-width: 520px) {
  .hero {
    min-height: calc(100svh - 64px);
    padding: 28px 16px 78px;
  }

  .hero-content {
    transform: translateY(-8px);
  }

  .hero-subtitle {
    max-width: 360px;
    font-size: clamp(34px, 11vw, 50px);
    line-height: 0.96;
  }

  .hero-title {
    font-size: clamp(68px, 21vw, 102px);
  }

  .scroll-arrow {
    bottom: 20px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 360px) {
  .hero-subtitle {
    font-size: 32px;
  }

  .hero-title {
    font-size: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-arrow {
    animation: none;
  }
}
