.adpg-office-map-wrap {
    --adpg-deep: #155c63;
    --adpg-deep-2: #0d444a;
    --adpg-office: #d2ad54;
    --adpg-office-dark: #aa8533;
    --adpg-projects: #84aaa7;
    --adpg-projects-dark: #648f8c;
    --adpg-both: #155c63;
    --adpg-both-dark: #0d444a;
    --adpg-soft: #f3f7f5;
    --adpg-map-land: #e4ebe8;
    --adpg-map-stroke: rgba(21, 92, 99, .18);
    --adpg-border: rgba(21, 92, 99, .14);
    width: 100%;
    color: var(--adpg-deep);
}

.adpg-office-map__intro {
    max-width: 780px;
    margin: 0 auto 22px;
    text-align: center;
}

.adpg-office-map__intro h2 {
    margin: 0 0 10px;
    color: var(--adpg-deep);
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.08;
    font-weight: 600;
    letter-spacing: -.035em;
}

.adpg-office-map__intro p {
    margin: 0;
    color: rgba(21, 92, 99, .72);
    font-size: 16px;
    line-height: 1.7;
}

.adpg-presence-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px 18px;
    margin: 0 auto 18px;
}

.adpg-presence-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(21, 92, 99, .82);
    font-size: 13px;
    font-weight: 600;
}

.adpg-presence-legend__swatch {
    position: relative;
    display: inline-block;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    border: 1px solid rgba(21, 92, 99, .22);
    border-radius: 5px;
}

.adpg-presence-legend__swatch--office {
    border-radius: 50%;
    background: var(--adpg-office);
    box-shadow: inset 0 0 0 4px #fff;
}

.adpg-presence-legend__swatch--projects {
    background: var(--adpg-projects);
}

.adpg-presence-legend__swatch--both {
    background: var(--adpg-both);
}

.adpg-presence-legend__swatch--both::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--adpg-office);
}

.adpg-office-map__stage {
    position: relative;
    overflow: hidden;
    padding: clamp(12px, 2vw, 24px);
    border: 1px solid var(--adpg-border);
    border-radius: 24px;
    background:
        radial-gradient(circle at 12% 15%, rgba(21, 92, 99, .10), transparent 32%),
        linear-gradient(145deg, #fbfdfc 0%, #edf4f1 100%);
}

.adpg-office-map__chart {
    width: 100%;
    min-height: 340px;
}

.adpg-world-map {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.adpg-world-country {
    fill: var(--adpg-map-land);
    stroke: var(--adpg-map-stroke);
    stroke-width: 1.1;
    vector-effect: non-scaling-stroke;
    transition: fill .2s ease, opacity .2s ease, stroke-width .2s ease;
}

.adpg-world-country--office,
.adpg-world-country--projects,
.adpg-world-country--both {
    cursor: pointer;
}

.adpg-world-country--office {
    fill: var(--adpg-office);
    stroke: var(--adpg-deep);
    stroke-width: 1.45;
}

.adpg-world-country--projects {
    fill: var(--adpg-projects);
    stroke: var(--adpg-deep);
    stroke-width: 1.35;
}

.adpg-world-country--both {
    fill: var(--adpg-both);
    stroke: #ffffff;
    stroke-width: 1.8;
}

.adpg-world-country--office:hover,
.adpg-world-country--office:focus {
    fill: var(--adpg-office-dark);
    outline: none;
}

.adpg-world-country--projects:hover,
.adpg-world-country--projects:focus {
    fill: var(--adpg-projects-dark);
    outline: none;
}

.adpg-world-country--both:hover,
.adpg-world-country--both:focus {
    fill: var(--adpg-both-dark);
    outline: none;
}

.adpg-world-country--office:focus-visible,
.adpg-world-country--projects:focus-visible,
.adpg-world-country--both:focus-visible {
    stroke: var(--adpg-office);
    stroke-width: 3;
}

.adpg-world-marker,
.adpg-world-market-marker {
    color: var(--adpg-deep);
    cursor: pointer;
    outline: none;
}

.adpg-world-marker__pulse,
.adpg-world-market-marker__pulse {
    transform-box: fill-box;
    transform-origin: center;
    animation: adpg-map-pulse 2.2s ease-out infinite;
}

.adpg-world-marker__pulse {
    fill: rgba(210, 173, 84, .28);
}

.adpg-world-marker__ring {
    fill: #ffffff;
    stroke: var(--adpg-office-dark);
    stroke-width: 2.2;
    vector-effect: non-scaling-stroke;
}

.adpg-world-marker__dot {
    fill: var(--adpg-office);
}

.adpg-world-marker__label,
.adpg-world-market-marker__label {
    fill: var(--adpg-deep);
    font-family: inherit;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .01em;
    paint-order: stroke;
    stroke: rgba(255, 255, 255, .96);
    stroke-width: 5px;
    stroke-linejoin: round;
    pointer-events: none;
}

.adpg-world-market-marker__pulse {
    fill: rgba(132, 170, 167, .28);
}

.adpg-world-market-marker__ring {
    fill: #ffffff;
    stroke: var(--adpg-projects-dark);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.adpg-world-market-marker__dot {
    fill: var(--adpg-projects);
}

.adpg-world-marker:hover .adpg-world-marker__ring,
.adpg-world-marker:focus .adpg-world-marker__ring {
    fill: var(--adpg-office);
    stroke-width: 3;
}

.adpg-world-market-marker:hover .adpg-world-market-marker__ring,
.adpg-world-market-marker:focus .adpg-world-market-marker__ring {
    fill: var(--adpg-projects);
    stroke-width: 3;
}

@keyframes adpg-map-pulse {
    0% { transform: scale(.6); opacity: .9; }
    75%, 100% { transform: scale(1.45); opacity: 0; }
}

.adpg-office-map__hint {
    position: absolute;
    left: 22px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid rgba(21, 92, 99, .10);
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: var(--adpg-deep);
    font-size: 13px;
    line-height: 1;
    backdrop-filter: blur(8px);
    pointer-events: none;
}

.adpg-office-map__hint::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--adpg-both);
    box-shadow: 0 0 0 4px rgba(21, 92, 99, .14);
}

.adpg-office-map__fallback {
    display: grid;
    min-height: 330px;
    place-items: center;
    padding: 30px;
    text-align: center;
    color: rgba(21, 92, 99, .68);
}

.adpg-presence-locations {
    display: grid;
    gap: 24px;
    margin-top: 24px;
}

.adpg-presence-group h3 {
    margin: 0 0 11px;
    color: var(--adpg-deep);
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .02em;
}

.adpg-presence-country-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.adpg-presence-country {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 64px;
    padding: 11px 14px 11px 16px;
    border: 1px solid var(--adpg-border);
    border-radius: 14px;
    background: #fff;
    color: var(--adpg-deep);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.adpg-presence-country::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    bottom: 13px;
    width: 4px;
    border-radius: 0 5px 5px 0;
}

.adpg-presence-country--office::before {
    background: var(--adpg-office);
}

.adpg-presence-country--projects::before {
    background: var(--adpg-projects);
}

.adpg-presence-country--both::before {
    background: var(--adpg-both);
}

.adpg-presence-country:hover {
    transform: translateY(-2px);
    border-color: rgba(21, 92, 99, .35);
    background: var(--adpg-soft);
}

.adpg-presence-country:focus-visible,
.adpg-office-modal__close:focus-visible,
.adpg-office-modal__directions:focus-visible {
    outline: 3px solid rgba(210, 173, 84, .45);
    outline-offset: 3px;
}

.adpg-presence-country__flag {
    font-size: 25px;
    line-height: 1;
}

.adpg-presence-country__text strong,
.adpg-presence-country__text span {
    display: block;
}

.adpg-presence-country__text strong {
    font-size: 14px;
    font-weight: 650;
}

.adpg-presence-country__text span {
    margin-top: 3px;
    color: rgba(21, 92, 99, .62);
    font-size: 11px;
    line-height: 1.35;
}

.adpg-office-modal[hidden] {
    display: none !important;
}

.adpg-office-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(5, 35, 38, .74);
    backdrop-filter: blur(8px);
}

