:root {
  --bg: #f7f1e8;
  --bg-alt: #fbf7f1;
  --surface: rgba(255, 252, 248, 0.92);
  --surface-strong: #fffdf8;
  --surface-muted: #f3ece2;
  --line: rgba(88, 67, 42, 0.12);
  --line-strong: rgba(54, 38, 21, 0.2);
  --text: #241f19;
  --muted: #6f6254;
  --muted-strong: #54483c;
  --primary: #171513;
  --primary-2: #2d241b;
  --accent: #b79d79;
  --accent-soft: rgba(183, 157, 121, 0.14);
  --success: #6f8e63;
  --warning: #b68a52;
  --danger: #b06056;
  --shadow-sm: 0 10px 28px rgba(53, 38, 22, 0.06);
  --shadow-md: 0 18px 52px rgba(44, 30, 16, 0.1);
  --shadow-lg: 0 28px 72px rgba(38, 26, 14, 0.14);
  --radius-xs: 12px;
  --radius-sm: 18px;
  --radius-md: 24px;
  --radius-lg: 34px;
  --container: 1280px;
  --container-wide: 1440px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.82), transparent 40%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.6), transparent 26%),
    linear-gradient(180deg, #fbf7f1 0%, #f5eee4 100%);
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
}

.page-shell {
  min-height: 100vh;
}

.main-content {
  display: block;
}

.container {
  width: min(100% - 36px, var(--container));
  margin: 0 auto;
}

.container-wide {
  width: min(100% - 24px, var(--container-wide));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(18px);
  background: rgba(251, 247, 241, 0.82);
  border-bottom: 1px solid rgba(84, 62, 38, 0.08);
}

.site-header.scrolled {
  box-shadow: 0 10px 34px rgba(42, 29, 15, 0.08);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.nav-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--muted-strong);
  font-size: 14px;
  cursor: pointer;
}

.nav-link::after,
.nav-button::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: transparent;
  transition: background-color 0.2s ease;
}

.nav-link.active::after,
.nav-link:hover::after,
.nav-button:hover::after,
.nav-button.active::after {
  background: var(--text);
}

.nav-group {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 250px;
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 248, 0.98);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted-strong);
}

.nav-dropdown a:hover {
  background: var(--surface-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(29, 19, 10, 0.12);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border-color: var(--line);
}

.btn-soft {
  background: var(--accent-soft);
  color: var(--text);
  border-color: rgba(183, 157, 121, 0.24);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.menu-toggle.close span:first-child {
  transform: translateY(2px) rotate(45deg);
}

.menu-toggle.close span:last-child {
  transform: translateY(-2px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(20, 16, 13, 0.34);
  backdrop-filter: blur(6px);
}

.mobile-nav.active {
  display: block;
}

.mobile-nav-panel {
  position: absolute;
  right: 12px;
  top: 12px;
  bottom: 12px;
  width: min(380px, calc(100vw - 24px));
  padding: 20px;
  border-radius: 28px;
  background: rgba(255, 251, 246, 0.98);
  box-shadow: var(--shadow-lg);
  overflow: auto;
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.mobile-nav-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.mobile-nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.mobile-quote {
  width: 100%;
  margin-top: 18px;
}

.page-hero {
  padding: 24px 0 28px;
}

.hero-frame {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface-strong);
  min-height: 560px;
  box-shadow: var(--shadow-lg);
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 22, 16, 0.78) 0%, rgba(28, 22, 16, 0.3) 24%, rgba(28, 22, 16, 0.02) 48%, rgba(28, 22, 16, 0) 72%);
  z-index: 1;
}

.hero-copy {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  width: min(100%, 520px);
  padding: 28px 24px 32px;
  color: #fffdf8;
}

.hero-copy .breadcrumb,
.hero-copy .hero-text,
.hero-copy .hero-meta {
  color: rgba(255, 251, 244, 0.92);
}

.hero-copy .eyebrow {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
}

.hero-copy .btn-secondary {
  background: rgba(255, 255, 255, 0.92);
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
}

.hero-title {
  max-width: 420px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-title,
.section-title,
.cta-title,
.footer-brand {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.hero-title {
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.02;
}

.hero-text {
  margin: 0;
  color: rgba(255, 251, 244, 0.9);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions,
.section-actions,
.form-actions,
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: rgba(255, 251, 244, 0.86);
  font-size: 14px;
}

.section {
  padding: 34px 0;
}

.section-card,
.soft-panel,
.card,
.config-panel,
.faq-item,
.quote-box,
.summary-box,
.footer-box {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.section-card {
  padding: 28px;
}

.section-header {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}

.section-kicker {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
}

.section-text {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 820px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.columns-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.columns-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card {
  overflow: hidden;
}

.module-card,
.solution-card,
.measure-card,
.product-tile {
  background: rgba(255, 252, 248, 0.95);
}

.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-muted);
}

.card-media img {
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 22px;
}

.card-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.card-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--accent-soft);
  margin-bottom: 12px;
  font-size: 20px;
}

.price-line {
  margin: 14px 0 0;
  color: var(--text);
  font-weight: 600;
}

.tag-row,
.metric-row,
.spec-row,
.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag,
.chip,
.status,
.mini-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--muted-strong);
  border: 1px solid rgba(183, 157, 121, 0.16);
  font-size: 13px;
}

