:root {
    --bg: #080a0d;
    --bg-2: #0d1116;
    --surface: #12171e;
    --surface-2: #171d25;
    --surface-3: #202832;
    --line: #2a333f;
    --line-strong: #3b4654;
    --text: #eef2f6;
    --muted-text: #aeb8c4;
    --soft-text: #d4dae2;
    --red: #e0313e;
    --red-dark: #b9222e;
    --gold: #e5b247;
    --blue: #3b93bd;
    --radius: 8px;
    --shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}

body.lightbox-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration-color: rgba(224, 49, 62, 0.5);
    text-underline-offset: 0.22em;
}

a:hover {
    color: #ffffff;
}

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

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

h1,
h2,
h3 {
    color: #ffffff;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

h1 {
    font-size: 2.35rem;
}

h2 {
    font-size: 1.65rem;
}

h3 {
    font-size: 1.08rem;
}

p {
    color: var(--muted-text);
    overflow-wrap: anywhere;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
}

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

.skip-link:focus {
    z-index: 100;
    width: auto;
    height: auto;
    clip: auto;
    left: 16px;
    top: 16px;
    padding: 10px 14px;
    background: var(--gold);
    color: #111;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(8, 10, 13, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.3);
}

.top-strip {
    background: #050608;
    color: var(--soft-text);
    font-size: 0.88rem;
}

.top-strip-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 0;
}

.top-strip a {
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
}

.quick-links {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand img {
    width: 72px;
    height: 48px;
    object-fit: contain;
    background: #050608;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

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

.brand strong {
    color: #ffffff;
    font-size: 1.02rem;
}

.brand small {
    color: var(--muted-text);
    font-size: 0.82rem;
}

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

.site-nav a {
    padding: 10px 10px;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--soft-text);
    font-weight: 800;
    font-size: 0.92rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    background: var(--surface-2);
    color: #ffffff;
}

.site-nav .nav-contact {
    background: var(--red);
    color: #ffffff;
}

.site-nav .nav-contact:hover,
.site-nav .nav-contact[aria-current="page"] {
    background: var(--red-dark);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 10px;
}

.nav-toggle span:not(.sr-only) {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #ffffff;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 17px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.button.primary {
    background: var(--red);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(224, 49, 62, 0.22);
}

.button.primary:hover {
    background: var(--red-dark);
    color: #ffffff;
}

.button.secondary,
.button.secondary.dark {
    color: #ffffff;
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.06);
}

.button.secondary:hover,
.button.secondary.dark:hover {
    border-color: var(--red);
    color: #ffffff;
}

.hero {
    min-height: 520px;
    min-height: 68svh;
    display: grid;
    align-items: center;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(8, 10, 13, 0.95), rgba(8, 10, 13, 0.78) 48%, rgba(8, 10, 13, 0.45)),
        var(--hero-image) center / cover no-repeat;
}

.hero h1,
.hero p {
    color: #ffffff;
}

.hero-copy {
    max-width: 720px;
    padding: 52px 0 56px;
}

.hero h1 {
    font-size: 2.95rem;
    margin-bottom: 18px;
}

.hero p {
    font-size: 1.08rem;
    max-width: 680px;
}

.eyebrow {
    margin-bottom: 9px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: var(--gold);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 28px 0 0;
}

.trust-row div {
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.45);
}

.trust-row dt {
    color: #ffffff;
    font-weight: 900;
}

.trust-row dd {
    margin: 2px 0 0;
    color: var(--muted-text);
    font-size: 0.88rem;
}

.section {
    padding: 58px 0;
    background: var(--bg);
}

.section.compact {
    min-height: 100svh;
    display: grid;
    align-items: center;
}

.muted {
    background: var(--bg-2);
}

.contact-band {
    background: linear-gradient(135deg, #07090c, #151b23);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 26px;
    text-align: center;
}

.section-heading.align-left {
    text-align: left;
}

.container.section-heading.align-left {
    margin-left: auto;
    margin-right: auto;
}

.section-heading p {
    color: var(--muted-text);
}

.card-grid {
    display: grid;
    gap: 14px;
}

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

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

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 19px;
    box-shadow: none;
}