body.adpg-office-modal-open {
    overflow: hidden;
}

.adpg-office-modal__card {
    position: relative;
    width: min(100%, 540px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: clamp(24px, 5vw, 42px);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .24);
}

.adpg-office-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--adpg-border);
    border-radius: 50%;
    background: var(--adpg-soft);
    color: var(--adpg-deep);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.adpg-office-modal__flag {
    margin-bottom: 13px;
    font-size: 38px;
    line-height: 1;
}

.adpg-presence-badge {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    margin: 0 0 12px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.adpg-presence-badge--office {
    background: rgba(210, 173, 84, .18);
    color: #795e20;
}

.adpg-presence-badge--projects {
    background: rgba(132, 170, 167, .20);
    color: #3c6f6c;
}

.adpg-presence-badge--both {
    background: rgba(21, 92, 99, .12);
    color: var(--adpg-deep);
}

.adpg-office-modal__card h3 {
    margin: 0 44px 12px 0;
    color: var(--adpg-deep);
    font-size: clamp(27px, 5vw, 38px);
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -.025em;
}

.adpg-office-modal__summary {
    margin: 0 0 22px;
    color: rgba(21, 92, 99, .72);
    font-size: 15px;
    line-height: 1.7;
}

.adpg-office-details {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--adpg-border);
}

.adpg-office-details > div {
    display: grid;
    gap: 4px;
    padding: 14px 0;
    border-bottom: 1px solid var(--adpg-border);
}

.adpg-office-details span {
    color: rgba(21, 92, 99, .58);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.adpg-office-details strong,
.adpg-office-details a {
    color: var(--adpg-deep);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.adpg-office-details small {
    color: rgba(21, 92, 99, .68);
    font-size: 13px;
    line-height: 1.5;
}

.adpg-office-details a:hover {
    text-decoration: underline;
}

.adpg-office-modal__directions {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 50px;
    margin-top: 22px;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--adpg-deep);
    color: #fff !important;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none !important;
    transition: background .2s ease, transform .2s ease;
}

.adpg-office-modal__directions:hover {
    background: var(--adpg-deep-2);
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .adpg-presence-country-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .adpg-office-map__stage {
        padding: 8px;
        border-radius: 18px;
    }

    .adpg-office-map__chart {
        min-height: 220px;
    }

    .adpg-world-marker__label,
    .adpg-world-market-marker__label {
        display: none;
    }

    .adpg-office-map__hint {
        position: static;
        margin: 4px 8px 8px;
    }

    .adpg-presence-legend {
        justify-content: flex-start;
        gap: 8px 14px;
    }

    .adpg-presence-country-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .adpg-presence-country {
        min-height: 58px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .adpg-presence-country,
    .adpg-office-modal__directions,
    .adpg-world-country {
        transition: none;
    }

    .adpg-world-marker__pulse,
    .adpg-world-market-marker__pulse {
        animation: none;
    }
}
