.standards-page {
  --standards-text-main: var(--color-cream);
  --standards-text-soft: rgba(238, 223, 211, 0.82);
  --standards-text-muted: rgba(238, 223, 211, 0.62);
  --standards-line: rgba(238, 223, 211, 0.12);
  --standards-line-strong: rgba(238, 223, 211, 0.2);
  --standards-surface-strong:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.01)),
    rgba(64, 83, 76, 0.96);
  --standards-surface-soft:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.012)),
    rgba(64, 83, 76, 0.9);
  --standards-surface-soft-hover:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(64, 83, 76, 0.94);
  --standards-surface-active:
    linear-gradient(180deg, rgba(241, 192, 149, 0.13), rgba(241, 192, 149, 0.05)),
    rgba(64, 83, 76, 0.98);
  background:
    radial-gradient(148rem 56rem at 10% -10%, rgba(238, 223, 211, 0.045), transparent 50%),
    radial-gradient(126rem 48rem at 88% 0%, rgba(238, 223, 211, 0.03), transparent 46%),
    radial-gradient(104rem 40rem at 50% 112%, rgba(255, 255, 255, 0.016), transparent 50%),
    linear-gradient(180deg, rgba(64, 83, 76, 1), rgba(58, 75, 69, 0.99) 54%, rgba(53, 68, 63, 0.98));
}

.standards-main {
  padding: 7.8rem 0 2rem;
}

.standards-shell {
  width: var(--shell-width);
  margin: 0 auto;
}

.standards-head-section,
.standards-tabs-section {
  padding-top: 0.95rem;
}

.standards-head-panel,
.standards-tabs,
.standards-stage {
  position: relative;
  border: 1px solid rgba(238, 223, 211, 0.2);
  border-radius: 2rem;
  background: var(--standards-surface-strong);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(0.9rem);
  -webkit-backdrop-filter: blur(0.9rem);
  overflow: hidden;
}

.standards-head-panel::before,
.standards-tabs::before,
.standards-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(238, 223, 211, 0.035);
  pointer-events: none;
}

.standards-head-panel {
  padding: clamp(1.3rem, 2.4vw, 1.9rem);
}

