/* ==========================================================================
   База: шрифты, сброс, типографика
   ========================================================================== */

@font-face {
	font-family: "Golos Text";
	src: url("../fonts/golos-text-regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Golos Text";
	src: url("../fonts/golos-text-medium.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Golos Text";
	src: url("../fonts/golos-text-bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

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

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

body {
	margin: 0;
	font-family: var(--font-base);
	font-size: var(--fs-base);
	line-height: var(--lh-base);
	color: var(--color-text);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 var(--space-4);
	font-family: var(--font-headings);
	line-height: var(--lh-tight);
	font-weight: 700;
	color: var(--color-text);
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { margin: 0 0 var(--space-4); }

a {
	color: var(--color-primary-700);
	text-decoration: none;
	transition: color var(--transition);
}

a:hover,
a:focus {
	color: var(--color-primary-600);
	text-decoration: underline;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

ul, ol {
	margin: 0 0 var(--space-4);
	padding-left: 1.25em;
}

table {
	border-collapse: collapse;
	width: 100%;
}

button {
	font: inherit;
	cursor: pointer;
}

input, select, textarea {
	font: inherit;
}

/* Доступность */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	padding: var(--space-3) var(--space-4);
	background: var(--color-primary);
	color: var(--color-text-invert);
}

.skip-link:focus {
	left: 0;
}

:focus-visible {
	outline: 2px solid var(--color-primary-600);
	outline-offset: 2px;
}
