:root {
  --ink: #171717;
  --muted: #6d6d6d;
  --line: #dedede;
  --paper: #f3f1ed;
  --panel: #ffffff;
  --green: #f58220;
  --green-dark: #d86f14;
  --orange: #f58220;
  --orange-dark: #c85e0d;
  --gold: #f0a13a;
  --blue: #2774a6;
  --rose: #b85b6a;
  --black: #080808;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--black);
  color: #fff;
  border-bottom: 4px solid var(--orange);
}

.site-header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.header-brand {
  width: 132px;
  height: 58px;
  display: grid;
  place-items: center;
  background: var(--black);
  border-radius: 2px;
  overflow: hidden;
}

.header-brand img {
  width: 112px;
  height: auto;
  display: block;
}

.header-copy {
  display: grid;
  gap: 3px;
}

.header-copy strong {
  font-size: 21px;
}

.header-copy span {
  color: #d8d8d8;
  font-size: 14px;
}

.header-action {
  min-height: 44px;
  padding: 0 16px;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  font-weight: 850;
  background: var(--orange);
  border-radius: 2px;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 22px;
  align-items: start;
}

.advisor,
.result-panel,
.offer-sheet {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.advisor {
  min-height: calc(100vh - 56px);
  padding: 28px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
}

.brand-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 26px;
}

.brand-mark {
  width: 118px;
  height: 66px;
  border-radius: 2px;
  display: grid;
  place-items: center;
  background: var(--black);
  border: 1px solid rgba(23, 32, 28, 0.12);
  overflow: hidden;
}

.brand-mark img {
  width: 104px;
  height: auto;
  display: block;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 36px;
  line-height: 1.08;
}

h2 {
  margin-bottom: 14px;
  font-size: 26px;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.progress-wrap {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.progress-track {
  flex: 1;
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #e9eee9;
}

.progress-bar {
  width: 12.5%;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--orange));
  transition: width 180ms ease;
}

.intro-photo {
  position: relative;
  height: 170px;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #111;
}

.intro-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0.72;
}

.intro-photo div {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  color: #fff;
  display: grid;
  gap: 4px;
}

.intro-photo span {
  width: max-content;
  padding: 5px 8px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.intro-photo strong {
  font-size: 24px;
  line-height: 1.08;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.value-grid div {
  min-height: 94px;
  padding: 14px;
  display: grid;
  gap: 6px;
  align-content: start;
  background: #111;
  color: #fff;
  border-left: 5px solid var(--orange);
}

.value-grid strong {
  font-size: 15px;
}

.value-grid span {
  color: #d8d8d8;
  font-size: 13px;
  line-height: 1.35;
}

.question-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.step {
  display: none;
  min-height: 390px;
  padding: 0;
  margin: 0;
  border: 0;
}

.step.is-active {
  display: block;
}

legend {
  width: 100%;
  margin-bottom: 20px;
  font-size: 28px;
  line-height: 1.16;
  font-weight: 850;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice-card {
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
  display: grid;
  gap: 8px;
  align-content: start;
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.choice-card:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 130, 32, 0.65);
  box-shadow: 0 12px 30px rgba(25, 35, 30, 0.08);
}

.choice-card input {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
}

.choice-card span {
  font-weight: 850;
}

.choice-card small,
.hint-line {
  color: var(--muted);
  line-height: 1.4;
}

.choice-card:has(input:checked) {
  border-color: var(--orange);
  background: #fff4e9;
}

.range-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}

output {
  min-height: 56px;
  display: grid;
  place-items: center;
  border-radius: 2px;
  background: #fff4e9;
  color: var(--orange-dark);
  font-weight: 900;
  font-size: 20px;
}

.toggle-list {
  display: grid;
  gap: 12px;
}

.toggle-list label {
  min-height: 72px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 2px;
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
  font-weight: 800;
}

.toggle-list input {
  width: 22px;
  height: 22px;
  accent-color: var(--green);
}

.region-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.region-row label,
.lead-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.region-row input,
.lead-grid input {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
}

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

.frame-card {
  min-height: 210px;
  padding: 14px;
  display: grid;
  gap: 10px;
  align-content: start;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.frame-card:hover,
.frame-card:has(input:checked) {
  border-color: var(--orange);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.10);
}

.frame-card:hover {
  transform: translateY(-2px);
}

.frame-card input,
.fabric-card input {
  width: 20px;
  height: 20px;
  accent-color: var(--orange);
}

.frame-swatch {
  min-height: 118px;
  display: block;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.22), transparent 45%),
    var(--swatch);
  border: 1px solid rgba(0, 0, 0, 0.22);
}

.frame-swatch.is-light {
  border-color: rgba(0, 0, 0, 0.32);
}

.frame-card strong,
.fabric-card strong {
  font-size: 16px;
}

