/* ===== ШАПКА САЙТА ===== */
.header {
    background-color: #f6f6f9;
    width: 100%;
}

/* Активный пункт меню */
.menu-item a.active {
    color: #a43ccf;
    position: relative;
}

.menu-item a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 18px;
    right: 18px;
    height: 2px;
    border-radius: 2px;
}

.linkContact{

}
.linkContact:hover{
    color: #8a2eb8;
}

.menu-item a.active {
    color: #a43ccf;
}

.header-content {
    display: flex;
    flex-direction: column;
    padding: 0;
}

/* Верхняя строка шапки */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0px;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
    gap: 15px;
}

/* Левая группа: город и телефоны */
.header-left-group {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* Контактная информация */
.header-contact-info {
    display: flex;
    font-weight: bold;
    margin-left: 20px;
    gap: 25px;
    font-size: 13px;
    color: #666;
    flex-wrap: wrap;
}

/* Ссылки в шапке */
.header-links {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    margin-left: auto;
}

.header-links a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.header-links a:hover {
    color: #a43ccf;
}

/* Социальные иконки в шапке */
.social-icons {
    display: flex;
    gap: 12px;
    margin-left: 15px;
}

.social-icon {
    color: #666;
    opacity: 0.5;
    font-size: 15px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    opacity: 1;
    color: #a43ccf;
}

/*.social-icon:nth-child(1):hover img {*/
/*    content: url('../img/icons/iconVKCubeHover.svg');*/
/*}*/

/*.social-icon:nth-child(2):hover img {*/
/*    content: url('../img/icons/iconOKCubeHover.svg');*/
/*}*/

/*.social-icon:nth-child(3):hover img {*/
/*    content: url('../img/icons/iconMAXCubeHover.svg');*/
/*}*/

/* ===== ВЫБОР ГОРОДА ===== */
.city-selector {
    position: relative;
}

.city-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7B777D;
    text-decoration: none;
    padding: 8px 16px 8px 0px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.city-link:hover {
    color: #a43ccf;
}

.city-link i:first-child {
    font-size: 14px;
}

.city-link .fa-chevron-down {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.city-link.active .fa-chevron-down {
    transform: rotate(180deg);
}

/* Модальное окно выбора города */
.city-modal {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 400px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 8px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.city-modal.active {
    display: block;
}

.city-modal-content {
    padding: 25px;
}

.city-modal-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #433f45;
    margin-bottom: 20px;
    text-align: center;
}

.city-search {
    position: relative;
    margin-bottom: 20px;
}

.city-search::after {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
    pointer-events: none;
}

#city-search {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

#city-search:focus {
    outline: none;
    border-color: #a43ccf;
    box-shadow: 0 0 0 3px rgba(164, 60, 207, 0.1);
}

.city-lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 10px;
}

.popular-cities h4,
.all-cities h4 {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.popular-cities ul,
#all-cities-list {
    list-style: none;
}

.popular-cities li,
.all-cities li {
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 14px;
    margin-bottom: 4px;
}

.popular-cities li:hover,
.all-cities li:hover {
    background: rgba(164, 60, 207, 0.08);
    color: #a43ccf;
}

.popular-cities li.active,
.all-cities li.active {
    background: rgba(164, 60, 207, 0.15);
    color: #a43ccf;
    font-weight: 600;
}

.close-modal {
    width: 100%;
    background: #f6f6f9;
    color: #433f45;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 500;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: #e6e6f0;
}

/* ===== МЕНЮ С ЛОГОТИПОМ ===== */
.main-menu-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
    width: 100%;
    flex-wrap: wrap;
}

.menu-logo {

    padding-left: 10px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 20px;
}

.menu-logo img {
    object-fit: contain;
    max-width: 100%;
    height: 16px;
}

.main-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    border-radius: 50px;
    padding: 8px 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    flex: 1;
    gap: 0;
    width: 100%;
    box-sizing: border-box;
}

.menu-item {
    display: inline-block;
    flex: 0 1 auto;
}

.menu-item a {
    text-decoration: none;
    color: #433f45;
    font-weight: bold;
    font-size: 16px;
    line-height: 1.5;
    padding: 10px 1px;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-radius: 40px;
}

