:root {
  --bg: #eef1e2;
  --bg-soft: #e7ecd6;
  --panel: #f6f8ec;
  --green-900: #0e3b27;
  --green-800: #14503a;
  --green-700: #1c5c42;
  --green-600: #2e7d5b;
  --lime: #c9e265;
  --lime-soft: #d9ee93;
  --lime-dark: #a8c94a;
  --cream: #f4f1e3;
  --text: #16281e;
  --text-soft: #4a5d52;
  --text-milk: #e9f2df;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --shadow: 0 18px 48px rgba(14, 59, 39, .10);
  --shadow-soft: 0 8px 24px rgba(14, 59, 39, .08);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ---------- Снег ---------- */
.snow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  overflow: hidden;
}
.snowflake {
  position: absolute;
  top: -12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  animation-name: snowfall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}
@keyframes snowfall {
  0%   { transform: translate3d(0, -12px, 0); }
  100% { transform: translate3d(var(--drift, 40px), 105vh, 0); }
}

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(238, 241, 226, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(14, 59, 39, .07);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  font-size: 15px;
  color: var(--green-900);
  text-decoration: none;
}
.logo-tree { width: 22px; height: 22px; color: var(--green-700); transition: transform .4s var(--ease); }
.nav-logo:hover .logo-tree { transform: rotate(-8deg) scale(1.12); }

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  position: relative;
  display: inline-block;
  padding: 8px 14px;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color .3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--lime-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover { color: var(--green-900); }
.nav-links a:hover::after { transform: scaleX(1); }

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

.sound-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(14, 59, 39, .15);
  background: var(--panel);
  color: var(--green-800);
  cursor: pointer;
  transition: transform .3s var(--ease), background .3s, border-color .3s;
}
.sound-toggle:hover { transform: translateY(-2px) scale(1.05); background: #fff; border-color: rgba(14, 59, 39, .3); }
.sound-toggle svg { width: 19px; height: 19px; }
.sound-toggle .icon-sound-off { display: none; }
.sound-toggle.muted .icon-sound-on { display: none; }
.sound-toggle.muted .icon-sound-off { display: block; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  border-radius: 100px;
  text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.96); }

.btn-primary {
  background: var(--green-800);
  color: var(--text-milk);
  padding: 11px 22px;
  font-size: 14px;
}
.btn-primary:hover {
  background: var(--green-900);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(14, 59, 39, .28);
}

.btn-lime {
  background: var(--lime);
  color: var(--green-900);
  padding: 17px 32px;
  font-size: 16px;
  box-shadow: 0 8px 22px rgba(201, 226, 101, .35);
}
.btn-lime:hover {
  background: var(--lime-soft);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 34px rgba(201, 226, 101, .5);
}

/* ---------- Бургер ---------- */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--green-900);
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Первый экран ---------- */
.hero { padding: 34px 0 70px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 22px;
}
.hero-panel {
  background: var(--green-900);
  border-radius: var(--radius-lg);
  padding: 54px 48px;
  color: var(--text-milk);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero-panel::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 226, 101, .14), transparent 65%);
  top: -160px;
  right: -140px;
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--lime);
  background: rgba(201, 226, 101, .1);
  border: 1px solid rgba(201, 226, 101, .25);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 30px;
}
.hero-badge svg { width: 15px; height: 15px; }
.hero-title {
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 22px;
}
.hero-title .accent { color: var(--lime); }
.hero-sub {
  font-size: clamp(16px, 1.5vw, 19px);
  color: rgba(233, 242, 223, .82);
  margin-bottom: 36px;
  max-width: 40ch;
}
.hero-cta { align-self: flex-start; }
.hero-note {
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--lime-soft);
  min-height: 1.5em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.hero-note.show { opacity: 1; transform: translateY(0); }

.hero-photo { position: relative; }
.hero-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  min-height: 520px;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.hero-photo-frame:hover img { transform: scale(1.04); }
.hero-photo-frame.shake { animation: shake .5s var(--ease); }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px) rotate(-.4deg); }
  40% { transform: translateX(5px) rotate(.3deg); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}
.hero-photo-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 14px);
  background: rgba(246, 248, 236, .96);
  color: var(--green-900);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 100px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  box-shadow: var(--shadow-soft);
}
.hero-photo-hint.show { opacity: 1; transform: translate(-50%, 0); }

.hero-chip {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 250px;
  background: rgba(246, 248, 236, .97);
  border-radius: var(--radius-md);
  padding: 14px 17px;
  font-size: 12.8px;
  line-height: 1.45;
  color: var(--text);
  box-shadow: var(--shadow-soft);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.hero-chip:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--shadow); }
