/* Общие стили */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 56px; /* Компенсация для fixed header */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Десктопное мега-меню */
.mega-menu .dropdown-menu {
    padding: 0;
    width: 500px; /* Фиксированная ширина */
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    display: none;
}

.mega-menu.show .dropdown-menu {
    display: flex;
}

.mega-menu-container {
    display: flex;
    min-height: 300px;
}

.categories-panel {
    width: 250px;
    padding: 15px;
    background: #f8f9fa;
    flex-shrink: 0; /* Запрещаем сжимание */
}

.subcategories-panel {
    width: 250px;
    padding: 15px;
    background: white;
    border-left: 1px solid #eee;
}

.mega-menu-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-item {
    margin-bottom: 8px;
}

.mega-menu-link {
    color: #555;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}

.mega-menu-link:hover {
    background: #e9ecef;
    color: #333;
}

.mega-menu-link .bi {
    margin-left: 10px;
    color: #999;
    font-size: 0.8rem;
}

.mega-menu-item.active .mega-menu-link {
    background: #e9ecef;
    font-weight: 500;
}



/* Мобильное меню */
@media (max-width: 991.98px) {
    .mega-menu .dropdown-menu {
        display: none !important;
    }
    
    .offcanvas-start {
        width: 300px;
    }
    
    .mobile-level {
        display: none;
        padding: 0;
    }
    
    .mobile-level.active {
        display: block;
    }
    
    .mobile-back {
        display: flex;
        align-items: center;
        padding: 12px 15px;
        background: #f8f9fa;
        border-bottom: 1px solid #eee;
        cursor: pointer;
    }
    
    .mobile-link {
        display: block;
        padding: 12px 15px;
        color: #333;
        text-decoration: none;
        border-bottom: 1px solid #eee;
        transition: background 0.2s;
    }
    
    .mobile-link:hover {
        background: #f1f1f1;
    }
    
    .mobile-link .bi {
        float: right;
        margin-top: 3px;
    }
    
    .mobile-category-title {
        padding: 12px 15px;
        font-weight: 600;
        border-bottom: 1px solid #eee;
        background: #f8f9fa;
    }


}

/* Общие стили для обеих кнопок */
.city-button, 
.city-button-mobile {
    font-size: 14px;
    /* font-size: 1rem;
    background-color: transparent;
    color: #636363;
    border: 1px solid #999898;
    border-radius: 4px;
    padding: 8px 12px; */
    transition: all 0.2s;
}

.city-button:hover,
.city-button-mobile:hover {
    background-color: #0d6efd;
    color: #f8f9fa;
}

/* Специфичные стили для мобильной версии */
.city-button-mobile {
    display: none; /* По умолчанию скрыта */
    padding: 8px; /* Более компактный padding */
}

/* Адаптация для мобильных */
@media (max-width: 991.98px) {
    .city-button {
        display: none; /* Скрываем десктопную версию */
    }
    
    .city-button-mobile {
        display: inline-block; /* Показываем мобильную версию */
    }
}

.login-button {
    background-color: transparent;
    border: 1px solid #999898;
    color: #636363;
}

.performer-button {
    background-color: #999898;
    border: none;
    color: #fff;
}


/* Основной контент */
.main-content {
    flex: 1; 
}

.hero-section {
    background-color: #ececec;
    color: #414141;
    padding: 100px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* строка поиска */
/* .search-box {
    display: flex;
    justify-content: center;
} */

.search-box {
    position: relative;
    width: 100%;
    justify-content: center;
    display: flex;
}

.search-input {
    width: 60%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
}

.search-button {
    padding: 10px 20px;
    background-color: #ff6b6b;
    border: none;
    border-radius: 0 5px 5px 0;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}


.suggestions-container {
    position: relative !important;
    height: auto !important;
}

/* Проверка всех родителей */
.search-box, .orderform, body, html {
    overflow: visible !important;
    position: static !important;
}

#suggestions {
    position: absolute;
    width: 100%;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    display: block !important; /* Принудительно */
    opacity: 1 !important;
    visibility: visible !important;
}

#suggestions .suggestion {
    padding: 8px 12px;
    cursor: pointer;
    color: #333;
}

#suggestions .suggestion:hover {
    background-color: #f5f5f5;
}

