/* Калькулятор баллов ОГЭ — /oge/calculator_ballov/ */

body.page--oge-score-calculator {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.page--oge-score-calculator.page--home,
.page--ege-score-calculator.page--home {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.page--oge-score-calculator .main.oge-score-calc,
.page--ege-score-calculator .main.oge-score-calc {
  --oge-score-calc-max-width: 57.6rem;
  --oge-score-calc-section-gap: clamp(1.15rem, 2.8vh, 1.85rem);
  position: relative;
  z-index: 5;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  align-self: center;
  gap: var(--oge-score-calc-section-gap);
  max-width: var(--oge-score-calc-max-width);
  width: min(100%, var(--oge-score-calc-max-width));
  min-height: 0;
  margin-inline: auto;
  padding: 0.5rem 1rem;
  overflow: hidden;
}

@media (min-width: 901px) {
  .page--oge-score-calculator .main.oge-score-calc {
    --oge-score-calc-max-width: 66.24rem;
  }
}

.page--oge-score-calculator .page-home-bottom,
.page--ege-score-calculator .page-home-bottom {
  flex-shrink: 0;
  width: 100%;
}

.oge-score-calc__hero {
  position: relative;
  width: 100%;
  text-align: center;
  margin-bottom: 0;
}

.oge-score-calc__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.oge-score-calc__lead {
  margin: 0 auto;
  max-width: 85.5rem;
  font-size: clamp(0.82rem, 1.2vw, 0.95rem);
  line-height: 1.45;
  color: var(--text-muted, rgba(226, 232, 240, 0.82));
}

[data-theme="light"] .oge-score-calc__lead {
  color: rgba(51, 65, 85, 0.88);
}

.oge-score-calc__panel {
  position: relative;
  z-index: 2;
  padding: 0.85rem clamp(0.75rem, 2vw, 1.1rem) 1rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(
    145deg,
    rgba(30, 34, 40, 0.72) 0%,
    rgba(22, 26, 32, 0.55) 100%
  );
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

[data-theme="light"] .oge-score-calc__panel {
  border-color: rgba(15, 23, 42, 0.08);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(248, 250, 252, 0.78) 100%
  );
  box-shadow:
    0 12px 32px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.oge-score-calc__panel-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.oge-score-calc__panel-head-spacer {
  justify-self: start;
}

.oge-score-calc__razbalka-link {
  justify-self: end;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green, #34d399);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.oge-score-calc__razbalka-link:hover {
  opacity: 0.85;
}

[data-theme="light"] .oge-score-calc__razbalka-link {
  color: #047857;
}

.oge-score-calc__panel-title {
  margin: 0;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
}

.oge-score-calc__hint {
  margin: 0 0 0.7rem;
  text-align: center;
  font-size: 0.86rem;
  opacity: 0.75;
}

.oge-score-calc__circles {
  --calc-circle-size: clamp(2.82rem, 4.92vw, 3.6rem);
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  grid-template-rows: var(--calc-circle-size);
  gap: clamp(0.18rem, 0.54vw, 0.48rem);
  max-width: 100%;
  overflow: hidden;
  padding: 0.2rem 0 0.45rem;
}

.oge-score-calc__circle {
  position: relative;
  justify-self: center;
  width: var(--calc-circle-size);
  height: var(--calc-circle-size);
  padding: 0;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  opacity: 1;
  animation: none;
  transform: none;
  will-change: auto;
}

.oge-score-calc__circle:hover,
[data-theme="light"] .oge-score-calc__circle:hover {
  transform: none;
}

.oge-score-calc__circle .task-circle__number {
  font-size: clamp(1.14rem, 2.04vw, 1.5rem);
  line-height: 1;
}

.oge-score-calc__circle .task-circle__icons {
  margin-top: 0.1rem;
  gap: 0.2rem;
}

.oge-score-calc__circle .task-circle__icon {
  width: clamp(12px, 1.56vw, 16px);
  height: clamp(12px, 1.56vw, 16px);
}

.oge-score-calc__circle-score {
  position: absolute;
  right: 0.05rem;
  bottom: 0.08rem;
  min-width: 1rem;
  padding: 0.04rem 0.22rem;
  border-radius: 999px;
  font-size: 0.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: #ecfdf5;
  background: rgba(5, 150, 105, 0.88);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.oge-score-calc__circle--active {
  border-color: var(--green, #05b87d);
  background: linear-gradient(
    145deg,
    rgba(5, 184, 125, 0.28) 0%,
    rgba(5, 150, 105, 0.16) 42%,
    rgba(30, 35, 40, 0.92) 100%
  );
  box-shadow:
    inset 2px 2px 8px rgba(167, 243, 208, 0.18),
    inset -1px -1px 4px rgba(0, 0, 0, 0.15),
    0 0 0 2px rgba(5, 184, 125, 0.35),
    0 10px 24px rgba(5, 184, 125, 0.28);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.3s ease;
}

[data-theme="light"] .oge-score-calc__circle--active {
  border-color: var(--green, #05b87d);
  background: linear-gradient(
    145deg,
    rgba(209, 250, 229, 0.98) 0%,
    rgba(167, 243, 208, 0.72) 45%,
    rgba(240, 253, 244, 0.95) 100%
  );
  box-shadow:
    inset 2px 2px 8px rgba(255, 255, 255, 0.95),
    0 0 0 2px rgba(5, 184, 125, 0.28),
    0 8px 20px rgba(5, 150, 105, 0.18);
}

.oge-score-calc__circle--active .oge-score-calc__circle-score {
  opacity: 1;
  transform: scale(1);
}

.oge-score-calc__circle:focus-visible {
  outline: 2px solid var(--green, #05b87d);
  outline-offset: 3px;
}

.oge-score-calc__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.45rem;
}

.oge-score-calc__action {
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(5, 150, 105, 0.45);
  background: transparent;
  color: var(--green, #34d399);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.oge-score-calc__action:hover {
  background: rgba(5, 150, 105, 0.12);
}

[data-theme="light"] .oge-score-calc__action {
  color: #047857;
}

.oge-score-calc__results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.8vw, 1.2rem);
  margin-top: 0;
}

.oge-score-calc__result-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 7.8rem;
  padding: 1rem 0.8rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.35);
  text-align: center;
  overflow: hidden;
  transition:
    border-color 0.45s ease,
    box-shadow 0.45s ease,
    background 0.45s ease;
}

.oge-score-calc__result-card > * {
  position: relative;
  z-index: 1;
}

[data-theme="light"] .oge-score-calc__result-card {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.oge-score-calc__result-card--primary {
  --fill-pct: 0%;
  border-color: rgba(5, 184, 125, 0.35);
  background: linear-gradient(160deg, rgba(5, 150, 105, 0.12), rgba(15, 23, 42, 0.28));
}

.oge-score-calc__result-card--primary::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  height: var(--fill-pct);
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(52, 211, 153, 0.42) 0%,
    rgba(16, 185, 129, 0.58) 38%,
    rgba(5, 150, 105, 0.72) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 -6px 18px rgba(5, 150, 105, 0.22);
  transition: height 0.55s cubic-bezier(0.34, 1.15, 0.64, 1);
  pointer-events: none;
}

.oge-score-calc__result-card--primary::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: calc(var(--fill-pct) - 3px);
  z-index: 0;
  height: 8px;
  border-radius: 45% 55% 40% 60% / 60% 40% 55% 45%;
  background: rgba(110, 231, 183, 0.35);
  filter: blur(1px);
  opacity: 0.45;
  transition:
    bottom 0.55s cubic-bezier(0.34, 1.15, 0.64, 1),
    opacity 0.35s ease;
  pointer-events: none;
}

[data-theme="light"] .oge-score-calc__result-card--primary {
  background: linear-gradient(160deg, rgba(209, 250, 229, 0.45), rgba(255, 255, 255, 0.82));
}

[data-theme="light"] .oge-score-calc__result-card--primary::before {
  background: linear-gradient(
    180deg,
    rgba(110, 231, 183, 0.55) 0%,
    rgba(52, 211, 153, 0.68) 45%,
    rgba(5, 150, 105, 0.78) 100%
  );
}

.oge-score-calc__result-card--secondary {
  border-color: rgba(96, 165, 250, 0.35);
  background: linear-gradient(160deg, rgba(37, 99, 235, 0.16), rgba(15, 23, 42, 0.2));
}

.oge-score-calc__result-card--grade {
  border-color: rgba(148, 163, 184, 0.35);
  background: linear-gradient(160deg, rgba(100, 116, 139, 0.2), rgba(15, 23, 42, 0.28));
}

.oge-score-calc__result-card--grade[data-grade="2"] {
  border-color: rgba(248, 113, 113, 0.45);
  background: linear-gradient(160deg, rgba(239, 68, 68, 0.22), rgba(127, 29, 29, 0.18));
  box-shadow: inset 0 0 28px rgba(239, 68, 68, 0.12);
}

.oge-score-calc__result-card--grade[data-grade="3"] {
  border-color: rgba(251, 191, 36, 0.45);
  background: linear-gradient(160deg, rgba(245, 158, 11, 0.24), rgba(120, 53, 15, 0.16));
  box-shadow: inset 0 0 28px rgba(245, 158, 11, 0.12);
}

.oge-score-calc__result-card--grade[data-grade="4"] {
  border-color: rgba(96, 165, 250, 0.45);
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.24), rgba(30, 58, 138, 0.18));
  box-shadow: inset 0 0 28px rgba(59, 130, 246, 0.12);
}

