/* ==========================================================================
   Layout: Offices Map
   ========================================================================== */

.pb-om {
    padding: 150px 16px 100px 16px;
}

.pb-om__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 627px 1fr;
    gap: 64px;
    align-items: start;
}

/* ── Left: content ─────────────────────────────────────────────────────── */

.pb-om__content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pb-om__label {
font-family: var(--font-family);
font-weight: 500;
font-size: 15px;
line-height: 160%;
letter-spacing: 0.05em;
text-transform: uppercase;
color: var(--text-base);
    margin: 0 0 40px;
}
.pb-om__panel-info a{
    text-decoration: none;
}
.pb-om__heading {
font-family: var(--second-family);
font-weight: 550;
font-size: 54px;
line-height: 119%;
letter-spacing: -0.02em;
background: linear-gradient(180deg, rgba(0, 5, 25, 0.9) 0%, #000519 50%);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
text-shadow: inset 0 1px 0px 0 var(--white-transparent-20);
    margin: 0 0 32px;
}

/* ── Tabs ──────────────────────────────────────────────────────────────── */

.pb-om__tabs {
    display: flex;
    gap: 16px;
    background: #f0f2f7;
    border-radius: 12px;
    padding: 5px;
    width: fit-content;
    margin-bottom: 20px;
    box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.01), 0 6px 17px 0 rgba(0, 0, 0, 0.01), 0 15px 40px 0 rgba(0, 0, 0, 0.02);
background: var(--base-white);
border: 1px solid var(--base-border-black);
border-radius: 8px;
padding: 8px;
width: 100%;
margin-bottom: 16px;
}

.pb-om__tab {
    padding: 18px 24px;
    border: none;
    background: transparent;
font-family: var(--second-family);
font-weight: 600;
font-size: 18px;
line-height: 133%;
letter-spacing: 0.01em;
color: var(--text-base);
    cursor: pointer;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    white-space: nowrap;
    border-radius: 2px;
    position: relative;
    flex: 1 0 auto;
    transition: all .2s linear;
}
.pb-om__tab:after{
    content: '';
    display: block;
    position: absolute;
    right: -8px;
    width: 1px;
    height: 40px;
    background-color: var(--base-border-black);
    top: 6px;
}
.pb-om__tab:hover{
    background: var(--brand-blue-50);
}
.pb-om__tab:last-child:after{
display: none;
}
.pb-om__tab.is-active {
background: var(--brand-blue-50);
color: var(--brand-blue-500);
}

/* ── Panel ─────────────────────────────────────────────────────────────── */

