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

:root {
  --text: #fffcfc;
  --primary: #1be570;
  --accent: #e8b62e;
  --surface: #0f305b;
  --bg: #175cd5;
  --font-body: 'Quicksand', sans-serif;
  --font-head: 'Wendy One', 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-body);
  font-size: clamp(14px, 1.8rem, 1.8rem);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; text-decoration: none; transition: color 0.3s, opacity 0.3s, background-color 0.3s, transform 0.3s, box-shadow 0.3s; }
button { font: inherit; color: inherit; cursor: pointer; }
summary { cursor: pointer; }

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

.section-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 5.2rem;
  line-height: 1.2;
  color: var(--primary);
}

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

#mobile-menu { position: fixed; z-index: 90; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
html.menu-lock, html.menu-lock body { overflow: hidden; }

.burger-btn { display: none; position: relative; width: 6.4rem; height: 6.4rem; padding: 0; background: transparent; border: 0; z-index: 101; transition: opacity 0.3s; }
.burger-btn:hover { opacity: 0.7; }
.burger-btn span { position: absolute; left: 50%; top: 50%; width: 2.4rem; height: 0.2rem; margin: -0.1rem 0 0 -1.2rem; background: var(--text); transition: transform 0.3s, opacity 0.3s; }
.burger-btn span:nth-child(1) { transform: translateY(-0.8rem); }
.burger-btn span:nth-child(3) { transform: translateY(0.8rem); }
.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); }

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

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

