/*
Theme Name: NextGen Smart Home SEO 1.1.2
Theme URI: https://ng-home.ru/
Author: NextGen
Description: NextGen smart home site styled as a clean product landing page.
Version: 1.1.2
Text Domain: nextgen-apple-style
*/

:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #fbfbfd;
  --surface-dark: #1d1d1f;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --subtle: #86868b;
  --line: rgba(29, 29, 31, 0.12);
  --line-strong: rgba(29, 29, 31, 0.22);
  --accent: #0071e3;
  --accent-dark: #005bb8;
  --accent-soft: #e8f2ff;
  --success: #2d7d5f;
  --danger: #b42318;
  --radius-lg: 8px;
  --radius-md: 6px;
  --shadow-soft: 0 22px 70px rgba(0, 0, 0, 0.08);
  --shadow-tight: 0 12px 30px rgba(0, 0, 0, 0.08);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(29, 29, 31, 0.035) 1px, transparent 1px);
  background-size: 100% 52px;
  opacity: 0.34;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 0 max(18px, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(29, 29, 31, 0.08);
  background: rgba(245, 245, 247, 0.82);
  backdrop-filter: saturate(180%) blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-logo {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
  filter: invert(1);
  transition: filter 0.24s var(--ease), opacity 0.24s var(--ease);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 14px;
  line-height: 1.1;
  font-weight: 700;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: #3d3d40;
  font-size: 12px;
  line-height: 1;
  transition: color 0.28s var(--ease), background 0.28s var(--ease), transform 0.28s var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
}

.theme-switcher {
  padding: 3px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
}

.theme-switcher button {
  min-height: 28px;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
  font-weight: 650;
  transition: color 0.24s var(--ease), background 0.24s var(--ease), transform 0.24s var(--ease);
}

.theme-switcher button:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.theme-switcher button.is-active {
  color: #fff;
  background: var(--text);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 17px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.32s var(--ease), opacity 0.32s var(--ease);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

main {
  position: relative;
}

.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 112px 0;
  scroll-margin-top: 96px;
}

.hero {
  width: min(var(--max), calc(100% - 36px));
  min-height: calc(100dvh - 58px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(0, 1.48fr);
  align-items: center;
  justify-items: stretch;
  gap: clamp(44px, 4vw, 60px);
  padding: 72px 0 80px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  text-align: left;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  overflow-wrap: break-word;
  text-wrap: balance;
}

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

h1 {
  max-width: 560px;
  margin: 0 0 22px;
  font-size: 62px;
  line-height: 1;
  font-weight: 760;
  letter-spacing: 0;
}

.hero-copy h1 {
  overflow-wrap: normal;
  word-break: normal;
  font-size: clamp(54px, 4vw, 60px);
}

h2 {
  margin-bottom: 0;
  font-size: 58px;
  line-height: 1.04;
  font-weight: 760;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-size: 26px;
  line-height: 1.12;
  font-weight: 720;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 540px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.48;
}

.hero-tagline {
  max-width: 540px;
  margin: -8px 0 22px;
  color: var(--accent);
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.12;
  font-weight: 720;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 38px;
}

.section-heading.compact {
  max-width: 700px;
}

.section-heading p,
.why-intro p,
.request-copy p,
.wiring-card p,
.service-card p,
.proof-copy p,
.article-content p,
.case-details p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 620;
  line-height: 1.2;
  transition:
    color 0.28s var(--ease),
    background 0.28s var(--ease),
    border-color 0.28s var(--ease),
    box-shadow 0.28s var(--ease),
    transform 0.28s var(--ease);
  will-change: transform;
}

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

.button:active {
  transform: translateY(1px) scale(0.98);
}

.button-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 24px rgba(0, 113, 227, 0.22);
}

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

.button-secondary {
  color: var(--accent);
  border-color: rgba(0, 113, 227, 0.24);
  background: rgba(255, 255, 255, 0.72);
}

.button-secondary:hover {
  border-color: rgba(0, 113, 227, 0.42);
  background: #fff;
}

.hero-visual {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(300px, 340px);
  align-items: center;
  gap: 24px;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: relative;
  z-index: 0;
  grid-column: 1;
  width: 100%;
  min-height: 600px;
  background: url("assets/preza-images/cards/nextgen-panel-transparent-card.webp") center / contain no-repeat;
  filter: drop-shadow(0 38px 60px rgba(29, 29, 31, 0.18));
  animation: productFloat 7s var(--ease) infinite;
}

.hero-visual::after {
  display: none;
}

.visual-panel {
  position: relative;
  right: auto;
  top: auto;
  bottom: auto;
  grid-column: 2;
  width: 100%;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: saturate(180%) blur(28px);
  box-shadow: var(--shadow-soft);
  transform: none;
}

.wb-info-card {
  grid-column: 1;
  grid-row: 2;
  width: min(520px, 100%);
  margin-top: -72px;
  justify-self: center;
  border-radius: var(--radius-lg);
  color: var(--text);
  z-index: 2;
}

.wb-info-card summary {
  width: fit-content;
  min-height: 46px;
  margin: 0 auto;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 113, 227, 0.26);
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 24px rgba(0, 113, 227, 0.22);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  list-style: none;
  transition: transform 0.28s var(--ease), background 0.28s var(--ease), border-color 0.28s var(--ease);
}

.wb-info-card summary::-webkit-details-marker {
  display: none;
}

.wb-info-card summary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.wb-info-card summary:active {
  transform: translateY(1px) scale(0.98);
}

.wb-info-content {
  margin-top: 16px;
  max-height: min(520px, 62vh);
  overflow: auto;
  padding: 26px;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  backdrop-filter: saturate(180%) blur(22px);
  animation: revealDetails 0.36s var(--ease);
}

.wb-info-content h3 {
  margin-bottom: 16px;
  font-size: 25px;
}

.wb-info-content p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.wb-info-content p:last-child {
  margin-bottom: 0;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--success);
}

.live-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: breathe 2.5s var(--ease) infinite;
}

.solution-flow {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.flow-step {
  padding: 16px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), background 0.28s var(--ease);
}

.flow-step:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 113, 227, 0.24);
  background: #fff;
}

.flow-step span {
  grid-row: span 2;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.flow-step h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.12;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.44;
}

.result-card {
  margin-top: 10px;
  padding: 18px;
  border-radius: var(--radius-md);
  color: #f5f5f7;
  background: var(--surface-dark);
}

.result-card p {
  margin: 0 0 8px;
  color: rgba(245, 245, 247, 0.68);
  font-size: 12px;
  font-weight: 700;
}

.result-card strong {
  display: block;
  font-size: 23px;
  line-height: 1.08;
  font-weight: 720;
}

.result-card ul {
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}

.result-card li {
  position: relative;
  padding-left: 18px;
  color: rgba(245, 245, 247, 0.78);
  font-size: 13px;
  line-height: 1.42;
}

.result-card li::before,
.article-content li::before,
.article-body li::before,
.audience-panel li::before,
.aside-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.scenario-strip {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.scenario-strip span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #3d3d40;
  font-size: 11px;
  font-weight: 650;
}

