* {
  box-sizing: border-box;
}

section {
  min-height: 90vh;
}

hr {
  border: none;
  border-top: 2px solid #000000; /* Толщина и цвет линии */
  margin: 3rem 0; /* Отступы сверху и снизу */
}

/* Компенсация фиксированной навигации*/
section {
  scroll-margin-top: 90px; /* Отступ сверху при прокрутке */
}

.main-text {
  margin-top: 90px !important; /* Отступ от верхнего края страницы */
  font-size: 1.1rem;
  max-width: 1000px;      /* Максимальная ширина */
  margin-left: auto;      /* Центрирование */
  margin-right: auto;
  padding: 0 1rem;        /* Отступы по бокам */
}

/* Плавная прокрутка по всей странице */
html {
  scroll-behavior: smooth;
}

.navbar-title {
  font-size: 2.7rem !important;
  transform: translateY(-2px);
}

body {
  background: #ffffff;
}

button {
  border: 0;
  padding: 0;
  font-family: inherit;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.navbar {
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 64px;
  background: #000000;
  color: #f9f9f9;
  font-family: "Poppins";
  box-sizing: border-box;
}

@media only screen and (min-width: 600px) {
  .navbar {
    justify-content: space-between;
    padding: 0 0 0 16px;
  }
}

.navbar-overlay {
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  visibility: hidden;
  opacity: 0;
  transition: 0.3s;
}

body.open .navbar-overlay {
  visibility: visible;
  opacity: 1;
}

@media only screen and (min-width: 600px) {
  .navbar-overlay {
    display: none;
  }
}

.navbar-burger {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 0;
}

@media only screen and (min-width: 600px) {
  .navbar-burger {
    display: none;
  }
}

.navbar-title {
  margin: 0;
  font-size: 16px;
}

.navbar-menu {
  position: fixed;
  z-index: 3;
  top: 0;
  left: 0;
  translate: -100% 0;
  width: 270px;
  height: 100%;
  padding: 20px;
  display: flex;
  gap: 8px;
  flex-direction: column;
  align-items: flex-start;
  background: #000000;
  visibility: hidden;
  transition: translate 0.3s;
}

body.open .navbar-menu {
  translate: 0 0;
  visibility: visible;
}

@media only screen and (min-width: 600px) {
  .navbar-menu {
    position: static;
    translate: 0 0;
    width: auto;
    background: transparent;
    flex-direction: row;
    visibility: visible;
  }
}

.navbar-menu > a {
  font-size: 1.1rem;
  transform: translateY(4px);
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
  padding: 0 8px;
}

.navbar-menu > a.active {
  color: inherit;
}

/* Секция для телефонов*/
@media (max-width: 768px) {
  /* Текст крупнее */
  body {
    font-size: 18px;
    line-height: 1.5;
  }
  
  /* Заголовки адаптивные */
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  /* Картинки меньше и по центру */
  img {
    max-width: 60%;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Отступы компактнее */
  section {
    padding: 3rem 1.5rem;
  }
}