.frame-card small {
  color: var(--muted);
  font-weight: 800;
}

.fabric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
}

.fabric-card {
  position: relative;
  min-height: 156px;
  padding: 12px;
  display: grid;
  gap: 9px;
  align-content: start;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: border-color 140ms ease, transform 160ms ease, box-shadow 160ms ease, z-index 0s;
}

.fabric-card:hover,
.fabric-card:has(input:checked) {
  border-color: var(--orange);
}

.fabric-card:hover {
  z-index: 5;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.20);
}

.fabric-swatch {
  min-height: 82px;
  display: block;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.14) 0 1px, transparent 1px 10px),
    linear-gradient(0deg, rgba(0,0,0,0.08) 0 1px, transparent 1px 10px),
    var(--swatch);
  border: 1px solid rgba(0, 0, 0, 0.18);
}

.fabric-weave {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.22) 0 3px, transparent 3px 8px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.08) 0 2px, transparent 2px 9px),
    var(--swatch);
}

.fabric-link {
  background:
    radial-gradient(circle at 30% 35%, rgba(255,255,255,0.28) 0 3px, transparent 4px),
    radial-gradient(circle at 70% 65%, rgba(0,0,0,0.10) 0 3px, transparent 4px),
    var(--swatch);
  background-size: 18px 18px;
}

.button-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
}

button {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  font-weight: 850;
}

.primary {
  background: var(--orange);
  color: #fff;
}

.primary:hover {
  background: var(--orange-dark);
}

.secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.full {
  width: 100%;
}

.result-panel {
  position: sticky;
  top: 28px;
  padding: 22px;
  border-radius: 2px;
}

.model-photo {
  position: relative;
  height: 250px;
  margin-bottom: 22px;
  overflow: hidden;
  border-radius: 2px;
  background: #111;
  border: 1px solid #1f1f1f;
}

.model-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-preview {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: min(42%, 172px);
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
}

.profile-preview img {
  width: 100%;
  height: 86px;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(8, 8, 8, 0.08);
  background: #fff;
}

.profile-preview figcaption {
  margin-top: 6px;
  color: var(--black);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.model-photo span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  background: var(--black);
  color: #fff;
  border-left: 4px solid var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.awning-visual {
  position: relative;
  height: 220px;
  margin-bottom: 22px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(241, 246, 242, 0.65)),
    repeating-linear-gradient(90deg, rgba(23, 32, 28, 0.05) 0 1px, transparent 1px 44px);
  border: 1px solid var(--line);
}

.house-line {
  position: absolute;
  left: 44px;
  top: 26px;
  bottom: 28px;
  width: 8px;
  border-radius: 8px;
  background: #ccd8d1;
}

.cassette {
  position: absolute;
  left: 50px;
  right: 60px;
  top: 42px;
  height: 22px;
  border-radius: 8px;
  background: #23322d;
}

.fabric {
  position: absolute;
  left: 70px;
  right: 42px;
  top: 64px;
  height: 104px;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 10% 100%);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0 18px, transparent 18px 36px),
    linear-gradient(135deg, #2d9270, #e0b24a);
}

.front-bar {
  position: absolute;
  right: 48px;
  top: 160px;
  width: 250px;
  height: 16px;
  border-radius: 8px;
  background: #1d2a26;
}

.arm {
  position: absolute;
  height: 5px;
  width: 180px;
  background: #53615b;
  transform-origin: left center;
}

.arm-left {
  left: 100px;
  top: 88px;
  transform: rotate(22deg);
}

.arm-right {
  left: 154px;
  top: 142px;
  transform: rotate(-22deg);
}

.recommendation {
  padding: 16px;
  border-left: 5px solid var(--orange);
  background: #fff7ee;
  margin-bottom: 16px;
}

.recommendation p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.logic-box {
  padding: 14px 16px;
  margin-bottom: 14px;
  border: 1px solid #e7ece8;
  border-radius: 2px;
  background: #fffaf3;
}

.logic-box h3 {
  margin-bottom: 10px;
  font-size: 15px;
}

.logic-box ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.logic-box li + li {
  margin-top: 5px;
}

.price-list {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}

.price-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #edf1ee;
  color: var(--muted);
}

.price-list dt {
  font-weight: 700;
}

.price-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
  white-space: nowrap;
}

.total-box {
  padding: 18px;
  border-radius: 2px;
  background: var(--black);
  color: #fff;
  display: grid;
  gap: 6px;
}

.total-box span,
.total-box small {
  display: block;
  color: #d5dfd9;
}

.total-box strong {
  display: block;
  margin: 4px 0;
  font-size: 38px;
  line-height: 1;
}

.offer-appointment-link {
  min-height: 48px;
  padding: 0 16px;
  display: inline-grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-weight: 900;
  border-radius: 2px;
}

