/* ---Normolize--- */

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

html {
    scroll-behavior: smooth;
}

body {
    scroll-behavior: smooth;
    background: #F7F2EE;
}

ul, li, a {
    text-decoration: none;
    list-style: none;
}

h1, h2, h3, p {
    padding: 0;
    margin: 0;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

h2 {
    font-size: 48px;
    scroll-padding-top: 30px;
}

section {
    scroll-margin-top: 100px;
}

.container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding-left: 84px;
    padding-right: 84px;
}

@media(max-width: 1250px) {
    .container {
        max-width: 1250px;
        padding-left: 20px;
        padding-right: 20px;
    }
}

p, button, a {
    font-family: 'Raleway', sans-serif;
}

button {
    font-weight: 600;
}

body.lock {
    overflow: hidden;
}

/* ---Normolize end--- */

/* ---Header--- */

.language__wrapper {
    display: flex;
    align-items: center;
    justify-content: start;
    position: relative;
    padding-right: 10px;
    overflow: hidden;
}

.language__wrapper.active {
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.language__selectors {
    display: flex;
    transform: translateY(-100%);
    flex-direction: column;
    position: absolute;
    top: -106px;
    left: -10px;
    padding: 10px;
    background-color: #F7F2EE;
    text-align: center;
    transition: transform 0.3s;
}

.language__selectors.active {
    transform: translateY(100%);
    transition: transform 0.3s;
}

.language__selector {
    color: black;
}

.language__selector:not(:last-child) {
    padding-bottom: 10px;
}

.language__wrapper::after {
    content: url(../img/icons/lanarrow.png);
    position: absolute;
    top: -12%;
    left: 22px;
    transition: transform 0.3s;
}

.language__wrapper.active::after {
    top: -40%;
    transform: rotate(180deg);
}

.language__wrapper {
    transform: rotate(180);
}


.language__select {
    display: block;
    padding-right: 30px;
    font-family: 'Raleway', sans-serif;
    cursor: pointer;
}

.nav__buttons {
    position: relative;
    display: flex;
    align-items: center;
}

.nav {
    display: flex;
    justify-content: space-between;
    padding: 0 84px;
    background-color: #F7F2EE;
    position: sticky;
    align-items: center;
    top: 0;
    left: 0;
    z-index: 10;
    box-shadow: 1px 4px 18px 0px rgba(102, 102, 102, 0.10);
}

@media(max-width: 800px) {
    .nav {
        padding: 0 20px;
    }
}

.nav__list {
    display: flex;
}


.nav__item:nth-child(n) {
    padding-left: 36px;
}

.nav__link {
    text-transform: uppercase;
    color: #1C1B1B;
    font-variant: all-small-caps;
    letter-spacing: 0.08px;
}

.nav__button {
    background: none;
    background-color: #725A77;
    border: none;
    color: white;
    padding: 10px 32px;
    border-radius: 4px;
    font-variant: all-small-caps;
    font-size: 16px;

}

.header__content{
    display: flex;
    justify-content: space-between;
    align-content: center;
    align-items: center;
    padding-top: 112px;
    padding-bottom: 136px;
}

@media(max-width: 1100px) {
    .header__content {
        flex-direction: column;
    }
}

.header__text__wrapper {
    max-width: 624px;
}

@media(max-width: 1420px) {
    .header__text__wrapper {
        max-width: 560px;
    }
}

@media(max-width: 1352px) {
    .header__text__wrapper {
        max-width: 500px;
    }
}

@media(max-width: 1300px) {
    .header__text__wrapper {
        max-width: 400px;
    }
}

@media(max-width: 1200px) {
    .header__text__wrapper {
        max-width: 400px;
    }
}

@media(max-width: 1100px) {
    .header__text__wrapper {
        max-width: 1100px;
        text-align: center;
        padding-bottom: 80px;
    }
}


@media(max-width: 900) {
    .header__text__wrapper {
        max-width: 288px;
    }
}

.header__img__wrapper {
    display: flex;
    gap: 24px;
}

@media(max-width: 1200px) {
    .header__img__wrapper {
        gap: 10px;
    }
    .header__img__wrapper img {
        width: 250px;
    }
}


@media(max-width: 1100px) {
    .header__img__wrapper {
        gap: 20px;
    }
    .header__img__wrapper img {
        width: 300px;
    }
}

@media(max-width: 650px) {
    .header__img__wrapper img {
        max-width: 200px;
        width: 100%;
    }
}

@media(max-width: 450px) {
    .header__img__wrapper img {
        max-width: 132px;
    }
}

.header__text-title {
    font-size: 64px;
    line-height: 70px;
    text-transform: uppercase;
    max-width: 624px;
    width: 100%;
    padding-bottom: 24px;
}

@media(max-width: 1200px) {
    .header__text-title {
        font-size: 58px;
        max-width: 1100px;
    }
}

@media(max-width: 900) {
    .header__text-title{
        font-size: 40px;
    }
}

.header__text-paragraph {
    line-height: 28px;
    font-size: 18px;
    padding-bottom: 24px;
}

.header__text-btn {
    padding: 10px 32px;
    border-radius: 6px;
    border: none;
    border: 1px solid #9C9C9C;
    background: none;
    color: #1C1B1B;
    font-size: 18px;
    cursor: pointer;
}

@media(max-width: 600px) {
    .header__text-btn.header {
        background: #725A77;
        color: white;
        max-width: 300px;
        width: 100%;
    }
}

/* ---Header end--- */

/* ---Our Services--- */

.services {
    text-align: center;
    padding-bottom: 136px;
}

.services__cards {
    display: flex;
    justify-content: space-between;
}

@media(max-width: 1000px) {
    .services__cards {
        flex-direction: column;
        align-items: center;
    }

    .services__cards > :not(:first-child) {
        margin-top: 40px;
    }
}

.services__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
    text-align: start;
    width: 236px;
    margin: 0;
    padding: 0;
    background: white;
    border-radius: 6px;
}

