/* стили шапки */

body {
    margin: 0;
}

.header {
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
    position: relative;
    background-color: #fff;
    padding: 0 40px;
    font-size: 15px;
}

.navigation {
    display: grid;
    grid-template-columns: 1fr 0.5fr 0.9fr;
    align-items: center;
}

.burger-menu-button {
    display: none;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    position: relative;
    background: transparent;
    border: none;
    padding: 0;
}

.burger-menu-button span {
    width: 20px;
    background-color: #000;
    height: 1.8px;
    display: block;
}

.burger-menu.open {
    left: 0;
}

.burger-menu {
    box-sizing: border-box;
    display: none;
    background-color: #fff;
    flex-direction: column;
    position: absolute;
    /*bottom: -311%;
    left: -120%;*/
    gap: 16px;
    width: 100%;
    padding: 20px 0;
    transition: left 500ms cubic-bezier(0.68, 0.55, 0.27, 1.55);
    z-index: 100;
    max-height: calc(100vh - 94px);
    overflow-y: auto;
    overflow-x: hidden;
}

.menu,
.menu-right {
    display: flex;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: "Ony One Regular";
    height: 94px;
    align-items: center;
}
            
.menu li{
    position: relative;
}
            
.menu li:hover .menu-lv1{
    display: flex;
}
            
.menu-lv1{
    position: absolute;
    display: none;
    z-index: 1;
    flex-direction: column;
    gap: 24px;
    padding: 0;
    list-style: none;
    background-color: white;
    width: max-content;
    background-color: white;
}
            
.menu-lv1.mobile{
    position: static;
    background-color: #e9e9e9;
    align-items: center;
}
            
.menu-lv1 li{
    font-family: "Ony One Regular";
    font-size: 15px;
    margin-left: 8px;
    margin-right: 8px;
}
            
.menu-lv1.mobile li{
    margin-left: 0;
    text-align: center;
}
            
.menu-lv1 li:first-child{
    margin-top: 16px;
}
            
.menu-lv1 li:last-child{
    margin-bottom: 24px;
}
            
.menu-right {
    flex-direction: column;
    font-size: 16px;
}
            
.menu-lv1.active{
    display: flex;
}
            
.menu a,
.menu-right a {
    text-decoration: none;
    color: #313332;
    font-weight: 400;
}

.logo {
    justify-self: center;
}

.logo a {
    display: flex;
    text-decoration: none;
    color: #313332;
    gap: 38px;
    align-items: center;
}

.logo img {
    height: 94px;
    width: 94px;
}

.logo-title {
    font-size: 15px;
    font-weight: 400;
    text-transform: uppercase;
}
            
.burger-menu .headerButton {
    min-height: 48.5px;
}

.headerButton {
    width: 100%;
    height: 100%;
    background-color: #AD83FF;
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: "Ony One Medium";
}

.header-button-block {
    justify-self: end;
    width: 195px;
    height: 48.5px;
}

.expander-wrapper {
    position: relative;
    top: 50%;
    display: inline-block;
    left: 15px;
}

.expander {
    width: 15px;
    height: 15px;
    border: 2px solid #000;
    border-left: 0;
    border-top: 0;
    transform: rotate(45deg);
}

.expander.open{
    transform: rotate(225deg);
    top: -50%;
}

@media (max-width: 1366px) {
    
    .navigation {
        grid-template-columns: 1fr 0.6fr 0.4fr;
    }
    
}

@media (max-width: 1200px) and (orientation: landscape){
    .menu {
        display: none;
    }
    
    .burger-menu .headerButton {
        display: none;
    }
    
    .burger-menu{
        display: none;
        height: auto;
    }
    
    .burger-menu-button {
        display: flex;
        justify-self: strart;
    }
    
    .menu-right{
        height: max-content;
        width: 100%;
    }
    
    .menu-lv1.mobile{
        width: 46.6vw;
    }
    
    .menu-right li{
        text-align: center;
        position: relative;
    }
    
    .header-button-block{
        order: 2;
    }
    
    .logo{
        order: 1;
    }
    
    .navigation>div:nth-child(4){
        order: 0;
    }
    
    .menu-lv1{
        background-color: #e9e9e9;
    }
}

@media (orientation: portrait) {
    
    .header {
        padding: 0 20px;
    }

    .navigation {
        grid-template-columns: 85% 15%;
    }

    .logo {
        justify-self: start;
    }

    .logo-title{
        display: none;
    }

    .menu {
        display: none;
    }

    .burger-menu {
        display: none;
        width: 100vw;
        height: auto;
        right: 0;
        padding-bottom: 0;
    }
                
    .menu-right{
        height: max-content;
    }
                
    .menu-lv1.mobile{
        width: 100vw;
    }
    .headerButton{
        position: relative;
    }
    
    .menu-right li{
        text-align: center;
    }

    .header-button-block {
        display: none;
    }

    .burger-menu-button {
        display: flex;
        justify-self: end;
    }
    
}

/* стили подвала */

.footer {
    margin: 0 auto;
    background-color: #fff;
    display: grid;
    grid-template-rows: repeat(2, auto);
    padding: 0 40px;
}

.footer .logo-menu {
    display: flex;
    gap: 76.45px;
}

.footer .line-2 {
    grid-column: 1 / 6;
}

.footer p {
    margin: 0;
}

.footer .line-3 {
    justify-self: center;
    font-family: "Ony One Medium";
    align-self: center;
    color: #313332;
    font-weight: 500;
    opacity: 50%;
    margin-bottom: 16px;
    font-size: 14px;
}

