:root {
  --v9m-text: #181717;
  --v9m-surface: #ffffff;
  --v9m-border: #d9d9d9;
  --v9m-muted-bg: rgba(100, 107, 65, 0.2);
  --v9m-muted-text: rgba(100, 107, 65, 0.6);
  --v9m-active-bg: rgba(100, 107, 65, 0.8);
  --v9m-panel-bg: rgba(207, 211, 187, 0.2);
  --v9m-head-bg: rgba(100, 107, 65, 0.15);
  --v9m-ok: #cfd3bb;
  --v9m-no: #d9d9d9;
}

.v9m-page {
  width: 100%;
  background: #fff;
}

.v9m-modes-screen {
  padding: 120px 20px 40px;
  background: #fff;
}

.v9m-modes-container {
  max-width: 1320px;
  margin: 0 auto;
}

.v9m-modes-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 106px;
  height: 32px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--v9m-border);
  border-radius: 60px;
  box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.1);
  background: var(--v9m-surface);
  box-sizing: border-box;
}

.v9m-modes-badge__icon {
  width: 16px;
  height: 16px;
  display: block;
  border-radius: 4px;
  position: relative;
}

.v9m-modes-badge__text {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: var(--v9m-text);
}

.v9m-modes-title {
  margin: 24px auto 0;
  max-width: 712px;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: clamp(30px, 4.2vw, 40px);
  line-height: 1.1;
  font-weight: 700;
  text-align: center;
  color: var(--v9m-text);
}

.v9m-role-switch {
  margin-top: 146px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.v9m-role-switch__item {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  padding: 12px 24px;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: var(--v9m-muted-text);
  background: var(--v9m-muted-bg);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.v9m-role-switch__item:hover {
  background: rgba(100, 107, 65, 0.28);
  color: var(--v9m-text);
}

.v9m-role-switch__item.is-active {
  color: #fff;
  background: var(--v9m-active-bg);
}

.v9m-compare {
  margin-top: 92px;
  border: 1px solid var(--v9m-border);
  border-radius: 12px;
  background: var(--v9m-panel-bg);
  backdrop-filter: blur(5px);
  overflow: hidden;
}

.v9m-compare__head {
  display: grid;
  grid-template-columns: 1fr 360px 360px;
  align-items: center;
  min-height: 56px;
  padding: 16px 0;
  background: var(--v9m-head-bg);
}

.v9m-compare__head-cell {
  text-align: center;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--v9m-text);
}

.v9m-compare__row {
  display: grid;
  grid-template-columns: 1fr 360px 360px;
  align-items: center;
  min-height: 60px;
  border-top: 1px solid var(--v9m-border);
}

.v9m-compare__feature {
  text-align: center;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: var(--v9m-text);
  padding: 10px 12px;
}

.v9m-status {
  width: 52px;
  height: 52px;
  margin: 0 auto;
  border-radius: 50%;
  position: relative;
}

.v9m-status--ok {
  background: var(--v9m-ok);
}

.v9m-status--ok::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 12px;
  width: 12px;
  height: 22px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.v9m-status--no {
  background: var(--v9m-no);
}

.v9m-status--no::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 24px;
  width: 20px;
  height: 0;
  border-top: 3px solid #fff;
}

@media (max-width: 1199px) {
  .v9m-modes-screen {
    padding: 96px 16px 32px;
  }

  .v9m-role-switch {
    margin-top: 72px;
  }

  .v9m-compare {
    margin-top: 56px;
  }

  .v9m-compare__head,
  .v9m-compare__row {
    grid-template-columns: 1fr 220px 220px;
  }
}

@media (max-width: 767px) {
  .v9m-modes-screen {
    padding: 72px 12px 24px;
  }

  .v9m-modes-title {
    margin-top: 20px;
    font-size: clamp(28px, 8vw, 34px);
  }

  .v9m-role-switch {
    margin-top: 40px;
    grid-template-columns: 1fr;
  }

  .v9m-role-switch__item {
    min-height: 42px;
    padding: 10px 16px;
  }

  .v9m-compare {
    margin-top: 24px;
  }

  .v9m-compare__head {
    grid-template-columns: minmax(0, 1fr) 48px 48px;
    min-height: 44px;
    padding: 8px 0;
    justify-content: start;
  }

  .v9m-compare__head-cell {
    font-size: 14px;
  }

  .v9m-compare__head-cell--feature {
    text-align: left;
    padding-left: 12px;
  }

  .v9m-compare__row {
    grid-template-columns: minmax(0, 1fr) 48px 48px;
    min-height: 56px;
    justify-content: start;
  }

  .v9m-compare__feature {
    text-align: left;
    font-size: 14px;
    padding: 8px 12px;
  }

  .v9m-status {
    width: 34px;
    height: 34px;
  }

  .v9m-status--ok::before {
    left: 11px;
    top: 7px;
    width: 8px;
    height: 14px;
    border-width: 0 2px 2px 0;
  }

  .v9m-status--no::before {
    left: 9px;
    top: 16px;
    width: 16px;
    border-top-width: 2px;
  }
}

@media (max-width: 767px) {
  .v9m-compare__head,
  .v9m-compare__row {
    grid-template-columns: 1fr 75px 78px;
  }
}

@media (max-width: 420px) {
  .v9m-compare {
    width: min(353px, calc(100vw - 40px));
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    background: rgba(207, 211, 187, 0.2);
    backdrop-filter: blur(5px);
  }

  .v9m-compare__head {
    grid-template-columns: 173px 82px 82px;
    column-gap: 8px;
    min-height: 60px;
    padding: 16px 0;
    background: rgba(100, 107, 65, 0.2);
    border-radius: 12px 12px 0 0;
    justify-content: normal;
  }

  .v9m-compare__head-cell {
    font-size: 12px;
    line-height: 1.2;
  }

  .v9m-compare__head-cell--feature {
    text-align: center;
    padding-left: 0;
  }

  .v9m-compare__row {
    grid-template-columns: 173px 82px 82px;
    column-gap: 8px;
    min-height: 52px;
    justify-content: normal;
  }

  .v9m-compare__feature {
    font-family: "Involve", "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    padding: 0 0 0 8px;
    display: flex;
    align-items: center;
  }

  .v9m-status {
    width: 24px;
    height: 24px;
    margin: 0;
    justify-self: center;
  }

  .v9m-status--ok::before {
    left: 8px;
    top: 5px;
    width: 5px;
    height: 10px;
    border-width: 0 2px 2px 0;
  }

  .v9m-status--no::before {
    left: 7px;
    top: 11px;
    width: 10px;
    border-top-width: 2px;
  }

  .v9m-compare__row:nth-child(9) {
    min-height: 60px;
  }

  .v9m-compare__row:nth-child(10),
  .v9m-compare__row:nth-child(11) {
    min-height: 68px;
  }
}
