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

:root {
  --text: #020d11;
  --primary: #27336d;
  --accent: #ffe45d;
  --bg: #e4f3ff;
  --surface: #ffffff;
  --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); } }

html {
  font-family: var(--font);
  color: var(--text);
  font-weight: 400;
  line-height: 1.5;
}
html.menu-lock, html.menu-lock body { overflow: hidden; }

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
body { background: var(--bg); font-size: clamp(14px, 1.8rem, 1.8rem); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
section { padding: 8rem 0; }

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

.title {
  font-size: 5.2rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--accent);
  -webkit-text-stroke: 0.4rem var(--text);
  paint-order: stroke fill;
  stroke-linejoin: round;
  margin-bottom: 8rem;
}

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

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

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

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

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

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

@media (max-width: 640px) {
  body { font-size: clamp(14px, 1.6rem, 1.6rem); }
  section { padding: 6rem 0; }
  .container { padding: 0 1.6rem; }
  .title { font-size: 4rem; margin-bottom: 6rem; }
  .header { height: 8rem; }
  .burger-btn { display: flex; }
  #mobile-menu { padding-top: 14rem; }
}
/* /stp:base */
/* stp:header */
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 144rem; height: 100%; margin: 0 auto; padding: 0 16rem; }
.logo { display: block; width: 4.4rem; height: 4.4rem; border-radius: 1rem; overflow: hidden; transition: opacity 0.3s ease-in-out; }
.logo:hover { opacity: 0.8; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 2.6rem; width: 54.5rem; }

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

@media (max-width: 640px) {
  .header-inner { align-items: flex-start; padding: 2rem 1.6rem 0; }
  .burger-btn { margin-top: -0.4rem; }
  .nav { display: none; }
}
/* /stp:header */
/* stp:hero */
#hero { position: relative; height: 63.3rem; padding: 0; overflow: hidden; background: #e7e7e7 url(../img/hero.webp) 0 -11.4rem / 100% auto no-repeat; }
.hero-logo { position: absolute; left: 17.6rem; top: 10.4rem; width: 46.7rem; }
.hero-logo img { width: 100%; height: auto; }
.hero-box { position: absolute; left: 72rem; top: 18.8rem; width: 54.9rem; display: flex; flex-direction: column; gap: 1.6rem; padding: 1.6rem; border-radius: 1.6rem; background: rgba(228, 243, 255, 0.8); overflow: hidden; }
.hero-title { font-size: 2.8rem; font-weight: 600; line-height: 1.3; }
.hero-text { width: 54.4rem; flex: none; }

@media (max-width: 1024px) {
  .hero-logo { left: 4rem; top: 8rem; width: 38rem; }
  .hero-box { left: 44rem; top: 14rem; width: 54rem; }
  .hero-text { width: auto; }
}

@media (max-width: 640px) {
  #hero { height: 81.2rem; background: #e7e7e7 url(../img/hero-m.webp) 0 0 / 100% auto no-repeat; }
  .hero-logo { left: 1.6rem; top: 10rem; width: 34.3rem; }
  .hero-box { left: 1.6rem; top: 33.4rem; width: 34.3rem; }
  .hero-title { font-size: 2.4rem; }
}
/* /stp:hero */
/* stp:how-it-works */
.split { display: flex; align-items: flex-start; gap: 3.2rem; }
.split-text { display: flex; flex-direction: column; width: 54.4rem; flex: none; }
.steps { display: flex; flex-direction: column; gap: 2.4rem; }
.step { display: flex; flex-direction: column; gap: 0.8rem; }
.step-title { font-size: 2rem; font-weight: 600; line-height: 1.5; color: var(--primary); }
.split-img { position: relative; width: 54.4rem; height: 46.6rem; flex: none; overflow: hidden; border-radius: 1.6rem; background: var(--surface); }
.split-img img { position: absolute; left: 0; width: 100%; max-width: none; object-fit: cover; }
.how-img img { top: -33rem; height: 96.8rem; }

@media (max-width: 1024px) {
  .split { gap: 3rem; }
  .split-text { flex: 1; width: auto; min-width: 0; }
  .split-img { width: 44rem; }
  .how-img { height: 37.7rem; }
  .how-img img { top: -26.7rem; height: 78.2rem; }
}