.footer .line-2 {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer .line-2 .link-footer {
    display: flex;
    gap: 24px;
    justify-self: center;
    align-self: center;
}

.footer .line-2 a {
    text-decoration: none;
    font-size: 14px;
    color: #30333A;
    font-weight: 400;
    line-height: 100%;
    font-family: "Ony One Regular";
}

.footer .line-1 {
    align-self: center;
    display: grid;
    padding-top: 53px;
    padding-bottom: 16px;
    justify-content: center;
    grid-template-columns: repeat(5, minmax(min-content, max-content));
    grid-row-gap: 50.5px;
}

.footer .line-1 .addresses {
    font-size: 18px;
    color: #313332;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-style: normal;
    line-height: 100%;
    font-family: "Ony One Regular";
    margin: 0 58px 0 85px;
}

.footer .line-1 .addresses :last-child {
    font-weight: 500;
    line-height: 135%;
    font-size: 18px;
    font-family: "Ony One Medium";
    color: #30333A;
}

.footer .logo {
    width: 94px;
    height: 94px;
}

.footer .logo img {
    width: 100%;
    height: 100%;
}

.menu-footer {
    display: flex;
    width: 145px;
    flex-direction: column;
    gap: 8px;
}

.menu-footer a {
    font-size: 18px;
    text-decoration: none;
    color: #313332;
    font-family: "Ony One Regular";
    line-height: 100%;
}

.footerButton {
    background-color: #ECECEC;
    color: #313332;
    min-width: 145px;
    width: 100%;
    height: 48px;
    font-size: 18px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
}

.footer .social {
    width: 172px;
    font-size: 18px;
    font-weight: 400;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-left: 42px;
}

.footer .social span {
    display: block;
}

.footer .social-a {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer .social p {
    line-height: 114.9%;
    font-family: "Ony One Regular";
    font-weight: 400;
    color: #313332;
}

.footer .line-1 .contacts p:first-child {
    font-size: 18px;
    font-weight: bolder;
    color: #313332;
    line-height: 114.9%;
    font-family: "Ony One Medium";
    font-weight: 500;
    margin-bottom: 24px;
}

.footer .contacts a {
    text-decoration: none;
    color: inherit;
}

.footer .contacts p {
    line-height: 114.9%;
}

.footer .line-1 .contacts p:last-child {
    font-family: "Ony One Regular";
    font-weight: 400;
    font-size: 18px;
    color: #313332;
}
        
@media (max-height: 1200px){
    
    .footer {
        padding: 0 20px;
    }
    
    .footer .logo-menu{
        gap: 24px;
    }
            
    .footer .line-1 .addresses {
        margin: 0 24px 0 24px;
    }
            
    .footer .social{
        margin-left: 24px;
    }
    
}

@media (orientation: portrait) {

    .footer {
        padding: 0 10px;
        grid-row-gap: 16px;
    }

    .footerButton {
        height: 40px;
    }

    .footer .logo-menu {
        gap: 24px;
        justify-content: center;
    }

    .footer .line-1 .addresses :last-child {
        font-size: 14px;
    }

    .footer .social p {
        font-size: 14px;
    }

    .footer .social {
        gap: 8px;
        align-items: center;
        margin-left: 0; /* не убирать, иначе появляется горизонтальный скрол */
    }

    .footer .line-1 .contacts :first-child {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .footer .line-1 .contacts :last-child {
        font-size: 14px;
    }

    .menu-footer a {
        font-size: 14px;
    }

    .footer .line-1 {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
        grid-gap: 0;
        grid-row-gap: 16px;
        margin: 0;
    }

    .footer .logo {
        justify-self: center;
        height: 114px;
        width: 114px;
    }

    .footer .menu-footer {
        width: 118px;
    }

    .footer .logo,
    .footer .menu-footer {
        grid-row: 1;
        padding-bottom: 16px;
    }

    .footer .menu-footer .footerButton {
        min-width: 118px;
    }

    .footer .addresses {
        grid-row: 2;
        height: fit-content;
        grid-column: 1 / 3;
    }

    .footer .contacts {
        grid-row: 3;
    }

    .footer .contacts:first-child {
        font-size: 16px;
    }

    .footer .line-2 :first-child,
    .footer .line-2 .line-3 {
        align-self: start;
    }

    .footer .social {
        width: 100%;
        text-align: center;
        grid-column: 1 / 3;
        justify-self: center;
        grid-row: 4;
    }

    .footer .line-2 .link-footer {
        flex-direction: column;
        gap: 8px;
    }

    .footer .social span {
        display: inline-block;
    }

    .footer .line-2 {
        gap: 16px;
    }

    .footer .line-3 {
        margin: 0;
    }

    .footer .line-1 .addresses {
        margin: 0;
    }

    .footer .line-2 * {
        font-size: 12px !important;
    }
    
}
        
/* стили иконки наверх */
        
.back-to-top {
    position: fixed;
	padding:0;
    right: 30px;
    bottom: 30px;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transform: translateY(20px);

    transition:
        opacity .3s ease,
        transform .3s ease,
        visibility .3s ease,
        bottom .2s ease;

    z-index: 9999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top img {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

@media (max-width: 768px) {

    .back-to-top {
        width: 48px;
        height: 48px;

        right: 20px;
        bottom: 20px;
    }
}
        
/* стили хлебных крошек */

.custom-breadcrumbs {
    margin-top: 8px;
    margin-left: 98px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 6px;
    column-gap: 24px;
    font-family: "Ony One Regular";
    font-size: 14px;
    line-height: 1.4;
}

.custom-breadcrumbs a {
    color: #313332;
    text-decoration: none;
    transition: opacity .2s ease;
}

.custom-breadcrumbs a:hover {
    opacity: .7;
}

.custom-breadcrumbs .current {
    color: #AD83FF;
    cursor: default;
}

.breadcrumb-separator {
    display: none;
}

@media (max-width: 800px) {

    .custom-breadcrumbs {
        margin-left: 16px;
    }

}
