.adeom-team-page {
  box-sizing: border-box;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 64px;
  color: #1f2430;
}

.adeom-team-page *,
.adeom-team-page *:before,
.adeom-team-page *:after {
  box-sizing: border-box;
}

.adeom-team-hero,
.adeom-team-group {
  border: 1px solid #ddd9f0;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(50, 39, 133, .1);
}

.adeom-team-hero {
  margin-bottom: 32px;
  padding: 32px;
  text-align: center;
  background: linear-gradient(135deg, #fff 0%, #f1f0fa 100%);
}

.adeom-team-hero h1 {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 14px 28px;
  border-radius: 16px;
  background: #322785;
  color: #fff;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.15;
}

.adeom-team-hero p {
  max-width: 850px;
  margin: 0 auto;
  color: #667085;
  font-size: 1.05rem;
  line-height: 1.8;
}

.adeom-team-group {
  margin-bottom: 28px;
  padding: 10px 28px 28px;
  overflow: hidden;
}

.adeom-team-group:last-child {
  margin-bottom: 0;
}

.adeom-team-group__heading {
  margin: 0;
}

.adeom-team-group__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: #1f2430;
  cursor: pointer;
  font: inherit;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-align: left;
}

.adeom-team-group__toggle > span:first-child {
  min-width: 0;
}

.adeom-team-group__toggle:focus-visible {
  outline: 3px solid rgba(50, 39, 133, .35);
  outline-offset: 4px;
  border-radius: 10px;
}

.adeom-team-group__icon {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #322785;
  transition: background-color .25s ease, transform .25s ease;
}

.adeom-team-group__icon:before,
.adeom-team-group__icon:after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  content: '';
  transform: translate(-50%, -50%);
}

.adeom-team-group__icon:after {
  transition: transform .25s ease;
  transform: translate(-50%, -50%) rotate(90deg);
}

.adeom-team-group__toggle[aria-expanded="true"] {
  border-bottom-color: #ddd9f0;
}

.adeom-team-group__toggle[aria-expanded="true"] .adeom-team-group__icon {
  background: #ec4038;
}

.adeom-team-group__toggle[aria-expanded="true"] .adeom-team-group__icon:after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.adeom-team-group__panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .35s ease, visibility 0s linear .35s;
}

.adeom-team-group__panel[aria-hidden="false"] {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows .35s ease;
}

.adeom-team-group__panel-inner {
  min-height: 0;
  overflow: hidden;
  padding-top: 0;
}

.adeom-team-group__panel[aria-hidden="false"] .adeom-team-group__panel-inner {
  padding-top: 24px;
}

.adeom-team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.adeom-team-card {
  display: flex;
  min-width: 0;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid #ddd9f0;
  border-radius: 18px;
  background: #fff;
}

.adeom-team-card__media {
  flex: 0 0 220px;
  width: 220px;
  overflow: hidden;
  background: #f1f0fa;
}

.adeom-team-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.adeom-team-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 28px 24px;
  background: radial-gradient(circle at top right, rgba(236, 64, 56, .1), transparent 35%), #fff;
}

.adeom-team-card__role {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff0ef;
  color: #322785;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.adeom-team-card h3 {
  margin: 0 0 10px;
  color: #1f2430;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.adeom-team-card p {
  margin: 0;
  color: #667085;
  font-size: 1rem;
  line-height: 1.75;
}

@media (min-width: 1180px) {
  .adeom-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .adeom-team-card__media {
    flex-basis: 200px;
    width: 200px;
  }
}

@media (max-width: 991px) {
  .adeom-team-page {
    width: min(100% - 28px, 1280px);
    padding: 34px 0 56px;
  }
}

@media (max-width: 767px) {
  .adeom-team-page {
    width: min(100% - 24px, 1280px);
    padding: 28px 0 46px;
  }

  .adeom-team-hero {
    padding: 22px 18px;
  }

  .adeom-team-hero h1 {
    padding: 12px 20px;
    border-radius: 14px;
    font-size: 1.45rem;
  }

  .adeom-team-group {
    padding: 8px 18px 18px;
    border-radius: 22px;
  }

  .adeom-team-group__toggle {
    font-size: clamp(1.25rem, 6.2vw, 1.55rem);
  }

  .adeom-team-group__panel[aria-hidden="false"] .adeom-team-group__panel-inner {
    padding-top: 18px;
  }

  .adeom-team-card {
    flex-direction: column;
    min-height: 0;
  }

  .adeom-team-card__media {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 4 / 5;
  }

  .adeom-team-card__body {
    padding: 22px 18px;
  }

  .adeom-team-card h3 {
    font-size: 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .adeom-team-group__panel,
  .adeom-team-group__icon,
  .adeom-team-group__icon:after {
    transition: none;
  }
}
