/* stp:base */
:root {
  --bg: #FFFCF3;
  --text: #552800;
  --accent: #D54710;
  --surface: #FAF1D9;
  --primary: #6F5137;
  --hero-bg: #071308;
  --shadow: 0 0.6rem 1.6rem rgba(85, 40, 0, 0.1);
  --font: '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 { font-family: var(--font); font-weight: 400; line-height: 1.5; color: var(--text); }
html.menu-lock, html.menu-lock body { overflow: hidden; }

*, *::before, *::after { box-sizing: border-box; }

body { margin: 0; background: var(--bg); font-size: clamp(14px, 1.8rem, 1.8rem); }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.3s ease-in-out, opacity 0.3s ease-in-out; }
button { font: inherit; color: inherit; cursor: pointer; }

.container { width: 100%; max-width: 144rem; margin: 0 auto; padding: 0 16rem; }
.section-title { font-size: 4.8rem; font-weight: 800; line-height: 1.2; }

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

#mobile-menu { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.4rem; padding-top: 8rem; background: var(--bg); opacity: 0; pointer-events: none; transition: opacity 0.3s ease-in-out; }
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
#mobile-menu .nav-link { font-size: clamp(14px, 2.4rem, 2.4rem); font-weight: 700; }

.burger-btn { display: none; position: relative; z-index: 110; flex: 0 0 auto; width: 6.4rem; height: 6.4rem; margin: 1.6rem 0 0 auto; padding: 0; background: transparent; border: 0; }
.burger-btn span { position: absolute; left: 2rem; width: 2.4rem; height: 0.2rem; background: var(--text); transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, top 0.3s ease-in-out; }
.burger-btn span:nth-child(1) { top: 2.4rem; }
.burger-btn span:nth-child(2) { top: 3.2rem; }
.burger-btn span:nth-child(3) { top: 4rem; }
.burger-btn.act span:nth-child(1) { top: 3.2rem; transform: rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { top: 3.2rem; transform: rotate(-45deg); }

.nav-link:hover { color: var(--accent); }

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

@media (max-width: 640px) {
  body { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .container { padding: 0 1.6rem; }
  .section-title { font-size: 3.6rem; }
}
/* /stp:base */
/* stp:header */
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; background: var(--bg); transition: box-shadow 0.3s ease-in-out; }
.header.scrolled { box-shadow: 0 0.2rem 1.2rem rgba(85, 40, 0, 0.15); }
.header__inner { display: flex; align-items: center; height: 6rem; }
.logo { display: block; flex: 0 0 auto; width: 4.4rem; height: 4.4rem; border-radius: 1rem; overflow: hidden; }
.logo img { width: 100%; height: 100%; }
.logo:hover { opacity: 0.8; }
.nav { display: flex; justify-content: space-between; width: 54.4rem; margin-left: auto; }
.nav-link { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; }

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

@media (max-width: 640px) {
  .header__inner { align-items: flex-start; height: 8rem; }
  .logo { margin-top: 2rem; }
  .nav { display: none; }
  .burger-btn { display: block; }
}
/* /stp:header */
/* stp:hero */
.hero { height: 75.9rem; background: var(--hero-bg) url(../img/hero.webp) center / cover no-repeat; }
.hero__inner { padding-top: 12rem; }
.hero__logo { width: 44.8rem; height: auto; }
.hero__title { margin-top: 8rem; font-size: 2.8rem; font-weight: 700; line-height: 1.3; color: var(--bg); white-space: nowrap; }
.hero__text { width: 54.4rem; margin-top: 1.6rem; color: var(--bg); }

@media (max-width: 1024px) {
  .hero { background-position: 70% center; }
}

@media (max-width: 640px) {
  .hero { position: relative; height: 81.2rem; background-image: url(../img/hero-m.webp); background-position: center; }
  .hero__inner { padding-top: 11rem; text-align: center; }
  .hero__logo { width: 100%; }
  .hero__title { margin-top: 2.4rem; font-size: 2.4rem; white-space: normal; }
  .hero__text { width: 100%; margin-top: 1.2rem; }
}
/* /stp:hero */
/* stp:features */
.features { padding: 8rem 0; }
.split { display: flex; align-items: flex-start; justify-content: space-between; }
.split--rev { flex-direction: row-reverse; }
.split__text { width: 54.4rem; }
.split__img { flex: 0 0 auto; width: 44.8rem; }
.split__img img { width: 100%; height: auto; }
.features .split__img img { aspect-ratio: 448 / 536; object-fit: cover; }
.info-list { display: flex; flex-direction: column; gap: 1.6rem; margin-top: 5.2rem; }
.info-item { display: flex; flex-direction: column; gap: 0.4rem; }
.info-item__title { font-size: 2rem; font-weight: 700; line-height: 1.5; color: var(--accent); }

@media (max-width: 1024px) {
  .split { gap: 4rem; }
  .split__text { flex: 1; width: auto; min-width: 0; }
  .split__img { width: 36rem; }
}

@media (max-width: 640px) {
  .features { padding: 6.4rem 0; }
  .split, .split--rev { flex-direction: column; align-items: stretch; gap: 3.2rem; }
  .split__text { flex: none; width: 100%; }
  .split__img { width: 100%; }
  .info-item__title { font-size: clamp(14px, 1.8rem, 1.8rem); }
}
/* /stp:features */
/* stp:how-it-works */
.how { padding: 8rem 0; background: var(--surface); }

.how .split__img img { aspect-ratio: 448 / 560; object-fit: cover; }

@media (max-width: 640px) {
  .how { padding: 6.4rem 0; }
}
/* /stp:how-it-works */
/* stp:reviews */
.reviews { padding: 8rem 0; }
.reviews__head { display: flex; align-items: center; justify-content: space-between; }
.reviews__arrows { display: none; gap: 1.2rem; }
.reviews__arrow { position: relative; width: 4.4rem; height: 4.4rem; padding: 0; background: transparent; border: 1px solid var(--primary); border-radius: 50%; color: var(--primary); transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, opacity 0.3s ease-in-out; }
.reviews__arrow::before { content: ''; position: absolute; top: 50%; left: 50%; width: 0.9rem; height: 0.9rem; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translate(-70%, -50%) rotate(45deg); }
.reviews__prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.reviews__arrow:hover:not(:disabled) { background: var(--primary); color: var(--bg); }
.reviews__arrow:disabled { opacity: 0.35; cursor: default; }
.reviews__track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.2rem; margin-top: 5.2rem; }
.review-card { display: flex; flex-direction: column; gap: 2.4rem; padding: 2.4rem; background: var(--surface); border-radius: 2.4rem; box-shadow: var(--shadow); }
.review-card__top { display: flex; align-items: center; gap: 1.6rem; }
.review-card__avatar { flex: 0 0 auto; width: 5.2rem; height: 5.2rem; border-radius: 50%; overflow: hidden; }
.review-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-card__meta { flex: 1; min-width: 0; }
.review-card__name { font-size: 2rem; font-weight: 700; line-height: 1.5; color: var(--primary); white-space: nowrap; }
.review-card__stars { display: flex; gap: 0.4rem; margin-top: 0.4rem; }
.star { flex: 0 0 auto; width: 1.6rem; height: 1.6rem; background: url(../img/star.svg) center / contain no-repeat; }
.review-card__tag { display: flex; flex: 0 0 auto; align-items: center; gap: 0.4rem; padding: 0.6rem 1rem; background: var(--bg); border-radius: 10rem; color: var(--primary); font-size: clamp(12px, 1.2rem, 1.2rem); line-height: 1.5; }
.review-card__check { position: relative; width: 1.2rem; height: 1.2rem; }
.review-card__check::before { content: ''; position: absolute; top: 0.3rem; left: 0.2rem; width: 0.8rem; height: 0.4rem; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.review-card__text { margin-top: auto; }

@media (max-width: 1024px) {
  .reviews__arrows { display: flex; }
  .reviews__track { display: flex; gap: 3.2rem; margin: 4.2rem -4rem -3rem; padding: 1rem 4rem 3rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 4rem; scrollbar-width: none; }
  .reviews__track::-webkit-scrollbar { display: none; }
  .review-card { flex: 0 0 35.2rem; scroll-snap-align: start; }
}

@media (max-width: 640px) {
  .reviews { padding: 6.4rem 0; }
  .reviews__track { gap: 1.6rem; margin: 4.2rem -1.6rem -3rem; padding: 1rem 1.6rem 3rem; scroll-padding: 0 1.6rem; }
  .review-card { flex-basis: 30rem; }
  .review-card__meta { flex: 0 0 7.9rem; }
  .review-card__name { font-size: clamp(14px, 1.8rem, 1.8rem); }
}
/* /stp:reviews */
/* stp:faq */
.faq { padding: 8rem 0; background: var(--surface); }
.faq__list { display: flex; flex-direction: column; gap: 1.6rem; margin-top: 5.2rem; }
.faq-item { padding: 2.4rem; background: var(--bg); border-radius: 2.4rem; box-shadow: var(--shadow); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; cursor: pointer; }
.faq-title { font-size: 2rem; font-weight: 700; line-height: 1.5; color: var(--accent); }
.faq-icon { position: relative; flex: 0 0 auto; width: 2.8rem; height: 2.8rem; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; background: var(--accent); }
.faq-icon::before { top: 1.3rem; left: 0.6rem; width: 1.6rem; height: 0.2rem; }
.faq-icon::after { top: 0.6rem; left: 1.3rem; width: 0.2rem; height: 1.6rem; transform: rotate(90deg); transition: transform 0.3s ease-in-out; }
.faq-item.closed .faq-icon::after { transform: rotate(0deg); }
.faq-a { padding-top: 1.6rem; }
.faq-item.closed .faq-a { display: none; }

@media (max-width: 640px) {
  .faq { padding: 6.4rem 0; }
  .faq-title { font-size: clamp(14px, 1.8rem, 1.8rem); }
}
/* /stp:faq */
/* stp:footer */
.footer { padding: 4rem 1.6rem 1.6rem; background: var(--primary); color: var(--surface); text-align: center; }
.footer__links { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.footer__copy { margin-top: 4rem; font-size: clamp(12px, 1.2rem, 1.2rem); }
.footer a:hover { color: var(--bg); text-decoration: underline; }

@media (max-width: 640px) {
  .footer { padding: 4rem 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 h1 { margin: 0 0 2.7rem; font-size: 4.8rem; font-weight: 800; line-height: 1.2; }
.legal-content h2 { margin: 3.7rem 0 2.7rem; font-size: 2.8rem; font-weight: 700; line-height: 1.3; }
.legal-content h3 { margin: 2.7rem 0; font-size: 2rem; font-weight: 700; line-height: 1.3; }
.legal-content h4 { margin: 2.7rem 0; font-size: clamp(14px, 1.8rem, 1.8rem); font-weight: 700; line-height: 1.5; }
.legal-content p { margin: 0; }
.legal-content h1 + p { margin-bottom: 2.7rem; }
.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 a { color: var(--accent); text-decoration: underline; transition: color 0.3s ease-in-out; }
.legal-content a:hover { color: var(--primary); }
.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 > :last-child { margin-bottom: 0; }

@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 h1 { margin-bottom: 2.4rem; font-size: 3.6rem; }
  .legal-content h2 { margin: 5rem 0 2.4rem; font-size: 2.4rem; }
  .legal-content h3 { margin: 2.4rem 0; font-size: clamp(14px, 1.8rem, 1.8rem); }
  .legal-content h4 { margin: 2.4rem 0; font-size: clamp(14px, 1.6rem, 1.6rem); }
  .legal-content h1 + p, .legal-content ul, .legal-content ol { margin-bottom: 2.4rem; }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on .hero__title { --ta-x: 3rem; --ta-t: 0.95s; }
.anim-on .section-title { --ta-x: 4.8rem; --ta-y: 1.6rem; --ta-t: 0.85s; }
.anim-on .hero__title .ta-w, .anim-on .section-title .ta-w { position: relative; display: inline-block; white-space: nowrap; transform-origin: 50% 60%; }
.anim-on .hero__title .ta-c, .anim-on .section-title .ta-c { display: inline-block; transform-origin: 50% 60%; }
.anim-on .hero__title .ta-w::before, .anim-on .hero__title .ta-w::after, .anim-on .section-title .ta-w::after { content: attr(data-t); position: absolute; top: 0; left: 0; color: var(--accent); opacity: 0; pointer-events: none; }

.anim-on .hero__title .ta-c { opacity: 0; animation: ta-merge-core var(--ta-t) cubic-bezier(0.25, 0.8, 0.3, 1) calc(0.9s + var(--i) * 0.14s) both; }
.anim-on .hero__title .ta-w::before { animation: ta-merge-left var(--ta-t) cubic-bezier(0.45, 0, 0.3, 1) calc(0.9s + var(--i) * 0.14s) both; }
.anim-on .hero__title .ta-w::after { animation: ta-merge-right var(--ta-t) cubic-bezier(0.45, 0, 0.3, 1) calc(0.9s + var(--i) * 0.14s) both; }
.anim-on .hero__title .ta-loop { animation: ta-merge-bump 6s ease-in-out 3.2s infinite; }

.anim-on .section-title .ta-c { opacity: 0.12; transform: scale(0.92); }
.anim-on .section-title.is-in .ta-c { animation: ta-snap-core var(--ta-t) cubic-bezier(0.25, 0.8, 0.3, 1) calc(var(--i) * 0.14s) both; }
.anim-on .section-title.is-in .ta-w::after { animation: ta-snap-drag var(--ta-t) cubic-bezier(0.45, 0, 0.3, 1) calc(var(--i) * 0.14s) both; }

@keyframes ta-merge-left {
  0% { opacity: 0; transform: translateX(calc(var(--ta-x) * -1)) scale(0.9); }
  20% { opacity: 0.85; }
  55% { opacity: 0.85; transform: translateX(0) scale(0.9); }
  68% { opacity: 0; transform: translateX(0) scale(1.2); }
  100% { opacity: 0; transform: translateX(0) scale(1.2); }
}
@keyframes ta-merge-right {
  0% { opacity: 0; transform: translateX(var(--ta-x)) scale(0.9); }
  20% { opacity: 0.85; }
  55% { opacity: 0.85; transform: translateX(0) scale(0.9); }
  68% { opacity: 0; transform: translateX(0) scale(1.2); }
  100% { opacity: 0; transform: translateX(0) scale(1.2); }
}
@keyframes ta-merge-core {
  0%, 52% { opacity: 0; transform: scale(0.7); color: var(--accent); filter: drop-shadow(0 0 0 transparent); }
  62% { opacity: 1; transform: scale(1.24); color: var(--surface); filter: drop-shadow(0 0 1.2rem var(--accent)); }
  78% { transform: scale(0.94); }
  100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 0 transparent); }
}
@keyframes ta-merge-bump {
  0%, 86%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); }
  90% { transform: translateY(-0.2rem) scale(1.14); filter: drop-shadow(0 0 1rem var(--accent)); }
  94% { transform: scale(0.95); }
  97% { transform: scale(1.02); }
}
@keyframes ta-snap-drag {
  0% { opacity: 0; transform: translate(var(--ta-x), calc(var(--ta-y) * -1)) rotate(8deg) scale(1.05); }
  15% { opacity: 0.9; }
  55% { opacity: 0.9; transform: translate(0, 0) rotate(0deg) scale(1); }
  68% { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(1.15); }
  100% { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(1.15); }
}
@keyframes ta-snap-core {
  0%, 52% { opacity: 0.12; transform: scale(0.92); filter: drop-shadow(0 0 0 transparent); }
  62% { opacity: 1; transform: scale(1.12); color: var(--accent); filter: drop-shadow(0 0 0.8rem var(--accent)); }
  80% { transform: scale(0.97); }
  100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 0 transparent); }
}

@media (max-width: 640px) {
  .anim-on .hero__title { --ta-x: 2rem; --ta-t: 0.8s; }
  .anim-on .section-title { --ta-x: 2.4rem; --ta-y: 0.8rem; --ta-t: 0.7s; }
}
/* /stp:title-anim */
