* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Inter, Helvetica, Arial, sans-serif;
  background: #f1f5f9;
  color: #0f172a;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow:
    0 10px 25px rgba(15, 23, 42, 0.08),
    0 4px 10px rgba(15, 23, 42, 0.04);
}

.title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
}

.subtitle {
  margin: 0 0 16px;
  font-size: 14px;
  color: #64748b;
}

.upload-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input[type="file"] {
  font-size: 14px;
}

.btn {
  height: 40px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.btn.primary {
  background: #2563eb;
  color: #ffffff;
}

.btn.success {
  background: #16a34a;
  color: #ffffff;
}

.upload-progress {
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.upload-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  transition: width 0.25s ease;
}

.upload-status {
  font-size: 14px;
  color: #334155;
}

/* ===== РЕЗУЛЬТАТ ===== */

.result-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.result-image {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 12px;
  background: #f8fafc;
}

.result-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.field.column {
  flex-direction: column;
  gap: 4px;
}

.label {
  color: #64748b;
}

.value {
  font-weight: 500;
  color: #0f172a;
  line-height: 1.4;
}
