.tiktok-center {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.tiktok-img-center {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block;
}
/* Основные стили для проекта НУК Студентські соціальні мережі */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.header-section {
    margin-bottom: 40px;
}
.university-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(30, 58, 138, 0.3);
    border: 3px solid #1e3a8a;
    overflow: hidden;
}
.logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}
.university-name {
    font-size: 24px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 8px;
    line-height: 1.3;
}
.university-short {
    font-size: 32px;
    font-weight: 800;
    color: #3b82f6;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}
.description {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 30px;
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}
.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 30px;
    justify-items: center;
    align-items: center;
}

/* Удалено правило для TikTok, все карточки одного размера */

.social-card {
    background: white;
    border-radius: 20px;
    padding: 25px 20px;
    text-decoration: none;
    color: #2d3748;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s;
}
.social-card:hover::before {
    left: 100%;
}
.social-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.2);
    border-color: #3b82f6;
}
.social-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.telegram { background: linear-gradient(45deg, #0088cc, #229ed9); }
.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.tiktok { background: linear-gradient(45deg, #000000, #ff0050); }
.telegram-group { background: linear-gradient(45deg, #0088cc, #64b5f6); }
.social-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1e3a8a;
}
.social-description {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 15px;
    line-height: 1.4;
}
.qr-code {
    width: 80px;
    height: 80px;
    background: #f8fafc;
    border-radius: 12px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}
.qr-code:hover {
    background: #1e3a8a;
    color: white;
    transform: scale(1.1);
}
.footer-section {
    border-top: 2px solid #e5e7eb;
    padding-top: 30px;
}
.footer-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 15px;
}
.university-info {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
}
.university-founded {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}
.university-motto {
    font-style: italic;
    font-size: 16px;
    font-weight: 600;
}
.pulse {
    animation: pulse 3s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 15px 40px rgba(30, 58, 138, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 20px 50px rgba(30, 58, 138, 0.4); }
    100% { transform: scale(1); box-shadow: 0 15px 40px rgba(30, 58, 138, 0.3); }
}
@media (max-width: 768px) {
    .container {
        padding: 18px 6px;
        margin: 4px;
        border-radius: 16px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }
    .social-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .social-card {
        padding: 18px 10px;
        border-radius: 14px;
        margin-bottom: 8px;
    }
    .university-logo {
        width: 80px;
        height: 80px;
    }
    .logo-img {
        width: 65px;
        height: 65px;
    }
    .university-name {
        font-size: 17px;
    }
    .university-short {
        font-size: 22px;
    }
    .footer-section {
        padding-top: 18px;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 8px 2px;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.10);
    }
    .social-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 0 4px;
    }
    .social-card {
        padding: 18px 10px;
        border-radius: 18px;
        margin-bottom: 0;
        box-shadow: 0 4px 18px rgba(30,58,138,0.10), 0 1.5px 6px rgba(59,130,246,0.08);
        border: 2px solid #e5e7eb;
        transition: box-shadow 0.3s, transform 0.3s;
        width: 95vw;
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .social-card:active, .social-card:focus {
        box-shadow: 0 8px 24px rgba(30,58,138,0.18);
        transform: scale(0.98);
    }
    .social-card img {
        width: 70px !important;
        height: 70px !important;
        border-radius: 14px !important;
        margin-bottom: 10px !important;
    }
    .social-name {
        font-size: 15px;
        font-weight: 700;
        margin-bottom: 6px;
        color: #1e3a8a;
    }
    .social-description {
        font-size: 13px;
        color: #6b7280;
        margin-bottom: 0;
        line-height: 1.5;
    }
    .university-logo {
        width: 60px;
        height: 60px;
    }
    .logo-img {
        width: 45px;
        height: 45px;
    }
    .university-name {
        font-size: 14px;
    }
    .footer-section {
        padding-top: 10px;
    }
}
