/* stp:base */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&family=Open+Sans:wght@400&display=swap');

:root {
  --blue: #2da3c6;
  --wave: #31a3c6;
  --navy: #002568;
  --gold: #fab637;
  --grey: #808080;
  --dark: #232628;
  --white: #ffffff;
  --bg: #ffffff;
  --font: 'Montserrat', sans-serif;
  --font-text: 'Open Sans', sans-serif;
}

html { font-size: calc(100vw / 1903 * 10); overflow-x: hidden; overflow-y: scroll; }
@media (max-width: 1024px) { html { font-size: calc(100vw / 1024 * 10); } }
@media (max-width: 640px) { html { font-size: calc(100vw / 375 * 10); } }

html.menu-lock, html.menu-lock body { overflow: hidden; }

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

body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }

main { padding-top: 13.7rem; }

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

.container {
  width: 100%;
  max-width: 109.9rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.section { margin-top: 6.2rem; }

.title {
  font-size: 3.6rem;
  line-height: 4.4rem;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
}

.wave {
  display: block;
  width: 4.8rem;
  height: 0.5rem;
  margin: 1rem auto 0;
}

.lead {
  margin-top: 1rem;
  font-size: 2rem;
  line-height: 2.4rem;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13.5rem;
  height: 4.6rem;
  border-radius: 0.3rem;
  background: var(--navy);
  box-shadow: 0 0.2rem 0 rgba(49, 163, 196, 0.8);
  color: var(--white);
  font-size: clamp(14px, 1.4rem, 1.4rem);
  line-height: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.03rem;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
  background: var(--blue);
  transform: translateY(-0.2rem);
  box-shadow: 0 0.4rem 0 var(--navy);
}

.store-btn { display: inline-block; transition: opacity 0.3s, transform 0.3s; }
.store-btn:hover { opacity: 0.85; }

@keyframes store-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1rem); }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cookies {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 2.4rem;
  width: calc(100% - 4rem);
  max-width: 90rem;
  padding: 2rem 2.4rem;
  transform: translateX(-50%);
  border-radius: 0.6rem;
  background: var(--navy);
  box-shadow: 0 0.4rem 2rem rgba(0, 0, 0, 0.35);
  color: var(--white);
}

.cookies__text {
  flex: 1;
  font-size: clamp(14px, 1.6rem, 1.6rem);
  line-height: 2rem;
}

.cookies__link {
  color: var(--gold);
  text-decoration: underline;
  transition: color 0.3s;
}

.cookies__link:hover { color: var(--white); }

.cookies__btns { display: flex; gap: 1.2rem; }

.cookies-accept, .cookies-decline {
  min-width: 11rem;
  height: 4rem;
  padding: 0 1.6rem;
  border: 1px solid var(--gold);
  border-radius: 0.3rem;
  font-size: clamp(14px, 1.4rem, 1.4rem);
  font-weight: 700;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s, opacity 0.3s;
}

.cookies-accept { background: var(--gold); color: var(--navy); }
.cookies-accept:hover { background: var(--white); border-color: var(--white); }
.cookies-decline { background: transparent; color: var(--white); }
.cookies-decline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

@media (max-width: 1024px) {
  main { padding-top: 5.2rem; }
}

@media (max-width: 640px) {
  .section { margin-top: 4rem; }
  .container { padding: 0 1.5rem; }
  .cookies {
    flex-direction: column;
    align-items: stretch;
    gap: 1.6rem;
    bottom: 1rem;
    width: calc(100% - 2rem);
    padding: 1.6rem;
  }
  .cookies__btns { justify-content: stretch; }
  .cookies-accept, .cookies-decline { flex: 1; }
}
/* /stp:base */
/* stp:header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--blue);
  transition: box-shadow 0.3s;
}

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

.header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 13.7rem;
  padding: 0 2rem;
}

.nav {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8.5rem;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  color: var(--navy);
  font-size: clamp(14px, 1.4rem, 1.4rem);
  line-height: 2.2rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-link img {
  width: auto;
  height: 4rem;
  transition: transform 0.3s;
}

.nav-link:hover { color: var(--white); }
.nav-link:hover img { transform: scale(1.12); }

.burger-btn {
  display: none;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 4.4rem;
  height: 4.4rem;
  background: transparent;
  border: 0;
  z-index: 110;
}

.burger-btn span {
  display: block;
  width: 3.3rem;
  height: 0.4rem;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s, background 0.3s;
}

.burger-btn:hover span { background: var(--navy); }
.burger-btn.act span:nth-child(1) { transform: translateY(0.9rem) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translateY(-0.9rem) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav { display: none; }
  .burger-btn { display: flex; }
  .header__inner {
    justify-content: flex-end;
    align-items: flex-start;
    height: 5.2rem;
    padding: 0.8rem 1.5rem 0;
  }
}
/* /stp:header */
/* stp:menu */
#mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-height: 100vh;
  overflow-y: auto;
  z-index: 90;
  padding: 9.8rem 0 4.2rem;
  background: var(--blue);
  border-radius: 0 0 3rem 3rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

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

.menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.nav-link--menu { min-width: 7.6rem; }
/* /stp:menu */
/* stp:hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76.1rem;
  padding: 0 2rem;
  background: url('../img/hero.webp') center / 100% 100% no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 105.9rem;
  text-align: center;
}

.hero__logo {
  width: 89.5rem;
  max-width: 100%;
  height: auto;
}

.hero__title {
  font-size: 3.6rem;
  line-height: 4.32rem;
  font-weight: 700;
  color: var(--gold);
}

.hero__text {
  font-size: 2rem;
  line-height: 2.4rem;
  font-weight: 700;
  color: var(--white);
}

@media (max-width: 640px) {
  .hero {
    min-height: 54.9rem;
    padding: 5rem 1.5rem;
  }
  .hero__logo { width: 34.5rem; }
  .hero__title { font-size: 3rem; line-height: 3.6rem; }
  .hero__text {
    font-size: clamp(14px, 1.6rem, 1.6rem);
    line-height: 2rem;
  }
}
/* /stp:hero */
/* stp:about */
.about .container { max-width: 109.9rem; }

@media (max-width: 640px) {
  .about .container { padding: 0 1.5rem; }
}
/* /stp:about */
/* stp:gameplay */
.gameplay {
  padding: 7.4rem 0;
  background: var(--navy);
  color: var(--white);
}

.gameplay__container { max-width: 146.1rem; }

.gameplay__head {
  max-width: 65.6rem;
  margin: 0 auto;
}

.gameplay__list {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6.4rem;
  margin-top: 6.4rem;
}

.gameplay__item {
  width: 30.7rem;
  text-align: center;
}

.gameplay__name {
  min-height: 4.8rem;
  font-size: 2rem;
  line-height: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .gameplay__list {
    flex-wrap: wrap;
    gap: 5rem 4rem;
  }
}

@media (max-width: 640px) {
  .gameplay__list {
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6.4rem;
  }
}
/* /stp:gameplay */
/* stp:endless */
.endless__container { max-width: 114.2rem; }

.endless__row {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.endless__img {
  flex: 0 0 54rem;
  width: 54rem;
  height: 34.9rem;
  object-fit: cover;
}

.endless__body {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 53.2rem;
}

.endless__title {
  font-size: 3rem;
  line-height: 3.6rem;
  font-weight: 700;
  color: var(--navy);
}

.endless__wave { margin: 1.4rem 0 0; }

.endless__text {
  margin-top: 1.4rem;
  font-family: var(--font-text);
  font-size: clamp(14px, 1.4rem, 1.4rem);
  line-height: 2.6rem;
  color: var(--grey);
}

.endless .btn { margin-top: 5.2rem; }

@media (max-width: 1024px) {
  .endless__img {
    flex: 0 0 45%;
    width: 45%;
    height: auto;
    aspect-ratio: 540 / 349;
  }
}

@media (max-width: 640px) {
  .endless__container { padding: 0; }
  .endless__row {
    flex-direction: column;
    align-items: stretch;
    gap: 3rem;
  }
  .endless__img {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 375 / 242;
  }
  .endless__body {
    max-width: none;
    padding: 0 1.5rem;
    text-align: left;
  }
  .endless__title { height: 3.6rem; }
  .endless__wave { margin-top: 1.4rem; }
  .endless .btn {
    display: flex;
    margin-left: auto;
    margin-right: auto;
  }
}
/* /stp:endless */
/* stp:skill */
.skill {
  padding: 3rem 0;
  background: url('../img/skill.webp') center / 100% 100% no-repeat;
  color: var(--white);
}

.skill__container { max-width: 120.7rem; }
.skill__wave { margin-top: 1.4rem; }

.skill__lead {
  margin-top: 3.6rem;
  font-size: 2rem;
  line-height: 2.4rem;
  text-align: center;
}

.skill__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 55.2rem));
  justify-content: center;
  gap: 2.4rem;
  margin-top: 3.6rem;
}

.skill__card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 16.3rem;
  padding: 2.4rem 2.1rem;
  background: var(--white);
}

.skill__card-in {
  display: flex;
  align-items: center;
}

.skill__icon {
  flex: none;
  width: 9.4rem;
  height: 9.5rem;
  object-fit: contain;
  transform: scaleY(-1);
}

