:root {
  --bg: #f4f8ff;
  --surface: #ffffff;
  --border: #d5e1f2;
  --text: #1f2937;
  --muted: #64748b;
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --accent: #0f766e;
}

* {
  box-sizing: border-box;
}

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

.site-header {
  background: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
  color: white;
  padding: 2rem 1.5rem;
}

.brand h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
}

.brand p {
  margin: 0.75rem 0 0;
  max-width: 760px;
  opacity: 0.9;
}

.main-nav {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.main-nav button {
  border: none;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: white;
  cursor: pointer;
  transition: background 0.2s ease;
}

.main-nav button:hover,
.main-nav button.active {
  background: rgba(255,255,255,0.32);
}

.app-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
}

.section-header p {
  margin: 0;
  max-width: 650px;
  color: var(--muted);
}

.button-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.button-primary,
.button-secondary {
  border: none;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.button-primary {
  background: var(--brand);
  color: white;
}

.button-primary:hover {
  background: var(--brand-hover);
}

.button-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.25rem;
  margin-top: 1.25rem;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.05);
}

.card h3 {
  margin-top: 0;
}

.question-block {
  margin-top: 1.5rem;
  padding: 1rem 1.05rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.question-block + .question-block {
  margin-top: 1rem;
}

.question-block p {
  margin: 0 0 0.85rem;
}

.options {
  display: grid;
  gap: 0.5rem;
}

.options label {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid #d1d5db;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.options input[type="radio"] {
  margin-right: 0.75rem;
}

.options label:hover {
  background: #eff6ff;
}

.question-image {
  width: 100%;
  max-width: 100%;
  margin-top: 1rem;
  border-radius: 16px;
  border: 1px solid #d1d5db;
}

textarea {
  width: 100%;
  min-height: 110px;
  border-radius: 14px;
  border: 1px solid #d1d5db;
  padding: 1rem;
  resize: vertical;
  font-family: inherit;
}

.review-block {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border-radius: 16px;
  background: #f8fafc;
}

.review-block h4 {
  margin-top: 0;
}

.summary {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.summary-item {
  border: 1px solid #d1d5db;
  border-radius: 16px;
  padding: 1rem;
}

.summary-item strong {
  display: block;
  margin-bottom: 0.5rem;
}

footer.site-footer {
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 700px) {
  .main-nav {
    flex-direction: column;
  }
}
