html {
    scroll-behavior: smooth;
}

body {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

h2 {
    font-family: 'Georgia';
    font-style: normal;
    font-weight: 400;
    font-size: 44px;
    line-height: 130%;
    color: #545454;
}

h3 {
    font-family: 'Georgia';
    font-style: normal;
    font-weight: 400;
    font-size: 35px;
    line-height: 130%;
    color: #545454;
    letter-spacing: 0.06em;
}

h4 {
    font-family: 'Georgia';
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 115%;
    letter-spacing: 0.06em;
    color: #545454;
    margin: 0px;
}

h5 {
    font-family: 'Georgia';
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    line-height: 110%;
    letter-spacing: 0.06em;
    color: #545454;
}

button {
    padding: 15px 45px;
    border-radius: 100px;
    border: none;
    transition: 0.3s;
}

.lock {
    overflow: hidden;
}

.header {
    background: #FFFFFF;
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

.logo {
    display: flex;
    margin: 11px 0px 30px 4px;
}

.logo>a {
    text-decoration: none;
}

.logo_text {
    font-family: 'Georgia';
    font-style: normal;
    font-weight: 400;
    font-size: 32px;
    line-height: 110%;
    display: flex;
    align-items: center;
    letter-spacing: 0.06em;
    color: #545454;
    margin: 20px 0px 9px -3px;
}

.logo_subtitle {
    font-family: 'Arial';
    font-style: normal;
    font-weight: 400;
    font-size: 13px;
    line-height: 15px;
    display: flex;
    align-items: center;
    letter-spacing: 0.1em;
    color: #292929;
}

.nav__menu {
    display: flex;
    font-family: 'Arial';
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    line-height: 160%;
    color: #545454;
    list-style: none;
    margin: 47px 2px 0px 0px;
}

.nav_item {
    margin: 0 17.5px;
}

.nav_item>a:hover {
    color: #292929;
}

.nav_item>a:active {
    color: #292929;
    border-bottom: 3px solid #F1CDB3;
}

.nav_item:nth-child(2)>a:not(:hover) {
    color: #292929;
    pointer-events: none;
    border-bottom: 3px solid #F1CDB3;
}

.nav_item:last-child {
    margin-right: 0;
}

.nav_item>a {
    color: #545454;
}

.burger {
    display: none;
    position: absolute;
    right: 22px;
    top: 47px;
    width: 30px;
    height: 22px;
    cursor: pointer;
    transition: 0.3s;
    z-index: 30;
}

.burger.active {
    transform: rotate(90deg);

}

.burger.active>span {
    border-color: #F1CDB3;
}

.first {
    width: 100%;
    position: absolute;
    border: 2px solid #000000;
    display: block;
    transition: .3s;
    top: 0px;
}

.second {
    width: 100%;
    position: absolute;
    border: 2px solid #000000;
    display: block;
    transition: .3s;
    top: 11px;
}

.third {
    width: 100%;
    position: absolute;
    border: 2px solid #000000;
    display: block;
    transition: .3s;
    top: 22px;
}

.burger-menu {
    width: 320px;
    height: 100vh;
    background: #292929;
    /* padding: 10px; */
    position: fixed;
    right: -340px;
    transition: right 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 20;
}

.animate {
    right: 0;
}

.burger-menu__nav {
    list-style: none;
    text-align: center;
    padding: 0;
}

.burger-menu__item {
    margin: 20px 38px 20px 38px;
}

.burger-menu__item:first-child {
    padding-top: 250px;
}

.burger-menu__item:nth-child(2) {
    border-bottom: solid 3px #F1CDB3;
}

.burger-menu__item:nth-child(2)>a {
    color: #FAFAFA;
}

.burger-menu__item>a {
    font-family: 'Arial';
    font-style: normal;
    font-weight: 400;
    font-size: 32px;
    line-height: 160%;
    color: #CDCDCD;
}

.burger__overlay {
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 10;
}

.popup__overlay {
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;

}

.active {
    display: block;
    background-color: rgba(41, 41, 41, 0.6);
}


.our-friends {
    background: #F6F6F6;
    padding-top: 80px;
    padding-bottom: 100px;
}

.our-friends>.wrapper>h3 {
    margin: 0 0 60px 0;
    text-align: center;
}

.popup__container {
    display: flex;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0 auto 0;

    width: 900px;
    height: 500px;
    background: #FAFAFA;
    border-radius: 9px;
    z-index: 40;
}

.popup-left {
    width: 500px;
    height: 500px;
}

.popup-left>img {
    width: 500px;
}

.popup-right {
    width: 400px;
    padding: 20px 20px 0px 30px;
}

.popup-right>h3 {
    margin-bottom: 10px;
}

.popup-right>h4 {
    margin-bottom: 40px;
}

.popup-text {
    margin-bottom: 40px;
}

.popup-list {
    margin: 13px 0px;
}

.popup-list::before {
    content: '\2022';
    width: 4px;
    height: 4px;
    color: #F1CDB3;

}

.popup__close {
    display: none;
    position: fixed;
    top: 19%;
    left: 73%;
    width: 52px;
    height: 52px;
    border: 2px solid #F1CDB3;
    border-radius: 100px;
    padding: 0;
    z-index: 10;
    background: url(../assets/svg/Vector.svg), rgba(255, 255, 255, 0);
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}

.popup__close:hover {
    background: url(../assets/svg/Vector.svg), #FDDCC4;
    background-repeat: no-repeat;
    background-position: center;
}



.our-friends__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 30px;
}

.our-friends__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 270px;
    height: 435px;
    background-color: #FAFAFA;
    border-radius: 9px;
    transition: 0.3s;
}

