:root {
  --bg: #130029;
  --surface: #2c1941;
  --logo-bg: #332c2c;
  --text: #f0f1e6;
  --primary: #6bd4f7;
  --accent: #fdd055;
  --font-body: 'Onest', sans-serif;
  --font-heading: 'Ultra', serif;
}

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

html {
  font-size: calc(100vw / 1440 * 10);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  overflow-x: hidden;
}

body {
  margin: 0;
  font-size: 1.8rem;
  background: var(--bg);
  overflow-x: hidden;
}

body.fixed {
  overflow: hidden;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.preloader img {
  width: 5rem;
}

html.hide .preloader {
  display: none;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 6rem;
  padding: 0 16rem;
  background: var(--surface);
  transition: box-shadow 0.3s ease-in-out;
}

.header.scrolled {
  box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.4);
}

.header__logo {
  display: block;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--logo-bg);
}

.header__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header__nav {
  display: flex;
  justify-content: space-between;
  width: 44.8rem;
}

.nav-link {
  font-size: 1.8rem;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

.nav-link:hover {
  color: var(--accent);
}

.burger-btn {
  display: none;
  position: relative;
  width: 6.4rem;
  height: 6.4rem;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.burger-btn span {
  position: absolute;
  left: 50%;
  width: 2.4rem;
  height: 0.2rem;
  margin-left: -1.2rem;
  border-radius: 0.1rem;
  background: var(--text);
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.burger-btn span:nth-child(1) {
  top: 2.3rem;
}

.burger-btn span:nth-child(2) {
  top: 3.1rem;
}

.burger-btn span:nth-child(3) {
  top: 3.9rem;
}

.burger-btn.act span:nth-child(1) {
  transform: translateY(0.8rem) rotate(45deg);
}

.burger-btn.act span:nth-child(2) {
  opacity: 0;
}

.burger-btn.act span:nth-child(3) {
  transform: translateY(-0.8rem) rotate(-45deg);
}

#mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  width: 100%;
  height: 100%;
  padding-top: 8rem;
  background: var(--surface);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

#mobile-menu.opened {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.2rem;
  padding-top: 4.8rem;
}

.mobile-menu__nav .nav-link {
  font-size: 2rem;
}

.btn {
  text-decoration: none;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  width: 18rem;
  height: 5.7rem;
  padding: 0 1.2rem;
  background: #000;
  border: 0.1rem solid #a6a6a6;
  border-radius: 0.6rem;
  transition: filter 0.3s ease-in-out;
}

.btn-store:hover {
  filter: brightness(1.3);
}

.btn-store__icon {
  width: 3.1rem;
  height: 3.5rem;
}

.btn-store__text {
  width: 11.3rem;
  height: 3.7rem;
}

.hero {
  position: relative;
  height: 75.9rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 50.4rem;
  width: 93.7rem;
  height: 75.9rem;
  background: url(../img/hero-bg.webp) center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 9%, #000 34.9%);
  mask-image: linear-gradient(to right, transparent 9%, #000 34.9%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 70.4rem;
  padding: 15rem 0 0 16rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 7.2rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--primary);
}

.hero__tagline {
  margin-top: 8rem;
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.3;
}

.hero__text {
  margin-top: 1.6rem;
}

.hero .btn-store {
  margin-top: 6.1rem;
  animation: btn-pulse 2s ease-in-out infinite;
}

.hero .btn-store:hover {
  animation-play-state: paused;
}

@keyframes btn-pulse {
  0%,
  100% {
    scale: 1;
  }

  50% {
    scale: 1.06;
  }
}

.section {
  padding: 8rem 0;
}

.container {
  width: 112rem;
  margin: 0 auto;
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.section__title {
  font-family: var(--font-heading);
  font-size: 4.8rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--primary);
}

.section__subtitle {
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.3;
}

.section__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.section__text p + p {
  margin-top: 2.7rem;
}

.gameplay__head {
  width: 60.9rem;
}

.cards {
  display: flex;
  gap: 3.2rem;
  margin-top: 8rem;
}

.card {
  display: flex;
  flex: 0 0 35.2rem;
  flex-direction: column;
  gap: 0.8rem;
  padding: 2.4rem;
  border-radius: 1.6rem;
  background: var(--surface);
  transition: transform 0.3s ease-in-out;
}

.card:hover,
.review:hover {
  transform: translateY(-0.4rem);
}

.card--tall {
  min-height: 30.5rem;
}

.card__title,
.faction__name {
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
}

.gameplay__quote {
  margin-top: 3.2rem;
}

.motion__row {
  align-items: center;
}

.motion__info {
  display: flex;
  flex-direction: column;
  gap: 8rem;
  width: 54.4rem;
}

.shot {
  position: relative;
  overflow: hidden;
  border-radius: 1.6rem;
  transition: transform 0.3s ease-in-out;
}

.shot:hover {
  transform: translateY(-0.4rem);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.motion__image {
  width: 54.4rem;
  height: 55.6rem;
}

.factions__info {
  width: 54.4rem;
}

.factions__text {
  margin-top: 8rem;
}

.factions__list {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  margin-top: 3.2rem;
}

.faction {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.factions__image {
  width: 54.4rem;
  height: 87.9rem;
}

.reviews-section__head {
  width: 39.5rem;
}

.reviews {
  display: flex;
  gap: 3.2rem;
  margin-top: 8rem;
  padding: 0 16rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 16rem;
  scrollbar-width: none;
}

.reviews::-webkit-scrollbar {
  display: none;
}

.review {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 0.8rem;
  padding: 2.4rem;
  border-radius: 1.6rem;
  background: var(--surface);
  scroll-snap-align: start;
  transition: transform 0.3s ease-in-out;
}

.review__text {
  font-size: 2rem;
  font-weight: 600;
}

.review__name {
  margin-top: auto;
  color: var(--primary);
  text-align: right;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
  padding: 4rem 16rem 1.6rem;
  background: var(--surface);
  color: var(--primary);
  text-align: center;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.footer__links a {
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__copy {
  font-size: 1.2rem;
}

.legal-page {
  padding: 14rem 0 8rem;
}

.legal-content {
  width: 112rem;
  margin: 0 auto;
}

.legal-content h1 {
  margin-bottom: 2.7rem;
  font-family: var(--font-heading);
  font-size: 4.8rem;
  font-weight: 400;
  line-height: 1.2;
}

.legal-content h2 {
  margin: 4.2rem 0 2.7rem;
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.3;
}

.legal-page--privacy .legal-content h2 {
  margin-top: 3.5rem;
}

.legal-content p,
.legal-content ul,
.legal-content ol {
  margin: 0;
}

.legal-content ul,
.legal-content ol {
  padding-left: 2.7rem;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  transition: color 0.3s ease-in-out;
}

.legal-content a:hover {
  color: var(--primary);
}

@media (max-width: 1024px) {
  html {
    font-size: calc(100vw / 1100 * 10);
  }

  body {
    font-size: 1.6rem;
  }

  .header {
    height: 8rem;
    padding: 0 1.6rem;
  }

  .header__nav {
    display: none;
  }

  .header__logo {
    margin-top: 0.4rem;
  }

  .burger-btn {
    display: block;
    align-self: flex-start;
    margin-top: 1.6rem;
  }

  .hero {
    height: 81.2rem;
  }

  .hero__bg {
    left: 50%;
    width: 40.5rem;
    height: 81.2rem;
    background-image: url(../img/hero-bg-mob.webp);
    background-position: center;
    -webkit-mask-image: none;
    mask-image: none;
    transform: translateX(-50%);
  }

  .hero__content {
    width: 34.3rem;
    height: 100%;
    margin: 0 auto;
    padding: 10rem 0 0;
  }

  .hero__title {
    font-size: 4.8rem;
  }

  .hero__tagline {
    margin-top: 2.1rem;
    font-size: 2.4rem;
  }

  .hero__text {
    margin-top: 0.8rem;
  }

  .hero .btn-store {
    position: absolute;
    top: 69.1rem;
    left: 50%;
    margin-top: 0;
    translate: -50% 0;
  }

  .section {
    padding: 6.4rem 0;
  }

  .container {
    width: 100%;
    max-width: 72rem;
    padding: 0 1.6rem;
  }

  .section__title {
    font-size: 3.6rem;
  }

  .section__subtitle {
    font-size: 2.4rem;
  }

  .gameplay__head,
  .reviews-section__head {
    width: auto;
  }

  .section__row {
    flex-direction: column;
    align-items: stretch;
  }

  .section__text p + p {
    margin-top: 2.4rem;
  }

  .cards {
    flex-direction: column;
    margin-top: 6.4rem;
  }

  .card {
    flex: none;
  }

  .card__title,
  .faction__name,
  .review__text {
    font-size: 1.8rem;
  }

  .gameplay__quote,
  .faction--large {
    font-size: 1.8rem;
  }

  .motion__row {
    gap: 3.2rem;
  }

  .motion__info {
    gap: 6.4rem;
    width: auto;
  }

  .motion__image {
    width: 100%;
    height: auto;
    aspect-ratio: 1168 / 1194;
  }

  .factions__info {
    width: auto;
  }

  .factions__text {
    margin-top: 6.4rem;
  }

  .factions__image {
    width: 100%;
    height: auto;
    margin-top: 3.2rem;
    aspect-ratio: 544 / 879;
  }

  .reviews {
    gap: 1.6rem;
    max-width: 72rem;
    margin: 6.4rem auto 0;
    padding: 0 1.6rem;
    scroll-padding-left: 1.6rem;
  }

  .review {
    flex: 0 0 30rem;
  }

  .footer {
    padding: 4rem 1.6rem 1.6rem;
  }

  .footer__copy {
    font-size: 1.1rem;
  }

  .legal-page {
    padding: 12rem 0 4rem;
  }

  .legal-content {
    width: 100%;
    max-width: 72rem;
    padding: 0 1.6rem;
  }

  .legal-content h1 {
    margin-bottom: 2.4rem;
    font-size: 3.6rem;
  }

  .legal-content h2 {
    margin: 3.6rem 0 2.4rem;
    font-size: 2.4rem;
  }

  .legal-page--privacy .legal-content h2 {
    margin-top: 2.6rem;
  }

  .legal-content ul,
  .legal-content ol {
    padding-left: 2.4rem;
  }
}

@media (max-width: 600px) {
  html {
    font-size: calc(100vw / 375 * 10);
  }

  .hero__bg {
    left: -1.5rem;
    transform: none;
  }

  .hero__content {
    margin: 0 1.6rem;
  }

  .container,
  .reviews,
  .legal-content {
    max-width: none;
  }
}
