/* base */
:root {
    --primary-color: #3a86ff;
    --secondary-color: #8338ec;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --accent-color: #ff006e;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
    padding: 2rem 0;
}

/* Убираем отступы у main на главной странице, так как секции имеют свои отступы */
main.mt-0 {
    padding: 0;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--dark-color); /* Фон меню */
        padding: 1rem;
        border-radius: 8px;
        margin-top: 0.5rem;
    }

    .navbar-nav {
        flex-direction: column;
        margin: 0;
        padding: 0;
    }

    .nav-item {
        width: 100%;
        text-align: center;
        margin: 0;
        padding: 0.5rem 0; /* Отступы между пунктами меню */
    }

    .nav-link {
        padding: 0.75rem 1rem; /* Увеличенные отступы для удобства на мобильных */
    }

    .nav-btn {
        margin: 0.5rem 0; /* Отступы между кнопками */
        padding: 0.75rem 1rem; /* Внутренние отступы для кнопок */
        text-decoration: none;
        display: block; /* Делаем кнопки блочными элементами */
    }
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Modern Header Styles */
.modern-navbar {
    background: linear-gradient(135deg, var(--dark-color) 0%, #2c3e50 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.6rem 0;
    min-height: 75px; /* Минимальная высота для соответствия высоте с аватаркой */
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--primary-color);
}

.navbar-brand img {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: rotate(10deg);
}

.modern-nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    margin: 0 0.3rem;
    padding: 0.5rem 0.8rem !important;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modern-nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.modern-nav-link.active {
    color: white !important;
}

.nav-btn {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block; /* Добавьте это, чтобы кнопки были в одной строке */
    vertical-align: middle; /* Выровнять кнопки по вертикали */
}

.nav-btn.login-btn {
    background-color: transparent;
    color: var(--primary-color);
    box-shadow: inset 0 0 0 2px var(--primary-color); /* Добавляем внутреннюю границу */
    line-height: 1.5; /* Установите одинаковую высоту строки */
    text-align: center; /* Выровнять текст по центру */
}

.nav-btn.login-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.nav-btn.register-btn {
    background-color: var(--primary-color);
    color: white;
    margin-left: 0.5rem;
    line-height: 1.5; /* Установите одинаковую высоту строки */
    text-align: center; /* Выровнять текст по центру */
}

.nav-btn.register-btn:hover {
    background-color: #2660c9;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 0.5rem;
    border: 2px solid var(--primary-color);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    min-width: 200px;
}

.dropdown-item {
    padding: 0.6rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

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

.dropdown-item i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

/* Modern Footer Styles */
.modern-footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #2c3e50 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 1.5rem;
    position: relative;
}

.footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-brand img {
    width: 40px;
    height: 40px;
    margin-right: 0.8rem;
}

