/* stp:base */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=DM+Sans:wght@400;700&display=swap');

:root {
  --bg: #081914;
  --card: #164335;
  --gold: #c8a35a;
  --green: #3f8d77;
  --text: #f5f1e8;
  --font-head: 'Cormorant Garamond', serif;
  --font-body: 'DM Sans', 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-body);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

html.menu-lock, html.menu-lock body { overflow: hidden; }

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

body {
  margin: 0;
  font-size: clamp(14px, 1.6rem, 1.6rem);
  background: var(--bg);
}

h1, h2, h3, p { margin: 0; }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

button { font: inherit; color: inherit; cursor: pointer; }

main { display: block; }

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

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

main > section + section { margin-top: 15rem; }

.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 4.6rem;
  line-height: 4.9rem;
  text-align: center;
  color: var(--gold);
  margin-bottom: 2.8rem;
}

.card-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 2.2rem;
  line-height: 1.2;
  color: var(--green);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 3.6rem 8rem 0;
  border-bottom: 1px solid transparent;
  transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.header.scrolled {
  padding: 1.6rem 8rem;
  background: var(--bg);
  box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.45);
  border-bottom-color: rgba(200, 163, 90, 0.35);
}

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

.nav-link {
  transition: color 0.3s ease;
}

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

.burger-btn {
  display: none;
  position: relative;
  flex: 0 0 auto;
  width: 4.8rem;
  height: 4.8rem;
  padding: 0;
  margin-left: auto;
  background: transparent;
  border: 0;
  z-index: 110;
  transition: opacity 0.3s ease;
}

.burger-btn:hover { opacity: 0.7; }

.burger-btn span {
  position: absolute;
  left: 0.6rem;
  width: 3.6rem;
  height: 0.3rem;
  background: var(--gold);
  transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease;
}

.burger-btn span:nth-child(1) { top: 1.2rem; }
.burger-btn span:nth-child(2) { top: 2.25rem; }
.burger-btn span:nth-child(3) { top: 3.3rem; }

