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

:root {
  --txt1: #0D2047;
  --bg1: #E9F0EF;
  --bg2: #FDFDFD;
  --cards: #D5E9E7;
  --extra: #70C0B9;
  --accent2: #FC5515;
  --accent3: #2C419E;
  --stroke-hero: #2948D4;
  --google-green: #30A851;
  --bg: var(--bg2);
  --font-head: 'Baloo 2', 'Baloo', cursive, sans-serif;
  --font-text: 'Afacad', Arial, 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); } }

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

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-text); font-weight: 400; color: var(--txt1); background: var(--bg2); overflow-x: hidden; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.3s, opacity 0.3s; }
button { font: inherit; color: inherit; cursor: pointer; }
main { display: block; padding-top: 0; }
section { position: relative; }

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

.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; background: var(--bg1); -webkit-backdrop-filter: blur(0.4rem); backdrop-filter: blur(0.4rem); transition: box-shadow 0.3s; }
.header.scrolled { box-shadow: 0 0.2rem 1.2rem rgba(13, 32, 71, 0.18); }
.header__in { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 1.2rem 12rem 2.4rem; }
.logo { display: block; width: 3.2rem; height: 3.2rem; transition: opacity 0.3s; }
.logo:hover { opacity: 0.75; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav-link { display: block; padding: 0.8rem 1.2rem; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--txt1); opacity: 0.5; white-space: nowrap; }
.nav-link.is-active { opacity: 1; }
.nav-link:hover { opacity: 1; color: var(--accent2); }

.burger-btn { display: none; position: relative; width: 2.4rem; height: 2.4rem; padding: 0; background: transparent; border: 0; transition: opacity 0.3s; }
.burger-btn:hover { opacity: 0.7; }
.burger-btn span { position: absolute; left: 50%; top: 50%; width: 1.4rem; height: 0.2rem; margin: -0.1rem 0 0 -0.7rem; background: var(--txt1); border-radius: 0.1rem; transition: transform 0.3s, opacity 0.3s; }
.burger-btn span:nth-child(1) { transform: translateY(-0.5rem); }
.burger-btn span:nth-child(3) { transform: translateY(0.5rem); }
.burger-btn.act span:nth-child(1) { transform: translateY(0) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translateY(0) rotate(-45deg); }

#mobile-menu { position: fixed; top: 4rem; left: 0; width: 100%; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 2.4rem; min-height: 51.1rem; padding: 3.2rem 1.6rem; background: var(--bg1); border-bottom: 1px solid var(--accent2); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
#mobile-menu .nav-link { width: 20rem; padding: 0.8rem 0; text-align: center; }

.store-btn { display: flex; align-items: center; justify-content: center; width: 24rem; height: 6.4rem; background: var(--accent3); border-radius: 0.8rem; box-shadow: 0 0.37rem 0.37rem rgba(45, 45, 45, 0.5); transition: filter 0.3s, box-shadow 0.3s, transform 0.3s; }
.store-btn img { width: 16.4rem; height: 4rem; }
.store-btn:hover { filter: brightness(1.15); box-shadow: 0 0.6rem 1.4rem rgba(45, 45, 45, 0.5); }

@keyframes store-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1rem); } }
.store-btn.store-float { animation: store-float 3s ease-in-out infinite; }
.store-btn.store-float:hover { animation-play-state: paused; }

.sec-band { display: flex; align-items: center; justify-content: center; padding: 8rem 12rem 1.6rem; background: var(--extra); }
.sec-name { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; line-height: 1.5; text-transform: uppercase; text-align: center; color: var(--txt1); }
.sec-title { font-family: var(--font-head); font-size: 4rem; font-weight: 700; line-height: 1.5; text-transform: uppercase; text-align: center; color: var(--bg1); -webkit-text-stroke: 0.8rem var(--accent3); paint-order: stroke fill; }
.bg-pattern { position: relative; isolation: isolate; background: var(--bg2); }
.bg-pattern::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url('../img/pattern.webp') top left / 102.4rem 102.4rem repeat; opacity: 0.36; pointer-events: none; }
.sec-body { position: relative; padding: 8rem 12rem; }

@media (max-width: 1024px) {
  .header__in { padding: 1.2rem 4rem 2.4rem; }
  .nav { gap: 0.8rem; }
  .nav-link { padding: 0.8rem 1rem; }
  .sec-band { padding: 8rem 4rem 1.6rem; }
  .sec-body { padding: 8rem 4rem; }
}

