/* ==========================================================================
   Base: design tokens, reset, typography.
   ========================================================================== */

:root {
	/* Brand */
	--accent: #1b968f;
	--accent-hover: #17827c;
	--accent-soft: rgba(27, 150, 143, 0.2);
	--accent-glow: 0 0 20px 0 rgba(27, 150, 143, 0.5);
	--danger: #af0000;
	--warning: #d98a00;

	/* Surfaces (light) */
	--bg: #ffffff;
	--bg-alt: #f5f5f5;
	--bg-card: #ffffff;
	--bg-dark: #212121;
	--bg-input: #ffffff;
	--bg-chip: #ededed;
	--bg-placeholder: #f0f0f0;

	/* Text */
	--text: #212121;
	--text-muted: #687082;
	--text-light: #9d9d9d;
	--text-on-dark: #ffffff;
	--text-placeholder: #687082;

	/* Lines */
	--line: #687082;
	--line-soft: #e7e7e7;
	--line-dark: #5f5f5f;
	--line-input: rgba(130, 130, 130, 0.5);

	/* Effects */
	--shadow-card: 0 0 10px 0 rgba(0, 0, 0, 0.1);
	--shadow-menu: 0 0 20px 0 rgba(0, 0, 0, 0.25);
	--overlay: rgba(0, 0, 0, 0.8);

	/* Type */
	--font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	/* Layout */
	--container: 1180px;
	--gutter: 20px;
	--header-h: 75px;
	--radius: 5px;
	--radius-lg: 10px;
	--radius-xl: 20px;

}


/* ---------- Reset ---------- */

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

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

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.5;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body.is-locked {
	overflow: hidden;
}

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

ul,
ol {
	padding: 0;
	list-style: none;
}

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

img {
	height: auto;
}

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

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

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

[hidden] {
	display: none !important;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	border: 0;
	word-wrap: normal !important;
}

.skip-link:focus {
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 1000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 10px 16px;
	clip: auto;
	clip-path: none;
	background: var(--accent);
	color: #fff;
	border-radius: var(--radius);
}

/* ---------- Icons ---------- */

.icon {
	width: 1em;
	height: 1em;
	flex: none;
	fill: none;
}

/* ---------- Typography helpers ---------- */

.accent {
	color: var(--accent);
}

.lead {
	font-size: 25px;
	font-weight: 300;
	line-height: 37px;
	margin-bottom: 30px;
}

.lead strong {
	font-weight: 700;
	/* Montserrat Bold у браузері ширший за макетний: без трекінгу перший
	   рядок ліду не вміщається в 1180 і переноситься (у макеті — один рядок). */
	letter-spacing: -0.02em;
}

.section__title {
	font-size: 55px;
	font-weight: 700;
	line-height: 1.15;
	margin-bottom: 30px;
}

.section__title--center {
	text-align: center;
}

@media (max-width: 1023px) {
	.section__title {
		font-size: 40px;
	}

	.lead {
		font-size: 20px;
		line-height: 30px;
	}
}

@media (max-width: 767px) {
	body {
		font-size: 16px;
	}

	.section__title {
		font-size: 30px;
		margin-bottom: 20px;
	}

	.lead {
		font-size: 17px;
		line-height: 26px;
		margin-bottom: 20px;
	}
}

/* ---------- Менше анімацій, якщо користувач цього просить ---------- */

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