/* Первый экран страницы города остановки. */
.np-city-cont {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}

.np-city-cont .name {
    width: 100%;
}

.np-city-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    width: 100%;
    min-height: 430px;
    margin: 0 0 28px;
    overflow: hidden;
    border: 1px solid #dbe7ef;
    border-radius: 10px;
    background: #f7fafc;
    color: #243746;
    font-family: "PT Sans", Arial, sans-serif;
}

.np-city-hero *,
.np-city-hero *::before,
.np-city-hero *::after {
    box-sizing: border-box;
}

.np-city-hero--noimg {
    grid-template-columns: 1fr;
    max-width: 720px;
    min-height: 300px;
}

.np-city-hero__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 44px 40px 38px;
}

.np-city-hero__media {
    min-height: 430px;
    overflow: hidden;
    background: #dce7ee;
}

.np-city-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.np-city-hero__eyebrow {
    margin: 0 0 14px;
    color: #4e7b9f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.3;
    text-transform: uppercase;
}

.np-city-hero h1 {
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    color: #1d3345;
    font-size: clamp(34px, 4.4vw, 52px);
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
}

.np-city-hero__lead {
    max-width: 520px;
    margin: 13px 0 0 !important;
    color: #536674;
    font-size: 17px;
    line-height: 1.5;
}

.np-city-hero__facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    width: 100%;
    margin: 24px 0 25px;
}

.np-city-hero__fact {
    position: relative;
    padding-left: 15px;
    color: #3e5362;
    font-size: 14px;
    line-height: 1.35;
}

.np-city-hero__fact::before {
    content: "";
    position: absolute;
    left: 0;
    top: .45em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #72a7d5;
}

.np-city-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    width: 100%;
}

.np-city-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none !important;
    transition: background-color .15s, border-color .15s;
}

.np-city-hero__btn--primary {
    border: 1px solid #2f6f9f;
    background: #2f6f9f;
    color: #fff !important;
}

.np-city-hero__btn--primary:hover,
.np-city-hero__btn--primary:focus {
    border-color: #235578;
    background: #235578;
    color: #fff !important;
}

.np-city-hero__btn--ghost {
    border: 1px solid #b9d2e3;
    background: #fff;
    color: #2f6f9f !important;
}

.np-city-hero__btn--ghost:hover,
.np-city-hero__btn--ghost:focus {
    background: #eef6fb;
    color: #235578 !important;
}

/* Якоря не должны уходить под шапку. */
#np-city-about,
#np-city-excursions,
#np-city-cruises {
    scroll-margin-top: 20px;
}

@media (max-width: 700px) {
    .np-city-hero,
    .np-city-hero--noimg {
        grid-template-columns: 1fr;
        min-height: 0;
        margin-bottom: 22px;
        border-radius: 7px;
    }

    .np-city-hero__media {
        order: -1;
        min-height: 230px;
    }

    .np-city-hero--noimg .np-city-hero__body {
        min-height: 0;
    }

    .np-city-hero__body {
        padding: 25px 22px 26px;
    }

    .np-city-hero__eyebrow {
        margin-bottom: 10px;
        font-size: 11px;
    }

    .np-city-hero h1 {
        font-size: clamp(32px, 9vw, 40px);
    }

    .np-city-hero__lead {
        margin-top: 10px !important;
        font-size: 16px;
        line-height: 1.42;
    }

    .np-city-hero__facts {
        grid-template-columns: 1fr 1fr;
        margin: 18px 0 20px;
    }

    .np-city-hero__fact {
        font-size: 13px;
    }

    .np-city-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .np-city-hero__btn {
        width: 100%;
    }
}