.status.ready {
  background: rgba(111, 142, 99, 0.12);
  color: #506448;
}

.status.review {
  background: rgba(182, 138, 82, 0.16);
  color: #7e6138;
}

.status.draft {
  background: rgba(56, 44, 29, 0.08);
  color: var(--muted-strong);
}

.module-tabs,
.step-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.tab-card {
  display: flex;
  gap: 14px;
  flex: 1 1 220px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 252, 249, 0.9);
}

.tab-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  font-size: 22px;
}

.tab-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.tab-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.metrics-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
  padding: 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 252, 248, 0.88);
  border: 1px solid var(--line);
}

.metric-value {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.metric-label {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.split-layout {
  display: grid;
  gap: 22px;
  grid-template-columns: 1.35fr 1fr;
}

.stack {
  display: grid;
  gap: 18px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(75, 58, 37, 0.08);
  text-align: left;
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-weight: 500;
}

.spec-list {
  display: grid;
  gap: 12px;
}

.spec-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(90, 68, 40, 0.14);
}

.spec-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.spec-item span:first-child {
  color: var(--muted);
}

.spec-item.total {
  font-size: 18px;
  border-bottom: 0;
}

.option-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.option-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 248, 0.88);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.option-card:hover,
.option-card.selected {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.option-card input {
  display: none;
}

.option-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
}

.option-card p,
.option-card small {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.configurator {
  display: grid;
  gap: 18px;
  grid-template-columns: 320px 1fr 320px;
  align-items: start;
}

.config-panel {
  padding: 24px;
}

.config-main {
  display: grid;
  gap: 16px;
}

.config-preview {
  position: relative;
  min-height: 540px;
  border-radius: var(--radius-sm);
  background: #6e6c6a;
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#three-container canvas {
  width: 100% !important;
  height: 100% !important;
  cursor: grab;
}

#three-container canvas:active {
  cursor: grabbing;
}

.preview-toolbar [data-view-mode].active, .preview-toolbar button.active {
  background: var(--primary);
  color: #fff;
}

.config-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.preview-toolbar {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
  max-width: 100%;
  overflow-x: auto;
  padding: 10px 12px 2px;
  scrollbar-width: thin;
}

.preview-toolbar button,
.layout-modules button,
.step-chip {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 252, 248, 0.9);
  padding: 0 14px;
}

.preview-toolbar button {
  flex: 0 0 auto;
  min-width: 74px;
  min-height: 42px;
  padding: 0 13px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text);
  background: rgba(255, 252, 248, 0.94);
  box-shadow: 0 1px 0 rgba(255,255,255,0.85), 0 8px 18px rgba(84,62,38,0.06);
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.preview-toolbar button:hover {
  transform: translateY(-1px);
  background: #fff;
  border-color: rgba(84, 62, 38, 0.24);
  box-shadow: 0 10px 24px rgba(84,62,38,0.10);
}

.preview-toolbar [data-view-mode].active,
.preview-toolbar button.active {
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(23, 21, 19, 0.18);
}

@media (max-width: 760px) {
  .preview-toolbar {
    justify-content: flex-start;
    gap: 8px;
  }

  .preview-toolbar button {
    min-width: 68px;
    min-height: 40px;
    padding: 0 11px;
    font-size: 13px;
  }
}

.module-strip {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 252, 248, 0.92);
}

