/**
 * Шапка, подвал, cookie, вспомогательные блоки.
 * Токены: var(--s24-*) из s24-tokens.css.
 */

/*
 * Skip link — только для клавиатуры (Tab): скрыта с экрана, появляется при фокусе.
 * Не использовать display:none — иначе не попадёт в порядок табуляции.
 */
.s24-skip-link {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
	clip-path: inset(50%);
}

.s24-skip-link:focus {
	position: fixed;
	left: 0.5rem;
	top: 0.5rem;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0.65rem 1rem;
	overflow: visible;
	clip: auto;
	clip-path: none;
	white-space: normal;
	z-index: 10050;
	background: var(--s24-primary);
	color: var(--s24-surface);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	border-radius: var(--s24-radius-sm);
	box-shadow: var(--s24-shadow-card);
	outline: 2px solid var(--s24-ink);
	outline-offset: 2px;
}

/* Cookie banner */
.usecookieinform {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 1rem 2.5rem 1rem 1rem;
	font-size: var(--s24-caption);
	box-sizing: border-box;
	background: var(--s24-surface-alt);
	border-top: 1px solid var(--s24-border);
	color: var(--s24-text);
	width: 100%;
	text-align: center;
	margin: 0 auto;
	z-index: 1045;
	transition: bottom 0.45s linear;
	box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
}

.usecookieinform > div {
	max-width: 56rem;
	margin-left: auto;
	margin-right: auto;
}

.usecookieinform a {
	color: var(--s24-primary);
	font-weight: 600;
}

.usecookieinform > span.usecookieinformclose {
	font-size: 1.25rem;
	opacity: 0.65;
	color: var(--s24-text-muted);
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
	position: absolute;
	cursor: pointer;
	transition: opacity var(--s24-transition-fast);
	line-height: 1;
}

.usecookieinform > span.usecookieinformclose:hover { opacity: 1; }

/* Чтобы баннер cookie не перекрывал нижний таббар на телефонах */
@media (max-width: 979px) {
	.usecookieinform {
		bottom: calc(var(--s24-bottom-nav-height) + env(safe-area-inset-bottom));
	}
}

/* ========== HEADER ========== */

.s24-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	max-width: none;
	z-index: 1030;
	background: var(--s24-surface);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
	will-change: transform;
	padding: 0;
	margin: 0;
	float: none;
	box-sizing: border-box;
}

.s24-header--hidden {
	transform: translateY(-100%);
	box-shadow: none;
}

.s24-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: var(--s24-content-wide, 1200px);
	margin: 0 auto;
	padding: 0;
	min-height: 64px;
	box-sizing: border-box;
}

@media (max-width: 1280px) {
	.s24-header__inner {
		padding: 0 var(--s24-section-pad);
	}
}

/* Logo (шрифт Outfit — отдельный от body, более «логотипный» вордмарк) */
.s24-header__logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	text-decoration: none;
	font-family: var(--s24-font-logo);
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1;
	gap: 0;
}

.s24-header__logo:hover {
	text-decoration: none;
}

.s24-header__logo-text {
	font-size: 2rem;
	font-weight: 700;
	color: var(--s24-ink);
	letter-spacing: -0.02em;
}

.s24-header__logo-accent {
	font-size: 1.25rem;
	font-weight: 800;
	color: #FF3E3E;
	margin-left: 0.15em;
	margin-bottom: 0.5em;
	letter-spacing: -0.02em;
}

/* Nav */
.s24-header__nav {
	display: flex;
	align-items: center;
}

