@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&display=swap');

:root {
  --earth: #3C2F1E;
  --earth-deep: #2B2115;
  --earth-soft: #4A3A26;
  --accent: #D9773F;
  --sand: #F4C37D;
  --green: #2E5A2E;
  --cream: #FAF4E8;
  --cream-2: #F3E8D2;
  --ink: #3C2F1E;
  --ink-soft: rgba(60, 47, 30, 0.78);
  --text-soft: rgba(250, 244, 232, 0.8);
  --radius: 12px;
  --grad: linear-gradient(135deg, #F4C37D 0%, #D9773F 100%);
  --grain: repeating-linear-gradient(90deg, rgba(60, 47, 30, 0.035) 0 2px, transparent 2px 9px, rgba(60, 47, 30, 0.025) 9px 10px, transparent 10px 23px);
  --grain-dark: repeating-linear-gradient(90deg, rgba(244, 195, 125, 0.035) 0 2px, transparent 2px 11px, rgba(0, 0, 0, 0.06) 11px 12px, transparent 12px 27px);
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', Arial, sans-serif;
  --header-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

html {
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

body.fixed {
  overflow: hidden;
}

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

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

ol,
ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--earth);
  color: var(--sand);
}

.preloader img {
  width: 50px;
  height: 50px;
}

html.hide .preloader {
  display: none;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(43, 33, 21, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  background: rgba(43, 33, 21, 0.96);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo__mark {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 10px rgba(244, 195, 125, 0.35));
}

.logo__text {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--cream);
  padding: 6px 0;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

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

.nav-link:hover::after {
  transform: scaleX(1);
}

.burger-btn {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.burger-btn span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--sand);
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.burger-btn span:nth-child(1) {
  top: 14px;
}

.burger-btn span:nth-child(2) {
  top: 21px;
}

.burger-btn span:nth-child(3) {
  top: 28px;
}

.burger-btn.act span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.burger-btn.act span:nth-child(2) {
  opacity: 0;
}

.burger-btn.act span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

#mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: var(--earth-deep);
  background-image: var(--grain-dark), radial-gradient(circle at 80% 10%, rgba(244, 195, 125, 0.18), transparent 55%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.opened {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 56px 24px;
}

.mobile-nav .nav-link {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn--primary {
  background: var(--grad);
  color: var(--earth-deep);
  box-shadow: 0 10px 30px rgba(217, 119, 63, 0.45), 0 0 0 1px rgba(244, 195, 125, 0.4) inset;
}

.btn--primary:hover {
  box-shadow: 0 14px 40px rgba(244, 195, 125, 0.55), 0 0 0 1px rgba(250, 244, 232, 0.6) inset;
}

.btn--ghost {
  border: 1.5px solid rgba(244, 195, 125, 0.7);
  color: var(--sand);
  background: rgba(43, 33, 21, 0.35);
}

.btn--ghost:hover {
  background: rgba(244, 195, 125, 0.15);
  color: var(--cream);
}

.btn--float {
  animation: levitate 3s ease-in-out infinite;
}

.btn--float:hover {
  animation-play-state: paused;
}

@keyframes levitate {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.section {
  position: relative;
  padding: 110px 0;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 28px;
}

.section-title::after {
  content: '';
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 16px;
  border-radius: 4px;
  background: var(--grad);
}

.section-title--center {
  text-align: center;
  margin-bottom: 56px;
}

.section-title--center::after {
  margin-left: auto;
  margin-right: auto;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 60px) 0 90px;
  background-color: var(--earth);
  background-image: linear-gradient(270deg, rgba(43, 33, 21, 0.92) 0%, rgba(60, 47, 30, 0.78) 38%, rgba(60, 47, 30, 0.1) 72%, rgba(60, 47, 30, 0) 100%), url(../img/hero.webp);
  background-size: cover;
  background-position: left center;
  overflow: hidden;
  color: var(--cream);
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(43, 33, 21, 0.55));
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
  animation: lantern 4s ease-in-out infinite;
}

.hero__glow--one {
  width: 260px;
  height: 260px;
  top: 18%;
  right: 8%;
  background: radial-gradient(circle, rgba(244, 195, 125, 0.35), transparent 70%);
}

.hero__glow--two {
  width: 180px;
  height: 180px;
  bottom: 14%;
  right: 38%;
  background: radial-gradient(circle, rgba(217, 119, 63, 0.3), transparent 70%);
  animation-delay: 1.5s;
}

@keyframes lantern {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
}

.hero__content {
  max-width: 560px;
}

.hero__genre {
  display: inline-block;
  margin-bottom: 22px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(244, 195, 125, 0.5);
  background: rgba(46, 90, 46, 0.55);
  color: var(--sand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(42px, 6vw, 74px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 24px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.hero__title span {
  display: block;
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__text {
  font-size: 18px;
  color: var(--text-soft);
  margin-bottom: 38px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.about {
  background-color: var(--cream);
  background-image: var(--grain);
}

.about__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 64px;
}

.frame {
  position: relative;
  border-radius: var(--radius);
  padding: 10px;
  background: var(--earth);
  background-image: var(--grain-dark);
  box-shadow: 0 24px 60px rgba(60, 47, 30, 0.28), 0 0 0 1px rgba(244, 195, 125, 0.35) inset;
}

.frame::before {
  content: '';
  position: absolute;
  inset: -18px -18px auto auto;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 195, 125, 0.6), transparent 70%);
  pointer-events: none;
}

.frame img {
  width: 100%;
  border-radius: calc(var(--radius) - 4px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about__content p {
  color: var(--ink-soft);
  font-size: 17px;
  margin-bottom: 20px;
}

.about__content .about__accent {
  margin-bottom: 0;
  padding: 20px 24px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(244, 195, 125, 0.25);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 20px;
  font-style: italic;
  line-height: 1.5;
}

.features {
  background-color: var(--earth);
  background-image: var(--grain-dark), radial-gradient(circle at 15% 20%, rgba(244, 195, 125, 0.14), transparent 45%), radial-gradient(circle at 85% 85%, rgba(46, 90, 46, 0.4), transparent 50%);
  color: var(--cream);
}

.features .section-title {
  color: var(--cream);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  position: relative;
  padding: 32px 26px;
  border-radius: var(--radius);
  background: rgba(250, 244, 232, 0.05);
  background-image: var(--grain-dark);
  border: 1px solid rgba(244, 195, 125, 0.22);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 195, 125, 0.6);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(244, 195, 125, 0.12);
}

.feature-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: var(--radius);
  background: radial-gradient(circle at 50% 40%, rgba(244, 195, 125, 0.35), rgba(217, 119, 63, 0.15) 70%);
  color: var(--sand);
  box-shadow: 0 0 24px rgba(244, 195, 125, 0.25);
}

.feature-card__icon svg {
  width: 34px;
  height: 34px;
}

.feature-card h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--sand);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-soft);
}

.how {
  background-color: var(--cream-2);
  background-image: var(--grain);
}

.how__inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 64px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid rgba(60, 47, 30, 0.1);
  box-shadow: 0 8px 22px rgba(60, 47, 30, 0.07);
}

.step__num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--sand);
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 0 0 4px rgba(46, 90, 46, 0.15);
}

