/* Фото на документы. Спокойная утилитарная страница: человеку нужно быстро
   получить файл, а не любоваться версткой. */
:root {
  --ink: #14202b;
  --muted: #5b6b7a;
  --line: #dde5ec;
  --accent: #0f7a6c;
  --accent-dark: #0b5d53;
  --warn-bg: #fff6e6;
  --warn-line: #e8c886;
  --bg: #f6f8fa;
}

* { box-sizing: border-box; }

/* Атрибут hidden обязан побеждать любые display из правил ниже: без этого
   скрытый блок результата показывался пустой рамкой ещё до загрузки. */
[hidden] { display: none !important; }

body {
  margin: 0;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--accent-dark); }

.docs-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 20px; background: #fff; border-bottom: 1px solid var(--line);
}
.docs-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.docs-brand-mark {
  width: 38px; height: 38px; border-radius: 10px; background: var(--accent);
  color: #fff; display: grid; place-items: center; font-weight: 700; letter-spacing: .5px;
}
.docs-brand small { display: block; color: var(--muted); font-size: 13px; }
.docs-header nav { display: flex; gap: 18px; font-size: 15px; }
.docs-header nav a { text-decoration: none; }

main { max-width: 1120px; margin: 0 auto; padding: 28px 20px 60px; }

.docs-hero { display: grid; gap: 28px; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; }
@media (max-width: 900px) { .docs-hero { grid-template-columns: 1fr; } }

h1 { font-size: clamp(26px, 4vw, 38px); line-height: 1.2; margin: 6px 0 14px; }
.docs-kicker { color: var(--accent-dark); font-weight: 600; letter-spacing: .4px; margin: 0; text-transform: uppercase; font-size: 13px; }
.docs-lead { font-size: 17px; color: #2b3a47; margin: 0 0 14px; }

/* инструмент */
.docs-tool { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.docs-tool legend { font-weight: 600; padding: 0 0 8px; }
.docs-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.docs-type {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer; text-align: left; font: inherit; color: inherit;
  transition: border-color .18s, background .18s;
}
.docs-type:hover { border-color: #bcd2cd; }
.docs-type.is-active { border-color: var(--accent); background: #f2fbf9; }
.docs-type strong { font-size: 15px; }
.docs-type small { color: var(--muted); font-size: 13px; }

.docs-drop {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  border: 2px dashed #c3d3dd; border-radius: 14px; padding: 18px; background: #fbfdfe;
}
.docs-drop:hover { border-color: var(--accent); }
.docs-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.docs-drop .mark { width: 44px; height: 44px; border-radius: 12px; background: #e8f4f1; color: var(--accent-dark); display: grid; place-items: center; font-size: 26px; }
.docs-drop strong { display: block; }
.docs-drop small { color: var(--muted); }
.docs-hint { color: var(--muted); font-size: 14px; margin: 10px 2px 0; }

.docs-status { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #eef4f8; font-size: 15px; }
.docs-status.is-work { background: #eaf5f2; }
.docs-status.is-error { background: #fdeeee; }
.docs-status.is-ok { background: #eaf7ee; }

.docs-result { margin-top: 18px; display: grid; gap: 14px; }
.docs-result img { max-width: 100%; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.docs-result figure { margin: 0; }
.docs-result figcaption { color: var(--muted); font-size: 13px; margin-top: 6px; }

.docs-warnings { margin: 0; padding: 12px 16px 12px 32px; background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 12px; }
.docs-warnings li + li { margin-top: 8px; }

.docs-plans { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.docs-plans label {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff;
}
.docs-plans label:has(input:checked) { border-color: var(--accent); background: #f2fbf9; }
.docs-plans span { flex: 1; }
.docs-plans strong { display: block; }
.docs-plans small { color: var(--muted); font-size: 13px; }
.docs-plans b { font-size: 17px; }

.docs-email { display: block; margin-top: 12px; }
.docs-email span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.docs-email input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; }

.docs-paybutton {
  margin-top: 12px; width: 100%; padding: 15px 18px; border: 0; border-radius: 12px;
  background: var(--accent); color: #fff; font: 600 17px/1.2 inherit; cursor: pointer;
}
.docs-paybutton:hover { background: var(--accent-dark); }
.docs-paybutton:disabled { opacity: .6; cursor: default; }
.docs-download { display: inline-block; margin-top: 12px; font-weight: 600; }

/* правая колонка и текстовые блоки */
.docs-side { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.docs-side h2 { font-size: 19px; margin: 0 0 10px; }
.docs-side ul { margin: 0; padding-left: 20px; }
.docs-side li + li { margin-top: 8px; }

section.docs-block { margin-top: 42px; }
section.docs-block h2 { font-size: clamp(21px, 3vw, 27px); margin: 0 0 14px; }
.docs-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.docs-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.docs-card h3 { margin: 0 0 8px; font-size: 17px; }
.docs-card p { margin: 0; color: #3a4a58; }

.docs-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.docs-table th, .docs-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.docs-table th { background: #f0f5f8; font-weight: 600; }
.docs-table tr:last-child td { border-bottom: 0; }
.docs-scroll { overflow-x: auto; }

details.docs-faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
details.docs-faq + details.docs-faq { margin-top: 10px; }
details.docs-faq summary { cursor: pointer; font-weight: 600; }
details.docs-faq p { margin: 10px 0 0; color: #3a4a58; }

.docs-disclaimer { margin-top: 32px; padding: 16px 18px; border-radius: 12px; background: #eef2f5; color: #3a4a58; font-size: 15px; }

footer.docs-footer { border-top: 1px solid var(--line); background: #fff; padding: 22px 20px; color: var(--muted); font-size: 14px; }
footer.docs-footer a { margin-right: 16px; }
