/* WormMax — earth-tone craft brand
   Palette: soil #3B2314 · moss #4A6741 · beige #F5EFE4 · terracotta #C2622D · cream #FDFAF6
*/

:root {
  --soil: #3B2314;
  --soil-deep: #2A180C;
  --soil-soft: #5A3A24;
  --moss: #4A6741;
  --moss-deep: #38502F;
  --beige: #F5EFE4;
  --beige-deep: #E8DFCE;
  --terra: #C2622D;
  --terra-deep: #A8521F;
  --cream: #FDFAF6;
  --ink: #1F140B;

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --container: 1240px;
  --pad: clamp(20px, 4vw, 56px);
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

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

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.wrap { max-width: var(--container); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

/* ------- NAV ------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  transition: background 0.35s ease, padding 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(253, 250, 246, 0.88);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  padding: 12px 0;
  border-bottom-color: rgba(59, 35, 20, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.005em;
  transition: color 0.35s ease;
}
.nav.scrolled .brand { color: var(--soil); }
.brand-mark {
  width: 34px; height: 32px;
  display: inline-block;
  background-color: var(--terra);
  -webkit-mask: url(assets/logo.png) no-repeat center / contain;
  mask: url(assets/logo.png) no-repeat center / contain;
  transition: background-color 0.35s ease;
}
.nav .brand-mark { background-color: var(--terra); }
.nav.scrolled .brand-mark { background-color: var(--terra); }
.footer .brand-mark { background-color: var(--terra); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(253, 250, 246, 0.85);
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
}
.nav-link:hover { color: var(--cream); }
.nav.scrolled .nav-link { color: var(--soil); }
.nav.scrolled .nav-link:hover { color: var(--terra); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transition: right 0.25s ease;
}
.nav-link:hover::after { right: 0; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--terra);
  color: var(--cream) !important;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { background: var(--terra-deep); transform: translateY(-1px); }
.nav-cta::after { display: none; }

.burger {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--cream);
}
.nav.scrolled .burger { color: var(--soil); }
.burger span {
  width: 22px; height: 1.5px;
  background: currentColor;
  position: relative;
  transition: background 0.2s;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0;
  width: 22px; height: 1.5px;
  background: currentColor;
  transition: transform 0.25s ease;
}
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.burger.open span { background: transparent; }
.burger.open span::before { transform: translateY(7px) rotate(45deg); }
.burger.open span::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--soil-deep);
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  color: var(--cream);
  font-family: var(--serif);
  font-size: 32px;
}

/* ------- HERO ------- */
.hero {
  position: relative;
  min-height: 100vh;
  color: var(--cream);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  padding: 140px 0 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(194, 98, 45, 0.22), transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(74, 103, 65, 0.28), transparent 60%),
    linear-gradient(160deg, #2A180C 0%, #3B2314 40%, #1A0E06 100%);
}
.hero-grain {
  position: absolute; inset: 0;
  z-index: -1;
  opacity: 0.55;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0.23  0 0 0 0 0.14  0 0 0 0 0.07  0 0 0 0.45 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-vignette {
  position: absolute; inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
  width: 100%;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 239, 228, 0.7);
  margin-bottom: 28px;
}
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--terra); }

.hero h1 {
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.hero h1 .italic {
  font-style: italic;
  font-weight: 400;
  color: var(--beige);
}
.hero h1 .accent {
  color: var(--terra);
  font-style: italic;
  font-weight: 400;
}

.hero-sub {
  font-size: clamp(16px, 1.3vw, 19px);
  max-width: 520px;
  color: rgba(245, 239, 228, 0.78);
  margin-bottom: 40px;
  line-height: 1.55;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--terra);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--terra-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -12px rgba(194, 98, 45, 0.6);
}
.btn-primary .arrow {
  transition: transform 0.25s ease;
}
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  border-color: rgba(245, 239, 228, 0.3);
  color: var(--cream);
}
.btn-ghost:hover {
  background: rgba(245, 239, 228, 0.08);
  border-color: rgba(245, 239, 228, 0.5);
}

