﻿/* БиоГумус — дизайн-система. Лес / почва / чистая витрина. */

:root {
  --c-green-800: #2f5a22;
  --c-green-700: #3a6b2a;
  --c-green-600: #457832;
  --c-green-500: #5a9140;
  --c-lime-500: #7cb82a;
  --c-lime-100: #e8f3d4;
  --c-sage-50: #f3f6ef;
  --c-sage-100: #e7eee0;
  --c-sage-200: #d3ddc8;
  --c-soil-950: #1a1410;
  --c-soil-900: #241c16;
  --c-soil-700: #4a3a2c;
  --c-danger: #b42318;
  --c-danger-soft: #fef3f2;
  --c-warn: #b7791f;
  --c-ok: #2f5a22;

  --bg: #ffffff;
  --bg-soft: var(--c-sage-50);
  --bg-card: #ffffff;
  --bg-muted: var(--c-sage-100);
  --fg: #1a2116;
  --fg-muted: #55604c;
  --fg-faint: #7d8874;
  --line: #d7e0ce;
  --brand: var(--c-green-600);
  --brand-hover: var(--c-green-800);
  --brand-soft: var(--c-lime-100);
  --accent: var(--c-green-700);
  --accent-hover: var(--c-green-800);
  --danger: var(--c-danger);
  --danger-soft: var(--c-danger-soft);
  --warn: var(--c-warn);
  --ok: var(--c-ok);
  --shadow: 0 1px 2px rgba(26, 20, 16, .05), 0 10px 28px -14px rgba(26, 20, 16, .22);
  --shadow-lg: 0 28px 56px -24px rgba(26, 20, 16, .32);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --container: 1280px;
  --gutter: 22px;
  --measure: 68ch;
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 68px;
  --focus: 0 0 0 3px rgba(69, 120, 50, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.55; color: var(--fg); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .icon-btn:focus-visible, .cart-pill:focus-visible {
  outline: none; box-shadow: var(--focus);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.12; margin: 0 0 .55em; letter-spacing: -.025em; color: var(--fg); }
h1 { font-size: clamp(30px, 4.2vw, 48px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: clamp(18px, 2vw, 22px); }
h4 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
table { border-collapse: collapse; width: 100%; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: 12px; top: 12px; z-index: 100;
  padding: 10px 14px; border-radius: var(--r-sm);
  background: var(--brand); color: #fff; font-weight: 700;
  transform: translateY(-160%); transition: transform .15s;
}
.skip-link:focus { transform: none; color: #fff; box-shadow: var(--focus); }
[x-cloak] { display: none !important; }

/* Сетка */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
.col-12 { grid-column: span 12; } .col-8 { grid-column: span 8; } .col-7 { grid-column: span 7; } .col-6 { grid-column: span 6; } .col-5 { grid-column: span 5; } .col-4 { grid-column: span 4; } .col-3 { grid-column: span 3; }
@media (max-width: 1024px) { .col-8, .col-7, .col-6, .col-5, .col-4 { grid-column: span 6; } .col-3 { grid-column: span 6; } }
@media (max-width: 640px) { .grid { gap: 16px; } .col-8, .col-7, .col-6, .col-5, .col-4, .col-3 { grid-column: span 12; } }
.section { padding: clamp(32px, 5vw, 64px) 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: clamp(24px, 4vw, 48px) 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.section__head h2 { margin: 0; }
.section__head p { margin: 6px 0 0; color: var(--fg-muted); max-width: 720px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.lead { font-size: 18px; color: var(--fg-muted); }
.muted { color: var(--fg-muted); }
.small { font-size: 14px; }
.prose { max-width: min(820px, var(--measure)); }
.page-head { padding: 12px 0 8px; }
.page-head h1 { margin-bottom: 8px; text-wrap: pretty; }
.page-head .lead { margin: 0; max-width: 62ch; }
.catalog-block__title { margin: 26px 0 14px; font-size: clamp(18px, 2.2vw, 22px); }
.catalog-block__title--flush { margin: 0; font-size: inherit; }
.catalog-block__title a { color: inherit; }
.catalog-block__title a:hover { color: var(--brand); }
.stack-gap { display: grid; gap: var(--space-4); }
.contact-list__phone { font-family: var(--font-head); font-size: clamp(20px, 3vw, 24px); font-weight: 800; color: var(--fg); }
.contact-list__phone:hover { color: var(--brand); }
.contact-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.contact-links { margin-top: 20px; }
.prose--spaced { margin-top: 24px; }
.compare__more { margin-top: 14px; }
.side-stack { display: grid; gap: 16px; }
.side-stack .btn--block { margin-top: 12px; }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.faq-section { margin-top: 28px; }
.faq-section:first-child { margin-top: 0; }
.faq-section__title { font-size: clamp(20px, 2.4vw, 24px); margin: 0 0 12px; }
.tile--link { display: block; color: inherit; }
.tile--link:hover { color: inherit; border-color: var(--brand); }
.reviews--1 { grid-template-columns: 1fr; }
.reviews--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .reviews--2 { grid-template-columns: 1fr; } }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose img { border-radius: var(--r-md); margin: 1.2em 0; }
.prose table { font-size: 15px; margin: 1.2em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-muted); font-weight: 600; }
.prose blockquote { margin: 1.2em 0; padding: 12px 20px; border-left: 4px solid var(--brand); background: var(--bg-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 12px 20px; border-radius: var(--r-sm); font-weight: 700; font-size: 15px; line-height: 1.2; border: 1.5px solid transparent; transition: background .18s, color .18s, border-color .18s, transform .12s, box-shadow .18s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -12px rgba(47, 90, 34, .7); }
.btn--primary:hover { background: var(--brand-hover); color: #fff; }
.btn--accent { background: var(--c-green-800); color: #fff; }
.btn--accent:hover { background: var(--c-soil-950); color: #fff; }
.btn--outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn--outline:hover { background: var(--brand-soft); color: var(--brand-hover); }
.btn--ghost { color: var(--fg); background: var(--bg-muted); }
.btn--ghost:hover { background: var(--c-sage-200); color: var(--fg); }
.btn--sm { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.btn--lg { min-height: 50px; padding: 14px 24px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Формы */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 600; color: var(--fg-muted); }
.input, .select, .textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--bg-card); color: var(--fg); outline: none; transition: border-color .15s; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: var(--focus); }
.input.is-invalid, .input[aria-invalid="true"] { border-color: var(--danger); }
.textarea { min-height: 96px; resize: vertical; }
.field__error { font-size: 13px; color: var(--danger); font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--fg-muted); }
.check input { margin-top: 3px; accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .field { margin-bottom: 8px; gap: 3px; }
  .field label { font-size: 12.5px; }
  .input, .select, .textarea { padding: 9px 11px; font-size: 16px; }
  .textarea { min-height: 72px; }
  .check { font-size: 12.5px; gap: 8px; }
  .card { padding: 14px; }
  .modal__box { padding: 18px; }
  .modal__box--sm { padding: 16px; max-width: 100%; }
  .modal__box--sm h3 { font-size: 18px; }
  .input--lg { padding: 12px 14px; font-size: 16px; }
}
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: var(--r-md); background: var(--brand-soft); color: var(--fg); border: 1px solid var(--brand); }
.alert--error { background: var(--danger-soft); border-color: var(--danger); color: var(--fg); }
.alert--ok { background: var(--brand-soft); border-color: var(--brand); }
/* Шапка */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); box-shadow: 0 6px 20px -18px rgba(26, 20, 16, .5); }
body:has(.hero:not(.hero--split)) .header {
  position: fixed; left: 0; right: 0; width: 100%;
  background: rgba(26, 20, 16, .42);
  border-bottom-color: transparent;
  box-shadow: none;
}
body:has(.hero:not(.hero--split)) .header__logo,
body:has(.hero:not(.hero--split)) .header__logo-text b,
body:has(.hero:not(.hero--split)) .nav a,
body:has(.hero:not(.hero--split)) .header__phone a,
body:has(.hero:not(.hero--split)) .header__callback,
body:has(.hero:not(.hero--split)) .icon-btn { color: #fff; }
body:has(.hero:not(.hero--split)) .header__logo-text > span { color: rgba(255,255,255,.72); }
body:has(.hero:not(.hero--split)) .nav a:hover,
body:has(.hero:not(.hero--split)) .nav a.is-active { color: #d8f0a8; }
body:has(.hero:not(.hero--split)) .nav a.is-active::after { background: #d8f0a8; }
body:has(.hero:not(.hero--split)) .icon-btn,
body:has(.hero:not(.hero--split)) .cart-pill:not(.is-filled) { background: rgba(255,255,255,.14); color: #fff; }
body:has(.hero:not(.hero--split)) .cart-pill.is-filled { background: var(--c-lime-500); color: var(--c-soil-950); }
body:has(.hero:not(.hero--split)) .header.is-solid {
  background: rgba(255, 255, 255, .97);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px -18px rgba(26, 20, 16, .5);
}
body:has(.hero:not(.hero--split)) .header.is-solid .header__logo,
body:has(.hero:not(.hero--split)) .header.is-solid .header__logo-text b,
body:has(.hero:not(.hero--split)) .header.is-solid .nav a,
body:has(.hero:not(.hero--split)) .header.is-solid .header__phone a,
body:has(.hero:not(.hero--split)) .header.is-solid .header__callback,
body:has(.hero:not(.hero--split)) .header.is-solid .icon-btn { color: var(--fg); }
body:has(.hero:not(.hero--split)) .header.is-solid .header__logo-text > span { color: var(--fg-faint); }
body:has(.hero:not(.hero--split)) .header.is-solid .nav a:hover,
body:has(.hero:not(.hero--split)) .header.is-solid .nav a.is-active { color: var(--brand); }
body:has(.hero:not(.hero--split)) .header.is-solid .nav a.is-active::after { background: var(--brand); }
body:has(.hero:not(.hero--split)) .header.is-solid .icon-btn,
body:has(.hero:not(.hero--split)) .header.is-solid .cart-pill:not(.is-filled) { background: var(--bg-muted); color: var(--fg); }
body:has(.hero:not(.hero--split)) .header.is-solid .cart-pill.is-filled { background: var(--brand); color: #fff; }
.header__bar { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.header__logo { display: flex; align-items: center; gap: 10px; color: var(--fg); flex: none; min-width: 0; }
.header__logo:hover { color: var(--fg); }
.header__logo-img {
  height: 44px; width: auto; max-width: min(220px, 42vw); display: block; flex: none;
  background: transparent;
}
.header__logo-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.header__logo-text b, .header__logo-kfh { font-family: var(--font-head); font-size: 14px; letter-spacing: -.02em; font-weight: 700; }
.header__logo-text > span { font-size: 12px; color: var(--fg-faint); }
.header__brand-short { display: none; }
body:has(.hero:not(.hero--split)) .header__logo-img {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
}
body:has(.hero:not(.hero--split)) .header.is-solid .header__logo-img { filter: none; }
.nav { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.nav a { position: relative; padding: 8px 12px; color: var(--fg); font-weight: 500; font-size: 15px; border-radius: var(--r-sm); }
.nav a:hover { color: var(--brand); }
.nav a.is-active { color: var(--brand); }
.nav a.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px; background: var(--brand); }
.header__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.header__phone { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; margin-right: 6px; }
.header__phone a { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--fg); white-space: nowrap; }
.header__phone a:hover { color: var(--brand); }
.header__callback { font-size: 13px; color: var(--brand); border-bottom: 1px dashed currentColor; line-height: 1.2; }
.header__callback:hover { color: var(--accent); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-muted); color: var(--fg); position: relative; flex: none; }
.icon-btn:hover { background: var(--brand-soft); color: var(--brand-hover); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn--wa { color: #1fa855; }
.icon-btn--call { display: none; }
.cart-pill { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 12px; border-radius: var(--r-sm); background: var(--bg-muted); color: var(--fg); font-weight: 600; font-size: 14px; white-space: nowrap; }
.cart-pill:hover { background: var(--brand-soft); color: var(--brand-hover); }
.cart-pill svg { width: 20px; height: 20px; flex: none; }
.cart-pill.is-filled { background: var(--brand); color: #fff; }
.cart-pill.is-filled:hover { background: var(--brand-hover); color: #fff; }
.badge-count { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.burger { display: none; }
.mobile-nav { display: none; }

@media (max-width: 1240px) {
  .header__logo-text { display: none; }
  .nav a { padding: 8px 9px; }
}
@media (max-width: 1100px) {
  :root { --header-h: 60px; }
  .header__bar { gap: 8px; }
  .header__logo { margin-right: auto; min-width: 0; }
  .header__logo-img { height: 36px; max-width: min(200px, 48vw); }
  .nav, .header__phone { display: none; }
  .icon-btn--call, .burger { display: inline-flex; }
  .mobile-nav { display: block; position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); z-index: 49; overflow: auto; padding: 12px var(--gutter) 32px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .18s, transform .18s, visibility .18s; }
  .mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .mobile-nav__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .mobile-nav a.mobile-nav__link { display: block; padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg-muted); font-size: 15px; font-weight: 600; color: var(--fg); }
  .mobile-nav__contacts { margin-top: 18px; display: grid; gap: 10px; }
}
@media (max-width: 560px) {
  .header__bar { gap: 6px; }
  .header__logo { gap: 8px; }
  .header__logo-img { height: 32px; max-width: min(180px, 52vw); }
  .hero__brand { overflow-wrap: anywhere; }
  .cart-pill { padding: 0 11px; }
  .cart-pill:not(.is-filled) .cart-pill__sum { display: none; }
  .cart-pill.is-filled .cart-pill__sum { font-size: 13px; }
  .icon-btn { width: 38px; height: 38px; }
  .icon-btn--wa { display: none; }
}

/* Хлебные крошки */
.crumbs { display: flex; flex-wrap: nowrap; gap: 0; font-size: 13px; color: var(--fg-faint); padding: 12px 0 0; min-width: 0; }
.crumbs a { color: var(--fg-muted); white-space: nowrap; }
.crumbs li { list-style: none; display: flex; gap: 8px; align-items: center; min-width: 0; }
.crumbs li + li::before { content: "/"; color: var(--line); flex: none; }
.crumbs ol { display: flex; flex-wrap: nowrap; gap: 0; margin: 0; padding: 0; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.crumbs ol::-webkit-scrollbar { display: none; }
.crumbs li:last-child a { overflow: hidden; text-overflow: ellipsis; }
.product-head { padding: 8px 0 14px; }
.product-head h1 { font-size: clamp(22px, 4.5vw, 32px); margin: 4px 0 0; line-height: 1.2; text-wrap: pretty; }
.product-head__lead, .buy__lead { margin: 0 0 10px; font-size: 14.5px; color: var(--fg-muted); line-height: 1.4; }
@media (max-width: 640px) {
  .crumbs { padding: 8px 0 0; font-size: 12px; }
  .page-head { padding: 8px 0 4px; }
  .page-head h1 { font-size: 22px; }
  .page-head .lead, .lead { font-size: 14.5px; }
  .product-head { padding: 4px 0 8px; }
  .product-head h1 { font-size: 18px; letter-spacing: -.02em; }
  .buy__lead { font-size: 13.5px; margin-bottom: 8px; }
  .compare { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 13.5px; }
  .compare th, .compare td { padding: 8px 10px; }
  .section { padding: 28px 0; }
  .section--tight { padding: 16px 0; }
  .cta { padding: 18px; }
}

/* Hero — full-bleed product plane */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(86vh, 780px);
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
  background: var(--c-soil-950);
  color: #f4f7ef;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 45%;
  transform: scale(1.03); animation: hero-ken 18s ease-in-out infinite alternate;
}
@keyframes hero-ken {
  from { transform: scale(1.03) translateY(0); }
  to { transform: scale(1.08) translateY(-1%); }
}
@media (prefers-reduced-motion: reduce) { .hero__media img { animation: none; transform: none; } }
.hero__shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(14, 20, 12, .48) 0%, rgba(26, 20, 16, .16) 40%, rgba(26, 20, 16, .5) 72%, rgba(26, 20, 16, .8) 100%),
    linear-gradient(105deg, rgba(26, 20, 16, .68) 0%, rgba(26, 20, 16, .22) 52%, rgba(22, 28, 18, .18) 100%);
}
@media (min-width: 961px) {
  .hero__media img { object-position: center 42%; }
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding: clamp(96px, 14vh, 140px) 0 clamp(28px, 5vh, 56px); }
.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: end;
  gap: clamp(16px, 3vw, 40px);
}
.hero__layout--solo { grid-template-columns: minmax(0, 1fr); }
.hero__copy { min-width: 0; }
.hero__products {
  position: relative;
  justify-self: end;
  width: min(100%, 520px);
  margin-bottom: -8px;
  animation: hero-fade .8s .1s ease both;
  pointer-events: none;
  user-select: none;
  isolation: isolate;
}
.hero__products-glow {
  position: absolute; left: 8%; right: 8%; bottom: 4%; height: 28%;
  background: radial-gradient(ellipse at center, rgba(232, 243, 212, .28) 0%, transparent 72%);
  filter: blur(8px); z-index: 0;
}
.hero__products-img, .hero__products img {
  position: relative; z-index: 1;
  width: 100%; height: auto; display: block;
  transform-origin: 55% 90%;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .5));
  animation: hero-float 5.5s 1s ease-in-out infinite;
}
@keyframes hero-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.hero__brand {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(28px, 5vw, 44px); letter-spacing: -.03em; line-height: 1.05;
  color: #fff; margin: 0 0 14px; text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
  animation: hero-rise .7s ease both;
}
.hero h1 {
  color: #f3f8eb; font-size: clamp(22px, 3.4vw, 34px); font-weight: 700;
  max-width: 20ch; margin: 0 0 12px; text-shadow: 0 2px 18px rgba(0, 0, 0, .3);
  animation: hero-rise .7s .08s ease both;
}
.hero__lead {
  color: rgba(243, 248, 235, .88); font-size: clamp(15px, 1.6vw, 18px);
  max-width: 40ch; margin: 0 0 22px; line-height: 1.45;
  animation: hero-rise .7s .14s ease both;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; animation: hero-rise .7s .2s ease both; }
.hero__actions .btn--primary { background: var(--c-lime-500); color: var(--c-soil-950); box-shadow: 0 10px 28px -12px rgba(124, 184, 42, .7); }
.hero__actions .btn--primary:hover { background: #8ec93a; color: var(--c-soil-950); }
.hero__actions .btn--outline {
  border-color: rgba(255, 255, 255, .55); color: #fff;
  background: rgba(255, 255, 255, .08); backdrop-filter: blur(6px);
}
.hero__actions .btn--outline:hover { background: rgba(255, 255, 255, .16); color: #fff; border-color: #fff; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: rgba(243, 248, 235, .78); animation: hero-rise .7s .26s ease both; }
.hero__meta a { color: #d8f0a8; text-decoration: underline; text-underline-offset: 3px; }
.hero__meta a:hover { color: #fff; }
.hero__cta-short { display: none; }
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__products, .hero__products img { animation: none; }
}
@media (max-width: 960px) {
  .hero__layout { grid-template-columns: 1fr; gap: 8px; }
  .hero__products {
    order: -1;
    justify-self: center;
    width: min(70vw, 300px);
    margin: 0 auto 2px;
    filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .4));
  }
  .hero__copy { text-align: left; }
}
@media (max-width: 720px) {
  .hero { min-height: min(86vh, 700px); align-items: flex-end; }
  .hero__inner { padding: 72px 0 22px; }
  .hero__products { width: min(72vw, 260px); }
  .hero__brand { font-size: clamp(24px, 8vw, 32px); margin-bottom: 10px; }
  .hero h1 { font-size: clamp(18px, 5.4vw, 24px); max-width: none; }
  .hero__lead { font-size: 14.5px; margin-bottom: 16px; }
  .hero__actions { flex-wrap: nowrap; gap: 8px; }
  .hero__actions .btn { flex: 1 1 0; justify-content: center; padding: 12px 10px; font-size: 14px; }
  .hero__cta-full { display: none; }
  .hero__cta-short { display: inline; }
  .hero__meta { font-size: 12.5px; gap: 6px 12px; }
}

/* Legacy / wholesale split hero */
.hero--split {
  min-height: 0; display: block; padding: clamp(28px, 5vw, 64px) 0;
  background: var(--bg-soft); color: var(--fg);
}
.hero--split .hero__media, .hero--split .hero__shade { display: none; }
.hero--split .hero__inner { padding: 0; }
.hero--split .hero__grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px 40px; align-items: center;
}
.hero--split h1 { color: var(--fg); text-shadow: none; max-width: none; font-size: clamp(26px, 3.5vw, 40px); }
.hero--split .hero__lead { color: var(--fg-muted); max-width: 620px; }
.hero--split .hero__actions .btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.hero--split .hero__actions .btn--outline {
  border-color: var(--brand); color: var(--brand); background: transparent; backdrop-filter: none;
}
.hero--split .hero__actions .btn--outline:hover { background: var(--brand-soft); color: var(--brand-hover); }
@media (max-width: 1024px) { .hero--split .hero__grid { grid-template-columns: 1fr; } }

/* Карточки */
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); }
.card--flat { box-shadow: none; }
.tile { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; transition: border-color .15s, box-shadow .15s; }
.tile:hover { border-color: var(--c-sage-200); box-shadow: var(--shadow); }
.tile h3 { margin-bottom: 8px; font-size: 18px; }
.tile p { color: var(--fg-muted); margin: 0; font-size: 15px; }
.tile__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; flex: none; }
.tile__icon svg { width: 24px; height: 24px; }
@media (max-width: 640px) {
  .tile:has(.tile__icon) { padding: 10px 12px; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 10px; align-items: start; }
  .tile:has(.tile__icon) .tile__icon { width: 36px; height: 36px; border-radius: 10px; margin: 0; grid-row: 1; }
  .tile:has(.tile__icon) .tile__icon svg { width: 18px; height: 18px; }
  .tile:has(.tile__icon) h3 { grid-column: 2; grid-row: 1; margin: 0; font-size: 15px; line-height: 1.25; align-self: center; }
  .tile:has(.tile__icon) p { grid-column: 2; grid-row: 2; font-size: 12.5px; line-height: 1.35; margin-top: 2px; }
}

/* Proof strip — без карточек */
.proof { background: linear-gradient(180deg, var(--c-sage-50) 0%, #fff 100%); }
.proof__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 28px;
}
.proof__list li { position: relative; padding-top: 14px; }
.proof__list li::before {
  content: ""; position: absolute; top: 0; left: 0; width: 36px; height: 3px;
  border-radius: 2px; background: var(--c-lime-500);
}
.proof__list h3 { margin: 0 0 6px; font-size: 17px; }
.proof__list p { margin: 0; color: var(--fg-muted); font-size: 14.5px; line-height: 1.4; }
@media (max-width: 1024px) { .proof__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .proof__list { grid-template-columns: 1fr 1fr; gap: 14px 16px; }
  .proof__list h3 { font-size: 15px; }
  .proof__list p { font-size: 12.5px; line-height: 1.35; }
}

.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; font-size: 14px; color: var(--fg-muted); }
.hero__facts b { color: var(--fg); font-family: var(--font-head); }
.gallery__gost { margin: 10px 0 0; font-size: 13.5px; color: var(--fg-muted); line-height: 1.35; }
.gallery__gost a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.card--buy { box-shadow: none; border-color: var(--c-sage-200); background: linear-gradient(180deg, #fff 0%, var(--c-sage-50) 100%); }
/* Калькулятор дозы */
.calc__title { margin: 0 0 4px; font-size: 22px; }
.calc__sub { margin: 0 0 12px; }
.calc__tabs { margin-bottom: 12px; }
.calc__field { margin-bottom: 8px; }
.calc__hint { margin: 0 0 12px; }
.calc__results { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc__result { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-soft); }
.calc__label { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); margin-bottom: 4px; }
.calc__value { font-family: var(--font-head); font-weight: 800; font-size: 24px; color: var(--fg); line-height: 1.15; }
.calc__value small { font-family: var(--font); font-weight: 500; font-size: 13px; color: var(--fg-muted); margin-left: 4px; }
.calc__rec { margin: 8px 0 0; font-size: 13.5px; color: var(--fg-muted); line-height: 1.35; }
.calc__atc { margin-top: 8px; }
@media (max-width: 860px) {
  .calc { padding: 14px; }
  .calc__title { font-size: 18px; }
  .calc__sub { font-size: 12.5px; margin-bottom: 8px; }
  .calc__tabs { margin-bottom: 8px; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .calc__tabs::-webkit-scrollbar { display: none; }
  .calc__tabs button { flex: none; padding: 8px 10px; font-size: 13px; white-space: nowrap; }
  .calc__field { margin-bottom: 6px; }
  .calc__field .input { padding: 8px 10px; max-width: 140px; }
  .calc__hint { font-size: 12px; margin-bottom: 8px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .calc__results { grid-template-columns: 1fr; gap: 8px; }
  .calc__result { padding: 10px 12px; }
  .calc__label { font-size: 10.5px; margin-bottom: 2px; }
  .calc__value { font-size: 20px; }
  .calc__value small { font-size: 12px; }
  .calc__rec { margin-top: 6px; font-size: 12.5px; }
  .calc__atc { margin-top: 6px; }
}

/* Товар */
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
@media (max-width: 1180px) { .products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.product-card { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color .15s, box-shadow .15s; position: relative; }
.product-card:hover { border-color: var(--c-sage-200); box-shadow: var(--shadow); }
.product-card:focus-within { box-shadow: var(--focus); }
.product-card__img { position: relative; aspect-ratio: 1; background: linear-gradient(160deg, var(--c-sage-50), #fff 60%); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-card__img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.product-card__ph { width: 40%; color: var(--brand); opacity: .45; }
.product-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card__form { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-faint); font-weight: 600; }
.product-card__form .stock { font-size: 12px; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.product-card__title { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--fg); line-height: 1.25; margin: 0; }
.product-card__title a { color: inherit; }
.product-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.product-card__yield { font-size: 13.5px; color: var(--fg-muted); flex: 1; }
.product-card__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--fg); }
.price--old { font-size: 15px; font-weight: 500; color: var(--fg-faint); text-decoration: line-through; }
.price__per { font-size: 13px; color: var(--fg-muted); }
.product-card__yield { margin: 0; }
.product-card__actions { position: relative; z-index: 2; margin-top: 6px; }
.atc { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.atc--sm, .atc--sm .btn { width: 100%; }
@media (max-width: 860px) {
  .product-card__img img { padding: 8px; }
  .product-card__body { padding: 10px 12px 12px; gap: 5px; }
  .product-card__form { flex-direction: column; align-items: flex-start; gap: 2px; font-size: 10.5px; }
  .product-card__title { font-size: 15px; }
  .product-card__yield { display: none; }
  .product-card .price { font-size: 18px; }
  .product-card__price { gap: 2px 8px; }
  .product-card .badge,
  .product-card__img .badge,
  .gallery__main .badge { top: 8px; right: 8px; left: auto; font-size: 11px; padding: 3px 8px; }
  .product-card .btn--sm { padding: 9px 10px; font-size: 13.5px; }
  .product-card:hover { transform: none; }
}
.badge { display: inline-block; padding: 4px 10px; border-radius: var(--r-sm); font-size: 12px; font-weight: 700; background: var(--c-green-800); color: #fff; }
.badge--green { background: var(--brand); }
.badge--soft { background: var(--brand-soft); color: var(--brand-hover); }
.product-card .badge,
.product-card__img .badge,
.gallery__main .badge { position: absolute; top: 12px; right: 12px; left: auto; z-index: 2; }
.stock { font-size: 13px; font-weight: 600; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock--order { color: var(--warn); }
.stock--out { color: var(--fg-faint); }

/* Карточка товара */
.product {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px 40px;
  align-items: start;
  padding-bottom: 32px;
  grid-template-areas:
    "media buy"
    "details buy";
}
.product__media { grid-area: media; min-width: 0; }
.buy { grid-area: buy; min-width: 0; }
.product__details { grid-area: details; min-width: 0; }
@media (max-width: 1024px) {
  .product {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 16px;
    grid-template-areas:
      "media"
      "buy"
      "details";
  }
  .product__details { scroll-margin-top: calc(var(--header-h) + 12px); }
}
@media (max-width: 640px) {
  .tabs button { padding: 10px 12px; font-size: 14px; }
  .gallery__main img { padding: 10px; }
  .buy__price .price { font-size: 26px; }
  .buy .card { padding: 14px; }
  .buy__row { margin: 12px 0 8px; }
  .buy__meta { margin-top: 12px; font-size: 13px; }
}
.gallery__main { position: relative; border-radius: var(--r-lg); background: var(--bg-soft); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--line); touch-action: pan-y; user-select: none; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 24px; pointer-events: none; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery__thumbs button { width: 72px; height: 72px; border-radius: var(--r-sm); border: 2px solid var(--line); overflow: hidden; background: var(--bg-soft); }
.gallery__thumbs button.is-active { border-color: var(--brand); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 640px) {
  .gallery__thumbs { gap: 8px; margin-top: 8px; }
  .gallery__thumbs button { width: 56px; height: 56px; }
}
.buy { position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 1024px) { .buy { position: static; } }
.buy__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 6px 0 4px; }
.buy__price .price { font-size: 34px; }
.buy__row { display: flex; gap: 10px; align-items: stretch; margin: 16px 0 10px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-sm); overflow: hidden; height: 48px; }
.qty button:focus-visible, .qty input:focus-visible { outline: none; box-shadow: var(--focus); position: relative; z-index: 1; }
.qty button { width: 42px; height: 100%; font-size: 20px; color: var(--fg-muted); }
.qty button:hover { background: var(--bg-muted); color: var(--fg); }
.qty input { width: 44px; text-align: center; border: 0; background: transparent; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy__meta { display: grid; gap: 8px; font-size: 14px; color: var(--fg-muted); margin-top: 14px; }
.buy__meta li { list-style: none; display: flex; gap: 10px; }
.buy__meta svg { width: 18px; height: 18px; flex: none; color: var(--brand); margin-top: 2px; }
.buy__meta ul { margin: 0; padding: 0; display: grid; gap: 8px; }
.specs { width: 100%; font-size: 15px; }
.specs th, .specs td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.specs th { font-weight: 500; color: var(--fg-muted); width: 42%; }
.tabs { display: flex; gap: 6px; box-shadow: inset 0 -1px 0 var(--line); margin-bottom: 20px; overflow-x: auto; overflow-y: hidden; min-width: 0; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { padding: 12px 16px; font-weight: 600; color: var(--fg-muted); border-bottom: 2px solid transparent; white-space: nowrap; flex: none; }
.tabs button.is-active { color: var(--brand); border-color: var(--brand); }
.sku-list { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 0; padding: 0; }
.sku-list li { list-style: none; flex: none; }
.sku-list a { display: inline-flex; flex-direction: column; align-items: center; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); color: var(--fg); font-size: 14px; line-height: 1.2; min-width: 64px; }
.sku-list a b { font-family: var(--font-head); font-size: 16px; }
.sku-list a small { color: var(--fg-muted); font-size: 12px; }
.sku-list a:hover { border-color: var(--brand); }
.sku-list a.is-active { border-color: var(--brand); background: var(--brand-soft); }
@media (max-width: 640px) {
  .sku-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    margin: 6px 0 2px;
    padding-bottom: 2px;
  }
  .sku-list::-webkit-scrollbar { display: none; }
  .sku-list a { padding: 6px 10px; min-width: 52px; font-size: 12.5px; }
  .sku-list a b { font-size: 14px; }
  .sku-list a small { font-size: 11px; }

  .buy__row { width: 100%; margin: 10px 0 8px; }
  .buy .atc {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }
  .buy .atc .qty {
    flex: none;
    height: 44px;
  }
  .buy .atc .qty button { width: 34px; font-size: 18px; }
  .buy .atc .qty input { width: 34px; font-size: 15px; }
  .buy .atc > .btn--primary {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    padding-left: 12px;
    padding-right: 12px;
  }
  .buy .atc > a.btn--outline {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 20px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 32px 16px 0; font-weight: 600; font-family: var(--font-head); font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 24px; color: var(--brand); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 18px; color: var(--fg-muted); }
.faq details > div p:last-child { margin: 0; }

/* Разное */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1024px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: step; padding: 4px 0 8px; border-top: 3px solid var(--c-lime-500); }
.step::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-head); font-size: 28px; font-weight: 800; color: var(--brand); margin: 12px 0 8px; }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { margin: 0; font-size: 14.5px; color: var(--fg-muted); }
@media (max-width: 560px) {
  .step { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; padding-top: 10px; }
  .step::before { grid-row: 1 / span 2; margin: 0; font-size: 22px; align-self: start; }
  .step h3 { margin: 0; }
}
.compare { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; font-size: 15px; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.compare thead th { background: var(--bg-muted); font-weight: 600; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td.is-good { color: var(--brand-hover); font-weight: 600; }
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
@media (max-width: 1024px) { .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .reviews { grid-template-columns: 1fr; } }
.review { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.review__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.review__author { font-weight: 700; }
.review__meta { font-size: 13px; color: var(--fg-faint); }
.stars { color: #e3a008; letter-spacing: 1px; font-size: 14px; }
.review__text { color: var(--fg-muted); font-size: 15px; }
.review__reply { border-left: 3px solid var(--brand); padding: 8px 12px; background: var(--bg-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 14px; }
.docs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
@media (max-width: 1024px) { .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .docs { grid-template-columns: 1fr; } }
.doc { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; display: flex; gap: 14px; align-items: flex-start; color: var(--fg); }
.doc__icon { width: 44px; height: 44px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; flex: none; }
.doc__icon svg { width: 22px; height: 22px; }
.doc b { display: block; font-size: 15px; line-height: 1.3; }
.doc small { color: var(--fg-muted); font-size: 13px; }
.docs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 560px) { .docs--2 { grid-template-columns: minmax(0, 1fr); } }
a.doc { transition: border-color .15s, box-shadow .15s, transform .15s; }
a.doc:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--fg); transform: translateY(-1px); }

/* Страница документов */
.docs-group + .docs-group { margin-top: 32px; }
.docs-group__title { display: flex; align-items: center; gap: 10px; font-size: 20px; margin-bottom: 14px; }
.docs-group__title span { font-size: 13px; font-weight: 700; color: var(--fg-muted); background: var(--bg-muted); border-radius: var(--r-sm); padding: 2px 9px; }
.docs-group .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.docs-group .doc { align-items: center; padding: 16px 18px; gap: 16px; }
.docs-group .doc__icon { width: 48px; height: 56px; border-radius: var(--r-sm); flex-direction: column; gap: 2px; background: var(--brand-soft); color: var(--brand); }
.docs-group .doc__icon svg { width: 22px; height: 22px; }
.docs-group .doc__icon em { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.doc--certificate .doc__icon, .doc--protocol .doc__icon { background: var(--brand-soft); color: var(--brand); }
.doc__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.doc__type { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-faint); }
.docs-group .doc__title { font-size: 16px; line-height: 1.3; }
.doc__meta { font-size: 13px; color: var(--brand); font-weight: 500; }
.doc__desc { font-size: 13px; color: var(--fg-muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.doc__action { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.doc__open { display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; border-radius: var(--r-sm); background: var(--bg-muted); color: var(--brand); font-size: 13px; font-weight: 600; white-space: nowrap; }
.doc__open svg { width: 14px; height: 14px; }
a.doc:hover .doc__open { background: var(--brand); color: #fff; }
.doc__action small { font-size: 12px; color: var(--fg-faint); }
.doc.is-disabled { background: var(--bg-soft); border-style: dashed; }
@media (max-width: 860px) { .docs-group .docs { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .docs-group .doc { flex-wrap: wrap; padding: 14px; gap: 12px; }
  .docs-group .doc__icon { width: 40px; height: 48px; }
  .doc__body { flex-basis: calc(100% - 56px); }
  .doc__action { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; padding-left: 52px; }
}
.articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
@media (max-width: 1024px) { .articles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .articles { grid-template-columns: 1fr; } }
.article-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; color: var(--fg); display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.article-card:hover { border-color: var(--c-sage-200); box-shadow: var(--shadow); color: var(--fg); }
.article-card__img { aspect-ratio: 16/9; background: var(--bg-soft); }
.article-card__img img { width: 100%; height: 100%; object-fit: cover; }
.article-card__body { padding: 16px 18px 18px; }
.article-card__body h3 { font-size: 18px; margin-bottom: 6px; }
.article-card__body p { color: var(--fg-muted); font-size: 14.5px; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.chips li { list-style: none; }
.chips a, .chips span { display: inline-block; padding: 8px 14px; border-radius: var(--r-sm); background: var(--bg-muted); color: var(--fg); font-size: 14px; font-weight: 500; }
.chips a:hover { background: var(--brand-soft); color: var(--brand-hover); }
.cta { background: var(--c-soil-900); color: #f3efe6; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
@media (max-width: 900px) { .cta { grid-template-columns: 1fr; } }
.cta h2 { color: #fff; }
.cta p { color: #d6cfc2; }
.cta a { color: var(--c-lime-500); }
.cta .btn--primary { background: var(--c-lime-500); color: var(--c-soil-950); }
.cta .btn--primary:hover { background: #a3d65c; }
.tiers { width: 100%; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.tiers th, .tiers td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.tiers thead th { background: var(--bg-muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-muted); }
.tiers tbody tr:last-child td { border-bottom: 0; }
.tiers .price { font-size: 20px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
@media (max-width: 640px) {
  .tiers th, .tiers td { padding: 9px 10px; font-size: 14px; word-break: break-word; }
  .tiers .price { font-size: 17px; }
}
.contact-list { display: grid; gap: 14px; margin: 0; padding: 0; }
.contact-list li { list-style: none; line-height: 1.45; }
.contact-list li > svg + * { display: inline-block; }
.contact-list svg { width: 22px; height: 22px; color: var(--brand); flex: none; margin-top: 2px; }
.contact-list b { display: block; font-size: 17px; }
.contact-list small { color: var(--fg-muted); }
.map { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); min-height: 320px; background: var(--bg-soft); }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: var(--r-sm); background: var(--bg-muted); color: var(--fg); font-weight: 500; min-height: 40px; display: inline-flex; align-items: center; }
.pagination .is-active { background: var(--brand); color: #fff; }
.toc { position: sticky; top: calc(var(--header-h) + 16px); font-size: 14px; }
.toc a { display: block; padding: 6px 0; color: var(--fg-muted); border-left: 2px solid var(--line); padding-left: 12px; }
.toc a:hover { color: var(--brand); border-color: var(--brand); }
.notice { display: flex; gap: 12px; padding: 14px 18px; background: var(--brand-soft); border-radius: var(--r-md); font-size: 15px; }
.notice svg { width: 22px; height: 22px; color: var(--brand); flex: none; }

/* Корзина */
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
@media (max-width: 1024px) { .cart { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.cart-gift { margin-bottom: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--brand-soft); border: 1px solid var(--brand); font-size: 14px; }
.cart-gift .progress { margin: 8px 0 0; }
.cart-gift .alert { margin: 0; padding: 0; border: 0; background: transparent; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line__img { width: 64px; height: 64px; border-radius: var(--r-sm); background: var(--bg-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cart-line .qty { height: 38px; }
.cart-line .qty button { width: 34px; }
.cart-line .qty input { width: 36px; }
.cart-line__right .price { min-width: 84px; text-align: right; }
.cart-line__img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cart-line__title { font-weight: 600; }
.cart-line__title a { color: var(--fg); }
.cart-line__sub { font-size: 13px; color: var(--fg-muted); }
.cart-line__right { display: flex; align-items: center; gap: 14px; }
.cart-line__remove { font-size: 13px; color: var(--fg-faint); }
.cart-line__remove:hover { color: var(--danger); }
@media (max-width: 640px) {
  .cart-line { grid-template-columns: 56px 1fr; gap: 6px 12px; }
  .cart-line__img { width: 56px; height: 56px; }
  .cart-line__right { grid-column: 2; justify-content: space-between; gap: 10px; }
  .cart-line__right .price { min-width: 0; font-size: 16px !important; }
}
.summary { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; position: sticky; top: calc(var(--header-h) + 16px); }
.summary h3 { font-size: 18px; margin-bottom: 4px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.summary__meta { margin-top: 12px; font-size: 13px; gap: 6px; }
@media (max-width: 1024px) { .summary { position: static; } .summary__meta { display: none; } }
@media (max-width: 1100px) { .float--call { display: none; } body:has(.cart) .floats { display: none; } }
.checkout { margin-top: 20px; }
.checkout__head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.checkout__head h2 { font-size: 22px; margin: 0; }
.checkout .field { margin-bottom: 10px; gap: 4px; }
.checkout .field label { font-size: 13px; }
.checkout .input, .checkout .select { padding: 10px 12px; }
.field__opt { font-weight: 400; color: var(--fg-faint); }
@media (max-width: 640px) and (min-width: 360px) { .checkout .form-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 10px; } }
@media (max-width: 640px) { .seg span { padding: 7px 12px; font-size: 13.5px; } .cart-line__title { font-size: 15px; line-height: 1.3; } }
.field__hint { font-size: 12.5px; color: var(--fg-muted); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-size: 14px; font-weight: 500; color: var(--fg); transition: border-color .15s, background .15s; }
.seg label:hover span { border-color: var(--brand); }
.seg input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-hover); font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.checkout__more { margin: 2px 0 12px; }
.checkout__more summary { cursor: pointer; font-size: 14px; color: var(--brand); width: max-content; list-style: none; }
.checkout__more summary::-webkit-details-marker { display: none; }
.checkout__more summary::before { content: "+ "; }
.checkout__more[open] summary::before { content: "− "; }
.checkout__more .textarea { margin-top: 8px; min-height: 64px; }
.checkout__submit { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-top: 6px; }
.checkout__submit .quick__note { max-width: 260px; }
@media (max-width: 640px) { .checkout__submit .btn { width: 100%; } .checkout__submit .quick__note { max-width: none; } }

/* Быстрый заказ по телефону */
.quick { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; align-items: center; margin-top: 16px; padding: 14px 16px; border-radius: var(--r-md); background: var(--bg-soft); border: 1px solid var(--line); }
.quick__text { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; color: var(--fg-muted); line-height: 1.4; }
.quick__text b { font-family: var(--font-head); font-size: 16px; color: var(--fg); }
.quick__form { display: flex; gap: 8px; }
.quick__form .input { width: 190px; padding: 10px 12px; }
.quick .field__error, .quick__note { grid-column: 1 / -1; }
.quick__note { font-size: 12px; color: var(--fg-faint); line-height: 1.4; }
.quick__note a { color: var(--fg-muted); text-decoration: underline; }
.quick .alert { padding: 10px 14px; font-size: 14px; }
.buy .quick { grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
.buy .quick__form .input { flex: 1; width: auto; min-width: 0; }
@media (max-width: 720px) {
  .quick { grid-template-columns: minmax(0, 1fr); padding: 10px 12px; margin-top: 10px; gap: 6px; }
  .quick__text b { font-size: 14px; }
  .quick__text span { font-size: 12.5px; }
  .quick__form .input { width: auto; flex: 1; min-width: 0; padding: 9px 11px; font-size: 16px; }
  .quick__form .btn { padding: 10px 14px; }
  .quick__note { font-size: 11.5px; }
}
.modal__box--sm { max-width: 400px; padding: 24px; }
.modal__box--sm h3 { padding-right: 36px; }
.input--lg { padding: 14px 16px; font-size: 18px; letter-spacing: .02em; }
.oneclick--link { display: contents; }
/* backdrop-filter на шапке ломал position:fixed у модалки внутри — модалку телепортируем в body */
.header:has(.modal) { backdrop-filter: none; -webkit-backdrop-filter: none; }
body:has(.mobile-nav.is-open) .floats, body:has(.mobile-nav.is-open) .cookie, body:has(.mobile-nav.is-open) .buy-bar { display: none !important; }
.summary__row:last-of-type { border: 0; font-weight: 700; font-size: 18px; }
.progress { height: 8px; border-radius: 4px; background: var(--bg-muted); overflow: hidden; margin: 8px 0; }
.progress i { display: block; height: 100%; background: var(--brand); }
.radio-group { display: grid; gap: 8px; margin-bottom: 14px; }
.radio-group label { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.radio-group label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.radio-group input { accent-color: var(--brand); width: 18px; height: 18px; }
.radio-group small { color: var(--fg-muted); display: block; }

/* Модалка */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); background: rgba(20, 24, 16, .55); overscroll-behavior: contain; }
.modal__box { background: var(--bg-card); border-radius: var(--r-lg); padding: 28px; width: 100%; max-width: 480px; position: relative; box-shadow: var(--shadow-lg); max-height: min(calc(100vh - 32px), calc(100dvh - 32px)); overflow: auto; margin: auto; }
.modal__close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; background: var(--bg-muted); display: flex; align-items: center; justify-content: center; }
.modal__close svg { width: 18px; height: 18px; }
.modal__box h3 { margin-bottom: 6px; }

/* Плавающие кнопки, cookie, toast */
.floats { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.float { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: var(--shadow-lg); }
.float svg { width: 26px; height: 26px; }
.float--wa { background: #25d366; }
.float--call { background: var(--accent); }
.float--up { background: var(--c-soil-700); width: 44px; height: 44px; align-self: center; }
.float--up svg { width: 20px; height: 20px; }
.cookie { position: fixed; left: 18px; bottom: 18px; z-index: 70; max-width: 420px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; box-shadow: var(--shadow-lg); font-size: 14px; }
.cookie__actions { display: flex; gap: 8px; margin-top: 10px; }
@media (max-width: 640px) {
  .cookie { left: 10px; right: 10px; bottom: 10px; max-width: none; padding: 12px 14px; font-size: 13px; }
  .floats { right: 10px; bottom: 90px; }
}
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; max-width: min(92vw, 420px); background: var(--c-soil-900); color: #fff; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; line-height: 1.3; }
.toast > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast a { color: var(--c-lime-500); font-weight: 600; flex: none; }

/* Подвал */
.footer { background: var(--c-soil-900); color: #cfc7b8; padding: 56px 0 28px; margin-top: 40px; font-size: 14.5px; }
.footer a { color: #e9e3d6; }
.footer a:hover { color: var(--c-lime-500); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 1024px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; gap: 18px; }
  .footer { padding: 28px 0 18px; margin-top: 24px; font-size: 13.5px; }
  .footer h4 { font-size: 12.5px; margin-bottom: 8px; letter-spacing: .06em; }
  .footer ul { gap: 6px; }
  .footer__brand b { font-size: 18px; margin-bottom: 4px; }
  .footer__brand p { margin: 0 0 8px; font-size: 13px; line-height: 1.4; }
  .footer__phone { font-size: 17px; }
  .footer__socials { margin-top: 8px; gap: 6px; }
  .footer__socials a { width: 34px; height: 34px; }
  .footer__bottom { margin-top: 18px; padding-top: 12px; gap: 6px 12px; font-size: 12px; flex-direction: column; }
}
.footer h4 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer ul { margin: 0; padding: 0; display: grid; gap: 9px; }
.footer li { list-style: none; }
.footer__brand b { font-family: var(--font-head); font-size: 22px; color: #fff; display: block; margin-bottom: 8px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 13px; color: #9d947f; }
.footer__bottom a { color: #b9b09c; }
.footer__phone { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: #fff !important; }
.footer__socials { display: flex; gap: 8px; margin-top: 14px; }
.footer__socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: center; }
.footer__socials svg { width: 18px; height: 18px; }

.empty { text-align: center; padding: 48px 20px; color: var(--fg-muted); }
.empty svg { width: 56px; height: 56px; margin: 0 auto 14px; color: var(--line); }
.thanks { max-width: 720px; margin: 0 auto; text-align: center; }
.thanks__num { display: inline-block; padding: 10px 22px; border-radius: var(--r-sm); background: var(--brand-soft); font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--brand-hover); margin: 8px 0 18px; }

/* Мобильная плавающая панель покупки на карточке товара */
.buy-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 55;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 28px -16px rgba(43, 29, 20, .45);
  gap: 10px;
  align-items: center;
}
.buy-bar[hidden] { display: none !important; }
.buy-bar__price { display: flex; flex-direction: column; line-height: 1.15; flex: none; min-width: 64px; }
.buy-bar__price b { font-family: var(--font-head); font-size: 17px; font-weight: 800; color: var(--fg); }
.buy-bar__price span { font-size: 11.5px; color: var(--fg-muted); }
.buy-bar__actions { display: flex; gap: 8px; flex: 1; min-width: 0; align-items: stretch; }
.buy-bar__actions .atc,
.buy-bar__actions .atc--bar { flex: 1.15; min-width: 0; flex-wrap: nowrap; }
.buy-bar__actions .atc .btn,
.buy-bar__actions .atc--bar .btn,
.buy-bar__actions .atc--bar > a.btn { width: 100%; padding: 12px 8px; font-size: 13.5px; white-space: nowrap; }
.buy-bar__actions .atc .btn svg { width: 16px; height: 16px; }
.buy-bar__actions .oneclick { flex: 1; min-width: 0; display: flex; }
.buy-bar__actions .oneclick .btn { width: 100%; padding: 12px 8px; font-size: 13.5px; white-space: nowrap; }
@media (max-width: 860px) {
  .buy-bar:not([hidden]) { display: flex; }
  body:has(.buy-bar:not([hidden])) { padding-bottom: 84px; }
  body:has(.buy-bar:not([hidden])) .floats { display: none !important; }
  body:has(.buy-bar:not([hidden])) .cookie { bottom: 96px; }
  body:has(.buy-bar:not([hidden])) .toast {
    left: 10px; right: 10px; bottom: 92px; transform: none; max-width: none;
  }
}
@media (min-width: 861px) {
  .buy-bar { display: none !important; }
}

@media print { .header, .footer, .floats, .cookie, .buy-bar { display: none !important; } }
