/*
 * sobc-base.css — общие стили калькуляторов salonoboev.com
 */

.sobc {
  --sobc-primary: #51738f;
  --sobc-primary-dark: #1a3f5d;
  --sobc-primary-soft: #eef2f5;
  --sobc-accent: #0e7e99;
  --sobc-accent-soft: #eaf5f7;
  --sobc-text: #444444;
  --sobc-heading: #555555;
  --sobc-muted: #707070;
  --sobc-placeholder: #9a9a9a;
  --sobc-line: #dddddd;
  --sobc-line-soft: #e7e7e7;
  --sobc-field: #f4f4f4;
  --sobc-panel: #f3f3f3;
  --sobc-white: #ffffff;
  --sobc-error: #d42c20;
  --sobc-error-dark: #8f1d15;
  --sobc-error-soft: #fdf0ef;
  --sobc-warn: #faa732;
  --sobc-warn-soft: #fff6e8;
  --sobc-radius: 10px;
  --sobc-radius-small: 8px;
  --sobc-shadow: 0 2px 57px 3px rgba(137, 137, 137, 0.08);
  --sobc-focus: 0 0 0 3px rgba(81, 115, 143, 0.28);
  --sobc-focus-error: 0 0 0 3px rgba(212, 44, 32, 0.2);
  --sobc-sticky-top: 120px;
  --sobc-font: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;

  display: block;
  box-sizing: border-box;
  max-width: 100%;
  font-family: var(--sobc-font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--sobc-text);
  text-align: left;
  -webkit-text-size-adjust: 100%;
  word-wrap: break-word;
}

.sobc *,
.sobc *::before,
.sobc *::after {
  box-sizing: border-box;
}

.sobc [hidden] {
  display: none !important;
}

.sobc p {
  margin: 0 0 10px;
  line-height: 1.6;
}

.sobc p:last-child {
  margin-bottom: 0;
}

.sobc b,
.sobc strong {
  font-weight: 500;
}

.sobc img {
  max-width: 100%;
  height: auto;
  border-radius: 0;
}

.sobc svg {
  max-width: 100%;
}

.sobc a:not([class]) {
  color: var(--sobc-accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color 0.15s ease;
}

.sobc a:not([class]):hover,
.sobc a:not([class]):focus {
  color: var(--sobc-primary-dark);
}

.sobc ul,
.sobc ol {
  word-break: normal;
}

.sobc output {
  display: inline;
  padding: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.sobc fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

/* ---------- Карточка калькулятора ---------- */

.sobc .sobc-calc {
  position: relative;
  margin: 20px 0 30px;
  padding: 16px;
  background: var(--sobc-white);
  border-radius: var(--sobc-radius);
  box-shadow: var(--sobc-shadow);
}

.sobc .sobc-calc__head {
  margin: 0 0 18px;
}

.sobc .sobc-title {
  margin: 0 0 6px;
  padding: 0;
  font-family: var(--sobc-font);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--sobc-heading);
  text-align: left;
  text-transform: none;
  background: none;
}

.sobc .sobc-title::before,
.sobc .sobc-title::after {
  content: none;
  display: none;
}

.sobc .sobc-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--sobc-muted);
}

/* ---------- Секции ---------- */

.sobc .sobc-section + .sobc-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--sobc-line-soft);
}

.sobc .sobc-section__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  font-family: var(--sobc-font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--sobc-heading);
  text-align: left;
  background: none;
}

.sobc .sobc-section__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: var(--sobc-primary);
  background: var(--sobc-primary-soft);
  border-radius: 50%;
}

/* ---------- Раскладка: форма + результат ---------- */

.sobc .sobc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.sobc .sobc-layout__main,
.sobc .sobc-layout__aside {
  min-width: 0;
}

/* ---------- Сетка полей ---------- */

.sobc .sobc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px 16px;
  align-items: start;
}

.sobc .sobc-grid + .sobc-grid,
.sobc .sobc-grid + .sobc-fieldset,
.sobc .sobc-grid + .sobc-rows,
.sobc .sobc-fieldset + .sobc-fieldset,
.sobc .sobc-fieldset + .sobc-grid,
.sobc .sobc-fieldset + .sobc-rows,
.sobc .sobc-rows + .sobc-grid,
.sobc .sobc-rows + .sobc-fieldset {
  margin-top: 18px;
}

.sobc .sobc-stack > * + * {
  margin-top: 16px;
}

.sobc .sobc-grid__wide {
  grid-column: 1 / -1;
}

/* ---------- Поле ---------- */

