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

:root {
  --text: #173B43;
  --red: #FF6F61;
  --yellow: #FFC857;
  --white: #F5EDED;
  --footer-text: #2E433E;
  --bg: #C7EBE1;
  --bg-bottom: #5BBDEB;
  --font-head: 'Fredoka', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;
}

html { font-size: calc(100vw / 1440 * 10); overflow-x: hidden; overflow-y: scroll; font-family: var(--font-body); font-weight: 400; line-height: 1.5; color: var(--text); }
@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; margin: 0; padding: 0; }
body { min-height: 100vh; font-size: clamp(14px, 1.6rem, 1.6rem); background: linear-gradient(180deg, var(--bg) 0%, var(--bg-bottom) 100%); }
img { display: block; max-width: 100%; }
picture { display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-weight: inherit; font-size: inherit; }

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

#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 8rem; }

.section-title { font-family: var(--font-head); font-weight: 700; font-size: 3.6rem; line-height: 1.2; color: var(--red); text-align: center; text-transform: uppercase; }

.nav-link { transition: color 0.3s ease-in-out; }
.nav-link:hover { color: var(--red); }

.store-btn { display: block; transition: opacity 0.3s ease-in-out, filter 0.3s ease-in-out; }
.store-btn:hover { opacity: 0.85; filter: drop-shadow(0 0.4rem 1rem rgba(23, 59, 67, 0.35)); }

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

.burger-btn { display: none; position: relative; width: 4.8rem; height: 4.8rem; background: transparent; border: 0; z-index: 101; }
.burger-btn span { position: absolute; left: 0.6rem; width: 3.6rem; height: 0.3rem; background: var(--text); transition: top 0.3s ease-in-out, left 0.3s ease-in-out, width 0.3s ease-in-out, height 0.3s ease-in-out, transform 0.3s ease-in-out, opacity 0.3s ease-in-out, background-color 0.3s ease-in-out; }
.burger-btn span:nth-child(1) { top: 1.2rem; }
.burger-btn span:nth-child(2) { top: 2.25rem; }
.burger-btn span:nth-child(3) { top: 3.3rem; }
.burger-btn.act span { left: 0.4rem; width: 4rem; height: 0.4rem; background: var(--red); }
.burger-btn.act span:nth-child(1) { top: 2.2rem; transform: rotate(45deg); }
.burger-btn.act span:nth-child(2) { top: 2.2rem; opacity: 0; }
.burger-btn.act span:nth-child(3) { top: 2.2rem; transform: rotate(-45deg); }

#mobile-menu { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-bottom) 100%); opacity: 0; pointer-events: none; transition: opacity 0.3s ease-in-out; }
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
#mobile-menu .nav-link { text-transform: uppercase; font-size: clamp(14px, 1.6rem, 1.6rem); }

.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; padding: 2.8rem 8rem 1.6rem; transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out, padding 0.3s ease-in-out; }
.header.scrolled { padding-top: 2.2rem; padding-bottom: 2.2rem; background: rgba(199, 235, 225, 0.96); box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.15); }
html.menu-lock .header.scrolled { background: transparent; box-shadow: none; }

main { padding-top: 0; }

@media (max-width: 1024px) {
  .container { padding: 0 4rem; }
  .header { padding-left: 4rem; padding-right: 4rem; }
}

@media (max-width: 640px) {
  .container { padding: 0 2rem; }
  .burger-btn { display: block; }
  .header { display: flex; justify-content: flex-end; padding: 4.2rem 4.2rem 0 2rem; }
  .header.scrolled { padding-top: 1.2rem; padding-bottom: 1.2rem; }
  .section-title { font-size: 3.6rem; }
  #mobile-menu { padding-top: 22rem; gap: 3.6rem; }
}
/* /stp:base */
/* stp:header */
.header-nav { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 128rem; margin: 0 auto; text-transform: uppercase; font-size: clamp(14px, 1.6rem, 1.6rem); }

