.home-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 86% 18%,
            rgba(37, 87, 167, 0.16),
            transparent 31%
        ),
        radial-gradient(
            circle at 8% 82%,
            rgba(74, 129, 215, 0.08),
            transparent 27%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f5f8fc 100%
        );
    border-bottom: 1px solid var(--border);
}

.home-hero::after {
    content: "";
    position: absolute;
    right: -140px;
    bottom: -180px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(37, 87, 167, 0.08);
    border-radius: 50%;
}

.home-hero__inner {
    min-height: 550px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    align-items: center;
    gap: 70px;
    padding-top: 74px;
    padding-bottom: 74px;
}

.home-hero__content {
    position: relative;
    z-index: 2;
    max-width: 660px;
}

.home-hero__eyebrow {
    margin-bottom: 17px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--primary);
    background: rgba(37, 87, 167, 0.09);
    border: 1px solid rgba(37, 87, 167, 0.08);
    border-radius: 30px;
    font-size: 12px;
    font-weight: 550;
    letter-spacing: 0.2px;
}

.home-hero h1 {
    max-width: 700px;
    margin: 0;
    color: #172438;
    font-size: clamp(39px, 5vw, 59px);
    font-weight: 550;
    line-height: 1.07;
    letter-spacing: -2px;
}

.home-hero h1 span {
    color: var(--primary);
}

.home-hero p {
    max-width: 610px;
    margin: 22px 0 0;
    color: #667386;
    font-size: 16px;
    line-height: 1.8;
}

.home-hero__location {
    max-width: 620px;
    margin-top: 30px;
}

.home-hero__location-title {
    display: block;
    margin-bottom: 10px;
    color: #36445a;
    font-size: 13px;
    font-weight: 550;
}

.home-hero__location-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.location-option {
    min-height: 70px;
    padding: 13px 14px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 11px;
    color: #253247;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #dfe6ef;
    border-radius: 12px;
    box-shadow: 0 9px 24px rgba(26, 45, 71, 0.055);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.location-option:hover {
    color: var(--primary);
    border-color: #bdd0ea;
    box-shadow: 0 14px 30px rgba(26, 45, 71, 0.09);
    transform: translateY(-2px);
}

.location-option__icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: rgba(37, 87, 167, 0.09);
    border-radius: 10px;
}

.location-option strong,
.location-option small {
    display: block;
}

.location-option strong {
    font-size: 13px;
    font-weight: 550;
}

.location-option small {
    margin-top: 2px;
    color: #8a95a4;
    font-size: 10px;
}

.location-option__arrow {
    color: #9aa5b3;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.location-option:hover .location-option__arrow {
    color: var(--primary);
    transform: translateX(2px);
}

.button {
    min-height: 47px;
    padding: 11px 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 550;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button--primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), #376fca);
    box-shadow: 0 10px 24px rgba(37, 87, 167, 0.2);
}

.button--primary:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: 0 13px 28px rgba(37, 87, 167, 0.25);
}

.button--secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.88);
    border-color: var(--border-dark);
}

.button--secondary:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.home-hero__trust {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 24px;
}

.home-hero__trust span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #758195;
    font-size: 11px;
}

.home-hero__trust svg {
    color: #25936d;
}

.home-hero__visual {
    position: relative;
    min-height: 390px;
}

.hero-visual__glow {
    position: absolute;
    inset: 32px 22px 38px 42px;
    background:
        linear-gradient(
            135deg,
            rgba(37, 87, 167, 0.17),
            rgba(37, 87, 167, 0.03)
        );
    border-radius: 34px;
    transform: rotate(-3deg);
}

.hero-card {
    position: absolute;
    z-index: 2;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(210, 217, 228, 0.92);
    border-radius: 18px;
    box-shadow: 0 26px 70px rgba(33, 49, 74, 0.13);
    backdrop-filter: blur(8px);
}

.hero-card--main {
    top: 50px;
    right: 20px;
    width: min(100%, 400px);
    padding: 29px;
}

