:root {
  --bg: #050505;
  --panel: #0d0d0f;
  --panel-2: #101014;
  --border: #24242a;
  --muted: #a0a4ab;
  --text: #f3f5f8;
  --accent: #ff5f1f;
  --accent-soft: rgba(255, 95, 31, 0.12);
  --radius: 24px;
  --shadow: 0 18px 70px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255,95,31,0.12), transparent 24%),
    linear-gradient(180deg, #050505 0%, #030303 100%);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.page {
  width: min(1200px, calc(100% - 32px));
  margin: 40px auto 72px;
}

.shell {
  background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.008));
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow);
  
}

.hero {
  padding: 36px 28px 42px;
  margin-bottom: 22px;
  height: auto;
  min-height: auto;
}

.eyebrow,
.step-meta,
.mini-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 800;
}

.eyebrow,
.step-meta { color: var(--accent); }
.mini-label { color: var(--muted); margin-bottom: 14px; }

.hero h1,
.step h2 {
  margin: 0 0 12px;
  line-height: .98;
  letter-spacing: -0.05em;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  max-width: 900px;
}

.hero h1 span { color: var(--accent); }
.hero p,
.step > p,
.muted {
  color: var(--muted);
  line-height: 1.72;
}

.progress-track {
  height: 6px;
  background: #151519;
  overflow: hidden;
  border-radius: 30px 30px 0 0;
}

.progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #ff7a4d, var(--accent));
  transition: width .25s ease;
}

.calculator-inner { padding: 30px; }
.step { display: none; }
.step.active { display: block; }

.cards,
.check-list,
.mini-panels,
.result-layout { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card,
.check-row,
.panel,
.other-box {
  background: linear-gradient(180deg, rgba(255,255,255,0.014), rgba(255,255,255,0.008));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card {
  padding: 22px;
  min-height: 188px;
  cursor: pointer;
  transition: .18s ease;
}

.card:hover,
.check-row:hover,
.btn:hover { transform: translateY(-1px); }

.card.selected,
.check-row.selected {
  border-color: rgba(255, 95, 31, 0.75);
  box-shadow: inset 0 0 0 1px rgba(255,95,31,0.1);
  background: radial-gradient(circle at top left, rgba(255,95,31,0.13), transparent 38%), #100d0c;
}

.shape {
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent);
  display: inline-block;
  margin-bottom: 18px;
}
.shape.circle { border-radius: 999px; }
.shape.square { background: var(--accent); }
.shape.triangle {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 12px solid var(--accent);
  border-top: 0;
}
.shape.diamond {
  width: 10px; height: 10px; background: var(--accent); border: none; transform: rotate(45deg);
}

.card h3,
.check-row h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.card p,
.check-row p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
  font-size: .95rem;
}

.price-tag,
.right-price {
  color: var(--accent);
  font-weight: 800;
}

.actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}
.actions.align-end { justify-content: flex-end; }

.btn {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 22px;
  font-weight: 700;
  cursor: pointer;
  transition: .18s ease;
  background: transparent;
  color: var(--text);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 10px 28px rgba(255, 95, 31, 0.18);
}

.btn-primary:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-secondary {
  background: #0b0c0f;
}

.full { width: 100%; }

.check-row {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  cursor: pointer;
  transition: .18s ease;
}

.check-copy { flex: 1; }
.fake-check {
  width: 24px;
  height: 24px;
  border: 1px solid #4a4c53;
  border-radius: 8px;
  position: relative;
  background: #0f1013;
}
.check-row.selected .fake-check::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 4px;
  background: var(--accent);
}

.other-box {
  padding: 18px;
  margin-top: 16px;
}
.other-box label { display: block; margin-bottom: 10px; font-weight: 700; }
textarea {
  width: 100%;
  background: #0a0b0f;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  padding: 14px 16px;
  resize: vertical;
}
.hidden { display: none !important; }

.result-layout {
  grid-template-columns: 1.15fr .85fr;
  align-items: start;
}
.mini-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
.panel { padding: 22px; }
.price-panel { margin-bottom: 16px; }
.price-large {
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 12px;
}

.alert {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,95,31,0.3);
  background: rgba(255,95,31,0.08);
  color: #ffd7c8;
  line-height: 1.6;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.breakdown-row:last-child { border-bottom: 0; }
.breakdown-label { font-weight: 600; }
.breakdown-sub { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.breakdown-value { font-weight: 800; white-space: nowrap; }

.compact-value {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cta-stack { display: grid; gap: 12px; margin-top: 18px; }
#messagePreview {
  white-space: pre-wrap;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-family: inherit;
}

@media (max-width: 980px) {
  .grid-4, .grid-3, .grid-2, .result-layout, .mini-panels {
    grid-template-columns: 1fr;
  }
  .calculator-inner, .hero { padding: 22px; }
}

@media (max-width: 700px) {
  .actions { flex-direction: column-reverse; }
  .btn { width: 100%; }
  .check-row { flex-wrap: wrap; }
}




