/* ═══════════════════════════════════════════
   БАЗОВЫЕ СТИЛИ
   ═══════════════════════════════════════════ */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: none;
}

*::-webkit-scrollbar {
    display: none;
}

html,
body {
    min-height: 100vh;
    height: 100%;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #0a0a0f;
    color: #fff;
    overflow: hidden;
    position: relative;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    cursor: none !important;
}

/* ═══════════════════════════════════════════
   ПОДСКАЗКА ДЛЯ КНОПОК СПРАВА
   ═══════════════════════════════════════════ */
.controls-hint {
    position: fixed;
    right: 72px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    animation: hintBounce 1.5s ease-in-out infinite;
}

.controls-hint .hint-text {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.08);
    letter-spacing: 0.5px;
    writing-mode: vertical-rl;
    text-transform: uppercase;
}

.controls-hint .hint-arrow {
    font-size: 18px;
    color: rgba(168, 85, 247, 0.15);
    animation: hintArrow 1.5s ease-in-out infinite;
}

@keyframes hintBounce {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(-6px); }
}

@keyframes hintArrow {
    0%, 100% { opacity: 0.2; transform: translateX(0); }
    50% { opacity: 0.8; transform: translateX(-4px); }
}

@media (max-width: 768px) {
    .controls-hint {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════
   КАСТОМНЫЙ КУРСОР (БЕЗ УВЕЛИЧЕНИЯ)
   ═══════════════════════════════════════════ */
.custom-cursor {
    position: fixed;
    width: 24px;
    height: 24px;
    border: 2.5px solid rgba(168, 85, 247, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.15s ease, height 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    mix-blend-mode: difference;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.15);
    will-change: transform, width, height;
    background: rgba(168, 85, 247, 0.05);
}

.custom-cursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: rgba(168, 85, 247, 0.7);
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* ❌ УБИРАЕМ УВЕЛИЧЕНИЕ КУРСОРА */
.custom-cursor.hover {
    width: 24px !important;
    height: 24px !important;
    border-color: rgba(168, 85, 247, 0.6) !important;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.15) !important;
    background: rgba(168, 85, 247, 0.05) !important;
}

.custom-cursor.hover::after {
    width: 4px !important;
    height: 4px !important;
    background: rgba(168, 85, 247, 0.7) !important;
}

/* VK - #0077FF */
.custom-cursor.social-vk {
    border-color: #0077FF !important;
    box-shadow: 0 0 35px rgba(0, 119, 255, 0.35) !important;
    background: rgba(0, 119, 255, 0.08) !important;
}
.custom-cursor.social-vk::after {
    background: #0077FF !important;
}

/* Telegram - #27A7E7 */
.custom-cursor.social-telegram {
    border-color: #27A7E7 !important;
    box-shadow: 0 0 35px rgba(39, 167, 231, 0.35) !important;
    background: rgba(39, 167, 231, 0.08) !important;
}
.custom-cursor.social-telegram::after {
    background: #27A7E7 !important;
}

.custom-cursor.social-github {
    border-color: #f0f6fc !important;
    box-shadow: 0 0 35px rgba(240, 246, 252, 0.25) !important;
    background: rgba(240, 246, 252, 0.05) !important;
}
.custom-cursor.social-github::after {
    background: #f0f6fc !important;
}

.custom-cursor.social-discord {
    border-color: #5865f2 !important;
    box-shadow: 0 0 35px rgba(88, 101, 242, 0.35) !important;
    background: rgba(88, 101, 242, 0.08) !important;
}
.custom-cursor.social-discord::after {
    background: #5865f2 !important;
}

/* Email - #f59e0b */
.custom-cursor.social-email {
    border-color: #f59e0b !important;
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.35) !important;
    background: rgba(245, 158, 11, 0.08) !important;
}
.custom-cursor.social-email::after {
    background: #f59e0b !important;
}

/* Сертификаты - только цвет, без увеличения */
.custom-cursor.cert-html {
    border-color: #e44d26 !important;
    box-shadow: 0 0 35px rgba(228, 77, 38, 0.35) !important;
    background: rgba(228, 77, 38, 0.08) !important;
}
.custom-cursor.cert-html::after {
    background: #e44d26 !important;
}

.custom-cursor.cert-css {
    border-color: #264de4 !important;
    box-shadow: 0 0 35px rgba(38, 77, 228, 0.35) !important;
    background: rgba(38, 77, 228, 0.08) !important;
}
.custom-cursor.cert-css::after {
    background: #264de4 !important;
}

