/* stp:base */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Roboto:wght@400;500&display=swap');

:root {
  --bg: #ffffff;
  --blue: #225cbd;
  --navy: #152237;
  --dark: #0f2024;
  --accent: #045296;
  --tag-blue: #004d9f;
  --tag-light: #2684c2;
  --white: #ffffff;
  --gray: #e2e2e2;
  --light: #f0f0f0;
  --yellow: #ffc300;
  --card-blue: #002d7a;
  --card-green: #02893d;
  --card-orange: #e89d1d;
  --card-red: #f22c2e;
  --shadow-img: 0.8rem 0.8rem 1.2rem rgba(89, 78, 78, 0.08);
  --font-main: 'Inter', sans-serif;
  --font-btn: 'Roboto', sans-serif;
}

html { font-size: calc(100vw / 1440 * 10); overflow-x: hidden; overflow-y: scroll; font-family: var(--font-main); font-weight: 400; line-height: 1.58; color: var(--dark); }
@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; }
body { margin: 0; background: var(--bg); }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.3s ease-in-out, opacity 0.3s ease-in-out; }
button { font: inherit; color: inherit; cursor: pointer; }
section { margin: 0; }

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

main { position: relative; isolation: isolate; }
main::before { content: ''; position: absolute; left: 0; right: 0; top: 81.2rem; bottom: 0; z-index: -1; background: url(../img/bg.webp) center / cover no-repeat; }

.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; background: var(--blue); transition: box-shadow 0.3s ease-in-out; }
.header.scrolled { box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.15); }

.burger-btn { display: none; position: relative; width: 4rem; height: 4rem; padding: 0; background: transparent; border: 0; flex-direction: column; align-items: center; justify-content: center; gap: 0.7rem; z-index: 101; }
.burger-btn span { display: block; width: 3.2rem; height: 0.3rem; background: var(--white); border-radius: 0.2rem; transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; }
.burger-btn.act span:nth-child(1) { transform: translateY(1rem) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translateY(-1rem) rotate(-45deg); }

#mobile-menu { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3.2rem; padding: 5.2rem 1.6rem 0; background: var(--blue); opacity: 0; pointer-events: none; transition: opacity 0.3s ease-in-out; }
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
#mobile-menu .nav-link { padding: 0.8rem 0; font-size: clamp(14px, 1.6rem, 1.6rem); font-weight: 500; line-height: 1.44; color: var(--white); text-align: center; }

.nav-link:hover { color: var(--yellow); }

.tag { display: inline-flex; align-items: center; justify-content: center; padding: 0.8rem; border-radius: 0.8rem; box-shadow: inset 0 0 0 1px var(--tag-light); font-size: clamp(13px, 1.3rem, 1.3rem); line-height: 1.28; letter-spacing: -0.02em; text-transform: uppercase; color: var(--tag-blue); }
.tag--dark { box-shadow: inset 0 0 0 1px var(--tag-blue); color: var(--dark); }
.tag--light { box-shadow: inset 0 0 0 1px var(--light); color: var(--gray); font-weight: 500; }

.sec-title { font-size: 4.2rem; font-weight: 600; line-height: 1.32; color: var(--dark); }
.sec-title span { color: var(--accent); }

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

@media (max-width: 640px) {
  main::before { background-image: url(../img/bg-m.webp); }
  .burger-btn { display: flex; }
  .sec-title { font-size: 2.4rem; }
}
/* /stp:base */
/* stp:header */
.header-in { display: flex; align-items: center; justify-content: space-between; height: 6.2rem; padding: 0 8rem; }
.logo { display: block; flex-shrink: 0; }
.logo img { width: 4rem; height: 4rem; border-radius: 0.4rem; }
.logo:hover { opacity: 0.8; }
.nav { display: flex; align-items: center; gap: 3.2rem; }
.nav .nav-link { padding: 0.8rem 0; border-radius: 5rem; font-size: clamp(14px, 1.6rem, 1.6rem); font-weight: 500; line-height: 1.44; color: var(--white); text-align: center; white-space: nowrap; }

@media (max-width: 1024px) {
  .header-in { padding: 0 3.2rem; }
  .nav { gap: 2rem; }
}

