@import url(https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700);
@font-face {
    font-family: 'Overpass';
    src: local('Overpass Regular'), local('Overpass-Regular'),
    url('/bitrix/templates/books/header/font/Overpass-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Overpass';
    src: local('Overpass SemiBold'), local('Overpass-SemiBold'),
    url('/bitrix/templates/books/header/font/Overpass-SemiBold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@viewport {
    min-width: 1200px;
}



body{
    width: 100%;
    font-family: 'Open Sans', sans-serif;
    min-width: 1200px;
    margin: 0;
    padding: 0;
}
.freshHeader {
    width: 100%;
    min-width: 1200px;
    margin-bottom: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    font-family: Overpass, serif;
}

.freshHeader__top,
.freshHeader__bottom {
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.freshHeader__top {
    justify-content: space-between;
    border-bottom: 1px solid #e3e3e3;
    padding: 30px 20px;

}

.freshHeader__bottom {
    justify-content: space-between;
    background: #eff0f2;
    padding: 0 20px;

}

.freshHeader__logo {
    width: 245px;
    height: auto;
}

.freshHeader__logoImg {
    width: 100%;
    height: auto;
}

.freshHeaderForm {
    display: flex;
}

.freshHeaderForm__input {
    outline: none;
    border: 1px solid #e3e3e3;
    max-width: 700px;
    min-width: 40vw;
    box-sizing: border-box;
    padding: 14px 55px 14px 28px;
    font-size: 16px;
    transition: all ease-in-out 0.3s;
}

.freshHeaderForm__input:hover,
.freshHeaderForm__input:active,
.freshHeaderForm__input:focus {
    border: 1px solid #cc3d3d;
}

.freshHeaderForm__submit {
    font-size: 16px;
    color: #fff;
    width: 80px;
    height: 50px;
    background: #cc3d3d;
    border: none;
    outline: none;
    cursor: pointer;
    transition: opacity ease-in-out 0.3s;
}

.freshHeaderForm__submit:hover {
    opacity: 0.7;
}

.freshHeader__login,
.freshHeader__login,
.freshHeader__logout,
.freshHeader__registration{
    font-size: 17px;
    padding: 12px 16px;
    border-radius: 3px;
    color: #000;
    line-height: 1.2;
    font-weight: 700;
    cursor: pointer;
    transition: opacity ease-in-out 0.3s;
}

.freshHeader__login {
    background: #A9DFBF;
}
.freshHeader__logout {
    background: #F5B7B1;
}
.freshHeader__registration {
    background: #85C1E9;
}

.freshHeader__login:hover,
.freshHeader__logout:hover,
.freshHeader__registration:hover {
    opacity: 0.7;
}
.freshHeader__personal {
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    cursor: pointer;
    transition: color ease-in-out 0.3s;
}
.freshHeader__menu {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.freshHeader__menuItem {
    position: relative;
    padding: 30px 0;
    margin: 0 18px;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
}

.freshHeader__menuLink {
    text-decoration: none;
    color: #000;
    cursor: pointer;
}
.freshHeader__menuGroup {
    display: flex;
    flex-direction: column;
}
.freshHeader__menuBalance {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-weight: bold;
    color: #000;
    text-decoration: none;
}
.freshHeader__menuBalance:nth-of-type(odd) {
    border-bottom: 1px solid #e3e3e3;
    padding-bottom: 8px;
    margin-bottom: 4px;
}


.freshHeader__menuLink_warning {
    animation: freshWarning 2s ease-in-out;
    animation-iteration-count: infinite;
}

@keyframes freshWarning {
    0% {
        color: #000
    }
    50% {
        color: #D32F2F;
    }
    100% {
        color: #000
    }
}

.freshHeader__menuItem:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background: #cc3d3d;
    transition: width ease-in-out 0.2s;
}

.freshHeader__menuItem:hover:after {
   width: 100%;
}

.freshHeader__phone {
    font-size: 20px;
    text-decoration: none;
    color: #000;
}
/*------------------------------*/

.freshHeaderContacts {
    position: relative;
    z-index: 10;
}

.freshHeaderContacts__list {
    all: unset;
    list-style: none;
    position: absolute;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    background: #eff0f2;
    transform: translate3d(0, -20%, 0);
    transition: all .4s ease;
}

.freshHeaderContacts:hover .freshHeaderContacts__list {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
}

.freshHeaderContacts__title {
    padding: 30px 0;
    margin: 0 18px;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
}

.freshHeaderContacts:hover .freshHeaderContacts__title {
    color: #cc3d3d;
}

.freshHeaderContacts__item {
    padding: 0 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    border-bottom: 2px solid #cc3d3d;
}

.freshHeaderContacts__icon {
    width: 20px;
    height: 20px;
}

.freshHeaderContacts__link {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;

    cursor: pointer;
}

.freshHeaderContacts__link:active {
    color: #cc3d3d;
}

/*------------------------------*/

.freshHeaderDropDown  {
    position: relative;
    z-index: 10;
}

.freshHeaderDropDown__list {
    all: unset;
    list-style: none;
    position: absolute;
    left: 0;
    top: 280%;
    width: 100%;

    opacity: 0;
    visibility: hidden;
    background: #eff0f2;
    transform: translate3d(0, -20%, 0);

    transition: all .4s ease;
}

.freshHeaderDropDown:hover .freshHeaderDropDown__list {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
}

.freshHeaderDropDown__title {
    all: unset;
    padding: 30px 0;
    margin: 0 18px;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
}

.freshHeaderDropDown__title:after {
    content: "\25BC";}

.freshHeaderDropDown:hover .freshHeaderDropDown__title {
    color: #cc3d3d;
}

.freshHeaderDropDown__item {
    padding: 0 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    border-bottom: 2px solid #cc3d3d;
}

.freshHeaderDropDown__icon {
    width: 20px;
    height: 20px;
}

.freshHeaderDropDown__link {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;

    cursor: pointer;
}

.freshHeaderDropDown__link:active {
    color: #cc3d3d;
}

/*------------------------------*/
.freshHeader__modalContainer {
    visibility: hidden;
    z-index: 100;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


.freshHeader__modalContainer_active {
    visibility: visible;
}

.freshHeader__modalOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    opacity: 0.5;
}

.freshHeader__modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 340px;
    background: #fff;
}

.freshHeader__modalClose {
    font-size: 12px;
    color: #cc3d3d;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.extended_link {
    color: #cc3d3d;
}