/* stp:base */
:root {
  --bg: #1A1008;
  --surface: #291C0F;
  --primary: #C4621D;
  --accent: #E8A95C;
  --text: #F2E8D9;
  --font-head: 'Cormorant Garamond', serif;
  --font-body: 'Lora', 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(--text);
  background: var(--bg);
}
@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, figure { margin: 0; padding: 0; }

body { background: var(--bg); }

ul, ol { 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; }

h1, h2 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent);
}

h2 { font-size: 4.8rem; }

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

#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%;
  height: 6rem;
  z-index: 100;
  background: var(--bg);
  transition: box-shadow 0.3s ease-in-out;
}

.header.scrolled { box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.4); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  position: relative;
  flex: 0 0 auto;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 1rem;
  overflow: hidden;
}

.logo img {
  position: absolute;
  left: 50%;
  top: -13.64%;
  width: 129.5%;
  max-width: none;
  height: auto;
  transform: translateX(-50%);
}

.logo:hover { opacity: 0.8; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 54.4rem;
}

.nav-link { font-size: clamp(14px, 1.8rem, 1.8rem); }

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

.burger-btn {
  display: none;
  position: relative;
  flex: 0 0 auto;
  width: 6.4rem;
  height: 6.4rem;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 110;
}

.burger-btn span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.4rem;
  height: 0.2rem;
  margin: -0.1rem 0 0 -1.2rem;
  border-radius: 0.1rem;
  background: var(--text);
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.burger-btn span:nth-child(1) { transform: translateY(-0.8rem); }
.burger-btn span:nth-child(3) { transform: translateY(0.8rem); }

.burger-btn:hover span { background: var(--accent); }

.burger-btn.act span:nth-child(1) { transform: translateY(0) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translateY(0) rotate(-45deg); }

#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  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;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.2rem;
}

.menu-nav .nav-link { font-size: 2.4rem; }

.footer {
  padding: 4rem 0 1.6rem;
  background: var(--bg);
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}

.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 { color: var(--accent); }

.copyright { font-size: clamp(12px, 1.2rem, 1.2rem); }

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

@media (max-width: 640px) {
  h2 { font-size: 3.6rem; }

  .container { padding: 0 1.6rem; }

  .header { height: 8rem; }

  .nav { display: none; }

  .burger-btn { display: block; }

  .footer-links { font-size: clamp(14px, 1.6rem, 1.6rem); }

  .copyright { font-size: clamp(11px, 1.1rem, 1.1rem); }
}
/* /stp:base */
/* stp:hero */
.hero {
  height: 67.8rem;
  padding-top: 15rem;
  background: var(--bg) url(../img/hero.webp) right top / 145.8rem 75rem no-repeat;
  overflow: hidden;
}

.hero-title {
  font-size: 8.8rem;
  margin-bottom: 9.7rem;
}

.hero-subtitle {
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 1.6rem;
}

.hero-br { display: none; }

.hero-text {
  max-width: 44.8rem;
  font-size: clamp(14px, 1.8rem, 1.8rem);
}

@media (max-width: 1024px) {
  .hero {
    height: 56rem;
    padding-top: 12rem;
    background-size: cover;
    background-position: 25% top;
  }

  .hero-title {
    font-size: 7.2rem;
    margin-bottom: 6rem;
  }
}

@media (max-width: 640px) {
  .hero {
    height: 81.2rem;
    padding-top: 17.5rem;
    background-image: url(../img/hero-m.webp);
    background-size: cover;
    background-position: center top;
    text-align: center;
  }

  .hero-title {
    font-size: 6.4rem;
    margin-bottom: 4.5rem;
  }

  .hero-subtitle {
    font-size: 2.4rem;
    margin-bottom: 1.6rem;
  }

  .hero-br { display: inline; }

  .hero-text {
    max-width: none;
    font-size: clamp(14px, 1.6rem, 1.6rem);
  }
}
/* /stp:hero */
/* stp:about */
.about { padding: 8rem 0; }

.about-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 8rem;
  width: 44.8rem;
}

.about-details p { font-size: clamp(14px, 1.8rem, 1.8rem); }

.about-img {
  flex: 0 0 auto;
  width: 54.4rem;
}

.about-img img {
  width: 100%;
  height: auto;
  border-radius: 0.4rem;
}

@media (max-width: 1024px) {
  .about-inner { gap: 4rem; }

  .about-details {
    flex: 1 1 0;
    gap: 4rem;
    width: auto;
  }

  .about-img { width: 50%; }
}

@media (max-width: 640px) {
  .about { padding: 6.4rem 0; }

  .about-inner {
    flex-direction: column;
    gap: 3.2rem;
  }

  .about-details {
    flex: 0 0 auto;
    gap: 6.4rem;
    width: 100%;
  }

  .about-details p { font-size: clamp(14px, 1.6rem, 1.6rem); }

  .about-img { width: 100%; }
}
/* /stp:about */
/* stp:features */
.features {
  padding: 8rem 0;
  background: var(--surface);
}