.footer-brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.footer-description {
    max-width: 300px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-heading {
    color: white;
    font-weight: 600;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-link:hover {
    color: white;
    transform: translateX(5px);
}

.footer-link i {
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

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

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-contact-item {
    display: flex;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.footer-contact-icon {
    width: 20px;
    margin-right: 0.8rem;
    color: var(--primary-color);
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-bottom a:hover {
    color: white;
    text-decoration: underline;
}

/* Disable link styling */
.nav-link.disabled, .navbar-brand.disabled {
    color: white !important;
    pointer-events: none;
    opacity: 1;
    text-decoration: none;
}

.modern-nav-link.disabled {
    color: rgba(255, 255, 255, 0.7) !important;
    background-color: transparent;
}

/* dashboard */
.table-hover tbody tr:hover { background-color: #f5f5f5; }
        .btn-update { background-color: #0d6efd; color: white; border: none; padding: 5px 10px; border-radius: 5px; cursor: pointer; }
        .btn-update:hover { background-color: #0b5ed7; }
        #dataTable th, #dataTable td { text-align: center; vertical-align: middle; }
        .company-checkbox { transform: scale(1.5); margin: 0; }
        .modal {
            display: none; 
            position: fixed; 
            z-index: 1000; 
            left: 0;
            top: 0;
            width: 100%; 
            height: 100%; 
            background-color: rgba(0,0,0,0.5); 
        }
        .modal-content {
            background-color: #fefefe;
            margin: 15% auto; 
            padding: 20px;
            border: 1px solid #888;
            width: 80%; 
            max-width: 400px;
            border-radius: 5px;
            text-align: center;
        }
        .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
        }
        .close:hover,
        .close:focus {
            color: black;
            text-decoration: none;
        }
        #actionHeader {
            cursor: pointer;
        }
        .file-list a {
            display: block;  /* Каждый файл на новой строке */
        }
.text-muted {
    --bs-text-opacity: 1;
    color: rgb(33 37 41 / 50%) !important;
}
a.custom-link {
    color: inherit; /* Наследует цвет текста от родительского элемента */
    text-decoration: none; /* Убирает подчеркивание */
}

a.custom-link:hover {
    text-decoration: underline; /* Добавляет подчеркивание при наведении */
}

/* Таблица */
/* Базовые стили для всех устройств */
.table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
  }
  /* Адаптивный дизайн для мобильных устройств */
  @media screen and (max-width: 767px) {
    /* Скрываем заголовки таблицы */
    #companiesTable thead {
      display: none;
    }
    
    /* Меняем строки таблицы на блоки */
    #companiesTable tr {
        display: block;
        margin-bottom: 0.5rem; /* Уменьшен отступ между строками */
        border: 1px solid #dee2e6;
        border-radius: 6px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        padding: 0.5rem; /* Уменьшен внутренний отступ */
        position: relative; /* Для абсолютного позиционирования действий */
    }

    /* Меняем ячейки таблицы на блоки */
    #companiesTable td {
        display: flex;
        flex-direction: column;
        text-align: left;
        padding: 0.4rem; /* Уменьшен padding */
        border: none;
    }

    /* Добавляем границу только для первых двух ячеек в строке */
    #companiesTable td:first-child,
    #companiesTable td:nth-child(2) {
        border-bottom: 1px solid #f0f0f0;
    }

    /* Убираем границу у последней ячейки */
    #companiesTable td:last-child {
        border-bottom: none;
    }

    /* Добавляем подписи для каждой ячейки */
    #companiesTable td:before {
        content: attr(data-label);
        font-weight: bold;
        margin-bottom: 0.2rem; /* Чуть уменьшен отступ */
    }

    /* Скрываем чекбоксы */
    #companiesTable td:first-child {
        display: none;
    }
    
    /* Стилизация ячейки с действиями - перемещаем в правый верхний угол */
    #companiesTable td:last-child {
      position: absolute;
      top: 0.5rem;
      right: 0.5rem;
      border-bottom: none;
      padding: 0;
      width: auto;
      background: transparent;
    }
    
    /* Скрываем название колонок */
    #companiesTable td:before {
      display: none;
    }
    
    /* Сдвигаем вторую ячейку (Компания) чтобы она была первой */
    #companiesTable td:nth-child(2) {
      margin-top: 0;
      padding-top: 0;
      font-size: 1.1rem;
      /* Добавляем отступ справа для действий */
      padding-right: 4rem;
    }
    
    /* Стили для ссылок в карточках */
    #companiesTable .custom-link {
      color: #0056b3;
      text-decoration: none;
    }
    
    /* Стили для кнопок действий */
    #companiesTable .action-buttons {
      display: flex;
      justify-content: flex-end;
    }
    
    /* Сохраняем оригинальные стили для кнопок */
    #companiesTable .btn-notify,
    #companiesTable .btn-no-notify,
    #companiesTable .btn-update {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-left: 0.25rem;
      padding: 0.25rem;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      background-color: #f8f9fa;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    /* Стили для значков в кнопках */
    #companiesTable .btn-notify i,
    #companiesTable .btn-no-notify i,
    #companiesTable .btn-update i {
      font-size: 1rem;
      color: #6c757d;
    }
    
    /* Специфические стили для каждой кнопки */
    #companiesTable .btn-notify {
      color: #0d6efd;
    }
    
    #companiesTable .btn-notify i {
      color: #0d6efd;
    }
    
    #companiesTable .btn-no-notify {
      color: #6c757d;
    }
    
    #companiesTable .btn-update {
      color: #0d6efd;
    }
    
    #companiesTable .btn-update i {
      color: #0d6efd;
    }
    
    /* Стили для статусов */
    #companiesTable .status-badge {
      display: inline-block;
      padding: 0.25rem 0.5rem;
      border-radius: 4px;
      font-size: 0.85rem;
    }
    
    /* Стили для вывода списка файлов */
    #companiesTable .file-list {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
    }
    
    #companiesTable .file-list a {
      margin-bottom: 0.25rem;
    }
    
    /* Стили для пагинации */
    .pagination {
      display: flex;
      justify-content: center;
      align-items: center;
      margin: 1rem 0;
    }
    
    .pagination .page-item {
      margin: 0 2px;
    }
    
    /* Скрываем лишние страницы в пагинации */
    .pagination .page-item:not(:nth-child(-n+3)):not(:nth-last-child(-n+3)):not(.active):not(.disabled) {
      display: none;
    }
    
    /* Показываем только первые две и последнюю страницы */
    .pagination .page-item:nth-child(3):not(.active) ~ .page-item:not(:nth-last-child(-n+3)):not(.active):not(.disabled) {
      display: none;
    }
    
    /* Стиль для стрелок в пагинации */
    .pagination .page-link {
      padding: 0.25rem 0.75rem;
    }
    
    /* Стили для кнопок фильтрации */
    .filter-buttons {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      margin-bottom: 1rem;
    }
    
    .filter-buttons .btn {
      width: 100%;
      text-align: center;
      padding: 0.5rem;
    }
    
    /* Скрываем кнопки массовых действий */
    #followSelected,
    #unfollowSelected {
      display: none;
    }
    #companiesTable tbody tr:hover {
        background-color: inherit !important; /* Отключаем изменение фона при наведении */
    }
    table#companiesTable.dataTable.table-hover tbody tr:hover {
        --dt-row-hover: 0, 0, 0, 0; /* Устанавливаем полную прозрачность */
    }
    /* Стилизация ячейки с датой публикации - перемещаем в правый нижний угол */
    #companiesTable td.date-column {
        position: absolute;
        bottom: 0.5rem;
        right: 0.5rem;
        border-bottom: none;
        padding: 0;
        width: auto;
        background: transparent;
        font-size: 0.75rem; /* Меньший шрифт */
        color: #6c757d; /* Серый цвет как в телеграм */
        text-align: right;
    }
    
    /* Добавляем отступ снизу для основного контента карточки */
    #companiesTable tr {
        padding-bottom: 1.75rem; /* Дополнительный отступ снизу для даты */
    }
    
    /* Скрываем label для даты */
    #companiesTable td.date-column:before {
        display: none;
    }
  }

  /* Стили для лоадера таблицы */
  .table-container {
    position: relative;
    min-height: 200px; /* Минимальная высота, чтобы лоадер был виден */
}
.table-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none; /* Скрыт по умолчанию */
}
.table-loader.active {
    display: block; /* Показываем, когда активен */
}
/* Переиспользуем ваш существующий спиннер */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Скрываем таблицу во время загрузки */
#companiesTable.loading {
    visibility: hidden;
}