/* hero side info card */
.hero-card {
  background: rgba(20, 12, 6, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 239, 228, 0.12);
  border-radius: 8px;
  padding: 28px;
  display: grid;
  gap: 20px;
}
.hero-card-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 239, 228, 0.55);
}
.hero-card-stat {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  font-weight: 500;
  color: var(--cream);
}
.hero-card-stat .unit {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: rgba(245, 239, 228, 0.6);
  margin-left: 6px;
}
.hero-card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 16px;
  border-top: 1px solid rgba(245, 239, 228, 0.12);
  font-size: 13px;
  color: rgba(245, 239, 228, 0.72);
}
.hero-card-row strong { color: var(--cream); font-weight: 500; }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(245, 239, 228, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(245,239,228,0.6), transparent);
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.001% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ------- SECTIONS ------- */
.section {
  padding: clamp(80px, 12vh, 140px) 0;
  position: relative;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(36px, 5.2vw, 68px);
  line-height: 1;
  letter-spacing: -0.025em;
  max-width: 700px;
}
.section-head h2 .italic { font-style: italic; color: var(--moss); font-weight: 400; }
.section-head .lede {
  max-width: 360px;
  color: rgba(31, 20, 11, 0.65);
  font-size: 15px;
  line-height: 1.6;
}

.section-eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.section-eyebrow-row .num { color: rgba(31, 20, 11, 0.35); }

/* ------- ABOUT ------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  align-items: start;
}
.about-text p {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(31, 20, 11, 0.78);
  margin-bottom: 18px;
}
.about-text p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 500;
  float: left;
  line-height: 0.85;
  margin: 6px 12px 0 0;
  color: var(--terra);
}
.about-sign {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--soil);
  margin-top: 28px;
}
.about-sign small {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(31, 20, 11, 0.45);
  margin-top: 6px;
}

.about-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  background: url("uploads/worm-macro.jpg") center / cover no-repeat;
}
.about-visual::before { display: none; }
.about-visual::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='2'/><feColorMatrix values='0 0 0 0 0.25  0 0 0 0 0.16  0 0 0 0 0.08  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.7;
}
.placeholder-label {
  position: absolute;
  bottom: 20px; left: 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 239, 228, 0.6);
  display: flex; align-items: center; gap: 8px;
}
.placeholder-label::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--terra);
}

.about-visual-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 239, 228, 0.18);
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0.04em;
}

.about-tag {
  position: absolute;
  top: 24px; right: 24px;
  background: var(--cream);
  color: var(--soil);
  padding: 12px 16px;
  border-radius: 4px;
  font-family: var(--serif);
  font-size: 14px;
  display: grid;
  gap: 2px;
  min-width: 130px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.4);
}
.about-tag strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  display: block;
  line-height: 1;
}
.about-tag small {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(31, 20, 11, 0.55);
  margin-top: 4px;
}

/* stat blocks */
.stat-grid {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(59, 35, 20, 0.15);
}
.stat {
  padding: 36px 36px 36px 0;
  border-right: 1px solid rgba(59, 35, 20, 0.15);
  display: grid;
  gap: 14px;
}
.stat:last-child { border-right: none; padding-right: 0; }
.stat:not(:first-child) { padding-left: 36px; }
.stat-icon {
  width: 44px; height: 44px;
  color: var(--moss);
  display: grid;
  place-items: center;
}
.stat-icon svg { width: 100%; height: 100%; }
.stat h3 {
  font-size: 22px;
  font-weight: 500;
  color: var(--soil);
  letter-spacing: -0.01em;
}
.stat p {
  font-size: 14px;
  color: rgba(31, 20, 11, 0.6);
  line-height: 1.55;
}