.skill__label {
  width: 22.5rem;
  padding-left: 4.3rem;
  padding-right: 4.3rem;
  font-size: clamp(14px, 1.8rem, 1.8rem);
  line-height: 1.8rem;
  letter-spacing: -0.02rem;
  color: var(--dark);
}

@media (max-width: 1024px) {
  .skill__grid {
    grid-template-columns: minmax(0, 55.2rem);
  }
}

@media (max-width: 640px) {
  .skill { padding: 3rem 0; }
  .skill__container { padding: 0; }
  .skill__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.4rem;
  }
  .skill__card { height: 16.3rem; }
}
/* /stp:skill */
/* stp:faq */
.faq__slider {
  --slide-w: 65.8rem;
  --slide-gap: 4rem;
  --step: calc(var(--slide-w) + var(--slide-gap));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5.2rem;
  position: relative;
  overflow: hidden;
}

.faq__wave { margin: 0; }

.faq__viewport {
  width: 100%;
  overflow: hidden;
  touch-action: pan-y;
}

.faq__track {
  display: flex;
  align-items: stretch;
  gap: var(--slide-gap);
  width: max-content;
  transition: transform 0.5s ease;
}

.faq__track.no-anim { transition: none; }

.faq__slide {
  flex: 0 0 var(--slide-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 33.6rem;
  padding: 2rem;
  background: var(--navy);
  color: var(--white);
  text-align: center;
  user-select: none;
}

.faq__q {
  font-size: clamp(14px, 1.4rem, 1.4rem);
  line-height: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
}

.faq__a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 15rem;
  font-size: clamp(14px, 1.6rem, 1.6rem);
  line-height: 2rem;
}

.faq__dots {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  height: 0.8rem;
}

.faq__dot {
  display: block;
  position: relative;
  padding: 0;
  border: 0;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 0.3rem;
  background: var(--grey);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.faq__dot::before {
  content: "";
  position: absolute;
  inset: -1rem;
}

.faq__dot:hover { background: var(--navy); transform: scale(1.4); }

.faq__dot.is-active {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 0.39rem;
  background: var(--wave);
}

.faq__dot:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 0.3rem;
}

@media (max-width: 1024px) {
  .faq__slider {
    --slide-w: 48rem;
    --slide-gap: 2.4rem;
  }
}

@media (max-width: 640px) {
  .faq__slider {
    --slide-w: 37.5rem;
    --slide-gap: 4rem;
  }
  .faq__slide { gap: 4rem; padding: 0 2rem; }
  .faq__a { min-height: 0; }
}
/* /stp:faq */
/* stp:contact */
.contact__container { max-width: 109.9rem; }

.contact__mail {
  margin-top: 1rem;
  font-size: 3.6rem;
  line-height: 4.4rem;
  font-weight: 700;
  text-align: center;
}

.contact__link {
  color: var(--gold);
  transition: color 0.3s;
}

.contact__link:hover { color: var(--blue); }

@media (max-width: 640px) {
  .contact__mail { font-size: 2.4rem; }
}
/* /stp:contact */
/* stp:footer */
.footer {
  margin-top: 6.2rem;
  padding: 4.1rem 0 2.2rem;
  background: var(--blue);
}

.footer__inner {
  width: 100%;
  max-width: 106.1rem;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.footer__nav {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8.5rem;
}

.footer__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4rem;
  color: var(--white);
}

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 32.8rem;
}

.footer__link {
  display: inline-block;
  font-size: 2.8rem;
  line-height: 4.32rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.3s;
}

.footer__link:hover { color: var(--gold); }

.footer__info {
  font-size: 2rem;
  line-height: 3rem;
  font-weight: 400;
  text-align: right;
}

.footer__info b { font-weight: 900; }

.footer__copy {
  margin-top: 4.7rem;
  font-size: clamp(12px, 1.2rem, 1.2rem);
  line-height: 1.4rem;
  text-align: center;
  color: var(--navy);
}

@media (max-width: 1024px) {
  .footer__nav {
    flex-wrap: wrap;
    gap: 2.4rem 3rem;
  }
  .footer__row { gap: 2rem; }
}

@media (max-width: 640px) {
  .footer {
    margin-top: 4rem;
    padding: 7.2rem 0 6.9rem;
  }
  .footer__inner { padding: 0; }
  .footer__top { gap: 3.2rem; }
  .footer__nav {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8.5rem;
  }
  .footer__row {
    flex-direction: column;
    align-items: center;
    gap: 2.4rem;
  }
  .footer__legal {
    align-items: center;
    gap: 2rem;
    width: 32.8rem;
    text-align: center;
  }
  .footer__info {
    width: 30.7rem;
    text-align: center;
  }
  .footer__copy { margin-top: 4.7rem; }
}
/* /stp:footer */
/* stp:legal */
.legal-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-main { flex: 1 0 auto; }