.s24-header__menu {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.s24-header__menu > li {
	margin: 0;
}

/* Links */
.s24-header__link {
	display: flex;
	align-items: center;
	padding: 8px 14px;
	border-radius: var(--s24-radius-md);
	color: var(--s24-text-muted);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	white-space: nowrap;
	text-decoration: none;
	transition: color var(--s24-transition-fast), background var(--s24-transition-fast);
}

.s24-header__link:hover {
	color: var(--s24-ink);
	background: var(--s24-surface-alt);
	text-decoration: none;
}

/* Текущая страница — только акцентный цвет, без «таблетки» */
.s24-header__link.s24-nav-link--active {
	color: var(--s24-primary);
	background: transparent;
	box-shadow: none;
	font-weight: 700;
	text-decoration: none;
}

.s24-header__link.s24-nav-link--active:hover {
	color: var(--s24-primary-hover);
	background: var(--s24-surface-alt);
	box-shadow: none;
}

/* Стать Автором — обычная ссылка, как остальные пункты меню */
.s24-header__menu > li > .s24-header__link--author {
	font-weight: 700;
}

/* Outline CTA (Заказать работу) — компактная пилюля */
.s24-header__menu > li > .s24-header__link--primary {
	color: var(--s24-primary);
	border: 1.5px solid var(--s24-primary);
}

.s24-header__menu > li > .s24-header__link--primary:hover {
	background: var(--s24-primary);
	color: var(--s24-on-primary);
	text-decoration: none;
}

.s24-header__menu > li > .s24-header__link--primary.s24-nav-link--active {
	background: var(--s24-primary);
	border-color: var(--s24-primary);
	color: var(--s24-on-primary);
}

.s24-header__menu > li > .s24-header__link--primary.s24-nav-link--active:hover {
	background: var(--s24-primary-hover);
	border-color: var(--s24-primary-hover);
	color: var(--s24-on-primary);
}

.s24-header__link--alert.s24-nav-link--active {
	color: var(--s24-primary);
	background: transparent;
	box-shadow: none;
	font-weight: 700;
}

.s24-header__link--alert.s24-nav-link--active:hover {
	color: var(--s24-primary-hover);
	background: var(--s24-surface-alt);
}

/* Hide order CTA when flag is set */
.s24-header__menu--hide-order .s24-header__link--primary {
	display: none;
}

/*
 * Выход: system/header.php рендерит <a><div class="logout-link"><div class="headertext">
 * Нет .s24-header__link → стилизуем <a> как header-link, дельта: color темнее.
 * .logout-link / .headertext — сброс до inherit.
 */
.s24-header__menu > li > a[href*="out="] {
	display: flex;
	align-items: center;
	padding: 8px 14px;
	border-radius: var(--s24-radius-md);
	color: var(--s24-text);
	font-size: 0.875rem;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
	transition: color var(--s24-transition-fast), background var(--s24-transition-fast);
}

.s24-header__menu > li > a[href*="out="]:hover {
	color: var(--s24-ink);
	background: var(--s24-surface-alt);
}

.s24-header__menu > li > a[href*="out="] .logout-link,
.s24-header__menu > li > a[href*="out="] .headertext {
	all: unset;
	color: inherit;
	font: inherit;
}

/* Burger (mobile) */
.s24-header__burger {
	display: none;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 40px;
	height: 40px;
	padding: 0;
	border: none;
	background: none;
	color: var(--s24-text);
	cursor: pointer;
	border-radius: var(--s24-radius-sm);
	transition: background var(--s24-transition-fast);
	-webkit-appearance: none;
	appearance: none;
}

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

.s24-header__burger-dot {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--s24-danger);
}

/* ========== SIDENAV (mobile drawer) ========== */

/* Полная база мобильной шторки (бывший legacy sidenav.css) */
.sidenav {
	height: 100%;
	width: 70%;
	min-width: 300px;
	left: -200%;
	position: fixed;
	top: 0;
	overflow-x: hidden;
	padding-top: 75px;
	transition: all 0.35s;
	z-index: 1051;
	background: var(--s24-surface);
	box-shadow: var(--s24-shadow-elevated);
}

.sidenav a {
	display: table;
	color: var(--s24-text);
	padding: var(--s24-space-3) var(--s24-space-6);
	font-size: var(--s24-body);
	font-weight: 500;
	line-height: 1.2;
	border-bottom: 1px solid var(--s24-border);
	transition: background var(--s24-transition-fast);
}

.sidenav a:hover {
	background: var(--s24-surface-alt);
	text-decoration: none;
}

.sidenav a.s24-nav--alert {
	color: var(--s24-danger);
	font-weight: 600;
}

.sidenav a.s24-mobile-nav__primary {
	color: var(--s24-primary);
	font-weight: 600;
}

