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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    height: 100vh;
    overflow: hidden;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("IMG_0433.JPG") no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(34, 197, 94, 0.1) 0%, transparent 50%);
}


.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
}

.card {
    background: rgba(30, 30, 46, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 46px 35px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    text-align: center;
    animation: cardAppear 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

@keyframes cardAppear {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.avatar-section {
    margin-bottom: 35px;
}

.avatar {
    width: 115px;
    height: 115px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 0 4px rgba(59, 130, 246, 0.3);
    animation: avatarPulse 2s ease-in-out infinite;
    position: relative;
}

.avatar::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    border-radius: 50%;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6, #10b981, #3b82f6);
    z-index: -1;
    animation: avatarBorder 3s linear infinite;
}

@keyframes avatarPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes avatarBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.content {
    margin-bottom: 46px;
}

.content h1 {
    font-size: 28px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 12px;
    line-height: 1.3;
}

.content p {
    font-size: 18px;
    color: #cbd5e1;
    line-height: 1.5;
    max-width: 320px;
    margin: 0 auto;
}

.button-section {
    position: relative;
}

.telegram-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    text-decoration: none;
    padding: 18px 37px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 20px rgba(59, 130, 246, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.telegram-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.telegram-button:hover::before {
    left: 100%;
}

.telegram-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 30px rgba(59, 130, 246, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.telegram-button:active {
    transform: translateY(0);
}

.telegram-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Адаптивность */
@media (max-width: 480px) {
    .background {
        padding: 15px;
    }
    
    .card {
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .avatar {
        width: 80px;
        height: 80px;
    }
    
    .content h1 {
        font-size: 20px;
    }
    
    .content p {
        font-size: 14px;
    }
    
    .telegram-button {
        padding: 14px 28px;
        font-size: 15px;
    }
}

@media (max-width: 320px) {
    .card {
        padding: 25px 15px;
    }
    
    .content h1 {
        font-size: 18px;
    }
    
    .telegram-button {
        padding: 12px 24px;
        font-size: 14px;
    }
}