@media (max-width: 640px) {
  .split { flex-direction: column; align-items: stretch; gap: 3.2rem; }
  .split-text { flex: none; }
  .step-title { font-size: clamp(14px, 1.8rem, 1.8rem); }
  .split-img { width: 100%; }
  .how-img { height: 29.4rem; }
  .how-img img { top: -20.8rem; height: 61.1rem; }
}
/* /stp:how-it-works */
/* stp:features */
.split-rev { flex-direction: row-reverse; }
.feat-img { height: 63.6rem; }
.feat-img img { top: -22.8rem; height: 96.8rem; }

@media (max-width: 1024px) {
  .feat-img { height: 51.4rem; }
  .feat-img img { top: -18.4rem; height: 78.2rem; }
}

@media (max-width: 640px) {
  .split-rev { flex-direction: column; }
  .feat-img { height: 40.1rem; }
  .feat-img img { top: -14.4rem; height: 61rem; }
}
/* /stp:features */
/* stp:reviews */
.reviews-list { display: flex; align-items: stretch; gap: 3.2rem; width: 100%; max-width: 144rem; margin: 0 auto; padding: 0 16rem; }
.review { display: flex; flex-direction: column; gap: 0.8rem; width: 35.2rem; flex: none; padding: 1.6rem; border-radius: 1.6rem; box-shadow: inset 0 0 0 1px var(--primary); background: var(--surface); }
.review-stars { font-size: 2.8rem; font-weight: 600; line-height: 1.3; }
.review-name { margin-top: auto; font-size: 2rem; font-weight: 600; color: var(--primary); text-align: right; }

@media (max-width: 1024px) {
  .reviews-list { gap: 2rem; padding: 0 4rem; }
  .review { flex: 1; width: auto; min-width: 0; }
}

@media (max-width: 640px) {
  .reviews-list { gap: 1.6rem; padding: 0 1.6rem; overflow-x: auto; scrollbar-width: none; }
  .review { flex: none; width: 30rem; }
  .review-stars { font-size: 2.4rem; }
  .review-name { font-size: clamp(14px, 1.8rem, 1.8rem); }
  .review-extra { display: none; }
}

.reviews-list::-webkit-scrollbar { display: none; }
/* /stp:reviews */
/* stp:faq */
.faq-list { display: flex; flex-direction: column; gap: 0.8rem; }
.faq-item { padding: 1.6rem; border-radius: 1.6rem; box-shadow: inset 0 0 0 1px var(--primary); background: var(--surface); }

.faq-q { position: relative; display: block; padding-right: 2.8rem; font-size: 2rem; font-weight: 600; color: var(--primary); list-style: none; cursor: pointer; transition: color 0.3s ease-in-out; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--text); }
.faq-q::after { content: ''; position: absolute; top: 0; right: 0; width: 2.8rem; height: 2.8rem; background: linear-gradient(var(--primary), var(--primary)) center / 1.6rem 0.2rem no-repeat, linear-gradient(var(--primary), var(--primary)) center / 0.2rem 1.6rem no-repeat; }
.faq-item[open] .faq-q::after { background: linear-gradient(var(--primary), var(--primary)) center / 1.6rem 0.2rem no-repeat; }
.faq-a { margin-top: 0.8rem; }

