/* Shared entry buttons keep their label inside the existing gold control. */
a.btn.gold[data-gone-open] {
    box-sizing: border-box;
    width: 100%;
    max-width: 311px;
    height: auto;
    font-size: 16px;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: break-word;
}

.add_name_container ._right .btn {
    box-sizing: border-box;
    width: 100%;
    max-width: 311px;
    padding-right: 16px;
    padding-left: 16px;
}

/* A local map illustration loads without requesting an external map service. */
.contacts .gone-external-map.contact-map {
    position: relative;
    display: block;
    min-height: 555px;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
    border-radius: 16px;
    background: #f7f0de;
}
.contact-map .contact-map-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 52% 58%;
}
.contact-map .contact-map-actions {
    position: absolute;
    bottom: 24px;
    left: 24px;
    box-sizing: border-box;
    width: min(310px, calc(100% - 48px));
    padding: 18px;
    border: 1px solid #e5d5bd;
    border-radius: 12px;
    background: rgba(255, 250, 240, .96);
    box-shadow: 0 8px 24px rgba(82, 56, 31, .08);
    color: #715033;
}
.contact-map .contact-map-caption {
    display: block;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.4;
}
.contact-map .contact-map-actions .btn {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    padding: 14px 12px;
    font-size: 16px;
    line-height: 1.4;
    white-space: normal;
}
.contact-map .contact-map-actions p {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.45;
}
@media screen and (max-width: 767.6px) {
    .contacts .gone-external-map.contact-map {
        min-height: 0;
        height: auto;
    }
    .contact-map .contact-map-image {
        position: relative;
        display: block;
        height: 300px;
        object-position: 53% 64%;
    }
    .contact-map .contact-map-actions {
        position: static;
        width: 100%;
        padding: 18px;
        border: 0;
        border-top: 1px solid #e5d5bd;
        border-radius: 0;
        box-shadow: none;
    }
}

/* Descriptions appear at this existing desktop breakpoint. */
@media screen and (min-width: 1359.6px) {
    body section.first-screen nav.main_navigation ul {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
        gap: clamp(24px, 2vw, 40px);
        align-items: stretch;
    }

    body section.first-screen nav.main_navigation ul li {
        display: flex;
        min-width: 0;
    }

    body section.first-screen nav.main_navigation ul li a {
        display: grid;
        grid-template-columns: max-content 1fr;
        grid-template-rows: auto 1fr auto;
        column-gap: 8px;
        width: 100%;
        box-sizing: border-box;
    }

    body section.first-screen nav.main_navigation ul li .title,
    body section.first-screen nav.main_navigation ul li .descr {
        grid-column: 1 / -1;
    }

    body section.first-screen nav.main_navigation ul li .descr {
        font-size: clamp(.875rem, .69vw, 1rem);
        line-height: 1.4;
    }

    body section.first-screen nav.main_navigation ul li .hover,
    body section.first-screen nav.main_navigation ul li a svg {
        grid-row: 3;
        align-self: center;
    }
}
