/* Wider container for partners page */
.container {
    max-width: 1600px !important;
}

/* Hover эффект для кнопки в градиентном блоке */
.btn[style*="background: white; color: #007aff"]:hover {
    background: #f8f9fa !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3) !important;
}

/* Стили модального окна в стиле Apple */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

.modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 0 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    color: #86868b;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1d1d1f;
}

.modal-body {
    padding: 0 24px;
    flex: 1;
    overflow-y: auto;
}

.modal-icon {
    text-align: center;
    margin-bottom: 24px;
}

.modal-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1d1d1f;
    text-align: center;
    margin-bottom: 16px;
}

.modal-description {
    color: #86868b;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 32px;
}

.modal-benefits {
    margin-bottom: 32px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: rgba(0, 122, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 122, 255, 0.1);
}

.benefit-icon {
    width: 20px;
    height: 20px;
    background: #34c759;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.benefit-item span {
    color: #1d1d1f;
    font-weight: 500;
}

.modal-footer {
    padding: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 12px;
}

.modal-btn {
    flex: 1;
    text-align: center;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.modal-btn:hover {
    transform: translateY(-1px);
}

/* Анимации */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Increase columns on very wide screens */
@media (min-width: 1600px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    div[style*="max-width: 1200px"] {
        max-width: 1400px !important;
    }
    
    div[style*="max-width: 1100px"] {
        max-width: 1300px !important;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem !important;
    }
    
    .section-title {
        font-size: 1.75rem !important;
    }
    
    .hero-actions {
        flex-direction: column !important;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    
    .feature-card {
        padding: 24px !important;
    }
    
    section > .container > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 60px 0 !important;
    }
    
    section {
        padding: 60px 0 !important;
    }
    
    div[style*="width: 120px; height: 90px"] {
        width: 100px !important;
        height: 75px !important;
        font-size: 1.8rem !important;
    }
    
    /* Адаптивные стили для модального окна */
    .modal-overlay {
        padding: 16px;
    }
    
    .modal-container {
        max-width: 100%;
        border-radius: 16px;
    }
    
    .modal-header {
        padding: 20px 20px 0 20px;
    }
    
    .modal-body {
        padding: 0 20px;
    }
    
    .modal-footer {
        padding: 20px;
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
}
