/* =====================================================================
   che-apteka.ru — дизайн «аптечный стандарт» (редизайн 15.10.2026)
   Подключается только при che_ds_on() (inc/che-ds.php), все правила под body.ds.
   Токены: DS-палитра из макетов (https://claude.ai/artifact/SzGiM46Zs4Hvwpc3SeWDsM).
   Корень темы html{font-size:10px}, поэтому всё здесь в px.
   ===================================================================== */

body.ds {
	--ds-ink: #212121;
	--ds-grey: #6f6f6f;
	--ds-line: #ecedf0;
	--ds-ground: #f4f5f7;
	--ds-teal: #19a487;      /* рамки, иконки (3:1) */
	--ds-brand: #10806a;     /* кнопки, ссылки, активное (белый текст 4.9:1) */
	--ds-mint: #e3f6f1;
	--ds-mint-ink: #0b6655;
	--ds-sale: #c62828;
	--ds-sale-bg: #fdecea;
	--ds-night-bg: #e8eaf6;
	--ds-night: #283593;
	--ds-bonus-bg: #fff8e1;
	--ds-bonus: #7a5300;
	--ds-r: 12px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.45;
	color: var(--ds-ink);
	background: var(--ds-ground);
	-webkit-font-smoothing: antialiased;
}

/* Ссылки/кнопки/поля больше не 22px (css2/style.css:25). :where() = специфичность 0 — компоненты с классами перебивают. */
:where(body.ds) a,
:where(body.ds) button,
:where(body.ds) input,
:where(body.ds) textarea,
:where(body.ds) select {
	font-family: inherit;
	font-size: inherit;
}
:where(body.ds) a { color: var(--ds-brand); }
:where(body.ds) p { font-size: inherit; }

body.ds h1,
body.ds h2,
body.ds h3,
body.ds h4 {
	font-family: inherit;
	color: var(--ds-ink);
	letter-spacing: -0.01em;
}
body.ds h1 { font-size: 22px; line-height: 1.25; font-weight: 700; }
body.ds h2 { font-size: 18px; line-height: 1.3; font-weight: 700; }
body.ds h3 { font-size: 16px; line-height: 1.3; font-weight: 600; }

/* ---------- Контейнер ---------- */
body.ds .container,
body.ds .modal__promo--inner {
	max-width: 1240px;
	padding-left: 12px;
	padding-right: 12px;
}

/* ---------- Шапка ---------- */
body.ds .header {
	background: #fff;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--ds-line);
	box-shadow: none;
}
body.ds .header__inner { padding: 0; margin: 0; }
body.ds .header__content { display: block; margin: 0; }
body.ds .header__wrapper {
	display: grid;
	grid-template-columns: 1fr auto auto;
	grid-template-areas: "logo city burger" "search search search";
	gap: 4px 4px;
	align-items: center;
	padding: 6px 0 8px;
	flex: none;
	width: 100%;
}
body.ds .logo__inner {
	grid-area: logo;
	display: flex;
	align-items: center;
	gap: 6px;
	width: auto;
	margin: 0;
	text-decoration: none;
}
body.ds .logo__inner .logo { width: 28px; height: 28px; margin: 0; }
body.ds .logo__inner::after {
	content: "che-apteka";
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--ds-ink);
}
body.ds .che-city-btn {
	grid-area: city;
	max-width: 150px;
	min-height: 44px;
	padding: 0 6px;
	font-size: 14px;
	color: var(--ds-ink);
	gap: 4px;
}
body.ds .che-city-btn:hover { color: var(--ds-brand); }
body.ds .che-city-btn__icon { width: 18px; height: 18px; color: var(--ds-teal); }
body.ds .che-city-btn__label { font-size: 14px; max-width: 110px; }
body.ds .burger { grid-area: burger; width: 28px; height: 28px; margin: 0 4px; justify-self: end; }

body.ds .header__search--inner {
	grid-area: search;
	position: relative;
	width: 100%;
	margin: 0;
}
body.ds .header__search--inner form { position: relative; display: block; margin: 0; }
body.ds .header__search--input,
body.ds .header__search--inner input[type="text"] {
	display: block;
	width: 100% !important;
	height: 44px;
	margin: 0;
	padding: 0 56px 0 12px !important;
	font-size: 15px !important;
	color: var(--ds-ink);
	background: #fff;
	border: 2px solid var(--ds-teal);
	border-radius: 8px;
	box-shadow: none;
}
body.ds .header__search--inner button[type="submit"] {
	position: absolute;
	top: 0;
	right: 0;
	width: 52px;
	height: 44px;
	margin: 0;
	border: 0;
	border-radius: 0 6px 6px 0;
	background-color: var(--ds-teal);
}
body.ds .che-header-tools { display: none; }