@media(max-width: 1400px) {
    .services__card {
        width: 220px;
    }
}

@media(max-width: 1300px) {
    .services__card {
        width: 210px;
    }
}

@media(max-width: 1110px) {
    .services__card {
        width: 190px;
    }
}

@media(max-width: 1000px) {
    .services__card {
        max-width: 236px;
        width: 100%;
        max-height: 500px;
        height: fit-content;
    }
}

.services__card-wrapper {
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    max-width: 203px;
}

.services__card-wrapper img {
    border-radius: 6px;
    max-width: 203px;
    width: 100%;
    height: 100%;
    max-height: 230px;
    object-fit: cover;
    padding-bottom: 8px;
}

@media(max-width: 1110px) {
    .services__card-wrapper img {
        max-width: 160px;
    }
}

@media(max-width: 1000px) {
    .services__card-wrapper img {
        max-width: 550px;
        width: 100%;
    }
}

.services__card-wrapper h3 {
    font-size: 26px;
    padding-bottom: 24px;
}

@media(max-width: 1110px) {
    .services__card-wrapper h3 {
        font-size: 20px;

    }
}


.services__title {
    padding-bottom: 48px;
}

/* ---Our Services end--- */

/* ---Advantages--- */

.advantages {
    display:flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 136px;
    display: none;
}

.advantages h3 {
    font-size: 48px;
    padding-bottom: 18px;
}

.advantages h2 {
    padding-bottom: 48px;
}

.advantages__card {
    display: flex;
    flex-direction: column;
    width: 246px;
    text-align: center;
}

.advantages__cards {
    display: flex;
    justify-content: space-between;
}

/* ---Advantages end--- */

/* ---Photo--- */

.photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 136px;
}

@media(max-width: 1250px) {
    .photo__btn {
        margin-top: 350px;
    }
}

.photo h2 {
    padding-bottom: 48px;
}

.photo__img {
    max-width: 1056px;
    width: 100%;
    border-radius: 6px;
}

.instagram__wrapper {
    height: 600px;
    max-width: 1440px;
    padding-top: 136px;
    margin-bottom: 59px;
    display: flex;
    justify-content: space-between;
}

@media(max-width: 1250px) {
    .instagram__wrapper {
        flex-wrap: wrap;
        max-width: 600px;
    }
}

.instagram__wrapper > :nth-child(n) {
    padding-left: 24px;
}

.instagram__img {
    height: 300px;
    width: 300px;
    border-radius: 6px;
}

.instagram__img--2 {
    margin-top: 89px;
}

.instagram__img--3 {
    margin-top: 61px;
}