.standards-head-title {
  margin-top: 0.58rem;
  max-width: 15ch;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.standards-head-lead {
  margin-top: 0.88rem;
  max-width: 54rem;
  color: var(--standards-text-soft);
  line-height: 1.72;
}

.standards-tabs-section .standards-shell {
  display: grid;
  gap: 1rem;
}

.standards-tabs {
  padding: 0.7rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.standards-tab {
  min-height: 5rem;
  padding: 0.85rem 0.95rem;
  display: grid;
  align-content: start;
  gap: 0.38rem;
  text-align: left;
  border: 1px solid rgba(238, 223, 211, 0.12);
  border-radius: 1.45rem;
  color: var(--standards-text-main);
  background: var(--standards-surface-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    background-color 0.24s ease,
    color 0.24s ease;
}

.standards-tab:hover,
.standards-tab:focus-visible {
  outline: none;
  transform: translateY(-0.08rem);
  border-color: rgba(238, 223, 211, 0.22);
  background: var(--standards-surface-soft-hover);
}

.standards-tab.is-active {
  border-color: rgba(241, 192, 149, 0.34);
  color: var(--color-cream);
  background: var(--standards-surface-active);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 0 0 1px rgba(241, 192, 149, 0.08);
}

.standards-tab.is-active:hover,
.standards-tab.is-active:focus-visible {
  border-color: rgba(241, 192, 149, 0.34);
  color: var(--color-cream);
  background: var(--standards-surface-active);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 0 0 1px rgba(241, 192, 149, 0.08);
  transform: none;
  outline: none;
}

.standards-tab__title {
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
}

.standards-tab__text {
  color: var(--standards-text-muted);
  line-height: 1.5;
  font-size: 0.88rem;
}

.standards-tab.is-active .standards-tab__text {
  color: var(--standards-text-soft);
}

.standards-stage {
  padding: clamp(1.2rem, 2.4vw, 1.8rem);
}

.standards-panel {
  display: grid;
  gap: 1.2rem;
}

.standards-panel__intro {
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--standards-line);
}

.standards-panel__kicker {
  color: var(--color-tan);
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.standards-panel__title {
  margin-top: 0.52rem;
  max-width: 18ch;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.standards-panel__lead {
  margin-top: 0.8rem;
  max-width: 56rem;
  color: var(--standards-text-soft);
  line-height: 1.72;
}

.standards-panel__groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.standards-group {
  position: relative;
  height: 100%;
  padding: 1rem;
  display: grid;
  align-content: start;
  gap: 0.95rem;
  border: 1px solid rgba(238, 223, 211, 0.18);
  border-radius: 1.55rem;
  background: var(--standards-surface-strong);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(1.05rem);
  -webkit-backdrop-filter: blur(1.05rem);
}

.standards-group::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(120% 88% at 12% 8%, rgba(255, 255, 255, 0.032), transparent 42%),
    radial-gradient(92% 76% at 88% 100%, rgba(238, 223, 211, 0.018), transparent 46%);
  pointer-events: none;
}

.standards-group::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(255, 255, 255, 0.015);
  pointer-events: none;
}

.standards-group__toggle {
  width: 100%;
  display: block;
  text-align: left;
  border-radius: 0;
}

.standards-group > * {
  position: relative;
  z-index: 1;
}

.standards-group__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
}

.standards-group__title-wrap {
  display: grid;
  gap: 0.42rem;
}

.standards-group__head h3 {
  font-size: 1.12rem;
  line-height: 1.24;
}

.standards-group__summary {
  color: var(--standards-text-soft);
  line-height: 1.58;
  font-size: 0.94rem;
}

.standards-group__arrow {
  display: none;
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
  margin-top: 0.18rem;
  background: currentColor;
  color: rgba(238, 223, 211, 0.84);
  -webkit-mask: url("../icons/7.svg") center / contain no-repeat;
  mask: url("../icons/7.svg") center / contain no-repeat;
  transform: rotate(180deg);
  transition: transform 0.24s ease;
}

.standards-group__panel {
  min-height: 0;
}

.standards-group__panel[hidden] {
  display: none;
}

.standards-note-list {
  display: grid;
  gap: 0.72rem;
}

.standards-group__diagram {
  padding: 0.82rem;
  display: grid;
  gap: 0.7rem;
  border: 1px solid rgba(238, 223, 211, 0.1);
  border-radius: 1.18rem;
  background: var(--standards-surface-soft);
}

.standards-group__diagram-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 0.98rem;
  background:
    linear-gradient(145deg, rgba(238, 223, 211, 0.95), rgba(232, 222, 214, 0.9));
  box-shadow: inset 0 0 0 1px rgba(64, 83, 76, 0.06);
}

.standards-group__diagram-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(64, 83, 76, 0.05), rgba(145, 106, 87, 0.04));
  pointer-events: none;
}

.standards-group__diagram img,
.standards-group__diagram svg {
  width: 100%;
  height: 100%;
  display: block;
}

.standards-group__diagram img {
  object-fit: contain;
  padding: 0.55rem;
  filter: saturate(0.86) contrast(1.02) brightness(0.98);
  position: relative;
  z-index: 0;
}

.standards-group__diagram svg {
  height: auto;
}

.standards-group__diagram-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.standards-group__diagram-tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.28rem 0.62rem;
  border: 1px solid rgba(238, 223, 211, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--standards-text-soft);
  font-size: 0.82rem;
  line-height: 1.4;
}

.diagram-surface {
  fill: rgba(238, 223, 211, 0.06);
  stroke: rgba(238, 223, 211, 0.12);
  stroke-width: 2;
}

.diagram-fill {
  fill: rgba(238, 223, 211, 0.1);
}

.diagram-fill-accent {
  fill: rgba(186, 145, 123, 0.26);
}

.diagram-fill-soft {
  fill: rgba(103, 125, 106, 0.26);
}

.diagram-fill-glass {
  fill: rgba(238, 223, 211, 0.16);
}