.menu-item a:hover {
    color: #a43ccf;
}

.menu-item:last-child a {
    background-color: transparent;
    color: #a43ccf;
    display: block;
    border: 1px solid #a43ccf;
    text-align: center;
    padding: 9px 15px;
    margin-left: 0;
}
.menu-item:first-child a {

    padding: 10px 18px;

}

.menu-item:last-child a:hover {
    color: #a43ccf;
    background-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 206, 212, 0.6);
}

/* ===== АДАПТИВ ШАПКИ ===== */
@media (max-width: 1100px) {
    .main-menu {
        gap: 0;
    }

    .menu-item a {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-left-group {
        width: 100%;
        justify-content: space-between;
    }

    .header-contact-info {
        margin-left: 0;
        justify-content: center;
        width: 100%;
    }

    .header-links {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
    }

    .main-menu-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu-logo {
        margin-bottom: 15px;
        margin-right: 0;
        width: 100%;
        text-align: center;
    }

    .main-menu {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px;
        border-radius: 30px;
    }

    .menu-item {
        flex: 1 1 auto;
    }

    .city-modal {
        width: 320px;
        left: -50px;
    }
}

@media (max-width: 768px) {
    .header-top {
        gap: 10px;
        padding: 12px 15px;
    }

    .header-left-group {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .header-contact-info {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        font-size: 12px;
    }

    .header-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .social-icons {
        margin-left: 0;
        margin-top: 5px;
    }

    .main-menu {
        flex-direction: column;
        border-radius: 30px;
        padding: 8px 0;
        gap: 2px;
    }

    .menu-item {
        width: 100%;
        text-align: center;
    }

    .menu-item a {
        text-align: center;
        width: 100%;
        padding: 12px 20px;
        white-space: normal;
    }

    .menu-item:last-child a {
        margin-left: 0;
        margin-top: 5px;
        width: auto;
        display: inline-block;
    }

    .city-modal {
        width: 280px;
        left: -40px;
    }

    .city-lists {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .header-contact-info {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .city-modal {
        width: 260px;
        left: -30px;
    }

    .city-modal-content {
        padding: 20px;
    }
}
/* ===== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ CITY-SELECTOR ===== */

/* Стили для групп городов */
.city-group {
    margin-bottom: 20px;
}

.city-group h4 {
    font-size: 14px;
    font-weight: 600;
    color: #a43ccf;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #f0f0f0;
}

/* Стили для элементов списка городов */
#cityLists li {
    padding: 10px 15px;
    margin: 2px 0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #433f45;
    position: relative;
}

/* Эффект при наведении (hover) */
#cityLists li:hover {
    background: rgba(164, 60, 207, 0.1);
    color: #a43ccf;
    transform: translateX(3px);
}

/* Эффект при нажатии (active) */
#cityLists li:active {
    background: rgba(164, 60, 207, 0.2);
    transform: translateX(1px);
    transition: all 0.05s ease;
}

/* Активный/выбранный город */
#cityLists li.active {
    background: #a43ccf;
    color: white;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(164, 60, 207, 0.3);
}

/* Маленькая галочка для выбранного города */
#cityLists li.active::before {
    content: '✓';
    position: absolute;
    right: 15px;
    font-weight: bold;
}

/* Стили для маленьких подписей (район) */
#cityLists li small {
    font-size: 11px;
    color: #999;
    transition: color 0.2s ease;
}

#cityLists li:hover small {
    color: #a43ccf;
}

#cityLists li.active small {
    color: rgba(255, 255, 255, 0.8);
}

/* Анимация появления модального окна */
.city-modal {
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для поля поиска */
#citySearch {
    transition: all 0.3s ease;

    border-color: #a43ccf  !important;
    padding: 8px;

}

#citySearch:focus {

    border-color: #a43ccf !important;
    box-shadow: 0 0 0 3px rgba(164, 60, 207, 0.1) !important;
}

/* Стили для кнопки закрытия */
.close-modal {
    transition: all 0.3s ease;
    cursor: pointer;
}

.close-modal:hover {
    background: #e6e6f0;
    transform: translateY(-1px);
}

