.home-page {
    background: #ffffff;
}

.home-page .brand-logo--light {
    display: block;
}

.home-page .brand-logo--dark {
    display: none;
}

.home-page .nav-links a.nav-item {
    color: #07163b;
    font-weight: 700;
}

.home-page .nav-links a.nav-item:hover {
    color: #1267ee;
}

.home-page .site-header .nav-cta {
    min-width: 112px;
    border-radius: 8px;
    background: #1267ee;
    color: #ffffff !important;
    box-shadow: 0 9px 18px rgba(18, 103, 238, 0.22);
    font-weight: 650;
}

.home-page .nav-toggle {
    color: #07163b;
    background: #ffffff;
}

.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;
}

.home-finder {
    background:
        radial-gradient(circle at 21% 26%, rgba(37, 99, 235, 0.045), transparent 28rem),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.home-finder-hero {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(44px, 7vh, 82px) 0 clamp(32px, 5vh, 54px);
}

.home-finder-hero__inner {
    width: 100%;
}

.home-finder-layout {
    min-height: min(630px, calc(100vh - 206px));
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(360px, 0.95fr);
    align-items: center;
    margin: 0 auto;
    max-width: 1500px;
}

.home-finder-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 clamp(38px, 5vw, 82px);
}

.home-benefits {
    min-height: min(630px, calc(100vh - 206px));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 clamp(34px, 5vw, 76px);
    border-left: 1px solid rgba(203, 213, 225, 0.78);
}

.home-finder-logo {
    display: block;
    width: clamp(154px, 13vw, 204px);
    max-width: 64vw;
    height: auto;
    margin: 0 0 22px;
    object-fit: contain;
}