.burger-btn.act span:nth-child(1) { top: 2.25rem; transform: rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { top: 2.25rem; 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;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#mobile-menu.opened {
  opacity: 1;
  pointer-events: auto;
}

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

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

@media (max-width: 640px) {
  .container { padding: 0 2rem; }
  main > section + section { margin-top: 8rem; }
  .section-title { margin-bottom: 2.4rem; }
  .header { padding: 4.2rem 4.2rem 0; }
  .header.scrolled { padding: 1.2rem 4.2rem; }
  .nav { display: none; }
  .burger-btn { display: block; }
}
/* /stp:base */
/* stp:hero */
.hero {
  padding: 26.8rem 8rem 23.4rem;
  background: var(--bg) url(../img/hero.webp) center / cover no-repeat;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5.4rem;
  width: 63rem;
}

.hero__title { width: 100%; }

.hero__title img {
  width: 100%;
  height: auto;
  aspect-ratio: 2112 / 900;
}

.store-btn {
  display: block;
  animation: store-float 3s ease-in-out infinite;
  transition: filter 0.3s ease;
}

.store-btn:hover {
  filter: brightness(1.2);
  animation-play-state: paused;
}

.hero__store img {
  width: 24.3rem;
  height: 7rem;
}

@media (max-width: 1024px) {
  .hero {
    padding: 18.6vw 4rem 16.25vw;
  }
  .hero__content {
    width: 43.75vw;
    gap: 3.75vw;
  }
  .hero__store img {
    width: 16.9vw;
    height: 4.9vw;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: clamp(36rem, calc(100svh - 34rem), 48.2rem) 2rem 6.3rem;
    background-image: url(../img/hero-m.webp);
    background-position: center bottom;
  }
  .hero__content {
    width: 100%;
    gap: 4.2rem;
  }
  .hero__store img {
    width: 24.3rem;
    height: 7rem;
  }
}
/* /stp:hero */
/* stp:about */
.about__content {
  display: flex;
  align-items: center;
  gap: 12.8rem;
  max-width: 106.4rem;
  margin: 0 auto;
}

.about__image {
  flex: 0 0 auto;
  width: 41.4rem;
  height: auto;
  aspect-ratio: 414 / 243;
}

.about__text { flex: 1 1 0; }

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

@media (max-width: 640px) {
  .about__content {
    flex-direction: column;
    align-items: stretch;
    gap: 1.6rem;
    max-width: none;
  }
  .about__image {
    width: calc(100% + 4rem);
    max-width: none;
    margin: 0 -2rem;
    aspect-ratio: 375 / 220;
  }
}
/* /stp:about */
/* stp:features */
.features {
  padding: 11.2rem 0;
  background: url(../img/features-1.webp) center / 100% 100% no-repeat;
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr 23.7rem 1fr;
  row-gap: 6rem;
  align-items: start;
}

.features__cards {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  width: 100%;
  height: auto;
  aspect-ratio: 237 / 146;
}

.feature {
  display: flex;
  gap: 0.8rem;
}

.feature:nth-of-type(1) { grid-column: 1; grid-row: 1; }
.feature:nth-of-type(2) { grid-column: 1; grid-row: 2; }
.feature:nth-of-type(3) { grid-column: 3; grid-row: 1; }
.feature:nth-of-type(4) { grid-column: 3; grid-row: 2; }

.feature__icon {
  flex: 0 0 auto;
  width: 8.6rem;
  height: 8.6rem;
  border-radius: 2rem;
}

.feature__text {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  flex: 1 1 0;
}

@media (max-width: 1024px) {
  .features {
    background-size: cover;
  }
  .features__grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 4rem;
  }
  .features__cards {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 33.5rem;
    justify-self: center;
    margin-bottom: 2rem;
  }
  .feature:nth-of-type(1) { grid-column: 1; grid-row: 2; }
  .feature:nth-of-type(2) { grid-column: 1; grid-row: 3; }
  .feature:nth-of-type(3) { grid-column: 2; grid-row: 2; }
  .feature:nth-of-type(4) { grid-column: 2; grid-row: 3; }
}

@media (max-width: 640px) {
  .features {
    padding: 0;
    background: none;
  }
  .features__grid {
    grid-template-columns: 1fr;
    row-gap: 1.6rem;
  }
  .features__cards {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    margin-bottom: -0.6rem;
  }
  .feature:nth-of-type(1) { grid-column: 1; grid-row: 2; }
  .feature:nth-of-type(2) { grid-column: 1; grid-row: 3; }
  .feature:nth-of-type(3) { grid-column: 1; grid-row: 4; }
  .feature:nth-of-type(4) { grid-column: 1; grid-row: 5; }
}
/* /stp:features */
/* stp:how-it-works */
.how {
  padding: 6.6rem 0 6.5rem;
  background: url(../img/how-it-works-1.webp) center / 100% 100% no-repeat;
}

.how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step {
  display: flex;
  min-height: 40rem;
  padding: 1.2rem;
  box-shadow: inset 0 0 0 1px var(--gold);
  border-radius: 4.4rem;
}

.step__frame {
  display: flex;
  flex: 1 1 0;
  padding: 0.6rem;
  box-shadow: inset 0 0 0 1px var(--gold);
  border-radius: 3.2rem;
}

.step__card {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 1.4rem;
  padding: 0.6rem;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--gold);
  border-radius: 2.6rem;
}

.step__image {
  width: 100%;
  height: auto;
  aspect-ratio: 365 / 209;
  object-fit: cover;
  border-radius: 2rem;
}

.step__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}

.step__text .card-title { line-height: 2.1rem; }

@media (max-width: 1024px) {
  .how {
    background-size: cover;
  }
  .how__steps { gap: 1.6rem; }
  .step { padding: 0.8rem; border-radius: 3.2rem; }
  .step__frame { padding: 0.4rem; border-radius: 2.4rem; }
  .step__card { padding: 0.4rem; border-radius: 2rem; gap: 1rem; }
  .step__image { border-radius: 1.4rem; }
}

