/* Оформление «NSK» — вёрстка 1-в-1 с исходной визиткой CRYSTAL NSK.
   Цвета — переменные: app.js подставляет их из «Тексты и бренд». */
:root {
    --bg1: #667eea;
    --bg2: #764ba2;
    --btn1: #667eea;
    --btn2: #764ba2;
    --btn-text: #ffffff;
    --card: rgba(255, 255, 255, 0.95);
    --title: #2c3e50;
    --name: #34495e;
    --desc: #7f8c8d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, var(--bg1) 0%, var(--bg2) 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.card {
    background: var(--card);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 600px;
    animation: fadeIn 1s ease-in;
}

.logo {
    width: 250px;
    height: 250px;
    border-radius: 20px;
    object-fit: cover;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--title);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.name {
    font-size: 1.8rem;
    color: var(--name);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.description {
    font-size: 1.1rem;
    color: var(--desc);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto 2rem;
}

[hidden] {
    display: none !important;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 400px;
    max-width: 100%;
    min-height: 50px;
    padding: 6px 12px;
    border-radius: 5%;
    background: linear-gradient(45deg, var(--btn1), var(--btn2));
    color: var(--btn-text);
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, var(--btn2), var(--btn1));
}

.social-link:active {
    transform: scale(0.95);
}

.social-link::before {
    content: '🔗';
    font-size: 1.2rem;
}

.social-link img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    object-fit: cover;
    margin: 5px;
    flex-shrink: 0;
}

/* подвал — в исходнике его нет, появляется только если заполнить в боте */
.foot {
    margin-top: 2rem;
    color: var(--desc);
    font-size: 0.9rem;
}

.foot__links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    margin: 0.5rem 0;
}

.foot__links a {
    color: var(--name);
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .card {
        padding: 2rem;
    }

    .logo {
        width: 200px;
        height: 200px;
    }

    .title {
        font-size: 2rem;
    }

    .name {
        font-size: 1.5rem;
    }

    .description {
        font-size: 1rem;
    }

    .social-links {
        gap: 0.8rem;
    }

    .social-link img {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 150px;
        height: 150px;
    }

    .title {
        font-size: 1.8rem;
    }

    .name {
        font-size: 1.3rem;
    }

    .social-link {
        width: 250px;
        min-height: 35px;
    }

    .social-link img {
        width: 18px;
        height: 18px;
    }
}

.fade-in {
    animation: fadeIn 1s ease-in both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
