:root {
  --bg: #f3f7fb;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #52627a;
  --line: #d7e0ea;
  --primary: #1d4ed8;
  --primary-2: #2563eb;
  --success: #166534;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #eef4ff 0%, var(--bg) 42%, #eaf0f7 100%);
  color: var(--text);
}

.app-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 24px;
}
.hero-copy h1 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  margin: 6px 0 10px;
}
.hero-copy p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
}
.hero-meta {
  display: grid;
  gap: 12px;
  min-width: 280px;
}
.meta-card {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(215, 224, 234, 0.8);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.meta-card span { display:block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.meta-card strong { display:block; margin-top: 4px; font-size: 16px; }

.configurator {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 20px;
  align-items: start;
}
.product-panel,
.wizard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.product-panel {
  overflow: hidden;
  position: sticky;
  top: 24px;
}
.product-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #e5edf6;
}
.product-panel h2 {
  font-size: 24px;
  margin: 16px 18px 8px;
}
.product-panel p {
  color: var(--muted);
  margin: 0 18px 18px;
  line-height: 1.5;
}
.product-badge {
  display: inline-flex;
  margin: 18px 18px 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e40af;
  font-size: 13px;
  font-weight: 700;
}

.wizard {
  padding: 24px;
}
.wizard-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}
.wizard-label {
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}
.wizard-dots {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d8e1ec;
}
.step-dot.active { background: var(--primary); transform: scale(1.1); }
.step-dot.done { background: #60a5fa; }

.progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e8eef7;
  overflow: hidden;
  margin-bottom: 24px;
}
.progress-fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #38bdf8);
  transition: width .25s ease;
}

.wizard-body {
  min-height: 520px;
}
.wizard-body h2 {
  margin: 0 0 10px;
  font-size: 30px;
}
.step-hint {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}
.step-options {
  display: grid;
  gap: 14px;
}
.step-options--grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.option-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #f9fbff 100%);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  color: var(--text);
}
.option-card:hover {
  transform: translateY(-2px);
  border-color: #9cc2ff;
  box-shadow: 0 14px 24px rgba(37, 99, 235, 0.10);
}
.option-card.selected {
  border-color: var(--primary);
  box-shadow: 0 14px 24px rgba(29, 78, 216, 0.14);
}
.option-card.primary {
  grid-template-columns: 1fr;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, #2b6ef3 0%, #1d4ed8 100%);
  color: #fff;
  border-color: transparent;
}
.option-card.primary .option-text,
.option-card.primary .option-sub { color: #fff; }
.option-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
  background: #e9eff7;
}
.option-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #dbeafe;
  font-weight: 900;
  color: #1d4ed8;
}
.option-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 800;
  font-size: 16px;
}
.option-sub {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
}

.room-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.room-tag {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: #edf5ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
}

.info-text,
.step-error,
.done-box {
  border-radius: 16px;
  padding: 16px;
  line-height: 1.5;
}
.info-text {
  background: #eff6ff;
  color: #0f172a;
  border: 1px solid #bfdbfe;
}
.step-error {
  margin-top: 14px;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.done-box {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
}
.done-icon {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #16a34a;
  color: white;
  display: grid;
  place-items: center;
  font-weight: 900;
  margin-bottom: 14px;
}
.done-lead {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
}
.done-sub {
  margin: 0;
  color: #14532d;
}
.summary-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 10px;
}
.summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fbff;
  border: 1px solid var(--line);
}
.summary-list span { color: var(--muted); }
.summary-list strong { text-align: right; }

.qr-wrap {
  display: grid;
  place-items: center;
  min-height: 176px;
  margin: 10px 0;
  padding: 8px;
  border: 1px dashed #bfd0e1;
  border-radius: 16px;
  background: #f8fbff;
}
.qr-code {
  border-radius: 12px;
}
.photo-block {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fbfdff;
}
.photo-block-title {
  margin: 0 0 8px;
  font-size: 18px;
}
.photo-block-desc {
  margin: 0;
  color: var(--muted);
}
.photo-preview {
  margin-top: 12px;
}
.photo-preview img {
  width: 100%;
  border-radius: 14px;
  display: block;
}
.photo-status.ok { color: var(--success); font-weight: 700; }

.form-grid {
  display: grid;
  gap: 14px;
}
.form-grid label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}
.form-grid input,
.form-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}
.submit-btn,
.text-btn,
.ar-link-btn {
  appearance: none;
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.submit-btn,
.ar-link-btn {
  background: linear-gradient(180deg, var(--primary-2), var(--primary));
  color: #fff;
}
.text-btn {
  background: #e5eefb;
  color: #1d4ed8;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}
.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.btn.primary {
  background: linear-gradient(180deg, var(--primary-2), var(--primary));
  color: #fff;
}
.btn.secondary {
  background: #eef4fb;
  color: #20324b;
  border-color: #d7e0ea;
}
.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

@media (max-width: 980px) {
  .configurator {
    grid-template-columns: 1fr;
  }
  .product-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
  }
  .wizard {
    padding: 18px;
  }
  .wizard-body {
    min-height: auto;
  }
  .wizard-actions {
    flex-direction: column;
  }
}