/* ------- PRODUCTS ------- */
.products {
  background: var(--beige);
  position: relative;
}
.products::before, .products::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 60px;
  background: var(--cream);
  z-index: 1;
}
.products::before {
  top: -1px;
  clip-path: polygon(0 0, 100% 0, 100% 0%, 88% 35%, 76% 12%, 64% 48%, 52% 18%, 38% 55%, 24% 22%, 12% 50%, 0 28%);
}
.products::after {
  bottom: -1px;
  transform: rotate(180deg);
  clip-path: polygon(0 0, 100% 0, 100% 0%, 88% 35%, 76% 12%, 64% 48%, 52% 18%, 38% 55%, 24% 22%, 12% 50%, 0 28%);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
/* Товар остался один (червь). Вертикальная карточка на всю ширину смотрелась бы
   растянутой, а в половину — потерянной в пустой секции. Поэтому раскладываем её
   горизонтально: фото слева, описание справа. */
.product-grid.single { grid-template-columns: 1fr; }
.product-grid.single .product {
  grid-template-columns: 1.1fr 1fr;
  grid-template-rows: 1fr;
}
.product-grid.single .product-image {
  aspect-ratio: auto;
  min-height: 440px;
}
.product {
  background: var(--cream);
  border-radius: 6px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
}
.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -25px rgba(59, 35, 20, 0.25);
}
.product-image {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
/* Живое фото фермы. Затемняющий градиент сверху — под бейдж «Свежая партия»,
   иначе тёмный текст на светлом торфе не читается. */
.product-image.worm {
  background:
    linear-gradient(165deg, rgba(26, 14, 6, 0.45), rgba(26, 14, 6, 0) 40%),
    url("uploads/worm-peat.jpg") center 55% / cover no-repeat;
}
/* Шумовая накладка задумана для CSS-заглушек; поверх фотографии она только
   замыливает зерно торфа. */
.product-image.worm::before { display: none; }
.product-image.humus {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(74, 103, 65, 0.25), transparent 55%),
    radial-gradient(ellipse at 20% 70%, rgba(0, 0, 0, 0.4), transparent 50%),
    linear-gradient(145deg, #3B2314, #1A0E06);
}
.product-image::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0.2  0 0 0 0 0.12  0 0 0 0 0.06  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.85;
}
.product-image::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.4));
}
.product-image-label {
  position: absolute;
  bottom: 16px; left: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 239, 228, 0.65);
  z-index: 1;
  display: flex; align-items: center; gap: 8px;
}
.product-image-label::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--terra);
}

.product-badge {
  position: absolute;
  top: 18px; left: 18px;
  background: rgba(253, 250, 246, 0.92);
  color: var(--soil);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 1;
}

.product-body {
  padding: 32px 32px 36px;
  display: grid;
  gap: 20px;
}
.product-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.product-head h3 {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.product-head h3 .italic {
  font-style: italic;
  font-weight: 400;
  color: var(--moss);
}
.product-price {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--terra);
}
.product-price small {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(31, 20, 11, 0.5);
  display: block;
  font-weight: 400;
}
.product-price-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--terra);
  color: var(--cream) !important;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.product-price-cta:hover {
  background: var(--terra-deep);
  transform: translateY(-1px);
}
.product-price-cta .arrow { transition: transform 0.2s ease; }
.product-price-cta:hover .arrow { transform: translateX(3px); }

.product-desc {
  color: rgba(31, 20, 11, 0.72);
  font-size: 15px;
  line-height: 1.6;
}

.product-packs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid rgba(59, 35, 20, 0.1);
}
.pack {
  padding: 8px 14px;
  border: 1px solid rgba(59, 35, 20, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.05em;
  color: var(--soil);
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
}
.pack:hover {
  background: var(--soil);
  color: var(--cream);
  border-color: var(--soil);
}
.pack.active {
  background: var(--terra);
  color: var(--cream);
  border-color: var(--terra);
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(31, 20, 11, 0.5);
}
.product-foot .order {
  color: var(--soil);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.25s ease, color 0.25s ease;
}
.product-foot .order:hover {
  color: var(--terra);
  gap: 14px;
}

/* product attributes */
.product-attrs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 4px;
}
.attr {
  font-size: 12px;
  color: rgba(31, 20, 11, 0.6);
  line-height: 1.4;
}
.attr strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  color: var(--soil);
  margin-bottom: 2px;
}

/* Второстепенная ссылка-строка (биогумус под карточкой червя). Намеренно тише
   карточки: без фона и тени, чтобы не конкурировать с основным товаром. */
