/* АналогиЛекарств.ру — дизайн-система сайта (без сборки, без внешних шрифтов) */
:root {
  --bg: #f5f7f6;
  --surface: #ffffff;
  --ink: #0f1f1c;
  --ink-2: #2b3b37;
  --muted: #5d6d69;
  --faint: #8a9894;
  --line: #e2e8e6;
  --line-2: #eef2f1;
  --brand: #0b7a6e;
  --brand-ink: #075a51;
  --brand-soft: #e5f4f1;
  --brand-softer: #f1f9f7;
  --good: #137a3a;
  --good-soft: #e5f5ea;
  --warn: #9a5b00;
  --warn-soft: #fff4e0;
  --bad: #b42318;
  --bad-soft: #fdecea;
  --blue: #1f5fbf;
  --blue-soft: #e9f1fd;
  --violet: #6a3fc1;
  --violet-soft: #f1ebfd;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 40, 34, .05), 0 4px 16px rgba(16, 40, 34, .05);
  --shadow-lg: 0 10px 40px rgba(16, 40, 34, .12);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  font: 16px/1.55 var(--font);
  color: var(--ink-2);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
:focus-visible { outline: 3px solid rgba(11, 122, 110, .45); outline-offset: 2px; border-radius: 6px; }

/* ---------- шапка */
.hdr { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.hdr-in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; flex: none; }
.logo:hover { text-decoration: none; color: var(--ink); }
.logo-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.logo-mark .ic { width: 22px; height: 22px; }
.logo b { color: var(--brand); font-weight: 800; }
.logo small { display: block; font-size: .72rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 1px; }
.hdr-search { flex: 1; max-width: 520px; position: relative; }
.hdr-nav { display: flex; gap: 4px; margin-left: auto; }
.hdr-nav a { color: var(--ink-2); font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.hdr-nav a:hover { background: var(--brand-softer); color: var(--brand-ink); text-decoration: none; }
.hdr-nav a[aria-current="page"] { color: var(--brand-ink); background: var(--brand-soft); }

/* ---------- поле поиска и подсказки */
.search { position: relative; display: flex; align-items: center; }
.search input {
  width: 100%; height: 46px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg);
  padding: 0 48px 0 42px; font: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(11, 122, 110, .12); }
.search > .ic { position: absolute; left: 14px; color: var(--faint); pointer-events: none; }
.search button { position: absolute; right: 5px; height: 36px; width: 38px; border: 0; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; }
.search button:hover { background: var(--brand-ink); }
.search-lg input { height: 60px; font-size: 1.1rem; border-radius: 16px; padding-left: 50px; padding-right: 150px; background: #fff; box-shadow: var(--shadow); }
.search-lg > .ic { left: 18px; width: 22px; height: 22px; }
.search-lg button { width: auto; height: 48px; padding: 0 20px; right: 6px; border-radius: 12px; font: inherit; font-weight: 700; gap: 6px; display: flex; align-items: center; }
.ac { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; z-index: 60; }
.ac[hidden] { display: none; }
.ac a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: var(--ink); border-top: 1px solid var(--line-2); }
.ac a:first-child { border-top: 0; }
.ac a:hover, .ac a.is-active { background: var(--brand-softer); text-decoration: none; }
.ac a span { flex: 1; min-width: 0; }
.ac a small { display: block; color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-kind { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-ink); background: var(--brand-soft); padding: 2px 7px; border-radius: 6px; }
.ac-kind.gone { color: var(--muted); background: var(--line-2); }

/* ---------- кнопки, чипы, бейджи */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; border: 1.5px solid transparent; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn-sm { height: 36px; padding: 0 12px; border-radius: 10px; font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: .92rem; font-weight: 600; line-height: 1.2; }
.chip:hover { border-color: var(--brand); color: var(--brand-ink); text-decoration: none; }
.chip .n { color: var(--faint); font-weight: 600; }
.chip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip.is-on .n { color: rgba(255,255,255,.75); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 7px; font-size: .78rem; font-weight: 700; line-height: 1.35; white-space: nowrap; background: var(--line-2); color: var(--ink-2); }
.badge .ic { width: 14px; height: 14px; }
.b-otc { background: var(--good-soft); color: var(--good); }
.b-rx { background: var(--blue-soft); color: var(--blue); }
.b-hosp { background: #eef0f3; color: #475467; }
.b-zh { background: var(--violet-soft); color: var(--violet); }
.b-warn { background: var(--warn-soft); color: var(--warn); }
.b-bad { background: var(--bad-soft); color: var(--bad); }
.b-gone { background: #eceff0; color: #52605c; }
.b-save { background: var(--good); color: #fff; }
[data-tip] { cursor: help; }

/* ---------- карточки и секции */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 22px; }
.section { margin: 0 0 22px; }
.section-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.section-h h2 { margin: 0; }
.section-h .more { font-weight: 600; font-size: .95rem; }
.lead { font-size: 1.08rem; color: var(--ink-2); }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--brand-softer); border: 1px solid var(--brand-soft); font-size: .95rem; }
.note > .ic { color: var(--brand); margin-top: 2px; width: 20px; height: 20px; }
.note p:last-child { margin-bottom: 0; }
.note-warn { background: var(--warn-soft); border-color: #f7e2bb; }
.note-warn > .ic { color: var(--warn); }
.note-bad { background: var(--bad-soft); border-color: #f6cfcb; }
.note-bad > .ic { color: var(--bad); }
.note-gray { background: #f2f4f4; border-color: var(--line); }
.note-gray > .ic { color: var(--muted); }
.note b { color: var(--ink); }

/* ---------- хлебные крошки */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 18px 0 14px; padding: 0; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--faint); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand-ink); }

/* ---------- раскладка страницы препарата */
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.page-main { min-width: 0; }
.side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
.hero-drug { padding: 24px; margin-bottom: 22px; }
.hero-drug h1 { margin-bottom: 6px; }
.hero-sub { color: var(--muted); font-size: 1.05rem; margin-bottom: 14px; }
.hero-sub a { font-weight: 700; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 20px; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line-2); }
.facts div { min-width: 0; }
.facts dt { font-size: .8rem; color: var(--muted); margin-bottom: 2px; display: flex; align-items: center; gap: 6px; }
.facts dd { margin: 0; font-weight: 650; color: var(--ink); overflow-wrap: anywhere; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.price-from { display: inline-flex; flex-direction: column; }
.price-from b { font-size: 1.35rem; color: var(--ink); }

/* ---------- вкладки форм выпуска */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.tab { border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); font: inherit; font-weight: 650; font-size: .92rem; padding: 8px 14px; border-radius: 10px; cursor: pointer; }
.tab:hover { border-color: var(--brand); }
.tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.tab .n { opacity: .7; margin-left: 4px; }
.js .tab-panel[hidden] { display: none; }

