/**
 * Общие компоненты Student24 (весь сайт).
 * Токены: var(--s24-*) из s24-tokens.css.
 * Системные плашки Cotonti: div.error / div.warning / div.done / div.help — см. блок у .s24-alert-full.
 * Legacy mainblock* bridge — в конце файла для обратной совместимости с _alt/_bot.
 */

/* ========== Заголовки и утилиты ========== */

.s24-page-title {
	font-size: var(--s24-heading-md);
	line-height: var(--s24-lh-tight);
	font-weight: 600;
	color: var(--s24-ink);
	margin: 0 0 var(--s24-space-5);
}

.s24-well--center { text-align: center; }

.s24-well-promo__title {
	font-weight: 700;
	margin-bottom: 0.625rem;
	font-size: var(--s24-body);
	line-height: var(--s24-lh-tight);
	margin-top: 0;
	color: var(--s24-text);
}

.s24-well-promo__lead {
	margin-bottom: var(--s24-space-3);
	color: var(--s24-text-muted);
	font-size: var(--s24-caption);
	line-height: var(--s24-lh-base);
}

.s24-filter-caps {
	margin-bottom: var(--s24-space-1);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--s24-text-muted);
	text-transform: uppercase;
}

/* ========== Боковое меню: well + .s24-sidebar-nav (проекты, магазин, useragreement, …) ========== */

.s24-sidebar-nav {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	gap: 0;
}

.s24-sidebar-nav__link {
	display: block;
	padding: var(--s24-space-2) var(--s24-space-4);
	font-size: var(--s24-caption);
	font-weight: 400;
	color: var(--s24-text);
	text-decoration: none;
	border-left: 3px solid transparent;
	border-radius: 0 var(--s24-radius-sm) var(--s24-radius-sm) 0;
	transition:
		background var(--s24-transition-fast),
		color var(--s24-transition-fast),
		border-color var(--s24-transition-fast);
}

.s24-sidebar-nav__link:hover,
.s24-sidebar-nav__link:focus-visible {
	background: var(--s24-surface-alt);
	color: var(--s24-primary);
	outline: none;
	text-decoration: none;
}

.s24-sidebar-nav__link--active {
	font-weight: 600;
	color: var(--s24-primary);
	border-left-color: var(--s24-primary);
	background: var(--s24-surface-alt);
}

.s24-sidebar-nav__link--new {
	color: var(--s24-danger);
}

.s24-sidebar-nav__sep {
	flex-shrink: 0;
	height: 1px;
	margin: var(--s24-space-2) 0;
	background: var(--s24-border);
}

/* ========== Юридические / длинные статьи: .s24-legal-prose + __title / __body / __footer ========== */

.s24-legal-prose::after {
	content: "";
	display: table;
	clear: both;
}

.s24-legal-prose .s24-legal-prose__title {
	width: auto;
	max-width: none;
	margin: 0 0 var(--s24-space-4);
	padding: 0;
	font-size: var(--s24-heading-sm);
	font-weight: 700;
	line-height: 1.3;
	color: var(--s24-ink);
	box-sizing: border-box;
}

/* Заголовок статьи на странице соглашений — h2.s24-legal-prose__title (единственный h1 страницы — .s24-page-title в шаблоне) */
.s24-useragreement-page .s24-legal-prose > h2.s24-legal-prose__title {
	margin: 0 0 var(--s24-space-8);
	font-size: var(--s24-heading-lg);
	line-height: var(--s24-lh-tight);
}

.s24-legal-prose .s24-legal-prose__body {
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
	text-align: left;
	box-sizing: border-box;
	background: transparent;
	border: none;
	box-shadow: none;
}

.s24-legal-prose .s24-legal-prose__body h2 {
	margin: var(--s24-space-6) 0 var(--s24-space-3);
	padding: 0 0 var(--s24-space-2);
	font-size: var(--s24-heading-sm);
	font-weight: 700;
	line-height: 1.3;
	color: var(--s24-ink);
	border: none;
	border-bottom: 1px solid var(--s24-border);
	background: transparent;
	box-shadow: none;
}

.s24-legal-prose .s24-legal-prose__body h2:first-child {
	margin-top: 0;
}

.s24-legal-prose .s24-legal-prose__body h3 {
	margin: var(--s24-space-5) 0 var(--s24-space-2);
	font-size: var(--s24-body);
	font-weight: 700;
	line-height: 1.35;
	color: var(--s24-ink);
}

.s24-legal-prose .s24-legal-prose__body h4 {
	margin: var(--s24-space-5) 0 var(--s24-space-2);
	font-size: var(--s24-body);
	font-weight: 600;
	line-height: 1.35;
	color: var(--s24-ink);
}

.s24-legal-prose .s24-legal-prose__body h4[style] {
	margin-top: var(--s24-space-5) !important;
	margin-bottom: var(--s24-space-2) !important;
}

.s24-legal-prose .s24-legal-prose__body h5 {
	margin: var(--s24-space-4) 0 var(--s24-space-2);
	font-size: var(--s24-caption);
	font-weight: 600;
	line-height: 1.4;
	color: var(--s24-text-muted);
}

.s24-legal-prose .s24-legal-prose__body h5[style] {
	margin-top: var(--s24-space-4) !important;
	margin-bottom: var(--s24-space-2) !important;
	font-size: var(--s24-caption) !important;
	line-height: 1.4 !important;
	text-align: right !important;
}

.s24-legal-prose .s24-legal-prose__body p {
	margin: 0 0 var(--s24-space-3);
	font-size: var(--s24-body-sm);
	line-height: var(--s24-lh-base);
	color: var(--s24-text);
	text-indent: 0;
}

.s24-legal-prose .s24-legal-prose__body ul,
.s24-legal-prose .s24-legal-prose__body ol {
	margin: 0 0 var(--s24-space-4);
	padding-left: 1.35rem;
	font-size: var(--s24-body-sm);
	line-height: var(--s24-lh-base);
	color: var(--s24-text);
}

.s24-legal-prose .s24-legal-prose__body ul[style],
.s24-legal-prose .s24-legal-prose__body ol[style] {
	margin-left: 0 !important;
}

.s24-legal-prose .s24-legal-prose__body li {
	margin-bottom: var(--s24-space-2);
}

.s24-legal-prose .s24-legal-prose__body li:last-child {
	margin-bottom: 0;
}

.s24-legal-prose .s24-legal-prose__body a {
	color: var(--s24-primary);
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.s24-legal-prose .s24-legal-prose__body a:hover,
.s24-legal-prose .s24-legal-prose__body a:focus-visible {
	color: var(--s24-primary-hover);
}

.s24-legal-prose .s24-legal-prose__body strong,
.s24-legal-prose .s24-legal-prose__body b {
	font-weight: 600;
	color: var(--s24-ink);
}

.s24-legal-prose .s24-legal-prose__body hr {
	margin: var(--s24-space-5) 0;
	border: none;
	border-top: 1px solid var(--s24-border);
}

.s24-legal-prose .s24-legal-prose__body table {
	width: 100%;
	margin: 0 0 var(--s24-space-4);
	border-collapse: collapse;
	font-size: var(--s24-caption);
	line-height: 1.5;
}

.s24-legal-prose .s24-legal-prose__body table th,
.s24-legal-prose .s24-legal-prose__body table td {
	padding: var(--s24-space-2) var(--s24-space-3);
	border: 1px solid var(--s24-border);
	text-align: left;
	vertical-align: top;
}

.s24-legal-prose .s24-legal-prose__body table th {
	font-weight: 600;
	background: var(--s24-surface-alt);
	color: var(--s24-ink);
}

.s24-legal-prose .s24-legal-prose__footer {
	margin-top: var(--s24-space-5);
	padding-top: var(--s24-space-4);
	border-top: 1px solid var(--s24-border);
	font-size: var(--s24-caption);
	line-height: var(--s24-lh-base);
	color: var(--s24-text-secondary);
}

.s24-legal-prose .s24-legal-prose__footer p {
	margin: 0 0 var(--s24-space-2);
	text-indent: 0;
}

@media (max-width: 640px) {
	.s24-legal-prose .s24-legal-prose__body h2 {
		font-size: var(--s24-body);
		margin-top: var(--s24-space-5);
	}

	.s24-legal-prose .s24-legal-prose__title {
		font-size: var(--s24-body);
	}

	.s24-useragreement-page .s24-legal-prose > h2.s24-legal-prose__title {
		font-size: var(--s24-body);
	}
}

/* Статусы проекта */
.s24-status--muted   { color: var(--s24-text); opacity: 0.75; }
.s24-status--info    { color: var(--s24-info); }
.s24-status--success { display: inline-block; min-width: 150px; color: var(--s24-success); }
.s24-status--danger  { color: var(--s24-danger-soft); }

/* Промо-бейдж (главная / проекты; index.bot — тот же вид) */
.s24-badge-promo,
.s24-index-badge-promo {
	display: inline;
	background: var(--s24-badge-bg);
	color: var(--s24-badge-text);
	font-size: 0.875rem;
	line-height: 1.45;
	font-weight: 500;
	padding: 2px var(--s24-space-2);
	border-radius: var(--s24-radius-sm);
}

/* Утилиты отступов / выравнивания / видимости — см. s24-utilities.css (s24-u-*).
   Старые .s24-mt/mb/ml/mr/m/p(x|y|t|b|l|r)-*, .s24-text-*, .s24-hidden удалены. */

/* Утилиты display / position / width — см. s24-utilities.css (s24-u-*). */

/* ========== Секционные заголовки ========== */

.s24-section-title {
	font-size: var(--s24-heading-2xl);
	font-weight: 800;
	color: var(--s24-ink);
	text-align: center;
	margin: 0 0 var(--s24-space-section-title-mb) 0;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

/* ========== Кнопки (s24-btn) ========== */

.s24-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--s24-space-3) var(--s24-space-6);
	min-height: 44px;
	box-sizing: border-box;
	border-radius: var(--s24-radius-lg);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: 2px solid transparent;
	transition: box-shadow var(--s24-transition-fast), background var(--s24-transition-fast), color var(--s24-transition-fast), opacity var(--s24-transition-fast);
	white-space: nowrap;
	line-height: 1.35;
	letter-spacing: 0.01em;
	font-family: var(--s24-font-family);
}

.s24-btn--accent {
	background: var(--s24-accent);
	color: #fff;
	box-shadow: 0 4px 14px rgba(22, 163, 74, 0.22);
}

.s24-btn--accent:hover {
	background: var(--s24-accent-hover);
	box-shadow: 0 6px 20px rgba(22, 163, 74, 0.28);
}

.s24-btn--primary {
	background: var(--s24-primary);
	color: #fff;
	box-shadow: var(--s24-shadow-soft);
}

.s24-btn--primary:hover {
	background: var(--s24-primary-hover);
	box-shadow: none;
}

.s24-btn--outline {
	background: transparent;
	color: var(--s24-primary);
	border-color: var(--s24-primary);
	box-shadow: none;
}

.s24-btn--outline:hover {
	background: var(--s24-primary);
	color: #fff;
}

.s24-btn--ghost {
	background: transparent;
	color: var(--s24-primary);
	box-shadow: none;
}

.s24-btn--ghost:hover {
	background: var(--s24-surface-alt);
}

/* Как ghost, но семантика «опасное действие» (удалить и т.п.) */
.s24-btn--ghost-danger {
	background: transparent;
	color: var(--s24-danger);
	box-shadow: none;
}

.s24-btn--ghost-danger:hover {
	background: var(--s24-surface-alt);
	color: var(--s24-danger);
}

