/* Обёртка секции */
.about-team.services--about-team {
  background-color: #f2f2f2;
  padding-left: 5%;
  padding-right: 5%;
}

@media screen and (max-width: 1200px) and (min-width: 768px) {
  .about-team.services--about-team {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.services--about-team .services__inner {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-top: 4rem;
  padding-bottom: 4rem;
  box-sizing: border-box;
}

@media screen and (min-width: 768px) {
  .services--about-team .services__inner {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .services--about-team .services__header {
    margin-bottom: 80px;
  }
}

.services--about-team .services__header {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto 60px;
}

.services--about-team .services__tagline {
  margin: 0 0 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  color: #051133;
}

.services--about-team .services__title {
  margin: 0 0 1.25rem;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  font-size: 89px;
  line-height: 1.1;
  color: #051133;
}

@media screen and (min-width: 768px) {
  .services--about-team .services__tagline {
    margin-bottom: 1rem;
  }

  .services--about-team .services__title {
    margin-bottom: 1.5rem;
  }
}

.services--about-team .services__lead {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  color: #051133;
}

@media screen and (max-width: 991px) {
  .services--about-team .services__header {
    margin-bottom: 60px;
  }

  .services--about-team .services__tagline {
    font-size: 1.25rem;
  }

  .services--about-team .services__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
  }

  .services--about-team .services__lead {
    font-size: 1.25rem;
  }
}

@media screen and (max-width: 767px) {
  .about-team.services--about-team {
    padding-left: 0;
    padding-right: 0;
  }

  .services--about-team .services__inner {
    padding-left: var(--page-gutter, 12px);
    padding-right: var(--page-gutter, 12px);
  }

  .services--about-team .services__header {
    margin-bottom: 2rem;
    padding-left: var(--page-gutter, 12px);
    padding-right: var(--page-gutter, 12px);
  }

  .services--about-team .services__tagline {
    font-size: 1rem;
  }

  .services--about-team .services__title {
    font-size: 2rem;
  }

  .services--about-team .services__lead {
    font-size: 1rem;
  }
}

/* ─── Макет схемы (как в исходнике) ─── */
.about-team .scheme-section {
  --bg: #f2f2f2;
  --ink: #051133;
  --navy: #051133;
  --blue: #0040bf;
  --blue-edge: #003399;
  --orange: #ff840b;
  --orange-edge: #cc6a09;
  --card: #ffffff;
  --gap: 30px;
  --stack-gap: 20px;
  --b3d-depth: 10px;
  --b3d-bevel: 12px;
  font-size: 20px;
  line-height: 120%;
  font-weight: 500;
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
}

.about-team .scheme-section *,
.about-team .scheme-section *::before,
.about-team .scheme-section *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- 3D block (front + top + right) ---------- */
.about-team .scheme .node,
.about-team .scheme .desk,
.about-team .scheme .team {
  position: relative;
  z-index: 0;
  isolation: isolate;
  border-radius: 0;
  background-color: var(--b3d-front);
}

.about-team .scheme .node {
  --b3d-front: #cccccc;
  --b3d-top: #d6d6d6;
  --b3d-side: #a3a3a3;
}

.about-team .scheme .node.node--client {
  --b3d-front: #ff840b;
  --b3d-top: #ff9d3c;
  --b3d-side: #cc6a09;
  color: #ffffff;
}

.about-team .scheme .desk {
  --b3d-front: #333333;
  --b3d-top: #5c5c5c;
  --b3d-side: #292929;
  color: #fff;
}

.about-team .scheme .team {
  --b3d-front: #0040bf;
  --b3d-top: #4c79d2;
  --b3d-side: #003399;
  color: #ffffff;
}

.about-team .scheme .node::before,
.about-team .scheme .desk::before,
.about-team .scheme .team::before,
.about-team .scheme .node::after,
.about-team .scheme .desk::after,
.about-team .scheme .team::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.about-team .scheme .node::before,
.about-team .scheme .desk::before,
.about-team .scheme .team::before {
  left: 0;
  top: -10px;
  width: 100%;
  height: 10px;
  background: var(--b3d-top);
  transform: skewX(-45deg);
  transform-origin: left bottom;
}

.about-team .scheme .node::after,
.about-team .scheme .desk::after,
.about-team .scheme .team::after {
  top: 0;
  right: -10px;
  width: 10px;
  height: 100%;
  background: var(--b3d-side);
  transform: skewY(-45deg);
  transform-origin: left top;
}

/* ---------- generic node ---------- */
.about-team .scheme .node {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ink);
}

.about-team .scheme .node-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 18px 14px;
  color: inherit;
  font-weight: 500;
  min-height: 70px;
  background: transparent;
}

