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

:root {
  --bg: #FEF4EF;
  --text: #181E40;
  --primary: #263478;
  --accent: #B53514;
  --accent-soft: #FFC8B5;
  --hero-bg: #241911;
  --card-from: #FFEEE4;
  --card-to: #F0DDD1;
  --font: 'Fredoka', 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); } }

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(14px, 1.8rem, 1.8rem);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

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

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

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 144rem;
  height: 6rem;
  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; }
.logo img { width: 100%; height: 100%; }
.logo:hover { opacity: 0.8; }

.nav { display: flex; align-items: center; justify-content: space-between; width: 54.4rem; margin-left: auto; }
.nav-link { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); transition: color 0.3s ease; }
.nav-link:hover { color: var(--accent); }

.burger-btn {
  display: none;
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  z-index: 110;
  width: 6.4rem;
  height: 6.4rem;
  background: transparent;
  border: 0;
}
.burger-btn span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.4rem;
  height: 0.2rem;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger-btn span:nth-child(1) { transform: translate(-50%, calc(-50% - 0.8rem)); }
.burger-btn span:nth-child(2) { transform: translate(-50%, -50%); }
.burger-btn span:nth-child(3) { transform: translate(-50%, calc(-50% + 0.8rem)); }
.burger-btn.act span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translate(-50%, -50%) 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-top: 8rem;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
#mobile-menu .nav-link { font-size: 2.4rem; font-weight: 500; }

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

.store-btn { transition: opacity 0.3s ease, box-shadow 0.3s ease; animation: store-float 3s ease-in-out infinite; }
.store-btn:hover { opacity: 0.85; animation-play-state: paused; }

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

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

@media (max-width: 640px) {
  .header-inner { height: 8rem; padding: 0 1.6rem; }
  .logo { position: absolute; left: 1.6rem; top: 2rem; }
  .nav { display: none; }
  .burger-btn { display: block; }
}
/* /stp:base */
/* stp:header */

/* /stp:header */
/* stp:hero */
.hero {
  background: var(--hero-bg) url('../img/hero-bg.webp') center / cover no-repeat;
  color: #fff;
}
.hero-inner {
  position: relative;
  width: 100%;
  max-width: 144rem;
  height: 75.9rem;
  margin: 0 auto;
  padding: 12rem 16rem 0;
}
.hero-title { font-size: 7.2rem; font-weight: 600; line-height: 1.2; }
.hero-subtitle { max-width: 44.8rem; margin-top: 6.32rem; font-size: 2.8rem; font-weight: 500; line-height: 1.3; }
.hero-text { max-width: 44.8rem; margin-top: 1.52rem; font-size: clamp(14px, 1.8rem, 1.8rem); }
.hero-tiles { position: absolute; left: 82.8rem; top: 9.4rem; width: 42.3rem; height: 61.9rem; }
.hero-store {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  width: fit-content;
  margin-top: 5.2rem;
  padding: 1rem 1.2rem;
  background: #000;
  border: 1px solid #A6A6A6;
  border-radius: 0.6rem;
}
.hero-store-icon { width: 3.1rem; height: 3.5rem; }
.hero-store-label { width: 11.3rem; height: 3.7rem; }

@media (max-width: 1024px) {
  .hero-inner { padding: 12rem 4rem 0; }
  .hero-tiles { left: auto; right: 4rem; }
}