.our-friends__card:hover {
    box-shadow: 0px 2px 35px 14px rgba(13, 13, 13, 0.04);
}

.card_button {
    border: 2px solid #F1CDB3;
    font-family: 'Georgia';
    font-style: normal;
    font-weight: 400;
    font-size: 17px;
    line-height: 130%;
    letter-spacing: 0.06em;
    color: #292929;
    background-color: #FAFAFA;
    margin-bottom: 30px;
    cursor: pointer;
}

.card_button:hover {
    border: 2px solid #FDDCC4;
    background-color: #FDDCC4;
}

.our-friends__navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 20px;
    margin: 59px 0px 0px 0px;
}

.circle {
    width: 52px;
    height: 52px;
    border-radius: 100px;
    padding: 0;
    font-family: 'Georgia';
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 115%;
    letter-spacing: 0.06em;
    color: #292929;
}

.prev {
    border: 2px solid #CDCDCD;
    cursor: default;
    color: #CDCDCD;
}


.selected {
    background: #F1CDB3;
    border: 2px solid #F1CDB3;
    cursor: default;
}


.next {
    border: 2px solid #F1CDB3;
    transition: 0.3s;
    cursor: pointer;
}

.next:hover {
    border: 2px solid #FDDCC4;
    background: #FDDCC4;
}


