@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Nunito:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #5C8A3A;
  --primary-dark: #3F6428;
  --accent: #E8A33D;
  --accent-light: #F4C572;
  --bg: #FDF6E9;
  --bg-alt: #F5EAD3;
  --bg-soft: #EFE2C4;
  --bg-dark: #3B2E1F;
  --bg-dark-alt: #2E2417;
  --text: #3B2E1F;
  --text-muted: #6B5D48;
  --text-light: #F5EAD3;
  --white: #FFFFFF;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --heading-font: 'Baloo 2', 'Arial Rounded MT Bold', sans-serif;
  --body-font: 'Nunito', 'Segoe UI', sans-serif;
  --shadow-soft: 0 10px 30px rgba(59, 46, 31, 0.12);
  --shadow-card: 0 8px 24px rgba(59, 46, 31, 0.10);
  --radius: 20px;
}

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

html, body { scroll-behavior: auto; }

body {
  font-family: var(--body-font);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

html.hide #preloader { opacity: 0; visibility: hidden; }

#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .4s ease, visibility .4s ease;
}

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

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

ul { list-style: none; }

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

h1, h2, h3, h4 {
  font-family: var(--heading-font);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
}

section { position: relative; overflow: hidden; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: 50px;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  border: none;
  transition: transform .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(232, 163, 61, 0.38);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(232, 163, 61, 0.46);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  padding: 18px 0;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}

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

header.scrolled {
  background: rgba(253, 246, 233, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(59, 46, 31, 0.08);
  padding: 12px 0;
}

.logo img { height: 40px; }

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

.nav-link {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}

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

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

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

.burger-btn span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 3px;
  border-radius: 3px;
  background: var(--text);
  transition: transform .3s ease, opacity .3s ease, top .3s ease;
}

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

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

#mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

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

#mobile-menu .nav-link { font-size: 24px; }

body.fixed { overflow: hidden; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 110px;
  background: url('../img/hero-bg.webp') center/cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(253,246,233,0.94) 0%, rgba(253,246,233,0.62) 45%, rgba(253,246,233,0.18) 100%);
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.hero-title {
  font-size: 56px;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 34px;
  line-height: 1.6;
}

.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

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

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

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

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

.hero-image img {
  max-width: 420px;
  filter: drop-shadow(0 24px 30px rgba(59, 46, 31, 0.25));
}

/* Content sections */
.content-section {
  padding: 110px 0;
}

.content-section:nth-of-type(even) { background: var(--bg-alt); }

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

.section-grid.reverse .section-media { order: 2; }
.section-grid.reverse .section-copy { order: 1; }

.section-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  width: 100%;
}

.section-tag {
  display: inline-block;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: rgba(92, 138, 58, 0.12);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 18px;
}

.section-title {
  font-size: 36px;
  margin-bottom: 22px;
}

.section-text p {
  color: var(--text-muted);
  font-size: 16.5px;
  line-height: 1.75;
  margin-bottom: 16px;
}

.feature-list {
  margin-top: 26px;
  display: grid;
  gap: 14px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15.5px;
  color: var(--text);
  font-weight: 600;
}

.feature-list .marker {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease, box-shadow .25s ease;
}

.feature-list .marker::after {
  content: '';
  width: 6px;
  height: 11px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg) translate(-1px, -1px);
}

.feature-list li:hover .marker {
  transform: scale(1.08) rotate(-6deg);
  box-shadow: 0 3px 8px rgba(232, 163, 61, 0.4);
}

.section-cta { margin-top: 32px; }

/* Footer */
footer {
  position: relative;
  padding: 90px 0 30px;
  background: var(--bg-dark) url('../img/footer-bg.webp') center/cover no-repeat;
  color: var(--text-light);
}

footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46,36,23,0.75) 0%, rgba(46,36,23,0.94) 100%);
}

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

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 50px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(245, 234, 211, 0.15);
}

.footer-logo img {
  height: 40px;
  margin-bottom: 18px;
  background: var(--bg);
  border-radius: 50px;
  padding: 4px 14px;
}

.footer-text {
  color: rgba(245, 234, 211, 0.75);
  line-height: 1.7;
  max-width: 420px;
}

.footer-nav-title {
  display: block;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(245, 234, 211, 0.55);
  margin-bottom: 16px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 32px;
}

.footer-nav a {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--text-light);
  transition: color .2s ease;
}

.footer-nav a:hover { color: var(--accent-light); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  font-size: 14px;
  color: rgba(245, 234, 211, 0.6);
}

.footer-bottom a { color: var(--accent-light); }

/* Legal pages */
.legal-page {
  padding: 150px 0 100px;
  max-width: 860px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: 40px;
  margin-bottom: 30px;
}

.legal-content h2 {
  font-size: 24px;
  margin: 34px 0 14px;
  color: var(--primary-dark);
}

.legal-content h3 {
  font-size: 19px;
  margin: 24px 0 10px;
}

.legal-content p, .legal-content li {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
  font-size: 16px;
}

.legal-content ul, .legal-content ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

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

.legal-content a {
  color: var(--accent);
  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(--primary); text-decoration-color: var(--primary); }

/* Responsive */
@media (max-width: 1024px) {
  .hero-title { font-size: 44px; }
  .section-title { font-size: 30px; }
  .content-section { padding: 80px 0; }
  .hero .container { gap: 28px; }
}

@media (max-width: 768px) {
  nav.main-nav { display: none; }
  .burger-btn { display: block; }

  .hero { padding-top: 100px; padding-bottom: 60px; text-align: center; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-image { order: -1; }
  .hero-image img { max-width: 280px; }

  .section-grid,
  .section-grid.reverse {
    grid-template-columns: 1fr;
  }
  .section-grid .section-media,
  .section-grid.reverse .section-media { order: -1; }
  .section-grid .section-copy,
  .section-grid.reverse .section-copy { order: 2; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer-logo { display: flex; justify-content: center; }
  .footer-text { margin-left: auto; margin-right: auto; }
  .footer-nav { align-items: center; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 640px) {
  .hero-title { font-size: 34px; }
  .section-title { font-size: 26px; }
  .btn { padding: 14px 26px; font-size: 15px; width: 100%; }
  .hero-actions { flex-direction: column; }
  .content-section { padding: 60px 0; }
}