.custom-cursor.cert-js {
    border-color: #f7df1e !important;
    box-shadow: 0 0 35px rgba(247, 223, 30, 0.35) !important;
    background: rgba(247, 223, 30, 0.08) !important;
}
.custom-cursor.cert-js::after {
    background: #f7df1e !important;
}

.custom-cursor.cert-kwork {
    border-color: #f59e0b !important;
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.35) !important;
    background: rgba(245, 158, 11, 0.08) !important;
}
.custom-cursor.cert-kwork::after {
    background: #f59e0b !important;
}

/* Донаты */
.custom-cursor.donate-donationalerts {
    border-color: #F57507 !important;
    box-shadow: 0 0 35px rgba(245, 117, 7, 0.35) !important;
    background: rgba(245, 117, 7, 0.08) !important;
}
.custom-cursor.donate-donationalerts::after {
    background: #F57507 !important;
}

.custom-cursor.donate-boosty {
    border-color: #F15F2C !important;
    box-shadow: 0 0 35px rgba(241, 95, 44, 0.35) !important;
    background: rgba(241, 95, 44, 0.08) !important;
}
.custom-cursor.donate-boosty::after {
    background: #F15F2C !important;
}

.custom-cursor.donate-donatepay {
    border-color: #44AB4F !important;
    box-shadow: 0 0 35px rgba(68, 171, 79, 0.35) !important;
    background: rgba(68, 171, 79, 0.08) !important;
}
.custom-cursor.donate-donatepay::after {
    background: #44AB4F !important;
}

@media (max-width: 768px) {
    .custom-cursor {
        display: none !important;
    }
    body {
        cursor: auto !important;
    }
    button,
    a,
    .donate-btn,
    .social-link,
    .controls .btn {
        cursor: pointer !important;
    }
}

/* ═══════════════════════════════════════════
   КАНВАС (фон)
   ═══════════════════════════════════════════ */
#galaxyCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
    transition: opacity 0.8s ease;
}

/* ═══════════════════════════════════════════
   THREE.JS КОНТЕЙНЕР
   ═══════════════════════════════════════════ */
#threeContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

#threeContainer.active {
    opacity: 0.5;
}

/* ═══════════════════════════════════════════
   КНОПКИ УПРАВЛЕНИЯ
   ═══════════════════════════════════════════ */
.controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.controls .btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.7);
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: all 0.3s ease;
    position: relative;
}

.controls .btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.05);
    color: #fff;
}

.controls .btn .tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) scale(0.8);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    color: #fff;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.controls .btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
}

.controls .btn .tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.85);
}

@media (max-width: 480px) {
    .controls .btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    .controls {
        top: 10px;
        right: 10px;
        gap: 5px;
    }
    .controls .btn .tooltip {
        display: none;
    }
}

/* ═══════════════════════════════════════════
   КАРТОЧКА (ПОЛНОСТЬЮ СТАТИЧНАЯ)
   ═══════════════════════════════════════════ */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    flex-shrink: 0;
    margin-bottom: 60px;
}

.card {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    padding: 18px 20px 16px;
    max-height: calc(100vh - 100px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform-style: flat;
    will-change: auto;
    transition: none;
}

.card:hover {
    transform: none !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.card::-webkit-scrollbar {
    display: none;
}

/* ═══════════════════════════════════════════
   АВАТАР (С ЭФФЕКТОМ)
   ═══════════════════════════════════════════ */
.avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 12px;
}

.avatar-3d {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.avatar-3d:hover {
    transform: scale(1.05);
}

.avatar-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: conic-gradient(from 0deg, #a855f7, #06b6d4, #a855f7, #06b6d4) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: spinRing 4s linear infinite;
    pointer-events: none;
}

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

.avatar-3d img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
    transition: box-shadow 0.3s ease;
}

.avatar-3d:hover img {
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.15);
}

/* ═══════════════════════════════════════════
   ИМЯ И ПЕЧАТАЮЩАЯ МАШИНКА
   ═══════════════════════════════════════════ */
.name {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 30%, #a78bfa, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2px;
}

.typing-wrapper {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    overflow: hidden;
}

