.team-join {
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(20px, 3.5vw, 56px);
}

.team-join__intro .h2 {
  max-width: none;
  font-size: clamp(28px, 3.1vw, 48px);
  line-height: 1.08;
  text-wrap: balance;
}

.team-join__duties-title {
  margin: clamp(24px, 3vw, 42px) 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.team-join__duties {
  list-style: none;
  padding: 0;
  margin: 0;
}

.team-join__duties li {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 14px;
  padding: 12px 0;
  color: var(--on-navy-muted);
  font-size: 16px;
  line-height: 1.5;
}

.team-join__duties li + li { border-top: 1px solid rgb(255 255 255 / 16%); }
.team-join__duties li::before {
  content: "";
  width: 8px;
  height: 9px;
  margin-top: 7px;
  background: var(--accent);
  clip-path: var(--hex);
}

@media (max-width: 620px) {
  .team-join { padding: 0; gap: 0; overflow: hidden; }
  .team-join__intro { padding: 26px 20px 18px; }
  .team-join .team-join__form { border: 0; border-radius: 0; }
}

.team-about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.team-about__photo {
  position: relative;
  overflow: hidden;
  min-width: 0;
  background: #d8dde3;
}

/* Квадрат 1:1 без aspect-ratio: Safari игнорирует aspect-ratio у grid-элементов,
   из-за чего на телефоне фото схлопывается в ноль. Padding-трюк задаёт высоту надёжно. */
.team-about__photo::before {
  content: "";
  display: block;
  padding-top: 100%;
}

.team-about__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-about__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: clamp(28px, 5vw, 72px);
}

.team-about__content .h2 { margin-bottom: clamp(24px, 3vw, 40px); }

.team-about__content p {
  max-width: 51ch;
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.6;
}

.team-about__content p + p { margin-top: 16px; }

.team-about__content .team-about__lead {
  color: var(--ink);
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.03em;
}

.team-about__content .btn { margin-top: clamp(28px, 3vw, 40px); }

@media (max-width: 900px) {
  .team-about { grid-template-columns: 1fr; }
  .team-about__content { padding: clamp(24px, 5vw, 40px); }
}

@media (max-width: 720px) {
  .team-about__content .h2 { margin-bottom: 22px; }
  .team-about__content .btn { width: 100%; }
}

.mgr-cases-head { display:flex; flex-direction:row; align-items:center; justify-content:space-between; gap:12px; }
.mgr-cases-nav { display:flex; gap:6px; }
.mgr-cases-nav[hidden] { display:none; }
.mgr-cases-nav .btn { width:44px; height:44px; min-height:44px; padding:0; }
.mgr-cases-nav .btn:disabled { opacity:.35; cursor:default; }
.mgr-cases { --gap:24px; display:grid; grid-auto-flow:column; grid-auto-columns:calc((100% - 2 * var(--gap)) / 3); gap:var(--gap); overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; padding-bottom:8px; }
.mgr-case { min-width:0; scroll-snap-align:start; display:flex; flex-direction:column; overflow:hidden; border:1px solid var(--line-2); border-radius:var(--r-lg); background:var(--surface); }
.mgr-case > img { width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; }
.mgr-case__body { display:flex; flex:1; flex-direction:column; align-items:flex-start; gap:12px; padding:clamp(18px,2vw,26px); }
.mgr-case__body .ccard__title, .mgr-case__body p { margin:0; }
.mgr-case__body details { margin-top:auto; width:100%; }
.mgr-case__body summary { display:flex; align-items:center; gap:8px; list-style:none; cursor:pointer; font-weight:600; padding:12px 0; }
.mgr-case__body summary::-webkit-details-marker { display:none; }
.mgr-case__body summary svg { width:18px; height:18px; flex:none; }
.mgr-case__body .case-full__steps { margin-top:0; }
.mgr-case__body .case-full__steps > div { grid-template-columns:1fr; gap:4px; }
@media (max-width:960px) {
  .mgr-cases { --gap:18px; grid-auto-columns:calc((100% - var(--gap)) / 2); }
}
@media (max-width:640px) {
  .mgr-cases { --gap:12px; grid-auto-columns:88%; }
}

.mgr-cases { scrollbar-width:none; padding-bottom:0; }
.mgr-cases::-webkit-scrollbar { display:none; }
.mgr-case-dots { display:flex; justify-content:center; margin-top:12px; }
.mgr-case-dots button { display:grid; place-items:center; width:32px; height:44px; padding:0; border:0; background:transparent; cursor:pointer; }
.mgr-case-dots button::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--line); }
.mgr-case-dots button[aria-current="true"]::before { width:9px; height:9px; background:var(--accent); }

.mgr-reviews-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.mgr-reviews-nav { display:flex; gap:6px; }
.mgr-reviews-nav[hidden] { display:none; }
.mgr-reviews-nav .btn { width:44px; height:44px; min-height:44px; padding:0; }
.mgr-reviews-nav .btn:disabled { opacity:.35; cursor:default; }
.mgr-reviews { display:grid; grid-auto-flow:column; grid-auto-columns:calc((100% - 40px) / 3); grid-template-columns:none; gap:20px; overflow-x:auto; overscroll-behavior-inline:contain; scroll-snap-type:x mandatory; scrollbar-width:none; }
.mgr-reviews::-webkit-scrollbar { display:none; }
.mgr-reviews > .review { min-width:0; scroll-snap-align:start; }
.mgr-reviews--single { display:block; overflow:visible; }
@media (max-width:960px) {
  .mgr-reviews { grid-auto-columns:calc((100% - 20px) / 2); }
}
@media (max-width:720px) {
  .mgr-reviews { grid-auto-columns:calc(100% - 48px); gap:16px; -webkit-overflow-scrolling:touch; }
  .mgr-reviews-nav { display:none; }
}

.mgr-cases--single, .mgr-cases--pair { overflow:visible; scroll-snap-type:none; }
.mgr-cases--single { display:block; }
.mgr-cases--single .mgr-case { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); }
.mgr-cases--single .mgr-case > img { height:100%; aspect-ratio:auto; min-height:360px; }
.mgr-cases--single .mgr-case__body { justify-content:center; padding:clamp(24px, 4vw, 56px); }
.mgr-cases--single .mgr-case__body .case-full__steps > div { grid-template-columns:120px minmax(0, 1fr); gap:16px; }
.mgr-cases--pair { grid-template-columns:repeat(2, minmax(0, 1fr)); grid-auto-flow:row; }
@media (max-width:640px) {
  .mgr-cases--single .mgr-case { display:flex; }
  .mgr-cases--single .mgr-case > img { height:auto; min-height:0; aspect-ratio:4/3; }
  .mgr-cases--single .mgr-case__body .case-full__steps > div { grid-template-columns:1fr; gap:4px; }
  .mgr-cases--pair { grid-template-columns:1fr; }
}
