/* Блоки spk/*. В Справочнике вид дают его стили (.answer, .note, .cards, .faq), здесь — ЯДРО и редактор. */

.spk-placeholder {
  padding: 16px;
  border: 1px dashed #9aa79c;
  border-radius: 8px;
  color: #5b6760;
  font-size: 14px;
}

body:not(.spravochnik) .spk-kratko,
body:not(.spravochnik) .spk-vazhno {
  width: min(960px, 100%);
  margin: 28px auto 0;
  padding: 20px 24px;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.7;
}

body:not(.spravochnik) .spk-kratko {
  background: #f3f6f1;
  border-left: 4px solid var(--green, #2f5d3a);
}

body:not(.spravochnik) .spk-kratko > strong:first-child {
  display: block;
  margin-bottom: 6px;
  color: var(--green, #2f5d3a);
  font: 700 12px/1.4 Montserrat, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body:not(.spravochnik) .spk-kratko p,
body:not(.spravochnik) .spk-vazhno p {
  margin: 0 0 8px;
}

body:not(.spravochnik) .spk-kratko p:last-child,
body:not(.spravochnik) .spk-vazhno p:last-child {
  margin-bottom: 0;
}

body:not(.spravochnik) .spk-vazhno {
  background: #fff7e6;
  border-left: 4px solid #c9962b;
}

body:not(.spravochnik) .spk-vazhno--info {
  background: #e9eee5;
  border-left-color: var(--green, #2f5d3a);
}

body:not(.spravochnik) .spk-vazhno--urgent {
  background: #fdecec;
  border-left-color: #b3261e;
}

body:not(.spravochnik) .spk-cards__title {
  width: min(960px, 100%);
  margin: 56px auto 0;
}

body:not(.spravochnik) .spk-cards {
  display: grid;
  gap: 16px;
  width: min(960px, 100%);
  margin: 20px auto 0;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  body:not(.spravochnik) .spk-cards--2 { grid-template-columns: repeat(2, 1fr); }
  body:not(.spravochnik) .spk-cards--3 { grid-template-columns: repeat(3, 1fr); }
}

body:not(.spravochnik) .spk-cards .card {
  display: block;
  padding: 20px 22px;
  border: 1px solid var(--line, #dfe5dc);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

body:not(.spravochnik) .spk-cards a.card:hover {
  border-color: var(--green, #2f5d3a);
}

body:not(.spravochnik) .spk-cards .card.urgent {
  border-top: 3px solid #c9962b;
}

body:not(.spravochnik) .spk-cards .card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

body:not(.spravochnik) .spk-cards .card p {
  margin: 0;
  color: var(--muted, #5b6760);
  font-size: 15px;
}

.spk-directions {
  width: min(960px, 100%);
  margin: 56px auto 0;
}

.spk-directions.directions {
  padding: 0;
  background: transparent;
}

.spk-directions .directions__grid {
  margin-top: 24px;
}

@media (max-width: 760px) {
  .spk-directions .directions__grid { grid-template-columns: 1fr; }
}

body.spk-home .spk-directions {
  width: min(1200px, calc(100% - 80px));
  margin: 0 auto;
  padding-block: 92px;
}

@media (max-width: 760px) {
  body.spk-home .spk-directions {
    width: calc(100% - 48px);
    padding-block: 60px;
  }
}

@media (max-width: 480px) {
  body.spk-home .spk-directions { width: calc(100% - 36px); }
}

.spk-calc {
  width: min(960px, 100%);
  margin: 40px auto 0;
  padding: 24px 28px;
  border: 1px solid var(--line, #dfe5dc);
  border-radius: 12px;
  background: #fff;
}

.spk-calc__title {
  margin: 0 0 12px;
  font-size: 22px;
}

.yadro .yadro-copy .spk-calc__rows,
.spk-calc__rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.yadro .yadro-copy .spk-calc__rows li,
.spk-calc__rows li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line, #dfe5dc);
}

.yadro .yadro-copy .spk-calc__rows li::before {
  content: none;
}

.spk-calc__rows strong {
  white-space: nowrap;
}

.spk-calc__total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  font: 700 20px/1.4 Montserrat, sans-serif;
}

.spk-calc__total strong {
  color: var(--green, #2f5d3a);
  white-space: nowrap;
}

.spk-calc__note {
  font-size: 13px;
}

@media (max-width: 560px) {
  .spk-calc { padding: 18px; }
  .spk-calc__rows li,
  .spk-calc__total { flex-direction: column; gap: 2px; }
}

.yadro .spk-lead-form > h2 {
  margin-bottom: 16px;
}

/* Расчёт «С выбором» и факты о направлении — по вёрстке прототипа посадочных ЯДРО. */
.spk-calc--interactive {
  padding: 0;
  border: 0;
  background: transparent;
}

.spk-calc__lead {
  margin: 0 0 20px;
}

.spk-calc__box {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  border: 1px solid var(--line, #dfe5dc);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.spk-calc__controls {
  padding: 28px;
  background: #20382b;
  color: #fff;
}

.spk-calc__controls label {
  display: block;
  margin-bottom: 17px;
  font: 600 14px/1.4 Montserrat, sans-serif;
}

.spk-calc__controls label:last-child {
  margin-bottom: 0;
}

.spk-calc__controls select {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 7px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 7px;
  background: #294837;
  color: #fff;
  font: 400 16px/1.3 "Open Sans", sans-serif;
}

.spk-calc__result {
  display: grid;
  align-content: center;
  padding: 30px 36px;
}

.spk-calc__result dl {
  margin: 0;
}

.spk-calc__result dl > div {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line, #dfe5dc);
}

.spk-calc__result dl > .spk-calc__sum {
  border-bottom: 0;
}

.spk-calc__result dt {
  color: var(--muted, #5b6760);
}

.spk-calc__result dd {
  margin: 0;
  text-align: right;
  white-space: nowrap;
  font: 700 19px/1.3 Montserrat, sans-serif;
}

.spk-calc__result .spk-calc__sum dd {
  color: var(--green, #284c39);
  font-size: 27px;
}

.yadro .yadro-copy .spk-calc__source,
.spk-calc__source {
  margin: 9px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .spk-calc__box { grid-template-columns: 1fr; }
  .spk-calc__controls,
  .spk-calc__result { padding: 22px 18px; }
  .spk-calc__result dl > div { display: block; }
  .spk-calc__result dd { margin-top: 3px; text-align: left; }
}

.spk-job-facts {
  display: grid;
  width: min(960px, 100%);
  margin: 40px auto 0;
  border: 1px solid var(--line, #dfe5dc);
  border-radius: 7px;
  background: #fff;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.spk-job-facts--2 { grid-template-columns: repeat(2, 1fr); }
.spk-job-facts--1 { grid-template-columns: 1fr; }

.spk-job-facts__item {
  padding: 24px;
  border-right: 1px solid var(--line, #dfe5dc);
}

.spk-job-facts__item:last-child {
  border-right: 0;
}

.yadro .yadro-copy .spk-job-facts h3,
.spk-job-facts h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.yadro .yadro-copy .spk-job-facts p,
.spk-job-facts p {
  margin: 0 0 8px;
  font-size: 15px;
}

.yadro .yadro-copy .spk-job-facts .spk-job-facts__number,
.spk-job-facts__number {
  color: var(--green, #284c39);
  font: 700 26px/1.2 Montserrat, sans-serif;
}

@media (max-width: 760px) {
  .spk-job-facts,
  .spk-job-facts--2 { grid-template-columns: 1fr; }
  .spk-job-facts__item { border-right: 0; border-bottom: 1px solid var(--line, #dfe5dc); }
  .spk-job-facts__item:last-child { border-bottom: 0; }
}

/* Штатная таблица в Справочнике — как старая .table-wrap: подпись сверху, только горизонтальные линии. */
.spravochnik .wp-block-table.table-wrap {
  display: flex;
  flex-direction: column-reverse;
  margin: 16px 0 20px;
}

.spravochnik .wp-block-table thead {
  border-bottom: 0;
}

.spravochnik .wp-block-table th,
.spravochnik .wp-block-table td {
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
}

.spravochnik .wp-block-table tbody tr:last-child td {
  border-bottom: 0;
}

.spravochnik .wp-block-table td.has-text-align-right {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.spravochnik .wp-block-table figcaption {
  margin: 0;
  padding: 12px 14px 0;
  color: inherit;
  text-align: left;
  font: 700 14px/1.4 var(--font-head);
}

body.baza2-site .spk-facts,
body.baza2-site .spk-steps,
body.spk-home .spk-facts,
body.spk-home .spk-steps {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.spk-hero .hero__eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  color: #e8c67c;
  font: 700 12px/1.3 Montserrat, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid rgba(232, 198, 124, .45);
  border-radius: 999px;
  padding: 7px 14px;
}

.spk-hero {
  position: relative;
  overflow: hidden;
  background: #20382b;
  color: #fff;
}

.spk-hero .hero__bg {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spk-hero .hero__overlay {
  display: block;
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(19, 38, 26, .94) 0%, rgba(19, 38, 26, .8) 35%, rgba(19, 38, 26, .15) 78%), linear-gradient(0deg, #20382b 0%, transparent 50%);
}

.spk-hero .hero__container {
  position: relative;
  padding-block: 84px 70px;
}

.spk-stats {
  width: min(960px, 100%);
  margin: 28px auto 0;
  background: #20382b;
  color: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.spk-stats .hero__cards {
  margin-top: 0;
}

.spk-stats .stat__label {
  color: #c7d3c8;
}

.spk-stats__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 22px 22px;
}

.spk-stats__buttons .btn--outline {
  color: #fff;
}

.spk-steps,
.spk-facts {
  width: min(960px, 100%);
  margin: 40px auto 0;
}

.spk-facts .conditions__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 16px;
}

.spk-facts .benefits {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line, #dfe5dc);
  border-radius: 12px;
}

.spk-facts .benefits--accent {
  background: #e9eee5;
}

.spk-steps .steps__grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.spk-steps .step {
  border-top: 1px solid #bac5b5;
  padding-top: 16px;
}

.spk-steps .step__num {
  color: var(--green, #284c39);
  font: 500 32px Montserrat, sans-serif;
  margin-bottom: 12px;
}

.yadro .yadro-copy .spk-steps ol,
.yadro .yadro-copy .spk-steps li,
.yadro .yadro-copy .spk-facts ul,
.yadro .yadro-copy .spk-facts li {
  margin: 0;
  padding-left: 0;
}

.yadro .yadro-copy .spk-steps li::before,
.yadro .yadro-copy .spk-facts ul li::before {
  content: none;
}

.yadro .yadro-copy .spk-facts .checklist li {
  position: relative;
  padding: 10px 0 10px 27px;
}

.yadro .yadro-copy .spk-facts .checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;
  width: auto;
  height: auto;
  border: 0;
  transform: none;
  color: var(--green, #284c39);
  font-weight: 700;
}

.yadro .yadro-copy .spk-stats a.btn--outline {
  color: #fff;
}

.spk-lead-form.cta-band .cta-band__inner {
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  grid-template-rows: auto;
  column-gap: 28px;
  align-items: center;
}

.spk-lead-form.cta-band .cta-band__bg {
  display: none;
}

.spk-lead-form.cta-band .cta-band__copy {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}

.spk-lead-form.cta-band .cta-band__descr {
  grid-column: auto;
  margin-top: 12px;
}

.spk-lead-form.cta-band form.cta-band__form {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  max-width: none;
  min-width: 0;
}

.spk-lead-form.cta-band form.cta-band__form .field,
.spk-lead-form.cta-band form.cta-band__form .apply__consent {
  flex: 1 0 100%;
}

.spk-lead-form.apply .apply__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 760px) {
  .spk-facts .conditions__cols,
  .spk-steps .steps__grid {
    grid-template-columns: 1fr;
  }
}

/* Внутри .yadro-copy каждый H2 начинает раздел с отбивкой; у блоков отбивку даёт сам блок. */
.yadro .yadro-copy .spk-calc__title,
.yadro .yadro-copy .spk-faq > h2,
.yadro .yadro-copy .spk-lead-form > h2,
.yadro .yadro-copy .spk-directions .section__title,
.yadro .yadro-copy .spk-regions .section__title,
.yadro .yadro-copy .spk-steps .section__title,
.yadro .yadro-copy .spk-facts__title {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.yadro .yadro-copy .spk-calc__title {
  font-size: 22px;
}

.yadro .yadro-copy .spk-directions .direction__actions a {
  text-decoration: none;
}

.yadro .yadro-copy .spk-directions .direction__actions .btn--primary {
  color: #fff;
}

.spk-region-facts {
  width: min(960px, 100%);
  margin: 40px auto 0;
}

.spk-region-facts .spk-job-facts {
  width: 100%;
  margin: 0;
}

.spk-region-facts__sum {
  margin-bottom: 16px;
  padding: 17px 20px;
  border: 1px solid var(--line, #dfe5dc);
  border-radius: 7px;
  background: #fff;
}

.spk-region-facts__sum span,
.spk-region-facts__sum small {
  display: block;
  color: var(--muted, #5b6760);
  font-size: 13px;
}

.spk-region-facts__sum strong {
  display: block;
  margin: 6px 0 4px;
  color: var(--green, #284c39);
  font: 700 31px/1.25 Montserrat, sans-serif;
}

.spk-regions__list {
  border: 1px solid var(--line, #dfe5dc);
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
}

.spk-regions__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 25px;
  padding: 21px;
  border-bottom: 1px solid var(--line, #dfe5dc);
  color: inherit;
}

.spk-regions__row:last-child {
  border-bottom: 0;
}

a.spk-regions__row {
  text-decoration: none;
}

.yadro .yadro-copy a.spk-regions__row {
  color: var(--ink, #202c26);
  text-decoration: none;
}

.yadro .yadro-copy .spk-regions h3,
.spk-regions__row h3 {
  margin: 0;
  font-size: 22px;
}

.yadro .yadro-copy .spk-regions p,
.spk-regions__row p {
  margin: 5px 0 0;
  color: var(--muted, #5b6760);
  font-size: 14px;
}

.spk-regions__row > strong {
  text-align: right;
  color: var(--green, #284c39);
  font: 700 20px/1.3 Montserrat, sans-serif;
}

.spk-regions__row > strong small {
  display: block;
  color: var(--muted, #5b6760);
  font: 400 11px/1.3 inherit;
}

.spk-regions__note {
  margin: 14px 0 0;
  color: var(--muted, #5b6760);
  font-size: 14px;
}

@media (max-width: 680px) {
  .spk-regions__row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .spk-regions__row > strong {
    text-align: left;
  }
}