/* ---------- список аналогов (таблица на десктопе, карточки на телефоне) */
.alist { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.arow { display: grid; grid-template-columns: minmax(0, 1fr) 150px 130px; gap: 14px; align-items: center; padding: 13px 16px; border-top: 1px solid var(--line-2); }
.arow:first-child { border-top: 0; }
.arow.head { background: #f8faf9; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding-top: 9px; padding-bottom: 9px; }
.arow.is-self { background: var(--brand-softer); }
.a-name { font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.a-name:hover { color: var(--brand-ink); }
.a-meta { font-size: .86rem; color: var(--muted); margin-top: 2px; }
.a-meta .badges { margin-top: 6px; }
.a-price { text-align: right; }
.a-price b { display: block; color: var(--ink); font-size: 1.02rem; }
.a-price small { color: var(--muted); font-size: .8rem; }
.a-save { text-align: right; }
.a-none { color: var(--faint); font-size: .85rem; }
.alist-more { display: block; width: 100%; padding: 12px; border: 0; border-top: 1px solid var(--line-2); background: #fbfcfc; color: var(--brand-ink); font: inherit; font-weight: 700; cursor: pointer; }
.alist-more:hover { background: var(--brand-softer); }
.js .arow.is-extra { display: none; }
.js .alist.is-open .arow.is-extra { display: grid; }

/* ---------- обычные таблицы */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.tbl { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tbl th, .tbl td { padding: 10px 14px; text-align: left; border-top: 1px solid var(--line-2); vertical-align: top; }
.tbl thead th { border-top: 0; background: #f8faf9; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.tbl td.num, .tbl th.num { text-align: right; white-space: nowrap; }
.tbl tr.is-best td { background: var(--good-soft); }

/* ---------- списки ссылок */
.links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 22px; list-style: none; padding: 0; margin: 0; }
.links-grid li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .96rem; }
.links-grid li .n { color: var(--faint); font-size: .85rem; white-space: nowrap; }

/* ---------- показания */
.uses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 22px; }
.uses li { position: relative; padding-left: 26px; }
.uses li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }

/* ---------- FAQ */
.faq details { border-top: 1px solid var(--line-2); padding: 14px 0; }
.faq details:first-of-type { border-top: 0; padding-top: 4px; }
.faq summary { font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--brand); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }

/* ---------- боковая колонка */
.side-card { padding: 18px; }
.side-card h3 { font-size: 1rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.side-card h3 .ic { color: var(--brand); }
.kv { margin: 0; display: grid; gap: 10px; font-size: .93rem; }
.kv div { display: grid; gap: 1px; }
.kv dt { color: var(--muted); font-size: .8rem; }
.kv dd { margin: 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: .93rem; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); }
.toc a:hover { background: var(--brand-softer); color: var(--brand-ink); text-decoration: none; }

/* ---------- главная */
.hero { padding: 48px 0 36px; background: radial-gradient(1200px 400px at 80% -10%, #d8efe9 0%, rgba(216,239,233,0) 60%), linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.1rem); max-width: 760px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { max-width: 640px; margin-bottom: 22px; }
.hero .search-lg { max-width: 720px; }
.hero-hints { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .92rem; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 30px; max-width: 900px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat b { display: block; font-size: 1.45rem; color: var(--ink); letter-spacing: -.02em; }
.stat span { font-size: .85rem; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 20px; position: relative; }
.step::before { counter-increment: step; content: counter(step); width: 32px; height: 32px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; display: grid; place-items: center; margin-bottom: 12px; }
.step p { margin: 0; font-size: .95rem; color: var(--muted); }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.cat { display: flex; gap: 14px; align-items: center; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.cat:hover { border-color: var(--brand); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transform: translateY(-1px); }
.cat-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; flex: none; }
.cat-ic .ic { width: 24px; height: 24px; }
.cat b { display: block; font-size: 1rem; line-height: 1.25; }
.cat small { color: var(--muted); }
.pop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.pop { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); line-height: 1.35; }
.pop:hover { border-color: var(--brand); text-decoration: none; color: var(--ink); }
.pop-name { font-size: 1rem; }
/* длинные МНН (Детралекс, Мирамистин) — не больше двух строк, полное название в подсказке */
.pop-inn { font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pop-meta { margin-top: auto; padding-top: 6px; font-size: .85rem; color: var(--muted); }
.pop .save { color: var(--good); font-weight: 700; }

/* ---------- каталог, алфавит, пагинация */
.alpha { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.alpha a, .alpha span { min-width: 38px; height: 38px; padding: 0 8px; border-radius: 9px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); font-weight: 700; color: var(--ink-2); }
.alpha a:hover { border-color: var(--brand); text-decoration: none; }
.alpha .is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.alpha span { opacity: .4; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); font-weight: 650; color: var(--ink-2); }
.pager a:hover { border-color: var(--brand); text-decoration: none; }
.pager .is-on { background: var(--brand); color: #fff; border-color: var(--brand); }
.pager .gap { border: 0; background: none; }
.sub-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.sub-cat { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-weight: 650; }
.sub-cat:hover { border-color: var(--brand); text-decoration: none; }
.sub-cat small { color: var(--muted); font-weight: 500; white-space: nowrap; }

/* ---------- формы */
.input, textarea.input { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; background: #fff; color: var(--ink); }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11,122,110,.12); }
label.lbl { display: block; font-size: .88rem; color: var(--muted); margin-bottom: 4px; }
.stars { display: inline-flex; gap: 2px; color: #f5a524; }
.stars .off { color: #d8dedc; }
.rate { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate label { font-size: 1.8rem; line-height: 1; color: #d8dedc; cursor: pointer; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: #f5a524; }
.rate input:focus-visible + label { outline: 2px solid var(--brand); border-radius: 4px; }
.review { padding: 14px 0; border-top: 1px solid var(--line-2); }
.review:first-child { border-top: 0; }
.msg-ok { padding: 12px 14px; border-radius: 10px; background: var(--good-soft); color: var(--good); font-weight: 600; margin-bottom: 14px; }
.msg-err { padding: 12px 14px; border-radius: 10px; background: var(--bad-soft); color: var(--bad); font-weight: 600; margin-bottom: 14px; }

/* ---------- текстовые страницы */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ---------- подвал */
.ftr { margin-top: 48px; background: #0f2a26; color: #b9cbc7; font-size: .93rem; }
.ftr a { color: #e3efec; }
.ftr-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 40px 16px 28px; }
.ftr .logo { color: #fff; }
.ftr .logo small { color: #9fb6b1; }
.ftr h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ftr-bar { border-top: 1px solid rgba(255,255,255,.08); padding: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem; }
.ftr-warn { background: rgba(255,255,255,.05); border-radius: 12px; padding: 12px 14px; margin-top: 14px; color: #d6e3e0; }

/* ---------- адаптив */
@media (max-width: 1000px) {
  .page-grid { grid-template-columns: 1fr; }
  .side { position: static; }
  .side .toc-card { display: none; }
  .hdr-nav a { padding: 8px 9px; font-size: .9rem; }
}
@media (max-width: 820px) {
  .hdr-in { flex-wrap: wrap; gap: 10px 14px; padding-top: 10px; padding-bottom: 10px; }
  .hdr-search { order: 3; flex-basis: 100%; max-width: none; }
  .hdr-nav { margin-left: auto; }
  .logo small { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .ftr-in { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .hdr-nav { gap: 0; }
  .hdr-nav .hide-sm { display: none; }
  .hero { padding: 28px 0 24px; }
  .search-lg input { height: 54px; padding-right: 60px; }
  .search-lg button span { display: none; }
  .search-lg button { width: 44px; padding: 0; justify-content: center; height: 44px; }
  .hero-drug { padding: 18px; }
  .card-pad { padding: 16px; }
  .arow { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .arow.head { display: none; }
  .a-save { grid-column: 2; grid-row: 2; }
  .a-price { grid-row: 1; grid-column: 2; }
  .facts { grid-template-columns: 1fr 1fr; }
  /* таблицы — карточками: каждая строка отдельным блоком, подписи колонок из data-l */
  .tbl-wrap { overflow: visible; }
  .tbl.stack thead { display: none; }
  .tbl.stack tr { display: block; padding: 10px 14px; border-top: 1px solid var(--line-2); }
  .tbl.stack tbody tr:first-child { border-top: 0; }
  .tbl.stack td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border: 0; text-align: right; }
  .tbl.stack td:first-child { display: block; text-align: left; font-weight: 600; padding-bottom: 6px; }
  .tbl.stack td[data-l]::before { content: attr(data-l); color: var(--muted); font-size: .82rem; text-align: left; font-weight: 400; }
  .tbl.stack td.num { white-space: normal; }
}
@media print {
  .hdr, .ftr, .side, .search, .alist-more, .tabs { display: none !important; }
  .js .tab-panel[hidden], .js .arow.is-extra { display: block !important; }
}
