/* =============================================================================================================================================== */
/* MAIN */
/* =============================================================================================================================================== */

.navbar {
  background-color: #fff !important;
  padding-left: 2.5%;
}

.navbar-brand {
  padding-right: 2%;
  width: 10%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 990px) {
  .navbar-brand {
    margin-left: 2%;
    width: 30%;
  }

  .nav-link {
    width: 100px;
  }
}

.nav-item {
  width: 10%;
}

.services {
  padding: 10%;
  width: 100%;
  background-color: rgba(100, 150, 250, 1);
}

/* Контейнер слайдера */
.carousel {
  width: 100%;
  max-width: 560px; /* Максимальная ширина */
  height: auto;
  /* aspect-ratio: 16 / 9; */
}

/* Элементы слайдера */
.carousel-item {
  width: 100%;
  height: 100%;
}

/* Картинки полностью покрывают блок */
.carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Заполняет блок без искажений */
  aspect-ratio: 14 / 9;
}

/* Адаптивные кнопки управления */
.carousel-control-prev,
.carousel-control-next {
  width: 5vw;
  height: 5vw;
  background-color: rgba(0, 0, 0, 0); /* Полупрозрачный фон */
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

/* Сдвигаем кнопки за пределы слайдера */
.carousel-control-prev {
  left: -5vw;
}

.carousel-control-next {
  right: -5vw;
}

/* Увеличенные иконки стрелок */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 80%;
  height: 80%;
}

.title {
  font-weight: bold;
  font-size: clamp(6px, 3.2vw, 100px);
}

@media (max-width: 767px) {
  .carousel {
    width: 82%;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 10vw;
    height: 10vw;
  }

  .carousel-control-prev {
    left: -10vw;
  }

  .carousel-control-next {
    right: -10vw;
  }
}

/* =============================================================================================================================================== */
/*  NUMBER CARDS */
/* =============================================================================================================================================== */

.card-number {
  font-size: clamp(6px, 9vw, 200px);
  font-weight: 100;
  border-bottom: 2px solid rgba(100, 150, 250, 1);
}

.card-number-text {
  font-size: clamp(6px, 1.5vw, 200px);
  text-align: left;
}

#partners-text {
  font-size: clamp(6px, 5vw, 200px);
}

@media (max-width: 760px) {
  .partners-text {
    font-size: clamp(6px, 1vw, 200px);
  }

  .card-number {
    font-size: clamp(6px, 11vw, 200px);
    font-weight: 100;
  }

  .card-number-text {
    font-size: clamp(6px, 3vw, 200px);
  }

  .number-card-col {
    width: 50%;
  }
}

/* =============================================================================================================================================== */
/* CASES */
/* =============================================================================================================================================== */

/* Основной стиль карточек */
.card {
  position: relative;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 1s ease, box-shadow 1s ease; /* Плавный эффект */
}

/* Эффект тени и подъема при наведении */
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 1);
}

/* Стилизуем текстовую часть карточки */
.card-body {
  position: relative;
  height: 33%;
  transition: all 1s ease;
  z-index: 2;
}

/* Сжимаем текст в 4 раза при наведении */
.card:hover .card-body {
  height: 25%;
}

.card-title {
  font-size: clamp(5px, 1vw, 50px);
}

/* Стили для картинки */
.card-img-top {
  width: 100%;
  height: auto;
  max-height: 400px; /* Задаем фиксированную высоту для изображений */
  object-fit: cover;
  aspect-ratio: 14 / 9;
  transition: all 1s ease;
}

/* Увеличиваем картинку при наведении */
.card:hover .card-img-top {
  transform: scale(1.1);
}

/* Дополнительный стиль для разделителей и отступов */
.g-4 {
  gap: 0px;
}

