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

:root {
  --bg1: #f1f6e2;
  --bg2: #23650c;
  --bg2-light: #3b8a1c;
  --white: #ffffff;
  --black: #010101;
  --bg: var(--bg1);
  --font-head: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow-card: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.1), 0 0.1rem 0.2rem -0.1rem rgba(0, 0, 0, 0.1);
}

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, h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
body {
  background: var(--bg1);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 2rem;
  line-height: 2.4rem;
  min-width: 0;
}
img { display: block; max-width: 100%; }
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; cursor: pointer; }
ul { list-style: none; }

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

main { padding-top: 10.4rem; }

.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  height: 10.4rem;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6.4rem;
  background: var(--bg1);
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.15); }
.logo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; width: 14rem; }
.logo:hover { opacity: 0.75; }
.logo img { width: 6rem; height: 6rem; object-fit: cover; }
.logo span {
  font-family: var(--font-head); font-weight: 400;
  font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 2.4rem; color: var(--black); text-align: center;
}
.nav { display: flex; align-items: center; gap: 5rem; }
.nav-link {
  font-family: var(--font-head); font-weight: 400;
  font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 2.4rem; color: var(--black);
}
.nav-link:hover { color: var(--bg2); text-decoration: underline; }

.burger-btn {
  display: none; position: relative; z-index: 110;
  width: 3.1rem; height: 3.1rem; padding: 0; background: transparent; border: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem;
}
.burger-btn span {
  display: block; width: 2.3rem; height: 0.3rem; border-radius: 0.2rem; background: var(--black);
  transition: transform 0.3s, opacity 0.3s, background-color 0.3s;
}
.burger-btn:hover span { background: var(--bg2); }
.burger-btn.act span:nth-child(1) { transform: translateY(0.65rem) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translateY(-0.65rem) rotate(-45deg); }

#mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5rem;
  background: var(--bg1);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
#mobile-menu.opened { opacity: 1; pointer-events: auto; }

.btn {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg2); color: var(--white);
  font-family: var(--font-body); font-weight: 500; font-size: 2.2rem; line-height: 3.2rem; text-align: center;
  border-radius: 2.4rem; padding: 1rem 2.4rem;
}
.btn:hover { background: var(--bg2-light); box-shadow: 0 0.6rem 1.6rem rgba(35, 101, 12, 0.35); }

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