/* Выход в шторке: дельта от .sidenav a — чуть темнее + сброс вложенных div */
.sidenav a[href*="out="] {
	color: var(--s24-ink);
	font-weight: 600;
}

.sidenav a[href*="out="] .logout-link,
.sidenav a[href*="out="] .headertext {
	all: unset;
	color: inherit;
	font: inherit;
}

.s24-mobile-nav__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 8px 8px 0 auto;
	padding: 0;
	border: none;
	background: none;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--s24-text-muted);
	cursor: pointer;
	border-radius: var(--s24-radius-sm);
	transition: background var(--s24-transition-fast), color var(--s24-transition-fast);
}

.s24-mobile-nav__close:hover {
	background: var(--s24-surface-alt);
	color: var(--s24-text);
}

/* Legacy-hook: если где-то остался только .closebtn без s24-mobile-nav__close */
.sidenav .closebtn {
	position: absolute;
	top: 5px;
	right: 20px;
	font-size: 36px;
	height: 22px;
	width: 30px;
	margin-left: 50px;
	padding: 12px;
}

@media (max-height: 450px) {
	.sidenav { padding-top: 70px; }
	.sidenav a {
		font-size: 18px;
		line-height: 1;
		padding: 10px 10px 10px 35px;
	}
}

/* ========== HEADER RESPONSIVE ========== */

@media (max-width: 979px) {
	.s24-header__burger {
		display: flex;
	}
	.s24-header__nav {
		display: none;
	}

	/* Нижняя навигация вместо верхней шапки: без логотипа, без скрытия при скролле */
	.s24-header {
		display: none;
	}
}

/* ========== BOTTOM NAV (mobile) ========== */

.s24-bottom-nav {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 1020;
	box-sizing: border-box;
	padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
	background: var(--s24-surface);
	border-top: 1px solid var(--s24-border);
	box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
}

/* После базового display:none — иначе каскад перекрывает мобильный flex */
@media (max-width: 979px) {
	.s24-bottom-nav {
		display: flex;
	}
}

.s24-bottom-nav__inner {
	display: flex;
	align-items: stretch;
	justify-content: flex-start;
	width: 100%;
	max-width: var(--s24-content-wide, 1200px);
	margin: 0 auto;
	min-height: var(--s24-bottom-nav-height);
	padding: 0 4px;
	box-sizing: border-box;
}

.s24-bottom-nav__link {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-width: 0;
	padding: 6px 2px;
	text-decoration: none;
	color: var(--s24-text-muted);
	font-size: 0.625rem;
	font-weight: 600;
	line-height: 1.15;
	text-align: center;
	letter-spacing: -0.02em;
	border-radius: var(--s24-radius-sm);
	transition: color var(--s24-transition-fast), background var(--s24-transition-fast);
	-webkit-tap-highlight-color: transparent;
}

.s24-bottom-nav__link:hover {
	color: var(--s24-ink);
	background: var(--s24-surface-alt);
	text-decoration: none;
}

.s24-bottom-nav__link.s24-nav-link--active {
	color: var(--s24-primary);
	background: transparent;
	box-shadow: none;
	font-weight: 700;
}

.s24-bottom-nav__link.s24-nav-link--active:hover {
	color: var(--s24-primary-hover);
	background: var(--s24-surface-alt);
	box-shadow: none;
}

.s24-bottom-nav__link.s24-nav-link--active .s24-bottom-nav__icon {
	color: var(--s24-primary);
}

.s24-bottom-nav__link.s24-nav-link--active:hover .s24-bottom-nav__icon {
	color: var(--s24-primary-hover);
}

.s24-bottom-nav .s24-header__link--alert.s24-nav-link--active {
	color: var(--s24-primary);
	background: transparent;
	box-shadow: none;
}

.s24-bottom-nav .s24-header__link--alert.s24-nav-link--active:hover {
	background: var(--s24-surface-alt);
}

.s24-bottom-nav .s24-header__link--alert.s24-nav-link--active .s24-bottom-nav__icon {
	color: var(--s24-primary);
}

.s24-bottom-nav .s24-header__link--alert.s24-nav-link--active:hover .s24-bottom-nav__icon {
	color: var(--s24-primary-hover);
}

.s24-bottom-nav__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	color: var(--s24-text-muted);
}