@media (max-width: 640px) {
  .header__in { padding: 0.8rem 1.6rem; }
  .logo { width: 2.4rem; height: 2.4rem; }
  .nav { display: none; }
  .burger-btn { display: block; }
  .store-btn { width: 24rem; height: 6.4rem; }
  .sec-band { padding: 8rem 1.6rem 1.6rem; }
  .sec-title { font-size: 2.8rem; }
  .sec-body { padding: 8rem 2.1rem; }
}
/* /stp:base */
/* stp:hero */
.hero { position: relative; height: 90rem; overflow: hidden; background: var(--bg2); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.hero__content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 3.2rem; width: 42.1rem; margin-left: 12rem; padding: 10.7rem 0.8rem 0; }
.hero__logo { width: 40.5rem; height: 21.6rem; object-fit: contain; }
.hero__title { width: 40rem; font-family: var(--font-head); font-weight: 700; line-height: 1.3; color: var(--bg2); -webkit-text-stroke: 0.8rem var(--stroke-hero); paint-order: stroke fill; }
.hero__line1, .hero__line2 { display: block; }
.hero__line1 { font-size: 3.2rem; }
.hero__line2 { font-size: 4.8rem; }
.hero__text { width: 100%; font-size: 2.4rem; font-weight: 700; line-height: 1.3; color: var(--txt1); }

@media (max-width: 1024px) {
  .hero__content { margin-left: 8rem; }
}

@media (max-width: 640px) {
  .hero { height: 81.2rem; }
  .hero__content { align-items: center; gap: 1.6rem; width: 100%; margin-left: 0; padding: 6.4rem 1.6rem 0; }
  .hero__logo { width: 24.3rem; height: 13rem; }
  .hero__title { width: 100%; text-align: center; }
  .hero__line1 { font-size: 2.5rem; }
  .hero__line2 { font-size: 4.2rem; }
  .hero__text { width: 30.7rem; max-width: 100%; margin-bottom: 1.6rem; font-size: clamp(14px, 1.8rem, 1.8rem); text-align: center; }
}
/* /stp:hero */
/* stp:about */
.about__descr { display: flex; flex-direction: column; align-items: center; gap: 5.6rem; width: 80rem; max-width: 100%; margin: 0 auto; }
.about__text { width: 100%; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.3; text-align: center; color: var(--txt1); }

@media (max-width: 1024px) {
  .about__descr { width: 100%; }
}

@media (max-width: 640px) {
  .about__body { padding: 8rem 2.1rem; }
  .about__descr { gap: 5.6rem; }
  .about__text { padding: 0 0.5rem; }
}
/* /stp:about */
/* stp:features */
.features { background: var(--bg2); }
.features__pic { position: absolute; left: 0; right: 0; top: 13.2rem; bottom: 0; overflow: hidden; }
.features__pic picture, .features__pic img { width: 100%; height: 100%; }
.features__pic img { object-fit: cover; }
.features__pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--bg2) 0%, rgba(251, 251, 251, 0) 47%); pointer-events: none; }
.features .sec-band { position: relative; }
.features__body { display: flex; flex-direction: column; align-items: center; gap: 4.3rem; padding-bottom: 51.7rem; }
.features__cards { display: flex; align-items: stretch; justify-content: center; gap: 3.2rem; }
.feat-card { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; width: 21rem; padding: 1.6rem 1.2rem; background: var(--bg1); border-radius: 2.4rem; }
.feat-card__icon { flex-shrink: 0; width: 4.8rem; height: 4.8rem; }
.feat-card__txt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem; width: 100%; padding: 1.2rem 0; }
.feat-card__title { width: 100%; font-size: clamp(14px, 1.8rem, 1.8rem); font-weight: 400; line-height: 1.5; text-align: center; text-transform: uppercase; color: var(--txt1); }
.feat-card__title::after { content: ''; display: block; width: 100%; height: 0; margin-top: 1.6rem; border-bottom: 1px solid var(--extra); opacity: 0.8; }
.feat-card__desc { width: 100%; font-size: clamp(14px, 1.4rem, 1.4rem); line-height: 1.3; text-align: center; opacity: 0.6; color: var(--txt1); }

