:root {
  --bg: #12130e;
  --surface: #251e18;
  --stroke: #553623;
  --text: #fffad9;
  --text-2: #a9a8a0;
  --primary: #25cef4;
  --accent: #df7811;
  --font-body: 'Petrona', serif;
  --font-heading: 'Playfair Display SC', 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-2);
  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.5);
}

.header__logo {
  display: block;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 1rem;
  overflow: hidden;
}

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

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

.nav-link {
  font-size: 1.8rem;
  color: var(--text);
  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: 63.1rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: -1.2rem;
  width: 145.6rem;
  height: 63.1rem;
  background: url(../img/hero-bg.webp) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.15) 43.3%, #000 50.3%);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.15) 43.3%, #000 50.3%);
}

.hero__object {
  position: absolute;
  top: 7.2rem;
  left: 73.5rem;
  width: 23.3rem;
  height: 55.9rem;
}

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

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

.hero__tagline {
  margin-top: 8rem;
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
}

.hero__text {
  width: 44.8rem;
  margin-top: 1.6rem;
}

.hero .btn-store {
  margin-top: 6.4rem;
  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: 700;
  line-height: 1.2;
  color: var(--accent);
}

.section__subtitle {
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
}

.section__head + .section__text {
  margin-top: 7.2rem;
}

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

.world__head {
  width: 49.7rem;
}

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

.feature {
  display: flex;
  flex: 0 0 35.2rem;
  flex-direction: column;
  gap: 2.4rem;
  overflow: hidden;
  border: 0.1rem solid var(--stroke);
  border-radius: 0.8rem;
  background: var(--surface);
  transition: transform 0.3s ease-in-out;
}

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

.feature__art {
  width: 100%;
  height: 20rem;
  object-fit: cover;
}

.feature__body {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 0 2.4rem 3.2rem;
}

.feature__title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 2rem;
  font-weight: 500;
  color: var(--primary);
}

.feature__title img {
  flex: none;
  width: 2rem;
  height: 2rem;
}

.combat__cards {
  display: flex;
  justify-content: space-between;
  margin-top: 3.2rem;
}

.combat-card {
  display: flex;
  flex-direction: column;
  width: 54.4rem;
}

.combat-card__title {
  margin-bottom: 0.8rem;
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--primary);
}

.shot {
  position: relative;
  overflow: hidden;
  border: 0.1rem solid var(--stroke);
  border-radius: 0.8rem;
  transition: transform 0.3s ease-in-out;
}

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

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

.combat-card__image {
  margin-top: 1.6rem;
  aspect-ratio: 1920 / 1080;
}

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

.story__info {
  width: 54.4rem;
}

.story__info .section__head {
  width: 42.2rem;
}

.story__image {
  width: 54.4rem;
  height: 40.1rem;
}

.reviews-section__head {
  width: 57.2rem;
}

.reviews {
  display: flex;
  align-items: flex-start;
  gap: 3.2rem;
  width: 112rem;
  margin: 7.3rem auto 0;
}

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

.review__sign {
  text-align: right;
}

.review__name {
  font-size: 2rem;
  font-weight: 500;
  color: var(--primary);
}

.review__role {
  font-size: 1.2rem;
}

.reviews-section__note {
  margin-top: 3.2rem;
  font-size: 2rem;
  font-weight: 500;
  color: var(--text);
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
  padding: 4rem 16rem 1.6rem;
  background: var(--surface);
  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(--text);
}

.footer__copy {
  font-size: 1.2rem;
}

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

.legal-content {
  width: 112rem;
  margin: 0 auto;
  color: var(--text);
}

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

.legal-content h2,
.legal-content .legal-heading {
  display: block;
  margin: 4.2rem 0 2.7rem;
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 1.3;
}

.legal-content .legal-plain {
  margin: 0;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
}

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

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

.legal-content strong,
.legal-content b,
.legal-content .legal-bold {
  font-weight: inherit;
}

.legal-content em {
  font-style: normal;
}

.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: 0;
    width: 100%;
    height: 81.2rem;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 40.5%, #000 72.5%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 40.5%, #000 72.5%);
  }

  .hero__object {
    top: 35.6rem;
    left: calc(50% - 3.7rem);
    width: 19rem;
    height: 45.6rem;
  }

  .hero__content {
    position: static;
    width: 34.3rem;
    margin: 0 auto;
    padding: 11rem 0 0;
  }

  .hero__title {
    font-size: 4.8rem;
  }

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

  .hero__text {
    width: auto;
    margin-top: 0.8rem;
  }

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

  .hero__title,
  .hero__tagline,
  .hero__text {
    position: relative;
    z-index: 1;
  }

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

  .world__head,
  .story__info .section__head,
  .reviews-section__head {
    width: auto;
  }

  .section__head + .section__text {
    margin-top: 6.4rem;
  }

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

  .features {
    flex-direction: column;
    justify-content: center;
    min-height: 123.4rem;
  }

  .feature {
    flex: none;
  }

  .feature__title {
    font-size: 1.8rem;
  }

  .combat__cards {
    flex-direction: column;
    gap: 3.2rem;
  }

  .combat-card {
    width: auto;
  }

  .combat-card__title {
    font-size: 2.4rem;
  }

  .story__row {
    flex-direction: column;
    gap: 3.2rem;
  }

  .story__info {
    width: auto;
  }

  .story__image {
    width: 100%;
    height: auto;
    aspect-ratio: 963 / 709;
  }

  .reviews {
    align-items: stretch;
    gap: 1.6rem;
    width: 100%;
    max-width: 72rem;
    margin-top: 6.4rem;
    padding: 0 1.6rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 1.6rem;
    scrollbar-width: none;
  }

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

  .review {
    flex: 0 0 30rem;
    scroll-snap-align: start;
  }

  .review__sign {
    margin-top: auto;
  }

  .review__name {
    font-size: 1.8rem;
  }

  .review__role {
    font-size: 1.1rem;
  }

  .reviews-section__note {
    margin-top: 1.6rem;
    font-size: 1.8rem;
  }

  .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,
  .legal-content .legal-heading {
    margin: 3.6rem 0 2.4rem;
    font-size: 2.4rem;
  }

  .legal-content .legal-plain {
    margin: 0;
    font-size: inherit;
  }

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

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

  .hero__bg {
    background-size: 187.4rem 81.2rem;
    background-position: -41.2rem 0;
  }

  .hero__object {
    left: 15.1rem;
  }

  .hero__content {
    margin: 0 1.6rem;
  }

  .world .section__text p:first-child {
    padding-right: 0.7rem;
  }

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