.card h2,
.card h3 {
    margin-bottom: 9px;
}

.card p,
.service-card p {
    color: var(--muted-text);
}

.service-directory {
    display: grid;
    gap: 18px;
}

.service-group {
    display: grid;
    grid-template-columns: minmax(210px, 0.32fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.service-group header {
    position: sticky;
    top: 98px;
}

.service-group h2 {
    margin-bottom: 0;
}

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

.service-row {
    display: grid;
    gap: 6px;
    min-height: 112px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #0b0f14;
    text-decoration: none;
}

.service-row:hover {
    border-color: var(--red);
    background: var(--surface-2);
}

.service-row span {
    color: #ffffff;
    font-weight: 900;
}

.service-row small {
    color: var(--muted-text);
    font-size: 0.92rem;
    line-height: 1.45;
}

.clean-list,
.check-list {
    padding-left: 0;
    list-style: none;
}

.clean-list li,
.check-list li {
    position: relative;
    margin: 9px 0;
    padding-left: 21px;
    color: var(--soft-text);
}

.clean-list li::before,
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.68em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
}

.center-actions {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.split,
.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

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

.split-image,
.page-hero-image {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: var(--shadow);
    justify-self: end;
}

.split-image {
    aspect-ratio: 4 / 3;
    max-width: 390px;
    max-height: 300px;
}

.split-image.landscape,
.page-hero-image.wide {
    aspect-ratio: 4 / 3;
}

.page-hero-image {
    aspect-ratio: 4 / 3;
    max-width: 360px;
    max-height: 290px;
}

.area-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 20px 0;
}

.area-pills a,
.link-list a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--soft-text);
    text-decoration: none;
    font-weight: 800;
}

.area-pills a:hover,
.area-pills a[aria-current="page"],
.link-list a:hover {
    border-color: var(--red);
    background: var(--surface-2);
    color: #ffffff;
}

.area-pills.compact a {
    min-height: 36px;
    font-size: 0.9rem;
}

.link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

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

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

.feature-list article {
    padding: 16px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--red);
    border-radius: var(--radius);
    background: var(--surface);
}

.feature-list p {
    margin-bottom: 0;
}

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

.work-photo-grid figure {
    margin: 0;
    position: relative;
    min-height: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
}

.work-photo-grid picture,
.work-photo-grid img {
    width: 100%;
    height: 100%;
}

.work-photo-grid img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 160ms ease;
}

.work-photo-grid figure:hover img {
    transform: scale(1.025);
}

.work-photo-grid figcaption {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 7px 9px;
    border-radius: var(--radius);
    color: #ffffff;
    background: rgba(6, 8, 10, 0.8);
    font-size: 0.82rem;
    font-weight: 900;
}

.gallery-grid {
    margin-bottom: 40px;
}

.lightbox-trigger {
    display: block;
    color: inherit;
    text-decoration: none;
}

.repair-story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 980px;
}

.repair-story-card {
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--red);
    border-radius: var(--radius);
    background: var(--surface);
}

.repair-story-card .lightbox-trigger {
    position: relative;
    width: 100%;
    height: 138px;
    overflow: hidden;
    border-radius: var(--radius);
    background: #050608;
}

