:root {
    --bg: #050505;
    --card: #141414;
    --text: #ececec;
    --accent: #00e5ff; /* Cyan Neon */
    --accent-dim: rgba(0, 229, 255, 0.1);
    --border: #333;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    margin: 0;
    line-height: 1.6;
}

/* Loader */
#loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg); z-index: 9999;
    display: flex; justify-content: center; align-items: center;
}
.spinner {
    width: 40px; height: 40px; border: 4px solid #333;
    border-top: 4px solid var(--accent); border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Layout */
.container { max-width: 900px; margin: 0 auto; padding: 20px; }
.hidden { display: none !important; }

/* Nav */
nav {
    display: flex; justify-content: space-between; padding: 20px;
    background: rgba(5,5,5,0.9); backdrop-filter: blur(10px);
    position: fixed; top: 0; width: 100%; z-index: 100;
    box-sizing: border-box;
    border-bottom: 1px solid #222;
}
.logo { font-weight: 900; font-size: 24px; color: var(--accent); letter-spacing: -1px; }
.lang-selector { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #888; }

/* Hero */
.hero {
    min-height: 90vh; display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative; padding-top: 60px;
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #050505 80%);
}

.photo-wrapper img {
    width: 160px; height: 160px; border-radius: 50%;
    border: 3px solid var(--accent); object-fit: cover;
    box-shadow: 0 0 30px var(--accent-dim);
    transition: transform 0.5s;
}
.photo-wrapper img:hover { transform: scale(1.05); }

h1 { font-size: 3rem; margin: 15px 0 5px; background: linear-gradient(45deg, #fff, #888); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.subtitle { color: #888; margin-bottom: 15px; font-size: 1.1rem; }
.code-badge { background: #222; color: var(--accent); padding: 5px 15px; border-radius: 20px; font-family: monospace; font-size: 0.9rem; display: inline-block; }

/* Hero Contacts */
.hero-contacts { margin-top: 30px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.contact-item a, .contact-item span {
    color: var(--text); text-decoration: none; font-size: 1.1rem;
    display: flex; align-items: center; gap: 10px;
    transition: 0.3s;
}
.contact-item a:hover { color: var(--accent); }

/* Эффект тумана для телефона */
.blur-text {
    filter: blur(8px);
    user-select: none;
    cursor: pointer;
    background: #222;
    padding: 0 10px;
    border-radius: 4px;
    transition: 0.5s ease;
}
.contact-item.revealed .blur-text {
    filter: blur(0);
    background: transparent;
    user-select: text;
    cursor: text;
    color: var(--accent);
}

/* Socials */
.social-icons { margin-top: 20px; display: flex; gap: 20px; justify-content: center; }
.social-icons a { color: #666; font-size: 24px; transition: 0.3s; }
.social-icons a:hover { color: var(--accent); transform: translateY(-3px); }

/* Forms */
input, textarea {
    width: 100%; padding: 14px; background: #111; border: 1px solid #333;
    color: #fff; border-radius: 8px; margin-bottom: 15px;
    font-family: inherit; box-sizing: border-box;
}
input:focus, textarea:focus { border-color: var(--accent); outline: none; }
button {
    background: var(--accent); color: #000; border: none; padding: 14px 30px;
    border-radius: 8px; font-weight: bold; cursor: pointer; transition: 0.3s;
    width: 100%; font-size: 1rem;
}
button:hover { background: #fff; box-shadow: 0 0 20px rgba(255,255,255,0.2); }

/* Legal */
.legal-box { background: #111; padding: 20px; border-left: 3px solid var(--accent); margin-bottom: 40px; }
.legal-box h3 { margin-top: 0; color: #888; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

/* Chat */
.chat-widget { position: fixed; bottom: 30px; right: 30px; z-index: 90; }
#chat-btn { width: 60px; height: 60px; border-radius: 50%; font-size: 24px; box-shadow: 0 5px 20px rgba(0,0,0,0.5); }

.chat-window {
    position: fixed; bottom: 100px; right: 30px; width: 320px; height: 450px;
    background: #1a1a1a; border: 1px solid #333; border-radius: 12px;
    display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    z-index: 91;
}
.chat-header {
    background: #222; padding: 15px; display: flex; justify-content: space-between;
    font-weight: bold; border-bottom: 1px solid #333;
}
#chat-start-form { padding: 20px; display: flex; flex-direction: column; height: 100%; justify-content: center; }

#chat-dialog { flex: 1; display: flex; flex-direction: column; }
.messages-area { flex: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.input-area { padding: 10px; border-top: 1px solid #333; display: flex; }
.input-area input { margin: 0; border-radius: 4px 0 0 4px; }
.input-area button { width: 50px; border-radius: 0 4px 4px 0; padding: 0; }

.msg { max-width: 80%; padding: 8px 12px; border-radius: 8px; font-size: 0.9rem; }
.msg.user { align-self: flex-end; background: var(--accent); color: #000; }
.msg.admin { align-self: flex-start; background: #333; color: #fff; }

/* Mobile */
@media (max-width: 600px) {
    .hero { padding-top: 80px; }
    h1 { font-size: 2rem; }
    .chat-window { right: 0; bottom: 0; width: 100%; height: 60%; border-radius: 12px 12px 0 0; }
}
.honeypot { display: none; }