.s24-btn--white {
	background: #fff;
	color: var(--s24-primary);
	border-width: 1px;
	border-color: rgba(15, 23, 42, 0.08);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.s24-btn--white:hover {
	background: #f8fafc;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}

.s24-btn--danger {
	background: var(--s24-danger);
	color: #fff;
	border-color: var(--s24-danger);
	box-shadow: 0 6px 20px rgba(220, 38, 38, 0.22);
}

.s24-btn--danger:hover {
	background: color-mix(in srgb, var(--s24-danger) 88%, #000);
	box-shadow: none;
}

/* Danger-outline: в покое — идентична соседним кнопкам, только ховер — красноватый.
   (Внутри .s24-action-stack обрабатывается своей секцией ниже.) */
.s24-btn.s24-btn--danger-outline:hover {
	background: color-mix(in srgb, var(--s24-danger) 8%, var(--s24-surface));
	color: var(--s24-danger);
	border-color: color-mix(in srgb, var(--s24-danger) 40%, var(--s24-border));
}

/* Primary-outline: по аналогии с danger-outline — в покое обычная кнопка,
   только ховер — синеватый. Семантически — «мягкий» акцент для кнопок вроде
   «Редактировать» в action-stack'ах (деструктив красит --danger-outline,
   нейтральное редактирование — --primary-outline). */
.s24-btn.s24-btn--primary-outline:hover {
	background: color-mix(in srgb, var(--s24-primary) 8%, var(--s24-surface));
	color: var(--s24-primary);
	border-color: color-mix(in srgb, var(--s24-primary) 40%, var(--s24-border));
}

/* Success-outline: то же по логике, что и primary-/danger-outline (в покое
   обычная кнопка, цветной — только при hover), но для позитивных действий:
   «Принять», «На гарантию», «Выполнено». Внутри offer-карточки в аукционе
   они показываются вариантом --soft-success (сразу залитые цветом), а при
   переносе в .s24-action-stack меняются на --success-outline — соседи
   там тоже в outline-стиле, чтобы все кнопки выглядели единообразно и
   подсвечивались семантически только на наведении. */
.s24-btn.s24-btn--success-outline:hover {
	background: color-mix(in srgb, var(--s24-success) 8%, var(--s24-surface));
	color: var(--s24-success);
	border-color: color-mix(in srgb, var(--s24-success) 40%, var(--s24-border));
}

/* Success (solid): залитая зелёная — для акцентной главной позитивной кнопки
   (например, «Исполнитель» в .offer_buttons). Единственная solid среди
   outline-собратьев, чтобы взгляд сразу находил главное действие. */
.s24-btn.s24-btn--success {
	background: var(--s24-success);
	color: #fff;
	border-color: var(--s24-success);
	box-shadow: var(--s24-shadow-soft);
}

.s24-btn.s24-btn--success:hover {
	background: color-mix(in srgb, var(--s24-success) 88%, #000);
	color: #fff;
	border-color: color-mix(in srgb, var(--s24-success) 88%, #000);
	box-shadow: none;
}

/* Muted-outline: для пассивных/нейтральных действий вроде «Скрыть». В покое
   текст слегка приглушён (secondary-ink), на hover — серый фон и обычный
   ink. Семантический противовес «Удалить» (красный) — «Скрыть» не удаляет,
   а лишь убирает из выдачи, поэтому визуально нейтральнее. */
.s24-btn.s24-btn--muted-outline {
	color: var(--s24-text);
}

.s24-btn.s24-btn--muted-outline:hover {
	background: color-mix(in srgb, var(--s24-ink) 6%, var(--s24-surface));
	color: var(--s24-ink);
	border-color: color-mix(in srgb, var(--s24-ink) 25%, var(--s24-border));
}

.s24-btn--full  { width: 100%; }
/* Горизонталь: clamp — на узком экране не раздувается за счёт фикс. 80px и т.п. */
.s24-btn--lg {
	padding: 14px clamp(var(--s24-space-4), 10vw, 5rem);
	min-height: 52px;
	font-size: 1rem;
	max-width: 100%;
}
.s24-btn--sm    { padding: 6px 14px; min-height: 32px; font-size: 0.8125rem; }
.s24-btn--pill  { border-radius: 9999px; }

/* Компактный размер: применяется либо явным модификатором (`.s24-btn--compact`,
   используется в `confirmmsg` и прочих внешних диалогах), либо автоматически
   для любых `.s24-btn` внутри `.modal .modal-body` / `.modal .modal-footer` —
   чтобы action-кнопки в Bootstrap-модалках не выглядели «пузатыми».
   В `confirmmsg` кнопки также с `--compact` (`.s24-confirm` не внутри `.modal`).
   Цвет задают модификаторы soft/primary/…, здесь только метрики. */
.s24-btn--compact,
.modal .modal-body .s24-btn,
.modal .modal-footer .s24-btn {
	padding: 8px 18px;
	min-height: 36px;
	font-size: 0.8125rem;
	line-height: 1.25;
	box-shadow: none;
}

.s24-btn--link {
	background: transparent;
	color: var(--s24-primary);
	box-shadow: none;
	padding: 0;
	min-height: auto;
	font-weight: 500;
}
.s24-btn--link:hover {
	text-decoration: underline;
	background: transparent;
}

/* Soft-семейство: в покое — прозрачный фон с цветными бордером/текстом
   (пилюля 9999px), на hover — заливается соответствующим цветом.
   Используется в confirm-диалогах, offer-buttons и других местах, где
   нужна «мягкая» outline-кнопка. CTA в Bootstrap-модалках остаются
   обычными solid (.s24-btn--primary / --danger) — их мы не трогаем. */
.s24-btn--soft {
	background: transparent;
	color: var(--s24-primary);
	border: 1.5px solid var(--s24-primary);
	border-radius: 9999px;
	box-shadow: none;
	text-shadow: none;
}

.s24-btn--soft:hover {
	background: var(--s24-primary);
	color: #fff;
}

.s24-btn--soft-danger {
	background: transparent;
	color: var(--s24-danger);
	border: 1.5px solid var(--s24-danger);
	border-radius: 9999px;
	box-shadow: none;
	text-shadow: none;
}

.s24-btn--soft-danger:hover {
	background: var(--s24-danger);
	color: #fff;
}

/* Soft-success — зелёный вариант .s24-btn--soft/--soft-danger для
   положительных outline-кнопок («Принять», «Выполнено», «На гарантию»).
   В покое: прозрачный фон + зелёный текст/бордер; hover — заливка. */
.s24-btn--soft-success {
	background: transparent;
	color: var(--s24-success);
	border: 1.5px solid var(--s24-success);
	border-radius: 9999px;
	box-shadow: none;
	text-shadow: none;
}

.s24-btn--soft-success:hover {
	background: var(--s24-success);
	color: #fff;
}

/* Soft-muted — нейтральный серый soft для «Отмена» в confirm-диалогах и
   подобных ситуаций, где нужна «закрывающая» кнопка без цветовой
   семантики. Совпадает по форме с .s24-btn--soft (пилюля + hover-fill),
   но цвет — нейтральный серый. */
.s24-btn--soft-muted {
	background: transparent;
	color: var(--s24-text-muted);
	border: 1.5px solid var(--s24-border-strong);
	border-radius: 9999px;
	box-shadow: none;
	text-shadow: none;
}

.s24-btn--soft-muted:hover {
	background: var(--s24-surface-alt);
	color: var(--s24-ink);
	border-color: var(--s24-border-strong);
}

.s24-btn--xs {
	padding: 4px 14px;
	min-height: auto;
	font-size: 0.8125rem;
	font-weight: 500;
}

/* ──────────────────────────────────────────────────────────────────────────
   .s24-btn--chip — «мягкая» чип-кнопка: без жёсткого бордера в покое,
   тонкая светлая рамка (легко сливается с фоном), нежирный текст, иконка
   слева.

   Цвет вынесен в отдельный слой `.s24-btn-color--*`:
     class="s24-btn--chip s24-btn-color--primary|danger|success|warning|muted"
   Это позволяет переиспользовать одну и ту же «форму» кнопки с разными
   цветами без N*M дублирования модификаторов.

   Старые `.s24-btn--chip-*` оставлены как алиасы (обратная совместимость).
   Иконки выбираются классами-модификаторами .s24-btn--ic-<name>
   (edit/delete/refresh/check/x/flag/skip/shield/rework/message/ban/alert).
   ────────────────────────────────────────────────────────────────────────── */

.s24-btn--chip {
	/* По умолчанию chip = muted */
	--s24-btn-color-fg: var(--s24-text-muted);
	--s24-btn-color-bg-hover: var(--s24-surface-alt);
	--s24-btn-color-fg-hover: var(--s24-ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--s24-space-2);
	margin: 0;
	padding: 6px 14px 6px 12px;
	min-height: 34px;
	border-radius: 9999px;
	background: var(--s24-surface);
	color: var(--s24-btn-color-fg);
	border: 1px solid var(--s24-border);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0;
	box-shadow: none;
	text-shadow: none;
	background-image: none;
	border: 1.5px solid;
	transition:
		background var(--s24-transition-fast),
		color var(--s24-transition-fast);
}

.s24-btn--chip:hover {
	background: var(--s24-btn-color-bg-hover);
	color: var(--s24-btn-color-fg-hover);
}

/* Иконка-слот: 16×16, цвет = currentColor через mask.
   mask-image задаётся модификатором .s24-btn--ic-*. */
.s24-btn--chip::before {
	content: '';
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

/* Если иконка не задана (нет .s24-btn--ic-*), слот свернуть. */
.s24-btn--chip:not([class*="s24-btn--ic-"])::before {
	display: none;
}

/* ── Цветовые варианты (пилот: chip) ───────────────────────────────────── */

.s24-btn-color--primary,
.s24-btn--chip-primary {
	--s24-btn-color-fg: var(--s24-primary);
	--s24-btn-color-bg-hover: color-mix(in srgb, var(--s24-primary) 10%, var(--s24-surface));
	--s24-btn-color-fg-hover: var(--s24-primary-hover);
}

.s24-btn-color--danger,
.s24-btn--chip-danger {
	--s24-btn-color-fg: var(--s24-danger);
	--s24-btn-color-bg-hover: color-mix(in srgb, var(--s24-danger) 10%, var(--s24-surface));
	--s24-btn-color-fg-hover: var(--s24-danger);
}

.s24-btn-color--success,
.s24-btn--chip-success {
	--s24-btn-color-fg: var(--s24-success);
	--s24-btn-color-bg-hover: color-mix(in srgb, var(--s24-success) 12%, var(--s24-surface));
	--s24-btn-color-fg-hover: var(--s24-success);
}

.s24-btn-color--warning,
.s24-btn--chip-warning {
	--s24-btn-color-fg: var(--s24-warning-ink);
	--s24-btn-color-bg-hover: color-mix(in srgb, var(--s24-warning-ink) 14%, var(--s24-surface));
	--s24-btn-color-fg-hover: var(--s24-warning-ink-hover);
}

.s24-btn-color--muted,
.s24-btn--chip-muted {
	--s24-btn-color-fg: var(--s24-text-muted);
	--s24-btn-color-bg-hover: var(--s24-surface-alt);
	--s24-btn-color-fg-hover: var(--s24-ink);
}

/* ── Иконки (feather-style, stroke=2, 24×24 viewBox) ─────────────────── */

.s24-btn--ic-edit::before {
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 20h9'/><path d='M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z'/></svg>");
	mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 20h9'/><path d='M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z'/></svg>");
}

.s24-btn--ic-delete::before {
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 6 5 6 21 6'/><path d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/><path d='M10 11v6'/><path d='M14 11v6'/><path d='M9 6V4a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2'/></svg>");
	mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 6 5 6 21 6'/><path d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/><path d='M10 11v6'/><path d='M14 11v6'/><path d='M9 6V4a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2'/></svg>");
}

.s24-btn--ic-refresh::before {
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='23 4 23 10 17 10'/><polyline points='1 20 1 14 7 14'/><path d='M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15'/></svg>");
	mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='23 4 23 10 17 10'/><polyline points='1 20 1 14 7 14'/><path d='M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15'/></svg>");
}

.s24-btn--ic-check::before {
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/><polyline points='22 4 12 14.01 9 11.01'/></svg>");
	mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/><polyline points='22 4 12 14.01 9 11.01'/></svg>");
}

.s24-btn--ic-x::before {
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='15' y1='9' x2='9' y2='15'/><line x1='9' y1='9' x2='15' y2='15'/></svg>");
	mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='15' y1='9' x2='9' y2='15'/><line x1='9' y1='9' x2='15' y2='15'/></svg>");
}

.s24-btn--ic-flag::before {
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z'/><line x1='4' y1='22' x2='4' y2='15'/></svg>");
	mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z'/><line x1='4' y1='22' x2='4' y2='15'/></svg>");
}

.s24-btn--ic-skip::before {
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polygon points='5 4 15 12 5 20 5 4'/><line x1='19' y1='5' x2='19' y2='19'/></svg>");
	mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polygon points='5 4 15 12 5 20 5 4'/><line x1='19' y1='5' x2='19' y2='19'/></svg>");
}

.s24-btn--ic-shield::before {
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/></svg>");
	mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/></svg>");
}

.s24-btn--ic-rework::before {
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='1 4 1 10 7 10'/><path d='M3.51 15a9 9 0 1 0 2.13-9.36L1 10'/></svg>");
	mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='1 4 1 10 7 10'/><path d='M3.51 15a9 9 0 1 0 2.13-9.36L1 10'/></svg>");
}

.s24-btn--ic-message::before {
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/></svg>");
	mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/></svg>");
}

.s24-btn--ic-ban::before {
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='4.93' y1='4.93' x2='19.07' y2='19.07'/></svg>");
	mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='4.93' y1='4.93' x2='19.07' y2='19.07'/></svg>");
}

.s24-btn--ic-alert::before {
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polygon points='10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/><line x1='12' y1='9' x2='12' y2='13'/><line x1='12' y1='17' x2='12.01' y2='17'/></svg>");
	mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polygon points='10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/><line x1='12' y1='9' x2='12' y2='13'/><line x1='12' y1='17' x2='12.01' y2='17'/></svg>");
}

.s24-btn:active {
	opacity: 0.85;
}

/* ========== Legacy .btn bridge ==========
   Полный зеркальный набор к `.s24-btn` / `.s24-btn--*`. Задача — чтобы
   `<a class="btn btn-primary">` и `<a class="s24-btn s24-btn--primary">` рендерились
   идентично (`tpl-no-legacy.mdc` §«Что остаётся»: бриджи — safety-net).
   Размещён здесь, а не в `s24-base.css`, по `css-architecture.mdc` §«Владение стилями»:
   все кнопки — только в `s24-components.css`. */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--s24-space-3) var(--s24-space-6);
	min-height: 44px;
	box-sizing: border-box;
	border-radius: var(--s24-radius-lg);
	font-family: var(--s24-font-family);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0.01em;
	text-align: center;
	text-decoration: none;
	text-shadow: none;
	vertical-align: middle;
	cursor: pointer;
	white-space: nowrap;
	margin: 0;
	/* Нейтральный «дефолт»: у `.s24-btn` граница прозрачная и фон — нет (всегда нужен модификатор),
	   у `.btn` должна быть видимая подложка «из коробки» — так было в legacy Bootstrap. */
	background: var(--s24-surface);
	color: var(--s24-ink);
	border: 2px solid var(--s24-border-strong);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
	transition:
		box-shadow var(--s24-transition-fast),
		background var(--s24-transition-fast),
		color var(--s24-transition-fast),
		border-color var(--s24-transition-fast),
		opacity var(--s24-transition-fast);
}

.btn:hover {
	background: var(--s24-surface-alt);
	color: var(--s24-ink);
	text-decoration: none;
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.btn:active,
.btn.active {
	opacity: 0.85;
}

.btn.disabled,
.btn[disabled] {
	cursor: not-allowed;
	opacity: 0.65;
	pointer-events: none;
}

/* Цветные варианты — точные двойники `.s24-btn--primary / --accent / --danger / --link` */

.btn-primary {
	background: var(--s24-primary);
	color: #fff;
	border-color: var(--s24-primary);
	box-shadow: var(--s24-shadow-soft);
}

.btn-primary:hover {
	background: var(--s24-primary-hover);
	border-color: var(--s24-primary-hover);
	color: #fff;
	box-shadow: none;
}

.btn-success {
	background: var(--s24-accent);
	color: #fff;
	border-color: var(--s24-accent);
	box-shadow: 0 4px 14px rgba(22, 163, 74, 0.22);
}

.btn-success:hover {
	background: var(--s24-accent-hover);
	border-color: var(--s24-accent-hover);
	color: #fff;
	box-shadow: 0 6px 20px rgba(22, 163, 74, 0.28);
}

.btn-danger {
	background: var(--s24-danger);
	color: #fff;
	border-color: var(--s24-danger);
	box-shadow: 0 6px 20px rgba(220, 38, 38, 0.22);
}

.btn-danger:hover {
	background: color-mix(in srgb, var(--s24-danger) 88%, #000);
	border-color: color-mix(in srgb, var(--s24-danger) 88%, #000);
	color: #fff;
	box-shadow: none;
}

/* Редкие легаси-варианты Bootstrap 2 — приводим к primary, чтобы не вводить отдельных токенов */
.btn-info,
.btn-warning,
.btn-inverse {
	background: var(--s24-primary);
	color: #fff;
	border-color: var(--s24-primary);
	box-shadow: var(--s24-shadow-soft);
}

.btn-info:hover,
.btn-warning:hover,
.btn-inverse:hover {
	background: var(--s24-primary-hover);
	border-color: var(--s24-primary-hover);
	color: #fff;
	box-shadow: none;
}

.btn-link {
	padding: 0;
	min-height: auto;
	background: transparent;
	border-color: transparent;
	color: var(--s24-primary);
	box-shadow: none;
	font-weight: 500;
}

.btn-link:hover {
	background: transparent;
	border-color: transparent;
	color: var(--s24-primary-hover);
	text-decoration: underline;
	box-shadow: none;
}

/* Размеры — соответствуют `.s24-btn--lg` / `.s24-btn--sm` / `.s24-btn--xs` + `--full` */

.btn-large {
	padding: 14px clamp(var(--s24-space-4), 10vw, 5rem);
	min-height: 52px;
	font-size: 1rem;
	max-width: 100%;
}

/* `btn-superlarge` исторически = крупная + на всю ширину (боковые CTA). */
.btn-superlarge {
	padding: 14px clamp(var(--s24-space-4), 10vw, 5rem);
	min-height: 52px;
	font-size: 1rem;
	width: 100%;
	max-width: 100%;
}

.btn-small {
	padding: 6px 14px;
	min-height: 32px;
	font-size: 0.8125rem;
}

.btn-mini {
	padding: 4px 14px;
	min-height: auto;
	font-size: 0.8125rem;
	font-weight: 500;
}

.btn-block {
	display: flex;
	width: 100%;
}

/* ========== Формы: нижний блок с главной кнопкой (баланс, профиль, заказ, СБР / market order) ========== */

.s24-form-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--s24-space-3);
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	/* Единый зазор от формы/секции над кнопкой; нижний отступ — для воздуха под блоком */
	margin: var(--s24-space-6) 0 var(--s24-space-6);
	padding: 0;
}

/* Не дублировать отступ: секция сразу над блоком кнопки не даёт свой margin-bottom */
.s24-settings-section:has(+ .s24-form-actions),
.s24-mo-section:has(+ .s24-form-actions) {
	margin-bottom: 0;
}

.s24-form-actions > .s24-btn,
.s24-form-actions > button.s24-btn {
	max-width: 100%;
	box-sizing: border-box;
}

.s24-form-actions > .btn {
	max-width: 100%;
	box-sizing: border-box;
}

/* Главная кнопка подвала: s24-btn + --lg + --primary (центр — .s24-form-actions) */
.s24-form-actions > .s24-btn,
.s24-form-actions > button.s24-btn {
	font-size: var(--s24-body);
	font-weight: 600;
	line-height: var(--s24-lh-tight);
	border-radius: var(--s24-radius-lg);
}

.s24-form-actions > .s24-btn--lg {
	font-size: var(--s24-body);
	font-weight: 600;
	padding-block: var(--s24-space-3);
	min-height: calc(var(--s24-space-6) + var(--s24-space-7));
}

/* Legacy bootstrap .btn в подвале (если остались) */
.s24-form-actions > .btn {
	font-size: var(--s24-body);
	font-weight: 600;
	line-height: var(--s24-lh-tight);
	border-radius: var(--s24-radius-lg);
	text-shadow: none;
}

.s24-form-actions--end {
	justify-content: flex-end;
	margin-bottom: 0;
}

.s24-form-actions--start {
	justify-content: flex-start;
}

/* Кнопка + второй ряд (юридический текст и т.п.) */
.s24-form-actions--stack {
	flex-direction: column;
	align-items: stretch;
	text-align: center;
}

.s24-form-actions--stack > .s24-btn,
.s24-form-actions--stack > .btn {
	align-self: center;
}

@media (max-width: 640px) {
	.s24-form-actions--end {
		justify-content: center;
	}

	.s24-form-actions .s24-btn,
	.s24-form-actions > .btn {
		width: 100%;
		max-width: 100%;
	}

	.s24-form-actions--stack > .s24-btn,
	.s24-form-actions--stack > .btn {
		align-self: stretch;
	}
}

/* ═══════════════════════════════════════════════════════════════════════════
   Action stack — вертикальный стек CTA-кнопок
   Используется как правая/верхняя колонка действий на страницах проекта,
   профиля, ордера и т.п. Родитель задаёт layout (ширина + отступы),
   кнопка отвечает только за свой вид.
   ═══════════════════════════════════════════════════════════════════════════ */

.s24-action-stack {
	display: flex;
	flex-direction: column;
	gap: var(--s24-space-2);
}

.s24-action-stack:not(:has(*)) {
	display: none;
}

.s24-action-stack > .hidden {
	display: none;
}

/* Гасим legacy-утилиты отступов у прямых потомков: вертикальный ритм задаёт
   `gap` на флекс-контейнере, любые `marginbottom10` / `margintop5` плагинов
   (`mobile.users.details.tpl`, `notification.*`) ломают единый ритм. */
.s24-action-stack > * {
	margin: 0;
}

/* Дефолтный вид кнопки в стеке — «неяркая приподнятая плитка».
   Правило одно для компоненты `.s24-btn` и legacy-бриджа `.btn`, чтобы кнопки,
   инжектнутые плагинами как `class="btn btn-superlarge"`, выглядели идентично
   новым `class="s24-btn s24-btn--lg"` (см. `tpl-no-legacy.mdc` §«Что остаётся»). */
.s24-action-stack > .s24-btn,
.s24-action-stack > .btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	min-height: 0;
	box-sizing: border-box;
	padding: 10px 16px;
	border: 1px solid var(--s24-border-strong);
	border-bottom-width: 2px;
	border-radius: var(--s24-radius-md);
	background-color: var(--s24-surface);
	background-image: none;
	color: var(--s24-ink);
	font-family: var(--s24-font-family);
	font-size: var(--s24-body-sm);
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0.01em;
	text-align: center;
	text-decoration: none;
	text-shadow: none;
	white-space: normal;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
	transition:
		background-color var(--s24-transition-fast),
		border-color var(--s24-transition-fast),
		box-shadow var(--s24-transition-fast);
}

.s24-action-stack > .s24-btn:hover,
.s24-action-stack > .btn:hover {
	background-color: var(--s24-surface-alt);
	color: var(--s24-ink);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.s24-action-stack > .s24-btn:active,
.s24-action-stack > .btn:active {
	opacity: 0.96;
}

/* Цветные модификаторы в стеке: в покое — как нейтральная плитка (как соседи),
   семантический оттенок (зелёный / янтарный / синий / красный) — только :hover
   и :focus-visible (глобальные .s24-btn--primary / --success / --danger сбрасываем
   более специфичным селектором с .s24-btn). */

.s24-action-stack > .s24-btn.s24-btn--primary {
	background-color: var(--s24-surface);
	background-image: none;
	color: var(--s24-ink);
	border: 1px solid var(--s24-border-strong);
	border-bottom-width: 2px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.s24-action-stack > .s24-btn.s24-btn--primary:hover,
.s24-action-stack > .s24-btn.s24-btn--primary:focus-visible {
	background-color: var(--s24-primary-soft);
	border-color: color-mix(in srgb, var(--s24-primary) 28%, var(--s24-border));
	color: var(--s24-primary);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.s24-action-stack > .s24-btn.s24-btn--primary:active {
	background-color: color-mix(in srgb, var(--s24-primary) 18%, var(--s24-surface));
	border-color: color-mix(in srgb, var(--s24-primary) 38%, var(--s24-border));
}

.s24-action-stack > .s24-btn.s24-btn--success {
	background-color: var(--s24-surface);
	background-image: none;
	color: var(--s24-ink);
	border: 1px solid var(--s24-border-strong);
	border-bottom-width: 2px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.s24-action-stack > .s24-btn.s24-btn--success:hover,
.s24-action-stack > .s24-btn.s24-btn--success:focus-visible {
	background-color: color-mix(in srgb, #15803d 10%, var(--s24-surface));
	border-color: color-mix(in srgb, #15803d 32%, var(--s24-border));
	color: #166534;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.s24-action-stack > .s24-btn.s24-btn--success:active {
	background-color: color-mix(in srgb, #15803d 16%, var(--s24-surface));
	border-color: color-mix(in srgb, #15803d 42%, var(--s24-border));
}

.s24-action-stack > .s24-btn.s24-btn--warning {
	background-color: var(--s24-surface);
	background-image: none;
	color: var(--s24-ink);
	border: 1px solid var(--s24-border-strong);
	border-bottom-width: 2px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.s24-action-stack > .s24-btn.s24-btn--warning:hover,
.s24-action-stack > .s24-btn.s24-btn--warning:focus-visible {
	background-color: color-mix(in srgb, #d97706 12%, var(--s24-surface));
	border-color: color-mix(in srgb, #d97706 35%, var(--s24-border));
	color: #9a3412;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.s24-action-stack > .s24-btn.s24-btn--warning:active {
	background-color: color-mix(in srgb, #d97706 18%, var(--s24-surface));
	border-color: color-mix(in srgb, #d97706 45%, var(--s24-border));
}

/* .s24-btn--danger-outline в покое выглядит как обычная кнопка (см. .s24-btn
   базу) — красим её (текст + рамка + красноватый фон) только при :hover.
   Hover обязательно переопределяем на уровне .s24-action-stack, иначе
   общий `.s24-action-stack > .s24-btn:hover` (surface-alt серый фон) по
   специфичности равен базовому `.s24-btn.s24-btn--danger-outline:hover`
   и, идя позже, затирает красноватый hover-фон. */
.s24-action-stack > .s24-btn.s24-btn--danger {
	background-color: var(--s24-surface);
	background-image: none;
	color: var(--s24-ink);
	border: 1px solid var(--s24-border-strong);
	border-bottom-width: 2px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.s24-action-stack > .s24-btn.s24-btn--danger:hover,
.s24-action-stack > .s24-btn.s24-btn--danger:focus-visible {
	color: #991b1b;
	background-color: color-mix(in srgb, var(--s24-danger) 12%, var(--s24-surface));
	border-color: color-mix(in srgb, var(--s24-danger) 35%, var(--s24-border));
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.s24-action-stack > .s24-btn.s24-btn--danger:active {
	background-color: color-mix(in srgb, var(--s24-danger) 18%, var(--s24-surface));
	color: #7f1d1d;
	border-color: color-mix(in srgb, var(--s24-danger) 45%, var(--s24-border));
}

.s24-action-stack > .s24-btn--danger-outline:hover,
.s24-action-stack > .s24-btn--danger-outline:focus-visible {
	background-color: color-mix(in srgb, var(--s24-danger) 8%, var(--s24-surface));
	color: var(--s24-danger);
	border-color: color-mix(in srgb, var(--s24-danger) 50%, var(--s24-border));
}

/* Primary-outline внутри action-stack'а: в покое — как соседи (общий default
   .s24-btn), на hover — синеватый. Переопределяем явно, иначе общий
   `.s24-action-stack > .s24-btn:hover` (серый) по специфичности равен
   базовому `.s24-btn.s24-btn--primary-outline:hover` и перебивает его. */
.s24-action-stack > .s24-btn--primary-outline:hover,
.s24-action-stack > .s24-btn--primary-outline:focus-visible {
	background-color: color-mix(in srgb, var(--s24-primary) 8%, var(--s24-surface));
	color: var(--s24-primary);
	border-color: color-mix(in srgb, var(--s24-primary) 50%, var(--s24-border));
}

/* Success-outline внутри action-stack'а — зеркало правила выше для primary-
   и danger-outline: hover красится зелёным, в покое нейтральная кнопка. */
.s24-action-stack > .s24-btn--success-outline:hover,
.s24-action-stack > .s24-btn--success-outline:focus-visible {
	background-color: color-mix(in srgb, var(--s24-success) 8%, var(--s24-surface));
	color: var(--s24-success);
	border-color: color-mix(in srgb, var(--s24-success) 50%, var(--s24-border));
}

/* Кнопки, перенесённые JS-ом из .offer_buttons выбранного исполнителя в
   .s24-action-stack (сценарий: проект уже не в аукционе, PRJ_STATE != 0).
   В .offer_buttons эти кнопки лежат в DOM в исторически сложившемся порядке
   (по веткам IF в шаблоне); чтобы в боковом стеке они шли семантически —
   сначала позитивные (зелёные), затем нейтральные (синие), затем негативные
   (красные) — задаём явный order. Маркер .s24-offer-action ставится только
   при переносе (см. JS в projects.offers.tpl), поэтому в самом .offer_buttons
   эти правила не активны и его собственный order (выше в s24-projects.css)
   продолжает работать. */
.s24-action-stack > .s24-offer-action.s24-btn--success         { order: -4; }
.s24-action-stack > .s24-offer-action.s24-btn--success-outline { order: -3; }
.s24-action-stack > .s24-offer-action.s24-btn--primary-outline { order: -2; }
.s24-action-stack > .s24-offer-action.s24-btn--danger-outline  { order: -1; }

/* Muted-outline в action-stack'е: текст сразу приглушён, hover — чуть темнее
   рамка и фон. Та же специфичность что у общего hover, поэтому переопределяем
   напрямую, чтобы не «съесть» серый фон другим правилом (см. комментарий
   выше про danger-outline). */
.s24-action-stack > .s24-btn--muted-outline {
	color: var(--s24-text);
}

.s24-action-stack > .s24-btn--muted-outline:hover,
.s24-action-stack > .s24-btn--muted-outline:focus-visible {
	background-color: color-mix(in srgb, var(--s24-ink) 6%, var(--s24-surface));
	color: var(--s24-ink);
	border-color: color-mix(in srgb, var(--s24-ink) 28%, var(--s24-border));
}

/* .prjdelete — PHP-хук для «Удалить проект». В покое — нейтральная кнопка
   (как соседние «Редактировать/Скрыть»), красным подсвечивается только при
   :hover — чтобы деструктивное действие не «кричало» пользователю постоянно. */
.s24-action-stack > .s24-btn.prjdelete:hover,
.s24-action-stack > .s24-btn.prjdelete:focus-visible {
	background-color: color-mix(in srgb, var(--s24-danger) 8%, var(--s24-surface));
	color: var(--s24-danger);
	border-color: color-mix(in srgb, var(--s24-danger) 40%, var(--s24-border));
}

/* Плотный вариант (когда кнопок много — 8+) */
.s24-action-stack--tight {
	gap: var(--s24-space-1);
}

/* Горизонтальный вариант на широких экранах */
@media (min-width: 1024px) {
	.s24-action-stack--row {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.s24-action-stack--row > .s24-btn {
		width: auto;
		flex: 1 1 calc(50% - var(--s24-space-2));
	}
}

/* ========== Legacy Bootstrap .table: без разделительных линий между строками ==========
   Исключения: таблицы со своей сеткой (история баланса и т.п.) — отдельный класс.
   Локальные дубли (напр. .s24-balance-page .table td) сняты в пользу этого правила. */

:where(
	.s24-balance-page,
	.s24-profile-layout,
	.s24-prj-page,
	.s24-market-page,
	.s24-market-neworder-page,
	.s24-sbr-confirm-page,
	.s24-partner-page,
	.s24-form-layout
) .table:not(.s24-balance-history__table) > tbody > tr > td {
	border-bottom: none;
}

/* ========== Плательщик / персональные данные (users.personalinfo.tpl → PERSONALINFOFORM: баланс, СБР, market order, партнёры) ========== */

.s24-payer-form__title {
	font-weight: 700;
	font-size: var(--s24-heading-sm);
	margin: 0 0 var(--s24-space-3);
	color: var(--s24-ink);
	line-height: 1.3;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--s24-space-2);
}

/* Общая max-ширина формы плательщика — единый визуальный формат на всех трёх
   страницах-потребителях (payments.balance / marketorders.neworder / sbr.confirm).
   До этого таблица тянулась на 100% родителя, и на `.s24-balance-page` (широкая
   колонка) форма выглядела заметно растянутее, чем на `.s24-mo-section--personal`.
   40rem = ~640px — компактный блок, читаемый на десктопе и не ломающий мобильный
   (@media 480px ниже переводит в блочный layout). */
table.s24-payer-form {
	width: 100%;
	max-width: 40rem;
	border-collapse: collapse;
	margin: 0;
}

table.s24-payer-form > tbody > tr > td {
	border-bottom: none;
	vertical-align: middle;
	/* Меньший размер шрифта в ячейках формы плательщика — 15px вместо 17px (--s24-body).
	   17px в форме воспринимался «подростковым»; 15px — индустриальный стандарт. */
	font-size: var(--s24-body-sm);
	color: var(--s24-text);
}

table.s24-payer-form .employerInfoTableText {
	font-size: var(--s24-caption);
	font-weight: 400;
	color: var(--s24-text);
	/* Компактная label-колонка — 7.5rem (120px). Раньше было 11.875rem (190px) под
	   ширину legacy `.s24-balance-page .table` (width="190"), но в трёх разных
	   контейнерах это давало разный визуал. 120px одинаково хорошо ложится везде. */
	width: 12rem;
	max-width: 40%;
	padding-right: var(--s24-space-2);
	box-sizing: border-box;
	vertical-align: middle;
}

/* База fill-стиля (border, radius, background, padding, min-height, color, font,
   transition, :focus, ::placeholder) — в s24-forms.css. Здесь — только override-специфика
   контекста таблицы плательщика: ширина поля и font-size чуть меньше стандартного.
   Специфичность `table.s24-payer-form ...` побеждает базовые `input[type="text"]` без !important. */
table.s24-payer-form :is(input[type="text"], input[type="tel"], input:not([type])) {
	width: 100%;
	max-width: min(100%, var(--s24-payer-field-max-width));
	font-size: var(--s24-body-sm);
}

table.s24-payer-form select {
	/* Как у input: одна капсула min(100%, --s24-payer-field-max-width). width:100% + max-width
	   на <select> в широкой ячейке таблицы часто даёт «резину» до всей второй колонки.
	   border-color: transparent — чтобы select выглядел как input-поле (fill-pattern),
	   а не как отдельный Bootstrap-контрол с серой рамкой. */
	width: min(100%, var(--s24-payer-field-max-width));
	max-width: min(100%, var(--s24-payer-field-max-width));
	min-width: 0;
	font-size: var(--s24-body-sm);
	border: 1px solid transparent;
	padding: 0.5rem 2rem 0.5rem 0.75rem;
	cursor: pointer;
}

/* ── Унификация locationselector-селектов внутри .s24-payer-form ────────
   Базовое правило плагина `style.css: .locselectcountry, .locselectregion,
   .locselectcity { width: 160px; margin-bottom: 10px }` имеет специфичность
   (0,1,0). На balance-странице ранее был отдельный override в
   `@scope (.s24-balance-page)` → селекты там выглядели «как input», а на
   sbr.confirm / marketorders.neworder — 160px-капсулы с посторонней серой
   рамкой. Это приводило к визуальному рассогласованию формы плательщика.
   Здесь задаём единое правило в самом компоненте `table.s24-payer-form` —
   специфичность (0,2,1), побеждает легаси без !important, одинаковое
   поведение на всех страницах-потребителях (users.personalinfo.tpl,
   payments.balance, sbr.confirm, marketorders.neworder). Баланс-override
   в s24-payments.css после этого удалён как дублирующий. */
table.s24-payer-form :is(.locselectcountry, .locselectregion, .locselectcity) {
	width: 100%;
	max-width: min(100%, var(--s24-payer-field-max-width));
	min-width: 0;
	margin-bottom: 0;
	background-color: var(--s24-surface-alt);
	border: 1px solid transparent;
	border-radius: var(--s24-radius-md);
	color: var(--s24-text);
	font-size: var(--s24-body-sm);
}

/* «Новый плательщик» — button.s24-btn--link (users.personalinfo.tpl), не legacy a.pointer */
table.s24-payer-form .s24-btn--link {
	font-size: var(--s24-caption);
}

table.s24-payer-form .s24-btn--link:hover,
table.s24-payer-form .s24-btn--link:focus {
	color: var(--s24-primary-hover);
}

/* Узкий экран: поля на всю ширину ячейки */
@media (max-width: 480px) {
	table.s24-payer-form :is(input[type="text"], input[type="tel"], input:not([type]), select) {
		max-width: 100%;
	}
}

/*
 * Мобильная раскладка формы плательщика — единый брейкпоинт 767 синхронно
 * с прочими табличными блоками на balance/market-order/sbr чекаутах. Ранее
 * был 480 — но на планшетах/узких десктопах (540–767) форма уже не
 * помещалась в две колонки и выглядела рваной.
 */
@media (max-width: 767px) {
	/* width перебивает HTML-атрибут width="…" на td (маппится в user-agent stylesheet) — без !important. */
	table.s24-payer-form,
	table.s24-payer-form tbody,
	table.s24-payer-form tr,
	table.s24-payer-form td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	table.s24-payer-form .employerInfoTableText {
		display: none;
	}

	/* Обнуляем Bootstrap-овский `.table td { padding: 8px }` — иначе к нашему
	   tr.padding-bottom/margin-bottom добавляется ещё +16px на пару (top+bot),
	   и блок «Плательщик» визуально распухает до ~80px/строка при input 48px. */
	table.s24-payer-form > tbody > tr > td {
		padding: 0;
	}

	/* Компактный вертикальный ритм между полями: одно правило на все ряды.
	   space-2 (~8px) + min-height 48px у input = компактные 56px/ряд. */
	table.s24-payer-form tr {
		border-bottom: none;
		padding-bottom: 0;
		margin-bottom: var(--s24-space-3);
	}

	table.s24-payer-form tr:last-child {
		margin-bottom: 0;
		padding-bottom: 0;
	}

	table.s24-payer-form #employerInfoTableField {
		text-align: center;
	}
}

/* ========== Tabs — сегментированный контроль ========== */

.s24-tabs {
	border-bottom: none;
	margin-bottom: var(--s24-space-3);
	display: flex;
	align-items: stretch;
	justify-content: flex-start;
	gap: var(--s24-space-2);
	border-radius: var(--s24-radius-lg);
	width: fit-content;
	max-width: 100%;
	padding: 0;
	padding-left: 0;
	padding-inline-start: 0;
	margin-left: 0;
	margin-inline-start: 0;
	list-style: none;
}

/* Bootstrap clearfix (.nav-tabs::before/::after) — в flex-контейнере становятся flex-элементами и gap создаёт «гап слева» */
.s24-tabs::before,
.s24-tabs::after {
	display: none;
	content: none;
}

.s24-tabs > li {
	margin-bottom: 0;
	float: none;
}

.s24-tabs > li > a {
	font-weight: 500;
	font-size: var(--s24-caption);
	color: var(--s24-text-muted);
	border: none;
	padding: 10px 20px;
	margin: 0;
	background: transparent;
	transition: color var(--s24-transition-fast), background var(--s24-transition-fast), box-shadow var(--s24-transition-fast);
	border-radius: var(--s24-radius-lg);
	line-height: 1.25;
	white-space: nowrap;
	text-decoration: none;
	display: block;
}

.s24-tabs > li > a:hover,
.s24-tabs > li > a:focus {
	color: var(--s24-text);
	background: var(--s24-surface-alt);
}

.s24-tabs > .active > a,
.s24-tabs > .active > a:hover,
.s24-tabs > .active > a:focus {
	color: var(--s24-ink);
	font-weight: 500;
	background: var(--s24-surface);
	background-color: var(--s24-surface);
	box-shadow: none;
	border: none;
}

.s24-tabs-content {
	padding: var(--s24-space-6) 0 var(--s24-space-4);
}

/* ── Underline variant ── */
.s24-tabs--underline {
	border-bottom: 2px solid var(--s24-border);
	border-radius: 0;
	width: 100%;
}

.s24-tabs--underline > li > a {
	/* как у сегментированных вкладок: закругление + нижняя граница-индикатор */
	border-radius: var(--s24-radius-md);
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	padding: 10px 16px;
	font-size: 1rem;
	font-weight: 400;
	color: var(--s24-text-muted);
}

.s24-tabs--underline > li + li {
	margin-left: var(--s24-space-2);
}

.s24-tabs--underline > li > a:hover,
.s24-tabs--underline > li > a:focus {
	background: transparent;
	border-bottom-color: var(--s24-border-strong);
	color: var(--s24-text);
}

.s24-tabs--underline > .active > a,
.s24-tabs--underline > .active > a:hover,
.s24-tabs--underline > .active > a:focus {
	background: transparent;
	background-color: transparent;
	box-shadow: none;
	border-bottom-color: var(--s24-primary);
	color: var(--s24-ink);
	font-weight: 700;
}

/* Горизонтальный скролл вкладок — только обёртка; overflow на ul режет низ закруглений и подчёркивание */
.s24-tabs-scroll {
	display: block;
	margin-left: 0;
	padding-left: 0;
}

@media (max-width: 640px) {
	.s24-tabs-scroll {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding: var(--s24-space-2) 0;
		margin-bottom: var(--s24-space-2);
		box-sizing: border-box;
	}

	.s24-tabs-scroll::-webkit-scrollbar {
		display: none;
	}

	.s24-tabs-scroll > .s24-tabs {
		overflow: visible;
		width: max-content;
		min-width: 100%;
		flex-wrap: nowrap;
		justify-content: flex-start;
		margin-bottom: 0;
		margin-left: 0;
		margin-inline-start: 0;
		padding-left: 0;
		padding-inline-start: 0;
		padding-bottom: 0;
		box-sizing: border-box;
		align-items: stretch;
	}

	/* без overlap у ссылок общая серая полоса даёт «двойное» дно у активной — убираем rail */
	.s24-tabs-scroll > .s24-tabs.s24-tabs--underline {
		border-bottom: none;
	}

	.s24-tabs {
		flex-wrap: nowrap;
		width: 100%;
		box-sizing: border-box;
		align-items: stretch;
	}

	/* bootstrap-responsive: .nav-tabs>li { width:100% } (480px), ul>li { margin } (649px) */
	.s24-tabs.nav-tabs > li {
		width: auto;
		margin: 0;
		flex-shrink: 0;
	}

	.s24-tabs > li {
		display: flex;
		align-items: stretch;
	}
	.s24-tabs > li > a {
		height: auto;
		min-height: 44px;
		display: inline-flex;
		align-items: center;
		box-sizing: border-box;
	}

	.s24-tabs--underline > li > a {
		height: auto;
		min-height: 44px;
		display: inline-flex;
		align-items: center;
		box-sizing: border-box;
		/* без overlap: margin -2px + overflow на родителе обрезал низ «таблетки» и линии */
		margin-bottom: 0;
	}

	.s24-tabs.s24-tabs--underline > .active > a,
	.s24-tabs.s24-tabs--underline > .active > a:hover,
	.s24-tabs.s24-tabs--underline > .active > a:focus {
		background: transparent;
		background-color: transparent;
		box-shadow: none;
		border: none;
		border-bottom: 2px solid var(--s24-primary);
		border-radius: var(--s24-radius-md);
	}

	/*
	 * bootstrap-responsive (~480px): .nav-tabs>.active>a { background: transparent }
	 * — иначе на телефоне пропадает белая «таблетка» у сегментированных вкладок
	 */
	.s24-tabs.nav-tabs:not(.s24-tabs--underline) > .active > a,
	.s24-tabs.nav-tabs:not(.s24-tabs--underline) > .active > a:hover,
	.s24-tabs.nav-tabs:not(.s24-tabs--underline) > .active > a:focus {
		background: var(--s24-surface);
		background-color: var(--s24-surface);
		box-shadow: none;
		color: var(--s24-ink);
		font-weight: 500;
		border-radius: var(--s24-radius-lg);
	}
}

/*
 * Оболочка вкладок: users.profile, payments.balance (и др. с .s24-profile-layout).
 * Горизонтальный скролл вкладок — только в глобальном .s24-tabs-scroll @media (max-width: 640px) выше.
 */
.s24-profile-layout {
	padding: 0;
}

.s24-profile-layout .tab-content.s24-tabs-content {
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.s24-profile-layout .tab-content.s24-tabs-content > .tab-pane {
	padding: 0;
	border: 0;
	background: transparent;
}

/* Индикатор новых событий: хедер/профильные табы. */
.s24-header__menu .s24-header__link--alert,
.s24-tabs a.s24-tab-link--alert {
	position: relative;
}

.s24-header__menu .s24-header__link--alert::after,
.s24-tabs a.s24-tab-link--alert::after {
	content: '';
	position: absolute;
	top: 5px;
	right: 6px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--s24-danger);
	box-shadow: 0 0 0 1.5px var(--s24-surface);
}

/* Ранее на ≤500px здесь был card-стиль (background + border + radius + padding)
   вокруг всей `.tab-content.s24-tabs-content`. В результате внутри вкладки
   «Вывод» получалась паразитная card-обёртка, которая охватывала и одиноко
   лежащие элементы (кнопка Подтвердить, тексты-предупреждения), хотя
   блоки-разделы уже самостоятельно имеют свои card в `.s24-settings-section`.
   На скриншотах это выглядело как «кнопка в лишней белой подложке».
   Оставляем .tab-content прозрачным — card'ы создают только сами секции. */

/* ========== Card-обёртка секции ==========
   .s24-settings-section — профиль / balance (все вкладки).
   .s24-mo-section       — чекаут магазина (marketorders.neworder) и СБР
                           (sbr.confirm). Исторически определялся в @scope
                           (.s24-market-neworder-page, …) в s24-payments.css,
                           но CSS был идентичен до символа. Слили в одно
                           определение: tpl-имена остаются как есть, правило
                           одно.

   Визуал: плоская card — border + radius + padding. Тени (var(--s24-shadow-soft)
   с blue-tinted 18% primary) сознательно убраны по результатам ревизии на
   sbr.confirm — на странице проекта и в профиле юзера такой тени нет,
   возникала рассинхронизация. Если где-то понадобится акцент — через
   `:hover` / модификатор, но не по-умолчанию. */
.s24-settings-section,
.s24-mo-section {
	background: var(--s24-surface);
	border-radius: var(--s24-radius-lg);
	padding: var(--s24-space-5) var(--s24-space-6);
	/* Gap-модель: margin-top с ресетом у :first-child. Это надёжнее, чем
	   margin-bottom + :last-child — потому что на sbr.confirm / marketorders
	   первый card «Способ оплаты» обёрнут в <div id="paysystemsblock">, где
	   он единственный child, и `:last-child` срабатывал → зазор до следующей
	   card пропадал. С margin-top-подходом работает и «плоский» stack (balance,
	   profile), и stack с доп. обёрткой (sbr / market). */
	margin-top: var(--s24-space-5);
	margin-bottom: 0;
	border: 1px solid var(--s24-border);
}

.s24-settings-section:first-child,
.s24-mo-section:first-child {
	margin-top: 0;
}

@media (max-width: 640px) {
	.s24-settings-section,
	.s24-mo-section {
		padding: var(--s24-space-4);
	}
}

/* ═══════════════════════════════════════════════════════════════════════════
   .s24-person — блок «аватар + имя + мета».

   Унифицирует повторяющийся паттерн «[аватар] [имя] [звёзды/рейтинг/дата]»,
   который раньше дублировался под разными именами:
     - .s24-prj-owner-card*       (projects.tpl / market.tpl — заказчик/автор)
     - .s24-dialog-drawer__author* (projects.offers.tpl — шторка диалога)
     - .s24-users-prj-card__identity (users.tpl — карточка юзера)
     - .s24-review-author + .s24-review-stars-date (reviews.tpl — шапка отзыва)
     - .s24-reviews__head (index.tpl, projects.add_unreg.tpl — карточка отзыва
       в секции «последние отзывы»)

   Структура (BEM):

     <div class="s24-person">
       <a class="s24-person__avatar" href="…"><img /></a>
       <div class="s24-person__body">
         <a class="s24-person__name" href="…">Имя</a>
         <div class="s24-person__meta">звёзды / рейтинг / дата</div>
       </div>
     </div>

   Размер аватара по умолчанию 48×48 (самый популярный); переопределяется
   per-место через каскад (напр. .s24-prj-owner-well .s24-person__avatar img).

   Модификаторы:
     .s24-person--top — align-items: flex-start (аватар прижат к верху, для
     отзывов, где справа многострочный контент и аватар должен «висеть» сверху).
   ═══════════════════════════════════════════════════════════════════════════ */

.s24-person {
	display: flex;
	align-items: center;
	gap: var(--s24-space-3);
	min-width: 0;
}

.s24-person--top {
	align-items: flex-start;
}

.s24-person__avatar {
	display: block;
	flex: 0 0 auto;
}

.s24-person__avatar img {
	width: 48px;
	height: 48px;
	border-radius: var(--s24-radius-md);
	object-fit: cover;
	display: block;
}

.s24-person__body {
	display: flex;
	flex-direction: column;
	gap: var(--s24-space-1);
	min-width: 0;
	flex: 1 1 auto;
}

.s24-person__name {
	font-weight: 500;
	font-size: var(--s24-body-sm);
	color: var(--s24-primary);
	line-height: 1.25;
	text-decoration: none;
	word-break: break-word;
	overflow-wrap: anywhere;
	/* .s24-person__body — flex-column, default align-items: stretch растянул
	   бы <a> на всю ширину cross-оси → кликабельная зона уезжает за текст. */
	align-self: flex-start;
}

.s24-person__name a {
	color: inherit;
	text-decoration: none;
}

.s24-person__name:hover,
.s24-person__name:focus,
.s24-person__name a:hover,
.s24-person__name a:focus {
	color: var(--s24-primary-hover);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.s24-person__meta {
	font-size: 0.75rem;
	color: var(--s24-text-muted);
	line-height: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   .s24-sumtable — таблица расчёта суммы (чекаут / balance / доп.инфо).

   Унифицирует визуал для исторических имён одного и того же паттерна
   «label | value»:
     - <table class="s24-sumtable"> — единственный класс в редизайне
     - (раньше: .billSummTable, .s24-mo-cost-table, <table class="table">)

   Структура (BEM):

     <table class="s24-sumtable">
       <tr class="s24-sumtable__row--input">
         <td>Сумма пополнения</td>
         <td><div class="s24-input-money">…</div></td>
       </tr>
       <tr class="s24-sumtable__row--discount">
         <td>Бонус</td><td>−0.19 BYN</td>
       </tr>
       <tr class="s24-sumtable__row--total">
         <td>Итого к оплате</td><td>100 BYN</td>
       </tr>
     </table>

   Модификаторы — на <tr>; специфичность (0,1,1) / (0,1,2), переопределяются
   конкретными контекстами без !important.
   ═══════════════════════════════════════════════════════════════════════════ */

.s24-sumtable {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.s24-sumtable > tbody > tr > td {
	padding: var(--s24-space-3);
	border: 0;
	vertical-align: middle;
	font-size: var(--s24-caption);
	line-height: 1.4;
	color: var(--s24-text-secondary);
}

/* Label-колонка: чуть шире тела («Итого к оплате» — длинная подпись) — 12rem / 48%. */
.s24-sumtable > tbody > tr > td:first-child {
	color: var(--s24-text);
	width: 12rem;
	max-width: 48%;
}

/* Value-колонка: ink-цвет + tabular-nums для выравнивания разрядов сумм. */
.s24-sumtable > tbody > tr > td:last-child {
	color: var(--s24-text);
	font-variant-numeric: tabular-nums;
}

/* colspan-ячейки (заголовки секций, промо-строки, warning-плашка) — без
   ограничений ширины label-колонки. */
.s24-sumtable > tbody > tr > td[colspan] {
	width: auto;
	max-width: none;
	padding: var(--s24-space-2) var(--s24-space-3);
}

/* ── Модификатор --discount: скидка / бонус (красный акцент) ───────────── */
.s24-sumtable__row--discount > td,
.s24-sumtable__row--discount > td:first-child,
.s24-sumtable__row--discount > td:last-child {
	color: hsl(0 45% 36%);
}

/* ── Модификатор --total: итоговый ряд — жирный, ink-цвет ──────────────── */
.s24-sumtable__row--total > td,
.s24-sumtable__row--total > td:first-child,
.s24-sumtable__row--total > td:last-child {
	font-weight: 600;
	color: var(--s24-ink);
}

/* ── Модификатор --total-emphasis: усиленный итог (основная валюта) ────── */
.s24-sumtable__row--total-emphasis > td,
.s24-sumtable__row--total-emphasis > td:first-child,
.s24-sumtable__row--total-emphasis > td:last-child {
	font-weight: 700;
	color: var(--s24-ink);
}

/* ── Модификатор --input: ряд с капсулой .s24-input-money ──────────────── */
/* Сам размер капсулы задаёт компонент .s24-input-money — здесь только чуть
   больший вертикальный padding ячейки, чтобы input «дышал» и не упирался. */
.s24-sumtable__row--input > td {
	padding-top: var(--s24-space-2);
	padding-bottom: var(--s24-space-2);
}

/* ── Модификатор --warning: ряд с жёлтой плашкой предупреждения ────────── */
.s24-sumtable__row--warning > td {
	vertical-align: top;
}

/* ── Мобила: label сверху / value снизу, обе ячейки на всю ширину ─────── */
/* Порог 767 синхронизирован с .s24-payer-form и остальными таблицами —
   чтобы на планшетах/узких десктопах всё переключалось согласованно. */
@media (max-width: 767px) {
	.s24-sumtable > tbody > tr > td {
		display: block;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		padding: var(--s24-space-2);
	}

	.s24-sumtable > tbody > tr > td:first-child {
		color: var(--s24-text-secondary);
		font-size: var(--s24-caption);
		padding-bottom: 0;
		max-width: 75%;
	}

	.s24-sumtable > tbody > tr > td:last-child {
		padding-top: var(--s24-space-1);
		padding-bottom: var(--s24-space-3);
	}

	.s24-sumtable > tbody > tr:last-child > td:last-child {
		padding-bottom: 0;
	}

	/* Label-цвет итоговых рядов на мобиле — возвращаем ink, чтобы muted из
	   общего правила td:first-child не перебивал bold-итог. */
	.s24-sumtable__row--total > td:first-child,
	.s24-sumtable__row--total-emphasis > td:first-child {
		color: var(--s24-ink);
	}

	/* colspan-строки: отдаём всю ширину ячейке, убираем горизонтальный
	   padding (плашка-warning / промо уже сами контейнерят свой отступ). */
	.s24-sumtable > tbody > tr > td[colspan] {
		padding: 0;
	}
}

/* ========== Разделители ========== */

.s24-divider {
	text-align: center;
	clear: both;
}

.s24-divider--spaced {
	margin: var(--s24-section-gap) 0;
}

.s24-divider--top {
	margin-top: var(--s24-section-gap);
}

.s24-prj-owner-well {
	box-sizing: border-box;
	min-height: 110px;
	margin-bottom: var(--s24-space-5);
}

.s24-link-edit       { cursor: pointer; }

/* Число в тексте confirmmsg (.s24-confirm__body — не .modal-body, общие стили форм не подхватываются) */
.s24-input-confirm-num {
	box-sizing: border-box;
	width: 3.5rem;
	min-width: 2.75rem;
	max-width: 5rem;
	margin: 0 0.2em;
	vertical-align: middle;
	border: 1px solid var(--s24-border);
	border-radius: var(--s24-radius-md);
	background-color: var(--s24-surface-alt);
	color: var(--s24-text);
	font-family: var(--s24-font-family);
	font-size: var(--s24-body-sm);
	line-height: 1.35;
	padding: 0.4rem 0.55rem;
	min-height: 2.25rem;
	text-align: center;
	box-shadow: none;
	-moz-appearance: textfield;
	appearance: textfield;
	transition: border-color var(--s24-transition-fast), box-shadow var(--s24-transition-fast), background-color var(--s24-transition-fast);
}

.s24-input-confirm-num:focus {
	outline: none;
	border-color: var(--s24-border-focus);
	background-color: var(--s24-surface);
	box-shadow: var(--s24-shadow-input-focus);
}

.s24-input-confirm-num::-webkit-outer-spin-button,
.s24-input-confirm-num::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.s24-edit-icon {
	color: var(--s24-primary);
	margin-left: var(--s24-space-2);
	opacity: 0.45;
	transition: opacity var(--s24-transition-fast);
	text-decoration: none;
	vertical-align: middle;
	display: inline-flex;
	align-items: center;
	cursor: pointer;
}

.s24-edit-icon svg {
	display: block;
}

.s24-edit-icon:hover {
	opacity: 1;
}

.s24-prj-breadcrumb {
	margin: var(--s24-space-3) 0 var(--s24-space-3) var(--s24-space-3);
	font-size: 12px;
	opacity: 0.9;
	color: var(--s24-text-muted);
}

.s24-prj-itemdesc {
	margin: 0 0 var(--s24-space-3) 25px;
	width: 95%;
}

.s24-prj-itemtitle {
	font-size: var(--s24-caption);
	line-height: var(--s24-lh-tight);
	color: var(--s24-text);
	margin-top: 0;
}

/* ========== Legacy: системные плашки Cotonti (div.error / warning / done / help) ==========
   Шаблоны и ядро по-прежнему отдают эти классы; стили перенесены из style.css. */
.warning {
	background-image: url(../../../images/icons/default/warning.png);
}

div.error,
div.warning,
div.done,
div.help {
	line-height: var(--s24-lh-base);
	margin: var(--s24-space-5) 0;
	padding: var(--s24-space-5) var(--s24-space-5) var(--s24-space-5)
		calc(var(--s24-space-8) + var(--s24-space-5));
	background-position: var(--s24-space-4) 50%;
	background-repeat: no-repeat;
	background-size: 22px 22px;
	clear: both;
	border-radius: var(--s24-radius-md);
	font-size: var(--s24-caption);
}

/* Иконки в data-URL: stroke в hex (var() внутри data URI не поддерживается). */
div.error {
	color: var(--s24-danger);
	background-color: #ffd4d6;
	background-color: color-mix(in srgb, var(--s24-danger) 22%, white);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='15' y1='9' x2='9' y2='15'/%3E%3Cline x1='9' y1='9' x2='15' y2='15'/%3E%3C/svg%3E");
	border: 1px solid #f5a8a8;
	border-color: color-mix(in srgb, var(--s24-danger) 42%, white);
}

div.warning {
	color: var(--s24-warning-ink);
	background-color: var(--s24-warning);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23b45309' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
	border: 1px solid #e8d48b;
	border-color: color-mix(in srgb, var(--s24-warning-ink) 24%, var(--s24-warning));
}

div.done {
	color: var(--s24-badge-text);
	background-color: var(--s24-badge-bg);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E");
	border: 1px solid #9bd8ae;
	border-color: color-mix(in srgb, var(--s24-accent) 38%, var(--s24-badge-bg));
}

div.help {
	color: var(--s24-primary-hover);
	background-color: var(--s24-primary-soft);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%230478e6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
	border: 1px solid #a0c8f0;
	border-color: color-mix(in srgb, var(--s24-primary) 32%, var(--s24-border));
}

/* Списки: при list-style-position: outside маркер уезжает в padding родителя и наезжает на фоновую иконку. */
div.error ul,
div.error ol,
div.warning ul,
div.warning ol,
div.done ul,
div.done ol,
div.help ul,
div.help ol {
	margin-top: var(--s24-space-4);
	margin-inline: 0;
	padding-inline-start: var(--s24-space-3);
	list-style-position: inside;
}

.s24-alert-full {
	margin: 25px auto 0;
	box-sizing: border-box;
	float: left;
	width: 100%;
	padding: var(--s24-space-3);
}

.s24-alert-full--center { margin: 25px auto; }
.s24-offers-paging      { margin: 0 0 80px 0; width: 100%; clear: both; }
.s24-files-list         { margin: 0 var(--s24-space-3) var(--s24-space-3) var(--s24-space-5); }
.s24-files-dlall        { display: inline-block; margin-bottom: var(--s24-space-3); }
.s24-btn-mt-20          { margin-top: var(--s24-space-5); }
/* Основной текст абзаца / значения: размер + цвет (не наследовать акцент/статус от родителя) */
.s24-body-text {
	font-size: var(--s24-body);
	line-height: var(--s24-lh-base);
	color: var(--s24-text);
}

/* Карусель «Похожие проекты» */
.s24-carousel-muted,
.s24-carousel-muted a { color: var(--s24-text-soft); }

.s24-carousel-item-title {
	margin-top: 5px;
	font-size: var(--s24-caption);
}

.s24-carousel-wrap { margin-top: 70px; }

/* Замена inline `style="display:none;position:relative;width:100%;max-width:720px;
   margin:0 auto"` из легаси-шаблонов (#amazingcarousel-1, -3 и т.п.).
   max-width:720px ОБЯЗАТЕЛЕН — amazingcarousel считает visibleitems от ширины
   этого контейнера и без ограничения на реините после ajax-апдейта ломается
   в двухстрочный вертикальный стек (li без абсолютного позиционирования). */
.s24-carousel-inner {
	display: none;
	position: relative;
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
}

/* ========== Карусель «Портфолио / Галерея работ» (единый компонент) ==========

   Используется на:
     • странице пользователя, вкладка «Портфолио» — #amazingcarousel-1
     • странице товара магазина — #amazingcarousel-3

   Полностью заменяет initcarousel-1.css и initcarousel-3.css (те файлы
   больше не подключаются). Все carousel-стили живут здесь.

   options.width = 220  →  visibleItems = Math.floor(containerWidth / 220) → 3
   Квадрат через aspect-ratio: 1/1, gap через padding: 0 6px на item-container.
   Без подложки — только border-radius + overflow:hidden.
*/

/* --- Общие правила (класс .s24-folio-carousel на div#amazingcarousel-*) --- */

.s24-folio-carousel .amazingcarousel-item-container {
	text-align: center;
	background: transparent;
	border: 0;
	box-shadow: none;
	margin: 0;
	padding: 0 6px;
	box-sizing: border-box;
}

.s24-folio-carousel .amazingcarousel-image {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: var(--s24-radius-md);
	overflow: hidden;
	box-sizing: border-box;
}

.s24-folio-carousel .amazingcarousel-image img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	border: 0;
	margin: 0;
	padding: 0;
	object-fit: cover;
	object-position: center;
	border-radius: var(--s24-radius-md);
}

.s24-folio-carousel .amazingcarousel-cat,
.s24-folio-carousel .amazingcarousel-title,
.s24-folio-carousel .amazingcarousel-description {
	display: none;
}

.s24-folio-carousel .amazingcarousel-list-container {
	padding: 8px 0;
	background: transparent;
}

.s24-folio-carousel .amazingcarousel-prev {
	left: 0;
	top: 50%;
	margin-left: -25px;
	margin-top: -24px;
}

.s24-folio-carousel .amazingcarousel-next {
	right: 0;
	top: 50%;
	margin-right: -25px;
	margin-top: -24px;
}

.s24-folio-carousel .amazingcarousel-nav {
	position: absolute;
	width: 100%;
	top: 100%;
}

.s24-folio-carousel .amazingcarousel-bullet-wrapper {
	margin: 4px auto;
}

/* --- Плейсхолдер «Добавить …» --- */

.s24-folio-carousel .amazingcarousel-image.s24-folio-add {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--s24-surface-alt);
	box-shadow: none;
}

.s24-folio-carousel .s24-folio-add__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: var(--s24-space-2) var(--s24-space-3);
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	pointer-events: none;
}

.s24-folio-carousel .s24-folio-add__icon {
	flex: 0 0 auto;
	line-height: 0;
}

.s24-folio-carousel .s24-folio-add__icon svg {
	width: 76px;
	height: 76px;
	color: var(--s24-text-soft);
	opacity: 1;
}

.s24-folio-carousel .s24-folio-add__label {
	font-size: var(--s24-caption);
	font-weight: 600;
	color: var(--s24-text-muted);
	line-height: 1.35;
	text-align: center;
	max-width: 14em;
}

.s24-folio-carousel .s24-folio-add__browse {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: block;
	cursor: pointer;
}

/* Невидимый input[type="file"] поверх визуального плейсхолдера. Баз правил
   на input[type="file"] в проекте нет — !important не нужен. */
.s24-folio-carousel .s24-folio-add__browse input[type="file"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
	padding: 0;
	margin: 0;
	border: 0;
}

/* --- Портфолио (#amazingcarousel-1, страница юзера) --- */

#amazingcarousel-container-1 {
	padding: 10px 0 20px 0;
	border-radius: var(--s24-radius-md);
	overflow: hidden;
	background: var(--s24-surface);
}

#tab_portfolio #amazingcarousel-container-1 {
	overflow: visible;
	margin-left: calc(-1 * var(--s24-card-pad-x));
	margin-right: calc(-1 * var(--s24-card-pad-x));
	background: transparent;
}

#tab_portfolio #amazingcarousel-1 .amazingcarousel-list-container {
	position: relative;
	overflow: visible;
}

#tab_portfolio #amazingcarousel-1 .amazingcarousel-prev {
	margin-left: -20px;
	transform: none;
	z-index: 5;
}

#tab_portfolio #amazingcarousel-1 .amazingcarousel-next {
	margin-right: -20px;
	transform: none;
	z-index: 5;
}

#tab_portfolio #amazingcarousel-1 .amazingcarousel-nav {
	position: relative;
	top: auto;
	left: auto;
	width: 100%;
	margin-top: var(--s24-space-3);
	margin-bottom: 0;
	padding-bottom: 2px;
	box-sizing: border-box;
}

#tab_portfolio #amazingcarousel-1 .amazingcarousel-bullet-wrapper {
	margin-top: 0;
	margin-bottom: 0;
}

/* --- Магазин (#amazingcarousel-3, страница товара) --- */

#amazingcarousel-container-3 {
	padding: 10px 0 20px 0;
}

/* ========== Info list + rows — пары «лейбл + значение» ========== */

.s24-info-list {
	display: flex;
	flex-direction: column;
}

.s24-info-row {
	display: flex;
	align-items: baseline;
	gap: var(--s24-space-4);
	font-size: var(--s24-caption);
}

.s24-info-row > .s24-form__label {
	width: 120px;
	flex-shrink: 0;
	margin-bottom: 0;
	color: var(--s24-text-muted);
}

.s24-info-row > :last-child {
	flex: 1;
	min-width: 0;
	word-break: break-word;
}

/* Inline-edit формы в info-строках (телефон/email/заметки на странице проекта):
   обнуляют дефолтный маргин формы, чтобы при раскрытии поле влезало в строку.
   Замена легаси `class="margin0"` (шаг 2 протокола `tpl-no-legacy.mdc`). */
.s24-info-row form {
	margin: 0;
}

@media (max-width: 480px) {
	.s24-info-row {
		flex-direction: column;
		gap: var(--s24-space-1);
	}
	.s24-info-row > .s24-form__label {
		width: auto;
	}
}

/* ========== Order row — строка-ордер (marketorders: sales, purchases, admin, order) ==========
   Заменяет повторяющийся паттерн .media + .pull-right + .span2/.span6 + <hr/>.
   Использование: обёртка `.s24-order-row`, внутри `__id`, `__title`, `__meta`, `__cost`.
   Опциональный модификатор `.s24-order-row--compact` для плотных списков. */

.s24-order-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--s24-space-3) var(--s24-space-4);
	padding: var(--s24-space-4) 0;
	border-bottom: 1px solid var(--s24-border);
	font-size: var(--s24-caption);
	line-height: 1.45;
}

.s24-order-row:last-child {
	border-bottom: none;
}

.s24-order-row__id {
	flex: 0 0 auto;
	min-width: 160px;
	font-weight: 600;
	color: var(--s24-text);
}

.s24-order-row__id a {
	color: inherit;
	text-decoration: none;
}

.s24-order-row__id a:hover {
	color: var(--s24-primary);
}

.s24-order-row__title {
	flex: 1 1 360px;
	min-width: 0;
	color: var(--s24-text);
}

.s24-order-row__title a {
	color: var(--s24-primary);
}

.s24-order-row__meta {
	flex: 0 0 auto;
	min-width: 140px;
	color: var(--s24-text-muted);
}

.s24-order-row__cost {
	margin-left: auto;
	flex: 0 0 auto;
	font-weight: 700;
	color: var(--s24-text);
	white-space: nowrap;
}

.s24-order-row__actions {
	flex: 0 0 auto;
	display: flex;
	gap: var(--s24-space-2);
	margin-left: var(--s24-space-4);
}

@media (max-width: 680px) {
	.s24-order-row {
		flex-direction: column;
		align-items: stretch;
		gap: var(--s24-space-1);
	}
	.s24-order-row__cost {
		margin-left: 0;
	}
	.s24-order-row__actions {
		margin-left: 0;
	}
}

/* ========== Scroll-to-top / Uptotop — плавающая кнопка «наверх» ==========
   Скрипт скрытия/показа живёт в шаблоне (добавляет/снимает класс `.hidden`).
   `.uptotop.hidden` побеждает по специфичности (0,2,0) общий `.hidden { display: none }`,
   что даёт красивую анимацию ухода вправо вместо мгновенного исчезновения. */

.uptotop {
	text-align: center;
	position: fixed;
	padding: var(--s24-space-3) var(--s24-space-4);
	right: var(--s24-space-6);
	bottom: var(--s24-space-8);
	border-radius: var(--s24-radius-md);
	background-color: var(--s24-surface);
	color: var(--s24-primary);
	cursor: pointer;
	transition: var(--s24-transition-base);
	border: 1px solid var(--s24-border);
	box-shadow: var(--s24-shadow-card);
	font-size: var(--s24-caption);
	font-weight: 600;
	font-family: inherit;
	line-height: 1.3;
	z-index: 90;
}

.uptotop:hover {
	background-color: var(--s24-primary);
	color: #fff;
	border-color: var(--s24-primary);
}

.uptotop.hidden {
	right: -80px;
	opacity: 0;
	pointer-events: none;
}

@media (max-width: 979px) {
	.uptotop {
		font-size: var(--s24-label);
		padding: var(--s24-space-2) var(--s24-space-3);
		right: var(--s24-space-4);
		bottom: 100px;
	}
}

/* ========== Иконка скачивания (была в bootstrap.min.css; CSS темы отключён в bootlance.rc.php) ========== */
.download-icon {
	display: inline-block;
	width: 14px;
	height: 13px;
	margin-left: var(--s24-space-2);
	margin-top: -2px;
	margin-bottom: -1px;
	vertical-align: middle;
	background: url(../../../images/icons/default/download-icon.png) no-repeat center;
	background-size: 13px;
	opacity: 0.85;
	cursor: pointer;
	transition: opacity var(--s24-transition-fast);
}

.download-icon:hover {
	opacity: 1;
}

/* ========== Комментарии / отзывы (единый стиль) ========== */

/* --- Заголовок и поля формы (общие для отзывов и комментариев) --- */
.s24-review-form-title {
	font-size: var(--s24-heading-sm);
	font-weight: 700;
	color: var(--s24-ink);
	margin: 0 0 var(--s24-space-5) 0;
}

.s24-review-field {
	padding: var(--s24-space-3) 0;
}

.s24-review-field--stars {
	display: flex;
	align-items: center;
	gap: var(--s24-space-3);
	padding: 0 var(--s24-space-2) var(--s24-space-2);
}

.s24-review-field__label {
	white-space: nowrap;
	min-width: 100px;
}

.s24-review-field--submit {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--s24-space-3);
	padding-top: var(--s24-space-4);
}

@media (max-width: 575px) {
	.s24-review-field--stars {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--s24-space-2);
	}
}

.s24-comments {
	margin: var(--s24-space-5) 0;
}

.s24-comments[hidden] { display: none; }

/* Карточка товара в Магазине: пустая оболочка списка (.well) не нужна, пока нет комментариев */
.s24-market-page .s24-comments.well:not(:has(.s24-comment)):not(:has(.alert)) {
	display: none;
}

.s24-comment {
	background: var(--s24-surface-alt);
	border: 1px solid var(--s24-border);
	border-radius: var(--s24-radius-md);
	padding: var(--s24-space-4);
	margin-bottom: var(--s24-space-4);
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: var(--s24-space-2) var(--s24-space-4);
	align-items: start;
	min-height: 30px;
	/* Сама карточка — size-container. Кнопки «Редактировать/Удалить» и вся
	   раскладка (аватар+шапка+текст) перестраиваются по ширине КАРТОЧКИ,
	   а не по viewport'у — это важно, т.к. в разных местах (магазин,
	   диалоги) комментарий живёт в колонках разной ширины. Та же схема, что
	   у .customform.ownreview (см. s24-users.css) — единый паттерн для
	   «шапка-контент-действия» карточек. */
	container-type: inline-size;
	container-name: comment-card;
}

/* «Свой» комментарий подсвечиваем мягким primary-оттенком — это общий акцент
   темы (синий). Раньше использовался success (зелёный), но он выбивался из
   палитры: тема строится вокруг primary/ink, зелёный остаётся семантикой
   «успех» (уведомления, статусы), а не визуальной маркировкой «моё». */
.s24-comment--own {
	background: color-mix(in srgb, var(--s24-primary) 6%, var(--s24-surface));
	border-color: color-mix(in srgb, var(--s24-primary) 20%, var(--s24-border));
}

.s24-comment--warn {
	background: color-mix(in srgb, var(--s24-warning) 40%, var(--s24-surface));
	border-color: color-mix(in srgb, var(--s24-warning) 80%, var(--s24-border));
}

.s24-comment__avatar {
	grid-column: 1;
	grid-row: 1;
	margin: 0;
	align-self: start;
}

.s24-comment__avatar img {
	width: 48px;
	height: 48px;
	border-radius: var(--s24-radius-sm);
	object-fit: cover;
	display: block;
}

.s24-comment__actions {
	grid-column: 3;
	grid-row: 1;
	display: flex;
	gap: var(--s24-space-2);
	justify-content: flex-end;
	align-self: center;
}

.s24-comment__header {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
	min-width: 0;
}

.s24-comment__author {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--s24-text);
	text-decoration: none;
	line-height: 1.3;
}

.s24-comment__author:hover {
	color: var(--s24-primary);
}

.s24-comment__date {
	font-size: 0.75rem;
	color: var(--s24-text-soft);
	line-height: 1.3;
}

/* Текст и форма редактирования — во всю ширину карточки (иначе столбец
   actions забирал бы часть ширины и текст сжимался). Визуальное выравнивание
   под шапку даёт padding-left, равный ширине аватара + gap колонки
   (48px + var(--s24-space-4)). На узких @container-уровнях padding
   снимается — см. ниже. Логика симметрична .customform.ownreview. */
.s24-comment__text,
.s24-comment__edit {
	grid-column: 1 / -1;
	grid-row: 2;
	padding-left: calc(48px + var(--s24-space-4));
	font-size: var(--s24-caption);
	line-height: var(--s24-lh-relaxed);
	word-break: break-word;
}

.s24-comment__edit .s24-form-layout,
.s24-comments-form-wrap .s24-form-layout {
	max-width: none;
	margin: 0;
	padding: 0;
	background: transparent;
	border: none;
	box-shadow: none;
	border-radius: 0;
}

.s24-comment__edit textarea.minieditor {
	width: 100%;
	resize: vertical;
	max-height: 350px;
	background-color: var(--s24-surface);
	border: 1px solid var(--s24-border);
}

/* Первый «узкий» уровень: карточка ещё помещается в 3 колонки (аватар |
   шапка | кнопки), но сами кнопки уже начинают налезать на шапку. Скалдываем
   их в вертикальную стопку в правом верхнем углу. Точка (420px) — содержимое
   container'а (не viewport'а). Подобрано так же, как для review-card. */
@container comment-card (max-width: 420px) {
	.s24-comment .s24-comment__actions {
		flex-direction: column;
		align-items: flex-end;
		flex-shrink: 0;
		row-gap: var(--s24-space-2);
	}
}

/* Второй уровень — совсем узкая карточка. Переключаемся на мобильную схему
   как в отзывах юзера (.customform.ownreview @container 340):
     row 1: кнопки во всю ширину, прижаты вправо
     row 2: аватар + имя/дата
     row 3: текст во всю ширину (без padding-left, подлазит под аватар) */
@container comment-card (max-width: 340px) {
	.s24-comment {
		grid-template-columns: auto 1fr;
		padding: var(--s24-space-3);
		gap: var(--s24-space-2) var(--s24-space-3);
	}

	.s24-comment > .s24-comment__actions {
		grid-column: 1 / -1;
		grid-row: 1;
		/* Сбрасываем column-режим из @container 420 — в row1 места хватает. */
		flex-direction: row;
		align-items: center;
		flex-wrap: wrap;
		row-gap: var(--s24-space-2);
		column-gap: var(--s24-space-2);
		justify-content: flex-end;
	}

	.s24-comment > .s24-comment__avatar {
		grid-column: 1;
		grid-row: 2;
		align-self: center;
	}

	.s24-comment > .s24-comment__avatar img {
		width: 40px;
		height: 40px;
	}

	.s24-comment > .s24-comment__header {
		grid-column: 2;
		grid-row: 2;
	}

	.s24-comment > .s24-comment__text,
	.s24-comment > .s24-comment__edit {
		grid-column: 1 / -1;
		grid-row: 3;
		/* Совсем узкая карточка — текст подлазит под аватар, как на мобилке
		   в отзывах юзера. Отключаем padding-left, заданный в дефолте. */
		padding-left: 0;
	}
}

/* ========== Кнопка удаления превью в карусели (folio + market) ========== */
/* Оригинальный .icon-remove тянул glyphicons‑sprite, которого нет в теме,
   поэтому крестик был фактически невидим. Рисуем круглую чёрную кнопку с X
   через псевдоэлементы — без зависимости от картинок. */

.amazingcarousel-item-container:has(.deletefolio),
.amazingcarousel-item-container:has(.deletemarket) {
	position: relative;
}

/* Селекторы с `a.` чтобы перебить глобальный `a:hover` из s24-base.css,
   который иначе перекрашивал крестик в синий на hover (по аналогии с
   .s24-avatar-delete — там отдельного `a`-якоря нет, поэтому хватало `.`) */
a.deletefolio,
a.deletemarket,
a.deletefolio:hover,
a.deletemarket:hover,
a.deletefolio:focus,
a.deletemarket:focus {
	color: #fff;
	text-decoration: none;
}

.deletefolio,
.deletemarket {
	position: absolute;
	top: 6px;
	right: 10px;
	left: auto;
	width: 26px;
	height: 26px;
	margin: 0;
	padding: 0;
	background: rgba(0, 0, 0, 0.55);
	background-image: none;
	border-radius: 50%;
	cursor: pointer;
	z-index: 10;
	display: inline-block;
	line-height: 0;
	pointer-events: auto;
	opacity: 0;
	transition: opacity var(--s24-transition-fast),
		background var(--s24-transition-fast),
		transform var(--s24-transition-fast);
}

.amazingcarousel-item-container:hover .deletefolio,
.amazingcarousel-item-container:hover .deletemarket {
	opacity: 1;
}

.deletefolio::before,
.deletemarket::before,
.deletefolio::after,
.deletemarket::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
	pointer-events: none;
}

.deletefolio::before,
.deletemarket::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.deletefolio::after,
.deletemarket::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.deletefolio:hover,
.deletemarket:hover {
	background: var(--s24-danger);
	transform: scale(1.05);
}

/* ========== Преимущества (BEM: __band / __pair / __cell) ========== */

.s24-index-txt-right,
.s24-landing-advantages-txt-right { text-align: right; }

.s24-index-txt-left,
.s24-landing-advantages-txt-left { text-align: left; }

.s24-landing-advantages {
	text-align: center;
	margin: var(--s24-section-gap) 0;
	display: table;
}

.s24-landing-advantages > p,
.s24-landing-advantages > h2 {
	font-size: var(--s24-heading-xl);
	line-height: var(--s24-lh-tight);
	font-family: inherit;
	font-weight: 100;
	text-indent: 0;
	margin-bottom: var(--s24-section-gap-sm);
}

.s24-landing-advantages__pair::after {
	content: "";
	display: table;
	clear: both;
}

.s24-landing-advantages__cell {
	width: 50%;
	margin: auto;
	float: left;
	padding: 2% 0;
}

.s24-landing-advantages__cell > span {
	display: inline-block;
	vertical-align: bottom;
	width: calc(100% - 175px);
	text-align: justify;
	margin: 5px 0;
}

.s24-landing-advantages__cell > span > a { text-decoration: underline; }

.s24-landing-advantages__cell > img {
	margin: var(--s24-space-2) 30px var(--s24-space-3) 30px;
	height: 65px;
	opacity: 0.95;
	transition: margin var(--s24-transition-base);
}

.s24-landing-advantages__cell:hover > img {
	margin: var(--s24-space-2) 20px var(--s24-space-3) 20px;
}

.s24-landing-advantages__cell > span > div {
	display: block;
	font-size: var(--s24-heading-md);
	margin-bottom: var(--s24-space-3);
}

@media (max-width: 979px) {
	.s24-landing-advantages__cell {
		display: inline-block;
		width: 100%;
		margin-bottom: var(--s24-space-5);
		padding: 0;
	}
}

@media (max-width: 600px) {
	.s24-landing-advantages > p,
	.s24-landing-advantages > h2 {
		font-size: var(--s24-heading-md);
		line-height: 20px;
		margin-bottom: var(--s24-section-gap-sm);
	}
	.s24-landing-advantages__cell > img { display: none; }
	.s24-landing-advantages__cell > span {
		display: inline-block;
		vertical-align: bottom;
		width: calc(100% - 50px);
		text-align: justify;
	}
	.s24-landing-advantages__cell > span > div {
		display: block;
		font-size: 15px;
		font-weight: bold;
		margin: var(--s24-space-3) 0;
		text-align: left;
	}
}

/* ========== Шаги «как работает» (__flow / __segment / __card) ========== */

.s24-landing-steps {
	margin: var(--s24-section-gap) 0;
	text-align: center;
}

.s24-landing-steps > h2,
.s24-landing-steps > span,
.s24-landing-crosslinks > h2 {
	margin-bottom: var(--s24-section-gap);
	text-align: center;
	font-size: var(--s24-heading-xl);
	line-height: var(--s24-lh-tight);
	display: block;
}

.s24-landing-steps__card > img {
	transition: opacity var(--s24-transition-base) 0.25s;
}

.s24-landing-steps__card > span {
	width: 74%;
	margin: 5px auto;
	display: block;
	transition: opacity var(--s24-transition-base) 0.25s;
	font-weight: bold;
}

.s24-landing-steps__segment { display: inline-flex; }

.s24-landing-steps__card:hover > img,
.s24-landing-steps__card:hover > span {
	transition: opacity var(--s24-transition-base);
	opacity: 0;
}

.s24-landing-steps__card:hover > p {
	opacity: 1;
	transition: opacity var(--s24-transition-base) 0.25s;
}

.s24-landing-steps__card > p {
	margin: 15px 0 0 0;
	position: absolute;
	text-align: center;
	opacity: 0;
	text-indent: 0;
	width: 150px;
	padding: 7px;
	display: block;
	transition: opacity var(--s24-transition-base);
}

.s24-landing-steps__card {
	text-align: center;
	width: 160px;
	padding: 9px;
}

.s24-landing-steps__segment > img {
	margin: 40px 0 50px;
	height: 40px;
	width: 20px;
}

/* ========== Отзывы, видео, перелинковка ========== */

.s24-landing-reviews {
	text-align: center;
	margin: var(--s24-section-gap) 0;
	height: 22pc;
}

.s24-landing-reviews > span {
	font-size: var(--s24-heading-xl);
	line-height: 1.2;
	margin-bottom: 70px;
	width: 80%;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.s24-landing-video {
	margin: var(--s24-section-gap) auto;
	text-align: center;
}

.s24-landing-video > span {
	font-size: var(--s24-heading-xl);
	margin: 75px auto;
	line-height: 1.2;
	text-align: center;
	width: 80%;
	display: block;
}

.s24-landing-video > video {
	margin: auto;
	max-width: 560px;
	width: 80%;
	height: 315px;
}

.s24-landing-crosslinks {
	margin-top: var(--s24-section-gap);
}

.s24-landing-crosslinks > span {
	display: table;
	float: left;
}

.s24-landing-crosslinks > span > a {
	margin: -5px 0 18px var(--s24-space-3);
	display: block;
	font-size: 12px;
	cursor: pointer;
}

.s24-landing-crosslinks > span > span {
	width: 250px;
	padding: var(--s24-space-3);
	margin: 15px 35px 15px var(--s24-space-3);
	border-radius: var(--s24-radius-sm);
	background-color: var(--s24-surface-alt);
	display: block;
	max-height: 207px;
	overflow: hidden;
}

.s24-landing-crosslinks > span > span:first-of-type { margin-top: 0; }

.s24-landing-crosslinks > span > span > a {
	display: block;
	padding: 5px;
	margin: var(--s24-space-1);
	font-size: var(--s24-caption);
}

.s24-landing-crosslinks > div {
	width: 600px;
	text-align: justify;
	float: right;
}

.s24-landing-crosslinks > div > h2,
.s24-landing-crosslinks > div > h3,
.s24-landing-crosslinks__lead {
	margin: 20px 0;
	font-size: 19px;
	line-height: 1.2;
	text-align: left;
}

.s24-landing-crosslinks > div > div { text-align: center; }
.s24-landing-crosslinks > div > div > a { margin-top: 50px; }

.s24-landing-crosslinks::after {
	content: " ";
	display: table;
	clear: both;
}

/* ========== Финальный CTA лендинга ========== */

.s24-landing-doubt-cta {
	margin-top: 75px;
	text-align: center;
}

.s24-landing-doubt-cta > p {
	margin: var(--s24-section-gap) auto 75px auto;
	line-height: var(--s24-lh-tight);
	text-align: center;
	width: 80%;
	font-size: var(--s24-heading-xl);
	text-indent: 0;
}

.s24-landing-doubt-cta > div {
	margin: auto;
	width: 80%;
	max-width: 600px;
	text-align: center;
}

.s24-landing-doubt-cta > div > p {
	margin: 75px var(--s24-space-3);
	font-size: var(--s24-body);
	line-height: 1.5;
	text-indent: 0;
}

.s24-landing-doubt-cta > div > div > a {
	width: 80%;
	max-width: 300px;
	margin: auto;
	border: none;
	box-shadow: none;
	padding: var(--s24-space-3);
	font-size: var(--s24-body);
}

/* ========== Общий аватар (проекты + пользователи) ========== */

/* Аватар участника в карточках проектов / профайлах / комментариях / форуме / отзывах.
   Inline-box + float нужны, чтобы соседний текст «обтекал» аватарку. В чат-пузырях
   позицию берут на себя .s24-chat-bubble__avatar и flex-раскладка, см. s24-projects.css. */
.dialogavatar {
	display: -webkit-inline-box;
	float: left;
	margin-left: 5px;
	margin-right: 0;
}

.dialogavatar > img {
	width: 40px;
	height: 40px;
}

/* ========== Медиа-запросы (компоненты) ========== */

@media (max-width: 1200px) {
	.s24-landing-steps__flow {
		width: 625px;
		margin: auto;
	}
	.s24-landing-steps__segment { margin-bottom: 50px; }
}

@media (max-width: 979px) {
	.s24-landing-crosslinks > span {
		float: none;
		display: block;
	}
	.s24-landing-crosslinks > span > a {
		margin: -35px 0 20px 7%;
	}
	.s24-landing-crosslinks > span > span {
		width: 600px;
		text-align: center;
		margin: 50px auto;
	}
	.s24-landing-crosslinks > span > span > a {
		margin-bottom: var(--s24-space-3);
		font-size: 15px;
	}
	.s24-landing-crosslinks > div {
		float: none;
		margin: auto;
		margin-bottom: 50px;
	}
	/* Скрываем аватары-«пузырьки» в чат-диалогах/форуме на узких экранах,
	   чтобы сэкономить ширину под текст сообщений. Исключения — ситуации,
	   где аватар несёт идентифицирующую инфу и должен быть виден всегда:
	     - .offerowneravatar      — автор отклика на проекте;
	     - .commentavatar         — автор комментария в магазине/отзывах;
	     - .s24-prj-card__avatar  — аватар в карточке списка (юзеры/проекты/магазин). */
	.dialogavatar:not(.offerowneravatar):not(.commentavatar):not(.s24-prj-card__avatar) { display: none; }
}

@media (max-width: 660px) {
	.s24-landing-steps__flow { width: 420px; }

	.s24-landing-video > span { font-size: var(--s24-heading-xl); }

	.s24-landing-crosslinks > div > h2,
	.s24-landing-crosslinks > div > h3,
	.s24-landing-crosslinks__lead { line-height: 20px; }

	.s24-landing-crosslinks > span > span { width: 85%; }
	.s24-landing-crosslinks > span > span > a { margin-bottom: 15px; }
	.s24-landing-crosslinks > div { width: 85%; }

	.s24-landing-doubt-cta > p {
		font-size: var(--s24-heading-md);
		width: 95%;
	}
	.s24-landing-doubt-cta > div { width: 90%; }
}

@media (max-width: 600px) {
	.s24-landing-steps > h2,
	.s24-landing-steps > span,
	.s24-landing-crosslinks > h2 {
		line-height: 1.2;
		font-size: var(--s24-heading-md);
		margin: var(--s24-section-gap-sm) auto;
	}
	.s24-landing-steps__flow { width: 210px; }
	.s24-landing-steps__segment { margin-bottom: 25px; }
	.s24-landing-steps__segment > img { display: none; }

	.s24-landing-reviews > span { font-size: var(--s24-heading-md); }

	.s24-landing-video > span {
		font-size: var(--s24-heading-md);
		margin: var(--s24-section-gap-sm) auto;
	}
	.s24-landing-video > video {
		max-width: 400px;
		width: 95%;
		height: 210px;
	}
	.s24-landing-crosslinks > div { width: 95%; }
}

@media (max-width: 350px) {
	.s24-landing-crosslinks > div { display: none; }
}

/* ==========================================================================
   Переиспользуемые секции (из дизайн-системы 2026).
   Используются на главной, странице заявки и любых лендингах.
   ========================================================================== */

/* ========== Hero ========== */

.s24-hero {
	width: var(--s24-breakout-width);
	margin-left: var(--s24-breakout-shift);
	background: linear-gradient(
		170deg,
		var(--s24-hero-bg-from) 0%,
		var(--s24-hero-bg-via) 60%,
		var(--s24-hero-bg-to) 100%
	);
	padding: 48px 0 64px 0;
	position: relative;
	overflow: hidden;
}

.s24-hero__inner {
	max-width: var(--s24-content-wide);
	margin: 0 auto;
	padding: 0 var(--s24-section-pad);
	display: grid;
	grid-template-columns: 1fr 460px;
	gap: var(--s24-space-12);
	align-items: center;
	position: relative;
	z-index: 1;
}

.s24-hero__title {
	font-size: var(--s24-heading-3xl);
	font-weight: 900;
	color: var(--s24-ink);
	line-height: 1.15;
	margin: 0 0 20px 0;
	letter-spacing: -0.03em;
}

.s24-hero__lead {
	font-size: 1.1875rem;
	color: var(--s24-text-muted);
	line-height: 1.65;
	margin: 0 0 36px 0;
	max-width: 540px;
}

.s24-hero__numbers {
	display: flex;
	gap: var(--s24-space-10);
	margin-bottom: 36px;
}

.s24-hero__sub-note + .s24-hero__numbers {
	margin-top: var(--s24-space-6);
	margin-bottom: 0;
}

.s24-hero__stat {
	display: flex;
	flex-direction: column;
}

.s24-hero__stat strong {
	font-size: 1.75rem;
	font-weight: 900;
	color: var(--s24-primary);
	line-height: 1.2;
}

.s24-hero__stat span {
	font-size: var(--s24-caption);
	color: var(--s24-text-muted);
	margin-top: 2px;
}

.s24-hero__stat-note {
	display: block;
	max-width: 11rem;
	font-size: 0.75rem;
	line-height: 1.35;
	color: var(--s24-text-soft);
	margin-top: var(--s24-space-1);
}

.s24-hero__stat--rating .s24-hero__stat-stars {
	font-size: 1.125rem;
	line-height: 1;
	letter-spacing: 0.12em;
	color: var(--s24-star-color);
	margin-top: 6px;
}

.s24-hero__stat--rating .s24-hero__stat-note {
	max-width: 14rem;
	margin-top: 6px;
	font-size: var(--s24-caption);
	line-height: 1.4;
	color: var(--s24-text-muted);
}

.s24-hero__illustration {
	display: none;
	width: 100%;
	max-width: 340px;
	height: auto;
	margin: 24px auto 0;
}

.s24-hero__card {
	background: #ffffff;
	border-radius: var(--s24-radius-lg);
	padding: 36px 32px;
	box-shadow: 0 20px 60px rgba(15, 23, 42, 0.10), 0 4px 20px rgba(15, 23, 42, 0.05);
	border: 1px solid var(--s24-border);
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.s24-hero__card-head {
	font-size: var(--s24-heading-md);
	font-weight: 800;
	color: var(--s24-ink);
	margin-bottom: var(--s24-space-1);
	text-align: center;
}

.s24-hero__card-sub {
	font-size: 0.92rem;
	color: rgba(13, 29, 74, 0.55);
	text-align: center;
	margin-bottom: var(--s24-space-6);
}

.s24-hero__form {
	display: flex;
	flex-direction: column;
	gap: var(--s24-space-4);
	margin: 0;
	padding: 0;
}

.s24-hero__form > div[style*="display:inline"] {
	display: none !important;
}

/* input[type="hidden"] и так скрыт браузером; оставляем правило как явный маркер намерения,
   без !important (специальных оверрайдов из плагинов в проекте не найдено). */
.s24-hero__form input[type="hidden"] {
	display: none;
}

.s24-hero__form input.s24-hero__input,
.s24-hero__form input[type="text"],
.s24-hero__form input[type="email"],
.s24-hero__form select,
.s24-hero__select {
	width: 100%;
	padding: 14px 18px;
	border: 2px solid var(--s24-border);
	border-radius: var(--s24-radius-md);
	font-size: var(--s24-body);
	line-height: 1.35;
	min-height: 48px;
	background-color: var(--s24-surface);
	color: var(--s24-text);
	transition: border-color var(--s24-transition-fast), box-shadow var(--s24-transition-fast);
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
}

.s24-hero__form input.s24-hero__input:focus,
.s24-hero__form input[type="text"]:focus,
.s24-hero__form input[type="email"]:focus,
.s24-hero__form select:focus,
.s24-hero__select:focus {
	outline: none;
	border-color: var(--s24-border-focus);
	box-shadow: var(--s24-shadow-input-focus);
}

.s24-hero__form .s24-btn.s24-btn--accent {
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	min-height: 52px;
}

.s24-hero__card-note {
	font-size: 0.8125rem;
	color: var(--s24-text-soft);
	text-align: center;
	margin: 12px 0 0 0;
}

.s24-hero__cta-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Hero CTA row (кнопка + ссылка в строку) */
.s24-hero__cta-row {
	display: flex;
	align-items: center;
	gap: var(--s24-space-6);
	flex-wrap: wrap;
}

.s24-hero__how-link {
	font-size: 0.9375rem;
	color: var(--s24-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
	font-weight: 500;
}

.s24-hero__how-link:hover {
	color: var(--s24-ink);
}

.s24-hero__sub-note {
	font-size: 0.8125rem;
	color: var(--s24-text-soft);
	margin-top: var(--s24-space-4);
}

/* Hero trust list (правая колонка — пункты в столбец) */
.s24-hero__trust-list {
	display: flex;
	flex-direction: column;
	gap: var(--s24-space-7);
}

.s24-hero__trust-row {
	display: flex;
	gap: var(--s24-space-4);
	align-items: flex-start;
}

.s24-hero__trust-ico {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--s24-primary) 10%, white);
	flex-shrink: 0;
}

.s24-hero__trust-title {
	font-size: var(--s24-body);
	font-weight: 700;
	color: var(--s24-ink);
	margin-bottom: var(--s24-space-1);
}

.s24-hero__trust-text {
	font-size: var(--s24-caption);
	color: var(--s24-text-muted);
	line-height: 1.5;
}

/* ========== Services (виды работ) ========== */

.s24-services {
	width: var(--s24-breakout-width);
	margin-left: var(--s24-breakout-shift);
	padding: var(--s24-space-section) 0;
	background: var(--s24-surface-alt);
}

.s24-services__grid {
	max-width: var(--s24-content-wide);
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--s24-space-5);
	padding: 0 var(--s24-section-pad);
}

.s24-services__card {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 18px;
	background: var(--s24-surface);
	border: 1px solid var(--s24-border);
	border-radius: var(--s24-radius-lg);
	padding: var(--s24-space-6);
	text-decoration: none;
	color: var(--s24-text);
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.s24-services__card:hover {
	box-shadow: var(--s24-shadow-card-hover);
	border-color: var(--s24-primary-soft);
	text-decoration: none;
}

.s24-services__icon {
	width: 52px;
	height: 52px;
	flex-shrink: 0;
	background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
	border-radius: var(--s24-radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
}

.s24-services__body {
	flex: 1;
	min-width: 0;
}

.s24-services__name {
	font-size: var(--s24-body);
	font-weight: 700;
	color: var(--s24-ink);
	margin-bottom: var(--s24-space-1);
	line-height: 1.3;
}

.s24-services__desc {
	font-size: 0.875rem;
	color: var(--s24-text-muted);
	line-height: 1.45;
	margin: 0;
}

.s24-services__cta {
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--s24-primary);
	margin-top: var(--s24-space-2);
	transition: color var(--s24-transition-fast);
}

.s24-services__card:hover .s24-services__cta {
	color: var(--s24-primary-hover);
}

/* ========== Секция «Почему» (s24-why) ========== */

.s24-why {
	width: var(--s24-breakout-width);
	margin-left: var(--s24-breakout-shift);
	padding: var(--s24-space-section) 0;
	background: var(--s24-surface);
	border-bottom: 1px solid var(--s24-border);
}

.s24-why__inner {
	max-width: var(--s24-content-wide);
	margin: 0 auto;
	padding: 0 var(--s24-section-pad);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--s24-space-16);
	align-items: start;
}

.s24-why__inner--full {
	grid-template-columns: 1fr;
	max-width: var(--s24-content-wide);
}

.s24-why__heading {
	font-size: var(--s24-heading-2xl);
	font-weight: 800;
	color: var(--s24-ink);
	margin: 0 0 32px 0;
	line-height: 1.2;
}

/* Полноширинный блок: heading = секционный заголовок */
.s24-why__inner--full .s24-why__heading {
	text-align: center;
	margin-bottom: var(--s24-space-section-title-mb);
}

.s24-why__list {
	display: flex;
	flex-direction: column;
	gap: var(--s24-space-6);
}

.s24-why__list--grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--s24-space-8);
}

.s24-why__item {
	display: flex;
	gap: var(--s24-space-4);
	align-items: flex-start;
}

.s24-why__icon {
	width: 48px;
	height: 48px;
	border-radius: var(--s24-radius-md);
	background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.s24-why__title {
	font-size: var(--s24-body);
	font-weight: 700;
	color: var(--s24-ink);
	margin-bottom: var(--s24-space-1);
	line-height: 1.3;
}

.s24-why__text {
	font-size: var(--s24-caption);
	color: var(--s24-text-muted);
	line-height: 1.55;
}

.s24-why__stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--s24-space-6);
}

.s24-why__stats--wide {
	grid-template-columns: repeat(4, 1fr);
}

.s24-why__stat {
	background: var(--s24-surface-alt);
	border: 1px solid var(--s24-border);
	border-radius: var(--s24-radius-lg);
	padding: var(--s24-space-7) var(--s24-space-6);
	text-align: center;
}

.s24-why__stat-num {
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 900;
	color: var(--s24-primary);
	line-height: 1;
	margin-bottom: var(--s24-space-2);
	letter-spacing: -0.03em;
	white-space: nowrap;
}

.s24-why__stat-num .s24-why__stat-num-suffix {
	display: inline;
	font-size: 0.38em;
	font-weight: 600;
	color: var(--s24-text-muted);
	opacity: 0.88;
	margin-left: 0.2em;
	vertical-align: 0.12em;
	letter-spacing: 0;
}

.s24-why__stat-label {
	font-size: var(--s24-caption);
	color: var(--s24-text-muted);
	line-height: 1.4;
}

/* ========== Секция «Шаги» (s24-steps) ========== */

.s24-steps {
	width: var(--s24-breakout-width);
	margin-left: var(--s24-breakout-shift);
	padding: var(--s24-space-section) 0;
	background: var(--s24-surface);
	border-bottom: 1px solid var(--s24-border);
}

.s24-steps__track {
	max-width: var(--s24-content-wide);
	margin: 0 auto;
	padding: 0 var(--s24-section-pad);
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

.s24-steps__item {
	flex: 1;
	max-width: 210px;
	text-align: center;
	position: relative;
}

.s24-steps__number {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--s24-primary);
	color: #fff;
	font-size: 1.5rem;
	font-weight: 900;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px auto;
	box-shadow: 0 4px 16px color-mix(in srgb, var(--s24-primary) 30%, transparent);
}

.s24-steps__item > h3 {
	font-size: var(--s24-body);
	font-weight: 700;
	color: var(--s24-ink);
	margin: 0 0 8px 0;
	line-height: 1.3;
}

.s24-steps__item > .s24-steps__text {
	font-size: 0.875rem;
	color: var(--s24-text-muted);
	line-height: 1.5;
	margin: 0;
}

.s24-steps__connector {
	flex: 0 0 40px;
	height: 2px;
	background: var(--s24-border);
	margin-top: var(--s24-space-7);
	align-self: flex-start;
}

/* ========== Секция «Отзывы» (s24-reviews) ==========
   Карточка отзыва: шапка «аватар + имя + звёзды» вынесена на общий компонент
   .s24-person (s24-components.css → 1592). Здесь остаётся только «скин» карточки
   (фон, бордер, текст отзыва, ссылка-проект, дата) и grid-контейнер секции.
   Все размеры/отступы — на дизайн-токенах. */

.s24-reviews {
	width: var(--s24-breakout-width);
	margin-left: var(--s24-breakout-shift);
	padding: var(--s24-space-section) 0;
	background: var(--s24-surface-alt);
}

.s24-reviews__badge {
	display: block;
	text-align: center;
	margin-bottom: var(--s24-space-8);
}

.s24-reviews__badge-rating {
	display: block;
	font-size: var(--s24-heading-md);
	margin-bottom: var(--s24-space-2);
}

.s24-reviews__badge-rating strong {
	font-weight: 800;
	font-size: var(--s24-heading-lg);
	color: var(--s24-ink);
}

.s24-reviews__badge-dim {
	font-weight: 500;
	opacity: 0.7;
}

.s24-reviews__badge-stars {
	display: block;
	color: var(--s24-star-color);
	font-size: var(--s24-heading-md);
	letter-spacing: 3px;
	margin-bottom: var(--s24-space-2);
}

.s24-reviews__badge-sub {
	display: block;
	font-size: var(--s24-body-sm);
	color: var(--s24-text-soft);
	line-height: var(--s24-lh-base);
}

.s24-reviews__grid {
	max-width: var(--s24-content-wide);
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--s24-space-7);
	padding: 0 var(--s24-section-pad);
}