.sobc .sobc-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sobc .sobc-label {
  display: block;
  max-width: none;
  margin: 0 0 6px;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--sobc-text);
  text-align: left;
  cursor: default;
}

.sobc .sobc-label__opt {
  font-size: 12px;
  font-weight: 400;
  color: var(--sobc-muted);
}

.sobc .sobc-control {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
}

.sobc .sobc-input,
.sobc .sobc-select {
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 14px;
  font-family: var(--sobc-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--sobc-text);
  background-color: var(--sobc-field);
  border: 1px solid transparent;
  border-radius: var(--sobc-radius);
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.sobc .sobc-input::-webkit-input-placeholder {
  color: var(--sobc-placeholder);
  opacity: 1;
}

.sobc .sobc-input::-moz-placeholder {
  color: var(--sobc-placeholder);
  opacity: 1;
}

.sobc .sobc-input::placeholder {
  color: var(--sobc-placeholder);
  opacity: 1;
}

.sobc .sobc-input:hover,
.sobc .sobc-select:hover {
  border-color: var(--sobc-line);
}

.sobc .sobc-input:focus,
.sobc .sobc-select:focus {
  background-color: var(--sobc-white);
  border-color: var(--sobc-primary);
  box-shadow: var(--sobc-focus);
}

.sobc .sobc-input[type="number"] {
  -moz-appearance: textfield;
}

.sobc .sobc-input[type="number"]::-webkit-inner-spin-button,
.sobc .sobc-input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.sobc .sobc-input:disabled,
.sobc .sobc-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sobc .sobc-select {
  padding-right: 40px;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--sobc-primary) 50%),
    linear-gradient(135deg, var(--sobc-primary) 50%, transparent 50%);
  background-position: calc(100% - 21px) 50%, calc(100% - 16px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  text-overflow: ellipsis;
}

.sobc .sobc-select::-ms-expand {
  display: none;
}

.sobc .sobc-control--unit .sobc-input {
  padding-right: 42px;
}

.sobc .sobc-unit {
  position: absolute;
  top: 50%;
  right: 14px;
  font-size: 14px;
  line-height: 1;
  color: var(--sobc-muted);
  white-space: nowrap;
  pointer-events: none;
  transform: translateY(-50%);
}

.sobc .sobc-hint {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--sobc-muted);
}

/* ---------- Ошибки ввода ---------- */

.sobc .sobc-field--invalid .sobc-input,
.sobc .sobc-field--invalid .sobc-select,
.sobc .sobc-input[aria-invalid="true"],
.sobc .sobc-select[aria-invalid="true"] {
  background-color: var(--sobc-error-soft);
  border-color: var(--sobc-error);
}

.sobc .sobc-field--invalid .sobc-input:focus,
.sobc .sobc-field--invalid .sobc-select:focus,
.sobc .sobc-input[aria-invalid="true"]:focus,
.sobc .sobc-select[aria-invalid="true"]:focus {
  background-color: var(--sobc-white);
  box-shadow: var(--sobc-focus-error);
}

.sobc .sobc-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--sobc-error);
}

.sobc .sobc-error::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  color: var(--sobc-white);
  background: var(--sobc-error);
  border-radius: 50%;
}

.sobc .sobc-error:empty {
  display: none;
}

/* ---------- Группы опций ---------- */

.sobc .sobc-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.sobc .sobc-legend {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  padding: 0;
  font-family: var(--sobc-font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--sobc-text);
  border: 0;
}

.sobc .sobc-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sobc .sobc-option {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  margin: 0;
  font-size: inherit;
  font-weight: 400;
  cursor: pointer;
}

.sobc .sobc-option__input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.sobc .sobc-option__box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--sobc-text);
  background: var(--sobc-white);
  border: 1px solid var(--sobc-line);
  border-radius: var(--sobc-radius);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.sobc .sobc-option:hover .sobc-option__box {
  border-color: var(--sobc-primary);
}

.sobc .sobc-option__input:checked + .sobc-option__box {
  color: var(--sobc-white);
  background: var(--sobc-primary);
  border-color: var(--sobc-primary);
}

.sobc .sobc-option__input:focus + .sobc-option__box {
  box-shadow: var(--sobc-focus);
}

.sobc .sobc-option__input:focus:not(:focus-visible) + .sobc-option__box {
  box-shadow: none;
}

.sobc .sobc-option__input:disabled + .sobc-option__box {
  opacity: 0.5;
  cursor: not-allowed;
}

.sobc .sobc-option__title {
  display: block;
  font-weight: 500;
}

.sobc .sobc-option__meta {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--sobc-muted);
}

.sobc .sobc-option__input:checked + .sobc-option__box .sobc-option__meta {
  color: rgba(255, 255, 255, 0.85);
}