.diagram-line {
  fill: none;
  stroke: rgba(238, 223, 211, 0.92);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.diagram-line-soft {
  fill: none;
  stroke: rgba(238, 223, 211, 0.68);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.diagram-line-accent {
  fill: none;
  stroke: rgba(186, 145, 123, 0.9);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.diagram-dot {
  fill: rgba(238, 223, 211, 0.92);
}

.diagram-dot-accent {
  fill: rgba(186, 145, 123, 0.92);
}

.standards-note {
  position: relative;
  padding: 0.82rem 0.92rem 0.88rem;
  border: 1px solid rgba(238, 223, 211, 0.1);
  border-radius: 1.12rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(78, 166, 116, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.085),
    inset 0 0 0 1px rgba(255, 255, 255, 0.024);
  backdrop-filter: blur(1.45rem) saturate(124%);
  -webkit-backdrop-filter: blur(1.45rem) saturate(124%);
  overflow: hidden;
}

.standards-note::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 42%),
    radial-gradient(130% 92% at 84% 100%, rgba(78, 166, 116, 0.08), transparent 48%);
  pointer-events: none;
}

.standards-note > * {
  position: relative;
  z-index: 1;
}

.standards-note--risk {
  border-color: rgba(186, 145, 123, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(145, 106, 87, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.018);
}

.standards-note--risk .standards-note__title {
  color: rgba(238, 223, 211, 0.94);
}

.standards-note--risk .standards-note__text {
  color: rgba(238, 223, 211, 0.84);
}

.standards-note__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: 0.68rem;
}

.standards-note__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.68rem;
  padding: 0.18rem 0.58rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.standards-note__badge--good {
  border: 1px solid rgba(238, 223, 211, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--standards-text-main);
}

.standards-note__badge--risk {
  border: 1px solid rgba(145, 106, 87, 0.42);
  background: rgba(145, 106, 87, 0.42);
  color: var(--color-cream);
}

.standards-note__title {
  flex: 1 1 auto;
  margin: 0;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.34;
}

.standards-note__text {
  margin: 0.46rem 0 0;
  color: var(--standards-text-soft);
  line-height: 1.66;
}

@media (max-width: 74rem) {
  .standards-tabs,
  .standards-panel__groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 60rem) {
  .standards-main {
    padding-top: 4.6rem;
  }

  .standards-head-title,
  .standards-panel__title {
    max-width: none;
  }
}

@media (max-width: 42rem), (orientation: landscape) and (max-width: 60rem) and (max-height: 32rem) {
  body.standards-page {
    background: #40534C;
  }

  .standards-main {
    padding-top: 4.15rem;
    padding-bottom: 1.5rem;
  }

  .standards-head-panel,
  .standards-tabs,
  .standards-stage {
    border-radius: 1.6rem;
  }

  .standards-head-panel,
  .standards-stage {
    padding: 1.15rem;
  }

  .standards-tabs,
  .standards-panel__groups {
    grid-template-columns: 1fr;
  }

  .standards-tab {
    min-height: 0;
  }

  .standards-tab:hover,
  .standards-tab:focus-visible {
    transform: none;
    border-color: rgba(238, 223, 211, 0.12);
    background: var(--standards-surface-soft);
  }

  .standards-tab.is-active:hover,
  .standards-tab.is-active:focus-visible {
    border-color: rgba(241, 192, 149, 0.34);
    color: var(--color-cream);
    background: var(--standards-surface-active);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.03),
      inset 0 0 0 1px rgba(241, 192, 149, 0.08);
  }

  .standards-panel__title {
    font-size: clamp(1.5rem, 8vw, 1.95rem);
  }

  .standards-group {
    padding: 0.92rem;
    border-radius: 1.3rem;
    gap: 0;
  }

  .standards-group__toggle {
    padding: 0;
  }

  .standards-group__arrow {
    display: inline-block;
  }

  .standards-group__panel {
    opacity: 1;
    overflow: hidden;
    transform: none;
    will-change: auto;
  }

  .standards-group.is-open .standards-group__panel {
    margin-top: 0.78rem;
  }

  .standards-group.is-open .standards-group__arrow {
    transform: rotate(0deg);
  }
}

@media (hover: none) and (pointer: coarse) {
  .standards-tab:hover {
    transform: none;
    border-color: rgba(238, 223, 211, 0.12);
    background: var(--standards-surface-soft);
  }
}
