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

:root {
  --font-heading: 'Fredoka', Verdana, sans-serif;
  --font-body: 'Nunito', Helvetica, Arial, sans-serif;
  --bg: #FBF7EE;
  --bg-alt: #F0F6E9;
  --bg-card: #FFFFFF;
  --bg-deep: #22392A;
  --primary: #3E7C4F;
  --primary-soft: #5CA86E;
  --primary-tint: #DCEFD9;
  --accent: #FF8A5C;
  --accent-2: #FFB23E;
  --gradient-cta: linear-gradient(135deg, #FF8A5C 0%, #FFB23E 100%);
  --text: #2E3B2F;
  --muted: #5F6F60;
  --line: #E5DECB;
  --shadow-soft: 0 14px 36px rgba(62, 124, 79, 0.14);
  --shadow-card: 0 8px 24px rgba(46, 59, 47, 0.08);
  --radius: 22px;
  --header-h: 78px;
}

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

html {
  scroll-behavior: auto;
}

html.hide #preloader {
  display: none;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

body.fixed {
  overflow: hidden;
}

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

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

ul {
  list-style: none;
}

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

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

#preloader img {
  width: 64px;
  height: 64px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  padding: 13px 28px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.btn-gradient {
  background: var(--gradient-cta);
  color: #FFFFFF;
  border: 0;
  box-shadow: 0 8px 22px rgba(255, 138, 92, 0.4);
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 138, 92, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 34px;
  font-size: 17px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(251, 247, 238, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(46, 59, 47, 0.07);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  height: 40px;
  width: auto;
}

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

.site-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 16px;
  color: var(--text);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}

.site-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--gradient-cta);
  transition: width 0.25s ease;
}

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

.site-nav .nav-link:hover::after {
  width: 100%;
}

.header-cta {
  padding: 11px 26px;
  font-size: 15px;
}

.burger-btn {
  background: transparent;
  border: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
}

.burger-btn span {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 3px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

#mobile-menu {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  height: calc(100vh - var(--header-h));
  z-index: 99;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}

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

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

.mobile-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 22px;
  color: var(--text);
}

.mobile-nav .btn {
  margin-top: 8px;
  color: #FFFFFF;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  background: var(--primary-tint);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
  margin-bottom: 22px;
}

.section-body p {
  color: var(--muted);
  margin-bottom: 16px;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

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

.hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/hero-bg.webp') center / cover no-repeat;
  z-index: -2;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(251, 247, 238, 0.96) 0%, rgba(251, 247, 238, 0.88) 42%, rgba(251, 247, 238, 0.45) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  margin-bottom: 18px;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(19px, 2.2vw, 24px);
  color: var(--primary);
  margin-bottom: 20px;
}

.hero-text {
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0 26px;
}

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

.hero-actions .btn-gradient {
  animation: cta-float 3s ease-in-out infinite;
}

.hero-actions .btn-gradient:hover {
  animation-play-state: paused;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 14px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--primary-tint);
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
}

.hero-figure {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-figure-glow {
  position: absolute;
  inset: 10% 6%;
  background: radial-gradient(circle, rgba(255, 178, 62, 0.4) 0%, rgba(255, 178, 62, 0) 68%);
  z-index: -1;
}

.hero-pers {
  max-height: 560px;
  width: auto;
  filter: drop-shadow(0 24px 40px rgba(46, 59, 47, 0.25));
}

.about {
  padding: 100px 0;
  background: var(--bg-alt);
}

.about-figure img,
.world-figure img,
.powerups-figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  width: 100%;
  height: auto;
}

.about-figure,
.powerups-figure {
  position: relative;
}

.about-figure::before {
  content: '';
  position: absolute;
  top: -22px;
  left: -22px;
  width: 110px;
  height: 110px;
  border-radius: 28px;
  background: var(--gradient-cta);
  opacity: 0.25;
  z-index: -1;
}

.gameplay {
  padding: 100px 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(92, 168, 110, 0.1) 0%, rgba(92, 168, 110, 0) 32%),
    radial-gradient(circle at 92% 88%, rgba(255, 138, 92, 0.1) 0%, rgba(255, 138, 92, 0) 32%),
    var(--bg);
}

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

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: #FFFFFF;
  background: var(--gradient-cta);
  margin-bottom: 16px;
}

.step-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.gameplay-note {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 20px;
  color: var(--primary);
  margin-top: 44px;
}

.world {
  padding: 100px 0;
  background: var(--bg-alt);
}

.world-figure {
  position: relative;
}

.world-figure::after {
  content: '';
  position: absolute;
  bottom: -22px;
  right: -22px;
  width: 110px;
  height: 110px;
  border-radius: 28px;
  background: var(--primary-soft);
  opacity: 0.3;
  z-index: -1;
}

.leaf-list,
.spark-list {
  margin-top: 10px;
  display: grid;
  gap: 12px;
}

.leaf-list li,
.spark-list li {
  position: relative;
  padding-left: 34px;
  font-weight: 600;
}

.leaf-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, var(--primary-soft), var(--primary));
}

.spark-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--gradient-cta);
}

.powerups {
  padding: 100px 0;
}

.powerups-figure::before {
  content: '';
  position: absolute;
  top: -22px;
  right: -22px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--accent-2);
  opacity: 0.25;
  z-index: -1;
}

.features {
  padding: 100px 0;
  background: var(--bg-alt);
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-tint);
  color: var(--primary);
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 19px;
  margin-bottom: 8px;
}

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

.site-footer {
  background: var(--bg-deep);
  color: #D8E4D8;
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 22px;
  color: #FFFFFF;
}

.footer-center {
  font-size: 14px;
  color: #A9BCA9;
}

.footer-right {
  display: flex;
  gap: 24px;
}

.footer-right a {
  font-size: 14px;
  color: #D8E4D8;
  transition: color 0.25s ease;
}

.footer-right a:hover {
  color: var(--accent-2);
}

#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 28px rgba(46, 59, 47, 0.12);
  padding: 18px 0;
  display: none;
}

#cookie-banner.visible {
  display: block;
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-inner p {
  color: var(--muted);
  font-size: 15px;
  flex: 1 1 320px;
}

.cookie-inner a {
  color: var(--primary);
  font-weight: 700;
}

.cookie-inner a:hover {
  color: var(--accent);
}

.cookie-actions {
  display: flex;
  gap: 12px;
}

.cookie-actions .btn {
  padding: 10px 24px;
  font-size: 14px;
}

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

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 56px;
}

.legal-content h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 40px);
  margin-bottom: 14px;
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 22px;
  margin: 34px 0 12px;
}

.legal-content p {
  color: var(--muted);
  margin-bottom: 14px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
  color: var(--muted);
}

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

.legal-content a {
  color: var(--primary);
  font-weight: 700;
}

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

@media (max-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-grid {
    gap: 44px;
  }

  .hero-pers {
    max-height: 460px;
  }
}

@media (max-width: 768px) {
  .site-nav,
  .header-cta {
    display: none;
  }

  .burger-btn {
    display: flex;
  }

  .hero {
    padding: calc(var(--header-h) + 40px) 0 64px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-figure {
    order: -1;
  }

  .hero-pers {
    max-height: 360px;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .world .section-body {
    order: 1;
  }

  .world-figure {
    order: 2;
  }

  .about,
  .gameplay,
  .world,
  .powerups,
  .features {
    padding: 72px 0;
  }

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

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

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

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .steps-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 14px;
  }

  .cookie-inner p {
    flex: 0 0 auto;
  }

  .cookie-actions .btn {
    flex: 1;
  }
}
