/* static/css/style.css */

/* ========== ПЕРЕМЕННЫЕ ========== */
:root {
    --primary: #2A7AE4;
    --primary-dark: #1a5bbf;
    --primary-light: #e8f0fe;
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --gray-800: #1e293b;
    --gray-600: #475569;
    --gray-400: #94a3b8;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --gray-50: #f8fafc;
    --border-radius: 16px;
    --border-radius-sm: 12px;
    --box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --box-shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.05), 0 10px 10px -5px rgba(0,0,0,0.02);
    --transition: all 0.2s ease;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ========== СБРОС СТИЛЕЙ ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--gray-50);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== ТИПОГРАФИКА ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ========== КОНТЕЙНЕР ========== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ========== НАВИГАЦИЯ ========== */
.navbar {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--gray-200);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-800);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Кнопка входа KompNK */
.btn-kompnk {
    background: var(--primary);
    color: white !important;
    border: none;
    border-radius: 40px;
    padding: 8px 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(42,122,228,0.2);
}

.btn-kompnk:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 10px rgba(42,122,228,0.3);
}

.btn-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

/* Выпадающее меню пользователя */
.dropdown {
    position: relative;
}

.dropdown-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 40px;
    background: var(--gray-100);
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-btn:hover {
    background: var(--gray-200);
}

.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: 12px;
    color: var(--gray-600);
    margin-left: 4px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: white;
    min-width: 220px;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.02);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    z-index: 200;
}

.dropdown-content.show {
    display: block;
    animation: fadeInDown 0.2s ease;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--gray-800);
    transition: background 0.15s;
    border-bottom: 1px solid var(--gray-100);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.dropdown-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* ========== ОСНОВНОЙ КОНТЕНТ ========== */
.main-content {
    flex: 1;
    padding: 32px 0;
}

/* ========== КНОПКИ ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    line-height: 1;
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 6px rgba(42,122,228,0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(42,122,228,0.25);
    color: white;
}

.btn-outline {
    background: transparent;
    border-color: var(--gray-400);
    color: var(--gray-700);
}

.btn-outline:hover {
    background: var(--gray-100);
    border-color: var(--gray-600);
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-warning:hover {
    background: #d97706;
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-800);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-lg {
    padding: 12px 28px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* ========== ФОРМЫ ========== */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-800);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-family: var(--font-family);
    transition: var(--transition);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(42,122,228,0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ========== КАРТОЧКИ СТАТЕЙ ========== */
.articles-grid,
.articles-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.article-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--gray-300);
}

.article-card h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.article-card h3 a {
    color: var(--dark);
}

.article-card h3 a:hover {
    color: var(--primary);
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.article-excerpt {
    color: var(--gray-700);
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

.likes {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-600);
}

.heart-icon {
    color: var(--danger);
}

.read-more {
    font-weight: 500;
    color: var(--primary);
}

.read-more:hover {
    text-decoration: underline;
}

/* ========== СТРАНИЦА СТАТЬИ ========== */
.article-detail {
    max-width: 900px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 30px;
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--gray-600);
    font-size: 0.95rem;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.7;
}

.article-body img {
    max-width: 100%;
    border-radius: var(--border-radius-sm);
    margin: 20px 0;
}

/* ========== ВЛОЖЕНИЯ ========== */
.article-attachments {
    margin: 40px 0;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.attachments-title {
    font-size: 1.6rem;
    margin-bottom: 24px;
}

.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.media-card {
    aspect-ratio: 1 / 1;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    cursor: pointer;
    background: var(--gray-100);
    position: relative;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.media-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.media-card img,
.media-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.5);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.media-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 8px 8px 4px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.media-card:hover .media-caption {
    opacity: 1;
}

.program-list {
    background: var(--gray-50);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    margin: 20px 0;
    border: 1px solid var(--gray-200);
}

.program-list h3 {
    margin-bottom: 16px;
}

.program-list ul {
    list-style: none;
}

.program-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.program-list li:last-child {
    border-bottom: none;
}

.download-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 500;
}

.download-link:hover {
    color: var(--primary-dark);
}

.file-icon {
    font-size: 1.4rem;
}

/* ========== ЛАЙК ========== */
.like-section {
    margin: 40px 0;
    text-align: center;
}

.btn-like {
    background: none;
    border: 2px solid var(--gray-300);
    border-radius: 40px;
    padding: 12px 30px;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-like:hover {
    border-color: var(--danger);
    background: #fee2e2;
    color: var(--danger);
}

.btn-like.liked {
    background: #fee2e2;
    border-color: var(--danger);
    color: var(--danger);
}

.btn-like .heart-icon {
    font-size: 1.5rem;
}

/* ========== ПЛАШКА СЕРВИСНОГО ЦЕНТРА ========== */
.service-banner {
    background: #fffbeb;
    border-left: 6px solid var(--warning);
    padding: 20px 24px;
    margin: 40px 0;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: var(--box-shadow);
    position: relative;
}

.service-banner-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.close-banner {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #92400e;
    padding: 0 8px;
    transition: var(--transition);
}

.close-banner:hover {
    color: var(--danger);
}

/* ========== БАННЕРЫ 9:16 ========== */
.banners-section {
    margin-bottom: 40px;
}

.banners-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0 20px;
    scrollbar-width: thin;
}

.banners-grid::-webkit-scrollbar {
    height: 6px;
}

.banners-grid::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 10px;
}

.banner-card {
    flex: 0 0 auto;
    width: 160px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    background: white;
    border: 1px solid var(--gray-200);
}

.banner-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-hover);
}

.banner-image-wrapper {
    aspect-ratio: 9 / 16;
    overflow: hidden;
}

