/* defaults  start*/

* {
    margin: 0;
    padding: 0;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

/* defaults  end*/


/* fonts */

@font-face {
    font-family: 'Arial-black';
    src: url(../fonts/arial-black.ttf);
}

@font-face {
    font-family: 'Arial-bold';
    src: url(../fonts/arial-bold.ttf);
}

@font-face {
    font-family: 'Arial-bold-italic';
    src: url(../fonts/arial-bold-italic.ttf);
}

@font-face {
    font-family: 'Arial-narrow';
    src: url(../fonts/arial-narrow.ttf);
}

@font-face {
    font-family: 'Arial-narrow-bold-italic';
    src: url(../fonts/arial-narrow-bold-italic.ttf);
}

@font-face {
    font-family: 'Arial-narrow-bold';
    src: url(../fonts/arial-narrow-bold.ttf);
}

@font-face {
    font-family: 'Arial-narrow-italic';
    src: url(../fonts/arial-narrow-italic.ttf);
}

@font-face {
    font-family: 'Arial-regular';
    src: url(../fonts/arial-regular.ttf);
}


@font-face {
    font-family: 'Georgia-bold';
    src: url(../fonts/georgia-bold.ttf);
}

@font-face {
    font-family: 'Georgia-bold-italic';
    src: url(../fonts/georgia-bold-italic.ttf);
}

@font-face {
    font-family: 'Georgia-italic';
    src: url(../fonts/georgia-italic.ttf);
}

@font-face {
    font-family: 'Georgia-regular';
    src: url(../fonts/georgia-regular.ttf);
}



html {
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-size: 10px;
}

body {
    font-family: 'Georgia-regular', Verdana, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 160%;
    background: url(../img/forback.png), radial-gradient(100% 215.42% at 0% 0%, #5B483A 0%, #262425 100%);
}

/* wrapper styles start */

.wrapper {
    max-width: 128rem;
    margin: 0 auto;
}

/* wrapper styles end */

/* header styles start */

.header {
    background-color: #FFFFFF;

}

.header-content {
    padding: 3rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-logo__title {
    font-family: 'Georgia-regular';
    font-style: normal;
    font-size: 3.2rem;
    line-height: 3.5rem;
    color: #545454;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
    cursor: pointer;
}

.header-logo__subtitle {
    padding-left: 0.4rem;
    font-family: 'Georgia-regular';
    font-size: 1.3rem;
    line-height: 1.5rem;
    letter-spacing: 0.1em;
    align-items: center;
    color: #292929;
}

.header-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.header-menu__item {
    font-family: 'Arial-regular';
    font-size: 1.5rem;
    line-height: 2.4rem;
    margin-right: 3.6rem;
    transition: 0.3s;
}



.header-menu__item:nth-child(3) {
    margin-right: 3.4rem;
}

.header-menu__item:last-child {
    margin-right: 0;
}

.header-menu__link {
    text-decoration: none;
    color: #545454;
    line-height: 2.4rem;
    transition: 0.3s;

}

.header__burger {
    display: none;
    width: 4rem;
    height: 4rem;
    position: relative;
}

.burger__line {
    position: absolute;
    left: 0;
    display: block;
    width: 100%;
    height: 0.2rem;
    background-color: #F1CDB3;
}

.burger__line-first {
    top: 0.2rem;
}

.burger__line-second {
    top: 1.2rem;
}

.burger__line-third {
    top: 2.2rem;
}

.main__link {
    color: #545454;
    text-decoration: none;
    transition: 0.3s;
}

.header-menu__link:active,
.main__link:active {
    color: #545454;
    border-bottom: 0.3rem solid #F1CDB3;
    transition: none;
}

.header-menu__link:hover,
.main__link:hover {
    color: #292929;
}

.header__burger:hover {
    cursor: pointer;
}

.header-menu__item:nth-child(2) .header-menu__link {
    color: #292929;
    padding-bottom: 0.3rem ;
    border-bottom: 0.3rem solid #F1CDB3;
    pointer-events: none;
}

/* header styles end */


/* main styles start */

.section__heading-h2 {
    font-size: 4.4rem;
    line-height: 5.7rem;
    color: #fff;
    transition: all 0.5s;
}

.section__heading-h3 {
    font-size: 3.5rem;
    line-height: 4.5rem;
    letter-spacing: 0.06em;
    font-weight: normal;
    color: #545454;
    transition: all 0.5s;
}

.section__heading-h4 {
    font-family: 'Georgia-regular';
    font-style: normal;
    font-weight: 400;
    font-size: 2.0rem;
    line-height: 2.3rem;
    letter-spacing: 0.06em;
    color: #545454;
    transition: all 0.5s;
}

.section__heading-h5 {
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.7rem;
    letter-spacing: 0.06em;
    color: #545454;
    transition: all 0.5s;
}

.section__subheading {
    font-family: 'Arial-regular';
    font-size: 1.5rem;
    line-height: 2.4rem;
    color: #CDCDCD;
    transition: all 0.5s;
}

.button {
    height: 5.2rem;
    padding: 1.4rem 4.5rem;
    font-family: 'Georgia-regular', Verdana, sans-serif;
    font-size: 1.7rem;
    line-height: 2.2rem;
    text-align: center;
    color: #292929;
    letter-spacing: 0.06em;
    border: 0;
    border-radius: 10rem;
    transition: 0.3s;
    cursor: pointer;
    transition: all 0.5s;
}

.button:hover {
    background-color: #FDDCC4;
    border: 0;
}

.button_primary {
    background-color: #F1CDB3;
}

.button_secondary {

    border: 0.2rem solid #F1CDB3;
    background-color: transparent
}


/* our-friends section styles start */

.our-friends {
    background-color: #F6F6F6;
    text-align: center;
}

.our-friends__heading {
    text-align: center;
    margin-bottom: 6rem;
}

.our-friends-wrapper {
    padding: 8rem 4rem 4rem;
    transition: all 0.5s;
}

.our-friends-slider {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    transition: all 0.5s;
}

.pagination-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 6rem;
    row-gap: 3rem;
    column-gap: 4rem;
    transition: all 0.3s;
}

.pagination-card__wrapper {
    width: 27rem;
    height: 43.5rem;
    background: #FAFAFA;
    text-align: center;
    border-radius: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-card__in {
	animation: append-animate-add .4s linear;
}


@keyframes append-animate-add {
	from {
		transform: scale(0);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;	
	}
}

.pagination-card__wrapper:hover  {
    filter: drop-shadow(0 0.4rem 0.4rem rgba(0, 0, 0, 0.25));
    background-color: #FFFFFF;
}

.pagination-card__wrapper:hover .pagination-card__button {
    background-color: #FDDCC4;
    border: 0;
}

.pagination-card__wrapper:last-child {
    margin-right: 0;
}

.pagination-card {
    width: 27rem;
    height: 27rem;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    border-radius: 0.9rem 0.9rem 0 0;
    transition: all 0.3s;
}


.pagination-card__heading {
    color: #545454;
    font-size: 2.0rem;
    line-height: 2.3rem;
    letter-spacing: 0.06em;
    margin: 3rem 0;
  
}

.pagination-card__button {
    margin-bottom: 3rem;
    transition: 0.3s;
}

.pagination-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    column-gap: 2rem;
}

.button__paginator-icon {
    width: 5.2rem;
    height: 5.2rem;
    font-family: 'Georgia-regular';
    font-style: normal;
    font-weight: 400;
    font-size: 2.0rem;
    line-height: 2.3rem;
    letter-spacing: 0.06em;
    color: #292929;
    border: .2rem solid #F1CDB3;
    border-radius: 10rem;
    transition: 0.3s;
    cursor: pointer;
    margin-bottom: 6rem;
    background-color: transparent;
}
.button__paginator-inactive {
    color: #CDCDCD;
    border-color: #CDCDCD;
    pointer-events: none;

    
}


.button__paginator-active {
    background-color: #F1CDB3;
    border: 0;
}

.button__paginator-icon:hover {
    background-color: #FDDCC4;
    border: 0;
    color:#292929;
}

/* our-friends section styles end */

/* main styles end */


/* footer styles start */

.footer-wrapper {
    padding: 4rem 4rem 0;
}

.footer-content {
    min-height: 31rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    column-gap: 16.3rem;

}

.footer-contacts__heading {
    max-width: 27.9rem;
    color: #FFFFFF;
    text-align: left;
    margin-bottom: 4rem;
}

.footer-locations__heading {
    max-width: 27rem;
    color: #FFFFFF;
    text-align: left;
    margin-bottom: 3.5rem;

}

.footer__link {
    text-decoration: none;
    transition: 0.3s;
}


.info-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    align-items: center;
    margin-bottom: 3.3rem;
}

.marker {
    margin-bottom: 3rem;
}

.marker-icon {
    vertical-align: middle;
}

.info-line__text {
    font-family: 'Georgia-regular';
    font-style: normal;
    font-weight: 400;
    font-size: 2.0rem;
    line-height: 2.3rem;
    letter-spacing: 0.06em;
    color: #F1CDB3;
    margin-left: 2rem;
    transition: 0.3s;
    vertical-align: super;
}

.locations-text {
    margin-left: 1.6rem;
    text-align: left;
}

.info-line__text:hover {
    color: #FAFAFA;
}

.info-line__text:active {
    color: #FAFAFA;
    border-bottom: 0.3rem solid #F1CDB3;
    transition: none;
}

.footer__icon {
    transition: 0.3s;
}

.footer__icon:hover {
    transform: scale(1.2);
}

.footer-content__img {
    vertical-align: bottom;
    max-width: 100%;
}

/* footer styles end */


/* pop-up styles start */


.popup-wrapper {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(41, 41, 41, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: 0.5s all;
}

.popup-wrapper.active {
    opacity: 1;
    pointer-events: all;
    transition: 0.5s all;
}

.popup-info {
    display: flex;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: #fff;
    width: 90rem;
    height: 50rem;
    padding: 2.5rem;
    transition: 0.5s all;
    color: #000000;
    letter-spacing: 0.06em;
    background-color: #FAFAFA;
    border-radius: 0.9rem;
}

.popup-info.active {
    transform: translate(-50%, -50%) scale(1);
    transition: 0.5s all;
}

.popup-pic {
    width: 50rem;
    height: 50rem;
    background-image: url("../img/modal/jennifer.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    margin-right: 5rem
}

.popup-content {
    max-width: 40rem;
    padding: 5rem 2rem 8.8rem 2.9rem;
}

.popup-content__heading {
    font-size: 3.5rem;
    line-height: 4.5rem;
    margin-bottom: 1rem;
}

.popup-content__subheading {
    font-size: 2rem;
    line-height: 2.3rem;
    margin-bottom: 4rem;
}

.popup-content_text {
    font-size: 1.5rem;
    line-height: 1.7rem;
    margin-bottom: 4rem;
}

.popup-content__list-item {
    margin-left: 2rem;
}


.popup-content__list-item {
    color: #F1CDB3;
}

.popup-list__item-title {
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.7rem;
    color: #000000;
}

.popup-list__item-value {
    color: #000000;
    padding-left: 1rem;
}

.popup__close {
    position: absolute;
    top: -4rem;
    right: -5rem;
    cursor: pointer;
    width: 5.2rem;
    height: 5.2rem;
    border: 0.2rem solid #F1CDB3;
    border-radius: 100px;
    background-image: url(../img/cross.png);
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    transition: 0.3s;
    cursor: pointer;
    text-align: center;
}

.no-scroll {
    overflow: hidden
}

.popup__close:hover {
    background-color: #FDDCC4;
    border: 0;
}


/* popup styles end */



/* media start */

@media screen and (min-width: 1280px) {
    html {
        font-size: 10px;
    }

    .wrapper {
        width: 128rem;
        max-width: 100%;
        min-width: 32rem;
        margin: 0 auto;
    }
}

@media screen and (max-width: 1024px) {
    .popup-info {
        width: 63rem;
        height: 35rem;
    }

    .popup-pic {
        width: 35rem;
        height: 35rem;
        background-position: bottom center;
    }

    .popup-content__subheading {
        margin-bottom: 2rem;
    }

    .popup-content_text {
        font-size: 1.3rem;
        line-height: 1.4rem;
        margin-bottom: 2rem;
        letter-spacing: 0.05em;
    }

    .popup-content {
        max-width: 28rem;
        padding: 1rem 0.9rem 3.7rem 1.1rem;
    }

    .popup-content__list-item {
        line-height: 1.7rem;
    }
}



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


    .header-content {
        padding: 3rem 3rem;
    }

    .our-friends__heading {
        margin-bottom: 3rem;
    }

    .slider-card__007 {
        display: none;
    }

    .slider-card__008 {
        display: none;
    }

    .pagination-cards {
        margin-bottom: 4rem;
    }

    .button__paginator-icon {
        margin-bottom: 3.6rem;
    }


    .footer-wrapper {
        padding: 3rem 0.5rem 0;
    }

    .footer-content {
        justify-content: space-evenly;
        column-gap: 0.5rem;
        row-gap: 2.5rem;
    }

    .footer-locations {
        margin-right: 0.9rem;
    }
}




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

    .header-navigation {
        position: fixed;
        width: 32rem;
        height: 100%;
        top: 0;
        right: 0;
        background-color: #ffffff;
        z-index: 10;
        padding: 30px;
        transform: translateX(100%);
        transition: 0.2s linear;
    }

    .header-menu {
        flex-direction: row;
        justify-content: center;
        height: 100%;
        align-content: center;

    }

    .header__nav-active {
        transform: translateX(0);
    }

    .header-menu__item {
        font-size: 3.2rem;
        line-height: 5.21rem;
        color: #CDCDCD;
        margin-bottom: 4rem;
        margin-right: 0;
    }

    .header-menu__item:last-child {
        margin-bottom: 0;
    }

    .header__burger {
        display: block;
        position: relative;
        z-index: 11;
        transition: 0.2s linear;
    }

    .burger__open {
        transform: rotate(90deg);
        transition: 0.2s linear;
    }

    .modal {
        display: none;
        position: fixed;
        z-index: 9;
        left: 0;
        top: 0;
        height: 100%;
        width: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.5);
    }

    .modal__active {
        display: block;
    }

    .no-scroll {
        overflow: hidden
    }

    .burger__line { 
        background-color: #000;
    }
}

