/* Файл для исправления проблем с вёрсткой */

/* Сброс и переопределение стилей для избежания конфликтов */
body {
    overflow-x: hidden;
}

/* Переопределение основных контейнеров */
body .container, 
.container, 
main .container {
    width: 100% !important;
    max-width: 1140px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-right: 15px !important;
    padding-left: 15px !important;
    box-sizing: border-box !important;
    display: block !important;
    flex-direction: column !important;
}

/* Исключение для хедера и футера */
header .container,
.header-top .container,
.header-main .container,
.mobile-header-main .container,
footer .container,
.footer-top .container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Стили для страниц с контентом */
.page-container,
.services-page,
.cosmetologists-page,
.reviews-page,
.contacts-page,
.booking-page,
.login-page,
.register-page,
.history-container {
    display: block !important;
    flex-direction: column !important;
}

/* Стили для футера */
footer {
    display: block !important;
    width: 100% !important;
    background-color: #333 !important;
    color: #fff !important;
    padding: 30px 0 20px !important;
}

/* Стили для десктопной версии футера */
.footer-desktop {
    display: block !important;
}

.footer-desktop .container {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.footer-desktop .footer-column {
    flex: 1 !important;
    min-width: 250px !important;
    padding: 0 15px !important;
    margin-bottom: 20px !important;
}

.footer-desktop .footer-logo {
    font-size: 24px !important;
    font-weight: bold !important;
    margin-bottom: 15px !important;
    color: #fff !important;
}

.footer-desktop p {
    color: #ccc !important;
    margin-bottom: 20px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.footer-desktop .footer-social {
    display: flex !important;
    margin-top: 20px !important;
}

.footer-desktop .footer-social a {
    margin-right: 15px !important;
    color: #fff !important;
    font-size: 20px !important;
}

.footer-desktop h4 {
    font-size: 18px !important;
    margin-bottom: 20px !important;
    color: #fff !important;
}

.footer-desktop ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-desktop ul li {
    margin-bottom: 10px !important;
}

.footer-desktop ul li a {
    color: #ccc !important;
    text-decoration: none !important;
}

.footer-desktop ul li a:hover {
    color: #fff !important;
}

.footer-desktop .contact-list li {
    display: flex !important;
    align-items: flex-start !important;
    margin-bottom: 15px !important;
    color: #ccc !important;
}

.footer-desktop .contact-list li i {
    margin-right: 10px !important;
    color: #a367dc !important;
    margin-top: 4px !important;
}

/* Стили для мобильной версии футера */
.footer-mobile {
    display: none !important;
    padding: 0 15px !important;
    text-align: center !important;
}

.footer-mobile-logo {
    font-size: 22px !important;
    font-weight: bold !important;
    margin-bottom: 15px !important;
    color: #fff !important;
    text-align: center !important;
}

.footer-mobile-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    margin-bottom: 20px !important;
}

.footer-mobile-nav a {
    color: #ccc !important;
    text-decoration: none !important;
    margin: 5px 10px !important;
    font-size: 14px !important;
}

.footer-mobile-nav a:hover {
    color: #fff !important;
}

.footer-mobile-contacts {
    margin-bottom: 20px !important;
}

.footer-mobile-contacts p {
    color: #ccc !important;
    margin-bottom: 10px !important;
    font-size: 14px !important;
}

.footer-mobile-contacts p i {
    margin-right: 8px !important;
    color: #a367dc !important;
}

.footer-mobile-social {
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 10px !important;
}

.footer-mobile-social a {
    margin: 0 10px !important;
    color: #fff !important;
    font-size: 20px !important;
}

.footer-bottom {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin-top: 20px !important;
    padding-top: 10px !important;
}

.copyright {
    color: #aaa !important;
    font-size: 14px !important;
}

.credits {
    color: #aaa !important;
    font-size: 12px !important;
    margin-top: 5px !important;
}

/* Стили для новой структуры футера */
.footer-columns-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    flex: 2 !important;
}

.footer-main-info {
    flex: 1 !important;
    padding-right: 30px !important;
}

.footer-nav, .footer-contacts {
    flex: 1 !important;
    min-width: 200px !important;
}

/* Адаптивные стили для футера */
@media (max-width: 768px) {
    /* Скрываем десктопную версию и показываем мобильную */
    .footer-desktop {
        display: none !important;
    }
    
    .footer-mobile {
        display: block !important;
    }
}

/* Стили для страницы косметологов */
.cosmetologist-card-large {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    margin-bottom: 30px !important;
}

.cosmetologist-image {
    width: 300px !important;
    flex-shrink: 0 !important;
}

.cosmetologist-details {
    flex: 1 !important;
    padding: 30px !important;
    display: block !important;
}

.cosmetologist-services {
    display: block !important;
    width: 100% !important;
}

.services-list {
    display: block !important;
    width: 100% !important;
}

.services-list li {
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
}

/* Стили для страницы услуг */
.filter-container {
    display: block !important;
    width: 100% !important;
    margin-bottom: 30px !important;
}

.price-range-container {
    display: block !important;
    width: 100% !important;
    margin-bottom: 20px !important;
}

.price-inputs {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 10px !important;
}

.price-input {
    display: flex !important;
    align-items: center !important;
}

.filter-actions {
    display: flex !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    margin-top: 20px !important;
}

/* Стили для сеток */
.services-grid,
.cosmetologists-grid,
.reviews-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
    gap: 20px !important;
    justify-content: space-between !important;
}

/* Стили для карточек */
.service-card,
.cosmetologist-card,
.review-card {
    display: flex !important;
    flex-direction: column !important;
}

/* Стили для форм */
form {
    display: block !important;
    width: 100% !important;
}

/* Стили для таблиц */
.table-responsive {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
}

/* Стили для строк таблиц */
tr {
    display: table-row !important;
}

/* Стили для ячеек таблиц */
td, th {
    display: table-cell !important;
}