.s24-bottom-nav__icon svg {
	display: block;
	width: 22px;
	height: 22px;
}

.s24-bottom-nav__label {
	display: block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.s24-bottom-nav__link:hover .s24-bottom-nav__icon {
	color: var(--s24-ink);
}

.s24-bottom-nav .s24-header__link--alert .s24-bottom-nav__icon {
	position: relative;
}

.s24-bottom-nav .s24-header__link--alert .s24-bottom-nav__icon::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--s24-danger);
	box-shadow: 0 0 0 1.5px var(--s24-surface);
}

.s24-bottom-nav .s24-header__link--alert:hover .s24-bottom-nav__icon {
	color: var(--s24-ink);
}

.s24-bottom-nav__burger {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: 1 1 0;
	min-width: 0;
	width: auto;
	position: relative;
	padding: 6px 2px;
	gap: 2px;
	border: none;
	background: none;
	color: var(--s24-text-muted);
	cursor: pointer;
	border-radius: var(--s24-radius-sm);
	transition: background var(--s24-transition-fast), color var(--s24-transition-fast);
	-webkit-tap-highlight-color: transparent;
	box-sizing: border-box;
}

/*
 * Та же кнопка с классом .s24-header__burger — в шапке заданы width/height 40px.
 * В нижнем баре это ломает колонку (обрезает подпись, сдвигает иконку).
 * Специфичность двойного класса (.s24-bottom-nav__burger.s24-header__burger)
 * уже побеждает одиночный .s24-header__burger, !important не требуется.
 */
.s24-bottom-nav__burger.s24-header__burger {
	width: auto;
	height: auto;
	min-height: 0;
	align-self: stretch;
	align-items: center;
	justify-content: center;
}

.s24-bottom-nav__burger:hover {
	background: var(--s24-surface-alt);
	color: var(--s24-ink);
}

.s24-bottom-nav__burger:hover .s24-bottom-nav__icon {
	color: var(--s24-ink);
}

.s24-bottom-nav__burger-label {
	display: block;
	font-size: 0.625rem;
	font-weight: 600;
	line-height: 1.15;
	margin-top: 0;
	letter-spacing: -0.02em;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.s24-bottom-nav__burger .s24-bottom-nav__icon svg {
	display: block;
	width: 22px;
	height: 22px;
	flex-shrink: 0;
}

/* Оверлей теста автора */
.s24-author-test-overlay {
	overflow: auto;
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 500;
	background-color: var(--s24-warning);
}

/* ========== FOOTER ========== */

.s24-footer {
	background: var(--s24-footer-bg);
	color: var(--s24-text-on-dark);
	box-sizing: border-box;
}

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

.s24-footer--4col .s24-footer__inner {
	grid-template-columns: repeat(4, 1fr);
}

.s24-footer__col {
	font-size: var(--s24-caption);
	line-height: var(--s24-lh-relaxed);
}

.s24-footer__heading {
	font-weight: 700;
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--s24-text-on-dark-bright);
	margin-bottom: var(--s24-space-3);
}

.s24-footer__heading--sub {
	font-weight: 600;
	font-size: 0.75rem;
	text-transform: none;
	letter-spacing: 0;
	color: var(--s24-text-on-dark);
	margin-top: var(--s24-space-4);
	margin-bottom: var(--s24-space-2);
}

/* Links */
.s24-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.s24-footer__links li { display: block; }

.s24-footer a {
	color: var(--s24-text-on-dark-muted);
	text-decoration: none;
	line-height: 1.85;
	transition: color var(--s24-transition-fast);
}

.s24-footer a:hover {
	color: #93b8f8;
	text-decoration: none;
}

/* Contact row (icon + link) */
.s24-footer__contact {
	display: flex;
	align-items: center;
	gap: var(--s24-space-2);
	margin-bottom: var(--s24-space-2);
}

.s24-footer__contact svg {
	flex-shrink: 0;
	color: var(--s24-text-on-dark-muted);
}

.s24-footer__contact a {
	color: var(--s24-text-on-dark-bright);
	font-weight: 600;
}

/* Social icons */
.s24-footer__socials {
	display: flex;
	gap: 10px;
	margin-top: var(--s24-space-4);
}