#suggestions.show {
    display: block; /* Показываем при наличии класса show */
}

.suggestion {
    padding: 10px 15px;
    color: #2d3748;
    cursor: pointer;
    transition: background 0.2s;
}

.suggestion:hover {
    background: #f7fafc;
}

.suggestion:not(:last-child) {
    border-bottom: 1px solid #e2e8f0;
}

/* Категории услуг */
.categories {
    padding: 60px 0;
    background-color: #fff;
}

.categories h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
}

.categories p {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 40px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background-color: #f1f1f1;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.2s;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card h3 {
    font-size: 1.2rem;
    margin: 0;
}

/* Футер */
.footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}
/* Последние статьи */
.latest-articles {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: #414141;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 20px;
}

.article-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.article-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
}

.article-link {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.article-link:hover {
    text-decoration: underline;
}


/* Фильтр */
/* .filter-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.filter-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #414141;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
} */

/* Карточки исполнителей */
/* .performers-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.performer-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.performer-header {
    margin-bottom: 15px;
}

.performer-name {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: #333;
}

.performer-status {
    font-size: 0.9rem;
    color: #666;
}

.performer-rating {
    margin-bottom: 15px;
}

.rating-value {
    font-size: 1.2rem;
    color: #ff6b6b;
    font-weight: bold;
}

.reviews {
    font-size: 0.9rem;
    color: #666;
}

.performer-verified {
    margin-bottom: 15px;
}

.verified-badge {
    font-size: 0.9rem;
    color: #007bff;
    margin-right: 10px;
}

.performer-qualification {
    margin-bottom: 15px;
}

.performer-qualification h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #333;
}

.performer-qualification p {
    font-size: 1rem;
    color: #666;
}

.performer-contact {
    margin-bottom: 15px;
}

.performer-contact button {
    width: 100%;
    margin-bottom: 10px;
}

.contact-note {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

.performer-location {
    margin-bottom: 15px;
}

.performer-location h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #333;
}

.performer-location p {
    font-size: 1rem;
    color: #666;
}

.location-link {
    font-size: 0.9rem;
    color: #007bff;
    text-decoration: none;
}

.location-link:hover {
    text-decoration: underline;
}

.performer-about {
    margin-bottom: 15px;
}

.performer-about h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #333;
}

.performer-about p {
    font-size: 1rem;
    color: #666;
}

.performer-experience {
    margin-bottom: 15px;
}

.performer-experience h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #333;
}

.performer-experience p {
    font-size: 1rem;
    color: #666;
}

.experience-link {
    font-size: 0.9rem;
    color: #007bff;
    text-decoration: none;
}

.experience-link:hover {
    text-decoration: underline;
}

.performer-reviews {
    margin-bottom: 15px;
}

.performer-reviews h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #333;
}

.performer-reviews p {
    font-size: 1rem;
    color: #666;
} */

/* Стили из вашего предпочтительного варианта */
        .filter-toggle {
            display: none;
            margin-bottom: 15px;
        }
        
        @media (max-width: 768px) {
            .filter-toggle {
                display: block;
            }
            
            .sidebar {
                display: none;
            }
            
            .sidebar.show {
                display: block;
                margin-bottom: 20px;
            }
        }
        
        .view-toggle {
            display: flex;
            justify-content: flex-end;
            margin-bottom: 15px;
        }
        
        .view-toggle .btn {
            padding: 5px 10px;
        }
        
        .performer-card {
            display: flex;
            flex-wrap: wrap;
            margin-bottom: 20px;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            transition: transform 0.3s, box-shadow 0.3s;
            background-color: #fff;
        }
        
        .performer-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        .performer-photo-container {
            position: relative;
            min-width: 150px;
            height: 150px;
        }
        
        .performer-photo {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 10px;
            cursor: pointer;
            transition: opacity 0.3s;
        }
        
        .performer-photo:hover {
            opacity: 0.9;
        }
        
        .performer-gallery {
            width: 100%;
            margin-top: 10px;
            position: relative;
        }
        
        .gallery-wrapper {
            position: relative;
            width: 100%;
            overflow: hidden;
        }
        
        .gallery-slider {
            display: flex;
            gap: 5px;
            width: calc(60px * 3 + 5px * 2);
            transition: transform 0.3s ease;
        }
        
        .gallery-slider img {
            width: 60px;
            height: 60px;
            object-fit: cover;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s;
            flex-shrink: 0;
        }
        
        .gallery-slider img:hover {
            opacity: 0.8;
            transform: scale(1.05);
        }
        
        .gallery-slider img.active {
            border: 2px solid #0d6efd;
            box-sizing: border-box;
        }
        
        .gallery-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 20px;
            height: 20px;
            background: rgba(255,255,255,0.8);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 1;
            box-shadow: 0 1px 3px rgba(0,0,0,0.2);
            border: none;
            color: #0d6efd;
        }
        
        .gallery-nav.prev {
            left: 0;
        }
        
        .gallery-nav.next {
            right: 0;
        }
        
        .gallery-nav:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        
        .back-to-profile {
            display: block;
            text-align: center;
            margin-top: 5px;
            font-size: 0.8rem;
            color: #0d6efd;
            cursor: pointer;
        }
        
        .back-to-profile:hover {
            text-decoration: underline;
        }
        
        .performer-info {
            flex: 1;
            min-width: 250px;
            padding: 15px;
        }
        
        .performer-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 10px;
        }
        
        .performer-name {
            font-size: 1.2rem;
            margin-bottom: 0;
            color: #333;
        }
        
        .performer-status {
            font-size: 0.8rem;
            color: #6c757d;
        }
        
        .performer-rating {
            display: flex;
            align-items: center;
            margin-bottom: 5px;
        }
        
        .rating-value {
            color: #fd7e14;
            font-weight: bold;
            margin-right: 5px;
        }
        
        .reviews {
            font-size: 0.8rem;
            color: #6c757d;
        }
        
        .performer-verified {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            margin-bottom: 10px;
        }
        
        .verified-badge {
            font-size: 0.8rem;
            color: #0d6efd;
            white-space: nowrap;
        }
        
        .performer-details {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 10px;
        }
        
        .detail-item {
            flex: 1;
            min-width: 120px;
        }
        
        .detail-item h5 {
            font-size: 0.9rem;
            margin-bottom: 3px;
            color: #495057;
            font-weight: bold;
        }
        
        .detail-item p {
            font-size: 0.9rem;
            margin-bottom: 0;
            color: #212529;
        }
        
        .performer-about {
            margin-top: 15px;
            margin-bottom: 10px;
        }
        
        .performer-about p {
            font-size: 0.9rem;
            color: #495057;
        }
        
        .performer-contact {
            margin-top: 15px;
            max-width: 230px;
        }
        
        .message-btn {
            background: linear-gradient(135deg, #4e73df 0%, #0d6efd 100%);
            border: none;
            border-radius: 25px;
            padding: 8px 20px;
            color: white;
            font-weight: 500;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
            width: 100%;
            margin-bottom: 10px;
        }
        
        .message-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
            color: white;
        }
        
        .message-btn:active {
            transform: translateY(0);
        }
        
        .message-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: 0.5s;
        }
        
        .message-btn:hover::before {
            left: 100%;
        }
        
        .contact-note {
            font-size: 0.8rem;
            color: #6c757d;
            text-align: center;
            margin-top: 5px;
        }
        
        .location-link, .experience-link {
            font-size: 0.8rem;
            color: #0d6efd;
            text-decoration: none;
        }
        
        .location-link:hover, .experience-link:hover {
            text-decoration: underline;
        }