@media (max-width: 1024px) {
  .features__cards { flex-wrap: wrap; row-gap: 3.2rem; }
}

@media (max-width: 640px) {
  .features__pic { top: auto; height: 26.1rem; }
  .features__body { gap: 5.6rem; padding-bottom: 26.6rem; }
  .features__cards { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 3.2rem; width: 100%; }
  .feat-card { flex-direction: row; align-items: center; gap: 1.6rem; width: 100%; padding: 1.2rem; border-radius: 2.4rem; }
  .feat-card__txt { flex: 1; align-items: stretch; gap: 0.8rem; width: auto; min-width: 0; }
  .br-d { display: none; }
  .feat-card__title { text-align: left; }
  .feat-card__title::after { margin-top: 0.8rem; }
  .feat-card__desc { text-align: left; }
}
/* /stp:features */
/* stp:gallery */
.gallery { background: var(--bg2); }
.gallery__cards { display: flex; justify-content: center; gap: 3.2rem; }
.gal-card { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; width: 27rem; flex-shrink: 0; }
.gal-card__img { width: 27rem; height: 45.5rem; object-fit: cover; border-radius: 1.6rem; }
.gal-card__txt { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 1.6rem; width: 100%; padding: 1.2rem 0; }
.gal-card__title { width: 100%; font-size: clamp(14px, 1.8rem, 1.8rem); font-weight: 400; line-height: 1.5; text-align: center; text-transform: uppercase; color: var(--txt1); }
.gal-card__title::after { content: ''; display: block; width: 100%; height: 0; margin-top: 1.6rem; border-bottom: 1px solid var(--extra); opacity: 0.8; }
.gal-card__desc { width: 100%; font-size: clamp(14px, 1.4rem, 1.4rem); line-height: 1.3; text-align: center; opacity: 0.6; color: var(--txt1); }

@media (max-width: 1024px) {
  .gallery__cards { display: grid; grid-template-columns: repeat(2, 27rem); justify-content: center; gap: 4rem 3.2rem; }
}

@media (max-width: 640px) {
  .gallery__body { padding: 8rem 0; }
  .gallery__cards { display: flex; justify-content: flex-start; gap: 1.6rem; padding: 0 3.2rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 3.2rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .gallery__cards::-webkit-scrollbar { display: none; }
  .gal-card { scroll-snap-align: start; }
  .gallery__cards::after { content: ''; flex: 0 0 1.6rem; }
}
/* /stp:gallery */
/* stp:reviews */
.reviews__body { display: flex; flex-direction: column; align-items: center; gap: 5.6rem; padding-top: 6.8rem; }
.reviews__list { display: flex; align-items: stretch; justify-content: center; gap: 3.2rem; }
.rev-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem; width: 21rem; padding: 1.6rem 1.4rem; background: var(--cards); border-radius: 1.6rem; }
.rev-card__head { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.rev-card__name { font-size: clamp(14px, 1.4rem, 1.4rem); line-height: 1.3; white-space: nowrap; color: var(--txt1); }
.rev-card__stars { display: flex; align-items: center; }
.rev-card__stars img { width: 1.4rem; height: 1.4rem; }
.rev-card__text { width: 100%; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.3; color: var(--txt1); }

@media (max-width: 1024px) {
  .reviews__list { flex-wrap: wrap; row-gap: 3.2rem; }
  .rev-card { width: 26rem; }
}

@media (max-width: 640px) {
  .reviews__body { gap: 5.6rem; padding-top: 6.8rem; }
  .reviews__list { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 3.2rem; width: 100%; }
  .rev-card { width: 100%; }
  .reviews__body .sec-title { max-width: 23rem; }
}
/* /stp:reviews */
/* stp:why-play */
.why { background: var(--bg2); }
.why__body { display: flex; justify-content: center; padding-bottom: 0; }
.why__text { width: 69.9rem; max-width: 100%; font-size: 2.4rem; line-height: 1.3; text-align: center; color: var(--txt1); }
.why__wrap { position: relative; display: flex; justify-content: center; align-items: flex-start; height: 71.9rem; margin-top: 5.6rem; }
.why__pic { position: absolute; inset: 0; }
.why__pic img { width: 100%; height: 100%; object-fit: cover; }
.why__pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--bg2) 0%, rgba(251, 251, 251, 0) 36.2%); pointer-events: none; }
.why__wrap .store-btn { position: relative; z-index: 1; }