.sobc .sobc-option__icon {
  display: block;
  width: 44px;
  height: 44px;
  margin: 0 0 8px;
  color: var(--sobc-primary);
}

.sobc .sobc-option__input:checked + .sobc-option__box .sobc-option__icon {
  color: var(--sobc-white);
}

.sobc .sobc-options--block .sobc-option {
  flex: 1 1 100%;
}

.sobc .sobc-options--cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sobc .sobc-options--cards .sobc-option {
  display: flex;
}

.sobc .sobc-options--cards .sobc-option__box {
  justify-content: flex-start;
  align-items: flex-start;
  padding: 14px;
}

/* ---------- Чекбокс ---------- */

.sobc .sobc-check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--sobc-text);
  cursor: pointer;
}

.sobc .sobc-check__input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.sobc .sobc-check__box {
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 0;
  background: var(--sobc-white);
  border: 1px solid #b8b8b8;
  border-radius: 5px;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.sobc .sobc-check__box::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 6px;
  width: 6px;
  height: 10px;
  border: solid var(--sobc-white);
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: rotate(45deg);
}

.sobc .sobc-check__input:checked + .sobc-check__box {
  background: var(--sobc-primary);
  border-color: var(--sobc-primary);
}

.sobc .sobc-check__input:checked + .sobc-check__box::after {
  opacity: 1;
}

.sobc .sobc-check__input:focus + .sobc-check__box {
  box-shadow: var(--sobc-focus);
}

.sobc .sobc-check__input:focus:not(:focus-visible) + .sobc-check__box {
  box-shadow: none;
}

/* ---------- Динамические строки ---------- */

.sobc .sobc-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sobc .sobc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: end;
  margin: 0;
  padding: 0;
}

.sobc .sobc-row__head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sobc .sobc-row__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--sobc-heading);
}

.sobc .sobc-row__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.sobc .sobc-row__fields--1 {
  grid-template-columns: minmax(0, 1fr);
}

.sobc .sobc-row__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  font-family: var(--sobc-font);
  font-size: 22px;
  line-height: 1;
  color: var(--sobc-muted);
  background: var(--sobc-white);
  border: 1px solid var(--sobc-line);
  border-radius: var(--sobc-radius);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.sobc .sobc-row__remove:hover {
  color: var(--sobc-error);
  border-color: var(--sobc-error);
  background: var(--sobc-error-soft);
}

.sobc .sobc-row__remove:focus {
  outline: none;
  box-shadow: var(--sobc-focus);
}

.sobc .sobc-row__remove svg {
  width: 16px;
  height: 16px;
}

.sobc .sobc-row__remove:disabled {
  visibility: hidden;
}

/* ---------- Кнопки ---------- */

.sobc .sobc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  margin: 0;
  padding: 12px 26px;
  font-family: var(--sobc-font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--sobc-white);
  text-align: center;
  text-decoration: none;
  text-transform: none;
  white-space: normal;
  background: var(--sobc-primary);
  border: 1px solid var(--sobc-primary);
  border-radius: var(--sobc-radius);
  box-shadow: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.sobc .sobc-btn:hover {
  color: var(--sobc-white);
  background: var(--sobc-primary-dark);
  border-color: var(--sobc-primary-dark);
}

.sobc .sobc-btn:focus {
  outline: none;
  box-shadow: var(--sobc-focus);
}

.sobc .sobc-btn:focus:not(:focus-visible) {
  box-shadow: none;
}

.sobc .sobc-btn:disabled,
.sobc .sobc-btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.sobc .sobc-btn svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.sobc .sobc-btn--ghost {
  color: var(--sobc-primary);
  background: var(--sobc-white);
  border: 1px dashed var(--sobc-primary);
}

.sobc .sobc-btn--ghost:hover {
  color: var(--sobc-primary-dark);
  background: var(--sobc-primary-soft);
  border-color: var(--sobc-primary-dark);
}

.sobc .sobc-btn--light {
  color: var(--sobc-text);
  background: var(--sobc-field);
  border-color: var(--sobc-field);
}

.sobc .sobc-btn--light:hover {
  color: var(--sobc-text);
  background: var(--sobc-line-soft);
  border-color: var(--sobc-line-soft);
}

.sobc .sobc-btn--small {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
}

.sobc .sobc-btn--block {
  display: flex;
  width: 100%;
}

.sobc .sobc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.sobc .sobc-actions .sobc-btn {
  flex: 1 1 100%;
}

/* ---------- Результат ---------- */

.sobc .sobc-result {
  position: relative;
  padding: 18px;
  color: var(--sobc-text);
  background: var(--sobc-panel);
  border-radius: var(--sobc-radius);
}