.offer-appointment-link:hover {
  background: var(--orange-dark);
}

.fallback-mail-link {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.trust-strip span {
  min-height: 54px;
  padding: 10px;
  border-radius: 2px;
  background: #f4f6f3;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mobile-price-bar {
  display: none;
}

.mobile-start-cta {
  display: none;
}

.lead-box {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.lead-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.lead-status {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--orange-dark);
  font-weight: 800;
}

.delivery-notice {
  display: none;
  margin-top: 12px;
  padding: 14px;
  border-left: 4px solid var(--orange);
  background: #fff4e8;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.delivery-notice.is-visible {
  display: grid;
  gap: 4px;
}

.delivery-notice strong {
  font-size: 15px;
}

.offer-sheet {
  display: none;
  width: min(940px, calc(100% - 32px));
  margin: 0 auto 28px;
  padding: 28px;
  border-radius: 2px;
}

.offer-sheet.is-visible {
  display: block;
}

.offer-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.offer-block {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.model-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.model-strip article {
  position: relative;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 2px;
  overflow: hidden;
  display: grid;
  transition: transform 160ms ease, box-shadow 160ms ease, z-index 0s;
}

.model-strip article:hover {
  z-index: 6;
  transform: translateY(-6px) scale(1.12);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.22);
}

.model-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.model-strip strong,
.model-strip span {
  padding: 0 12px;
}

.model-strip strong {
  padding-top: 12px;
  font-size: 15px;
}

.model-strip span {
  padding-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.offer-block ul {
  padding-left: 18px;
  margin-bottom: 0;
}

@media (max-width: 920px) and (min-width: 769px) {
  .site-header-inner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .header-action {
    display: none;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .advisor {
    min-height: auto;
  }

  .result-panel {
    position: static;
  }
}

@media (max-width: 768px) {
  :root {
    --shadow: 0 12px 34px rgba(0, 0, 0, 0.10);
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    padding-bottom: 112px;
    background: #f6f4f0;
    font-size: 16px;
    line-height: 1.5;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 40;
  }

  .site-header-inner {
    width: min(100% - 24px, 1180px);
    min-height: 72px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
  }

  .header-brand {
    width: 98px;
    height: 48px;
  }

  .header-brand img {
    width: 88px;
  }

  .header-copy strong {
    font-size: 18px;
    line-height: 1.1;
  }

  .header-copy span,
  .header-action {
    display: none;
  }

  .app-shell,
  .offer-sheet {
    width: min(100% - 20px, 1180px);
  }

  .app-shell {
    padding: 14px 0 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .advisor,
  .result-panel {
    display: contents;
    min-height: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .brand-row {
    order: 1;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 18px;
    display: block;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: var(--shadow);
  }

  .brand-mark {
    display: none;
  }

  .eyebrow {
    font-size: 12px;
    letter-spacing: 0.02em;
  }

  h1 {
    font-size: 34px;
    line-height: 1.05;
  }

  .progress-wrap {
    order: 1;
    width: calc(100% - 36px);
    margin: -8px 18px 0;
    padding: 0;
  }

  .intro-photo {
    order: 2;
    width: 100%;
    min-width: 0;
    height: 210px;
    margin: 0;
    border-radius: 6px;
    box-shadow: var(--shadow);
  }

  .intro-photo img {
    opacity: 0.84;
  }

  .intro-photo strong {
    font-size: 25px;
  }

  .value-grid {
    display: none;
  }

  .model-photo {
    order: 3;
    width: 100%;
    min-width: 0;
    height: 230px;
    margin: 0;
    border-radius: 6px;
    box-shadow: var(--shadow);
  }

  .result-panel > .eyebrow {
    order: 4;
    width: calc(100% - 36px);
    margin: 0 18px -10px;
  }

  #result-title {
    order: 4;
    width: calc(100% - 36px);
    margin: -8px 18px 0;
    font-size: 26px;
  }

  .recommendation {
    order: 4;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 18px;
    border-left-width: 6px;
    border-radius: 4px;
    box-shadow: var(--shadow);
  }

  .recommendation h3 {
    font-size: 20px;
    line-height: 1.18;
  }

  .recommendation p {
    font-size: 16px;
  }

  .logic-box {
    order: 15;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 16px;
    border-radius: 6px;
  }

  .price-list {
    order: 5;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: var(--shadow);
  }

  .price-list div {
    padding: 11px 0;
  }

  .price-list dt,
  .price-list dd {
    font-size: 15px;
  }

  .total-box {
    order: 5;
    width: 100%;
    min-width: 0;
    padding: 22px;
    border-radius: 6px;
    box-shadow: var(--shadow);
  }

  .total-box strong {
    font-size: 44px;
  }

  .trust-strip {
    order: 5;
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
    margin: 0;
  }

  .trust-strip span {
    min-height: 48px;
    font-size: 14px;
    border-radius: 4px;
  }

  .mobile-start-cta {
    order: 7;
    width: 100%;
    min-width: 0;
    min-height: 56px;
    padding: 0 18px;
    display: grid;
    place-items: center;
    background: var(--orange);
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-size: 17px;
    font-weight: 900;
    border-radius: 6px;
    box-shadow: 0 14px 30px rgba(245, 130, 32, 0.28);
  }

  .question-panel {
    order: 8;
    width: 100%;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .question-panel,
  .step,
  .choice-grid,
  .frame-grid,
  .fabric-grid,
  .toggle-list,
  .region-row {
    max-height: none;
    overflow: visible;
  }

  legend {
    font-size: 28px;
    line-height: 1.12;
  }

  .step {
    min-height: 0;
  }

  .choice-grid,
  .region-row,
  .offer-grid,
  .range-row,
  .frame-grid,
  .fabric-grid,
  .model-strip {
    grid-template-columns: 1fr;
  }

  .choice-grid,
  .toggle-list,
  .frame-grid,
  .fabric-grid {
    gap: 14px;
  }

  .choice-card,
  .toggle-list label,
  .frame-card,
  .fabric-card {
    min-height: 76px;
    padding: 18px;
    border-radius: 6px;
    font-size: 17px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
  }

  .frame-grid,
  .fabric-grid {
    padding: 2px 0 4px;
  }

  .choice-card span,
  .toggle-list label {
    font-size: 17px;
  }

  .choice-card small,
  .hint-line {
    font-size: 15px;
  }

  .choice-card:has(input:checked),
  .frame-card:has(input:checked),
  .fabric-card:has(input:checked) {
    border-color: var(--orange);
    background: #fff3e6;
    box-shadow: 0 12px 28px rgba(245, 130, 32, 0.14);
  }

  .range-row {
    gap: 14px;
    padding: 18px;
    border-radius: 6px;
  }

  output {
    min-height: 60px;
    font-size: 24px;
    border-radius: 6px;
  }

  .region-row input,
  .lead-grid input {
    min-height: 54px;
    padding: 0 14px;
    font-size: 16px;
    border-radius: 6px;
  }

  .button-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 22px;
  }

  button,
  .primary,
  .secondary,
  .offer-appointment-link {
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
    border-radius: 6px;
    font-size: 17px;
  }

  .secondary {
    order: 2;
  }

  .primary {
    order: 1;
    box-shadow: 0 12px 28px rgba(245, 130, 32, 0.24);
  }

  .frame-card {
    min-height: 0;
  }

  .frame-swatch {
    min-height: 86px;
    border-radius: 4px;
  }

  .fabric-card:hover,
  .model-strip article:hover,
  .choice-card:hover,
  .frame-card:hover {
    transform: translateY(-1px);
  }

  .fabric-swatch {
    min-height: 118px;
    border-radius: 4px;
  }

  .model-strip {
    order: 16;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .lead-box {
    order: 20;
    width: 100%;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .lead-box h3 {
    font-size: 24px;
  }

  .offer-sheet {
    padding: 18px;
    border-radius: 6px;
  }

  .offer-head {
    display: grid;
  }

  .mobile-price-bar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 50;
    min-height: 86px;
    padding: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    background: rgba(8, 8, 8, 0.92);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 4px solid var(--orange);
    border-radius: 10px;
    box-shadow: 0 -16px 38px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
  }

  .mobile-price-bar div {
    display: grid;
    gap: 3px;
  }

  .mobile-price-bar span {
    color: #d8d8d8;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .mobile-price-bar strong {
    font-size: 28px;
    line-height: 1;
  }

  .mobile-price-bar a {
    min-height: 54px;
    padding: 0 16px;
    display: grid;
    place-items: center;
    background: var(--orange);
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-size: 15px;
    font-weight: 900;
    border-radius: 7px;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 31px;
  }

  legend {
    font-size: 26px;
  }

  .intro-photo {
    height: 190px;
  }

  .model-photo {
    height: 210px;
  }

  .total-box strong {
    font-size: 40px;
  }
}

@media (max-width: 420px) {
  .site-header-inner {
    width: min(100% - 18px, 1180px);
  }

  h1 {
    font-size: 29px;
  }

  .mobile-price-bar {
    grid-template-columns: 1fr;
  }

  .mobile-price-bar a {
    width: 100%;
  }
}

@media print {
  body {
    background: #fff;
  }

  .app-shell,
  .print-hidden {
    display: none;
  }

  .offer-sheet {
    display: block;
    width: 100%;
    box-shadow: none;
    border: 0;
  }
}
