 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        :root {
            --primary: #1a237e;
            --secondary: #c62828;
            --accent: #ff9800;
            --light: #f5f5f5;
            --dark: #212121;
            --gray: #757575;
            --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            --transition: all 0.4s ease;
        }
        


        
.certificates-container {
    max-width: 1200px;
    margin-top: 120px;
    margin-right: auto;
    margin-bottom: 0;
    margin-left: auto;
    z-index: 1;
}
        
        /* Заголовок */
        .page-header {
            margin-top: 80px;
            text-align: center;
            margin-bottom: 60px;
            padding: 40px;
            background: white;
            border-radius: 20px;
            box-shadow: var(--shadow);
            position: relative;
            overflow: hidden;
        }
        
        .page-header:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
        }
        
        .page-title {
            font-size: 2.8rem;
            color: var(--primary);
            margin-bottom: 15px;
            position: relative;
            display: inline-block;
        }
        
        .page-title:after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 4px;
            background: var(--accent);
            border-radius: 2px;
        }
        
        .page-subtitle {
            font-size: 1.2rem;
            color: var(--gray);
            max-width: 600px;
            margin: 25px auto 0;
            line-height: 1.6;
        }
        
        /* Основной контент */
        .certificates-section {
            background: white;
            border-radius: 20px;
            padding: 50px;
            box-shadow: var(--shadow);
            margin-bottom: 40px;
        }
        
        .section-title {
            font-size: 2.2rem;
            color: var(--primary);
            margin-bottom: 40px;
            text-align: center;
            position: relative;
            padding-bottom: 15px;
        }
        
        .section-title:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background: var(--accent);
        }
        
        /* Сетка дипломов и сертификатов */
        .certificates-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 40px;
        }
        
        /* Дипломы */
        .diplomas-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 30px;
        }
        
        .diploma-container {
            grid-column: span 1;
        }
        
        /* Сертификаты */
        .certificates-small-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 30px;
        }
        
        .certificate-container {
            grid-column: span 1;
        }
        
        /* Общие стили для окон */
        .certificate-window {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            border: 1px solid rgba(0, 0, 0, 0.05);
            height: 100%;
        }
        
        .certificate-window:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        }
        
        /* Окно диплома */
        .diploma-window {
            height: 420px;
            position: relative;
            border: ;
        }
        

        .diploma-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    z-index: 2;
    position: relative;
    border: 2px solid var(--primary);
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

        .certificat-image {
            width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    z-index: 2;
    position: relative;
    border: 2px solid var(--primary);
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        /* Окно сертификата */
        .certificate-window-small {
            height: 350px;
        }
        
        .certificate-preview {
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 25px;
            position: relative;
            overflow: hidden;
        }
        
        .certificate-preview:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(circle at 30% 30%, rgba(255, 152, 0, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(26, 35, 126, 0.1) 0%, transparent 50%);
        }
        
        .certificate-icon {
            font-size: 3rem;
            color: var(--accent);
            margin-bottom: 20px;
            z-index: 2;
            position: relative;
        }
        
        .certificate-title {
            font-size: 1.3rem;
            color: var(--dark);
            font-weight: 600;
            text-align: center;
            margin-bottom: 10px;
            z-index: 2;
            position: relative;
        }
        
        .certificate-text {
            color: var(--gray);
            text-align: center;
            line-height: 1.6;
            z-index: 2;
            position: relative;
            max-width: 220px;
            font-size: 0.95rem;
        }
        
        .certificate-corner {
            position: absolute;
            width: 30px;
            height: 30px;
            border: 2px solid var(--accent);
        }
        
        .corner-tl {
            top: 15px;
            left: 15px;
            border-right: none;
            border-bottom: none;
        }
        
        .corner-tr {
            top: 15px;
            right: 15px;
            border-left: none;
            border-bottom: none;
        }
        
        .corner-bl {
            bottom: 15px;
            left: 15px;
            border-right: none;
            border-top: none;
        }
        
        .corner-br {
            bottom: 15px;
            right: 15px;
            border-left: none;
            border-top: none;
        }
        
        .certificate-stamp {
            position: absolute;
            bottom: 15px;
            right: 15px;
            width: 50px;
            height: 50px;
            background: var(--primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.2rem;
            z-index: 3;
            box-shadow: 0 3px 10px rgba(26, 35, 126, 0.3);
        }
        
        /* Подписи */
        .certificate-label {
            text-align: center;
            margin-top: 15px;
            font-weight: 600;
            color: var(--dark);
            font-size: 1.1rem;
        }
        
        /* Адаптивность */
        @media (max-width: 1100px) {
            .certificates-grid {
                grid-template-columns: 1fr;
                gap: 50px;
            }
            
            .diplomas-grid,
            .certificates-small-grid {
                gap: 25px;
            }
        }
        
        @media (max-width: 768px) {
            
            .page-header {
                padding: 30px 20px;
                margin-bottom: 40px;
            }
            
            .page-title {
                font-size: 2.2rem;
            }
            
            .page-subtitle {
                font-size: 1.1rem;
            }
            
            .certificates-section {
                padding: 30px 20px;
            }
            
            .section-title {
                font-size: 1.8rem;
                margin-bottom: 30px;
            }
            
            .diplomas-grid,
            .certificates-small-grid {
                grid-template-columns: 1fr;
                gap: 30px;
            }
            
            .diploma-container,
            .certificate-container {
                grid-column: span 1;
            }
            
            .diploma-window {
                height: 380px;
            }
            
            .certificate-window-small {
                height: 320px;
            }
        }
        
        @media (max-width: 480px) {
            .page-header {
                padding: 25px 15px;
            }
            
            .page-title {
                font-size: 1.8rem;
            }
            
            .page-subtitle {
                font-size: 1rem;
            }
            
            .certificates-section {
                padding: 25px 15px;
            }
            
            .diploma-window {
                height: 340px;
            }
            
            .diploma-title {
                font-size: 1.3rem;
            }
            
            .diploma-icon {
                font-size: 3.5rem;
            }
            
            .certificate-window-small {
                height: 300px;
            }
            
            .certificate-title {
                font-size: 1.2rem;
            }
            
            .certificate-icon {
                font-size: 2.5rem;
            }
        }
        
        /* Анимация */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .certificate-window {
            animation: fadeIn 0.6s ease-out;
        }
        
        .diploma-container:nth-child(1) .certificate-window {
            animation-delay: 0.1s;
        }
        
        .diploma-container:nth-child(2) .certificate-window {
            animation-delay: 0.2s;
        }
        
        .certificate-container:nth-child(1) .certificate-window {
            animation-delay: 0.3s;
        }
        
        .certificate-container:nth-child(2) .certificate-window {
            animation-delay: 0.4s;
        }