.layout-modules {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.layout-modules span,
.layout-modules button {
  min-height: 110px;
  border: 1px dashed rgba(90, 68, 40, 0.18);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 252, 248, 0.95);
}

.system-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 252, 248, 0.9);
}

.step-chip.active {
  background: var(--primary);
  color: #fff;
}

.summary-panel .valid-box {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(111, 142, 99, 0.14);
  color: #49613e;
}

.summary-image {
  margin: 14px 0 18px;
  border-radius: 16px;
  overflow: hidden;
}

.config-visual {
  overflow: hidden;
}

.config-visual .card-media {
  aspect-ratio: 1 / 1.05;
}

.field-grid {
  display: grid;
  gap: 14px;
}

.field-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--muted);
  font-size: 13px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(85, 64, 37, 0.14);
  background: rgba(255, 255, 255, 0.92);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(33, 24, 16, 0.34);
  box-shadow: 0 0 0 4px rgba(23, 21, 19, 0.06);
}

.field.error input,
.field.error select,
.field.error textarea {
  border-color: rgba(176, 96, 86, 0.68);
  box-shadow: 0 0 0 4px rgba(176, 96, 86, 0.08);
}

.error-text {
  color: var(--danger);
  font-size: 12px;
}

.project-list {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.quote-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: 360px minmax(0, 1fr);
}

.review-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.sticky-summary {
  position: sticky;
  top: 110px;
}

.project-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 252, 248, 0.94);
}

.project-card .card-media {
  border-radius: 16px;
  overflow: hidden;
}

.project-card h3 {
  margin: 0 0 12px;
  font-size: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.project-card .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
}

.checkbox-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted-strong);
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.faq-question {
  font-weight: 500;
}

.faq-answer {
  display: none;
  padding: 0 22px 22px;
  color: var(--muted);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  display: block;
}

.cta-band {
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255, 252, 247, 0.96) 0%, rgba(255, 250, 243, 0.92) 56%, rgba(255, 250, 243, 0.52) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.cta-copy {
  padding: 46px;
}

.cta-title {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.08;
}

.cta-text {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 520px;
}

.cta-image {
  min-height: 100%;
}

.cta-image img {
  height: 100%;
  object-fit: cover;
}

.site-footer {
  margin-top: 48px;
  padding: 34px 0 42px;
  border-top: 1px solid rgba(84, 62, 38, 0.1);
}

.footer-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr));
}

.footer-brand {
  font-size: 40px;
}

.footer-copy {
  color: var(--muted);
  line-height: 1.7;
  margin: 14px 0 0;
}

.footer-column h4 {
  margin: 0 0 14px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--muted-strong);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(84, 62, 38, 0.08);
  color: var(--muted);
  font-size: 14px;
}

.note {
  color: var(--muted);
  line-height: 1.7;
}

.toast-wrap {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: grid;
  gap: 10px;
}

.toast {
  min-width: 260px;
  max-width: 420px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(24, 22, 19, 0.96);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.toast strong {
  display: block;
  margin-bottom: 4px;
}

.empty-state {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(84, 62, 38, 0.18);
  border-radius: 20px;
  background: rgba(255, 252, 248, 0.6);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.document-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
  align-items: center;
}

.upload-box {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(90, 68, 40, 0.18);
  border-radius: 16px;
  background: rgba(255, 252, 248, 0.75);
}

.quick-quote {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.05fr 0.95fr 0.8fr;
  align-items: center;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 252, 247, 0.94);
  box-shadow: var(--shadow-md);
  padding: 26px;
}

.mini-form {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.mini-form input,
.mini-form select,
.mini-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(85, 64, 37, 0.14);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.95);
}

.mini-form textarea {
  min-height: 110px;
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social-row span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.hide {
  display: none !important;
}

.benefit-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 252, 248, 0.88);
}

.benefit-strip > div {
  display: grid;
  gap: 8px;
}

.benefit-strip strong {
  display: block;
}

.benefit-strip p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.line-icon {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(90, 68, 40, 0.28);
  border-radius: 999px;
  display: inline-flex;
}

.line-icon::before {
  content: "";
  width: 12px;
  height: 12px;
  margin: auto;
  border-radius: 999px;
  background: var(--accent);
}

.spec-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 252, 248, 0.9);
}

