* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: auto; background: #fafcff; font-family: 'Segoe UI', 'Roboto', sans-serif; color: #1e293b; }
:root { --primary: #2b3b8c; --primary-dark: #1e2a62; --accent: #5e6fd3; --gray-bg: #f4f7fd; --card-white: #ffffff; --text-dark: #1e293b; --text-light: #4a5a72; --border-radius: 28px; --shadow-sm: 0 12px 30px rgba(0,0,0,0.05); --shadow-md: 0 20px 35px -12px rgba(0,0,0,0.08); }

.app { display: flex; width: 100%; min-height: 100vh; max-width: 100%; background: #fafcff; overflow: hidden; }

/* Меню */
.sidebar { width: 70px; background: #ffffff; display: flex; flex-direction: column; align-items: center; padding: 20px 0; border-right: 1px solid #eef2ff; transition: width 0.3s; overflow: hidden; flex-shrink: 0; z-index: 10; }
.sidebar.expanded { width: 200px; }
.logo { width: 42px; height: 42px; background: #ffffff; border: 1px solid #dce3f0; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; font-weight: 700; font-size: 20px; color: var(--primary); text-decoration: none; }
.menu-toggle { width: 42px; height: 42px; background: #ffffff; border: 1px solid #dce3f0; border-radius: 10px; color: #64748b; font-size: 18px; cursor: pointer; margin-bottom: 20px; }
.nav-icons { flex: 1; width: 100%; }
.nav-icon { width: 100%; padding: 12px 0; display: flex; align-items: center; justify-content: center; color: #64748b; cursor: pointer; }
.sidebar.expanded .nav-icon { justify-content: flex-start; padding-left: 20px; }
.nav-icon .icon { font-size: 20px; width: 24px; text-align: center; }
.nav-icon .label { display: none; margin-left: 12px; font-size: 14px; white-space: nowrap; color: var(--text-dark); }
.sidebar.expanded .nav-icon .label { display: inline; }
.nav-icon.active { background: #eef2ff; color: var(--primary); font-weight: 600; }
.nav-bottom { width: 100%; margin-top: auto; }

/* Основной контент */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: #fafcff; }
.desktop-header { padding: 18px 28px; border-bottom: 1px solid #eef2ff; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(180deg, #eef5ff 0%, #ffffff 100%); backdrop-filter: blur(10px); }
.mobile-header { display: none; padding: 12px 15px; border-bottom: 1px solid #eef2ff; align-items: center; gap: 8px; background: linear-gradient(180deg, #eef5ff 0%, #ffffff 100%); }
.mobile-logo { width: 36px; height: 36px; background: #ffffff; border: 1px solid #dce3f0; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; color: var(--primary); text-decoration: none; }
.mobile-search { flex: 1; display: flex; background: #f4f7fd; border-radius: 30px; border: 1px solid #dce3f0; overflow: hidden; padding-left: 12px; }
.mobile-search span { color: #94a3b8; display: flex; align-items: center; }
.mobile-search input { flex: 1; background: none; border: none; padding: 10px 8px; color: var(--text-dark); outline: none; min-width: 0; }
.mobile-search-btn { background: var(--primary); border: none; padding: 8px 12px; font-weight: 600; cursor: pointer; white-space: nowrap; font-size: 13px; color: white; }
.mobile-menu-btn, .mobile-info-btn, .mobile-profile-btn, .mobile-more-btn { width: 36px; height: 36px; background: #ffffff; border: 1px solid #dce3f0; border-radius: 8px; color: #64748b; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mobile-profile-btn { text-decoration: none; }
.avatar-small { width: 24px; height: 24px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; font-size: 12px; }

/* Выпадающее меню действий (мобильное) */
.mobile-actions-dropdown { display: none; position: absolute; top: 60px; right: 15px; background: #ffffff; border: 1px solid #dce3f0; border-radius: 8px; z-index: 120; min-width: 180px; box-shadow: var(--shadow-sm); }
.mobile-actions-dropdown.active { display: block; }
.mobile-action-item { padding: 12px 16px; color: var(--text-dark); cursor: pointer; display: flex; align-items: center; gap: 8px; }
.mobile-action-item:hover { background: #f1f5f9; }

.search-bar { background: #f4f7fd; border-radius: 30px; padding: 8px 8px 8px 18px; display: flex; align-items: center; width: 380px; border: 1px solid #dce3f0; }
.search-bar span { color: #94a3b8; margin-right: 10px; }
.search-bar input { background: none; border: none; color: var(--text-dark); font-size: 14px; outline: none; flex: 1; }
.search-btn { background: var(--primary); border: none; padding: 8px 20px; border-radius: 30px; font-weight: 600; cursor: pointer; color: white; }
.header-actions { display: flex; align-items: center; gap: 15px; }
.action-badge { background: #ffffff; border: 1px solid #dce3f0; padding: 8px 16px; border-radius: 40px; display: flex; align-items: center; gap: 8px; color: var(--text-dark); cursor: pointer; }
.action-badge:hover { background: #f1f5f9; }
.user-profile { display: flex; align-items: center; gap: 12px; background: #ffffff; padding: 6px 16px 6px 12px; border-radius: 40px; border: 1px solid #dce3f0; text-decoration: none; color: inherit; cursor: pointer; }
.avatar { width: 36px; height: 36px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; }

.content-wrapper { flex: 1; overflow-y: auto; padding: 20px 28px calc(20px + env(safe-area-inset-bottom, 0px)); background: #fafcff; }
.profile-wrapper { padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }

/* Категории */
.categories-block { margin-bottom: 24px; position: relative; }
.categories-toggle { background: #ffffff; border: 1px solid #dce3f0; border-radius: 8px; padding: 12px 18px; color: var(--text-dark); font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; width: auto; min-width: 200px; }
.categories-toggle .arrow { font-size: 12px; transition: transform 0.2s; }
.categories-toggle.active .arrow { transform: rotate(180deg); }
.categories-dropdown { display: none; position: absolute; top: 100%; left: 0; background: #ffffff; border: 1px solid #dce3f0; border-radius: 8px; margin-top: 5px; z-index: 50; min-width: 200px; box-shadow: var(--shadow-sm); }
.categories-dropdown.active { display: block; }
.category-item { display: block; padding: 10px 18px; color: var(--text-dark); cursor: pointer; }
.category-item:hover { background: #f1f5f9; }
.category-item.active { background: var(--primary); color: white; }

/* Карточки */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
    margin-bottom: 30px;
}
.news-card {
    background: var(--card-white);
    border-radius: 24px;
    border: 1px solid #eef2ff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.card-img {
    height: 160px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}
.card-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.card-title {
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}
.card-excerpt {
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}
.meta {
    display: flex;
    gap: 12px;
    color: var(--text-light);
    font-size: 12px;
    background: #f8fafc;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #eef2ff;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* Пагинация */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.page-btn { background: #ffffff; color: var(--text-dark); border: 1px solid #dce3f0; padding: 8px 18px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 14px; transition: all 0.2s; }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.page-btn:hover { background: #f1f5f9; color: var(--text-dark); }

/* Инфо-панель */
.info-panel { position: fixed; bottom: 0; left: 0; right: 0; background: #ffffff; border-top: 1px solid #eef2ff; transform: translateY(100%); transition: transform 0.3s; z-index: 200; padding-bottom: env(safe-area-inset-bottom, 0px); }
.info-panel.active { transform: translateY(0); }
.info-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; border-bottom: 1px solid #eef2ff; color: var(--text-dark); font-weight: 700; }
.info-panel-close { background: none; border: none; color: #64748b; font-size: 24px; cursor: pointer; }
.info-panel-content { padding: 30px 30px calc(30px + env(safe-area-inset-bottom, 0px)); max-width: 1200px; margin: 0 auto; }
.info-copyright { margin-bottom: 30px; color: var(--text-light); }
.info-iks { color: var(--primary); font-weight: 700; margin-top: 10px; }
.info-links { display: flex; gap: 60px; }
.info-column { display: flex; flex-direction: column; gap: 12px; }
.info-column a { color: var(--text-dark); text-decoration: none; }
.info-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.3); z-index: 199; display: none; }
.info-overlay.active { display: block; }

/* Чат, обновления, мини-профиль */
.slide-panel { position: fixed; top: 0; right: 0; width: 500px; height: 100vh; background: #ffffff; border-left: 1px solid #eef2ff; transform: translateX(100%); transition: transform 0.3s; z-index: 150; padding: 28px 18px; overflow-y: auto; box-shadow: -5px 0 15px rgba(0,0,0,0.05); }
.slide-panel.active { transform: translateX(0); }
.panel-header { color: var(--text-dark); font-size: 18px; font-weight: 700; margin-bottom: 28px; display: flex; align-items: center; justify-content: space-between; }
.close-panel { background: none; border: none; color: #94a3b8; font-size: 24px; cursor: pointer; }
.update-item { margin-bottom: 28px; border-bottom: 1px solid #eef2ff; padding-bottom: 20px; }
.update-badge { display: inline-block; background: var(--primary); color: white; font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 16px; margin-bottom: 12px; }
.update-title { color: var(--text-dark); font-weight: 600; font-size: 15px; text-decoration: none; display: block; margin-bottom: 8px; }
.update-meta { color: #94a3b8; font-size: 12px; }
.chat-form input, .chat-form textarea { width: 100%; background: #f4f7fd; border: 1px solid #dce3f0; border-radius: 10px; padding: 12px; color: var(--text-dark); margin-bottom: 15px; }
.chat-form button { background: var(--primary); border: none; padding: 12px; border-radius: 10px; font-weight: bold; cursor: pointer; width: 100%; color: white; }

/* Мини-профиль */
.mini-profile-content { padding: 20px; }
.mini-profile-avatar { text-align: center; margin-bottom: 20px; }
.mini-profile-avatar img { width: 100px; height: 100px; border-radius: 50%; border: 3px solid var(--primary); object-fit: cover; }
.mini-profile-info { text-align: center; margin-bottom: 20px; }
.mini-profile-name { font-size: 22px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.mini-profile-status { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--text-light); font-size: 14px; }
.online-badge { background: #10b981; color: white; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.mini-profile-stats { display: flex; justify-content: center; gap: 30px; margin-bottom: 25px; }
.mini-stat { text-align: center; }
.mini-stat span { display: block; color: var(--text-light); font-size: 12px; text-transform: uppercase; margin-bottom: 5px; }
.mini-stat strong { color: var(--text-dark); font-size: 20px; }
.mini-profile-actions { display: flex; flex-direction: column; gap: 10px; }
.mini-btn { background: #f1f5f9; border: 1px solid #dce3f0; color: var(--text-dark); padding: 12px; border-radius: 25px; font-size: 14px; cursor: pointer; text-decoration: none; text-align: center; transition: all 0.2s; }
.mini-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* Оверлей для панелей */
.panel-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.3); z-index: 140; display: none; }
.panel-overlay.active { display: block; }

/* Подвал */
.site-footer {
    margin-top: 30px;
    padding: 30px 28px 20px;
    background: #0b1423;
    color: #a3b3d6;
    border-radius: 32px 32px 0 0;
    width: 100%;
    box-sizing: border-box;
}
.footer-grid { display: flex; gap: 30px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 30px; }
.footer-col { flex: 1; min-width: 150px; }
.footer-col h4 { color: #ffffff; font-size: 16px; margin-bottom: 12px; }
.footer-col p, .footer-col a { color: #a3b3d6; font-size: 13px; text-decoration: none; display: block; margin-bottom: 6px; transition: color 0.2s; }
.footer-col a:hover { color: #ffffff; }
.footer-iks { color: #10b981; font-weight: 700; margin-top: 8px; }

.info-divider { border: none; border-top: 1px solid #eef2ff; margin: 15px 0; }

.mobile-menu-close { display: none; width: 42px; height: 42px; background: #ffffff; border: 1px solid #dce3f0; border-radius: 10px; color: #64748b; font-size: 18px; cursor: pointer; align-items: center; justify-content: center; margin-bottom: 12px; }

/* Секция разделов и категорий */
.sections-row {
    display: flex;
    gap: 15px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    margin-top: 10px; /* отступ от шапки */
}
.sections-row .categories-block { margin-bottom: 0; }

/* Адаптив */
@media (min-width: 901px) { .mobile-header { display: none !important; } }
@media (max-width: 900px) {
    .desktop-header { display: none; }
    .mobile-header { display: flex; padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
    .sidebar { position: fixed; left: 0; top: 0; height: 100vh; z-index: 100; transform: translateX(-100%); transition: transform 0.3s; width: 250px !important; max-width: 80vw; background: #ffffff; box-shadow: 0 0 30px rgba(0,0,0,0.1); }
    .sidebar.mobile-open { transform: translateX(0); }
    .sidebar .label { display: inline !important; }
    .sidebar .nav-icon { justify-content: flex-start; padding-left: 20px; }
    .content-wrapper { padding: 15px; }
    .news-grid { grid-template-columns: 1fr; }
    .news-card { height: auto; }
    .menu-toggle { display: none; }
    .slide-panel { width: 90vw; }
    .categories-dropdown { position: static; width: 100%; }
    .mobile-menu-close { display: flex; }
    .benefits-grid,
    .structure-grid { grid-template-columns: 1fr; }
    .hero-overlay h1 { font-size: 24px; }
    .hero-stats { gap: 20px; }
    .topics-slider-wrapper { max-width: 100%; }
    .cta-card { max-width: 100%; }
    .sections-row { margin-top: 5px; }
}
@media (max-width: 480px) {
    .hero-overlay { padding: 20px; }
}

/* Аватар */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}
.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Закругление для изображения материала */
.material-image img {
    border-radius: 12px;
}

/* Фикс z-index: панели и мобильное меню должны быть выше шапки */
.slide-panel,
#chatPanel,
#updatesPanel,
#profilePanel,
#infoMobilePanel,
#cartPanel {
    z-index: 1100; /* было 150 */
}
.panel-overlay {
    z-index: 1090; /* было 140 */
}
.sidebar.mobile-open {
    z-index: 1050; /* было 100 */
}

/* Восстановление отступов текста (перекрывает системный сброс) */
h1 { margin: 0.67em 0; }
h2 { margin: 0.83em 0; }
h3 { margin: 1em 0; }
h4 { margin: 1.33em 0; }
p  { margin: 0 0 1em; }



.news-card.shop-card {
    width: calc(33.333% - 20px) !important;
    margin: 0 10px 20px 10px !important;
    float: left !important;
    clear: none !important;
}
@media (max-width: 900px) {
    .news-card.shop-card {
        width: calc(50% - 20px) !important;
    }
}
@media (max-width: 600px) {
    .news-card.shop-card {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}
.content-wrapper .publ-main {
    overflow: hidden; /* чтобы схлопнуть float */
}

@media (max-width: 600px) {
    .news-card.shop-card {
        margin-bottom: 15px !important;
    }
}



.paging-wrapper-bottom .pagesBlockuz2 {
    display: inline-block;
    text-align: center;
    margin-top: 30px;
}
.paging-wrapper-bottom .pagesBlockuz2 a,
.paging-wrapper-bottom .pagesBlockuz2 b {
    display: inline-block;
    background: #ffffff;
    border: 1px solid #dce3f0;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    color: #1e293b;
    margin: 0 3px;
    line-height: 1.2;
}
.paging-wrapper-bottom .pagesBlockuz2 b {
    background: #2b3b8c;
    color: white;
    border-color: #2b3b8c;
}
.paging-wrapper-bottom .pagesBlockuz2 a:hover {
    background: #f1f5f9;
}



.sorting-wrapper {
    background: #ffffff;
    border: 1px solid #dce3f0;
    border-radius: 30px;
    padding: 8px 20px;
    margin-bottom: 20px;
    display: inline-block;
    font-size: 13px;
    color: var(--text-dark);
}
.sorting-wrapper a {
    color: var(--primary);
    text-decoration: none;
    margin: 0 6px;
}
.sorting-wrapper a:hover {
    text-decoration: underline;
}
.sorting-wrapper .darr,
.sorting-wrapper .uarr {
    font-weight: bold;
}




.sortBlock23 {
    font-size: 0;
}
.sortBlock23 .catSortLink {
    font-size: 13px;
    margin: 0 6px;
    background: #f8fafc;
    border: 1px solid #eef2ff;
    border-radius: 16px;
    padding: 4px 12px;
    display: inline-block;
}
.sortBlock23 .catSortLink:hover { ... }
.sortBlock23 .catSortLink.darr,
.sortBlock23 .catSortLink.uarr { ... }




/* Мобильная версия: увеличиваем отступы между кнопками */
@media (max-width: 700px) {
    .sortBlock23 {
        gap: 12px;          /* расстояние между кнопками по горизонтали и вертикали */
    }
    .sortBlock23 .catSortLink {
        margin-bottom: 0;   /* убираем лишние margin, если есть */
    }
}
@media (max-width: 700px) {
    .sortBlock23 {
        gap: 8px;
    }
    .sortBlock23 .catSortLink {
        margin-bottom: 8px;
    }
}








/* Базовые переходы для всех пунктов меню */
.nav-icon {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    margin: 4px 8px;
    width: calc(100% - 16px);
}

/* Эффект при наведении – развёрнутое меню */
.sidebar.expanded .nav-icon:hover {
    background: rgba(43, 59, 140, 0.08);
    transform: translateX(4px);
    color: var(--primary);
}

/* Эффект при наведении – свёрнутое меню (иконки) */
.sidebar:not(.expanded) .nav-icon:hover {
    background: var(--primary);
    transform: scale(1.05);
    color: white;
}

/* Активный пункт (и так уже есть, но можно добавить плавность) */
.nav-icon.active {
    background: #eef2ff !important;
    color: var(--primary) !important;
    font-weight: 600;
}

/* Убираем подчёркивание у всех ссылок меню */
.sidebar a {
    text-decoration: none;
}
/* Мобильное меню: жёсткое перебивание цвета при нажатии */
.sidebar .nav-icon.tapped,
.sidebar .nav-icon.tapped .icon,
.sidebar .nav-icon.tapped .label {
    background: var(--primary) !important;
    color: white !important;
    text-decoration: none !important;
}

/* Дополнительная страховка: чтобы активный пункт не конфликтовал */
.sidebar .nav-icon.tapped.active {
    background: var(--primary) !important;
    color: white !important;
}

/* ===== УНИКАЛЬНЫЕ СТИЛИ ДЛЯ ФОРМЫ МИНИ-ЧАТА ===== */
.chat-form-card {
    margin-top: 24px;
    background: var(--card-white, #fff);
    border-radius: 24px;
    border: 1px solid #eef2ff;
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 12px 30px rgba(0,0,0,0.05));
}
.chat-form-header {
    padding: 14px 20px;
    background: var(--gray-bg, #f4f7fd);
    border-bottom: 1px solid #eef2ff;
    font-weight: 700;
    color: var(--primary, #2b3b8c);
    font-size: 16px;
}
.chat-form-body {
    padding: 20px;
}
.chat-form-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2ff;
}
.chat-form-autoupd {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-light);
}
.chat-form-buttons {
    display: flex;
    gap: 8px;
    margin-left: auto;
}
.chat-form-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border-radius: 8px;
    border: 1px solid #dce3f0;
    text-decoration: none;
}
.chat-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}
.chat-form-field {
    flex: 1;
}
.chat-form-label {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 4px;
}
.chat-form-field input,
.chat-form-field textarea,
.chat-form-field select,
.chat-form-message textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--gray-bg, #f4f7fd);
    border: 1px solid #dce3f0;
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-dark);
    transition: 0.2s;
    box-sizing: border-box;
}
.chat-form-field input:focus,
.chat-form-field textarea:focus,
.chat-form-field select:focus,
.chat-form-message textarea:focus {
    background: #ffffff;
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(43,59,140,0.1);
}
.chat-form-captcha {
    align-items: center;
}
.chat-form-captcha-img {
    flex-shrink: 0;
}
.chat-form-message {
    margin-bottom: 16px;
}
.chat-form-message #charCounter {
    font-size: 12px;
    color: var(--text-light);
    text-align: right;
    margin-top: 4px;
}
.chat-form-submit {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    align-items: center;
}
.chat-form-send-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 10px 24px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}
.chat-form-send-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}
/* Адаптив */
@media (max-width: 600px) {
    .chat-form-body {
        padding: 15px;
    }
    .chat-form-row {
        flex-direction: column;
        gap: 12px;
    }
}

.add-material-btn {
    text-decoration: none;
}

/* убирает подчеркивание кнопок войти и регистрация */
.action-badge {
    text-decoration: none;
}

body, .app, .content-wrapper {
    overflow-x: hidden;
}
.profile-wrapper, .profile-card {
    max-width: 100%;
    box-sizing: border-box;
}
.details-grid {
    word-break: break-word;
}
@media (max-width: 700px) {
    .profile-card { padding: 16px; }
    .details-grid { grid-template-columns: 1fr; }
}