.s24-footer__social {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	color: var(--s24-text-on-dark-muted);
	opacity: 0.65;
	transition: opacity var(--s24-transition-base), color var(--s24-transition-fast);
}

.s24-footer__social:hover {
	opacity: 1;
	color: #fff;
}

.s24-footer__social svg { pointer-events: none; }

/* Рейтинги: в один ряд; при узкой колонке переносятся на вторую строку */
.s24-footer__badges {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 12px 16px;
	margin-top: var(--s24-space-4);
}

/* Google rating badge */
.s24-footer__google-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--s24-radius-md);
	padding: 10px 16px;
	color: var(--s24-text-on-dark-muted);
	font-size: 0.875rem;
	text-decoration: none;
	transition: background var(--s24-transition-fast);
}

.s24-footer__google-badge:hover {
	background: rgba(255, 255, 255, 0.14);
	text-decoration: none;
	color: #fff;
}

.s24-footer__google-badge.s24-footer__google-badge--static {
	cursor: default;
}

.s24-footer__google-badge.s24-footer__google-badge--static:hover {
	background: rgba(255, 255, 255, 0.07);
	color: var(--s24-text-on-dark-muted);
}

.s24-footer__google-badge svg { flex-shrink: 0; }

.s24-footer__google-badge-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	line-height: 1.35;
}

.s24-footer__google-badge-rating {
	white-space: nowrap;
	font-size: 0.9375rem;
}

.s24-footer__google-badge-rating strong {
	font-weight: 800;
	font-size: 1rem;
	color: #fff;
}

.s24-footer__google-badge-slash {
	margin: 0 0.15em;
	opacity: 0.85;
	font-weight: 500;
}

.s24-footer__google-badge-dim {
	font-weight: 400;
	color: var(--s24-text-on-dark-muted);
}

.s24-footer__google-badge-sub {
	font-size: 0.8125rem;
	color: var(--s24-text-on-dark-muted);
	opacity: 0.88;
}

.s24-footer__google-badge-brand {
	font-size: 0.75rem;
	letter-spacing: 0.02em;
	color: var(--s24-text-on-dark-muted);
	opacity: 0.7;
	margin-top: 2px;
}

.s24-footer__site-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--s24-radius-md);
	padding: 10px 16px;
	color: var(--s24-text-on-dark-muted);
	font-size: 0.875rem;
}

.s24-footer__site-badge svg { flex-shrink: 0; }

/* Bottom bar */
.s24-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: var(--s24-content-wide, 1140px);
	margin: 0 auto;
	padding: var(--s24-space-6) var(--s24-section-pad);
	border-top: 1px solid var(--s24-footer-border);
	margin-top: var(--s24-space-8);
}

/* Payment icons */
.s24-footer__pay {
	display: flex;
	align-items: center;
	gap: var(--s24-space-2);
}

.s24-footer__pay-icon {
	display: inline-block;
	opacity: 0.55;
	transition: opacity var(--s24-transition-base);
}

.s24-footer__pay-icon:hover { opacity: 0.9; }

.s24-footer__pay-icon--visa    { background: url(../../../images/paysystems/visa-min.png) no-repeat center; width: 70px; height: 23px; background-size: 70px; }
.s24-footer__pay-icon--mc      { background: url(../../../images/paysystems/mc-min.png) no-repeat center; width: 45px; height: 28px; background-size: 45px; }
.s24-footer__pay-icon--mir     { background: url(../../../images/paysystems/mir-min.png) no-repeat center; width: 75px; height: 23px; background-size: 75px; }

/* Copyright */
.s24-footer__copy {
	font-size: var(--s24-caption);
	color: var(--s24-text-on-dark-muted);
	text-align: right;
}

.s24-footer__copy a {
	color: var(--s24-text-on-dark-muted);
	font-size: var(--s24-caption);
}

/* Debug info */
.s24-footer__debug {
	max-width: var(--s24-content-wide, 1140px);
	margin: 0 auto;
	padding: var(--s24-space-2) var(--s24-section-pad);
	font-size: 0.75rem;
	color: var(--s24-text-on-dark-muted);
	opacity: 0.6;
}

/* ========== FOOTER — responsive ========== */