.typing-wrapper #typingText {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.typing-wrapper .cursor-blink {
    display: inline-block;
    width: 2px;
    height: 12px;
    background: rgba(168, 85, 247, 0.6);
    margin-left: 2px;
    animation: blink 0.8s step-end infinite;
    flex-shrink: 0;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ═══════════════════════════════════════════
   СТАТИСТИКА (С ЭФФЕКТОМ)
   ═══════════════════════════════════════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 14px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 10px 6px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.04);
    cursor: none;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #a855f7, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════
   СОЦИАЛЬНЫЕ СЕТИ (С ЭФФЕКТОМ)
   ═══════════════════════════════════════════ */
.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.social-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    text-decoration: none;
    cursor: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-link:hover {
    transform: translateY(-6px) scale(1.1);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.social-link .tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    white-space: nowrap;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.social-link .tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.85);
}

.social-link:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

/* VK - #0077FF */
.social-link[data-social="vk"]:hover {
    border-color: #0077FF !important;
    box-shadow: 0 8px 25px -8px #0077FF !important;
}
.social-link[data-social="vk"] .tooltip {
    border-color: #0077FF !important;
}
.social-link[data-social="vk"] .tooltip::after {
    border-top-color: #0077FF !important;
}

/* Telegram - #27A7E7 */
.social-link[data-social="telegram"]:hover {
    border-color: #27A7E7 !important;
    box-shadow: 0 8px 25px -8px #27A7E7 !important;
}
.social-link[data-social="telegram"] .tooltip {
    border-color: #27A7E7 !important;
}
.social-link[data-social="telegram"] .tooltip::after {
    border-top-color: #27A7E7 !important;
}

.social-link[data-social="github"]:hover {
    border-color: #f0f6fc !important;
    box-shadow: 0 8px 25px -8px rgba(240, 246, 252, 0.2) !important;
}
.social-link[data-social="github"] .tooltip {
    border-color: #f0f6fc !important;
}
.social-link[data-social="github"] .tooltip::after {
    border-top-color: #f0f6fc !important;
}

.social-link[data-social="discord"]:hover {
    border-color: #5865f2 !important;
    box-shadow: 0 8px 25px -8px #5865f2 !important;
}
.social-link[data-social="discord"] .tooltip {
    border-color: #5865f2 !important;
}
.social-link[data-social="discord"] .tooltip::after {
    border-top-color: #5865f2 !important;
}

/* ═══════════════════════════════════════════
   QR-КОД
   ═══════════════════════════════════════════ */
.qr-container {
    display: none;
    flex-direction: column;
    align-items: center;
    margin-bottom: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.qr-container.active {
    display: flex;
}

.qr-wrapper {
    background: #ffffff;
    padding: 10px;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.qr-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: conic-gradient(from 0deg, #a855f7, #06b6d4, #a855f7, #06b6d4);
    z-index: -1;
    animation: qrGlow 4s linear infinite;
    opacity: 0.5;
}

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

#qrCanvasWrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

#qrCanvasWrapper canvas,
#qrCanvasWrapper img {
    display: block !important;
    width: 120px !important;
    height: 120px !important;
    border-radius: 8px;
    image-rendering: pixelated;
}

.qr-wrapper .qr-center-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    z-index: 2;
}

.qr-wrapper .qr-center-icon i {
    font-size: 14px;
    color: #a855f7;
}

.qr-label {
    margin-top: 10px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.5px;
    font-weight: 400;
}

@media (max-width: 480px) {
    .qr-wrapper {
        padding: 8px;
        border-radius: 12px;
    }
    #qrCanvasWrapper {
        width: 90px;
        height: 90px;
        border-radius: 6px;
    }
    #qrCanvasWrapper canvas,
    #qrCanvasWrapper img {
        width: 90px !important;
        height: 90px !important;
        border-radius: 6px;
    }
    .qr-wrapper .qr-center-icon {
        width: 20px;
        height: 20px;
    }
    .qr-wrapper .qr-center-icon i {
        font-size: 11px;
    }
    .qr-label {
        font-size: 10px;
        margin-top: 8px;
    }
}

@media (max-width: 380px) {
    .qr-wrapper {
        padding: 6px;
        border-radius: 10px;
    }
    #qrCanvasWrapper {
        width: 70px;
        height: 70px;
    }
    #qrCanvasWrapper canvas,
    #qrCanvasWrapper img {
        width: 70px !important;
        height: 70px !important;
    }
    .qr-wrapper .qr-center-icon {
        width: 16px;
        height: 16px;
    }
    .qr-wrapper .qr-center-icon i {
        font-size: 10px;
    }
}

