.main-footer {
    overflow: hidden;
}

    .main-footer .wrapper.flexed {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }

.footer-profile-section {
    background-color: #366084;
    padding: 26px 0;
}

    .footer-profile-section.not-logged .footer-avatar-title {
        text-decoration: underline;
    }

.logged .footer-profile-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.footer-avatar-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    /* margin-right:140px; */
}

.logged .footer-avatar-wrapper {
    max-width: 100%;
    width: 100%;
}

.not-logged .footer-avatar-wrapper {
    margin-right: 140px;
}

.footer-avatar-img {
    margin-right: 27px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-position: center center;
}

.not-logged .footer-avatar-img {
    background-color: rgba(255,255,255,0.25);
}

.logged .footer-avatar-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    max-width: 100%;
    width: 100%;
}

.footer-avatar-container {
    width: calc(100% - 117px);
}

.footer-avatar-title,
.footer-avatar-title a {
    margin: 0;
    font-size: 19px;
    font-weight: 400;
    color: #fff;
    text-decoration: none;
}

.footer-avatar-text {
    margin: 14px 0 0;
    font-size: 12px;
    font-weight: 400;
    color: #fff;
}

.footer-avatar-link {
    display: inline-block;
    color: #fff;
    margin-left: 4px;
}

.footer-profile-nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.footer-profile-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-right: 42px;
}

    .footer-profile-item:last-child {
        margin-right: 0;
    }

.footer-profile-link {
    display: block;
    text-decoration: none;
    margin: 0 0 0 9px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.non-touch .footer-profile-link:hover {
    text-decoration: underline;
}

.footer-middle-section {
    background-color: #204e77;
    padding: 45px 0 45px;
}

.footer-primary-nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
    max-width: 100%;
}

.footer-logo {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    margin-top: -233px;
    margin-right: -1px;
    margin-bottom: -1px;
    height:231px;
}

.footer-primary-item {
    /* width: 25%; */
    /* flex-grow: 1; */
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding-right: 20px;
}

.footer-primary-link {
    /* margin-bottom: 45px; */
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.333;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
}

.footer-primary-sub-item {
    display: block;
    margin-bottom: 20px;
}

    .footer-primary-sub-item:last-child {
        margin-bottom: 0;
    }

.footer-primary-sub-link {
    display: inline-block;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    color: rgba(255,255,255,0.75);
}

.footer-bottom-section {
    background-color: #f1f1f4;
}

.footer-secondary-nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    min-height: 70px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.footer-secondary-item {
    margin-right: 21px;
    padding: 8px 0;
}

    .footer-secondary-item:last-child {
        margin-right: 0;
    }

.footer-secondary-link {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.333;
    text-transform: uppercase;
    text-decoration: none;
    color: #8c8c8c;
}
/* Footer contact */
.footer-contacts {
    background-color: #204e77;
    color: #fff;
}

    .footer-contacts .wrapper {
        padding: 45px 0 50px;
        border-bottom: 3px solid rgba(255,255,255,0.25);
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }

    .footer-contacts a {
        font-size: 16px;
        font-weight: 600;
        line-height: 1.5;
        color: #ffffff;
    }

.contacts__info-box {
    margin-bottom: 16px;
}

.contacts__warning a {
    color: #ffffff;
    text-decoration: none;
}

a.contacts__link-1 {
    display: block;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.33;
    position: relative;
    text-transform: uppercase;
    margin-bottom: 44px;
    text-decoration: underline;
}
/* .contacts__link-1::before {
		content: '';
		width: 100%;
		position: absolute;
		left:0;
		bottom: -2px;
		width: 100;
		background: #fff;
		height: 2px;
	} */
.contacts__link-2 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #ffffff;
    position: relative;
    display: inline-block;
}

    .contacts__link-2::before {
        content: '';
        width: 100%;
        position: absolute;
        left: 0;
        bottom: -5px;
        width: 100;
        background: #fff;
        height: 3px;
    }

.contacts__v {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: distribute;
    justify-content: space-around;
}

.contacts__warning {
    -webkit-box-flex: 0;
    -ms-flex: 0 1 100%;
    flex: 0 1 100%;
    max-width: 404px;
}

.contacts__desc {
    font-size: 12px;
    line-height: 1.33;
    color: #ffffff;
    margin: 0 0 17px;
    max-width: 404px;
}

.contacts__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.33;
    color: #ffffff;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.contacts__info {
    font-size: 16px;
    line-height: 1.5;
    color: #ffffff;
    max-width: 135px;
    display: block;
    max-width: 125px;
}

.contacts__cont {
    position: relative;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
}

.hidden-dropdown {
    display: none;
}

.instagram-logo {
    width: 17px;
}

/*  end Footer contact */
/* Social icons */
.social__list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin: 0 -8px;
}

.social__list-item {
    padding: 0 8px;
    opacity: 1;
    -webkit-transition: opacity ease-in 0.4s;
    -o-transition: opacity ease-in 0.4s;
    transition: opacity ease-in 0.4s;
}

