body {
  margin: 0;
  padding: 0;
}

#is-service-frame {
  display: none;
}

/* Стили для шапки */
header {
  position: relative;
  background-color: black;
  color: white;
  height: 120px; /* Измените на нужную вам высоту */
  width: 100%;
  display: flex;
  align-items: center;
  transition: all 0.3s ease; /* Добавляем плавное изменение стилей */
  min-width: 41rem;
  z-index: 5;
}

.red-line-under-header {
  height: 5px; /* Высота линии */
  background-color: #f36366; /* Цвет линии */
  bottom: 0; /* Помещаем линию внизу шапки */
  left: 0; /* Начало линии слева */
  right: 0; /* Конец линии справа */
  top: 100px;
  min-width: 41rem;
  position: fixed;
  z-index: 6;
}

/* #header.fixed {
  position: fixed;
  background-color: black; 
  color: white; 
  height: 100px; 
  display: flex;
  align-items: center;
  z-index: 5;
  min-width: 41rem;
} */

.logo {
  margin-right: 10rem;
  margin-left: 8rem;
}

.logo img {
  max-height: 90px;
}

#header_contacts {
  margin-right: 10rem;
}
nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

nav ul li {
  margin-right: 50px; /* Расстояние между кнопками */
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
  font-family: Arial, Helvetica, sans-serif;
}

/* Стили для ховера */
nav ul li a:hover {
  color: #f36366; /* Изменяем цвет текста на красный при ховере */
}

nav ul li a {
  white-space: nowrap;
}

/* Стили для красной линии */
.red-line {
  height: 5px; /* Высота линии */
  background-color: #f36366; /* Цвет линии */
  bottom: 0; /* Помещаем линию внизу шапки */
  left: 0; /* Начало линии слева */
  right: 0; /* Конец линии справа */
  min-width: 41rem;
}
/* Стили для блока карусель */
.one-block {
  background-image: url('assets/background_main_dark.png'); /* Замените на путь к вашей фоновой картинке */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  padding-top: 5rem;
  padding-bottom: 4rem;
  text-align: center;
  min-width: 41rem;
}

.carousel {
  position: relative;
  min-width: 45rem; /* Можно изменить в зависимости от желаемого размера */
  max-width: 45rem;
  margin: auto;
  overflow: hidden;
  border-radius: 20px;
  border: 3px solid #f36366;
}

.carousel-inner .carousel-item {
  text-align: center;
  color: white; /* Цвет текста, чтобы он выделялся на тёмном фоне */
}

.carousel-inner {
  overflow: hidden;
  position: relative;
  width: 100%;
  align-items: center;
}

.carousel-item {
  width: 100%; /* Каждый слайд занимает 100% ширины .carousel-inner */
  height: 100%;
  left: 100%; /* Стартовая позиция каждого слайда - за пределами видимой области */
  transition: left 0.5s ease-in-out; /* Плавная анимация для смещения */
}

.carousel-item.active {
  left: 0; /* Активный слайд позиционируем в начале контейнера */
}

.carousel-item img {
  max-width: 100%; /* Максимальная ширина изображения - 100% от ширины слайда */
  max-height: 100%; /* Максимальная высота изображения - 100% от высоты слайда */
  object-fit: cover; /* Изображение будет покрывать весь слайд, сохраняя свои пропорции */
  display: block;
  margin: auto;
}

.carousel-control {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white; /* Цвет стрелок */
  font-weight: bold;
  font-size: 28px;
  transition: 0.6s ease;
  user-select: none;
  z-index: 5;
  border-radius: 10px;
}

.carousel-control:hover {
  border: 1px solid #f36365;
  border-radius: 10px;
  color: #ff3134;
  background-color: black;
  opacity: 0.8;
}

.carousel-control.prev {
  left: 0;
}

.carousel-control.next {
  right: 0;
}

.button-partner a {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  color: white; /* Цвет подписей */
  border: 2px solid #f36365;
  border-radius: 10px;
  color: #000000;
  background-color: #f36365;
  padding: 1rem;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.5rem;
}

