/* stp:base */
:root {
  --green: #4a7c59;
  --dgreen: #3b3f24;
  --beige: #e8c37f;
  --lbeige: #f5e6c8;
  --white: #ffffff;
  --black: #2b1f0e;
  --black-70: rgba(43, 31, 14, 0.7);
  --gray: #b5b5b5;
  --paper: #fffcf7;
  --sand: #e4dfcc;
  --olive: #505632;
  --olive-dark: #181b06;
  --bg: #181b06;
  --font-head: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
}

html { font-size: calc(100vw / 1440 * 10); overflow-x: hidden; overflow-y: scroll; font-family: var(--font-body); font-weight: 400; line-height: 1.5; color: var(--white); background: var(--lbeige); }
@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, h4, p, ul, ol, li, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; transition: color 0.3s ease-in-out, opacity 0.3s ease-in-out; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
body { min-width: 0; overflow-x: hidden; }
main { display: block; }

#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(--green); transition: box-shadow 0.3s ease-in-out; }
.header.scrolled { box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 6.6rem; padding: 0 8rem; }
.logo { display: block; width: 4rem; height: 4rem; flex: 0 0 auto; }
.logo:hover { opacity: 0.8; }
.logo img { width: 100%; height: 100%; }
.nav { display: flex; align-items: center; gap: 3.2rem; }
.nav-link { display: block; padding: 0.8rem 0; font-family: var(--font-head); font-weight: 500; font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.28; letter-spacing: 0.02em; color: var(--lbeige); text-align: center; white-space: nowrap; }
.nav-link:hover { color: var(--beige); }

.burger-btn { display: none; position: relative; z-index: 101; width: 4rem; height: 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: 3rem; height: 0.3rem; background: var(--white); transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; }
.burger-btn.act span:nth-child(1) { transform: translateY(0.9rem) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translateY(-0.9rem) rotate(-45deg); }

#mobile-menu { position: fixed; inset: 0; z-index: 99; display: flex; align-items: center; justify-content: center; padding-top: 5.6rem; background: var(--green); opacity: 0; pointer-events: none; transition: opacity 0.3s ease-in-out; }
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
.mobile-nav { display: flex; flex-direction: column; align-items: center; gap: 3.2rem; }

.footer { background: var(--beige); color: var(--black); }

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