/* Улучшения для мобильного меню */

@media (max-width: 991.98px) {
    /* Улучшаем существующий стиль navbar-collapse */
    .navbar-collapse {
        background-color: var(--dark-color);
        padding: 1rem;
        border-radius: 12px;
        margin-top: 0.5rem;
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }

    /* Стили для dropdown на мобильных - делаем его раскрытым по умолчанию */
    .nav-item.dropdown .dropdown-menu {
        position: static !important;
        transform: none !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        margin-top: 15px;
        padding: 0;
    }

    /* Стили для заголовка пользователя (существующий dropdown-toggle) */
    .nav-item.dropdown .nav-link.dropdown-toggle {
        color: white !important;
        background: rgba(255,255,255,0.1);
        border-radius: 12px;
        padding: 15px !important;
        margin-bottom: 0;
        pointer-events: none !important;
        cursor: default !important;
    }

    /* Убираем стрелку dropdown на мобильных */
    .nav-item.dropdown .nav-link.dropdown-toggle::after {
        display: none;
    }

    /* Стили для пунктов меню в мобильной версии */
    .navbar-collapse .dropdown-item {
        color: rgba(255,255,255,0.85) !important;
        padding: 12px 15px;
        background: transparent !important;
        border-radius: 8px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        margin: 2px 0;
    }

    .navbar-collapse .dropdown-item:hover {
        background: rgba(255,255,255,0.1) !important;
        color: white !important;
        transform: translateX(5px);
    }

    .navbar-collapse .dropdown-item i {
        margin-right: 12px;
        width: 20px;
        color: var(--primary-color);
        font-size: 1.1rem;
    }

    /* Стили для разделителя */
    .navbar-collapse .dropdown-divider {
        border-color: rgba(255,255,255,0.1);
        margin: 10px 0;
    }

    /* Стили для кнопки выхода */
    .navbar-collapse .dropdown-item.text-danger {
        color: #ff6b6b !important;
        margin-top: 5px;
        padding-top: 15px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .navbar-collapse .dropdown-item.text-danger:hover {
        background: rgba(255, 107, 107, 0.1) !important;
        color: #ff6b6b !important;
    }

    .navbar-collapse .dropdown-item.text-danger i {
        color: #ff6b6b !important;
    }

    /* Анимация появления мобильного меню */
    .navbar-collapse.collapsing,
    .navbar-collapse.show {
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ============================================
   Унифицированные стили карточек для всех страниц
   ============================================ */

/* Стандартные Bootstrap карточки */
.card.border-0.shadow-sm {
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease;
}

.card.border-0.shadow-sm:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
}

/* Кастомные карточки (faq-category, feature-card, benefit-card, stat-card, comparison-card) */
.faq-category,
.feature-card,
.benefit-card,
.stat-card,
.comparison-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-category:hover,
.feature-card:hover,
.benefit-card:hover,
.stat-card:hover,
.comparison-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ============================================
   Унифицированные стили аккордеона (modern-accordion)
   ============================================ */

.modern-accordion {
    padding: 0;
}

.modern-accordion .accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.modern-accordion .accordion-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.modern-accordion .accordion-header {
    border-radius: 12px;
}

.modern-accordion .accordion-button {
    background: white;
    border: none;
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
}

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

.modern-accordion .accordion-button:not(.collapsed) .faq-icon {
    color: white;
}

.modern-accordion .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2);
}

