.role-page {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 4.5vw, 68px) clamp(24px, 5vw, 76px) clamp(48px, 7vw, 92px);
}

.role-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(29, 242, 255, 0.18);
  border-radius: 22px;
  color: #d0d7ea;
  background:
    radial-gradient(circle at 82% 10%, rgba(29, 242, 255, 0.16), transparent 34%),
    linear-gradient(135deg, #251424 0%, #141b25 68%, #0b0f12 100%);
  box-shadow: 0 26px 70px rgba(17, 16, 26, 0.18);
}

.role-hero::after {
  position: absolute;
  right: -64px;
  bottom: -118px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(29, 242, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(29, 242, 255, 0.025), 0 0 0 108px rgba(29, 242, 255, 0.018);
  content: "";
  pointer-events: none;
}

.role-hero__topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 clamp(24px, 4vw, 46px);
  border-bottom: 1px solid rgba(208, 215, 234, 0.12);
  color: #a9aac3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.role-hero__topline p {
  margin: 0;
  color: #1df2ff;
}

.role-hero__topline span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.role-hero__topline span::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1df2ff;
  box-shadow: 0 0 0 4px rgba(29, 242, 255, 0.1);
  content: "";
}

.role-hero__body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  min-height: 270px;
  padding: clamp(34px, 5vw, 58px) clamp(24px, 4vw, 46px);
}

.role-hero__emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(92px, 11vw, 132px);
  height: clamp(92px, 11vw, 132px);
  border: 1px solid rgba(29, 242, 255, 0.26);
  border-radius: 28px;
  color: #1df2ff;
  background: rgba(29, 242, 255, 0.06);
  box-shadow: inset 0 0 0 8px rgba(29, 242, 255, 0.025), 0 18px 50px rgba(0, 0, 0, 0.18);
}

.role-hero__emblem > svg:first-child {
  width: 54%;
  height: 54%;
  stroke-width: 1.15;
}

.role-hero__mark {
  position: absolute;
  width: 18%;
  height: 18%;
  color: #1df2ff;
  fill: rgba(29, 242, 255, 0.12);
  stroke-width: 1.2;
}

.role-hero--stranger .role-hero__emblem {
  color: #a9aac3;
  border-color: rgba(169, 170, 195, 0.25);
  background: rgba(169, 170, 195, 0.06);
}