.banner-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.banner-card:hover .banner-image-wrapper img {
    transform: scale(1.05);
}

.banner-description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 16px 8px 8px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.banner-card:hover .banner-description {
    opacity: 1;
}

/* ========== ВОПРОСЫ ========== */
.questions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.question-item {
    background: white;
    padding: 18px 20px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.question-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--box-shadow);
}

.question-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
    display: block;
    color: var(--dark);
}

.question-meta {
    display: flex;
    gap: 16px;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.answers-count {
    background: var(--gray-100);
    padding: 2px 10px;
    border-radius: 20px;
}

.questions-list-full {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
}

.question-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 24px;
    border: 1px solid var(--gray-200);
    display: flex;
    gap: 24px;
}

.question-stats {
    text-align: center;
    min-width: 60px;
}

.stat {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.question-main {
    flex: 1;
}

/* Детальная страница вопроса */
.question-detail {
    max-width: 900px;
    margin: 0 auto;
}

.question-content {
    background: var(--gray-50);
    padding: 24px;
    border-radius: var(--border-radius-sm);
    margin: 24px 0;
    border: 1px solid var(--gray-200);
}

.answers-section {
    margin: 40px 0;
}

.answer-card {
    background: white;
    border-radius: var(--border-radius-sm);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--gray-200);
}

.answer-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.answer-form {
    background: var(--gray-50);
    padding: 24px;
    border-radius: var(--border-radius-sm);
    margin-top: 30px;
    border: 1px solid var(--gray-200);
}

.answer-form textarea {
    margin-bottom: 16px;
}

/* ========== ГЛАВНАЯ СТРАНИЦА ========== */
.home-two-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    margin-bottom: 0;
}

.view-all {
    color: var(--primary);
    font-weight: 500;
}

/* ========== АДМИН-ПАНЕЛЬ ========== */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.admin-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 28px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.admin-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-hover);
}

.admin-card-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.admin-card h2 {
    margin-bottom: 12px;
}

.admin-card p {
    color: var(--gray-600);
    margin-bottom: 24px;
}

.admin-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-banners .banner-card-admin {
    width: 100%;
    max-width: 220px;
}

/* ========== ПАГИНАЦИЯ ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin: 48px 0 24px;
}

.pagination a {
    padding: 8px 16px;
    border-radius: 40px;
    background: white;
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    font-weight: 500;
}

.pagination a:hover {
    background: var(--gray-100);
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-info {
    color: var(--gray-600);
}

/* ========== ПУСТЫЕ СОСТОЯНИЯ ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
    font-size: 1.1rem;
    background: white;
    border-radius: var(--border-radius);
    border: 1px dashed var(--gray-300);
}

/* ========== ФЛЭШ-СООБЩЕНИЯ ========== */
.flash-messages {
    margin-bottom: 24px;
}

.alert {
    padding: 16px 20px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 12px;
    border-left: 5px solid;
}

.alert-success {
    background: #dcfce7;
    border-left-color: var(--success);
    color: #166534;
}

.alert-danger {
    background: #fee2e2;
    border-left-color: var(--danger);
    color: #991b1b;
}

.alert-info {
    background: #dbeafe;
    border-left-color: var(--primary);
    color: #1e40af;
}

.alert-warning {
    background: #fef3c7;
    border-left-color: var(--warning);
    color: #92400e;
}

/* ========== МОДАЛЬНОЕ ОКНО ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15,23,42,0.95);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.modal-content img,
.modal-content video {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    background: black;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 48px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    z-index: 1010;
}

.modal-close:hover {
    color: var(--danger);
    transform: scale(1.1);
}

/* ========== ФУТЕР ========== */
.footer {
    margin-top: auto;
    background: white;
    border-top: 1px solid var(--gray-200);
    padding: 32px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray-600);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--gray-600);
}

.footer-links a:hover {
    color: var(--primary);
}

/* ========== АНИМАЦИИ ========== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 992px) {
    .home-two-columns {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    
    .nav-links {
        gap: 16px;
    }
    
    .user-name {
        display: none;
    }
    
    .dropdown-btn {
        padding: 6px;
    }
    
    .article-card {
        padding: 20px;
    }
    
    .articles-grid,
    .articles-grid-full {
        grid-template-columns: 1fr;
    }
    
    .service-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.3rem;
    }
    
    .btn-kompnk span {
        display: none;
    }
    
    .btn-kompnk {
        padding: 8px 12px;
    }
    
    .banner-card {
        width: 130px;
    }
}

/* ========== ПРОФИЛЬ ========== */
.profile-container {
    max-width: 600px;
    margin: 0 auto;
}

.profile-card {
    padding: 30px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: var(--box-shadow);
}

.profile-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 600;
    border: 3px solid white;
    box-shadow: var(--box-shadow);
}

.profile-info {
    margin: 30px 0;
}

.info-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.info-label {
    width: 150px;
    font-weight: 500;
    color: var(--gray-700);
}

.info-value {
    color: var(--dark);
}

.profile-actions {
    display: flex;
    gap: 16px;
}

/* Обрезание текста в карточках статей */
.article-excerpt {
    color: var(--gray-700);
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Дополнительный фикс для карточек на главной */
.article-card p {
    margin-bottom: 16px;
}

/* Поиск */
.search-form {
    margin-bottom: 30px;
    padding: 20px;
}

.search-input-wrapper {
    display: flex;
    gap: 12px;
}

.search-input-wrapper .form-control {
    flex: 1;
}

.search-results-header {
    margin: 24px 0 16px;
}

.search-results-header h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--gray-800);
}

/* Кнопки внутри карточки вопроса */
.question-actions {
    margin-top: 12px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.9rem;
}