/* NEO FARM — стили публичного сайта */
:root {
  --green-950: #12261b;
  --green-900: #1a3326;
  --green-800: #234332;
  --green-700: #2e5a42;
  --green-600: #3b7353;
  --lime: #8cc63f;
  --lime-600: #74ad2a;
  --lime-100: #eef7e2;
  --mint-50: #f3f8f4;
  --mint-100: #e6f1ea;
  --ink: #15231b;
  --ink-2: #3c4b43;
  --muted: #66766d;
  --line: #dfe8e2;
  --white: #fff;
  --danger: #c0392b;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(18, 38, 27, .06), 0 2px 8px rgba(18, 38, 27, .05);
  --shadow: 0 10px 30px -10px rgba(18, 38, 27, .18);
  --shadow-lg: 0 30px 60px -20px rgba(18, 38, 27, .3);
  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--green-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--lime-600); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: var(--green-900); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(820px + var(--gutter) * 2); }
.narrow-lg { max-width: calc(980px + var(--gutter) * 2); }
.center { text-align: center; }
.muted { color: var(--muted); }
.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: 16px; top: -60px; z-index: 100; background: var(--green-900); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Типографика ---------- */
.h2 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; }
.h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 700; }
.lead { font-size: clamp(16px, 1.4vw, 18px); color: var(--ink-2); }
.small-title { font-family: var(--font-head); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--green-800); display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lime-600); margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--lime); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--green-700); }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover .icon:last-child { transform: translateX(4px); }

