:root {
  --font-family: 'Macondo', sans-serif;
  --font-family-second: 'Mada', sans-serif;
  --font-family-third: 'Roboto', sans-serif;
  --font-family-fourth: 'Inter', sans-serif;

  --color-white: #FFFFFF;

  --container-width: 1280px;
  --container-padding-x: 20px;

  --section-padding-y: clamp(3.75rem, 2.87rem + 3.756vw, 6.25rem);

  --indentation-gap: clamp(2.5rem, 2.236rem + 1.127vw, 3.25rem);
}

body {
  background-color: #000a21;
  color: var(--color-white);
}

body.is-locked {
  overflow: hidden;
}

h2 {
  font-size: var(--indentation-gap);
  font-weight: 400;
  font-family: var(--font-family);
  line-height: 1.18;
  text-align: center;
}

.section-padding {
  padding-block: var(--section-padding-y);
}

.container {
  width: 100%;
  max-width: calc(var(--container-width) + var(--container-padding-x) * 2);
  margin-inline: auto;
  padding-inline: var(--container-padding-x);
}

.text-weight {
  font-weight: 700;
}

/* Header */

.header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 999;
  background-color: #002971;
  box-shadow: inset 0 4px 19px #669dff;
}

.header__wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
}

.header__logo {
  font-family: var(--font-family);
  font-size: 24px;
  line-height: 1;
  text-shadow: 0 1px 4px #a1fde5;
  color: inherit;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.header__logo:hover {
  transform: scale(1.05);
  text-shadow: 0 2px 10px #a1fde5;
}

.header__burger {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.header__burger-icon {
  width: 20px;
  height: 20px;
}

.header__menu {
  position: fixed;
  top: 115px;
  inset-inline: 0;
  box-shadow: inset 0 4px 19px #669dff;
  background-color: #002971;
  padding: 44px 0 44px 56px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.header__menu.is-active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.header__menu-list {
  display: flex;
  flex-direction: column;
  align-items: start;
  row-gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header__menu-link {
  font-family: var(--font-family-second);
  font-size: 16px;
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.2s ease;
}

.header__menu-link:hover,
.header__menu-link--active {
  color: #fbdb08;
}

/* Header */

/* Hero */

.hero {
  overflow: hidden;
  position: relative;
  min-height: 100dvh;
  background: url('../image/hero/hero-bg.png') center / cover no-repeat;
  background-position: 20%;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(180deg,
      rgba(2, 25, 66, 0) 50%,
      #020a16 100%);
}

.hero__wrapper {
  padding-top: clamp(9.5rem, 9.214rem + 1.221vw, 10.313rem);
  padding-bottom: clamp(5.813rem, 5.13rem + 2.911vw, 7.75rem);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 725px;
  row-gap: 32px;
  padding: 24px 12px;
}

.hero__content::before {
  content: '';
  position: absolute;
  inset: -12%;
  z-index: -1;
  background: url('../image/hero/hero-texture-mobile.png') center / cover no-repeat;
  background-size: 90% 110%;
  pointer-events: none;
}

.hero__content-title {
  font-family: var(--font-family);
  font-size: clamp(2.75rem, 2.398rem + 1.502vw, 3.75rem);
  line-height: 1.18;
}

.hero__content-description {
  font-family: var(--font-family-second);
  font-size: clamp(1.5rem, 1.324rem + 0.751vw, 2rem);
  line-height: 1.33;
}

/* Hero */

/* About */

.about {
  position: relative;
  background: url('../image/about/about-bg.png') center / cover no-repeat;
}

.about::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(0deg,
      rgba(2, 25, 66, 0) 50%,
      #020a16 100%),
    linear-gradient(180deg,
      rgba(2, 25, 66, 0) 50%,
      #020a16 100%);
}

.about__wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  row-gap: 37px;
}

.about__content {
  display: flex;
  flex-direction: column;
  row-gap: 32px;
}

.about__content-title {
  margin-bottom: clamp(0.438rem, 0.151rem + 1.221vw, 1.25rem);
}

.about__content-description {
  font-size: clamp(1.125rem, 0.993rem + 0.563vw, 1.5rem);
  font-family: var(--font-family-second);
  line-height: 1.4;
}

.about__image {
  align-self: center;
  width: clamp(12.75rem, 8.569rem + 17.84vw, 24.625rem);
  transform: rotate(60deg);
}

/* About */

/* Play */

.play {
  position: relative;
  background: url('../image/play/play-bg.png') center / cover no-repeat;
  background-position: 30%;
}

.play::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(0deg,
      rgba(2, 25, 66, 0) 50%,
      #020a16 100%);
}

.play__wrapper {
  display: flex;
  flex-direction: column;
}

.play__content {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 12px;
  row-gap: clamp(1.25rem, 0.986rem + 1.127vw, 2rem);
  z-index: 2;
  width: 100%;
  max-width: 806px;
}

.play__content::before {
  content: '';
  position: absolute;
  inset: -4%;
  z-index: -1;
  background: url('../image/play/play-texture-mobile.png') center / cover no-repeat;
  background-size: 106% 110%;
  pointer-events: none;
}

.play__title {
  margin-bottom: 20px;
}

.play__description {
  font-size: clamp(1.125rem, 0.993rem + 0.563vw, 1.5rem);
  font-family: var(--font-family-second);
  line-height: 1.4;
}

/* Play */

/* Game */

.game {
  background: url('../image/game/game-bg-mobile.png') center / cover no-repeat;
}

.game__wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  row-gap: 24px;
}

.game__content {
  display: flex;
  flex-direction: column;
  row-gap: var(--indentation-gap);
}

.game__list {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
}

.game__item {
  display: flex;
  align-items: center;
  padding: 16px 16px 16px 0px;
  border-radius: 12px;
  background-color: #000a21;
  box-shadow: 0 4px 22px rgba(38, 107, 255, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.game__item:hover {
  transform: translateY(-4px) scale(1.02);
  background-color: #000f33;
  box-shadow: 0 8px 30px rgba(0, 242, 254, 0.4), inset 0 0 15px rgba(38, 107, 255, 0.3);
}

.game__item-content {
  display: flex;
  flex-direction: column;
  row-gap: clamp(0.75rem, 0.662rem + 0.376vw, 1rem);
}

.game__item-title {
  font-family: var(--font-family);
  font-size: clamp(1.25rem, 1.162rem + 0.376vw, 1.5rem);
  font-weight: 400;
  line-height: 1.35;
  color: #00f2fe;
}

.game__item-description {
  font-family: var(--font-family-second);
  font-size: clamp(1rem, 0.956rem + 0.188vw, 1.125rem);
  line-height: 1.52;
}

/* Game */

/* World */

.world {
  position: relative;
  background: #000f28;
  overflow: hidden;
  isolation: isolate;
}

.world::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(180deg,
      rgba(2, 25, 66, 0) 50%,
      #020a16 100%);
}

.world__wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  row-gap: clamp(1.5rem, 1.324rem + 0.751vw, 2rem);
}

.world__gradient {
  position: absolute;
  border-radius: 100%;
  background-color: #034bab;
  filter: blur(150px);
  z-index: -1;
  pointer-events: none;
}

.world__gradient-first {
  top: 50%;
  left: -20%;
  transform: translate(-50%, -50%);
  width: 375px;
  height: 670px;
}

.world__gradient-second {
  top: 100%;
  left: 110%;
  transform: translate(-50%, -50%);
  width: 375px;
  height: 502px;
}

.world__header {
  display: flex;
  flex-direction: column;
  row-gap: var(--indentation-gap);

  width: 100%;
  max-width: 806px;
}

.world__header-description {
  font-family: var(--font-family-second);
  font-size: clamp(1.25rem, 1.162rem + 0.376vw, 1.5rem);
  line-height: 1.35;
}

.world__slider {
  width: 100%;
  max-width: 335px;
  margin: 0 auto;
  overflow: hidden;
}

.world__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.world__pagination {
  position: static;
  bottom: auto;
  padding-top: 40px;
  display: flex;
  justify-content: center;
}

.world__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 6px;
  background-color: #d9d9d9;
  border-radius: 4px;
  opacity: 1;
  margin: 0 4px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.world__pagination .swiper-pagination-bullet-active {
  width: 35px;
  background-color: #085ad0;
}

.world__card-title {
  font-family: var(--font-family);
  font-size: clamp(1.25rem, 1.162rem + 0.376vw, 1.5rem);
  line-height: 1.35;
  color: #ffe700;
}

.world__card-text {
  font-family: var(--font-family-second);
  font-size: clamp(1rem, 0.956rem + 0.188vw, 1.125rem);
}

.world__footer-text {
  font-family: var(--font-family);
  font-size: clamp(1.25rem, 1.162rem + 0.376vw, 1.5rem);
  line-height: 1.35;
}

/* World */

/* Faq */

.faq {
  position: relative;
  background: url('../image/faq/faq-bg.png') center / cover no-repeat;
  overflow: hidden;
  isolation: isolate;
}

.faq::before {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(0deg,
      rgba(2, 25, 66, 0) 50%,
      #020a16 100%);
}

.faq__wrapper {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
}

.faq__gradient {
  position: absolute;
  border-radius: 100%;
  background-color: #034bab;
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
}

.faq__gradient-first {
  top: 40%;
  left: 10%;
  transform: translate(-50%, -50%);
  width: 375px;
  height: 400px;
}

.faq__gradient-second {
  top: 100%;
  left: 110%;
  transform: translate(-50%, -50%);
  width: 375px;
  height: 502px;
}

.faq__title {
  margin-bottom: var(--indentation-gap);
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 1.074rem + 0.751vw, 1.75rem);
}

.faq__item {
  display: flex;
  flex-direction: column;
  text-align: center;
  border-radius: 16px;
  padding: 16px 12px;
  backdrop-filter: blur(16px);
  background-color: rgba(102, 157, 255, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.faq__item:hover {
  transform: translateY(-4px) scale(1.02);
  background-color: rgba(102, 157, 255, 0.32);
  box-shadow: 0 8px 24px rgba(102, 157, 255, 0.25);
}

.faq__item-title {
  font-family: var(--font-family-second);
  font-size: clamp(1.125rem, 1.081rem + 0.188vw, 1.25rem);
}

.faq__item-title::after {
  content: '';
  display: block;
  width: 276px;
  max-width: 100%;
  height: 1px;
  background-color: #669dff;
  margin: 12px auto 12px;
}

.faq__item-text {
  font-family: var(--font-family-second);
}

/* Faq */

/* Footer */

.footer {
  border-top: 1px solid #1fa1ff;
  background: linear-gradient(180deg, #000006 0%);
  overflow: hidden;
  isolation: isolate;
}

.footer__wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 16px;
  padding-block: clamp(2.5rem, 4.19rem - 1.878vw, 3.75rem);
  padding-inline: clamp(1.25rem, -0.07rem + 5.634vw, 5rem);
}

.footer__circle {
  position: absolute;
  width: clamp(9.063rem, 7.654rem + 6.009vw, 13.063rem);
  pointer-events: none;
}

.footer__circle-first {
  top: 68%;
  left: 2%;
}

.footer__circle-second {
  top: -33%;
  right: -1%;
}

.footer__logo {
  font-family: var(--font-family);
  font-size: 36px;
  line-height: 1.1;
  text-shadow: 0 1px 4px #a1fde5;
  color: inherit;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.footer__logo:hover {
  transform: scale(1.05);
  text-shadow: 0 2px 10px #a1fde5;
}

.footer__copyright {
  font-family: var(--font-family);
  font-size: clamp(0.75rem, 0.706rem + 0.188vw, 0.875rem);
}
/* Footer */

@media (min-width: 425px) {
  .hero__content::before {
    background: url('../image/hero/hero-texture.png') center / cover no-repeat;
    background-size: 100% 110%;
  }

  .play__content::before {
    background: url('../image/play/play-texture.png') center / cover no-repeat;
    background-size: 110% 115%;
  }
}

@media (min-width: 768px) {
  :root {
    --container-padding-x: 60px;
  }

  .game {
    background: url('../image/game/game-bg.png') center / cover no-repeat;
  }

  .faq__list {
    display: grid;
    align-items: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 20px;
  }

  .faq__item {
    width: 100%;
    max-width: 448px;
  }
}

@media (min-width: 1024px) {

  .header__wrapper {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding-inline: 100px;
  }

  .header__burger {
    display: none;
  }

  .header__menu {
    position: static;
    inset: auto;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    padding: 0;
    opacity: 1;
    pointer-events: all;
    transform: none;

    justify-self: center;
  }

  .header__menu-list {
    flex-direction: row;
    column-gap: 32px;
    row-gap: 0;
  }

  .header__menu-link {
    font-size: 1rem;
  }

  :root {
    --container-padding-x: 100px;
  }

  h2 {
    text-align: left;
  }

  .hero__content {
    padding: 40px;
  }

  .hero__content-title {
    line-height: 1.13;
  }

  .hero__content-description {
    line-height: 1.25;
  }

  .about__wrapper {
    flex-direction: row;
    column-gap: 87px;
  }

  .about__content {
    order: 2;
  }

  .about__image {
    order: 1;
  }

  .play::before {
    background-image:
      linear-gradient(0deg,
        rgba(2, 25, 66, 0) 50%,
        #020a16 100%),
      linear-gradient(180deg,
        rgba(2, 25, 66, 0) 50%,
        #020a16 100%);
  }

  .game__content-title,
  .world__header-title,
  .faq__title {
    text-align: center;
  }

  .swiper-slide-duplicate {
    display: none;
  }

  .world__slider {
    max-width: 100%;
    overflow: visible;
  }

  .world__slider-wrapper.swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 32px;
    transform: none;
  }

  .world__card.swiper-slide {
    width: 100%;
    max-width: 282px;
    margin-right: 0;
  }

  .world__pagination {
    display: none;
  }

  .faq__list {
    grid-template-columns: repeat(2, minmax(0, 448px));
    justify-content: center;
  }

  .footer__wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
  }

  .footer__circle-first {
    top: 30%;
    left: 26%;
  }

  .footer__circle-second {
    top: -61%;
    right: 20%;
  }
}

@media (min-width: 1440px) {
  .game__wrapper {
    position: relative;
    flex-direction: row;
    padding-left: clamp(1.25rem, -7.333rem + 36.62vw, 25.625rem);
  }

  .game__content {
    order: 2;
  }

  .game__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    order: 1;
    gap: 24px;
    z-index: 2;
  }

  .game__item {
    padding: 16px 36px 16px 0px;
  }

  .game__content-image {
    position: absolute;
    right: 68%;
  }

  .world__gradient-first {
    left: 7%;
  }

  .world__gradient-second {
    left: 90%;
  }

  .faq__gradient-first {
    top: 50%;
    left: 10%;
  }

  .faq__gradient-second {
    left: 90%;
  }
}