.page-rabotodatelyam .phead .btn,
.team-process .btn {
  min-width: 0;
  white-space: normal;
}

.team-roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 34px);
}

.team-role {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.team-role figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 8 / 5;
  margin: 0 0 20px;
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: var(--sh);
}

.team-role img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-role .fig-gen {
  background: var(--ink);
  color: var(--card);
}

.team-role h3 { margin-bottom: 10px; }
.team-role p { margin: 0 0 14px; color: var(--muted); }

.team-role ul {
  margin: auto 0 0;
  padding: 5px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.team-role li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  line-height: 1.35;
}

.team-role li svg { width: 15px; height: 15px; flex: none; }

.team-process {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: clamp(30px, 5vw, 72px);
}

.team-process .shead { margin-bottom: 22px; }

.team-process ol {
  margin: 0;
  padding-inline-start: 1.6em;
}

.team-process li {
  padding: 16px 0 16px 5px;
  border-top: 1px solid var(--line2);
}

.team-process li::marker {
  color: var(--tl-d);
  font-weight: 600;
}

.team-process li h3 { margin-bottom: 6px; }
.team-process li p { margin: 0; color: var(--muted); }

.team-quote__details {
  margin-top: 22px;
  color: var(--card);
}

.team-quote__details li svg { color: var(--tl); }

@supports (grid-template-rows: subgrid) {
  @media (min-width: 761px) {
    .team-roles { row-gap: 0; }

    .team-role {
      display: grid;
      grid-row: span 4;
      grid-template-rows: subgrid;
    }

    .team-role ul { margin: 0; }
  }
}

@media (max-width: 760px) {
  .team-roles, .team-process { grid-template-columns: minmax(0, 1fr); }
  .team-roles { row-gap: 34px; }
}
