.performance-theme .perf-mobile { display: none; }
.performance-theme :is(h1, h2, p) > .perf-desktop {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

@media (min-width: 768px) {
  .performance-theme .perf-fold > .mobile-content-fold { display: contents; }
  .performance-theme .perf-fold > .mobile-content-fold > summary { display: none; }
  .performance-theme .perf-catalog .price-grid a > .perf-desktop {
    display: contents;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
  }
}

@media (max-width: 767px) {
  body.performance-theme .perf-desktop { display: none !important; }
  body.performance-theme .perf-mobile { display: inline; }
  body.performance-theme :is(h1, h2, p) > .perf-mobile {
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
  }

  body.performance-theme .first-view :is(.hero--overview, .hero--summary-performance) {
    --perf-paper: #f5f5f2;
    --perf-line: #cdd0ce;
    --perf-ink: #171b1e;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 0 14px;
    color: var(--perf-ink);
    background: #e9eae8;
  }
  body.performance-theme .first-view--strip:has(.hero--summary-performance) {
    min-height: 0 !important;
    background: #e9eae8;
  }

  body.performance-theme.overview-theme .first-view--mode:not(#home) .hero--overview .hero__media,
  body.performance-theme .first-view :is(.hero--overview, .hero--summary-performance) .hero__media {
    order: -1;
    width: 100% !important;
    max-width: none !important;
    height: clamp(174px, 49vw, 310px) !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    border: 0;
    background: #171b1e;
  }
  body.performance-theme .first-view .hero--summary-performance-exhaust .hero__media {
    height: auto !important;
    aspect-ratio: 10 / 7;
  }
  body.performance-theme .first-view .hero--summary-performance .hero__media img {
    object-position: 50% 59%;
    filter: brightness(1.12) contrast(1.02);
    transform: none;
  }
  body.performance-theme .first-view .hero--summary-performance-exhaust .hero__media img { object-position: 50% 48%; }
  body.performance-theme .first-view .hero--summary-performance-project .hero__media img { object-position: 50% 72%; }
  body.performance-theme .first-view .hero--overview .hero__media img { object-position: 50% 54%; }

  body.performance-theme .first-view :is(.hero--overview, .hero--summary-performance) .hero__copy {
    position: relative;
    z-index: 6;
    width: calc(100% - 24px) !important;
    max-width: none !important;
    box-sizing: border-box;
    margin: -32px 12px 0;
    padding: 20px 18px 14px;
    border: 1px solid var(--perf-line);
    border-top: 3px solid #68757c;
    border-bottom: 0;
    color: var(--perf-ink);
    background: var(--perf-paper);
  }
  body.performance-theme.overview-theme .first-view .hero--overview .hero__copy { padding-bottom: 18px; border-bottom: 1px solid var(--perf-line); }
  body.performance-theme .hero--summary-performance .hero__copy .crumb,
  body.performance-theme .hero--summary-performance .hero__copy .actions,
  body.performance-theme.overview-theme .first-view .hero--overview .hero__copy > .perf-desktop,
  body.performance-theme .first-view .service-switcher--performance,
  body.performance-theme .hero--summary-performance .perf-legacy-summary { display: none !important; }

  body.performance-theme .first-view :is(.hero--overview, .hero--summary-performance) h1 {
    max-width: none !important;
    margin: 0 0 8px;
    color: var(--perf-ink);
    font-size: clamp(29px, 8.2vw, 43px) !important;
    line-height: 1.04 !important;
    letter-spacing: -.04em;
    text-wrap: balance;
    overflow-wrap: normal !important;
  }
  body.performance-theme .first-view .hero--overview h1 { font-size: clamp(25px, 7.9vw, 43px) !important; }
  body.performance-theme .first-view .hero__copy .kicker {
    margin: 0 0 10px;
    color: #48545a;
    font-size: 11px;
  }
  body.performance-theme .first-view :is(.hero--overview, .hero--summary-performance) .hero__copy > p:not(.kicker, .crumb, .hero-claim) {
    max-width: 44ch !important;
    margin: 0;
    color: #414b4f !important;
    font-size: 14px !important;
    line-height: 1.45;
  }
  body.performance-theme .hero--summary-performance .perf-offer {
    display: block;
    width: calc(100% - 24px);
    margin: 0 12px;
    padding: 0 18px 13px;
    box-sizing: border-box;
    border: 1px solid var(--perf-line);
    border-top: 0;
    color: var(--perf-ink);
    background: var(--perf-paper);
  }
  .perf-offer__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--perf-line);
  }
  .perf-offer__row div { display: grid; gap: 3px; }
  .perf-offer__row div > span,
  .perf-offer p { color: #414b4f; font-size: 12px; line-height: 1.35; }
  .perf-offer__row strong {
    color: #252d33;
    font-size: clamp(19px, 5.7vw, 25px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -.035em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
  .perf-offer__row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    max-width: 125px;
    padding: 7px 10px;
    color: #fff;
    background: #252c30;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
  }
  .perf-offer p { margin: 7px 0 0; }

  body.performance-theme.overview-theme .page > #services {
    min-height: 0;
    height: 0;
    padding: 0;
    border: 0;
    scroll-margin-top: 68px;
  }
  body.performance-theme.overview-theme .page > #services > * { display: none; }
  body.performance-theme.overview-theme .page > .perf-catalog { padding: 25px 20px; }
  body.performance-theme .perf-catalog .section__head > span,
  body.performance-theme .perf-primary-details .section__head > span,
  body.performance-theme .service-faq .section__head > span { display: none; }
  body.performance-theme .perf-catalog .price-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  body.performance-theme .perf-catalog .price-grid article {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 10px;
    min-height: 0;
    margin: 0;
    padding: 12px 0;
    border: 0;
    border-top: 1px solid #cdd0ce;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  body.performance-theme .perf-catalog .price-grid article:first-child { border-top: 2px solid #68757c; }
  body.performance-theme .perf-catalog .price-grid article > span,
  body.performance-theme .perf-catalog .price-grid article::before { display: none; }
  body.performance-theme .perf-catalog .price-grid h3 { margin: 0; font-size: 16px; line-height: 1.2; }
  body.performance-theme .perf-catalog .price-grid strong {
    align-self: start;
    margin: 0;
    color: #2c3c43;
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }
  body.performance-theme .perf-catalog .price-grid p { grid-column: 1 / -1; margin: 0; padding-right: 18px; color: #414b4f; font-size: 13px; }
  body.performance-theme .perf-catalog .price-grid a {
    position: absolute;
    inset: 0;
    display: block;
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .perf-catalog .price-grid a::after {
    content: "";
    position: absolute;
    right: 3px;
    bottom: 16px;
    width: 6px;
    height: 6px;
    border-top: 1px solid #48545a;
    border-right: 1px solid #48545a;
    transform: rotate(45deg);
  }
  .perf-catalog .price-grid a:focus-visible { outline: 2px solid #48545a; outline-offset: -2px; }
  .perf-catalog .perf-link-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  body.performance-theme .page > .perf-fold { padding: 7px 20px; }
  body.performance-theme .page > :is(.service-faq, .perf-primary-details) { padding: 25px 20px; }
  body.performance-theme .perf-fold .mobile-content-fold > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 48px;
    gap: 10px;
    padding: 8px 0;
    border: 0;
    border-top: 1px solid #cdd0ce;
    background: transparent;
    color: #171b1e;
    cursor: pointer;
    font: 750 15px/1.25 var(--sans, sans-serif);
    list-style: none;
  }
  .perf-fold .mobile-content-fold > summary::-webkit-details-marker { display: none; }
  .perf-fold .mobile-content-fold > summary::after { content: "+"; color: #48545a; font-size: 19px; }
  .perf-fold .mobile-content-fold[open] > summary::after { content: "−"; }
  .perf-fold .mobile-content-fold > .section__head :is(h2, span),
  .perf-fold .mobile-content-fold > span { display: none; }
  body.performance-theme .perf-fold .mobile-content-fold > .section__head { margin: 8px 0 12px; }
  body.performance-theme .perf-primary-details .performance-spec__lead { display: none; }
  body.performance-theme .perf-primary-details .performance-spec {
    display: block;
    margin: 0;
    padding: 0;
    min-height: 0;
    background: transparent;
  }
  body.performance-theme .perf-primary-details .performance-spec__checks {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  body.performance-theme .perf-primary-details .performance-spec__checks > article {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 4px 10px;
    min-height: 0;
    padding: 11px 0;
    border: 0;
    border-top: 1px solid #cdd0ce;
    background: transparent;
    box-shadow: none;
  }
  body.performance-theme .perf-primary-details .performance-spec__checks > article :is(h3, p, span) { margin: 0; }
  body.performance-theme .perf-primary-details .performance-spec__checks > article > :is(h3, p) { grid-column: 2; }
  body.performance-theme .perf-primary-details .performance-spec__checks > article > span { grid-row: 1 / 3; }

  body.performance-theme .page > .utility-bar.perf-footer {
    width: 100%;
    margin: 0;
    padding: 0;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 0;
    background: #e9eae8;
    color: #171b1e;
  }
  body.performance-theme .perf-footer > :is(div, a) {
    min-height: 0;
    padding: 12px 18px;
    gap: 4px;
    color: inherit;
    border: 0;
    border-bottom: 1px solid #cdd0ce;
    background: transparent;
  }
  body.performance-theme .perf-footer > div:first-child { border-inline-end: 1px solid #cdd0ce; }
  .perf-footer .perf-hours { white-space: nowrap; }
  body.performance-theme .perf-footer > a { grid-column: 1 / -1; min-height: 48px; }
  body.performance-theme .perf-footer span { color: #4a555a; }
  body.performance-theme .perf-footer b { color: inherit; }
  body.performance-theme :is(.perf-footer > .perf-next, .page > .perf-overview-next) {
    position: relative;
    min-height: 82px;
    padding-right: 52px;
    border: 0;
    border-top: 2px solid #68757c;
    background: #252c30;
    color: #fff;
  }
  body.performance-theme .page > .perf-overview-next {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 12px 52px 12px 20px;
  }
  .perf-overview-next > span {
    font: 11px/1.3 var(--mono, monospace);
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  body.performance-theme .perf-next span { color: #d0d8dc; }
  body.performance-theme .perf-next b { font-size: 21px; }
  .perf-next svg { position: absolute; right: 18px; top: calc(50% - 10px); }
  body.performance-theme.has-gadky-action-dock .page:has(.perf-footer) { padding-bottom: 0; }
}
