@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

body,
html {
  margin: 0;
  padding: 0;
  justify-content: center;
  align-items: center;
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 16px;
  scroll-behavior: smooth;
  width: 100%;
  /*user-select: none; /* Отключает выделение текста в заголовке */
}

#h1-header {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 20px;
  color: #34495e;
}

.container-fluid {
  padding: 0;
}

.top-title {
  font-size: 2rem;
  color: #c0392b;
}

.navbar-toggler-icon {
  filter: brightness(5); /* Увеличивает яркость в 1.5 раза */
}

.navbar-nav a {
  color: whitesmoke;
}

.top-fon {
  background-image: url("/images/top1.jpg");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  height: 90vh;
  position: relative; /* Для позиционирования псевдоэлемента */
  display: grid;
  place-items: center;
}

.top-fon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Черный с прозрачностью 50% */
  z-index: 1; /* Слой затемнения поверх фона */
}

/* Если внутри .top-fon есть контент, задайте ему z-index выше */
.top-fon > * {
  position: relative;
  z-index: 2;
}

.top-fon-content {
  font-size: 1rem;
}

.top-fon-content h1 {
  color: white;
  font-size: 3vw;
  text-transform: uppercase;
}

.top-fon-content p {
  font-size: 1.5vw;
}

.our-services-header {
  text-align: center;
}

.our-services-header p {
  font-size: 1.5rem;
}

.our-services-content {
  display: flex;
  flex-direction: row;
  gap: 30px;
}

.item-service {
  text-align: center;
  background: #eaf2f8;
  border-radius: 5px;
  border: 1px solid #ccc;
  padding: 20px;
  min-height: 300px;
}

.item-service h3 {
  margin-top: 20px;
  font-size: 1.2rem;
}

.item-service p {
  font-size: 1.2rem;
}

.item-service img {
  width: 100px;
}

/**/
.our-team {
  background-image: url("/images/team.jpg");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  height: auto;
  padding: 30px 0;
  position: relative;
}

.our-team::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Черный с прозрачностью 50% */
  z-index: 1; /* Слой затемнения поверх фона */
}

/* Если внутри .our-team есть контент, задайте ему z-index выше */
.our-team > * {
  position: relative;
  z-index: 2;
}

.our-team-content {
  background-color: rgba(255, 255, 255, 0.75); /* Белый с прозрачностью 50% */
  padding: 30px;
  height: auto;
}

.our-team-content > * {
  position: relative;
  z-index: 2;
}

.our-team-content p {
  font-size: 1.2rem;
  text-align: justify;
}

/* --------------- */

.out-progress {
  background-image: url("/images/record.png");
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: cover;
  height: 252px;
  position: relative; /* Для позиционирования псевдоэлемента */
}

.box-progress {
  display: flex;
  flex-direction: row;
  gap: 50px;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.item-progress {
  color: #bfc9ca;
  text-align: center;
}

.item-progress h1 {
  font-size: 3rem;
}

.item-progress p {
  font-size: 1.2rem;
}

/* --------------- */
.div-goon {
  background: whitesmoke;
  height: auto;
  padding: 30px 10px;
  position: relative; /* Для позиционирования псевдоэлемента */
}

.div-goon p {
  font-size: 1.2rem;
  text-align: justify;
}

/* --- */
.reviews-desktop {
  display: block;
}

.reviews-mobile {
  display: none;
}

.box-review {
  display: flex;
  flex-direction: row;
  gap: 30px;
  position: relative;
  overflow: visible; /* по умолчанию */
}

.item-review {
  padding: 30px;
  background: #f8f9f9;
  border: 1px solid #ccc;
  border-radius: 10px;
}

.item-review h3 {
  margin-top: 10px;
}

.item-review h4 {
  font-size: 1rem;
}

.item-review p {
  font-size: 1.1rem;
  text-align: justify;
}
/* --- */

.div-footer {
  height: auto;
  background: #212f3d;
  padding: 30px;
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 961px) {
  .navbar-nav {
    background: whitesmoke;
    padding-left: 20px;
  }

  .navbar-nav a {
    color: #333;
  }

  #h1-header {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .top-title {
    font-size: 6vw;
  }

  .top-fon {
    background-size: auto;
    height: 90vh;
  }

  .our-services-content {
    display: block;
    text-align: center;
  }

  .item-service {
    margin: auto;
    width: 90vw;
    margin-bottom: 20px;
  }

  .our-team {
    height: auto;
    padding: 30px 0;
  }

  .top-fon-content h1 {
    font-size: 4.5rem;
  }

  .top-fon-content p {
    font-size: 3rem;
  }

  .our-team-content {
    position: relative;
    width: 90vw;
    top: 0;
    left: 0;
    padding: 20px;
    margin: auto;
    height: auto;
  }

  .reviews-desktop {
    display: none;
  }

  .reviews-mobile {
    display: block;
  }


  .out-progress {
    height: auto;
    padding: 20px 0;
  }

  .box-progress {
    flex-wrap: wrap; /* позволяет перенос на новую строку */

    align-items: center;
    justify-content: center;
  }

  .item-progress {
    color: #bfc9ca;
    text-align: center;
    flex: 0 1 calc(50% - 25px); /* 50% ширина минус половина gap */
    box-sizing: border-box;
  }
}

/* mobile */
@media (max-width: 768px) {
  .top-fon-content h1 {
    font-size: 2rem;
  }

  .top-fon-content p {
    font-size: 1.5rem;
  }
}

/* Адаптивные стили для десктопов */
@media (min-width: 769px) {
}