.oge-score-calc__result-card--grade[data-grade="5"] {
  border-color: rgba(52, 211, 153, 0.5);
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.28), rgba(6, 78, 59, 0.2));
  box-shadow:
    inset 0 0 32px rgba(16, 185, 129, 0.16),
    0 0 24px rgba(16, 185, 129, 0.14);
}

[data-theme="light"] .oge-score-calc__result-card--grade[data-grade="2"] {
  background: linear-gradient(160deg, rgba(254, 226, 226, 0.95), rgba(254, 202, 202, 0.72));
}

[data-theme="light"] .oge-score-calc__result-card--grade[data-grade="3"] {
  background: linear-gradient(160deg, rgba(254, 243, 199, 0.95), rgba(253, 230, 138, 0.72));
}

[data-theme="light"] .oge-score-calc__result-card--grade[data-grade="4"] {
  background: linear-gradient(160deg, rgba(219, 234, 254, 0.95), rgba(191, 219, 254, 0.75));
}

[data-theme="light"] .oge-score-calc__result-card--grade[data-grade="5"] {
  background: linear-gradient(160deg, rgba(209, 250, 229, 0.98), rgba(167, 243, 208, 0.82));
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.16);
}

.oge-score-calc__result-card--profile {
  border-color: rgba(251, 191, 36, 0.35);
  background: linear-gradient(160deg, rgba(245, 158, 11, 0.14), rgba(15, 23, 42, 0.2));
}