@media (max-width: 640px) {
  .header-in { height: 5.2rem; padding: 0 1.6rem; }
  .nav { display: none; }
}
/* /stp:header */
/* stp:footer */
.footer { display: flex; flex-direction: column; align-items: center; gap: 6rem; padding: 6rem 0; background: var(--blue); color: var(--white); }
.footer-links { display: flex; align-items: center; justify-content: flex-end; gap: 6rem; width: 100%; padding: 0 8.8rem; }
.footer-link { font-size: 2rem; font-weight: 600; line-height: 1.44; text-align: center; white-space: nowrap; color: var(--white); }
.footer-link:hover { color: var(--yellow); }
.footer-copy { width: 100%; padding: 0 1.6rem; font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.58; text-align: center; color: var(--gray); }

@media (max-width: 1024px) {
  .footer-links { padding: 0 3.2rem; gap: 4rem; }
}

@media (max-width: 640px) {
  .footer { gap: 2.4rem; padding: 6rem 1.6rem; }
  .footer-links { flex-direction: column; justify-content: center; gap: 0.8rem; padding: 0; }
  .footer-link { font-size: clamp(14px, 1.8rem, 1.8rem); }
  .footer-copy { padding: 0; }
}
/* /stp:footer */
/* stp:hero */
.hero { display: flex; align-items: center; height: 81.2rem; padding: 6.2rem 6.4rem 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)), url(../img/hero.webp) center / cover no-repeat; }
.hero-box { display: flex; flex-direction: column; align-items: center; gap: 3.2rem; width: 72.6rem; max-width: 100%; }
.hero-logo { width: 72.6rem; max-width: 100%; height: auto; aspect-ratio: 726 / 298; }
.hero-text { display: flex; flex-direction: column; align-items: center; gap: 1rem; width: 40.2rem; text-align: center; }
.hero-heading { font-size: 2.6rem; font-weight: 600; line-height: 1.36; text-transform: uppercase; white-space: nowrap; color: var(--white); }
.hero-sub { width: 100%; font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.58; color: var(--gray); }
.cta-btn { display: flex; align-items: center; justify-content: center; gap: 1rem; width: 24rem; padding: 1.2rem 2rem; border: 0.4rem solid #ffbd00; border-radius: 2.4rem; background: linear-gradient(180deg, #94de16, #18a402); font-family: var(--font-btn); color: #0a1130; transition: filter 0.3s ease-in-out, box-shadow 0.3s ease-in-out; }
.store-btn { animation: store-float 3s ease-in-out infinite; }
.cta-btn img { flex-shrink: 0; width: 3rem; height: 3.4rem; }
.cta-text { display: flex; flex-direction: column; gap: 0.4rem; width: 11.8rem; line-height: normal; }
.cta-top { font-size: clamp(14px, 1.4rem, 1.4rem); font-weight: 400; }
.cta-bottom { font-size: clamp(14px, 1.8rem, 1.8rem); font-weight: 500; }
.cta-btn:hover { filter: brightness(1.1); box-shadow: 0 0.4rem 1.6rem rgba(24, 164, 2, 0.5); }
.store-btn:hover { animation-play-state: paused; }

@media (max-width: 1024px) {
  .hero { padding: 6.2rem 3.2rem 0; }
}

@media (max-width: 640px) {
  .hero { flex-direction: column; align-items: center; justify-content: flex-end; padding: 5.2rem 1.6rem 4rem; background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0)), url(../img/hero-m.webp) center / cover no-repeat; }
  .hero-box { width: 100%; }
  .hero-logo { width: 100%; }
  .hero-text { width: 100%; }
  .hero-heading { font-size: 2rem; white-space: normal; }
  .cta-btn { width: 100%; }
}
/* /stp:hero */
/* stp:about */
.about { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4.8rem; padding: 8rem 17.6rem 6.4rem; }
.about-top { display: flex; align-items: center; gap: 4.8rem; width: 100%; }
.about-title { display: flex; flex-direction: column; align-items: flex-start; gap: 0.8rem; flex: 0 0 52.8rem; }
.about-text { flex: 0 0 51.2rem; font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.58; color: var(--dark); }
.about-img { width: 100%; height: auto; aspect-ratio: 1088 / 612; border-radius: 3.2rem; box-shadow: var(--shadow-img); }

@media (max-width: 1024px) {
  .about { gap: 4rem; padding: 6.4rem 3.2rem 5rem; }
  .about-top { gap: 3.2rem; }
  .about-title { flex: 1 1 0; min-width: 0; }
  .about-text { flex: 1 1 0; min-width: 0; }
  .about .sec-title { font-size: 3.6rem; }
}