.s24-reviews__card {
	background: var(--s24-surface);
	border: 1px solid var(--s24-border);
	border-radius: var(--s24-radius-lg);
	padding: var(--s24-space-7);
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease;
}

.s24-reviews__card:hover {
	box-shadow: var(--s24-shadow-card-hover);
}

/* .s24-reviews__head теперь — просто margin-утилита на .s24-person.
   Flex/gap берём из компонента, а тут только нижний отступ до текста. */
.s24-reviews__head {
	margin-bottom: var(--s24-space-5);
}

/* Звёзды в карточке отзыва — цвет/размер звёздочки, а не текст-meta. */
.s24-reviews__stars {
	color: var(--s24-star-color);
	font-size: var(--s24-body-sm);
	line-height: 1;
}

.s24-reviews__text {
	font-size: var(--s24-caption);
	color: var(--s24-text);
	line-height: var(--s24-lh-relaxed);
	margin: 0 0 var(--s24-space-5) 0;
	flex: 1;
}

.s24-reviews__project {
	font-size: var(--s24-body-sm);
	color: var(--s24-primary);
	text-decoration: none;
	font-weight: 600;
	margin-bottom: var(--s24-space-2);
}

.s24-reviews__project:hover {
	text-decoration: underline;
}

.s24-reviews__date {
	font-size: var(--s24-caption);
	color: var(--s24-text-soft);
}

