@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --cream: #faf6ec;
  --cream-2: #f3edde;
  --sage-50: #edf1e5;
  --sage-100: #e0e7d4;
  --sage-200: #c9d5b8;
  --sage: #8fa07c;
  --sage-dark: #5c6b4e;
  --ink: #33402d;
  --ink-soft: #616e59;
  --gold: #c6a15b;
  --gold-light: #e5cb92;
  --gold-dark: #a8863f;
  --rose: #c07a5e;
  --blue: #7e9aac;
  --white: #ffffff;
  --line: rgba(143, 160, 124, .28);
  --shadow-sm: 0 6px 18px rgba(51, 64, 45, .07);
  --shadow-md: 0 18px 44px rgba(51, 64, 45, .12);
  --shadow-lg: 0 34px 80px rgba(51, 64, 45, .18);
  --font-head: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --header-h: 84px;
  --radius: 18px;
}

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

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.72;
  color: var(--ink-soft);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.fixed { overflow: hidden; }

section[id] { scroll-margin-top: 96px; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.005em;
}

h1 { font-size: clamp(42px, 5.6vw, 76px); }
h2 { font-size: clamp(34px, 4vw, 54px); }
h3 { font-size: clamp(22px, 2vw, 27px); }

p + p { margin-top: 18px; }

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

.section { position: relative; padding: 120px 0; overflow: hidden; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.lead { font-size: 19px; color: var(--ink-soft); }

.accent-line {
  width: 92px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--sage));
  margin: 26px 0 0;
}

.section-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.section-head .accent-line { margin: 26px auto 0; }
.section-head p { margin-top: 22px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 17px 36px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .28s ease, box-shadow .28s ease, background .28s ease, color .28s ease;
}

.btn svg { width: 19px; height: 19px; flex: 0 0 auto; }

.btn-primary {
  background: linear-gradient(135deg, #7b8d66 0%, #5c6b4e 55%, #4b573e 100%);
  color: var(--white);
  box-shadow: 0 16px 34px rgba(92, 107, 78, .3), inset 0 0 0 1px rgba(229, 203, 146, .45);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(92, 107, 78, .38), inset 0 0 0 1px rgba(229, 203, 146, .8);
}

.btn-ghost {
  background: rgba(250, 246, 236, .72);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--gold);
}

.btn-ghost:hover {
  background: var(--white);
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1.5px var(--gold-dark), 0 14px 30px rgba(198, 161, 91, .2);
}

.btn-sm { padding: 13px 26px; font-size: 14px; }

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

.btn-levitate { animation: levitate 3s ease-in-out infinite; }
.btn-levitate:hover { animation-play-state: paused; }

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

html.hide .preloader { display: none; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: 0 0 auto;
}

.logo img { width: 42px; height: 42px; }

.logo span {
  font-family: var(--font-head);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ink);
  white-space: nowrap;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(250, 246, 236, .5);
  backdrop-filter: blur(10px);
  transition: background .3s ease, box-shadow .3s ease, height .3s ease;
}

header.scrolled {
  height: 70px;
  background: rgba(250, 246, 236, .95);
  box-shadow: 0 6px 26px rgba(51, 64, 45, .09);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

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

.nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 0;
  transition: color .25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--sage));
  transition: width .3s ease;
}

.nav-link:hover { color: var(--gold-dark); }
.nav-link:hover::after { width: 100%; }

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

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

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

.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: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: calc(var(--header-h) + 24px) 24px 40px;
  background: var(--cream);
  background-image: linear-gradient(rgba(250, 246, 236, .78), rgba(250, 246, 236, .78)), url("../img/pattern-bg.webp");
  background-size: auto, 420px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .32s ease;
}

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

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

#home {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 84px) 0 104px;
  background: url("../img/hero-bg.webp") center / cover no-repeat;
}

#home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(250, 246, 236, .95) 0%, rgba(250, 246, 236, .82) 38%, rgba(250, 246, 236, .35) 62%, rgba(250, 246, 236, .1) 100%);
}

#home .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 60px;
  align-items: center;
}

.hero-title { margin-bottom: 22px; }

.hero-sub {
  font-family: var(--font-head);
  font-size: clamp(21px, 2.1vw, 27px);
  font-weight: 500;
  font-style: italic;
  color: var(--sage-dark);
  line-height: 1.4;
  margin-bottom: 24px;
}