.footer { background: var(--bg2); color: var(--white); padding: 5rem 6.4rem; }
.footer-row {
  display: flex; align-items: center; justify-content: center; gap: 19.2rem;
  font-family: var(--font-head); font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 2.4rem; text-align: center;
}
.footer-links { display: flex; align-items: center; gap: 0.9rem; }
.footer a:hover { color: #cfe8b8; text-decoration: underline; }

@media (max-width: 1024px) {
  .header { padding: 0 3rem; }
  .nav { gap: 3rem; }
  .footer { padding: 5rem 3rem; }
  .footer-row { gap: 4rem; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  main { padding-top: 7.6rem; }
  .header { height: 7.6rem; padding: 0 4.4rem 0 2.4rem; }
  .logo { width: auto; min-width: 9.4rem; gap: 0.4rem; }
  .logo img { width: 4rem; height: 4rem; }
  .logo span { font-size: clamp(12px, 1.2rem, 1.2rem); line-height: 1.6rem; white-space: nowrap; }
  .nav { display: none; }
  .burger-btn { display: flex; margin-right: 0; }
  #mobile-menu { gap: 5rem; }
  .btn { font-size: 2rem; line-height: 3rem; }
  .footer { padding: 3.2rem 2.4rem; }
  .footer-row {
    flex-direction: column; gap: 4rem; font-size: clamp(14px, 1.4rem, 1.4rem); line-height: 1.8rem;
  }
  .footer-links { order: -1; gap: 0.6rem; }
}
/* /stp:base */
/* stp:hero */
.hero {
  display: flex; align-items: center; justify-content: center;
  min-height: 69.9rem; padding: 6.4rem;
  background: url('../img/hero.webp') center / cover no-repeat;
}
.hero-inner { width: 100%; max-width: 89.2rem; display: flex; flex-direction: column; align-items: flex-start; gap: 4rem; }
.hero h1 { font-family: var(--font-head); font-weight: 700; font-size: 6rem; line-height: 7.5rem; }
.hero p { font-weight: 500; font-size: 3.2rem; line-height: 4.2rem; }
.hero-btn { width: 33.7rem; height: 6.3rem; }
.store-btn { animation: store-float 3s ease-in-out infinite; }
.store-btn:hover { animation-play-state: paused; }

@media (max-width: 1024px) {
  .hero h1 { font-size: 5rem; line-height: 6.2rem; }
  .hero p { font-size: 2.6rem; line-height: 3.6rem; }
}

@media (max-width: 640px) {
  .hero { display: block; min-height: 65rem; padding: 7.2rem 2.4rem 14.9rem; background-image: url('../img/hero-m.webp'); background-position: center bottom; }
  .hero-inner { max-width: none; gap: 4rem; }
  .hero h1 { font-size: 3rem; line-height: 4rem; margin-bottom: -2rem; }
  .hero p { font-weight: 600; font-size: 2rem; line-height: 3rem; }
  .hero-btn { width: 100%; }
}
/* /stp:hero */
/* stp:features */
.features { margin-top: 10rem; padding: 0 6.4rem; }
.features h2, .how h2, .reviews h2, .about h2 {
  font-family: var(--font-head); font-weight: 600; font-size: 5rem; line-height: 6.5rem; text-align: center;
}
.features-grid { display: grid; grid-template-columns: repeat(2, 39.3rem); justify-content: center; gap: 4rem 6.4rem; margin-top: 4rem; }
.card {
  display: flex; flex-direction: column; gap: 1.6rem;
  padding: 2.4rem; background: var(--white); border-radius: 1.6rem; box-shadow: var(--shadow-card);
}
.card h3 { font-weight: 500; font-size: 3.2rem; line-height: 4.2rem; text-align: center; }
.card p { font-size: 2.4rem; line-height: 3rem; }

@media (max-width: 640px) {
  .features { margin-top: 5rem; padding: 0 2.4rem; }
  .features h2 { font-weight: 700; font-size: 3rem; line-height: 4rem; }
  .features-grid { grid-template-columns: 100%; gap: 2rem; margin-top: 2rem; }
  .card { gap: 1.6rem; padding: 2rem; }
  .card h3 { font-weight: 600; font-size: 2rem; line-height: 3rem; }
  .card p { font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 2rem; }
}
/* /stp:features */
/* stp:how-it-works */
.how { margin-top: 10rem; padding: 0 6.4rem; }
.how-rows { display: flex; flex-direction: column; gap: 4rem; margin-top: 4rem; }
.how-row { display: flex; align-items: flex-end; justify-content: center; gap: 6.4rem; }
.how-row p { width: 39.3rem; font-size: 2rem; line-height: 2.4rem; }
.how-row img { width: 45.4rem; height: auto; flex: none; }

@media (max-width: 640px) {
  .how { margin-top: 5rem; padding: 0 2.4rem; }
  .how h2 { font-weight: 700; font-size: 3rem; line-height: 4rem; }
  .how-rows { gap: 2rem; margin-top: 2rem; }
  .how-row { flex-direction: column; align-items: stretch; gap: 2rem; }
  .how-row:nth-child(odd) { flex-direction: column-reverse; }
  .how-row p { width: 100%; font-size: clamp(14px, 1.4rem, 1.4rem); line-height: 1.8rem; }
  .how-row img { width: 100%; }
}
/* /stp:how-it-works */
/* stp:reviews */
.reviews { margin-top: 10rem; padding: 0 6.4rem; }
.reviews-list { width: 100%; max-width: 117.6rem; margin: 4rem auto 0; display: flex; flex-direction: column; gap: 4rem; }
.review { background: var(--bg2); color: var(--white); }
.review h3 { text-align: left; }

@media (max-width: 640px) {
  .reviews { margin-top: 5rem; padding: 0 2.4rem; }
  .reviews h2 { font-weight: 700; font-size: 3rem; line-height: 4rem; }
  .reviews-list { margin-top: 2rem; gap: 2rem; }
  .review h3 { text-align: left; }
}
/* /stp:reviews */
/* stp:about */
.about { margin-top: 10rem; padding: 6.4rem; background: var(--bg2); color: var(--white); }
.about-row { display: flex; align-items: center; justify-content: center; gap: 6.4rem; }
.about-row img { width: 30rem; height: 53.5rem; flex: none; object-fit: cover; border-radius: 2.4rem; }
.about-text { flex: 1 1 auto; max-width: 85rem; display: flex; flex-direction: column; gap: 4rem; }
.about-text p { font-size: 2rem; line-height: 2.4rem; }

@media (max-width: 640px) {
  .about { margin-top: 5rem; padding: 4rem 2.4rem; }
  .about-row { flex-direction: column; align-items: center; gap: 2rem; }
  .about-text { flex: none; width: 100%; gap: 2rem; }
  .about h2 { font-weight: 700; font-size: 3rem; line-height: 4rem; }
  .about-text p { font-size: clamp(14px, 1.4rem, 1.4rem); line-height: 1.8rem; }
  .about-row img { width: 30rem; height: 53.5rem; }
}
/* /stp:about */
/* stp:legal */
.legal-body { min-height: 100vh; display: flex; flex-direction: column; background: var(--white); }
.legal-main { flex: 1 0 auto; padding-top: 6.1rem; }
.legal-header { height: 6.1rem; padding: 0 1rem; background: var(--white); justify-content: flex-start; }
.legal-close {
  display: flex; align-items: center; justify-content: center;
  width: 4.1rem; height: 4.1rem; background: var(--white);
}
.legal-close span { position: relative; display: block; width: 2.7rem; height: 2.7rem; }
.legal-close span::before, .legal-close span::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 100%; height: 0.2rem; background: var(--black);
  transition: background-color 0.3s;
}
.legal-close span::before { transform: translate(-50%, -50%) rotate(45deg); }
.legal-close span::after { transform: translate(-50%, -50%) rotate(-45deg); }
.legal-close:hover { opacity: 0.7; }
.legal-close:hover span::before, .legal-close:hover span::after { background: var(--bg2); }
.legal-page { padding: 2.4rem 4rem 4.7rem; }
.legal-content { max-width: 136rem; margin: 0 auto; color: var(--black); }
.legal-content h1 {
  font-family: var(--font-head); font-weight: 600; font-size: 5rem; line-height: 6.5rem;
  text-align: center; margin-bottom: 3rem;
}
.legal-content h2, .legal-content h3, .legal-content h4 {
  font-family: var(--font-body); font-weight: 700; font-size: 3rem; line-height: 3.6rem; margin: 3rem 0 1rem;
}
.legal-content h3 { font-size: 2.6rem; line-height: 3.2rem; }
.legal-content h4 { font-size: 2.4rem; line-height: 3rem; }
.legal-content p, .legal-content li { font-size: 2.4rem; line-height: 1.2; }
.legal-content p { margin: 0 0 3rem; }
.legal-content ul, .legal-content ol { margin: 0 0 3rem; padding-left: 4rem; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { margin: 0 0 1rem; }
.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 { color: var(--bg2); text-decoration: underline; overflow-wrap: anywhere; word-break: break-word; }
.legal-content a:hover { color: var(--bg2-light); text-decoration: none; }
.legal-body .footer { background: var(--white); color: var(--black); }
.legal-body .footer a:hover { color: var(--bg2); }

@media (max-width: 1024px) {
  .legal-page { padding: 2.4rem 3rem 4.7rem; }
}

@media (max-width: 640px) {
  .legal-main { padding-top: 4.4rem; }
  .legal-header { height: 4.4rem; padding: 0 1rem; }
  .legal-close { width: 2.4rem; height: 2.4rem; }
  .legal-close span { width: 1.6rem; height: 1.6rem; }
  .legal-page { padding: 1.6rem 0.8rem 4rem; }
  .legal-content h1 { font-weight: 700; font-size: 3rem; line-height: 4rem; margin-bottom: 2rem; }
  .legal-content h2, .legal-content h3, .legal-content h4 { font-size: 2rem; line-height: 2.4rem; margin: 2rem 0 0.8rem; }
  .legal-content p, .legal-content li { font-size: clamp(14px, 1.4rem, 1.4rem); line-height: 1.2; }
  .legal-content p { margin: 0 0 2rem; }
  .legal-content ul, .legal-content ol { margin: 0 0 2rem; padding-left: 2.4rem; }
  .legal-content li { margin: 0 0 0.8rem; }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on .ta-w { display: inline-block; white-space: nowrap; }
.anim-on .hero h1 .ta-w { opacity: 0; transform: translateY(-6rem) scale(0.9); transform-origin: 50% 100%; }
.anim-on .hero h1.is-in .ta-w {
  animation: ta-tile-drop 0.75s cubic-bezier(0.3, 0.6, 0.4, 1) both;
  animation-delay: calc(var(--i) * 0.09s);
}
.anim-on .hero h1.is-in .ta-accent {
  animation: ta-tile-drop 0.75s cubic-bezier(0.3, 0.6, 0.4, 1) both, ta-bloom 4.5s ease-in-out 2.2s infinite;
  animation-delay: calc(var(--i) * 0.09s), 2.2s;
}
@keyframes ta-tile-drop {
  0% { opacity: 0; transform: translateY(-6rem) scale(0.9); }
  45% { opacity: 1; transform: translateY(0) scale(1, 1); }
  60% { transform: translateY(0) scale(1.08, 0.86); }
  75% { transform: translateY(-1rem) scale(0.97, 1.04); }
  88% { transform: translateY(0) scale(1.02, 0.98); }
  100% { opacity: 1; transform: none; }
}
@keyframes ta-bloom {
  0%, 82%, 100% { transform: none; }
  88% { transform: scale(1.08) rotate(-3deg); }
  94% { transform: scale(0.98) rotate(2deg); }
}

.anim-on main section:not(.hero) h2 .ta-l { display: inline-block; opacity: 0; transform: translateX(-1.6rem) rotate(-12deg); }
.anim-on main section:not(.hero) h2 .ta-l:nth-child(even) { transform: translateX(1.6rem) rotate(12deg); }
.anim-on main section:not(.hero) h2.is-in .ta-l {
  animation: ta-swap-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(var(--i) * 0.045s);
}
@keyframes ta-swap-in {
  0% { opacity: 0; filter: blur(0.2rem); }
  60% { opacity: 1; filter: none; }
  100% { opacity: 1; transform: none; filter: none; }
}

@media (max-width: 640px) {
  .anim-on .hero h1 .ta-w { transform: translateY(-3.5rem) scale(0.9); }
  .anim-on .hero h1.is-in .ta-w { animation-duration: 0.6s; animation-delay: calc(var(--i) * 0.07s); }
  .anim-on .hero h1.is-in .ta-accent { animation-duration: 0.6s, 4.5s; animation-delay: calc(var(--i) * 0.07s), 2s; }
  .anim-on main section:not(.hero) h2 .ta-l { transform: translateX(-1rem) rotate(-10deg); }
  .anim-on main section:not(.hero) h2 .ta-l:nth-child(even) { transform: translateX(1rem) rotate(10deg); }
  .anim-on main section:not(.hero) h2.is-in .ta-l { animation-duration: 0.5s; }
}
/* /stp:title-anim */