.repair-story-card .lightbox-trigger::after {
    content: "View photo";
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 4px 7px;
    border-radius: var(--radius);
    color: #ffffff;
    background: rgba(5, 6, 8, 0.78);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.repair-story-card picture,
.repair-story-card img {
    width: 100%;
    height: 100%;
}

.repair-story-card img {
    object-fit: cover;
    transition: transform 160ms ease;
}

.repair-story-card .lightbox-trigger:hover img {
    transform: scale(1.035);
}

.repair-story-content {
    display: grid;
    gap: 9px;
    min-width: 0;
    align-self: stretch;
}

.repair-story-card:not(:has(.lightbox-trigger)) {
    grid-template-columns: 1fr;
}

.repair-story-card h2 {
    margin-bottom: 0;
    font-size: 1.16rem;
}

.repair-story-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.repair-story-details div {
    display: grid;
    align-content: start;
    gap: 4px;
}

.repair-story-details dt {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.repair-story-details dd {
    margin: 0;
    color: var(--muted-text);
    font-size: 0.9rem;
    line-height: 1.4;
}

.published-heading {
    margin-top: 18px;
}

.page-hero {
    padding: 46px 0;
    background: linear-gradient(135deg, #0b0e13, #151b23);
    border-bottom: 1px solid var(--line);
}

.page-hero.slim {
    padding: 42px 0;
}

.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.45fr);
    align-items: center;
    gap: 30px;
}

.page-hero p {
    color: var(--muted-text);
    font-size: 1rem;
}

.page-hero .button.secondary {
    color: #ffffff;
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.06);
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-list.compact {
    gap: 8px;
}

details {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 15px 16px;
}

summary {
    color: #ffffff;
    cursor: pointer;
    font-weight: 900;
}

details p {
    margin: 12px 0 0;
    color: var(--muted-text);
}

.request-panel {
    display: grid;
    grid-template-columns: 0.72fr 1fr;
    gap: 22px;
    align-items: start;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.request-panel > div:first-child p {
    color: var(--muted-text);
}

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

.two-column .request-panel {
    grid-template-columns: 1fr;
}

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

.two-column .request-panel .span-2 {
    grid-column: span 1;
}

.request-form label,
.filter-bar label {
    display: grid;
    gap: 6px;
    color: #ffffff;
    font-weight: 800;
}

.request-form .checkbox-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 700;
}

.checkbox-line input {
    width: auto;
    margin-top: 4px;
    accent-color: var(--red);
}

.request-form span,
.filter-bar span {
    font-size: 0.86rem;
}

.request-form input,
.request-form select,
.request-form textarea,
.filter-bar select,
.search-form input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #0b0f14;
    color: var(--text);
    padding: 11px 12px;
}

.request-form textarea {
    resize: vertical;
}

.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus,
.filter-bar select:focus,
.search-form input:focus {
    outline: 3px solid rgba(59, 147, 189, 0.24);
    border-color: var(--blue);
}

.span-2 {
    grid-column: span 2;
}

.notice {
    grid-column: 1 / -1;
    padding: 13px 15px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.notice-success {
    border-color: rgba(59, 147, 189, 0.45);
    background: #0c2230;
    color: #d8f2ff;
}

.notice-error {
    border-color: rgba(224, 49, 62, 0.5);
    background: #2a0f14;
    color: #ffdfe3;
}

.notice ul {
    margin-bottom: 0;
}

.empty-state {
    padding: 18px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    color: var(--muted-text);
    background: var(--surface);
}

.empty-state.large {
    padding: 28px;
    text-align: center;
}

.stack {
    display: grid;
    gap: 10px;
}

.review {
    padding: 16px;
    border-left: 4px solid var(--gold);
    background: var(--surface);
    border-radius: var(--radius);
}

.rating {
    color: var(--gold);
    font-size: 1.2rem;
    line-height: 1;
    letter-spacing: 0;
    margin-bottom: 12px;
}

.card .rating,
.review-card .rating,
.admin-review .rating,
.admin-list .rating {
    color: var(--gold);
}

.meta {
    color: var(--muted-text);
    font-size: 0.9rem;
}

.blog-filter-band {
    padding: 22px 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
}

.blog-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 280px));
    justify-content: start;
    gap: 12px;
}

