* {
  box-sizing: border-box;
}

:root {
  --bg: #f4f7f8;
  --card: #ffffff;
  --text: #16313c;
  --muted: #5a737c;
  --line: #d7e1e4;
  --primary: #1f7a79;
  --primary-dark: #145d5d;
  --accent: #2c6fb2;
  --shadow: 0 14px 40px rgba(20, 52, 62, 0.08);
  --radius: 22px;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f7fafb 0%, #eef4f5 100%);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
}

.page {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 64px;
}

.hero,
.screen {
  background: linear-gradient(135deg, #ffffff 0%, #f2f8f8 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.hero {
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  font-size: 0.78rem;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
}

.intro,
.panel-intro,
.choice-card p,
.result-card p,
.field-help {
  color: var(--muted);
  line-height: 1.6;
}

.back-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.hidden {
  display: none !important;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.choice-card,
.result-card,
.step-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.choice-card h2 {
  font-size: 1.22rem;
  min-height: 62px;
}

.choice-number {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(44, 111, 178, 0.09);
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 16px;
}

.primary-btn,
.secondary-btn,
.option-btn {
  border: none;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  box-shadow: 0 10px 22px rgba(31, 122, 121, 0.22);
}

.secondary-btn {
  background: white;
  color: var(--text);
  border: 1px solid var(--line);
}

.option-btn {
  background: white;
  color: var(--text);
  border: 1px solid var(--line);
  text-align: left;
}

.primary-btn:hover,
.secondary-btn:hover,
.option-btn:hover {
  transform: translateY(-2px);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.step-card {
  margin-top: 18px;
}

.field-block {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

label {
  font-weight: 700;
}

textarea,
input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 180px;
  resize: vertical;
}

.options-grid {
  display: grid;
  gap: 12px;
}

.option-btn.is-selected {
  border-color: var(--primary);
  background: rgba(31, 122, 121, 0.08);
  color: var(--primary-dark);
}

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

.extra-card {
  margin-top: 16px;
}

.extra-content-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.helper-box {
  background: rgba(31, 122, 121, 0.08);
  border: 1px solid rgba(31, 122, 121, 0.12);
  border-radius: 18px;
  padding: 16px;
  margin-top: 12px;
}

.quote {
  font-style: italic;
  color: var(--text);
}

@media (max-width: 920px) {
  .card-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .panel-header {
    flex-direction: column;
  }

  .choice-card h2 {
    min-height: auto;
  }
}
