/* ============================================================
   /themes/css/team.css
   Страница «Наша команда» (id 71) — приведение карточек к макету.
   Подключается только на этой странице, ?v=N поднимать вручную.
   Селекторы намеренно длинные — перебиваем правила из main.css.
   ============================================================ */

/* --- Сетка ---------------------------------------------------- */

.workerPage .workerRow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 24px;
  align-items: start;              /* карточки разной высоты не тянутся */
}

/* --- Карточка: убираем серую плашку --------------------------- */

.workerPage .workerRow .item {
  width: auto;                     /* если в main.css задана flex-ширина */
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

/* --- Фото ----------------------------------------------------- */

.workerPage .workerRow .item .img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;             /* в макете фото почти квадратное */
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: #eef0f3;       /* подложка, пока картинка грузится */
  border-radius: 8px;
  margin: 0 0 12px;
}

/* фолбэк для браузеров без aspect-ratio */
@supports not (aspect-ratio: 1 / 1) {
  .workerPage .workerRow .item .img {
    height: 0;
    padding-top: 100%;
  }
}

/* --- Текстовый блок ------------------------------------------- */

.workerPage .workerRow .item .text {
  padding: 0;
  background: none;
}

.workerPage .workerRow .item .text .name {
  display: block;
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
  color: #111318;
}

/* Должность */
.workerPage .workerRow .item .text .team-position {
  margin: 3px 0 10px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 400;
  font-style: normal;
  color: #8b9099;
}

/* Цитата */
.workerPage .workerRow .item .text .team-quote {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  font-style: italic;
  color: #1c1c1c;
}

/* Телеграм */
.workerPage .workerRow .item .text .team-tg {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.workerPage .workerRow .item .text .team-tg a {
  color: #2f6fdb;
  text-decoration: none;
  border-bottom: 0;
}

.workerPage .workerRow .item .text .team-tg a:hover {
  text-decoration: underline;
}

/* --- Разделитель перед формой --------------------------------- */

.workerPage > hr {
  margin: 56px 0 0;
  border: 0;
  border-top: 1px solid #e3e6ea;
}

/* --- Адаптив -------------------------------------------------- */

@media (max-width: 900px) {
  .workerPage .workerRow { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .workerPage .workerRow { grid-template-columns: 1fr; gap: 28px; }
}
