/* Стили для сертификатов на главной странице */

.certificates {
    margin: 25px 0 35px;
}

.certificates h4 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 500;
    color: var(--accent-color);
}

.certificate-gallery {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.certificate {
    width: calc(33.333% - 10px);
    min-width: 100px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.certificate-section {
    margin: 60px 0;
    text-align: center;
    position: relative;
    padding: 20px 0;
}

.certificate-section:before,
.certificate-section:after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--text-color), transparent);
}

.certificate-section:before {
    top: 0;
    width: 120px;
}

.certificate-section:after {
    bottom: 0;
    width: 80px;
}

.certificate-section h4 {
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.certificate-container {
    display: flex;
    justify-content: center;
    margin: 30px auto;
    padding: 0 20px;
    max-width: 600px;
}

.certificate-wrapper {
    position: relative;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    overflow: hidden;
}

.certificate-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    z-index: -1;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05), rgba(255,255,255,0.1));
    border-radius: 10px;
}

.certificate-img {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    cursor: pointer;
    border-radius: 5px;
    opacity: 0.95;
    filter: contrast(1.05);
}

.certificate-img:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    opacity: 1;
}

.certificate-single {
    position: relative;
    cursor: pointer;
}

.certificate-single:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-single:hover .certificate-overlay {
    opacity: 1;
}

.certificate-icon {
    color: white;
    font-size: 2rem;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.certificate-single:hover .certificate-icon {
    transform: scale(1);
}

.certificate:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.certificate img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.certificate:hover img {
    transform: scale(1.05);
}

/* Стили для подхода мастера */
.master-approach {
    margin: 60px 0;
    text-align: center;
    position: relative;
    padding: 20px 0;
}

.master-approach:before,
.master-approach:after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--text-color), transparent);
}

.master-approach:before {
    top: 0;
    width: 120px;
}

.master-approach:after {
    bottom: 0;
    width: 80px;
}

.master-approach > h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-color);
}

.approach-items {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 25px;
    justify-content: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.approach-item {
    background-color: var(--card-background, rgba(255, 255, 255, 0.05));
    padding: 30px;
    border-radius: 12px;
    flex: 1;
    min-width: 260px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.approach-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 0.07);
}

.approach-icon {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--accent-color), #343434);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 28px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.approach-item:hover .approach-icon {
    transform: rotate(360deg) scale(1.1);
}

.approach-item h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: inherit;
}

.approach-item p {
    font-size: 14px;
    line-height: 1.6;
}

/* Медиа-запросы */
@media (max-width: 768px) {
    .certificate {
        width: calc(50% - 10px);
    }
    
    .approach-item {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .certificate-gallery {
        justify-content: center;
    }
    
    .certificate {
        width: 100%;
        max-width: 250px;
    }
}
