:root {
    --ink: #10233f;
    --muted: #5a6678;
    --line: #dfe4ec;
    --paper: #f7f9fc;
    --white: #ffffff;
    --brand: #0b3472;
    --brand-dark: #08285a;
    --accent: #f25545;
    --accent-dark: #d94235;
    --soft-accent: #fff0ee;
    --shadow: 0 18px 44px rgba(16, 35, 63, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
}

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

a {
    color: inherit;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    padding: 10px 14px;
    background: var(--ink);
    color: var(--white);
    z-index: 10;
}

.skip-link:focus {
    left: 8px;
}

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

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 8px 20px;
    color: var(--white);
    background: var(--brand-dark);
    font-size: 0.9rem;
}

.topbar a {
    font-weight: 700;
    text-decoration: none;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 20px;
}

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

.brand-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 6px;
    background: var(--white);
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.2;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex-wrap: wrap;
}

.nav-links a {
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--muted);
    font-size: 0.94rem;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--brand-dark);
    background: #eef4ff;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 9px 12px;
    background: var(--white);
    color: var(--ink);
    font-weight: 700;
}

.hero {
    position: relative;
    min-height: 620px;
    display: grid;
    align-items: end;
    overflow: hidden;
    color: var(--white);
    background: var(--ink);
}

.hero-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 40, 90, 0.9), rgba(16, 35, 63, 0.34)),
        url("/assets/images/hero-technician.jpg") center/cover;
}

.hero-content {
    position: relative;
    max-width: 820px;
    padding: 96px 20px 82px;
    margin-left: max(20px, calc((100vw - 1180px) / 2));
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    line-height: 0.98;
}

.hero p {
    max-width: 760px;
    font-size: 1.12rem;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border: 2px solid var(--brand);
    border-radius: 6px;
    background: var(--brand);
    color: var(--white);
    font-weight: 800;
    text-decoration: none;
}

.button:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.button-secondary {
    background: var(--white);
    color: var(--brand-dark);
    border-color: var(--white);
}

.button-light {
    background: var(--white);
    color: var(--brand-dark);
    border-color: var(--white);
}

.section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 72px 20px;
}

.intro {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.error-page {
    min-height: 48vh;
    display: grid;
    align-content: center;
}

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

.intro h1,
.section-heading h2,
.split h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
}

.intro p,
.split p,
.section-heading p {
    color: var(--muted);
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding-top: 22px;
    padding-bottom: 22px;
}

.quick-links a {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(23, 32, 38, 0.06);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.section-heading h2 {
    max-width: 760px;
}

.card-grid,
.branch-grid,
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.card,
.branch-card,
.info-panel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 10px 28px rgba(23, 32, 38, 0.07);
}

.card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #fff7f4;
}

.card-body,
.branch-card,
.info-panel {
    padding: 20px;
}

.card h3,
.branch-card h3,
.info-panel h2 {
    margin: 0 0 10px;
    line-height: 1.2;
}

.card p,
.branch-card p,
.info-panel p {
    color: var(--muted);
}

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

.contact-form label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-weight: 800;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px;
    color: var(--ink);
    background: var(--white);
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 3px solid rgba(242, 85, 69, 0.2);
    border-color: var(--brand);
}

.availability {
    padding: 10px 12px;
    border-left: 4px solid var(--accent);
    background: var(--soft-accent);
    font-size: 0.92rem;
}

.text-link {
    color: var(--brand-dark);
    font-weight: 800;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 36px;
    align-items: center;
}

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

.feature-list a,
.feature-list span {
    padding: 18px 20px;
    border-left: 5px solid var(--brand);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 10px 24px rgba(23, 32, 38, 0.08);
    font-weight: 800;
    text-decoration: none;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    gap: 36px;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    padding: 72px 20px;
}

.detail-hero img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #fff7f4;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

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

.check-list li {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
}

.map {
    width: 100%;
    min-height: 360px;
    border: 0;
    border-radius: 8px;
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    max-width: 1180px;
    margin: 20px auto 72px;
    padding: 30px;
    border-radius: 8px;
    color: var(--white);
    background: var(--brand-dark);
}

.cta-band h2 {
    margin: 0 0 8px;
}

.cta-band p {
    margin: 0;
    color: #d8efec;
}

.site-footer {
    color: #dce5e4;
    background: var(--ink);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr repeat(4, 1fr);
    gap: 28px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 54px 20px 34px;
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 1.05rem;
}

.footer-grid p {
    color: #edf3f7;
}

.footer-grid ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

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

.footer-grid a {
    color: #eef5f8;
}

.footer-grid a:hover {
    color: var(--accent);
}

.footer-grid .button-light {
    color: var(--brand-dark);
    background: var(--white);
    border-color: var(--white);
    text-decoration: none;
}

.footer-grid .button-light:hover {
    color: var(--white);
    background: var(--accent);
    border-color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: #aebcba;
}

@media (max-width: 900px) {
    .topbar,
    .nav {
        max-width: none;
    }

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

    .nav {
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px;
    }

    .quick-links,
    .card-grid,
    .branch-grid,
    .service-grid,
    .split,
    .detail-hero,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section-heading,
    .cta-band {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .topbar,
    .footer-bottom {
        flex-direction: column;
    }

    .hero {
        min-height: 560px;
    }

    .hero-content {
        padding-top: 70px;
        padding-bottom: 54px;
    }

    .quick-links,
    .card-grid,
    .branch-grid,
    .service-grid,
    .split,
    .detail-hero,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section,
    .detail-hero {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .brand {
        min-width: 0;
    }

    .brand-logo {
        width: 48px;
        height: 48px;
    }

    .brand small {
        display: none;
    }
}