.blog-card {
    display: grid;
    align-content: start;
    gap: 9px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.blog-card > :not(picture) {
    margin-left: 14px;
    margin-right: 14px;
}

.blog-card .eyebrow {
    margin-top: 13px;
    margin-bottom: 0;
}

.blog-card picture {
    display: block;
    width: 100%;
    height: 132px;
    overflow: hidden;
    background: #050608;
}

.blog-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.blog-card img {
    transition: transform 160ms ease;
}

.blog-card:hover img {
    transform: scale(1.025);
}

.blog-card h2 {
    font-size: 1.08rem;
    margin-bottom: 0;
}

.blog-card h2 a {
    text-decoration: none;
}

.blog-card footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--muted-text);
    font-size: 0.86rem;
}

.blog-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.blog-article {
    max-width: none;
}

.blog-article h2,
.blog-article h3 {
    margin-top: 26px;
}

.blog-article p,
.blog-article li {
    color: var(--soft-text);
}

.blog-article ul {
    padding-left: 22px;
}

.blog-featured-image,
.blog-inline-image {
    margin: 0 0 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
}

.blog-featured-image {
    max-width: 420px;
}

.blog-inline-image {
    max-width: 380px;
}

.blog-featured-image .lightbox-trigger,
.blog-inline-image .lightbox-trigger {
    display: block;
    width: 100%;
    height: 260px;
    overflow: hidden;
}

.blog-featured-image img,
.blog-inline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.blog-inline-image figcaption {
    padding: 10px 12px;
    color: var(--muted-text);
    font-size: 0.9rem;
}

.blog-sidebar {
    position: sticky;
    top: 112px;
    display: grid;
    gap: 14px;
}

.sidebar-panel {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    place-items: center;
    padding: 22px;
    background: rgba(0, 0, 0, 0.86);
}

.lightbox-modal.is-open {
    display: grid;
}

.lightbox-modal figure {
    width: min(100%, 980px);
    margin: 0;
}

.lightbox-modal img {
    width: 100%;
    max-height: 82svh;
    object-fit: contain;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: #050608;
}

.lightbox-modal figcaption {
    margin-top: 10px;
    color: #ffffff;
    text-align: center;
    font-weight: 800;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    color: #ffffff;
    background: var(--surface);
    cursor: pointer;
}

.filter-bar,
.search-form {
    display: flex;
    align-items: end;
    gap: 12px;
    margin-bottom: 22px;
}

.filter-bar label,
.search-form input {
    flex: 1;
}

.prose {
    max-width: 760px;
}

.prose h2 {
    margin-top: 26px;
}

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

.sitemap-list a {
    display: grid;
    gap: 4px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    background: var(--surface);
}

.sitemap-list span {
    color: #ffffff;
    font-weight: 900;
}

.sitemap-list small {
    color: var(--muted-text);
}

.big-phone,
.footer-phone,
.text-link {
    color: #ffffff;
    font-weight: 900;
}

.text-link:hover,
.big-phone:hover,
.footer-phone:hover {
    color: var(--gold);
}

.install-page {
    background: var(--bg);
}

.site-footer {
    padding: 50px 0 84px;
    color: var(--muted-text);
    background: #050608;
    border-top: 1px solid var(--line);
}

.site-footer h2 {
    color: #ffffff;
    font-size: 1.02rem;
}

.site-footer a {
    color: var(--soft-text);
}

.site-footer a:hover {
    color: #ffffff;
}

.site-footer ul {
    padding-left: 0;
    list-style: none;
}

.site-footer li {
    margin: 8px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 26px;
}

.site-footer img {
    width: 128px;
    height: auto;
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #858f9c;
    font-size: 0.88rem;
}

.mobile-actions {
    display: none;
}

.admin-body {
    min-height: 100svh;
    background:
        radial-gradient(circle at top left, rgba(224, 49, 62, 0.12), transparent 34rem),
        #07090c;
}

.admin-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100svh;
}