.role-hero__copy > p {
  margin: 0 0 7px;
  color: #1df2ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.role-hero__copy h1 {
  margin: 0;
  color: #f2f5ff;
  font-size: clamp(40px, 5vw, 66px);
  font-weight: 350;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.role-hero__copy > span {
  display: block;
  max-width: 660px;
  margin-top: 16px;
  color: #b7bbcf;
  font-size: 16px;
  line-height: 1.55;
}

.role-hero__copy > small {
  display: block;
  margin-top: 12px;
  color: #7f8298;
  font-size: 12px;
  font-weight: 700;
}

.role-hero__action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 17px;
  border: 1px solid rgba(29, 242, 255, 0.24);
  border-radius: 9px;
  color: #0b0f12;
  background: #1df2ff;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.role-hero__action:hover,
.role-hero__action:focus-visible {
  background: #55f7ff;
  box-shadow: 0 12px 30px rgba(29, 242, 255, 0.18);
  outline: 3px solid rgba(29, 242, 255, 0.18);
  transform: translateY(-1px);
}

.role-hero__action svg {
  width: 18px;
  height: 18px;
}

.role-hero__action svg:last-child {
  width: 16px;
  height: 16px;
}

.role-access {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.role-access__card {
  padding: clamp(25px, 3.5vw, 38px);
  border: 1px solid var(--mb-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(18, 27, 36, 0.055);
}

.role-access__card > header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--mb-line);
}

.role-access__card > header > span {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 13px;
}

.role-access__card--allowed > header > span {
  color: #0d7772;
  background: rgba(121, 211, 208, 0.18);
}

.role-access__card--limited > header > span {
  color: #8b5062;
  background: rgba(182, 115, 136, 0.12);
}

.role-access__card > header svg {
  width: 22px;
  height: 22px;
}

.role-access__card > header p,
.role-levels__head p {
  margin: 0 0 4px;
  color: var(--mb-accent-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.role-access__card > header h2 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 550;
}

.role-access__card ul {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.role-access__card li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 11px;
  padding: 12px 0;
  color: #46545f;
  font-size: 15px;
  line-height: 1.48;
}

.role-access__card li + li {
  border-top: 1px solid #edf0f1;
}

.role-access__card li svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.role-access__card--allowed li svg {
  color: #37aaa7;
}

.role-access__card--limited li svg {
  color: #9d6073;
}

.role-levels {
  margin-top: clamp(46px, 7vw, 76px);
}

.role-levels__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.role-levels__head h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.role-levels__head > span {
  color: var(--mb-muted);
  font-size: 13px;
}

.role-levels__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.role-level {
  position: relative;
  min-height: 255px;
  padding: 25px;
  overflow: hidden;
  border: 1px solid var(--mb-line);
  border-radius: 16px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.role-level.is-current {
  border-color: rgba(29, 203, 216, 0.45);
  background: linear-gradient(145deg, rgba(29, 242, 255, 0.08), #fff 58%);
  box-shadow: 0 18px 44px rgba(24, 121, 127, 0.11);
  transform: translateY(-4px);
}

.role-level.is-current::after {
  position: absolute;
  top: 0;
  right: 24px;
  left: 24px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: #1dcbd8;
  content: "";
}

.role-level__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.role-level__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: #5e6a75;
  background: var(--mb-soft);
}

.role-level.is-current .role-level__icon {
  color: #0c777c;
  background: rgba(29, 203, 216, 0.13);
}

.role-level__icon svg:first-child {
  width: 28px;
  height: 28px;
  stroke-width: 1.4;
}

.role-level__icon svg:last-child:not(:first-child) {
  position: absolute;
  width: 9px;
  height: 9px;
  fill: rgba(29, 203, 216, 0.12);
  stroke-width: 1.2;
}

.role-level__code {
  color: #9099a0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.role-level h3 {
  margin: 24px 0 9px;
  font-size: 24px;
  font-weight: 550;
}

.role-level p {
  margin: 0;
  color: var(--mb-muted);
  font-size: 14px;
  line-height: 1.5;
}

.role-level small {
  display: block;
  margin-top: 19px;
  color: var(--mb-accent-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.role-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 17px;
  margin-top: 22px;
  padding: 23px 25px;
  border: 1px solid rgba(55, 170, 167, 0.22);
  border-radius: 14px;
  background: rgba(121, 211, 208, 0.09);
}

.role-note > svg {
  width: 27px;
  height: 27px;
  color: #258d89;
}

.role-note h2 {
  margin: 1px 0 6px;
  font-size: 17px;
}

.role-note p {
  max-width: 900px;
  margin: 0;
  color: var(--mb-muted);
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .role-hero__body {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .role-hero__action {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 820px) {
  .role-access,
  .role-levels__grid {
    grid-template-columns: 1fr;
  }

  .role-level {
    min-height: 0;
  }

  .role-level.is-current {
    transform: none;
  }
}

@media (max-width: 620px) {
  .role-page {
    padding-right: 16px;
    padding-left: 16px;
  }

  .role-hero {
    border-radius: 16px;
  }

  .role-hero__topline {
    padding-right: 20px;
    padding-left: 20px;
  }

  .role-hero__topline > span {
    font-size: 0;
  }

  .role-hero__body {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 22px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .role-hero__emblem {
    width: 82px;
    height: 82px;
    border-radius: 21px;
  }

  .role-hero__copy h1 {
    font-size: 42px;
  }

  .role-hero__action {
    grid-column: 1;
    width: 100%;
    justify-content: center;
  }

  .role-levels__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .role-access__card {
    padding: 22px 20px;
  }
}
