/* ========== PROOFS & GUARANTEES SECTION - COMPACT VERSION ========== */
.proofs-guarantees {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #f8fafc 20%,
        #f0f9ff 60%,
        #ffffff 100%);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.proofs-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.proofs-header .section-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #222222 0%, #00B707 50%, #222222 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientText 8s ease infinite;
}

@keyframes gradientText {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.proofs-header .section-subtitle {
    font-size: 1.125rem;
    color: #666666;
    line-height: 1.5;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Основная сетка - более компактная */
.proofs-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.proof-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 183, 7, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px; /* Фиксированная высота для ровности */
}

.proof-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 183, 7, 0.3);
    box-shadow: 0 10px 25px rgba(0, 183, 7, 0.1);
}

.proof-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00B707 0%, #008a05 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: white;
    font-size: 20px;
    box-shadow: 0 6px 15px rgba(0, 183, 7, 0.2);
    flex-shrink: 0; /* Запрет сжатия */
}

.proof-card h3 {
    font-size: 0.9375rem;
    color: #222222;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    padding: 0 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Галерея сертификатов - компактная версия */
.certificates-section {
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.subsection-title {
    font-size: 1.75rem;
    color: #222222;
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.subsection-subtitle {
    font-size: 1rem;
    color: #666666;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.8;
    text-align: center;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.certificate-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 183, 7, 0.1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 180px; /* Фиксированная высота для ровности */
}

.certificate-item:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 183, 7, 0.3);
    box-shadow: 0 10px 25px rgba(0, 183, 7, 0.1);
}

.certificate-image {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.certificate-content {
    padding: 12px 10px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.certificate-content h4 {
    font-size: 0.875rem;
    color: #222222;
    margin-bottom: 4px;
    font-weight: 600;
    line-height: 1.2;
}

.certificate-content p {
    font-size: 0.75rem;
    color: #666666;
    line-height: 1.3;
    margin: 0;
    opacity: 0.8;
}

/* Логотипы клиентов - компактная сетка */
.clients-section {
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.client-logo {
    background: white;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 183, 7, 0.1);
    transition: all 0.3s ease;
    height: 90px; /* Фиксированная высота для ровности */
}

.client-logo:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 183, 7, 0.3);
    box-shadow: 0 10px 20px rgba(0, 183, 7, 0.1);
}

.client-logo img {
    max-width: 100%;
    max-height: 40px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.8);
    transition: all 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* Декоративные элементы */
.proofs-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.proofs-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 183, 7, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(41, 128, 185, 0.02) 0%, transparent 50%);
}

/* Анимации появления */
.proof-card,
.certificate-item,
.client-logo {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.5s ease forwards;
}

.proof-card:nth-child(1) { animation-delay: 0.1s; }
.proof-card:nth-child(2) { animation-delay: 0.15s; }
.proof-card:nth-child(3) { animation-delay: 0.2s; }
.proof-card:nth-child(4) { animation-delay: 0.25s; }
.proof-card:nth-child(5) { animation-delay: 0.3s; }

.certificate-item:nth-child(1) { animation-delay: 0.1s; }
.certificate-item:nth-child(2) { animation-delay: 0.15s; }
.certificate-item:nth-child(3) { animation-delay: 0.2s; }
.certificate-item:nth-child(4) { animation-delay: 0.25s; }

.client-logo:nth-child(1) { animation-delay: 0.1s; }
.client-logo:nth-child(2) { animation-delay: 0.15s; }
.client-logo:nth-child(3) { animation-delay: 0.2s; }
.client-logo:nth-child(4) { animation-delay: 0.25s; }
.client-logo:nth-child(5) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .proofs-grid,
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .proofs-header .section-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .proofs-guarantees {
        padding: 60px 0 40px;
    }
    
    .proofs-grid,
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .proofs-header .section-title {
        font-size: 2rem;
    }
    
    .proofs-header .section-subtitle {
        font-size: 1rem;
    }
    
    .subsection-title {
        font-size: 1.5rem;
    }
    
    .proof-card {
        height: 130px;
        padding: 15px 10px;
    }
    
    .proof-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .proof-card h3 {
        font-size: 0.875rem;
    }
    
    .certificate-item {
        height: 160px;
    }
    
    .certificate-image {
        height: 100px;
    }
    
    .client-logo {
        height: 80px;
        padding: 12px;
    }
    
    .client-logo img {
        max-height: 35px;
    }
}

@media (max-width: 480px) {
    .proofs-grid,
    .certificates-grid,
    .clients-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 0 auto;
        gap: 10px;
    }
    
    .proofs-header .section-title {
        font-size: 1.75rem;
    }
    
    .proof-card {
        height: 120px;
    }
    
    .client-logo {
        height: 75px;
    }
    
    .certificate-item {
        height: 150px;
    }
    
    .certificate-image {
        height: 90px;
    }
}