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

:root {
  --text: #3a2f1e;
  --accent: #c26226;
  --surface: #ede7d7;
  --bg: #f8f4eb;
  --font-body: 'Comfortaa', sans-serif;
  --font-head: 'Viaoda Libre', 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.menu-lock, html.menu-lock body { overflow: hidden; }

*, *::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);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

section > *:last-child { margin-bottom: 0; }

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

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

#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;
  height: 6rem;
  background: var(--bg);
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: 0 0.2rem 1.2rem rgba(58, 47, 30, 0.15); }

.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;
  position: relative;
  width: 4.4rem;
  height: 4.4rem;
  overflow: hidden;
  flex: 0 0 auto;
}
.logo img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6rem;
  height: 6rem;
  max-width: none;
  transform: translate(-50%, -50%);
}
.logo:hover { opacity: 0.75; }

.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); }

.burger-btn {
  display: none;
  position: relative;
  width: 4.4rem;
  height: 4.4rem;
  padding: 0;
  background: transparent;
  border: 0;
  z-index: 110;
}
.burger-btn span {
  position: absolute;
  left: 1rem;
  width: 2.4rem;
  height: 0.2rem;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s, background-color 0.3s;
}
.burger-btn span:nth-child(1) { top: calc(50% - 0.9rem); }
.burger-btn span:nth-child(2) { top: calc(50% - 0.1rem); }
.burger-btn span:nth-child(3) { top: calc(50% + 0.7rem); }
.burger-btn:hover span { background: var(--accent); }
.burger-btn.act span:nth-child(1) { top: calc(50% - 0.1rem); transform: rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { top: calc(50% - 0.1rem); transform: 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;
}
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
#mobile-menu .nav-link { font-size: clamp(14px, 2rem, 2rem); }

.footer {
  background: var(--text);
  color: var(--surface);
  text-align: center;
  padding: 4rem 16rem 1.6rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  font-size: clamp(14px, 1.8rem, 1.8rem);
}
.footer-links a:hover, .footer a:hover { color: var(--accent); }
.footer-copy {
  margin-top: 4rem;
  font-size: clamp(12px, 1.2rem, 1.2rem);
}

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

@media (max-width: 1024px) {
  .container { padding: 0 6rem; }
  .header-inner { padding: 0 6rem; }
  .footer { padding-left: 6rem; padding-right: 6rem; }
  .nav { width: 54.4rem; }
}

@media (max-width: 640px) {
  .container { padding: 0 1.6rem; }
  .section-title { font-size: 4.4rem; }
  .header { height: 8rem; }
  .header-inner { padding: 0 1.6rem; align-items: flex-start; }
  .logo { margin-top: 2rem; }
  .nav { display: none; }
  .burger-btn { display: block; margin-right: 1rem; margin-top: 2.6rem; }
  body { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .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); }
  #mobile-menu { padding-top: 8rem; }
}
/* /stp:base */
/* stp:hero */
.hero {
  position: relative;
  height: 75.9rem;
  overflow: hidden;
  padding-top: 19.8rem;
}
.hero-bg img {
  position: absolute;
  top: 0;
  left: -2.4rem;
  width: 146.4rem;
  height: 76.8rem;
  max-width: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 9.6rem;
  line-height: 1.2;
  white-space: nowrap;
}
.hero-subtitle {
  margin-top: 11.98rem;
  font-weight: 600;
  font-size: 2.8rem;
  line-height: 1.3;
}
.hero-text {
  max-width: 54.4rem;
  margin-top: 1.56rem;
  font-size: clamp(14px, 1.8rem, 1.8rem);
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .hero { height: 64rem; padding-top: 14rem; }
  .hero-bg img { left: 0; width: 100%; height: 100%; object-fit: cover; object-position: 85% 50%; }
  .hero-title { font-size: 7.2rem; }
  .hero-subtitle { margin-top: 5rem; font-size: 2.4rem; }
  .hero-text { max-width: 38rem; }
}