.services-section {
  padding-top: 78px;
}

.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  grid-auto-rows: minmax(260px, auto);
  gap: 16px;
}

.service-card {
  padding: 30px;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-tight);
  transition: transform 0.32s var(--ease), border-color 0.32s var(--ease), box-shadow 0.32s var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 113, 227, 0.22);
  box-shadow: var(--shadow-soft);
}

.service-card.tall {
  grid-row: span 2;
}

.service-card.wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(290px, 0.76fr) minmax(0, 1fr);
  align-items: end;
  gap: 0 32px;
}

.accent-card {
  background: #eef6ff;
}

.service-media {
  height: 230px;
  margin: -30px -30px 26px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: #f0f0f2;
}

.service-card.tall .service-media {
  height: 420px;
}

.service-card.wide .service-media {
  grid-row: span 3;
  height: 260px;
  margin: -30px 0 -30px -30px;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.service-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: var(--pos, 50%) center;
  transition: transform 0.48s var(--ease);
}

.service-card:hover .service-media img {
  transform: scale(1.035);
}

.service-media-contain {
  padding: 18px;
  background: #f7f7f9;
}

.service-media-contain img {
  object-fit: contain;
  object-position: center;
}

.card-index {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
}

.why-section,
.audience-tabs-section,
.proof-section,
.request-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 64px;
  align-items: start;
}

.audience-tabs-section {
  display: block;
}

.why-intro,
.request-copy {
  position: sticky;
  top: 92px;
}

.why-intro p,
.request-copy p,
.proof-copy p {
  margin-top: 22px;
}

.benefit-list {
  border-top: 1px solid var(--line);
}

.benefit-item {
  min-height: 88px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.benefit-item span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
}

.benefit-item p {
  margin: 0;
  font-size: 30px;
  line-height: 1.14;
  font-weight: 700;
}

.process-section {
  width: min(var(--max), calc(100% - 36px));
}

.process-section .section-heading {
  width: 100%;
}

.process-layout {
  overflow: visible;
  padding: 0;
}

.process-list {
  min-width: 0;
  counter-reset: item;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.process-list li {
  min-height: 298px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-tight);
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease);
}

.process-list li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.process-list figure {
  width: 100%;
  aspect-ratio: 16 / 11;
  margin: 0;
  overflow: hidden;
  background: #f0f0f2;
}

.process-list img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.48s var(--ease);
}

.process-list li:hover img {
  transform: scale(1.035);
}

.process-list span {
  padding: 16px 16px 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
}

.process-list p {
  margin: auto 0 0;
  padding: 10px 16px 18px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.18;
  font-weight: 700;
}

.audience-tabs {
  overflow: hidden;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-tight);
}

.audience-tab-list {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid rgba(29, 29, 31, 0.08);
  background: #f9f9fb;
}

.audience-tab {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  transition: color 0.28s var(--ease), background 0.28s var(--ease), border-color 0.28s var(--ease), transform 0.28s var(--ease);
}

.audience-tab:hover {
  transform: translateY(-1px);
  color: var(--text);
  background: #fff;
}

.audience-tab.is-active {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.audience-panel {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  gap: 48px;
  padding: 42px;
}

.audience-panel.is-active {
  display: grid;
}

.audience-panel > div:first-child > span,
.article-aside > span,
.comparison-card span,
.planning-grid span,
.article-steps span,
.article-note strong,
.case-details span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
}

.audience-panel h3 {
  max-width: 760px;
  margin: 18px 0 22px;
  font-size: 44px;
  line-height: 1.02;
}

.audience-panel p,
.audience-panel li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.58;
}

.audience-panel ul {
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.audience-panel li {
  position: relative;
  padding-left: 20px;
}

.audience-summary {
  min-height: 100%;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  border-radius: var(--radius-lg);
  background: #f5f5f7;
}

.audience-summary p {
  margin: 0;
  color: var(--text);
  font-size: 21px;
  line-height: 1.36;
  font-weight: 650;
}

.wiring-card {
  min-height: 520px;
  padding: 56px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: 60px;
  align-items: end;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(29, 29, 31, 0.88), rgba(29, 29, 31, 0.46)),
    url("assets/generated/wiring-section-realistic-panel.webp") center / cover no-repeat;
  box-shadow: var(--shadow-soft);
}

.wiring-card .eyebrow {
  color: #9ecbff;
}

.wiring-card h2 {
  color: #fff;
}

.wiring-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.8);
}

.proof-section {
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1fr);
  align-items: center;
}

.case-card {
  overflow: hidden;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.case-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #f0f0f2;
}

.case-details {
  padding: 30px;
}

.case-details span {
  display: inline-flex;
  margin-bottom: 14px;
}

.expand-card {
  margin-top: 18px;
}

.expand-card summary {
  width: fit-content;
  min-height: 42px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 113, 227, 0.24);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-weight: 650;
  list-style: none;
  transition: transform 0.28s var(--ease), background 0.28s var(--ease), border-color 0.28s var(--ease);
}

.expand-card summary::-webkit-details-marker {
  display: none;
}

.expand-card summary:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: rgba(0, 113, 227, 0.42);
}

.expand-card summary:active {
  transform: translateY(1px) scale(0.98);
}

.expand-content {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  animation: revealDetails 0.42s var(--ease);
}

.expand-content p {
  margin-bottom: 16px;
}

.expand-content p:last-child {
  margin-bottom: 0;
}

.expand-content h3 {
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 23px;
}

.expand-content h3:first-child {
  margin-top: 0;
}

.article-card {
  min-height: 560px;
  padding: 56px;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 58px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(29, 29, 31, 0.94), rgba(29, 29, 31, 0.58)),
    url("assets/preza-images/web/nextgen-15-054-08-764-large.webp") center / cover no-repeat;
  box-shadow: var(--shadow-soft);
}

.article-card h2,
.article-card h3 {
  color: #fff;
}

.article-card .eyebrow {
  color: #9ecbff;
}

.article-content p,
.article-content li {
  color: rgba(255, 255, 255, 0.78);
}

