/**
 * Rebocenka base: переменные, сброс, контейнер, типографика, кнопки, кикеры.
 * Шрифты (Manrope + JetBrains Mono) подключены в inc/setup.php через
 * Google Fonts с preconnect.
 */

:root {
	--reb-text: #143024;
	--reb-accent: #0E8A4F;
	--reb-accent-dark: #0A6B3D;
	--reb-plate: #1C7A50;
	--reb-bg: #F1F7F3;
	--reb-border: #DEE7E1;

	--reb-text-muted: #4B5A52;
	--reb-text-faint: #7E8C84;
	--reb-font: 'Manrope', sans-serif;
	--reb-font-mono: 'JetBrains Mono', monospace;
	--reb-container: 1200px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--reb-font);
	font-size: 16px;
	line-height: 1.5;
	color: var(--reb-text);
	background: #fff;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--reb-accent);
	text-decoration: none;
}

a:hover {
	color: var(--reb-accent-dark);
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

h1,
h2,
h3,
h4 {
	margin: 0 0 0.5em;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--reb-text);
}

p {
	margin: 0 0 1em;
}

/* Контентный контейнер: десктоп 1200, мобильный 350 (390 - 2x20). */
.reb-container {
	width: 100%;
	max-width: var(--reb-container);
	margin: 0 auto;
	padding: 0 24px;
}

.reb-main {
	display: block;
}

.reb-page-content {
	padding-top: 48px;
	padding-bottom: 64px;
}

/* Кнопки. */
.reb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 24px;
	font-family: var(--reb-font);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: 0;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.reb-btn--accent {
	background: var(--reb-accent);
	color: #fff;
}

.reb-btn--accent:hover {
	background: var(--reb-accent-dark);
	color: #fff;
}

.reb-btn--outline {
	background: transparent;
	border-color: var(--reb-accent);
	color: var(--reb-accent);
}

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

/* Плашка-кикер (моноширинный uppercase над заголовком). */
.reb-kicker {
	font-family: var(--reb-font-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--reb-accent);
}

/* Доступность: визуально скрытый текст. */
.reb-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.reb-visually-hidden:focus {
	width: auto;
	height: auto;
	padding: 8px 12px;
	margin: 0;
	clip: auto;
	background: var(--reb-text);
	color: #fff;
	z-index: 100000;
}

@media (max-width: 768px) {
	.reb-container {
		padding: 0 20px;
	}

	.reb-page-content {
		padding-top: 32px;
		padding-bottom: 48px;
	}
}