@media (max-width: 640px) {
  .faq-q { font-size: clamp(14px, 1.8rem, 1.8rem); }
  #faq .title { font-size: 5.2rem; }
}
/* /stp:faq */
/* stp:footer */
.footer { display: flex; flex-direction: column; align-items: center; gap: 4rem; padding: 4rem 16rem 1.6rem; background: var(--primary); color: var(--bg); text-align: center; }
.footer-links { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.footer-link { transition: color 0.3s ease-in-out; }
.footer-link:hover { color: var(--accent); }
.footer-copy { font-size: clamp(12px, 1.2rem, 1.2rem); }

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

@media (max-width: 640px) {
  .footer { padding: 4rem 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; }
.legal-content h1 { font-size: 5.2rem; font-weight: 900; line-height: 1.2; margin-bottom: 1.6rem; }
.legal-content h2, .legal-content h3, .legal-content h4 { font-size: 2.8rem; font-weight: 600; line-height: 1.3; margin: 3.6rem 0 2.7rem; }
.legal-content p + p { margin-top: 1.6rem; }
.legal-content ul, .legal-content ol { padding-left: 2.8rem; }
.legal-content li { line-height: 1.5; }
.legal-content a { text-decoration: underline; color: var(--primary); transition: color 0.3s ease-in-out; }
.legal-content a:hover { color: var(--text); }
.legal-content strong, .legal-content b { font-weight: 600; }

@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; }
  .legal-content h1 { font-size: 4rem; }
  .legal-content h2, .legal-content h3, .legal-content h4 { font-size: 2.4rem; }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on { --ta-red: #e8364f; --ta-green: #1fc46a; }
.anim-on .ta-w { display: inline-block; white-space: nowrap; }
.anim-on .ta-l { display: inline-block; }

.anim-on .hero-title .ta-w { opacity: 0; animation: ta-signal 1.5s cubic-bezier(0.3, 0.7, 0.3, 1) calc(0.9s + var(--i) * 0.12s) both; transform-origin: 0 100%; }

@keyframes ta-signal {
  0% { opacity: 0; color: var(--ta-red); filter: blur(0.3rem) drop-shadow(0 0 0 var(--ta-red)); transform: none; }
  18% { opacity: 1; color: var(--ta-red); filter: blur(0) drop-shadow(0 0 0.8rem var(--ta-red)); transform: none; }
  42% { color: #e0a800; filter: drop-shadow(0 0 0.8rem var(--accent)); transform: none; }
  62% { color: var(--ta-green); filter: drop-shadow(0 0 0.9rem var(--ta-green)); transform: translateX(0.5rem) skewX(-10deg); }
  80% { color: var(--ta-green); filter: drop-shadow(0 0 0.3rem var(--ta-green)); transform: translateX(-0.1rem) skewX(3deg); }
  100% { opacity: 1; color: var(--text); filter: drop-shadow(0 0 0 transparent); transform: none; }
}

.anim-on .title .ta-l { opacity: 0.3; color: transparent; transform: scale(0.9); }
.anim-on .title.is-in .ta-l { animation: ta-bulb 0.8s cubic-bezier(0.25, 0.8, 0.35, 1.2) calc(var(--i) * 0.05s) both; }

@keyframes ta-bulb {
  0% { opacity: 0.3; color: transparent; filter: drop-shadow(0 0 0 transparent); transform: scale(0.9); }
  35% { opacity: 1; color: var(--ta-green); filter: drop-shadow(0 0 1.2rem var(--ta-green)); transform: scale(1.08); }
  100% { opacity: 1; color: var(--accent); filter: drop-shadow(0 0 0 transparent); transform: scale(1); }
}

@media (max-width: 640px) {
  .anim-on .hero-title .ta-w { animation-duration: 1.2s; animation-delay: calc(0.8s + var(--i) * 0.09s); }
  .anim-on .title.is-in .ta-l { animation-duration: 0.6s; animation-delay: calc(var(--i) * 0.04s); }
  @keyframes ta-signal {
    0% { opacity: 0; color: var(--ta-red); filter: blur(0.2rem) drop-shadow(0 0 0 var(--ta-red)); transform: none; }
    18% { opacity: 1; color: var(--ta-red); filter: blur(0) drop-shadow(0 0 0.6rem var(--ta-red)); transform: none; }
    42% { color: #e0a800; filter: drop-shadow(0 0 0.6rem var(--accent)); transform: none; }
    62% { color: var(--ta-green); filter: drop-shadow(0 0 0.6rem var(--ta-green)); transform: translateX(0.3rem) skewX(-8deg); }
    80% { color: var(--ta-green); filter: drop-shadow(0 0 0.2rem var(--ta-green)); transform: translateX(-0.1rem) skewX(2deg); }
    100% { opacity: 1; color: var(--text); filter: drop-shadow(0 0 0 transparent); transform: none; }
  }
}
/* /stp:title-anim */