@media (max-width: 1024px) {
  .why__text { padding: 0 4rem; }
}

@media (max-width: 640px) {
  .why__body { padding: 8rem 2.1rem 0; }
  .why__text { width: 100%; padding: 0; }
  .why__wrap { flex-direction: column; align-items: center; height: auto; margin-top: 3.2rem; }
  .why__pic { position: relative; inset: auto; order: 2; width: 100%; height: 29.4rem; }
}
/* /stp:why-play */
/* stp:contact */
.contact__body { display: flex; flex-direction: column; align-items: center; gap: 4rem; padding-top: 6.8rem; }
.contact__mail { display: flex; align-items: center; gap: 2.4rem; font-size: 2.4rem; line-height: 1.5; color: var(--txt1); }
.contact__mail img { width: 3.1rem; height: 3.1rem; }
.contact__mail:hover { color: var(--accent2); }

@media (max-width: 640px) {
  .contact__body { padding-top: 8rem; }
  .contact__body .sec-title { max-width: 26rem; }
}
/* /stp:contact */
/* stp:footer */
.footer { padding: 8rem 0 7.9rem; background: var(--extra); border-top: 1px solid var(--accent2); }
.footer__in { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 120rem; margin: 0 auto; }
.footer__copy { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; white-space: nowrap; color: var(--txt1); }
.footer__links { display: flex; align-items: center; justify-content: space-between; width: 31.5rem; padding: 0 1.6rem; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; white-space: nowrap; }
.footer__links a { text-decoration: underline; text-underline-position: from-font; color: var(--txt1); }
.footer__links a:hover { color: var(--accent3); }

@media (max-width: 1024px) {
  .footer__in { flex-wrap: wrap; justify-content: center; gap: 2rem 3rem; padding: 0 4rem; }
}

