/* ===== СТИЛИ СТРАНИЦЫ "ССЫЛКИ НА ПРОЕКТЫ" ===== */

.projects-hero {
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    color: white;
    border-radius: 25px;
    padding: 50px 40px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.4);
    animation: slideDown 0.6s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 42px;
    font-weight: bold;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.95;
    margin: 0;
}

.links-category {
    background: white;
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.6s ease;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.links-category:nth-child(2) { animation-delay: 0.1s; }
.links-category:nth-child(3) { animation-delay: 0.2s; }
.links-category:nth-child(4) { animation-delay: 0.3s; }
.links-category:nth-child(5) { animation-delay: 0.4s; }
.links-category:nth-child(6) { animation-delay: 0.5s; }

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 3px solid #f5f3ff;
}

.category-icon {
    font-size: 36px;
    min-width: 36px;
}

.category-title {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.link-card {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border-radius: 15px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.link-card:hover::before {
    opacity: 1;
}

.link-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.3);
    border-color: #8B5CF6;
}

.link-card:hover .link-name,
.link-card:hover .link-url {
    color: white;
    position: relative;
    z-index: 1;
}

.link-card:hover .link-icon {
    transform: scale(1.1) rotate(5deg);
}

.link-name {
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
    margin: 0;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.link-url {
    font-size: 14px;
    color: #6B7280;
    word-break: break-all;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.link-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    opacity: 0.6;
    transition: all 0.3s ease;
    z-index: 1;
}

.contact-section {
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    color: white;
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.contact-title {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin: 0 0 30px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: translateY(-5px);
    border-color: #8B5CF6;
}

.contact-number {
    display: inline-block;
    background: #8B5CF6;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    margin-bottom: 15px;
}

.contact-topic {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #f5f3ff;
}

.contact-handle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 92, 246, 0.3);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.contact-handle:hover {
    background: #8B5CF6;
    transform: scale(1.05);
}

.warning-note {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    color: #92400E;
    border-radius: 15px;
    padding: 20px 25px;
    margin-top: 20px;
    border-left: 5px solid #F59E0B;
    font-size: 15px;
    line-height: 1.6;
}

.warning-icon {
    font-size: 20px;
    margin-right: 10px;
}

/* Адаптивность */
@media screen and (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .projects-hero {
        padding: 35px 25px;
    }
    
    .links-category {
        padding: 25px 20px;
    }
    
    .category-title {
        font-size: 24px;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-section {
        padding: 30px 20px;
    }
    
    .contact-title {
        font-size: 26px;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 26px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
    }
    
    .category-title {
        font-size: 22px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
