/* history-popup.css или ваш основной CSS-файл */

.history__title {
  margin-bottom: 12px;
  font-size: 1.3em;
  font-weight: bold;
}

.history__subtitle,
.history__phone,
.history__education {
  font-size: 1.1em;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
  padding: 10px 0;
}

.history__phone {
  font-style: italic;
}

.history__text {
  margin-top: 18px;
  font-size: 1em;
  line-height: 1.8;
}

.history__slider-container {
    max-width: 350px; 
    width: 100%; 
    margin: 0 auto; 
    height: 100%;
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
}


/* Убедимся, что сам Swiper внутри контейнера заполняет его */
.swiper.history__swiper {
    width: 100%; /* Swiper займет всю доступную ширину родителя */
    height: 100%; /* Swiper займет всю доступную высоту родителя */
    overflow: hidden; /* Важно, чтобы ничего не выходило за пределы */
}

/* Обязательно для изображений внутри слайда */
.history__slide {
    display: flex;
    justify-content: center; /* Центрируем изображение по горизонтали */
    align-items: center;   /* Центрируем изображение по вертикали */
    width: 100%;
    height: 100%;
    overflow: hidden; /* Обрезать все, что выходит за границы слайда */
}

.history__photo {
    max-width: 100%;  /* Изображение не будет шире контейнера */
    max-height: 100%; /* Изображение не будет выше контейнера */
    object-fit: contain; /* Изображение будет масштабировано, чтобы полностью поместиться, сохраняя пропорции */
    display: block; /* Убрать возможные лишние отступы */
}

/* Дополнительно: стили для кнопок навигации, чтобы они были внутри контейнера */
.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 50%; /* Центрируем по вертикали */
    transform: translateY(-50%); /* Точная центровка */
    /* Убедитесь, что z-index достаточно высок, чтобы кнопки были поверх слайда */
    z-index: 10; 
}

.swiper-button-prev {
    left: 10px; /* Отступ слева */
}

.swiper-button-next {
    right: 10px; /* Отступ справа */
}

/* Если pagination выходит за пределы, тоже позиционируем */
.swiper-pagination {
    position: absolute;
    bottom: 10px; /* Пример: отступ снизу */
    width: 100%;
    text-align: center;
    z-index: 10;
}


 .projects-list__item {
      display: flex;
      flex-direction: column;
      gap: 20px;
      justify-content: space-between;
      padding: 30px 25px;
    }

    .projects-list__text-block {
      padding: 0;
    }

    .broject-list__curator-label {
      font-size: 14px;
      font-weight: 600;
      line-height: 16.8px;
      color: #999999;
    }

    .project-list__curator {
      font-size: 14px;
      font-weight: 600;
      line-height: 16.8px;
      color: var(--main-red);
      margin-top: 5px;
    }

    .projects-list__name {
      font-size: 16px;
      font-weight: 600;
      line-height: 19.2px;
      margin-top: 10px;
    }

    .project-list__button {
      padding: 15px 24px;
      background-color: white;
      border: 2px solid var(--main-red);
      color: var(--main-red);
      width: fit-content;
      pointer-events: none;
    }

    .history__slider-container {
      margin-top: 20px;
    }

    .sc-project__label {
      font-size: 16px;
      font-weight: 600;
      line-height: 19.2px;
      margin-top: 36px;
    }

    .sc-project__curator {
      font-size: 14px;
      font-weight: 600;
      line-height: 16.8px;
      margin-top: 14px;
      color: var(--main-red);
    }

    .video-list__item img {
      height: 46.4vw;
      max-height: 300px;
    }

    .history__video-link {
      margin-top: 20px;
    }

    .history__text.sc-project__about {
      margin-top: 18px;
    }

    @media screen and (min-width: 768px) {
      .projects-list__item {
        min-height: 274px;
      }

      .project-list__curator {
        font-size: 16px;
        line-height: 19.2px;
      }

      .projects-list__name {
        font-size: 18px;
        line-height: 19.8px;
      }

      .history__slider-container {
        margin-top: 24px;
      }

      .sc-project__label {
        font-size: 18px;
        font-weight: 600;
        line-height: 21.6px;
      }

      .sc-project__curator {
        font-size: 18px;
        font-weight: 600;
        line-height: 21.6px;
        margin-top: 10px;
      }

      .video-list__item img {
        height: 380px;
        max-height: unset;
      }

      .history__text.sc-project__about {
        margin-top: 30px;
      }

    }

    @media screen and (min-width: 1200px) {
      .history__slider-container {
        margin-top: 30px;
      }

      .video-list__item img {
        height: 500px;
        max-height: unset;
      }

      .history__video-link {
        margin-top: 60px;
      }

      .history__text.sc-project__about {
        margin-top: 40px;
      }
    }

	.docs-padding {
	  padding-top: 30px;
	}

--------------
.staff-popup {
  visibility: hidden;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.6);
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 300ms ease-in-out;
}

.js-popup-active .staff-popup {
  visibility: visible;
  opacity: 1;
}

.staff-popup__container {
  background-color: white;
  width: 330px;
  display: flex;
  flex-direction: column;
  padding: 30px 20px 35px;
  position: relative;
  border-radius: 12px;
}

.staff-popup__close-btn {
  display: block;
  width: 40px;
  height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 1L1 15M1 1L15 15' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
  background-position: center;
  background-size: 14px 14px;
  background-repeat: no-repeat;
  background-color: white;
  border-radius: 50%;
  cursor: pointer;
  transition: all 300ms ease-in-out;
  position: absolute;
  top: 20px;
  right: 20px;
}

.staff-popup__close-btn:hover {
  transform: rotate(90deg);
}

.staff-popup__pic {
  pointer-events: auto;
  width: 100%;
  height: 337px;
  border-radius: 12px;
  object-fit: cover;
  object-position: top center;
}

.staff-popup__info {
  display: flex;
  gap: 16px;
  flex-direction: column;
  margin-top: 20px;
}

.staff-popup__name {
  font-weight: 600;
  font-size: 18px;
  line-height: 21.6px;
  color: var(--main-red);
}

.staff-popup__text * {
  font-weight: 500;
  font-size: 16px;
  line-height: 19.2px;
  margin-top: 0.8em;
}

.staff-popup__text *:first-child {
  margin: 0;
}

@media screen and (min-width: 768px) {
  .staff-popup__container {
    width: 515px;
    padding: 40px;
  }
  .staff-popup__pic {
    width: 300px;
    height: 361px;
    margin: 0 auto;
  }
  .staff-popup__info {
    margin-top: 40px;
  }
  .staff-popup__name {
    font-size: 26px;
    line-height: 31.2px;
  }
  .staff-popup__close-btn {
    width: 14px;
    height: 14px;
    border-radius: unset;
    background-color: transparent;
    background-size: contain;
  }
}

@media screen and (min-width: 1200px) {
  .staff-popup__container {
    width: 940px;
    padding: 0 85px 0 0;
    flex-direction: row;
    gap: 40px;
    overflow: hidden;
    align-items: center;
  }
  .staff-popup__pic {
    width: 300px;
    height: 330px;
    min-width: 300px;
    min-height: 330px;
    margin: 0 auto;
  }
  .staff-popup__info {
    margin: 0;
  }
  div.staff__container {
    margin-top: 40px;
  }
}