/* ----- Модификатор: одиночная карточка отзыва по центру (страница проекта) ----- */
.s24-reviews__grid--single {
	max-width: 680px;
	grid-template-columns: 1fr;
}

/* ----- Карточка-ссылка (похожие работы как сетка вместо карусели) -----
   Наследует s24-reviews__card, но вся карточка — кликабельная ссылка. */
.s24-reviews__card--link {
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	gap: var(--s24-space-2);
}

.s24-reviews__card--link:hover {
	box-shadow: var(--s24-shadow-card-hover);
	text-decoration: none;
}

.s24-reviews__project-type,
.s24-reviews__project-cat {
	font-size: var(--s24-body-sm);
	color: var(--s24-text-soft);
	line-height: var(--s24-lh-base);
}

.s24-reviews__project-title {
	font-size: var(--s24-body);
	color: var(--s24-primary);
	font-weight: 600;
	line-height: var(--s24-lh-base);
	margin-top: var(--s24-space-2);
}

/* ========== Секция «FAQ» (s24-faq) ========== */

.s24-faq {
	width: var(--s24-breakout-width);
	margin-left: var(--s24-breakout-shift);
	padding: var(--s24-space-section) 0;
	background: var(--s24-surface);
}

.s24-faq--inline {
	width: auto;
	margin-left: 0;
	padding: var(--s24-space-8) 0 0;
	background: transparent;
}