/* Чипы быстрых разделов */
body.ds .ds-qk {
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 0 0 10px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
body.ds .ds-qk::-webkit-scrollbar { display: none; }
body.ds .ds-qk__a {
	flex: none;
	display: inline-flex;
	align-items: center;
	height: 34px;
	padding: 0 12px;
	border-radius: 17px;
	background: #f1f3f5;
	font-size: 13px;
	font-weight: 500;
	color: var(--ds-ink);
	text-decoration: none;
	white-space: nowrap;
}
body.ds .ds-qk__a--red { background: var(--ds-sale-bg); color: var(--ds-sale); font-weight: 600; }
body.ds .ds-qk__a.is-on { background: var(--ds-brand); color: #fff; }

/* ---------- Нижний таб-бар ---------- */
body.ds .ds-tabbar {
	height: 56px;
	background: #fff;
	border-top: 1px solid #e3e5e8;
	box-shadow: none;
	padding-bottom: env(safe-area-inset-bottom, 0);
}
body.ds .ds-tabbar a {
	font-size: 11px;
	color: #757575;
	gap: 2px;
}
body.ds .ds-tabbar a.is-on,
body.ds .ds-tabbar a:hover { color: var(--ds-brand); }
body.ds .ds-tabbar svg { width: 22px; height: 22px; }

/* ---------- Подвал ---------- */
body.ds .footer {
	background: #fff;
	border-top: 1px solid var(--ds-line);
	margin-top: 24px;
	padding: 8px 0 24px;
	color: #424242;
}
body.ds .footer__content { display: block; }
body.ds .footer__item { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--ds-line); width: 100%; }
body.ds .footer__item--title { font-size: 15px; font-weight: 600; color: var(--ds-ink); margin: 0 0 8px; }
body.ds .footer__item--nav { display: flex; flex-direction: column; gap: 6px; }
body.ds .footer__nav--link,
body.ds a.footer__nav--link { font-size: 13px; line-height: 1.5; color: #424242; margin: 0; }
body.ds .footer__logo--inner { padding-top: 14px; }
body.ds .footer__logo--inner .logo { width: 32px; height: 32px; }
body.ds .logo__name { font-size: 16px; font-weight: 700; color: var(--ds-ink); }
body.ds .footer__copy,
body.ds a.footer__copy { font-size: 12px; color: #757575; }

/* ---------- Десктоп ---------- */
@media (min-width: 901px) {
	body.ds .container,
	body.ds .modal__promo--inner { padding-left: 20px; padding-right: 20px; }
	body.ds h1 { font-size: 28px; }
	body.ds h2 { font-size: 20px; }

	body.ds .header { position: sticky; top: 0; z-index: 200; }
	body.ds .header .container { display: block; }
	body.ds .header__wrapper {
		display: flex;
		align-items: center;
		gap: 14px;
		padding: 12px 0 8px;
	}
	body.ds .logo__inner { margin-right: 4px; }
	body.ds .header__search--inner { flex: 1; max-width: 520px; }
	body.ds .header__nav { display: flex !important; align-items: center; gap: 4px; margin-left: auto; }
	body.ds .header__nav--link {
		margin: 0 !important;
		padding: 8px 10px;
		font-size: 14px !important;
		font-weight: 500;
		line-height: 1.2 !important;
		color: var(--ds-ink);
		border-radius: 8px;
		white-space: nowrap;
	}
	body.ds .header__nav--link:hover { background: var(--ds-mint); color: var(--ds-brand); }
	body.ds .burger { display: none; }
	body.ds .header__content { display: flex; align-items: center; gap: 12px; }
	body.ds .header__wrapper { flex: 1; min-width: 0; }
	body.ds .che-header-tools { display: flex; position: static; margin: 0; gap: 6px; }
	body.ds .header__enter { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ds-brand); }
	body.ds .header__enter--icon { width: 18px; height: auto; }
	body.ds .ds-qk { padding-bottom: 8px; overflow: visible; flex-wrap: wrap; }
	body.ds .footer__content { display: flex; gap: 40px; align-items: flex-start; }
	body.ds .footer__item { width: auto; flex: 1; border-bottom: 0; }
}

/* =====================================================================
   Общие блоки: секции, хлебные крошки, заголовки, карточки скидок
   ===================================================================== */

/* Секции-плашки: белый блок на сером фоне, как в макетах */
body.ds section.citylist,
body.ds section.citywith,
body.ds section.city,
body.ds section.promo,
body.ds section.contact {
	background: #fff;
	margin: 8px 0 0;
	padding: 14px 0 16px;
}
body.ds section.citylist:first-of-type { margin-top: 0; }
body.ds .citylist__inner,
body.ds .city__inner { display: block; }
body.ds .flex100 { width: 100%; }

/* Хлебные крошки */
body.ds .breadcrumbs {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	overflow: hidden;
	margin: 0 0 10px;
	padding: 0;
	font-size: 12px;
	line-height: 1.4;
	color: #757575;
	white-space: nowrap;
}
body.ds .breadcrumbs > span { padding: 0; display: inline-flex; align-items: center; flex: none; }
body.ds .breadcrumbs > span + span::before { content: "›"; margin: 0 6px; color: #9e9e9e; }
body.ds .breadcrumbs a,
body.ds .breadcrumbs .link__arrow { font-size: 12px; color: #757575; text-decoration: none; display: inline-flex; align-items: center; }
body.ds .breadcrumbs .read__img { display: none; }
body.ds .breadcrumbs > span:last-child { overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0; }
body.ds .breadcrumbs > span:last-child a { overflow: hidden; text-overflow: ellipsis; display: block; }
body.ds .breadcrumbs #curentbread { color: var(--ds-ink); }

/* Заголовки секций */
body.ds .title__inner { display: flex; align-items: center; margin: 0 0 12px; width: 100%; }
body.ds .title__icon { display: none; }
body.ds .title,
body.ds .review__title,
body.ds .title.review__title {
	font-size: 18px;
	line-height: 1.3;
	font-weight: 700;
	margin: 0;
	max-width: 100%;
	color: var(--ds-ink);
}
body.ds h1.title,
body.ds h1.review__title,
body.ds #h1 { font-size: 22px; line-height: 1.25; }
body.ds .citylist__inner > .title.review__title { margin: 0 0 10px; }

/* Текст описания */
body.ds .network__wrapper--text { width: 100%; margin: 0 0 12px; }
body.ds .network__wrapper--text p,
body.ds .contact__text--text { font-size: 14px; line-height: 1.5; color: #424242; margin: 0; }

/* ---------- Секция ds-sec (новые блоки) ---------- */
body.ds .ds-sec { background: #fff; margin: 12px 0; padding: 0; }
body.ds .ds-sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
body.ds .ds-sec__head h2 { margin: 0; font-size: 18px; }
body.ds .ds-sec__head a { font-size: 14px; font-weight: 500; white-space: nowrap; }

/* Меню сети */
body.ds .ds-netnav {
	display: flex;
	gap: 6px;
	margin: 10px 0 12px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
body.ds .ds-netnav::-webkit-scrollbar { display: none; }
body.ds .ds-netnav a {
	flex: none;
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding: 0 14px;
	border-radius: 18px;
	background: #f1f3f5;
	color: var(--ds-ink);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
body.ds .ds-netnav a.is-on { background: var(--ds-brand); color: #fff; }

/* Бейджи типа */
body.ds .ds-ty {
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding: 0 8px;
	border-radius: 4px;
	font-size: 11px;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	white-space: nowrap;
}
body.ds .ds-ty--code { background: var(--ds-mint); color: var(--ds-mint-ink); }
body.ds .ds-ty--act { background: var(--ds-sale-bg); color: #b71c1c; }
body.ds .ds-ty--bonus { background: #fff3cd; color: var(--ds-bonus); }
body.ds .ds-deals__sum { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
body.ds .ds-deals__sum .ds-ty { text-transform: none; font-size: 12px; height: 26px; padding: 0 10px; letter-spacing: 0; }

/* Карточка скидки: слева крупная выгода, справа суть и срок */
body.ds .ds-deals__list { display: grid; gap: 8px; }
body.ds .ds-deal {
	display: flex;
	border: 1px solid var(--ds-line);
	border-radius: var(--ds-r);
	background: #fff;
	color: var(--ds-ink);
	text-decoration: none;
	overflow: hidden;
}
body.ds .ds-deal__v {
	flex: none;
	width: 88px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 4px;
	border-right: 1px dashed #dadde1;
	text-align: center;
}
body.ds .ds-deal__v b { font-size: 20px; line-height: 1; font-weight: 800; letter-spacing: -0.02em; color: var(--ds-sale); }
body.ds .ds-deal--code .ds-deal__v b,
body.ds .ds-deal--bonus .ds-deal__v b { color: var(--ds-ink); }
body.ds .ds-deal__v .ds-ty { height: 20px; font-size: 10px; padding: 0 6px; }
body.ds .ds-deal__c { flex: 1; min-width: 0; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
body.ds .ds-deal__c > b { font-size: 14px; font-weight: 600; line-height: 1.3; }
body.ds .ds-deal__m { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; color: var(--ds-grey); }
body.ds .ds-end { font-style: normal; font-weight: 600; background: #fff3cd; color: var(--ds-bonus); border-radius: 4px; padding: 1px 6px; }
body.ds .ds-end--hot { background: var(--ds-sale-bg); color: #b71c1c; }

/* Старая врезка бонусов скрыта — сводка есть в ds-deals */
body.ds .che-bonus-teaser { display: none; }

/* ---------- Блок «круглосуточные» (c24b): светлый, без тёмного градиента ---------- */
body.ds .c24b {
	margin: 12px 0;
	padding: 14px;
	border-radius: var(--ds-r);
	background: var(--ds-night-bg);
	color: var(--ds-ink);
	font-family: inherit;
	font-size: 14px;
}
body.ds .c24b .c24b__title { font-size: 18px; color: var(--ds-ink); }
body.ds .c24b__title small,
body.ds .c24b__item small { color: #424242; }
body.ds .c24b .c24b__cta { background: var(--ds-brand); color: #fff !important; border-radius: 8px; min-height: 44px; font-size: 15px; }
body.ds .c24b .c24b__cta:hover { background: #0d6c59; }
body.ds .c24b__item { background: #fff; border: 1px solid #dde0f2; border-radius: 10px; }
body.ds .c24b .c24b__item > a:first-child { color: var(--ds-ink) !important; font-size: 14px; }
body.ds .c24b .c24b__call { background: #fff; color: var(--ds-brand) !important; border: 1px solid var(--ds-brand); border-radius: 8px; width: 40px; height: 40px; }
body.ds .c24b__pills a { background: #fff; border-color: #dde0f2; color: var(--ds-night) !important; font-size: 13px; padding: 6px 12px; }
body.ds .c24b__pills a:hover { background: #f5f6fc; }
body.ds .c24b__pills span { color: var(--ds-brand); }
body.ds .c24b--strip p { color: var(--ds-ink); }
body.ds .c24b--strip p span { color: var(--ds-brand); }

/* ---------- Плитки категорий сети (the-goods.php: .na_tri_bloka) ---------- */
body.ds .citywith__content { margin-top: 0; width: 100%; }
body.ds .citywith__content:has(.na_tri_bloka) { display: block; }
body.ds .filter__inner { max-width: 280px; margin-right: 24px; }
body.ds .filter__item--title { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
body.ds .filter__item--content_akkord a { font-size: 14px; line-height: 1.35; padding: 5px 0; }
@media (max-width: 900px) {
	body.ds .citywith__content { flex-direction: column; }
	body.ds .filter__inner { max-width: 100%; margin: 0 0 12px; width: 100%; }
	body.ds .filter__item { width: 100%; }
	body.ds .filter__item--content_akkord { max-height: 210px; overflow-y: auto; border: 1px solid var(--ds-line); border-radius: var(--ds-r); padding: 6px 12px; background: #fff; }
}
body.ds .citywith__wrapper,
body.ds .citywith__item--inner.active { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; margin: 0; padding: 0; }
body.ds .citywith__item--inner:not(.active) { display: none; }
body.ds .rec__item.na_tri_bloka {
	width: calc(50% - 4px) !important;
	margin: 0 !important;
	padding: 10px !important;
	flex-direction: row;
	align-items: center;
	gap: 10px;
	background: #fff;
	border: 1px solid var(--ds-line);
	border-radius: var(--ds-r);
	box-shadow: none;
	min-height: 56px;
}
body.ds .na_tri_bloka .skrito_img { display: block; width: 36px; flex: none; }
body.ds .na_tri_bloka .skrito_img img { width: 36px; height: 36px; object-fit: contain; }
body.ds .na_tri_bloka .pod_kategorii { flex: 1; min-width: 0; width: auto; }
body.ds .na_tri_bloka .pod_kategorii p { padding: 0; margin: 0; font-size: 14px; font-weight: 600; line-height: 1.25; color: var(--ds-ink); }
body.ds .na_tri_bloka .pod_kategorii span { padding: 0; }
body.ds .na_tri_bloka .knop_smotri { display: none; }

/* ---------- Карточка товара/каталога (.rec__item) ---------- */
body.ds .rec__item {
	background: #fff;
	border: 1px solid var(--ds-line);
	border-radius: var(--ds-r);
	box-shadow: none;
	padding: 10px;
}
body.ds .rec__item--text,
body.ds .product__name { font-size: 13px !important; line-height: 1.35; font-weight: 500; color: var(--ds-ink); }
body.ds .rec__item--price { font-size: 18px; font-weight: 700; color: var(--ds-ink); margin: 0; }
body.ds .rec__item--sale { font-size: 12px; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: #e53935; color: #fff; }
body.ds .cart__button,
body.ds button.cart__button {
	min-height: 40px;
	padding: 0 12px;
	border-radius: 8px;
	background: #fff;
	border: 1px solid var(--ds-brand);
	color: var(--ds-brand);
	font-size: 13px;
	font-weight: 600;
	width: 100%;
}
body.ds .cart__icon { display: none; }
body.ds .btn,
body.ds a.btn { border-radius: 8px; font-size: 15px; font-weight: 600; }

/* ---------- Пагинация ---------- */
body.ds .pagination__inner { margin: 12px 0; gap: 4px; }
body.ds .page-numbers { min-width: 40px; height: 40px; border-radius: 8px; font-size: 14px; background: #fff; border: 1px solid var(--ds-line); color: var(--ds-ink); }
body.ds .page-numbers.current { background: var(--ds-brand); border-color: var(--ds-brand); color: #fff; }


/* ---------- Города присутствия (алфавит + список) ---------- */
body.ds .city__content { display: block; margin: 0; }
body.ds .city__wrapper { width: 100%; display: block; }
body.ds .city__wrapper--content { display: flex; flex-wrap: wrap; gap: 4px; width: 100%; padding: 0; }
body.ds .city__wrapper--item {
	min-width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border: 1px solid var(--ds-line);
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	color: var(--ds-ink);
	background: #fff;
	margin: 0;
	padding: 0;
}
body.ds .city__wrapper--item.active { background: var(--ds-brand); border-color: var(--ds-brand); color: #fff; }
body.ds .city__values { margin-top: 10px; display: block; }
body.ds .city__item { display: none; flex-wrap: wrap; gap: 0 16px; }
body.ds .city__item.active { display: flex; }
body.ds .city__value { width: calc(50% - 8px); padding: 9px 0; border-bottom: 1px solid #f1f3f5; font-size: 14px; color: var(--ds-ink); }
body.ds .filter__item--wrapper,
body.ds .filter__item--wrapper * { font-size: 14px; }
body.ds .filter__item--content_akkord label,
body.ds .label_for_kategorii { font-size: 14px !important; line-height: 1.35 !important; }

/* =====================================================================
   Карточки товаров 2 в ряд, реклама, алфавит городов (правки после первого прогона)
   ===================================================================== */


/* Товарные карточки (the-last-goods / the-goods): 2 в ряд, фото 120px, цена, кнопка на всю ширину */
body.ds .rec__item:not(.na_tri_bloka) {
	width: calc(50% - 4px);
	margin: 0;
	padding: 8px 8px 10px;
	align-items: stretch;
	gap: 6px;
}
body.ds .rec__item:not(.na_tri_bloka) .book__wrapper { width: 100%; display: flex; flex-direction: column; gap: 6px; }
body.ds .rec__item:not(.na_tri_bloka) .rec__item--wrapper { position: relative; display: block; }
body.ds .rec__item--img--inner {
	height: 120px;
	border-radius: 8px;
	background: #fafafa;
	align-items: center;
	justify-content: center;
}
body.ds .rec__item--img { width: auto; max-width: 100%; height: auto; max-height: 120px; object-fit: contain; margin: 0 auto; }
body.ds .rec__item--img:before,
body.ds .rec__item--img:after { display: none; }
body.ds .rec__item--logo { display: none; }
body.ds .rec__item:not(.na_tri_bloka) .rec__item--content {
	position: absolute;
	top: 4px;
	right: 4px;
	width: auto;
	max-width: none;
	padding: 0;
}
body.ds .rec__item--sale.active { width: auto; }
body.ds .rec__item--text { padding: 0 !important; margin: 0 !important; }
body.ds .rec__item--cart--inner {
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
	padding: 0;
	margin: 0;
}
body.ds .rec__item--price--inner { padding: 0; }
body.ds .rec__item--cart--inner > a { display: block; }
body.ds .rec__item--cart--inner .cart__button { width: 100%; height: 36px; min-height: 36px; padding: 0 8px; font-size: 13px; white-space: nowrap; }
body.ds .rec__item--cart--inner .btn__img--inner { display: none; }

/* Алфавит городов: 7 в ряд, без чёрной линии */
body.ds .city__wrapper--content { border: 0; }
body.ds .city__wrapper--content::before,
body.ds .city__wrapper--content::after { display: none; }
body.ds .city__wrapper--item { width: calc((100% - 24px) / 7); min-width: 0; }

/* id-правила легаси (style.css) */
body.ds #last_good { width: calc(50% - 4px); margin: 0; }
body.ds #last_knopka,
body.ds .cart__button:hover { max-width: none !important; width: 100%; }
body.ds .rec__item--img { font-size: 0; color: transparent; }

/* Каталог сети: между карточками стоят пустые блоки-распорки, которые тоже получают gap — ужимаем ширину, чтобы вмещалось 2 в ряд */
@media (max-width: 900px) {
	body.ds .citywith__item--inner.active .rec__item.itemfor3 { width: calc(50% - 5px); max-width: none; }
}

/* Пустые блоки-распорки между карточками (div без класса) занимали gap и ломали сетку */
body.ds .citywith__item--inner.active > div:not([class]) { display: none; }

/* =====================================================================
   Подвал, пагинация, форма отзыва, мелочи
   ===================================================================== */

body.ds .footer__inner { background: transparent; padding: 0; border-radius: 0; box-shadow: none; margin: 0; }
body.ds .footer__wrapper { padding: 0; }
body.ds .footer__item--title { font-size: 15px; }
body.ds .footer__nav--link { font-size: 13px; }

body.ds .page-numbers.dots { background: transparent; border-color: transparent; color: #9e9e9e; min-width: 24px; }
body.ds a.page-numbers:hover { border-color: var(--ds-brand); color: var(--ds-brand); }

/* Форма отзыва */
body.ds .comment-respond { background: #fff; border-radius: var(--ds-r); padding: 0; box-shadow: none; }
body.ds #reply-title,
body.ds .comment-reply-title { font-size: 18px; font-weight: 700; color: var(--ds-ink); margin: 0 0 10px; }
body.ds .comment-form p { margin: 0 0 10px; }
body.ds .comment-form label { font-size: 13px; color: #424242; display: block; margin-bottom: 4px; }
body.ds .comment-form textarea,
body.ds .comment-form input[type="text"],
body.ds .comment-form input[type="email"] {
	width: 100%;
	max-width: 100%;
	border: 1px solid #dadde1;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 15px;
	background: #fafafa;
	box-sizing: border-box;
}
body.ds .comment-form textarea { min-height: 96px; }
body.ds .comment-form .form-submit input,
body.ds .comment-form input[type="submit"],
body.ds #respond .button {
	height: 44px;
	padding: 0 20px;
	border-radius: 8px;
	border: 1px solid var(--ds-brand);
	background: #fff;
	color: var(--ds-brand);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}
body.ds #respond #input,
body.ds .form { width: 100%; max-width: 100%; }
body.ds .contact__item { display: block; padding: 0; background: transparent; box-shadow: none; }

/* Пагинация: старое правило красило все span красным (текущая страница и «…») */
body.ds .pagination__inner span.page-numbers { background: #fff !important; color: var(--ds-ink); }
body.ds .pagination__inner span.page-numbers.current { background: var(--ds-brand) !important; color: #fff; }
body.ds .pagination__inner span.page-numbers.dots { background: transparent !important; border-color: transparent; min-width: 24px; }
body.ds .page-numbers:first-child,
body.ds .page-numbers:last-child { border-radius: 8px; padding: 0 12px; height: 40px; display: inline-flex; align-items: center; color: var(--ds-ink); }
body.ds .page-numbers.current:first-child,
body.ds .page-numbers.current:last-child { color: #fff; }

/* Форма отзыва: поля друг под другом, без наложения */
body.ds form.comment-form p { display: block !important; margin: 0 0 12px !important; width: 100% !important; height: auto !important; }
body.ds form.comment-form label { display: block !important; margin: 0 0 4px !important; font-size: 14px; color: var(--ds-grey); width: auto !important; }
body.ds form.comment-form textarea,
body.ds form.comment-form input#author,
body.ds form.comment-form input#email {
	display: block !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; padding: 10px 12px !important; font-size: 16px !important;
	border: 1px solid #dadde1 !important; border-radius: 8px !important; background: #fff !important; margin: 0 !important; position: static !important;
}
body.ds form.comment-form textarea { height: 110px !important; min-height: 110px !important; }
body.ds form.comment-form input#author, body.ds form.comment-form input#email { height: 44px !important; }
body.ds form.comment-form .com_block_star { margin: 0 0 12px; }
body.ds form.comment-form .form-submit { text-align: left; }
@media (max-width: 600px) { body.ds form.comment-form input#submit { width: 100%; height: 44px; } }

/* =====================================================================
   Главная
   ===================================================================== */

body.ds .ds-home { margin: 0; padding: 12px 0 4px; }
body.ds .ds-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; }
body.ds .ds-tile {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-height: 104px;
	padding: 14px;
	background: #fff;
	border: 1px solid var(--ds-line);
	border-radius: var(--ds-r);
	color: var(--ds-ink);
	text-decoration: none;
}
body.ds .ds-tile i {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--ds-mint);
	color: var(--ds-brand);
	display: grid;
	place-items: center;
	margin-bottom: 6px;
	font-style: normal;
}
body.ds .ds-tile b { font-size: 15px; font-weight: 600; line-height: 1.25; }
body.ds .ds-tile span { font-size: 12px; color: var(--ds-grey); line-height: 1.3; }
body.ds .ds-home__head { margin-top: 4px; }
body.ds .ds-ty--net { background: #f1f3f5; color: #424242; }
body.ds .ds-note { margin: 8px 0 0; font-size: 12px; color: var(--ds-grey); }

/* Блоки старой главной */
body.ds section.sub { display: none; }
body.ds .why__logo--inner { display: none; }
body.ds .why__content { display: block; }
body.ds .why__wrapper { display: block; width: 100%; }
body.ds .why__point--inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; margin: 0; }
body.ds .why__point {
	background: #f4f5f7;
	border-radius: 10px;
	padding: 12px;
	font-size: 12px;
	line-height: 1.3;
	color: var(--ds-grey);
	margin: 0;
	width: auto;
}
body.ds .why__point .why__point--num { display: block; font-size: 22px; font-weight: 800; color: var(--ds-brand); line-height: 1.15; margin-bottom: 2px; }
body.ds .why__text--inner { margin-top: 12px; display: block; width: 100%; }
body.ds .why__text--item { font-size: 14px; line-height: 1.5; color: #424242; margin: 0 0 8px; }
body.ds .why__text--item .why__point--num { font-size: 14px; font-weight: 600; color: var(--ds-brand); display: inline; }

/* Журнал на главной */
body.ds .journal-home__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
body.ds .journal-home__all { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 8px; background: #fff; border: 1px solid var(--ds-brand); color: var(--ds-brand); display: inline-flex; align-items: center; }
body.ds .journal-hub__intro { font-size: 14px; line-height: 1.5; color: #424242; margin: 0 0 12px; }

/* =====================================================================
   Страница аптеки (single-adress) и товара (single-good)
   ===================================================================== */

/* ---------- Аптека ---------- */
body.ds .ymp-head {
	flex-wrap: nowrap;
	gap: 12px;
	padding: 12px;
	margin: 8px 0;
	border-radius: var(--ds-r);
	box-shadow: none;
	border: 1px solid var(--ds-line);
}
body.ds .ymp-head__logo { width: 48px; height: 48px; min-width: 48px; border-radius: 12px; padding: 4px; }
body.ds .ymp-head__main { min-width: 0; gap: 4px; }
body.ds .ymp-head__rating { font-family: inherit; font-size: 13px; flex-wrap: wrap; }
body.ds .ymp-head__rating-link { color: var(--ds-brand); }
body.ds .ymp-chip { font-family: inherit; font-size: 12px; padding: 4px 10px; background: #f1f3f5; color: #424242; }
body.ds .ymp-chip--status { font-weight: 600; }
body.ds .ymp-chip--open { background: var(--ds-mint); color: var(--ds-mint-ink); }
body.ds .ymp-chip--24h { background: var(--ds-night-bg); color: var(--ds-night); }
body.ds .ymp-chip--closed { background: var(--ds-sale-bg); color: #b71c1c; }

body.ds h1.title.review__title[itemprop="name"],
body.ds .address__content h1 { font-size: 20px; line-height: 1.3; margin: 0 0 10px; }
body.ds .address__content { display: block; }
body.ds .address__info { width: 100%; display: block; }
body.ds .address__info--item { display: block; padding: 0; margin: 0 0 12px; }
body.ds .address__info--item img { max-width: 56px; height: auto; border-radius: 12px; }
body.ds .address__info p,
body.ds .address__text,
body.ds .address__info--item div { font-size: 14px; line-height: 1.5; color: #424242; }
body.ds .address__map,
body.ds #map { width: 100%; height: 220px !important; border-radius: var(--ds-r); overflow: hidden; margin: 12px 0 0; }
body.ds .address__review--block { padding: 0; margin: 12px 0 0; }

body.ds .ymp-contacts,
body.ds .ymp-transport,
body.ds .ymp-promos,
body.ds .ymp-insights {
	background: #fff;
	border: 1px solid var(--ds-line);
	border-radius: var(--ds-r);
	box-shadow: none;
	padding: 14px;
	margin: 8px 0;
}
body.ds .ymp-contacts__title,
body.ds .ymp-transport__title,
body.ds .ymp-promos__title { font-family: inherit; font-size: 16px; font-weight: 700; margin: 0 0 8px; color: var(--ds-ink); }
body.ds .ymp-hours { width: 100%; font-size: 14px; border-collapse: collapse; }
body.ds .ymp-hours td { padding: 6px 0; border-top: 1px solid #f1f3f5; }
body.ds .ymp-hours tr:first-child td { border-top: 0; }
body.ds .ymp-hours tr.is-today td,
body.ds .ymp-hours .ymp-hours__today { font-weight: 700; color: var(--ds-brand); background: transparent; }
body.ds .ymp-transport__list { display: flex; flex-direction: column; gap: 6px; padding: 0; margin: 0; list-style: none; font-size: 14px; }
body.ds .ymp-promo-card { border: 1px solid var(--ds-line); border-radius: var(--ds-r); box-shadow: none; }
body.ds .ymp-promo-card__name { font-size: 13px; }

/* ---------- Товар ---------- */
body.ds .tovar__title { font-size: 20px; line-height: 1.3; font-weight: 700; margin: 0 0 6px; color: var(--ds-ink); }
body.ds .tovar__text { font-size: 12px; line-height: 1.4; color: var(--ds-grey); margin: 0 0 10px; }
body.ds .tovar__content { display: block; }
body.ds .tovar__img--inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 240px;
	background: #fff;
	border: 1px solid var(--ds-line);
	border-radius: var(--ds-r);
	margin: 0 0 12px;
	padding: 8px;
	width: 100%;
}
body.ds .tovar__img { max-width: 100%; max-height: 224px; width: auto; height: auto; object-fit: contain; }
body.ds .tovar__img--fav { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; margin: 0; background: #fff; border-radius: 10px; display: grid; place-items: center; }
body.ds .tovar__text--inner { display: block; width: 100%; padding: 0; }
body.ds .che-product-props { gap: 6px; }
body.ds .che-product-props > * { font-size: 13px; background: #f4f5f7; border-radius: 8px; }
body.ds .che-trust-block { font-size: 12px; line-height: 1.45; color: #424242; border-left: 3px solid var(--ds-teal); padding: 6px 10px; margin: 10px 0; }
body.ds .tovar__date--inner { margin: 8px 0; }
body.ds .tovar__date--text { font-size: 18px; font-weight: 700; color: var(--ds-ink); line-height: 1.3; }
body.ds .items-zagol { font-size: 15px; font-weight: 700; color: var(--ds-ink); margin: 14px 0 6px; line-height: 1.3; }
body.ds .drug-price { font-size: 15px; font-weight: 500; padding: 8px 0; margin: 0; border-top: 1px solid #f1f3f5; color: var(--ds-ink); }
body.ds .drug-price a { font-size: 15px; font-weight: 500; color: var(--ds-brand); }
body.ds .tovar__logo--inner { margin-top: 12px; gap: 10px; padding: 10px 12px; background: #f4f5f7; border-radius: 10px; font-size: 14px; }
body.ds .tovar__logo--inner a { font-size: 14px; }

body.ds .che-sticky-cta { background: #fff; border-top: 1px solid var(--ds-line); box-shadow: none; }
body.ds .che-sticky-cta .button { border-radius: 8px; background: var(--ds-brand); color: #fff; font-size: 13px; }
body.ds .che-sticky-cta__price { font-size: 16px; font-weight: 700; }

body.ds .caymp-offer .caymp-h3,
body.ds .caymp-h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; color: var(--ds-ink); }
body.ds .caymp-own,
body.ds .caymp-row { border-radius: 10px; font-size: 14px; }
body.ds .caymp-note { font-size: 12px; line-height: 1.5; color: #5f5f5f; background: #f4f5f7; border-radius: 8px; padding: 10px 12px; }

body.ds .charts { background: #fff; margin-top: 8px; padding: 14px 0; }
body.ds .charts .container { display: block; }
body.ds .charts__shops,
body.ds .charts__graph { width: 100%; margin: 0 0 10px; }
@media (min-width: 1001px) {
	body.ds .charts .container { display: flex; align-items: flex-start; gap: 16px; }
	body.ds .charts__shops { width: 300px !important; flex: none; margin: 0; padding: 16px; border: 1px solid var(--ds-line); border-radius: var(--ds-r); }
	body.ds .charts__graph { flex: 1; min-width: 0; width: auto !important; margin: 0; }
	body.ds .charts__shops-content { grid-template-columns: minmax(0, 1fr); }
}
body.ds .charts__shops-title { font-size: 18px; font-weight: 700; margin: 0 0 10px; }
body.ds .charts__shops-item { font-size: 14px; }
body.ds .charts__shops-item__name { font-size: 14px !important; }
body.ds .charts__shops-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; font-size: 14px; }
body.ds .charts__graph-line { max-width: 100%; overflow-x: auto; }
body.ds .charts__grapth-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
body.ds .charts__grapth-actions .text { font-size: 14px; color: var(--ds-grey); }
body.ds .vendors { background: #f4f5f7; margin: 8px 0 0; border-radius: 10px; }

body.ds section.review { background: #fff; margin: 8px 0 0; padding: 14px 0 16px; }
body.ds .rec__content.content { display: flex; flex-wrap: wrap; gap: 8px; }
body.ds .rec__content .rec__item { width: calc(50% - 4px); margin: 0; }
body.ds .che-analogs-note { font-size: 12px; line-height: 1.5; color: #5f5f5f; }

/* Списки адресов сети в городе (.citystore__block): компактная строка вместо центрированной простыни */
@media (max-width: 900px) {
	body.ds .citystore__block {
		display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; text-align: left;
		padding: 12px 14px; margin: 0 0 8px; border: 1px solid var(--ds-line); border-radius: var(--ds-r); background: #fff;
	}
	body.ds .citystore__name { grid-column: 1; grid-row: 1; width: auto; font-size: 13px; align-items: flex-start; text-align: left; display: flex; flex-direction: column; gap: 2px; }
	body.ds .citystore__name > .ds-logo { display: none; }
	body.ds .citystore__name--title { font-size: 16px; font-weight: 700; line-height: 1.3; text-align: left; color: var(--ds-ink); }
	body.ds .citystore__name--text { font-size: 13px; color: var(--ds-grey); text-align: left; width: auto; }
	body.ds .citystore__point { grid-column: 2; grid-row: 1; width: auto; margin: 0; font-size: 22px; justify-content: flex-end; gap: 10px; }
	body.ds .citystore__point .dashicons { font-size: 24px; width: 24px; height: 24px; color: var(--ds-brand); }
	body.ds .citystore__work { grid-column: 1; grid-row: 2; width: auto; margin: 0; font-size: 13px; text-align: left; color: #424242; }
	body.ds .citystore__more { grid-column: 2; grid-row: 2; width: auto; margin: 0; }
	body.ds .citystore__button { font-size: 13px; padding: 6px 12px; width: auto; border-radius: 8px; }
}
@media (max-width: 900px) { body.ds .citystore__content { padding-left: 0; padding-right: 0; } }
@media (min-width: 1001px) { body.ds .charts__shops-content { grid-template-columns: minmax(0, 1fr) !important; } }
/* График цен на телефоне: весь период в ширину экрана (раньше 350% с горизонтальной прокруткой и стрелками) */
@media (max-width: 1000px) {
	body.ds #line-chart { width: 100% !important; }
	body.ds .charts__graph-line { overflow-x: hidden; }
	body.ds .charts__grapth-actions { display: none; }
}

/* =====================================================================
   Скидки: карточки промокодов/акций (.che-offer), окно кода, витрины
   ===================================================================== */

body.ds .che-offer-list { margin: 8px 0; }
body.ds .che-offer {
	--offer-accent: var(--ds-brand);
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	gap: 0;
	align-items: stretch;
	margin: 8px 0;
	padding: 0;
	border: 1px solid var(--ds-line);
	border-radius: var(--ds-r);
	background: #fff;
	color: var(--ds-ink);
	font-family: inherit;
	overflow: hidden;
}
body.ds .che-offer--ended { background: #fafafa; color: #757575; }
body.ds .che-offer__icon {
	grid-column: 1;
	grid-row: 1;
	flex: none;
	display: grid;
	place-items: center;
	height: auto;
	min-height: 72px;
	border-radius: 0;
	border-right: 1px dashed #dadde1;
	background: #fff;
	color: var(--ds-teal);
}
body.ds .che-offer__icon svg { width: 28px; height: 28px; }
body.ds .che-offer__icon.has-val svg { display: none; }
body.ds .che-offer .ds-val { font-size: 20px; line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; color: var(--ds-ink); text-align: center; padding: 0 4px; }
body.ds .che-offer--action .ds-val { color: var(--ds-sale); }
body.ds .che-offer__info { grid-column: 2; grid-row: 1; padding: 10px 12px; min-width: 0; }
body.ds .che-offer .che-offer__label {
	display: inline-flex;
	margin: 0 0 4px;
	padding: 2px 8px;
	border-radius: 4px;
	background: var(--ds-mint);
	color: var(--ds-mint-ink);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
}
body.ds .che-offer--action .che-offer__label { background: var(--ds-sale-bg); color: #b71c1c; }
body.ds .che-offer .che-offer__benefit { margin: 0 0 4px; font-size: 14px; line-height: 1.3; font-weight: 600; color: var(--ds-ink); }
body.ds .che-offer .che-offer__status { font-size: 12px; color: var(--ds-grey); }
body.ds .che-offer__action { grid-column: 1 / -1; grid-row: 2; flex: none; padding: 0 12px 12px; text-align: left; }
body.ds .che-offer .che-offer__open,
body.ds .che-offer .che-offer__copy {
	min-height: 44px;
	border-radius: 8px;
	background: var(--ds-brand);
	color: #fff !important;
	font-size: 15px;
	font-weight: 600;
}
body.ds .che-offer .che-offer__open:hover,
body.ds .che-offer .che-offer__copy:hover { background: #0d6c59; }
body.ds .che-offer .che-offer__hint { font-size: 12px; color: var(--ds-grey); margin-top: 6px; text-align: left; }

/* Окно с кодом: нижний лист на телефоне */
body.ds .che-offer dialog.che-offer__dialog {
	width: 100%;
	max-width: 480px;
	margin: auto auto 0;
	padding: 18px 16px 20px;
	border-radius: 16px 16px 0 0;
	box-shadow: none;
	font-family: inherit;
	color: var(--ds-ink);
}
body.ds .che-offer .che-offer__dialog-title { font-size: 17px; line-height: 1.3; margin: 0 28px 12px 0; color: var(--ds-ink); }
body.ds .che-offer__codebox { gap: 8px; }
body.ds .che-offer input.che-offer__code {
	height: 52px;
	border: 2px dashed var(--ds-brand);
	border-radius: 10px;
	background: #fff;
	color: var(--ds-ink);
	font-family: ui-monospace, Menlo, Consolas, monospace;
	font-size: 20px;
	letter-spacing: 0.1em;
}
body.ds .che-offer .che-offer__copy { flex: 0 0 120px; width: 120px; min-height: 52px; }
body.ds .che-offer .che-offer__feedback { color: var(--ds-brand); }
body.ds .che-offer .che-offer__text,
body.ds .che-offer .che-offer__conditions { font-size: 14px; line-height: 1.5; color: #424242; background: #f4f5f7; border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
body.ds .che-offer .che-offer__note { font-size: 12px; color: var(--ds-grey); margin: 8px 0; }
body.ds .che-offer a.che-offer__link,
body.ds .ds-near {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
	margin-top: 10px;
	border: 1px solid var(--ds-brand);
	border-radius: 8px;
	color: var(--ds-brand);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	background: #fff;
}
body.ds .ds-near { background: var(--ds-brand); color: #fff; }
body.ds .che-offer .che-offer__close { right: 8px; top: 8px; width: 44px; height: 44px; background: transparent; }

/* Голосование */
body.ds .ds-vote { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 8px 10px; border: 1px solid var(--ds-line); border-radius: 10px; }
body.ds .ds-vote__q { flex: 1; font-size: 14px; font-weight: 600; }
body.ds .ds-vote__b { min-width: 64px; height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid #dadde1; background: #fff; font-size: 14px; color: var(--ds-ink); cursor: pointer; }
body.ds .ds-vote__b:hover { border-color: var(--ds-brand); color: var(--ds-brand); }
body.ds .ds-vote__stats { margin: 6px 0 0; font-size: 12px; color: var(--ds-grey); min-height: 0; }
body.ds .ds-vote__stats:empty { display: none; }

/* Витрина кодов и страницы сети в журнале */
body.ds .che-codes .citylist__inner > * { flex: none; width: 100%; max-width: 100%; }
body.ds .che-codes__finder { margin: 8px 0 16px; padding: 14px; border: 1px solid var(--ds-line); border-radius: var(--ds-r); background: #fff; }
body.ds .che-codes__finder h2 { font-size: 16px; margin: 0 0 10px; }
body.ds .che-codes__search { border-radius: 8px; border-color: #dadde1; background: #fafafa; }
body.ds .che-codes__search input { height: 44px; font-size: 15px; }
body.ds .che-codes__nets a { padding: 6px 12px; border-radius: 16px; border-color: #dadde1; background: #fff; font-size: 13px; color: var(--ds-ink); }
body.ds .che-codes__nets a span { color: var(--ds-brand); }
body.ds .che-codes__group { margin: 18px 0; }
body.ds .che-codes__group h2 { font-size: 18px; }
body.ds .che-codes__group-meta,
body.ds .che-codes__status { font-size: 12px; color: var(--ds-grey); }
body.ds .che-codes__empty { padding: 14px; border-radius: var(--ds-r); background: #f4f5f7; font-size: 14px; }
body.ds .che-codes__notice { margin: 18px 0; padding: 12px 14px; border-left: 3px solid var(--ds-teal); background: #f4f5f7; border-radius: 0 10px 10px 0; font-size: 13px; color: #424242; }
body.ds .journal-hub { background: #fff; }
body.ds .journal-hub__rubrics { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 8px 0 12px; }
body.ds .journal-hub__rubric { flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 18px; background: #f1f3f5; color: var(--ds-ink); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
body.ds .journal-hub__rubric.is-current { background: var(--ds-brand); color: #fff; }

body.ds .che-net h2 { font-size: 18px; margin: 18px 0 10px; }
body.ds .che-net__grid { grid-template-columns: 1fr; gap: 8px; margin: 8px 0; }
body.ds .che-net__card { flex-direction: row; border: 1px solid var(--ds-line); border-radius: var(--ds-r); }
body.ds .che-net__card > a { flex: 0 0 96px; }
body.ds .che-net__card img { width: 96px; height: 100%; min-height: 80px; object-fit: cover; }
body.ds .che-net__body { padding: 10px 12px; }
body.ds .che-net__body h2 { font-size: 14px; line-height: 1.3; margin: 4px 0; }
body.ds .che-net__body h2 a { color: var(--ds-ink); }
body.ds .che-net__body p { font-size: 13px; }
body.ds .che-net__term { font-size: 12px !important; color: var(--ds-grey) !important; }
body.ds .che-net__faq details { padding: 10px 0; }
body.ds .che-net__faq summary { font-size: 15px; }
body.ds .che-net__list { padding-left: 16px; font-size: 14px; }

@media (min-width: 901px) {
	body.ds .ds-deals__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	body.ds .che-net__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body.ds .che-offer dialog.che-offer__dialog { max-width: 480px; margin: auto; border-radius: 16px; padding: 22px; }
}

/* Логотипы сетей */
body.ds .ds-logo { display: inline-block; flex: none; object-fit: contain; border-radius: 4px; background: #fff; vertical-align: middle; }
body.ds .ds-deal__net { display: inline-flex; align-items: center; gap: 5px; }
body.ds .ds-deal__net .ds-logo { width: 18px; height: 18px; }
body.ds .ds-hub__chip .ds-logo { width: 18px; height: 18px; margin-right: 6px; }
body.ds .ds-netnav__brand { display: inline-flex; align-items: center; gap: 6px; flex: none; font-weight: 700; font-size: 14px; color: var(--ds-ink); padding: 0 6px 0 0; }
body.ds .ds-netnav__brand .ds-logo { width: 26px; height: 26px; }
body.ds .ds-nets { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 14px; padding: 2px 0 4px; scrollbar-width: none; }
body.ds .ds-nets::-webkit-scrollbar { display: none; }
body.ds .ds-nets__i { flex: none; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 8px; border: 1px solid var(--ds-line); border-radius: var(--ds-r); background: #fff; color: var(--ds-ink); font-size: 11px; line-height: 1.2; text-align: center; text-decoration: none; }
body.ds .ds-nets__i .ds-logo { width: 40px; height: 40px; }
body.ds .ds-nets__i span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 901px) { body.ds .ds-nets { flex-wrap: wrap; overflow: visible; } body.ds .ds-nets__i { width: 96px; } }
body.ds .ds-item { position: relative; }
body.ds .ds-item .ds-item__logo { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; z-index: 1; }

/* Логотипы: карточки промокодов/акций, строки аптек, страница аптеки */
body.ds .che-offer__label .ds-logo { width: 18px; height: 18px; margin: -3px 6px -3px 0; }
body.ds .citystore__block { position: relative; }
body.ds .citystore__name > .ds-logo { width: 40px; height: 40px; margin: 0 0 8px; border: 1px solid var(--ds-line); padding: 2px; }
body.ds .contact__title--inner .title__icon { display: none; }
body.ds .contact__title--inner > .ds-logo { width: 56px; height: 56px; margin-right: 12px; border: 1px solid var(--ds-line); padding: 3px; border-radius: 10px; }
@media (max-width: 900px) { body.ds .contact__title--inner > .ds-logo { width: 44px; height: 44px; } }
body.ds .c24b__item > a:first-child .ds-logo { width: 28px; height: 28px; margin: -4px 10px -4px 0; border: 1px solid var(--ds-line); padding: 2px; vertical-align: middle; }

/* =====================================================================
   Хаб скидок /stories/skidki/, битые фото
   ===================================================================== */

body.ds img.is-broken { visibility: hidden; }

body.ds .ds-hub__lead { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: var(--ds-grey); }
body.ds .ds-hub__sum,
body.ds .ds-hub__filters,
body.ds .ds-hub__nets { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 10px; }
body.ds .ds-hub__nets { flex-wrap: wrap; overflow: visible; }
body.ds .ds-hub__tab {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 40px;
	padding: 0 14px;
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	background: transparent;
	color: var(--ds-grey);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}
body.ds .ds-hub__tab em { font-style: normal; font-size: 12px; background: #f1f3f5; border-radius: 9px; padding: 0 7px; color: #424242; }
body.ds .ds-hub__tab.is-on { color: var(--ds-brand); border-bottom-color: var(--ds-brand); }
body.ds .ds-hub__chip {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 34px;
	padding: 0 12px;
	border: 1px solid #dadde1;
	border-radius: 17px;
	background: #fff;
	color: var(--ds-ink);
	font-size: 13px;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
}
body.ds .ds-hub__chip em { font-style: normal; color: var(--ds-brand); font-weight: 600; }
body.ds .ds-hub__chip.is-on { background: var(--ds-brand); border-color: var(--ds-brand); color: #fff; }
body.ds .ds-hub__chip.is-on em { color: #fff; }
body.ds .ds-hub__list { display: grid; gap: 8px; margin: 4px 0 10px; }
body.ds .ds-item[hidden] { display: none; }
body.ds .ds-item .che-offer { margin: 0; }
body.ds .ds-hub__more {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 44px;
	border: 0;
	border-radius: 8px;
	background: #f1f3f5;
	color: var(--ds-ink);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}
body.ds .ds-hub__more[hidden],
body.ds .ds-hub__empty[hidden] { display: none; }
body.ds .ds-hub__empty { padding: 14px; background: #f4f5f7; border-radius: var(--ds-r); font-size: 14px; }
body.ds .ds-hub__h2 { font-size: 18px; margin: 20px 0 10px; }
body.ds .ds-hub__more-links { font-size: 14px; margin: 12px 0 0; line-height: 1.8; }

@media (min-width: 901px) {
	body.ds .ds-hub__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body.ds .ds-hub__sum,
	body.ds .ds-hub__filters { overflow: visible; flex-wrap: wrap; }
}

/* =====================================================================
   Перекраска модулей (хабы /preparaty/ и города, «круглосуточные», журнал) под общую палитру
   ===================================================================== */

/* Хабы */
body.ds .hub { color: var(--ds-ink); font-size: 14px; line-height: 1.5; }
body.ds .hub a { color: var(--ds-brand); }
body.ds .hub h1,
body.ds .hub h2,
body.ds .hub h3 { color: var(--ds-ink); }
body.ds .hub h2 { font-size: 18px; font-weight: 700; }
body.ds .hub h3 { font-size: 15px; font-weight: 600; }
body.ds .hub-section { margin: 20px 0 0; }
body.ds .hub-crumbs { font-size: 12px; color: var(--ds-grey); margin: 0 0 10px; }
body.ds .hub-crumbs a { color: var(--ds-grey); }
body.ds .hub-hero {
	display: block;
	padding: 16px;
	border-radius: var(--ds-r);
	border: 1px solid var(--ds-line);
	background: #fff;
	box-shadow: none;
}
body.ds .hub-hero:after { display: none; }
body.ds .hub-hero h1 { font-size: 22px; line-height: 1.25; font-weight: 700; margin: 0 0 8px; }
body.ds .hub-hero-media { display: none; }
body.ds .hub-lead { font-size: 14px; line-height: 1.5; color: #424242; }
body.ds .hub-kicker { font-size: 11px; color: var(--ds-grey); letter-spacing: 0.06em; }
body.ds .hub-kicker i { background: var(--ds-teal); box-shadow: none; }
body.ds .hub-price strong { font-size: 28px; color: var(--ds-ink); }
body.ds .hub-price span { font-size: 13px; color: var(--ds-grey); }
body.ds .hub-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
body.ds .hub-stats li { background: #f4f5f7; border: 0; border-radius: 10px; padding: 10px 12px; }
body.ds .hub-stats strong { font-size: 20px; color: var(--ds-ink); }
body.ds .hub-stats span { font-size: 12px; color: var(--ds-grey); }
body.ds .hub-chips a,
body.ds .hub-chips button { font-size: 13px; padding: 6px 12px; border-color: #dadde1; color: var(--ds-ink); }
body.ds .hub-chips a:hover,
body.ds .hub-chips button:hover { border-color: var(--ds-brand); }
body.ds .hub-chips [aria-pressed="true"],
body.ds .hub-chips [aria-current] { background: var(--ds-brand); border-color: var(--ds-brand); color: #fff; }

/* Круглосуточные */
body.ds .c24 {
	--c24-ink: #212121;
	--c24-muted: #6f6f6f;
	--c24-line: #ecedf0;
	--c24-soft: #f4f5f7;
	--c24-green: #10806a;
	--c24-green-d: #0b6655;
	--c24-gold: #10806a;
	font-family: inherit;
	font-size: 14px;
}
body.ds .c24-wrap { padding: 8px 12px 24px; }
body.ds .c24-hero { background: var(--ds-night-bg); color: var(--ds-ink); border-radius: var(--ds-r); padding: 16px; box-shadow: none; gap: 14px; }
body.ds .c24-hero::before { display: none; }
body.ds .c24-hero h1 { color: var(--ds-ink); font-size: 22px; line-height: 1.25; margin: 8px 0; }
body.ds .c24-lead { color: #424242; font-size: 14px; }
body.ds .c24-kicker { background: #fff; color: var(--ds-night); font-size: 11px; }
body.ds .c24-moon { box-shadow: inset -4px -1px 0 0 var(--ds-night); }
body.ds .c24-cta__geo { background: var(--ds-brand); color: #fff; box-shadow: none; border-radius: 8px; font-size: 15px; min-height: 44px; }
body.ds .c24-cta__geo:hover { background: #0d6c59; }
body.ds .c24-cta__map { border-color: var(--ds-brand); color: var(--ds-brand); background: #fff; border-radius: 8px; font-size: 15px; min-height: 44px; }
body.ds .c24-cta__map:hover { background: #f5fbf9; }
body.ds .c24-pin { background: #fff; box-shadow: inset 0 0 0 4px #fff; }
body.ds .c24-geo-note { color: var(--ds-night); }
body.ds .c24-stats li { background: #fff; color: var(--ds-ink); border: 0; border-radius: 10px; }
body.ds .c24-stats b { color: var(--ds-ink); }
body.ds .c24-stats span { color: var(--ds-grey); }
body.ds .c24-hero small,
body.ds .c24-hero .c24-updated { color: var(--ds-grey); }

/* Журнал */
body.ds .journal-hub__hero,
body.ds .journal-hero { background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-r); box-shadow: none; }
body.ds .journal-card { border: 1px solid var(--ds-line); border-radius: var(--ds-r); box-shadow: none; }
body.ds .journal-hub__rubric { font-size: 13px; }

/* Поиск: скрытая плашка скидки (opacity:0) уезжала за экран */
body.ds .rec__item--sale:not(.active) { display: none; }

/* =====================================================================
   Десктоп (≥ 901px): сетки карточек, контейнер, секции
   ===================================================================== */
@media (min-width: 901px) {
	body.ds { padding-bottom: 0; }
	body.ds section.citylist,
	body.ds section.citywith,
	body.ds section.city,
	body.ds section.promo,
	body.ds section.contact,
	body.ds section.review { padding: 20px 0 22px; }
	body.ds .ds-sec { margin: 16px 0; }
	body.ds .ds-home { padding-top: 16px; }
	body.ds .ds-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	body.ds .ds-deals__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	body.ds .ds-hub__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	body.ds .rec__item:not(.na_tri_bloka),
	body.ds #last_good { width: calc(25% - 6px); }
	body.ds .rec__content .rec__item { width: calc(20% - 7px); }
	body.ds .rec__item.na_tri_bloka { width: calc(25% - 6px) !important; }
	body.ds .rec__item--img--inner { height: 150px; }
	body.ds .rec__item--img { max-height: 150px; }
	body.ds .city__value { width: calc(25% - 12px); }
	body.ds .city__wrapper--item { width: 40px; }
	body.ds .che-codes .citylist__inner > *,
	body.ds .ds-hub .citylist__inner > * { max-width: 100%; }
	body.ds .che-net__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body.ds .footer { padding-top: 24px; }

	/* страница товара: фото слева, данные справа */
	body.ds .tovar__content { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
	body.ds .tovar__img--inner { height: 340px; margin: 0; }
	body.ds .tovar__img { max-height: 320px; }
	body.ds .che-sticky-cta { display: none; }

	/* страница аптеки: данные слева, карта справа */
	body.ds .address__content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
	body.ds .address__map,
	body.ds #map { height: 360px !important; margin: 0; }
	body.ds .ymp-contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* Общее: срезанные карточки списков, дубль категорий в сайдбаре сети */
body.ds .ds-cut { display: none !important; }
body.ds .citylist__inner:has(.na_tri_bloka) .filter__inner { display: none; }

/* Каталог сети с фильтром слева: карточки заполняют правую колонку (3 в ряд; пустышки-распорки между карточками занимают gap) */
@media (min-width: 901px) {
	body.ds .filter__inner ~ .citywith__wrapper .citywith__item--inner.active .rec__item.itemfor3 { width: calc(33.333% - 6px); max-width: none; }
}
