/*
 * Базовые токены и общие классы темы. Подключается первым.
 */

:root {
	--cm-orange: #ff6501;
	--cm-orange-soft: rgb(255 101 1 / 12%);
	--cm-title: #333;
	--cm-text: #777;
	--cm-muted: #bbb;
	--cm-dark-grey: #555;
	--cm-black: #111;
	--cm-bg-soft: #f4f5f7;
	--cm-bg-brands: #f9f9f9;
	--cm-line: #e5e5e5;
	--cm-radius: 12px;
	--cm-shadow: 0 12px 32px rgb(0 0 0 / 12%);
	/* Системные шрифты: ноль запросов, кириллица и латиница одного начертания. */
	--cm-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--cm-font-title: var(--cm-font);
}

/* Шрифт и цвет основного содержимого. */
.cm-main,
.cm-main :is(button, input) {
	font-family: var(--cm-font);
}

.cm-main {
	color: var(--cm-title);
}

a:any-link,
a:hover,
a:focus,
a:active {
	text-decoration: none;
}

.cm-container {
	width: 100%;
	max-width: 1222px;
	margin-inline: auto;
	padding-inline: 15px;
	box-sizing: border-box;
}

.cm-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.cm-icon {
	display: inline-block;
	flex: 0 0 auto;
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	vertical-align: middle;
}

/* Кнопка: оранжевая «таблетка»; --line — контурная. */
.cm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex: 0 0 auto;
	padding: 9px 18px;
	border: 1.5px solid var(--cm-orange);
	border-radius: 999px;
	background: var(--cm-orange);
	color: #fff;
	font-family: var(--cm-font);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.cm-btn:hover,
.cm-btn:focus-visible {
	border-color: var(--cm-dark-grey);
	background: var(--cm-dark-grey);
	color: #fff;
}

.cm-btn--line {
	background: transparent;
	color: var(--cm-orange);
}

/* Заголовок секции: надпись, заголовок, подводка. */
.cm-sechead {
	max-width: 760px;
	margin: 0 auto clamp(24px, 3.5vw, 40px);
	text-align: center;
}

.cm-sechead__eyebrow {
	display: block;
	margin-bottom: 8px;
	color: var(--cm-orange);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.cm-sechead__title {
	margin: 0;
	color: var(--cm-black);
	font-size: clamp(26px, 3.2vw, 36px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}

.cm-sechead__lead {
	margin: 12px 0 0;
	color: var(--cm-text);
	font-size: clamp(14px, 1.6vw, 16px);
	line-height: 1.55;
}

/* Секции страницы. */
.cm-section {
	padding-block: clamp(36px, 6vw, 72px);
}

.cm-section--soft {
	background: var(--cm-bg-soft);
}

.cm-section__more {
	margin: clamp(20px, 3vw, 32px) 0 0;
	text-align: center;
}

.cm-card__action.is-full,
.cm-product__tool.is-full {
	opacity: 0.4;
}

.cm-list-note {
	position: fixed;
	z-index: 50;
	right: 16px;
	bottom: 24px;
	left: 16px;
	max-width: 420px;
	margin: 0 auto;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--cm-black);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
}

@media (max-width: 1024px) {
	.cm-list-note {
		bottom: calc(76px + env(safe-area-inset-bottom, 0px));
	}
}

/* Знак белорусского рубля. Белая буква в SVG даёт и яркость, и непрозрачность маски. */
.cm-byn {
	display: inline-block;
	width: 0.72em;
	height: 0.78em;
	margin-left: 0.16em;
	vertical-align: -0.08em;
	background: currentColor;
	-webkit-mask: url("../img/byn.svg") center / contain no-repeat;
	mask: url("../img/byn.svg") center / contain no-repeat;
}