/* ===== ВЫБОР ГОРОДА ===== */
.city-selector {
    position: relative;
}

.city-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7B777D;
    text-decoration: none;
    padding: 8px 16px 8px 0px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.city-link:hover {
    color: #a43ccf;
}

.city-link i:first-child {
    font-size: 14px;
}

.city-link .fa-chevron-down {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.city-link.active .fa-chevron-down {
    transform: rotate(180deg);
}

/* Эффект нажатия на ссылку */
.city-link.clicked {
    transform: scale(0.98);
}

/* Модальное окно выбора города */
.city-modal {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 400px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.city-modal.active {
    display: block;
}

.city-modal-content {
    padding: 25px;
}

.city-modal-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #433f45;
    margin-bottom: 20px;
    text-align: center;
}

/* Стили для поиска - КРАСИВЫЙ ВАРИАНТ */
.city-search {
    position: relative;
    margin-bottom: 20px;
}

.city-search::after {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #a43ccf;
    font-size: 16px;
    pointer-events: none;
    opacity: 0.7;
}

#city-search {
    width: 100%;
    padding: 14px 45px 14px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 50px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: #f8f8fa;
    color: #433f45;
    outline: none;
}

#city-search:focus {
    outline: none;
    border-color: #a43ccf;
    background: white;
    box-shadow: 0 0 0 3px rgba(164, 60, 207, 0.1);
}

#city-search::placeholder {
    color: #bbb;
    font-weight: 400;
}

/* Стили для групп городов */
.city-group {
    margin-bottom: 20px;
}

.city-group h4 {
    font-size: 13px;
    font-weight: 600;
    color: #a43ccf;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #f0f0f0;
}

/* Стили для элементов списка городов */
.city-lists {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 5px;
}

.city-lists::-webkit-scrollbar {
    width: 4px;
}

.city-lists::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.city-lists::-webkit-scrollbar-thumb {
    background: #a43ccf;
    border-radius: 10px;
}

#cityLists li {
    padding: 10px 15px;
    margin: 2px 0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #433f45;
    position: relative;
    list-style: none;
}

/* Эффект при наведении (hover) */
#cityLists li:hover {
    background: rgba(164, 60, 207, 0.1);
    color: #a43ccf;
    transform: translateX(3px);
}

/* Эффект при нажатии (active) */
#cityLists li:active {
    background: rgba(164, 60, 207, 0.2);
    transform: translateX(1px);
    transition: all 0.05s ease;
}

/* Эффект при нажатии (clicked) */
#cityLists li.clicked {
    background: rgba(164, 60, 207, 0.3);
    transform: scale(0.98);
}

/* Подсветка при навигации стрелками */
#cityLists li.highlighted {
    background: rgba(164, 60, 207, 0.15);
    color: #a43ccf;
    border-left: 3px solid #a43ccf;
}

/* Активный/выбранный город */
#cityLists li.active {
    background: #a43ccf;
    color: white;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(164, 60, 207, 0.3);
}

/* Маленькая галочка для выбранного города */
#cityLists li.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 14px;
}

/* Стили для маленьких подписей (район) */
#cityLists li small {
    font-size: 11px;
    color: #999;
    transition: color 0.2s ease;
    margin-left: 5px;
}

#cityLists li:hover small {
    color: #a43ccf;
}

#cityLists li.active small {
    color: rgba(255, 255, 255, 0.8);
}

/* Кнопка закрытия */
.close-modal {
    width: 100%;
    background: #f6f6f9;
    color: #433f45;
    border: none;
    padding: 12px;
    border-radius: 50px;
    font-weight: 500;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.close-modal:hover {
    background: #e6e6f0;
    transform: translateY(-2px);
}

.close-modal.clicked {
    transform: scale(0.98);
}

/* Адаптив для модального окна */
@media (max-width: 768px) {
    .city-modal {
        width: 320px;
        left: -50px;
    }
}

@media (max-width: 480px) {
    .city-modal {
        width: 280px;
        left: -40px;
    }

    .city-modal-content {
        padding: 20px;
    }

    #city-search {
        padding: 12px 40px 12px 16px;
        font-size: 14px;
    }
}