:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --text: #162033;
  --muted: #64748b;
  --line: #d9e2ef;
  --primary: #1867ff;
  --primary-dark: #0d47c9;
  --success: #0f8a4b;
  --danger: #c73535;
  --shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(24, 103, 255, 0.18), transparent 34rem),
    linear-gradient(135deg, #f7fbff 0%, var(--bg) 100%);
  color: var(--text);
}

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

.hero-card {
  background: linear-gradient(135deg, #0f348a, #1867ff);
  color: #fff;
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero-card:after {
  content: '';
  position: absolute;
  right: -110px;
  top: -110px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

h1 {
  margin: 18px 0 10px;
  max-width: 760px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.03;
}

.hero-card p {
  margin: 0;
  max-width: 720px;
  color: rgba(255,255,255,0.88);
  font-size: 18px;
  line-height: 1.5;
}

.panel {
  margin-top: 24px;
  background: var(--panel);
  border: 1px solid rgba(217, 226, 239, 0.8);
  border-radius: 28px;
  padding: 26px;
  box-shadow: var(--shadow);
}

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

.upload-box {
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 2px dashed #a9bad4;
  border-radius: 22px;
  background: #f8fbff;
  cursor: pointer;
  text-align: center;
  transition: 160ms ease;
}

.upload-box:hover { border-color: var(--primary); transform: translateY(-1px); }
.upload-box input { display: none; }
.upload-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #e7efff;
  color: var(--primary);
  font-weight: 800;
}

.upload-box small, label, .info-grid p { color: var(--muted); }

.file-list {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  background: #fbfdff;
}

.file-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-bottom: 1px solid #edf2f8;
  font-size: 14px;
}
.file-row:last-child { border-bottom: 0; }
.file-row span:last-child { color: var(--muted); white-space: nowrap; }

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

label { display: grid; gap: 7px; font-weight: 700; }
input[type="text"], select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--text);
  background: #fff;
  outline: none;
  font-size: 15px;
}

input[type="text"]:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(24,103,255,.12); }

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}
.checkbox-line input { width: 18px; height: 18px; }

button {
  height: 54px;
  border: 0;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: 160ms ease;
}
button:hover { background: var(--primary-dark); transform: translateY(-1px); }
button:disabled { opacity: .65; cursor: not-allowed; transform: none; }

.status, .result {
  margin-top: 18px;
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 700;
}
.status { background: #fff7e6; color: #805300; }
.status.error { background: #fff0f0; color: var(--danger); }
.result { background: #edfdf5; color: var(--success); display: grid; gap: 12px; }
.result a {
  display: inline-flex;
  width: max-content;
  text-decoration: none;
  background: var(--success);
  color: #fff;
  padding: 11px 14px;
  border-radius: 12px;
}

.info-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.info-grid article {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(217, 226, 239, .8);
  border-radius: 22px;
  padding: 20px;
}
.info-grid h2 { margin: 0 0 8px; font-size: 18px; }
.info-grid p { margin: 0; line-height: 1.5; }

.hidden { display: none !important; }

@media (max-width: 760px) {
  .app-shell { width: min(100% - 20px, 1120px); padding: 18px 0; }
  .hero-card, .panel { border-radius: 20px; padding: 22px; }
  .grid, .info-grid { grid-template-columns: 1fr; }
  .hero-card p { font-size: 16px; }
}