@media (max-width: 640px) {
  .container { padding: 0 1.6rem; }
  .section-title { font-size: 3.6rem; }
  body { font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:base */
/* stp:header */
.header { position: fixed; top: 0; left: 0; width: 100%; height: 6rem; z-index: 100; background: var(--surface); transition: box-shadow 0.3s; }
.header.scrolled { box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: block; width: 4.4rem; height: 4.4rem; border-radius: 1rem; overflow: hidden; background: #332c2c; }
.logo:hover { opacity: 0.8; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.nav { display: flex; align-items: center; justify-content: space-between; width: 54.4rem; }
.nav-link { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); white-space: nowrap; }
.nav-link:hover { color: var(--accent); }

@media (max-width: 1024px) {
  .nav { width: 60%; }
}

@media (max-width: 640px) {
  .header { height: 8rem; }
  .header-inner { align-items: flex-start; }
  .logo { margin-top: 2rem; }
  .nav { display: none; }
  .burger-btn { display: block; align-self: center; }
}
/* /stp:header */
/* stp:menu */
#mobile-menu { display: flex; flex-direction: column; align-items: stretch; background: var(--surface); }

@media (max-width: 640px) {
  #mobile-menu { top: 9.6rem; left: 1.6rem; right: 1.6rem; padding: 1.6rem 0; border-radius: 1.6rem; }
  #mobile-menu .nav-link { display: flex; align-items: center; justify-content: center; height: 5.6rem; font-size: 2.4rem; font-weight: 700; line-height: 1.3; }
}

@media (min-width: 641px) {
  #mobile-menu { display: none; }
}
/* /stp:menu */
/* stp:hero */
.hero { position: relative; height: 75.9rem; background: #1a6fd0 url(../img/hero.webp) center top / cover no-repeat; overflow: hidden; }
.hero-content { display: flex; flex-direction: column; align-items: center; width: 57.5%; padding-top: 11rem; text-align: center; }
.hero-logo { width: 44.8rem; height: 28.2rem; }
.hero-logo img { width: 100%; height: 100%; object-fit: contain; }
.hero-title { margin-top: 4.4rem; font-size: 2.8rem; font-weight: 700; line-height: 1.3; color: var(--text); }
.hero-text { width: 44.8rem; max-width: 100%; margin-top: 1.56rem; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }
.hero-btn { display: flex; align-items: center; justify-content: center; gap: 1.2rem; width: 18rem; height: 5.7rem; margin-top: 3.6rem; padding: 1rem 1.2rem; background: #000; border: 1px solid #a6a6a6; border-radius: 0.6rem; color: var(--text); }
.store-btn { animation: store-float 3s ease-in-out infinite; }
.store-btn:hover { animation-play-state: paused; }
.hero-btn:hover { background: #1c1c1c; border-color: var(--accent); box-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.4); color: var(--accent); }
.hero-btn-label { font-size: 2.4rem; font-weight: 600; line-height: 1.2; }

@media (max-width: 640px) {
  .hero { height: 81.2rem; background-image: url(../img/hero-m.webp); background-size: 145rem 81.5rem; background-position: -41.5rem 0; }
  .hero-content { width: 100%; padding: 13.6rem 1.6rem 0; }
  .hero-logo { width: 37.5rem; height: 23.1rem; margin: 0 -1.6rem; }
  .hero-title { margin-top: 0.8rem; font-size: 2.4rem; }
  .hero-text { width: 100%; margin-top: 0.8rem; font-size: clamp(14px, 1.6rem, 1.6rem); }
  .hero-btn { margin-top: 12.8rem; }
}
/* /stp:hero */
/* stp:how-it-works */
.how { padding: 8rem 0; }
.how-inner { display: flex; align-items: flex-start; justify-content: space-between; }
.how-text { width: 54.4rem; }
.how .section-title { margin-bottom: 6.4rem; }
.steps { display: flex; flex-direction: column; gap: 2.4rem; }
.step { display: flex; flex-direction: column; gap: 0.4rem; }
.step-title { font-size: 2rem; font-weight: 600; line-height: 1.5; color: var(--accent); }
.step-text { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }
.how-img { flex: none; width: 41.4rem; height: auto; }

@media (max-width: 1024px) {
  .how-inner { flex-direction: column; align-items: flex-start; gap: 4rem; }
  .how-text { width: 100%; }
  .how-img { align-self: center; }
}

@media (max-width: 640px) {
  .how { padding: 6rem 0; }
  .how-inner { gap: 3.2rem; }
  .how .section-title { margin-bottom: 4.8rem; }
  .step-title { font-size: 1.8rem; }
  .step-text { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .how-img { width: 100%; align-self: stretch; }
}
/* /stp:how-it-works */
/* stp:features */
.features { padding: 8rem 0; }
.features-inner { display: flex; flex-direction: column; gap: 3.2rem; }
.features-row { display: flex; align-items: flex-start; justify-content: space-between; }
.features-row-rev { flex-direction: row-reverse; align-items: center; }
.features-col { width: 54.4rem; }
.features .section-title { margin-bottom: 6.9rem; }
.features-list { display: flex; flex-direction: column; gap: 2.4rem; }
.feature { display: flex; flex-direction: column; gap: 0.4rem; }
.feature-title { font-size: 2.8rem; font-weight: 700; line-height: 1.3; color: var(--accent); }
.feature-text { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }
.features-img { flex: none; width: 44.8rem; height: auto; }

@media (max-width: 1024px) {
  .features-row, .features-row-rev { flex-direction: column; align-items: flex-start; gap: 4rem; }
  .features-col { width: 100%; }
  .features-img { align-self: center; }
}

@media (max-width: 640px) {
  .features { padding: 6rem 0; }
  .features-row, .features-row-rev { gap: 3.2rem; }
  .features .section-title { margin-bottom: 4.8rem; }
  .feature-title { font-size: 2.4rem; }
  .feature-text { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .features-img { width: 100%; align-self: stretch; }
}
/* /stp:features */
/* stp:reviews */
.reviews { padding: 8rem 0; }
.reviews .section-title { margin-bottom: 6.4rem; }
.reviews-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.2rem; align-items: start; }
.review { display: flex; flex-direction: column; gap: 1.6rem; padding: 1.6rem; background: var(--surface); border-radius: 1.6rem; }
.review-body { display: flex; flex-direction: column; gap: 0.8rem; }
.review-rating { font-size: 2.8rem; font-weight: 700; line-height: 1.3; color: var(--accent); }
.review-text { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }
.review-name { font-size: 2rem; font-weight: 600; line-height: 1.5; text-align: right; color: var(--accent); }

@media (max-width: 1024px) {
  .reviews-list { grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr)); gap: 2rem; }
}

@media (max-width: 640px) {
  .reviews { padding: 6rem 0; }
  .reviews .section-title { margin-bottom: 4.8rem; }
  .reviews-list { display: flex; gap: 1.6rem; align-items: stretch; margin: 0 -1.6rem; padding: 0 1.6rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 1.6rem; scrollbar-width: none; }
  .reviews-list::-webkit-scrollbar { display: none; }
  .review { flex: 0 0 30rem; scroll-snap-align: start; }
  .review:nth-child(3) { display: none; }
  .review-rating { font-size: 2.4rem; }
  .review-text { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .review-name { font-size: 1.8rem; }
}
/* /stp:reviews */
/* stp:faq */
.faq { padding: 8rem 0; }
.faq .section-title { margin-bottom: 6.4rem; }
.faq-list { display: flex; flex-direction: column; gap: 1.6rem; }
.faq-item { padding: 1.6rem; background: var(--surface); border-radius: 1.6rem; }
.faq-question { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.6rem; list-style: none; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question-text { font-size: 2rem; font-weight: 600; line-height: 1.5; color: var(--accent); transition: color 0.3s, opacity 0.3s; }
.faq-question:hover .faq-question-text { opacity: 0.8; }
.faq-icon { position: relative; flex: none; width: 2.8rem; height: 2.8rem; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; left: 50%; top: 50%; background: var(--accent); transition: transform 0.3s; }
.faq-icon::before { width: 1.6rem; height: 0.2rem; margin: -0.1rem 0 0 -0.8rem; }
.faq-icon::after { width: 0.2rem; height: 1.6rem; margin: -0.8rem 0 0 -0.1rem; }
.faq-item[open] .faq-icon::after { transform: scaleY(0); }
.faq-answer { margin-top: 1.6rem; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }

@media (max-width: 640px) {
  .faq { padding: 6rem 0; }
  .faq .section-title { margin-bottom: 4.8rem; }
  .faq-question-text { font-size: 1.8rem; }
  .faq-answer { font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:faq */
/* stp:footer */
.footer { background: var(--surface); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 4rem; padding-top: 4rem; padding-bottom: 1.6rem; text-align: center; }
.footer-links { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.footer-link { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }
.footer-link:hover { color: var(--accent); }
.footer-copy { font-size: clamp(12px, 1.2rem, 1.2rem); line-height: 1.5; color: var(--text); }

@media (max-width: 640px) {
  .footer-link { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .footer-copy { font-size: clamp(11px, 1.1rem, 1.1rem); }
}
/* /stp:footer */
/* stp:legal */
.legal-body { min-height: 100vh; display: flex; flex-direction: column; }
.legal-main { flex: 1 0 auto; padding-top: 6rem; }
.legal-page { padding: 8rem 0; }
.legal-content { width: 100%; max-width: 144rem; margin: 0 auto; padding: 0 16rem; color: var(--text); font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; }
.legal-content h1 { margin-bottom: 4rem; font-family: var(--font-head); font-size: 5.2rem; font-weight: 400; line-height: 1.2; color: var(--text); }
.legal-content h2 { margin: 4rem 0 1.6rem; font-size: 2.8rem; font-weight: 700; line-height: 1.3; color: var(--text); }
.legal-content h3, .legal-content h4 { margin: 2.4rem 0 0.8rem; font-size: 2rem; font-weight: 600; line-height: 1.5; color: var(--text); }
.legal-content p { margin-bottom: 1.6rem; }
.legal-content ul, .legal-content ol { margin: 0 0 1.6rem; padding-left: 2.4rem; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { margin-bottom: 0.8rem; }
.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; color: var(--text); }
.legal-content a:hover { color: var(--accent); }
.legal-content > :last-child { margin-bottom: 0; }

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

@media (max-width: 640px) {
  .legal-main { padding-top: 8rem; }
  .legal-page { padding: 4rem 0; }
  .legal-content { padding: 0 1.6rem; font-size: clamp(14px, 1.6rem, 1.6rem); }
  .legal-content h1 { margin-bottom: 3.2rem; font-size: 3.6rem; }
  .legal-content h2 { margin-top: 3.2rem; font-size: 2.4rem; }
  .legal-content h3, .legal-content h4 { font-size: 1.8rem; }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on .ta-split .ta-w { display: inline-block; white-space: nowrap; clip-path: inset(-3rem -1.5rem -0.8rem -1.5rem); }
.anim-on .ta-split .ta-l { display: inline-block; transform-origin: 50% 100%; will-change: transform, opacity; }
.anim-on .hero-title .ta-l { animation: ta-surface 0.85s cubic-bezier(0.34, 1.45, 0.5, 1) both; animation-delay: calc(0.8s + var(--i) * 0.03s); }
.anim-on .hero-title .ta-accent .ta-l { animation: ta-surface 0.85s cubic-bezier(0.34, 1.45, 0.5, 1) both, ta-swell 6s ease-in-out infinite; animation-delay: calc(0.8s + var(--i) * 0.03s), calc(3.4s + var(--j) * 0.08s); }
.anim-on .section-title .ta-l { opacity: 0; transform: translateY(120%); }
.anim-on .section-title.is-in .ta-l { animation: ta-tide 0.75s cubic-bezier(0.3, 1.35, 0.55, 1) both; animation-delay: calc(0.1s + var(--i) * 0.05s); }

@keyframes ta-surface {
  0% { opacity: 0; transform: translateY(120%) rotate(calc(var(--s) * 14deg)); }
  45% { opacity: 1; }
  70% { transform: translateY(-8%) rotate(calc(var(--s) * -4deg)); }
  100% { opacity: 1; transform: none; }
}
@keyframes ta-swell {
  0%, 14%, 100% { transform: none; color: var(--text); }
  5% { transform: translateY(-0.6rem) rotate(calc(var(--s) * 5deg)); color: var(--accent); }
  9% { transform: translateY(0.15rem); }
}
@keyframes ta-tide {
  0% { opacity: 0; transform: translateY(120%); color: var(--accent); }
  50% { opacity: 1; color: var(--accent); }
  72% { transform: translateY(-10%); }
  100% { opacity: 1; transform: none; color: var(--primary); }
}

@media (max-width: 640px) {
  .anim-on .hero-title .ta-l { animation-duration: 0.7s; animation-delay: calc(0.8s + var(--i) * 0.022s); }
  .anim-on .hero-title .ta-accent .ta-l { animation-duration: 0.7s, 6s; animation-delay: calc(0.8s + var(--i) * 0.022s), calc(3s + var(--j) * 0.07s); }
  .anim-on .section-title.is-in .ta-l { animation-duration: 0.6s; animation-delay: calc(0.05s + var(--i) * 0.04s); }
}
/* /stp:title-anim */
