/* =========================================================
   Заявка на публикацию материала — оформление формы
   Подключается только в forma_zayavki.php
   ========================================================= */

.s2026-main .fz-page { max-width: 1064px; margin: 0 auto; }

/* ---------- шапка ---------- */
.s2026-main .fz-head { margin-bottom: clamp(20px, 3vw, 30px); }
.s2026-main .fz-head__crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: var(--muted);
}
.s2026-main .fz-head__crumbs a { color: var(--brand); text-decoration: none; }
.s2026-main .fz-head__crumbs a:hover { text-decoration: underline; }
.s2026-main .fz-head__crumbs span { opacity: .5; }

.s2026-main .fz-head__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);
}
.s2026-main .fz-head__kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--yellow);
  border-radius: 2px;
}
.s2026-main .fz-head h1 {
  margin: 10px 0 10px;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--heading);
}
.s2026-main .fz-head__lead {
  max-width: 66ch;
  margin: 0;
  font-size: clamp(14.5px, 1.4vw, 16px);
  line-height: 1.6;
  color: var(--muted);
}

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

/* ---------- предпросмотр ---------- */
.fz-preview {
  position: sticky;
  top: 18px;
  grid-column: 1;
  grid-row: 1;
}
.fz-preview__card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.fz-preview__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-2);
  background: var(--tint-5);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.fz-preview__type {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--tint-3);
  color: var(--brand);
  letter-spacing: .04em;
}
.fz-preview__frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 12px;
  overflow: hidden;
}
.fz-preview__frame .diplom_shablon {
  float: none;
  transform-origin: top left;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(23, 58, 82, .18);
}
.fz-preview__hint {
  margin: 0;
  padding: 0 16px 16px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

/* ---------- карточка формы ---------- */
.fz-form-card {
  grid-column: 2;
  grid-row: 1;
  padding: clamp(18px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.fz-form-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
}
.fz-form-card__top b {
  font-size: 15px;
  font-weight: 600;
  color: var(--heading);
}
.fz-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 .fz-page fieldset { margin: 0 0 20px; padding: 0; border: 0; }
.s2026-main .fz-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);
}

.fz-field { margin-bottom: 14px; }
.fz-field:last-child { margin-bottom: 0; }
.s2026-main .fz-page .fz-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}
.fz-req { color: #c9030c; font-weight: 600; }
html[data-theme="dark"] .s2026-main .fz-page .fz-req { color: #ff8a8a; }
.s2026-main .fz-page .fz-field__hint {
  display: block;
  margin: -2px 0 7px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}
.s2026-main .fz-page .fz-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 .fz-page .fz-input::placeholder { color: var(--muted); }
.s2026-main .fz-page .fz-input:hover { border-color: #b9d3e4; }
.s2026-main .fz-page .fz-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(30, 98, 141, .16);
}

/* выпадающие списки */
.s2026-main .fz-page select.fz-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%235b7285' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 13px 8px;
  cursor: pointer;
}
html[data-theme="dark"] .s2026-main .fz-page select.fz-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23a9bdcc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

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

/* выбор документа */
.fz-docs { display: grid; gap: 9px; }
.fz-doc {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: start;
  gap: 11px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.fz-doc:hover { border-color: #b9d3e4; background: var(--tint-5); }
.fz-doc input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.fz-doc__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 2px solid #c2d4e0;
  border-radius: 50%;
  background: var(--surface);
  transition: border-color .15s ease;
}
.fz-doc__mark::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  transition: background .15s ease;
}
.fz-doc input:checked ~ .fz-doc__mark { border-color: var(--brand); }
.fz-doc input:checked ~ .fz-doc__mark::after { background: var(--brand-bg); }
.fz-doc input:focus-visible ~ .fz-doc__mark { box-shadow: 0 0 0 3px rgba(30, 98, 141, .2); }
.fz-doc:has(input:checked) {
  border-color: var(--brand);
  background: var(--tint-2);
  box-shadow: 0 0 0 1px var(--brand) inset;
}
.fz-doc__body { min-width: 0; }
.fz-doc__body b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}
.fz-doc__body span {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}
.fz-doc__price {
  align-self: center;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--heading);
  white-space: nowrap;
}

