:root {
  --ink: #171512;
  --muted: #70685e;
  --paper: #f6f1e9;
  --warm: #fffaf1;
  --surface: rgba(255, 250, 241, 0.78);
  --forest: #18261f;
  --forest-2: #263229;
  --bronze: #b88a52;
  --title-accent: #d8a05f;
  --line: rgba(43, 32, 23, 0.12);
  --steam: #efe3cf;
  --shadow: 0 28px 90px rgba(35, 28, 20, 0.16);
}

.title-accent {
  color: var(--title-accent);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Inter", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(184, 138, 82, 0.16), transparent 30rem),
    linear-gradient(180deg, #f8f2e8 0%, var(--paper) 42%, #efe5d7 100%);
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

.shell {
  min-height: 100vh;
  padding-bottom: clamp(42px, 6vw, 92px);
}

.hero {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  padding: clamp(44px, 6vw, 74px) clamp(20px, 4vw, 56px) clamp(58px, 7vw, 88px);
  color: var(--warm);
  background: #10140f;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 12, 9, 0.86) 0%, rgba(8, 12, 9, 0.58) 46%, rgba(8, 12, 9, 0.22) 100%),
    linear-gradient(180deg, rgba(8, 12, 9, 0.18) 0%, rgba(8, 12, 9, 0.72) 100%),
    url("assets/payback-hero-bg.jpg") center / cover;
  transform: scale(1.02);
}

.topbar,
.hero-grid {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1380px;
  margin: 0 auto 86px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.scenario-pill {
  padding: 11px 16px;
  border: 1px solid rgba(255, 250, 241, 0.22);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.08);
  color: rgba(255, 250, 241, 0.82);
  backdrop-filter: blur(18px);
  font-size: 13px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-link {
  min-height: 42px;
  padding: 11px 15px;
  border: 1px solid rgba(255, 250, 241, 0.22);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.08);
  color: rgba(255, 250, 241, 0.88);
  text-decoration: none;
  backdrop-filter: blur(18px);
  font-size: 13px;
  font-weight: 800;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 560px);
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
  max-width: 1380px;
  margin: 0 auto;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--bronze);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(42px, 5.3vw, 76px);
  line-height: 1;
  letter-spacing: 0;
}

.lead {
  max-width: 630px;
  margin-bottom: 0;
  color: rgba(255, 250, 241, 0.8);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.45;
}

.summary-panel {
  border: 1px solid rgba(255, 250, 241, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 250, 241, 0.2), rgba(255, 250, 241, 0.08)),
    rgba(16, 20, 15, 0.54);
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 250, 241, 0.04);
  backdrop-filter: blur(26px);
  overflow: hidden;
}

.summary-primary {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 250, 241, 0.14);
}

.summary-primary span,
.summary-grid span,
.results-strip span,
.calc-card dt {
  display: block;
  color: rgba(255, 250, 241, 0.62);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-primary strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(44px, 7vw, 72px);
  line-height: 1;
}

.summary-primary small,
.summary-grid small,
.results-strip small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 250, 241, 0.56);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.summary-grid article {
  min-height: 98px;
  padding: 18px 22px;
  border-right: 1px solid rgba(255, 250, 241, 0.12);
  border-bottom: 1px solid rgba(255, 250, 241, 0.12);
}

.summary-grid article:nth-child(2n) {
  border-right: 0;
}

.summary-grid strong {
  display: block;
  margin-top: 10px;
  font-size: 26px;
  line-height: 1.1;
}

.results-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  position: sticky;
  top: 10px;
  z-index: 8;
  width: min(100% - 40px, 1380px);
  margin: -34px auto 0;
  overflow: hidden;
  border: 1px solid rgba(43, 32, 23, 0.12);
  border-radius: 8px;
  background: var(--line);
  box-shadow: 0 18px 54px rgba(35, 28, 20, 0.18);
}

.results-strip article {
  min-height: 90px;
  padding: 17px clamp(18px, 2.4vw, 32px);
  background: rgba(255, 250, 241, 0.96);
  backdrop-filter: blur(18px);
}