@media (max-width: 640px) {
  .footer { padding: 8rem 0 7.4rem; }
  .footer__in { flex-direction: column; flex-wrap: nowrap; gap: 3.2rem; padding: 0 1.6rem; }
  .footer__copy { order: 3; white-space: normal; text-align: center; }
  .footer__store { order: 1; }
  .footer__links { order: 2; width: 30.5rem; gap: 6.4rem; padding: 0; }
}
/* /stp:footer */
/* stp:legal */
.legal-body { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg1); }
.legal-main { flex: 1 0 auto; padding-top: 9.9rem; }
.header--legal { background: var(--bg1); }
.header--legal .header__in { justify-content: flex-start; padding: 5.6rem 12rem 1.6rem; }
.back-home { display: flex; align-items: center; gap: 0.8rem; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--txt1); }
.back-home img { width: 2.4rem; height: 2.4rem; }
.back-home:hover { color: var(--accent2); }
.legal-page { padding: 8rem 12rem; background: var(--bg1); }
.legal-content { width: 100%; max-width: 99.5rem; margin: 0 auto; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.3; color: var(--txt1); overflow-wrap: break-word; }
.legal-content h1 { margin-bottom: 5.6rem; font-family: var(--font-head); font-size: 5.6rem; font-weight: 700; line-height: 1; text-align: center; text-transform: uppercase; color: var(--bg1); -webkit-text-stroke: 0.8rem var(--accent3); paint-order: stroke fill; }
.legal-content h2, .legal-content h3, .legal-content h4 { margin-top: 2.4rem; margin-bottom: 1.6rem; font-size: 2rem; font-weight: 400; line-height: 1.3; text-transform: uppercase; color: var(--txt1); }
.legal-content h4 { font-size: clamp(14px, 1.8rem, 1.8rem); }
.legal-content p { margin-top: 1.6rem; }
.legal-content h1 + p, .legal-content h2 + p, .legal-content h3 + p, .legal-content h4 + p { margin-top: 0; }
.legal-content ul, .legal-content ol { margin: 1.6rem 0 0 2.4rem; padding: 0; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { margin-top: 0.8rem; }
.legal-content a { text-decoration: underline; color: var(--accent3); }
.legal-content a:hover { color: var(--accent2); }
.legal-content strong, .legal-content b { font-weight: 700; }
.legal-content em, .legal-content i { font-style: italic; }
.legal-content u { text-decoration: underline; }

@media (max-width: 640px) {
  .legal-main { padding-top: 5.6rem; }
  .header--legal .header__in { align-items: flex-start; height: 5.6rem; padding: 3.2rem 1.6rem 0; }
  .legal-page { padding: 6.4rem 1.6rem 8rem; }
  .legal-content h1 { font-size: 4rem; line-height: 1.5; }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on .hero__title .ta-w, .anim-on .sec-title .ta-w { display: inline-block; white-space: nowrap; }
.anim-on .hero__title .ta-c { display: inline-block; transform-origin: 50% 80%; animation: ta-pop 0.8s cubic-bezier(0.25, 0.8, 0.35, 1) both; animation-delay: calc(0.9s + var(--i) * 0.035s); }
.anim-on .hero__title.is-done .ta-tap { transform-origin: 50% 100%; animation: ta-tap 5s ease-in-out 0.8s infinite; }
.anim-on .sec-name { opacity: 0; }
.anim-on .sec-name.is-in { opacity: 1; animation: ta-tag 0.6s cubic-bezier(0.3, 0.7, 0.4, 1) both; }
.anim-on .sec-title .ta-w { opacity: 0; transform-origin: 50% 60%; }
.anim-on .sec-title.is-in .ta-w { opacity: 1; animation: ta-slap 0.75s cubic-bezier(0.3, 0.7, 0.4, 1) both; animation-delay: calc(0.15s + var(--i) * 0.1s); }

@keyframes ta-pop {
  0% { opacity: 0; transform: translateY(1.2rem) scale(0) rotate(var(--r)); color: var(--accent2); }
  40% { opacity: 1; transform: translateY(-0.6rem) scale(1.25) rotate(calc(var(--r) * -0.4)); color: var(--accent2); }
  60% { transform: translateY(0.3rem) scale(1.14, 0.8) rotate(0deg); }
  80% { transform: translateY(-0.1rem) scale(0.96, 1.06); }
  100% { opacity: 1; transform: none; }
}
@keyframes ta-tap {
  0%, 14%, 100% { transform: none; }
  3% { transform: translateY(0.3rem) scale(1.06, 0.84); color: var(--accent2); }
  6% { transform: translateY(-0.2rem) scale(0.98, 1.04); }
  9% { transform: translateY(0.3rem) scale(1.06, 0.84); color: var(--accent2); }
  12% { transform: translateY(-0.1rem) scale(0.99, 1.02); }
}
@keyframes ta-tag {
  0% { opacity: 0; transform: translateY(1.6rem) scale(0.6, 1.3); }
  55% { opacity: 1; transform: translateY(-0.4rem) scale(1.1, 0.88); }
  80% { transform: translateY(0.1rem) scale(0.97, 1.03); }
  100% { opacity: 1; transform: none; }
}
@keyframes ta-slap {
  0% { opacity: 0; transform: scale(1.7) rotate(var(--r)); filter: blur(0.4rem); color: var(--accent2); }
  45% { opacity: 1; transform: scale(0.9) rotate(calc(var(--r) * -0.3)); filter: blur(0); color: var(--accent2); }
  70% { transform: scale(1.05) rotate(0deg); }
  100% { opacity: 1; transform: none; filter: none; }
}

@media (max-width: 640px) {
  .anim-on .hero__title .ta-c { animation-duration: 0.65s; animation-delay: calc(0.8s + var(--i) * 0.028s); }
  .anim-on .sec-title.is-in .ta-w { animation-name: ta-slap-m; animation-duration: 0.6s; animation-delay: calc(0.1s + var(--i) * 0.08s); }
  @keyframes ta-slap-m {
    0% { opacity: 0; transform: scale(1.35) rotate(var(--r)); filter: blur(0.3rem); color: var(--accent2); }
    45% { opacity: 1; transform: scale(0.94) rotate(calc(var(--r) * -0.3)); filter: blur(0); color: var(--accent2); }
    70% { transform: scale(1.03) rotate(0deg); }
    100% { opacity: 1; transform: none; filter: none; }
  }
}
/* /stp:title-anim */

/* stp:menu-full — mobile menu covers the whole screen below the header */
#mobile-menu { bottom: 0; min-height: 0; justify-content: flex-start; overflow-y: auto; overscroll-behavior: contain; border-bottom: 0; }
/* /stp:menu-full */
