.home-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: clamp(420px, 40vw, 560px);
    padding: clamp(2.5rem, 5vw, 4rem) max(1.5rem, calc((100vw - 1240px) / 2));
    overflow: hidden;
    color: #fff;
    background-size: cover;
    background-position: center 54%;
}

.home-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 24, 43, 0.83) 0%, rgba(8, 24, 43, 0.62) 37%, rgba(8, 24, 43, 0.08) 78%);
    content: "";
}

.home-hero__content {
    width: min(100%, 650px);
    margin: 0 auto;
}

.home-hero__eyebrow {
    margin-bottom: 1rem;
    color: #ffe0a3;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.home-hero h1 {
    max-width: 640px;
    margin: 0 0 1rem;
    color: #fff;
    font-size: clamp(2.5rem, 4vw, 3.6rem);
    font-weight: 750;
    letter-spacing: -0.045em;
    line-height: 1.03;
    text-align: left;
    text-shadow: 0 3px 22px rgba(0, 0, 0, 0.22);
}

.home-hero__description {
    max-width: 510px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    line-height: 1.7;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.8rem;
}

.home-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 180ms ease, background-color 180ms ease;
}

.home-button:hover {
    transform: translateY(-2px);
}

.home-button--light {
    background: #fff;
    color: #17324d;
}

.home-button--light:hover {
    background: #f4f6f7;
}

.home-button--outline {
    border-color: rgba(255, 255, 255, 0.78);
    background: rgba(12, 28, 45, 0.18);
    color: #fff;
}

.home-button--outline:hover {
    background: rgba(255, 255, 255, 0.14);
}

.home-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.25rem;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.86rem;
    font-weight: 600;
}

.home-hero__trust span + span::before {
    margin-right: 1.25rem;
    color: #ffd16b;
    content: "•";
}

.quick-booking {
    position: relative;
    z-index: 2;
    margin-top: -3.4rem;
}

.home-cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.1rem;
}

.home-city-card {
    position: relative;
    display: block;
    min-height: 260px;
    overflow: hidden;
    border-radius: 16px;
    background: #253b4e;
    box-shadow: 0 10px 28px rgba(18, 34, 48, 0.12);
    color: #fff;
    text-decoration: none;
    isolation: isolate;
}

.home-city-card::after {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 25, 42, 0.02) 26%, rgba(10, 25, 42, 0.78) 100%);
    content: "";
}

.home-city-card img {
    position: absolute;
    z-index: -1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
}

.home-city-card:hover img {
    transform: scale(1.05);
}

