:root {
  --ink: #1a3a52;
  --ink-soft: #4a6478;
  --accent: #1a3a52;
  --border: #e2e5e9;
  --bg: #f5f6f8;
  --muted: #8a94a1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: white;
  min-height: 100vh;
  color: #222;
}

.container {
  width: 100%;
  background: white;
}

.content {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 0;
}

.form-section {
  margin: 24px;
  padding: 32px 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

.form-section h2 {
  color: var(--ink);
  margin-bottom: 22px;
  font-size: 1.1em;
  font-weight: 600;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
  background: #fff;
}

.form-group input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(26, 58, 82, 0.1);
}

.btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  font-size: 0.9em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--ink);
  color: white;
}

.btn-primary:hover {
  background: #12293b;
}

.btn-secondary {
  background: white;
  color: var(--ink);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg);
}

.preview-section {
  display: flex;
  flex-direction: column;
  padding: 24px 32px;
}

.preview-section h2 {
  color: var(--ink);
  margin-bottom: 22px;
  font-size: 1.1em;
  font-weight: 600;
}

.preview-container {
  background-color: #fafbfc;
  background-image: radial-gradient(circle, #d7dce2 1px, transparent 1px);
  background-size: 18px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

#preview {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.12);
}

.download-group {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.info-box {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 14px 16px;
  border-radius: 8px;
  margin-top: 26px;
  font-size: 0.85em;
  color: var(--ink-soft);
}

.info-box strong {
  color: var(--ink);
}

.how-to {
  grid-column: 1 / -1;
  margin: 12px 24px 24px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.how-to h2 {
  color: var(--ink);
  margin-bottom: 6px;
  font-size: 1.1em;
  font-weight: 600;
}

.how-to > p {
  color: var(--ink-soft);
  font-size: 0.9em;
  margin-bottom: 20px;
}

.how-to-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.how-to-step {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}

.how-to-step h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9em;
  color: var(--ink);
  margin-bottom: 10px;
}

.how-to-step h3 .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 0.8em;
  flex-shrink: 0;
}

.how-to-step ol {
  padding-left: 18px;
  font-size: 0.85em;
  color: var(--ink-soft);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .content {
    grid-template-columns: 1fr;
  }
}
