/**
 * Base reset + typography.
 */

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

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

body {
	margin: 0;
	font-family: var(--md-font-sans);
	font-size: var(--md-fs-md);
	line-height: var(--md-lh-normal);
	color: var(--md-color-text);
	background: var(--md-color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--md-color-brand); text-decoration: none; }
a:hover { color: var(--md-color-brand-hover); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--md-color-brand); outline-offset: 2px; border-radius: var(--md-radius-sm); }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 var(--md-space-4);
	line-height: var(--md-lh-tight);
	font-weight: var(--md-fw-semi);
	color: var(--md-color-text);
}
h1 { font-size: var(--md-fs-3xl); }
h2 { font-size: var(--md-fs-2xl); }
h3 { font-size: var(--md-fs-xl); }
h4 { font-size: var(--md-fs-lg); }

p, ul, ol { margin: 0 0 var(--md-space-4); }
ul, ol { padding-left: var(--md-space-6); }

button {
	font-family: inherit;
	cursor: pointer;
}

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

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

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; overflow: hidden; position: absolute !important;
	white-space: nowrap; word-wrap: normal;
}
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 999;
	background: var(--md-color-brand); color: white; padding: 8px 12px;
	border-radius: 0 0 var(--md-radius-md) 0;
}
.skip-link:focus { left: 0; }

/* Убираем underline для декоративных ссылок */
.md-btn { text-decoration: none; }
.md-btn:hover { text-decoration: none; }

/* Отключаем анимации для тех, кто не хочет */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Локальный шрифт (variable font) */
@font-face {
	font-family: 'Inter';
	src: url('../fonts/inter-var.woff2') format('woff2-variations');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
