.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 100px 0;
    min-height: 100vh;
}

.about-text { flex: 1; color: #fff; }
.about-text h2 { font-size: 2.5rem; margin-bottom: 1rem; }

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    justify-content: center;
    align-items: center;
}

.skill-btn {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    border: none;
    padding: 0.55rem 1.1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.25s ease;
    font-family: inherit;
    font-size: 0.95rem;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.skill-btn:hover { filter: brightness(1.12); }

.skill-btn[data-skill="html"] { background: rgba(228, 77, 38, 0.25); color: #f06529; }
.skill-btn[data-skill="css"] { background: rgba(38, 77, 228, 0.25); color: #2965f1; }
.skill-btn[data-skill="js"] { background: rgba(247, 223, 30, 0.22); color: #f7df1e; }
.skill-btn[data-skill="tg"] { background: rgba(36, 161, 222, 0.25); color: #24a1de; }

#codeTooltip {
    position: fixed;
    z-index: 9999;
    display: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    max-width: 420px;
    max-height: 400px;
    overflow: auto;
}

#codeTooltip.active {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#codeTooltip pre { margin: 0; white-space: pre-wrap; word-break: break-word; }
#codeTooltip code {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.55;
    color: #e6e6e6;
    background: transparent !important;
}

/* Слайдер бота — стили общие; показ только в портфолио на мобилке */
.mobile-bot-demo { display: none; }

.tg-demo-frame {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(36, 161, 222, 0.35);
    min-height: 280px;
}

.tg-slider {
    display: flex;
    width: 200%;
    transition: transform 0.7s ease-in-out;
    will-change: transform;
}

.tg-slider img {
    width: 50%;
    flex: 0 0 50%;
    display: block;
    height: auto;
    min-height: 280px;
    object-fit: contain;
    background: #111;
}

.tg-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.55);
    padding: 6px 12px;
    border-radius: 999px;
    z-index: 2;
}

.tg-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
}

.tg-dots span.active { background: #24a1de; }

.about-chat {
    margin-top: 2rem;
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(89, 0, 0, 0.35);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(89, 0, 0, 0.25);
    border-bottom: 1px solid rgba(89, 0, 0, 0.3);
}

.chat-header-left { display: flex; align-items: center; gap: 8px; }
.chat-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #4ade80; box-shadow: 0 0 8px #4ade80;
}
.chat-title { font-size: 0.95rem; font-weight: 600; color: #f5e8e8; }
.chat-status { font-size: 0.75rem; color: rgba(74, 222, 128, 0.85); text-transform: uppercase; }

.chat-messages {
    height: 220px;
    overflow-y: auto;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-msg {
    max-width: 88%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.95rem;
    line-height: 1.45;
    word-break: break-word;
}

.chat-msg.bot {
    align-self: flex-start;
    background: rgba(89, 0, 0, 0.35);
    color: #f5e8e8;
}

.chat-msg.user {
    align-self: flex-end;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.chat-input-row {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid rgba(89, 0, 0, 0.25);
    background: rgba(0, 0, 0, 0.25);
}

#chatInput {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px 14px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    font-family: inherit;
}

#chatSend {
    width: 44px; height: 44px; border: none; border-radius: 12px;
    background: rgba(89, 0, 0, 0.7); color: #f5e8e8; font-size: 1.1rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .about-content {
        padding: 0 !important;
        min-height: auto;
        margin: 0 !important;
    }

    .about-text { width: 100%; text-align: center; }

    .about-text h2 {
        font-size: 1.55rem !important;
        margin-bottom: 0.6rem;
        line-height: 1.25;
        opacity: 1 !important;
        transform: none !important;
    }

    .about-text > .glass-panel > p {
        font-size: 1rem !important;
        line-height: 1.55;
        color: rgba(255, 255, 255, 0.82);
        margin-bottom: 1rem;
        opacity: 1 !important;
        transform: none !important;
    }

    .skills {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center;
        gap: 0.5rem;
        margin: 0.75rem 0 1.15rem;
    }

    .skill-btn {
        display: inline-flex !important;
        width: auto !important;
        padding: 0.55rem 1rem !important;
        font-size: 0.9rem !important;
        border-radius: 999px !important;
        pointer-events: none;
        opacity: 1 !important;
        visibility: visible !important;
    }

    #codeTooltip {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .about-chat {
        margin-top: 0;
        max-width: 100%;
        border-radius: 14px;
    }

    .chat-messages { height: 180px; }
    .chat-msg { font-size: 1rem; }
}