.sobc .sobc-result__title {
  margin: 0 0 10px;
  padding: 0;
  font-family: var(--sobc-font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--sobc-heading);
  text-align: left;
  background: none;
}

.sobc .sobc-result__main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  margin: 0 0 6px;
}

.sobc .sobc-result__value {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--sobc-primary);
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

.sobc .sobc-result__unit {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--sobc-heading);
}

.sobc .sobc-result__caption {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--sobc-muted);
}

.sobc .sobc-result__note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--sobc-muted);
}

.sobc .sobc-result--empty .sobc-result__value {
  color: #b5b5b5;
}

.sobc .sobc-result--error {
  background: var(--sobc-error-soft);
}

.sobc .sobc-result--error .sobc-result__value {
  color: var(--sobc-error);
}

.sobc .sobc-result--updated .sobc-result__value {
  animation: sobc-pop 0.35s ease;
}

@keyframes sobc-pop {
  0% {
    opacity: 0.35;
    transform: translateY(4px);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

.sobc .sobc-breakdown {
  margin: 16px 0 0;
  padding: 12px 0 0;
  list-style: none;
  border-top: 1px solid var(--sobc-line);
}

.sobc .sobc-breakdown__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 5px 0;
  font-size: 14px;
  line-height: 1.4;
}

.sobc .sobc-breakdown__name {
  color: var(--sobc-heading);
}

.sobc .sobc-breakdown__value {
  font-weight: 500;
  color: var(--sobc-text);
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.sobc .sobc-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.sobc .sobc-stat {
  margin: 0;
  padding: 10px 12px;
  background: var(--sobc-white);
  border-radius: var(--sobc-radius-small);
}

.sobc .sobc-stat__value {
  display: block;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--sobc-primary);
  font-variant-numeric: tabular-nums;
}

.sobc .sobc-stat__label {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--sobc-muted);
}

/* ---------- Подсказки и сообщения ---------- */

.sobc .sobc-note,
.sobc .sobc-alert {
  margin: 16px 0 0;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--sobc-text);
  background: var(--sobc-primary-soft);
  border-left: 3px solid var(--sobc-primary);
  border-radius: 0 var(--sobc-radius) var(--sobc-radius) 0;
}

.sobc .sobc-note--accent {
  background: var(--sobc-accent-soft);
  border-left-color: var(--sobc-accent);
}

.sobc .sobc-note--warn {
  background: var(--sobc-warn-soft);
  border-left-color: var(--sobc-warn);
}

.sobc .sobc-alert--error {
  color: var(--sobc-error-dark);
  background: var(--sobc-error-soft);
  border-left-color: var(--sobc-error);
}

.sobc .sobc-note:first-child,
.sobc .sobc-alert:first-child {
  margin-top: 0;
}

/* ---------- Таблицы ---------- */

.sobc .sobc-table-wrap {
  width: 100%;
  margin: 16px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--sobc-line-soft);
  border-radius: var(--sobc-radius);
}

.sobc .sobc-table {
  width: 100%;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  background: var(--sobc-white);
  border-collapse: collapse;
  border-spacing: 0;
}

.sobc .sobc-table th,
.sobc .sobc-table td {
  min-width: 0;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border: 0;
  border-bottom: 1px solid var(--sobc-line-soft);
}

.sobc .sobc-table th {
  font-weight: 500;
  color: var(--sobc-heading);
  background: var(--sobc-field);
}

.sobc .sobc-table thead th {
  white-space: nowrap;
}

.sobc .sobc-table tbody tr:nth-child(even) td,
.sobc .sobc-table tbody tr:nth-child(even) th {
  background: #fafafa;
}

.sobc .sobc-table tbody tr:last-child td,
.sobc .sobc-table tbody tr:last-child th {
  border-bottom: 0;
}

.sobc .sobc-table .sobc-table__num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.sobc .sobc-table caption {
  caption-side: bottom;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--sobc-muted);
  text-align: left;
}

/* ---------- Схемы и рисунки ---------- */

.sobc .sobc-figure {
  margin: 16px 0;
  padding: 0;
}

.sobc .sobc-figure__media {
  padding: 12px;
  overflow: hidden;
  background: var(--sobc-white);
  border: 1px solid var(--sobc-line-soft);
  border-radius: var(--sobc-radius);
}

.sobc .sobc-figure svg,
.sobc .sobc-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.sobc .sobc-figure__caption {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--sobc-muted);
  text-align: left;
}

/* ---------- Утилиты ---------- */

