/* Глобальные настройки проекта */
html {
  box-sizing: border-box;
  height: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  box-index: inherit; 
}

body {
  margin: 0;
  background-color: var(--belyy);
  color: var(--text-main);
  font-family: var(--font-accent);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  overflow-x: hidden;
}

/* Адаптивные изображения */
img {
  display: block; /* Убирает лишний нижний отступ у картинок в строковых контейнерах */
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* Сброс базовых отступов */
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Сброс стилей форм и кнопок */
input,
textarea,
select {
  border: none;
  font-family: inherit; /* Чтобы шрифты не слетали в инпутах */
  outline: none;
}

button {
  padding: 0;
  border: none;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  outline: none;
}

/* Сетка (Контейнер) */
.container {
  width: 100%;
  max-width: calc(var(--container-width) + (var(--container-padding) * 2));
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Полное скрытие элемента */
.hidden {
  display: none !important;
}

/* Класс для скрытия элементов только визуально (остается доступным для роботов и скринридеров) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
}
