/* ===== Дизайн-токены ===== */
:root {
  --brand: #2f7d5c;
  --brand-dark: #256549;
  --accent: #d98a2b;
  --mist: #eef3f1;
  --ink: #1e293b;
  --ink-soft: #475569;
  --ink-mute: #64748b;
  --ink-faint: #94a3b8;
  --white: #ffffff;
  --radius-lg: 28px;
  --radius-md: 16px;
  --shadow-card: 0 8px 24px rgba(47, 125, 92, 0.06);
  --shadow-lg: 0 24px 60px rgba(47, 125, 92, 0.18);
  --font-display: "Space Grotesk", "Manrope", sans-serif;
  --font-head: "Manrope", sans-serif;
  --font-body: "Inter", sans-serif;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ===== База ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: linear-gradient(160deg, #e7f0ec 0%, #eef3f1 45%, #f4efe7 100%) fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.page { position: relative; max-width: 1152px; margin: 0 auto; padding: 0 20px 40px; }

/* Фоновые цветовые пятна */
.bg-blob { position: fixed; border-radius: 50%; pointer-events: none; filter: blur(70px); z-index: 0; }
.bg-blob-1 { top: -120px; left: -120px; width: 420px; height: 420px; background: rgba(47, 125, 92, 0.22); }
.bg-blob-2 { top: 33%; right: -100px; width: 380px; height: 380px; background: rgba(217, 138, 43, 0.18); }
.bg-blob-3 { bottom: -80px; left: 30%; width: 320px; height: 320px; background: rgba(47, 125, 92, 0.14); }

/* Стекло */
.frost {
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.frost-strong {
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.text-brand { color: var(--brand); }

/* ===== Типографика ===== */
h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section { margin-top: 64px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.section-note { font-size: 0.875rem; color: var(--ink-mute); }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-head);
  font-size: 0.925rem;
  font-weight: 700;
  transition: filter 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease);
}
.btn-primary {
  color: var(--white);
  background: var(--brand);
  box-shadow: 0 8px 20px rgba(47, 125, 92, 0.3);
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-glass {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 14px rgba(30, 41, 59, 0.08);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.9); }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.link-plain { text-decoration: underline; text-underline-offset: 2px; color: inherit; }
.link-plain:hover { color: var(--brand); }

/* ===== Шапка ===== */
.header { position: sticky; top: 12px; z-index: 50; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(47, 125, 92, 0.1);
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--brand);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.9rem;
}
.logo-mark-sm { width: 32px; height: 32px; border-radius: 10px; font-size: 0.8rem; }
.logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.logo-accent { color: var(--accent); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.burger span { width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.25s var(--ease), opacity 0.2s; }
.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 ===== */
.hero { margin-top: 20px; }
.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-lg);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.45) 55%, rgba(255, 255, 255, 0.05) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 480px;
  padding: 48px;
  max-width: 640px;
}
.badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
}
.hero-sub {
  margin-top: 16px;
  font-size: 1.05rem;
  max-width: 44ch;
  color: var(--ink-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ===== Показатели ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.stat {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.stat-label { font-size: 0.8rem; color: var(--ink-mute); margin-top: 4px; }

/* ===== Карточки и сетки ===== */
.card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.card p { font-size: 0.9rem; margin-top: 8px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.card-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}
.num-green { background: rgba(47, 125, 92, 0.12); color: var(--brand); }
.num-amber { background: rgba(217, 138, 43, 0.15); color: var(--accent); }
.step-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: rgba(47, 125, 92, 0.4);
}

/* ===== О продукте ===== */
.about-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(47, 125, 92, 0.1);
}
.about-text p { margin-top: 16px; }
.check-list { margin-top: 24px; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); font-size: 0.95rem; }
.check {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(47, 125, 92, 0.15);
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 800;
}
.about-img { border-radius: var(--radius-md); width: 100%; }

