/* 03.4 «Команда» — четыре группы компетенций */

.team-h {
  margin-top: 40px;
  font-size: min(96px,7.4cqw);
  font-weight: 900;
  line-height: .9;
  text-transform: uppercase;
}

.tms {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  margin-top: 56px;
  border-top: 1px solid var(--fg28);
}

.tm {
  display: flex;
  flex-direction: column;
  padding: 32px 24px 8px 0;
  min-width: 0;
}

.tm+.tm {
  padding-left: 24px;
  border-left: 1px solid var(--fg28);
}

.tm-n {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  color: rgba(27,23,20,.66);
  font-variant-numeric: tabular-nums;
}

.tm-h {
  margin-top: 18px;
  min-height: 1.8em;
  font-weight: 900;
  font-size: clamp(34px,3.2vw,48px);
  line-height: .9;
  text-transform: uppercase;
}

.tm-p {
  margin-top: 12px;
  min-height: 3em;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--fg88);
}

.tm-l {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tm-l li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
}

.tm-l li::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  background: var(--acc);
}

@media (hover:hover) and (pointer:fine) {
  .tm:hover .tm-h {
    color: var(--acc-t);
    transition: color .4s;
  }
}

@media (min-width:901px) and (max-width:1100px) {
  /* в узких колонках «1С-архитекторы» и «Продакт-менеджеры» не должны рваться после дефиса */
  .tm-h {
    font-size: 30px;
  }
  .tm-p {
    min-height: 4.35em;
  }
  .tm-l li {
    font-size: 16px;
  }
}

@media (max-width:900px) {
  .team-h {
    font-size: clamp(40px,12cqw,96px);
  }
  .tms {
    grid-template-columns: 1fr 1fr;
    row-gap: 24px;
  }
  .tm:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width:640px) {
  .tms {
    grid-template-columns: minmax(0,1fr);
  }
  .tm,
  .tm+.tm {
    padding: 26px 0 18px;
    border-left: 0;
  }
  .tm+.tm {
    border-top: 1px solid var(--fg28);
  }
  .tm-h,
  .tm-p {
    min-height: 0;
  }
}
