

.i-m-tired-naming-grids {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* Специальный контейнер для карты и основной информации */
.header-contact-row {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 10px;
  padding: 20px;
  border-radius: 12px;
  background-color: #fff;
  border-top: 3px solid #2E7D32;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.grid-tired-element {
  background-color: transparent;
  border: none;
  border-radius: 12px;
  padding: 2px;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.list-headings {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2E7D32;
  margin: 0 0 8px 0;
}

.subheading {
  font-weight: 600;
  font-size: 1.05rem;
  color: #616161;
  margin: 8px 0 4px 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Контейнер для информации с иконкой */
.contact-info {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 4px 0 4px 14px;
}

.contact-info img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info a {
  color: #2E7D32;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.2;
  word-wrap: none;
  word-break: none;
  white-space: none;
  width: max-content;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-info span {
  color: #424242;
  font-size: 1.15rem;
  line-height: 1.2;
}

/* Блок рабочего времени */
.note {
  color: #6b7280;
  font-size: 1.05rem;
  line-height: 1.2;
  padding-left: 30px;
  margin-bottom: 4px;
}

.fn {
 text-transform: uppercase;
  max-width: 500px;
  font-size: 1.9rem;
  line-height: 1.2;
}

.general-wrapper {
  display: flex;
  flex-direction: row;

}

/* ФИО контактного лица */
.contact-name {
  color: #616161;
  font-size: 1rem;
  font-weight: 400;
  margin-left: 4px;
}

/* Факс */
.tel .type {
  display: block;
  margin: 12px 0 4px 0;
}

/* Карточки заместителей */
.deputies-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: stretch;
  height: 100%;
}

.compact-groups .deputies-grid {
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}
.deputy-card {
  background: #fff;
  border-radius: 12px;
  border-top: 3px solid #2E7D32;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.deputy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.deputy-photo {
  width: 160px;
  height: 190px;
  margin: 0 auto 16px;
  overflow: hidden;
  background: #f5f5f5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.deputy-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.deputy-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.25;
  min-height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deputy-role {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.2;
  min-height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deputy-info {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 10px;
}

.deputy-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
  width: 100%;
}

.deputy-phone.center {
  margin-bottom: auto;
}

.deputy-phone img {
  width: 20px;
  height: 20px;
  opacity: 0.6;
}

.deputy-phone a {
  font-size: 1rem;
  color: #2E7D32;
  text-decoration: none;
  font-weight: 500;
}

.deputy-photo.placeholder {
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deputy-photo.placeholder::before {
  content: "";
  width: 48px;
  height: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%23bdbdbd' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Группы контактов в одну строку */
.compact-groups {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.compact-groups .grid-tired-element {
  padding: 0;
}

.compact-groups .grid-tired-element.span-2 {
  grid-column: span 2;
}

.compact-groups .grid-tired-element.span-3 {
  grid-column: span 3;
}

/* Несколько телефонов в одной карточке */
.deputy-phones {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  align-items: center;
}

.deputy-phones .deputy-phone {
  margin-top: 0;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
  .header-contact-row {
    grid-template-columns: 1fr;
  }
  .compact-groups {
    grid-template-columns: 1fr;
    gap: 10px;
  }

/* Сбрасываем растягивание на несколько колонок */
  .compact-groups .grid-tired-element.span-2,
  .compact-groups .grid-tired-element.span-3 {
    grid-column: span 1;
  }

  /* Заставляем карточки внутри "Приемной" и других блоков переноситься */
  .deputies-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }

  
  .grid-tired-element {
    padding: 12px;
  }

  .list-headings {
    font-size: 1.15rem;
  }

  .subheading {
    font-size: 0.8rem;
    margin-left: 28px;
  }

  .contact-info {
    margin-left: 28px;
  }

  .deputy-photo {
    width: 120px;
    height: 150px;
  }
}

@media (max-width: 480px) {
  .i-m-tired-naming-grids {
    gap: 10px;
  }

  .grid-tired-element {
    padding: 10px;
  }

  .list-headings {
    font-size: 1.05rem;
  }

  .contact-info img {
    width: 16px;
    height: 16px;
  }

  .contact-info a,
  .contact-info span {
    font-size: 0.95rem;
  }

  .subheading,
  .contact-info {
    margin-left: 24px;
  }

  .deputies-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .compact-groups {
    grid-template-columns: repeat(2, 1fr);
  }

  .deputy-card {
    padding: 16px 12px;
  }

  .deputy-name {
    font-size: 0.85rem;
  }

  .deputy-role {
    font-size: 0.7rem;
  }

  .deputy-phone a {
    font-size: 0.9rem;
  }
}

/* Стили для широкой карточки приемной */
.reception-wide-card {
display: flex;
  flex-direction: row;
  align-items: stretch;
}

.deputy-main-side {
display: flex;
  flex-direction: column;
  flex: 0 0 200px;
  gap: 10px;
}

.deputy-more-info {
  flex: 1; /* Занимает все оставшееся место */
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100%;
  justify-content: start;
}

.deputy-main-side .deputy-phone {
  margin-top: auto; /* Прижимает телефон секретаря к низу */
}

/* Правая часть с доп. информацией */
.deputy-more-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  justify-content: center;
}

/* Первый блок (Приемная) оставляем наверху, 
   а второй (Факс) толкаем вниз */


/* Чтобы иконки и ссылки внутри info-group тоже были внизу своего контейнера */





