@font-face {
    font-family: 'Involve';
    src: url('Involve-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow: hidden;
}

body {
    background-color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow: hidden;
    /* Скрытие скроллбара для Webkit браузеров (Chrome, Safari, Edge) */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE и Edge */
}

body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.partners-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 16px 64px;
    gap: 56px;
    background-color: white;
    overflow: visible;
    box-sizing: border-box;
}

.status-label {
    white-space: pre-line;
    word-break: normal;
    overflow-wrap: normal;
    min-width: 220px;
    width: 220px;
    max-width: 220px;
    font-family: 'Involve', sans-serif;
    font-weight: 500;
    font-size: 30px;
    line-height: 1.2;
    color: #000;
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(10px);
    will-change: opacity, transform;
}

.status-label.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.status-label.fade-out {
    animation: fadeOut 0.5s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.logos-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: nowrap;
    flex: 1 1 0;
    min-width: 0;
    overflow: visible;
    position: relative;
    min-height: 60px;
    contain: layout style paint;
    box-sizing: border-box;
}

.logos-container.few-logos {
    justify-content: flex-start;
    gap: 48px;
}

.logo-item {
    flex-shrink: 0;
    flex: 0 0 auto;
    width: 160px;
    max-width: 160px;
    height: 100px;
    max-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(10px);
    will-change: opacity, transform;
    pointer-events: none;
}

.logo-item.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.logo-item img {
    max-height: 100px;
    max-width: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease-out;
    vertical-align: middle;
}

.logo-item.visible:hover img {
    transform: scale(1.05);
}

/* Fade animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.logo-item.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.logo-item.fade-out {
    animation: fadeOut 0.5s cubic-bezier(0.4, 0, 1, 1) forwards;
}

/* Адаптивность */
@media (max-width: 768px) {
    .partners-container {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }
    
    .status-label {
        max-width: 100%;
        text-align: center;
    }
    
    .logos-container {
        width: 100%;
        justify-content: center;
    }
}