/* согласие */
.fz-consent {
  margin: 4px 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--tint-5);
}
.s2026-main .fz-page .fz-consent label {
  display: block;
  margin: 0;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
  cursor: pointer;
}
.s2026-main .fz-page .fz-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0 6px 0 0;
  vertical-align: -3px;
  accent-color: var(--brand);
  cursor: pointer;
}
/* chekbox.php печатает ссылки с инлайновым color:#777 — перебиваем в обеих темах */
.s2026-main .fz-page .fz-consent a { color: var(--brand) !important; }

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

/* скрытое поле-ловушка */
.dprealiti { display: none !important; }

/* ---------- адаптив ---------- */
@media (max-width: 980px) {
  .fz-layout { grid-template-columns: minmax(0, 1fr); }
  .fz-form-card { grid-column: 1; grid-row: 1; }
  .fz-preview { position: static; grid-column: 1; grid-row: 2; max-width: 440px; margin: 0 auto; width: 100%; }
}

@media (max-width: 560px) {
  .fz-doc { grid-template-columns: 20px minmax(0, 1fr); }
  .fz-doc__price { grid-column: 2; align-self: start; margin-top: 4px; font-size: 13.5px; }
  .fz-form-card { padding: 16px; border-radius: 14px; }
}

/* глобальное правило site-2026.css для button[type=submit] идёт с !important */
.s2026-main .fz-page .fz-form-card form .fz-submit {
  min-height: 50px;
  padding: 12px 20px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: #1e628d !important;
  background-image: none !important;
  font-family: var(--font) !important;
  font-size: 15px !important;
  color: #fff !important;
}
.s2026-main .fz-page .fz-form-card form .fz-submit:hover {
  background: #154a6b !important;
  background-image: none !important;
}

/* box-sizing: border-box съедал padding-left у подписей свидетельства — текст уезжал влево */
.s2026-main .fz-page .fz-preview .diplom_shablon > div {
  box-sizing: content-box;
}

/* ---------- загрузка файла материала ---------- */
/* селектор намеренно сильнее общего правила .s2026-main .fz-page .fz-field label
   (оно ставит display:block и margin-bottom), иначе иконка уезжает на отдельную строку */
.s2026-main .fz-page .fz-field label.fz-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);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.s2026-main .fz-page .fz-field label.fz-file:hover,
.s2026-main .fz-page .fz-field label.fz-file:focus-within {
  border-color: var(--brand);
  background: var(--tint-2);
}
.s2026-main .fz-page .fz-field label.fz-file:focus-within {
  box-shadow: 0 0 0 3px rgba(30, 98, 141, .16);
}
.s2026-main .fz-page .fz-field label.fz-file.is-selected {
  border-style: solid;
  border-color: var(--brand);
  background: var(--tint-2);
}
.s2026-main .fz-page .fz-field label.fz-file.is-error {
  border-style: solid;
  border-color: #c9030c;
  background: #fdf2f2;
}
.s2026-main .fz-page .fz-field label.fz-file.is-error .fz-file__icon { color: #c9030c; }
html[data-theme="dark"] .s2026-main .fz-page .fz-field label.fz-file.is-error {
  border-color: #ff8a8a;
  background: #2b1717;
}
html[data-theme="dark"] .s2026-main .fz-page .fz-field label.fz-file.is-error .fz-file__icon { color: #ff8a8a; }

.fz-file input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.fz-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);
}
.fz-file__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fz-file__body { min-width: 0; }
.fz-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;
}
.fz-file__body span {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* сообщение о ссылках в материале — отступ от загрузчика */
.fz-field + .fz-notice { margin-top: 12px; }

@media (max-width: 560px) {
  .s2026-main .fz-page .fz-field label.fz-file { padding: 12px; gap: 10px; }
}

/* ---------- требования к фотографиям детей ---------- */
.fz-note {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 10px;
  background: var(--tint-5);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}
.fz-note > b {
  display: block;
  margin-bottom: 2px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--heading);
}
.s2026-main .fz-page .fz-note p {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}
.s2026-main .fz-page .fz-note ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.55;
}
.s2026-main .fz-page .fz-note li { margin-bottom: 6px; line-height: 1.55; }
.s2026-main .fz-page .fz-note li:last-child { margin-bottom: 0; }

@media (max-width: 560px) {
  .fz-file__body span { white-space: normal; }
}

.s2026-main .fz-page .fz-note p:last-child { margin-bottom: 0; }

/* ---------- перетаскивание файла на загрузчик ---------- */
.s2026-main .fz-page .fz-field label.fz-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);
}

