/* Modern CSS Reset */

/* Указываем box-sizing для всех элементов и псевдоэлементов */
*,
*::before,
*::after {
	box-sizing: border-box;
}

/* Убираем внутренние отступы и margins у всех элементов */
* {
	margin: 0;
	padding: 0;
}

/* Удаляем стандартный маркер у списков */
ul,
ol {
	list-style: none;
}

/* Убираем подчеркивание у ссылок по умолчанию */
a {
	text-decoration: none;
	color: inherit;
}

/* Наследование шрифтов для форм */
input,
button,
textarea,
select {
	font: inherit;
}

/* Убираем стандартные стили кнопок */
button {
	background: none;
	border: none;
	cursor: pointer;
}

/* Убираем стандартные стили полей ввода */
input,
textarea {
	border: none;
	outline: none;
}

/* Упрощаем работу с изображениями */
img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

/* Убираем анимации и переходы для людей, которые их предпочитают не использовать */
@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;
	}
}

/* Удаляем все стили для цитат */
blockquote,
q {
	quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
	content: '';
	content: none;
}

/* Таблицы */
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* Убираем стандартный стиль деталей */
details {
	display: block;
}

summary {
	display: list-item;
	cursor: pointer;
}

/* Скрываем элементы визуально, но оставляем доступными для скринридеров */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	border: 0;
	padding: 0;
	white-space: nowrap;
	clip-path: inset(100%);
	clip: rect(0 0 0 0);
	overflow: hidden;
}

/* Наследование цветов для псевдоэлементов */
::selection {
	background-color: #b3d4fc;
	color: #000000;
	text-shadow: none;
}

/* Устанавливаем основные настройки для body */
html, body {
	min-height: 100vh;
	line-height: 1.5;
	text-rendering: optimizeSpeed;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	    overflow-x: hidden;
    width: 100%;
}

/* Удаляем стандартное поведение fieldset */
fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}

/* Убираем стрелки у input type number */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

input[type="number"] {
	-moz-appearance: textfield;
}