/* ---------- Кнопки ---------- */
.btn { --b: var(--green-800); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 22px; border-radius: 999px; border: 2px solid transparent; font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .02em; line-height: 1.2; text-align: center; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; white-space: nowrap; }
.btn .icon { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--lime); color: var(--green-950); box-shadow: 0 8px 20px -8px rgba(116, 173, 42, .7); }
.btn--primary:hover { background: var(--lime-600); color: #fff; }
.btn--outline { border-color: var(--green-800); color: var(--green-800); background: transparent; }
.btn--outline:hover { background: var(--green-800); color: #fff; }
.btn--ghost { color: var(--green-700); background: var(--mint-100); }
.btn--ghost:hover { background: var(--lime-100); color: var(--green-900); }
.btn--glass { color: #fff; border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .08); backdrop-filter: blur(6px); }
.btn--glass:hover { background: #fff; color: var(--green-900); }
.btn--sm { min-height: 38px; padding: 6px 16px; font-size: 13px; }
.btn--lg { min-height: 54px; padding: 14px 28px; font-size: 15px; }
.btn--block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: var(--green-900); transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--mint-100); }
.icon-btn--outline { border: 1.5px solid var(--line); background: #fff; border-radius: 50%; }
.icon-btn--outline:hover { border-color: var(--green-800); background: var(--green-800); color: #fff; }

/* ---------- Topbar / Header ---------- */
.topbar { background: var(--green-950); color: rgba(255, 255, 255, .78); font-size: 13px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar__info, .topbar__links { display: flex; align-items: center; gap: 22px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 7px; color: inherit; }
.topbar a:hover { color: var(--lime); }
.topbar .icon { width: 15px; height: 15px; color: var(--lime); }
.topbar__links a[aria-label] .icon { color: inherit; width: 16px; height: 16px; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--green-900); flex: none; }
.logo:hover { color: var(--green-900); }
.logo img { width: auto; height: 44px; }
.logo__text { display: block; font-family: var(--font-head); font-weight: 800; font-size: 22px; letter-spacing: .02em; line-height: 1; color: var(--lime-600); }
.logo__text b { color: var(--green-900); font-weight: 800; }
.logo__text small { display: block; margin-top: 4px; font-family: var(--font-body); font-weight: 500; font-size: 11px; letter-spacing: .02em; color: var(--muted); }
.logo--light, .logo--light:hover { color: #fff; }
.logo--light .logo__text b { color: #fff; }
.logo--light .logo__text small { color: rgba(255, 255, 255, .6); }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link { position: relative; display: block; padding: 10px 14px; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--ink-2); border-radius: 10px; }
.nav__link:hover { color: var(--green-900); background: var(--mint-50); }
.nav__link.is-active { color: var(--green-900); }
.nav__link.is-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; border-radius: 3px; background: var(--lime); }
.nav__mobile-extra { display: none; }

.header__actions { display: flex; align-items: center; gap: 10px; }
.header__phone { display: flex; flex-direction: column; line-height: 1.2; font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--green-900); padding: 0 6px; }
.header__phone span { font-family: var(--font-body); font-weight: 500; font-size: 11px; color: var(--muted); }
.nav-toggle { display: none; }
.nav-toggle .icon-close { display: none; }

/* ---------- Поиск ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(18, 38, 27, .55); backdrop-filter: blur(4px); padding: 12vh var(--gutter) 24px; animation: fade .2s ease; }
.search-overlay__panel { max-width: 720px; margin: 0 auto; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.search-form { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 22px; border-bottom: 1px solid var(--line); }
.search-form > .icon { color: var(--muted); }
.search-form input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 18px; padding: 12px 0; background: transparent; }
.search-results { max-height: 60vh; overflow: auto; }
.search-results:empty { display: none; }
.search-results h4 { margin: 0; padding: 14px 22px 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.search-results a { display: flex; align-items: center; gap: 14px; padding: 10px 22px; color: var(--ink); }
.search-results a:hover, .search-results a.is-focus { background: var(--mint-50); }
.search-results img, .search-results .sr-icon { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; background: var(--mint-50); flex: none; display: grid; place-items: center; color: var(--green-700); }
.search-results strong { display: block; font-weight: 600; }
.search-results small { display: block; color: var(--muted); font-size: 13px; }
.search-results .sr-empty, .search-results .sr-all { display: block; padding: 16px 22px; color: var(--muted); }
.search-results .sr-all { border-top: 1px solid var(--line); font-weight: 600; color: var(--green-700); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--green-950); color: #fff; overflow: hidden; isolation: isolate; }
.hero__slides { display: grid; }
.hero__slide { grid-area: 1 / 1; position: relative; display: flex; align-items: center; min-height: clamp(520px, 78vh, 720px); opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.06); transition: transform 7s ease; }
.hero__slide.is-active .hero__bg { transform: scale(1); }
.hero__slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18, 38, 27, .94) 0%, rgba(18, 38, 27, .82) 38%, rgba(18, 38, 27, .35) 75%, rgba(18, 38, 27, .2) 100%); }
.hero__content { padding-top: 64px; padding-bottom: 120px; }
.hero__title { color: #fff; font-size: clamp(36px, 6vw, 68px); font-weight: 800; max-width: 13ch; margin-bottom: 18px; text-transform: none; }
.hero__title span { display: block; color: var(--lime); font-weight: 700; font-size: .62em; margin-top: 8px; }
.hero__text { font-size: clamp(16px, 1.6vw, 19px); max-width: 520px; color: rgba(255, 255, 255, .85); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__controls { position: absolute; left: 0; right: 0; bottom: 92px; display: flex; align-items: center; gap: 14px; }
.hero__arrow { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.hero__arrow:hover { background: var(--lime); border-color: var(--lime); color: var(--green-950); }
.hero__dots { display: flex; gap: 8px; }
.hero__dot { width: 10px; height: 10px; border-radius: 10px; border: 0; padding: 0; background: rgba(255, 255, 255, .4); transition: width .3s, background .3s; }
.hero__dot.is-active { width: 32px; background: var(--lime); }

/* ---------- Stats ---------- */
.stats-wrap { position: relative; z-index: 2; margin-top: -60px; }
.stats-wrap--flat { margin: 0 0 clamp(48px, 7vw, 96px); }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.stats__item { padding: 28px 26px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); }
.stats__item:first-child { border-left: 0; }
.stats__item strong { font-family: var(--font-head); font-size: clamp(28px, 3vw, 40px); font-weight: 800; color: var(--green-800); line-height: 1.1; }
.stats__item span { color: var(--muted); font-size: 14px; }

/* ---------- Секции ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 7vw, 88px); }
.section--flush { padding: 0; }
.section--tint { background: var(--mint-50); }
.section--dark { background: radial-gradient(1200px 500px at 90% -10%, rgba(140, 198, 63, .16), transparent 60%), var(--green-900); color: rgba(255, 255, 255, .82); }
.section--dark .h2 { color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head .h2 { margin-bottom: 8px; }
.section-head p:last-child { margin-bottom: 0; }
.section-head--center { justify-content: center; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head--center p { max-width: 620px; margin-left: auto; margin-right: auto; }
.section-head__actions { display: flex; align-items: center; gap: 16px; flex: none; }
.carousel-nav { display: flex; gap: 8px; }

/* ---------- About split ---------- */
.about-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-split .lead { margin-bottom: 24px; }
.about-split__cards { background: var(--mint-50); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); }
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.feature-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { display: flex; flex-direction: column; gap: 14px; padding: 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature--card { padding: 28px 24px; align-items: flex-start; border: 1px solid var(--line); box-shadow: none; }
.feature__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--lime-100); color: var(--green-700); display: grid; place-items: center; }
.feature__icon .icon { width: 26px; height: 26px; }
.feature__icon img { width: 30px; height: 30px; object-fit: contain; }
.feature__title { font-family: var(--font-head); font-weight: 700; font-size: 15px; line-height: 1.35; color: var(--green-900); }