/* ═══════════════════════════════════════════
   КОНТАКТЫ (С ЭФФЕКТОМ)
   ═══════════════════════════════════════════ */
.contact-section {
    margin: 14px 0 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.contact-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.3px;
    font-weight: 500;
    margin-bottom: 10px;
}

.contact-header i {
    color: #a855f7;
    font-size: 14px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.4);
    cursor: none;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.06);
}

.contact-btn i {
    font-size: 15px;
}

.contact-btn .badge {
    font-size: 8px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.2);
}

/* VK - #0077FF */
.contact-btn.vk:hover {
    border-color: #0077FF !important;
}
.contact-btn.vk:hover i {
    color: #0077FF !important;
}
.contact-btn.vk:hover .badge {
    background: rgba(0, 119, 255, 0.1) !important;
    color: #0077FF !important;
}

/* Telegram - #27A7E7 */
.contact-btn.telegram:hover {
    border-color: #27A7E7 !important;
}
.contact-btn.telegram:hover i {
    color: #27A7E7 !important;
}
.contact-btn.telegram:hover .badge {
    background: rgba(39, 167, 231, 0.1) !important;
    color: #27A7E7 !important;
}

.contact-btn.email:hover {
    border-color: #f59e0b !important;
}
.contact-btn.email:hover i {
    color: #f59e0b !important;
}
.contact-btn.email:hover .badge {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #f59e0b !important;
}

@media (max-width: 480px) {
    .contact-btn {
        padding: 6px 14px;
        font-size: 11px;
    }
    .contact-btn i {
        font-size: 13px;
    }
    .contact-links {
        gap: 8px;
    }
}

/* ═══════════════════════════════════════════
   СЕРТИФИКАТЫ
   ═══════════════════════════════════════════ */
.certificates-section {
    margin: 14px 0 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.certificates-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
    font-weight: 500;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.cert-count {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.2);
    font-size: 9px;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 20px;
    letter-spacing: 0;
}

.certificates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.cert-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    cursor: none;
    transition: all 0.3s ease;
    position: relative;
}

.cert-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.cert-card.html-card:hover {
    border-color: #e44d26 !important;
    box-shadow: 0 8px 25px -8px rgba(228, 77, 38, 0.15);
}
.cert-card.css-card:hover {
    border-color: #264de4 !important;
    box-shadow: 0 8px 25px -8px rgba(38, 77, 228, 0.15);
}
.cert-card.js-card:hover {
    border-color: #f7df1e !important;
    box-shadow: 0 8px 25px -8px rgba(247, 223, 30, 0.15);
}
.cert-card.kwork-card:hover {
    border-color: #f59e0b !important;
    box-shadow: 0 8px 25px -8px rgba(245, 158, 11, 0.15);
}

.cert-card.kwork {
    grid-column: span 2;
}

.cert-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.cert-card:hover .cert-icon {
    transform: scale(1.05);
}

.cert-icon.html {
    background: rgba(228, 77, 38, 0.08);
    color: #e44d26;
}
.cert-icon.css {
    background: rgba(38, 77, 228, 0.08);
    color: #264de4;
}
.cert-icon.js {
    background: rgba(247, 223, 30, 0.08);
    color: #f7df1e;
}

.cert-icon.kwork-icon {
    background: rgba(245, 158, 11, 0.08);
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kwork-custom-icon {
    width: 70%;
    height: 70%;
    object-fit: contain;
    display: block;
}

.cert-info {
    flex: 1;
    min-width: 0;
}

.cert-info .cert-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: -0.3px;
}

.cert-info .cert-meta {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.2);
    margin-top: 1px;
    letter-spacing: 0.3px;
}

.cert-arrow-btn {
    color: rgba(255, 255, 255, 0.06);
    font-size: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.cert-card:hover .cert-arrow-btn {
    color: rgba(255, 255, 255, 0.2);
    transform: translateX(2px);
}

.cert-footer {
    text-align: center;
    margin-top: 10px;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.06);
    letter-spacing: 0.5px;
}

@media (max-width: 480px) {
    .certificates-grid {
        gap: 6px;
    }
    .cert-card {
        padding: 10px 12px;
        gap: 10px;
    }
    .cert-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
        border-radius: 8px;
    }
    .cert-info .cert-name {
        font-size: 12px;
    }
    .cert-info .cert-meta {
        font-size: 8px;
    }
    .cert-arrow-btn {
        font-size: 10px;
    }
}

