.ap-contact-map-block {
    --ap-contact-bg: #fbfaf7;
    --ap-contact-accent: #278b57;
    --ap-contact-telegram: #229ed9;
    --ap-contact-text: #353b38;
    --ap-contact-map-height: 320px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(360px, 1.1fr);
    direction: ltr;
    gap: clamp(34px, 6vw, 84px);
    align-items: center;
    width: 100%;
    padding: clamp(38px, 6vw, 78px);
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 12%, rgba(39, 139, 87, .08), transparent 24%),
        var(--ap-contact-bg);
    color: var(--ap-contact-text);
    border: 1px solid rgba(26, 51, 39, .07);
}

.ap-contact-map-block,
.ap-contact-map-block * {
    box-sizing: border-box;
}

.ap-contact-map-copy {
    direction: rtl;
    text-align: right;
}

.ap-contact-map-title {
    position: relative;
    margin: 0 0 22px;
    color: var(--ap-contact-accent);
    font-size: clamp(34px, 4.2vw, 62px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.ap-contact-map-title::after {
    display: block;
    width: 52px;
    height: 4px;
    margin-top: 20px;
    margin-right: 2px;
    border-radius: 99px;
    background: var(--ap-contact-accent);
    opacity: .32;
    content: "";
}

.ap-contact-map-description,
.ap-contact-map-address,
.ap-contact-map-world-note {
    margin: 0 0 12px;
    color: var(--ap-contact-text);
    font-size: clamp(17px, 1.7vw, 23px);
    line-height: 1.65;
}

.ap-contact-map-address {
    display: flex;
    align-items: center;
    gap: 9px;
    font-style: normal;
}

.ap-contact-map-address > span,
.ap-contact-map-world-note > span {
    color: var(--ap-contact-accent);
    font-size: 1.18em;
}

.ap-contact-map-world-note {
    opacity: .84;
}

.ap-contact-map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.ap-contact-button {
    display: inline-flex;
    min-height: 54px;
    padding: 12px 25px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    color: #fff !important;
    box-shadow: 0 8px 21px rgba(30, 62, 48, .13);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.ap-contact-button:hover,
.ap-contact-button:focus-visible {
    color: #fff !important;
    box-shadow: 0 13px 28px rgba(30, 62, 48, .2);
    filter: brightness(1.04);
    transform: translateY(-2px);
}

.ap-contact-button-telegram {
    background: var(--ap-contact-telegram);
}

.ap-contact-button-secondary {
    background: var(--ap-contact-accent);
}

.ap-contact-button-icon {
    display: inline-flex;
    width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
}

.ap-contact-telegram-icon {
    transform: rotate(-22deg);
}

.ap-contact-facebook-icon {
    border: 2px solid currentColor;
    border-radius: 50%;
    font-family: Arial, sans-serif;
    font-size: 17px;
    font-weight: 800;
}

.ap-contact-map-visual {
    position: relative;
    direction: rtl;
    min-width: 0;
    min-height: var(--ap-contact-map-height);
    overflow: hidden;
    border: 1px solid rgba(25, 58, 43, .09);
    border-radius: 24px;
    background: #e8f1ed;
    box-shadow: 0 18px 46px rgba(37, 68, 53, .13);
}

.ap-contact-map-frame {
    display: block;
    width: 100%;
    height: var(--ap-contact-map-height);
    border: 0;
    filter: saturate(.86) contrast(.96);
}

.ap-contact-map-open {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    padding: 10px 14px;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(21, 55, 38, .11);
    border-radius: 11px;
    background: rgba(255, 255, 255, .94);
    color: #126d43 !important;
    box-shadow: 0 7px 18px rgba(21, 55, 38, .1);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    backdrop-filter: blur(7px);
}

.ap-contact-map-open:hover,
.ap-contact-map-open:focus-visible {
    background: #fff;
    color: #0a5030 !important;
}

.ap-contact-world {
    position: relative;
    display: flex;
    min-height: var(--ap-contact-map-height);
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 72% 25%, rgba(255, 255, 255, .32), transparent 20%),
        linear-gradient(145deg, #183f36 0%, var(--ap-contact-accent) 52%, #76b893 130%);
}

.ap-contact-world::before,
.ap-contact-world::after {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    content: "";
}

.ap-contact-world::before {
    top: -95px;
    left: -70px;
    width: 250px;
    height: 250px;
}

.ap-contact-world::after {
    right: -40px;
    bottom: -115px;
    width: 290px;
    height: 290px;
}

.ap-contact-world-sphere {
    position: relative;
    z-index: 2;
    display: block;
    width: clamp(150px, 20vw, 230px);
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 50%;
    background:
        radial-gradient(circle at 31% 27%, rgba(255, 255, 255, .92) 0 3%, transparent 4%),
        radial-gradient(ellipse at 62% 38%, #d8eee2 0 9%, transparent 10%),
        radial-gradient(ellipse at 42% 61%, #d8eee2 0 13%, transparent 14%),
        radial-gradient(circle at 33% 28%, #78caa1, #267457 58%, #10392e 100%);
    box-shadow: inset -24px -18px 35px rgba(4, 30, 21, .35), 0 25px 55px rgba(5, 35, 24, .32);
    animation: ap-contact-globe-float 5s ease-in-out infinite;
}

.ap-contact-world-sphere::before,
.ap-contact-world-sphere::after,
.ap-contact-world-sphere > i,
.ap-contact-world-sphere > b {
    position: absolute;
    inset: 8% 21%;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    content: "";
}

.ap-contact-world-sphere::after {
    inset: 23% 4%;
}

.ap-contact-world-sphere > i {
    inset: 46% 3%;
    border-width: 1px 0 0;
}

.ap-contact-world-sphere > b {
    inset: 7% 46%;
    border-width: 0 0 0 1px;
}

.ap-contact-world-orbit {
    position: absolute;
    z-index: 1;
    width: min(80%, 410px);
    height: 46%;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    transform: rotate(-16deg);
}

.ap-contact-world-orbit::after {
    position: absolute;
    top: 47%;
    right: -5px;
    width: 10px;
    height: 10px;
    border: 2px solid rgba(255, 255, 255, .68);
    border-radius: 50%;
    background: #f4c866;
    box-shadow: 0 0 17px rgba(244, 200, 102, .8);
    content: "";
}

.ap-contact-world-orbit-two {
    height: 59%;
    transform: rotate(22deg);
}

.ap-contact-world-caption {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 19px 24px;
    background: linear-gradient(0deg, rgba(3, 26, 18, .74), transparent);
    color: #fff;
    text-align: center;
}

.ap-contact-world-caption strong,
.ap-contact-world-caption span {
    display: block;
}

.ap-contact-world-caption strong {
    font-size: 19px;
}

.ap-contact-world-caption span {
    margin-top: 2px;
    font-size: 14px;
    opacity: .8;
}

@keyframes ap-contact-globe-float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

@media (max-width: 860px) {
    .ap-contact-map-block {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
        padding: 34px 24px;
    }

    .ap-contact-map-copy {
        text-align: center;
    }

    .ap-contact-map-title::after {
        margin-right: auto;
        margin-left: auto;
    }

    .ap-contact-map-address,
    .ap-contact-map-actions {
        justify-content: center;
    }

    .ap-contact-map-visual,
    .ap-contact-map-frame,
    .ap-contact-world {
        min-height: min(var(--ap-contact-map-height), 360px);
        height: min(var(--ap-contact-map-height), 360px);
    }
}

@media (max-width: 480px) {
    .ap-contact-map-block {
        padding: 28px 16px;
    }

    .ap-contact-map-title {
        font-size: 34px;
    }

    .ap-contact-map-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ap-contact-button {
        width: 100%;
        min-height: 50px;
        padding: 11px 18px;
        font-size: 16px;
    }

    .ap-contact-map-visual {
        border-radius: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ap-contact-world-sphere {
        animation: none;
    }

    .ap-contact-button {
        transition: none;
    }
}