.article-content ul {
  margin: 22px 0 26px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.article-content li {
  position: relative;
  padding-left: 22px;
  line-height: 1.55;
}

.article-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.request-section {
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
}

.request-form {
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.form-status {
  grid-column: 1 / -1;
  min-height: 0;
  color: var(--success);
  font-size: 15px;
  line-height: 1.45;
}

.form-status:not(:empty) {
  padding: 13px 15px;
  border: 1px solid rgba(45, 125, 95, 0.22);
  border-radius: var(--radius-md);
  background: rgba(45, 125, 95, 0.08);
}

.form-status.is-error {
  color: var(--danger);
  border-color: rgba(180, 35, 24, 0.22);
  background: rgba(180, 35, 24, 0.08);
}

.field {
  display: grid;
  gap: 8px;
}

.field-full,
.form-submit {
  grid-column: 1 / -1;
}

.field span {
  font-size: 14px;
  font-weight: 650;
}

.field small {
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.field-error {
  min-height: 18px;
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(29, 29, 31, 0.16);
  border-radius: var(--radius-md);
  background: #f5f5f7;
  color: var(--text);
  outline: none;
  transition: border-color 0.28s var(--ease), background 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

input,
select {
  height: 52px;
  padding: 0 14px;
}

textarea {
  resize: vertical;
  min-height: 126px;
  padding: 14px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(0, 113, 227, 0.48);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: rgba(180, 35, 24, 0.46);
}

.form-submit {
  position: relative;
  margin-top: 4px;
  width: 100%;
}

.button-loader {
  display: none;
  width: 52px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  background-size: 220% 100%;
  animation: shimmer 1.1s linear infinite;
}

.request-form.is-loading .button-text {
  opacity: 0.58;
}

.request-form.is-loading .button-loader {
  display: inline-block;
}

.site-footer {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto 26px;
  padding: 28px 0 10px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.footer-contacts {
  margin-top: 18px;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
}

.footer-contacts a {
  width: fit-content;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 20px;
}

.site-footer a:not(.brand) {
  color: var(--muted);
  transition: color 0.28s var(--ease);
}

.site-footer a:not(.brand):hover {
  color: var(--text);
}

.inner-page main {
  padding-top: 34px;
}

.page-hero {
  width: min(var(--max), calc(100% - 36px));
  min-height: 690px;
  padding: 96px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.8fr);
  gap: 58px;
  align-items: center;
}

.page-hero-copy {
  max-width: 820px;
}

.page-hero-copy p:not(.eyebrow) {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.5;
}

.page-hero-copy .page-hero-company {
  max-width: 660px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 19px;
  line-height: 1.55;
  font-weight: 620;
}

.page-hero-media {
  min-height: 430px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
}

.article-hero .page-hero-copy h1 {
  max-width: 760px;
  font-size: 70px;
}

.article-hero .page-hero-media {
  max-width: 520px;
  justify-self: end;
}

.longread {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 0.88fr);
  gap: 72px;
  align-items: start;
  padding-top: 48px;
}

.article-aside {
  position: sticky;
  top: 92px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-tight);
}

.article-aside p {
  margin: 16px 0 20px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.56;
}

.aside-list {
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.aside-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.48;
}

.article-body {
  max-width: 930px;
}

.article-body .lead {
  color: var(--text);
  font-size: 32px;
  line-height: 1.18;
  font-weight: 650;
}

.article-body h2 {
  margin-top: 68px;
  font-size: 46px;
  line-height: 1.04;
}

.article-body p,
.article-body li {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.article-body ul {
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.article-body li {
  position: relative;
  padding-left: 20px;
}

.article-note,
.comparison-card,
.planning-grid article,
.article-steps article,
.article-result {
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-tight);
}

.article-note {
  margin: 42px 0 0;
  padding: 32px;
  background: var(--accent-soft);
}

.article-note p {
  margin: 14px 0 0;
}

.planning-grid,
.article-steps,
.comparison-grid {
  margin-top: 32px;
  display: grid;
  gap: 14px;
}

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

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

.planning-grid article,
.article-steps article,
.comparison-card {
  min-height: 236px;
  padding: 28px;
}

.comparison-card h3,
.planning-grid h3,
.article-steps h3 {
  margin: 16px 0 14px;
  font-size: 24px;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.planning-grid p,
.article-steps p,
.comparison-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.58;
}

.article-body figure {
  margin: 44px 0 8px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-tight);
}

.article-body figure img {
  width: 100%;
  max-height: 680px;
  display: block;
  object-fit: contain;
}

.article-body figcaption {
  margin-top: 16px;
  color: var(--subtle);
  font-size: 14px;
  line-height: 1.45;
}

.longread-cta,
.article-result {
  margin-top: 68px;
  padding: 42px;
}

.longread-cta h2,
.article-result h2,
.article-result h3 {
  margin-top: 0;
}

.article-related-links {
  margin-top: 38px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.72s var(--ease), transform 0.72s var(--ease);
  transition-delay: calc(var(--index, 0) * 70ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.longread .article-aside[data-reveal],
.longread .article-body[data-reveal] {
  opacity: 1;
  transform: none;
}

html[data-resolved-theme="dark"] {
  color-scheme: dark;
  --bg: #121316;
  --surface: #1d1f24;
  --surface-soft: #17191d;
  --surface-dark: #f5f5f7;
  --text: #f5f5f7;
  --muted: #a9adb7;
  --subtle: #7f8490;
  --line: rgba(245, 245, 247, 0.13);
  --line-strong: rgba(245, 245, 247, 0.24);
  --accent: #6bb6ff;
  --accent-dark: #9dccff;
  --accent-soft: rgba(107, 182, 255, 0.14);
  --success: #77d0a1;
  --danger: #ff9b8d;
  --shadow-soft: 0 26px 80px rgba(0, 0, 0, 0.34);
  --shadow-tight: 0 16px 42px rgba(0, 0, 0, 0.24);
}

html[data-resolved-theme="dark"] body {
  background:
    radial-gradient(circle at 72% 0%, rgba(107, 182, 255, 0.14), transparent 32rem),
    linear-gradient(180deg, #15171b 0%, #101114 54%, #15171b 100%);
  color: var(--text);
}

html[data-resolved-theme="dark"] body::before {
  background-image: linear-gradient(rgba(245, 245, 247, 0.05) 1px, transparent 1px);
  opacity: 0.28;
}

html[data-resolved-theme="dark"] .site-header {
  border-bottom-color: rgba(245, 245, 247, 0.09);
  background: rgba(18, 19, 22, 0.78);
}

html[data-resolved-theme="dark"] .brand-logo {
  filter: none;
}

html[data-resolved-theme="dark"] .brand strong,
html[data-resolved-theme="dark"] .site-nav a:hover,
html[data-resolved-theme="dark"] .site-nav a[aria-current="page"],
html[data-resolved-theme="dark"] .theme-switcher button:hover,
html[data-resolved-theme="dark"] .benefit-item p,
html[data-resolved-theme="dark"] .process-list p,
html[data-resolved-theme="dark"] .audience-summary p,
html[data-resolved-theme="dark"] .article-body .lead {
  color: var(--text);
}

html[data-resolved-theme="dark"] .site-nav a {
  color: rgba(245, 245, 247, 0.72);
}

html[data-resolved-theme="dark"] .site-nav a:hover,
html[data-resolved-theme="dark"] .site-nav a[aria-current="page"] {
  background: rgba(245, 245, 247, 0.09);
}

html[data-resolved-theme="dark"] .theme-switcher {
  border-color: rgba(245, 245, 247, 0.12);
  background: rgba(245, 245, 247, 0.07);
}

html[data-resolved-theme="dark"] .theme-switcher button.is-active {
  color: #121316;
  background: #f5f5f7;
}

html[data-resolved-theme="dark"] .menu-toggle,
html[data-resolved-theme="dark"] .site-nav a,
html[data-resolved-theme="dark"] .button-secondary,
html[data-resolved-theme="dark"] .scenario-strip span,
html[data-resolved-theme="dark"] .flow-step,
html[data-resolved-theme="dark"] .service-card,
html[data-resolved-theme="dark"] .process-list li,
html[data-resolved-theme="dark"] .audience-tabs,
html[data-resolved-theme="dark"] .case-card,
html[data-resolved-theme="dark"] .request-form,
html[data-resolved-theme="dark"] .article-aside,
html[data-resolved-theme="dark"] .article-note,
html[data-resolved-theme="dark"] .comparison-card,
html[data-resolved-theme="dark"] .planning-grid article,
html[data-resolved-theme="dark"] .article-steps article,
html[data-resolved-theme="dark"] .article-result,
html[data-resolved-theme="dark"] .article-body figure {
  border-color: rgba(245, 245, 247, 0.12);
  background: rgba(245, 245, 247, 0.055);
}

html[data-resolved-theme="dark"] .menu-toggle span:not(.sr-only) {
  background: var(--text);
}

html[data-resolved-theme="dark"] .visual-panel {
  border-color: rgba(245, 245, 247, 0.14);
  background: rgba(29, 31, 36, 0.72);
  box-shadow: var(--shadow-soft);
}

html[data-resolved-theme="dark"] .wb-info-card summary {
  color: #121316;
}

html[data-resolved-theme="dark"] .wb-info-content {
  border-color: rgba(245, 245, 247, 0.12);
  background: rgba(29, 31, 36, 0.88);
  box-shadow: var(--shadow-soft);
}

html[data-resolved-theme="dark"] .wb-info-content p {
  color: rgba(245, 245, 247, 0.76);
}

html[data-resolved-theme="dark"] .hero-visual::before {
  filter: drop-shadow(0 38px 70px rgba(0, 0, 0, 0.42)) brightness(0.9) saturate(0.94);
}

html[data-resolved-theme="dark"] .hero-visual::after {
  background: rgba(0, 0, 0, 0.36);
}

html[data-resolved-theme="dark"] .flow-step:hover,
html[data-resolved-theme="dark"] .service-card:hover,
html[data-resolved-theme="dark"] .process-list li:hover,
html[data-resolved-theme="dark"] .expand-card summary:hover {
  border-color: rgba(107, 182, 255, 0.32);
  background: rgba(245, 245, 247, 0.085);
}

html[data-resolved-theme="dark"] .result-card {
  color: #121316;
  background: #f5f5f7;
}

html[data-resolved-theme="dark"] .result-card p,
html[data-resolved-theme="dark"] .result-card li {
  color: rgba(18, 19, 22, 0.68);
}

html[data-resolved-theme="dark"] .service-media,
html[data-resolved-theme="dark"] .service-media-contain,
html[data-resolved-theme="dark"] .process-list figure,
html[data-resolved-theme="dark"] .case-card img,
html[data-resolved-theme="dark"] .page-hero-media {
  background: #17191d;
}

html[data-resolved-theme="dark"] .service-media img,
html[data-resolved-theme="dark"] .process-list img,
html[data-resolved-theme="dark"] .case-card img,
html[data-resolved-theme="dark"] .page-hero-media img,
html[data-resolved-theme="dark"] .article-body figure img {
  filter: brightness(0.82) saturate(0.9) contrast(1.04);
}

html[data-resolved-theme="dark"] .accent-card {
  background: rgba(107, 182, 255, 0.12);
}

html[data-resolved-theme="dark"] .audience-tab-list {
  border-bottom-color: rgba(245, 245, 247, 0.1);
  background: rgba(245, 245, 247, 0.035);
}

html[data-resolved-theme="dark"] .audience-tab {
  color: var(--muted);
}

html[data-resolved-theme="dark"] .audience-tab:hover {
  color: var(--text);
  background: rgba(245, 245, 247, 0.075);
}

html[data-resolved-theme="dark"] .audience-tab.is-active,
html[data-resolved-theme="dark"] .button-primary {
  color: #121316;
  background: var(--accent);
}

html[data-resolved-theme="dark"] .audience-summary {
  background: rgba(107, 182, 255, 0.12);
}

html[data-resolved-theme="dark"] .wiring-card {
  background:
    linear-gradient(90deg, rgba(18, 19, 22, 0.92), rgba(18, 19, 22, 0.54)),
    url("assets/generated/wiring-section-realistic-panel.webp") center / cover no-repeat;
}

html[data-resolved-theme="dark"] .article-card {
  background:
    linear-gradient(90deg, rgba(18, 19, 22, 0.94), rgba(18, 19, 22, 0.62)),
    url("assets/preza-images/web/nextgen-15-054-08-764-large.webp") center / cover no-repeat;
}

html[data-resolved-theme="dark"] .wiring-card h2,
html[data-resolved-theme="dark"] .article-card h2,
html[data-resolved-theme="dark"] .article-card h3 {
  color: #f5f5f7;
}

html[data-resolved-theme="dark"] .wiring-card p,
html[data-resolved-theme="dark"] .article-content p,
html[data-resolved-theme="dark"] .article-content li {
  color: rgba(245, 245, 247, 0.78);
}

html[data-resolved-theme="dark"] .expand-card summary {
  border-color: rgba(107, 182, 255, 0.28);
  color: var(--accent);
  background: rgba(245, 245, 247, 0.06);
}

html[data-resolved-theme="dark"] input,
html[data-resolved-theme="dark"] select,
html[data-resolved-theme="dark"] textarea {
  border-color: rgba(245, 245, 247, 0.15);
  background: rgba(245, 245, 247, 0.065);
  color: var(--text);
}

html[data-resolved-theme="dark"] input::placeholder,
html[data-resolved-theme="dark"] textarea::placeholder {
  color: rgba(245, 245, 247, 0.42);
}

html[data-resolved-theme="dark"] input:focus,
html[data-resolved-theme="dark"] select:focus,
html[data-resolved-theme="dark"] textarea:focus {
  border-color: rgba(107, 182, 255, 0.52);
  background: rgba(245, 245, 247, 0.09);
  box-shadow: 0 0 0 4px rgba(107, 182, 255, 0.12);
}

html[data-resolved-theme="dark"] select option {
  color: #121316;
}

html[data-resolved-theme="dark"] .form-status:not(:empty) {
  border-color: rgba(119, 208, 161, 0.22);
  background: rgba(119, 208, 161, 0.1);
}

html[data-resolved-theme="dark"] .form-status.is-error {
  border-color: rgba(255, 155, 141, 0.22);
  background: rgba(255, 155, 141, 0.1);
}

html[data-resolved-theme="dark"] .site-footer {
  border-top-color: rgba(245, 245, 247, 0.12);
}

@keyframes productFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(45, 125, 95, 0.22);
  }
  50% {
    transform: scale(1.12);
    box-shadow: 0 0 0 8px rgba(45, 125, 95, 0);
  }
}

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

@keyframes revealDetails {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  h1 {
    font-size: 60px;
  }

  h2 {
    font-size: 46px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 42px;
    padding-top: 72px;
  }

  .hero-copy {
    width: min(840px, 100%);
    max-width: 840px;
    text-align: center;
  }

  .hero-copy h1,
  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    width: min(760px, 100%);
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-visual::before {
    width: 100%;
    min-height: clamp(280px, 52vw, 430px);
  }

  .hero-visual::after {
    display: none;
  }

  .visual-panel {
    grid-column: auto;
    justify-self: center;
    left: auto;
    right: auto;
    width: min(430px, 86%);
    transform: none;
  }

  .wb-info-card {
    grid-column: auto;
    grid-row: auto;
    width: min(520px, 100%);
    margin-top: 0;
  }

  .wb-info-content {
    max-height: none;
  }

  .service-grid,
  .why-section,
  .proof-section,
  .article-card,
  .request-section,
  .page-hero,
  .longread {
    grid-template-columns: 1fr;
  }

  .service-card.tall,
  .service-card.wide {
    grid-column: auto;
    grid-row: auto;
  }

  .service-card.wide {
    display: flex;
  }

  .service-card.wide .service-media {
    height: 230px;
    margin: -30px -30px 26px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .process-section {
    width: min(var(--max), calc(100% - 36px));
  }

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

  .why-intro,
  .request-copy,
  .article-aside {
    position: static;
  }

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

  .page-hero {
    min-height: auto;
    padding-top: 76px;
  }

  .article-hero .page-hero-media {
    max-width: none;
    justify-self: stretch;
  }

  .planning-grid,
  .comparison-grid,
  .article-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 84px;
  }

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header {
    width: 100%;
    max-width: 100vw;
    min-height: 58px;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    align-items: center;
    gap: 8px;
    overflow: hidden;
  }

  .brand {
    min-width: 0;
    max-width: 100%;
  }

  .brand span {
    min-width: 0;
  }

  .brand strong,
  .brand small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
    flex: 0 0 40px;
  }

  .site-nav {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.34s var(--ease);
  }

  .site-nav.is-open {
    max-height: 260px;
  }

  .site-nav a {
    padding: 13px 14px;
    background: rgba(255, 255, 255, 0.68);
  }

  html[data-resolved-theme="dark"] .site-nav a {
    background: rgba(245, 245, 247, 0.07);
  }

  .theme-switcher {
    display: none;
  }

  .section {
    width: min(var(--max), calc(100% - 28px));
    padding: 74px 0;
    scroll-margin-top: 84px;
  }

  .hero {
    padding: 56px 14px 24px;
    gap: 20px;
  }

  h1 {
    font-size: 42px;
    line-height: 1;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
  }

  .hero-copy h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(38px, 11vw, 44px);
    line-height: 1.04;
    overflow-wrap: break-word;
  }

  h2 {
    font-size: 34px;
    line-height: 1.04;
  }

  h3 {
    font-size: 23px;
  }

  .hero-lead,
  .section-heading p,
  .why-intro p,
  .request-copy p,
  .wiring-card p,
  .service-card p,
  .proof-copy p,
  .article-content p,
  .case-details p {
    font-size: 16px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-visual::before {
    min-height: 290px;
  }

  .hero-visual::after {
    display: none;
  }

  .visual-panel {
    width: 100%;
    padding: 14px;
  }

  .wb-info-card {
    width: 100%;
  }

  .wb-info-card summary {
    width: 100%;
  }

  .wb-info-content {
    padding: 22px;
  }

  .flow-step {
    grid-template-columns: 1fr;
  }

  .flow-step span {
    grid-row: auto;
  }

  .service-card,
  .request-form,
  .audience-panel,
  .article-card,
  .wiring-card,
  .case-details {
    padding: 22px;
  }

  .service-media,
  .service-card.tall .service-media,
  .service-card.wide .service-media {
    height: 190px;
    margin: -22px -22px 22px;
  }

  .service-card.wide .service-media {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .process-section {
    width: min(var(--max), calc(100% - 28px));
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .benefit-item {
    min-height: 76px;
  }

  .benefit-item p {
    font-size: 22px;
  }

  .audience-tab-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .audience-tab {
    width: 100%;
  }

  .audience-panel h3 {
    font-size: 30px;
  }

  .audience-summary p {
    font-size: 18px;
  }

  .wiring-card {
    min-height: 560px;
    grid-template-columns: 1fr;
    align-content: end;
    background:
      linear-gradient(180deg, rgba(29, 29, 31, 0.9), rgba(29, 29, 31, 0.54)),
      url("assets/generated/wiring-section-realistic-panel.webp") 56% center / cover no-repeat;
  }

  .request-form {
    grid-template-columns: 1fr;
  }

  .field-full,
  .form-submit {
    grid-column: auto;
  }

  .site-footer {
    width: min(var(--max), calc(100% - 28px));
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .inner-page main {
    padding-top: 10px;
  }

  .page-hero {
    width: min(var(--max), calc(100% - 28px));
    padding-top: 52px;
    padding-bottom: 34px;
  }

  .page-hero-copy p:not(.eyebrow) {
    font-size: 18px;
  }

  .page-hero-copy .page-hero-company {
    margin-top: 24px;
    padding-top: 18px;
    font-size: 16px;
  }

  .page-hero-media,
  .article-hero .page-hero-media {
    min-height: 260px;
  }

  .article-hero .page-hero-copy h1 {
    font-size: 42px;
  }

  .longread {
    width: min(var(--max), calc(100% - 28px));
    gap: 28px;
    padding-top: 18px;
  }

  .article-body .lead {
    font-size: 23px;
  }

  .article-body h2 {
    margin-top: 48px;
    font-size: 31px;
  }

  .article-body p,
  .article-body li {
    font-size: 16px;
  }

  .article-note,
  .comparison-card,
  .planning-grid article,
  .article-steps article,
  .article-result,
  .longread-cta,
  .article-body figure {
    padding: 22px;
  }
}

@media (max-width: 430px) {
  .hero-visual {
    min-height: auto;
  }

  .hero-visual::before {
    min-height: 260px;
  }

  .hero-visual::after {
    display: none;
  }
}

/* SEO service pages and expanded navigation */
.nav-group {
  position: relative;
}

.nav-group summary {
  min-height: 36px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  color: #3d3d40;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  list-style: none;
  transition: color 0.28s var(--ease), background 0.28s var(--ease);
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.24s var(--ease);
}

.nav-group[open] summary,
.nav-group[data-current="true"] summary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
}

.nav-group[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;
  width: max-content;
  min-width: 230px;
  padding: 8px;
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-tight);
  backdrop-filter: blur(20px);
}

.nav-submenu a {
  border-radius: var(--radius-md);
}

.site-nav .nav-cta {
  color: #fff;
  background: var(--text);
}

.site-nav .nav-cta:hover {
  color: #fff;
  background: var(--accent);
}

.breadcrumbs {
  margin-bottom: 54px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--subtle);
  font-size: 13px;
}

.inner-breadcrumbs {
  padding-top: 34px;
  padding-bottom: 0;
}

.inner-breadcrumbs .breadcrumbs {
  margin-bottom: 0;
}

.breadcrumbs a {
  color: var(--text);
}

.seo-page-hero {
  padding-top: 76px;
  padding-bottom: 62px;
}

.seo-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 54px;
  align-items: end;
}

.seo-hero-copy h1 {
  max-width: 930px;
  margin: 18px 0 26px;
  overflow-wrap: anywhere;
  font-size: clamp(50px, 6.8vw, 98px);
  line-height: 1;
  letter-spacing: 0;
}

.seo-hero-lead {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.55;
}

.seo-hero-copy .hero-actions {
  margin-top: 34px;
}

.seo-highlights {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-tight);
}

