:root {
  --bg: #dbd0b7;
  --surface: #c8b38c;
  --text: #1a0b03;
  --primary: #4e4331;
  --accent: #a67500;
  --hero-fill: #4b5c70;
  --font-body: 'Dosis', sans-serif;
  --font-heading: 'Yusei Magic', sans-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(26, 11, 3, 0.2);
}

.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: 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;
  gap: 1.2rem;
  padding: 0.9rem 1.1rem;
  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: -1.1rem;
  width: 145.1rem;
  height: 78rem;
  background: url(../img/hero-bg.webp) center / cover no-repeat;
}

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

.hero__logo {
  width: 64rem;
  height: 17.6rem;
}

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

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

.hero .btn-store {
  margin-top: 6.6rem;
  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: 0.4rem;
  color: var(--primary);
}

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

.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;
  margin-top: 6.4rem;
}

.section__text {
  width: 54.4rem;
}

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

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

.section__text a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.shot {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.shot:hover {
  transform: translateY(-0.4rem);
  box-shadow: 0 0.8rem 2rem rgba(78, 67, 49, 0.3);
}

.skills .section__head {
  width: 41.8rem;
}

.skills__image {
  width: 54.4rem;
  height: 34.3rem;
}

.skills__image img {
  position: absolute;
  top: -8.22%;
  left: 0;
  width: 121.29%;
  height: 108.22%;
  max-width: none;
}

.world .section__row {
  margin-top: 0;
}

.world__images {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  width: 54.4rem;
}

.world__image {
  width: 54.4rem;
  height: 30.6rem;
}

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

.world__info {
  width: 54.4rem;
}

.world__info .section__text {
  margin-top: 6.4rem;
}

.story .section__head {
  width: 55.2rem;
}

.story__left {
  width: 54.4rem;
}

.story__left .section__text {
  width: auto;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.3rem;
  padding: 2.1rem;
  background: var(--surface);
  border: 0.3rem solid var(--accent);
}

.rating__star {
  width: 4rem;
  height: 3.9rem;
}

.rating__text {
  white-space: nowrap;
}

.rating__value {
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--accent);
}

.reviews {
  display: grid;
  grid-template-columns: repeat(2, 25.6rem);
  gap: 3.2rem;
}

.review {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 1.4rem 2.2rem;
  background: var(--surface);
  border: 0.2rem solid var(--primary);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.review:hover {
  transform: translateY(-0.4rem);
  box-shadow: 0 0.8rem 2rem rgba(78, 67, 49, 0.25);
}

.review__name {
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  text-align: right;
}

.community .section__head {
  width: 46.8rem;
}

.community__col {
  width: 54.4rem;
}

.community__col .section__text {
  width: auto;
}

.community__label {
  margin-bottom: 0.8rem;
  font-size: 2rem;
  font-weight: 600;
}

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

.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,
.legal-content h3,
.legal-content .legal-heading {
  margin: 4.2rem 0 2.7rem;
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.3;
}

.legal-content h2,
.legal-content h3 {
  margin-top: 3.5rem;
}

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

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

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

.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;
    background: var(--hero-fill);
  }

  .hero__bg {
    left: 50%;
    width: 43.7rem;
    height: 81.2rem;
    background-image: url(../img/hero-bg-mob.webp);
    transform: translateX(calc(-50% - 0.8rem));
  }

  .hero__content {
    width: 34.3rem;
    height: 100%;
    margin: 0 auto;
    padding: 10rem 0 0;
    color: var(--bg);
    text-align: center;
  }

  .hero__logo {
    width: 34.3rem;
    height: 9.4rem;
  }

  .hero__title {
    margin-top: 1.2rem;
    font-size: 2.4rem;
  }

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

  .hero .btn-store {
    position: absolute;
    top: 69.1rem;
    left: 50%;
    width: max-content;
    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;
  }

  .skills .section__head,
  .story .section__head,
  .community .section__head {
    width: auto;
  }

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

  .section__text {
    width: auto;
  }

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

  .skills__image {
    width: 100%;
    height: auto;
    aspect-ratio: 1583 / 998;
  }

  .world__info {
    width: auto;
  }

  .world__images {
    order: 2;
    gap: 3.2rem;
    width: 100%;
  }

  .world__image {
    width: 100%;
    height: auto;
    aspect-ratio: 1920 / 1080;
  }

  .story__left {
    width: auto;
  }

  .rating {
    display: flex;
    justify-content: center;
    margin-top: 4.8rem;
  }

  .rating__value {
    font-size: 2.4rem;
  }

  .reviews {
    display: flex;
    gap: 1.6rem;
    width: calc(100% + 3.2rem);
    margin: 1.6rem -1.6rem 0;
    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__name {
    font-size: 1.8rem;
  }

  .community__col {
    width: auto;
  }

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

  .legal-content h2,
  .legal-content h3 {
    margin-top: 2.2rem;
  }

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

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

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

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

  .skills {
    overflow: hidden;
  }

  .skills .section__head {
    width: 41.8rem;
  }
}