@media (max-width: 640px) {
  .how {
    padding: 0;
    background: none;
  }
  .how__steps {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
  .step {
    min-height: 35.5rem;
    padding: 1.2rem;
    border-radius: 4.4rem;
  }
  .step__frame { padding: 0.6rem; border-radius: 3.2rem; }
  .step__card { padding: 0.6rem; border-radius: 2.6rem; gap: 1.4rem; }
  .step__image { border-radius: 2rem; aspect-ratio: 287 / 164; }
}
/* /stp:how-it-works */
/* stp:reviews */
.reviews__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.review {
  display: flex;
  padding: 1rem;
  box-shadow: inset 0 0 0 1px var(--gold);
  border-radius: 4.4rem;
}

.review__frame {
  display: flex;
  flex: 1 1 0;
  padding: 0.6rem;
  box-shadow: inset 0 0 0 1px var(--gold);
  border-radius: 3.2rem;
}

.review__card {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  gap: 1.2rem;
  padding: 1.8rem 0.4rem 1.8rem 1.8rem;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--gold);
  border-radius: 2.6rem;
}

.review__avatar {
  flex: 0 0 auto;
  width: 9.8rem;
  height: 9.8rem;
  border-radius: 2rem;
}

.review__text {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 0.8rem;
}

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

@media (max-width: 640px) {
  .reviews__list {
    max-width: none;
    gap: 1.6rem;
  }
  .review__card { padding: 1.4rem 1.8rem; }
}
/* /stp:reviews */
/* stp:footer */
.footer {
  margin-top: 15rem;
  padding: 4.6rem 8rem;
  background: var(--gold);
  color: var(--bg);
}

.footer__links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 2.2rem;
  line-height: 2.9rem;
}

.footer__links a { transition: color 0.3s ease; }

.footer a:hover { color: var(--card); }

.footer__copy {
  margin-top: 5rem;
  padding: 0 17.4rem 0 12.8rem;
  font-size: clamp(12px, 1.2rem, 1.2rem);
  line-height: 1.4rem;
  text-align: center;
}

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

@media (max-width: 640px) {
  .footer {
    margin-top: 8rem;
    padding: 4.5rem 2rem;
  }
  .footer__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    line-height: 1.2;
  }
  .footer__copy {
    margin-top: 3.5rem;
    padding: 0;
    line-height: 1.5;
    text-align: left;
  }
}
/* /stp:footer */
/* stp:legal */
.legal-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-main {
  flex: 1 0 auto;
  padding-top: 9.6rem;
}

.legal-body .header,
.legal-body .header.scrolled { padding-left: 18rem; padding-right: 18rem; }

.legal-body .footer {
  margin-top: 10rem;
  padding-left: 18rem;
  padding-right: 18rem;
}

.legal-page {
  width: 100%;
  max-width: 144rem;
  margin: 0 auto;
  padding: 0 18rem;
}

.legal-content h1 {
  margin-bottom: 2.8rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 4.6rem;
  line-height: 4.9rem;
  text-align: center;
  color: var(--gold);
}

.legal-content h2,
.legal-content h3,
.legal-content h4 {
  margin: 2.4rem 0 0;
  font-weight: 700;
  font-size: 1em;
  line-height: 1.5;
}

.legal-content p { margin: 0; }

.legal-content ul,
.legal-content ol {
  margin: 0;
  padding-left: 2.4rem;
}

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

.legal-content strong { font-weight: 700; }
.legal-content em { font-style: italic; }
.legal-content u { text-decoration: underline; }

.legal-content a {
  color: var(--gold);
  text-decoration: underline;
  transition: color 0.3s ease;
}

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

@media (max-width: 1024px) {
  .legal-body .header,
  .legal-body .header.scrolled { padding-left: 4rem; padding-right: 4rem; }
  .legal-body .footer { padding-left: 4rem; padding-right: 4rem; }
  .legal-page { padding: 0 4rem; }
}