.results-strip span,
.calc-card dt {
  color: var(--muted);
}

.results-strip strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1;
}

.results-strip small {
  color: var(--muted);
}

.workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  max-width: 1380px;
  margin: 0 auto;
  padding: 34px clamp(18px, 3vw, 38px) clamp(72px, 8vw, 128px);
}

.controls,
.detail-card,
.calc-card,
.table-card,
.note,
.breakeven-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.78);
  box-shadow: 0 20px 70px rgba(35, 28, 20, 0.12);
  backdrop-filter: blur(20px);
}

.controls {
  position: relative;
  top: auto;
  max-height: none;
  overflow: visible;
  padding: clamp(22px, 3vw, 34px);
}

.panel-head {
  display: grid;
  grid-template-columns: minmax(240px, 440px) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 54px);
  align-items: end;
}

.panel-head::after {
  content: "Выберите группу параметров, затем меняйте ползунки. Итоги сверху остаются видимыми при прокрутке.";
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.panel-head h2,
.detail-card h2 {
  margin-bottom: 0;
  font-size: 26px;
  line-height: 1.1;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 22px 0;
  padding: 6px;
  border-radius: 8px;
  background: rgba(24, 38, 31, 0.08);
}

.tab {
  min-height: 46px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
}

.tab.is-active {
  background: var(--forest);
  color: var(--warm);
}

.control-group {
  display: none;
}

.control-group.is-active {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.control {
  display: grid;
  gap: 8px;
  min-height: 138px;
  align-content: start;
  padding: 16px;
  border: 1px solid rgba(43, 32, 23, 0.09);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.58);
}

.panel-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 13px 14px;
  border: 1px solid rgba(184, 138, 82, 0.22);
  border-radius: 8px;
  background: rgba(184, 138, 82, 0.08);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.control-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.control-label output {
  color: var(--bronze);
  white-space: nowrap;
}

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

input[type="range"]::-webkit-slider-thumb {
  cursor: pointer;
}

input[type="number"] {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.72);
  color: var(--ink);
  outline: none;
}

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

.detail-card {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 28px;
  padding: 30px;
  grid-column: 1 / -1;
}

.detail-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

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

.scenario-button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.68);
  color: var(--forest);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  box-shadow: 0 14px 36px rgba(35, 28, 20, 0.08);
}

.scenario-button span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(184, 138, 82, 0.16);
  color: var(--bronze);
  font-size: 11px;
}

.scenario-button.is-active {
  border-color: rgba(184, 138, 82, 0.42);
  background: var(--forest);
  color: var(--warm);
}

.scenario-button.is-active span {
  background: var(--bronze);
  color: var(--forest);
}

.matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  grid-column: 1 / -1;
}

.calc-card {
  padding: 28px;
}

.calc-card h3,
.table-card h3 {
  margin-bottom: 22px;
  font-size: 24px;
}

dl {
  display: grid;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

dl div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 58px;
  padding: 14px 16px;
  background: rgba(255, 250, 241, 0.72);
}

dd {
  margin: 0;
  font-weight: 800;
  white-space: nowrap;
}

.split-card {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 250, 241, 0.88), rgba(239, 227, 207, 0.54));
  box-shadow: var(--shadow);
  grid-column: 1 / -1;
}

.split-card h3 {
  margin-bottom: 0;
  font-size: 24px;
}

.split-visual {
  position: relative;
  grid-column: 2;
  height: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(24, 38, 31, 0.16);
}

.split-visual span {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--bronze), #dfbf89);
  transition: width 180ms ease;
}

.split-labels {
  display: flex;
  grid-column: 2;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.split-labels strong {
  color: var(--forest);
}

.cost-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
  grid-column: 1 / -1;
}

.cost-map article {
  min-height: 128px;
  padding: 22px;
  background: rgba(255, 250, 241, 0.82);
}

.cost-map span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cost-map strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
}

.cost-map small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
}

.breakeven-card {
  display: grid;
  gap: 20px;
  padding: 28px;
  grid-column: 1 / -1;
}

.breakeven-card h3 {
  margin-bottom: 0;
  font-size: 24px;
}