.home-city-card__caption {
    position: absolute;
    z-index: 1;
    right: 1.25rem;
    bottom: 1.2rem;
    left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.home-city-card__label {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-city-card__name {
    color: #fff;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
}

.home-vehicle-card {
    overflow: hidden;
    padding: 1.25rem 1.5rem 2rem;
    border-top: 3px solid var(--primary-color);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(24, 38, 52, 0.09);
    text-align: center;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(24, 38, 52, 0.14);
}

.home-vehicle-card img {
    display: block;
    width: 100%;
    height: 150px;
    margin: 0 auto 1rem;
    object-fit: contain;
}

.home-vehicle-card h3 {
    margin-bottom: 0.45rem !important;
}

.home-vehicle-card ul {
    display: inline-block;
    text-align: left;
}

.features-section ul,
.pricing-section ul {
    text-align: left;
}

.home-gallery {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2.5rem 1.5rem;
    border-radius: 24px;
    background: linear-gradient(135deg, #fbf9f5, #f5f7fa);
}

.home-gallery__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.home-gallery__eyebrow {
    display: block;
    margin-bottom: 0.65rem;
    color: #a56a3a;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.home-gallery__heading h2 {
    margin: 0;
    color: #202b3c;
    font-size: clamp(1.7rem, 3vw, 2.15rem);
    font-weight: 700;
    line-height: 1.2;
}

.home-gallery__heading h2 span {
    color: #a56a3a;
}

.home-gallery__heading p {
    max-width: 390px;
    margin: 0 0 0.15rem;
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.65;
}

.home-gallery__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: clamp(115px, 13vw, 160px);
    gap: 0.65rem;
}

.home-gallery__item {
    position: relative;
    min-width: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #dce3e8;
    box-shadow: 0 5px 16px rgba(18, 34, 48, 0.1);
}

.home-gallery__item:nth-child(1) {
    grid-column: 1 / span 4;
    grid-row: 1 / span 2;
}

.home-gallery__item:nth-child(2) {
    grid-column: 5 / span 3;
    grid-row: 1;
}

.home-gallery__item:nth-child(3) {
    grid-column: 8 / span 5;
    grid-row: 1;
}

.home-gallery__item:nth-child(4) {
    grid-column: 5 / span 2;
    grid-row: 2;
}

.home-gallery__item:nth-child(5) {
    grid-column: 7 / span 3;
    grid-row: 2;
}

.home-gallery__item:nth-child(6) {
    grid-column: 10 / span 3;
    grid-row: 2;
}

.home-gallery__item:nth-child(n + 7) {
    grid-row: 3;
}

.home-gallery__item:nth-child(7) {
    grid-column: 1 / span 3;
}

.home-gallery__item:nth-child(8) {
    grid-column: 4 / span 3;
}

.home-gallery__item:nth-child(9) {
    grid-column: 7 / span 3;
}

.home-gallery__item:nth-child(10) {
    grid-column: 10 / span 3;
}

.home-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.home-gallery__item:hover img {
    transform: scale(1.055);
}

.home-gallery__item figcaption {
    position: absolute;
    right: 0.7rem;
    bottom: 0.7rem;
    left: 0.7rem;
    padding: 2rem 0.8rem 0.75rem;
    background: linear-gradient(transparent, rgba(10, 25, 42, 0.78));
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    pointer-events: none;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.pricing-section .home-vehicle-card {
    display: flex;
    min-height: 0;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.1rem 1.25rem;
}

.pricing-section .home-vehicle-card img {
    height: 112px;
    margin-bottom: 0.6rem;
}

.pricing-section .home-vehicle-card h3 {
    margin-bottom: 0.2rem !important;
}

.pricing-section .home-vehicle-card > p {
    margin-bottom: 0.6rem !important;
    font-size: 0.82rem !important;
}

.pricing-section .home-vehicle-card > div {
    margin-bottom: 0.7rem !important;
    font-size: 1.35rem !important;
}

.pricing-section .home-vehicle-card ul {
    width: fit-content;
    margin-bottom: 0.9rem !important;
}

.pricing-section .home-vehicle-card li {
    margin-bottom: 0.35rem !important;
    font-size: 0.8rem !important;
    line-height: 1.35;
}

.pricing-section .home-vehicle-card > a {
    align-self: center;
    margin-top: auto;
    padding: 0.6rem 1.35rem !important;
    font-size: 0.86rem;
}

.about-section > div:nth-of-type(2) > div,
.features-section > div:nth-of-type(2) > div,
.trips-section > div:nth-of-type(2) > div,
.why-ride-section > div:nth-of-type(2) > div,
.pricing-section > div:nth-of-type(2) > div {
    text-align: center;
}

.about-section > div:nth-of-type(2) > div > div:first-child,
.features-section > div:nth-of-type(2) > div > div:first-child,
.why-ride-section > div:nth-of-type(2) > div > div:first-child {
    margin-right: auto !important;
    margin-left: auto !important;
}

.about-section > div:nth-of-type(2) > div h3,
.features-section > div:nth-of-type(2) > div h3,
.why-ride-section > div:nth-of-type(2) > div h3,
.pricing-section > div:nth-of-type(2) > div h3 {
    font-size: 1.05rem !important;
    line-height: 1.35;
}

.about-section > div:nth-of-type(2) > div p,
.features-section > div:nth-of-type(2) > div p,
.trips-section > div:nth-of-type(2) > div p,
.why-ride-section > div:nth-of-type(2) > div p,
.pricing-section > div:nth-of-type(2) > div > p {
    font-size: 0.9rem !important;
}

.trips-section > div:nth-of-type(2) > div > div {
    text-align: center;
}

.trips-section > div:nth-of-type(2) > div > div > i {
    display: block;
    font-size: 2.2rem !important;
}

.trips-section > div:nth-of-type(2) > div h3 {
    font-size: 1.3rem !important;
}

.pricing-section > div:nth-of-type(2) > div > a {
    display: inline-block !important;
}

.packages-section__heading {
    margin-bottom: 2rem;
    text-align: center;
}

.packages-section__heading h2 {
    margin-bottom: 0.65rem;
    color: #202b3c;
    font-size: clamp(1.7rem, 3vw, 2.15rem);
    font-weight: 700;
}

.packages-section__heading p {
    max-width: 700px;
    margin: 0 auto;
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.65;
}

.packages-showcase {
    display: grid;
    grid-template-columns: minmax(250px, 0.85fr) minmax(0, 1.6fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
}

.packages-showcase__visual {
    position: relative;
    display: flex;
    min-height: 420px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(145deg, #f3f7ff, #f9fbff 58%, #eef3ff);
    isolation: isolate;
}

.packages-showcase__halo {
    position: absolute;
    z-index: -1;
    width: 78%;
    aspect-ratio: 1;
    border: 1px solid rgba(27, 81, 190, 0.12);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(44, 103, 213, 0.12), rgba(44, 103, 213, 0) 68%);
}

.packages-showcase__visual img {
    display: block;
    width: 100%;
    max-height: 340px;
    object-fit: contain;
}

.packages-showcase__note {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: #103d91;
    color: #fff;
    text-align: center;
}

.packages-showcase__note span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
}

.packages-showcase__note strong {
    font-size: 1rem;
}

.packages-showcase__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(1.25rem, 3vw, 2.5rem);
    row-gap: 1.8rem;
}

.package-option {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
    gap: 0.9rem;
    color: inherit;
    text-decoration: none;
}

.package-option__icon {
    display: flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    color: #0750c8;
    font-size: 1.8rem;
}

.package-option__copy {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.package-option__title {
    color: #123a79;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
    transition: color 160ms ease;
}

.package-option__description {
    color: #777;
    font-size: 0.91rem;
    line-height: 1.6;
}

.package-option:hover .package-option__title,
.package-option:focus-visible .package-option__title {
    color: #0750c8;
}

.package-option:focus-visible {
    border-radius: 6px;
    outline: 2px solid #0750c8;
    outline-offset: 5px;
}

.home-vehicle-card > div {
    font-size: 1.55rem !important;
}

.home-routes-grid .home-route-card > div {
    justify-content: center;
    text-align: center;
}

.home-routes-grid .home-route-card h3 {
    font-size: 1rem !important;
}

.home-routes-grid .home-route-card > p {
    text-align: center;
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .pricing-section .home-vehicle-card {
        padding: 0.9rem 0.8rem 1rem;
    }

    .pricing-section .home-vehicle-card img {
        height: 95px;
    }

    .packages-showcase {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .packages-showcase__visual {
        min-height: 280px;
    }

    .packages-showcase__visual img {
        max-height: 245px;
    }

    .packages-showcase__grid {
        row-gap: 1.35rem;
    }

    .home-gallery__grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        grid-auto-rows: clamp(115px, 20vw, 155px);
    }

    .home-gallery__item:nth-child(1) {
        grid-column: 1 / span 3;
        grid-row: 1 / span 2;
    }

    .home-gallery__item:nth-child(2) {
        grid-column: 4 / span 3;
    }

    .home-gallery__item:nth-child(3) {
        grid-column: 4 / span 3;
        grid-row: 2;
    }

    .home-gallery__item:nth-child(4) {
        grid-column: 1 / span 2;
        grid-row: 3;
    }

    .home-gallery__item:nth-child(5) {
        grid-column: 3 / span 2;
        grid-row: 3;
    }

    .home-gallery__item:nth-child(6) {
        grid-column: 5 / span 2;
        grid-row: 3;
    }

    .home-gallery__item:nth-child(7) {
        grid-column: 1 / span 2;
        grid-row: 4;
    }

    .home-gallery__item:nth-child(8) {
        grid-column: 3 / span 2;
        grid-row: 4;
    }

    .home-gallery__item:nth-child(9) {
        grid-column: 5 / span 2;
        grid-row: 4;
    }

    .home-gallery__item:nth-child(10) {
        grid-column: 2 / span 4;
        grid-row: 5;
    }

    .home-gallery__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }

    .home-gallery__heading p {
        max-width: 560px;
    }

    .home-hero {
        min-height: 0;
        align-items: flex-start;
        padding: 2.25rem 1.25rem 4rem;
        background-position: 60% center;
    }

    .home-hero::before {
        background: linear-gradient(90deg, rgba(8, 24, 43, 0.78), rgba(8, 24, 43, 0.34)),
            linear-gradient(0deg, rgba(8, 24, 43, 0.36), transparent 65%);
    }

    .home-hero h1 {
        font-size: clamp(1.65rem, 5.5vw, 2.5rem);
        line-height: 1.08;
    }

    .home-hero__eyebrow {
        margin-bottom: 0.65rem;
        font-size: 0.7rem;
    }

    .home-hero__description {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .home-hero__actions {
        gap: 0.6rem;
        margin-top: 1.2rem;
    }

    .home-hero__trust {
        margin-top: 1.2rem;
    }

    .quick-booking {
        margin-top: -3rem;
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .home-cities-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .home-city-card {
        min-height: 200px;
        border-radius: 12px;
    }

    .home-city-card__caption {
        right: 0.85rem;
        bottom: 0.85rem;
        left: 0.85rem;
    }

    .home-city-card__name {
        font-size: 1.18rem;
    }
}

@media (max-width: 420px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .packages-showcase__grid {
        grid-template-columns: 1fr;
        row-gap: 1.2rem;
    }

    .home-gallery {
        padding: 1.5rem 1rem;
        border-radius: 18px;
    }

    .home-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 140px;
        gap: 0.55rem;
    }

    .home-gallery__item:nth-child(1) {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .home-gallery__item:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }

    .home-gallery__item:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }

    .home-gallery__item:nth-child(4) {
        grid-column: 1;
        grid-row: 3;
    }

    .home-gallery__item:nth-child(5) {
        grid-column: 2;
        grid-row: 3;
    }

    .home-gallery__item:nth-child(6) {
        grid-column: 1 / -1;
        grid-row: 4;
    }

    .home-gallery__item:nth-child(7) {
        grid-column: 1;
        grid-row: 5;
    }

    .home-gallery__item:nth-child(8) {
        grid-column: 2;
        grid-row: 5;
    }

    .home-gallery__item:nth-child(9) {
        grid-column: 1;
        grid-row: 6;
    }

    .home-gallery__item:nth-child(10) {
        grid-column: 2;
        grid-row: 6;
    }

    .home-hero__actions {
        width: min(100%, 280px);
        flex-direction: column;
        margin-right: auto;
        margin-left: auto;
    }

    .home-hero__trust {
        gap: 0.45rem 0.8rem;
        font-size: 0.76rem;
    }

    .home-hero__trust span + span::before {
        margin-right: 0.8rem;
    }

    .home-cities-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-button,
    .home-city-card img,
    .home-vehicle-card,
    .home-gallery__item img {
        transition: none;
    }
}