.aside-link {
  margin-top: 32px;
  padding: 22px 28px;
  border: 1px solid rgba(59, 35, 20, 0.16);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(31, 20, 11, 0.62);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.aside-link:hover {
  border-color: rgba(59, 35, 20, 0.32);
  background: rgba(253, 250, 246, 0.6);
}
.aside-link strong { color: var(--soil); font-weight: 500; }
.aside-link-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  transition: gap 0.25s ease;
}
.aside-link:hover .aside-link-cta { gap: 14px; }

/* ------- ПОДСТРАНИЦА (биогумус) -------
   Статическая HTML-страница без React: класса .reveal здесь нет (некому добавить
   .in — элементы остались бы невидимыми), бургер-меню тоже нет. Навбар отрисован
   сразу в состоянии .scrolled, потому что страница светлая с самого верха. */
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soil);
  transition: gap 0.25s ease, color 0.25s ease;
}
.nav-back:hover { color: var(--terra); gap: 16px; }

.subpage-head {
  padding: clamp(130px, 18vh, 190px) 0 clamp(48px, 8vh, 80px);
}
.subpage-title {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -0.025em;
  max-width: 820px;
  margin-bottom: 28px;
}
.subpage-title .italic { font-style: italic; color: var(--moss); font-weight: 400; }
.subpage-lede {
  max-width: 640px;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.65;
  color: rgba(31, 20, 11, 0.68);
}

.humus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.humus-body { display: grid; gap: 22px; }
.humus-body h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
.humus-body h2 .price { color: var(--terra); font-style: italic; font-weight: 400; }
.humus-body p { font-size: 15px; line-height: 1.65; color: rgba(31, 20, 11, 0.72); }
.humus-body .product-attrs { padding-top: 20px; border-top: 1px solid rgba(59, 35, 20, 0.12); }
.humus-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.humus-cta .btn-ghost { border-color: rgba(59, 35, 20, 0.25); color: var(--soil); }
.humus-cta .btn-ghost:hover { border-color: var(--soil); }

@media (max-width: 960px) {
  .humus-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ------- DELIVERY ------- */
.delivery {
  background: var(--soil-deep);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.delivery::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' seed='9'/><feColorMatrix values='0 0 0 0 0.25  0 0 0 0 0.16  0 0 0 0 0.08  0 0 0 0.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.5;
  pointer-events: none;
}
.delivery .section-head h2 .italic { color: var(--terra); }
.delivery .section-head .lede { color: rgba(245, 239, 228, 0.65); }
.delivery .section-eyebrow-row { color: rgba(245, 239, 228, 0.55); }
.delivery .section-eyebrow-row .eyebrow { color: var(--terra); }
.delivery .section-eyebrow-row .num { color: rgba(245, 239, 228, 0.3); }

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(245, 239, 228, 0.15);
  border-bottom: 1px solid rgba(245, 239, 228, 0.15);
}
.deliv {
  padding: 48px 36px 48px 0;
  border-right: 1px solid rgba(245, 239, 228, 0.15);
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 16px;
  position: relative;
}
.deliv:last-child { border-right: none; padding-right: 0; }
.deliv:not(:first-child) { padding-left: 36px; }
.deliv-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(245, 239, 228, 0.45);
}
.deliv-icon {
  width: 56px; height: 56px;
  color: var(--terra);
}
.deliv h3 {
  font-size: 26px;
  color: var(--cream);
  font-weight: 500;
}
.deliv-body {
  color: rgba(245, 239, 228, 0.72);
  font-size: 14px;
  line-height: 1.6;
}
.deliv-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
}

.delivery-note {
  margin-top: 56px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  background: rgba(245, 239, 228, 0.06);
  border-left: 2px solid var(--terra);
  border-radius: 0 6px 6px 0;
}
.delivery-note .icon {
  width: 28px; height: 28px;
  color: var(--terra);
  flex-shrink: 0;
}
.delivery-note p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(245, 239, 228, 0.85);
}
.delivery-note strong { color: var(--cream); font-weight: 500; }

/* Блок про упаковку с изображением этикетки. Картинка намеренно небольшая:
   упаковка — не главный аргумент, главный это червь оптом. */