.features h2 { margin-bottom: 8rem; }

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 6.4rem;
  max-width: 110.4rem;
}

.feature-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.feature-row-rev { flex-direction: row-reverse; }

.feature-details {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  width: 44.8rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.feature-item h3 {
  font-size: 2rem;
  font-weight: 500;
  color: var(--primary);
}

.feature-item p { font-size: clamp(14px, 1.8rem, 1.8rem); }

.feature-img {
  flex: 0 0 auto;
  width: 54.4rem;
}

.feature-img img {
  width: 100%;
  height: auto;
  border-radius: 0.4rem;
}

@media (max-width: 1024px) {
  .features h2 { margin-bottom: 4rem; }

  .feature-row { gap: 4rem; }

  .feature-details {
    flex: 1 1 0;
    width: auto;
  }

  .feature-img { width: 50%; }
}

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

  .features h2 { margin-bottom: 6.4rem; }

  .feature-list { gap: 3.2rem; }

  .feature-row,
  .feature-row-rev {
    flex-direction: column;
    align-items: stretch;
    gap: 3.2rem;
  }

  .feature-details {
    flex: 0 0 auto;
    width: 100%;
  }

  .feature-img { width: 100%; }

  .feature-item p { font-size: clamp(14px, 1.8rem, 1.8rem); }
}
/* /stp:features */
/* stp:how-it-works */
.how { padding: 8rem 0; }

.how h2 { margin-bottom: 8rem; }

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.2rem;
}

.how-step {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 2.4rem;
  border-radius: 0.4rem;
  background: var(--surface);
}

.how-step-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.6rem;
}

.how-step-head h3 {
  flex: 1 1 0;
  font-size: 2rem;
  font-weight: 500;
  color: var(--primary);
}

.how-step-head img {
  flex: 0 0 auto;
  width: 3.2rem;
  height: 6.2rem;
}

.how-step p { font-size: clamp(14px, 1.8rem, 1.8rem); }