@media (max-width: 640px) {
  .header-nav { display: none; }
}
/* /stp:header */
/* stp:hero */
.hero { position: relative; overflow: hidden; padding: 16.2rem 0 21.9rem; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-inner { position: relative; z-index: 1; }
.hero-content { display: flex; flex-direction: column; align-items: center; gap: 6.4rem; width: 63rem; }
.hero-title { width: 100%; aspect-ratio: 1998 / 975; }
.hero-title img { width: 100%; height: 100%; }
.hero .store-btn { width: 24.3rem; height: 7rem; animation: store-float 3s ease-in-out infinite; }
.hero .store-btn:hover { animation-play-state: paused; }
.hero-btn img { width: 100%; height: 100%; }

@media (max-width: 1024px) {
  .hero-content { width: 52rem; gap: 5rem; }
  .hero .store-btn { width: 20rem; height: 5.8rem; }
}

@media (max-width: 640px) {
  .hero { min-height: 80rem; padding: 15.8rem 0 0; }
  .hero-bg img { object-position: center; }
  .hero-content { width: 100%; gap: 1.6rem; }
}
/* /stp:hero */
/* stp:about */
.about { margin-top: 15rem; }
.about-row { display: flex; align-items: center; gap: 2rem; margin-top: 2.8rem; }
.about-img { flex: 0 0 30.5rem; width: 30.5rem; height: 18.6rem; border-radius: 2rem; object-fit: cover; }
.about-text { flex: 0 0 63rem; width: 63rem; text-align: center; }

@media (max-width: 1024px) {
  .about-row { flex-wrap: wrap; justify-content: center; }
  .about-text { order: -1; flex: 1 0 100%; width: 100%; }
  .about-img { flex: 0 0 calc(50% - 1rem); width: calc(50% - 1rem); height: auto; aspect-ratio: 305 / 186; }
}

@media (max-width: 640px) {
  .about { margin-top: 8rem; }
  .about-row { flex-direction: column; flex-wrap: nowrap; gap: 1.6rem; margin-top: 2.4rem; }
  .about-text { order: 0; flex: none; width: 33.5rem; font-size: 1.7rem; line-height: 1.6; }
  .about-img { flex: none; width: 100%; aspect-ratio: 335 / 204; }
  .about-img-left { order: -1; }
  .about-img-right { display: none; }
}
/* /stp:about */
/* stp:features */
.features { margin-top: 15rem; padding: 19.6rem 0; background: url(../img/features-bg.webp) center / cover no-repeat; }
.features-content { display: flex; align-items: flex-start; gap: 6.6rem; width: 100%; max-width: 106.4rem; margin: 2.8rem auto 0; }
.features-list { display: flex; flex-direction: column; gap: 2.2rem; flex: 0 0 63rem; width: 63rem; }
.features-item { display: flex; flex-direction: column; gap: 1.2rem; }
.features-title { font-family: var(--font-head); font-weight: 600; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.2; color: var(--red); }
.features-img { flex: 0 0 36.8rem; width: 36.8rem; height: 40.7rem; }

@media (max-width: 1024px) {
  .features-list { flex: 1 1 0; min-width: 0; width: auto; }
}

@media (max-width: 640px) {
  .features { margin-top: 8rem; padding: 0; background: none; }
  .features-content { flex-direction: column; gap: 1.6rem; margin-top: 2.4rem; }
  .features-img { order: -1; flex: none; width: 100%; height: auto; aspect-ratio: 334 / 369; }
  .features-list { flex: none; width: 100%; }
}
/* /stp:features */
/* stp:how-it-works */
.how { margin-top: 15rem; }
.how-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.8rem; }
.how-card { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; padding: 1rem; border: 0.6rem solid var(--yellow); border-radius: 3.6rem; }
.how-img { width: 100%; aspect-ratio: 381 / 218; border-radius: 2rem; object-fit: cover; }
.how-text { display: flex; flex-direction: column; gap: 0.8rem; width: 100%; padding: 0 0.3rem; text-align: center; }
.how-title { font-family: var(--font-head); font-weight: 600; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.2; color: var(--red); }

