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

:root {
  --primary: #473a28;
  --text: #2d2820;
  --accent: #09627b;
  --accent-dark: #053d4e;
  --surface: #e1dcc2;
  --bg: #f1f0eb;
  --font-head: 'Playfair Display SC', serif;
  --font-body: 'Lato', 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.menu-lock, html.menu-lock body { overflow: hidden; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { 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; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.3s, opacity 0.3s; }
button { font: inherit; cursor: pointer; }
ul, ol { 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; }

.container { width: 100%; max-width: 144rem; margin: 0 auto; padding: 0 16rem; }
.section-title { font-family: var(--font-head); font-size: 4.8rem; font-weight: 700; line-height: 1.2; color: var(--text); text-align: center; margin-bottom: 6.4rem; }

.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; background: var(--bg); transition: box-shadow 0.3s; }
.header.scrolled { box-shadow: 0 0.2rem 1.2rem rgba(45, 40, 32, 0.15); }
.header-inner { width: 100%; max-width: 144rem; margin: 0 auto; padding: 0 16rem; height: 6rem; display: flex; align-items: center; justify-content: space-between; }
.logo { display: block; width: 4.4rem; height: 4.4rem; border-radius: 0.8rem; overflow: hidden; flex: 0 0 auto; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.logo:hover { opacity: 0.8; }
.nav { width: 54.4rem; display: flex; align-items: center; justify-content: space-between; }
.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: 6.4rem; height: 6.4rem; flex: 0 0 auto; background: transparent; border: 0; z-index: 110; }
.burger-btn span { position: absolute; left: 2rem; width: 2.4rem; height: 2px; background: var(--text); transition: transform 0.3s, top 0.3s, opacity 0.3s, background 0.3s; }
.burger-btn span:nth-child(1) { top: calc(50% - 1px - 0.8rem); }
.burger-btn span:nth-child(2) { top: calc(50% - 1px); }
.burger-btn span:nth-child(3) { top: calc(50% - 1px + 0.8rem); }
.burger-btn:hover span { background: var(--accent); }
.burger-btn.act span:nth-child(1) { top: calc(50% - 1px); transform: rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { top: calc(50% - 1px); 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: 8rem 1.6rem 1.6rem; 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: 2.4rem; }

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

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

@media (max-width: 640px) {
  .container { padding: 0 1.6rem; }
  .section-title { font-size: 3.6rem; margin-bottom: 4.8rem; }
  .header-inner { height: 8rem; padding: 1.6rem; align-items: flex-start; }
  .logo { margin-top: 0.4rem; }
  .nav { display: none; }
  .burger-btn { display: block; }
}
/* /stp:base */
/* stp:hero */
.hero { min-height: 64.4rem; padding-top: 15rem; background: url('../img/hero.webp') right top / cover no-repeat; }
.hero-inner { width: 100%; max-width: 144rem; margin: 0 auto; padding: 0 16rem; }
.hero-title { font-family: var(--font-head); font-size: 7.2rem; font-weight: 700; line-height: 1.2; color: var(--primary); white-space: nowrap; }
.hero-subtitle { margin-top: 11.56rem; font-size: 2.8rem; font-weight: 700; line-height: 1.3; color: var(--text); }
.hero-text { max-width: 54.4rem; margin-top: 1.56rem; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }

@media (max-width: 1024px) {
  .hero-inner { padding: 0 4rem; }
  .hero-title { font-size: 6rem; }
  .hero-subtitle { margin-top: 8rem; font-size: 2.4rem; }
  .hero-text { max-width: 36rem; }
}

@media (max-width: 640px) {
  .hero { min-height: 81.2rem; padding-top: 12.3rem; background-image: url('../img/hero-m.webp'); background-position: center bottom; }
  .hero-inner { padding: 0 1.6rem; }
  .hero-title { font-size: 5.6rem; white-space: normal; }
  .hero-subtitle { margin-top: 3.16rem; font-size: 2.4rem; }
  .hero-text { max-width: none; margin-top: 0.78rem; font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:hero */
/* stp:how-it-works */
.how { padding: 8rem 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.2rem; align-items: start; }
.step { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; text-align: center; }
.step-title { font-size: 2.8rem; font-weight: 700; line-height: 1.3; color: var(--accent); }
.step-img { width: 100%; aspect-ratio: 352 / 365; object-fit: cover; border-radius: 0.6rem; }
.step-text { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--primary); }

@media (max-width: 640px) {
  .how { padding: 6.4rem 0; }
  .steps { grid-template-columns: 1fr; gap: 3.2rem; }
  .step-title { font-size: 2.4rem; }
  .step-img { aspect-ratio: 343 / 355; }
  .step-text { font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:how-it-works */
/* stp:features */
.features { padding: 8rem 0; }
.feature-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 3.2rem; }
.card { display: flex; flex-direction: column; gap: 1.6rem; padding: calc(2.4rem - 1px); border: 1px solid var(--text); border-radius: 0.6rem; }
.feature { display: flex; flex-direction: column; gap: 0.4rem; }
.feature-title { font-size: 2rem; font-weight: 600; line-height: 1.5; color: var(--accent); }
.feature-text { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--primary); }
.features-img { width: 100%; aspect-ratio: 1120 / 487; object-fit: cover; margin-top: 3.2rem; border-radius: 0.6rem; outline: 1px solid var(--text); outline-offset: -1px; }

@media (max-width: 640px) {
  .features { padding: 6.4rem 0; }
  .feature-cards { grid-template-columns: 1fr; gap: 1.6rem; }
  .feature-title { font-size: clamp(14px, 1.8rem, 1.8rem); }
  .feature-text { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .features-img { aspect-ratio: 343 / 150; }
}
/* /stp:features */
/* stp:reviews */
.reviews { padding: 8rem 0; }
.reviews-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.2rem; }
.review { margin: 0; }
.review-stars { font-size: 2.8rem; font-weight: 700; line-height: 1.3; color: var(--primary); }
.review-text { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--primary); }
.review-name { font-size: 2rem; font-weight: 600; line-height: 1.5; color: var(--accent); text-align: right; }

@media (max-width: 1024px) {
  .reviews-list { grid-template-columns: 1fr; max-width: 60rem; margin: 0 auto; }
}

@media (max-width: 640px) {
  .reviews { padding: 6.4rem 0; }
  .reviews .container { padding: 0; }
  .reviews .section-title { padding: 0 1.6rem; }
  .reviews-list { display: flex; gap: 1.6rem; max-width: none; margin: 0; padding: 0 1.6rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 1.6rem; scrollbar-width: none; }
  .reviews-list::-webkit-scrollbar { display: none; }
  .review { flex: 0 0 30rem; scroll-snap-align: start; }
  .review-stars { font-size: 2.4rem; }
  .review-text { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .review-name { font-size: clamp(14px, 1.8rem, 1.8rem); }
}
/* /stp:reviews */
/* stp:faq */
.faq { padding: 8rem 0; }
.faq-list { display: flex; flex-direction: column; gap: 1.6rem; }
.faq-item { padding: calc(2.4rem - 1px); border: 1px solid var(--text); border-radius: 0.6rem; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; min-height: 3rem; list-style: none; cursor: pointer; font-size: 2rem; font-weight: 600; line-height: 1.5; color: var(--accent); transition: color 0.3s; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--accent-dark); }
.faq-arrow { display: flex; align-items: center; justify-content: center; flex: 0 0 2.8rem; width: 2.8rem; height: 2.8rem; }
.faq-arrow img { width: 2rem; height: 1rem; transition: transform 0.3s; }
.faq-item[open] .faq-arrow img { transform: rotate(180deg); }
.faq-a { margin-top: 1.6rem; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--primary); }

@media (max-width: 640px) {
  .faq { padding: 6.4rem 0; }
  .faq-q { font-size: clamp(14px, 1.8rem, 1.8rem); }
  .faq-a { font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:faq */
/* stp:footer */
.footer { display: flex; flex-direction: column; align-items: center; gap: 4rem; padding: 4rem 16rem 1.6rem; background: var(--text); color: var(--surface); text-align: center; }
.footer-links { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; }
.footer a:hover { color: var(--bg); text-decoration: underline; }
.footer-copy { font-size: clamp(12px, 1.2rem, 1.2rem); line-height: 1.5; }

@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: 14rem 0 8rem; }
.legal-page { width: 100%; max-width: 144rem; margin: 0 auto; padding: 0 16rem; }
.legal-content { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }
.legal-content h1 { margin-bottom: 2.7rem; font-family: var(--font-head); font-size: 4.8rem; font-weight: 700; line-height: 1.2; color: var(--text); }
.legal-content h2 { margin: 0.9rem 0 2.7rem; font-size: 2.8rem; font-weight: 700; line-height: 1.3; color: var(--text); }
.legal-content h3, .legal-content h4 { font-size: 2rem; font-weight: 600; line-height: 1.5; color: var(--text); }
.legal-content p { margin-bottom: 2.7rem; }
.legal-content h3 + p, .legal-content h4 + p { margin-top: 0; }
.legal-content ul, .legal-content ol { margin: 0 0 2.7rem; padding-left: 2.4rem; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { margin-bottom: 0.4rem; }
.legal-content a { color: var(--accent); text-decoration: underline; }
.legal-content a:hover { color: var(--accent-dark); }
.legal-content strong { font-weight: 700; }
.legal-content em { font-style: normal; }
.legal-content u { text-decoration: underline; }

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

@media (max-width: 640px) {
  .legal-main { padding: 12rem 0 4rem; }
  .legal-page { padding: 0 1.6rem; }
  .legal-content { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .legal-content h1 { margin-bottom: 2.4rem; font-size: 3.6rem; }
  .legal-content h2 { margin: 0.8rem 0 2.4rem; font-size: 2.4rem; }
  .legal-content h3, .legal-content h4 { font-size: clamp(14px, 1.8rem, 1.8rem); }
  .legal-content p, .legal-content ul, .legal-content ol { margin-bottom: 2.4rem; }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on .ta-w { position: relative; display: inline-block; white-space: nowrap; }
.anim-on .ta-w::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0.08em; height: 0.2rem; background: repeating-linear-gradient(90deg, var(--accent) 0 0.8rem, transparent 0.8rem 1.3rem); transform: scaleX(0); transform-origin: left center; opacity: 0; pointer-events: none; }
.anim-on .ta-l { display: inline-block; transform-origin: 0 100%; }

.anim-on .hero-title .ta-w::after { animation: ta-guide 2.4s cubic-bezier(0.65, 0, 0.35, 1) calc(0.9s + var(--w) * 0.35s) both; }
.anim-on .hero-title .ta-l { animation: ta-plank 0.7s cubic-bezier(0.34, 1.45, 0.64, 1) calc(1.05s + var(--i) * 0.07s) both; }

.anim-on .section-title .ta-w { opacity: 0; transform-origin: 0 100%; }
.anim-on .section-title.is-in .ta-w { animation: ta-place 0.65s cubic-bezier(0.34, 1.35, 0.64, 1) calc(0.2s + var(--w) * 0.12s) both; }
.anim-on .section-title.is-in .ta-w::after { animation: ta-guide 1.7s cubic-bezier(0.65, 0, 0.35, 1) calc(var(--w) * 0.12s) both; }

@keyframes ta-guide {
  0% { transform: scaleX(0); opacity: 0.9; }
  20% { transform: scaleX(1); opacity: 0.9; }
  75% { transform: scaleX(1); opacity: 0.9; }
  100% { transform: scaleX(1); opacity: 0; }
}
@keyframes ta-plank {
  0% { opacity: 0; color: var(--accent); transform: translateY(-0.55em) rotate(-12deg); filter: blur(0.15rem); }
  55% { opacity: 1; color: var(--accent); transform: translateY(0.05em) rotate(2deg); filter: blur(0); }
  100% { opacity: 1; color: var(--primary); transform: none; filter: blur(0); }
}
@keyframes ta-place {
  0% { opacity: 0; color: var(--accent); transform: translateY(-0.4em) rotate(-4deg); }
  60% { opacity: 1; color: var(--accent); transform: translateY(0.04em) rotate(0.6deg); }
  100% { opacity: 1; color: var(--text); transform: none; }
}

@media (max-width: 640px) {
  .anim-on .ta-w::after { height: 0.15rem; background: repeating-linear-gradient(90deg, var(--accent) 0 0.6rem, transparent 0.6rem 1rem); }
  .anim-on .hero-title .ta-l { animation-duration: 0.6s; animation-delay: calc(0.95s + var(--i) * 0.055s); }
  .anim-on .hero-title .ta-w::after { animation-duration: 2s; animation-delay: calc(0.8s + var(--w) * 0.3s); }
  .anim-on .section-title.is-in .ta-w { animation-duration: 0.55s; }
}
/* /stp:title-anim */

/* stp:hover */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .step-img, .features-img, .card { transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease; }
  .step:hover .step-img, .features-img:hover { transform: translateY(-0.6rem); box-shadow: 0 1.2rem 2.4rem rgba(9, 98, 123, 0.18); }
  .card:hover { transform: translateY(-0.4rem); border-color: var(--accent); box-shadow: 0 1rem 2rem rgba(71, 58, 40, 0.12); }
  .step-title { transition: color 0.3s; }
  .step:hover .step-title { color: var(--accent-dark); }
}
/* /stp:hover */
