/* =========================================================
   Форма публикации в электронном журнале — оформление 2026
   ========================================================= */

.zh-page { max-width: 1064px; margin: 0 auto; }

/* ---------- шапка ---------- */
.zh-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--muted);
}
.zh-crumbs a { color: var(--brand); text-decoration: none; }
.zh-crumbs a:hover { text-decoration: underline; }
.zh-crumbs span { opacity: .5; }

.zh-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
}
.zh-kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--yellow);
  border-radius: 2px;
}
.s2026-main .zh-page .zh-head h1 {
  margin: 10px 0 10px;
  font-family: var(--font);
  font-size: clamp(25px, 3.2vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--heading);
}
.zh-lead {
  max-width: 66ch;
  margin: 0 0 22px;
  font-size: clamp(14px, 1.4vw, 15.5px);
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- раскладка ---------- */
.zh-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(20px, 3vw, 30px);
  align-items: start;
}

/* ---------- карточка формы ---------- */
.zh-form-card {
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.zh-form-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
}
.zh-form-card__top b { font-size: 15px; font-weight: 600; color: var(--heading); }
.zh-step {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--tint-3);
  color: var(--brand);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
}

.s2026-main .zh-page fieldset { margin: 0 0 20px; padding: 0; border: 0; }
.s2026-main .zh-page legend {
  width: 100%;
  margin-bottom: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line-2);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.zh-field { margin-bottom: 14px; }
.s2026-main .zh-page .zh-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}
.zh-req { color: #c9030c; font-weight: 600; }
html[data-theme="dark"] .s2026-main .zh-page .zh-req { color: #ff8a8a; }
.s2026-main .zh-page .zh-hint {
  display: block;
  margin: -2px 0 7px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}
.s2026-main .zh-page .zh-input {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  line-height: 1.3;
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.s2026-main .zh-page .zh-input::placeholder { color: var(--muted); }
.s2026-main .zh-page .zh-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(30, 98, 141, .16);
}

/* ---------- загрузчик файла ---------- */
.s2026-main .zh-page .zh-field label.zh-file {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 13px 14px;
  border: 1.5px dashed #b9d3e4;
  border-radius: 11px;
  background: var(--tint-5);
  font-weight: 400;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.s2026-main .zh-page .zh-field label.zh-file:hover,
.s2026-main .zh-page .zh-field label.zh-file:focus-within {
  border-color: var(--brand);
  background: var(--tint-2);
}
.s2026-main .zh-page .zh-field label.zh-file:focus-within {
  box-shadow: 0 0 0 3px rgba(30, 98, 141, .16);
}
.s2026-main .zh-page .zh-field label.zh-file.is-selected {
  border-style: solid;
  border-color: var(--brand);
  background: var(--tint-2);
}
.s2026-main .zh-page .zh-field label.zh-file.is-error {
  border-style: solid;
  border-color: #c9030c;
  background: #fdf2f2;
}
.s2026-main .zh-page .zh-field label.zh-file.is-drag {
  border-style: dashed;
  border-color: var(--brand);
  background: var(--tint-2);
  box-shadow: 0 0 0 3px rgba(30, 98, 141, .16);
}
.zh-file input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.zh-file__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--surface);
  color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--line);
}
.zh-file__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.zh-file__body { min-width: 0; }
.zh-file__body b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.zh-file__body span {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}
html[data-theme="dark"] .s2026-main .zh-page .zh-field label.zh-file.is-error {
  border-color: #ff8a8a;
  background: #2b1717;
}

/* ---------- предупреждение и согласие ---------- */
.s2026-main .zh-page .zh-notice {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid #f0cfcf;
  border-radius: 10px;
  background: #fdf2f2;
  color: #8f1d1d;
  font-size: 13.5px;
  line-height: 1.5;
}
.s2026-main .zh-page .zh-notice b { color: #8f1d1d; }
html[data-theme="dark"] .s2026-main .zh-page .zh-notice {
  border-color: #5a2a2a;
  background: #2b1717;
  color: #ffb4b4;
}
html[data-theme="dark"] .s2026-main .zh-page .zh-notice b { color: #ffb4b4; }

.zh-consent {
  margin: 4px 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--tint-5);
}
.s2026-main .zh-page .zh-consent label {
  display: block;
  margin: 0;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
  cursor: pointer;
}
.s2026-main .zh-page .zh-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0 6px 0 0;
  vertical-align: -3px;
  accent-color: var(--brand);
  cursor: pointer;
}
.s2026-main .zh-page .zh-consent a { color: var(--brand) !important; }

/* ---------- кнопка ---------- */
.s2026-main .zh-page .zh-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 50px;
  padding: 12px 20px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: #1e628d !important;
  background-image: none !important;
  color: #ffffff !important;
  font-family: var(--font) !important;
  font-size: 15px !important;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(30, 98, 141, .22);
  transition: background .15s ease;
}
.s2026-main .zh-page .zh-submit::after { content: "\2192"; font-size: 17px; line-height: 1; }
.s2026-main .zh-page .zh-submit:hover { background: #154a6b !important; }
.s2026-main .zh-page .zh-submit-note {
  margin: 9px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}

/* ---------- сайдбар ---------- */
.zh-side { display: grid; gap: 14px; }
.zh-side__card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.s2026-main .zh-page .zh-side__card h2 {
  margin: 0 0 10px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--heading);
}
.zh-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: zh-step;
  display: grid;
  gap: 10px;
}
.zh-steps li {
  position: relative;
  padding-left: 34px;
  counter-increment: zh-step;
}
.zh-steps li::before {
  content: counter(zh-step);
  position: absolute;
  left: 0;
  top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--tint-3);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}
.zh-steps b { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); }
.zh-steps span { display: block; margin-top: 1px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }

.s2026-main .zh-page .zh-tips {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.s2026-main .zh-page .zh-tips li { margin-bottom: 6px; }
.s2026-main .zh-page .zh-tips li:last-child { margin-bottom: 0; }

/* ---------- тёмная тема: кнопки портала не перекрашивают наш submit ---------- */
html[data-theme="dark"] .s2026-main .zh-page .zh-submit {
  background: #1f5d85 !important;
  color: #ffffff !important;
}
html[data-theme="dark"] .s2026-main .zh-page .zh-submit:hover { background: #184a69 !important; }

/* ---------- адаптив ---------- */
@media (max-width: 980px) {
  .zh-layout { grid-template-columns: minmax(0, 1fr); }
  .zh-side { order: 2; }
}
@media (max-width: 560px) {
  .zh-form-card { padding: 16px; border-radius: 14px; }
  .zh-file__body span { white-space: normal; }
}

/* Баннер ошибки формы получения журнала */
.zh-error {
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid var(--red);
  border-radius: var(--r);
  background: rgba(201, 3, 12, .07);
  color: var(--red);
  font-size: 14px;
  line-height: 1.5;
}