.oge-score-calc__result-card--profile-eligible {
  border-color: rgba(52, 211, 153, 0.5);
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.26), rgba(6, 95, 70, 0.22));
  box-shadow:
    inset 0 0 28px rgba(16, 185, 129, 0.14),
    0 0 22px rgba(16, 185, 129, 0.12);
}

[data-theme="light"] .oge-score-calc__result-card--profile {
  background: linear-gradient(160deg, rgba(254, 243, 199, 0.72), rgba(255, 255, 255, 0.88));
}

[data-theme="light"] .oge-score-calc__result-card--profile-eligible {
  background: linear-gradient(160deg, rgba(209, 250, 229, 0.95), rgba(167, 243, 208, 0.78));
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.14);
}

.oge-score-calc__result-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.78;
}

.oge-score-calc__result-value {
  margin: 0.2rem 0;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 2.65rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.oge-score-calc__result-value--grade {
  font-size: clamp(2.35rem, 5vw, 3rem);
}

.oge-score-calc__result-value--profile {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.oge-score-calc__result-max {
  font-size: 0.78rem;
  opacity: 0.7;
}

.oge-score-calc__scale {
  margin-top: 0.15rem;
}

.oge-score-calc__scale-panel {
  padding: 0.55rem clamp(0.7rem, 1.6vw, 0.95rem) 0.6rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(
    155deg,
    rgba(30, 34, 40, 0.78) 0%,
    rgba(22, 26, 32, 0.62) 100%
  );
  box-shadow:
    0 14px 42px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
}

[data-theme="light"] .oge-score-calc__scale-panel {
  border-color: rgba(15, 23, 42, 0.08);
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(248, 250, 252, 0.82) 100%
  );
  box-shadow:
    0 14px 36px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.oge-score-calc__scale-title {
  margin: 0 0 0.4rem;
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(0.92rem, 1.8vw, 1.05rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.oge-score-calc__table-wrap {
  overflow: hidden;
  margin: 0;
  padding: 0.1rem;
  border-radius: 0.9rem;
}

.oge-score-calc__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
}

.oge-score-calc__table--fipi {
  width: 100%;
  table-layout: fixed;
}

.oge-score-calc__table--fipi th,
.oge-score-calc__table--fipi td {
  padding: 0.38rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  vertical-align: middle;
  transition:
    background 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease,
    transform 0.35s ease;
}

.oge-score-calc__table-corner,
.oge-score-calc__table-row-label {
  width: 7rem;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  padding-left: 0.65rem;
  color: rgba(226, 232, 240, 0.72);
  background: rgba(15, 23, 42, 0.42);
}

.oge-score-calc__table-grade-head {
  background: rgba(15, 23, 42, 0.28);
}

.oge-score-calc__table-range {
  font-family: var(--font-heading);
  font-size: clamp(0.82rem, 1.6vw, 0.95rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  background: rgba(15, 23, 42, 0.22);
}

.oge-score-calc__grade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.oge-score-calc__grade-badge--2 {
  color: #fecaca;
  background: linear-gradient(160deg, rgba(239, 68, 68, 0.42), rgba(127, 29, 29, 0.55));
  border-color: rgba(248, 113, 113, 0.45);
}

.oge-score-calc__grade-badge--3 {
  color: #fde68a;
  background: linear-gradient(160deg, rgba(245, 158, 11, 0.45), rgba(120, 53, 15, 0.5));
  border-color: rgba(251, 191, 36, 0.45);
}

.oge-score-calc__grade-badge--4 {
  color: #bfdbfe;
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.45), rgba(30, 58, 138, 0.52));
  border-color: rgba(96, 165, 250, 0.45);
}

.oge-score-calc__grade-badge--5 {
  color: #a7f3d0;
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.48), rgba(6, 78, 59, 0.55));
  border-color: rgba(52, 211, 153, 0.5);
}

