/* Основные стили для сайта help365.info */

/* Принудительная светлая тема - отключаем автоматическую темную тему */
html {
    color-scheme: light only;
}

body {
    background-color: #ffffff !important;
    color: #333333 !important;
}

:root {
    /* Основные цвета согласно ТЗ */
    --primary-color: #2AB4B7;        /* Бирюзовый - основной */
    --secondary-color: #FF9F1C;      /* Оранжевый - второстепенный */
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #333333;           /* Темно-серый вместо черного */
    
    /* Дополнительные цвета */
    --text-color: #333333;           /* Основной цвет текста */
    --text-muted: #6c757d;           /* Приглушенный текст */
    --border-color: #e9ecef;         /* Цвет границ */
    --shadow-color: rgba(0,0,0,0.1); /* Цвет теней */
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, #2AB4B7 0%, #1a9a9d 100%);
    --gradient-secondary: linear-gradient(135deg, #FF9F1C 0%, #e8890b 100%);
    --gradient-hero: linear-gradient(135deg, #2AB4B7 0%, #FF9F1C 100%);
}

/* Общие стили */
body {
    font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    font-size: 16px; /* Минимальный размер согласно ТЗ */
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-color);
}

/* Кнопки */
.btn {
    border-radius: 12px; /* Согласно ТЗ */
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 16px; /* Крупные кнопки для пожилых пользователей */
    padding: 12px 24px;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1a9a9d 0%, #158a8d 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(42, 180, 183, 0.3);
}

.btn-secondary {
    background: var(--gradient-secondary);
    border: none;
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #e8890b 0%, #d17a0a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 159, 28, 0.3);
}

/* CTA кнопки */
.btn-cta-primary {
    background: var(--primary-color);
    border: none;
    color: white;
    font-size: 18px;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
}

.btn-cta-secondary {
    background: var(--secondary-color);
    border: none;
    color: white;
    font-size: 18px;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
}

/* Карточки */
.card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* Навигация */
.navbar {
    background: white !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    font-size: 16px;
    padding: 10px 20px !important;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 5px;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(42, 180, 183, 0.1);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(42, 180, 183, 0.1);
}

/* Кнопка "Найти помощника" в навигации */
.navbar .btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.navbar .btn-primary:hover {
    background: linear-gradient(135deg, #1a9a9d 0%, #158a8d 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(42, 180, 183, 0.3);
    color: white;
}

/* Hero секция */
.hero-section {
    background: var(--gradient-hero);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section .lead {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.5;
}

.hero-section .btn {
    margin: 10px;
    min-width: 200px;
}

/* Секции */
.section {
    padding: 80px 0;
}

.section-light {
    background: white;
}

.section-gray {
    background: var(--light-color);
}

.section-primary {
    background: var(--gradient-primary);
    color: white;
}

/* Как это работает */
.how-it-works {
    padding: 80px 0;
    background: white;
}

.step-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: 16px;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: rgba(42, 180, 183, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--primary-color);
}

/* Каталог специалистов */
.catalog-preview {
    padding: 80px 0;
    background: var(--light-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.category-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.category-icon-large {
    width: 96px;
    height: 96px;
    background: rgba(42, 180, 183, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    color: var(--primary-color);
}

/* Отзывы */
.reviews-section {
    padding: 80px 0;
    background: white;
}

.review-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.review-rating {
    color: #ffc107;
    font-size: 18px;
    margin-bottom: 15px;
}

/* Партнеры */
.partners-section {
    padding: 80px 0;
    background: var(--light-color);
}

.partner-logo {
    height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Иконки категорий */
.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,123,255,0.1);
    border-radius: 50%;
}

/* Рейтинг */
.rating {
    color: #ffc107;
}

.rating .fas.fa-star {
    font-size: 0.9rem;
}

/* Аватары */
.rounded-circle {
    object-fit: cover;
}

/* Формы */
.form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

/* Алерты */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-info {
    background-color: rgba(23,162,184,0.1);
    color: #0c5460;
}

/* Футер */
footer {
    background: var(--dark-color) !important;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h5 {
    color: var(--secondary-color) !important; /* Оранжевый акцентный цвет */
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none !important;
    transition: color 0.3s ease;
    font-size: 16px;
}

.footer-section a:hover {
    color: var(--primary-color);
}

/* Стили для социальных ссылок */
.social-links a {
    text-decoration: none !important;
}

.social-links a:hover {
    text-decoration: none !important;
}

/* Стили для всех ссылок в футере */
footer a {
    text-decoration: none !important;
}

footer a:hover {
    text-decoration: none !important;
}

/* Стили для справочника */
.handbook-filters .form-select optgroup {
    font-weight: 600;
    color: var(--primary-color);
    background-color: rgba(42, 180, 183, 0.1);
    padding: 8px 12px;
    margin: 4px 0;
    border-radius: 4px;
}

.handbook-filters .form-select option {
    padding: 6px 20px;
    font-size: 14px;
}

.handbook-filters .form-select option:hover {
    background-color: rgba(42, 180, 183, 0.1);
}

/* Стили для отображения регионов в статьях */
.regions-summary {
    cursor: help;
    color: var(--primary-color);
    font-weight: 500;
    border-bottom: 1px dotted var(--primary-color);
    transition: all 0.3s ease;
}

.regions-summary:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.regions-display {
    display: inline-flex;
    align-items: center;
}

.regions-display .btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 12px;
    line-height: 1;
}

.regions-display .btn-link:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.2rem;
    }
    
    .hero-section {
        padding: 80px 0;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 20px !important;
        margin: 2px 0;
        font-size: 16px;
        text-align: center;
        border-radius: 8px;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(42, 180, 183, 0.1);
        transform: none;
    }
    
    .navbar-nav .nav-link.active {
        background: rgba(42, 180, 183, 0.15);
    }
    
    .navbar-toggler {
        border: none;
        padding: 8px 12px;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(42, 180, 183, 0.25);
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0,0,0,0.1);
    }
    
    .btn {
        font-size: 16px;
        padding: 12px 20px;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .category-icon-large {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
    
    .step-card {
        padding: 30px 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .btn {
        width: 100%;
        margin: 5px 0;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px !important;
        font-size: 15px;
    }
    
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    .navbar-toggler {
        padding: 6px 10px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* Адаптивность для каталога - одна колонка на мобильных */
    .catalog-grid .col-md-6.col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Адаптивность для справочника - одна колонка на мобильных */
    .handbook-grid .col-md-6.col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .category-icon-large {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    
    .step-card {
        padding: 25px 10px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Загрузка */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Утилиты */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Специальные стили для админки */
.admin-sidebar {
    background: #2c3e50;
    min-height: 100vh;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    border-radius: 6px;
    margin: 2px 0;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.admin-sidebar .nav-link i {
    width: 20px;
    margin-right: 10px;
}

/* Стили для чатов */
.chat-container {
    height: 400px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    background: #f8f9fa;
}

.chat-message {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 70%;
    word-wrap: break-word;
}

.chat-message.user {
    background: var(--primary-color);
    color: white;
    margin-left: auto;
}

.chat-message.specialist {
    background: white;
    border: 1px solid #dee2e6;
    margin-right: auto;
}

.chat-message .message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 5px;
}

/* Стили для заявок */
.request-card {
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.request-card:hover {
    border-left-color: #0056b3;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.request-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.request-status.active {
    background: rgba(40,167,69,0.1);
    color: var(--success-color);
}

.request-status.in_progress {
    background: rgba(255,193,7,0.1);
    color: var(--warning-color);
}

.request-status.completed {
    background: rgba(23,162,184,0.1);
    color: var(--info-color);
}

.request-status.cancelled {
    background: rgba(220,53,69,0.1);
    color: var(--danger-color);
}

/* Стили для специалистов */
.specialist-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.specialist-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Адаптивность для каталога специалистов */
@media (max-width: 768px) {
    .specialist-card {
        margin-bottom: 1rem;
    }
    
    .specialist-card .card-body {
        padding: 1rem;
    }
    
    .specialist-card .d-flex.align-items-center {
        flex-direction: column;
        text-align: center;
    }
    
    .specialist-card .d-flex.align-items-center .me-3 {
        margin-right: 0 !important;
        margin-bottom: 1rem;
    }
    
    .specialist-card .flex-grow-1 {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .specialist-card .card-body {
        padding: 0.75rem;
    }
    
    .specialist-card h6 {
        font-size: 0.9rem;
    }
    
    .specialist-card .text-muted {
        font-size: 0.8rem;
    }
}

.specialist-avatar {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

/* Стили для отзывов */
.review-card {
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.review-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Стили для карточек статей справочника */
.handbook-article-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.handbook-article-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* Адаптивность для карточек статей */
@media (max-width: 768px) {
    .handbook-article-card .card-body {
        padding: 1rem;
    }
    
    .handbook-article-card .d-flex.align-items-center {
        flex-direction: column;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .handbook-article-card .d-flex.align-items-center .me-2 {
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }
    
    .handbook-article-card .card-title {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .handbook-article-card .card-text {
        text-align: center;
        font-size: 0.9rem;
    }
    
    .handbook-article-card .d-flex.justify-content-between {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .handbook-article-card .card-body {
        padding: 0.75rem;
    }
    
    .handbook-article-card .card-title {
        font-size: 1rem;
    }
    
    .handbook-article-card .card-text {
        font-size: 0.85rem;
    }
}

/* Стили для модальных окон */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 12px 12px;
}

/* Стили для уведомлений */
.notification-item {
    padding: 15px;
    border-left: 4px solid var(--primary-color);
    background: white;
    margin-bottom: 10px;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.notification-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.notification-item.unread {
    border-left-color: var(--danger-color);
    background: rgba(220,53,69,0.05);
}

/* Стили для календаря */
.calendar-day {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-day:hover {
    background: rgba(0,123,255,0.1);
}

.calendar-day.available {
    background: rgba(40,167,69,0.1);
    color: var(--success-color);
}

.calendar-day.unavailable {
    background: rgba(220,53,69,0.1);
    color: var(--danger-color);
}

.calendar-day.selected {
    background: var(--primary-color);
    color: white;
}

/* Стили для загрузки файлов */
.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(0,123,255,0.05);
}

.file-upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(0,123,255,0.1);
}

/* Стили для статистики */
.stat-card {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-card .stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Стили для таблиц */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background: var(--light-color);
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

.table tbody tr:hover {
    background: rgba(0,123,255,0.05);
}

/* Стили для пагинации */
.pagination .page-link {
    border-radius: 6px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
    color: var(--primary-color);
}

.pagination .page-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Стили для поиска */
.search-input {
    border-radius: 25px;
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Стили для фильтров */
.filter-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Адаптивность для фильтров каталога */
@media (max-width: 768px) {
    .filter-card {
        padding: 15px;
        margin-bottom: 1rem;
    }
    
    .filter-section {
        margin-bottom: 15px;
    }
    
    .filter-section h6 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .form-control, .form-select {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
}

@media (max-width: 576px) {
    .filter-card {
        padding: 12px;
    }
    
    .filter-section h6 {
        font-size: 0.95rem;
    }
    
    .form-label {
        font-size: 0.85rem;
    }
    
    .form-control, .form-select {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
}

.filter-section {
    margin-bottom: 20px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section h6 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

/* Стили для хлебных крошек */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--secondary-color);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Стили для тегов */
.tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0,123,255,0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 2px;
}

.tag.tag-success {
    background: rgba(40,167,69,0.1);
    color: var(--success-color);
}

.tag.tag-warning {
    background: rgba(255,193,7,0.1);
    color: var(--warning-color);
}

.tag.tag-danger {
    background: rgba(220,53,69,0.1);
    color: var(--danger-color);
}

/* Стили для прогресс-баров */
.progress {
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
}

.progress-bar {
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* Стили для спиннеров */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Стили для тултипов */
.tooltip {
    font-size: 0.8rem;
}

.tooltip-inner {
    background: var(--dark-color);
    border-radius: 6px;
}

/* Стили для поповеров */
.popover {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.popover-header {
    background: var(--light-color);
    border-bottom: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
}

/* Стили для дропдаунов */
.dropdown-menu {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 8px 0;
}

.dropdown-item {
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(0,123,255,0.1);
    color: var(--primary-color);
}

.dropdown-divider {
    margin: 8px 0;
    border-top: 1px solid #e9ecef;
}

/* Стили для нав-табов */
.nav-tabs {
    border-bottom: 2px solid #e9ecef;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 8px 8px 0 0;
    color: var(--secondary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Стили для аккордеонов */
.accordion-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
}

.accordion-button {
    border-radius: 8px;
    font-weight: 500;
    background: white;
    border: none;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Стили для карусели */
.carousel-item {
    border-radius: 12px;
    overflow: hidden;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

/* Стили для модальных окон */
.modal-backdrop {
    background: rgba(0,0,0,0.5);
}

/* Стили для оффканваса */
.offcanvas {
    border-radius: 0 12px 12px 0;
}

.offcanvas-header {
    border-bottom: 1px solid #e9ecef;
}

/* Стили для списков */
.list-group-item {
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background: rgba(0,123,255,0.05);
    border-color: var(--primary-color);
}

.list-group-item.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Стили для бейджей */
.badge {
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
}

/* Стили для аватаров */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-lg {
    width: 80px;
    height: 80px;
}

.avatar-sm {
    width: 30px;
    height: 30px;
}

/* Стили для иконок */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,123,255,0.1);
    color: var(--primary-color);
}

.icon.icon-success {
    background: rgba(40,167,69,0.1);
    color: var(--success-color);
}

.icon.icon-warning {
    background: rgba(255,193,7,0.1);
    color: var(--warning-color);
}

.icon.icon-danger {
    background: rgba(220,53,69,0.1);
    color: var(--danger-color);
}

/* Стили для уведомлений */
.toast {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.toast-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0;
}

/* Стили для загрузки */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e9ecef;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Стили для пустых состояний */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--secondary-color);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h4 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.empty-state p {
    margin-bottom: 30px;
}

/* Стили для ошибок */
.error-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--danger-color);
}

.error-state i {
    font-size: 4rem;
    margin-bottom: 20px;
}

.error-state h4 {
    margin-bottom: 10px;
}

.error-state p {
    margin-bottom: 30px;
    color: var(--secondary-color);
}

/* Стили для успеха */
.success-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--success-color);
}

.success-state i {
    font-size: 4rem;
    margin-bottom: 20px;
}

.success-state h4 {
    margin-bottom: 10px;
}

.success-state p {
    margin-bottom: 30px;
    color: var(--secondary-color);
}

/* Стили для очень маленьких экранов */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .hero-section {
        padding: 50px 0;
    }
    
    .section {
        padding: 30px 0;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-nav .nav-link {
        padding: 8px 12px !important;
        font-size: 14px;
    }
    
    .btn {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .specialist-card .card-body,
    .handbook-article-card .card-body {
        padding: 0.5rem;
    }
    
    .filter-card {
        padding: 10px;
    }
    
    .form-control, .form-select {
        font-size: 0.8rem;
        padding: 5px 8px;
    }
    
    .category-icon-large {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .step-card {
        padding: 20px 8px;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .step-icon {
        width: 55px;
        height: 55px;
        font-size: 20px;
    }
}

/* Стили для печати */
@media print {
    .no-print {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
    
    .btn {
        display: none;
    }
}

/* Стили для темной темы - ОТКЛЮЧЕНО */
/* Временно отключено, так как темная тема не проработана */
/*
@media (prefers-color-scheme: dark) {
    :root {
        --bs-body-bg: #1a1a1a;
        --bs-body-color: #ffffff;
    }
    
    .card {
        background: #2d2d2d;
        border-color: #404040;
    }
    
    .form-control {
        background: #2d2d2d;
        border-color: #404040;
        color: #ffffff;
    }
    
    .form-control:focus {
        background: #2d2d2d;
        border-color: var(--primary-color);
        color: #ffffff;
    }
}
*/

/* Стили для высокого контраста */
@media (prefers-contrast: high) {
    .btn {
        border-width: 2px;
    }
    
    .card {
        border-width: 2px;
    }
    
    .form-control {
        border-width: 2px;
    }
}

/* Стили для уменьшенной анимации */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Мобильная версия футера */
@media (max-width: 767.98px) {
    .footer-toggle {
        cursor: pointer;
        user-select: none;
        transition: all 0.3s ease;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        margin-bottom: 15px;
        color: var(--secondary-color) !important; /* Оранжевый акцентный цвет */
        font-weight: 700;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    }
    
    .footer-toggle:hover {
        color: var(--primary-color) !important;
    }
    
    .footer-toggle i {
        transition: transform 0.3s ease;
    }
    
    .footer-toggle[aria-expanded="true"] i {
        transform: rotate(180deg);
    }
    
    .footer-toggle[aria-expanded="true"] {
        color: var(--primary-color) !important;
    }
    
    /* Стили для раскрывающихся секций */
    .footer-section .collapse {
        margin-top: 10px;
    }
    
    .footer-section .collapse.show {
        margin-bottom: 20px;
    }
    
    /* Убираем отступы у списков в мобильной версии */
    .footer-section ul {
        margin-top: 10px;
    }
    
    .footer-section ul li {
        margin-bottom: 8px;
    }
    
    /* Стили для социальных ссылок */
    .social-links {
        margin-top: 15px;
    }
    
    .social-links a {
        display: inline-block;
        width: 40px;
        height: 40px;
        line-height: 40px;
        text-align: center;
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
        margin-right: 10px;
        transition: all 0.3s ease;
        text-decoration: none !important;
    }
    
    .social-links a:hover {
        background: var(--primary-color);
        transform: translateY(-2px);
        text-decoration: none !important;
    }
    
    /* Адаптация нижней части футера */
    footer .row:last-child {
        text-align: center;
    }
    
    footer .row:last-child .col-md-6:last-child {
        margin-top: 15px;
    }
}
