:root {
  --charcoal: #1e2328;
  --charcoal-2: #14181c;
  --steel: #6b7280;
  --light: #f4f6f8;
  --line: #d9dee5;
  --orange: #f97316;
  --orange-dark: #c54f08;
  --blue: #0f2a3d;
  --white: #ffffff;
  --max: 1160px;
  --radius: 8px;
  --shadow: 0 18px 45px rgba(15, 42, 61, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-bottom: 110px;
}

body {
  margin: 0;
  color: var(--charcoal);
  font-family: Inter, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--white);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.site-header .container {
  width: min(100% - 32px, 1280px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0;
  background: linear-gradient(135deg, var(--charcoal), var(--blue));
  border: 2px solid rgba(249, 115, 22, 0.9);
}

.brand-logo {
  width: 112px;
  height: 58px;
  object-fit: contain;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.brand-name {
  display: block;
  color: var(--charcoal);
  font-weight: 800;
  line-height: 1.1;
}

.brand-subtitle {
  display: block;
  color: var(--steel);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 8px;
  color: var(--charcoal);
  font-weight: 700;
  font-size: 0.86rem;
  border-radius: 6px;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--orange-dark);
  background: #fff3eb;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  min-width: 210px;
  padding: 8px;
  margin: 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.nav-item:hover .submenu,
.nav-item:focus-within .submenu {
  display: block;
}

.submenu a {
  width: 100%;
}

.submenu-note {
  display: block;
  padding: 8px 10px 4px;
  color: var(--steel);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-link {
  color: var(--charcoal);
  font-weight: 800;
  font-size: 0.86rem;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 15px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.portal-dashboard {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.portal-sidebar {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 18px;
  color: var(--white);
  background: var(--charcoal);
}

.portal-sidebar a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  border-radius: 6px;
}

.portal-sidebar a:hover,
.portal-sidebar a.is-active {
  color: var(--white);
  background: rgba(249, 115, 22, 0.18);
}

.portal-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px 16px;
  margin-bottom: 8px;
  font-weight: 900;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.portal-logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.portal-workspace {
  min-width: 0;
  padding: 24px;
  background: #f8fafc;
}

.portal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.portal-toolbar h2 {
  margin: 0;
}

.portal-actions {
  display: flex;
  gap: 10px;
}

.portal-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.portal-stat {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.portal-stat strong {
  color: var(--blue);
  font-size: 1.9rem;
  line-height: 1;
}

.portal-stat span {
  color: var(--steel);
  font-size: 0.9rem;
  font-weight: 800;
}

.portal-table {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.portal-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.85fr 0.75fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}

.portal-row:first-child {
  border-top: 0;
}

.portal-row-head {
  color: var(--steel);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #f1f5f9;
}

.status-pill {
  justify-self: start;
  padding: 6px 9px;
  color: #92400e;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
  background: #ffedd5;
  border-radius: 999px;
}

.status-pill.warning {
  color: #991b1b;
  background: #fee2e2;
}

.status-pill.done {
  color: #166534;
  background: #dcfce7;
}

.portal-form input:disabled,
.portal-form button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.offer-card .feature-list {
  margin-top: 16px;
}

.case-grid {
  display: grid;
  gap: 24px;
}

.case-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  min-height: 260px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.case-photo {
  display: grid;
  place-items: center;
  min-height: 240px;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--charcoal), var(--blue));
}

.case-body {
  padding: 28px;
}

@media (max-width: 1220px) {
  .brand-subtitle {
    display: none;
  }

  .header-actions .btn {
    display: none;
  }
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--white);
  background: var(--orange);
}

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

.btn-secondary {
  color: var(--charcoal);
  background: var(--white);
  border-color: var(--charcoal);
}

.btn-secondary:hover {
  border-color: var(--orange);
}

.btn-dark {
  color: var(--white);
  background: var(--charcoal);
}

.hero {
  position: relative;
  min-height: 760px;
  color: var(--white);
  background: var(--charcoal-2);
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(20, 24, 28, 0.96) 0%, rgba(20, 24, 28, 0.86) 34%, rgba(20, 24, 28, 0.38) 64%, rgba(20, 24, 28, 0.12) 100%),
    url("../images/industrial-boiler-hero.webp") center / cover no-repeat;
}

.hero > .container {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: start;
  min-height: 760px;
  padding: 108px 0 180px;
}

.hero-content {
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: #ffbd8a;
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 32px;
  height: 2px;
  background: var(--orange);
  content: "";
}

h1,
h2,
h3 {
  margin: 0;
  color: inherit;
  font-family: Montserrat, Inter, Arial, sans-serif;
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.55rem, 6vw, 4.9rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.18rem;
}

.lead {
  margin: 22px 0 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.service-strip {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  color: var(--white);
  background: rgba(15, 42, 61, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.service-strip .container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 82px;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  font-weight: 800;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.strip-item:first-child {
  border-left: 0;
}

.section {
  padding: 88px 0;
}

.section-light {
  background: var(--light);
}

.section-dark {
  color: var(--white);
  background: var(--charcoal);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 36px;
}

.section-head p,
.muted {
  color: var(--steel);
}

.section-dark .section-head p,
.section-dark .muted {
  color: rgba(255, 255, 255, 0.76);
}

.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 22px;
}

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

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

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

.card {
  min-height: 100%;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(15, 42, 61, 0.06);
}

.card p {
  margin: 12px 0 0;
  color: var(--steel);
}

.template-link-card {
  display: block;
  color: var(--charcoal);
  border-top: 4px solid var(--orange);
}

.template-link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: var(--orange);
  background: #fff3eb;
  border: 1px solid #fed7bd;
  border-radius: var(--radius);
}

.icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.list-panel {
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  font-weight: 700;
}

.check-list li::before {
  position: absolute;
  top: 0.1em;
  left: 0;
  color: var(--orange);
  content: "✓";
}

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

.industry-pill {
  min-height: 68px;
  padding: 16px;
  color: var(--charcoal);
  font-weight: 800;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
}

.safety-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.45fr);
  gap: 36px;
  align-items: center;
  padding: 42px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--charcoal));
  border-radius: var(--radius);
}

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

