.subsection:empty,
.subsection-content:empty,
.document-list:empty {
  display: none !important;
}

/* Скрываем подразделы, где все документы скрыты */
.subsection:not(:has(.document-list a:not([style*="display: none"]))) {
  display: none !important;
}






/*Основние сведения*/
.pdf-document {
  background-color: rgb(71, 71, 71);
  width: 50rem;
  height: 50rem;
  border-radius: 1rem;
}

.links-container {
  margin-top: 1rem;
}

.links-container ul {
  list-style-type: none;
}

.links-container li {
  background-color: var(--banana);
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.links-container li:hover {
  background-color: var(--accent);
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 1rem;
  color: var(--text);
}

/*Вакантные места*/
.education-block {
  max-width: 1200px;
  margin: 20px auto;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.education-scrollable {
  max-height: 37.5rem;
  overflow-y: auto;
  padding-right: 10px;
}

.education-item {
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 1rem;
  overflow: hidden;
}

.education-header {
  padding: 10px;
  background-color: var(--text);
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr 10fr 4fr 50px;
  align-items: center;
}

.spec-number {
  background-color: var(--accent);
  min-width: 40px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  color: var(--text);
  margin: 0.8rem;
}

.spec-info {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.spec-code {
  font-weight: bold;
  margin-right: 15px;
}

.spec-name {
  flex-grow: 1;
  display: flex;
}

.panel-wrapper {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  justify-content: space-between;
}

.panel-wrapper div {
  margin: 10px;
}



.panel-wrapper a:hover {
  color: var(--banana) !important;
}

.panel-wrapper a {
  color: var(--text) !important;

}

.spec-details {
  display: flex;
  gap: 15px;
}

.detail {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-weight: bold;
  margin-right: 5px;
}

.detail-value {
  padding: 0.3rem;
}

.arrow {
  font-size: 16px;
  transition: transform 0.3s;
  margin-left: 15px;
}

.education-description {
  display: none;
  border-top: 1px solid var(--dark-blue);

  padding: 10px;
  background-color: var(--text);
}

.description-row {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  margin-bottom: 10px;
  gap: 15px;
}

.desc-item {
  display: flex;
}

.full-width {
  width: 100%;
}

.desc-label {
  font-weight: bold;
  margin-right: 5px;
}

.budget-section {
  margin-top: 15px;
}

.budget-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 8px;
}

.budget-item {
  display: flex;
  flex: 1;
  min-width: 200px;
}

.budget-label {
  margin-right: 5px;
}

.education-item.active .education-description {
  display: block;
}

.education-header:hover {
  background-color: #00000004 !important;
}

/*Документы*/
:root {
  --banana: #fff9c4;
  --accent: #2196f3;
  --text: #ffffff;
}

.documents-block {
  max-width: 800px;
  margin: 20px auto;
  font-family: Arial, sans-serif;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.documents-block h1 {
  background-color: #f5f5f5;
  padding: 15px 20px;
  margin: 0;
  font-size: 1.5em;
  border-bottom: 1px solid #e0e0e0;
}

.documents-scrollable {
  max-height: 70vh;
  overflow-y: auto;
  padding: 0 20px;
  /* display: grid; */
  /* grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); */
  gap: 2rem;
}

/* Стилизация скроллбара */
.documents-scrollable::-webkit-scrollbar {
  width: 8px;
}

.documents-scrollable::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.documents-scrollable::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.documents-scrollable::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.document-section {
  margin: 15px 0;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background-color: #f9f9f9;
  cursor: pointer;
  transition: background-color 0.2s;
}

.section-header:hover {
  background-color: #f0f0f0;
}

.section-header h2 {
  margin: 0;
  font-size: 1.1em;
  color: #333;
}

.toggle-icon {
  font-size: 1.2em;
  font-weight: bold;
  min-width: 20px;
  text-align: center;
  transition: transform 0.2s;
}

.section-content {
  display: none;
  padding: 10px 15px;
  background-color: white;
}

.document-list {
  background-color: var(--banana);
  border-radius: 1rem;
  padding: 1rem;
  transition: all 0.2s;
  margin: 0.7rem;
  cursor: pointer;
}

.document-list a {
  color: var(--dark-blue) !important;
}

.document-list:hover {
  background-color: var(--accent);
}
.document-list:hover a {
  color: var(--banana) !important;
}

.document-section.active .section-content {
  display: block;
}

.document-section.active .toggle-icon {
  transform: rotate(180deg);
}


.leaderhead__wrappper {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.leaderhead__wrappper h4 {
  padding: 0 1rem;
  text-align: center;
}



.doc-card {
  min-width: 200px;
  height: 150px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.doc-card:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.icon-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-icon {
  width: 40px;
  height: 40px;
}

.doc-name {
  margin-top: 10px;
  font-size: 14px;
  text-align: center;
  word-break: break-word;
}


.document-section {
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
}
.section-title h2 p a{
  color: var(--accent);
}
.section-title h2 p a:hover{
  color: var(--dark-blue);
}
.section-header {
  padding: 15px;
  background-color: #f5f5f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.section-header h2 {
  margin: 0;
  font-size: 18px;
}

.toggle-icon {
  font-size: 20px;
}

.section-content {
  padding: 15px;
  display: none;
  /* Скрыто по умолчанию */
}

.subsection {
  margin-bottom: 15px;
  line-height: 1.6;
}

.subsection-header {
  font-weight: bold;
  margin: 10px 0 5px 0;
  padding: 0.5rem;
  color: var(--dark-blue);
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  border-radius: 10px;
}

.subsection-header:hover {
  background-color: #f0f0f0;
}

.document-list {
  padding: 8px 0 8px 15px;
  border-bottom: 1px solid #eee;
}

.document-list:last-child {
  border-bottom: none;
}

.people-card {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.people-card h3 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.people-card>p {
  color: #555;
  margin-bottom: 20px;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.people-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.people-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.people-card>div:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 15px;
}

.people-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #f5f5f5;
}

.people-card h4 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.1rem;
  text-align: center;
  line-height: 1.3;
}

.people-content {
  text-align: center;
}

.people-content p:first-child {
  font-weight: 600;
  color: #3498db;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.people-content p {
  color: #555;
  font-size: 0.9rem;
  margin: 5px 0;
  line-height: 1.4;
}

/* НОВОЕ------------------------------------------------------------------------------------ */
.staff-scrollable {
  height: 70vh;
  overflow-y: auto;
  padding: 15px;
}

/* Стилизация скроллбара */
.staff-scrollable::-webkit-scrollbar {
  width: 8px;
}

.staff-scrollable::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.staff-scrollable::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.staff-scrollable::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 2rem 0;
}

.staff-card {
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s;
  /* min-width: 270px !important; */
}

.staff-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.staff-photo {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 15px;
}

.staff-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-info h3 {
  margin: 0 0 10px 0;
  color: var(--primary-color);
}

.position {
  color: var(--secondary-color);
  font-weight: bold;
  margin: 0 0 10px 0;
}

.contacts p {
  /* margin: 5px 0; */
  color: var(--dark-gray);
}

.contacts p.phone,
.contacts p.email {
  cursor: pointer;
  transition: color 0.3s;
}

.contacts p.phone:hover,
.contacts p.email:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.details {
  /* display: none; */
  /* position: fixed; */
  /* z-index: 1000; */

  width: 100%;
}

.details-header {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.details-photo {
  width: 200px;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  flex-shrink: 0;
}

.details-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.details-info {
  flex-grow: 1;
}

.details-info h2 {
  margin-top: 0;
  color: var(--primary-color);
}

.details-stats {
  background: var(--light-gray);
  padding: 15px;
  border-radius: 8px;
}

.details-stats p {
  margin: 8px 0;
}

.details-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  max-width: 44.4rem;
}

.details-tab-btn {
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  background: transparent;
  border-radius: 5px;
}

.details-tab-btn.active {
  border-bottom: 1px solid var(--blue) !important;
}

.details-tabs:hover :not(.active:hover) {
  color: black;
}

.details-tabs:hover :not(.details-tab-btn:hover) {
  opacity: .3;
  background: var(--background);
}

.details-tab-btn:hover {
  background: rgba(0, 0, 0, 0.055);
}

.details-tab-content {
  display: none;
  padding: 15px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.details-tab-content.active {
  display: block;
}

.details-content {
  background-color: #fefefe;
  padding: 20px;
  border: 1px solid #cecece93;
  width: 100%;
  /* height: 800px; */
  border-radius: 8px;
  position: relative;
  overflow-y: auto;
}

.close-details {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-details:hover {
  color: black;
}

#details-title {
  margin-top: 0;
  color: #333;
}

.perepod-container {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin: 20px;
  max-width: 45%;
}

.details-tab-content {
  display: none;
  /* Скрываем все вкладки по умолчанию */
}

.details-tab-content.active {
  display: flex;
  /* Отображаем активную вкладку */
  flex-wrap: wrap;
  justify-content: center;
}

.details-tab-content.active>div {
  min-width: 200px;
  align-content: center;
}

.perepod-container p {
  margin: 10px 0;
  font-size: 16px;
  color: #333;
}

.perepod-container p strong {
  color: #007BFF;
  font-weight: bold;
}

.certificate-card {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  max-width: 300px;
  width: 100%;
  box-sizing: border-box;
  margin: 20px;
}

.certificate-card h3 {
  margin: 0;
  font-size: 20px;
  color: #333;
  font-weight: bold;
}

.search-input-wrapper {
  position: relative;
  margin-top: 2rem;
}

.search-input {
  padding: 0.3rem 1rem;
  width: 100%;
  border-radius: 5px;
  outline: none;
  border: 1px solid var(--dark-blue);
  transition: all 0.3s ease;
  font-size: 1rem;
  background: transparent;
}

.search-input:focus,
.search-input:valid {
  padding: 0.6rem 1rem 0.3rem;
  /* Верхний padding увеличиваем для лейбла */
  border-color: var(--blue);
}

.search-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.collapse-all-btn {
  padding: 0.3rem 1rem;
  background-color: var(--accent);
  border: 1px solid var(--blue);
  border-radius: 5px;
  max-width: 200px;
  cursor: pointer;
  transition: all 0.1s ease;
  white-space: nowrap;
  color: var(--text);
}

.collapse-all-btn:hover {
  background-color: var(--blue);
  border-color: var(--dark-blue);
}

.search-label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  transition: all 0.3s ease;
  pointer-events: none;
  background: #f9f9f9;
  padding: 0 0.3rem;
  font-size: 1rem;
}

.search-input:focus+.search-label,
.search-input:valid+.search-label {
  top: 0;
  transform: translateY(-10px);
  font-size: 0.8rem;
  color: var(--blue);
  background: #f9f9f9;
}
.about h1{
  font-size: 2rem;
  text-align: center;
}
.life-main {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-groups {
  width: 90%;
  /* max-width: 1200px; */
}

.group {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  gap: 2rem;
}

.group h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.group p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.content-wrapper {
  flex: 1;
  min-width: 300px;
}

.content-wrapper.wrap-right {
  display: flex;
  justify-content: flex-end;
}

.clip {
  border: 1px solid rgb(77, 77, 77);
  width: 100%;
  height: auto;
}

.text-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: justify;
  background-color: #0400ff07;
  padding: 2rem;
  border-radius: 1rem;
}

.left-clip {
  clip-path: polygon(0 0, 75% 0, 100% 100%, 0% 100%);
}

.right-clip {
  clip-path: polygon(25% 0, 100% 0%, 100% 100%, 0 100%);
}

/* Планшеты (768px - 1024px) */
@media screen and (max-width: 1024px) {
  .life-main {
    margin-top: 3rem;
  }

  .hero-groups {
    width: 95%;
  }

  .group {
    margin-top: 1.5rem;
    gap: 1.5rem;
  }

  .group h2 {
    font-size: 2rem;
  }

  .group p {
    font-size: 1.1rem;
  }

  .text-wrapper {
    padding: 1.5rem;
  }
}

/* Мобильные устройства (до 768px) */
@media screen and (max-width: 768px) {
  .life-main {
    margin-top: 2rem;
  }

  .hero-groups {
    width: 95%;
  }

  .group {
    flex-direction: column;
    margin-top: 1rem;
    gap: 1rem;
  }

  .group:nth-child(even) {
    flex-direction: column-reverse;
  }

  .content-wrapper,
  .text-wrapper {
    width: 100%;
    min-width: unset;
  }

  .content-wrapper.wrap-right {
    justify-content: center;
  }

  .group h2 {
    font-size: 1.8rem;
    text-align: center;
  }

  .group p {
    font-size: 1rem;
  }

  .text-wrapper {
    padding: 1rem;
    text-align: left;
  }

  /* Упрощаем clip-path для мобильных */
  .left-clip,
  .right-clip {
    clip-path: none;
    border-radius: 0.5rem;
  }
}

/* Маленькие экраны (до 480px) */
@media screen and (max-width: 480px) {
  .life-main {
    margin-top: 1rem;
  }

  .hero-groups {
    width: 98%;
  }

  .group {
    margin-top: 0.8rem;
    gap: 0.8rem;
  }

  .group h2 {
    font-size: 1.5rem;
  }

  .group p {
    font-size: 0.9rem;
  }

  .text-wrapper {
    padding: 0.8rem;
  }

  .clip {
    border-width: 0.5px;
  }
}

/* Очень большие экраны (более 1400px) */
@media screen and (min-width: 1400px) {
  .hero-groups {
    width: 85%;
  }

  .group h2 {
    font-size: 2.4rem;
  }

  .group p {
    font-size: 1.2rem;
  }

  .text-wrapper {
    padding: 2.5rem;
  }
}

@media (max-width: 768px) {
  .details-content {
    width: 95%;
    margin: 10px auto;
    padding: 15px;
  }

  .details-header {
    flex-direction: column;
  }

  .details-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto;
  }

  .details-tabs {
    overflow-x: auto;
    padding-bottom: 10px;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .details-tab-btn {
    white-space: nowrap;
    font-size: 14px;
    padding: 6px 12px;
  }

  .close-details {
    top: 10px;
    right: 15px;
    font-size: 24px;
  }
}

/* Адаптация для мобильных (480px и меньше) */
@media (max-width: 480px) {
  .details-content {
    padding: 10px;
  }

  .details-photo {
    width: 120px;
    height: 120px;
  }

  .details-info h2 {
    font-size: 1.3rem;
  }

  .details-stats p {
    font-size: 14px;
  }

  .details-tab-content {
    padding: 10px;
  }
}