:root {
    --home-navy: #08253f;
    --home-navy-soft: #173f5f;
    --home-blue: #006899;
    --home-blue-dark: #00547c;
    --home-sky: #eaf5fb;
    --home-ice: #f5f9fb;
    --home-white: #fff;
    --home-text: #183149;
    --home-muted: #66798b;
    --home-line: #e3ebf0;
    --home-success: #4b8f68;
    --home-warning: #ad7a2f;
    --home-danger: #a75656;
    --home-radius-sm: 12px;
    --home-radius-md: 17px;
    --home-radius-lg: 24px;
    --home-shadow: 0 14px 42px rgba(8, 37, 63, 0.07);
    --home-container: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.home-page {
    margin: 0;
    overflow-x: hidden;
    background: var(--home-white);
    color: var(--home-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.home-page img { max-width: 100%; }
.home-page a { color: inherit; }

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

.home-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    clip-path: inset(50%) !important;
}

.home-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: var(--home-radius-sm);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.home-button-primary {
    border-color: var(--home-blue);
    background: var(--home-blue);
    color: #fff !important;
}

.home-button-primary:hover {
    border-color: var(--home-blue-dark);
    background: var(--home-blue-dark);
}

.home-button-secondary {
    border-color: #b8c8d3;
    background: rgba(255, 255, 255, 0.78);
    color: var(--home-navy) !important;
}

.home-button-secondary:hover {
    border-color: var(--home-blue);
    color: var(--home-blue) !important;
}

.home-button-wide { width: 100%; }

.home-button:focus-visible,
.home-page input:focus-visible,
.home-page select:focus-visible,
.home-page a:focus-visible {
    outline: 3px solid rgba(42, 139, 187, 0.34);
    outline-offset: 3px;
}

.home-hero {
    position: relative;
    overflow: hidden;
    padding: 38px 0 20px;
    background: linear-gradient(180deg, #f8fbfd 0%, #eef6fa 100%);
}

.home-hero-grid {
    display: grid;
    gap: 30px;
}

.home-hero-copy {
    position: relative;
    z-index: 2;
}

.home-eyebrow,
.home-section-kicker {
    margin: 0 0 12px;
    color: var(--home-navy-soft);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-eyebrow i { color: var(--home-blue); font-size: 0.82rem; }

.home-hero h1 {
    max-width: 720px;
    margin: 0;
    color: var(--home-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 11vw, 4.2rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 0.98;
}

.home-hero h1 span { color: var(--home-blue); }

.home-hero-lead {
    max-width: 590px;
    margin: 20px 0 0;
    color: var(--home-muted);
    font-size: clamp(0.98rem, 3vw, 1.12rem);
    line-height: 1.75;
}

.home-search {
    display: grid;
    gap: 10px;
    margin-top: 26px;
    padding: 12px;
    border: 1px solid rgba(205, 219, 228, 0.9);
    border-radius: var(--home-radius-md);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--home-shadow);
}

.home-search-field {
    position: relative;
    display: flex;
    min-height: 50px;
    align-items: center;
    border: 1px solid var(--home-line);
    border-radius: 11px;
    background: #fff;
}

.home-search-field > i {
    position: absolute;
    left: 16px;
    z-index: 1;
    color: var(--home-blue);
    pointer-events: none;
}

.home-search-field input,
.home-search-field select {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px 12px 44px;
    border: 0;
    border-radius: inherit;
    outline: 0;
    background: transparent;
    color: var(--home-text);
    font: inherit;
    font-size: 0.9rem;
}

.home-search-field select {
    padding-right: 34px;
    cursor: pointer;
}

.home-search-field:focus-within {
    border-color: var(--home-blue);
    box-shadow: 0 0 0 3px rgba(0, 104, 153, 0.1);
}

.home-search-submit { width: 100%; min-height: 50px; }

.home-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
}

.home-hero-media {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(210, 223, 232, 0.85);
    border-radius: var(--home-radius-lg);
    background: #eaf4f9;
    box-shadow: var(--home-shadow);
}

.home-hero-media > img {
    display: block;
    width: 100%;
    height: 290px;
    object-fit: cover;
    object-position: 69% center;
}

.home-trust-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--home-muted);
    box-shadow: 0 10px 30px rgba(8, 37, 63, 0.12);
    font-size: 0.78rem;
    line-height: 1.45;
    backdrop-filter: blur(8px);
}

.home-trust-badge strong {
    display: block;
    margin-bottom: 2px;
    color: var(--home-navy);
}

.home-trust-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--home-sky);
    color: var(--home-blue);
    font-size: 1.35rem;
}