@media (max-width: 380px) {
    .cert-card {
        padding: 8px 10px;
        gap: 8px;
    }
    .cert-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
        border-radius: 6px;
    }
    .cert-info .cert-name {
        font-size: 11px;
    }
    .cert-info .cert-meta {
        font-size: 7px;
    }
    .cert-arrow-btn {
        font-size: 9px;
    }
}

/* ═══════════════════════════════════════════
   КНОПКИ ДОНАТОВ
   ═══════════════════════════════════════════ */
.donate-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 0;
}

.donate-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.donate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 11px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: none;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    white-space: nowrap;
}

.donate-btn--primary {
    background: linear-gradient(135deg, #F57507, #F59C07);
    color: #fff;
    border-color: rgba(245, 117, 7, 0.3);
    box-shadow: 0 4px 20px rgba(245, 117, 7, 0.15);
}

.donate-btn--primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 40px rgba(245, 117, 7, 0.35);
    border-color: #F57507;
}

.donate-btn--donatepay {
    background: #44AB4F;
    color: #fff;
    border-color: rgba(68, 171, 79, 0.3);
    box-shadow: 0 4px 20px rgba(68, 171, 79, 0.15);
}

.donate-btn--donatepay:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 40px rgba(68, 171, 79, 0.35);
    border-color: #44AB4F;
}

.donate-btn--boosty {
    background: #F15F2C;
    color: #fff;
    border-color: rgba(241, 95, 44, 0.3);
    box-shadow: 0 4px 20px rgba(241, 95, 44, 0.15);
}

.donate-btn--boosty:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 40px rgba(241, 95, 44, 0.35);
    border-color: #F15F2C;
}

.donate-btn--secondary {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.08);
}

.donate-btn--secondary:hover {
    transform: translateY(-3px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.donate-btn i {
    font-size: 13px;
}

@media (max-width: 480px) {
    .donate-btn {
        font-size: 10px;
        padding: 8px 4px;
        gap: 4px;
        border-radius: 10px;
    }
    .donate-btn i {
        font-size: 11px;
    }
    .donate-row {
        gap: 4px;
    }
    .donate-buttons {
        gap: 4px;
    }
}

@media (max-width: 380px) {
    .donate-btn {
        font-size: 9px;
        padding: 6px 4px;
        gap: 3px;
        border-radius: 8px;
    }
    .donate-btn i {
        font-size: 10px;
    }
}

/* ═══════════════════════════════════════════
   ПЛЕЕР С ГРОМКОСТЬЮ
   ═══════════════════════════════════════════ */
.player-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
    transition: all 0.3s ease;
}

.player-container:hover {
    background: rgba(255, 255, 255, 0.08);
}

.player-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    cursor: none;
    transition: all 0.3s ease;
    padding: 4px;
}

.player-btn:hover {
    color: #fff;
    transform: scale(1.1);
}

.player-track {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-volume {
    display: flex;
    align-items: center;
    gap: 6px;
}

.player-volume input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 50px;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    outline: none;
    cursor: none;
    transition: background 0.3s ease;
}

.player-volume input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #a855f7;
    cursor: none;
    transition: all 0.3s ease;
}

.player-volume input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #c084fc;
}

.player-volume input[type="range"]::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #a855f7;
    cursor: none;
    border: none;
}

.volume-value {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    min-width: 30px;
    text-align: center;
}

.player-visualizer {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 20px;
}