.non-touch .social__list-item:hover {
    opacity: 0.8;
}
/* End Social icons */
@media only screen and (max-width: 1024px) {
    .footer-profile-content {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    .footer-profile-nav {
        padding-right: 20px;
    }

    .main-footer .wrapper {
        padding: 0 10px;
    }

    .footer-contacts .wrapper {
        padding: 45px 10px 50px;
    }
    /* .footer-avatar-wrapper {
		margin-bottom: 32px;
	} */
}

@media screen and (max-width:940px)
{
    .social__list {
        max-width: 64px;
        -webkit-box-flex: 0;
        -ms-flex: 0 1 100%;
        flex: 0 1 100%;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        margin: -8px -8px -4px;
    }

    .footer-primary-item .primary-nav-arrow {
        top: 0;
        margin-top: 13px;
    }

    .social__list-item {
        max-width: 50%;
        padding: 8px;
        -webkit-box-flex: 0;
        -ms-flex: 0 1 100%;
        flex: 0 1 100%;
    }

    .main-footer .footer-bottom-section .wrapper.flexed {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }

    .footer-bottom-section {
        padding: 27px 41px;
    }

    .footer-profile-section {
        padding: 0;
    }

        .footer-profile-section .wrapper {
            padding: 14px 20px;
        }

    .footer-profile-item {
        margin-bottom: 20px;
    }

        .footer-profile-item img {
            max-width: 18px;
            width: 100%;
        }

        .footer-profile-item:last-of-type {
            margin-bottom: 0;
        }

    .footer-avatar-text {
        margin-top: 19px;
    }

    .footer-avatar-img,
    .footer-avatar-text,
    .footer-profile-nav {
        display: none;
    }

    .footer-profile-nav {
        margin-top: 28px;
    }

    .footer-avatar-container,
    .logged .footer-avatar-container {
        width: 100%;
        display: block;
    }

    .footer-avatar-wrapper {
        display: block;
        width: 100%;
        margin: 0;
    }

    .footer-avatar-title,
    .footer-avatar-title a {
        font-size: 12px;
        font-weight: 600;
        line-height: 1.33;
        color: #ffffff;
        text-transform: uppercase;
        width: 100%;
        display: block;
        position: relative;
        text-decoration: none;
    }

        .footer-avatar-title a {
            display: inline-block;
            width: auto;
        }

    .not-logged .footer-avatar-title a {
        text-decoration: none;
    }

    .footer-profile-section.not-logged .footer-avatar-title {
        text-decoration: none;
    }

    .footer-avatar-title a::before {
        content: '';
        background-repeat: no-repeat;
        /* background-size: 17px; */
        display: inline-block;
        vertical-align: middle;
        width: 12px;
        height: 17px;
        opacity: 0.5;
        margin-top: -4px;
        margin-right: 10px;
        background-position: center center;
    }

    .footer-logo {
        max-width: 100%;
        margin: 0;
        /* display: block; */
        /* padding: 14px 20px 0; */
    }

    .contacts__warning {
        max-width: 100%;
    }

    a.contacts__link-1 {
        margin-bottom: 25px;
    }

    .footer-contacts .wrapper {
        padding: 0;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.25);
    }

    .contacts__warning {
        padding: 14px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.25);
    }

    .contacts__info {
        max-width: 100%;
    }

    .footer-contacts .hidden-dropdown {
        display: block;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.33;
        color: #ffffff;
        text-decoration: none;
        position: relative;
        text-transform: uppercase;
        padding: 14px 20px;
    }

    .main-footer .wrapper.flexed {
        display: block;
        padding: 0;
    }

    .contacts__v {
        display: none;
        padding: 14px 20px 0;
    }

    .footer-middle-section {
        padding-top: 0px;
    }

    .footer-primary-item {
        border-bottom: 1px solid rgba(255,255,255,0.25);
        padding: 14px 20px;
        margin: 0;
    }

        .footer-primary-item:last-of-type {
            border: 0px;
        }

    .primary-nav-arrow {
        display: block;
        width: 30px;
        height: 20px;
        position: absolute;
        top: 50%;
        right: 20px;
        margin-top: -10px;
    }

        .primary-nav-arrow:before {
            content: '';
            position: absolute;
            top: 50%;
            bottom: 0;
            left: 0;
            right: 0;
            margin: -7px auto auto;
            width: 9px;
            height: 9px;
            border-right: 2px solid rgba(255,255,255,0.5);
            border-bottom: 2px solid rgba(255,255,255,0.5);
            position: absolute;
            -webkit-transform: rotate(45deg);
            -ms-transform: rotate(45deg);
            transform: rotate(45deg);
            -webkit-transition: -webkit-transform 0.35s ease;
            transition: -webkit-transform 0.35s ease;
            -o-transition: transform 0.35s ease;
            transition: transform 0.35s ease;
            transition: transform 0.35s ease, -webkit-transform 0.35s ease;
        }

    .footer-profile-content .primary-nav-arrow {
        right: 0;
    }

    .primary-nav-arrow.is-open:before {
        -webkit-transform: rotate(-135deg);
        -ms-transform: rotate(-135deg);
        transform: rotate(-135deg);
        margin-top: -3px;
    }

    .footer-middle-section {
        padding: 0;
    }

    .footer-primary-nav {
        display: block;
    }

    .footer-primary-item {
        position: relative;
        width: 100%;
        padding-right: 30px;
        /* margin-bottom: 10px; */
    }

    .footer-primary-link {
        margin-bottom: 0;
        /* color: rgba(255,255,255,0.75) */
    }

    .footer-primary-sub-nav {
        margin-top: 10px;
    }

    .footer-primary-sub-nav {
        display: none;
    }
}

@media only screen and (max-width: 640px) {
    .footer-secondary-nav {
        display: block;
    }

    .main-footer .footer-bottom-section .wrapper.flexed {
        -webkit-box-align: end;
        -ms-flex-align: end;
        align-items: flex-end;
    }

    .footer-secondary-item:last-child {
        padding-bottom: 0;
    }

    .footer-profile-section {
        /* display: none; */
    }
}

@media only screen and (max-width: 480px) {
    .footer-secondary-link {
        text-transform: none;
    }

    .footer-bottom-section {
        padding: 20px;
    }

    .footer-secondary-item {
        /* margin-right: 14px; */
        /* flex-basis: calc(50% - 14px);
		max-width: calc(50% - 14px); */
    }
}

@media only screen and (min-width: 769px) {
    /* .footer-primary-sub-nav {
		display: block !important;
	} */
}