/* ==========================================================================
   База: сброс, типографика, раскладка страницы, доступность
   ========================================================================== */

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

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

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

/* Переходы к разделам: заголовок остаётся виден под закреплённой шапкой (v2.1) */
section[id],
[id].oa-anchor {
	scroll-margin-top: 76px;
}

@media (min-width: 1024px) {
	section[id],
	[id].oa-anchor {
		scroll-margin-top: 88px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}

	/* Без подъёма и увеличения при наведении (v2.1): тень остаётся, движения нет */
	.oa-pc:hover,
	.oa-ccard:hover,
	.oa-tile:hover,
	.oa-feat:hover,
	.oa-catcta:hover,
	.oa-btn:hover,
	.oa-pill:hover,
	.oa-chiplink:hover,
	.oa-hs__btn:hover,
	.oa-mmenu__cta:hover,
	.oa-pc:hover img,
	.oa-ccard:hover img,
	.oa-tile:hover img,
	.oa-hs__slide:hover img {
		transform: none !important;
	}
}

body {
	margin: 0;
	background: var(--oa-page);
	color: var(--oa-ink);
	font-family: var(--oa-font);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

img {
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

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

button {
	cursor: pointer;
	background: none;
	border: 0;
	padding: 0;
}

h1,
h2,
h3,
h4,
p {
	margin: 0;
}

/* Фокус с клавиатуры — обводка 2px #2A7E5F (v2.2) */
:focus-visible {
	outline: var(--oa-focus);
	outline-offset: 2px;
}

[hidden] {
	display: none !important;
}

/* Текст только для скринридеров */
.screen-reader-text,
.oa-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* Ссылка «Перейти к содержимому» */
.oa-skip {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 100;
	padding: 12px 18px;
	border-radius: var(--oa-r-pill);
	background: var(--oa-accent);
	color: var(--oa-on-accent);
	font-weight: 700;
}

.oa-skip:focus {
	top: 16px;
}

/* ---------- Раскладка страницы: блоки-секции с зазором ---------- */
.oa-page {
	width: 100%;
	max-width: var(--oa-page-max);
	margin: 0 auto;
	min-height: 100vh;
	padding: var(--oa-page-pad);
	display: flex;
	flex-direction: column;
	gap: var(--oa-gap);
}

.oa-main {
	display: flex;
	flex-direction: column;
	gap: var(--oa-gap);
	min-width: 0;
}

.oa-section {
	background: var(--oa-card);
	border-radius: var(--oa-r-section);
	padding: var(--oa-sec-pad);
	display: flex;
	flex-direction: column;
	gap: var(--oa-sec-gap);
	min-width: 0;
}

.oa-section--dark {
	background: var(--oa-ink);
	color: #FFFFFF;
}

/* Заголовки секций */
.oa-h2 {
	margin: 0;
	font-family: var(--oa-font-head);
	font-size: var(--oa-h2);
	line-height: 1.15;
	font-weight: 500;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.oa-h2--home {
	line-height: 1.12;
	letter-spacing: -0.02em;
}

.oa-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.oa-section-head__text {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 640px;
}

/* Надпись-лейбл 12/800 uppercase */
.oa-caps {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--oa-muted);
}