.stat {
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
}

.stat strong {
  display: block;
  color: #ffbd8a;
  font-size: 1.45rem;
  line-height: 1.1;
}

.cta {
  padding: 64px 0;
  color: var(--white);
  background: var(--charcoal-2);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.page-hero {
  padding: 86px 0 64px;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(20, 24, 28, 0.98), rgba(15, 42, 61, 0.9)),
    url("../images/industrial-boiler-hero.webp") center / cover no-repeat;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
}

.service-detail {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.service-detail:last-child {
  border-bottom: 0;
}

.service-detail .icon {
  margin-bottom: 0;
}

.about-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 0.5fr);
  gap: 44px;
}

.feature-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.form {
  display: grid;
  gap: 16px;
}

.form button[type="submit"] {
  scroll-margin-bottom: 120px;
}

.calculator-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 24px;
  align-items: start;
}

.calculator-app {
  display: grid;
  grid-template-columns: minmax(210px, 0.42fr) minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 24px;
  align-items: start;
}

.calculator-menu {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: var(--charcoal);
  border-radius: var(--radius);
}

.calculator-menu button {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  color: var(--white);
  font: inherit;
  font-weight: 800;
  text-align: left;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  cursor: pointer;
}

.calculator-menu button:hover,
.calculator-menu button.is-active {
  color: var(--charcoal);
  background: var(--white);
}

.calculator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.timer-box {
  display: grid;
  min-height: 76px;
  place-items: center;
  color: var(--white);
  font-size: 2rem;
  font-weight: 900;
  background: var(--blue);
  border-radius: var(--radius);
}

.result-lines {
  display: grid;
  gap: 8px;
}