/* ===== Каталог ===== */
.product {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 34px rgba(47, 125, 92, 0.1);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.product:hover { transform: translateY(-4px); box-shadow: 0 22px 48px rgba(47, 125, 92, 0.16); }
.product img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.product-body { padding: 24px; }
.product-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-body > p { font-size: 0.875rem; color: var(--ink-mute); margin-top: 8px; }
.tag {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}
.tag-green { background: rgba(47, 125, 92, 0.12); color: var(--brand); }
.tag-amber { background: rgba(217, 138, 43, 0.15); color: var(--accent); }
.product-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.price { display: flex; flex-direction: column; }
.price-big {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.price-unit { font-size: 0.8rem; color: var(--ink-faint); }
.price-bag { font-size: 0.75rem; color: var(--ink-mute); margin-top: 4px; }

/* ===== Форма заказа ===== */
.order { margin-top: 64px; }
.order-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-lg);
}
.order-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.order-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.82) 100%);
}
.order-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 48px;
}
.order-text p { margin-top: 12px; max-width: 42ch; }
.form {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(47, 125, 92, 0.12);
  display: grid;
  gap: 16px;
}
.form-field { display: grid; gap: 6px; }
.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  font-family: var(--font-head);
}
.form-field input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input::placeholder { color: var(--ink-faint); }
.form-field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 125, 92, 0.18);
}
.form-field input.invalid { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12); }
.form-error { font-size: 0.75rem; color: #dc2626; min-height: 1em; }
.form-note { font-size: 0.75rem; color: var(--ink-faint); text-align: center; }
.form-success[hidden] { display: none; }
.form-success {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(47, 125, 92, 0.12);
  border: 1px solid rgba(47, 125, 92, 0.25);
  color: var(--brand-dark);
  display: grid;
  gap: 2px;
  font-size: 0.9rem;
  text-align: center;
}

/* ===== Контакты ===== */
.contacts-text { padding-right: 8px; }
.contacts-text p { margin-top: 16px; }
.contacts-grid { display: grid; gap: 14px; align-content: center; }
.contact-item {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.5);
}
.contact-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}
.contact-value {
  display: block;
  margin-top: 4px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
a.contact-value:hover { color: var(--brand); }

/* ===== Подвал ===== */
.footer { margin-top: 64px; }
.footer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-name { font-family: var(--font-head); font-weight: 800; color: var(--ink); }
.footer-links { display: flex; align-items: center; gap: 20px; font-size: 0.9rem; color: var(--ink-mute); }
.footer-links a:hover, .footer-links .link-plain:hover { color: var(--brand); }
.footer-copy { font-size: 0.8rem; color: var(--ink-faint); }

/* ===== Модальное окно ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.4); }
.modal-window {
  position: relative;
  width: min(560px, 100%);
  max-height: 80vh;
  overflow: auto;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.modal-window h3 { font-size: 1.3rem; margin-bottom: 16px; }
.modal-body { display: grid; gap: 12px; font-size: 0.9rem; }
.modal-body a { color: var(--brand); text-decoration: underline; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.06);
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.modal-close:hover { background: rgba(30, 41, 59, 0.12); }

/* ===== Анимации появления ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Адаптив ===== */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-card, .order-inner { grid-template-columns: 1fr; padding: 32px; }
  .contacts-text { padding-right: 0; }
  .hero-content { min-height: 420px; padding: 36px; }
}
@media (max-width: 640px) {
  .page { padding: 0 14px 28px; }
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 10px 12px; border-radius: 10px; }
  .nav-links a:hover { background: rgba(47, 125, 92, 0.08); }
  .nav { position: relative; }
  .burger { display: flex; }
  .header { top: 8px; }
  .grid-3, .grid-4, .stats { grid-template-columns: 1fr; }
  .hero-content { min-height: 460px; padding: 24px; }
  .about-card, .order-inner { padding: 24px; }
  .footer-card { flex-direction: column; text-align: center; }
}