@keyframes pb-om-img-in {
    from {
        opacity: 0;
        filter: blur(10px);
        transform: scale(1.04);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

@keyframes pb-om-text-in {
    from {
        opacity: 0;
        transform: translateX(-14px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.pb-om__panel {
    border: 1px solid var(--base-border-black, #e8eaf0);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.01), 0 6px 17px 0 rgba(0, 0, 0, 0.01), 0 15px 40px 0 rgba(0, 0, 0, 0.02);
background: var(--base-white);
border: 1px solid var(--base-border-black);
border-radius: 8px;
padding: 16px 16px 32px;
}

.pb-om__panel[hidden] {
    display: none;
}

.pb-om__panel.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* Image blur-fade */
.pb-om__panel.is-active .pb-om__panel-img img {
    animation: pb-om-img-in 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* Text elements stagger */
.pb-om__panel.is-active .pb-om__panel-info > * {
    animation: pb-om-text-in 0.32s ease both;
}
.pb-om__panel.is-active .pb-om__panel-info > *:nth-child(1) { animation-delay: 0.18s; }
.pb-om__panel.is-active .pb-om__panel-info > *:nth-child(2) { animation-delay: 0.25s; }
.pb-om__panel.is-active .pb-om__panel-info > *:nth-child(3) { animation-delay: 0.31s; }
.pb-om__panel.is-active .pb-om__panel-info > *:nth-child(4) { animation-delay: 0.37s; }
.pb-om__panel.is-active .pb-om__panel-info > *:nth-child(5) { animation-delay: 0.43s; }

/* Photo */
.pb-om__panel-img {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    border-radius: 8px;
    height: 330px;
    overflow: hidden;
    margin-bottom: 32px;
}

.pb-om__panel-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info block */
.pb-om__panel-info {
    padding: 0 16px 0px 16px;
    display: flex;
    flex-direction: column;
}

.pb-om__office-title {
font-family: var(--second-family);
font-weight: 550;
font-size: 26px;
line-height: 131%;
letter-spacing: -0.01em;
color: var(--text-bold);
    margin: 0 0 12px 0;
}

.pb-om__office-desc {
font-family: var(--font-family);
font-weight: 500;
font-size: 16px;
line-height: 150%;
letter-spacing: 0.01em;
color: var(--text-base);
    margin: 0 0 32px 0;
}

/* Rows with icon */
.pb-om__office-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
font-family: var(--font-family);
font-weight: 500;
font-size: 16px;
line-height: 150%;
letter-spacing: 0.01em;
color: var(--text-bold);
}

.pb-om__office-row--meta {
    gap: 48px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.pb-om__office-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
font-family: var(--font-family);
font-weight: 500;
font-size: 16px;
line-height: 150%;
letter-spacing: 0.01em;
color: var(--text-bold);
}

.pb-om__office-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary, #1e3fc7);
    margin-top: 1px;
    width: 20px;
    height: 20px;
}

.pb-om__office-days {
font-family: var(--font-family);
font-weight: 500;
font-size: 16px;
line-height: 150%;
letter-spacing: 0.01em;
color: var(--text-bold);
position: relative;
padding-left: 10px;
}
.pb-om__office-days:before{
    content: '';
    display: block;
    position: absolute;
    left: -1px;
    top: 5px;
    width: 1px;
    height: 12px;
    background-color: var(--base-border-black);
}
/* ── Right: SVG Map ─────────────────────────────────────────────────────── */

.pb-om__map {
    position: relative;
    top: auto;
    max-width: 460px;
}

.pb-om__map svg {
    width: 100%;
    height: auto;
    display: block;
}
.map_dot.--disables *{
    transform: scale(0.85);
    
}
/* ── SVG map dots ───────────────────────────────────────────────────────── */
.map_dot *{
    transition: all .2s linear;
    transform-origin: 50%;
    transform-box: fill-box;
}
.map_dot {
    cursor: pointer;
    
}

.map_dot rect,
.map_dot circle {
    transition: fill 0.25s;
}

/* Inactive */
.map_dot.--disables rect { fill: #fff; }
.map_dot.--disables circle { fill: #CADBFF; }

/* Active */
.map_dot.--enabled rect { fill: #CADBFF; }
.map_dot.--enabled circle { fill: #1B5DF8; }

/* Hover on inactive */
.map_dot.--disables:hover circle { fill: #8fa8e8; }

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
    .pb-om__inner {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .pb-om {
        padding: 64px 16px;
    }

    .pb-om__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pb-om__map {
        position: static;
        max-width: 480px;
        margin: 0 auto;
    }

    .pb-om__heading {
        font-size: 32px;
    }
    .mainMap{
        display: none;
    }
    .pb-om__office-row--meta{
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-top: 16px;
    }
    .pb-om__panel-img{
        height: 190px;
        margin-bottom: 16px;
    }
    .pb-om__panel{
        padding: 8px 8px 24px 8px;
    }
    .pb-om__office-title{
font-size: 18px;
line-height: 133%;
letter-spacing: 0.01em;
    }
    .pb-om__office-meta-item{
        font-size: 14px;
line-height: 157%;
letter-spacing: 0.02em;
    }
    .pb-om__office-desc{
font-size: 14px;
line-height: 157%;
letter-spacing: 0.02em;
margin-bottom: 16px;
    }
    .pb-om__office-row{
        font-size: 14px;
line-height: 157%;
letter-spacing: 0.02em;
    }
}

@media (max-width: 480px) {
    .pb-om {
        padding: 48px 16px;
    }



    .pb-om__tabs {
        width: 100%;
    }

    .pb-om__tab {
        flex: 1;
        text-align: center;
    }
}

/* ── Preloader ─────────────────────────────────────────────────────────── */

html.gf-om-loading {
    overflow: hidden;
}

.gf-om-preloader {
    position: fixed;
    inset: 0;
    z-index: 999999999999999999;
    background: #FDFDFE;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    opacity: 1;
    transition: opacity 0.55s ease;
    will-change: opacity;
}

.gf-om-preloader.is-done {
    opacity: 0;
    pointer-events: none;
}

.gf-om-preloader__logo {
    width: auto;
    max-width: 140px;
    height: auto;
    display: block;
}

.gf-om-preloader__logo-text {
    font-family: var(--second-family);
    font-size: 22px;
    font-weight: 600;
    color: var(--base-black);
}

.gf-om-preloader__bar {
    width: 80px;
    height: 2px;
    background: var(--base-border-black, #e8eaf0);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.gf-om-preloader__bar-fill {
    position: absolute;
    inset: 0;
    width: 40%;
    background: var(--brand-blue-500, #1b5df8);
    border-radius: 2px;
    animation: gf-om-bar 1.3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes gf-om-bar {
    0%   { transform: translateX(-200%); }
    100% { transform: translateX(400%); }
}
