.objects {
    max-width: 100%;
    min-width: 0;
    margin-top: 30px;
    padding-bottom: 40px;
    font-family: Gilroy, sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 28.8px;
    color: #333333;
}

.objects,
.objects *,
.objects *::before,
.objects *::after {
    box-sizing: border-box;
}

.objects__lead {
    display: flex;
    flex-direction: column;
    gap: 28.8px;
}

.content .objects__lead > p {
    margin: 0;
    padding: 0;
    font-family: Gilroy, sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 28.8px;
    color: #333333;
}

.content .objects p.objects__place-text,
.content .objects .objects__work-caption {
    margin: 0;
    padding: 0;
    font-family: Gilroy, sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 23.4px;
    color: #333333;
}

.objects__section {
    margin-top: 60px;
}

.objects__lead + .objects__section {
    margin-top: 30px;
}

.objects__title {
    margin: 0 0 30px;
    padding: 0;
    font-family: inherit;
    font-weight: 700;
    font-size: 24px;
    line-height: 38.4px;
    color: #333333;
}

.objects__section_map .objects__title {
    margin-bottom: 70px;
}

.objects__nl::before {
    content: " ";
}

.objects__places,
.objects__works,
.objects__markers {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.objects__place {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 179px;
    padding: 20px 30px;
    border: 2px solid #DFDFDF;
}

.content .objects__place-icon {
    display: block;
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
    max-width: none;
}

.objects__place-body {
    min-width: 0;
    max-width: 480px;
}

.objects__place-title {
    max-width: 400px;
    margin: 0 0 2px;
    padding: 0;
    font-family: inherit;
    font-weight: 700;
    font-size: 20px;
    line-height: 32px;
    color: #333333;
}

.objects__works {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.objects__work {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0;
}

.objects__work-photo {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: none;
    line-height: 0;
    cursor: pointer;
    aspect-ratio: 460 / 309;
}

.content .objects__work-photo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.objects__map {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: #3F78BF #F4F4F4;
}

.objects__map::-webkit-scrollbar {
    height: 8px;
}

.objects__map::-webkit-scrollbar-track {
    background: #F4F4F4;
}

.objects__map::-webkit-scrollbar-thumb {
    background: #3F78BF;
    border-radius: 4px;
}

.objects__map-stage {
    width: 100%;
}

.objects__map-scale {
    position: relative;
    width: 100%;
    aspect-ratio: 1440 / 696;
}

.content .objects__map-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: fill;
    pointer-events: none;
}

.objects__markers {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.objects__marker {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 1px;
    margin: 0;
    padding: 0;
    line-height: 12px;
    white-space: nowrap;
    pointer-events: auto;
}

.objects__marker_label-first {
    flex-direction: row-reverse;
}

.content .objects__marker-pin {
    display: block;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    max-width: none;
}

.objects__marker-label {
    padding: 4px 10px;
    border-radius: 3px;
    background: #EBF4FF;
    font-family: Gilroy, sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 19.2px;
    color: #3F78BF;
}

.objects__marker-count {
    font-weight: 400;
    color: #282828;
}

@media (max-width: 991px) {
    .objects__places {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .objects__works {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 20px;
        row-gap: 30px;
    }

    .objects__work-photo {
        aspect-ratio: 364 / 220;
    }

    .objects__map-stage {
        width: 1440px;
    }
}

@media (max-width: 640px) {
    .objects__nl {
        display: block;
    }

    .objects__nl::before {
        content: none;
    }

    .objects__places {
        gap: 20px;
    }

    .objects__place {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        min-height: 0;
        padding: 36px 30px 30px;
        text-align: center;
    }

    .objects__place-body,
    .objects__place-title {
        width: 100%;
        max-width: none;
    }

    .objects__place-title {
        line-height: 28px;
    }

    .content .objects p.objects__place-text {
        line-height: 25.2px;
    }

    .objects__works {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .objects__work-photo {
        aspect-ratio: 355 / 220;
    }

    .objects__map-stage {
        width: 1080px;
    }

    .objects__marker {
        gap: 0.75px;
        line-height: 9px;
    }

    .content .objects__marker-pin {
        width: 28.5px;
        height: 28.5px;
    }

    .objects__marker-label {
        border-radius: 2.25px;
        font-size: 9px;
        line-height: 14.4px;
    }
}

.objects__gallery,
.objects__gallery *,
.objects__gallery *::before,
.objects__gallery *::after {
    box-sizing: border-box;
}

.objects__gallery[hidden] {
    display: none;
}

html.objects-gallery-open,
html.objects-gallery-open body {
    overflow: hidden;
}

.objects__gallery {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px 24px;
}

.objects__gallery-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.objects__gallery-dialog {
    position: relative;
    z-index: 1;
    max-width: 100%;
}

.objects__gallery-frame {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    width: 1078px;
    max-width: calc(100vw - 48px);
}

.objects__gallery-photo {
    width: 100%;
    overflow: hidden;
    aspect-ratio: 1078 / 724;
}

.objects__gallery-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.objects__gallery-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    max-width: 100%;
}

.objects__gallery-caption {
    width: 364px;
    margin: 0;
    font-family: Gilroy, sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 23.4px;
    color: #ffffff;
    text-align: left;
}

.objects__gallery-close,
.objects__gallery-arrow {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.objects__gallery-close {
    position: absolute;
    top: -37px;
    right: -20px;
    width: 20px;
    height: 20px;
}

.objects__gallery-close img {
    display: block;
    width: 20px;
    height: 20px;
    max-width: none;
}

.objects__gallery-arrow {
    position: relative;
    flex: 0 0 auto;
    width: 12px;
    height: 22px;
}

.objects__gallery-arrow::after {
    content: "";
    position: absolute;
    left: -14px;
    top: -11px;
    width: 40px;
    height: 44px;
}

.objects__gallery-arrow img {
    position: absolute;
    left: 50%;
    top: 50%;
    display: block;
    width: 15px;
    height: 25px;
    max-width: none;
    transform: translate(-50%, -50%);
}

.objects__work-photo:focus-visible,
.objects__gallery-close:focus-visible,
.objects__gallery-arrow:focus-visible {
    outline: 2px solid #3F78BF;
    outline-offset: 2px;
}

@media (max-width: 991px) {
    .objects__gallery-frame {
        width: 700px;
        max-width: calc(100vw - 68px);
    }

    .objects__gallery-photo {
        aspect-ratio: 700 / 473;
    }

    .objects__gallery-nav {
        gap: 40px;
    }

    .objects__gallery-close {
        top: -39px;
        right: 0;
    }
}

@media (max-width: 640px) {
    .objects__gallery-frame {
        width: 375px;
        max-width: 100%;
    }

    .objects__gallery-photo {
        aspect-ratio: 375 / 254;
        touch-action: none;
    }

    .objects__gallery-nav {
        gap: 10px;
    }

    .objects__gallery-caption {
        width: 302px;
        max-width: calc(100% - 74px);
        text-align: center;
    }

    .objects__gallery-city {
        display: block;
    }

    .objects__gallery-close {
        top: -33px;
        right: 14px;
    }

    .objects__gallery-arrow::after {
        left: -6px;
        width: 24px;
    }
}