.s24-faq--inline .s24-faq__list {
	max-width: none;
	padding: 0;
}

.s24-faq--inline .s24-faq__item {
	background: var(--s24-surface);
}

.s24-faq--inline .s24-section-title {
	text-align: left;
	font-size: var(--s24-heading-lg);
	margin-bottom: var(--s24-space-5);
}

/* FAQ в сайдбаре (.well обеспечивает белый блок) */
.s24-faq-sidebar {
	padding: 0;
	margin-top: var(--s24-space-5);
}

.s24-faq-sidebar .s24-faq__list {
	max-width: none;
	margin: 0;
	padding: 0;
	gap: 0;
}

.s24-faq-sidebar .s24-faq__item {
	border: none;
	border-radius: 0;
	border-bottom: 1px solid var(--s24-border);
}

.s24-faq-sidebar .s24-faq__item:last-child {
	border-bottom: none;
}

.s24-faq-sidebar .s24-faq__question {
	padding: var(--s24-space-4);
	font-size: 0.875rem;
	font-weight: 600;
}

.s24-faq-sidebar .s24-faq__question::after {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.s24-faq-sidebar .s24-faq__answer {
	padding: 0 var(--s24-space-4) var(--s24-space-4);
	font-size: 0.8125rem;
}

.s24-faq__list {
	max-width: 46rem;
	margin: 0 auto;
	padding: 0 var(--s24-section-pad);
	display: flex;
	flex-direction: column;
	gap: var(--s24-space-3);
}

.s24-faq__item {
	background: var(--s24-surface);
	border: 1px solid var(--s24-border);
	border-radius: var(--s24-radius-lg);
	overflow: hidden;
	transition: border-color 0.2s ease;
}

.s24-faq__item[open] {
	border-color: var(--s24-primary-soft);
}

.s24-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--s24-space-5) var(--s24-space-6);
	font-size: 1rem;
	font-weight: 700;
	color: var(--s24-ink);
	cursor: pointer;
	list-style: none;
	user-select: none;
	transition: color var(--s24-transition-fast);
}