.admin-login-body .admin-shell {
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    padding: 24px;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100svh;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 20px;
    background: #050608;
    border-right: 1px solid var(--line);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.admin-brand img,
.admin-login-logo {
    width: 82px;
    height: 54px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #020304;
}

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

.admin-brand strong {
    color: #ffffff;
}

.admin-brand small {
    color: var(--muted-text);
    font-size: 0.82rem;
}

.admin-nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-2);
    color: #ffffff;
    cursor: pointer;
}

.admin-nav-toggle span:not(.sr-only) {
    display: block;
    width: 21px;
    height: 2px;
    margin: 3px 0;
    border-radius: 999px;
    background: currentColor;
}

.admin-nav {
    display: grid;
    gap: 8px;
}

.admin-nav a {
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--soft-text);
    font-weight: 900;
    text-decoration: none;
}

.admin-nav a:hover,
.admin-nav a[aria-current="page"] {
    color: #ffffff;
    border-color: var(--line);
    background: var(--surface-2);
}

.admin-sidebar-actions {
    display: grid;
    gap: 10px;
    margin-top: auto;
}

.admin-sidebar-actions .button,
.admin-sidebar-actions form,
.admin-sidebar-actions button {
    width: 100%;
}

.admin-main {
    width: min(100%, 1220px);
    padding: 28px;
}

.admin-login-body .admin-main {
    width: min(100%, 520px);
    padding: 0;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.admin-topbar h1 {
    margin-bottom: 0;
    font-size: 2rem;
}

.admin-login-body .admin-topbar {
    display: none;
}

.admin-login-panel {
    width: 100%;
}

.admin-login-panel .admin-card {
    padding: 28px;
}

.admin-login-panel .admin-card::before {
    content: "";
    display: block;
    width: 112px;
    height: 74px;
    margin-bottom: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #020304 image-set(url("../images/autotechpete-logo.webp") type("image/webp"), url("../images/autotechpete-logo.jpg") type("image/jpeg")) center / contain no-repeat;
}

.admin-card,
.admin-metric,
.admin-review,
.admin-job-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: none;
}

