:root {
  --bg: #f6f6f4;
  --surface: #ffffff;
  --surface-soft: #fafafa;
  --ink: #171717;
  --muted: #666a70;
  --line: #dedede;
  --orange: #ff7a1a;
  --orange-dark: #ca5600;
  --orange-soft: #fff1e6;
  --green: #128c7e;
  --black: #050505;
  --radius: 8px;
  --shadow: 0 16px 42px rgba(18, 24, 40, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(52px, 7vw, 96px) 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(18px, 4vw, 54px);
  background: rgba(246, 246, 244, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(16px);
}
.brand-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 7px 12px;
  border-radius: var(--radius);
  background: var(--black);
}
.brand-chip img { width: 118px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  padding: 9px 11px;
  border-radius: var(--radius);
  color: #3f4246;
  font-size: .92rem;
  font-weight: 700;
}
.site-nav a:hover { background: #fff; color: var(--ink); }
.site-nav .nav-cta { margin-left: 6px; background: var(--black); color: #fff; }
.site-nav .nav-cta:hover { background: var(--green); color: #fff; }
.menu-button {
  display: none;
  min-height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 8px 12px;
  font-weight: 800;
}

.eyebrow,
.panel-label {
  display: block;
  margin: 0 0 10px;
  color: var(--orange-dark);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2, h3, h4, p { margin-top: 0; }
h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: .96;
  letter-spacing: 0;
}
h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}
h3 { margin-bottom: 8px; font-size: 1.2rem; letter-spacing: 0; }
p { color: var(--muted); line-height: 1.6; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(380px, 1.05fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  min-height: 82vh;
  padding-top: clamp(64px, 8vw, 116px);
}
.hero-subtitle { max-width: 680px; font-size: clamp(1.05rem, 1.7vw, 1.28rem); }
.planner-note {
  display: grid;
  gap: 5px;
  max-width: 660px;
  margin: 22px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(18, 140, 126, .22);
  border-radius: var(--radius);
  background: #eef7f5;
}
.planner-note strong { color: var(--green); }
.planner-note span { color: #46504f; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 10px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--orange); color: #fff; }
.button.primary:hover { background: var(--orange-dark); }
.button.secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.button.secondary:hover { border-color: #b8b8b8; }
.button.small { min-height: 36px; padding: 8px 12px; font-size: .9rem; }
.microcopy { margin: 0; color: var(--muted); font-size: .92rem; }

.guide-panel,
.package-card,
.config-panel,
.empty-panel,
.product-card,
.summary-card,
.trust-grid article,
.faq details,
.about-panel,
.value-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.guide-panel {
  padding: clamp(22px, 3.5vw, 34px);
  box-shadow: var(--shadow);
}
.guide-header h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.service-grid,
.housing-grid,
.wiring-grid {
  display: grid;
  gap: 10px;
}
.service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 22px; }
.housing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wiring-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.service-card,
.housing-card,
.wiring-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.service-card,
.housing-card { min-height: 164px; }
.wiring-card { min-height: 132px; }
.service-card span,
.housing-card span,
.wiring-card span { color: var(--orange-dark); font-size: .85rem; font-weight: 850; }
.service-card strong,
.housing-card strong { font-size: 1.55rem; line-height: 1.1; }
.service-card small,
.housing-card small,
.wiring-card small { color: var(--muted); line-height: 1.45; }
.service-card.active,
.service-card:hover,
.housing-card.active,
.housing-card:hover,
.wiring-card.active,
.wiring-card:hover {
  border-color: rgba(255, 122, 26, .55);
  background: var(--orange-soft);
}
.side-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 0;
  padding: 13px 14px;
  border-radius: var(--radius);
  background: #eef7f5;
  color: var(--green);
  font-weight: 800;
}
.side-note-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  font-weight: 850;
  white-space: nowrap;
}
.side-note-action span {
  font-size: .82rem;
  opacity: .9;
}
.side-note-action strong {
  font-size: .9rem;
}
.recommendation-card {
  margin-top: 14px;
  padding: 18px;
  border-radius: var(--radius);
  background: #171717;
  color: #fff;
}
.recommendation-card p { color: #d6d6d6; }
.recommend-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}
.recommend-row div { display: grid; gap: 4px; }
.recommend-row span { color: #d6d6d6; font-size: .92rem; }

.section-intro { margin-bottom: 26px; }
.section-intro > p:last-child { max-width: 680px; }
.inline-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}
.inline-heading > p { max-width: 500px; margin-bottom: 0; }

.package-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  width: 100%;
  min-height: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.package-card:hover { border-color: #b9b9b9; transform: translateY(-1px); }
.package-card.featured { background: #fffaf6; }
.package-card.selected {
  border-color: rgba(255, 122, 26, .78);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, .13);
}
.package-card:focus-visible {
  outline: 3px solid rgba(255, 122, 26, .35);
  outline-offset: 3px;
}
.package-topline { display: flex; justify-content: space-between; gap: 12px; min-height: 22px; }
.package-topline span,
.package-topline em {
  color: var(--orange-dark);
  font-size: .76rem;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}
.package-price { display: flex; align-items: baseline; gap: 10px; }
.package-price strong { font-size: 2.35rem; }
.package-price span { color: var(--muted); text-decoration: line-through; }
.save-line {
  width: fit-content;
  margin: 0;
  padding: 6px 9px;
  border-radius: var(--radius);
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-weight: 800;
  font-size: .9rem;
}
.package-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #42464b;
}
.package-note {
  margin: auto 0 0;
  color: var(--green);
  font-size: .9rem;
  font-weight: 800;
}

.builder-panel { min-height: 220px; }
.config-panel,
.empty-panel { padding: clamp(22px, 3.5vw, 34px); }
.config-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}
.config-title-row strong { font-size: clamp(2.5rem, 6vw, 4.8rem); line-height: .95; }
.advanced-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0 6px;
  color: var(--muted);
  font-size: .94rem;
}
.text-link {
  border: 0;
  background: transparent;
  color: var(--orange-dark);
  font-weight: 850;
  cursor: pointer;
  padding: 0;
}
.switch-filter-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.switch-filter { display: grid; gap: 6px; color: var(--muted); font-size: .82rem; font-weight: 800; }
.switch-filter select,
.catalog-toolbar input,
.catalog-toolbar select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 9px 10px;
  color: var(--ink);
}
.switch-filter select:focus,
.catalog-toolbar input:focus,
.catalog-toolbar select:focus {
  outline: none;
  border-color: rgba(255, 122, 26, .65);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, .12);
}
.switch-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-height: 720px;
  overflow: auto;
  padding-right: 4px;
}
.switch-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.switch-card.selected { border-color: rgba(255, 122, 26, .58); box-shadow: 0 10px 28px rgba(255, 122, 26, .09); }
.switch-thumb { aspect-ratio: 1 / 1; background: #111; }
.switch-thumb img { width: 100%; height: 100%; object-fit: cover; }
.switch-card-body { display: grid; gap: 8px; padding: 12px; }
.switch-card-body span,
.switch-card-body small { color: var(--muted); }
.switch-card-body strong { font-size: 1rem; }

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.qty-stepper button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: #eeeeee;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}
.qty-stepper button:disabled { opacity: .35; cursor: not-allowed; }
.qty-stepper span { min-width: 22px; text-align: center; font-weight: 850; }

.catalog-toolbar {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 12px;
  margin-bottom: 18px;
}
.catalog-toolbar label { display: grid; gap: 7px; color: #42464b; font-weight: 800; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.product-card { display: flex; flex-direction: column; overflow: hidden; }
.product-card.selected { border-color: rgba(255, 122, 26, .58); }
.product-image {
  display: grid;
  place-items: center;
  min-height: 178px;
  padding: 18px;
  background: var(--surface-soft);
}
.product-image img { max-height: 140px; object-fit: contain; }
.product-info {
  display: grid;
  gap: 10px;
  flex: 1;
  padding: 16px;
}
.product-info > span { color: var(--orange-dark); font-size: .78rem; font-weight: 850; }
.product-info p { margin-bottom: 0; }
.product-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.product-footer strong { display: block; font-size: 1.3rem; }
.product-footer small { color: var(--muted); font-weight: 750; }
.empty-state {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.summary-card { padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.clean-summary { display: grid; gap: 18px; }
.summary-main h3 { font-size: clamp(2rem, 4vw, 3.6rem); margin-bottom: 8px; }
.summary-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.summary-pills span {
  padding: 8px 10px;
  border-radius: var(--radius);
  background: #eeeeee;
  color: #42464b;
  font-weight: 800;
  font-size: .9rem;
}
.summary-price {
  font-size: clamp(3rem, 6vw, 5.4rem);
  font-weight: 900;
  line-height: .95;
}
.summary-cta { width: fit-content; background: var(--green) !important; }
.warning-list {
  display: grid;
  gap: 7px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--orange-soft);
}
.warning-list p { margin: 0; color: var(--orange-dark); font-weight: 800; }
.summary-details {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.summary-details summary { cursor: pointer; font-weight: 850; }
.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 16px 0;
}
.details-grid span,
.addon-row {
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: #42464b;
  font-weight: 750;
}
.addon-detail { display: grid; gap: 8px; margin-top: 12px; }
.addon-title,
.addon-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.addon-detail p { margin: 0; }
.switch-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.switch-summary-item,
.addon-row.with-image {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.switch-summary-item img,
.addon-row.with-image img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  background: #111;
}
.addon-row.with-image span,
.switch-summary-item span {
  min-width: 0;
  color: var(--ink);
}

.trust-grid,
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.trust-grid article,
.value-card { padding: 20px; }
.trust-grid strong,
.value-card strong { display: block; margin-bottom: 8px; }
.trust-grid p,
.value-card p { margin-bottom: 0; }

.faq-list { display: grid; gap: 10px; }
.faq details { padding: 18px 20px; }
.faq summary { cursor: pointer; font-weight: 850; }
.faq details p { margin: 12px 0 0; }

.about-hero {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: 68vh;
}
.about-panel { padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow); }
.about-panel p:last-child { margin-bottom: 0; }
.about-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.floating-summary {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 60;
  transform: translateX(-50%);
  width: min(820px, calc(100% - 28px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 10px 10px 16px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .12);
  backdrop-filter: blur(16px);
}
.floating-summary div:first-child { display: grid; gap: 2px; min-width: 0; }
.floating-summary span { color: var(--muted); font-size: .9rem; font-weight: 750; }
.floating-actions { display: flex; gap: 8px; }

.site-footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 120px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
}
.site-footer img {
  width: 124px;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--black);
}
.site-footer p { max-width: 520px; margin: 0; }

@media (max-width: 1120px) {
  .hero,
  .about-hero { grid-template-columns: 1fr; }
  .package-grid,
  .product-grid,
  .switch-gallery,
  .trust-grid,
  .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1180px); }
  .menu-button { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 64px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .98);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { text-align: left; }
  .site-nav .nav-cta { margin-left: 0; text-align: center; }
  .brand-chip img { width: 104px; }
  h1 { font-size: clamp(2.55rem, 12vw, 4.1rem); }
  .hero { min-height: auto; }
  .housing-grid,
  .service-grid,
  .wiring-grid,
  .package-grid,
  .product-grid,
  .switch-gallery,
  .trust-grid,
  .values-grid,
  .details-grid,
  .switch-summary-grid,
  .catalog-toolbar,
  .switch-filter-bar { grid-template-columns: 1fr; }
  .inline-heading { display: block; }
  .recommend-row,
  .advanced-note,
  .product-footer { align-items: stretch; flex-direction: column; }
  .summary-cta { width: 100%; }
  .floating-summary { align-items: stretch; flex-direction: column; }
  .floating-actions { width: 100%; }
  .floating-actions .button { flex: 1; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}