.about-team .scheme .node-head__trigger {
  border: none;
  background: transparent;
  cursor: default;
  text-align: left;
  width: 100%;
  font-family: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.about-team .scheme .node-head__trigger::after {
  display: none;
}

.about-team .scheme .node-body {
  overflow: visible;
  min-height: 0;
  width: 100%;
}

.about-team .scheme .node-head__title {
  margin-top: 1px;
  font-size: 20px;
  line-height: 120%;
  font-weight: 500;
}

.about-team .scheme .node ul {
  list-style: none;
  padding: 0 18px 22px;
  display: grid;
  gap: 20px;
  background: transparent;
  border-radius: 0;
}

.about-team .scheme .node li {
  font-size: 14px;
  line-height: 14px;
  font-weight: 500;
  text-transform: uppercase;
  color: inherit;
}

@media screen and (min-width: 1001px) {
  .about-team .scheme .node ul {
    padding-top: 12px;
  }
}

.about-team .scheme .scheme-icon {
  flex: none;
  display: block;
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  color: var(--ink);
}

.about-team .scheme .node.node--client .scheme-icon {
  color: #ffffff;
}

/* ---------- desktop diagram wrapper ---------- */
.about-team .scheme {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  padding: 0;
}

@media screen and (min-width: 1001px) {
  .about-team .scheme .chain-sub {
    display: contents;
  }

  .about-team .scheme .flow-row {
    display: flex;
    align-items: stretch;
    gap: var(--gap);
  }

  .about-team .scheme .flow-row .node {
    flex: 1;
    min-width: 0;
  }

  .about-team .scheme .desk {
    height: 84px;
  }

  .about-team .scheme .teams {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
  }
}

@media screen and (max-width: 1000px) {
  .about-team .scheme {
    overflow: visible;
  }

  .about-team .scheme .flow-row {
    display: block;
    height: auto;
    min-height: 0;
  }

  .about-team .scheme .chain-sub {
    display: block;
    margin-top: var(--stack-gap);
  }

  .about-team .scheme .chain-sub .node {
    margin-top: var(--stack-gap);
  }

  .about-team .scheme .chain-sub .node:first-child {
    margin-top: 0;
  }

  .about-team .scheme .desk {
    height: auto;
  }

  .about-team .scheme .teams {
    display: flex;
    flex-direction: column;
    gap: var(--stack-gap);
  }

  .about-team .scheme .team ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.about-team .scheme .desk-zone {
  width: 100%;
}

.about-team .scheme .desk {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.about-team .scheme .desk-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 18px 14px;
  color: inherit;
  font-weight: 500;
  min-height: 70px;
  background: transparent;
}

.about-team .scheme .desk-head__trigger {
  border: none;
  background: transparent;
  cursor: default;
  text-align: left;
  width: 100%;
  font-family: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.about-team .scheme .desk-head__trigger::after {
  display: none;
}

.about-team .scheme .desk-body {
  overflow: visible;
  min-height: 0;
  width: 100%;
}

.about-team .scheme .desk-head__title {
  margin-top: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  line-height: 120%;
  font-weight: 500;
}

.about-team .scheme .desk-head .scheme-icon {
  color: #ffffff;
}

.about-team .scheme .desk-head__title small {
  font-size: 10px;
  line-height: 10px;
  font-weight: 500;
  text-transform: uppercase;
  opacity: 0.85;
}

.about-team .scheme .desk-sub {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  line-height: 14px;
  font-weight: 500;
  text-transform: uppercase;
  opacity: 0.9;
  letter-spacing: 0.01em;
}

.about-team .scheme .desk-sub__item {
  display: flex;
  align-items: center;
}

.about-team .scheme .desk-sub__sep {
  width: 1px;
  align-self: stretch;
  background-color: #ffffff;
  opacity: 0.9;
  flex-shrink: 0;
}

@media screen and (min-width: 1001px) {
  .about-team .scheme .desk-sub {
    gap: 12px;
  }

  .about-team .scheme .desk-head,
  .about-team .scheme .desk-head__trigger {
    padding: 0;
    min-height: 0;
    justify-content: center;
    text-align: center;
  }
}

@media screen and (max-width: 1000px) {
  .about-team .scheme .desk {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 0fr;
    width: 100%;
    padding: 0;
    gap: 0;
    align-items: stretch;
    text-align: left;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .about-team .scheme .desk.is-open {
    grid-template-rows: auto 1fr;
  }

  .about-team .scheme .desk-body {
    overflow: hidden;
  }

  .about-team .scheme .desk-head,
  .about-team .scheme .desk-head__trigger {
    padding: 24px 48px 20px 20px;
  }

  .about-team .scheme .desk-head__trigger {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    min-width: 0;
    min-height: 60px;
    justify-self: stretch;
    box-sizing: border-box;
    cursor: pointer;
    user-select: none;
  }

  .about-team .scheme .desk-head__trigger::after {
    content: '';
    position: absolute;
    top: 28px;
    right: 18px;
    display: block;
    flex: none;
    width: 18px;
    height: 18px;
    margin: 0;
    background:
      linear-gradient(#ffffff, #ffffff) center / 18px 2px no-repeat,
      linear-gradient(#ffffff, #ffffff) center / 2px 18px no-repeat;
    transition: background 0.25s ease;
  }

  .about-team .scheme .desk.is-open .desk-head__trigger::after {
    background: linear-gradient(#ffffff, #ffffff) center / 18px 2px no-repeat;
  }

  .about-team .scheme .desk-head__title {
    flex: 1;
    min-width: 0;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .about-team .scheme .desk-sub {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: start;
    gap: 20px;
    width: 100%;
    padding: 8px 20px 24px;
  }

  .about-team .scheme .desk-sub__sep {
    display: none;
  }

  .about-team .scheme .desk-sub__item {
    text-align: left;
  }
}

.about-team .scheme .teams {
  position: relative;
}

.about-team .scheme .team {
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-team .scheme .team-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 18px 14px;
  color: inherit;
  font-weight: 500;
  min-height: 70px;
  background: transparent;
}

.about-team .scheme .team-head__trigger {
  border: none;
  background: transparent;
  cursor: default;
  text-align: left;
  width: 100%;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.about-team .scheme .team-head__trigger::after {
  display: none;
}

.about-team .scheme .team-body {
  overflow: visible;
  min-height: 0;
}

.about-team .scheme .team-head__title {
  margin-top: 1px;
  font-size: 20px;
  line-height: 120%;
  font-weight: 500;
}

.about-team .scheme .team-head .scheme-icon {
  color: #ffffff;
}

.about-team .scheme .team ul {
  list-style: none;
  padding: 0 18px 22px;
  display: grid;
  gap: 20px;
  background: transparent;
  border-radius: 0;
}

.about-team .scheme .team li {
  font-size: 14px;
  line-height: 14px;
  font-weight: 500;
  text-transform: uppercase;
  color: inherit;
}

@media screen and (min-width: 1001px) {
  .about-team .scheme .team ul {
    padding-top: 12px;
  }
}

@media screen and (max-width: 1000px) {
  .about-team .scheme .team-head,
  .about-team .scheme .team-head__trigger {
    padding: 22px 20px 18px;
  }

  .about-team .scheme .team ul {
    padding: 8px 20px 24px;
  }

  .about-team .scheme .team {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 0fr;
    width: 100%;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .about-team .scheme .team.is-open {
    grid-template-rows: auto 1fr;
  }

  .about-team .scheme .team-body {
    overflow: hidden;
  }

  .about-team .scheme .team-head__trigger {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    min-width: 0;
    min-height: 60px;
    justify-self: stretch;
    box-sizing: border-box;
    padding: 24px 48px 20px 20px;
    cursor: pointer;
    user-select: none;
  }

  .about-team .scheme .team-head__trigger::after {
    content: '';
    position: absolute;
    top: 28px;
    right: 18px;
    display: block;
    flex: none;
    width: 18px;
    height: 18px;
    margin: 0;
    background:
      linear-gradient(#ffffff, #ffffff) center / 18px 2px no-repeat,
      linear-gradient(#ffffff, #ffffff) center / 2px 18px no-repeat;
    transition: background 0.25s ease;
  }

  .about-team .scheme .team.is-open .team-head__trigger::after {
    background: linear-gradient(#ffffff, #ffffff) center / 18px 2px no-repeat;
  }

  .about-team .scheme .team-head__title {
    flex: 1;
    min-width: 0;
  }

  .about-team .scheme .node-head,
  .about-team .scheme .node-head__trigger {
    padding: 24px 48px 20px 20px;
  }

  .about-team .scheme .node {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 0fr;
    width: 100%;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .about-team .scheme .node.is-open {
    grid-template-rows: auto 1fr;
  }

  .about-team .scheme .node-body {
    overflow: hidden;
  }

  .about-team .scheme .node-head__trigger {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    min-width: 0;
    min-height: 60px;
    justify-self: stretch;
    box-sizing: border-box;
    cursor: pointer;
    user-select: none;
  }

  .about-team .scheme .node-head__trigger::after {
    content: '';
    position: absolute;
    top: 28px;
    right: 18px;
    display: block;
    flex: none;
    width: 18px;
    height: 18px;
    margin: 0;
    background:
      linear-gradient(var(--ink), var(--ink)) center / 18px 2px no-repeat,
      linear-gradient(var(--ink), var(--ink)) center / 2px 18px no-repeat;
    transition: background 0.25s ease;
  }

  .about-team .scheme .node.is-open .node-head__trigger::after {
    background: linear-gradient(var(--ink), var(--ink)) center / 18px 2px no-repeat;
  }

  .about-team .scheme .node.node--client .node-head__trigger::after {
    background:
      linear-gradient(#ffffff, #ffffff) center / 18px 2px no-repeat,
      linear-gradient(#ffffff, #ffffff) center / 2px 18px no-repeat;
  }

  .about-team .scheme .node.node--client.is-open .node-head__trigger::after {
    background: linear-gradient(#ffffff, #ffffff) center / 18px 2px no-repeat;
  }

  .about-team .scheme .node-head__title {
    flex: 1;
    min-width: 0;
  }

  .about-team .scheme .node ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px 20px 24px;
  }

  .about-team .scheme .node,
  .about-team .scheme .desk,
  .about-team .scheme .team {
    width: calc(100% - var(--b3d-depth));
    max-width: calc(100% - var(--b3d-depth));
  }
}