@media (max-width: 640px) {
  .how { margin-top: 8rem; }
  .how-row { display: flex; gap: 2rem; margin: 2.4rem -2rem 0; padding: 0 2rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 2rem; scrollbar-width: none; }
  .how-row::-webkit-scrollbar { display: none; }
  .how-card { flex: 0 0 33.5rem; scroll-snap-align: start; }
  .how-img { aspect-ratio: 303 / 173; }
}
/* /stp:how-it-works */
/* stp:faq */
.faq { margin-top: 15rem; }
.faq-list { display: flex; flex-direction: column; gap: 2.2rem; width: 100%; max-width: 63rem; margin: 2.8rem auto 0; }
.faq-item { box-shadow: inset 0 -0.3rem 0 var(--red); }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem 1rem 1rem; cursor: pointer; }
.faq-title { flex: 1 1 auto; display: flex; align-items: center; min-height: 3.6rem; font-family: var(--font-head); font-weight: 600; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.2; transition: color 0.3s ease-in-out; }
.faq-arrow { flex: none; width: 3.6rem; height: 3.6rem; transform: rotate(180deg); transition: transform 0.3s ease-in-out; }
.faq-item.open .faq-arrow { transform: none; }
.faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease-in-out; }
.faq-item.open .faq-body { grid-template-rows: 1fr; }
.faq-inner { min-height: 0; overflow: hidden; }
@media (hover: hover) {
  .faq-q:hover .faq-title { color: var(--red); }
}
.faq-a { max-width: 58.6rem; padding: 0 1rem 0.8rem; }

@media (max-width: 640px) {
  .faq { margin-top: 8rem; }
  .faq-list { gap: 2rem; margin-top: 2.4rem; }
  .faq-q { align-items: flex-start; padding: 1rem 0 1rem 1rem; }
  .faq-title { min-height: 3.6rem; }
  .faq-arrow { margin-left: -0.6rem; }
  .faq-a { max-width: none; }
}
/* /stp:faq */
/* stp:footer */
.footer { margin-top: 15rem; padding: 4.6rem 0; background: var(--yellow); color: var(--footer-text); }
.footer-inner { display: flex; flex-direction: column; gap: 5rem; }
.footer-links { display: flex; justify-content: space-between; font-family: var(--font-head); font-weight: 600; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.2; min-height: 2.9rem; align-items: center; }
.footer-link { transition: color 0.3s ease-in-out; }
.footer-link:hover { color: var(--red); text-decoration: underline; }
.footer-copy { height: 1.4rem; padding: 0 17.4rem 0 12.8rem; font-size: clamp(12px, 1.2rem, 1.2rem); text-align: center; }

@media (max-width: 1024px) {
  .footer-copy { padding: 0; }
}

@media (max-width: 640px) {
  .footer { padding: 4.5rem 0; }
  .footer-inner { gap: 4rem; }
  .footer-links { flex-direction: column; align-items: flex-start; gap: 1.8rem; min-height: 0; }
  .footer-copy { height: auto; text-align: left; }
}
/* /stp:footer */
/* stp:legal */
.legal-body { min-height: 100vh; display: flex; flex-direction: column; }
.legal-main { flex: 1 0 auto; padding-top: 6.8rem; }
.legal-body .footer { margin-top: 0; }
.legal-page { padding: 3.4rem 8rem 10rem; }
.legal-content { max-width: 108rem; margin: 0 auto; }
.legal-content h1 { margin-bottom: 2.8rem; font-family: var(--font-head); font-weight: 700; font-size: 3.6rem; line-height: 1.2; color: var(--red); text-align: center; text-transform: uppercase; }
.legal-content h2, .legal-content h3, .legal-content h4 { font-weight: 700; }
.legal-content p { margin-bottom: 2.4rem; }
.legal-content ul, .legal-content ol { margin-bottom: 2.4rem; padding-left: 2.4rem; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { margin: 0; }
.legal-content > :last-child { margin-bottom: 0; }
.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 ease-in-out; }
.legal-content a:hover { color: var(--red); }
.header-legal .header-nav { max-width: 108rem; }