/* Стили для страницы входа */
.login-section {
    max-width: 360px;
    margin: 80px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.login-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
    color: #414141;
}

.nav-tabs {
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.nav-tabs .nav-link {
    font-size: 1rem;
    color: #666;
    border: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    border-bottom: 2px solid #0d6efd;
}

.nav-tabs .nav-link:hover {
    color: #0d6efd;
}

.login-form .form-group {
    margin-bottom: 15px;
}

.login-form label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.login-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.login-form button {
    margin-top: 20px;
}

.forgot-password {
    font-size: 0.9rem;
    color: #0d6efd;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Герой-секция */
.hero-section {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #414141;
    text-align: left;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #666;
    text-align: left;
}

.hero-image {
    width: 100%;
    border-radius: 10px;
}

/* Блоки с картинкой и текстом */
.image-text-section {
    padding: 60px 0;
    background-color: #fff;
}

.section-image {
    width: 100%;
    border-radius: 10px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #414141;
}

.section-text {
    font-size: 1.1rem;
    color: #666;
}

/* Аккордеон с вопросами и ответами */
.faq-section {
    padding: 60px 0;
    background-color: #fff;
}

.accordion-button {
    font-size: 1.1rem;
    font-weight: bold;
}

.accordion-body {
    font-size: 1rem;
    color: #666;
}

/* Преимущества */
.benefits-section {
    padding: 60px 0;
    background-color: #fff;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: #414141;
}

.benefit-card {
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    transition: transform 0.2s;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.benefit-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.benefit-description {
    font-size: 1rem;
    color: #666;
}

/* Форма регистрации */
.registration-section {
    padding: 60px 0;
    background-color: #999898;
}

.registration-section .section-title {
    color: #fff;
}

.registration-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.registration-form .form-group {
    margin-bottom: 15px;
}

.registration-form label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.registration-form input,
.registration-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.registration-form button {
    margin-top: 20px;
}

/* Боковое меню */
.sidebar {
    background-color: #f9f9f9;
    /* padding: 20px; */
    height: 100vh;
    position: sticky;
    top: 0;
}

.sidebar-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #414141;
}

.nav-link {
    font-size: 1rem;
    color: #666;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.2s;
    text-decoration: none;
}

.nav-link.active {
    background-color: #007bff;
    color: #fff;
}

.nav-link:hover {
    background-color: #e9ecef;
}

.blog-categories .nav-link a {
    font-size: 1rem;
    color: #666;
    padding: 10px;
    width: 100%;
    border-radius: 5px;
    transition: background-color 0.2s;
    text-decoration: none;
}
.blog-categories .nav-link a.active {
    background-color: #007bff;
    color: #fff;
}
/* Контент */
.tab-content {
    padding: 20px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #414141;
}

/* Обзор */
.overview-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1;
}

.stat-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #666;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.recent-activity {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.activity-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #414141;
}

