@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;600;900&display=swap');

:root {
  --bg: #ffffff;
  --accent: #4975d3;
  --secondary: #4a960e;
  --surface: #c8f4ff;
  --text: #1d2f62;
  --font: 'Onest', sans-serif;
}

html { font-size: calc(100vw / 1440 * 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); } }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1.8rem; line-height: 1.5; overflow-x: hidden; }
html.fixed, html.fixed body { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

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

.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; background: var(--bg); transition: box-shadow .3s; }
.header.scrolled { box-shadow: 0 0.2rem 1.2rem rgba(29, 47, 98, .15); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 6rem; }
.logo { display: block; width: 4.4rem; height: 4.4rem; border-radius: 1rem; overflow: hidden; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 2.6rem; width: 54.4rem; }
.nav-link { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); white-space: nowrap; transition: color .2s; }
.nav-link:hover { color: var(--accent); }
.burger-btn { display: none; background: transparent; border: 0; }

#mobile-menu { position: fixed; top: 8rem; left: 0; width: 100%; height: calc(100vh - 8rem); z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 3.2rem; padding: 4rem 1.6rem; background: var(--bg); opacity: 0; pointer-events: none; transition: opacity .3s; }
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
#mobile-menu .nav-link { font-size: 2.4rem; font-weight: 600; }

.hero { position: relative; height: 75.9rem; overflow: hidden; background: #e7e7e7; color: #fff; }
.hero-bg { position: absolute; left: 0; top: 0; width: 100%; height: 75.9rem; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.hero .container { position: relative; padding-top: 15rem; }
.hero-title { font-size: 7.2rem; font-weight: 900; line-height: 1.2; white-space: nowrap; }
.hero-subtitle { width: 44.8rem; margin-top: 4.8rem; font-size: 2.8rem; font-weight: 600; line-height: 1.3; }
.hero-text { width: 44.8rem; margin-top: 1.5rem; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; }

.store-btn { display: inline-flex; align-items: center; justify-content: center; gap: 1.2rem; padding: 1rem 1.2rem; background: #000; border: 1px solid #a6a6a6; border-radius: 0.6rem; }
.store-btn img:first-child { width: 3.1rem; height: 3.5rem; }
.store-btn img:last-child { width: 11.3rem; height: 3.7rem; }
.hero .store-btn { margin-top: 2.1rem; animation: store-float 3s ease-in-out infinite; }
.hero .store-btn:hover { animation-play-state: paused; }
@keyframes store-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1rem); } }