@media (max-width: 991px) {
	.s24-footer__inner,
	.s24-footer--4col .s24-footer__inner {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--s24-space-6);
	}
}

@media (max-width: 767px) {
	/*
	 * Full-bleed как у фиксированной шапки: фон на всю ширину вьюпорта.
	 * Без этого футер может оказаться уже .container / обёртки — по бокам проступает body.
	 */
	.s24-footer {
		width: var(--s24-breakout-width);
		max-width: var(--s24-breakout-width);
		margin-left: var(--s24-breakout-shift);
		margin-right: var(--s24-breakout-shift);
		box-sizing: border-box;
	}

	.s24-footer__inner {
		max-width: none;
		width: 100%;
		margin-left: 0;
		margin-right: 0;
		padding-left: var(--s24-space-4);
		padding-right: var(--s24-space-4);
		box-sizing: border-box;
	}

	.s24-footer__bottom {
		max-width: none;
		width: 100%;
		margin-left: 0;
		margin-right: 0;
		padding-left: var(--s24-space-4);
		padding-right: var(--s24-space-4);
		box-sizing: border-box;
		flex-direction: column;
		gap: var(--s24-space-4);
		text-align: center;
	}

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

	.s24-footer__contact { justify-content: center; }

	.s24-footer__socials { justify-content: center; }

	.s24-footer__badges {
		justify-content: center;
	}

	.s24-footer__pay { display: none; }

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

	.s24-footer__social { opacity: 0.9; }

	.s24-footer__debug {
		max-width: none;
		width: 100%;
		margin-left: 0;
		margin-right: 0;
		padding-left: var(--s24-space-4);
		padding-right: var(--s24-space-4);
		box-sizing: border-box;
		overflow-wrap: anywhere;
		word-wrap: break-word;
		word-break: break-word;
		white-space: normal;
	}

	/* Dev-mode SQL: таблица → строки друг под другом, ячейки столбцов — вертикально */
	.s24-footer__debug table {
		display: block;
		width: 100%;
		border-collapse: collapse;
	}

	.s24-footer__debug thead,
	.s24-footer__debug tbody {
		display: block;
		width: 100%;
	}

	.s24-footer__debug tr {
		display: block;
		width: 100%;
		margin-bottom: var(--s24-space-8);
		padding-bottom: var(--s24-space-6);
		border-bottom: 1px solid rgba(148, 163, 184, 0.28);
		box-sizing: border-box;
	}

	.s24-footer__debug tr:last-child {
		margin-bottom: 0;
		padding-bottom: 0;
		border-bottom: none;
	}

	/* width/max-width/text-align перебивают presentation-hints (width=, align=),
	   которые маппятся в user-agent stylesheet — любой author-стиль побеждает
	   без !important. */
	.s24-footer__debug td {
		display: block;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		text-align: left;
		padding: var(--s24-space-2) 0;
		border: none;
	}

	.s24-footer__debug td + td {
		margin-top: var(--s24-space-3);
		padding-top: var(--s24-space-3);
		border-top: 1px solid rgba(148, 163, 184, 0.18);
	}

	.s24-footer__debug h4 {
		margin: 0 0 var(--s24-space-4);
		font-size: 0.8125rem;
		font-weight: 600;
	}
}

@media (max-width: 480px) {
	.s24-footer__inner,
	.s24-footer--4col .s24-footer__inner {
		grid-template-columns: 1fr;
	}
}

/* ========== Floating action buttons (currency / language / country) ========== */

.s24-fab {
	position: fixed;
	right: 5%;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	cursor: pointer;
	opacity: 0.65;
	transition: opacity var(--s24-transition-base);
	z-index: 2;
	background-color: var(--s24-control-bg);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 21px;
}

.s24-fab:hover { opacity: 1; }

.s24-fab--currency {
	background-image: url(../../../images/icons/default/money.png);
	top: 80px;
}

.s24-fab--country {
	background-image: url(../../../images/icons/default/globe2-icon.png);
	top: 130px;
}

.s24-fab--language {
	background-image: url(../../../images/icons/default/globe2-icon.png);
	top: 150px;
}

@media (max-width: 979px) {
	.s24-fab { display: none; }
}