.sobc .sobc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sobc .sobc-muted {
  color: var(--sobc-muted);
}

.sobc .sobc-nowrap {
  white-space: nowrap;
}

.sobc .sobc-divider {
  height: 0;
  margin: 20px 0;
  border: 0;
  border-top: 1px solid var(--sobc-line-soft);
}

.sobc .sobc-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--sobc-primary);
  background: var(--sobc-primary-soft);
  border-radius: 20px;
  white-space: nowrap;
}

/* ---------- Только телефон: таблица карточками ---------- */

@media (max-width: 767.98px) {
  .sobc .sobc-table--stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .sobc .sobc-table--stack,
  .sobc .sobc-table--stack tbody,
  .sobc .sobc-table--stack tr,
  .sobc .sobc-table--stack td,
  .sobc .sobc-table--stack th {
    display: block;
    width: 100%;
  }

  .sobc .sobc-table--stack tr {
    padding: 6px 0;
    border-bottom: 1px solid var(--sobc-line-soft);
  }

  .sobc .sobc-table--stack tbody tr:last-child {
    border-bottom: 0;
  }

  .sobc .sobc-table--stack tbody tr:nth-child(even) td,
  .sobc .sobc-table--stack tbody tr:nth-child(even) th {
    background: transparent;
  }

  .sobc .sobc-table--stack td,
  .sobc .sobc-table--stack tbody th {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 12px;
    text-align: right;
    background: transparent;
    border-bottom: 0;
  }

  .sobc .sobc-table--stack td::before,
  .sobc .sobc-table--stack tbody th::before {
    content: attr(data-label);
    flex: 0 0 45%;
    font-weight: 500;
    color: var(--sobc-heading);
    text-align: left;
  }

  .sobc .sobc-table--stack .sobc-table__num {
    text-align: right;
  }
}

/* ---------- ≥ 480px: большой телефон ---------- */

@media (min-width: 480px) {
  .sobc .sobc-calc {
    padding: 20px;
  }

  .sobc .sobc-grid--2,
  .sobc .sobc-grid--3,
  .sobc .sobc-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sobc .sobc-actions .sobc-btn {
    flex: 0 0 auto;
  }

  .sobc .sobc-actions .sobc-btn--block {
    flex: 1 1 100%;
  }

  .sobc .sobc-options--cards {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .sobc .sobc-options--block .sobc-option {
    flex: 1 1 auto;
  }

  .sobc .sobc-row__fields--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sobc .sobc-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- ≥ 768px: планшет ---------- */

@media (min-width: 768px) {
  .sobc .sobc-calc {
    padding: 24px 28px;
  }

  .sobc .sobc-calc__head {
    margin-bottom: 22px;
  }

  .sobc .sobc-title {
    font-size: 22px;
  }

  .sobc .sobc-section__title {
    font-size: 17px;
  }

  .sobc .sobc-grid {
    gap: 16px 20px;
  }

  .sobc .sobc-grid--3,
  .sobc .sobc-grid--4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sobc .sobc-result {
    padding: 22px 24px;
  }

  .sobc .sobc-result__value {
    font-size: 42px;
  }

  .sobc .sobc-table th,
  .sobc .sobc-table td {
    padding: 11px 14px;
  }

  .sobc .sobc-figure__media {
    padding: 16px;
  }
}

/* ---------- ≥ 992px: десктоп ---------- */

@media (min-width: 992px) {
  .sobc .sobc-calc {
    padding: 28px 40px 32px;
  }

  .sobc .sobc-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
  }

  .sobc .sobc-layout--sticky .sobc-layout__aside {
    position: -webkit-sticky;
    position: sticky;
    top: var(--sobc-sticky-top);
  }

  .sobc .sobc-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sobc .sobc-result__value {
    font-size: 44px;
  }
}

@media (min-width: 992px) and (pointer: fine) {
  .sobc .sobc-input,
  .sobc .sobc-select {
    font-size: 15px;
  }
}

/* ---------- Доступность и печать ---------- */

@media (prefers-reduced-motion: reduce) {
  .sobc *,
  .sobc *::before,
  .sobc *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .sobc .sobc-calc {
    margin: 10px 0;
    padding: 12px;
    box-shadow: none;
    border: 1px solid #cccccc;
  }

  .sobc .sobc-btn,
  .sobc .sobc-row__remove,
  .sobc .sobc-actions {
    display: none !important;
  }

  .sobc .sobc-input,
  .sobc .sobc-select {
    background: #ffffff;
    border: 1px solid #999999;
  }

  .sobc .sobc-result {
    border: 1px solid #cccccc;
  }

  .sobc .sobc-layout {
    display: block;
  }
}