.step h3 {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step p {
  color: var(--ink-soft);
  font-size: 15px;
}

.frame--dark {
  background-color: var(--green);
}

.faq {
  background-color: var(--cream);
  background-image: var(--grain);
}

.faq__inner {
  max-width: 900px;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  display: flex;
  gap: 22px;
  padding: 26px 28px;
  border-radius: var(--radius);
  background: #fff;
  background-image: var(--grain);
  border: 1px solid rgba(60, 47, 30, 0.1);
  border-left: 4px solid var(--accent);
  box-shadow: 0 8px 22px rgba(60, 47, 30, 0.06);
}

.faq-item__num {
  flex-shrink: 0;
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--accent);
}

.faq-item h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--ink-soft);
  font-size: 15px;
}

.footer {
  background-color: var(--earth-deep);
  background-image: var(--grain-dark);
  color: var(--text-soft);
  padding: 48px 0;
  border-top: 3px solid transparent;
  border-image: var(--grad) 1;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.footer__links a {
  font-size: 15px;
  color: var(--cream);
  transition: color 0.25s ease;
}

.footer__links a:hover {
  color: var(--sand);
}

.footer__copy {
  width: 100%;
  font-size: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(244, 195, 125, 0.15);
}

.legal-page {
  padding: calc(var(--header-h) + 64px) 0 96px;
  background-color: var(--cream);
  background-image: var(--grain);
}

.legal-content {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 56px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 48px rgba(60, 47, 30, 0.1);
  color: var(--ink-soft);
  font-size: 16px;
  overflow-wrap: break-word;
}

.legal-content h1 {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 28px;
}

.legal-content h2 {
  font-family: var(--font-head);
  font-size: 24px;
  line-height: 1.3;
  color: var(--ink);
  margin: 36px 0 14px;
}

.legal-content h3 {
  font-family: var(--font-head);
  font-size: 19px;
  color: var(--ink);
  margin: 24px 0 10px;
}

.legal-content p {
  margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px 22px;
}

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

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

.legal-content li {
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.legal-content a:hover,
.legal-content a:focus-visible {
  color: var(--green);
  text-decoration-color: transparent;
}

.legal-content strong {
  color: var(--ink);
}

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

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__inner,
  .how__inner {
    gap: 44px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 68px;
  }

  .nav {
    display: none;
  }

  .burger-btn {
    display: block;
  }

  .section {
    padding: 80px 0;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 80px) 0 80px;
    background-image: linear-gradient(180deg, rgba(43, 33, 21, 0.55) 0%, rgba(43, 33, 21, 0.85) 60%, rgba(43, 33, 21, 0.95) 100%), url(../img/hero.webp);
    background-position: 30% center;
  }

  .hero__inner {
    justify-content: flex-start;
  }

  .about__inner,
  .how__inner {
    grid-template-columns: 1fr;
  }

  .how__media {
    order: -1;
  }

  .legal-content {
    padding: 36px 28px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .frame::before {
    inset: -8px -8px auto auto;
    width: 64px;
    height: 64px;
  }

  .logo__text {
    font-size: 20px;
  }

  .logo__mark {
    width: 34px;
    height: 34px;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .hero__text {
    font-size: 16px;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .about__content .about__accent {
    font-size: 18px;
  }

  .step,
  .faq-item {
    padding: 20px 18px;
    gap: 16px;
  }

  .faq-item__num {
    font-size: 22px;
  }

  .legal-page {
    padding: calc(var(--header-h) + 32px) 0 64px;
  }

  .legal-content {
    padding: 28px 18px;
  }
}
