/* Анализы: добавки к стилям стационара (hospital.css) — поиск, карточки категорий, список анализов. */
.ab .hs-hero__media img { object-position: center; }
.ab-find { background: var(--bg); border-radius: 32px; padding: 32px; }
.ab-search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 60px; padding: 8px 8px 8px 22px; transition: border-color .2s, box-shadow .2s; }
.ab-search:focus-within { border-color: var(--g); box-shadow: 0 0 0 4px rgba(0,155,119,.1); }
.ab-search__ic { color: var(--muted); display: flex; }
.ab-search__input { flex: 1; min-width: 0; border: 0 !important; outline: 0; background: transparent !important; box-shadow: none !important; font: inherit; font-size: 18px; color: var(--ink); height: 48px; padding: 0 !important; }
.ab-search__input::placeholder { color: #9aa39f; }
.ab-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ab-chip { padding: 10px 17px 11px; border-radius: 30px; background: transparent; border: 1.5px solid var(--g); color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: background .2s, color .2s; }
.ab-chip:hover { background: var(--g); color: #fff; }
.ab-result { margin-top: 18px; }
.ab-res { display: grid; gap: 8px; }
.ab-res__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border-radius: 20px; padding: 16px 22px; transition: box-shadow .2s, transform .2s; }
.ab-res__row:hover { box-shadow: 0 10px 28px rgba(0,60,45,.08); transform: translateY(-1px); }
.ab-res__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ab-res__name { font-size: 17px; font-weight: 600; color: var(--ink); }
.ab-res__meta { font-size: 13px; color: var(--muted); }
.ab-res__price { flex: none; font-size: 18px; font-weight: 700; color: var(--g); white-space: nowrap; }
.ab-msg { background: #fff; border-radius: 20px; padding: 18px 22px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.ab-note { margin: 16px 4px 0; font-size: 13px; color: var(--muted); }
.ab-dir__sub { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--muted); }
.ab-adv { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ab-adv .hs-adv__item { grid-template-columns: 1fr; gap: 10px; padding: 24px; }
.ab-adv .hs-adv__ic { grid-row: auto; }
.ab-adv .hs-adv__ic--3d { width: 88px; height: 88px; background: transparent; }
.ab-adv .hs-adv__ic--3d img { width: 88px; height: 88px; object-fit: contain; }
@media (max-width: 1100px) { .ab-adv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
	.ab-find { padding: 18px; border-radius: 24px; }
	.ab-search { flex-wrap: wrap; padding: 10px; border-radius: 28px; }
	.ab-search__input { flex-basis: calc(100% - 40px); font-size: 16px; }
	.ab-search .hs-btn { width: 100%; justify-content: center; }
	.ab-adv { grid-template-columns: 1fr; }
	.ab-res__row { padding: 14px 16px; }
}

/* Страница категории */
.ab-chero { min-height: 0; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); }
.ab-chero .hs-hero__text { padding: 48px 56px 44px; }
.ab-chero .hs-hero__facts { margin-top: 32px; }
.ab-back { text-decoration: none; margin-bottom: 18px; transition: background .2s; }
.ab-back:hover { background: rgba(255,255,255,.28); }
.ab-chero__art { position: relative; display: flex; align-items: center; justify-content: center; padding: 28px; }
.ab-chero__art::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.14); }
.ab-chero__art img { position: relative; width: min(100%, 340px); height: auto; filter: drop-shadow(0 24px 30px rgba(0,60,45,.22)); }
.hs-nav a.is-active { background: var(--g); color: #fff; }
.ab-catlist { padding-top: 40px; }
.ab-catlist .container { max-width: 1520px; padding: 0 40px; }
.ab-catlist .analiz-cat-page { max-width: none; padding: 0; font-family: Gilroy, sans-serif; }
.ab-catlist .analiz-cat-toolbar { margin: 0 0 24px; background: #fff; border: 1.5px solid var(--line); border-radius: 28px; }
.ab-catlist .analiz-cat-toolbar__search, .ab-catlist .analiz-cat-toolbar__select { background: var(--bg) !important; border-color: transparent !important; }
.ab-catlist .analiz-cat-toolbar__search:focus-within { border-color: var(--g) !important; background: #fff; }
.analiz-cat-page__result .c-a-a-p__result-item { background: var(--bg, #f7f7f7) !important; border: 0 !important; border-radius: 28px !important; transition: background .2s, box-shadow .2s, transform .2s !important; }
.analiz-cat-page__result .c-a-a-p__result-item:hover { background: #fff !important; box-shadow: 0 16px 40px rgba(0,60,45,.1) !important; transform: translateY(-2px); }
.analiz-cat-page__result .c-a-a-p__result-item-home { background: #e4f3ee !important; }
.analiz-cat-page__result .c-a-a-p__result-item-footer { border-top-color: #e6eae8 !important; }
.analiz-cat-page__result .c-a-a-p__result-item-price { color: var(--ink, #232524); }
@media (max-width: 900px) {
	.ab-chero { grid-template-columns: 1fr; }
	.ab-chero .hs-hero__text { padding: 32px 22px 28px; }
	.ab-chero__art { display: none; }
	.ab-catlist .container { padding: 0 16px; }
}

/* Единый ритм: расстояния между секциями и шкала шрифтов (5 размеров: 56 / 32 / 20 / 16 / 14) */
.ab { --fs-1: 56px; --fs-2: 32px; --fs-3: 20px; --fs-4: 16px; --fs-5: 14px; --sec: 40px; --head-gap: 28px; }
.ab .hs-sec { padding: var(--sec) 0; }
.ab .hs-sec--bg { padding: 48px 0; }
.ab .hs-sec--tight { padding: 8px 0 var(--sec); }
.ab .hs-head { margin-bottom: var(--head-gap); gap: 12px 24px; }
.ab .hs-head > div { display: flex; flex-direction: column; gap: 12px; }
.ab .hs-h2 { margin: 0; line-height: 1.15; }
.ab .hs-head .hs-lead, .ab .hs-sec > .hs-wrap > .hs-lead { margin: 0; }
.ab .hs-nav { margin-top: 20px; }
.ab .hs-formats, .ab .hs-adv, .ab .hs-dirs { gap: 16px; }
/* Читаемость обложки: тёмный зелёный слева под текстом */
.ab .hs-hero__card { background: linear-gradient(120deg, #009b77 0%, #12ab88 55%, #26bb98 100%); }
.ab .hs-hero__lead { color: #fff; }
.ab .hs-hero__facts span { color: rgba(255,255,255,.92); }
/* Шкала шрифтов */
.ab .hs-h1 { font-size: var(--fs-1); line-height: 1.08; }
.ab .hs-h1__sub { font-size: var(--fs-2); line-height: 1.15; margin-top: 16px; }
.ab .hs-h2 { font-size: var(--fs-2); }
.ab .hs-hero__lead, .ab .hs-hero__facts b, .ab .hs-dir__t, .ab .hs-dir__phone, .ab .hs-format__t,
.ab .hs-adv__item b, .ab .hs-steplist b, .ab .hs-faq summary { font-size: var(--fs-3); line-height: 1.25; }
.ab .hs-lead, .ab .hs-btn, .ab .hs-dir__d, .ab .hs-format__d, .ab .hs-format__foot b, .ab .hs-faq p,
.ab .ab-search__input, .ab .ab-msg, .ab .ab-res__name, .ab .ab-res__price, .ab .hs-hero + * .crumbs,
.ab .hs-wrap > nav:not(.hs-nav) span, .ab ol span, .ab ul.breadcrumb span { font-size: var(--fs-4); line-height: 1.5; }
.ab .hs-hero__facts span, .ab .ab-dir__sub, .ab .ab-note, .ab .hs-format__tag, .ab .hs-nav a, .ab .ab-chip,
.ab .hs-adv__item span, .ab .hs-steplist span, .ab .ab-res__meta { font-size: var(--fs-5); line-height: 1.4; }
.ab .hs-lead { max-width: 760px; }
@media (max-width: 768px) {
	.ab { --fs-1: 34px; --fs-2: 26px; --sec: 28px; --head-gap: 20px; }
	.ab .hs-sec--bg { padding: 32px 0; }
	.ab .hs-h1__sub { margin-top: 12px; }
}

/* Обложка «Сдать анализы»: 3D-иллюстрация вместо фото */
.ab .hs-hero__media { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ab .hs-hero__media::before { content: ""; position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.14); }
.ab .hs-hero__media img { position: relative; inset: auto; width: min(100%, 560px); height: auto; max-height: 100%; object-fit: contain; border-radius: 0; filter: drop-shadow(0 24px 30px rgba(0,60,45,.22)); }
@media (max-width: 900px) { .ab .hs-hero__media img { width: auto; height: 100%; padding: 12px; } }

/* Иконки категорий небольшого разрешения не растягиваем сверх их размера */
.ab-chero__art img[src*="/hospital/ic-"] { width: min(100%, 256px); }

/* Единый вид кнопок: 54px, пилюля, Gilroy 16/600; заливка #009B77, контур для второстепенных */
.ab .hs-btn, .ab .hs-dir__cta .hs-btn { height: 54px; padding: 0 28px 2px; border-radius: 30px; font: 600 16px/1 Gilroy, sans-serif; }
.ab .hs-btn--g:hover { background: #137863; }
@media (max-width: 768px) { .ab .hs-hero__btns .hs-btn, .ab .hs-dir__cta .hs-btn, .ab .hs-btnrow .hs-btn { height: 54px; } }
/* Хлебные крошки в шкале шрифтов */
.ab .c-breadcrumbs, .ab .c-breadcrumbs a, .ab .c-breadcrumbs span { font-size: 14px; }

/* Карточки «Где сдать» без нижней строки */
.ab .hs-format:not(.hs-format--ask) .hs-format__d { margin-bottom: 0; }

/* Страницы категорий: те же 5 размеров (56 / 32 / 20 / 16 / 14) */
body .c-a-a-p__result-header-item, body .c-a-a-p__result-item-num, body .c-a-a-p__result-item-home,
body .analiz-cat-page__search-hint, body .analiz-cat-page__search-hint a { font-size: 14px !important; line-height: 1.4; }
body .c-a-a-p__result-item-meta { font-size: 14px !important; }
body .c-a-a-p__result-item-price { font-size: 20px !important; white-space: nowrap; }
@media (max-width: 768px) { body .c-a-a-p__result-item-price { font-size: 20px !important; } }

/* Категории: число анализов отдельной строкой */
.ab .hs-dir__txt .ab-dir__sub { display: block; }
.ab .hs-dir__txt .ab-dir__cnt { margin-top: 4px; }

/* Категории: одинаковая высота карточек, заголовок в 2 строки по нижней линии, описание и число выровнены по рядам */
@media (min-width: 769px) {
	.ab a.ab-dir { min-height: 152px; }
	.ab a.ab-dir .hs-dir__head { justify-content: flex-start; }
	.ab a.ab-dir .hs-dir__top { align-items: center; }
	.ab a.ab-dir .hs-dir__txt { gap: 4px; }
	.ab a.ab-dir .hs-dir__t { display: flex; align-items: flex-end; height: 2.5em; }
	.ab a.ab-dir .ab-dir__sub { line-height: 1.4; }
}

/* Отзывы про анализы на хабе: 5 размеров шрифта (32/20/16/14) */
.ab .ab-rev{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:24px}
.ab .ab-rev__card{background:#fff;border:1px solid #e3ebe8;border-radius:24px;padding:24px;display:flex;flex-direction:column;gap:12px}
.ab .ab-rev__top{display:flex;justify-content:space-between;align-items:center;gap:12px}
.ab .ab-rev__stars{font-size:20px;line-height:1;color:#f5c518;letter-spacing:2px}
.ab .ab-rev__date,.ab .ab-rev__foot{font-size:14px;line-height:1.4;color:#51636a}
.ab .ab-rev__txt{font-size:16px;line-height:1.5;margin:0;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
.ab .ab-rev__card.is-open .ab-rev__txt{-webkit-line-clamp:unset;display:block}
.ab .ab-rev__more{align-self:flex-start;background:none;border:0;padding:0;font:inherit;font-size:16px;font-weight:700;color:#009b77;cursor:pointer}
.ab .ab-rev__foot{margin-top:auto;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:center;padding-top:4px}
.ab .ab-rev__foot a{color:#009b77;text-decoration:none;font-weight:700}
.ab .ab-rev__all{display:inline-flex;align-items:center;justify-content:center;min-height:48px;margin-top:24px;padding:0 32px;border:2px solid #009b77;border-radius:999px;font-size:16px;font-weight:700;color:#009b77;text-decoration:none}
@media(max-width:768px){.ab .ab-rev{grid-template-columns:1fr}.ab .ab-rev__card{padding:20px;border-radius:20px}}

.ab .ab-rev__src{display:inline-flex;align-items:center;height:24px}
.ab .ab-rev__src img{height:24px;width:auto;max-width:140px;display:block}

/* «Анализы и цены»: компактный первый блок (десктоп) */
@media (min-width: 901px) {
	.ab .hs-hero__card.ab-hero { min-height: 440px; }
	.ab .hs-hero__card.ab-hero .hs-hero__text { padding: 36px 48px 32px; }
	.ab .hs-hero__card.ab-hero .hs-h1 { font-size: 46px; margin-bottom: 2px; }
	.ab .hs-hero__card.ab-hero .hs-hero__facts { margin-top: 26px; padding-top: 20px; }
	.ab .hs-hero__card.ab-hero .hs-hero__media img { width: min(100%, 340px); }
}

/* 3 факта в hero: на средних ширинах — компактный список строками */
@media (min-width:601px) and (max-width:1280px){
.ab .hs-hero__card.ab-hero .hs-hero__facts{flex-direction:column;gap:0;padding-top:6px}
.ab .hs-hero__card.ab-hero .hs-hero__facts div,.ab .hs-hero__card.ab-hero .hs-hero__facts div+div{flex:none;padding:10px 0;border-left:0;display:flex;align-items:baseline;gap:12px}
.ab .hs-hero__card.ab-hero .hs-hero__facts div+div{border-top:1px solid rgba(255,255,255,.22)}
.ab .hs-hero__card.ab-hero .hs-hero__facts b{flex:0 0 160px;font-size:17px;white-space:nowrap;line-height:1.2}
.ab .hs-hero__card.ab-hero .hs-hero__facts span{margin-top:0;font-size:13px}
}

/* планшет: картинка в правом нижнем углу карточки, текст слева */
@media (min-width: 601px) and (max-width: 960px) {
	.ab .hs-hero__card.ab-hero .hs-hero__media { position: absolute; right: 12px; bottom: 56px; order: 0; overflow: visible; height: auto; width: min(40%, 260px); aspect-ratio: 1; padding: 0; }
	.ab .hs-hero__card.ab-hero .hs-hero__media::before { width: 125%; right: -12%; bottom: -12%; left: auto; top: auto; }
	.ab .hs-hero__card.ab-hero .hs-hero__media img { width: 100%; height: auto; padding: 0; }
	.ab .hs-hero__card.ab-hero .hs-hero__text { padding: 36px 36px 32px; }
	.ab .hs-hero__card.ab-hero .hs-hero__facts { max-width: 360px; }
}

/* карточки «Круглосуточно» / «Выезд на дом» — это не ссылки: без эффекта нажатия */
.ab .hs-format:hover { box-shadow: none; transform: none; }
.ab .hs-format:hover .hs-format__art { transform: none; }

/* «Почему сдают анализы у нас»: 5 карточек — 3 в первом ряду, 2 широкие во втором */
@media (min-width: 1101px) {
	.ab-adv { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.ab-adv .hs-adv__item { grid-column: span 2; }
	.ab-adv .hs-adv__item:nth-child(n+4) { grid-column: span 3; }
}
/* иконка cobas — широкий аппарат: по высоте как остальные, по ширине больше */
.ab-adv .hs-adv__item:nth-child(2) .hs-adv__ic--3d { width: auto; height: 88px; justify-content: flex-start; }
.ab-adv .hs-adv__item:nth-child(2) .hs-adv__ic--3d img { width: auto; height: 100px; max-width: 100%; }

/* теги в карточках «Круглосуточно» / «Выезд на дом» — чёрный текст */
.ab .hs-formats .hs-format__tag { color: #000; }

/* блок «Сдайте анализы в удобное время»: без серой подложки, карточки серые, как в белых секциях */
.ab #formats.hs-sec--bg { background: transparent; }
.ab #formats .hs-format { background: var(--bg); }
/* поиск: пояснение по симптому и «Показать ещё» */
.ab-note { background: #fff; border-radius: 20px; padding: 14px 22px; margin-bottom: 8px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.ab-more { margin: 12px 0 0; padding: 12px 26px; border: 1px solid var(--g); border-radius: 30px; background: transparent; color: var(--g); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.ab-more:hover { background: var(--g); color: #fff; }
.ab-res--more { margin-top: 12px; }