.footer {
    background: url(../assets/noise_transparent@2x.png), radial-gradient(110.67% 538.64% at 5.73% 50%, #513D2F 0%, #1A1A1C 100%), #211F20;
}


.footer__container {
    display: flex;
}

.footer__left {
    display: flex;
    flex-direction: column;
    margin: 22px 125px 0px 0px;
}

.footer__left>h3 {
    color: #fff;
}

.footer__text {
    color: #F1CDB3;
    transition: 0.3s;
}

.footer__email {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    background-image: url(../assets/svg/mail.svg);
    background-repeat: no-repeat;
    background-position: 0px 10px;
    margin: -4px 0px 27px 0px;
    padding: 0px 0px 0px 19px;
    transition: 0.3s;
}

.footer__email:hover {
    background-image: url(../assets/svg/mail-hover.svg);
}

.footer__email:hover>.footer__text {
    color: #fff;
}

.footer__phone {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    background-image: url(../assets/svg/phone.svg);
    background-repeat: no-repeat;
    background-position: 0px 6px;
    margin: 0px 14px 0px 0px;
    padding: 0px 0px 0px 21px;
    transition: 0.3s;
}

.footer__phone:hover {
    background-image: url(../assets/svg/phone-hover.svg);
}

.footer__phone:hover>.footer__text {
    color: #fff;
}

.footer__center {
    display: flex;
    flex-direction: column;
    margin: 22px 0px 0px 23px;
}

.footer__center>h3 {
    color: #fff;
}


.footer__first-location {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    background-image: url(../assets/svg/icon-marker.svg);
    background-repeat: no-repeat;
    background-position: 0px 5px;
    margin: -2px 0px 0px 0px;
    padding: 0px 0px 0px 40px;
    transition: 0.3s;
}

.footer__first-location:hover {
    background-image: url(../assets/svg/icon-marker-hover.svg);
}

.footer__first-location:hover>.footer__text {
    color: #fff;
}

.footer__second-location {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    background-image: url(../assets/svg/icon-marker.svg);
    background-repeat: no-repeat;
    background-position: 0px 7px;
    margin: 24px 0px 0px 0px;
    padding: 0px 0px 0px 13px;
    transition: 0.3s;
}

.footer__second-location:hover {
    background-image: url(../assets/svg/icon-marker-hover.svg);
}

.footer__second-location:hover>.footer__text {
    color: #fff;
}

.footer__right {
    margin: 40px 0px 0px 165px;
}


@media screen and (max-width: 1279px) {
    .header__container {
        justify-content: space-evenly;
    }

    .nav__menu {
        padding-left: 30px;
    }

    .our-friends {
        padding-bottom: 73px;
    }

    .our-friends>.wrapper>h3 {
        margin-bottom: 30px;
    }

    .our-friends__container {
        justify-content: center;
        column-gap: 40px;
    }

    .popup__container {
        width: 630px;
        height: 350px;
    }

    .popup-left {
        width: 350px;
        height: 350px;
    }

    .popup-left>img {
        width: 350px;
        height: 350px;
    }

    .popup-right {
        padding: 9px;
    }

    .popup-right>h3 {
        margin: 0 0 0 0;
    }

    .popup-right>h4 {
        margin: 10px 0 20px 0;
    }

    .popup-text {
        font-size: 13px;
        margin: 0 0 20px 0;
    }

    .popup-list {
        margin: 6px 0;
    }

    .seventh-card,
    .eighth-card {
        display: none;
    }

    .our-friends__navigation {
        margin-top: 39px;
    }

    .footer__container {
        max-width: 640px;
        flex-wrap: wrap;
        margin: 0 auto;
    }

    .footer__left {
        max-width: 45%;
        margin: -2px 50px 17px 0
    }

    .footer__center {
        max-width: 46%;
        margin: -2px 0 17px 0;
    }

    .footer__right {
        margin-left: 169px;
    }
}

@media screen and (max-width:767px) {
    .nav__menu {
        display: none;
    }

    .burger {
        display: block;
    }
}

@media screen and (max-width: 650px) {

    h2 {
        font-size: 25px;
        letter-spacing: 0.06em;
    }

    h3 {
        font-size: 25px;
    }

    h4 {
        font-size: 15px;
    }

    h5 {
        font-weight: 400;
        font-size: 15px;
        line-height: 160%;
        letter-spacing: 0;
    }

    .header__container {
        justify-content: flex-start;
    }

    .logo {
        margin-left: 23px;
    }

    .our-friends {
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .our-friends>.wrapper>h3 {
        margin-bottom: 43px;
    }

    .popup__container {
        width: 240px;
        height: 340px;
    }

    .popup-left {
        display: none;
    }

    .popup-right>h3 {
        text-align: center;
        font-size: 35px;
    }

    .popup-right>h4 {
        text-align: center;
        font-size: 20px;
    }

    .popup-text {
        font-family: 'Georgia';
        font-style: normal;
        font-weight: 400;
        font-size: 13px;
        line-height: 110%;
        text-align: justify;
        letter-spacing: 0.06em;
        margin-bottom: 0px;
    }

    .popup-list {
        margin: 0px 0;
        line-height: 110%;
    }

    .our-friends__card>h4 {
        font-size: 20px;
    }

    .fourth-card,
    .fifth-card,
    .sixth-card {
        display: none;
    }

    .our-friends__navigation {
        column-gap: 10px;
    }

    .footer__left {
        max-width: 100%;
        margin: 0 auto;
    }

    .footer__left>h3 {
        text-align: center;
        margin-top: 30px;
    }

    .footer__email {
        margin: 8px 0px 26px 33px;
        padding-left: 27px;
    }

    .footer__phone {
        margin: 0px 14px 0px 40px;
        padding: 0px 0px 0px 33px;
    }

    .footer__center {
        max-width: 100%;
        margin: -2px auto 16px;
    }

    .footer__center>h3 {
        text-align: center;
        margin: 34px 18px 41px 18px;
    }

    .footer__first-location {
        margin: 0px 0px 9px 10px;
        padding: 0px 0px 0px 42px;
    }

    .footer__second-location {
        justify-content: flex-start;
        margin: 23px 0px 0px 9px;
        padding: 0px 0px 0px 43px;
    }

    .footer__right {
        max-width: 100%;
        padding: 15px 29px 0px 28px;
        margin: 0 auto;
    }

    .footer__right>img {
        max-width: 100%;
    }

    .footer__text {
        font-weight: 400;
        font-size: 20px;
        line-height: 115%;
        letter-spacing: 0.06em;
    }
}