.result-box {
  min-height: 180px;
  padding: 24px;
  color: var(--white);
  background: var(--blue);
  border-radius: var(--radius);
}

.result-box strong {
  display: block;
  color: #ffbd8a;
  font-size: 2rem;
  line-height: 1.1;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--charcoal);
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--charcoal);
  font: inherit;
  background: var(--white);
  border: 1px solid #cfd6df;
  border-radius: var(--radius);
}

textarea {
  min-height: 144px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(249, 115, 22, 0.2);
  border-color: var(--orange);
}

.form-note {
  margin: 0;
  color: var(--steel);
  font-size: 0.92rem;
}

.template-page {
  background: #eef2f6;
}

.template-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 18px;
}

.report-sheet {
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-width: 960px;
  min-height: 1280px;
  margin: 0 auto;
  padding: 24px 28px;
  color: #111827;
  font-size: 0.82rem;
  line-height: 1.32;
  background: var(--white);
  border: 1px solid #cfd6df;
  border-radius: 2px;
  box-shadow: 0 18px 42px rgba(15, 42, 61, 0.12);
}

.report-body {
  align-self: stretch;
}

.report-footer {
  align-self: end;
  padding-top: 10px;
  border-top: 1px solid #cfd6df;
}

.report-footer-note {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
}

.report-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--charcoal);
}

.report-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 56%;
}

.report-brand img {
  width: 70px;
  height: auto;
}

.report-brand strong,
.report-title h1 {
  display: block;
  margin: 0;
  color: var(--charcoal);
  font-family: var(--font-display);
  font-weight: 900;
}

.report-brand span,
.report-title p {
  display: block;
  margin: 2px 0 0;
  color: var(--steel);
  font-weight: 700;
}

.report-title {
  text-align: right;
}

.report-title h1 {
  color: var(--blue);
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: 0;
}

.report-grid {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

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

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

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

.report-grid > div,
.report-block {
  padding: 8px 9px;
  background: #fbfcfd;
  border: 1px solid #d8e0e8;
  border-radius: 2px;
}

.report-grid span,
.invoice-meta span {
  display: block;
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.report-grid strong,
.invoice-meta strong {
  display: block;
  margin-top: 2px;
  color: var(--charcoal);
}

.report-block {
  margin-bottom: 10px;
}

.report-block.compact {
  margin-bottom: 0;
}

.report-block h2 {
  margin: 0 0 7px;
  color: var(--blue);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.report-block p {
  margin: 0;
  color: #334155;
}

.report-checks {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 20px;
}

.report-text-box {
  min-height: 76px;
  padding: 9px;
  color: #64748b;
  background: var(--white);
  border: 1px dashed #b8c3cf;
  border-radius: 2px;
}

.report-text-box.small {
  min-height: 62px;
}

.report-signatures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 4px;
}

.report-signatures div {
  min-height: 46px;
  border-bottom: 2px solid #1f2937;
}

.report-signatures span {
  display: block;
  margin-top: 29px;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 800;
}

.template-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
  overflow: hidden;
  font-size: 0.74rem;
}

.template-table th,
.template-table td {
  padding: 6px 7px;
  text-align: left;
  vertical-align: top;
  border: 1px solid #dbe3ec;
}

.template-table th {
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--charcoal);
}

.template-table td {
  min-height: 26px;
  background: var(--white);
}

.checklist-table th:nth-child(2),
.checklist-table th:nth-child(3),
.checklist-table th:nth-child(4),
.checklist-table td:nth-child(2),
.checklist-table td:nth-child(3),
.checklist-table td:nth-child(4) {
  width: 62px;
  text-align: center;
}

.checklist-table {
  font-size: 0.68rem;
}

.checklist-table th,
.checklist-table td {
  padding: 4px 5px;
}

.invoice-meta {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 5px 12px;
}

.invoice-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: start;
}

