
/* Шапка */

.header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    position: fixed;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 999999;
    background: #fff;
}
.header.scrolled {
    background: #fff;
    transition: .4s;
}


.headerTop {
    display: flex;
    justify-content: center;
    z-index: 999999;
    width: 100%;
}

.headerTopContainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 20px 0;
    width: calc(100% - 40px);
    margin-top: 10px;
    border-radius: 10px;
}

.headerTopLeft{
    display: flex;
    align-items: center;
}

.logoContent{
    display: flex;
    align-items: center;
}

.logoImg img, .logoImg svg{
    height: 25px;
}

.logoImg span{
    display: inline-block;
    font-size: 24px;
    font-weight: bold;
    color: #D22D16;
}

.logoText{
    width: 268px;
    margin-left: 15px;
}

.logoText span{
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.logoText p{
    font-size: 12px;
    color: #666;
}

.headerTopLeft p{
    color: #575757;
    margin-left: 20px;
    font-size: 14px;
}


.headerTopLeft p img{
    width: 18px;
    margin-right: 10px;
}

.socialIcons{
    display: flex;
    margin-left: 10px;
}

.socialIcons a {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #555;
    margin: 0 5px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    transition: .4s;
    background: #D22D16;
}

.socialIcons a img{
    width: 18px;
}

.headerTopRight{
    display: flex;
    align-items: center;
}

.phoneContent{
    display: grid;
    justify-items: flex-end;
}

.phone{
    font-size: 16px;
    transition: .4s;
    color: #666;
}

.phone img{
    width: 18px;
}

.phone:hover{
    color: #D22D16;
}

/* bottom */

.headerBottom{
    display: flex;
    justify-content: center;
    width: 100%;
    background: #222;
}

.headerBottomMenu{
    /* padding: 10px 25px; */
    border-radius: 10px;
}

.menu{
    list-style: none;
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    position: relative;
}

.menu li {
    margin-right: 35px;
    position: relative;
}

.menu li a{
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: .4s;
    padding: 10px 0;
}

.menu li a:hover{
    color: #D22D16;
}

.menu li a::after {
    content: '';
    display: inline-block;
    width: 0%;
    position: absolute;
    bottom: 0;
    left: 0;
    border-bottom: 1px solid #D22D16;
    transition: width 0.4s;
}

.menu li a:hover::after {
    width: 100%;
}


/* Бургер */

.burger {
    display: none;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.burger span {
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #D22D16;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.burger span:nth-child(1) {
    top: 0;
}

.burger span:nth-child(2) {
    top: 8px;
}

.burger span:nth-child(3) {
    top: 16px;
}

/* Анимация бургера */
.burger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 8px;
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 8px;
}

.mobileBottomContent{
    display: none;
}

/* Адаптивность */
@media (max-width: 1328px) {

    .desktopHeader{
        display: none;
    }

    .headerTop{
        padding: 0;
    }

    .headerTopContainer{
        padding: 15px 20px;
    }
    
    .headerBottom{
        background: none;
        height: 0;
        padding: 0;
        border: 0;
    }

    .headerBottomMenu{
        background: none;
        padding: 0;
        border-radius: 0;
        margin-top: 0;
    }

    .logoText {
        /* width: 50%; */
        display: none;
    }

    .cityContent {
        display: none;
    }

    .socialIcons {
        display: none;
    }

    .phoneContent {
        display: none;
    }

    .marketplaceContainerHeader{
        display: none !important;
    }

    .burger {
        display: block;
    }

    .menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100%);
        transition: transform 0.5s ease, opacity 0.5s ease;
        overflow-y: auto; 
    
        z-index: 99999;
        padding-top: 90px;
        height: calc(100vh - 90px);
    }

    .menu.active {
        display: flex;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .menu li {
        margin: 15px 0;
    }

    .menu li a {
        font-size: 16px;
        color: #333;
        margin-right: 0;
    }

    .mobileBottomContent{
        display: block;
    }

    .mobileBottomContent .phoneContent{
        display: flex;
        flex-wrap: wrap;
        margin: 45px 0;
    }

    .mobileBottomContent .phoneContent .phone, .mobileBottomContent .phoneContent .callBack{
        width: 100%;
        text-align: center;
    }

    .mobileBottomContent .socialPhoneContent {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }

    .socialPhoneContent .phone {
        font-size: 18px;
        font-weight: bold;
        color: #333;
        margin: 10px 0;
    }

    .socialIcons {
        display: flex;
        justify-content: center;
        margin-top: 10px;
        margin-left: 0;
    }

    .socialIcons a {
        margin: 0 10px;
        width: 40px;
        height: 40px;
    }

    .socialIcons a img {
        width: 20px;
        height: 20px;
    }

    .mobileBottomContent{
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        margin-top: 25px;
    }

    .mobileBottomContent .socialIcons{
        margin: 0;
    }
   
    .mobileBottomContent .phone{
        text-align: center;
    }
}



/* droopdown */

.dropdown {
    position: relative;
    display: inline-block;
    transition: .4s;
}

.dropdown-toggle {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: .4s;
}

.dropdown-menu {
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 300px;
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}



.dropdown-menuBg {
    background: #222;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    margin-top: 0px;
    transition: .4s;
}

.dropdown-menu li {
    /* border-bottom: 1px solid rgb(189, 132, 223); */
    width: 100%;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 15px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
    width: calc(100% - 30px);
}

.dropdown-menu li a:hover {
    background: #D22D16; 
    color: #fff;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.headerBottomMenu .menu {
    display: flex;
    align-items: center;
}


@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
    }
    
    .headerBottomMenu .menu {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        transition: .4s;
    }
    
    .headerBottomMenu .menu li {
        margin-right: 0;
        margin-bottom: 10px;
    }
}