.activity-list {
    list-style: none;
    padding: 0;
}

.activity-list li {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
}

/* Заявки */
.requests-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.request-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.request-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.request-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
}

.request-status {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
}

/* Сообщения */
.suggestions-container {
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.suggestion {
    padding: 8px 12px;
    margin: 4px 0;
    background: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
}

.suggestion:hover {
    background: #e0e0e0;
}

.message-content {
    word-wrap: break-word;
}

/* Безопасность */
.security-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.security-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #414141;
}

/* Оплата */
.payment-info {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.payment-history {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.history-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #414141;
}

.history-list {
    list-style: none;
    padding: 0;
}

.history-list li {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
}

/* Настройка профиля */
.profile-form {
    background-color: #fff;
    /* padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
}

.profile-form .form-group {
    margin-bottom: 1.2rem;
}

.profile-form label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: #495057;
}

.profile-form input,
.profile-form textarea,
.profile-form select {
    width: 100%;
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.profile-form input:focus,
.profile-form textarea:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.avatar-upload {
    text-align: center;
}

.avatar-preview {
    border: 2px dashed #ddd;
    border-radius: 50%;
    width: 104px;
    height: 104px;
    margin: 0 auto;
    overflow: hidden;
    background-color: #f8f9fa;
}

.avatar-preview img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.form-check {
    margin-bottom: 5px;
}

.form-check-input {
    margin-top: 0.2em;
}

.btn-primary {
    padding: 8px 20px;
    font-weight: 500;
}

.btn-outline-secondary {
    padding: 8px 20px;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .profile-form {
        padding: 15px;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-primary, .btn-outline-secondary {
        width: 100%;
    }
}





/* Контент */
.tab-content {
    padding: 20px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #414141;
}

/* Обзор */
.overview-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1;
}

.stat-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #666;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.recent-activity {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.activity-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #414141;
}

.activity-list {
    list-style: none;
    padding: 0;
}

.activity-list li {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
}

/* Мои заказы */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.order-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.order-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
}

.order-status {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
}

/* Отзывы исполнителей */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.review-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.review-rating {
    font-size: 1rem;
    color: #ff6b6b;
    margin-bottom: 10px;
}

.review-text {
    font-size: 1rem;
    color: #666;
}