.hero-text { max-width: 560px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 17px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.phone {
  position: relative;
  width: 100%;
  max-width: 306px;
  margin: 0 auto;
  padding: 12px;
  border-radius: 42px;
  background: linear-gradient(155deg, #f6f1e3, #ddd6c3 55%, #c3bda9);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .6);
}

.phone::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 7px;
  border-radius: 999px;
  background: rgba(51, 64, 45, .16);
}

.phone img { width: 100%; border-radius: 32px; }

.hero-visual { position: relative; }

.hero-visual::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  padding-bottom: 120%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 203, 146, .5) 0%, rgba(229, 203, 146, 0) 68%);
}

.hero-visual .phone { position: relative; z-index: 1; }

#about { background: var(--cream); }

#about::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -160px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 160, 124, .18) 0%, rgba(143, 160, 124, 0) 70%);
}

.about-grid {
  position: relative;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 76px;
  align-items: center;
}

.art-frame {
  position: relative;
  padding: 16px;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--gold-light), var(--gold) 45%, var(--gold-dark));
  box-shadow: var(--shadow-md);
}

.art-frame img { border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }

.about-visual { position: relative; }

.about-visual .art-frame-sm {
  position: absolute;
  right: -26px;
  bottom: -54px;
  width: 34%;
  padding: 9px;
  border-radius: 6px;
  background: linear-gradient(140deg, var(--gold-light), var(--gold) 50%, var(--gold-dark));
  box-shadow: var(--shadow-lg);
}

.about-visual .art-frame-sm img { border-radius: 2px; }

.highlights { margin-top: 34px; display: grid; gap: 14px; }

.highlights li {
  position: relative;
  padding-left: 40px;
  font-size: 16px;
  color: var(--ink-soft);
}

.highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--gold-light), var(--sage));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
}

.highlights li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 11px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(-45deg);
}

#how-to-play {
  background: var(--sage-50) url("../img/pattern-bg.webp") center / 520px repeat;
}

#how-to-play::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(250, 246, 236, .9) 0%, rgba(250, 246, 236, .68) 45%, rgba(250, 246, 236, .92) 100%);
}

#how-to-play .container { position: relative; z-index: 1; }

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

.step {
  position: relative;
  padding: 44px 28px 32px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(255, 255, 255, .7);
  transition: transform .3s ease, box-shadow .3s ease;
}

.step:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); }

.step-num {
  position: absolute;
  top: -22px;
  left: 28px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  color: var(--white);
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  padding: 0 0 9px;
  box-shadow: 0 10px 22px rgba(198, 161, 91, .35);
}

.step h3 { margin-bottom: 12px; font-size: 22px; }
.step p { font-size: 15.5px; }

.steps-cta { margin-top: 62px; text-align: center; }

#features {
  background: url("../img/features-bg.webp") center / cover no-repeat;
}

#features::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(250, 246, 236, .82) 0%, rgba(250, 246, 236, .58) 50%, rgba(250, 246, 236, .86) 100%);
}

#features .container { position: relative; z-index: 1; }

.features {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 26px;
}

.feature {
  grid-column: span 2;
  padding: 38px 32px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .8);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(255, 255, 255, .8);
  transition: transform .3s ease, box-shadow .3s ease;
}

.feature:nth-child(4), .feature:nth-child(5) { grid-column: span 3; }

.feature:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); }

.feature-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  margin-bottom: 22px;
  background: linear-gradient(140deg, var(--sage-100), var(--sage-200));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
}

.feature-icon svg { width: 26px; height: 26px; fill: var(--sage-dark); }
.feature h3 { margin-bottom: 12px; font-size: 24px; }
.feature p { font-size: 15.5px; }

#app-info { background: var(--cream-2); }

#app-info::before {
  content: "";
  position: absolute;
  left: -140px;
  bottom: -160px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 161, 91, .22) 0%, rgba(198, 161, 91, 0) 70%);
}

.info-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 70px;
  align-items: center;
}

.details {
  margin-top: 36px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(255, 255, 255, .8);
  overflow: hidden;
}

.details li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 24px;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}

.details li:last-child { border-bottom: 0; }

.details b {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .02em;
}

.details span { text-align: right; }

.info-note {
  margin-top: 26px;
  padding: 18px 24px;
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, .6);
  font-size: 14.5px;
}

.info-actions { margin-top: 34px; }

.support-text {
  margin-top: 22px;
  font-family: var(--font-head);
  font-size: 21px;
  font-style: italic;
  color: var(--sage-dark);
  line-height: 1.5;
}

.phone-fan {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}

.phone-fan .phone { max-width: 258px; }