.breakeven-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.breakeven-grid article {
  min-height: 116px;
  padding: 18px;
  background: rgba(255, 250, 241, 0.78);
}

.breakeven-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breakeven-grid strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1;
}

.breakeven-grid small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.breakeven-line {
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(24, 38, 31, 0.14);
}

.breakeven-line span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c25f47, var(--bronze), #78a06c);
  transition: width 180ms ease;
}

.breakeven-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.table-card {
  overflow: hidden;
  grid-column: 1 / -1;
}

.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 28px 18px;
}

.table-head h3 {
  margin-bottom: 0;
}

.table-head span {
  color: var(--muted);
  font-size: 13px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td:not(:first-child),
th:not(:first-child) {
  text-align: right;
}

tbody tr:last-child {
  background: rgba(239, 227, 207, 0.56);
  font-weight: 800;
}

.note {
  padding: 22px 26px;
  color: var(--muted);
  line-height: 1.45;
  grid-column: 1 / -1;
}

.note strong {
  color: var(--forest);
}

.export-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 16px;
  border: 1px solid rgba(184, 138, 82, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(24, 38, 31, 0.96), rgba(38, 50, 41, 0.92)),
    var(--forest);
  box-shadow: var(--shadow);
  grid-column: 1 / -1;
}

.export-footer-button {
  min-height: 48px;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--bronze);
  color: var(--forest);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}

.lead-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  padding: clamp(30px, 4vw, 48px);
  border: 1px solid rgba(184, 138, 82, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 10% 0%, rgba(184, 138, 82, 0.18), transparent 28rem),
    linear-gradient(135deg, rgba(255, 250, 241, 0.9), rgba(239, 227, 207, 0.72)),
    var(--warm);
  box-shadow: var(--shadow);
  grid-column: 1 / -1;
}

.lead-cta h2 {
  max-width: 660px;
  margin-bottom: 14px;
  color: var(--forest);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.08;
}

.lead-cta p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.lead-actions {
  display: grid;
  gap: 12px;
  justify-content: stretch;
  padding: 18px;
  border: 1px solid rgba(24, 38, 31, 0.08);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.56);
}

.lead-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--warm);
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 16px 42px rgba(24, 38, 31, 0.18);
}

.lead-actions a:last-child {
  background: var(--bronze);
  color: var(--forest);
  box-shadow: 0 14px 34px rgba(184, 138, 82, 0.22);
}

.calc-lead-dialog {
  width: min(520px, calc(100vw - 28px));
  padding: 0;
  border: 1px solid rgba(184, 138, 82, 0.28);
  border-radius: 8px;
  background: #10140f;
  color: var(--warm);
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.36);
}

.calc-lead-dialog::backdrop {
  background: rgba(7, 6, 4, 0.72);
  backdrop-filter: blur(14px);
}

.calc-lead-form {
  display: grid;
  gap: 16px;
  padding: 32px;
}

.calc-lead-form h2 {
  margin: 0;
  color: var(--warm);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 8vw, 62px);
  line-height: 0.94;
}

.calc-lead-form p {
  margin: 0;
  color: rgba(255, 250, 241, 0.72);
  line-height: 1.5;
}

.calc-lead-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 250, 241, 0.84);
  font-size: 14px;
  font-weight: 800;
}

.calc-lead-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 250, 241, 0.18);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.08);
  color: var(--warm);
  outline: none;
}

.calc-lead-form input::placeholder {
  color: rgba(255, 250, 241, 0.46);
}

.calc-lead-form button {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: var(--bronze);
  color: var(--forest);
  cursor: pointer;
  font-weight: 900;
}