.s24-faq__question::-webkit-details-marker { display: none; }

.s24-faq__question::after {
	content: '';
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	margin-left: var(--s24-space-4);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%230f172a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E") center/contain no-repeat;
	transition: transform 0.2s ease;
}

.s24-faq__item[open] > .s24-faq__question::after {
	transform: rotate(180deg);
}

.s24-faq__item[open] > .s24-faq__question {
	color: var(--s24-primary);
}

.s24-faq__answer {
	padding: 0 24px 20px 24px;
	font-size: 0.9375rem;
	line-height: 1.7;
	color: var(--s24-text-muted);
}

/* ========== CTA-баннер (s24-cta-banner) ========== */

.s24-cta-banner {
	width: var(--s24-breakout-width);
	margin-left: var(--s24-breakout-shift);
	background: var(--s24-primary);
	padding: var(--s24-space-section) 0;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.s24-cta-banner__illustration {
	position: absolute;
	left: 5%;
	top: 50%;
	transform: translateY(-50%);
	width: 180px;
	pointer-events: none;
	height: auto;
	opacity: 0.6;
}

.s24-cta-banner__inner {
	max-width: 42rem;
	margin: 0 auto;
	padding: 0 var(--s24-section-pad);
	position: relative;
	z-index: 1;
}

.s24-cta-banner h2 {
	font-size: var(--s24-heading-2xl);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--s24-on-primary);
	margin: 0 0 20px 0;
	line-height: 1.25;
}

.s24-cta-banner__lead {
	font-size: 1.125rem;
	font-weight: 400;
	color: var(--s24-on-primary-soft);
	line-height: 1.65;
	margin: 0 0 36px 0;
	max-width: 32rem;
	margin-left: auto;
	margin-right: auto;
}

.s24-cta-banner__actions {
	margin-bottom: var(--s24-space-7);
	position: relative;
	z-index: 2;
}

.s24-cta-banner .s24-btn.s24-btn--white {
	display: inline-block;
	border-radius: var(--s24-radius-md);
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--s24-primary);
	background: var(--s24-on-primary);
	border: none;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
	position: relative;
	z-index: 3;
	transition: background var(--s24-transition-fast), box-shadow var(--s24-transition-fast);
	pointer-events: auto;
}

.s24-cta-banner .s24-btn.s24-btn--white:hover {
	background: #e2e8f0;
	color: var(--s24-primary-hover);
	transform: translateY(-1px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
}

.s24-cta-banner__trust {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--s24-space-6);
	flex-wrap: wrap;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--s24-on-primary-muted);
}

.s24-cta-banner__trust span:first-child {
	color: #fbbf24;
}

/* ========== Адаптив (общие секции) ========== */

@media (max-width: 1024px) {
	.s24-hero__inner { grid-template-columns: 1fr 420px; gap: 36px; }
}

@media (max-width: 860px) {
	.s24-hero { padding: 80px 0 60px 0; }
	.s24-hero__inner { grid-template-columns: 1fr; text-align: center; }
	.s24-hero__lead { margin-left: auto; margin-right: auto; }
	.s24-hero__numbers { justify-content: center; }
	.s24-hero__illustration { display: block; }
	.s24-hero__cta-row { justify-content: center; }
	.s24-hero__sub-note { text-align: center; }
	.s24-hero__trust-list { margin-top: var(--s24-space-5); text-align: left; }
	.s24-services__grid { grid-template-columns: repeat(2, 1fr); }
	.s24-why__inner { grid-template-columns: 1fr; gap: var(--s24-space-10); }
	.s24-why__stats { grid-template-columns: repeat(4, 1fr); }
	.s24-why__stats--wide { grid-template-columns: repeat(4, 1fr); }
	.s24-why__list--grid { grid-template-columns: 1fr; }
	.s24-reviews__grid { grid-template-columns: repeat(2, 1fr); }
	.s24-steps__track { flex-wrap: wrap; gap: var(--s24-space-8); }
	.s24-steps__connector { display: none; }
	.s24-steps__item { max-width: 170px; }
}