.instagram__img--4 {
    margin-top: 118px;
}

@media(max-width: 640px) {
    .instagram__img {
        width: 220px;
        height: 220px;
        object-fit: cover;
    }
    .instagram__wrapper {
        max-width: 450px;
    }

    .instagram__img--2 {
        margin-top: 49px;
    }
    
    .instagram__img--3 {
        margin-top: 21px;
    }
    
    .instagram__img--4 {
        margin-top: 78px;
    }

    .photo__btn {
        margin-top: 100px;
    }
}

@media(max-width: 479px) {
    .instagram__img {
        width: 142px;
        height: 142px;
        object-fit: cover;
    }
    .instagram__wrapper {
        max-width: 300px;
    }

    .instagram__img--2 {
        margin-top: 29px;
    }
    
    .instagram__img--3 {
        margin-top: 1px;
    }
    
    .instagram__img--4 {
        margin-top: 58px;
    }

    .photo__btn {
        margin-top: 1px;
    }
}

@media(max-width: 324px) {
    .instagram__img {
        width: 132px;
        height: 132px;
        object-fit: cover;
    }
    .instagram__wrapper {
        max-width: 300px;
    }

    .instagram__img--2 {
        margin-top: 19px;
    }
    
    .instagram__img--3 {
        margin-top: -11px;
    }
    
    .instagram__img--4 {
        margin-top: 8px;
    }

    .photo__btn {
        margin-top: 1px;
    }
}

/* ---Photo end--- */

/* ---About--- */

.about {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 136px;
}

.about h2 {
    padding-bottom: 48px;
}

.about__wrapper {
    max-width: 1440px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 132px;
}

@media(max-width: 1250px) {
    .about__wrapper {
        gap: 60px;
    }
}

@media(max-width: 1000px) {
    .about__wrapper {
        flex-direction: column-reverse;
        align-items: center;
    }
}



.about__text {
    max-width: 516px;
}

@media(max-width: 1000px) {
    .about__text {
        max-width: 624px;
    }
}

.about__img {
    width: 624px;
}

@media(max-width: 1250px) {
    .about__img {
        max-width: 500;
    }
}

@media(max-width: 1000px) {
    .about__img {
        max-width: 624px;
        width: 100%;
    }
}

/* ---About end--- */

/* ---Contacts--- */
.contacts {
    text-align: center;
}

.contacts h2 {
    padding-bottom: 48px;
}

.contacts__wrapper {
    background-image: url(../img/map.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 735px;
    position: relative;
}

.contact__card {
    text-align: start;
    width: 408px;
    height: 520px;
    background: white;
    border-radius: 8px;
    position: absolute;
    top: 117px;
}

.contact__card-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 37px;
}

@media(max-width: 440px) {
    .contact__card {
        max-width: 320px;
        width: 100%;
        height: 500px;
        top: 20px;
        left: 50%;
        right: 50%;
        transform: translate(-50%);
    }

    .contacts__wrapper {
        min-height: 550px;
    }
}

.contact__card-wrapper h3 {
    font-size: 26px;
    font-weight: 400;
    padding-bottom: 12px;
    position: relative;
}

.contacts__adress::before {
    content: url(../img/icons/contact-marker.png);
    padding-right: 16px;
}

.contacts__number::before {
    content: url(../img/icons/contact-phone.png);
    padding-right: 16px;
}

.contacts__working::before {
    content: url(../img/icons/contact-clock.png);
    padding-right: 16px;
}

.contacts__social {
    padding-left: 40px;
}

.contact__card-wrapper p {
    padding-left: 40px;
    font-size: 20px;
    padding-bottom: 24px;
    font-weight: 500;
}

.contact__card-wrapper a {
    padding-left: 40px;
    display: block;
    padding-bottom: 4px;
    font-size: 20px;
    color: #666;
}

.contact__phone {
    margin-bottom: 20px;
}

.contact__social-wrapper {
    max-width: 192px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding-top: 14px;
}


.contact__social-wrapper img {
    width: 24px;
    height: 24px;
}


/* ---Contacts end--- */


/* ---Footer--- */

.footer {
    background: #1C1B1B;
    padding-bottom: 24px;
}

.footer__wrapper {
    padding-top: 77px;
    display: flex;
    justify-content: space-between;
}

