.services-hero {
    position: relative;
    width: 100%;
    min-height: 620px;
    overflow: hidden;
    color: var(--color-white);
    background: var(--color-primary);
}

.services-hero::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
}

.services-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.services-hero__content {
    position: relative;
    z-index: 2;
    width: min(var(--container-width), calc(100% - (2 * var(--container-padding))));
    margin-inline: auto;
    padding-top: 140px;
    text-align: center;
}

.services-hero__breadcrumbs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 45px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

.services-hero__breadcrumbs a {
    text-decoration: none;
}

.services-hero__title {
    max-width: 820px;
    margin: 0 auto;
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: 68px;
    font-weight: 300;
    line-height: 0.98;
}

.services-catalog {
    padding: 100px 0 120px;
    color: var(--color-primary);
    background: var(--color-background);
}

.services-catalog__heading {
    margin: 0 0 56px;
    font-family: var(--font-display);
    font-size: 60px;
    font-weight: 300;
    line-height: 1;
    text-align: center;
}

.services-catalog__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.services-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.services-card__media {
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 1.35 / 1;
    background: rgba(16, 17, 17, 0.08);
}

.services-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding-top: 22px;
}

.services-card__title {
    margin: 0 0 14px;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 300;
    line-height: 1.1;
}

.services-card__excerpt {
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 1.55;
}

.services-card__excerpt p {
    margin: 0;
}

.services-card__more {
    display: block;
    width: 100%;
    align-self: stretch;
    min-height: 44px;
    margin-top: auto;
    padding: 10px 22px;
    color: var(--color-primary);
    font: inherit;
    background-color: var(--color-gold);
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.services-card__more:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

.services-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(8, 14, 24, 0.62);
}

.services-modal[hidden] {
    display: none;
}

.services-modal__dialog {
    position: relative;
    width: min(960px, calc(100vw - 40px));
    height: auto;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    padding: 50px 56px;
    overflow-y: auto;
    color: var(--color-primary);
    background: var(--color-background);
    border-radius: 8px;
    outline: none;
}

.services-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    width: 32px;
    height: 32px;
    padding: 0;
    color: var(--color-primary);
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--color-primary);
    border-radius: 50%;
    cursor: pointer;
}

.services-modal__close::before,
.services-modal__close::after {
    position: absolute;
    width: 12px;
    height: 1px;
    background: currentColor;
    content: "";
}

.services-modal__close::before {
    transform: rotate(45deg);
}

.services-modal__close::after {
    transform: rotate(-45deg);
}

.services-modal__close span {
    font-size: 0;
}

.services-modal__title {
    margin: 0 48px 28px 0;
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 300;
    line-height: 1;
}

.services-modal__text {
    font-size: 15px;
    line-height: 1.6;
}

.services-modal__text > :first-child {
    margin-top: 0;
}

.services-modal__text > :last-child {
    margin-bottom: 0;
}

.services-modal__text ul,
.services-modal__text ol {
    padding-left: 1.4em;
}

.services-modal__media {
    width: 100%;
    margin-top: 34px;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 1.65 / 1;
}

.services-modal__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 767px) {
    .services-hero {
        min-height: 650px;
    }

    .services-hero__content {
        padding-top: 108px;
    }

    .services-hero__breadcrumbs {
        margin-bottom: 38px;
        font-size: 12px;
    }

    .services-hero__title {
        max-width: 360px;
        font-size: clamp(38px, 10.5vw, 46px);
        line-height: 1;
    }

    .services-hero .booking-bar {
        bottom: 24px;
    }

    .services-catalog {
        padding: 58px 0 64px;
    }

    .services-catalog__heading {
        margin-bottom: 34px;
        font-size: 38px;
    }

    .services-catalog__grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .services-card__title {
        font-size: 30px;
    }

    .services-card__more {
        width: 100%;
    }

    .services-modal {
        align-items: stretch;
        padding: 0;
    }

    .services-modal__dialog {
        width: 100%;
        max-width: none;
        height: 100%;
        max-height: none;
        padding: 70px 20px 24px;
        overflow-y: auto;
        border-radius: 0;
    }

    .services-modal__close {
        position: fixed;
        top: 16px;
        right: 16px;
        z-index: 1;
    }

    .services-modal__title {
        margin: 0 38px 22px 0;
        font-size: 36px;
    }

    .services-modal__media {
        margin-top: 26px;
        aspect-ratio: auto;
    }

    .services-modal__image {
        height: auto;
    }
}

@media (min-width: 1000px) {
    .services-catalog__heading,
    .services-card__title,
    .services-modal__title {
        font-family: var(--font-display);
        font-size: 40px;
        font-weight: 300;
        line-height: 1;
        letter-spacing: normal;
    }
}