@media (max-width: 600px) {
	:root {
		--s24-space-section: 48px;
		--s24-space-section-title-mb: 32px;
	}
	.s24-hero { padding: 32px 0 40px 0; }
	.s24-hero__title { font-size: clamp(1.5rem, 6vw, 2rem); }
	.s24-hero__numbers { gap: var(--s24-space-6); flex-wrap: wrap; }
	.s24-services__grid { grid-template-columns: 1fr; gap: var(--s24-space-4); }
	.s24-services__card { flex-direction: row; }
	.s24-why__stats { grid-template-columns: 1fr 1fr; }
	.s24-why__stats--wide { grid-template-columns: 1fr 1fr; }
	.s24-steps__track { flex-direction: column; align-items: center; }
	.s24-steps__item { max-width: 300px; }
	.s24-reviews__grid { grid-template-columns: 1fr; }
	.s24-cta-banner { padding: 50px 0; }
	.s24-cta-banner__illustration { display: none; }
}

@media (max-width: 480px) {
	.s24-why__stats { grid-template-columns: 1fr 1fr; }
}

/* ========== SEO-блок (переиспользуемый) ========== */

.s24-seo {
	width: var(--s24-breakout-width);
	margin-left: var(--s24-breakout-shift);
	padding: 64px 0 var(--s24-space-section);
	background: var(--s24-surface-alt);
	border-top: 1px solid var(--s24-border);
}

.s24-seo__inner {
	max-width: 52rem;
	margin: 0 auto;
	padding: 0 var(--s24-section-pad);
	font-size: 0.875rem;
	line-height: 1.75;
	color: var(--s24-text-muted);
	position: relative;
}

.s24-seo__inner h2 {
	font-size: 1.125rem;
	font-weight: 700;
	margin: 32px 0 10px 0;
	color: var(--s24-text);
	line-height: 1.3;
}

.s24-seo__inner h2:first-child {
	margin-top: 0;
}

.s24-seo__inner h3 {
	font-size: 1rem;
	font-weight: 700;
	margin: 24px 0 8px 0;
	color: var(--s24-text);
	line-height: 1.3;
}

.s24-seo__inner p {
	margin: 0 0 12px 0;
}

#main.content section.s24-seo .s24-seo__inner p,
#main.content section.s24-seo .s24-seo__more p {
	text-indent: 0;
	text-align: start;
}

.s24-seo__fade {
	height: 56px;
	margin: -8px 0 0 0;
	background: linear-gradient(to bottom, rgba(247, 248, 251, 0), var(--s24-surface-alt));
	pointer-events: none;
	transition: opacity 0.35s ease, height 0.35s ease, margin 0.35s ease;
}

.s24-seo--expanded .s24-seo__fade {
	opacity: 0;
	height: 0;
	margin: 0;
	overflow: hidden;
}

.s24-seo__more {
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	transition: max-height 0.55s ease, opacity 0.4s ease;
}

.s24-seo:not(.s24-seo--expanded) .s24-seo__more {
	pointer-events: none;
}

.s24-seo--expanded .s24-seo__more {
	max-height: 12000px;
	opacity: 1;
}

.s24-seo__readmore {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 16px auto 0 auto;
	padding: 8px 0;
	border: none;
	background: none;
	font: inherit;
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--s24-primary);
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
	transition: color 0.2s ease;
}

.s24-seo__readmore:hover {
	color: var(--s24-primary-hover);
}

.s24-seo__inner .s24-seo__readmore {
	display: flex;
	justify-content: center;
	width: 100%;
	max-width: 12rem;
}

/* ==========================================================================
   Bridge: legacy mainblock* -> semantic s24-landing-*
   Нужен для _alt/_bot шаблонов, которые ещё не обновлены.
   Удалить когда все шаблоны перейдут на s24-* классы.
   ========================================================================== */

.mainblock2 { text-align: center; margin: var(--s24-section-gap) 0; display: table; }
.mainblock2 > p,
.mainblock2 > h2 { font-size: var(--s24-heading-xl); line-height: var(--s24-lh-tight); font-family: inherit; font-weight: 100; text-indent: 0; margin-bottom: var(--s24-section-gap-sm); }
.mainblock2 > div > div > div { width: 50%; margin: auto; float: left; padding: 2% 0; }
.mainblock2 > div > div > div > span { display: inline-block; vertical-align: bottom; width: calc(100% - 175px); text-align: justify; margin: 5px 0; }
.mainblock2 > div > div > div > span > a { text-decoration: underline; }
.mainblock2 > div > div > div > img { margin: var(--s24-space-2) 30px var(--s24-space-3) 30px; height: 65px; opacity: 0.95; transition: margin var(--s24-transition-base); }
.mainblock2 > div > div > div:hover > img { margin: var(--s24-space-2) 20px var(--s24-space-3) 20px; }
.mainblock2 > div > div > div > span > div { display: block; font-size: var(--s24-heading-md); margin-bottom: var(--s24-space-3); }

@media (max-width: 979px) {
	.mainblock2 > div > div > div { display: inline-block; width: 100%; margin-bottom: var(--s24-space-5); padding: 0; }
}
@media (max-width: 600px) {
	.mainblock2 > p, .mainblock2 > h2 { font-size: var(--s24-heading-md); line-height: 20px; margin-bottom: var(--s24-section-gap-sm); }
	.mainblock2 > div > div > div > img { display: none; }
	.mainblock2 > div > div > div > span { width: calc(100% - 50px); text-align: justify; }
	.mainblock2 > div > div > div > span > div { font-size: var(--s24-body-sm); font-weight: bold; margin: var(--s24-space-3) 0; text-align: left; }
}

.mainblock1 { margin: var(--s24-section-gap) 0; text-align: center; }
.mainblock1 > h2,
.mainblock1 > span { margin-bottom: var(--s24-section-gap); text-align: center; font-size: var(--s24-heading-xl); line-height: var(--s24-lh-tight); display: block; }
.mainblock1 > div > div > div > img { transition: opacity var(--s24-transition-base) 0.25s; }
.mainblock1 > div > div > div > span { width: 74%; margin: 5px auto; display: block; transition: opacity var(--s24-transition-base) 0.25s; font-weight: bold; }
.mainblock1 > div > div { display: inline-flex; }
.mainblock1 > div > div > div:hover > img,
.mainblock1 > div > div > div:hover > span { transition: opacity var(--s24-transition-base); opacity: 0; }
.mainblock1 > div > div > div:hover > p { opacity: 1; transition: opacity var(--s24-transition-base) 0.25s; }
.mainblock1 > div > div > div > p { margin: 15px 0 0 0; position: absolute; text-align: center; opacity: 0; text-indent: 0; width: 150px; padding: 7px; display: block; transition: opacity var(--s24-transition-base); }
.mainblock1 > div > div > div { text-align: center; width: 160px; padding: 9px; }
.mainblock1 > div > div > img { margin: 40px 0 50px; height: 40px; width: 20px; }

@media (max-width: 1200px) {
	.mainblock1 > div { width: 625px; margin: auto; }
	.mainblock1 > div > div { margin-bottom: 50px; }
}
@media (max-width: 660px) {
	.mainblock1 > div { width: 420px; }
}
@media (max-width: 600px) {
	.mainblock1 > h2, .mainblock1 > span { line-height: 1.2; font-size: var(--s24-heading-md); margin: var(--s24-section-gap-sm) auto; }
	.mainblock1 > div { width: 210px; }
	.mainblock1 > div > div { margin-bottom: 25px; }
	.mainblock1 > div > div > img { display: none; }
}

.mainblock4 { text-align: center; margin: var(--s24-section-gap) 0; height: 22pc; }
.mainblock4 > span { font-size: var(--s24-heading-xl); line-height: 1.2; margin-bottom: 70px; width: 80%; display: block; margin-left: auto; margin-right: auto; }

.mainblock6 { margin: var(--s24-section-gap) auto; text-align: center; }
.mainblock6 > span { font-size: var(--s24-heading-xl); margin: 75px auto; line-height: 1.2; text-align: center; width: 80%; display: block; }
.mainblock6 > video { margin: auto; max-width: 560px; width: 80%; height: 315px; }

.mainblock8 { margin-top: var(--s24-section-gap); }
.mainblock8 > h2 { margin-bottom: var(--s24-section-gap); text-align: center; font-size: var(--s24-heading-xl); line-height: var(--s24-lh-tight); display: block; }
.mainblock8 > span { display: table; float: left; }
.mainblock8 > span > a { margin: -5px 0 18px var(--s24-space-3); display: block; font-size: 12px; cursor: pointer; }
.mainblock8 > span > span { width: 250px; padding: var(--s24-space-3); margin: 15px 35px 15px var(--s24-space-3); border-radius: var(--s24-radius-sm); background-color: var(--s24-surface-alt); display: block; max-height: 207px; overflow: hidden; }
.mainblock8 > span > span:first-of-type { margin-top: 0; }
.mainblock8 > span > span > a { display: block; padding: 5px; margin: var(--s24-space-1); font-size: var(--s24-caption); }
.mainblock8 > div { width: 600px; text-align: justify; float: right; }
.mainblock8 > div > h2, .mainblock8 > div > h3 { margin: 20px 0; font-size: 19px; line-height: 1.2; text-align: left; }
.mainblock8 > div > div { text-align: center; }
.mainblock8 > div > div > a { margin-top: 50px; }
.mainblock8::after { content: " "; display: table; clear: both; }

@media (max-width: 979px) {
	.mainblock8 > span { float: none; display: block; }
	.mainblock8 > span > a { margin: -35px 0 20px 7%; }
	.mainblock8 > span > span { width: 600px; text-align: center; margin: 50px auto; }
	.mainblock8 > span > span > a { margin-bottom: var(--s24-space-3); font-size: 15px; }
	.mainblock8 > div { float: none; margin: auto; margin-bottom: 50px; }
}
@media (max-width: 660px) {
	.mainblock8 > div > h2, .mainblock8 > div > h3 { line-height: 20px; }
	.mainblock8 > span > span { width: 85%; }
	.mainblock8 > span > span > a { margin-bottom: 15px; }
	.mainblock8 > div { width: 85%; }
}
@media (max-width: 600px) {
	.mainblock8 > div { width: 95%; }
	.mainblock4 > span { font-size: var(--s24-heading-md); }
	.mainblock6 > span { font-size: var(--s24-heading-md); margin: var(--s24-section-gap-sm) auto; }
	.mainblock6 > video { max-width: 400px; width: 95%; height: 210px; }
}
@media (max-width: 350px) {
	.mainblock8 > div { display: none; }
}

/* ========== Модальные окна (Bootstrap 2 bridge → s24) ========== */

.modal {
	border-radius: var(--s24-radius-lg);
	border: none;
	box-shadow: var(--s24-shadow-elevated);
	overflow: hidden;
}

.modal .modal-header {
	background: var(--s24-surface);
	border-bottom: none;
	padding: var(--s24-space-4) var(--s24-space-6);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s24-space-4);
}

.modal .modal-header h3 {
	font-family: var(--s24-font-family);
	font-size: var(--s24-heading-sm);
	font-weight: 700;
	color: var(--s24-ink);
	margin: 0;
	flex: 1;
	min-width: 0;
	text-align: left;
}

/* Единая кнопка «Закрыть» в шапке Bootstrap-модалок.
   `.s24-modal__close` — каноническое BEM-имя, используется в редизайненных шаблонах.
   `.s24-modal-dismiss` — legacy-алиас, сохранён для уже мигрированных мест.
   В confirm (.s24-confirm) крестика больше нет — закрытие через футер/backdrop. */
.s24-modal__close,
.s24-modal-dismiss,
.modal .modal-header .close,
.modal .modal-header a[data-dismiss="modal"],
.modal .modal-header button[data-dismiss="modal"] {
	float: none;
	margin: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 14px;
	border-radius: var(--s24-radius-md);
	font-size: var(--s24-caption);
	font-weight: 600;
	font-family: var(--s24-font-family);
	color: var(--s24-text-muted);
	opacity: 1;
	text-shadow: none;
	text-decoration: none;
	border: 1px solid var(--s24-border);
	background: transparent;
	box-shadow: none;
	transition: color var(--s24-transition-fast), background var(--s24-transition-fast), border-color var(--s24-transition-fast);
	flex-shrink: 0;
	cursor: pointer;
}

.s24-modal__close:hover,
.s24-modal-dismiss:hover,
.modal .modal-header .close:hover,
.modal .modal-header a[data-dismiss="modal"]:hover,
.modal .modal-header button[data-dismiss="modal"]:hover,
.s24-modal__close:focus-visible,
.s24-modal-dismiss:focus-visible,
.modal .modal-header .close:focus-visible,
.modal .modal-header a[data-dismiss="modal"]:focus-visible,
.modal .modal-header button[data-dismiss="modal"]:focus-visible {
	color: var(--s24-ink);
	background: var(--s24-surface-alt);
	border-color: var(--s24-border-strong);
	outline: none;
}

.modal .modal-body {
	padding: var(--s24-space-6);
	font-family: var(--s24-font-family);
	font-size: var(--s24-caption);
	color: var(--s24-text);
	line-height: var(--s24-lh-relaxed);
	overflow-x: hidden;
}

/* Формы в модалках — обёртки без собственного отступа, чтобы не «распирали»
   modal-body поверх его padding. Заменяет легаси-класс `margin0` на <form>. */
.modal .modal-body form {
	margin: 0;
}

.modal .modal-body .table {
	width: 100%;
	margin-bottom: 0;
	table-layout: fixed;
}

.modal .modal-body .table td {
	border: none;
	padding: var(--s24-space-2) 0;
	vertical-align: top;
	padding-top: 14px;
}

/* Только первая колонка в двухколоночных строках — не трогаем colspan (иначе nowrap ломает текст) */
.modal .modal-body .table td:first-child:not([colspan]) {
	width: 120px;
	font-size: var(--s24-caption);
	color: var(--s24-text-muted);
	font-weight: 600;
	white-space: normal;
	word-break: break-word;
	padding-right: var(--s24-space-2);
	overflow: visible;
}

.modal .modal-body .table td:last-child input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
.modal .modal-body .table td:last-child textarea {
	width: 100%;
	box-sizing: border-box;
}

.modal .modal-body .table td[colspan] {
	width: 100%;
}

.modal .modal-body .table td[colspan] input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
.modal .modal-body .table td[colspan] textarea {
	width: 100%;
	box-sizing: border-box;
}

.modal .modal-body .table .btn {
	margin-top: var(--s24-space-2);
}

/* SMS modal: мета-текст под textarea, кнопка справа */
.modal .modal-body .s24-modal-sms-cell {
	overflow: hidden;
	max-width: 100%;
}

.modal .modal-body .s24-modal-sms-meta {
	margin-top: var(--s24-space-2);
	font-size: var(--s24-caption);
	color: var(--s24-text-muted);
	line-height: 1.5;
	word-wrap: break-word;
	overflow-wrap: break-word;
	max-width: 100%;
}

.modal .modal-body .s24-modal-sms-actions {
	margin-top: var(--s24-space-3);
	text-align: right;
}

.modal .modal-body .s24-modal-sms-actions .btn {
	margin-top: 0;
}

/* Добавление уведомления (plugin `notification`, users.details admin): узкая label-ячейка слева. */
.modal .modal-body .table .s24-notification-form__label-cell {
	width: 100px;
	white-space: nowrap;
	vertical-align: middle;
	color: var(--s24-ink);
}

@media (max-width: 480px) {
	.modal .modal-body .table .s24-notification-form__label-cell {
		width: auto;
		white-space: normal;
	}
}

/* Зачисление/списание (PenaltyForm): сумма+валюта в одну линию; описание — на всю ширину модалки (без сетки лейбл|поле) */
.modal .modal-body .s24-penalty-modal {
	display: flex;
	flex-direction: column;
	gap: var(--s24-space-4);
}

.modal .modal-body .s24-penalty-modal .s24-penalty-inline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--s24-space-2);
}

.modal .modal-body .s24-penalty-modal .s24-penalty-inline :is(input, select) {
	width: auto;
	max-width: 100%;
	flex: 0 0 auto;
}

.modal .modal-body .s24-penalty-modal__description :is(input, textarea) {
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

/* Модалки: шрифт текста в footer/body для единообразия с системой типографики. */
.modal .modal-footer,
.modal .modal-body .btn {
	font-family: var(--s24-font-family);
}

.modal-backdrop {
	background: var(--s24-overlay-dark);
}

/* Поля ввода в модалках — базовый стиль из s24-forms.css (единые правила).
   Здесь только модалко-специфичные отличия. */
.modal .modal-body textarea {
	min-height: 120px;
}

.modal .modal-body select {
	padding-right: 36px;
}

/* Убираем старую table-вёрстку внутри модалок */
.modal .modal-body .customform .table,
.modal .modal-body .s24-notification-admin-form .table {
	width: 100%;
	margin-bottom: 0;
}

.modal .modal-body .customform .table td,
.modal .modal-body .s24-notification-admin-form .table td {
	border: none;
	padding: var(--s24-space-2) 0;
	vertical-align: top;
	font-size: var(--s24-caption);
}

/* Модалки с .s24-form__body (напр. ручной возврат): сетка из s24-forms — чуть шире колонка лейблов под длинный текст */
.modal .modal-body .s24-form__body table > tbody > tr {
	grid-template-columns: minmax(168px, 240px) minmax(0, 1fr);
}

/* Ручной возврат и др.: поле во второй колонке сетки на всю ширину ячейки */
.modal .modal-body .s24-form__body table > tbody > tr > td:nth-child(2) > :is(input, select, textarea) {
	width: 100%;
	min-width: 0;
}

@media (max-width: 767px) {
	.modal .modal-body .s24-form__body table > tbody > tr {
		grid-template-columns: 1fr;
		gap: var(--s24-space-1);
	}
}

/* ========== Confirm-диалог (.s24-confirm) ========== */

.s24-confirm-backdrop {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	z-index: 1055;
	background: rgba(15, 23, 42, 0.4);
}

.s24-confirm {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 1060;
	background: var(--s24-surface);
	border-radius: var(--s24-radius-lg);
	box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18);
	width: min(420px, calc(100vw - 2rem));
	overflow: hidden;
	font-family: var(--s24-font-family);
}

.s24-confirm__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--s24-space-6) var(--s24-space-8) var(--s24-space-3);
}

.s24-confirm__title {
	font-size: var(--s24-heading-sm);
	font-weight: 700;
	color: var(--s24-ink);
}

.s24-confirm__body {
	padding: var(--s24-space-4) var(--s24-space-8);
	font-size: var(--s24-caption);
	color: var(--s24-text);
	line-height: var(--s24-lh-relaxed);
}

/* Промо-код в тексте confirm (plugins/promo/tpl/promo.project.add.tpl) */
.s24-confirm__body .s24-promo-code-line {
	display: block;
	margin: var(--s24-space-2) 0;
	font-size: var(--s24-body-sm);
	font-weight: 700;
	line-height: 1.35;
	color: var(--s24-ink);
	word-break: break-word;
}

.s24-confirm__footer {
	display: flex;
	justify-content: flex-end;
	gap: var(--s24-space-3);
	padding: var(--s24-space-6) var(--s24-space-8) var(--s24-space-6);
}

/* Радио-кнопки внутри confirm */
.s24-confirm__body .radio {
	display: block;
	padding: var(--s24-space-2) 0;
	font-size: var(--s24-caption);
	color: var(--s24-text);
	cursor: pointer;
}

.s24-confirm__body .radio input[type="radio"] {
	margin-right: var(--s24-space-2);
	accent-color: var(--s24-primary);
}

/* ========== Notify-тосты (.s24-notify) ========== */