@media(max-width: 827px) {
    .footer__wrapper {
        flex-direction: column;
        align-items: center;
    }
}


.footer__content {
    padding: 0 105px;
}

@media(max-width: 800px) {
    .footer__content {
        padding: 0 20px;
    }
}

@media(max-width: 827px) {
    .footer__content-wrapper {
       padding-bottom: 40px;
       display: flex;
       flex-direction: column;
       align-items: center;
       align-content: center;
    }
}

.footer__logo-wrapper {
    display: flex;
    align-items: center;
}

@media(max-width: 670px) {
    .footer__logo-wrapper {
        flex-direction: column;
    }
}

.footer__paragraph {
    color: #666;
    font-weight: 400;
    max-width: 350px;
    padding-left: 46px;
    line-height: 24px; 
}

@media(max-width: 1144px) {
    .footer__paragraph {
        display: none;
    }
}

@media(max-width: 827px) {
    .footer__paragraph {
        display: block;
    }
}



.footer__social {
    padding-top: 16px;
    display: flex;
}

.footer__social > :nth-child(n) {
    padding-left: 19px;
}

.footer__ul-title {
    color: white;
    padding-bottom: 20px;
    font-size: 18px;
}

.footer__nav-link {
    color: #9C9C9C;
    text-decoration: underline;
    font-size: 16px;
}

.footer__nav-items> :not(:last-child) {
    padding-bottom: 12px;
}

.footer__nav-items {
    list-style: none;
}

.footer__ul-wrapper {
    display: flex;
}

.footer__ul-wrapper > :not(:first-child) {
    padding-left: 115px;
}

@media(max-width: 1333px) {
    .footer__ul-wrapper > :not(:first-child) {
        padding-left: 50px;
    }
}

@media(max-width: 1203px) {
    .footer__ul-wrapper > :not(:first-child) {
        padding-left: 20px;
    }
}

@media(max-width: 827px) {
    .footer__ul-wrapper {
        display: flex;
        justify-content: space-around;
        max-width: 827px;
        width: 100%;
        flex-wrap: wrap;
        text-align: center;
    }

    .footer__ul-wrapper > :not(:last-child) {
        padding-bottom: 40px;
    }
}

.footer__services-item {
    font-family: 'Raleway', sans-serif;
    color: #666;
    font-size: 16px;
}

.footer__services-items > :not(:last-child) {
    padding-bottom: 12px;
}

.footer__contact-title {
    color: #666;
    padding-bottom: 12px;
}



.footer__contact-phone {
    color: #9C9C9C;
    text-decoration: underline;
}


/* ---Footer end--- */

/*  ---burger menu */

.burger__button {
    display: none;
}

.burger__menu {
    display: none;
    background: none;
    background-image: url(../img/icons/burger.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 24px;
    height: 24px;
    border: none;
    background-color: none;
    transition: background-image 0.3s;
}

.burger__menu.active {
    background-image: url(../img/icons/burger-active.png);
}

@media(max-width: 900px) {
    .burger__menu {
        display: block;
    }
}

@media(max-width: 900px) {
    .nav__list {
        display: none;
    }
}

@media(max-width: 900px) {
    .nav__button {
        display: none;
    }
}

@media(max-width: 900px) {
    .burger__button {
        color: white;
        background: #725A77;
        display: block;
        padding: 10px 32px;
        font-size: 18px;
        border-radius: 4px;
        margin-top: 30px;
    }

    
    .nav__list {
        transform: translate(-100%);
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 0;
        left:0;
        align-items: center;
        align-content: center;
        width: 100vw;
        height: 100vh;
        padding-top: 30%;
        background-color: white;
        transition: transform 0.3s;
        overflow: scroll;
    }

    .nav__link {
        font-size: 40px;
        padding-right: 25px;
    }

    .nav__list.burger {
        transform: translate(0);
    }

    .svg__logo {
        z-index: 10;
    }
    .language__select {
        display: none;
    }

    .language__wrapper::after {
        display: none;
    }

    .language__selectors >:not(:first-child) {
        padding-left: 10px;
    }

    .language__selectors.active {
        transform: translateY(0);
    }

    .language__selectors {
        transform: translateY(0);
        position: static;
        margin-top: 10px;
        flex-direction: row;
        justify-content: center;
        background-color: transparent;
    }
}


/*  ---burger menu end */