.home-category-strip {
    padding: 14px 0 0;
    background: #fff;
    scroll-margin-top: 84px;
}

.home-category-scroll {
    display: grid;
    grid-auto-columns: minmax(112px, 1fr);
    grid-auto-flow: column;
    gap: 0;
    overflow-x: auto;
    padding: 8px;
    border: 1px solid var(--home-line);
    border-radius: var(--home-radius-md);
    background: #fff;
    box-shadow: 0 8px 26px rgba(8, 37, 63, 0.05);
    scroll-behavior: smooth;
    scrollbar-width: thin;
    overscroll-behavior-inline: contain;
}

.home-category-quick {
    display: grid;
    min-height: 84px;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 10px 8px;
    border-right: 1px solid var(--home-line);
    color: var(--home-text);
    font-size: 0.76rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.home-category-quick:last-child { border-right: 0; }
.home-category-quick i { color: var(--home-blue); font-size: 1.5rem; }

.home-category-quick:hover {
    border-radius: 11px;
    background: var(--home-ice);
    color: var(--home-blue);
}

.home-main-section,
.home-services-section { padding: 48px 0; }

.home-overview-grid {
    display: grid;
    gap: 16px;
}

.home-panel {
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--home-line);
    border-radius: var(--home-radius-md);
    background: #fff;
    box-shadow: 0 10px 30px rgba(8, 37, 63, 0.045);
}

.home-panel-heading { margin-bottom: 20px; }

.home-panel-heading h2,
.home-section-heading h2 {
    margin: 0;
    color: var(--home-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem, 5vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.home-panel-heading-row,
.home-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.home-panel-heading-row > a,
.home-section-heading > a {
    flex: 0 0 auto;
    padding-top: 4px;
    color: var(--home-blue);
    font-size: 0.8rem;
    font-weight: 750;
    text-decoration: none;
}

.home-timeline {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-timeline li {
    position: relative;
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 13px;
    padding-bottom: 22px;
}

.home-timeline li:not(:last-child)::after {
    position: absolute;
    top: 34px;
    bottom: 0;
    left: 16px;
    width: 1px;
    background: #cbdce7;
    content: "";
}

.home-timeline li:last-child { padding-bottom: 0; }

.home-timeline li > span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--home-blue);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
}

.home-timeline h3,
.home-professional-card h3,
.home-service-card h3 {
    margin: 0;
    color: var(--home-navy);
    font-size: 0.91rem;
    font-weight: 750;
    line-height: 1.35;
}

.home-timeline p {
    margin: 5px 0 0;
    color: var(--home-muted);
    font-size: 0.79rem;
    line-height: 1.6;
}

.home-professional-list,
.home-request-list { display: grid; gap: 10px; }

.home-professional-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 13px;
    border: 1px solid var(--home-line);
    border-radius: var(--home-radius-sm);
    background: #fff;
}

.home-professional-card img,
.home-company-initial {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    object-fit: cover;
}

.home-company-initial {
    background: var(--home-sky);
    color: var(--home-blue);
    font-size: 1.2rem;
    font-weight: 800;
}

.home-professional-copy { min-width: 0; }