@media screen and (max-width: 620px) {
    .popup-info {
        width: 24rem;
        height: auto;
        padding: 0;
    }

    .popup-pic {
        display:none;
        margin-right: 0;
    }

    .popup-content__heading{
        text-align: center;
    }

    .popup-content__subheading {
        margin-bottom: 2rem;
        text-align: center;
    }

    .popup-content_text {
        font-size: 1.3rem;
        line-height: 1.4rem;
        margin-bottom: 2rem;
        letter-spacing: 0.05em;
        text-align: justify;
    }

    .popup-content {
        max-width: 24rem;
        padding: 1rem;
    }

    .popup-content__list-item {
        line-height: 1.7rem;
    }

    .popup-list__item-value {
        padding-left: 0.4rem;;
    }


}

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


    .wrapper {
        width: 32rem;
    }

    .header-content {
        padding: 3rem 2rem;
    }

    .header__burger {
        width: 4rem;
        height: 4rem;
    }

    .our-friends-wrapper {
        padding: 4.2rem 1rem 1rem;
    }

    .our-friends__heading {
        font-size: 2.5rem;
        line-height: 3.2rem;  
        text-align: center;
        letter-spacing: 0.06em;
        margin-bottom: 4rem;
    }

    .slider-card__004 {
        display: none;
    }

    .slider-card__005 {
        display: none;
    }

    .slider-card__006 {
        display: none;
    }

    .pagination-nav {
        column-gap: 1rem;
    }

    .popup__close {
        position: absolute;
        top: -5.5rem;
        right: -3rem;
    }


    .footer-content__pic {
        max-width: 26rem;
    }

    .section__heading-h3 {
        font-size: 2.5rem;
        line-height: 3.2rem;
        letter-spacing: 0.06em;
        text-align: center;
    }

    .info-line  {
        justify-content: center
    }

    .phone {
        margin-bottom: 1rem;
    }

    .footer-locations {

        display: flex;
        flex-wrap: wrap;
    }

    .footer-locations__heading {
        padding-left: 3.2rem;
        font-size: 2.5rem;
        line-height: 3.2rem;
        letter-spacing: 0.06em;
        margin-bottom: 3.7rem; 
    }

    .marker {
        align-self: flex-start;
        margin-bottom: 4rem;
        padding-left: 0.3rem;
    }

    .marker:last-child {
        margin-bottom: 0.8rem;
    }
    

}
