header {
    display: flex;
    justify-content: center;
}

.headerCont {
    display: flex;
    min-width: 1200px;
    justify-content: center;
}

.top {
    display: flex;
    height: 150px;
    flex-direction: column;
}

.topRow {
    display: flex;
    align-items: center;
    height: 75px;
}

.bottomRow {
    display: flex;
    height: 75px;
    align-items: center;
}

.hPic {
    background: white;
    width: 240px;
    height: 150px;
    padding: 20px;
    border-radius: 0 0 30px 30px;
    display: flex;
    align-items: center;
    margin-right: 30px;
    transition: .3s all;
    cursor: pointer;
}

.hPic:hover {
    transform: translateY(-10px);
}

.hPic img {
    width: 200px;
    user-select: none;
    -webkit-user-select: none;
}





/* Меню */

.hMenu {
    display: flex;
    margin-right: 30px;
}

.menuMain {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.menuMain li {
    position: relative;
}

.menuMain a {
    display: block;
    padding: 12px;
    user-select: none;
    -webkit-user-select: none;
    color: white;
    cursor: pointer;
    transition: .3s all;
    text-align: center;
}

@media (min-width: 1280px) {
    .menuMain>li>a:hover {
        color: var(--main-color);
    }

    .menuMain li:hover .subMenu {
        visibility: visible;
        transform: translateY(0px);
    }
}

/* Подменю */
.subMenu {
    visibility: hidden;
    width: 265px;
    list-style: none;
    position: absolute;
    left: 0;
    padding: 0;
    background-color: white;
    border-radius: 8px;
    transition: transform .3s;
    transform: translateY(10px);
    z-index: 4;
}


.subMenu a {
    color: black;
    font-weight: 500;
    transition: color .3s;
}

.subMenu a:hover {
    color: var(--secondary-color);
}


/* Адрес автошколы */

.schoolAddress {
    display: flex;
    margin-right: 30px;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.schoolAddress.noMove {
    cursor: default;
}

.schoolAddress:hover .addrTxt {
    color: var(--main-color);
}

.addrGPS {
    width: 30px;
    margin-right: 15px;
}


.adrsBlock h1 {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    user-select: none;
}

.addrTxt {
    transition: .3s all;
    font-weight: 300;
    user-select: none;
}

/* Кнопка закрыть */
.schoolBtn {
    position: absolute !important;
    right: 14px;
    top: 14px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s all;
}

.schoolBtn:hover {
    scale: 1.5;
}

.schoolBtn::before,
.schoolBtn::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 2px;
    border-radius: 4px;
    background-color: black;
}

.schoolBtn::before {
    transform: rotate(45deg);
}

.schoolBtn::after {
    transform: rotate(-45deg);
}

/* Рабочее время */
.workingTime {
    display: flex;
    margin-right: 30px;
    align-items: center;
}

.workingTime img {
    width: 30px;
    margin-right: 15px;
}

.workingTime p {
    font-weight: 300;
}

/* Иконки соц. сетей */
.hSocials {
    display: flex;
}

.sContainer {
    display: flex;
    gap: 16px;
    margin-right: 30px;
}

.sContainer img {
    width: 34px;
    transition: .3s all;
}

.sContainer img:hover {
    scale: 0.9;
}

.sNumber {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 300;
}

.sNumber img {
    width: 30px;
}

.hButton {
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    width: 130px;
    height: 42px;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    transform: skew(-5deg);
    margin-right: 30px;
    user-select: none;
    -webkit-user-select: none;
    transition: .3s all;
}

.hButton:hover {
    background: rgb(44 255 145 / 10%);
}

.hButton p {
    transform: skew(5deg);
    color: white;
}

.miniBtns {
    display: flex;
    gap: 10px;
}

.hEye {
    transition: .3s all;
}

.hEye:hover {
    scale: 1.2;
}

.hEye img {
    width: 35px;
    cursor: pointer;
}

.searchInput {
    display: none;
}

.hSearch img {
    width: 30px;
    cursor: pointer;
    transition: .3s all;
}

.hSearch img:hover {
    scale: .9;
}





/* Выбор адреса школы */

.selectSchoolBox {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 999;
    width: 250px;
    padding: 54px 14px 14px 14px;
    border-radius: 16px;
    background: white;
    color: black;
    transition: .4s all;
    opacity: 0;
}

.selectSchoolBox p {
    font-size: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: .3s all;
    font-weight: 500;
    user-select: none;
    -webkit-user-select: none;
}

.selectSchoolBox p:hover {
    color: var(--secondary-color);
}





/* Moblie */

.mBurger {
    display: none;
    position: absolute;
    right: 30px;
    width: 30px;
    height: 23px;
    border: none;
    background-color: transparent;
    z-index: 4;
}

.mBurger span {
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: white;
    transition: transform .5s, opacity .5s, background-color .5s;
}

.mBurger span:nth-child(2) {
    transform: translateY(10px);
}

.mBurger span:nth-child(3) {
    transform: translateY(20px);
}

header.open .mBurger span {
    background-color: black;
}

header.open .mBurger span:nth-child(1) {
    transform: translateY(10px) rotate(-45deg);
}

header.open .mBurger span:nth-child(2) {
    opacity: 0;
}

header.open .mBurger span:nth-child(3) {
    transform: translateY(10px) rotate(45deg);
}





/* Адаптивная верстка */

@media (max-width: 1279px) {
    .mBurger {
        display: block;
    }

    .headerCont {
        min-width: 100%;
    }

    .top {
        display: none;
        transform: translateY(-100%);
        transition: .6s all;
        position: absolute;
        left: 0;
        z-index: 3;
        background: white;
        width: 100%;
        height: unset;
        padding: 14px;
    }

    .hPic {
        margin: 0;
    }

    .hMenu {
        margin: 0;
    }

    .menuMain {
        flex-direction: column;
        align-items: center;
    }

    .menuMain a {
        color: black;
    }

    .workingTime {
        margin: 0;
    }

    .schoolAddress {
        margin: 0;
        position: unset;
    }

    .topRow {
        display: flex;
        align-items: center;
        height: unset;
        flex-direction: column;
        gap: 14px;
        padding-bottom: 14px;
        border-bottom: 2px solid black;
    }

    .bottomRow {
        color: black;
        flex-direction: column;
        gap: 20px;
        height: unset;
        padding-top: 14px;
        position: relative;
    }

    .hSocials {
        flex-direction: column-reverse;
        align-items: center;
        gap: 14px;
    }

    .sNumber {
        color: black;
    }

    .topRow img {
        filter: invert(1);
    }

    .bottomRow img {
        filter: invert(1);
    }

    .miniBtns {
        gap: 24px;
    }

    .sContainer {
        margin: 0;
    }

    .hButton {
        background: rgb(0 0 0 / 10%);
        color: black;
        margin: 0;
    }

    .headerMain {
        display: flex;
        align-items: center;
        width: 100%;
    }

    header.open .top {
        transform: translateY(0px);
    }

    .selectSchoolBox {
        width: 100%;
        top: 10px;
        background: #e9e9e9;
    }

    /* Подменю */
    .subMenu {
        top: 0;
        left: -100vw;
        width: 100vw;
        height: 100vh;
        padding-top: 110px;
        text-align: center;
        transition: .6s all;
        border-radius: 0;
        transform: translateY(0px);
    }

    .subMenu.opened {
        transform: translateX(100vw) !important;
        visibility: visible;
    }

    .menuMain li {
        position: unset;
    }

    .mBack {
        position: absolute;
        width: 23px;
        height: 23px;
        left: 30px;
        z-index: 4;
        transition: transform .5s;
        transform: scale(0) rotate(0deg);
        border-top: 4px solid black;
        border-right: 4px solid black;
        border-radius: 2px 4px 2px 0px;
    }

    .headerMain a {
        position: relative;
        left: 14px;
    }
}