.hero-card__label {
    display: inline-flex;
    margin-bottom: 11px;
    padding: 5px 8px;
    color: var(--primary);
    background: rgba(37, 87, 167, 0.08);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 550;
}

.hero-card--main > strong {
    display: block;
    max-width: 290px;
    color: #1d2a3b;
    font-size: 24px;
    font-weight: 550;
    line-height: 1.35;
}

.hero-card__items {
    display: grid;
    gap: 9px;
    margin-top: 24px;
}

.hero-card__items span {
    min-height: 43px;
    padding: 10px 11px;
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    color: #455267;
    background: #f6f8fb;
    border: 1px solid #edf0f4;
    border-radius: 10px;
    font-size: 12px;
}

.hero-card__items i {
    width: 7px;
    height: 7px;
    background: #33a178;
    border-radius: 50%;
}

.hero-card__items small {
    color: #8994a3;
    font-size: 10px;
}

.hero-card--small,
.hero-card--location {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-card--small {
    left: 0;
    bottom: 38px;
    width: 225px;
}

.hero-card--location {
    right: -8px;
    bottom: 4px;
    width: 190px;
}

.hero-card__search,
.hero-card--location > span {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--primary-soft);
    border-radius: 11px;
}

.hero-card--small strong,
.hero-card--small small,
.hero-card--location strong,
.hero-card--location small {
    display: block;
}

.hero-card--small strong,
.hero-card--location strong {
    color: #263347;
    font-size: 13px;
    font-weight: 550;
}

.hero-card--small small,
.hero-card--location small {
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 11px;
}

.home-section {
    padding: 78px 0;
    background: #ffffff;
}

.home-section--soft {
    background:
        linear-gradient(
            180deg,
            #f7f9fc,
            #f3f6fa
        );
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 34px;
}

.section-heading > div {
    max-width: 620px;
}

.section-heading span {
    display: block;
    margin-bottom: 7px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 550;
}

.section-heading h2 {
    margin: 0;
    color: #1b2739;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 550;
    line-height: 1.25;
    letter-spacing: -0.8px;
}

.section-heading p {
    max-width: 410px;
    margin: 0;
    color: var(--text-soft);
}

.section-heading--center {
    display: block;
    max-width: 680px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.section-heading--center p {
    margin: 10px auto 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.category-card {
    position: relative;
    min-height: 88px;
    padding: 17px;
    display: flex;
    align-items: center;
    gap: 14px;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            rgba(37, 87, 167, 0.03),
            transparent 52%
        ),
        #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 13px;
    box-shadow: 0 8px 22px rgba(29, 46, 70, 0.04);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    top: -34px;
    right: -34px;
    width: 78px;
    height: 78px;
    background: rgba(37, 87, 167, 0.04);
    border-radius: 50%;
}

.category-card:hover {
    border-color: #c4d3e7;
    box-shadow: 0 14px 30px rgba(29, 46, 70, 0.08);
    transform: translateY(-2px);
}

.category-card__icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: rgba(37, 87, 167, 0.09);
    border-radius: 11px;
}

.category-card__content {
    min-width: 0;
    flex: 1;
}

.category-card__content strong,
.category-card__content small {
    display: block;
}

.category-card__content strong {
    overflow: hidden;
    color: #263246;
    font-size: 14px;
    font-weight: 550;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-card__content small {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 11px;
}

.category-card__arrow {
    position: relative;
    z-index: 2;
    color: #9aa5b3;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.category-card:hover .category-card__arrow {
    color: var(--primary);
    transform: translateX(2px);
}

.district-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.district-card {
    position: relative;
    height: 174px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 15px;
    background: #dfe5ee;
    box-shadow: 0 12px 30px rgba(28, 45, 69, 0.09);
}

.district-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.district-card:hover img {
    transform: scale(1.055);
}

.district-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.96);
    background:
        linear-gradient(
            135deg,
            #5f7fae,
            #183b70
        );
    font-size: 54px;
    font-weight: 550;
}