.pack-note {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: center;
  padding: 28px;
  background: rgba(245, 239, 228, 0.06);
  border-left: 2px solid var(--terra);
  border-radius: 0 6px 6px 0;
}
.pack-label { margin: 0; }  /* у <figure> дефолтные margin: 1em 40px — съедают колонку */
.pack-label img {
  width: 100%;
  height: auto;  /* иначе атрибут height из разметки растягивает картинку по вертикали */
  border-radius: 8px;
  box-shadow: 0 20px 44px -20px rgba(0, 0, 0, 0.7);
}
.pack-label figcaption {
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 239, 228, 0.5);
}
.pack-note p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(245, 239, 228, 0.85);
}
.pack-note strong { color: var(--cream); font-weight: 500; }

@media (max-width: 960px) {
  .pack-note { grid-template-columns: 1fr; gap: 24px; }
  .pack-label { max-width: 340px; }
}

/* stores list */
.stores-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(245, 239, 228, 0.15);
  margin-bottom: 28px;
}
.stores-count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 239, 228, 0.45);
}
.stores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}
.store {
  background: rgba(245, 239, 228, 0.05);
  border: 1px solid rgba(245, 239, 228, 0.12);
  border-radius: 6px;
  padding: 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  transition: all 0.25s ease;
}
.store:hover {
  background: rgba(245, 239, 228, 0.09);
  border-color: rgba(194, 98, 45, 0.5);
  transform: translateY(-3px);
}
.store-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--terra);
  padding-top: 4px;
}
.store-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 8px;
}
.store-addr {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(245, 239, 228, 0.65);
  line-height: 1.5;
}
.store-addr svg { color: var(--terra); flex-shrink: 0; }

/* delivery side cards */
.delivery-side-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(245, 239, 228, 0.15);
  border-bottom: 1px solid rgba(245, 239, 228, 0.15);
}
.side-card {
  padding: 40px 32px 40px 0;
  border-right: 1px solid rgba(245, 239, 228, 0.15);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 14px;
}
.side-card:last-child { border-right: none; padding-right: 0; }
.side-card:not(:first-child) { padding-left: 32px; }
.side-card .deliv-icon { width: 44px; height: 44px; color: var(--terra); }
.side-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--cream);
  font-weight: 500;
}
.side-card p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(245, 239, 228, 0.72);
}
.side-card p strong { color: var(--terra); font-weight: 500; }
.side-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 239, 228, 0.5);
}

/* ------- CONTACTS ------- */
.contacts {
  background: var(--cream);
  position: relative;
}
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 36px;
}
.contact-block {
  padding-top: 24px;
  border-top: 1px solid rgba(59, 35, 20, 0.15);
}
.contact-block:first-child { border-top: none; padding-top: 0; }
.contact-block .eyebrow {
  margin-bottom: 12px;
}
.contact-block .value {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  color: var(--soil);
  letter-spacing: -0.01em;
  display: block;
}
.contact-block .value:hover { color: var(--terra); }
.contact-block .value-sub {
  font-size: 14px;
  color: rgba(31, 20, 11, 0.55);
  margin-top: 6px;
}

.contact-channels {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.channel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.channel.tg {
  background: var(--moss);
  color: var(--cream);
}
.channel.tg:hover { background: var(--moss-deep); transform: translateY(-2px); }
.channel.wa {
  background: transparent;
  color: var(--soil);
  border-color: rgba(59, 35, 20, 0.25);
}
.channel.wa:hover { background: var(--soil); color: var(--cream); border-color: var(--soil); }
.channel svg { width: 18px; height: 18px; }

/* form */
.form {
  background: var(--beige);
  padding: 40px;
  border-radius: 8px;
  display: grid;
  gap: 20px;
  position: relative;
}
.form-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.form-head h3 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.form-head .step {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(31, 20, 11, 0.5);
}
.field {
  display: grid;
  gap: 8px;
}
.field label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(31, 20, 11, 0.55);
}
.field input, .field textarea, .field select {
  font: inherit;
  font-size: 16px;
  color: var(--soil);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(59, 35, 20, 0.25);
  padding: 8px 0 12px;
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
  font-family: var(--sans);
}
.field input::placeholder, .field textarea::placeholder {
  color: rgba(31, 20, 11, 0.35);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-bottom-color: var(--terra);
}
.field textarea {
  resize: vertical;
  min-height: 80px;
}
.field.error input, .field.error textarea {
  border-bottom-color: var(--terra-deep);
}
.field-err {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra-deep);
}