.mini-product {
  width: 54px;
  height: 88px;
  border: 1px solid rgba(90, 68, 40, 0.16);
  border-radius: 8px;
  margin-bottom: 16px;
  background:
    linear-gradient(90deg, rgba(80, 55, 32, 0.08), transparent 36%),
    linear-gradient(180deg, #d3b995, #a9825f);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.32);
}

.swatch-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.swatch {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 252, 248, 0.9);
  padding: 12px;
  color: var(--muted-strong);
  cursor: pointer;
}

.swatch span {
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--swatch);
  border: 1px solid rgba(90, 68, 40, 0.1);
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.image-panel {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.quote-box,
.summary-box {
  padding: 24px;
}

.quote-box h2,
.summary-box h2 {
  margin-top: 0;
}

.service-list {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.success-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 252, 248, 0.94);
  box-shadow: var(--shadow-sm);
}

.success-mark {
  width: 96px;
  height: 96px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 50px;
}

.fixed-action {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.fixed-action .btn {
  min-width: 220px;
}

.compare-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 252, 248, 0.9);
}

.compare-table thead th {
  background: rgba(183, 157, 121, 0.16);
  color: var(--text);
}

.section-tint {
  background: rgba(255, 255, 255, 0.24);
}

.summary-box > span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
}

.summary-box > strong {
  display: block;
  font-size: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

@media (max-width: 1200px) {
  .configurator,
  .project-list,
  .quote-layout,
  .review-layout,
  .split-layout,
  .quick-quote,
  .benefit-strip,
  .swatch-grid,
  .product-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .document-panel {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .option-grid,
  .grid.columns-4,
  .grid.columns-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .nav-desktop,
  .header-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-frame,
  .hero-copy,
  .hero-visual {
    min-height: 520px;
  }

  .hero-copy {
    max-width: 100%;
    width: 100%;
    padding: 34px 22px;
  }

  .grid.columns-2,
  .grid.columns-3,
  .option-grid,
  .project-card {
    grid-template-columns: 1fr;
  }

  .project-card {
    padding: 14px;
  }
}

@media (max-width: 720px) {
  .container,
  .container-wide {
    width: min(100% - 20px, var(--container));
  }

  .header-row {
    min-height: 74px;
  }

  .brand {
    font-size: 28px;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-frame::before {
    background:
      linear-gradient(90deg, rgba(28, 22, 16, 0.82) 0%, rgba(28, 22, 16, 0.58) 48%, rgba(28, 22, 16, 0.08) 100%),
      linear-gradient(180deg, rgba(28, 22, 16, 0.24) 0%, rgba(28, 22, 16, 0.68) 100%);
  }

  .hero-text,
  .section-text,
  .cta-text {
    font-size: 16px;
  }

  .module-strip > div:first-child {
    display: grid;
    gap: 6px;
  }

  .section-card,
  .config-panel,
  .card-body,
  .cta-copy {
    padding: 20px;
  }

  .field-grid.two,
  .layout-modules {
    grid-template-columns: 1fr;
  }

  .metrics-grid,
  .grid.columns-4,
  .grid.columns-5 {
    grid-template-columns: 1fr;
  }

  .toolbar {
    flex-direction: column;
  }

  .fixed-action {
    flex-direction: column;
  }

  .fixed-action .btn {
    width: 100%;
    min-width: 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}




/* ==========================================
 * 配置器布局条专属样式
 * NOTE: .layout-modules 用于 custom-wardrobe 配置器底部柜体布局条
 * 使用 flex 布局以支持 JS 动态注入的可伸缩柜体卡片
 * ========================================== */
.layout-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  padding: 12px;
  background: var(--surface);
  border-radius: 18px;
  min-height: 90px;
}

.layout-modules > * {
  flex-shrink: 0;
}

/* 模块辅助项目 */
.diy-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  gap: 8px;
}

.diy-item:hover {
  border-color: var(--accent);
  background: var(--bg-alt);
  transform: translateY(-2px);
}

.diy-item .icon { font-size: 24px; line-height: 1; }
.diy-item .label { font-size: 12px; font-weight: 500; color: var(--muted-strong); }

/* 操作按钮组 */
.module-add-group {
  display: flex;
  gap: 8px;
}

.module-add-group button {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px dashed #999;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  transition: 0.2s;
}

.module-add-group button:hover {
  background: var(--primary);
  color: #fff;
  border-style: solid;
  border-color: var(--primary);
}
