.operators-container {
    width: 100%;
    max-width: 1200px;
}

.page-title {
    margin-top: 20px;
    text-align: center;
    color: var(--text-color, #2c3e50);
    margin-bottom: 40px;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.operators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
}

.operator-card {
    background: var(--card-bg, white);
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--shadow, rgba(0,0,0,0.08));
    overflow: visible;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
    text-decoration: none;
    color: var(--text-color, #2c3e50);
    display: block;
    border: 1px solid var(--border-color, #e0e0e0);
}

.operator-card:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 20px rgba(0,0,0,0.12);
    border-color: #0066CC;
}

.operator-logo-container {
    padding: 25px;
    background: linear-gradient(135deg, var(--light-gray, #f8f9fa) 0%, var(--bg-color, #e9ecef) 100%);
    border-bottom: 1px solid var(--border-color, #e0e0e0);
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, border-color 0.3s ease;
    position: relative;
    z-index: 2;
}

.operator-logo {
    max-width: 80%;
    max-height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.3s;
}

.operator-card:hover .operator-logo {
    transform: scale(1.05);
}

.operator-info {
    padding: 25px 20px;
    position: relative;
    z-index: 2;
}

.operator-name {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-color, #2c3e50);
    transition: color 0.3s ease;
}

.operator-description {
    color: var(--text-color, #7f8c8d);
    font-size: 14px;
    line-height: 1.5;
    margin-top: 10px;
    opacity: 0.8;
    transition: color 0.3s ease;
}

.operator-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #28a745;
    color: white;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    z-index: 3;
    border-radius: 20px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
    pointer-events: none;
}

.operator-delay-notice {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff3cd;
    color: #856404;
    font-size: 12px;
    line-height: 1.4;
}

.operator-badge::before {
    content: '';
    display: none;
}

.operator-badge::after {
    content: '';
    display: none;
}

/* Мобильная адаптация */
@media (max-width: 900px) {
    .operators-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .operator-logo-container {
        height: 140px;
        padding: 20px;
    }
}

@media (max-width: 600px) {   
    .page-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .operators-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .operator-logo-container {
        height: 130px;
    }
}
/* Улучшенная анимация загрузки */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0066CC, #004080);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 0 12px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: white;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    max-width: min(90vw, 420px);
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: break-word;
    padding: 0 14px;
}

@media (max-width: 600px) {
    .loading-content {
        padding: 0 8px;
    }

    .loading-spinner {
        width: 48px;
        height: 48px;
        border-width: 3px;
    }

    .loading-text {
        margin-top: 16px;
        font-size: 16px;
        max-width: min(92vw, 320px);
        padding: 0 10px;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Улучшенные карточки операторов с эффектами наведения */
.operators-container {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.operators-container.loaded {
    opacity: 1;
    transform: translateY(0);
}

.operators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.operator-card {
    background: var(--card-bg, #fff);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px var(--shadow, rgba(0, 0, 0, 0.08));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: visible;
    transform: translateY(0);
}

.operator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.operator-card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 40px rgba(0, 102, 204, 0.15);
}

.operator-card:hover::before {
    left: 100%;
}

.operator-logo-container {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.operator-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 12px;
}

.operator-card:hover .operator-logo {
    transform: scale(1.1) rotate(5deg);
}

/* Стиль ленты для бейджа уже определен выше */

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.operator-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color, #333);
    margin-bottom: 8px;
    text-align: center;
    transition: color 0.3s ease;
}

.operator-description {
    font-size: 14px;
    color: var(--text-color, #666);
    text-align: center;
    line-height: 1.4;
    opacity: 0.8;
    transition: color 0.3s ease;
}

.page-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color, #333);
    margin: 40px 0;
    background: linear-gradient(135deg, #0066CC, #004080);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: color 0.3s ease;
}

[data-theme="dark"] .page-title {
    -webkit-text-fill-color: var(--text-color);
}

/* Улучшенная адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .operators-container {
        padding: 0 10px;
    }

    .operators-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 10px;
        max-width: 100%;
    }

    .operator-card {
        padding: 16px;
        border-radius: 14px;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 16px;
        min-height: 90px;
        box-shadow: 0 2px 12px var(--shadow, rgba(0, 0, 0, 0.08));
        border: 1px solid var(--border-color, #f0f0f0);
    }

    .operator-card:active {
        transform: scale(0.98);
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    }

    .operator-logo-container {
        flex-shrink: 0;
        width: 70px;
        height: 70px;
        margin-bottom: 0;
        background: linear-gradient(135deg, var(--light-gray, #f8f9fa) 0%, var(--bg-color, #e9ecef) 100%);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
        transition: background 0.3s ease;
    }

    .operator-logo {
        width: 100%;
        height: 100%;
        max-width: 50px;
        max-height: 50px;
        object-fit: contain;
        border-radius: 8px;
    }

    .operator-info {
        flex: 1;
        text-align: left;
        padding: 0;
        min-width: 0;
    }

    .operator-name {
        font-size: 16px;
        font-weight: 600;
        color: var(--text-color, #2c3e50);
        margin-bottom: 4px;
        text-align: left;
        line-height: 1.3;
        transition: color 0.3s ease;
    }

    .operator-description {
        font-size: 13px;
        color: var(--text-color, #7f8c8d);
        line-height: 1.4;
        text-align: left;
        margin-top: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        opacity: 0.8;
        transition: color 0.3s ease;
    }

    .operator-badge {
        top: 10px;
        right: 10px;
        font-size: 10px;
        padding: 5px 12px;
        border-radius: 18px;
    }

    .page-title {
        font-size: 22px;
        margin: 15px 0 25px 0;
        padding: 0 15px;
    }

    .operator-card:hover {
        transform: scale(1.01);
        box-shadow: 0 4px 16px rgba(0, 102, 204, 0.12);
    }

    .operator-card:hover .operator-logo {
        transform: scale(1.05);
    }
}

@media (max-width: 480px) {
    .operators-grid {
        gap: 10px;
        padding: 0 8px;
    }

    .operator-card {
        padding: 14px;
        gap: 14px;
        min-height: 85px;
        border-radius: 12px;
    }

    .operator-logo-container {
        width: 65px;
        height: 65px;
        padding: 8px;
    }

    .operator-logo {
        max-width: 45px;
        max-height: 45px;
    }

    .operator-name {
        font-size: 15px;
    }

    .operator-description {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    .page-title {
        font-size: 20px;
        margin: 12px 0 20px 0;
    }
}

/* Staggered animation for cards */
.operator-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add animation delays */
.operator-card:nth-child(1) { animation-delay: 0.1s; }
.operator-card:nth-child(2) { animation-delay: 0.2s; }
.operator-card:nth-child(3) { animation-delay: 0.3s; }
.operator-card:nth-child(4) { animation-delay: 0.4s; }
.operator-card:nth-child(5) { animation-delay: 0.5s; }
.operator-card:nth-child(6) { animation-delay: 0.6s; }

/* Error state */
.error-message {
    text-align: center;
    padding: 40px 20px;
    color: #dc3545;
    font-size: 18px;
    transition: color 0.3s ease;
}

.retry-btn {
    background: #0066CC;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: background 0.3s;
}

.retry-btn:hover {
    background: #0052a3;
}