/* ================================================================
   Nesislona — main.css
   Общие стили: переменные, типографика, nav, footer, утилиты
   ================================================================ */

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

:root {
  --bg:       #faf7f2;
  --bg2:      #f2ede4;
  --bg3:      #1a1208;
  --earth:    #8b5e3c;
  --earth2:   #c4854a;
  --earth3:   #e8a96b;
  --green:    #3d6b4f;
  --green2:   #5a9470;
  --text:     #1a1208;
  --text2:    #3d3020;
  --muted:    #8c7b68;
  --border:   rgba(0,0,0,0.08);
  --card:     #ffffff;
  --radius:   16px;
  --radius-sm:10px;
  --shadow:   0 4px 24px rgba(0,0,0,0.07);
  --shadow-lg:0 16px 56px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--earth); border-radius: 3px; }

/* ──────────────────────────────────────────────
   ТИПОГРАФИКА
   ────────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(11px, 1.2vw, 12px);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--earth);
  margin-bottom: 16px;
}
.label::before { content: '—'; }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.12;
  margin-bottom: 20px;
}
.section-title em { font-style: italic; color: var(--earth2); }

.section-sub {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--muted);
  line-height: 1.75;
  max-width: 580px;
}

.section-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 100px) clamp(20px, 4vw, 48px);
}

/* ──────────────────────────────────────────────
   КНОПКИ
   ────────────────────────────────────────────── */

.btn-earth {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 100px;
  background: var(--earth);
  color: #fff;
  font-size: clamp(14px, 1.5vw, 15px);
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, transform .2s;
  box-shadow: 0 6px 20px rgba(139,94,60,0.3);
}
.btn-earth:hover { background: var(--earth2); transform: translateY(-2px); }

.btn-outline {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 100px;
  background: transparent;
  color: var(--text);
  font-size: clamp(14px, 1.5vw, 15px);
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid rgba(0,0,0,0.15);
  transition: border-color .2s, background .2s;
}
.btn-outline:hover { border-color: var(--earth); background: rgba(139,94,60,0.05); }

.btn-green {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 100px;
  background: var(--green);
  color: #fff;
  font-size: clamp(14px, 1.5vw, 15px);
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.btn-green:hover { background: var(--green2); transform: translateY(-2px); }

/* ──────────────────────────────────────────────
   NAV
   ────────────────────────────────────────────── */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 64px);
  background: rgba(250,247,242,0.93);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: padding .3s;
}
nav.scrolled { padding-top: 12px; padding-bottom: 12px; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
  z-index: 201;
}
.nav-logo-icon { font-size: 26px; }

.nav-links {
  display: flex;
  gap: clamp(16px, 2.5vw, 36px);
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a.active { font-weight: 700; color: var(--earth); }

.nav-cta {
  padding: 10px 22px;
  border-radius: 100px;
  background: var(--earth);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s, transform .2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--earth2); transform: translateY(-1px); }

/* Hamburger (CSS-only via checkbox) */
.nav-toggle { display: none; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 201;
  -webkit-tap-highlight-color: transparent;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
  transform-origin: center;
}

/* Open state */
.nav-toggle:checked ~ .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked ~ .nav-hamburger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.nav-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(250,247,242,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 199;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.nav-mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.nav-mobile-menu ul a {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 6vw, 32px);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: color .2s;
}
.nav-mobile-menu ul a:hover,
.nav-mobile-menu ul a.active { color: var(--earth); }
.nav-mobile-menu .nav-cta {
  font-size: 16px;
  padding: 14px 36px;
}
.nav-toggle:checked ~ .nav-mobile-menu { display: flex; }

/* ──────────────────────────────────────────────
   FACTS STRIP (бегущая строка)
   ────────────────────────────────────────────── */

.facts-strip {
  background: var(--earth);
  color: #fff;
  padding: 18px 0;
  overflow: hidden;
}
.facts-inner {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: ticker 35s linear infinite;
}
.facts-inner:hover { animation-play-state: paused; }
.fact-item {
  padding: 0 48px;
  font-size: clamp(12px, 1.4vw, 14px);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.fact-item::after { content: '·'; opacity: .4; font-size: 20px; }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ──────────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────────── */

footer {
  background: var(--bg3);
  color: rgba(245,240,232,0.7);
  padding: clamp(48px, 6vw, 72px) 0 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: 48px;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  color: #f5f0e8;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.75;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #f5f0e8;
  margin-bottom: 18px;
  font-family: 'Inter', sans-serif;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul a {
  font-size: 14px;
  color: rgba(245,240,232,0.5);
  text-decoration: none;
  transition: color .2s;
}
.footer-col ul a:hover { color: #f5f0e8; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-socials { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  text-decoration: none;
  color: rgba(245,240,232,0.7);
  transition: background .2s;
}
.social-btn:hover { background: rgba(255,255,255,0.14); }

/* ──────────────────────────────────────────────
   NEWSLETTER
   ────────────────────────────────────────────── */

.newsletter-section {
  background: var(--earth);
  padding: clamp(48px, 8vw, 80px) 0;
  text-align: center;
}
.newsletter-inner {
  max-width: 580px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
}
.newsletter-inner .label { color: rgba(255,255,255,0.6); justify-content: center; }
.newsletter-inner .label::before { content: '🐘'; }
.newsletter-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 16px;
}
.newsletter-sub {
  font-size: clamp(14px, 1.6vw, 16px);
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
}
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
}
.newsletter-input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 100px;
  border: none;
  font-size: 15px;
  font-family: inherit;
  background: rgba(255,255,255,0.2);
  color: #fff;
  outline: none;
  transition: background .2s;
  min-width: 0;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-input:focus { background: rgba(255,255,255,0.28); }
.newsletter-btn {
  padding: 14px 28px;
  border-radius: 100px;
  background: #fff;
  color: var(--earth);
  font-size: 14px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: transform .2s;
}
.newsletter-btn:hover { transform: scale(1.04); }
.newsletter-note {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-top: 14px;
}

/* ──────────────────────────────────────────────
   CART TOAST
   ────────────────────────────────────────────── */

#cart-toast {
  position: fixed;
  bottom: 32px; right: 32px;
  z-index: 999;
  background: var(--green);
  color: #fff;
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transform: translateY(100px);
  opacity: 0;
  transition: transform .4s ease, opacity .4s ease;
  pointer-events: none;
}

/* ──────────────────────────────────────────────
   REVEAL ANIMATION
   ────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ──────────────────────────────────────────────
   PAGE HERO (общий для внутренних страниц)
   ────────────────────────────────────────────── */

.page-hero {
  padding: clamp(100px, 12vw, 160px) clamp(20px, 4vw, 80px) clamp(48px, 6vw, 80px);
  max-width: 1200px;
  margin: 0 auto;
}
.page-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(139,94,60,0.1);
  border: 1px solid rgba(139,94,60,0.2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--earth);
  margin-bottom: 24px;
}
.page-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.08;
  margin-bottom: 20px;
}
.page-hero-title em { font-style: italic; color: var(--earth2); }
.page-hero-sub {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--muted);
  max-width: 580px;
  line-height: 1.75;
}

/* ──────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────── */

@media (max-width: 768px) {
  /* Nav */
  .nav-links,
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }

  /* Newsletter form */
  .newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }
  .newsletter-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
  .btn-earth,
  .btn-outline,
  .btn-green {
    width: 100%;
    text-align: center;
  }
}