@media (max-width: 640px) {
  .about { gap: 2.4rem; padding: 4.8rem 1.6rem 4rem; }
  .about-top { flex-direction: column; align-items: stretch; gap: 2.4rem; }
  .about-title { flex: none; }
  .about-text { flex: none; }
  .about .sec-title { font-size: 2.4rem; }
  .about-img { border-radius: 1.6rem; }
}
/* /stp:about */
/* stp:how-to-play */
.how { padding: 6.4rem; }
.how-box { display: flex; flex-direction: column; gap: 4.8rem; width: 100%; max-width: 131.2rem; margin: 0 auto; padding: 5.6rem 7.6rem; overflow: hidden; border-radius: 3.2rem; background: var(--navy); }
.how-title { display: flex; flex-direction: column; align-items: flex-start; gap: 0.8rem; }
.how-heading { max-width: 56.4rem; color: var(--white); }
.how-row { display: flex; gap: 3.2rem; }
.step { position: relative; display: flex; flex: 0 0 26.6rem; flex-direction: column; justify-content: space-between; gap: 4rem; min-height: 35.2rem; padding: 3.2rem 1.6rem; overflow: hidden; border-radius: 1.6rem; color: var(--white); }
.step--blue { background: var(--card-blue); }
.step--green { background: var(--card-green); }
.step--orange { background: var(--card-orange); }
.step--red { background: var(--card-red); }
.step-deco { position: absolute; height: auto; opacity: 0.1; pointer-events: none; }
.step-deco--cloud { left: 0; top: 0; width: 11.8rem; }
.step-deco--bee { left: 0; top: 16.7rem; width: 13.3rem; }
.step-deco--rocket { left: -7.8rem; top: -3.1rem; width: 19.7rem; transform: rotate(150deg); }
.step-deco--ship { left: 0; top: 18.3rem; width: 16.1rem; }
.step-num { position: relative; font-size: 12.4rem; font-weight: 800; line-height: 0.8; letter-spacing: -0.02em; text-align: right; color: var(--light); }
.step-body { position: relative; display: flex; flex-direction: column; gap: 0.8rem; }
.step-title { font-size: 2rem; font-weight: 600; line-height: 1.44; }
.step-text { font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.58; }

@media (max-width: 1024px) {
  .how { padding: 6.4rem 3.2rem; }
  .how-box { gap: 4rem; padding: 4.8rem 3.2rem; }
  .how-row { gap: 1.6rem; }
  .step { flex: 1 1 0; min-width: 0; }
  .step-num { font-size: 8rem; }
  .how .sec-title { font-size: 3.6rem; }
}