.invoice-totals {
  display: grid;
  gap: 0;
  border: 1px solid #dbe3ec;
}

.invoice-totals div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 10px;
  background: var(--white);
  border-bottom: 1px solid #dbe3ec;
}

.invoice-totals div:last-child {
  border-bottom: 0;
}

.invoice-totals span {
  color: var(--steel);
  font-weight: 800;
}

.invoice-totals strong {
  color: var(--charcoal);
}

.invoice-totals .grand-total {
  color: var(--white);
  background: var(--charcoal);
}

.invoice-totals .grand-total span,
.invoice-totals .grand-total strong {
  color: var(--white);
}

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

  body {
    background: var(--white);
  }

  .site-header,
  .site-footer,
  .mobile-bar,
  .template-actions {
    display: none !important;
  }

  .section {
    padding: 0;
  }

  .container {
    width: 100%;
    max-width: none;
  }

  .report-sheet {
    max-width: none;
    min-height: calc(297mm - 16mm);
    padding: 0;
    font-size: 9.4px;
    line-height: 1.18;
    border: 0;
    box-shadow: none;
  }

  .report-header {
    padding-bottom: 8px;
    margin-bottom: 7px;
  }

  .report-brand img {
    width: 46px;
  }

  .report-title h1 {
    font-size: 18px;
  }

  .report-grid {
    gap: 4px;
    margin-bottom: 6px;
  }

  .report-grid > div,
  .report-block {
    padding: 5px 6px;
  }

  .report-block {
    margin-bottom: 6px;
  }

  .report-block h2 {
    margin-bottom: 4px;
    font-size: 9.5px;
  }

  .report-text-box {
    min-height: 42px;
    padding: 5px;
  }

  .report-text-box.small {
    min-height: 38px;
  }

  .template-table {
    margin-bottom: 6px;
    font-size: 8.2px;
  }

  .template-table th,
  .template-table td {
    padding: 3px 4px;
  }

  .checklist-table {
    font-size: 7.5px;
  }

  .checklist-table th,
  .checklist-table td {
    padding: 2px 3px;
  }

  .report-signatures {
    gap: 18px;
    margin-top: 8px;
  }

  .report-signatures div {
    min-height: 30px;
  }

  .report-signatures span {
    margin-top: 18px;
    font-size: 7.5px;
  }

  .report-checks {
    gap: 1px;
  }

  .invoice-summary {
    gap: 8px;
  }

  .invoice-totals div {
    padding: 5px 7px;
  }

  .template-table tr,
  .template-table th,
  .template-table td {
    break-inside: avoid;
  }
}

.success-message {
  display: none;
  padding: 16px;
  color: #13562b;
  font-weight: 800;
  background: #e9f8ee;
  border: 1px solid #a7e1b8;
  border-radius: var(--radius);
}

.success-message.is-visible {
  display: block;
}

.message-status-wrap {
  position: relative;
  z-index: 2;
}

.message-status {
  margin: 18px 0 0;
}

.error-message {
  display: none;
  padding: 16px;
  color: #7c1d1d;
  font-weight: 800;
  background: #fff0f0;
  border: 1px solid #f0b4b4;
  border-radius: var(--radius);
}

.error-message.is-visible {
  display: block;
}