/* Применяем тень по умолчанию */
.shadow-custom {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.number-card {
  border: 0px solid #fff;
  box-shadow: 0 0px 0px rgba(0, 0, 0, 0);
}

/* Стиль для контейнера */
.container-fluid {
  width: 100%;
  padding-left: 3%;
  padding-right: 3%;
}

.modal {
  display: none; /* Скрыто по умолчанию */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Полупрозрачный фон */
  z-index: 9999;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

.modal-content {
  background-color: #fff;
  padding: 20px;
  padding-top: 0;
  border-radius: 10px;
  max-width: 1200px;
  width: 40%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#modal-title {
  text-align: center;
  font-size: clamp(6px, 2vw, 60px);
  font-weight: bold;
  width: 100%;
}

#modal-image {
  width: 80%; /* Фото занимает 90% ширины модального окна */
  height: 60%;
  max-height: 40vh; /* Ограничение высоты */
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
}

.modal-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  width: 90%;
  /* margin-top: 20px; */
}

.modal-info {
  display: flex;
  flex-direction: row;
  /* justify-content: flex-start; */
  align-items: space-between;
  width: 100%;
}

.price {
  font-size: clamp(6px, 1.2vw, 60px);
  /* font-weight: bold; */
  width: 33.3%; /* Блок с ценой занимает 1/3 ширины */
  min-height: 40%;
  padding-right: 5%;
}

.description {
  font-size: clamp(6px, 1vw, 60px);
  overflow-y: auto;
  width: 66.3%;
  max-height: 400px;
  text-align: justify;
}

/* Кнопка закрытия */
.close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 2rem;
  color: #000;
  cursor: pointer;
}

.close:hover {
  color: red;
}

/* Размытый фон */
.blur-background {
  filter: blur(5px);
  pointer-events: none;
}

.last-card {
  flex: 0 0 auto !important;
  width: 33.33333333% !important;
  margin-left: calc(33.33333333%);
}

@media (max-width: 767px) {
  .last-card {
    width: 100% !important;
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  .modal-content {
    width: 90%;
  }

  .modal-header {
    font-size: 2rem;
    width: 100%;
  }

  #modal-image {
    width: 80%; /* Фото занимает 90% ширины модального окна */
    height: 60%;
    max-height: 40vh; /* Ограничение высоты */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
  }

  .modal-body {
    width: 90%;
    /* margin-top: 20px; */
  }

  .card-title {
    font-size: clamp(5px, 5vw, 60px);
  }

  .modal-info {
    width: 100%; /* Описание занимает 2/3 ширины */
  }

  #modal-title {
    font-size: clamp(6px, 4vw, 60px);
  }

  .price {
    font-size: clamp(6px, 2.5vw, 60px);
    width: 33.3%; /* Блок с ценой занимает 1/3 ширины */
    min-height: 40%;
    padding-left: 5%;
  }

  .description {
    font-size: clamp(6px, 2vw, 60px);
    width: 66.3%;
    max-height: 400px;
  }
}

/* =============================================================================================================================================== */
/* PARTNERS */
/* =============================================================================================================================================== */

/* Стили для блока партнеров */
.container h3 {
  font-size: 3rem;
  font-weight: bold;
  color: #333;
}

img {
  max-width: 100%;
  height: auto;
}

.partners-text {
  font-size: clamp(6px, 3vw, 60px);
}

.partners-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.partners-row .col-4,
.partners-row .col-sm-3,
.partners-row .col-md-2 {
  padding: 0 15px;
}

#partners_logo {
  max-width: 150px;
}

@media (max-width: 767px) {
  .partners-row .col-4 {
    max-width: 50%;
  }
  #partners_logo {
    max-width: 90px;
  }
}

@media (max-width: 500px) {
  .partners-row .col-4 {
    max-width: 100%;
  }
  #partners_logo {
    max-width: 70px;
  }
}

/* =============================================================================================================================================== */
/* SMI */
/* =============================================================================================================================================== */

/* Основной стиль блока */
.media-section {
  margin-top: 50px;
  margin-bottom: 50px;
}

.media-title {
  font-size: 28px;
  font-size: clamp(6px, 3vw, 60px);
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
}