@media (max-width: 640px) {
  .how { padding: 4rem 1.6rem; }
  .how-box { gap: 2.4rem; padding: 4rem 2.4rem; }
  .how .sec-title { font-size: 2.4rem; }
  .how-row { gap: 1.6rem; margin: 0 -2.4rem; padding: 0 2.4rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .how-row::-webkit-scrollbar { display: none; }
  .step { flex: 0 0 26.6rem; min-height: 28.8rem; }
  .step-num { font-size: 8.2rem; }
  .step-title { font-size: clamp(14px, 1.8rem, 1.8rem); }
}
/* /stp:how-to-play */
/* stp:advantages */
.adv { display: flex; flex-direction: column; gap: 4.8rem; padding: 6.4rem; }
.adv-title { display: flex; flex-direction: column; align-items: flex-start; gap: 0.8rem; }
.adv-heading { max-width: 52.8rem; }
.adv-box { display: flex; align-items: flex-start; gap: 4.8rem; }
.adv-phones { position: relative; flex: 0 0 52.8rem; height: 46.7rem; }
.adv-phone { position: absolute; width: 25.3rem; height: 40rem; border-radius: 1.6rem; object-fit: cover; box-shadow: 0.7rem 0.7rem 1rem rgba(89, 78, 78, 0.08); }
.adv-phone--1 { left: 0; top: 0; }
.adv-phone--2 { left: 27.5rem; top: 6.7rem; }
.adv-cols { display: flex; gap: 2.4rem; flex: 1 1 0; min-width: 0; }
.adv-col { position: relative; display: flex; flex: 1 1 0; flex-direction: column; gap: 2.4rem; min-width: 0; }
.adv-col--b { min-height: 46.8rem; }
.adv-feat { display: flex; gap: 0.8rem; }
.adv-col--b .adv-feat { gap: 1.6rem; }
.adv-icon { display: flex; flex: 0 0 5.2rem; align-items: center; justify-content: center; height: 4.3rem; }
.adv-icon img { width: auto; height: 4.3rem; }
.adv-feat-text { display: flex; flex-direction: column; justify-content: center; gap: 0.4rem; min-width: 0; }
.adv-col--b .adv-feat-text { margin-right: -0.8rem; }
.adv-feat-title { font-size: 2rem; font-weight: 600; line-height: 1.44; color: var(--dark); }
.adv-feat-desc { font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.58; color: var(--dark); }
.adv-balloon { position: absolute; left: 14.2rem; top: 26.5rem; width: 13.9rem; height: 20.8rem; transform: rotate(15deg); pointer-events: none; }

@media (max-width: 1024px) {
  .adv { gap: 4rem; padding: 6.4rem 3.2rem; }
  .adv-box { flex-direction: column; gap: 4rem; }
  .adv-phones { flex: none; width: 52.8rem; max-width: 100%; }
  .adv-cols { width: 100%; flex: none; }
  .adv-col--b .adv-feat-text { margin-right: 0; }
  .adv .sec-title { font-size: 3.6rem; }
}

@media (max-width: 640px) {
  .adv { gap: 2.4rem; padding: 4rem 1.6rem; }
  .adv .sec-title { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.44; }
  .adv-box { gap: 2.4rem; }
  .adv-phones { order: 2; flex: none; width: 34.3rem; height: 30.3rem; }
  .adv-phone { width: 16.4rem; height: 26rem; border-radius: 1rem; }
  .adv-phone--2 { left: 17.9rem; top: 4.4rem; }
  .adv-cols { flex-direction: column; gap: 1.6rem; }
  .adv-col { flex: none; gap: 1.6rem; }
  .adv-col--b { min-height: 0; }
  .adv-feat-title { font-size: clamp(14px, 1.8rem, 1.8rem); }
  .adv-balloon { display: none; }
}
/* /stp:advantages */
/* stp:gallery */
.gal { display: flex; flex-direction: column; gap: 4.8rem; padding: 6.4rem; }
.gal-title { display: flex; flex-direction: column; align-items: flex-start; gap: 0.8rem; }
.gal-heading { max-width: 52.8rem; }
.gal-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3.2rem; }
.gal-img { width: 100%; height: auto; aspect-ratio: 304 / 540; border-radius: 1.6rem; object-fit: cover; box-shadow: var(--shadow-img); }
.gal-img--extra { display: none; }

@media (max-width: 1024px) {
  .gal { gap: 4rem; padding: 6.4rem 3.2rem; }
  .gal-row { gap: 1.6rem; }
  .gal .sec-title { font-size: 3.6rem; }
}

@media (max-width: 640px) {
  .gal { gap: 2.4rem; padding: 4rem 1.6rem; }
  .gal .sec-title { font-size: 2.4rem; }
  .gal-row { display: flex; gap: 1.6rem; overflow-x: auto; border-radius: 1.6rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .gal-row::-webkit-scrollbar { display: none; }
  .gal-img { flex: 0 0 26.2rem; width: 26.2rem; height: 46.6rem; border-radius: 1.2rem; }
  .gal-img--extra { display: block; }
}
/* /stp:gallery */
/* stp:contact */
.contact { position: relative; display: flex; align-items: center; justify-content: center; padding: 6.4rem 0; overflow: hidden; }
.contact-wave { position: absolute; left: 0; bottom: 0; z-index: -1; width: 100%; height: 27rem; max-width: none; pointer-events: none; }
.contact-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3.2rem; width: 86.2rem; max-width: 100%; padding: 5.6rem 17.6rem; border-radius: 3.2rem; background: var(--navy); }
.contact-plane { width: 7.2rem; height: 7.2rem; }
.contact-title { max-width: 56.4rem; font-size: 4.2rem; font-weight: 600; line-height: 1.32; text-align: center; color: var(--white); }
.contact-mail { font-size: 3.2rem; font-weight: 700; line-height: 1.32; text-transform: uppercase; color: var(--yellow); }
.contact-mail:hover { color: var(--white); }

