/* ==========================================================================
   /tools/semeynaya-vyplata
   Hero / FAQ / sources базово наследуются из maternity-bag.css
   ========================================================================== */
@import url("/assets/css/maternity-bag.css");

/* Мягкая цветная подложка страницы. Без неё «стекло» карточек не читается:
   полупрозрачному блоку нужно, чтобы сквозь него что-то просвечивало. */
.sv-page {
  background:
    radial-gradient(70% 45% at 8% 4%, rgba(227, 220, 240, 0.75) 0%, transparent 60%),
    radial-gradient(60% 40% at 96% 22%, rgba(247, 203, 202, 0.45) 0%, transparent 62%),
    radial-gradient(70% 45% at 50% 100%, rgba(214, 226, 240, 0.55) 0%, transparent 65%),
    linear-gradient(180deg, #f7f8fb 0%, #f2f3f9 100%) !important;
}

/* Общая «стеклянная» основа для блоков страницы */
.sv-form-card,
.sv-person,
.sv-income-check,
.sv-conditions,
.sv-deadline,
.sv-cond-card,
.sv-related-card,
.sv-compare-wrap,
.sv-example {
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(255, 255, 255, 0.62) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 0 0 1px rgba(17, 17, 17, 0.04),
    0 18px 38px -24px rgba(37, 33, 60, 0.5);
}

/* Фон делим с /tools/tax-deduction: композиция рамочная, центр пустой —
   под центрированный заголовок. Чтобы страницы не выглядели одинаково,
   оверлей здесь лавандовый (акцент категории), а не тёплый как там. */
.sv-hero {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.5) 0%,
      rgba(227, 220, 240, 0.82) 100%
    ),
    url("/assets/images/tax-deduction-hero-bg.webp") center / cover no-repeat,
    linear-gradient(180deg, #ffffff 0%, #e3dcf0 100%) !important;
  border-bottom-color: #d6cfe0 !important;
}

.sv-hero .mb-hero-title span::after {
  background: linear-gradient(90deg, rgba(227, 220, 240, 0.9), rgba(189, 160, 0, 0.35));
}

/* ---------- Форма ---------- */
/* Своего верхнего отступа не даём: #container уже добавляет 40px,
   вместе получалось 76px и форма отрывалась от hero. */
.sv-form-section {
  margin: 0;
}

.sv-form-card {
  border-radius: 22px;
  padding: 30px 32px;
}

.sv-form-title {
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--main-bg-color);
  margin: 0 !important;
}

.sv-form-sub {
  margin: 6px 0 22px !important;
  font-size: 14.5px;
  color: var(--dark-text-color);
}

.sv-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}

.sv-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.sv-field-full {
  grid-column: 1 / -1;
}

.sv-field label {
  font-family: "Montserrat", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--main-bg-color);
}

.sv-field input,
.sv-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d9dfe9;
  border-radius: 11px;
  font-family: "Nunito", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--main-bg-color);
  background: #fbfcfe;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.sv-field input:focus {
  outline: none;
  border-color: var(--gold-color);
  box-shadow: 0 0 0 3px rgba(189, 160, 0, 0.14);
}

/* ---------- Свой выпадающий список ----------
   Нативный select остаётся в DOM ради значения и события change,
   но скрыт: браузеры не дают стилизовать <option>. */
.sv-select {
  position: relative;
}

.sv-select-native {
  position: absolute !important;
  opacity: 0;
  pointer-events: none;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
}

.sv-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #d9dfe9;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.75);
  font-family: "Nunito", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--main-bg-color);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.sv-select-trigger:hover {
  border-color: #bcc6d6;
  background: #ffffff;
}

.sv-select-trigger:focus-visible {
  outline: none;
  border-color: var(--gold-color);
  box-shadow: 0 0 0 3px rgba(189, 160, 0, 0.14);
}

.sv-select[data-open="true"] .sv-select-trigger {
  border-color: var(--gold-color);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(189, 160, 0, 0.14);
}

