.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 470px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.32fr);
    align-items: end;
    gap: clamp(36px, 8vw, 120px);
    margin: 0 auto;
    padding: 148px clamp(28px, 6vw, 76px) 62px;
    border: 0;
    border-radius: 0 0 24px 24px;
    background: linear-gradient(118deg, rgba(4, 25, 31, 0.98) 0 56%, rgba(12, 79, 88, 0.92));
    color: #f4fbfb;
    box-shadow: 0 28px 90px rgba(6, 36, 42, 0.2);
}

.page-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -35% -10% -30% 38%;
    opacity: 0.38;
    background:
        repeating-radial-gradient(ellipse at 82% 54%, transparent 0 24px, rgba(168, 231, 239, 0.2) 25px 27px, transparent 28px 46px),
        radial-gradient(circle at 78% 36%, rgba(255, 209, 102, 0.2), transparent 24%);
    transform: rotate(-7deg);
}

.page-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: clamp(20px, 5vw, 70px);
    bottom: -80px;
    width: 180px;
    height: 310px;
    border: 1px solid rgba(205, 238, 244, 0.2);
    border-radius: 50% 50% 12px 12px;
    transform: rotate(18deg);
}

.page-hero-copy {
    max-width: 850px;
}

.page-hero h1 {
    max-width: 850px;
    margin: 0;
    color: #f7fcfc;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 7vw, 6.4rem);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 0.96;
}

.page-hero p:not(.eyebrow) {
    max-width: 680px;
    margin: 22px 0 0;
    color: rgba(235, 248, 249, 0.76);
    font-size: clamp(1.02rem, 1.7vw, 1.24rem);
}

.page-hero a {
    display: inline-flex;
    margin-top: 26px;
    border: 1px solid rgba(205, 238, 244, 0.28);
    border-radius: 8px;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--sun);
    box-shadow: none;
    font-weight: 900;
    backdrop-filter: blur(12px);
}

.page-hero-marker {
    position: relative;
    z-index: 1;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-left: 1px solid rgba(205, 238, 244, 0.24);
    padding-left: clamp(22px, 4vw, 48px);
}

.page-hero-marker span {
    color: rgba(205, 238, 244, 0.32);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(6rem, 13vw, 11rem);
    font-variant-numeric: lining-nums;
    line-height: 0.75;
}

.page-hero-marker small {
    margin-top: 26px;
    color: var(--sun);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.routes-page {
    padding-top: 78px;
}

.routes-page-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
    gap: clamp(30px, 7vw, 96px);
    align-items: end;
    margin-bottom: 38px;
}

.routes-page-heading h2 {
    max-width: 720px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.35rem, 5vw, 4.8rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.02;
}

.routes-status {
    margin: 0;
    border-left: 3px solid var(--amber);
    padding: 8px 0 8px 20px;
    color: var(--muted);
}

.routes-page .route-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    grid-template-rows: repeat(2, minmax(260px, auto));
    gap: 16px;
}

.routes-page .route-card {
    position: relative;
    min-height: 0;
    justify-content: flex-start;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    padding: clamp(24px, 4vw, 42px);
    background:
        radial-gradient(circle at 100% 0, rgba(132, 216, 232, 0.22), transparent 36%),
        linear-gradient(145deg, #0a343b, #126b7a);
}

.routes-page .route-card:first-child {
    grid-row: 1 / span 2;
    min-height: 536px;
    background:
        radial-gradient(circle at 84% 12%, rgba(255, 209, 102, 0.2), transparent 28%),
        linear-gradient(155deg, #071f26, #0f4a4f 66%, #126b7a);
}

.route-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.route-number {
    color: rgba(205, 238, 244, 0.34);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.7rem, 7vw, 6.8rem);
    line-height: 0.8;
}

.route-kind {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 7px 11px;
    color: var(--sun);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.routes-page .route-meta {
    justify-content: flex-start;
    margin-top: auto;
    padding-top: 40px;
}

.routes-page .route-meta span {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 7px 11px;
}

.routes-page .route-card h2 {
    margin: 22px 0 12px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 3.5vw, 3.5rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1;
}

.routes-page .route-card:not(:first-child) h2 {
    font-size: clamp(1.65rem, 2.4vw, 2.35rem);
}

.routes-page .route-card p {
    max-width: 620px;
}

.routes-page .route-card footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--sun);
    outline-offset: 4px;
}

@media (max-width: 900px) {
    .page-hero {
        min-height: 430px;
        grid-template-columns: minmax(0, 1fr) 150px;
        gap: 28px;
    }

    .routes-page-heading,
    .routes-page .route-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .routes-page .route-card:first-child {
        grid-row: auto;
        min-height: 430px;
    }
}

@media (max-width: 620px) {
    .page-hero {
        width: calc(100% - 24px);
        min-height: 450px;
        grid-template-columns: 1fr;
        padding: 112px 22px 38px;
        border-radius: 0 0 18px 18px;
    }

    .page-hero-marker {
        display: none;
    }

    .page-hero h1 {
        font-size: clamp(2.75rem, 14vw, 4.5rem);
    }

    .routes-page {
        padding-top: 58px;
    }

    .routes-page .route-card,
    .routes-page .route-card:first-child {
        min-height: 390px;
        padding: 26px 22px;
    }
}