@media (max-width: 1024px) {
  .contact { padding: 6.4rem 3.2rem; }
  .contact-box { padding: 5.6rem 4rem; }
  .contact-title { font-size: 3.6rem; }
}

@media (max-width: 640px) {
  .contact { padding: 4rem 1.6rem; }
  .contact-wave { left: -59rem; width: 144rem; height: 27rem; }
  .contact-box { gap: 1.6rem; width: 100%; padding: 5.6rem 1.6rem; }
  .contact-title { font-size: 2.4rem; }
  .contact-mail { font-size: 2.2rem; }
}
/* /stp:contact */
/* stp:legal */
.legal-body { min-height: 100vh; display: flex; flex-direction: column; }
.legal-main { flex: 1 0 auto; padding-top: 6.2rem; background: var(--light); }
.legal-main::before { content: none; }
.legal-page { padding: 8rem 21.2rem; }
.legal-content { width: 100%; max-width: 101.6rem; margin: 0 auto; font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.58; color: var(--dark); }
.legal-content > * + * { margin-top: 4rem; }
.legal-content h1 { font-size: 4.2rem; font-weight: 600; line-height: 1.32; text-align: center; }
.legal-content h2, .legal-content h3, .legal-content h4, .legal-content p:has(> strong:only-child) { font-size: 2rem; font-weight: 600; line-height: 1.44; }
.legal-content ul, .legal-content ol { padding-left: 2.4rem; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li + li { margin-top: 0.4rem; }
.legal-content strong { font-weight: 600; }
.legal-content a { color: var(--tag-blue); text-decoration: underline; word-break: break-word; transition: color 0.3s ease-in-out; }
.legal-content a:hover { color: var(--tag-light); }

@media (max-width: 1024px) {
  .legal-page { padding: 6.4rem 3.2rem; }
}

@media (max-width: 640px) {
  .legal-main { padding-top: 5.2rem; }
  .legal-page { padding: 5.6rem 1.6rem; }
  .legal-content > * + * { margin-top: 4rem; }
  .legal-content h1 { font-size: 2.4rem; }
  .legal-content h2, .legal-content h3, .legal-content h4, .legal-content p:has(> strong:only-child) { font-size: clamp(14px, 1.8rem, 1.8rem); }
}
/* /stp:legal */
/* stp:title-anim */
.ta-w { display: inline-block; white-space: nowrap; }
.ta-ch { display: inline-block; transform-origin: 100% 100%; }
.ta-sec .ta-w { color: inherit; transform-origin: 50% 100%; }
.ta-hop { transform-origin: 50% 100%; animation: ta-hop 5s ease-in-out 2.8s infinite; }

.anim-on .ta-hero .ta-ch { opacity: 0; animation: ta-tip 0.8s ease-out calc(0.9s + var(--i) * 0.04s) both; }
.anim-on .ta-sec .ta-w { opacity: 0; }
.anim-on .ta-sec.is-in .ta-w { animation: ta-stand 0.85s ease-out calc(var(--i) * 0.08s) both; }

@keyframes ta-tip {
  0% { opacity: 0; transform: rotate(-90deg); color: var(--c); }
  40% { opacity: 1; }
  60% { transform: rotate(9deg); color: var(--c); }
  80% { transform: rotate(-3deg); }
  100% { opacity: 1; transform: rotate(0); }
}

@keyframes ta-stand {
  0% { opacity: 0; transform: perspective(40rem) rotateX(80deg); color: var(--c); }
  35% { opacity: 1; }
  55% { transform: perspective(40rem) rotateX(-14deg); color: var(--c); }
  78% { transform: perspective(40rem) rotateX(5deg); }
  100% { opacity: 1; transform: perspective(40rem) rotateX(0); }
}

@keyframes ta-hop {
  0%, 84%, 100% { transform: translateY(0) rotate(0); }
  88% { transform: translateY(-0.3em) rotate(-6deg); }
  92% { transform: translateY(0) rotate(3deg); }
  96% { transform: translateY(0) rotate(-1deg); }
}

@media (max-width: 640px) {
  .anim-on .ta-hero .ta-ch { animation-duration: 0.65s; animation-delay: calc(0.8s + var(--i) * 0.03s); }
  .anim-on .ta-sec.is-in .ta-w { animation-duration: 0.7s; animation-delay: calc(var(--i) * 0.06s); }
}
/* /stp:title-anim */