.sv-select-caret {
  flex-shrink: 0;
  color: var(--gold-color);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sv-select[data-open="true"] .sv-select-caret {
  transform: rotate(180deg);
}

.sv-select-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 0 0 1px rgba(17, 17, 17, 0.05),
    0 22px 42px -18px rgba(37, 33, 60, 0.45);
  opacity: 0;
  transform: translateY(-6px);
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0.2s;
}

.sv-select[data-open="true"] .sv-select-menu {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.sv-select-option {
  padding: 11px 14px;
  border-radius: 10px;
  font-family: "Nunito", sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--main-bg-color);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.sv-select-option.is-focused {
  background: rgba(189, 160, 0, 0.12);
}

.sv-select-option[aria-selected="true"] {
  background: var(--main-bg-color);
  color: #ffffff;
}

.sv-select-option[aria-selected="true"].is-focused {
  background: #000000;
}

.sv-field-hint {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--dark-text-color);
}

.sv-field-hint a {
  color: var(--gold-color);
  font-weight: 700;
}

.sv-calc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 15px 30px;
  background: var(--main-bg-color);
  color: #fff;
  border: 0;
  border-radius: 13px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 15.5px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.sv-calc-btn:hover {
  background: var(--gold-color);
}

.sv-calc-btn:active {
  transform: translateY(1px);
}

/* ---------- Результаты ---------- */
.sv-results {
  margin: 28px 0 10px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  /* JS скроллит сюда после расчёта — оставляем воздух под фикс-хедером */
  scroll-margin-top: 84px;
}

.sv-results[hidden] {
  display: none;
}

/* Вердикт */
.sv-verdict {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 26px;
  border-radius: 18px;
  border: 1px solid transparent;
}

.sv-verdict[data-state="yes"] {
  background: #eefaf1;
  border-color: #bfe6cb;
}

.sv-verdict[data-state="warn"] {
  background: #fff8e8;
  border-color: #f0dfae;
}

.sv-verdict[data-state="no"] {
  background: #fdf0f0;
  border-color: #f0cccc;
}

.sv-verdict-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
}

.sv-verdict-icon svg {
  width: 22px;
  height: 22px;
}

.sv-verdict[data-state="yes"] .sv-verdict-icon { color: #1f8a4c; }
.sv-verdict[data-state="warn"] .sv-verdict-icon { color: #a67c10; }
.sv-verdict[data-state="no"] .sv-verdict-icon { color: #c0392b; }

.sv-verdict-title {
  font-family: "Montserrat", sans-serif;
  font-size: 19px;
  font-weight: 800;
  margin: 2px 0 0 !important;
  color: var(--main-bg-color);
}

.sv-verdict-note {
  margin: 6px 0 0 !important;
  font-size: 14.5px;
  line-height: 1.55;
  color: #3f4a4a;
}

/* Итоговая сумма */
.sv-total {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 30px 26px;
  background: linear-gradient(135deg, #111111 0%, #262433 100%);
  border-radius: 20px;
  text-align: center;
  color: #fff;
}

.sv-total[hidden] {
  display: none;
}

.sv-total-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}

.sv-total-value {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(34px, 7vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--gold-color);
}

.sv-total-hint {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

/* Разбивка по родителям */
.sv-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.sv-breakdown:empty {
  display: none;
}

.sv-person {
  border-radius: 16px;
  padding: 20px 22px;
}

.sv-person-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef1f6;
}

.sv-person-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: var(--main-bg-color);
}

.sv-person-payout {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 19px;
  color: var(--gold-color);
  white-space: nowrap;
}

.sv-person-rows {
  margin: 12px 0 0;
}

.sv-person-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  font-size: 14px;
}

.sv-person-rows dt {
  color: var(--dark-text-color);
}

.sv-person-rows dd {
  margin: 0;
  font-weight: 700;
  color: var(--main-bg-color);
  white-space: nowrap;
}

.sv-person-diff {
  margin-top: 4px;
  padding-top: 11px !important;
  border-top: 1px dashed #dfe4ee;
}

.sv-person-diff dt {
  font-weight: 700;
  color: var(--main-bg-color) !important;
}

/* Блоки-секции результата */
.sv-income-check,
.sv-conditions,
.sv-deadline {
  border-radius: 18px;
  padding: 24px 26px;
}

.sv-block-title {
  font-family: "Montserrat", sans-serif;
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 14px !important;
  color: var(--main-bg-color);
}

.sv-check-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sv-check-rows li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f2f7;
  font-size: 14.5px;
  color: var(--dark-text-color);
}

