/* Основные стили для интернет-магазина Elmika */

.text-blue { color: #007bff; }
.bg-blue { background-color: #007bff !important; }
.border-blue { border-color: #007bff !important; }
.text-teal { color: #20c997; }
.bg-teal { background-color: #20c997 !important; }
.border-teal { border-color: #20c997 !important; }

.logo { height: 70px; }
.search-form .form-control {
    border-radius: 30px 0 0 30px;
}
.search-form .btn {
    border-radius: 0 30px 30px 0;
}
.cart-icon .badge {
    font-size: 10px;
    vertical-align: top;
    margin-left: 5px;
}
.accordion-button {
    background: transparent;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    padding: 1rem 1.25rem;
    border: 1px solid #dee2e6; /* Добавляем границу со всех сторон */
    font-size: 1rem;
    color: #212529;
    text-decoration: none;
}

.accordion-button.has-children {
    pointer-events: none; /* Отключаем клики на всей кнопке */
}

.accordion-button.no-children {
    pointer-events: none; /* Отключаем клики на всей кнопке */
}

.accordion-button:not(.collapsed) {
    background: #f8f9fa;
    box-shadow: none;
}

/* Для ссылки внутри аккордеона разрешаем клики */
.accordion-button .category-link {
    pointer-events: auto;
}

/* Для кнопки переключения разрешаем клики */
.toggle-button {
    pointer-events: auto;
}

/* Стили для стрелок аккордеона */
.accordion-arrow {
    position: relative;
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    margin-left: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

/* Для кнопок без стрелки */
.accordion-button:not(.has-children) {
    justify-content: flex-start;
}

.accordion-arrow .arrow-down,
.accordion-arrow .arrow-up {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.2s ease;
}

.accordion-arrow .arrow-up {
    opacity: 0;
}

.accordion-button:not(.collapsed) .accordion-arrow .arrow-down {
    opacity: 0;
}

.accordion-button:not(.collapsed) .accordion-arrow .arrow-up {
    opacity: 1;
}

.accordion-button:after {
    display: none !important;
}

/* Стили для ссылки внутри аккордеона */
.accordion-button .category-link {
    flex-grow: 1;
    display: block;
    text-align: left;
}

/* Стили для элемента, который будет работать как кнопка переключения */
.toggle-button {
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
    pointer-events: auto; /* Разрешаем клики на стрелке */
}

/* Меню — МАКСИМАЛЬНЫЕ ОТСТУПЫ */
.navbar {
    padding: 0.75rem 0;
}

.navbar-nav {
    gap: 3rem !important; /* 48px между пунктами */
}

.navbar-nav .nav-link {
    padding: 0.5rem 1.5rem !important; /* внутренние отступы */
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
}

/* Hover эффект */
.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
}

/* Стили для выпадающих меню в навигации */
.navbar-nav .dropdown-menu {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.navbar-nav .dropdown-item {
    color: #212529;
}

.navbar-nav .dropdown-item:hover {
    background-color: #f8f9fa;
}

.navbar-nav .dropdown-item:focus {
    background-color: #e9ecef;
}

/* На мобильных — уменьшаем */
@media (max-width: 992px) {
    .navbar-nav {
        gap: 1rem !important;
    }
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem !important;
    }
}

/* Стили для карточек товаров */
.product-card {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

/* Стили для фильтров */
.filters {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Стили для компактной шапки */
.top-header .address {
    line-height: 1.2;
}
.top-header .small {
    font-size: 0.875rem;
}
.top-header .py-3 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* Стили для равномерного распределения колонок в шапке */
.top-header .container {
    max-width: 100%;
}
/* Стили для шапки */
.top-header .container {
    max-width: 1200px; /* Ограничиваем ширину контейнера как в основном контенте */
    margin: 0 auto; /* Центрируем контейнер */
    padding: 0 15px; /* Добавляем отступы по бокам */
}
.top-header .row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Выравнивание элементов по краям */
    flex-wrap: nowrap; /* Запрещаем перенос колонок на новую строку */
}

/* Для колонок с фиксированной шириной (логотип, форма поиска и т.д.) */
.top-header .col-auto {
    flex: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 10px; /* Небольшие отступы между колонками */
}

/* Ограничиваем растяжение центральных колонок */
.top-header .col {
    flex: 1; /* Ограничиваем растяжение */
    min-width: 0;
    text-align: center;
    padding: 0 5px; /* Уменьшаем отступы между колонками */
    max-width: 15%; /* Уменьшаем максимальную ширину колонок */
}

/* Выравнивание содержимого по левому краю для логотипа */
.top-header .col-auto:first-child {
    justify-content: flex-start;
}

/* Выравнивание содержимого по правому краю для последней колонки */
.top-header .col-auto:last-child {
    justify-content: flex-end;
    text-align: right;
}


/* Дополнительные стили для элементов в шапке */
.top-header .logo {
    max-height: 70px;
    width: auto;
}

.top-header .search-form {
    width: 100%;
    max-width: 200px; /* Уменьшаем максимальную ширину поисковой формы */
}

.top-header .small {
    line-height: 1.3;
    font-size: 0.8rem; /* Уменьшаем размер шрифта для компактности */
}

.top-header .btn:not(.search-form .btn) {
    white-space: nowrap;
    font-size: 0.8rem; /* Уменьшаем размер шрифта кнопок */
    padding: 0.25rem 0.5rem; /* Уменьшаем внутренние отступы кнопок */
}

/* Ограничиваем ширину для колонок с контактной информацией */
.top-header .col.text-center {
    max-width: 10%; /* Уменьшаем ширину колонок с контактной информацией */
}

/* Стили для элементов с контактной информацией */
.top-header .contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

/* Стили для email - отображаем метку и значение в одной строке */
.top-header .contact-info.email-info {
    flex-direction: row;
    gap: 5px; /* небольшой отступ между меткой и значением */
    flex-wrap: wrap; /* разрешаем перенос на новую строку при необходимости */
}

/* Предотвращаем разрыв строк для email и телефонов */
.top-header .contact-info a,
.top-header .contact-info div strong {
    white-space: nowrap;
}

/* Для email объединяем метку и значение в одной строке */
.top-header .contact-info.email-info .contact-label,
.top-header .contact-info.email-info .contact-value {
    white-space: nowrap;
    display: inline-block;
}

/* Стили для адреса в две строки */
.top-header .address-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.top-header .address-block div:last-child {
    white-space: nowrap; /* Предотвращаем разрыв строки для улицы и номера */
}

/* Стили для выравнивания элементов в последней колонке */
.top-header .col-auto.text-end {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.top-header .col-auto.text-end .d-flex {
    width: auto;
    justify-content: flex-end;
}

.top-header .logo {
    max-height: 70px;
    width: auto;
}

.top-header .search-form {
    width: 100%;
    max-width: 300px;
}

.top-header .small {
    line-height: 1.3;
}

.top-header .btn:not(.search-form .btn) {
    white-space: nowrap;
}


/* Стили для карточек товаров */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.card-img-top {
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.card-img-top:hover {
    opacity: 0.9;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    height: 2.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.price {
    font-weight: 700;
    font-size: 1.1rem;
    color: #007bff;
    margin: 0.5rem 0;
}

.btn-blue {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-blue:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: white;
}

.btn-teal {
    background-color: #20c997;
    border-color: #20c997;
    color: white;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-teal:hover {
    background-color: #1aa179;
    border-color: #1aa179;
    color: white;
}

.btn-orange {
    background-color: #D97706;
    border-color: #D97706;
    color: white;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-orange:hover {
    background-color: #B45309;
    border-color: #B45309;
    color: white;
}

/* Стили для фильтров */
.filter-section {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.filter-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-option {
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
}

.filter-option input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* Стили для описания категории */
/* .category-description {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid #007bff;
} */

/* Стили для подкатегорий */
.subcategory-card .card-img-top {
    height: 150px;
}

/* Стили для товаров */
.product-card .card-img-top {
    height: 200px;
}

/* Стили для адаптивности карточек */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .card-title {
        font-size: 0.9rem;
    }
    
    .price {
        font-size: 1rem;
    }
}

/* Карточки категорий и товаров */
.category-card {
    transition: all 0.25s ease;
    background: #fff;
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15) !important;
}
.category-card .card-img-top {
    height: 180px;
    object-fit: contain;
    background: #fff;
    padding: 15px;
    border-bottom: 1px solid #eee;
}
.category-card .card-body {
    min-height: 70px;
    font-size: 0.95rem;
}

/* Обеспечиваем совместимость с существующими карточками на главной */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Хлебные крошки */
.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #007bff;
    font-weight: bold;
}
.breadcrumb a {
    color: #007bff;
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}

/* Убираем отступы у контейнера в main */
main .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

/* Дополнительные стили для главной страницы, чтобы избежать проблем с макетом */
main .row.g-4 {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

main .col-lg-3, main .col-md-4, main .col-sm-6 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Убираем отступы у контейнера в main */
main .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

/* Поворот стрелки при открытии/закрытии */
.accordion-button:not(.collapsed) .accordion-arrow {
    transform: rotate(180deg);
}

/* Стили для активной категории */
.accordion-button.active-category {
    background-color: #f8f9fa !important;
    font-weight: 600;
    border-left: 3px solid #007bff !important; /* Добавляем синюю полосу слева для лучшей видимости */
}

/* Стили для активной ссылки категории */
.category-link.active-category-link {
    color: #007bff !important;
    font-weight: 600;
}

/* Убедимся, что активная категория остается подсвеченной при различных состояниях */
.accordion-button.active-category:not(.collapsed) {
    background-color: #f8f9fa !important;
    border-left: 3px solid #007bff !important;
}

/* Стили для активной подкатегории */
.accordion-body a.active-subcategory-link {
    color: #007bff !important;
    font-weight: 600;
    background-color: #e9ecef !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 0.25rem !important;
}

/* Убираем нижнюю границу у последнего элемента аккордеона */
.accordion-item:last-child .accordion-button {
    border-bottom: 1px solid #dee2e6;
}

/* Убираем верхнюю границу у раскрытого аккордеона, чтобы не было двойной границы */
.accordion-collapse {
    border: 1px solid #dee2e6;
    border-top: none;
}

/* Убираем нижнюю границу у последнего элемента аккордеона */
.accordion-item:last-child .accordion-button {
    border-bottom: 1px solid #dee2e6;
}

/* Убираем верхнюю границу у раскрытого аккордеона, чтобы не было двойной границы */
.accordion-collapse {
    border: 1px solid #dee2e6;
    border-top: none;
}

/* Стили для характеристик товара */
.specs dl {
    margin-bottom: 1rem;
}
.specs dt {
    font-weight: bold;
}

/* Стили для вариантов товара */
.size-buttons .btn,
.thickness-buttons .btn {
    min-width: 80px;
    transition: all 0.2s ease;
}

.size-buttons .btn.active,
.thickness-buttons .btn.active {
    background: #007bff !important;
    color: white !important;
    border-color: #007bff !important;
}

.size-buttons .btn:disabled,
.thickness-buttons .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qty-group .btn {
    padding: 0.375rem 0.75rem;
}

.qty-group input {
    text-align: center;
}

.price-section h3 {
    margin-bottom: 0.5rem;
}

.price-section h4 {
    margin: 0;
    color: #007bff;
    font-weight: bold;
}

/* Адаптивность для кнопок вариантов */
@media (max-width: 768px) {
    .size-buttons,
    .thickness-buttons {
        flex-direction: column;
    }
    
    .size-buttons .btn,
    .thickness-buttons .btn {
        width: 100%;
        margin-bottom: 0.25rem;
    }
}

.product-description {
    text-align: left !important;
}

/* Стили для страницы деталей товара */
.product-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.ui-group-size {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ui-size {
    position: relative;
    display: inline-block;
}

.ui-size__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ui-size__btn {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.ui-size__input:checked + .ui-size__btn {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

.ui-size__btn:hover {
    border-color: #007bff;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .product-detail-container {
        flex-direction: column;
    }
    
    .product-image-section,
    .product-info-section {
        width: 100%;
    }
}

/* Стили для отображения границ таблицы на веб-страницах */
/* Позволяем стилям из редактора переопределять стили по умолчанию */

/* Убираем стили по умолчанию для таблиц в контенте страницы */
.page-content .table,
.page-content .table th,
.page-content .table td,
.page-body .table,
.page-body .table th,
.page-body .table td,
.content .table,
.content .table th,
.content .table td {
    border: none !important;
}

/* Более конкретные селекторы для таблиц в контенте страницы */
.page-content table,
.page-body table,
.content table {
    width: 100% !important;
    margin-bottom: 1rem !important;
    border-collapse: collapse !important;
}

/* Позволяем стилям из редактора иметь приоритет */
.page-content table *,
.page-content table *:not([style*="border"]),
.page-body table *,
.page-body table *:not([style*="border"]),
.content table *,
.content table *:not([style*="border"]) {
    border: inherit !important;
}

/* Для элементов с установленными границами в редакторе */
.page-content table[style*="border"] *,
.page-content table th[style*="border"],
.page-content table td[style*="border"],
.page-body table[style*="border"] *,
.page-body table th[style*="border"],
.page-body table td[style*="border"],
.content table[style*="border"] *,
.content table th[style*="border"],
.content table td[style*="border"] {
    border: inherit !important;
}

.page-content table th,
.page-content table td,
.page-body table th,
.page-body table td,
.content table th,
.content table td {
    padding: 0.75rem !important;
    vertical-align: top !important;
    background: inherit !important;
}

/* Применяем те же правила ко всем таблицам на сайте */
table[style*="border"],
table[style*="border"] th,
table[style*="border"] td,
table * {
    border: inherit !important;
}

/* Стили для модального окна "Заказать звонок" */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999 !important;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.modal-overlay.show {
    display: flex !important;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

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

.modal-header {
    padding: 15px 20px 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.modal-header .modal-title {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.form-group .form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group .form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: normal;
    font-size: 0.85rem;
    color: #666;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.checkbox-group a {
    color: #007bff;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

.form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    display: none;
    text-align: center;
    font-size: 0.95rem;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.modal-body .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
}

.modal-body .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.modal-body .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.modal-body .btn-primary:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
    
    .modal-content {
        max-width: 100%;
        max-height: 85vh;
        border-radius: 12px 12px 0 0;
        margin: 0;
        animation: modalSlideUp 0.3s ease-out;
    }
    
    @keyframes modalSlideUp {
        from { 
            opacity: 0; 
            transform: translateY(100%); 
        }
        to { 
            opacity: 1; 
            transform: translateY(0); 
        }
    }
    
    .modal-header {
        padding: 12px 15px 10px;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .modal-header .modal-title {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group .form-control {
        padding: 12px 15px;
        font-size: 16px; /* Предотвращает зум на iPhone */
    }
    
    .checkbox-group label {
        font-size: 0.8rem;
        gap: 10px;
    }
    
    .modal-body .btn {
        padding: 14px 20px;
        font-size: 1rem;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .modal-content {
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 10px 12px 8px;
    }
    
    .modal-body {
        padding: 12px;
    }
}
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
}

.checkbox-group label {
    margin-bottom: 0;
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
}

.checkbox-group a {
    color: #0d6efd;
    text-decoration: underline;
}

/* Уточняем селекторы для кнопок модального окна */
.modal-content .btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 10px 20px;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

.modal-content .btn-primary {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.modal-content .btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.modal-content .btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
    text-align: center;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Адаптивность */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px auto;
    }

    .modal-header {
        padding: 15px 15px 5px;
    }

    .modal-body {
        padding: 15px;
    }
    
    /* Логотип на мобильном */
    .logo {
        max-height: 40px !important;
    }
    
    /* Сайдбар на мобильном */
    .accordion-item {
        margin-bottom: 0;
    }
    
    /* Убираем лишние отступы */
    .top-header .row {
        margin: 0;
    }
    
    .top-header .col-6,
    .top-header .col-12 {
        padding-left: 5px;
        padding-right: 5px;
    }
}

@media (max-width: 576px) {
    /* Очень маленькие экраны */
    .logo {
        max-height: 35px !important;
    }
    
    .search-form .input-group {
        max-width: 100%;
    }
    
    .search-form .form-control {
        min-width: 0;
    }
}

/* Стили для мобильного меню */
@media (max-width: 767px) {
    .nav-link {
        color: #212529;
        transition: background-color 0.2s;
    }
    
    .nav-link:hover {
        background-color: #f8f9fa;
    }
    
    .nav-link.border-bottom {
        border-color: #dee2e6 !important;
    }
    
    #mobileInfoMenu .d-block {
        color: #6c757d;
        font-size: 0.9rem;
    }
    
    #mobileInfoMenu .d-block:hover {
        color: #007bff;
    }
}