.district-card__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(8, 20, 38, 0.04) 15%,
            rgba(7, 18, 36, 0.84) 100%
        );
}

.district-card__pin {
    position: absolute;
    top: 13px;
    right: 13px;
    z-index: 2;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 10px;
    backdrop-filter: blur(7px);
}

.district-card__content {
    position: absolute;
    right: 16px;
    bottom: 14px;
    left: 16px;
    z-index: 2;
    color: #ffffff;
}

.district-card__content strong,
.district-card__content small {
    display: block;
}

.district-card__content strong {
    font-size: 16px;
    font-weight: 550;
}

.district-card__content small {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.step-card {
    position: relative;
    padding: 30px;
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            rgba(37, 87, 167, 0.035),
            transparent 55%
        ),
        #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 17px;
    box-shadow: 0 10px 26px rgba(27, 44, 68, 0.045);
}

.step-card__number {
    position: absolute;
    top: 19px;
    right: 22px;
    color: #e0e6ef;
    font-size: 29px;
    font-weight: 550;
}

.step-card__icon {
    width: 49px;
    height: 49px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: rgba(37, 87, 167, 0.09);
    border-radius: 12px;
}

.step-card h3 {
    margin: 22px 0 8px;
    color: #263347;
    font-size: 17px;
    font-weight: 550;
}

.step-card p {
    margin: 0;
    color: var(--text-soft);
}

.home-cta {
    padding: 0 0 78px;
    background: #ffffff;
}

.home-cta__inner {
    position: relative;
    overflow: hidden;
    padding: 47px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 88% 22%,
            rgba(255, 255, 255, 0.15),
            transparent 25%
        ),
        linear-gradient(
            120deg,
            #173b72,
            #2557a7
        );
    border-radius: 21px;
    box-shadow: 0 20px 46px rgba(24, 59, 111, 0.19);
}

.home-cta__inner::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -100px;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
}

.home-cta__content {
    position: relative;
    z-index: 2;
}

.home-cta__inner span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

.home-cta__inner h2 {
    margin: 7px 0 8px;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 550;
}

.home-cta__inner p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.button--light {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    color: var(--primary-dark);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(13, 37, 73, 0.16);
}

.button--light:hover {
    color: var(--primary);
    background: #f7f9fc;
}

@media (max-width: 980px) {
    .home-hero__inner {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .home-hero__content {
        max-width: 700px;
    }

    .home-hero__visual {
        width: min(100%, 540px);
        margin-inline: auto;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .district-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .home-hero__inner {
        min-height: auto;
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .home-hero h1 {
        font-size: 38px;
        letter-spacing: -1.3px;
    }

    .home-hero p {
        font-size: 15px;
    }

    .home-hero__visual {
        display: none;
    }

    .home-section {
        padding: 56px 0;
    }

    .section-heading {
        display: block;
        margin-bottom: 25px;
    }

    .section-heading p {
        margin-top: 10px;
    }

    .district-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .district-card {
        height: 148px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .home-cta {
        padding-bottom: 56px;
    }

    .home-cta__inner {
        padding: 33px 25px;
        display: block;
        border-radius: 16px;
    }

    .home-cta__inner .button {
        margin-top: 23px;
    }
}

@media (max-width: 520px) {
    .home-hero h1 {
        font-size: 32px;
    }

    .home-hero__location-options {
        grid-template-columns: 1fr;
    }

    .home-hero__trust {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .button {
        width: 100%;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        min-height: 82px;
    }

    .district-grid {
        gap: 10px;
    }

    .district-card {
        height: 126px;
        border-radius: 11px;
    }

    .district-card__pin {
        top: 9px;
        right: 9px;
        width: 31px;
        height: 31px;
    }

    .district-card__content {
        right: 12px;
        bottom: 11px;
        left: 12px;
    }

    .district-card__content strong {
        font-size: 14px;
    }

    .step-card {
        padding: 24px;
    }
}