/* ---------- Карточки товаров ---------- */
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 4px 16px; margin: -4px -4px 0; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.carousel > * { scroll-snap-align: start; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-grid > [data-filter-item] { display: flex; }
.product-grid > [data-filter-item] > .product-card { flex: 1; }
.product-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; height: 100%; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.product-card__media { display: grid; place-items: center; aspect-ratio: 1 / 1; background: linear-gradient(180deg, #fff, var(--mint-50)); padding: 24px; }
.product-card__media img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; transition: transform .35s; }
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__placeholder { width: 64px; height: 64px; color: var(--lime); }
.product-card__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.product-card__title { font-size: 16px; font-weight: 700; margin: 0; }
.product-card__title a { color: var(--green-900); }
.product-card__title a::after { content: ""; position: absolute; inset: 0; }
.product-card { position: relative; }
.product-card__meta { font-size: 13px; color: var(--muted); margin: 0; }
.product-card__more { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--lime-600); }
.product-card__more .icon { width: 16px; height: 16px; transition: transform .2s; }
.product-card:hover .product-card__more .icon { transform: translateX(4px); }

/* ---------- Преимущества ---------- */
.adv-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.adv { position: relative; padding: 32px 26px 28px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); overflow: hidden; transition: background .3s, transform .3s; }
.adv:hover { background: rgba(255, 255, 255, .09); transform: translateY(-4px); }
.adv__num { position: absolute; top: 10px; right: 18px; font-family: var(--font-head); font-weight: 800; font-size: 64px; line-height: 1; color: rgba(255, 255, 255, .06); }
.adv__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--lime); color: var(--green-950); display: grid; place-items: center; margin-bottom: 22px; }
.adv__icon .icon { width: 28px; height: 28px; }
.adv__icon img { width: 30px; height: 30px; object-fit: contain; }
.adv__title { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.adv p, .adv__list { font-size: 14.5px; color: rgba(255, 255, 255, .72); margin: 0; }
.adv__list { list-style: none; padding: 0; display: grid; gap: 10px; }
.adv__list li { position: relative; padding-left: 20px; }
.adv__list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }

/* ---------- Сеть аптек ---------- */
.network-card { display: grid; grid-template-columns: 1.4fr 1fr; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(135deg, var(--lime-100), #fff 70%); border: 1px solid var(--line); }
.network-card__main { padding: clamp(28px, 5vw, 56px); }
.network-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 8px; }
.network-card__hotline { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--green-800); }
.network-card__hotline .icon { color: var(--lime-600); }
.network-card__aside { background: var(--green-900); color: #fff; padding: clamp(28px, 4vw, 48px); }
.network-card__aside .small-title { color: var(--lime); }
.phone-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.phone-list a { display: block; padding: 8px 0; font-family: var(--font-head); font-weight: 700; font-size: 18px; color: #fff; border-bottom: 1px dashed rgba(255, 255, 255, .15); }
.phone-list li:last-child a { border: 0; }
.phone-list a:hover { color: var(--lime); }

/* ---------- Партнёры ---------- */
.partners { --cols: 6; --gap: 16px; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.partners__item { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
.partners__item > * { display: grid; place-items: center; height: 104px; padding: 18px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); transition: box-shadow .25s, transform .25s; }
.partners__item > *:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.partners__item img { max-height: 60px; width: auto; object-fit: contain; }
.partners__item span { font-family: var(--font-head); font-weight: 700; color: var(--green-800); text-align: center; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(120deg, var(--green-800), var(--green-950)); color: rgba(255, 255, 255, .85); position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(140, 198, 63, .12); }
.cta__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: clamp(44px, 6vw, 72px); padding-bottom: clamp(44px, 6vw, 72px); }
.cta .h2 { color: #fff; margin-bottom: 10px; }
.cta p { margin: 0; max-width: 560px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; flex: none; }

/* ---------- Page head ---------- */
.page-head { position: relative; background: var(--green-900); color: rgba(255, 255, 255, .82); padding: clamp(40px, 6vw, 72px) 0; overflow: hidden; isolation: isolate; }
.page-head::after { content: ""; position: absolute; right: -80px; bottom: -200px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(140, 198, 63, .25), transparent 70%); z-index: -1; }
.page-head--image .page-head__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .25; }
.page-head--slim { padding: 20px 0; background: var(--mint-50); color: var(--ink-2); }
.page-head--slim::after { display: none; }
.page-head__title { color: #fff; font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; margin: 0; }
.page-head__lead { margin: 12px 0 0; font-size: clamp(16px, 1.5vw, 18px); max-width: 640px; }
.breadcrumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; opacity: .5; }
.breadcrumbs a { color: inherit; opacity: .8; }
.breadcrumbs a:hover { color: var(--lime); opacity: 1; }
.page-head--slim .breadcrumbs ol { margin: 0; }
.page-head--slim .breadcrumbs a:hover { color: var(--lime-600); }
.page-head--slim [aria-current] { color: var(--green-900); font-weight: 600; }

/* ---------- Prose ---------- */
.prose { color: var(--ink-2); font-size: 16.5px; line-height: 1.75; overflow-wrap: anywhere; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--radius-sm); margin: 1em 0; }
.prose table { width: 100% !important; border-collapse: collapse; margin: 1.2em 0; font-size: 14.5px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.prose th { background: var(--mint-50); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
.prose > :first-child { margin-top: 0; }
.prose--checks ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.prose--checks li { position: relative; padding: 14px 16px 14px 52px; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line); margin: 0; line-height: 1.5; }
.prose--checks li::before { content: ""; position: absolute; left: 16px; top: 14px; width: 22px; height: 22px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312261b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.prose--checks li::first-letter { text-transform: uppercase; }

/* ---------- About ---------- */
.about-main { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.about-main .prose { font-size: 18px; }
.video { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--green-950); aspect-ratio: 16 / 9; }
.video iframe { width: 100%; height: 100%; border: 0; }
.why { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.chips { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--green-800); }
.chip .icon { width: 16px; height: 16px; color: var(--lime-600); }
.req { margin: 20px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
.req div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.req dt { color: var(--muted); }
.req dd { margin: 0; font-weight: 600; text-align: right; color: var(--green-900); }

/* ---------- Toolbar / фильтры ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.toolbar__search { flex: 1 1 360px; position: relative; display: flex; align-items: center; }
.toolbar__search .icon { position: absolute; left: 18px; color: var(--muted); pointer-events: none; }
.toolbar__search input, .toolbar__select select { width: 100%; min-height: 50px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; padding: 10px 20px 10px 50px; outline: 0; transition: border-color .2s, box-shadow .2s; }
.toolbar__search input:focus, .toolbar__select select:focus { border-color: var(--lime); box-shadow: 0 0 0 4px var(--lime-100); }
.toolbar__select { position: relative; flex: 0 1 280px; }
.toolbar__select select { appearance: none; padding: 10px 44px 10px 20px; }
.toolbar__select .icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.results-count { font-size: 14px; margin-bottom: 20px; }
.results-title { margin: 32px 0 18px; }
.empty { text-align: center; padding: 56px 16px; border: 2px dashed var(--line); border-radius: var(--radius-lg); color: var(--muted); }
.empty > .icon { width: 44px; height: 44px; margin: 0 auto 14px; color: var(--lime-600); }
.result-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.result-list a { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.result-list a:hover { border-color: var(--lime); background: var(--mint-50); }
.result-list span { flex: 1; }
.result-list strong, .result-list small { display: block; }
.result-list small { color: var(--muted); }
.result-list .icon:first-child { color: var(--lime-600); }

/* ---------- Товар ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.gallery__main { aspect-ratio: 1 / 1; border-radius: var(--radius-lg); background: linear-gradient(180deg, #fff, var(--mint-50)); border: 1px solid var(--line); display: grid; place-items: center; padding: clamp(24px, 5vw, 56px); }
.gallery__main img { max-height: 100%; width: auto; object-fit: contain; }
.gallery__placeholder { width: 96px; height: 96px; color: var(--lime); }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.gallery__thumb { width: 76px; height: 76px; flex: none; border-radius: 12px; border: 2px solid var(--line); background: #fff; padding: 6px; }
.gallery__thumb.is-active { border-color: var(--lime); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.product__title { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; margin-bottom: 20px; }
.facts { margin: 0 0 28px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; font-weight: 600; color: var(--green-900); }
.product__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.trust { list-style: none; margin: 28px 0 0; padding: 20px; display: grid; gap: 12px; background: var(--mint-50); border-radius: var(--radius); }
.trust li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 500; color: var(--green-800); }
.trust .icon { color: var(--lime-600); }
.tabs__list { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin-bottom: 28px; overflow-x: auto; }
.tabs__tab { position: relative; padding: 14px 20px; background: none; border: 0; font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--muted); white-space: nowrap; }
.tabs__tab[aria-selected="true"] { color: var(--green-900); }
.tabs__tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--lime); border-radius: 3px; }
.note { display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--mint-50); font-size: 14px; color: var(--ink-2); }
.note .icon { color: var(--green-600); margin-top: 2px; }
.note--warn { background: #fff8e6; color: #6b5413; margin-top: 12px; }
.product-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Аптеки ---------- */
.ph-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.hotline { display: flex; align-items: center; gap: 14px; padding: 14px 20px; background: var(--lime-100); border-radius: var(--radius); }
.hotline > .icon { width: 28px; height: 28px; color: var(--green-700); }
.hotline span { display: block; font-size: 13px; color: var(--muted); }
.hotline strong { font-family: var(--font-head); color: var(--green-900); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; color: var(--ink-2); transition: all .2s; }
.pill:hover { border-color: var(--green-800); }
.pill.is-active { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.ph-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.ph-layout--nomap { grid-template-columns: 1fr; }
.ph-layout--nomap .ph-list { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.ph-list { display: grid; gap: 16px; }
.ph-map { position: sticky; top: calc(var(--header-h) + 20px); }
.map { height: 560px; border-radius: var(--radius-lg); overflow: hidden; background: var(--mint-100); z-index: 0; }
.map--wide { height: 440px; border-radius: 0; }
.ph-card { display: grid; grid-template-columns: 180px 1fr; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; transition: box-shadow .25s, border-color .25s; }
.ph-card:not(:has(.ph-card__media)) { grid-template-columns: 1fr; }
.ph-card:hover, .ph-card.is-focus { box-shadow: var(--shadow); border-color: transparent; }
.ph-card.is-focus { outline: 2px solid var(--lime); }
.ph-card__media { position: relative; background: var(--mint-100); }
.ph-card__media img { width: 100%; height: 100%; object-fit: cover; min-height: 180px; }
.ph-card__count { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: rgba(18, 38, 27, .7); color: #fff; font-size: 12px; font-weight: 600; }
.ph-card__count .icon { width: 14px; height: 14px; }
.ph-card__body { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.ph-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ph-card__title { font-size: 18px; font-weight: 800; margin: 0; }
.badge { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--lime-100); color: var(--green-700); font-size: 12px; font-weight: 700; }
.ph-card__info { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.ph-card__info li { display: flex; gap: 10px; }
.ph-card__info .icon { width: 18px; height: 18px; color: var(--lime-600); margin-top: 2px; }
.ph-card__info small { display: block; color: var(--muted); font-size: 13px; }
.ph-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.leaflet-popup-content { font-family: var(--font-body); font-size: 14px; }
.leaflet-popup-content strong { display: block; font-family: var(--font-head); color: var(--green-900); margin-bottom: 4px; }
.map-pin { width: 36px; height: 36px; border-radius: 50% 50% 50% 0; background: var(--green-800); transform: rotate(-45deg); display: grid; place-items: center; border: 3px solid #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .3); }
.map-pin::after { content: ""; width: 12px; height: 12px; background: var(--lime); border-radius: 50%; }

/* ---------- Контакты / формы ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.contact-card__icon { width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--lime-100); color: var(--green-700); display: grid; place-items: center; }
.contact-card__title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.contact-card p { margin: 0 0 2px; }
.contact-card a { font-weight: 600; color: var(--green-900); }
.phone-inline { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.form-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form { display: grid; gap: 16px; margin-top: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea { width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; outline: 0; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { border-color: var(--lime); box-shadow: 0 0 0 4px var(--lime-100); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: 13px; }
.form__note { font-size: 12.5px; color: var(--muted); margin: 0; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 16px; border-radius: 12px; background: #fdecea; color: var(--danger); margin-top: 12px; }
.success { text-align: center; padding: 32px 8px; }
.success > .icon { width: 60px; height: 60px; color: var(--lime-600); margin: 0 auto 16px; }

/* ---------- Footer ---------- */
.footer { background: var(--green-950); color: rgba(255, 255, 255, .7); font-size: 14.5px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr .8fr 1.1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.footer__brand p { margin: 18px 0 20px; max-width: 320px; }
.footer__title { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.footer__links, .footer__contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: rgba(255, 255, 255, .78); }
.footer a:hover { color: var(--lime); }
.footer__contacts li { display: flex; gap: 10px; }
.footer__contacts .icon { width: 17px; height: 17px; color: var(--lime); margin-top: 3px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; transition: background .2s, color .2s; }
.socials a:hover { background: var(--lime); color: var(--green-950); }
.socials .icon { width: 18px; height: 18px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: rgba(255, 255, 255, .5); }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 12px 32px; padding-top: 20px; padding-bottom: 20px; }

/* ---------- Ошибки ---------- */
.error-page__code { font-family: var(--font-head); font-weight: 800; font-size: clamp(90px, 16vw, 160px); line-height: 1; color: var(--lime); margin-bottom: 8px; }
.error-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* ---------- Анимации ---------- */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .header__phone { display: none; }
  .partners { --cols: 5; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .carousel { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
  .product-grid, .product-grid--4 { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  :root { --header-h: 66px; }
  .topbar__info span:nth-child(2) { display: none; }
  .nav-toggle { display: inline-grid; }
  .header__price span { display: none; }
  .header__price { width: 44px; padding: 0; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; padding: 16px var(--gutter) 32px; overflow-y: auto; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .25s ease, opacity .25s ease, visibility .25s; margin: 0; z-index: 49; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { font-size: 18px; padding: 16px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link.is-active::after { left: 4px; right: auto; width: 32px; bottom: 8px; }
  .nav__mobile-extra { display: grid; gap: 12px; margin-top: 24px; }
  .nav__phone { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--green-900); }
  .nav__phone .icon { color: var(--lime-600); }
  body.nav-open { overflow: hidden; }
  .nav-open .nav-toggle .icon-open { display: none; }
  .nav-open .nav-toggle .icon-close { display: block; }
  .about-split, .about-main, .why, .product, .contact-grid { grid-template-columns: 1fr; }
  .feature-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(3) { border-left: 0; }
  .stats__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .network-card { grid-template-columns: 1fr; }
  .partners { --cols: 4; }
  .ph-layout { grid-template-columns: 1fr; }
  .ph-map { position: relative; top: 0; order: -1; }
  .map { height: 360px; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .req { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head--center { align-items: center; }
}

@media (max-width: 720px) {
  .topbar { display: none; }
  .logo__text { font-size: 19px; }
  .logo__text small { display: none; }
  .logo img { height: 38px; }
  .header__inner { gap: 8px; }
  .header__actions { margin-left: auto; gap: 4px; }
  .hero__slide { min-height: 560px; align-items: flex-end; }
  .hero__slide::before { background: linear-gradient(180deg, rgba(18, 38, 27, .35) 0%, rgba(18, 38, 27, .9) 55%, rgba(18, 38, 27, .97) 100%); }
  .hero__content { padding-bottom: 128px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__controls { bottom: 84px; }
  .stats-wrap { margin-top: -56px; }
  .stats__item { padding: 20px 18px; }
  .carousel { grid-auto-columns: 72%; }
  .product-grid, .product-grid--4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card__media { padding: 14px; }
  .product-card__body { padding: 14px; }
  .product-card__title { font-size: 14.5px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { flex-direction: row; align-items: center; padding: 16px; }
  .feature-grid--4 { grid-template-columns: 1fr; }
  .feature--card { flex-direction: row; align-items: center; padding: 18px; }
  .adv-grid { grid-template-columns: 1fr; }
  .partners { --cols: 2; --gap: 10px; }
  .partners__item > * { height: 88px; }
  .ph-card { grid-template-columns: 1fr; }
  .ph-card__media img { aspect-ratio: 16 / 9; min-height: 0; }
  .form__row { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
  .footer__bottom-inner { flex-direction: column; }
  .section-head__actions { width: 100%; justify-content: space-between; }
  .carousel-nav { display: none; }
  .toolbar .btn { width: 100%; }
  .toolbar__select { flex: 1 1 100%; }
  .cta__actions, .cta__actions .btn { width: 100%; }
  .req div { flex-direction: column; gap: 2px; }
  .req dd { text-align: left; }
}

@media (max-width: 380px) {
  .product-grid, .product-grid--4 { grid-template-columns: 1fr; }
}