.home-professional-copy p,
.home-professional-copy small {
    display: block;
    margin: 3px 0 0;
    color: var(--home-muted);
    font-size: 0.75rem;
    line-height: 1.4;
}

.home-card-action {
    grid-column: 1 / -1;
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid #c9d7e0;
    border-radius: 9px;
    color: var(--home-navy);
    font-size: 0.76rem;
    font-weight: 750;
    text-decoration: none;
}

.home-card-action:hover { border-color: var(--home-blue); color: var(--home-blue); }

.home-request-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--home-line);
    text-decoration: none;
}

.home-request-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--home-ice);
    color: var(--home-blue);
}

.home-request-row strong,
.home-request-row small { display: block; }
.home-request-row strong { color: var(--home-navy); font-size: 0.81rem; }
.home-request-row small { margin-top: 3px; color: var(--home-muted); font-size: 0.7rem; }

.home-request-row em {
    padding: 5px 8px;
    border-radius: 999px;
    background: #edf5f9;
    color: var(--home-blue);
    font-size: 0.63rem;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.home-request-row em.success { background: #edf7f0; color: var(--home-success); }
.home-request-row em.danger { background: #faeeee; color: var(--home-danger); }

.home-request-promo {
    display: grid;
    place-items: center;
    gap: 14px;
    min-height: 180px;
    margin: 8px 0 18px;
    padding: 24px;
    border-radius: var(--home-radius-sm);
    background: linear-gradient(145deg, #f6fafc, #eaf5fa);
    text-align: center;
}

.home-request-promo > span {
    display: inline-flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: var(--home-blue);
    box-shadow: 0 8px 22px rgba(8, 37, 63, 0.08);
    font-size: 1.7rem;
}

.home-request-promo p {
    max-width: 310px;
    margin: 0;
    color: var(--home-muted);
    font-size: 0.84rem;
    line-height: 1.65;
}

.home-support-link {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    color: var(--home-muted);
    font-size: 0.76rem;
    text-decoration: none;
}

.home-support-link:hover { color: var(--home-blue); }

.home-empty {
    display: grid;
    min-height: 220px;
    place-items: center;
    align-content: center;
    gap: 9px;
    padding: 28px;
    border: 1px dashed #cad8e1;
    border-radius: var(--home-radius-sm);
    background: var(--home-ice);
    color: var(--home-muted);
    text-align: center;
}

.home-empty > i { color: var(--home-blue); font-size: 1.8rem; }
.home-empty h3 { margin: 0; color: var(--home-navy); font-size: 0.95rem; }
.home-empty p { max-width: 360px; margin: 0; font-size: 0.8rem; line-height: 1.6; }
.home-empty a { color: var(--home-blue); font-size: 0.78rem; font-weight: 750; }
.home-empty-inline { min-height: 86px; }
.home-empty-compact { min-height: 100px; }

.home-services-section {
    background: var(--home-ice);
    scroll-margin-top: 84px;
}

.home-section-heading { margin-bottom: 22px; }

.home-service-grid {
    display: grid;
    gap: 12px;
}

.home-service-card {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 14px;
    min-width: 0;
    align-items: start;
    padding: 18px;
    border: 1px solid var(--home-line);
    border-radius: var(--home-radius-md);
    background: #fff;
    box-shadow: 0 7px 24px rgba(8, 37, 63, 0.035);
    text-decoration: none;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.home-service-card:hover {
    border-color: #bed3df;
    box-shadow: 0 12px 28px rgba(8, 37, 63, 0.07);
    transform: translateY(-2px);
}

.home-service-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: var(--home-sky);
    color: var(--home-blue);
    font-size: 1.35rem;
}

.home-service-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 7px 0 9px;
    color: var(--home-muted);
    font-size: 0.76rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-service-card small {
    color: #718494;
    font-size: 0.68rem;
    line-height: 1.5;
}

.home-service-card > i { color: #8ea2b1; font-size: 0.9rem; }

.home-trust-section { padding: 0 0 48px; background: var(--home-ice); }

.home-trust-grid {
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 1px solid #d4e4ed;
    border-radius: var(--home-radius-md);
    background: #eef8fd;
}

.home-trust-grid > div {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    align-items: center;
    min-height: 104px;
    padding: 20px;
    border-bottom: 1px solid #d4e4ed;
}

.home-trust-grid > div:last-child { border-bottom: 0; }
.home-trust-grid > div > i { color: var(--home-blue); font-size: 1.75rem; text-align: center; }
.home-trust-grid strong,
.home-trust-grid small { display: block; }
.home-trust-grid strong { color: var(--home-navy); font-size: 0.95rem; }
.home-trust-grid small { margin-top: 5px; color: var(--home-muted); font-size: 0.72rem; line-height: 1.45; }

@media (min-width: 480px) {
    .home-hero-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-professional-card { grid-template-columns: 48px minmax(0, 1fr) auto; }
    .home-card-action { grid-column: auto; min-height: 40px; padding: 0 12px; }
}

@media (min-width: 640px) {
    .home-container { width: min(100% - 48px, var(--home-container)); }
    .home-search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .home-search-submit { grid-column: 1 / -1; }
    .home-hero-actions { width: fit-content; }
    .home-hero-actions .home-button { min-width: 180px; }
    .home-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-trust-grid > div:nth-child(odd) { border-right: 1px solid #d4e4ed; }
    .home-trust-grid > div:nth-last-child(-n + 2) { border-bottom: 0; }
}

@media (min-width: 768px) {
    .home-hero { padding: 48px 0 26px; }
    .home-hero-media > img { height: 390px; }
    .home-overview-grid { grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr); }
    .home-request-panel { grid-column: 1 / -1; }
    .home-main-section,
    .home-services-section { padding: 62px 0; }
    .home-trust-section { padding-bottom: 62px; }
}

@media (min-width: 1024px) {
    .home-hero { padding: 0; }

    .home-hero-grid {
        grid-template-columns: minmax(420px, 0.9fr) minmax(0, 1.45fr);
        min-height: 590px;
        align-items: stretch;
        gap: 26px;
    }

    .home-hero-copy {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 56px 0 64px;
    }

    .home-hero h1 { font-size: clamp(3.55rem, 5.5vw, 5.25rem); }
    .home-search { width: min(720px, calc(100vw - 48px)); grid-template-columns: minmax(250px, 1.12fr) minmax(205px, 0.95fr) auto; }
    .home-search-submit { grid-column: auto; min-width: 126px; }

    .home-hero-media {
        align-self: stretch;
        margin: 22px 0;
        border-radius: 28px;
    }

    .home-hero-media > img { height: 100%; min-height: 544px; object-position: 62% center; }
    .home-trust-badge { right: 22px; bottom: 22px; left: auto; width: min(340px, calc(100% - 44px)); }
    .home-category-strip { margin-top: -2px; padding-top: 16px; }
    .home-category-scroll { grid-auto-columns: minmax(120px, 1fr); overflow: hidden; }
    .home-overview-grid { grid-template-columns: minmax(235px, 0.78fr) minmax(390px, 1.25fr) minmax(280px, 0.9fr); }
    .home-request-panel { grid-column: auto; }
    .home-panel { padding: 24px; }
    .home-service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .home-service-card { grid-template-columns: 48px minmax(0, 1fr); }
    .home-service-card > i { position: absolute; top: 18px; right: 18px; }
    .home-trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .home-trust-grid > div { border-right: 1px solid #d4e4ed; border-bottom: 0; }
    .home-trust-grid > div:last-child { border-right: 0; }
}

@media (min-width: 1280px) {
    .home-hero-grid { min-height: 620px; }
    .home-hero-media > img { min-height: 574px; }
    .home-panel { padding: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .home-button,
    .home-service-card { transition: none; }
}
