iframe {
    box-shadow: var(--shadow);
}

.b-c {
    background-image: url("../imgs/b_c.png");
    background-size: 100%;
    background-position: bottom;
    background-repeat: no-repeat;
    height: 60px;
}


.modern-contact-section {
    position: relative;
    padding: 45px 0 70px;
    overflow: hidden;
}

.modern-contact-section::before {
    content: "";
    position: absolute;
    top: 60px;
    inset-inline-start: -120px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(37, 99, 235, .06);
    filter: blur(20px);
    pointer-events: none;
}

.modern-contact-section::after {
    content: "";
    position: absolute;
    bottom: 20px;
    inset-inline-end: -130px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(249, 115, 22, .06);
    filter: blur(24px);
    pointer-events: none;
}

.modern-contact-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.modern-contact-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    min-height: 0;
    padding: 26px;
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid #eef0f4;
    border-radius: 28px;
    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #ffffff 65%,
            color-mix(
                in srgb,
                var(--contact-color) 6%,
                #ffffff
            ) 100%
        );
    box-shadow:
        0 18px 50px rgba(15, 23, 42, .07),
        inset 0 1px 0 rgba(255, 255, 255, .95);
    transition:
        transform .35s cubic-bezier(.16, 1, .3, 1),
        box-shadow .35s ease,
        border-color .35s ease;
}

html[data-theme="dark"] .modern-contact-card {
    background:
        linear-gradient(
            145deg,
            #0f172a 0%,
            #0f172a 65%,
            color-mix(
                in srgb,
                var(--contact-color) 6%,
                #0f172a
            ) 100%
        );
}
html[data-theme="dark"] .modern-contact-card * {
    color: white !important;
}

.modern-contact-card::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 5px;
    z-index: 2;
    opacity: .85;
    background: linear-gradient(
        90deg,
        var(--contact-color),
        color-mix(
            in srgb,
            var(--contact-color) 35%,
            transparent
        )
    );
}

.modern-contact-card:hover {
    transform: translateY(-8px);
    border-color: color-mix(
        in srgb,
        var(--contact-color) 25%,
        #eef0f4
    );
    box-shadow:
        0 28px 65px rgba(15, 23, 42, .12),
        0 12px 30px color-mix(
            in srgb,
            var(--contact-color) 12%,
            transparent
        );
}

.modern-contact-card-decoration {
    position: absolute;
    width: 210px;
    height: 210px;
    inset-inline-end: -95px;
    bottom: -105px;
    z-index: -1;
    border-radius: 50%;
    opacity: .12;
    background: radial-gradient(
        circle,
        var(--contact-color) 0%,
        transparent 70%
    );
    transition:
        transform .4s ease,
        opacity .4s ease;
}

.modern-contact-card:hover .modern-contact-card-decoration {
    opacity: .19;
    transform: scale(1.18);
}

.modern-contact-icon {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    color: var(--contact-color);
    background: color-mix(
        in srgb,
        var(--contact-color) 10%,
        #ffffff
    );
    border: 1px solid color-mix(
        in srgb,
        var(--contact-color) 14%,
        transparent
    );
    box-shadow:
        0 12px 26px color-mix(
            in srgb,
            var(--contact-color) 13%,
            transparent
        );
    transition:
        transform .35s ease,
        background .35s ease,
        color .35s ease;
}

.modern-contact-icon i {
    font-size: 28px;
}

.modern-contact-card:hover .modern-contact-icon {
    color: #ffffff;
    background: var(--contact-color);
    transform: rotate(-6deg) scale(1.06);
}

.modern-contact-card-body {
    position: relative;
    z-index: 2;
}

.modern-contact-label {
    display: block;
    margin-bottom: 9px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
}

.modern-contact-value {
    display: block;
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
    word-break: break-word;
    transition: color .25s ease;
}

.modern-contact-card.is-linked:hover .modern-contact-value {
    color: var(--contact-color);
}

@media (max-width: 991.98px) {
    .modern-contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .modern-contact-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .modern-contact-section {
        padding: 35px 0 50px;
    }

    .modern-contact-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .modern-contact-card:last-child {
        grid-column: auto;
    }

    .modern-contact-card {
        gap: 16px;
        padding: 21px;
        border-radius: 23px;
    }

    .modern-contact-icon {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
        border-radius: 18px;
    }

    .modern-contact-icon i {
        font-size: 24px;
    }

    .modern-contact-value {
        font-size: 16px;
    }
}

html[data-theme="dark"] .modern-contact-icon {
    background-color: #1e293b !important;
    color: #f8fafc !important;
}


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

.branch-grid-empty {
    grid-column: 1 / -1;
}

.branch-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    padding: 24px 26px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: 0 18px 50px rgba(15, 23, 42, .06);
    color: inherit;
    text-decoration: none;
    transition:
        transform .35s cubic-bezier(.16, 1, .3, 1),
        box-shadow .35s ease,
        border-color .35s ease;
}

.branch-card::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), rgba(16, 137, 236, .25));
}

.branch-card-glow {
    position: absolute;
    inset-inline-end: -70px;
    bottom: -90px;
    z-index: -1;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    opacity: .1;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    transition: transform .4s ease, opacity .4s ease;
}

.branch-card.is-linked:hover {
    transform: translateY(-6px);
    border-color: rgba(16, 137, 236, .35);
    box-shadow: 0 28px 60px rgba(15, 23, 42, .12);
}

.branch-card.is-linked:hover .branch-card-glow {
    opacity: .18;
    transform: scale(1.15);
}

.branch-card-pin {
    flex: 0 0 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(16, 137, 236, .16);
    border-radius: 20px;
    background: var(--light);
    color: var(--primary);
    font-size: 26px;
    transition: transform .35s ease, background .35s ease, color .35s ease;
}

.branch-card.is-linked:hover .branch-card-pin {
    background: var(--primary);
    color: #ffffff;
    transform: rotate(-6deg) scale(1.06);
}

.branch-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.branch-card-label {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}

.branch-card-name {
    margin: 0;
    color: var(--dark-primary);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.branch-card-address {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

html[data-theme="dark"] .branch-card {
    background: #0f172a;
    border-color: #334155;
}

html[data-theme="dark"] .branch-card-name {
    color: #f8fafc;
}

html[data-theme="dark"] .branch-card-pin {
    background: #1e293b;
    color: #38bdf8;
}

@media (max-width: 767.98px) {
    .branch-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .branch-card {
        gap: 14px;
        padding: 20px;
    }

    .branch-card-pin {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
        border-radius: 17px;
        font-size: 22px;
    }

    .branch-card-name {
        font-size: 18px;
    }
}
