:root {
  --bg: #ffffff;
  --text: #18212f;
  --muted: #607086;
  --line: #d9e0ea;
  --soft: #f4f7fb;
  --accent: #166b5b;
  --accent-strong: #105245;
  --danger: #a33a2f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 44px 0 32px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 40px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 700;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 24px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin: 12px 0 8px;
  font-size: 18px;
}

.lead {
  max-width: 720px;
  margin: 20px 0 12px;
  font-size: 21px;
  color: #314256;
}

.search-copy,
.note,
.paid-note,
.file-name,
.status,
.metric small {
  color: var(--muted);
}

.privacy-note {
  margin: 14px 0 4px;
  color: #314256;
  font-weight: 700;
}

.privacy-note + .note {
  margin-top: 0;
}

.upload {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.dropzone {
  display: grid;
  min-height: 170px;
  place-items: center;
  gap: 8px;
  padding: 24px;
  border: 2px dashed #9aa9ba;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
}

.dropzone.is-dragover {
  border-color: var(--accent);
  background: #edf7f4;
}

.drop-title {
  display: block;
  font-size: 20px;
  font-weight: 700;
}

.drop-subtitle {
  display: block;
  color: var(--muted);
}

input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
}

.primary {
  width: 100%;
  margin-top: 16px;
  background: var(--accent);
  color: #fff;
}

.primary:hover,
.primary:focus {
  background: var(--accent-strong);
}

.secondary {
  margin-top: 20px;
  padding: 0 18px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #eef2f6;
}

.section {
  padding: 28px 0;
}

.result {
  border-bottom: 1px solid var(--line);
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 24px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-head h2,
.section-head p {
  margin: 0;
}

.example {
  border-bottom: 1px solid var(--line);
}

.example-summary {
  margin-top: 0;
}

.metric {
  min-height: 126px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.metric-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.metric strong {
  display: block;
  font-size: 32px;
  line-height: 1.15;
}

.ok-message {
  padding: 16px 18px;
  border: 1px solid #b8ddce;
  border-radius: 8px;
  color: #154e40;
  background: #eef9f4;
  font-weight: 700;
}

.problems {
  display: grid;
  gap: 14px;
}

.problem {
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--danger);
  border-radius: 8px;
  background: #fff;
}

.problem-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: baseline;
  margin-bottom: 12px;
}

.problem-date {
  color: var(--muted);
  font-weight: 700;
}

.problem-amount {
  font-size: 24px;
  font-weight: 800;
}

.field {
  margin: 8px 0 0;
}

.field b {
  display: block;
}

.steps {
  display: grid;
  gap: 14px;
}

.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 36px;
}

.step-number {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.find-list {
  display: grid;
  gap: 10px;
  padding-left: 22px;
  font-size: 18px;
}

.security {
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.security-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 0;
  padding-left: 22px;
  font-size: 18px;
}

.security-list li:first-child {
  font-weight: 800;
  color: var(--accent-strong);
}

.footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer a,
.article a {
  color: var(--accent-strong);
}

.article-hero {
  padding-bottom: 40px;
}

.article-date {
  margin: 16px 0 0;
  color: var(--muted);
}

.article-wrap {
  max-width: 820px;
}

.article p,
.article li {
  font-size: 18px;
}

.article p {
  margin: 0 0 16px;
}

.article h2 {
  margin-top: 36px;
}

.article b {
  color: #243245;
}

.status.is-error {
  color: var(--danger);
  font-weight: 700;
}

.status.is-ok {
  color: var(--accent);
  font-weight: 700;
}

.error-help {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #e0b8b3;
  border-radius: 8px;
  background: #fff6f4;
}

.error-help p {
  margin: 0 0 12px;
  color: var(--danger);
  font-weight: 700;
}

.mail-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 780px) {
  .hero {
    padding-top: 30px;
  }

  .hero-grid,
  .summary,
  .steps,
  .info-grid,
  .security-list {
    grid-template-columns: 1fr;
  }

  .upload {
    padding: 16px;
  }

  .metric {
    min-height: 108px;
  }
}