.button-partner a:hover {
  border: 2px solid #000000;
  transition: 0.6s ease;
}

/* Раздел с категориями ================================================================*/
.products {
  text-align: center;
  min-width: 41rem;
  max-width: 100%;
}

.products h2 {
  font-size: 2rem;
  color: #000000;
}

.сategory {
  padding: 15px;
  justify-items: center;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(23rem, 1fr)); /* 4 столбцов */
  gap: 20px; /* Расстояние между кнопками */
  align-content: space-around; /* Выравнивание по вертикали по центру */
  align-items: center;
}

.item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: white;
  border-radius: 10px;
  text-decoration: none;
  color: black;
  font-size: 18px;
}

.item:hover {
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
}

.item img {
  width: 80%;
  height: 80%;
}

/* Раздел О компании  ==================================================================*/

.about {
  position: relative;
  padding-bottom: 4rem;
  text-align: center;
  min-width: 41rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about h2 {
  position: relative;
  top: 0;
  font-size: 2rem;
  color: #000000;
}

.text-about {
  margin: auto 5rem;
  border: 1px solid #d65e5d;
  border-radius: 10px;
  padding: 1rem;
  font-size: 1.2rem;
  font-family: Arial, Helvetica, sans-serif;
}

/* Раздел Гарантия  ==================================================================*/

.guarantee {
  height: 30rem 0;
  min-width: 41rem;
  background-image: url('assets/rukopojatie.jpg');
  background-size: cover;
  text-align: center;
  position: relative;
  padding: 100px 150px;
}

.guarantee-content {
  background-color: rgba(0, 0, 0, 0.8);
  border: 2px solid #d65e5d;
  border-radius: 10px;
  padding: 10px;
  margin: 1rem;
  max-width: 86%;
  min-width: 30rem;
  z-index: 1; /* Помещаем контент над фоном */
  margin: 0 auto; /* Центрируем контент по горизонтали */
  position: relative;
}

.guarantee h2 {
  font-size: 35px;
  font-weight: bold;
}

.guarantee p {
  font-size: 20px;
  margin-top: 20px;
  line-height: 2.2rem;
  font-family: Arial, Helvetica, sans-serif;
}

/* Немного серый цвет текста */
.guarantee-content h2,
.guarantee-content p {
  color: rgb(214, 214, 214);
}

/* Раздел Контакты  ==================================================================*/

.contacts {
  min-width: 41rem;
  height: 30rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contacts-container {
  padding: 10px;
  margin: 2rem auto;
}

.contacts h2 {
  font-size: 35px;
  font-weight: bold;
}

.icon {
  font-size: 20px;
  margin: 1rem;
  border: 1px solid #d65e5d;
  border-radius: 10px;
  max-width: 30rem;
  min-width: 15rem;
  max-height: 15rem;
  min-height: 5rem;
  text-align: center;
  justify-content: center;
}

.contacts p {
  font-style: normal;
  font-size: 1.5rem;
  margin: 1rem;
}

#mail img,
#number img {
  width: 35px;
}

.support {
  min-width: 41rem;
  height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
}

.support-container {
  border: 1px solid #d65e5d;
  border-radius: 10px;
  padding: 1rem;
}

.support input {
  width: 30rem;
  height: 2rem;
  border: 1px solid #d65e5d;
  border-radius: 5px;
}

.support textarea {
  width: 30rem;
  height: 5rem;
  border: 1px solid #d65e5d;
  border-radius: 5px;
}

.support label {
  display: flex;
  justify-content: start;
  margin-top: 1rem;
}

.btn-send {
  color: white; /* Цвет подписей */
  border: 1px solid #f36365;
  border-radius: 10px;
  color: #000000;
  background-color: #f36365;
  padding: 1rem;
  font-weight: bold;
  font-size: 1.5rem;
  cursor: pointer;
}

.btn-send:hover {
  box-shadow: #000000 2px 2px 4px;
  border: 1px solid #000000;
  transition: 0.3s ease;
}

footer {
  min-width: 41rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: black;
  color: white;
  height: 100px; /* Измените на нужную вам высоту */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

footer img {
  width: 10%;
  margin: 2rem;
}

footer p {
  color: rgb(126, 126, 126);
}

/* Медиазапрос для узких экранов (например, меньше 810px) */
@media (max-width: 1400px) {
  nav ul li {
    margin: 10px 25px;
  }

  .logo {
    margin-right: 3rem;
    margin-left: 3rem;
  }

  #header_contacts {
    margin-right: 3rem;
  }

  .item {
  }

  .сategory {
    padding-inline: 15px;
  }

  .guarantee {
    padding: 100px 0;
  }

  .guarantee p {
    font-size: 19px;
    margin-top: 20px;
    line-height: 1.5rem;
  }
}

@media (max-width: 821px) {
  .logo {
    position: relative;
    margin-right: 2rem;
    margin-left: 2rem;
    z-index: 10;
  }

  #header_contacts {
    margin-right: 2rem;
  }

  nav ul {
    align-items: center; /* Выравниваем кнопки по центру */
  }

  nav ul li {
    margin: 10px 15px;
  }

  nav ul li:last-child {
    margin-left: 30px;
    /* Убираем правый отступ между кнопками */
  }

  nav ul li a {
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
  }

  .carousel {
    min-width: 30rem; /* Можно изменить в зависимости от желаемого размера */
    max-width: 30rem;
  }

  .products h2 {
    padding-top: 2rem;
  }

  .сategory {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 столбцов */
    margin: 5rem 5rem;
  }

  .item {
    width: 14rem;
    min-height: 10rem;
  }

  .guarantee-content {
    max-width: 70%;
    min-width: 8rem;
  }

  .guarantee h2 {
    font-size: 30px;
  }

  .guarantee p {
    font-size: 16px;
    margin-top: 5px;
    line-height: 1.1rem;
  }

  .support input,
  textarea {
    max-width: 23rem;
  }
}
/*
@media (max-width: 430px) {
  nav ul {
    align-items: center; // Выравниваем кнопки по центру 
    min-width: 204px;
  }
  nav ul li {
    margin-right: 10px; // Убираем правый отступ между кнопками 
    margin-bottom: 0px; // Добавляем отступ снизу для кнопок 
  }

  nav ul li a {
    text-decoration: none;
    color: rgb(0, 0, 0);
    font-weight: 700;
    font-size: 0.6rem;
    font-family: Arial, Helvetica, sans-serif;
  }

  #header {
    left: 0.3rem;
    right: 0.3rem;
  }

  #header1 {
    width: 1.7rem;
  }

  #header2 {
    left: 7.8rem;
  }

  .logo {
    position: relative;
    margin-top: 2rem;
    margin-right: 50px;
    margin-left: 2rem;
    z-index: 10;
  }

  .logo img {
    max-width: 5.5rem; // Уменьшаем размер логотипа на узких экранах 
    min-width: 70px;
  }

  .about-content {
    margin-top: 1rem;
  }

  .about-content h2 {
    font-size: 1rem;
  }
  .about-content p {
    font-size: 0.7rem;
  }

  .сategory {
    border: none;
    padding: 5px;
    max-width: 95%;
    display: grid;
    grid-template-columns: repeat(5, 1fr); // 6 столбцов 
    gap: 2px; // Расстояние между кнопками 
  }

  .item {
    min-width: 3rem;
  }

  .guarantee-content {
    max-width: 95%;
    min-width: 8rem;
  }

  .guarantee p {
    font-size: 14px;
    margin-top: 10px;
    line-height: 1.1rem;
  }

  .support-container {
    border: 1px solid #d65e5d;
    border-radius: 10px;
    padding: 1rem;
  }

  .support input,
  textarea {
    max-width: 20rem;
  }
}
*/