@media (max-width: 640px) {
  .hero { background-image: url('../img/hero-bg-m.webp'); }
  .hero-inner { height: 81.2rem; padding: 10rem 1.6rem 0; }
  .hero-title { font-size: 4.8rem; }
  .hero-subtitle { max-width: none; margin-top: 3.28rem; font-size: 2.4rem; }
  .hero-text { max-width: none; margin-top: 0.76rem; font-size: clamp(14px, 1.6rem, 1.6rem); }
  .hero-tiles { left: 6rem; right: auto; top: 43.2rem; width: 25.5rem; height: 37.3rem; }
  .hero-store { position: absolute; top: clamp(45rem, calc(100svh - 9rem), 69.5rem); left: 0; right: 0; margin: 0 auto; }
}
/* /stp:hero */
/* stp:about */
.container { width: 100%; max-width: 144rem; margin: 0 auto; padding: 0 16rem; }
.title { font-size: 4.8rem; font-weight: 600; line-height: 1.2; color: var(--primary); }
.media { position: relative; overflow: hidden; border-radius: 3.2rem; background: #fff; }
.media img { position: absolute; max-width: none; }

.about { padding: 8rem 0; }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3.2rem; }
.about-text .title { margin-bottom: 6.4rem; }
.about-image { min-height: 33.8rem; }
.about-image img { left: -39.34%; top: -24.85%; width: 175.74%; height: 159.17%; }

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

@media (max-width: 640px) {
  .container { padding: 0 1.6rem; }
  .title { font-size: 3.6rem; }
  .about { padding: 6rem 0; }
  .about-inner { grid-template-columns: 1fr; }
  .about-text .title { margin-bottom: 4.8rem; }
  .about-text p { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .about-image { min-height: 0; height: 21.3rem; }
  .about-image img { left: -39.94%; top: -24.88%; width: 175.8%; height: 159.15%; }
}
/* /stp:about */
/* stp:features */
.card {
  background: linear-gradient(180deg, var(--card-from), var(--card-to));
  border: 1px solid var(--accent);
  border-radius: 3.2rem;
}

.features { padding: 8rem 0; }
.features .title { margin-bottom: 6.4rem; }
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.2rem; }
.feature-card { display: flex; flex-direction: column; gap: 0.8rem; padding: 3.1rem; text-align: center; }
.feature-card h3 { font-size: 2.8rem; font-weight: 500; line-height: 1.3; color: var(--accent); }