@media (max-width: 1024px) {
  .legal-page { padding: 3.4rem 4rem 10rem; }
}

@media (max-width: 640px) {
  .legal-main { padding-top: 9rem; }
  .legal-page { padding: 2.6rem 2rem 8rem; }
  .legal-content h1 { margin-bottom: 2.4rem; }
  .header-legal .burger-btn span { background: var(--red); }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on .hero-title { position: relative; }
.anim-on .hero-title.ta-ready > img { opacity: 0; }
.anim-on .hero-title .ta-band { position: absolute; inset: 0; clip-path: inset(var(--top) 0 var(--bottom) 0); transform-origin: 50% 100%; animation: ta-fall 0.9s cubic-bezier(0.3, 0, 0.4, 1) calc(0.9s + var(--i) * 0.16s) both; }
.anim-on .hero-title .ta-band img { width: 100%; height: 100%; }
.anim-on .hero-title .ta-glint { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; filter: brightness(0) invert(1); opacity: 0.85; -webkit-mask: linear-gradient(105deg, transparent 42%, #000 50%, transparent 58%) 160% 0 / 260% 100% no-repeat; mask: linear-gradient(105deg, transparent 42%, #000 50%, transparent 58%) 160% 0 / 260% 100% no-repeat; clip-path: inset(34% 0 15% 0); animation: ta-shine 5s ease-in-out 2.2s infinite; }

.anim-on .section-title .ta-w { display: inline-block; white-space: nowrap; }
.anim-on .section-title .ta-l { display: inline-block; opacity: 0; transform-origin: 50% 100%; }
.anim-on .section-title.is-in .ta-l { animation: ta-drop 0.7s cubic-bezier(0.3, 0, 0.4, 1) calc(var(--i) * 0.06s) both; }

@keyframes ta-fall {
  0% { opacity: 0; transform: translateY(-14rem) scale(0.96, 1.08); }
  25% { opacity: 1; }
  55% { transform: translateY(0) scale(1.05, 0.88); }
  70% { transform: translateY(-1.4rem) scale(0.98, 1.03); }
  85% { transform: translateY(0) scale(1.02, 0.97); }
  100% { opacity: 1; transform: none; }
}

@keyframes ta-shine {
  0% { -webkit-mask-position: 160% 0; mask-position: 160% 0; }
  30%, 100% { -webkit-mask-position: -60% 0; mask-position: -60% 0; }
}

@keyframes ta-drop {
  0% { opacity: 0; color: var(--yellow); transform: translateY(-3.2rem) scale(0.9, 1.15); }
  30% { opacity: 1; }
  55% { color: var(--yellow); transform: translateY(0) scale(1.15, 0.8); }
  72% { transform: translateY(-0.6rem) scale(0.96, 1.06); }
  86% { transform: translateY(0) scale(1.03, 0.97); }
  100% { opacity: 1; color: var(--red); transform: none; }
}

@media (max-width: 640px) {
  .anim-on .hero-title .ta-band { animation-duration: 0.75s; }
  @keyframes ta-fall {
    0% { opacity: 0; transform: translateY(-8rem) scale(0.97, 1.06); }
    25% { opacity: 1; }
    55% { transform: translateY(0) scale(1.04, 0.9); }
    70% { transform: translateY(-0.8rem) scale(0.98, 1.02); }
    85% { transform: translateY(0) scale(1.01, 0.98); }
    100% { opacity: 1; transform: none; }
  }
  .anim-on .section-title.is-in .ta-l { animation-duration: 0.55s; animation-delay: calc(var(--i) * 0.045s); }
}
/* /stp:title-anim */