.sv-check-rows li:last-child {
  border-bottom: 0;
}

.sv-check-rows b {
  color: var(--main-bg-color);
  text-align: right;
}

.sv-check-final {
  margin-top: 6px;
  padding-top: 14px !important;
  border-top: 1px dashed #dfe4ee;
}

.sv-check-final[data-ok="1"] b { color: #1f8a4c; }
.sv-check-final[data-ok="0"] b { color: #c0392b; }

.sv-conditions-lead {
  margin: -6px 0 14px !important;
  font-size: 14px;
  line-height: 1.55;
  color: var(--dark-text-color);
}

.sv-conditions-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.sv-conditions-list li {
  position: relative;
  padding: 8px 0 8px 30px;
  font-size: 14.5px;
  line-height: 1.55;
  color: #3f4a4a;
}

.sv-conditions-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--gold-color);
}

.sv-deadline-steps {
  margin: 0;
  padding-left: 22px;
}

.sv-deadline-steps li {
  padding: 6px 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #3f4a4a;
}

.sv-deadline-note {
  margin: 12px 0 0 !important;
  font-size: 13.5px;
  color: var(--dark-text-color);
}

/* ---------- Текстовые блоки страницы ---------- */
.sv-article {
  margin: 34px 0 0;
}

.sv-article h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 14px !important;
  color: var(--main-bg-color);
  letter-spacing: -0.02em;
  text-transform: none;
}

.sv-article h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 800;
  margin: 22px 0 8px !important;
  color: var(--main-bg-color);
  text-transform: none;
}

.sv-article p {
  margin: 0 0 12px !important;
  font-size: 15.5px;
  line-height: 1.7;
  color: #3f4a4a;
}

.sv-article > ul {
  margin: 0 0 12px;
  padding-left: 22px;
}

.sv-article > ul li {
  padding: 5px 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: #3f4a4a;
}

/* Карточки условий */
.sv-cond-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.sv-cond-card {
  border-left: 3px solid var(--gold-color) !important;
  border-radius: 14px;
  padding: 18px 20px;
}

.sv-cond-card h3 {
  font-size: 15.5px !important;
  margin: 0 0 6px !important;
}

.sv-cond-card p {
  margin: 0 !important;
  font-size: 14px;
  line-height: 1.6;
}

/* Формула */
.sv-formula {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 18px 0;
  padding: 22px 24px;
  background: #f2eefb;
  border-radius: 14px;
  text-align: center;
}

.sv-formula-line {
  font-family: "Montserrat", sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--main-bg-color);
  line-height: 1.4;
}

.sv-formula-note {
  font-size: 14px;
  color: var(--dark-text-color);
}

/* Пример расчёта */
.sv-example {
  margin: 18px 0;
  padding: 24px 26px;
  border-radius: 18px;
}

.sv-example-intro {
  margin: 0 0 18px !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
}

.sv-example-label {
  display: inline-block;
  margin-bottom: 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gold-color);
}

.sv-example-step {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.6);
  border-left: 3px solid var(--gold-color);
  border-radius: 12px;
}

.sv-example-step p {
  margin: 0 !important;
  font-size: 14.5px !important;
  line-height: 1.6 !important;
}

.sv-example-persons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin: 14px 0;
}

.sv-example-person {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
}

.sv-example-person dl {
  margin: 0;
}

.sv-example-person dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 14px;
}

.sv-example-person dt {
  color: var(--dark-text-color);
}

.sv-example-person dd {
  margin: 0;
  font-weight: 700;
  color: var(--main-bg-color);
  white-space: nowrap;
}