.phone-fan .phone-side {
  position: absolute;
  top: 50%;
  width: 42%;
  max-width: 216px;
  opacity: .96;
  z-index: 0;
}

.phone-fan .phone-left { left: 0; transform: translateY(-50%) rotate(-8deg); }
.phone-fan .phone-right { right: 0; transform: translateY(-50%) rotate(8deg); }
.phone-fan .phone-main { position: relative; z-index: 2; }

footer {
  position: relative;
  padding: 96px 0 34px;
  background: url("../img/footer-bg.webp") center / cover no-repeat;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(250, 246, 236, .93) 0%, rgba(243, 237, 222, .96) 100%);
}

footer .container { position: relative; z-index: 1; }

.footer-top {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  padding-bottom: 46px;
  border-bottom: 1px solid var(--line);
}

.footer-about { max-width: 460px; margin-top: 20px; font-size: 15.5px; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  align-content: flex-start;
}

.footer-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: color .25s ease;
}

.footer-nav a:hover { color: var(--gold-dark); }

.footer-contact { margin-top: 26px; font-size: 15px; }

.footer-contact a {
  color: var(--gold-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.footer-contact a:hover { color: var(--sage-dark); }

.footer-bottom {
  padding-top: 26px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
}

.legal-page {
  padding: calc(var(--header-h) + 76px) 0 100px;
  background: var(--cream) url("../img/pattern-bg.webp") center / 620px repeat;
}

.legal-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(250, 246, 236, .88);
}

.legal-page .container { position: relative; z-index: 1; }

.legal-content {
  max-width: 900px;
  margin: 44px auto 0;
  padding: 52px 56px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(255, 255, 255, .8);
  font-size: 16px;
}

.legal-content h1 { font-size: clamp(34px, 4vw, 50px); margin-bottom: 24px; }
.legal-content h2 { font-size: clamp(25px, 2.4vw, 32px); margin: 40px 0 16px; }
.legal-content h3 { font-size: 21px; margin: 28px 0 12px; }
.legal-content p { margin-bottom: 16px; }
.legal-content ul, .legal-content ol { margin: 0 0 18px 22px; }
.legal-content li { margin-bottom: 10px; }
.legal-content ul li { list-style: disc; }
.legal-content ol li { list-style: decimal; }
.legal-content section { margin-bottom: 8px; }
.legal-content strong { color: var(--ink); font-weight: 600; }

.legal-content a {
  color: var(--gold-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color .2s ease, text-decoration-color .2s ease;
}

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

@media (max-width: 1024px) {
  .section { padding: 92px 0; }
  .nav { gap: 22px; }
  .nav-link { font-size: 14px; }
  .hero-grid { gap: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 66px; }
  .about-visual { max-width: 520px; }
  .info-grid { grid-template-columns: 1fr; gap: 56px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 34px 24px; }
  .feature, .feature:nth-child(4), .feature:nth-child(5) { grid-column: span 3; }
  .legal-content { padding: 42px 38px; }
}

@media (max-width: 900px) {
  .nav, header .btn { display: none; }
  .burger-btn { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 54px; }
  .hero-text { max-width: none; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .footer-top .logo { justify-content: center; }
  .footer-about { margin-left: auto; margin-right: auto; }
  .footer-nav { justify-content: center; }
}

@media (max-width: 768px) {
  body { font-size: 1rem; }
  .section { padding: 76px 0; }
  #home { padding: calc(var(--header-h) + 56px) 0 76px; }
  .container { padding: 0 20px; }
  .section-head { margin-bottom: 50px; }
  .about-visual .art-frame-sm { right: -10px; bottom: -32px; width: 33%; }
  .phone-fan { min-height: 430px; }
  .phone-fan .phone { max-width: 220px; }
  .phone-fan .phone-side { max-width: 168px; }
  .legal-content { padding: 34px 24px; margin-top: 32px; }
  .legal-content h2 { margin-top: 32px; }
}

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; gap: 42px; }
  .feature, .feature:nth-child(4), .feature:nth-child(5) { grid-column: span 6; }
  .hero-actions .btn { width: 100%; }
  .details li { flex-direction: column; gap: 4px; }
  .details span { text-align: left; }
  .phone-fan { min-height: 0; flex-direction: column; }
  .phone-fan .phone-side { display: none; }
  .phone-fan .phone { max-width: 260px; }
  #mobile-menu .nav-link { font-size: 25px; }
  #mobile-menu { gap: 20px; }
  footer .container { padding: 0 10px; }
  .footer-nav { gap: 12px 20px; }
  .footer-contact a { display: block; }
}