.seo-highlights > p {
  margin: 0 0 20px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.seo-highlights ul,
.seo-content-card ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.seo-highlights li,
.seo-content-card li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.seo-highlights li::before,
.seo-content-card li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.seo-intro-section {
  padding-top: 32px;
  padding-bottom: 74px;
}

.seo-prose {
  max-width: 930px;
}

.seo-prose p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 26px;
  line-height: 1.48;
}

.seo-content-section,
.seo-benefits-section,
.seo-steps-section,
.portfolio-list-section,
.seo-contact-details,
.seo-faq-section,
.related-services-section {
  padding-top: 74px;
  padding-bottom: 74px;
}

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

.seo-content-card {
  min-width: 0;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.seo-content-card.is-featured {
  background: var(--accent-soft);
}

.seo-content-card > span,
.seo-benefit-grid article > span,
.seo-steps li > span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.seo-content-card h2 {
  margin: 52px 0 22px;
  overflow-wrap: anywhere;
  font-size: clamp(29px, 3vw, 44px);
  line-height: 1.02;
}

.seo-content-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.seo-content-card ul {
  margin-top: 26px;
}

.seo-benefit-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.seo-benefit-grid article {
  min-width: 0;
  min-height: 260px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.seo-benefit-grid h3 {
  margin: auto 0 14px;
  overflow-wrap: anywhere;
  font-size: 24px;
  line-height: 1.06;
}

.seo-benefit-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.seo-steps {
  margin: 42px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
  list-style: none;
}

.seo-steps li {
  min-height: 170px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
}

.seo-steps strong {
  max-width: 250px;
  font-size: 20px;
  line-height: 1.25;
}

.seo-faq-list {
  margin-top: 42px;
  border-top: 1px solid var(--line-strong);
}

.seo-faq-list details {
  border-bottom: 1px solid var(--line-strong);
}

.seo-faq-list summary {
  padding: 25px 42px 25px 0;
  position: relative;
  cursor: pointer;
  font-size: 22px;
  font-weight: 720;
  list-style: none;
}

.seo-faq-list summary::-webkit-details-marker {
  display: none;
}

.seo-faq-list summary::after {
  content: "+";
  position: absolute;
  top: 20px;
  right: 0;
  font-size: 30px;
  font-weight: 400;
}

.seo-faq-list details[open] summary::after {
  content: "−";
}

.seo-faq-list details p {
  max-width: 850px;
  margin: 0;
  padding: 0 0 28px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.related-link-grid,
.contact-link-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.related-link-grid a,
.contact-link-grid a {
  min-width: 0;
  min-height: 110px;
  padding: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.related-link-grid a:hover,
.contact-link-grid a:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

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

.contact-link-grid a {
  align-items: flex-start;
  flex-direction: column;
}

.contact-link-grid span {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-link-grid strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 20px;
}

.seo-project-card {
  margin-top: 42px;
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.seo-project-card > img {
  width: 100%;
  height: 100%;
  max-height: 720px;
  display: block;
  object-fit: cover;
}

.seo-project-card > div {
  padding: 42px;
}

.seo-project-card h3 {
  margin: 18px 0 24px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.04;
}

.seo-project-card p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.seo-project-card dl {
  margin: 34px 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.seo-project-card dl div {
  padding: 15px 0;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.seo-project-card dt {
  color: var(--subtle);
}

.seo-project-card dd {
  margin: 0;
}

.portfolio-state {
  max-width: 800px;
  margin: 24px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.text-link {
  color: var(--accent);
  font-weight: 700;
}

.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.consent-field input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: 0 0 auto;
}

.consent-field a {
  color: var(--accent);
  text-decoration: underline;
}

.error-page {
  min-height: calc(100vh - 60px);
  display: grid;
  place-items: center;
}

.error-card {
  padding-top: 90px;
  padding-bottom: 90px;
}

.error-card h1 {
  max-width: 800px;
  margin: 16px 0 24px;
  font-size: clamp(58px, 9vw, 126px);
  line-height: 1;
}

.error-card > p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

html[data-resolved-theme="dark"] .nav-group summary {
  color: #c4c7ca;
}

html[data-resolved-theme="dark"] .nav-group[open] summary,
html[data-resolved-theme="dark"] .nav-group[data-current="true"] summary,
html[data-resolved-theme="dark"] .nav-submenu {
  color: #f5f5f7;
  background: rgba(24, 27, 30, 0.98);
}

html[data-resolved-theme="dark"] .seo-content-card.is-featured {
  background: rgba(42, 99, 148, 0.24);
}

.home-systems-section,
.home-object-section,
.home-platform-section,
.home-cost-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.home-system-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
}

.home-system-grid article {
  min-width: 0;
  min-height: 172px;
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.home-system-grid article > span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 820;
}

.home-system-grid h3 {
  margin: auto 0 9px;
  font-size: 18px;
  line-height: 1.16;
  font-weight: 720;
  overflow-wrap: anywhere;
}

.home-system-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.home-object-grid,
.home-platform-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.home-object-grid article,
.home-platform-grid > div {
  min-width: 0;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.home-object-grid article > span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-object-grid h3,
.home-platform-grid h2 {
  margin: 48px 0 20px;
  overflow-wrap: anywhere;
  font-size: clamp(31px, 4vw, 55px);
  line-height: 1.04;
}

.home-object-grid p,
.home-platform-grid p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

.home-platform-grid > div:first-child {
  color: #f5f5f7;
  background: #1d1d1f;
}

.home-platform-grid > div:first-child p:not(.eyebrow) {
  color: rgba(245, 245, 247, 0.72);
}

.home-platform-grid > div:first-child .text-link {
  color: #77b9ff;
}

.home-cost-card {
  padding: 46px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.home-cost-card h2 {
  margin: 16px 0 0;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.04;
}

.home-cost-card > div:last-child > p {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.62;
}

.proof-project-link {
  margin-top: 24px;
  display: inline-block;
}

@media (max-width: 1180px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .site-header > .theme-switcher {
    display: none;
  }

  .site-nav {
    grid-column: 1 / -1;
    width: 100%;
    max-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    overflow: hidden;
    transition: max-height 0.34s var(--ease);
  }

  .site-nav.is-open {
    max-height: min(78vh, 720px);
    overflow-y: auto;
  }

  .site-nav > a,
  .nav-group summary {
    width: 100%;
    padding: 13px 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.68);
  }

  .nav-submenu {
    position: static;
    width: 100%;
    margin-top: 4px;
    box-shadow: none;
  }
}

@media (max-width: 900px) {
  .seo-hero-grid,
  .seo-project-card {
    grid-template-columns: 1fr;
  }

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

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

  .seo-project-card > img {
    max-height: 640px;
    aspect-ratio: 4 / 3;
  }

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

@media (max-width: 760px) {
  .seo-page-hero {
    padding-top: 42px;
    padding-bottom: 44px;
  }

  .breadcrumbs {
    margin-bottom: 36px;
    font-size: 12px;
  }

  .seo-hero-grid {
    gap: 28px;
  }

  .seo-hero-copy h1 {
    margin-top: 14px;
    font-size: clamp(39px, 11vw, 52px);
    line-height: 1.04;
  }

  .seo-hero-lead {
    font-size: 17px;
  }

  .seo-highlights,
  .seo-content-card,
  .seo-project-card > div {
    padding: 22px;
  }

  .seo-prose p {
    font-size: 20px;
  }

  .seo-content-grid,
  .seo-benefit-grid,
  .seo-steps,
  .related-link-grid,
  .contact-link-grid {
    grid-template-columns: 1fr;
  }

  .seo-content-card h2 {
    margin-top: 36px;
    font-size: 30px;
  }

  .seo-benefit-grid article {
    min-height: 210px;
  }

  .seo-steps li {
    min-height: 135px;
  }

  .seo-faq-list summary {
    font-size: 18px;
  }

  .seo-project-card > img {
    max-height: 520px;
    aspect-ratio: 1 / 1;
  }

  .seo-project-card dl div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .home-system-grid,
  .home-object-grid,
  .home-platform-grid {
    grid-template-columns: 1fr;
  }

  .home-system-grid article {
    min-height: 150px;
  }

  .home-object-grid article,
  .home-platform-grid > div,
  .home-cost-card {
    padding: 24px;
  }

  .home-object-grid h3,
  .home-platform-grid h2 {
    margin-top: 34px;
    font-size: 31px;
  }

  .related-link-grid a,
  .contact-link-grid a {
    min-height: 94px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Cost comparison page */
.cost-page main {
  overflow: hidden;
}

.cost-hero {
  min-height: calc(100dvh - 58px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(42px, 7vw, 96px);
  padding-top: 68px;
}

.cost-hero-copy h1 {
  max-width: 780px;
  margin: 18px 0 26px;
  font-size: clamp(52px, 5.4vw, 76px);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.cost-hero-lead {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.52;
}

.cost-hero-result {
  width: min(430px, 100%);
  margin-top: 40px;
  padding-top: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px 20px;
  border-top: 1px solid var(--line-strong);
}

.cost-hero-result span {
  color: var(--subtle);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cost-hero-result strong {
  grid-row: 1 / 3;
  grid-column: 2;
  color: var(--accent);
  font-size: clamp(46px, 5vw, 72px);
  line-height: 0.9;
}

.cost-hero-result p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.cost-hero-media {
  position: relative;
  min-height: 680px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #20262d;
  box-shadow: var(--shadow-soft);
}

.cost-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 680px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.cost-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.cost-hero-media figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 14px 16px;
  color: #f5f5f7;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  background: rgba(18, 23, 29, 0.72);
  backdrop-filter: blur(16px);
  font-size: 14px;
}

.cost-summary-section {
  padding-top: 96px;
}

.cost-summary {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.68fr) minmax(0, 1fr);
  align-items: stretch;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.cost-summary article,
.cost-delta {
  min-width: 0;
  padding: 38px clamp(24px, 3vw, 42px);
}

.cost-summary article + .cost-delta,
.cost-delta + article {
  border-left: 1px solid var(--line-strong);
}

.cost-summary article {
  display: flex;
  flex-direction: column;
}

.cost-summary article > span,
.cost-delta > span {
  color: var(--subtle);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.cost-summary article > strong {
  margin-top: 18px;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1;
}

.cost-summary article p {
  max-width: 32ch;
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.cost-summary article.is-smart {
  background: var(--accent-soft);
}

.cost-summary article.is-smart > strong {
  color: var(--accent-dark);
}

.cost-delta {
  align-self: center;
  text-align: center;
}

.cost-delta strong {
  display: block;
  margin-top: 14px;
  color: var(--accent);
  font-size: clamp(28px, 2.4vw, 38px);
  white-space: nowrap;
}

.cost-delta small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.cost-disclaimer {
  max-width: 860px;
  margin: 24px 0 0 auto;
  color: var(--subtle);
  font-size: 14px;
  line-height: 1.6;
}

.cost-breakdown-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(480px, 1.18fr);
  gap: clamp(46px, 8vw, 112px);
  align-items: start;
}

.cost-breakdown-copy {
  position: sticky;
  top: 104px;
}

.cost-breakdown-copy h2 {
  margin: 18px 0 28px;
}

.cost-breakdown-copy > p:not(.eyebrow) {
  max-width: 58ch;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.cost-bars {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-tight);
}

.cost-bars article {
  padding: 22px 0 26px;
  border-bottom: 1px solid var(--line);
}

.cost-bars article:first-child {
  padding-top: 0;
}

.cost-bars article > div:first-child {
  margin-bottom: 13px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.cost-bars article strong {
  font-size: 16px;
}

.cost-bars article > div:first-child span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 14px;
}

.cost-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(29, 29, 31, 0.06);
}

.cost-bar + .cost-bar {
  margin-top: 7px;
}

.cost-bar span {
  height: 100%;
  display: block;
  transform-origin: left;
}

.cost-bar.regular span {
  width: calc(var(--regular) * 1%);
  background: #8b929a;
}

.cost-bar.smart span {
  width: calc(var(--smart) * 1%);
  background: var(--accent);
}

.cost-bars-legend {
  padding-top: 20px;
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 13px;
}

.cost-bars-legend span::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-right: 8px;
  display: inline-block;
  border-radius: 50%;
  background: #8b929a;
}

.cost-bars-legend .smart::before {
  background: var(--accent);
}

.project-gallery-section .section-heading {
  max-width: 870px;
}

.gallery-engineering-note {
  margin-top: 42px;
  padding: 30px 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(32px, 6vw, 84px);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.gallery-engineering-note h3 {
  max-width: 520px;
  margin: 12px 0 0;
  font-size: clamp(27px, 3vw, 40px);
  line-height: 1.08;
}

.gallery-engineering-note p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.68;
}

.project-gallery {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 14px;
}

.project-gallery-main {
  min-width: 0;
  min-height: 680px;
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #20262d;
}

.project-gallery-main img {
  width: 100%;
  height: 680px;
  display: block;
  object-fit: contain;
  transition: opacity 0.24s var(--ease), transform 0.5s var(--ease);
}

.project-gallery-main.is-changing img {
  opacity: 0.38;
  transform: scale(0.992);
}

.project-gallery-main figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 15px 17px;
  color: #f5f5f7;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(18, 23, 29, 0.76);
  backdrop-filter: blur(14px);
  font-size: 14px;
}

.project-gallery-thumbs {
  display: grid;
  grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.project-gallery-thumbs button {
  min-width: 0;
  padding: 7px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  color: var(--muted);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.project-gallery-thumbs button:hover,
.project-gallery-thumbs button.is-active {
  color: var(--text);
  border-color: var(--accent);
}

.project-gallery-thumbs button:active {
  transform: translateY(1px);
}

.project-gallery-thumbs img {
  width: 64px;
  height: 100%;
  max-height: 104px;
  display: block;
  object-fit: cover;
  border-radius: 3px;
}

.project-gallery-thumbs span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 700;
}

.detailed-cost-section .section-heading {
  max-width: 820px;
}

.cost-table-wrap {
  margin-top: 44px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-tight);
}

.cost-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.cost-table th,
.cost-table td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.cost-table thead th {
  color: var(--subtle);
  background: var(--surface-soft);
  font-size: 13px;
  text-align: left;
  text-transform: uppercase;
}

.cost-table thead th:not(:first-child),
.cost-table td {
  width: 22%;
  text-align: right;
}

.cost-table tbody th {
  font-size: 16px;
  font-weight: 600;
  text-align: left;
}

.cost-table tbody td {
  color: var(--muted);
}

.cost-table tbody tr.is-added {
  background: var(--accent-soft);
}

.cost-table tbody tr:hover {
  background: rgba(0, 113, 227, 0.05);
}

.cost-table tfoot th,
.cost-table tfoot td {
  padding-top: 24px;
  padding-bottom: 24px;
  border-bottom: 0;
  font-size: 21px;
  font-weight: 800;
}

.cost-table tfoot th {
  text-align: left;
}

.cost-table tfoot td:last-child {
  color: var(--accent-dark);
}

.cost-conclusion {
  margin-bottom: 80px;
  padding: clamp(42px, 7vw, 84px);
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(44px, 8vw, 112px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  color: #f5f5f7;
  background: #20262d;
  box-shadow: var(--shadow-soft);
}

.cost-conclusion .eyebrow {
  color: #8ab9e9;
}

.cost-conclusion h2 {
  margin: 18px 0 0;
}

.cost-conclusion > div:last-child p {
  margin: 0 0 18px;
  color: rgba(245, 245, 247, 0.72);
  font-size: 18px;
  line-height: 1.7;
}

.cost-conclusion .button {
  margin-top: 18px;
}

html[data-resolved-theme="dark"] .cost-summary article.is-smart,
html[data-resolved-theme="dark"] .cost-table tbody tr.is-added {
  background: rgba(0, 113, 227, 0.14);
}

html[data-resolved-theme="dark"] .cost-summary article.is-smart > strong,
html[data-resolved-theme="dark"] .cost-table tfoot td:last-child {
  color: #70b7ff;
}

html[data-resolved-theme="dark"] .cost-bar {
  background: rgba(245, 245, 247, 0.08);
}

html[data-resolved-theme="dark"] .cost-bars,
html[data-resolved-theme="dark"] .project-gallery-thumbs button,
html[data-resolved-theme="dark"] .cost-table-wrap {
  background: rgba(245, 245, 247, 0.045);
}

@media (max-width: 1080px) {
  .cost-hero,
  .cost-breakdown-section,
  .cost-conclusion {
    grid-template-columns: 1fr;
  }

  .cost-hero {
    min-height: auto;
    padding-top: 74px;
  }

  .cost-hero-copy {
    max-width: 820px;
  }

  .cost-hero-media {
    min-height: 620px;
  }

  .cost-hero-media img {
    min-height: 620px;
  }

  .cost-breakdown-copy {
    position: static;
  }

  .theme-switcher {
    display: none;
  }
}

@media (max-width: 760px) {
  .cost-hero {
    width: min(var(--max), calc(100% - 28px));
    padding: 46px 0 36px;
    gap: 32px;
  }

  .cost-hero-copy h1 {
    margin-top: 14px;
    font-size: 42px;
    line-height: 1.02;
  }

  .gallery-engineering-note {
    margin-top: 30px;
    padding: 24px 0;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .gallery-engineering-note h3 {
    font-size: 27px;
  }

  .gallery-engineering-note p {
    font-size: 16px;
    line-height: 1.62;
  }

  .cost-hero-lead {
    font-size: 17px;
  }

  .cost-hero-result {
    margin-top: 28px;
  }

  .cost-hero-result strong {
    font-size: 46px;
  }

  .cost-hero-media,
  .cost-hero-media img {
    min-height: 460px;
  }

  .cost-summary-section {
    padding-top: 64px;
  }

  .cost-summary {
    margin-top: 32px;
    grid-template-columns: 1fr;
  }

  .cost-summary article + .cost-delta,
  .cost-delta + article {
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }

  .cost-summary article,
  .cost-delta {
    padding: 26px 0;
  }

  .cost-summary article.is-smart {
    padding-right: 20px;
    padding-left: 20px;
  }

  .cost-disclaimer {
    margin-top: 20px;
  }

  .cost-breakdown-section {
    gap: 30px;
  }

  .cost-breakdown-copy > p:not(.eyebrow) {
    font-size: 16px;
  }

  .cost-bars {
    padding: 22px;
  }

  .cost-bars article > div:first-child {
    display: grid;
    gap: 5px;
  }

  .cost-bars article > div:first-child span {
    font-size: 13px;
  }

  .project-gallery {
    margin-top: 32px;
    grid-template-columns: 1fr;
  }

  .project-gallery-main,
  .project-gallery-main img {
    min-height: 0;
    height: 490px;
  }

  .project-gallery-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: 132px;
    gap: 8px;
  }

  .project-gallery-thumbs button {
    padding: 5px;
    display: block;
    text-align: center;
  }

  .project-gallery-thumbs img {
    width: 100%;
    height: 94px;
    max-height: none;
  }

  .project-gallery-thumbs span {
    margin-top: 6px;
    display: block;
    overflow-wrap: normal;
    word-break: normal;
    font-size: 11px;
    line-height: 1.2;
  }

  .cost-table-wrap {
    margin-top: 30px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .cost-table,
  .cost-table tbody,
  .cost-table tfoot {
    display: block;
  }

  .cost-table thead {
    display: none;
  }

  .cost-table tr {
    margin-bottom: 10px;
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
  }

  .cost-table th,
  .cost-table td {
    width: auto !important;
    padding: 0;
    display: block;
    border: 0;
    text-align: left !important;
  }

  .cost-table tbody th,
  .cost-table tfoot th {
    grid-column: 1 / -1;
    font-size: 16px;
  }

  .cost-table td::before {
    content: attr(data-label);
    margin-bottom: 5px;
    display: block;
    color: var(--subtle);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .cost-table tfoot tr {
    margin-top: 18px;
    color: #f5f5f7;
    border-color: rgba(255, 255, 255, 0.12);
    background: #20262d;
  }

  .cost-table tfoot th,
  .cost-table tfoot td {
    font-size: 18px;
  }

  .cost-conclusion {
    width: min(var(--max), calc(100% - 28px));
    margin-bottom: 54px;
    padding: 28px 22px;
    gap: 26px;
  }

  .cost-conclusion > div:last-child p {
    font-size: 16px;
  }
}

@media (max-width: 430px) {
  .cost-hero-copy h1 {
    font-size: 38px;
  }

  .cost-hero-media,
  .cost-hero-media img {
    min-height: 420px;
  }

  .project-gallery-main,
  .project-gallery-main img {
    height: 430px;
  }
}