.sv-example-result {
  margin-top: 4px;
  padding-top: 10px !important;
  border-top: 1px dashed rgba(17, 17, 17, 0.14);
}

.sv-example-result dt {
  font-weight: 700;
  color: var(--main-bg-color) !important;
}

.sv-example-result dd {
  color: var(--gold-color) !important;
  font-size: 16px;
}

.sv-example-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  background: var(--main-bg-color);
  border-radius: 14px;
  color: #fff;
}

.sv-example-total span {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.72);
}

.sv-example-total b {
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--gold-color);
  white-space: nowrap;
}

/* Таблица сравнения */
.sv-compare-wrap {
  margin: 18px 0;
  border-radius: 14px;
  overflow: hidden;
}

.sv-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.sv-compare th,
.sv-compare td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(17, 17, 17, 0.07);
  vertical-align: top;
  line-height: 1.5;
}

.sv-compare thead th {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--main-bg-color);
  background: rgba(255, 255, 255, 0.55);
}

.sv-compare tbody th {
  font-weight: 700;
  color: var(--main-bg-color);
  width: 30%;
  background: rgba(255, 255, 255, 0.35);
}

.sv-compare tbody td {
  color: #3f4a4a;
}

.sv-compare tr:last-child th,
.sv-compare tr:last-child td {
  border-bottom: 0;
}

/* Шаги подачи */
.sv-steps {
  counter-reset: sv-step;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.sv-steps li {
  position: relative;
  counter-increment: sv-step;
  padding: 0 0 20px 52px;
}

.sv-steps li::before {
  content: counter(sv-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--main-bg-color);
  color: #fff;
  border-radius: 50%;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.sv-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16.5px;
  top: 38px;
  bottom: 6px;
  width: 1px;
  background: #dfe4ee;
}

.sv-steps h3 {
  margin: 5px 0 5px !important;
  font-size: 16px !important;
}

.sv-steps p {
  margin: 0 !important;
  font-size: 14.5px;
  line-height: 1.6;
  color: #3f4a4a;
}

/* Перелинковка */
.sv-related {
  margin: 40px 0 0;
}

.sv-related h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 16px !important;
  color: var(--main-bg-color);
  text-transform: none;
}

.sv-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.sv-related-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border-radius: 16px;
  text-decoration: none;
  transition:
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .sv-related-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold-color);
    box-shadow: 0 14px 28px -18px rgba(17, 17, 17, 0.45);
  }
}

.sv-related-tag {
  font-family: "Montserrat", sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-color);
}

.sv-related-title {
  font-family: "Montserrat", sans-serif;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--main-bg-color);
  line-height: 1.3;
}

.sv-related-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--dark-text-color);
}

/* ---------- Блок источников ----------
   В maternity-bag.css этих стилей нет, поэтому держим их здесь. */
.sr-sources-block {
  margin: 32px 0 8px;
  padding: 26px 30px 22px !important;
  background: linear-gradient(180deg, #ffffff 0%, #faf8f1 100%);
  border: 1px solid #ece5cf;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(189, 160, 0, 0.05);
}

.sr-sources-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed #e3dcc2;
}

.sr-sources-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gold-color);
  color: #fff;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(189, 160, 0, 0.25);
}

.sr-sources-head h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 20px !important;
  font-weight: 800 !important;
  margin: 0 !important;
  letter-spacing: -0.02em;
  color: var(--main-bg-color);
  text-transform: none !important;
}

.sr-sources {
  counter-reset: sr-source;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  color: var(--main-bg-color);
}