.legal-page { padding: 6.2rem 0 0; }

.legal-content {
  width: 100%;
  max-width: 128rem;
  margin: 0 auto;
  padding: 0 2rem;
  font-size: 2rem;
  line-height: 3rem;
  color: var(--navy);
}

.legal-content h1 {
  margin-bottom: 1rem;
  font-size: 3.6rem;
  line-height: 4.4rem;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
}

.legal-content h1::after {
  content: '';
  display: block;
  width: 4.8rem;
  height: 0.5rem;
  margin: 1rem auto 0;
  background: url('../img/wave.svg') center / 100% 100% no-repeat;
}

.legal-content h2,
.legal-content h3,
.legal-content h4 {
  margin-bottom: 3rem;
  font-size: 2rem;
  line-height: 3rem;
  font-weight: 400;
}

.legal-content p,
.legal-content ul,
.legal-content ol { margin-bottom: 3rem; }

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

.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { line-height: 3rem; }

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

.legal-content em,
.legal-content i { font-style: italic; }

.legal-content u { text-decoration: underline; }

.legal-content a {
  text-decoration: underline;
  transition: color 0.3s;
}

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

.legal-content > :last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .legal-page { padding: 4rem 0 0; }
  .legal-content { padding: 0 1.5rem; }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on .ta-w {
  display: inline-block;
  white-space: nowrap;
}

.anim-on .ta-l { display: inline-block; }

.anim-on .hero__title .ta-w {
  opacity: 0;
  transform-origin: 50% 50% -2rem;
  transform: perspective(60rem) rotateX(-90deg);
}

.anim-on .hero__title.is-in .ta-w {
  animation: ta-bt-roll 0.62s cubic-bezier(0.3, 1.45, 0.5, 1) calc(var(--i) * 0.18s) both, ta-bt-snap 0.5s ease-out calc(var(--i) * 0.18s + 0.4s) both;
}

.anim-on .hero__title.is-in .ta-key {
  animation: ta-bt-roll 0.62s cubic-bezier(0.3, 1.45, 0.5, 1) calc(var(--i) * 0.18s) both, ta-bt-snap 0.5s ease-out calc(var(--i) * 0.18s + 0.4s) both, ta-bt-spin 5s cubic-bezier(0.6, 0, 0.3, 1) 3s infinite;
}

.anim-on .title .ta-l,
.anim-on .endless__title .ta-l {
  opacity: 0;
  transform-origin: 0 100%;
  transform: rotate(-90deg);
}

.anim-on .title.is-in .ta-l,
.anim-on .endless__title.is-in .ta-l {
  animation: ta-bt-tip 0.5s cubic-bezier(0.25, 1.5, 0.5, 1) calc(var(--i) * 0.035s) both;
}

@keyframes ta-bt-roll {
  0% { opacity: 0; transform: perspective(60rem) rotateX(-90deg); }
  35% { opacity: 1; }
  100% { opacity: 1; transform: perspective(60rem) rotateX(0deg); }
}

@keyframes ta-bt-snap {
  0% { filter: brightness(1) drop-shadow(0 0 0 rgba(250, 182, 55, 0)); }
  30% { filter: brightness(1.35) drop-shadow(0 0 1.2rem rgba(250, 182, 55, 0.9)); }
  100% { filter: brightness(1) drop-shadow(0 0 0 rgba(250, 182, 55, 0)); }
}

@keyframes ta-bt-spin {
  0%, 84% { transform: perspective(60rem) rotateX(0deg); filter: drop-shadow(0 0 0 rgba(45, 163, 198, 0)); }
  92% { filter: drop-shadow(0 0 1rem rgba(45, 163, 198, 0.9)); }
  100% { transform: perspective(60rem) rotateX(360deg); filter: drop-shadow(0 0 0 rgba(45, 163, 198, 0)); }
}

@keyframes ta-bt-tip {
  0% { opacity: 0; transform: rotate(-90deg); }
  30% { opacity: 1; }
  100% { opacity: 1; transform: rotate(0deg); }
}

@media (max-width: 640px) {
  .anim-on .hero__title .ta-w { transform-origin: 50% 50% -1.6rem; }
  .anim-on .hero__title.is-in .ta-w {
    animation-duration: 0.5s, 0.4s;
  }
  .anim-on .hero__title.is-in .ta-key {
    animation-duration: 0.5s, 0.4s, 5s;
  }
  .anim-on .title.is-in .ta-l,
  .anim-on .endless__title.is-in .ta-l {
    animation-duration: 0.4s;
  }
}
/* /stp:title-anim */
