/* Стили страницы пакета документов. Дополняют styles.css, не переопределяя его. */

.pk {
  padding: 32px 0 64px;
}

.pk-head {
  margin-bottom: 24px;
}

.pk-head h1 {
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 12px;
}

/* Призыв перед формой: что подтянется из реестра и что вводить вручную. */
.pk-callout {
  margin: 0 0 22px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid #1f6feb;
  border-radius: var(--radius);
  background: var(--card);
}

.pk-callout b {
  display: block;
  font-size: 17px;
  margin-bottom: 6px;
}

.pk-callout p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: #5b6779;
}

.pk-status {
  margin: 16px 0;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 15px;
}

.pk-status--error {
  border-color: #f3c9c9;
  background: var(--fail-soft);
  color: var(--fail);
}

.pk-status--ok {
  border-color: #bfe6cd;
  background: var(--ok-soft);
  color: var(--ok);
}

.pk-form {
  display: grid;
  gap: 20px;
}

.pk-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.pk-card h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.pk-card h3 {
  margin: 22px 0 10px;
  font-size: 16px;
}

.pk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin-top: 14px;
}

.pk-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.pk-field input,
.pk-field select,
.pk-field textarea {
  font: inherit;
  color: var(--text);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--c-white);
  width: 100%;
}

.pk-field input:focus,
.pk-field select:focus,
.pk-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.pk-field--wide {
  grid-column: 1 / -1;
}

.pk-field--narrow {
  max-width: 260px;
}

.pk-inline {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.pk-inline input {
  flex: 1 1 auto;
}

.pk-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--slate-700, #334155);
  font-size: 14px;
}

.pk-note--warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.pk-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px 18px;
  margin-top: 8px;
}

.pk-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--text);
}

.pk-check input {
  margin-top: 3px;
}

.pk-hint {
  color: var(--muted);
  font-size: 13.5px;
  margin: 6px 0 0;
}

.pk-card--action {
  position: sticky;
  bottom: 0;
}

.pk-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.pk-price {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
}

.pk-actions {
  display: flex;
  gap: 10px;
}

.pk-btn {
  font: inherit;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--c-white);
  color: var(--text);
  cursor: pointer;
}

.pk-btn:hover {
  border-color: var(--c-slate-300);
}

.pk-btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pk-btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.pk-btn--ghost {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--accent-dark);
  white-space: nowrap;
}

.pk-btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

.pk-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--muted);
}

.pk-consent input {
  margin-top: 3px;
}

.pk-result h2 {
  margin-top: 0;
}

.pk-files {
  list-style: none;
  padding: 0;
  margin: 14px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 6px 18px;
}

.pk-files li {
  font-size: 14px;
}

.pk-files a {
  text-decoration: none;
  border-bottom: 1px dashed var(--c-slate-300);
}

.pk-zip {
  display: inline-block;
  margin-top: 6px;
}

.pk-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 16px 0 20px;
}

.pk-list {
  margin: 8px 0 0;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--text);
}

.pk-list li {
  margin: 5px 0;
}

@media (max-width: 720px) {
  .pk-cols {
    grid-template-columns: 1fr;
  }
}

.pk-sample-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px 22px;
  margin-top: 10px;
}

.pk-sample-list li {
  border-left: 2px solid var(--line);
  padding-left: 12px;
  font-size: 14.5px;
}

.pk-sample-list a {
  text-decoration: none;
  border-bottom: 1px dashed var(--c-slate-300);
}

@media (max-width: 720px) {
  .pk-sample-list {
    grid-template-columns: 1fr;
  }
}

.pk-faq details {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.pk-faq details:first-of-type {
  border-top: 0;
}

.pk-faq summary {
  cursor: pointer;
  font-weight: 600;
}

.pk-faq p {
  color: var(--muted);
  margin: 8px 0 0;
}

/* Образец: состав пакета + фрагмент документа по клику.
   Полные документы и архив наружу не отдаются (правка 01.10.2026). */
.pk-sample-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.pk-sample-top {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pk-sample-name {
  font-weight: 600;
}

.pk-sample-formats {
  color: var(--muted);
  font-size: 12.5px;
}

.pk-preview {
  width: 100%;
  margin-top: 4px;
}

.pk-preview-note {
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--warn-soft);
  color: var(--slate-700, #334155);
  font-size: 13px;
}

.pk-preview-text {
  margin: 0;
  max-height: 340px;
  overflow: auto;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfe;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 720px) {
  .pk-head h1 {
    font-size: 26px;
  }
  .pk-grid {
    grid-template-columns: 1fr;
  }
  .pk-card {
    padding: 18px 16px;
  }
  .pk-card--action {
    position: static;
  }
  .pk-actions,
  .pk-summary {
    width: 100%;
  }
  .pk-btn {
    width: 100%;
  }
}