.sr-sources li {
  position: relative;
  counter-increment: sr-source;
  padding: 10px 12px 10px 42px !important;
  margin: 0 !important;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.sr-sources li:hover {
  background: rgba(189, 160, 0, 0.04);
}

.sr-sources li::before {
  content: counter(sr-source);
  position: absolute;
  left: 8px;
  top: 9px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1.5px solid #e3dcc2;
  border-radius: 50%;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: var(--gold-color);
}

.sr-sources-authors {
  font-weight: 700;
  color: var(--main-bg-color);
  margin-right: 4px;
}

.sr-sources a {
  color: var(--main-bg-color);
  text-decoration: underline;
  text-decoration-color: rgba(189, 160, 0, 0.5);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
  transition:
    text-decoration-color 0.2s,
    color 0.2s;
}

.sr-sources a:hover {
  color: #8a7600;
  text-decoration-color: var(--gold-color);
}

.sr-sources a[target="_blank"]::after {
  content: "\2197";
  display: inline-block;
  margin-left: 3px;
  font-size: 0.85em;
  color: var(--gold-color);
  text-decoration: none;
  vertical-align: middle;
}

.sr-sources-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  background: rgba(189, 160, 0, 0.12);
  color: #8a7600;
  border-radius: 999px;
  font-family: "Montserrat", sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
  white-space: nowrap;
}

.sr-sources-note {
  margin: 16px 0 0 !important;
  padding: 10px 14px !important;
  background: rgba(255, 255, 255, 0.6);
  border-left: 3px solid var(--gold-color);
  border-radius: 8px;
  font-size: 12.5px !important;
  line-height: 1.5 !important;
  color: #444;
  font-style: italic;
}

/* ---------- Адаптив ---------- */
@media (max-width: 700px) {
  .sr-sources-block {
    padding: 22px 18px 18px !important;
  }
  .sr-sources-head h2 {
    font-size: 18px !important;
  }
  .sr-sources li {
    padding: 10px 8px 10px 38px !important;
    font-size: 13px !important;
  }
  .sr-sources li::before {
    left: 4px;
  }

  .sv-form-card {
    padding: 22px 18px;
  }

  .sv-form-grid {
    grid-template-columns: 1fr;
  }

  .sv-calc-btn {
    width: 100%;
    justify-content: center;
  }

  .sv-verdict {
    padding: 18px;
    gap: 13px;
  }

  .sv-income-check,
  .sv-conditions,
  .sv-deadline {
    padding: 20px 18px;
  }

  .sv-check-rows li {
    flex-direction: column;
    gap: 3px;
  }

  .sv-check-rows b {
    text-align: left;
  }

  .sv-article h2 {
    font-size: 22px;
  }

  .sv-formula {
    padding: 18px;
  }

  .sv-formula-line {
    font-size: 15px;
  }

  .sv-related h2 {
    font-size: 21px;
  }

  .sv-example {
    padding: 18px 16px;
  }

  .sv-example-total b {
    font-size: 20px;
  }

  /* Таблица разворачивается в карточки: горизонтальный скролл на телефоне
     читать неудобно, значения уезжают за экран. */
  .sv-compare-wrap {
    border: 0;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-radius: 0;
  }

  .sv-compare,
  .sv-compare tbody,
  .sv-compare tr,
  .sv-compare th,
  .sv-compare td {
    display: block;
    width: auto;
  }

  .sv-compare thead {
    display: none;
  }

  .sv-compare tbody tr {
    margin-bottom: 12px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.88) 0%,
      rgba(255, 255, 255, 0.62) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.9) inset,
      0 0 0 1px rgba(17, 17, 17, 0.04),
      0 14px 30px -24px rgba(37, 33, 60, 0.5);
  }

  .sv-compare tbody th {
    width: auto;
    background: rgba(227, 220, 240, 0.5);
    font-family: "Montserrat", sans-serif;
    font-size: 14.5px;
    padding: 12px 16px;
    border-bottom: 0;
  }

  .sv-compare tbody td {
    padding: 12px 16px 12px 16px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.06);
  }

  /* Заголовок колонки подставляем из data-col — иначе непонятно,
     к какой из двух мер относится значение */
  .sv-compare tbody td::before {
    content: attr(data-col);
    display: block;
    margin-bottom: 3px;
    font-family: "Montserrat", sans-serif;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gold-color);
  }

  .sv-compare tbody tr td:last-child {
    border-bottom: 0;
  }
}