.media-row {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap; /* Это позволяет переносить элементы на новую строку */
}

.media-card {
  position: relative;
  background-color: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  width: 300px;
  height: 350px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.media-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: absolute; /* Картинка будет внутри блока, покрывая весь фон */
  top: 0;
  left: 0;
}

.media-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background-color: rgba(0, 0, 0, 0.5); /* Прозрачный фон для текста */
  color: #fff;
  text-align: center;
}

.media-title-news {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.media-date {
  font-size: 14px;
  color: #ccc;
}

@media (max-width: 768px) {
  .media-row {
    justify-content: center; /* Центрируем карточки на мобильных */
  }

  .media-card {
    width: 100%;
    max-width: 350px; /* Ограничиваем максимальную ширину */
  }
}

/* =============================================================================================================================================== */
/* FAQ */
/* =============================================================================================================================================== */

.faq-container {
  /* max-width: 600px; */
  width: 95%;
  margin: 0 auto;
  margin-top: 5%;
}

.faq-title {
  text-align: center;
  font-weight: bold;
  font-size: clamp(6px, 3vw, 60px);
  margin-bottom: 20px;
}

.faq-list {
  list-style: none;
  padding: 0;
}

.faq-item {
  background-color: rgba(100, 150, 250, 0.5);
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: clamp(6px, 2vw, 60px);
}

.faq-icon {
  font-size: 20px;
  font-size: clamp(6px, 2vw, 60px);
  transition: transform 0.3s ease;
}

.faq-answer {
  margin-top: 10px;
  display: none;
  font-size: 14px;
  font-size: clamp(6px, 2vw, 60px);
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

@media (max-width: 1100px) {
  .faq-title {
    font-size: clamp(6px, 4vw, 60px);
  }
  .faq-question {
    font-size: clamp(6px, 3vw, 60px);
  }

  .faq-icon {
    font-size: clamp(6px, 3vw, 60px);
  }

  .faq-answer {
    font-size: clamp(6px, 3vw, 60px);
  }
}

/* =============================================================================================================================================== */
/* FORM */
/* =============================================================================================================================================== */

/* .container-fluid {
  width: 100%;
  padding: 0 5%;
} */

.custom-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.info-text {
  flex: 0 0 40%;
  max-width: 40%;
  padding-right: 2%;
}

.info-text h2 {
  font-size: 2rem;
  font-weight: bold;
}

.info-text p {
  font-size: 1.4rem;
}

.col-lg-8 {
  flex: 0 0 60%;
  max-width: 60%;
}

form .form-group {
  margin-bottom: 1.4rem;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-row .form-group {
  flex: 1;
}

form .btn {
  background-color: rgba(100, 150, 250, 1);
  width: 100%;
}

@media (max-width: 1100px) {
  .info-text {
    flex: 1 1 100%;
    max-width: 100%;
    text-align: center;
  }

  .col-lg-8 {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* =============================================================================================================================================== */
/* FOOTER */
/* =============================================================================================================================================== */

/* Стили для футера */
footer {
  /* background-color: rgba(100, 150, 250, 0.5); */
  background-color: #fff;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

footer .container {
  max-width: 1200px;
}

footer h5 {
  font-size: 1.2rem;
  font-weight: bold;
}

footer p {
  font-size: 1rem;
}

footer ul {
  padding-left: 0;
}

footer ul li {
  list-style: none;
}

footer ul li a {
  text-decoration: none;
  color: #333;
}

footer ul li a:hover {
  text-decoration: underline;
}

footer .fa-shield-alt {
  margin-right: 8px;
}

/* Отступы для элементов футера */
footer .row > div {
  margin-bottom: 1.5rem;
}

footer .row .col-md-3 {
  margin-bottom: 0;
}

.logo img {
  width: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  footer .row {
    text-align: center;
  }

  footer .col-md-3 {
    margin-bottom: 2rem;
  }
}