@media (max-width: 1024px) {
  .how h2 { margin-bottom: 4rem; }

  .how-steps {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
}

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

  .how h2 { margin-bottom: 6.4rem; }

  .how-step-head h3 { font-size: clamp(14px, 1.8rem, 1.8rem); }

  .how-step p { font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:how-it-works */
/* stp:faq */
.faq {
  padding: 8rem 0;
  background: var(--surface);
}

.faq h2 { margin-bottom: 8rem; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.faq-item {
  padding: 2.4rem;
  border-radius: 0.4rem;
  background: var(--bg);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  cursor: pointer;
}

.faq-q h3 {
  flex: 1 1 0;
  font-size: 2rem;
  font-weight: 500;
  color: var(--primary);
}

.faq-q img {
  flex: 0 0 auto;
  width: 2.8rem;
  height: 2.8rem;
  transition: transform 0.3s ease-in-out;
}

.faq-item.closed .faq-q img { transform: rotate(180deg); }

.faq-a {
  padding-top: 1.6rem;
  font-size: clamp(14px, 1.8rem, 1.8rem);
}

.faq-a:empty { padding-top: 0; }

.faq-item.closed .faq-a { display: none; }

@media (max-width: 1024px) {
  .faq h2 { margin-bottom: 4rem; }
}

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

  .faq h2 { margin-bottom: 6.4rem; }

  .faq-q { gap: 0; }

  .faq-q h3 { font-size: clamp(14px, 1.8rem, 1.8rem); }

  .faq-a { 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;
  background: var(--surface);
}

.legal-page { padding: 8rem 0; }

.legal-content { font-size: clamp(14px, 1.8rem, 1.8rem); }

.legal-content h1 {
  margin-bottom: 2.7rem;
  font-size: 4.8rem;
  color: var(--text);
}

.legal-content h2,
.legal-content h3 {
  margin: 4rem 0 2.7rem;
  font-family: var(--font-body);
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
}

.legal-content h4 {
  margin: 2.7rem 0 1.4rem;
  font-family: var(--font-body);
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
}

.legal-content h2 + h3,
.legal-content h2 + h4,
.legal-content h3 + h4 { margin-top: 0; }

.legal-content p { margin: 0; }

.legal-content ul,
.legal-content ol { padding-left: 2.2rem; }

.legal-content ul { list-style: disc; }

.legal-content ol { list-style: decimal; }

.legal-content li { margin: 0; }

.legal-content a {
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

.legal-content a:hover { color: var(--accent); }

.legal-content strong { font-weight: 500; }

.legal-content em { font-style: italic; }

.legal-content u { text-decoration: underline; }

@media (max-width: 640px) {
  .legal-main { padding-top: 8rem; }

  .legal-page { padding: 4rem 0; }

  .legal-content { font-size: clamp(14px, 1.6rem, 1.6rem); }

  .legal-content h1 {
    margin-bottom: 2.4rem;
    font-size: 3.6rem;
  }

  .legal-content h2,
  .legal-content h3 {
    margin: 4rem 0 2.4rem;
    font-size: 2.4rem;
  }

  .legal-content h4 {
    margin: 2.4rem 0 1.2rem;
    font-size: 2rem;
  }

  .legal-content h2 + h3,
  .legal-content h2 + h4,
  .legal-content h3 + h4 { margin-top: 0; }
}
/* /stp:legal */
/* stp:title-anim */
.ta-hero {
  --ta-d: 1s;
  --ta-s: 0.11s;
  --ta-p: 0.55s;
  --ta-c: 2.4s;
}

.ta-sec {
  --ta-d: 0.1s;
  --ta-s: 0.06s;
  --ta-p: 0.4s;
  --ta-c: 1.3s;
}

.anim-on .ta-w {
  display: inline-block;
  white-space: nowrap;
}

.anim-on .ta-l {
  position: relative;
  display: inline-block;
  color: rgba(232, 169, 92, 0.14);
}

.anim-on .ta-l::after {
  content: attr(data-c);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  color: #FFF6E2;
  clip-path: inset(-3rem 100% -3rem -3rem);
  transform-origin: 50% 100%;
  pointer-events: none;
}

.anim-on .ta-hero .ta-l,
.anim-on .ta-sec.is-in .ta-l {
  animation: ta-set 0.25s linear calc(var(--ta-d) + var(--ta-c) + var(--i) * var(--ta-s)) forwards;
}

.anim-on .ta-hero .ta-l::after,
.anim-on .ta-sec.is-in .ta-l::after {
  animation-duration: var(--ta-p), var(--ta-c), 0.25s;
  animation-timing-function: cubic-bezier(0.45, 0, 0.2, 1), cubic-bezier(0.3, 0, 0.4, 1), linear;
  animation-fill-mode: forwards, both, forwards;
  animation-delay: calc(var(--ta-d) + var(--i) * var(--ta-s)), calc(var(--ta-d) + var(--i) * var(--ta-s)), calc(var(--ta-d) + var(--ta-c) + var(--i) * var(--ta-s));
}

.anim-on .ta-hero .ta-l::after { animation-name: ta-pour, ta-melt, ta-off; }

.anim-on .ta-sec.is-in .ta-l::after { animation-name: ta-pour, ta-cast, ta-off; }

@keyframes ta-pour {
  0% { clip-path: inset(-3rem 100% -3rem -3rem); }
  100% { clip-path: inset(-3rem -3rem -3rem -3rem); }
}

@keyframes ta-melt {
  0% {
    color: #FFF6E2;
    filter: drop-shadow(0 0 0.6rem #FFD58C) drop-shadow(0 0 1.8rem #C4621D);
    transform: scaleY(1.06);
  }
  20% {
    color: #FFE3A8;
    filter: drop-shadow(0 0 0.5rem #FFC56E) drop-shadow(0 0 1.5rem #C4621D);
    transform: scaleY(1);
  }
  50% {
    color: #F29A45;
    filter: drop-shadow(0 0 0.3rem rgba(255, 160, 80, 0.7)) drop-shadow(0 0 1rem rgba(196, 98, 29, 0.6));
  }
  75% {
    color: var(--primary);
    filter: drop-shadow(0 0 0.2rem rgba(196, 98, 29, 0.4)) drop-shadow(0 0 0.5rem rgba(196, 98, 29, 0.2));
  }
  100% {
    color: var(--accent);
    filter: drop-shadow(0 0 0 rgba(196, 98, 29, 0)) drop-shadow(0 0 0 rgba(196, 98, 29, 0));
    transform: scaleY(1);
  }
}

@keyframes ta-cast {
  0% {
    color: #FFE7B8;
    filter: drop-shadow(0 0 0.4rem rgba(255, 190, 110, 0.8));
  }
  45% {
    color: var(--primary);
    filter: drop-shadow(0 0 0.3rem rgba(196, 98, 29, 0.5));
  }
  100% {
    color: var(--accent);
    filter: drop-shadow(0 0 0 rgba(196, 98, 29, 0));
  }
}

@keyframes ta-set {
  to { color: var(--accent); }
}

@keyframes ta-off {
  to { opacity: 0; }
}

@media (max-width: 640px) {
  .ta-hero {
    --ta-s: 0.09s;
    --ta-c: 2s;
  }

  .ta-sec {
    --ta-s: 0.05s;
    --ta-c: 1.1s;
  }
}
/* /stp:title-anim */