.player-visualizer .bar {
    width: 3px;
    background: linear-gradient(180deg, #a855f7, #06b6d4);
    border-radius: 2px;
    animation: visualizer 0.8s ease-in-out infinite alternate;
}

.player-visualizer .bar:nth-child(1) { height: 6px; animation-delay: 0s; }
.player-visualizer .bar:nth-child(2) { height: 12px; animation-delay: 0.15s; }
.player-visualizer .bar:nth-child(3) { height: 18px; animation-delay: 0.3s; }
.player-visualizer .bar:nth-child(4) { height: 10px; animation-delay: 0.45s; }
.player-visualizer .bar:nth-child(5) { height: 14px; animation-delay: 0.6s; }
.player-visualizer .bar:nth-child(6) { height: 8px; animation-delay: 0.75s; }

@keyframes visualizer {
    0% { transform: scaleY(0.3); opacity: 0.5; }
    100% { transform: scaleY(1); opacity: 1; }
}

.player-container.paused .player-visualizer .bar {
    animation: none !important;
    height: 6px !important;
    opacity: 0.3 !important;
}

@media (max-width: 480px) {
    .player-container {
        bottom: 12px;
        left: 12px;
        padding: 8px 10px;
        min-width: 140px;
        flex-wrap: wrap;
        gap: 6px;
    }
    .player-track {
        font-size: 10px;
        max-width: 50px;
    }
    .player-btn {
        font-size: 14px;
    }
    .player-volume input[type="range"] {
        width: 40px;
    }
    .volume-value {
        font-size: 9px;
        min-width: 24px;
    }
    .player-visualizer .bar {
        width: 2px;
    }
}

/* ═══════════════════════════════════════════
   ФУТЕР
   ═══════════════════════════════════════════ */
.site-footer {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.3px;
    line-height: 1.6;
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    white-space: nowrap;
    width: auto;
    max-width: 90%;
}

.site-footer .copy {
    color: rgba(255, 255, 255, 0.3);
}

.site-footer .dev {
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.3s ease;
}

.site-footer .dev:hover {
    color: rgba(168, 85, 247, 0.4);
}

.site-footer .license {
    color: rgba(255, 255, 255, 0.3);
}

.site-footer .sep {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 4px;
}

@media (max-width: 480px) {
    .site-footer {
        font-size: 10px;
        padding: 6px 14px;
        bottom: 8px;
        white-space: normal;
        line-height: 1.5;
        max-width: 95%;
        border-radius: 14px;
    }
}

@media (max-width: 380px) {
    .site-footer {
        font-size: 9px;
        padding: 4px 12px;
    }
}

/* ═══════════════════════════════════════════
   TOAST (уведомления)
   ═══════════════════════════════════════════ */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    padding: 10px 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 14px;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    white-space: nowrap;
    max-width: 90%;
}

.toast.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    border-color: rgba(52, 211, 153, 0.3);
}

.toast.error {
    border-color: rgba(248, 113, 113, 0.3);
}

@media (max-width: 480px) {
    .toast {
        font-size: 12px;
        padding: 8px 16px;
        top: 70px;
    }
}

/* ═══════════════════════════════════════════
   МОБИЛЬНАЯ АДАПТАЦИЯ
   ═══════════════════════════════════════════ */
@media (max-width: 480px) {
    .card {
        padding: 16px 14px 14px;
        border-radius: 22px;
        max-height: calc(100vh - 60px);
    }
    .avatar-container {
        width: 90px;
        height: 90px;
        margin-bottom: 10px;
    }
    .avatar-ring {
        inset: -4px;
    }
    .name {
        font-size: 20px;
    }
    .typing-wrapper {
        font-size: 11px;
        height: 20px;
        margin-bottom: 10px;
    }
    .typing-wrapper .cursor-blink {
        height: 12px;
    }
    .stats-grid {
        gap: 5px;
        margin-bottom: 10px;
    }
    .stat-number {
        font-size: 17px;
    }
    .stat-label {
        font-size: 8px;
    }
    .stat-item {
        padding: 8px 4px;
        border-radius: 10px;
    }
    .social-link {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .social-links {
        gap: 8px;
        margin-bottom: 10px;
    }
    .social-link .tooltip {
        display: none;
    }
    #qrCanvasWrapper {
        width: 90px;
        height: 90px;
    }
    #qrCanvasWrapper canvas,
    #qrCanvasWrapper img {
        width: 90px !important;
        height: 90px !important;
    }
}

@media (max-width: 380px) {
    .card {
        padding: 12px 10px 10px;
        border-radius: 18px;
        max-height: calc(100vh - 50px);
    }
    .avatar-container {
        width: 70px;
        height: 70px;
        margin-bottom: 8px;
    }
    .name {
        font-size: 17px;
    }
    .typing-wrapper {
        font-size: 10px;
        height: 18px;
    }
    .stat-number {
        font-size: 15px;
    }
    .social-link {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .social-links {
        gap: 6px;
    }
}

/* ═══════════════════════════════════════════
   УМЕНЬШЕНИЕ АНИМАЦИИ
   ═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .avatar-ring {
        animation: none !important;
    }
    .typing-wrapper .cursor-blink {
        animation: none !important;
        opacity: 0.4;
    }
    .player-visualizer .bar {
        animation: none !important;
        height: 10px !important;
    }
    .qr-wrapper::before {
        animation: none !important;
    }
}