:root{
  --bg: #0f1216;
  --card: #f7f9fb;
  --card2: #ffffff;
  --text: #0f141a;
  --muted: #57616d;
  --border: rgba(15, 20, 26, .14);
  --shadow: 0 12px 34px rgba(0,0,0,.14);
  --accent: #18b3b3;
  --accent2: #0b7f7f;
  --danger: #d63b3b;
  --focus: rgba(24, 179, 179, .28);
  --radius: 18px;
  --radius2: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: var(--font);
  background: #24a1a4;
  color: #ffffff;
}

.page{
  max-width: 860px;
  margin: 0 auto;
  padding: 30px 16px 60px;
}

.header{
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.brandMark{
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(24,179,179,.95), rgba(11,127,127,.95));
  box-shadow: 0 12px 28px rgba(24,179,179,.20);
}

.title{
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
}

.subtitle{
  margin: 8px 0 0;
  color: rgba(231, 237, 244, .80);
  font-size: 15px;
  line-height: 1.35;
}

.form{
  display: grid;
  gap: 16px;
}

.card{
  background: linear-gradient(180deg, var(--card2), var(--card));
  color: var(--text);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.card__head{
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.card__title{
  margin: 0;
  font-size: 22px;  
  text-transform: uppercase;
  font-weight: 900;
  color: #3bbdc1;
}

.card__hint{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.grid{
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

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

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

@media (max-width: 900px){
  .grid--3{ grid-template-columns: 1fr; }
}

@media (max-width: 700px){
  .grid--2{ grid-template-columns: 1fr; }
}

.field{
  display: grid;
  gap: 8px;
  padding:10px;
}

.label{
  font-size: 18px;
  font-weight: 800;
  color: #10161d;
}

.label--small{
  font-size: 14px;
  font-weight: 700;
  color: #33414f;
}

.req{
  color: var(--danger);
  font-weight: 900;
  margin-left: 6px;
}

.input, .select, .textarea{
  width: 100%;
  padding: 14px 14px;
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 16px;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease, transform .06s ease;
}

.input--compact{
  max-width: 320px;
  padding: 10px 12px;
  font-size: 14px;
}

.textarea{
  resize: vertical;
  min-height: 150px;
}

.input:focus, .select:focus, .textarea:focus{
  border-color: rgba(24,179,179,.58);
  box-shadow: 0 0 0 5px var(--focus);
}

.field__meta{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.field__meta--tight{
  margin-top: -2px;
}

.help{
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
  flex: 1 1 520px;
}

.error{
  font-size: 13px;
  color: var(--danger);
  min-height: 16px;
  font-weight: 700;
}

.inlineError{
  font-size: 13px;
  color: var(--danger);
  font-weight: 900;
  min-height: 16px;
}

.filePreview{
  margin-top: 10px;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  border: 1px dashed rgba(15, 20, 26, .20);
  background: rgba(255,255,255,.88);
}

.filePreview__img{
  width: 100px;
  height: 76px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(15, 20, 26, .12);
  background: #f2f4f7;
}

.filePreview__meta{
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.filePreview__name{
  font-size: 14px;
  color: #1a232d;
  word-break: break-word;
}

.designUploadItem{
  display: grid;
  gap: 6px;
}

.sectionHeader{
  display: block;
  margin-top: 6px;
}

.sectionHeader--inner{
  margin-top: 0;
  margin-bottom: 4px;
}

.sectionHeader__title{
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: #3bbdc1;
}

.sectionDivider{
  height: 1px;
  margin: 8px 0 2px;
  background: linear-gradient(90deg, rgba(15,20,26,.20), rgba(15,20,26,.08));
}

.checkbox{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #10161d;
  cursor: pointer;
}

.checkbox input{
  width: 18px;
  height: 18px;
  accent-color: var(--accent2);
}

.field--checkbox{
  margin-top: -2px;
}

.rearBlock{
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(24,179,179,.24);
  border-radius: 16px;
  background: rgba(24,179,179,.06);
}

.field--compactAction{
  padding-top: 4px;
}

.actions{
  margin-top: 16px;
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}

.actions--between{
  justify-content: space-between;
  align-items: center;
}

.btn{
  border: 0;
  border-radius: 6px;
  padding: 14px 50px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .06s ease, opacity .15s ease, box-shadow .15s ease, background .15s ease;
  user-select: none;
}

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

.btn--primary{
  background: linear-gradient(135deg, #0f141a, #1b242f);
  color: #fff;
  box-shadow: 0 14px 26px rgba(0,0,0,.22);
}

.btn--primary:disabled{
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn--accent{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(24,179,179,.20);
}

.btn--danger{
  background: linear-gradient(135deg, #ff6b6b, #d63b3b);
  color: #2a0a0a;
}

.btn--ghost{
  background: transparent;
  color: #0b5c5c;
  border: 1px solid rgba(11,92,92,.28);
  padding: 12px 14px;
  font-weight: 900;
  min-width: 180px;
}

.btn--small{
  min-width: auto;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 10px;
}

.pill{
  font-size: 13px;
  color: #2b3a48;
  background: rgba(24,179,179,.10);
  border: 1px solid rgba(24,179,179,.26);
  padding: 10px 12px;
  border-radius: 999px;
  line-height: 1.2;
}

.extra{
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.extra__head{ margin-bottom: 12px; }

.extra__title{
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

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

.footer{
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 6px;
  flex-wrap: wrap;
}

.status{
  color: rgba(231, 237, 244, .84);
  font-size: 14px;
  line-height: 1.35;
}

.field--errorHighlight{
  background: #ff00000d;
  border-radius: var(--radius2);
  transition: background .2s ease;
}

@media (max-width: 540px){
  .footer__right{ width: 100%; }
  .btn--primary{ width: 100%; }
  .input--compact{ max-width: 100%; }
  .filePreview{ grid-template-columns: 1fr; }
}

.select{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 56px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2310161d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px 16px;
}

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

.filePreview__img:not([src]) {
  display: none;
}

.filePreview.is-nopreview {
  grid-template-columns: 1fr;
}

.filePreview.is-nopreview::before {
  content: "Превью недоступно (файл прикреплён)";
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #2b3a48;
  background: rgba(24,179,179,.10);
  border: 1px solid rgba(24,179,179,.25);
  padding: 10px 12px;
  border-radius: 14px;
}

input, select, textarea, button {
  font-family: var(--font) !important;
  font-size: 16px;
  line-height: 1.25;
}

input[type="date"]{
  font-family: var(--font) !important;
  font-size: 16px;
}

.textarea{
  font-family: var(--font) !important;
  font-size: 16px;
  line-height: 1.4;
}

[hidden] {
  display: none !important;
}


/* ===== Loader & download panel ===== */
.loader,
.downloadPanel{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 18, 22, .55);
  backdrop-filter: blur(6px);
  z-index: 999;
}

.loader__box,
.downloadPanel__box{
  width: min(520px, 100%);
  background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
  color: var(--text);
  display: grid;
  gap: 12px;
  text-align: center;
  position: relative;
}

.downloadPanel__close{
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0,0,0,.08);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  display: grid;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.downloadPanel__close:hover{
  background: rgba(0,0,0,.14);
}

.downloadPanel__title{
  font-size: 18px;
  font-weight: 900;
  color: #10161d;
}

.loader__text{
  font-size: 14px;
  font-weight: 800;
  color: #33414f;
}

.spinner{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid rgba(24,179,179,.22);
  border-top-color: rgba(24,179,179,.95);
  margin: 0 auto;
  animation: spin 0.9s linear infinite;
}

@keyframes spin{
  to { transform: rotate(360deg); }
}

.footerCheck{
  margin-bottom: 10px;
}


#showMissingFieldsLink{color:#0f141a}

.missing-fields-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 395px;
    height: 42px;
    padding: 0 24px;
    background: #ffffff;
    color: #2b2b2b;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    font-family: Roboto, Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    box-sizing: border-box;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.missing-fields-button:hover {
    background: #f5f5f5;
}

.missing-fields-button:active {
    background: #ececec;
}

.missing-fields-button:focus {
    outline: none;
}

.form-actions {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}