@media (max-width: 640px) {
  .features { padding: 6rem 0; }
  .features .title { margin-bottom: 4.8rem; }
  .features-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .feature-card h3 { font-size: 2.4rem; }
  .feature-card p { font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:features */
/* stp:how-it-works */
.how { padding: 8rem 0; }
.how-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3.2rem; }
.how-content .title { margin-bottom: 6.4rem; }
.steps { display: flex; flex-direction: column; gap: 2.4rem; list-style: none; }
.step { display: flex; flex-direction: column; gap: 0.8rem; }
.step h3 { font-size: 2rem; font-weight: 500; line-height: 1.5; color: var(--accent); }
.how-image img { left: -0.18%; top: -35.52%; width: 100.37%; height: 180.97%; }

@media (max-width: 640px) {
  .how { padding: 6rem 0; }
  .how-inner { grid-template-columns: 1fr; }
  .how-content .title { margin-bottom: 4.8rem; }
  .step h3 { font-size: clamp(14px, 1.8rem, 1.8rem); }
  .step p { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .how-image { height: 29.8rem; }
  .how-image img { left: 0; top: -35.57%; width: 100.29%; height: 180.87%; }
}
/* /stp:how-it-works */
/* stp:reviews */
.reviews { padding: 8rem 0; }
.reviews .title { margin-bottom: 6.4rem; }
.reviews-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.2rem; }
.review-card { display: flex; flex-direction: column; gap: 1.6rem; padding: 2.3rem; }
.review-body { display: flex; flex-direction: column; gap: 0.8rem; }
.review-stars { font-size: 2rem; font-weight: 500; line-height: 1.5; }
.review-card figcaption { margin-top: auto; font-size: 2rem; font-weight: 500; line-height: 1.5; text-align: right; color: var(--accent); }

@media (max-width: 1024px) {
  .reviews-list { gap: 2rem; }
}

@media (max-width: 640px) {
  .reviews { padding: 6rem 0; }
  .reviews .title { margin-bottom: 4.8rem; }
  .reviews-list {
    display: flex;
    gap: 1.6rem;
    margin: 0 -1.6rem;
    padding: 0 1.6rem;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .reviews-list::-webkit-scrollbar { display: none; }
  .review-card { flex: 0 0 30rem; }
  .review-stars, .review-card figcaption { font-size: clamp(14px, 1.8rem, 1.8rem); }
  .review-card blockquote { font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:reviews */
/* stp:footer */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
  padding: 4rem 16rem 1.6rem;
  background: var(--text);
  color: var(--bg);
  text-align: center;
}
.footer-links { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; font-size: clamp(14px, 1.8rem, 1.8rem); }
.footer-links a { transition: color 0.3s ease; }
.footer-links a:hover { color: var(--accent-soft); }
.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-links { 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); }
.legal-content h1 { margin-bottom: 2.7rem; font-size: 4.8rem; font-weight: 600; line-height: 1.2; }
.legal-content h2, .legal-content h3, .legal-content h4 { margin-bottom: 0.8rem; font-size: 2.8rem; font-weight: 500; line-height: 1.3; }
.legal-content p, .legal-content ul, .legal-content ol { margin-bottom: 2.7rem; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; }
.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 { margin: 0; }
.legal-content a { text-decoration: underline; transition: color 0.3s ease; }
.legal-content a:hover { color: var(--accent); }
.legal-content strong, .legal-content b { font-weight: 500; }
.legal-content em, .legal-content i { font-style: italic; }
.legal-content u { text-decoration: underline; }
.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; }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on .ta-w { display: inline-block; white-space: nowrap; }
.anim-on .ta-l { display: inline-block; }
.anim-on .ta-hero .ta-l {
  opacity: 0;
  animation: ta-tile-place 0.9s cubic-bezier(0.22, 0.8, 0.3, 1) calc(0.9s + var(--i) * 0.09s) both;
}
.anim-on .ta-sec .ta-l { opacity: 0; }
.anim-on .ta-sec.is-in .ta-l {
  animation: ta-tile-set 0.7s cubic-bezier(0.25, 0.8, 0.35, 1) calc(var(--i) * 0.07s) both;
}

@keyframes ta-tile-place {
  0% {
    opacity: 0;
    color: var(--accent-soft);
    transform: translate(calc(var(--s) * 1.6rem), -2.8rem) scale(1.3) rotate(calc(var(--s) * 8deg));
    filter: blur(0.2rem) drop-shadow(1rem 1.8rem 1rem rgba(0, 0, 0, 0.5));
  }
  55% {
    opacity: 1;
    color: var(--accent-soft);
    transform: translate(0, 0.2rem) scale(0.96) rotate(0deg);
    filter: blur(0) drop-shadow(0.2rem 0.3rem 0.2rem rgba(0, 0, 0, 0.45));
  }
  75% { transform: translate(0, -0.1rem) scale(1.01); }
  100% {
    opacity: 1;
    color: #fff;
    transform: none;
    filter: blur(0) drop-shadow(0 0 0 rgba(0, 0, 0, 0));
  }
}

@keyframes ta-tile-set {
  0% {
    opacity: 0;
    color: var(--accent);
    transform: translate(calc(var(--s) * 0.8rem), -1.4rem) scale(1.15);
    filter: drop-shadow(0.6rem 1rem 0.6rem rgba(24, 30, 64, 0.3));
  }
  60% {
    opacity: 1;
    color: var(--accent);
    transform: translate(0, 0.1rem) scale(0.98);
    filter: drop-shadow(0.1rem 0.2rem 0.1rem rgba(24, 30, 64, 0.25));
  }
  100% {
    opacity: 1;
    color: var(--primary);
    transform: none;
    filter: drop-shadow(0 0 0 rgba(24, 30, 64, 0));
  }
}

@media (max-width: 640px) {
  .anim-on .ta-hero .ta-l { animation-duration: 0.75s; animation-delay: calc(0.85s + var(--i) * 0.07s); }
  .anim-on .ta-sec.is-in .ta-l { animation-duration: 0.6s; animation-delay: calc(var(--i) * 0.06s); }
}
/* /stp:title-anim */
