html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; }

.card-hover {
    transition: transform .2s ease, box-shadow .2s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15,23,42,.12);
}

.hero-bg {
    background:
            linear-gradient(135deg, rgba(15,23,42,.88), rgba(255,124,16,.65)),
            url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?auto=format&fit=crop&w=1600&q=80') center/cover;
}

.gallery-thumb.active {
    outline: 3px solid #ff7c10;
}

details[open] summary svg {
    transform: rotate(180deg);
}
summary svg {
    transition: transform .2s;
}

.chip.active {
    background: #ff7c10;
    color: #fff;
    border-color: #ff7c10;
}

.scrollbar-thin::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
    background: #d4d8de;
    border-radius: 8px;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose ul {
    list-style-type: disc;
    padding-left: 1.25rem;
    margin: 1rem 0;
}

.prose li {
    margin: 0.25rem 0;
}
/* ===== ЧАТ ===== */
#chatMessages::-webkit-scrollbar,
#dialogsList::-webkit-scrollbar {
    width: 6px;
}
#chatMessages::-webkit-scrollbar-thumb,
#dialogsList::-webkit-scrollbar-thumb {
    background: #d4d8de;
    border-radius: 8px;
}

@media (max-width: 768px) {
    #chatWindow {
        display: flex;
    }
}