/* Местоположения */
.locations-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.location-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.location-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.location-address {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
}



/* Левая колонка: Прогресс и кнопки */
.progress-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.progress-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #414141;
}

.progress-container {
    margin-bottom: 20px;
}

.progress {
    height: 10px;
    border-radius: 5px;
    background-color: #e9ecef;
}

.progress-bar {
    background-color: #007bff;
}

.progress-text {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-top: 5px;
}

.controls .btn {
    margin-bottom: 10px;
}

/* Правая колонка: Чат */
.chat-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.chat-window {
    height: 400px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Сообщения */
.message {
    margin-bottom: 15px;
    display: flex;
}

.message.bot-message {
    justify-content: flex-start;
}

.message.user-message {
    justify-content: flex-end;
}

.message-content {
    max-width: 70%;
    padding: 10px;
    border-radius: 10px;
}

.bot-message .message-content {
    background-color: #f1f1f1;
}

.user-message .message-content {
    background-color: #007bff;
    color: #fff;
}

.message-hint {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

/* Ключевые слова */
.keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.keywords .btn {
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 20px;
}

/* Поле ввода */
.input-container {
    display: flex;
    gap: 10px;
}

.input-container input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}



/* Каталог услуг */
.catalog-section {
    padding: 60px 0;
    background-color: #fff;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: #414141;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.catalog-category {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    color: #007bff;
    text-decoration: none;
}

.category-list a:hover {
    text-decoration: underline;
}

/* Топ исполнителей */
.top-performers {
    padding: 60px 0;
    background-color: #fff;
}

.carousel-inner {
    padding: 20px;
}

.performer-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* text-align: center; */
    margin-bottom: 20px;
}
.performer-image-avatar {
    width: 100px;
    height: 100px;
    border-radius: 5%;
    margin-bottom: 15px;
    -webkit-border-radius: 5%;
    -moz-border-radius: 5%;
    -ms-border-radius: 5%;
    -o-border-radius: 5%;
}
.performer-image {
    width: 100px;
    /* height: 100px; */
    border-radius: 5%;
    margin-bottom: 15px;
    -webkit-border-radius: 5%;
    -moz-border-radius: 5%;
    -ms-border-radius: 5%;
    -o-border-radius: 5%;
}

.performer-name {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.performer-rating {
    font-size: 1rem;
    color: #ff6b6b;
    margin-bottom: 10px;
}

.performer-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
}

/* Кнопки управления каруселью */
.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    opacity: 0.8;
    top: 50%; /* Центрирование по вертикали */
    transform: translateY(-50%); /* Смещение на половину высоты кнопки */
}

.carousel-control-prev {
    left: -20px; /* Смещение влево */
}