.hero-chip svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--green-700); margin-top: 1px; }
.chip-1 { top: 34px; left: -28px; animation: float 6s ease-in-out infinite; }
.chip-2 { bottom: 96px; right: -22px; background: var(--lime-soft); animation: float 7s ease-in-out 1.2s infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- Секции ---------- */
.section { padding: 78px 0; }
.section-title {
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 800;
  letter-spacing: -.02em;
  text-align: center;
  color: var(--green-900);
  margin-bottom: 52px;
}

/* ---------- Почему Геннадий ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why-card {
  background: var(--panel);
  border: 1px solid rgba(14, 59, 39, .07);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background .35s;
}
.why-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  background: #fff;
}
.why-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--green-900);
  color: var(--lime);
  margin-bottom: 24px;
  transition: transform .45s var(--ease), background .35s, color .35s;
}
.why-card:hover .why-icon {
  transform: rotate(-7deg) scale(1.1);
  background: var(--lime);
  color: var(--green-900);
}
.why-icon svg { width: 27px; height: 27px; }
.why-card h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 10px;
}
.why-card p { font-size: 15px; color: var(--text-soft); }

.branches-photo {
  margin-top: 22px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: clamp(300px, 44vw, 520px);
}
.branches-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}
.branches-photo:hover img { transform: scale(1.045); }
.branches-photo figcaption {
  position: absolute;
  left: 26px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(14, 59, 39, .82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-milk);
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 22px 12px 14px;
  border-radius: 100px;
}
.cone-wrap {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--green-900);
  transition: transform .5s var(--ease);
}
.branches-photo:hover .cone-wrap { transform: scale(1.28) rotate(-8deg); }
.cone { width: 20px; height: 20px; }

/* ---------- Характеристики ---------- */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.spec-card {
  background: var(--panel);
  border: 1px solid rgba(14, 59, 39, .07);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background .35s;
}
.spec-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--shadow);
  background: #fff;
}
.spec-card-lime { background: var(--lime); border-color: transparent; }
.spec-card-lime:hover { background: var(--lime-soft); }
.spec-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--green-900);
  color: var(--lime);
  margin-bottom: 18px;
  transition: transform .45s var(--ease);
}
.spec-card:hover .spec-icon { transform: scale(1.12) rotate(6deg); }
.spec-card-lime .spec-icon { background: var(--green-900); color: var(--lime); }
.spec-icon svg { width: 23px; height: 23px; }
.spec-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 6px;
}
.spec-card-lime .spec-label { color: rgba(14, 59, 39, .62); }
.spec-value {
  font-size: 19px;
  font-weight: 700;
  color: var(--green-900);
  line-height: 1.3;
}

/* ---------- Отзывы ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  background: var(--panel);
  border: 1px solid rgba(14, 59, 39, .07);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background .35s;
}
.review-card:hover {
  transform: translateY(-8px) rotate(-.4deg);
  box-shadow: var(--shadow);
  background: #fff;
}
.stars { display: flex; gap: 4px; }
.stars svg { width: 16px; height: 16px; fill: var(--green-600); }
.stars-muted svg:nth-child(4), .stars-muted svg:nth-child(5) { fill: rgba(46, 125, 91, .22); }
.review-text {
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--text);
  flex: 1;
}
.review-author { display: flex; align-items: center; gap: 13px; }
.review-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--green-900);
  color: var(--lime);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
  transition: transform .4s var(--ease);
}
.review-card:hover .review-avatar { transform: scale(1.1) rotate(-6deg); }
.review-name { font-weight: 700; font-size: 15px; color: var(--green-900); line-height: 1.35; }
.review-name small { display: block; font-weight: 500; font-size: 12.8px; color: var(--text-soft); }

/* ---------- Финальный экран ---------- */
.final { padding-bottom: 96px; }
.final-panel {
  background: var(--green-900);
  border-radius: var(--radius-lg);
  padding: clamp(56px, 8vw, 96px) 32px;
  text-align: center;
  color: var(--text-milk);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.final-panel::before,
.final-panel::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.final-panel::before {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(201, 226, 101, .16), transparent 65%);
  top: -200px; left: -160px;
}
.final-panel::after {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(201, 226, 101, .1), transparent 65%);
  bottom: -180px; right: -120px;
}
.final-title {
  font-size: clamp(32px, 4.4vw, 58px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.08;
  margin-bottom: 20px;
}
.final-title .accent { color: var(--lime); }
.final-text {
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(233, 242, 223, .8);
  margin-bottom: 40px;
}
.final-note {
  margin-top: 22px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--lime-soft);
  min-height: 1.5em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.final-note.show { opacity: 1; transform: translateY(0); }

/* ---------- Футер ---------- */
.footer {
  border-top: 1px solid rgba(14, 59, 39, .09);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--text-soft);
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: .14em;
  font-size: 13px;
  color: var(--green-900);
  text-decoration: none;
}
.footer-logo svg { width: 17px; height: 17px; color: var(--green-700); transition: transform .4s var(--ease); }
.footer-logo:hover svg { transform: rotate(-8deg) scale(1.15); }

/* ---------- Анимация появления ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { padding: 44px 36px; }
  .hero-photo-frame { min-height: 460px; }
  .chip-1 { left: 16px; }
  .chip-2 { right: 16px; }
}

@media (max-width: 860px) {
  .nav-links, .nav-actions .btn-nav { display: none; }
  .burger { display: flex; }
  .nav-links.mobile-open {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(238, 241, 226, .98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(14, 59, 39, .09);
    padding: 12px 28px 20px;
    box-shadow: var(--shadow);
  }
  .nav-links.mobile-open a { display: block; padding: 14px 4px; font-size: 16px; }
  .nav-links.mobile-open a::after { left: 4px; right: auto; width: 40px; }

  .why-grid, .specs-grid, .reviews-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .hero { padding: 20px 0 52px; }
  .hero-panel { padding: 38px 26px; border-radius: var(--radius-md); }
  .hero-photo-frame { min-height: 380px; border-radius: var(--radius-md); }
  .hero-chip { position: static; max-width: none; margin-top: 12px; animation: none; }
  .chip-2 { margin-top: 10px; }
  .hero-cta { width: 100%; }
  .why-grid, .specs-grid, .reviews-grid { grid-template-columns: 1fr; }
  .why-card, .review-card { padding: 28px 24px; border-radius: var(--radius-md); }
  .branches-photo { height: 320px; border-radius: var(--radius-md); }
  .branches-photo figcaption { left: 14px; bottom: 14px; font-size: 13px; padding: 10px 16px 10px 10px; }
  .final-panel { border-radius: var(--radius-md); }
  .footer-inner { flex-direction: column; text-align: center; gap: 10px; }
  .btn-lime { padding: 15px 26px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
