/* mobile.css - Адаптивные стили для мобильных устройств */
/* По умолчанию скрываем мобильные элементы */
.mobile-menu-toggle, 
.mobile-contacts, 
.mobile-quick-links,
.mobile-menu-vertical {
    display: none;
}

@media screen and (max-width: 768px) {
    /* Скрываем десктопное меню на мобильных */
    .desktop-menu {
        display: none !important;
    }
    
    /* Скрываем десктопные контакты в боковой панели */
    .desktop-contacts {
        display: none !important;
    }
    
    /* Показываем мобильные контакты */
    .mobile-contacts {
        display: block !important;
        background: #f8f8f8;
        padding: 15px;
        margin: 10px 0;
        border-radius: 5px;
        border: 1px solid #ddd;
        text-align: center;
    }
    
    .mobile-contacts .contacts-header {
        font-weight: bold;
        margin-bottom: 10px;
        color: #6666cc;
        font-size: 16px;
    }
    
    .mobile-contacts .phone-numbers {
        line-height: 1.6;
        font-size: 14px;
    }
    
    /* Показываем кнопку мобильного меню */
    .mobile-menu-toggle {
        display: block !important;
        background: #6666cc;
        color: white;
        padding: 12px;
        text-align: center;
        cursor: pointer;
        font-weight: bold;
        font-size: 16px;
        width: 100%;
        border: none;
    }
    
    /* Показываем мобильные быстрые ссылки */
    .mobile-quick-links {
        display: block !important;
    }
    
    /* Показываем мобильное вертикальное меню */
    .mobile-menu-vertical {
        display: block !important;
    }
	.mobile-menu {
        display: block !important;
    }
    
    .mobile-nav-list {
        list-style: none;
        margin: 0;
        padding: 0;
        width: 100%;
    }
    
    .mobile-nav-list li {
        border-bottom: 1px solid #e0e0e0;
    }
    
    .mobile-nav-list li:last-child {
        border-bottom: none;
    }
    
    .mobile-nav-list a {
        display: block;
        padding: 12px 15px;
        text-decoration: none;
        color: #333;
        font-size: 15px;
        font-weight: 500;
        transition: background-color 0.3s ease, color 0.3s ease;
        background: #f8f9fa;
    }
    
    .mobile-nav-list a:hover {
        background: #6666cc;
        color: white;
    }
    
    /* Стили для выбора языка в мобильной версии */
    .language-selector-mobile {
        background: #e9ecef !important;
        padding: 12px 15px;
    }
    
    .lang-label {
        display: block;
        font-weight: bold;
        margin-bottom: 10px;
        color: #495057;
        font-size: 14px;
    }
    
    .lang-options {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .lang-option {
        text-align: center;
        padding: 10px;
        background: white;
        border: 1px solid #dee2e6;
        border-radius: 4px;
        font-size: 14px;
        color: #495057;
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    .lang-option:hover,
    .lang-option.active {
        background: #6666cc;
        color: white;
        border-color: #6666cc;
    }
    
    /* Адаптируем основную таблицу */
    .main-table {
        width: 100% !important;
    }
    
    .main-content-table {
        display: block !important;
    }
    
    .sidebar-cell, .gap-cell {
        display: none !important;
        width: 0 !important;
    }
    
    .content-cell {
        display: block !important;
        width: 100% !important;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    /* Адаптируем изображения */
    img {
        max-width: 100%;
        height: auto;
    }
    
    .divider-img {
        width: 100% !important;
        height: auto !important;
    }
    
    /* Уменьшаем высоту шапки */
    .header-row {
        height: auto !important;
    }
    
    .spacer-row {
        height: 10px !important;
    }
    
    /* Адаптируем таблицы в контенте */
    table {
        width: 100% !important;
    }
    
    /* Улучшаем читаемость текста */
    body {
        font-size: 14px;
        line-height: 1.4;
        margin: 0;
        padding: 0;
    }
    
    /* Быстрые ссылки в мобильной версии */
    .quick-links {
        text-align: center;
        padding: 10px;
        background: #f0f0f0;
        margin: 5px 0;
    }
    
    .quick-links a {
        display: inline-block;
        margin: 0 5px;
    }
}

@media screen and (max-width: 480px) {
    /* Дополнительные стили для очень маленьких экранов */
    body {
        font-size: 13px;
    }
    
    .mobile-menu-toggle {
        font-size: 15px;
        padding: 10px;
    }
    
    .mobile-contacts {
        padding: 10px;
        margin: 8px 0;
    }
    
    .mobile-contacts .contacts-header {
        font-size: 15px;
    }
    
    .mobile-contacts .phone-numbers {
        font-size: 13px;
    }
    
    .mobile-nav-list a {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .language-selector-mobile {
        padding: 10px 12px;
    }
    
    .lang-label {
        font-size: 13px;
    }
    
    .lang-option {
        padding: 8px;
        font-size: 13px;
    }
    
    .quick-links a {
        margin: 0 3px;
    }
    
    .content-cell {
        padding: 0 5px;
    }
}

/* Убедимся, что на десктопе мобильные элементы скрыты */
@media screen and (min-width: 769px) {
    .mobile-menu-toggle, 
    .mobile-contacts, 
    .mobile-quick-links,
    .mobile-menu-vertical {
        display: none !important;
    }
    
    .desktop-menu {
        display: block !important;
    }
}

/* Стили для фильтров магазина */
.filters-container {
    width: 100%;
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

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

.filter-label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
}

.filter-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.filter-submit {
    text-align: center;
    margin-top: 20px;
}

.filter-button {
    background: #6666cc;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.filter-button:hover {
    background: #5555bb;
}

/* Десктопная версия фильтров */
@media screen and (min-width: 769px) {
    .filters-container {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        align-items: end;
    }
    
    .filter-group {
        flex: 1;
        min-width: 150px;
        margin-bottom: 0;
    }
    
    .filter-submit {
        flex: 0 0 auto;
        margin-top: 0;
    }
}

/* Мобильная версия фильтров */
@media screen and (max-width: 768px) {
    .filters-container {
        padding: 10px;
    }
    
    .filter-group {
        margin-bottom: 12px;
    }
    
    .filter-label {
        font-size: 13px;
    }
    
    .filter-select {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .filter-button {
        width: 100%;
        padding: 12px;
        font-size: 15px;
    }
}

@media screen and (max-width: 480px) {
    .filters-container {
        padding: 8px;
    }
    
    .filter-label {
        font-size: 12px;
    }
    
    .filter-select {
        font-size: 12px;
        padding: 5px 8px;
    }
    
    .filter-button {
        font-size: 14px;
        padding: 10px;
    }
}
/* Стили для кнопок футера в мобильной версии */
.footer-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.footer-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #6666cc;
    color: white;
    text-decoration: none;
    padding: 14px 8px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    border: 2px solid #6666cc;
    transition: all 0.3s ease;
    min-height: 50px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.footer-button:hover,
.footer-button:focus {
    background: white;
    color: #6666cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    text-decoration: none;
}

.footer-button-main {
    background: #4CAF50;
    border-color: #4CAF50;
    grid-column: 1 / -1;
    font-size: 16px;
    font-weight: 700;
}

.footer-button-main:hover,
.footer-button-main:focus {
    background: white;
    color: #4CAF50;
}

.button-text {
    display: block;
    text-align: center;
    line-height: 1.2;
}

/* Адаптация для очень маленьких экранов */
@media screen and (max-width: 480px) {
    .footer-buttons-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .footer-button {
        padding: 16px 10px;
        font-size: 15px;
        min-height: 55px;
    }
    
    .footer-button-main {
        font-size: 17px;
        min-height: 60px;
    }
}

/* Для планшетов и больших мобильных */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .footer-buttons-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .footer-button {
        padding: 16px 10px;
        font-size: 15px;
        min-height: 60px;
    }
    
    .footer-button-main {
        grid-column: 1 / -1;
        font-size: 17px;
        min-height: 65px;
    }
}

/* Десктопная версия - скрываем кнопки и показываем обычные ссылки */
@media screen and (min-width: 769px) {
    .footer-buttons-grid {
        display: none;
    }
    
    .footer-nav-list {
        display: flex !important;
        list-style: none;
        margin: 0;
        padding: 0;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 15px;
    }
    
    .footer-nav-list li {
        margin: 0;
    }
    
    .footer-nav-link {
        color: #6666cc;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        padding: 5px 8px;
        border-radius: 4px;
        transition: all 0.3s ease;
        white-space: nowrap;
    }
    
    .footer-nav-link:hover,
    .footer-nav-link:focus {
        color: #5555bb;
        background: rgba(102, 102, 204, 0.1);
        text-decoration: none;
    }
}

/* Улучшенная доступность для кнопок */
.footer-button:focus {
    outline: 3px solid #6666cc;
    outline-offset: 2px;
}

.footer-button-main:focus {
    outline: 3px solid #4CAF50;
}

/* Анимация при нажатии */
.footer-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Поддержка темной темы */
@media (prefers-color-scheme: dark) {
    .footer-button {
        background: #4a5568;
        border-color: #4a5568;
        color: white;
    }
    
    .footer-button:hover,
    .footer-button:focus {
        background: #2d3748;
        color: #90cdf4;
        border-color: #90cdf4;
    }
    
    .footer-button-main {
        background: #2f855a;
        border-color: #2f855a;
    }
    
    .footer-button-main:hover,
    .footer-button-main:focus {
        background: #2d3748;
        color: #68d391;
        border-color: #68d391;
    }
}
/* Общие стили футера для мобильных */
.site-footer {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    margin-top: 30px;
    padding: 25px 0 15px 0;
}

.footer-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-nav {
    margin-bottom: 20px;
}

.footer-nav-container {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 20px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
}

.footer-counters,
.footer-copyright {
    width: 100%;
}

.copyright-text {
    margin: 0;
    color: #6c757d;
    font-size: 13px;
    line-height: 1.5;
}

.company-link {
    color: #6666cc;
    text-decoration: none;
    font-weight: 600;
}

.company-link:hover {
    color: #5555bb;
    text-decoration: underline;
}