.s24-notify {
	position: fixed;
	top: calc(var(--s24-header-height, 64px) + 16px);
	right: 16px;
	left: auto;
	transform: none;
	z-index: 1060;
	background: #fff;
	color: var(--s24-ink, #0d1d4a);
	border: 1px solid var(--s24-border, #e2e8f0);
	border-left: 4px solid var(--s24-primary, #1d4ed8);
	border-radius: var(--s24-radius-md);
	box-shadow: 0 4px 24px rgba(15, 23, 42, 0.14), 0 1px 3px rgba(15, 23, 42, 0.06);
	min-width: 280px;
	max-width: 420px;
	width: auto;
	padding: var(--s24-space-5) var(--s24-space-6);
	text-align: left;
	font-family: var(--s24-font-family);
}

.s24-notify--success {
	border-left-color: var(--s24-accent, #16a34a);
}

.s24-notify--error {
	border-left-color: var(--s24-danger, #dc2626);
}

.s24-notify--warning {
	border-left-color: #f59e0b;
}

.s24-notify__close {
	display: block;
	position: absolute;
	top: 12px;
	right: 12px;
	width: 22px;
	height: 22px;
	cursor: pointer;
	opacity: 0.35;
	transition: opacity var(--s24-transition-fast);
	border-radius: 4px;
}

.s24-notify__close:hover {
	opacity: 0.7;
}

.s24-notify__close::before,
.s24-notify__close::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 2px;
	background: var(--s24-ink, #0d1d4a);
	border-radius: 1px;
}

.s24-notify__close::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.s24-notify__close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.s24-notify__text {
	color: var(--s24-ink, #0d1d4a);
	font-size: 0.875rem;
	line-height: 1.5;
	padding-right: var(--s24-space-7);
}

.s24-notify__link {
	display: inline-block;
	margin-top: var(--s24-space-2);
	color: var(--s24-primary, #1d4ed8);
	text-decoration: underline;
	text-underline-offset: 2px;
	font-size: 0.875rem;
	padding: 2px 0;
}

.s24-notify__link:hover {
	color: var(--s24-ink, #0d1d4a);
}

/* ========== Чекбоксы ========== */

input[type="checkbox"] {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	min-width: 20px;
	min-height: 20px;
	border: 2px solid var(--s24-border, #e2e8f0);
	border-radius: var(--s24-radius-sm);
	background: #fff;
	background-image: none;
	cursor: pointer;
	vertical-align: middle;
	position: relative;
	flex-shrink: 0;
	margin: 0;
	padding: 0;
	outline: none;
	float: none;
	box-shadow: none;
	transition: background var(--s24-transition-fast), border-color var(--s24-transition-fast);
}

/* Disable legacy bootstrap pseudo-checkbox rendering */
input[type="checkbox"]::before,
input[type="checkbox"]:checked::before {
	content: none;
	display: none;
}

input[type="checkbox"]:checked {
	background: var(--s24-primary, #1d4ed8);
	border-color: var(--s24-primary, #1d4ed8);
}

input[type="checkbox"]:checked::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: translate(-50%, -62%) rotate(45deg);
}

input[type="checkbox"]:hover {
	border-color: color-mix(in srgb, var(--s24-primary, #1d4ed8) 50%, var(--s24-border, #e2e8f0));
}

input[type="checkbox"]:focus-visible {
	outline: 2px solid color-mix(in srgb, var(--s24-primary, #1d4ed8) 40%, transparent);
	outline-offset: 2px;
}

/* Подпись рядом с чекбоксом/радио внутри <label> — по вертикали по центру от контрола */
label:has(input[type="checkbox"]),
label:has(input[type="radio"]) {
	display: flex;
	align-items: center;
	gap: var(--s24-space-2);
	cursor: pointer;
}

/* ========== Review Stars (interactive rating) ========== */
.reviewStars-groups {
	position: relative;
	float: left;
}

.reviewStars-groups::after {
	content: "";
	display: table;
	clear: both;
}

.reviewStars-groups input {
	opacity: 0;
	width: 24px;
	height: 24px;
	position: absolute;
	top: 0;
	z-index: 2;
	margin: 0;
	cursor: pointer;
}

.reviewStars-groups label {
	float: right;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 1.25rem;
	min-height: 1.25rem;
	padding: 1px 3px;
	cursor: pointer;
	position: relative;
	z-index: 1;
}

.reviewStars-groups label::after {
	content: "\2605";
	font-size: var(--s24-star-size);
	line-height: 1;
	display: block;
	color: var(--s24-star-empty);
}

.reviewStars-groups input:checked ~ label::after {
	color: var(--s24-star-color);
}

.reviewStars-groups:hover label::after {
	color: var(--s24-star-empty);
}

.reviewStars-groups:hover label:hover::after,
.reviewStars-groups:hover label:hover ~ label::after {
	color: var(--s24-star-color);
}

.reviewStars-groups .star-0 { left: 4px; }
.reviewStars-groups .star-1 { left: 30px; }
.reviewStars-groups .star-2 { left: 56px; }
.reviewStars-groups .star-3 { left: 82px; }
.reviewStars-groups .star-4 { left: 108px; }
.reviewStars-groups .star-5 { left: 134px; }

/* ========== Star rating (Unicode ★) ========== */
.s24-stars {
	display: inline-flex;
	gap: 1px;
	vertical-align: middle;
	line-height: 1;
	font-size: var(--s24-star-size);
	letter-spacing: 2px;
}
.s24-star--full {
	color: var(--s24-star-color);
}
.s24-star--half {
	background: linear-gradient(90deg, var(--s24-star-color) 50%, #ddd 50%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}
.s24-star--empty {
	color: var(--s24-star-empty);
}

/* ========== Strikes / fire icons ========== */
.fire-icon {
	background-size: 30px;
	background-repeat: no-repeat;
	height: 30px;
	display: inline-block;
	width: 30px;
	margin: 0 15px;
	opacity: 0.9;
}
.fire-on-icon {
	background-image: url(../../../images/icons/fire/fire4.png);
}
.fire-off-icon {
	background-image: url(../../../images/icons/fire/fire5.png);
}
.faq-icon {
	background: url(../../../images/icons/default/faq2-icon.png) 0 0 no-repeat;
	background-size: 14px;
	width: 14px;
	height: 14px;
	display: inline-block;
	opacity: 0.6;
	position: absolute;
	margin-left: var(--s24-space-1);
	margin-top: 2px;
	cursor: help;
}
.faq-icon:hover {
	opacity: 0.9;
}

/* ========== Тултипы (Bootstrap 2 bridge → s24) ========== */

/* Base (ex-Bootstrap): position, z-index, visibility */
.tooltip {
	position: absolute;
	z-index: 1052;
	display: block;
	padding: 5px;
	font-size: var(--s24-label);
	opacity: 0;
}
.tooltip.in {
	opacity: 1;
}
.tooltip.top    { margin-top: -3px; }
.tooltip.right  { margin-left: 3px; }
.tooltip.bottom { margin-top: 3px; }
.tooltip.left   { margin-left: -3px; }

.tooltip-inner {
	font-family: var(--s24-font-family);
	font-size: var(--s24-label);
	font-weight: 500;
	padding: 6px 12px;
	border-radius: var(--s24-radius-sm);
	background: var(--s24-surface);
	color: var(--s24-text);
	border: 1px solid var(--s24-border);
	max-width: 260px;
	line-height: var(--s24-lh-base);
	box-shadow: var(--s24-shadow-card);
	text-align: center;
}

.tooltip-arrow {
	position: absolute;
	width: 0;
	height: 0;
	border-color: transparent;
	border-style: solid;
}
.tooltip.top .tooltip-arrow {
	bottom: 0;
	left: 50%;
	margin-left: -5px;
	border-top-color: var(--s24-surface);
	border-width: 5px 5px 0;
}
.tooltip.right .tooltip-arrow {
	top: 50%;
	left: 0;
	margin-top: -5px;
	border-right-color: var(--s24-surface);
	border-width: 5px 5px 5px 0;
}
.tooltip.left .tooltip-arrow {
	top: 50%;
	right: 0;
	margin-top: -5px;
	border-left-color: var(--s24-surface);
	border-width: 5px 0 5px 5px;
}
.tooltip.bottom .tooltip-arrow {
	top: 0;
	left: 50%;
	margin-left: -5px;
	border-bottom-color: var(--s24-surface);
	border-width: 0 5px 5px;
}

/* ========== Поповеры (Bootstrap 2 bridge → s24) ========== */

/* Base (ex-Bootstrap): position, z-index, arrow geometry */
.popover {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1052;
	display: none;
	min-width: 200px;
	max-width: 320px;
	padding: 1px;
	text-align: left;
	white-space: normal;
	font-family: var(--s24-font-family);
	/* Триггер часто внутри <h3> (insertAfter) — сброс наследования жирного с заголовка */
	font-weight: 400;
	background-color: var(--s24-surface);
	border: 1px solid var(--s24-border);
	border-radius: var(--s24-radius-md);
	box-shadow: var(--s24-shadow-elevated);
	background-clip: padding-box;
}
.popover.top    { margin-top: -10px; }
.popover.right  { margin-left: 10px; }
.popover.bottom { margin-top: 10px; }
.popover.left   { margin-left: -10px; }

.popover-inner {
	padding: 0;
	margin: 0;
	background: var(--s24-surface);
	border-radius: var(--s24-radius-md);
	overflow: hidden;
}

.popover-title {
	font-family: var(--s24-font-family);
	font-size: var(--s24-caption);
	font-weight: 700;
	color: var(--s24-ink);
	background: var(--s24-surface-alt);
	border-bottom: 1px solid var(--s24-border);
	padding: var(--s24-space-3) var(--s24-space-4) var(--s24-space-2);
	border-radius: var(--s24-radius-md) var(--s24-radius-md) 0 0;
	margin: 0;
	line-height: var(--s24-lh-base);
}

.popover-content {
	font-family: var(--s24-font-family);
	font-size: var(--s24-label);
	font-weight: 400;
	color: var(--s24-text);
	background: var(--s24-surface);
	/* Меньше зазор под линией заголовка: было space-3 + space-3 от заголовка */
	padding: var(--s24-space-2) var(--s24-space-4) var(--s24-space-3);
	line-height: var(--s24-lh-relaxed);
	border-radius: 0 0 var(--s24-radius-md) var(--s24-radius-md);
	margin: 0;
}

/* Без заголовка: BS3 очищает title и .hide() на .popover-title — скругляем верх блока с текстом */
.popover:has(> .popover-title:empty) > .popover-content,
.popover-inner:has(> .popover-title:empty) > .popover-content {
	border-radius: var(--s24-radius-md);
}

.popover .arrow,
.popover .arrow::after {
	position: absolute;
	display: block;
	width: 0;
	height: 0;
	border-color: transparent;
	border-style: solid;
}
.popover .arrow       { border-width: 11px; }
.popover .arrow::after { border-width: 10px; content: ""; }

.popover.top .arrow {
	bottom: -11px;
	left: 50%;
	margin-left: -11px;
	border-top-color: rgba(0,0,0,0.15);
	border-bottom-width: 0;
}
.popover.top .arrow::after {
	bottom: 1px;
	margin-left: -10px;
	border-top-color: var(--s24-surface);
	border-bottom-width: 0;
}
.popover.right .arrow {
	top: 50%;
	left: -11px;
	margin-top: -11px;
	border-right-color: rgba(0,0,0,0.15);
	border-left-width: 0;
}
.popover.right .arrow::after {
	bottom: -10px;
	left: 1px;
	border-right-color: var(--s24-surface);
	border-left-width: 0;
}
.popover.bottom .arrow {
	top: -11px;
	left: 50%;
	margin-left: -11px;
	border-bottom-color: rgba(0,0,0,0.15);
	border-top-width: 0;
}
.popover.bottom .arrow::after {
	top: 1px;
	margin-left: -10px;
	border-bottom-color: var(--s24-surface);
	border-top-width: 0;
}
.popover.left .arrow {
	top: 50%;
	right: -11px;
	margin-top: -11px;
	border-left-color: rgba(0,0,0,0.15);
	border-right-width: 0;
}
.popover.left .arrow::after {
	right: 1px;
	bottom: -10px;
	border-left-color: var(--s24-surface);
	border-right-width: 0;
}

/* ── Utility: secondary text ── */
.s24-text-secondary {
	color: var(--s24-text-secondary);
	font-size: var(--s24-caption);
}

/* ── Utility: dashed underline hint (popover trigger) ── */
.s24-hint-dashed {
	border-bottom: 1px dashed var(--s24-text-secondary);
	cursor: default;
}

/* ── Partner: sub-statistics table ── */
.s24-partner-subs {
	width: 100%;
	text-align: left;
	margin-top: var(--s24-space-5);
}
.s24-partner-subs td {
	padding: var(--s24-space-1) 0;
}

/* ── Partner: social share buttons ── */
.s24-partner-socials {
	display: flex;
	justify-content: center;
	gap: var(--s24-space-2);
}
.s24-partner-social {
	width: 30px;
	height: 30px;
	display: inline-block;
	border-radius: 50%;
	cursor: pointer;
	transition: filter var(--s24-transition-fast);
	background-repeat: no-repeat;
	background-size: 20px;
	background-position: 5px 5px;
}
.s24-partner-social:hover {
	filter: brightness(0.85);
}
.s24-partner-social--vk {
	background-color: #6794c8;
	background-image: url(../../../images/socials/vk50w-min.png);
}
.s24-partner-social--fb {
	background-color: #5977ba;
	background-image: url(../../../images/socials/f50w-min.png);
}
.s24-partner-social--tg {
	background-color: #2ca5e0;
	background-image: url(../../../images/socials/tg50w-min.png);
	background-size: 18px;
	background-position: 5px 6px;
}
.s24-partner-social--ok {
	background-color: #f18d3e;
	background-image: url(../../../images/socials/ok50w-min.png);
	background-size: 18px;
	background-position: 6px 6px;
}
.s24-partner-social--tw {
	background-color: #43bdef;
	background-image: url(../../../images/socials/tw50w-min.png);
	background-size: 22px;
}

/* ═════════════════════════════════════════════════════════════════════════
   SBR (plugins/sbr/tpl/sbr.tpl) — точечная замена bootstrap-утилит
   (pull-right, btn-group pull-right, width95, paddingtop10) на
   семантические классы. Страница остаётся на легаси-Bootstrap; тут только
   те утилитарные правила, что нужны, чтобы убрать HTML-классы-утилиты из
   шаблона без смены внешнего вида.
   ═════════════════════════════════════════════════════════════════════════ */

/* Статус-лейбл в правом верхнем углу заголовка сделки (ex .pull-right.paddingtop10). */
.s24-sbr-status-flag {
	float: right;
	padding-top: var(--s24-space-2);
}

/* Блок действий по этапу (дропдаун «Меню этапа»/кнопка «Претензия») — ex .pull-right.
   Вложенный .btn-group рендерится inline-block, float:right на обёртке двигает его вправо. */
.s24-sbr-stage-actions {
	float: right;
}

/* Кнопка «Вынести решение» в alert-блоке претензии (ex .btn.btn-danger.pull-right).
   Справа, дальше в разметке стоит .clear для сброса потока. */
.s24-sbr-claim-decision-btn {
	float: right;
}

/* Textarea добавления поста в историю этапа (ex .width95). */
.s24-sbr-posts-textarea {
	width: 95%;
}

/* Крестик удаления вложения в динамически добавляемой строке файла (ex .pull-right в JS). */
.s24-sbr-postfile-remove {
	float: right;
}

/* ═════════════════════════════════════════════════════════════════════════
   #ReviewAddModal (plugins/reviews/tpl/reviews.projects.offers.addreview.tpl)
   — форма «Добавить отзыв» на странице проекта.
   ═════════════════════════════════════════════════════════════════════════ */
#ReviewAddModal .s24-review-modal-form {
	margin: 0;
}

#ReviewAddModal .s24-review-modal-form .s24-review-field {
	padding: var(--s24-space-2) 0;
}

/* ═════════════════════════════════════════════════════════════════════════
   ТОП-авторы (projects.add_unreg.tpl → s24-top-authors)
   Карточка в стиле s24-reviews__card, но горизонтальная: аватар слева,
   имя/звёзды/описание справа. Используется только на лендинге заказа.
   ═════════════════════════════════════════════════════════════════════════ */
.s24-top-authors {
	padding: var(--s24-section-pad, 32px) 0;
}

.s24-top-authors__grid {
	max-width: var(--s24-content-wide);
	margin: var(--s24-space-6, 24px) auto 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--s24-space-7, 24px);
	padding: 0 var(--s24-section-pad, 16px);
}

.s24-top-authors__card {
	padding: var(--s24-space-5, 18px);
}

.s24-top-authors__works {
	margin-top: var(--s24-space-2);
}

.s24-top-authors__text {
	margin-top: var(--s24-space-2);
}

@media (max-width: 1024px) {
	.s24-top-authors__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.s24-top-authors__grid { grid-template-columns: 1fr; }
}

.s24-author-card {
	background: var(--s24-surface);
	border: 1px solid var(--s24-border);
	border-radius: var(--s24-radius-lg);
	padding: var(--s24-space-6, 20px);
	display: flex;
	gap: var(--s24-space-5, 16px);
	transition: box-shadow 0.2s ease;
}

.s24-author-card:hover { box-shadow: var(--s24-shadow-card-hover); }

.s24-author-card__avatar {
	flex: 0 0 72px;
	display: block;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	overflow: hidden;
}

.s24-author-card__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.s24-author-card__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.s24-author-card__name {
	font-weight: 600;
	color: var(--s24-text, inherit);
	text-decoration: none;
	line-height: 1.25;
}
.s24-author-card__name:hover { text-decoration: underline; }

.s24-author-card__stars {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.875rem;
}

.s24-author-card__rating {
	color: var(--s24-text-muted, #6b7280);
}

.s24-author-card__meta {
	font-size: 0.8125rem;
	color: var(--s24-text-muted, #6b7280);
}

.s24-author-card__text {
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--s24-text, inherit);
	margin-top: 4px;
	word-break: break-word;
}

.s24-author-card__more {
	white-space: nowrap;
}

/* ═════════════════════════════════════════════════════════════════════════
   mavatars — чипы загруженных файлов
   (plugin/mavatars/tpl/mavatars.form.tpl). Используется в:
   - диалоге проекта (s24-dialog-dndfiles)
   - гостевой форме заказа (projects.add_unreg*, add_yandex/vk/google)
   - профиле (users.details, портфолио)
   Глобальный компонент (без @scope), т.к. рендерится в разных контекстах.
   ═════════════════════════════════════════════════════════════════════════ */

.mavatar_uploadform {
	min-width: 0;
}

.s24-mavatar-chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s24-space-2);
	margin: var(--s24-space-3) 0;
	padding: 0;
	list-style: none;
}

.s24-mavatar-chips:empty {
	display: none;
}

.s24-mavatar-chip {
	display: inline-flex;
	align-items: center;
	gap: var(--s24-space-2);
	max-width: 100%;
	min-width: 0;
	padding: 6px 8px 6px 10px;
	border: 1px solid var(--s24-border);
	border-radius: 999px;
	background: var(--s24-surface-alt);
	font-size: var(--s24-caption);
	line-height: 1.3;
	box-sizing: border-box;
	transition:
		background var(--s24-transition-fast),
		border-color var(--s24-transition-fast),
		box-shadow var(--s24-transition-fast);
}

.s24-mavatar-chip:hover {
	background: var(--s24-surface);
	border-color: var(--s24-border-strong);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.s24-mavatar-chip__icon {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='8' y1='13' x2='16' y2='13'/%3E%3Cline x1='8' y1='17' x2='16' y2='17'/%3E%3C/svg%3E") center / contain no-repeat;
	opacity: 0.8;
}

/* Точечные иконки по расширению — через data-fileext (опционально) */
.s24-mavatar-chip[data-fileext="jpg"] .s24-mavatar-chip__icon,
.s24-mavatar-chip[data-fileext="jpeg"] .s24-mavatar-chip__icon,
.s24-mavatar-chip[data-fileext="png"] .s24-mavatar-chip__icon,
.s24-mavatar-chip[data-fileext="gif"] .s24-mavatar-chip__icon,
.s24-mavatar-chip[data-fileext="webp"] .s24-mavatar-chip__icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E");
}

.s24-mavatar-chip[data-fileext="zip"] .s24-mavatar-chip__icon,
.s24-mavatar-chip[data-fileext="rar"] .s24-mavatar-chip__icon,
.s24-mavatar-chip[data-fileext="7z"] .s24-mavatar-chip__icon,
.s24-mavatar-chip[data-fileext="tgz"] .s24-mavatar-chip__icon,
.s24-mavatar-chip[data-fileext="gz"] .s24-mavatar-chip__icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8v13H3V8'/%3E%3Cpath d='M1 3h22v5H1z'/%3E%3Cpath d='M10 12h4'/%3E%3C/svg%3E");
}

.s24-mavatar-chip__name {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 22ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--s24-primary);
	text-decoration: none;
}

.s24-mavatar-chip__name:hover,
.s24-mavatar-chip__name:focus-visible {
	text-decoration: underline;
}

.s24-mavatar-chip__size {
	flex: 0 0 auto;
	font-size: 11px;
	line-height: 1;
	color: var(--s24-text-muted, #6b7280);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	padding: 2px 6px;
	border-radius: 999px;
	background: var(--s24-surface, #fff);
	border: 1px solid var(--s24-border);
}

.s24-mavatar-chip__remove {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: transparent;
	color: var(--s24-text-muted, #6b7280);
	font-size: 18px;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition:
		background var(--s24-transition-fast),
		color var(--s24-transition-fast);
}

.s24-mavatar-chip__remove:hover,
.s24-mavatar-chip__remove:focus-visible {
	background: #fee2e2;
	color: #dc2626;
	text-decoration: none;
	outline: none;
}

/* Прогресс FileAPI: внутри пилюли «Прикрепить файл» — см. s24-forms.css (.s24-file-upload__progress-*) */