.oge-score-calc__table--fipi [data-grade="2"].oge-score-calc__table-cell--active {
  background: rgba(239, 68, 68, 0.14);
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.35);
}

.oge-score-calc__table--fipi [data-grade="3"].oge-score-calc__table-cell--active {
  background: rgba(245, 158, 11, 0.14);
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.35);
}

.oge-score-calc__table--fipi [data-grade="4"].oge-score-calc__table-cell--active {
  background: rgba(59, 130, 246, 0.14);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.35);
}

.oge-score-calc__table--fipi [data-grade="5"].oge-score-calc__table-cell--active {
  background: rgba(16, 185, 129, 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(52, 211, 153, 0.4),
    0 0 22px rgba(16, 185, 129, 0.12);
}

.oge-score-calc__table--fipi .oge-score-calc__table-cell--active .oge-score-calc__grade-badge {
  transform: scale(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 18px rgba(255, 255, 255, 0.08);
}

.oge-score-calc__table--fipi thead th:first-child {
  border-top-left-radius: 0.75rem;
}

.oge-score-calc__table--fipi thead th:last-child {
  border-top-right-radius: 0.75rem;
}

.oge-score-calc__table--fipi tbody th {
  border-bottom-left-radius: 0.75rem;
}

.oge-score-calc__table--fipi tbody td:last-child {
  border-bottom-right-radius: 0.75rem;
}

[data-theme="light"] .oge-score-calc__table--fipi th,
[data-theme="light"] .oge-score-calc__table--fipi td {
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .oge-score-calc__table-corner,
[data-theme="light"] .oge-score-calc__table-row-label {
  color: rgba(51, 65, 85, 0.72);
  background: rgba(241, 245, 249, 0.95);
}

[data-theme="light"] .oge-score-calc__table-grade-head {
  background: rgba(248, 250, 252, 0.9);
}

[data-theme="light"] .oge-score-calc__table-range {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.82);
}

[data-theme="light"] .oge-score-calc__table--fipi [data-grade="2"].oge-score-calc__table-cell--active {
  background: rgba(254, 226, 226, 0.85);
}

[data-theme="light"] .oge-score-calc__table--fipi [data-grade="3"].oge-score-calc__table-cell--active {
  background: rgba(254, 243, 199, 0.88);
}

[data-theme="light"] .oge-score-calc__table--fipi [data-grade="4"].oge-score-calc__table-cell--active {
  background: rgba(219, 234, 254, 0.9);
}

[data-theme="light"] .oge-score-calc__table--fipi [data-grade="5"].oge-score-calc__table-cell--active {
  background: rgba(209, 250, 229, 0.92);
}

/* Подсказка «Как посчитать» — на мобилках */
.page--oge-score-calculator .oge-score-calc__guide,
.page--ege-score-calculator .oge-score-calc__guide {
  display: none;
  margin: 0 0 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.9rem;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
}

.page--oge-score-calculator .oge-score-calc__guide-summary,
.page--ege-score-calculator .oge-score-calc__guide-summary {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green, #05b87d);
  cursor: pointer;
  list-style: none;
}

.page--oge-score-calculator .oge-score-calc__guide-summary::-webkit-details-marker,
.page--ege-score-calculator .oge-score-calc__guide-summary::-webkit-details-marker {
  display: none;
}

.page--oge-score-calculator .oge-score-calc__guide-summary::before,
.page--ege-score-calculator .oge-score-calc__guide-summary::before {
  content: "▸ ";
  display: inline-block;
  transition: transform 0.2s ease;
}

.page--oge-score-calculator .oge-score-calc__guide[open] .oge-score-calc__guide-summary::before,
.page--ege-score-calculator .oge-score-calc__guide[open] .oge-score-calc__guide-summary::before {
  transform: rotate(90deg);
}

.page--oge-score-calculator .oge-score-calc__guide-list,
.page--ege-score-calculator .oge-score-calc__guide-list {
  margin: 0.55rem 0 0;
  padding-left: 1.15rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.page--oge-score-calculator .oge-score-calc__guide-list li + li,
.page--ege-score-calculator .oge-score-calc__guide-list li + li {
  margin-top: 0.35rem;
}

@media (max-height: 860px) {
  .page--oge-score-calculator .main.oge-score-calc {
    --oge-score-calc-section-gap: clamp(0.55rem, 1.6vh, 0.95rem);
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }

  .oge-score-calc__circles {
    --calc-circle-size: clamp(2.45rem, 4.2vw, 3.1rem);
  }

  .oge-score-calc__result-card {
    min-height: 6.5rem;
    padding: 0.75rem 0.65rem;
  }

  .oge-score-calc__panel {
    padding-top: 0.65rem;
    padding-bottom: 0.75rem;
  }
}

/* Мобильная адаптация ОГЭ — 4×4, понятный расчёт */
@media (max-width: 900px) {
  body.page--oge-score-calculator,
  body.page--oge-score-calculator .page.page--home.page--oge-score-calculator {
    height: auto;
    min-height: 100dvh;
    max-height: none;
    overflow: auto;
  }

  .page--oge-score-calculator .main.oge-score-calc {
    overflow: visible;
    justify-content: flex-start;
    padding-top: 0.75rem;
    --oge-score-calc-section-gap: 0.85rem;
  }

  .page--oge-score-calculator .oge-score-calc__hero {
    margin-bottom: 0.15rem;
  }

  .page--oge-score-calculator .oge-score-calc__title {
    font-size: clamp(1.35rem, 6.5vw, 1.75rem);
  }

  .page--oge-score-calculator .oge-score-calc__panel {
    padding: 0.85rem 0.75rem 0.95rem;
  }

  .page--oge-score-calculator .oge-score-calc__panel-title {
    font-size: 1.05rem;
  }

  .page--oge-score-calculator .oge-score-calc__hint {
    margin-bottom: 0.55rem;
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .page--oge-score-calculator .oge-score-calc__guide {
    display: block;
  }

  .page--oge-score-calculator .oge-score-calc__circles {
    --calc-circle-size: min(5.5rem, calc((100vw - 2.5rem - 0.35rem * 3) / 4));
    grid-template-columns: repeat(4, var(--calc-circle-size));
    grid-auto-rows: var(--calc-circle-size);
    grid-template-rows: none;
    justify-content: center;
    gap: 0.35rem;
    padding-bottom: 0.55rem;
  }

  .page--oge-score-calculator .oge-score-calc__circle {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .page--oge-score-calculator .oge-score-calc__circle .task-circle__number {
    font-size: clamp(1.1rem, 5vw, 1.4rem);
  }

  .page--oge-score-calculator .oge-score-calc__circle .task-circle__icon {
    width: clamp(11px, 3vw, 14px);
    height: clamp(11px, 3vw, 14px);
  }

  .page--oge-score-calculator .oge-score-calc__circle-score {
    font-size: 0.58rem;
    min-width: 1.1rem;
  }

  .page--oge-score-calculator .oge-score-calc__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-top: 0.15rem;
  }

  .page--oge-score-calculator .oge-score-calc__action {
    width: 100%;
    min-height: 2.85rem;
    font-size: 0.95rem;
    font-weight: 600;
  }

  .page--oge-score-calculator .oge-score-calc__results {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .page--oge-score-calculator .oge-score-calc__result-card {
    min-height: 5.5rem;
    padding: 0.85rem 1rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page--oge-score-calculator .oge-score-calc__result-value {
    margin-left: 0;
    font-size: clamp(1.85rem, 8.5vw, 2.35rem);
  }

  .page--oge-score-calculator .oge-score-calc__result-value--profile {
    font-size: clamp(0.95rem, 4.5vw, 1.15rem);
  }

  .page--oge-score-calculator .oge-score-calc__result-max {
    flex: none;
    margin-top: 0.2rem;
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .page--oge-score-calculator .oge-score-calc__scale-panel {
    padding: 0.65rem 0.7rem 0.75rem;
  }

  .page--oge-score-calculator .oge-score-calc__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .page--oge-score-calculator .page-home-bottom {
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .page--oge-score-calculator .oge-score-calc__circles {
    --calc-circle-size: min(4.85rem, calc((100vw - 2rem - 0.28rem * 3) / 4));
    gap: 0.28rem;
  }

  .page--oge-score-calculator .oge-score-calc__circle .task-circle__icons {
    display: none;
  }

  .page--oge-score-calculator .oge-score-calc__razbalka-link {
    font-size: 0.76rem;
  }
}

@media (max-width: 720px) {
  .page--oge-score-calculator .main.oge-score-calc,
  .page--ege-score-calculator .main.oge-score-calc {
    justify-content: flex-start;
    padding-top: 0.75rem;
  }

  .oge-score-calc__results {
    grid-template-columns: 1fr;
  }

  .oge-score-calc__result-card {
    min-height: 5.25rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    text-align: left;
    padding: 0.75rem 1rem;
  }

  .page--oge-score-calculator .oge-score-calc__result-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .oge-score-calc__result-value {
    margin-left: auto;
  }

  .page--oge-score-calculator .oge-score-calc__result-value {
    margin-left: 0;
  }

  .oge-score-calc__result-max {
    flex: 1 1 100%;
    margin-top: 0.15rem;
  }

  .page--oge-score-calculator .oge-score-calc__result-max {
    flex: none;
  }

  .oge-score-calc__scale-panel {
    padding: 0.5rem 0.65rem 0.55rem;
  }

  .oge-score-calc__table-corner,
  .oge-score-calc__table-row-label {
    width: 5.5rem;
    padding-left: 0.5rem;
    font-size: 0.6rem;
  }

  .oge-score-calc__grade-badge {
    min-width: 1.55rem;
    height: 1.55rem;
    font-size: 0.82rem;
  }
}