.hidden-field {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  min-height: 0;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(50%);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 82px;
  z-index: 100;
  max-width: min(360px, calc(100vw - 36px));
  padding: 13px 15px;
  color: var(--white);
  font-weight: 800;
  line-height: 1.35;
  background: var(--charcoal);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-card {
  padding: 28px;
  color: var(--white);
  background: var(--blue);
  border-radius: var(--radius);
}

.contact-card a {
  color: var(--white);
  font-weight: 800;
}

.contact-line {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-line:last-child {
  border-bottom: 0;
}

.parts-search {
  display: grid;
  gap: 8px;
  color: var(--charcoal);
  font-weight: 800;
}

.parts-finder {
  display: grid;
  gap: 14px;
  padding: 18px;
  margin-bottom: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(15, 42, 61, 0.05);
}

.parts-filter-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(180px, 1fr) minmax(180px, 1fr);
  gap: 12px;
}

.parts-finder-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.parts-toggle {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
  color: var(--charcoal);
  font-weight: 800;
}

.parts-toggle input {
  width: 18px;
  min-height: 18px;
}

.parts-result-note {
  margin: 0;
  color: var(--steel);
  font-size: 0.92rem;
  font-weight: 700;
}

.parts-empty-state {
  padding: 28px;
  color: var(--steel);
  background: var(--white);
  border: 1px dashed #cfd6df;
  border-radius: var(--radius);
}

.parts-empty-state h3 {
  margin: 0 0 8px;
  color: var(--charcoal);
}

.parts-empty-state p {
  margin: 0;
}

.parts-catalogue-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

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

.part-photo {
  display: grid;
  place-items: center;
  width: 58px;
  aspect-ratio: 1;
  color: var(--blue);
  background: #fff3eb;
  border: 1px solid #fed7bd;
  border-radius: var(--radius);
}

.part-photo span {
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.part-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) minmax(142px, 0.22fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(15, 42, 61, 0.05);
}

.part-main {
  min-width: 0;
}

.part-main h3 {
  margin-bottom: 8px;
  color: var(--charcoal);
  font-family: Inter, Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.part-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
}

.part-meta div {
  min-width: 0;
}

.part-meta dt {
  color: var(--steel);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.part-meta dd {
  margin: 0;
  color: var(--charcoal);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.part-meta code {
  font-size: 0.76rem;
  white-space: normal;
}

.part-actions {
  display: grid;
  gap: 8px;
  justify-items: stretch;
}

.price-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  color: #13562b;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
  background: #e9f8ee;
  border: 1px solid #a7e1b8;
  border-radius: 999px;
}

.part-select {
  min-height: 38px;
  padding: 8px 11px;
  color: var(--white);
  font: inherit;
  font-weight: 900;
  background: var(--orange);
  border: 1px solid var(--orange);
  border-radius: var(--radius);
  cursor: pointer;
}

.part-select.is-selected {
  background: var(--blue);
  border-color: var(--blue);
}

.parts-request-panel {
  position: sticky;
  top: 104px;
  max-height: calc(100vh - 128px);
  overflow-y: hidden;
  overscroll-behavior: contain;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.parts-request-panel:hover,
.parts-request-panel:focus-within {
  overflow-y: auto;
}

.parts-request-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.parts-request-head h2 {
  font-size: 1.45rem;
}

.btn-compact {
  min-height: 38px;
  padding: 9px 12px;
}

.site-footer {
  padding: 48px 0 92px;
  color: rgba(255, 255, 255, 0.78);
  background: var(--charcoal);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  font-weight: 800;
}

.footer-credit {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  text-align: right;
}

.mobile-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 70;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(15, 42, 61, 0.12);
}

.mobile-bar a {
  display: grid;
  place-items: center;
  min-height: 58px;
  color: var(--charcoal);
  font-size: 0.84rem;
  font-weight: 900;
  border-left: 1px solid var(--line);
}

.mobile-bar a:first-child {
  color: var(--white);
  background: var(--orange);
  border-left: 0;
}

@media (max-width: 980px) {
  .header-actions,
  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header.is-open .site-nav {
    position: absolute;
    top: 84px;
    right: 0;
    left: 0;
    display: block;
    padding: 12px 16px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .site-header.is-open .nav-list {
    display: grid;
    gap: 4px;
  }

  .site-header.is-open .nav-item {
    display: grid;
  }

  .site-header.is-open .submenu {
    position: static;
    display: grid;
    min-width: 0;
    box-shadow: none;
    border-color: var(--line);
  }

  .site-header.is-open .nav-list a {
    min-height: 48px;
  }

  .hero,
  .hero > .container {
    min-height: 650px;
  }

  .service-strip .container,
  .grid-4,
  .grid-3,
  .portal-login-grid,
  .case-card,
  .industries {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-dashboard {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .portal-logo {
    grid-column: 1 / -1;
  }

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

  .report-grid-3,
  .report-grid-4,
  .invoice-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head,
  .safety-panel,
  .about-layout,
  .contact-layout,
  .parts-filter-row,
  .parts-catalogue-layout {
    grid-template-columns: 1fr;
  }

  .parts-request-panel {
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  .part-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .part-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  .parts-finder-actions {
    display: grid;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  .header-inner {
    min-height: 72px;
    gap: 8px;
  }

  .brand {
    min-width: 0;
    gap: 8px;
  }

  .brand > span {
    min-width: 0;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-logo {
    width: 88px;
    height: 46px;
    flex: 0 0 auto;
  }

  .brand-subtitle {
    font-size: 0.62rem;
  }

  .nav-toggle {
    flex: 0 0 44px;
  }

  .site-header.is-open .site-nav {
    top: 72px;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(20, 24, 28, 0.96) 0%, rgba(20, 24, 28, 0.86) 52%, rgba(20, 24, 28, 0.38) 100%),
      url("../images/industrial-boiler-hero.webp") 68% center / cover no-repeat;
  }

  .hero > .container {
    min-height: auto;
    padding: 66px 0 340px;
  }

  .lead {
    font-size: 1rem;
  }

  .hero-actions,
  .cta-inner {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .service-strip {
    position: relative;
  }

  .service-strip .container,
  .grid-4,
  .grid-3,
  .grid-2,
  .calculator-panel,
  .calculator-app,
  .portal-login-grid,
  .portal-sidebar,
  .portal-stat-grid,
  .case-card,
  .industries,
  .check-list,
  .stats,
  .form-row,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-credit {
    text-align: left;
  }

  .portal-workspace {
    padding: 16px;
  }

  .portal-toolbar,
  .portal-actions {
    display: grid;
  }

  .portal-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .portal-row-head {
    display: none;
  }

  .template-actions,
  .report-header,
  .report-signatures,
  .report-grid-2,
  .report-grid-3,
  .report-grid-4,
  .invoice-summary {
    display: grid;
    grid-template-columns: 1fr;
  }

  .report-sheet {
    padding: 14px;
    font-size: 0.72rem;
  }

  .report-title {
    text-align: left;
  }

  .report-header {
    display: flex;
    gap: 10px;
  }

  .report-brand {
    gap: 8px;
    max-width: 58%;
  }

  .report-brand img {
    width: 50px;
  }

  .report-brand strong {
    font-size: 0.78rem;
  }

  .report-brand span,
  .report-title p {
    font-size: 0.65rem;
  }

  .report-title h1 {
    font-size: 1.05rem;
  }

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

  .template-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 0.68rem;
  }

  .invoice-meta {
    grid-template-columns: 1fr;
  }

  .strip-item {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .strip-item:first-child {
    border-top: 0;
  }

  .section {
    padding: 64px 0;
  }

  .contact-layout .list-panel {
    padding-bottom: 118px;
  }

  .contact-layout .form {
    padding-bottom: 88px;
  }

  .contact-layout .form button[type="submit"] {
    margin-top: 8px;
    margin-bottom: 32px;
  }

  input,
  textarea,
  select,
  button {
    scroll-margin-bottom: 132px;
  }

  .section-head {
    gap: 16px;
    margin-bottom: 26px;
  }

  .part-card {
    grid-template-columns: 1fr;
  }

  .part-photo {
    width: 54px;
  }

  .part-meta {
    grid-template-columns: 1fr 1fr;
  }

  .list-panel,
  .safety-panel {
    padding: 26px;
  }

  .cta {
    padding: 48px 0;
  }

  .site-footer {
    padding-bottom: 88px;
  }

  .mobile-bar {
    display: grid;
  }
}