.carousel-control-next {
    right: -20px; /* Смещение вправо */
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* Побуждение стать исполнителем */
.become-performer {
    padding: 60px 0;
    background-color: #fff;
}

.become-performer .section-title {
    text-align: left;
}

.become-performer .section-text {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

.become-performer .performer-image {
    width: 100%;
    border-radius: 10px;
}

/* Дополнительные стили для блога */
.blog-container {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.sidebar {
    flex: 0 0 250px;
    position: sticky;
    top: 80px;
    height: fit-content;
}

.blog-content {
    flex: 1;
}

.article-card {
    margin-bottom: 30px;
}

.article-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.pagination {
    justify-content: center;
    margin-top: 30px;
}

.post-header {
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .blog-container {
        flex-direction: column;
    }
    
    .sidebar {
        position: static;
        margin-bottom: 30px;
    }
}
.uid-container {
    margin-top: 30px;
}

/* Дополнительные стили для поста */
.post-container {
    /* display: flex; */
    /* gap: 30px; */
    margin-top: 30px;
}



.post-content {
    flex: 1;
}

.post-header {
    margin-bottom: 30px;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.post-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 30px;
}

.post-body h2 {
    font-size: 1.8rem;
    margin: 30px 0 20px;
    color: #414141;
}

.post-body h3 {
    font-size: 1.5rem;
    margin: 25px 0 15px;
    color: #414141;
}

.post-body p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333;
}

.post-body ul, .post-body ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.post-body li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.post-tags {
    margin: 40px 0;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.author-card {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin: 40px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
}

.author-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.comments-section {
    margin-top: 50px;
}

.comment {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.comment-author {
    font-weight: bold;
    margin-right: 10px;
}

.comment-date {
    color: #666;
    font-size: 0.8rem;
}

.comment-text {
    line-height: 1.6;
}

.comment-form {
    margin-top: 40px;
}

@media (max-width: 768px) {
    .post-container {
        flex-direction: column;
    }
    
    
    
    .author-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Стили для модального окна город*/
.city-option .region-name {
    color: #6c757d;
    font-size: 0.9em;
}

.districts-list {
    margin-left: 20px;
    display: none;
}

.show-more-link {
    color: #0d6efd;
    font-weight: 500;
}
#map {
    height: 100%;
    min-height: 600px;
}

.city-option {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
}

.city-option:hover {
    background-color: #f8f9fa;
}

.region-name {
    color: #6c757d;
    font-size: 0.9em;
}


.search-results {
    position: absolute;
    width: calc(100% - 30px);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    font-family: Arial, sans-serif;
    margin-top: -1px;
}

.search-results div {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
}

.search-results div:last-child {
    border-bottom: none;
}

.search-results div:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

.search-results div:active {
    background-color: #e9ecef;
}

/* Стиль для скроллбара */
.search-results::-webkit-scrollbar {
    width: 8px;
}

.search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.confirm-btn-container {
    border-top: 1px solid #dee2e6;
    padding: 15px;
    background: #f8f9fa;
}


/* Стили для подсказки */
.city-tooltip {
    position: absolute;
    z-index: 1050;
    width: 120px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px;
    font-size: 13px;
    display: none;
}

/* Стрелка подсказки с такой же границей */
.city-tooltip:before,
.city-tooltip:after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
}

.city-tooltip:before {
    border-color: transparent transparent #ddd transparent;
}

.city-tooltip:after {
    border-color: transparent transparent white transparent;
    margin-bottom: -1px;
}

/* Кнопки в подсказке */
.city-tooltip-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.city-tooltip-btn {
    padding: 4px 12px;
    font-size: 12px;
    background: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
}

screen {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.form-check, .form-select, .mb-3 {
    margin-bottom: 1rem !important;
}

.d-flex.gap-2 {
    gap: 0.5rem;
}

/* подсказка */
.suggestions-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 5px;
    display: none;
    background: white;
    z-index: 1000;
    position: relative;
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.suggestion-item:hover {
    background-color: #f5f5f5;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.nested-input-field {
    margin-top: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #eee;
}

.alert {
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
}

/* Для мобильных устройств скрываем подсказку при потере фокуса */
@media (max-width: 991.98px) {
    .city-tooltip {
        transition: opacity 0.3s ease;
    }
    
    .city-tooltip:not(:focus-within) {
        opacity: 0;
        pointer-events: none;
    }
}

.loader {
  width: 100%;
  padding: 20px;
  text-align: center;
  grid-column: 1 / -1;
}

.performers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Страница исполнителя */
/* Основные стили для чата */
.chat-column {
    position: relative;
}
        
.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    min-height: 300px;
}
        
/* Основной контейнер для сетки изображений */
  .image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  /* Обертка для каждого изображения */
  .image-wrapper {
    position: relative;
    padding-top: 100%; /* Соотношение сторон 1:1 (квадрат) */
    overflow: hidden;
    border-radius: 0.375rem; /* Совпадает с rounded */
  }

  /* Стили для самих изображений */
  .image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }

  /* Эффект при наведении (опционально) */
  .image-wrapper:hover img {
    transform: scale(1.05);
  }

.company-info {
    border-left: 3px solid #0d6efd;
    transition: all 0.3s ease;
}

.company-info:hover {
    background-color: #f8f9fa !important;
}

.company-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.company-info:hover .company-details {
    max-height: 200px;
}

/* Стили для мобильного меню кабинета мастера */
.mobile-menu-toggle {
    display: none;
    background: #007bff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    margin-bottom: 15px;
    width: 100%;
    text-align: left;
}

.mobile-menu-toggle:hover {
    background: #0056b3;
}

.mobile-menu-toggle .bi {
    margin-right: 8px;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.active {
    display: block;
    opacity: 1;
}

.close-menu-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    color: #333;
}


