/* =========================================================================
   Минимальный современный CSS reset.
   Адаптация Andy Bell + Josh Comeau под наш проект.
   Включает глобальное скрытие скроллбаров — это правило для проекта.
   ========================================================================= */

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

html, body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd,
ul, ol {
	margin: 0;
	padding: 0;
}

html {
	-webkit-text-size-adjust: 100%;
	-moz-text-size-adjust: 100%;
	text-size-adjust: 100%;
	-webkit-tap-highlight-color: transparent;
}

body {
	min-height: 100vh;
	min-height: 100dvh;
	line-height: var(--lh-normal);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

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

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

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

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

p, h1, h2, h3, h4, h5, h6 {
	overflow-wrap: break-word;
}

#root, #app {
	isolation: isolate;
}

/* Уважение к настройкам «уменьшить анимации» */
@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;
	}
}

/* Видимый фокус для клавиатурной навигации */
:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

.visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

[hidden] {
	display: none !important;
}

/* =========================================================================
   ГЛОБАЛЬНОЕ СКРЫТИЕ СКРОЛЛБАРОВ (правило проекта).
   Прокрутка свайпом/колесом/тачем продолжает работать,
   полоски не отображаются.
   ========================================================================= */
* {
	scrollbar-width: none;        /* Firefox */
	-ms-overflow-style: none;     /* IE / Edge legacy */
}

*::-webkit-scrollbar {           /* WebKit / Blink */
	width: 0 !important;
	height: 0 !important;
	display: none !important;
}