/* Honeypot-поле: убрано за пределы экрана, недоступно для клавиатуры и
   скринридеров. Заполнить его может только бот, слепо проходящий по инпутам. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  font-size: 13px;
  line-height: 1.5;
  color: var(--terra-deep);
  background: rgba(194, 98, 45, 0.08);
  border: 1px solid rgba(194, 98, 45, 0.25);
  border-radius: 6px;
  padding: 12px 14px;
}
.form-error a { color: var(--terra-deep); font-weight: 600; }

.btn-primary:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-submit {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.form-submit .legal {
  font-size: 12px;
  color: rgba(31, 20, 11, 0.55);
  max-width: 300px;
  line-height: 1.5;
}

.form-success {
  padding: 40px;
  text-align: center;
  display: grid;
  gap: 14px;
  justify-items: center;
}
.form-success .check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--moss);
  color: var(--cream);
  display: grid;
  place-items: center;
}
.form-success h3 {
  font-size: 28px;
  font-weight: 500;
}
.form-success p {
  color: rgba(31, 20, 11, 0.65);
  max-width: 320px;
}

/* address card */
.address-card {
  margin-top: 12px;
  padding: 24px;
  border: 1px solid rgba(59, 35, 20, 0.15);
  border-radius: 6px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  background: rgba(245, 239, 228, 0.4);
}
.address-card .address-pin {
  width: 40px; height: 40px;
  background: var(--soil);
  color: var(--cream);
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.address-card-text {
  display: grid;
  gap: 4px;
}
.address-card-text strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--soil);
}
.address-card-text span {
  font-size: 13px;
  color: rgba(31, 20, 11, 0.6);
}
.address-card .route {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* ------- FOOTER ------- */
.footer {
  background: var(--soil-deep);
  color: rgba(245, 239, 228, 0.7);
  padding: 80px 0 32px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.2  0 0 0 0 0.12  0 0 0 0 0.06  0 0 0 0.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.4;
  pointer-events: none;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(245, 239, 228, 0.12);
}
.footer-brand .brand { color: var(--cream); }
.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--beige);
  margin-top: 20px;
  max-width: 380px;
  line-height: 1.4;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.footer-col li { font-size: 14px; }
.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 239, 228, 0.45);
  flex-wrap: wrap;
}

/* ------- SCROLL REVEAL ------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* ------- RESPONSIVE ------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 360px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-grid.single .product { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .product-grid.single .product-image { aspect-ratio: 4 / 3; min-height: 0; }
  .delivery-grid { grid-template-columns: 1fr; }
  .deliv {
    padding: 36px 0;
    border-right: none;
    border-bottom: 1px solid rgba(245, 239, 228, 0.15);
  }
  .deliv:last-child { border-bottom: none; }
  .deliv:not(:first-child) { padding-left: 0; }
  .stores-grid { grid-template-columns: 1fr 1fr; }
  .delivery-side-grid { grid-template-columns: 1fr; }
  .side-card {
    padding: 32px 0;
    border-right: none;
    border-bottom: 1px solid rgba(245, 239, 228, 0.15);
  }
  .side-card:last-child { border-bottom: none; }
  .side-card:not(:first-child) { padding-left: 0; }
  .contacts-grid { grid-template-columns: 1fr; gap: 56px; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat {
    padding: 28px 0;
    border-right: none;
    border-bottom: 1px solid rgba(59, 35, 20, 0.15);
  }
  .stat:last-child { border-bottom: none; }
  .stat:not(:first-child) { padding-left: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .burger { display: inline-flex; }
}

@media (max-width: 640px) {
  .form { padding: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .address-card { grid-template-columns: 1fr; }
  .product-attrs { grid-template-columns: 1fr 1fr; }
  .stores-grid { grid-template-columns: 1fr; }
  .hero { padding: 120px 0 60px; }
  .section-head { margin-bottom: 40px; }
}