@media (max-width: 640px) {
  .legal-main { padding-top: 11.6rem; }
  .legal-body .header,
  .legal-body .header.scrolled { padding-left: 4.2rem; padding-right: 4.2rem; }
  .legal-body .footer {
    margin-top: 8rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .legal-page { padding: 0 2rem; }
  .legal-content h1 { margin-bottom: 2.4rem; }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on .hero__title {
  position: relative;
  perspective: 120rem;
}

.anim-on .hero__title > img { opacity: 0; }

.anim-on .hero__title.is-set > img { opacity: 1; }

.anim-on .hero__title.is-set .ta-band { display: none; }

.ta-band,
.ta-glint {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ta-band {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  opacity: 0;
  animation: ta-deal 1.3s cubic-bezier(0.4, 0.1, 0.3, 1) calc(0.8s + var(--i) * 0.24s) both;
}

.ta-band--1 { clip-path: inset(0 0 57% 0); }
.ta-band--2 { clip-path: inset(43% 0 16% 0); }
.ta-band--3 { clip-path: inset(84% 0 0 0); }

.ta-glint img {
  filter: brightness(1.55) saturate(1.3) drop-shadow(0 0 0.6rem rgba(200, 163, 90, 0.7));
}

.ta-glint {
  clip-path: polygon(-24% 43%, -12% 43%, -18% 84%, -30% 84%);
  animation: ta-glint 7s ease-in-out 2.3s infinite both;
}

.section-title .ta-w {
  display: inline-block;
  white-space: nowrap;
}

.section-title .ta-l { display: inline-block; }

.anim-on .section-title .ta-l {
  opacity: 0;
  transform-origin: 50% 220%;
}

.anim-on .section-title.is-in .ta-l {
  animation: ta-fan 0.95s cubic-bezier(0.22, 0.8, 0.3, 1) calc(var(--i) * 0.035s) both;
}

@keyframes ta-deal {
  0% {
    opacity: 0;
    transform: translate3d(14rem, 1.6rem, 0) rotateZ(6deg) rotateY(-100deg);
    filter: brightness(0.35) sepia(1);
  }
  55% {
    opacity: 1;
    transform: translate3d(0.8rem, 0, 0) rotateZ(-1deg) rotateY(12deg);
    filter: brightness(1.25) sepia(0.4);
  }
  78% { transform: rotateY(-4deg); filter: brightness(1.05) sepia(0.1); }
  100% { opacity: 1; transform: none; filter: none; }
}

@keyframes ta-glint {
  0% { clip-path: polygon(-24% 43%, -12% 43%, -18% 84%, -30% 84%); }
  16%, 100% { clip-path: polygon(118% 43%, 130% 43%, 124% 84%, 112% 84%); }
}

@keyframes ta-fan {
  0% {
    opacity: 0;
    transform: translateX(calc(var(--d) * -0.42em)) translateY(0.35em);
    color: var(--text);
  }
  45% {
    opacity: 1;
    transform: translateX(calc(var(--d) * -0.22em)) rotate(calc(var(--d) * 7deg));
    color: var(--text);
  }
  100% { opacity: 1; transform: none; color: var(--gold); }
}

@media (max-width: 640px) {
  .ta-band { animation-duration: 1.1s; }
  .anim-on .section-title.is-in .ta-l { animation-duration: 0.75s; }
  @keyframes ta-deal {
    0% {
      opacity: 0;
      transform: translate3d(4rem, 1rem, 0) rotateZ(5deg) rotateY(-100deg);
      filter: brightness(0.35) sepia(1);
    }
    55% {
      opacity: 1;
      transform: translate3d(0.4rem, 0, 0) rotateZ(-1deg) rotateY(10deg);
      filter: brightness(1.25) sepia(0.4);
    }
    78% { transform: rotateY(-3deg); filter: brightness(1.05) sepia(0.1); }
    100% { opacity: 1; transform: none; filter: none; }
  }
}
/* /stp:title-anim */