.section { padding: 8rem 0; }
.section-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; grid-template-areas: 'head img' 'body img'; column-gap: 3.2rem; }
.section-head { grid-area: head; }
.section-grid .section-body { grid-area: body; }
.section-grid .section-img { grid-area: img; align-self: start; }
.section-head { display: flex; flex-direction: column; gap: 1.6rem; }
.section-title { font-size: 4.8rem; font-weight: 900; line-height: 1.2; color: var(--accent); }
.title-anim .t-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(-.8em);
  transform-origin: 50% 100%;
}
.title-anim.in-view .t-word {
  animation: t-bounce 1.1s linear forwards;
  animation-delay: calc(var(--i) * 140ms);
}
@keyframes t-bounce {
  0% { opacity: 0; transform: translateY(-.8em); color: var(--secondary); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  30% { opacity: 1; }
  35% { transform: translateY(0) scale(1.08, .86); animation-timing-function: cubic-bezier(0, .55, .45, 1); }
  55% { transform: translateY(-.35em) scale(.97, 1.04); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  72% { transform: translateY(0) scale(1.04, .94); color: var(--secondary); animation-timing-function: cubic-bezier(0, .55, .45, 1); }
  84% { transform: translateY(-.1em); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  100% { opacity: 1; transform: none; }
}
.section-subtitle { font-size: 2.8rem; font-weight: 600; line-height: 1.3; color: var(--secondary); }
.section-body { margin-top: 6.4rem; }
.section-body p + p { margin-top: 2.7rem; }
.section-text { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }
.section-img { width: 100%; }
.section-img img { width: 100%; height: auto; border-radius: 1.6rem; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3.2rem; margin-top: 4.4rem; }
.feature { display: flex; flex-direction: column; align-items: center; padding: 2.4rem; background: var(--surface); border-radius: 1.6rem; }
.feature p { width: 100%; font-size: 2rem; font-weight: 600; line-height: 1.5; color: var(--accent); }

#multiplayer .section-head { gap: 0.8rem; }
#courses .section-body { max-width: 112rem; }
.courses-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.2rem; margin-top: 4.4rem; }
.course { display: flex; flex-direction: column; gap: 0.8rem; }
.course img { width: 100%; height: auto; border-radius: 1.6rem; }
.course p { font-size: 2rem; font-weight: 600; line-height: 1.5; color: var(--accent); }

.footer { padding: 4rem 16rem 1.6rem; background: var(--text); color: var(--surface); text-align: center; }
.footer-links { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; }
.footer-links a:hover { text-decoration: underline; }
.footer-copy { margin-top: 4rem; font-size: clamp(12px, 1.2rem, 1.2rem); line-height: 1.5; }

.legal-main { padding-top: 14rem; background: var(--bg); }
.legal-page { padding-bottom: 8rem; }
.legal-content { width: 100%; max-width: 144rem; margin: 0 auto; padding: 0 16rem; color: var(--text); }
.legal-content h1 { font-size: 4.8rem; font-weight: 900; line-height: 1.2; }
.legal-content h2 { font-size: 2.8rem; font-weight: 600; line-height: 1.3; margin-top: 2.7rem; }
.legal-content p { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; margin-top: 2.7rem; }
.legal-content h1 + p, .legal-content h2 + p { margin-top: 1.6rem; }
.legal-content ul { margin-top: 1.6rem; padding-left: 2.4rem; list-style: disc; }
.legal-content li { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; }
.legal-content a { color: var(--accent); text-decoration: underline; transition: color .3s; }
.legal-content a:hover { color: var(--secondary); }

@media (max-width: 1024px) {
  .container, .legal-content { padding-left: 4rem; padding-right: 4rem; }
  .footer { padding-left: 4rem; padding-right: 4rem; }
  .nav { width: 50rem; gap: 2rem; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .courses-list { gap: 2rem; }
  .section-title { font-size: 4.2rem; }
  .hero-title { font-size: 6.4rem; }
}

@media (max-width: 640px) {
  .container, .legal-content { padding-left: 1.6rem; padding-right: 1.6rem; }
  .header-inner { height: 8rem; }
  .nav { display: none; }
  .burger-btn { display: flex; align-items: center; justify-content: center; width: 6.4rem; height: 6.4rem; margin-right: -1rem; padding: 0; }
  .burger-btn span { display: block; position: relative; width: 2.4rem; height: 1.6rem; }
  .burger-btn span::before, .burger-btn span::after, .burger-btn i { content: ''; position: absolute; left: 0; width: 100%; height: 2px; background: var(--text); transition: top .3s, bottom .3s, transform .3s, opacity .2s; }
  .burger-btn span::before { top: 0; }
  .burger-btn span::after { bottom: 0; }
  .burger-btn i { top: calc(50% - 1px); }
  .burger-btn.act span::before { top: calc(50% - 1px); transform: rotate(45deg); }
  .burger-btn.act span::after { bottom: calc(50% - 1px); transform: rotate(-45deg); }
  .burger-btn.act i { opacity: 0; }
  #mobile-menu { top: 8rem; height: calc(100vh - 8rem); gap: 2.4rem; padding: 3.2rem 1.6rem; }
  #mobile-menu .nav-link { font-size: 2.4rem; }

  .hero { height: 81.2rem; }
  .hero-bg { left: 0; top: 0; width: 100%; height: 81.2rem; }
  .hero .container { display: flex; flex-direction: column; align-items: center; height: 100%; padding-top: 10rem; padding-bottom: 5.6rem; text-align: center; }
  .hero-title { font-size: 4.8rem; white-space: normal; }
  .hero-subtitle { width: 100%; margin-top: 1.6rem; font-size: 2.4rem; }
  .hero-text { width: 100%; margin-top: 0.8rem; font-size: clamp(14px, 1.6rem, 1.6rem); }
  .hero .store-btn { margin-top: auto; }

  .section { padding: 6.4rem 0; }
  .section-grid { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: 'head' 'body' 'img'; column-gap: 0; }
  .section-head { gap: 1.6rem; }
  #multiplayer .section-head { gap: 0.8rem; }
  .section-title { font-size: 3.6rem; }
  .section-subtitle { font-size: 2.4rem; }
  .section-body { margin-top: 5.2rem; }
  .section-body p + p { margin-top: 2.4rem; }
  .section-text { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .section-img { margin-top: 3.2rem; }
  .section-img img { border-radius: 1.6rem; }
  .features { grid-template-columns: 1fr; gap: 1.6rem; margin-top: 3.2rem; }
  .feature p { font-size: clamp(14px, 1.8rem, 1.8rem); text-align: center; }
  #courses .section-body { max-width: none; }
  .courses-list { grid-template-columns: 1fr; gap: 3.2rem; margin-top: 3.2rem; }
  .course p { font-size: clamp(14px, 1.8rem, 1.8rem); }

  .footer { padding: 4rem 1.6rem 1.6rem; }
  .footer-links { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .footer-copy { font-size: clamp(11px, 1.1rem, 1.1rem); }

  .legal-main { padding-top: 12rem; }
  .legal-content h1 { font-size: 3.6rem; }
  .legal-content h2 { font-size: 2.4rem; }
  .legal-content p, .legal-content li { font-size: clamp(14px, 1.6rem, 1.6rem); }
}

.br-m { display: none; }
@media (max-width: 640px) { .br-m { display: inline; } }