.admin-card {
    padding: 20px;
    margin-bottom: 18px;
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.admin-card-header h2 {
    margin-bottom: 0;
}

.admin-card-header a:not(.button) {
    color: #ffffff;
    font-weight: 900;
}

.admin-metric-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.admin-metric {
    display: grid;
    gap: 5px;
    padding: 16px;
}

.admin-metric span {
    color: var(--muted-text);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-metric strong {
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
}

.admin-grid {
    display: grid;
    gap: 18px;
}

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

.admin-list {
    display: grid;
    gap: 10px;
}

.admin-list div {
    display: grid;
    gap: 2px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #0b0f14;
}

.admin-list strong,
.admin-table strong {
    color: #ffffff;
}

.admin-list span,
.admin-list small,
.admin-table span,
.admin-table small,
.admin-job-card small,
.admin-review small {
    display: block;
    color: var(--muted-text);
}

.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.admin-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 13px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: #ffffff;
    background: #0b0f14;
    font-size: 0.82rem;
    text-transform: uppercase;
}

.admin-table tr:last-child td {
    border-bottom: 0;
}

.admin-form {
    display: grid;
    gap: 13px;
}

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

.admin-form label {
    display: grid;
    gap: 6px;
    color: #ffffff;
    font-weight: 900;
}

.admin-form label > span {
    font-size: 0.88rem;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #0b0f14;
    color: var(--text);
    padding: 11px 12px;
}

.admin-form textarea {
    resize: vertical;
}

.admin-form small {
    color: var(--muted-text);
    font-weight: 700;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    outline: 3px solid rgba(59, 147, 189, 0.24);
    border-color: var(--blue);
}

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

.admin-actions form {
    margin: 0;
}

.button.danger {
    border-color: rgba(224, 49, 62, 0.55);
    color: #ffdfe3;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #ffffff;
    background: var(--surface-3);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.status-pill.published {
    border-color: rgba(229, 178, 71, 0.45);
    color: #ffe3a3;
    background: rgba(229, 178, 71, 0.13);
}

.status-pill.draft {
    border-color: rgba(174, 184, 196, 0.35);
}

.admin-review-list,
.admin-job-grid {
    display: grid;
    gap: 12px;
}

.admin-review {
    padding: 16px;
}

.admin-review header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

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

.admin-job-card {
    overflow: hidden;
}

.admin-job-card picture,
.admin-job-card img {
    width: 100%;
}

.admin-job-card img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.admin-job-card > div {
    display: grid;
    gap: 8px;
    padding: 15px;
}

.admin-subpanel {
    margin: 4px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #0b0f14;
}

.blog-image-manager {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.blog-image-manager article {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.blog-image-manager img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
}

.blog-image-manager code {
    display: inline-flex;
    width: fit-content;
    margin: 4px 0;
    padding: 4px 7px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: #ffffff;
    background: #050608;
}

.lead-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.lead-detail-grid article,
.lead-message {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #0b0f14;
}

.admin-detail-list {
    display: grid;
    gap: 9px;
    margin: 0;
}

.admin-detail-list div {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--line);
}

.admin-detail-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.admin-detail-list dt {
    color: var(--muted-text);
    font-weight: 900;
}

.admin-detail-list dd {
    margin: 0;
    color: var(--text);
}

.lead-message {
    margin-bottom: 18px;
}

.admin-danger-zone {
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

@media (min-width: 980px) {
    h1 {
        font-size: 3.1rem;
    }

    .page-hero h1 {
        font-size: 2.55rem;
    }
}

@media (max-width: 980px) {
    .admin-shell {
        display: block;
        min-height: 100svh;
    }

    .admin-sidebar {
        position: sticky;
        z-index: 60;
        height: auto;
        top: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
    }

    .admin-brand {
        min-width: 0;
    }

    .admin-brand img {
        width: 70px;
        height: 46px;
        flex: 0 0 auto;
    }

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

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

    .admin-nav-toggle {
        display: grid;
    }

    .admin-nav,
    .admin-sidebar-actions {
        grid-column: 1 / -1;
        display: none;
        width: 100%;
    }

    .admin-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-top: 12px;
        border-top: 1px solid var(--line);
    }

    .admin-nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
        text-align: center;
    }

    .admin-sidebar-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 0;
    }

    .admin-nav-open .admin-nav,
    .admin-nav-open .admin-sidebar-actions {
        display: grid;
    }

    .admin-main {
        width: 100%;
        padding: 20px 16px 28px;
    }

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

    .admin-grid.two,
    .admin-job-grid,
    .blog-article-layout,
    .repair-story-grid {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }

    .blog-post-grid {
        grid-template-columns: repeat(2, minmax(0, 280px));
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 110px;
        display: none;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--surface);
        box-shadow: var(--shadow);
    }

    .nav-open .site-nav {
        display: grid;
    }

    .site-nav a {
        padding: 13px;
    }

    .hero {
        min-height: 570px;
        background-position: center;
    }

    .hero h1 {
        font-size: 2.45rem;
    }

    .trust-row,
    .card-grid.three,
    .card-grid.four,
    .feature-list,
    .three-columns,
    .sitemap-list,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split,
    .two-column,
    .page-hero-grid,
    .request-panel {
        grid-template-columns: 1fr;
    }

    .service-group {
        grid-template-columns: 1fr;
    }

    .service-group header {
        position: static;
    }

    .split-image,
    .page-hero-image {
        justify-self: start;
    }

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

    .repair-story-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    body {
        padding-bottom: 64px;
    }

    .admin-body {
        padding-bottom: 0;
    }

    .admin-shell {
        overflow-x: hidden;
    }

    .admin-sidebar {
        padding: 10px 12px;
    }

    .admin-brand img {
        width: 58px;
        height: 38px;
    }

    .admin-brand strong {
        font-size: 0.98rem;
    }

    .admin-brand small {
        font-size: 0.76rem;
    }

    .admin-nav,
    .admin-sidebar-actions,
    .admin-metric-grid,
    .admin-form-grid,
    .blog-post-grid,
    .lead-detail-grid,
    .repair-story-card {
        grid-template-columns: 1fr;
    }

    .admin-main {
        padding: 14px 10px 24px;
    }

    .admin-card,
    .admin-metric,
    .admin-review {
        border-radius: 7px;
    }

    .admin-card {
        padding: 14px;
        margin-bottom: 12px;
    }

    .admin-metric {
        padding: 13px;
    }

    .admin-metric strong {
        font-size: 1.65rem;
    }

    .blog-image-manager article {
        grid-template-columns: 1fr;
    }

    .blog-post-grid {
        justify-content: stretch;
    }

    .blog-card picture {
        height: 150px;
    }

    .blog-featured-image,
    .blog-inline-image {
        max-width: 100%;
    }

    .repair-story-card .lightbox-trigger {
        height: 190px;
    }

    .admin-detail-list div {
        grid-template-columns: 1fr;
    }

    .admin-topbar,
    .admin-card-header,
    .admin-review header {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .admin-topbar {
        margin-bottom: 14px;
        padding-bottom: 14px;
    }

    .admin-topbar h1 {
        font-size: 1.55rem;
    }

    .admin-topbar .button,
    .admin-card-header .button,
    .admin-actions .button,
    .admin-actions button {
        width: 100%;
    }

    .admin-actions {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

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

    .admin-login-body .admin-shell {
        padding: 16px;
    }

    .admin-login-panel .admin-card {
        padding: 20px;
    }

    .admin-form input,
    .admin-form select,
    .admin-form textarea {
        min-height: 44px;
        font-size: 16px;
    }

    .admin-table-wrap {
        margin-inline: -2px;
        border-radius: 7px;
    }

    .admin-table {
        min-width: 620px;
    }

    .top-strip {
        display: none;
    }

    .nav-shell {
        min-height: 72px;
    }

    .brand img {
        width: 70px;
        height: 46px;
    }

    .nav-toggle {
        width: 42px;
        height: 42px;
    }

    .site-nav {
        top: 82px;
    }

    .brand span {
        display: none;
    }

    .hero {
        min-height: 540px;
        align-items: end;
        background:
            linear-gradient(180deg, rgba(8, 10, 13, 0.34), rgba(8, 10, 13, 0.94)),
            var(--hero-image) center / cover no-repeat;
    }

    .hero-copy {
        padding: 78px 0 38px;
    }

    .hero h1 {
        font-size: 2.08rem;
    }

    .hero p,
    .page-hero p {
        font-size: 0.98rem;
    }

    .section,
    .page-hero,
    .page-hero.slim {
        padding: 42px 0;
    }

    .trust-row,
    .card-grid.three,
    .card-grid.four,
    .feature-list,
    .three-columns,
    .service-list,
    .sitemap-list,
    .footer-grid,
    .link-list.columns,
    .request-form {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: span 1;
    }

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

    .filter-bar,
    .search-form,
    .footer-bottom {
        display: grid;
        align-items: stretch;
    }

    .mobile-actions {
        position: fixed;
        z-index: 50;
        left: 0;
        right: 0;
        bottom: 0;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        background: #050608;
        box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.34);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .mobile-actions a {
        display: grid;
        min-width: 0;
        min-height: 60px;
        place-items: center;
        color: #ffffff;
        font-size: 0.92rem;
        font-weight: 900;
        line-height: 1;
        white-space: nowrap;
        text-decoration: none;
    }

    .mobile-actions a:nth-child(2) {
        background: var(--surface-3);
    }

    .mobile-actions a:last-child {
        background: var(--red);
    }
}

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

    .hero h1 {
        font-size: 1.92rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.42rem;
    }

    .request-panel,
    .card {
        padding: 16px;
    }

    .work-photo-grid {
        grid-template-columns: 1fr;
    }

    .mobile-actions a {
        min-height: 56px;
        font-size: 0.84rem;
    }
}