.home-finder h1 {
    margin: 0 0 28px;
    color: #061740;
    font-size: clamp(1.4rem, 1.85vw, 1.8rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: 0;
}

.home-service-carousel {
    width: 100%;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 18px;
    align-items: center;
    margin-bottom: 36px;
}

.home-service-track {
    min-height: 122px;
    display: grid;
    grid-template-columns: repeat(5, minmax(128px, 1fr));
    gap: clamp(14px, 1.5vw, 22px);
    align-items: stretch;
}

.home-service-card {
    min-width: 0;
    min-height: 112px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 14px;
    border: 1px solid var(--service-border, #dbe6f8);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    color: #07163b;
    cursor: pointer;
    font: inherit;
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.home-service-card[hidden] {
    display: none;
}

.home-service-card:hover,
.home-service-card:focus-visible {
    transform: translateY(-2px);
    outline: none;
}

.home-service-card.is-selected {
    border-width: 2px;
    border-color: var(--service-selected, var(--service-border, #cfe0f6));
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(16, 35, 74, 0.14);
}

.home-service-card__icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--service-soft, #eef4ff);
    color: var(--service-color, #1267ee);
}

.home-service-card__icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-service-card__label {
    min-width: 0;
    color: #07163b;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: 0;
}

.home-service-card.is-selected .home-service-card__label {
    font-weight: 830;
}

.home-service-card--green {
    --service-color: #22b22c;
    --service-soft: #eefbea;
    --service-border: #bee8c5;
    --service-selected: #a7dfb1;
}

.home-service-card--blue {
    --service-color: #1267ee;
    --service-soft: #edf4ff;
    --service-border: #bdd4f8;
    --service-selected: #a9c6f8;
}

.home-service-card--orange {
    --service-color: #ff6d1f;
    --service-soft: #fff1e7;
    --service-border: #ffc8ad;
    --service-selected: #ffb98f;
}

.home-service-card--purple {
    --service-color: #9b35f1;
    --service-soft: #f6edff;
    --service-border: #d9b9fb;
    --service-selected: #cda4fb;
}

.home-service-card--amber {
    --service-color: #f4a21a;
    --service-soft: #fff8e8;
    --service-border: #f4d38c;
    --service-selected: #ecc569;
}

.home-service-card--teal {
    --service-color: #0f9f95;
    --service-soft: #e8fbf8;
    --service-border: #9adfd6;
    --service-selected: #79d2c7;
}

.home-service-card--red {
    --service-color: #e3494f;
    --service-soft: #fff0f1;
    --service-border: #f2b4b8;
    --service-selected: #ea969d;
}

.home-carousel-arrow {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #102149;
    box-shadow: 0 8px 18px rgba(16, 35, 74, 0.11);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.home-carousel-arrow:hover,
.home-carousel-arrow:focus-visible {
    color: #1267ee;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(16, 35, 74, 0.15);
    outline: none;
}

.home-carousel-arrow svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-address-shell {
    width: min(760px, 92%);
    min-height: 64px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    gap: 18px;
    align-items: center;
    padding: 0 28px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 11px 28px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.08);
}

.home-address-shell:focus-within {
    box-shadow: 0 16px 38px rgba(18, 103, 238, 0.15);
}

.home-address-shell input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #07163b;
    font: inherit;
    font-size: 1.08rem;
    font-weight: 500;
    letter-spacing: 0;
}

.home-address-shell input::placeholder {
    color: #7f8ca8;
    opacity: 1;
}

.home-address-shell__icon,
.home-address-shell__mic {
    color: #12234f;
    display: grid;
    place-items: center;
}

.home-address-shell svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-finder-status {
    min-height: 20px;
    margin: 12px 0 0;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 650;
}

.home-finder-status.is-error {
    color: #b91c1c;
}

.home-finder-status.is-loading {
    color: #1267ee;
}

.home-benefits h2 {
    margin: 0 0 30px;
    color: #0f172a;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.3;
}

.home-benefit-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding: 28px 0;
}

.home-benefit-row + .home-benefit-row {
    border-top: 1px solid #e2e8f0;
}

.home-benefit-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--benefit-soft);
    color: var(--benefit-color);
}

.home-benefit-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-benefit-row--teal {
    --benefit-color: #0f9f95;
    --benefit-soft: #def7f3;
}

.home-benefit-row--purple {
    --benefit-color: #7c5be8;
    --benefit-soft: #eee9ff;
}

.home-benefit-row--blue {
    --benefit-color: #1267ee;
    --benefit-soft: #e8f1ff;
}

.home-benefit-row h3 {
    margin: 0 0 7px;
    color: #0f172a;
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.28;
}

.home-benefit-row p {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.55;
}

.home-trust-line {
    width: min(980px, calc(100% - 48px));
    display: grid;
    grid-template-columns: minmax(60px, 1fr) auto minmax(60px, 1fr);
    gap: 24px;
    align-items: center;
    margin: clamp(18px, 3vh, 34px) auto 0;
    text-align: center;
}

.home-trust-line > span {
    height: 1px;
    background: #dbe3ee;
}

.home-trust-line__content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 10px;
    min-width: 0;
    color: #0f172a;
    font-size: 0.9rem;
    line-height: 1.35;
    white-space: nowrap;
}

.home-trust-line svg {
    width: 21px;
    height: 21px;
    color: #1267ee;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-trust-line small {
    color: #64748b;
    font: inherit;
    line-height: inherit;
}

.home-page .pac-container {
    z-index: 10000 !important;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 20px 48px rgba(16, 35, 74, 0.16);
    font-family: var(--font-sans);
    overflow: hidden;
}

.home-page .pac-item {
    padding: 9px 14px;
    border-top: 1px solid #eef2f7;
    color: #475569;
    font-size: 0.78rem;
    cursor: pointer;
}

.home-page .pac-item:hover,
.home-page .pac-item-selected {
    background: #f3f7ff;
}

.home-page .pac-item-query {
    color: #07163b;
    font-size: 0.8rem;
    font-weight: 700;
}

