#clients {
    position: relative;
    overflow: hidden;
    padding: 30px 0;
}

#clients::before {
    content: "";
    position: absolute;
    left: -240px;
    bottom: -240px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(184,147,74,0.10),
            transparent 72%
        );
    pointer-events: none;
}

#clients::after {
    content: "";
    position: absolute;
    top: -180px;
    right: -180px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(255,255,255,0.03),
            transparent 72%
        );
    pointer-events: none;
}

.clients-header {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin-bottom: 8px;
}

.partners-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
    color: var(--gold);
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.partners-badge::before,
.partners-badge::after {
    content: "";
    width: 20px;
    height: 1px;
    background: var(--gold);
}

.clients-header h2 {
    margin-bottom: 8px;
    font-size: clamp(1rem, 7vw, 2rem);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: -2px;
    color: var(--gold);
}

.clients-header h2 span {
    color: var(--white);
}

.clients-header p {
    max-width: 620px;
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.7;
}

.clients-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.main-clients {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    justify-content: space-between;
    width: 100%;
}

.main-client-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(184,147,74,0.18);
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.06),
            rgba(255,255,255,0.02)
        );
    backdrop-filter: blur(12px);
    transition:
        transform .3s ease,
        border-color .3s ease,
        background .3s ease;
}

.main-client-card::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(184,147,74,0.16),
            transparent 70%
        );
    opacity: 0;
    transition: opacity .3s ease;
}

.main-client-card:hover {
    transform: translateY(-4px);
    border-color: rgba(184,147,74,0.32);
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.08),
            rgba(255,255,255,0.03)
        );
}

.main-client-card:hover::before {
    opacity: 1;
}

.main-client-card img {
    width: 100%;
    max-width: 120px;
    height: auto;
    object-fit: contain;
}

.presence {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 22px 22px;
    border-radius: 28px;
    border: 1px solid rgba(184,147,74,0.18);
    background:
        linear-gradient(
            135deg,
            var(--navy),
            var(--navy2)
        );
    box-shadow:
        0 20px 60px rgba(0,0,0,0.35),
        inset 0 0 0 1px rgba(255,255,255,0.02);
}

.presence-glow {
    position: absolute;
    width: 240px;
    height: 240px;
    top: -120px;
    left: -100px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(184,147,74,0.18),
            transparent 70%
        );
}

.presence-left,
.presence-right {
    position: relative;
    z-index: 2;
}

.presence-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.presence-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(184,147,74,0.32);
    background: rgba(255,255,255,0.02);
    color: var(--gold);
    font-size: 1.45rem;
}

.presence-content span {
    display: block;
    margin-bottom: 8px;
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.22em;
}

.presence-states {
    display: flex;
    align-items: center;
    gap: 10px;
}

.presence-states p {
    margin: 0;
    color: var(--white);
    font-size: 1.6rem;
    font-weight: 500;
}

.dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
}

.presence-divider {
    flex-shrink: 0;
    height: 1px;
    width: 200px;
    margin: 0 22px;
    background:
        linear-gradient(
            to right,
            transparent,
            rgba(184,147,74,0.4),
            transparent
        );
}

.presence-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.presence-users {
    color: var(--gold);
    font-size: 1.8rem;
}

.presence-numbers h3 {
    margin: 0;
    color: var(--white);
    font-size: 2rem;
    line-height: 1;
}

.presence-numbers p {
    margin-top: 4px;
    color: rgba(255,255,255,0.72);
    font-size: 0.78rem;
    line-height: 1.4;
}

.clients-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.client-city-card,
.client-city-more {
    cursor: pointer;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 999px;
    backdrop-filter: blur(10px);
    transition:
        transform .25s ease,
        border-color .25s ease,
        background .25s ease;
}

.client-city-card {
    border: 1px solid rgba(255,255,255,0.06);
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.04),
            rgba(255,255,255,0.02)
        );

    color: var(--gray);
    font-size: 0.8rem;
    font-weight: 500;
}

.client-city-card:hover {
    transform: translateY(-2px);
    border-color: rgba(184,147,74,0.24);
    color: var(--white);
}

.client-city-more {
    border: 1px solid rgba(184,147,74,0.28);
    background:
        linear-gradient(
            180deg,
            rgba(184,147,74,0.14),
            rgba(184,147,74,0.05)
        );

    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.client-city-more:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
}

.uf {
    color: var(--gold);
}

@media (min-width: 520px) {
    .presence {
        display: flex;
        flex-direction: row;
    }

    .presence-divider {
        flex-shrink: 0;
        height: 72px;
        width: 1px;
        margin: 0px;
        background:
            linear-gradient(
                to bottom,
                transparent,
                rgba(184,147,74,0.4),
                transparent
            );

    }
}

@media (max-width: 640px) {
    .clients-header {
        margin-bottom: 15px;
    }

    .clients-header h2 {
        line-height: 1.05;
    }

    .clients-header p {
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .main-clients {
        gap: 12px;
    }

    .main-client-card {
        min-height: 82px;
        border-radius: 20px;
    }

    .main-client-card img {
        max-width: 92px;
    }

    .presence {
        padding: 16px 14px;
        border-radius: 22px;
        gap: 12px;
    }

    .presence-left {
        gap: 12px;
        min-width: 0;
    }

    .presence-right {
        gap: 8px;
        flex-shrink: 0;
    }

    .presence-icon {
        width: 46px;
        height: 46px;
        min-width: 46px;
        font-size: 1.2rem;
    }

    .presence-content span {
        font-size: 0.58rem;
        letter-spacing: 0.18em;
        margin-bottom: 6px;
    }

    .presence-states {
        gap: 8px;
        flex-wrap: nowrap;
    }

    .presence-states p {
        font-size: 1rem;
        white-space: nowrap;
    }

    .dot {
        width: 4px;
        height: 4px;
    }

    .presence-users {
        font-size: 1.2rem;
    }

    .presence-numbers {
        min-width: fit-content;
    }

    .presence-numbers h3 {
        font-size: 1.3rem;
        line-height: 1;
    }

    .presence-numbers p {
        font-size: 0.62rem;
        line-height: 1.2;
        white-space: nowrap;
    }

    .clients-cities {
        gap: 10px;
    }

    .client-city-card,
    .client-city-more {
        min-height: 38px;
        padding: 0 14px;
        font-size: 0.72rem;
    }
}

@media (min-width: 768px) {
    .main-clients {
        grid-template-columns: repeat(4, 1fr);
    }

    .main-client-card {
        min-height: 110px;
    }

    .main-client-card img {
        max-width: 130px;
    }
}

@media (min-width: 1200px) {
    .clients-wrapper {
        gap: 36px;
    }

    .main-client-card {
        min-height: 125px;
    }

    .main-client-card img {
        max-width: 145px;
    }

    .presence {
        max-width: 520px;
    }

    .clients-cities {
        gap: 14px;
    }
}