@media (max-width: 640px) {
  .hero { height: 81.2rem; padding-top: 10rem; text-align: center; }
  .hero-bg img { object-position: center top; }
  .hero-title { font-size: 6.4rem; }
  .hero-subtitle { margin-top: 7.22rem; font-size: 2.4rem; }
  .hero-text { max-width: none; margin-top: 1.6rem; font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:hero */
/* stp:about */
.about { padding: 8rem 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 3.2rem;
  align-items: start;
}
.about-text { display: flex; flex-direction: column; gap: 4.8rem; }
.about-text p { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; }
.about-img { width: 100%; height: auto; border-radius: 1.6rem; }

@media (max-width: 1024px) {
  .about { padding: 6rem 0; }
  .about-text { gap: 3.2rem; }
}

@media (max-width: 640px) {
  .about { padding: 6.4rem 0; }
  .about-grid { grid-template-columns: 1fr; row-gap: 3.2rem; }
  .about-text { gap: 4.8rem; }
  .about-text p { font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:about */
/* stp:features */
.features { padding: 8rem 0; }
.features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  column-gap: 3.2rem;
  row-gap: 3.2rem;
  margin-top: 4.8rem;
}
.feature-title {
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.5;
  color: var(--accent);
}
.feature p {
  margin-top: 0.4rem;
  font-size: clamp(14px, 1.8rem, 1.8rem);
  line-height: 1.5;
}
.features-img {
  width: 100%;
  height: auto;
  margin-top: 3.2rem;
  border-radius: 1.6rem;
}

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

@media (max-width: 640px) {
  .features { padding: 6.4rem 0; }
  .features-list { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .feature-title { font-size: clamp(14px, 1.8rem, 1.8rem); }
  .feature p { font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:features */
/* stp:how-it-works */
.how { padding: 8rem 0; background: var(--surface); }
.how .section-title { text-align: center; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 3.2rem;
  align-items: start;
  margin-top: 4.8rem;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
}
.step-title {
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.5;
  color: var(--accent);
}
.step img { width: 100%; height: auto; border-radius: 1.6rem; }
.step p { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; }

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

@media (max-width: 640px) {
  .how { padding: 6.4rem 0; }
  .steps { grid-template-columns: 1fr; row-gap: 3.2rem; }
  .step-title { font-size: clamp(14px, 1.8rem, 1.8rem); }
  .step p { font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:how-it-works */
/* stp:faq */
.faq { padding: 8rem 0; }
.faq-list { margin-top: 4.8rem; }
.faq-item + .faq-item {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--accent);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  list-style: none;
  cursor: pointer;
  transition: opacity 0.3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { opacity: 0.7; }
.faq-q {
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.5;
  color: var(--accent);
}
.faq-icon {
  position: relative;
  flex: 0 0 2.8rem;
  width: 2.8rem;
  height: 2.8rem;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
}
.faq-icon::before { left: 0.6rem; top: 1.3rem; width: 1.6rem; height: 0.2rem; }
.faq-icon::after { left: 1.3rem; top: 0.6rem; width: 0.2rem; height: 1.6rem; }
.faq-item[open] .faq-icon::after { display: none; }
.faq-item p {
  margin-top: 0.8rem;
  font-size: clamp(14px, 1.8rem, 1.8rem);
  line-height: 1.5;
}

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

@media (max-width: 640px) {
  .faq { padding: 6.4rem 0; }
  .faq-q { font-size: clamp(14px, 1.8rem, 1.8rem); }
  .faq-item p { font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:faq */
/* 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;
  font-size: clamp(14px, 1.8rem, 1.8rem);
  line-height: 1.5;
  color: var(--text);
}
.legal-content h1 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 6.4rem;
  line-height: 1.2;
}
.legal-content h2, .legal-content h3, .legal-content h4 {
  font-weight: 600;
  font-size: 2.8rem;
  line-height: 1.3;
  margin-top: 3.2rem;
}
.legal-content h3, .legal-content h4 { font-size: 2.4rem; }
.legal-content p, .legal-content ul, .legal-content ol { margin-top: 1.8rem; }
.legal-content h1 + p { margin-top: 1.8rem; }
.legal-content ul { list-style: disc; padding-left: 2.8rem; }
.legal-content ol { list-style: decimal; padding-left: 2.8rem; }
.legal-content li { margin-top: 0; }
.legal-content a { color: var(--accent); text-decoration: underline; }
.legal-content a:hover { color: var(--text); }
.legal-content strong, .legal-content b { font-weight: 600; }
.legal-content em, .legal-content i { font-style: italic; }
.legal-content u { text-decoration: underline; }

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

@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 { font-size: 4.4rem; }
  .legal-content h2 { font-size: 2.4rem; margin-top: 2.4rem; }
  .legal-content h3, .legal-content h4 { font-size: 2rem; margin-top: 2.4rem; }
  .legal-content p, .legal-content ul, .legal-content ol { margin-top: 1.6rem; }
  .legal-content ul, .legal-content ol { padding-left: 2.4rem; }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on .hero-title .ta-w,
.anim-on .section-title .ta-w { display: inline-block; white-space: nowrap; }
.anim-on .hero-title .ta-ch {
  display: inline-block;
  animation: ta-bloom 1.4s cubic-bezier(0.22, 1, 0.36, 1) calc(0.9s + var(--i, 0) * 0.09s) both;
}
.anim-on .hero-title .ta-glow { animation: ta-glow 6s ease-in-out 3.4s infinite; }
.anim-on .section-title .ta-w { opacity: 0; }
.anim-on .section-title.is-in .ta-w {
  animation: ta-wash 1.1s cubic-bezier(0.33, 1, 0.68, 1) calc(var(--i, 0) * 0.16s) both;
}

@keyframes ta-bloom {
  0% { opacity: 0; color: var(--accent); filter: blur(1.4rem); transform: translateY(0.8rem) scale(1.35); }
  45% { opacity: 0.85; color: var(--accent); filter: blur(0.3rem); }
  100% { opacity: 1; color: var(--text); filter: blur(0); transform: none; }
}
@keyframes ta-glow {
  0%, 70%, 100% { filter: drop-shadow(0 0 0 rgba(194, 98, 38, 0)); }
  85% { filter: drop-shadow(0 0 1.4rem rgba(194, 98, 38, 0.45)); }
}
@keyframes ta-wash {
  0% { opacity: 0; color: var(--accent); filter: blur(0.6rem); clip-path: inset(-0.3em 100% -0.3em -0.3em); transform: translateX(-0.8rem); }
  55% { opacity: 1; color: var(--accent); filter: blur(0.1rem); }
  100% { opacity: 1; color: var(--text); filter: blur(0); clip-path: inset(-0.3em -0.3em -0.3em -0.3em); transform: none; }
}

@media (max-width: 640px) {
  .anim-on .hero-title .ta-ch { animation-duration: 1.1s; animation-delay: calc(0.9s + var(--i, 0) * 0.07s); }
  .anim-on .section-title.is-in .ta-w { animation-duration: 0.9s; }
  @keyframes ta-bloom {
    0% { opacity: 0; color: var(--accent); filter: blur(1rem); transform: translateY(0.5rem) scale(1.2); }
    45% { opacity: 0.85; color: var(--accent); filter: blur(0.2rem); }
    100% { opacity: 1; color: var(--text); filter: blur(0); transform: none; }
  }
}
/* /stp:title-anim */

/* stp:hover */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .about-img, .features-img, .step img { transition: transform 0.4s ease, box-shadow 0.4s ease; }
  .about-img:hover, .features-img:hover, .step:hover img { transform: translateY(-0.6rem); box-shadow: 0 1.2rem 2.4rem rgba(194, 98, 38, 0.2); }
}
/* /stp:hover */