.modern-accordion .accordion-button::after {
    background-image: none;
    content: '+';
    font-size: 1.5rem;
    font-weight: bold;
    width: auto;
    height: auto;
    transform: none;
    transition: all 0.3s ease;
}

.modern-accordion .accordion-button:not(.collapsed)::after {
    content: '−';
    transform: rotate(0deg);
}

.modern-accordion .accordion-body {
    padding: 1.5rem;
    background: #fafbfc;
    font-size: 1rem;
    line-height: 1.6;
}

.faq-icon {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Медиа-запросы для аккордеона */
@media (max-width: 768px) {
    .modern-accordion {
        padding: 0 1rem 1rem 1rem;
    }
    
    .modern-accordion .accordion-button {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .modern-accordion .accordion-body {
        padding: 1rem;
    }
}

/* ============================================
   Унифицированные стили для Hero секций
   ============================================ */

.faq-hero,
.about-hero {
    background: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.faq-hero::before,
.about-hero::before {
    display: none; /* Убираем декоративные элементы для B2B */
}

/* ============================================
   Унифицированные стили для CTA секций
   ============================================ */

.cta-section {
    background: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    display: none; /* Убираем декоративные элементы для B2B */
}

.cta-section .btn-light {
    transition: all 0.3s ease;
    border: none;
}

.cta-section .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
}

/* ============================================
   Унифицированные стили для статистики
   ============================================ */

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }
}

/* ============================================
   Унифицированные стили для Contact карточек
   ============================================ */

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.15);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
}

/* ============================================
   Общие компоненты (используются на нескольких страницах)
   ============================================ */

.highlight-text {
    background: white;
    color: var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.btn-modern {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: inline-block;
}

.btn-modern:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: var(--primary-color);
    text-decoration: none;
}

/* ============================================
   Стили для Comparison Card (Без ПОНЦ vs С ПОНЦ)
   ============================================ */

.comparison-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.comparison-card-without {
    border-top: 3px solid #dc3545;
}

.comparison-card-with {
    border-top: 3px solid var(--primary-color);
}

.comparison-header {
    padding: 1.5rem 1.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.comparison-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    transition: all 0.3s ease;
}

.comparison-icon img {
    max-width: 100%;
    max-height: 100%;
}

.comparison-icon-without {
    background: #dc3545;
    color: white;
}

.comparison-icon-with {
    background: var(--primary-color);
    color: white;
}

.comparison-icon-with .comparison-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
    /* Если логотип цветной, раскомментируйте строку ниже для инверсии в белый */
    /* filter: brightness(0) invert(1); */
}

.comparison-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.comparison-header p {
    font-size: 0.9rem;
}

.comparison-body {
    padding: 1.5rem;
    flex: 1;
}

.comparison-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparison-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.comparison-list li:last-child {
    border-bottom: none;
}

.comparison-list li:hover {
    padding-left: 0.25rem;
}

.comparison-list li svg {
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.comparison-list li span {
    flex: 1;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .comparison-header {
        padding: 1.25rem 1.25rem 0.75rem;
    }
    
    .comparison-body {
        padding: 1.25rem;
    }
    
    .comparison-list li {
        padding: 0.6rem 0;
        font-size: 0.9rem;
    }
}

/* ============================================
   Стили для FAQ Search Box
   ============================================ */

.faq-search-box {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 600px;
}

.search-input {
    border: none;
    background: transparent;
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    border-radius: 16px;
}

.search-input:focus {
    outline: none;
    box-shadow: none;
}

.search-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* ============================================
   Стили для Category Header (FAQ)
   ============================================ */

.category-header {
    background: var(--primary-color);
    color: white;
    padding: 1.5rem;
    position: relative;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-header-content {
    flex: 1;
}

@media (max-width: 768px) {
    .category-header {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}