@media (max-width: 640px) {
  .header-inner { height: 5.6rem; padding: 0 1.6rem; }
  .nav { display: none; }
  .burger-btn { display: flex; }
}
/* /stp:base */
/* stp:hero */
.hero { display: flex; align-items: flex-end; min-height: 81.2rem; padding: 6.6rem 8.4rem 9.6rem; background: linear-gradient(0deg, #505632 0%, rgba(80, 86, 50, 0) 18%), linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 100%), url(../img/hero.webp) center / cover no-repeat; }
.hero-text { display: flex; flex-direction: column; gap: 1rem; width: 58.2rem; }
.hero-title { font-family: var(--font-head); font-weight: 600; font-size: 7.2rem; line-height: 1.28; letter-spacing: 0.02em; color: var(--beige); }
.hero-desc { width: 55.1rem; max-width: 100%; font-size: clamp(14px, 1.8rem, 1.8rem); }

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

@media (max-width: 640px) {
  .hero { min-height: 81.2rem; padding: 5.6rem 1.6rem 3.2rem; background: linear-gradient(0deg, #505632 0%, rgba(80, 86, 50, 0) 18%), url(../img/hero-m.webp) center / cover no-repeat; }
  .hero-text { width: 100%; }
  .hero-title { font-size: 4.2rem; }
  .hero-desc { width: 100%; font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.4; }
}
/* /stp:hero */
/* stp:how-it-works */
.section-title { font-family: var(--font-head); font-weight: 600; font-size: 5.2rem; line-height: 1.28; letter-spacing: 0.02em; text-align: center; }

.how { padding: 9.6rem 0 7.2rem; background: linear-gradient(180deg, var(--olive) 0%, var(--olive-dark) 100%); }
.how .section-title { color: var(--lbeige); }
.how-list { display: flex; align-items: stretch; justify-content: center; gap: 4.8rem; margin-top: 4.8rem; }
.how-card { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; width: 30rem; min-height: 48.1rem; padding: 4rem 2.4rem; border-radius: 3.2rem; background: var(--dgreen); text-align: center; }
.how-head { display: flex; flex-direction: column; gap: 0.4rem; width: 100%; }
.how-step { font-size: clamp(14px, 1.8rem, 1.8rem); color: var(--gray); }
.how-name { font-weight: 600; font-size: 2.4rem; color: var(--beige); }
.how-img { width: 21rem; height: 16.4rem; object-fit: cover; flex: 0 0 auto; }
.how-text { width: 100%; font-size: clamp(14px, 1.8rem, 1.8rem); }

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

@media (max-width: 640px) {
  .section-title { font-size: 3.2rem; }
  .how { padding: 4.8rem 1.6rem 3.2rem; }
  .how-list { flex-direction: column; align-items: center; gap: 2.4rem; margin-top: 2.4rem; }
  .how-card { min-height: 0; padding: 2.4rem 1.6rem; }
  .how-card:first-child { padding: 2.4rem; }
  .how-step { font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.4; }
  .how-name { font-size: 2rem; }
  .how-text { font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.4; }
}
/* /stp:how-it-works */
/* stp:features */
.features { position: relative; overflow: hidden; background: var(--lbeige); color: var(--black); }
.features-decor { position: absolute; top: 0; left: 50%; z-index: 0; width: 100%; max-width: none; height: auto; transform: translateX(-50%); pointer-events: none; }
.features-inner { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 4.8rem; padding: 7.2rem 8.4rem; }
.features-hero { position: relative; z-index: 2; flex: 0 0 auto; width: 47.8rem; height: 71.7rem; object-fit: cover; transform: scaleX(-1); }
.features-info { position: relative; z-index: 1; display: flex; flex: 1 1 0; flex-direction: column; justify-content: center; gap: 3.2rem; min-width: 0; padding: 4.8rem 4rem; border-radius: 3.2rem; background: rgba(255, 255, 255, 0.6); -webkit-backdrop-filter: blur(0.7rem); backdrop-filter: blur(0.7rem); }
.features-info .section-title { text-align: left; }
.features-list { display: flex; flex-direction: column; gap: 2.4rem; }
.feature { display: flex; flex-direction: column; justify-content: center; gap: 0.4rem; }
.feature-name { font-weight: 600; font-size: 2.4rem; }
.feature-text { font-size: clamp(14px, 1.8rem, 1.8rem); color: var(--black-70); }

@media (max-width: 1024px) {
  .features-inner { flex-direction: column-reverse; align-items: stretch; padding: 7.2rem 4rem; }
  .features-hero { align-self: center; width: 32rem; height: 48rem; }
}

@media (max-width: 640px) {
  .features-decor { width: 144rem; max-width: none; }
  .features-inner { align-items: flex-end; gap: 2.4rem; padding: 3.2rem 1.6rem; }
  .features-hero { align-self: stretch; width: 100%; height: 51.5rem; }
  .features-info { gap: 2.4rem; padding: 2.4rem 1.6rem; }
  .features-list { gap: 1.6rem; }
  .feature-name { font-size: 2rem; }
  .feature-text { font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.4; }
}
/* /stp:features */
/* stp:testimonials */
.reviews { padding: 7.2rem 8.4rem; background: var(--lbeige); color: var(--black); }
.reviews-box { padding: 6.4rem; border-radius: 5.6rem; background: var(--sand); }
.reviews-box .section-title { color: var(--black); }
.reviews-list { display: flex; gap: 2.4rem; margin-top: 4.8rem; }
.review { display: flex; flex: 1 1 0; flex-direction: column; gap: 1.6rem; min-width: 0; padding: 3.2rem 2.4rem; border-radius: 2.4rem; background: var(--paper); }
.rating { display: flex; margin-bottom: 0.4rem; }
.rating img { width: 2.4rem; height: 2.4rem; }
.review-text { font-size: clamp(14px, 1.8rem, 1.8rem); color: var(--black-70); }
.review-author { margin-top: auto; font-size: clamp(14px, 1.8rem, 1.8rem); color: var(--black); text-align: right; }

@media (max-width: 1024px) {
  .reviews { padding: 7.2rem 4rem; }
  .reviews-box { padding: 4rem 3.2rem; }
  .reviews-list { flex-direction: column; gap: 1.6rem; }
}

@media (max-width: 640px) {
  .reviews { padding: 3.2rem 1.6rem; }
  .reviews-box { padding: 2.4rem 1.6rem; border-radius: 3.2rem; }
  .reviews-list { gap: 1.6rem; margin-top: 2.4rem; }
  .review { padding: 2.4rem; }
  .review-text { font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.4; }
  .review-author { font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.4; }
}
/* /stp:testimonials */
/* stp:gallery */
.gallery { padding: 7.2rem 0; background: var(--lbeige); color: var(--black); }
.gallery .section-title { color: var(--black); }
.gallery-slider { display: flex; flex-wrap: wrap; justify-content: center; gap: 3.2rem 1.6rem; margin-top: 4.8rem; }
.gallery-viewport { overflow: hidden; width: 100%; }
.gallery-track { display: flex; gap: 2.4rem; width: max-content; transition: transform 0.5s ease-in-out; }
.gallery-slide { flex: 0 0 auto; width: 86.4rem; height: 52.5rem; border-radius: 2.4rem; overflow: hidden; }
.gallery-slide img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.gallery-arrow { position: relative; width: 5.6rem; height: 5.6rem; padding: 0; border: 0; border-radius: 50%; background: var(--paper); transition: background-color 0.3s ease-in-out, opacity 0.3s ease-in-out; }
.gallery-arrow::before { content: ''; position: absolute; top: 50%; left: 50%; width: 1.4rem; height: 1.4rem; border-top: 2px solid var(--black); border-right: 2px solid var(--black); }
.gallery-prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.gallery-next::before { transform: translate(-70%, -50%) rotate(45deg); }
.gallery-arrow:hover { background: var(--beige); }
.gallery-arrow:disabled { opacity: 0.4; cursor: default; pointer-events: none; }

@media (max-width: 640px) {
  .gallery { padding: 3.2rem 0; }
  .gallery-slider { gap: 2.4rem 1.2rem; margin-top: 2.4rem; }
  .gallery-track { gap: 1.6rem; }
  .gallery-slide { width: 34.3rem; height: 20.8rem; }
  .gallery-arrow { width: 4rem; height: 4rem; }
  .gallery-arrow::before { width: 1rem; height: 1rem; }
}
/* /stp:gallery */
/* stp:faq */
.faq { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--olive) 0%, var(--olive-dark) 100%); }
.faq-decor { position: absolute; bottom: 0; left: 50%; z-index: 0; width: 100%; max-width: none; height: auto; transform: translateX(-50%); pointer-events: none; }
.faq-inner { position: relative; z-index: 1; padding: 7.2rem 8.4rem; }
.faq .section-title { color: var(--lbeige); }
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 2.4rem; width: 104rem; max-width: 100%; margin: 4.8rem auto 0; }
.faq-item { display: flex; flex-direction: column; gap: 1.6rem; padding: 2rem 2.4rem; border-radius: 1.2rem; background: var(--dgreen); }
.faq-q { cursor: pointer; font-weight: 600; font-size: 2rem; color: var(--lbeige); }
.faq-q:hover { color: var(--beige); }
.faq-a { padding-left: 1.6rem; font-size: clamp(14px, 1.8rem, 1.8rem); color: var(--white); }
.faq-item.closed .faq-a { display: none; }
.faq-item.closed { gap: 0; }

@media (max-width: 1024px) {
  .faq-inner { padding: 7.2rem 4rem; }
  .faq-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .faq-decor { width: auto; height: 28rem; }
  .faq-inner { padding: 3.2rem 1.6rem; }
  .faq-list { gap: 1.6rem; margin-top: 2.4rem; }
  .faq-q { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.4; }
  .faq-a { font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.4; }
}
/* /stp:faq */
/* stp:footer */
.footer { display: flex; flex-direction: column; gap: 4.8rem; padding: 5.6rem 0; font-size: clamp(14px, 1.8rem, 1.8rem); }
.footer-links { display: flex; align-items: center; justify-content: flex-end; gap: 6rem; padding: 0 8.8rem; }
.footer-links a:hover { color: var(--green); }
.footer-copy { text-align: center; }

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

@media (max-width: 640px) {
  .footer { gap: 1.6rem; padding: 4.8rem 1.6rem; font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.4; }
  .footer-links { flex-direction: column; justify-content: center; gap: 0.8rem; padding: 0; }
}
/* /stp:footer */
/* stp:legal */
.legal-body { min-height: 100vh; display: flex; flex-direction: column; background: var(--sand); }
.legal-main { flex: 1 0 auto; padding-top: 6.6rem; }
.legal-page { padding: 8rem 21.2rem; color: #35332c; }
.legal-content { display: flex; flex-direction: column; gap: 0.8rem; }
.legal-content h1 { margin-bottom: 3.2rem; font-family: var(--font-head); font-weight: 600; font-size: 5.2rem; line-height: 1.28; letter-spacing: 0.02em; text-align: center; }
.legal-content h2, .legal-content h3 { margin: 1.6rem 0 0.8rem; font-weight: 600; font-size: 2.4rem; line-height: 1.5; }
.legal-content h4 { margin: 1.6rem 0 0.8rem; font-weight: 600; font-size: 2rem; line-height: 1.5; }
.legal-content p, .legal-content li { font-size: clamp(14px, 1.8rem, 1.8rem); }
.legal-content ul, .legal-content ol { display: flex; flex-direction: column; gap: 0.8rem; padding-left: 2.4rem; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content a { text-decoration: underline; transition: color 0.3s ease-in-out; }
.legal-content a:hover { color: var(--green); }
.legal-content strong { font-weight: 600; }
.legal-content em { font-style: italic; }
.legal-content u { text-decoration: underline; }

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

@media (max-width: 640px) {
  .legal-main { padding-top: 5.6rem; }
  .legal-page { padding: 4.8rem 1.6rem; }
  .legal-content h1 { font-size: 3.2rem; }
  .legal-content h2 { font-size: 2rem; }
  .legal-content h3 { font-size: 2.4rem; }
  .legal-content h4 { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.4; }
  .legal-content p, .legal-content li { font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.4; }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on .ta-w { display: inline-block; white-space: nowrap; }
.anim-on .ta-c, .anim-on .ta-g { display: inline-block; transform-origin: 50% 100%; }

.anim-on .ta-hero { --ta-lift: -5.6rem; --ta-spread: 3.2rem; --ta-hop: -1.4rem; --ta-from: rgba(228, 223, 204, 0.5); --ta-peak: var(--lbeige); --ta-glow: rgba(232, 195, 127, 0.85); }
.anim-on .ta-hero .ta-c { animation: ta-place 0.75s ease-out calc(0.8s + var(--o) * 0.045s) both; }
.anim-on .ta-hero .ta-g { animation: ta-walk 0.6s ease-out calc(1.35s + var(--n) * 0.045s + var(--i) * 0.045s) both; }
.anim-on .ta-hero .ta-loop { animation: ta-walk 0.6s ease-out calc(1.35s + var(--n) * 0.045s + var(--i) * 0.045s) both, ta-stroll 7s ease-in-out calc(4s + var(--n) * 0.09s + var(--k) * 0.09s) infinite; }

.anim-on .ta-sec { --ta-spread: 1.6rem; --ta-hop: -0.8rem; --ta-from: var(--green); --ta-peak: var(--green); --ta-glow: rgba(74, 124, 89, 0.35); }
.anim-on .how .ta-sec, .anim-on .faq .ta-sec { --ta-from: var(--beige); --ta-peak: var(--lbeige); --ta-glow: rgba(232, 195, 127, 0.7); }
.anim-on .ta-sec .ta-c { opacity: 0; }
.anim-on .ta-sec.is-in .ta-c { animation: ta-snap 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--o) * 0.03s) both; }
.anim-on .ta-sec.is-in .ta-g { animation: ta-walk 0.5s ease-out calc(0.35s + var(--n) * 0.03s + var(--i) * 0.035s) both; }

@keyframes ta-place {
  0% { opacity: 0; transform: translate(calc(var(--x) * var(--ta-spread)), var(--ta-lift)) rotate(calc(var(--r) * 14deg)) scale(1.2); filter: drop-shadow(0 3.2rem 1.2rem rgba(0, 0, 0, 0.55)); animation-timing-function: cubic-bezier(0.2, 0.7, 0.4, 1); }
  45% { opacity: 1; transform: translate(0, -0.8rem) rotate(calc(var(--r) * 3deg)) scale(1.08); filter: drop-shadow(0 1.6rem 0.8rem rgba(0, 0, 0, 0.45)); animation-timing-function: cubic-bezier(0.6, 0, 0.9, 0.5); }
  68% { opacity: 1; transform: translateY(0.2rem) scale(1.1, 0.86); filter: drop-shadow(0 0.2rem 0.2rem rgba(0, 0, 0, 0.4)); animation-timing-function: ease-out; }
  84% { transform: translateY(0) scale(0.97, 1.04); }
  100% { opacity: 1; transform: none; filter: none; }
}

@keyframes ta-snap {
  0% { opacity: 0; transform: translate(calc(var(--x) * var(--ta-spread)), calc(var(--r) * 1.2rem)) rotate(calc(var(--r) * 12deg)) scale(0.8); }
  100% { opacity: 1; transform: none; }
}

@keyframes ta-walk {
  0% { color: var(--ta-from); transform: none; filter: none; }
  35% { color: var(--ta-peak); transform: translateY(var(--ta-hop)) rotate(-4deg); filter: drop-shadow(0 0 1rem var(--ta-glow)); }
  70% { transform: translateY(0.2rem) rotate(2deg); }
  100% { transform: none; filter: none; }
}

@keyframes ta-stroll {
  0%, 8%, 100% { transform: none; filter: none; }
  3% { transform: translateY(-1rem) rotate(-5deg); filter: drop-shadow(0 0 1rem var(--ta-glow)); }
  5.5% { transform: translateY(0.2rem) rotate(2deg); filter: drop-shadow(0 0 0.4rem var(--ta-glow)); }
}

@media (max-width: 640px) {
  .anim-on .ta-hero { --ta-lift: -3.2rem; --ta-spread: 1.6rem; --ta-hop: -0.8rem; }
  .anim-on .ta-hero .ta-c { animation-duration: 0.6s; }
  .anim-on .ta-sec { --ta-spread: 1rem; --ta-hop: -0.5rem; }
}
/* /stp:title-anim */