@media (max-width: 1280px) {
    .home-finder-layout {
        grid-template-columns: minmax(0, 1.7fr) minmax(330px, 0.9fr);
    }

    .home-finder-panel {
        padding: 0 36px;
    }

    .home-benefits {
        padding: 0 40px;
    }

    .home-service-track {
        grid-template-columns: repeat(4, minmax(128px, 1fr));
    }
}

@media (max-width: 1024px) {
    .home-finder-hero {
        min-height: auto;
        padding: 44px 0 48px;
    }

    .home-finder-layout {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 36px;
        max-width: 760px;
        padding: 0 24px;
    }

    .home-finder-panel {
        padding: 0;
    }

    .home-benefits {
        min-height: auto;
        padding: 34px 0 0;
        border-left: 0;
        border-top: 1px solid rgba(203, 213, 225, 0.82);
    }

    .home-benefits h2 {
        margin-bottom: 16px;
    }

    .home-service-carousel {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        gap: 14px;
    }

    .home-service-track {
        grid-template-columns: repeat(3, minmax(128px, 1fr));
        gap: 14px;
    }

    .home-service-card {
        min-height: 108px;
    }
}

@media (max-width: 768px) {
    .home-page .nav-links {
        gap: 2px;
    }

    .home-page .nav-links a.nav-item {
        color: #07163b;
    }

    .home-page .nav-links .nav-cta {
        color: #ffffff;
    }

    .home-finder-hero {
        padding: 34px 0 42px;
    }

    .home-finder-logo {
        width: 148px;
        margin-bottom: 18px;
    }

    .home-finder h1 {
        margin-bottom: 22px;
        font-size: 1.3rem;
    }

    .home-trust-line {
        width: min(690px, calc(100% - 32px));
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home-trust-line > span {
        display: none;
    }

    .home-trust-line__content {
        flex-wrap: wrap;
        white-space: normal;
    }

    .home-service-carousel {
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        gap: 10px;
        margin-bottom: 28px;
    }

    .home-service-track {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        padding: 8px 2px 14px;
        margin: -8px -2px -14px;
        scroll-padding: 0 8px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        min-height: 124px;
    }

    .home-service-track::-webkit-scrollbar {
        display: none;
    }

    .home-service-card {
        flex: 0 0 min(168px, 70vw);
        min-height: 102px;
        gap: 9px;
        padding: 13px 12px;
        scroll-snap-align: center;
    }

    .home-service-card__icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .home-service-card__icon svg {
        width: 21px;
        height: 21px;
    }

    .home-service-card__label,
    .home-service-card.is-selected .home-service-card__label {
        font-size: 0.84rem;
    }

    .home-carousel-arrow {
        width: 38px;
        height: 38px;
    }

    .home-address-shell {
        width: 100%;
        min-height: 56px;
        grid-template-columns: 24px minmax(0, 1fr) 24px;
        gap: 12px;
        padding: 0 20px;
    }

    .home-address-shell input {
        font-size: 1rem;
    }

    .home-address-shell svg {
        width: 22px;
        height: 22px;
    }

    .home-benefit-row {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 16px;
        padding: 20px 0;
    }

    .home-benefit-icon {
        width: 50px;
        height: 50px;
    }

    .home-benefit-icon svg {
        width: 24px;
        height: 24px;
    }

    .home-benefit-row h3 {
        font-size: 0.92rem;
    }

    .home-benefit-row p {
        font-size: 0.86rem;
    }

    .home-trust-line {
        grid-template-columns: 1fr;
        gap: 8px;
        width: calc(100% - 40px);
        margin-top: 26px;
    }

    .home-trust-line > span {
        display: none;
    }
}

@media (max-width: 520px) {
    .home-finder-layout {
        padding: 0 18px;
    }

    .home-service-carousel {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
    }

    .home-carousel-arrow {
        width: 34px;
        height: 34px;
    }

    .home-carousel-arrow svg {
        width: 21px;
        height: 21px;
    }
}