.calc-lead-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 250, 241, 0.16);
  border-radius: 50%;
  background: rgba(255, 250, 241, 0.08);
  color: var(--warm);
  cursor: pointer;
  font-size: 22px;
}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  body {
    background: #fffaf1;
    color: #171512;
  }

  .hero {
    min-height: auto;
    padding: 0 0 18px;
    color: #171512;
    background: #fffaf1;
  }

  .hero-bg,
  .controls,
  .detail-card,
  .scenario-bar,
  .matrix,
  .split-card,
  .cost-map,
  .breakeven-card,
  .export-footer {
    display: none !important;
  }

  .topbar {
    margin: 0 0 16px;
  }

  .brand,
  .top-link {
    color: #171512;
  }

  .top-link {
    border-color: rgba(43, 32, 23, 0.16);
    background: transparent;
  }

  .hero-grid,
  .workspace {
    display: block;
    padding: 0;
  }

  .hero-copy {
    max-width: none;
    margin-bottom: 14px;
  }

  .hero-copy h1 {
    max-width: 760px;
    margin-bottom: 10px;
    font-size: 34px;
    line-height: 1.06;
  }

  .lead {
    max-width: 760px;
    color: #70685e;
    font-size: 13px;
  }

  .summary-panel,
  .table-card,
  .results-strip article {
    box-shadow: none;
    break-inside: avoid;
  }

  .summary-panel {
    color: #171512;
    border: 1px solid rgba(43, 32, 23, 0.14);
    background: #fffaf1;
  }

  .summary-primary,
  .summary-grid article {
    border-color: rgba(43, 32, 23, 0.12);
  }

  .summary-primary span,
  .summary-grid span,
  .summary-primary small {
    color: #70685e;
  }

  .summary-primary {
    padding: 18px;
  }

  .summary-primary strong {
    font-size: 42px;
  }

  .summary-grid strong {
    font-size: 22px;
  }

  .summary-grid article {
    min-height: 76px;
    padding: 14px 16px;
  }

  .results-strip {
    grid-template-columns: repeat(4, 1fr);
    margin: 14px 0;
    border: 1px solid rgba(43, 32, 23, 0.12);
  }

  .results-strip article {
    min-height: 78px;
    padding: 13px;
  }

  .results-strip strong {
    font-size: 22px;
  }

  .detail {
    display: block;
  }

  .table-card {
    margin-top: 14px;
    border: 1px solid rgba(43, 32, 23, 0.12);
  }

  .table-head {
    padding: 16px 16px 8px;
  }

  th,
  td {
    padding: 10px 11px;
    font-size: 11px;
  }

  .table-card::after {
    content: "ПАРОВАРНЯ · +7 964 404-46-56 · Telegram: @alleriya_m";
    display: block;
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 18px;
    background: #18261f;
    color: #fffaf1;
    font: 800 15px "Avenir Next", Arial, sans-serif;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .detail-card,
  .split-card,
  .lead-cta {
    grid-template-columns: 1fr;
  }

  .lead-actions {
    justify-content: flex-start;
  }

  .split-visual,
  .split-labels {
    grid-column: auto;
  }

  .matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-head {
    grid-template-columns: 1fr;
  }

  .tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .control-group.is-active {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: auto;
    padding-top: 22px;
    padding-bottom: 28px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 46px;
  }

  .top-actions {
    justify-content: flex-start;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero-copy h1 {
    font-size: clamp(38px, 12vw, 52px);
    line-height: 1;
  }

  .lead {
    font-size: 17px;
  }

  .summary-primary {
    padding: 22px;
  }

  .summary-primary strong {
    font-size: clamp(42px, 12vw, 58px);
  }

  .lead-cta {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .lead-actions {
    padding: 12px;
    border-radius: 18px;
  }

  .lead-actions a {
    min-height: 50px;
    padding-inline: 16px;
    white-space: normal;
    text-align: center;
  }

  .summary-grid,
  .results-strip,
  .matrix,
  .breakeven-grid,
  .cost-map,
  .scenario-bar {
    grid-template-columns: 1fr;
  }

  .results-strip {
    position: static;
    width: calc(100% - 20px);
    margin-top: -18px;
  }

  .results-strip article {
    min-height: 92px;
    padding: 18px;
  }

  .workspace {
    padding-inline: 14px;
  }

  .tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .control-group.is-active {
    grid-template-columns: 1fr;
  }

  .control {
    min-height: 0;
  }

  .table-card {
    overflow-x: auto;
  }

  table {
    min-width: 920px;
  }
}
