/* variables */
:root {
    --a-active: #F1CDB3;
    --a-color: #545454;
    --color-dark: #4C4C4C;
    --bg-btn: #F1CDB3;
    --btn-color: #292929;
}

/* general styles */
*,
*::before,
*::after {
    padding: 0;
    margin: 0;
    border: 0;
    box-sizing: border-box;
}

img {
    vertical-align: top;
}

html,
body {
    font-family: Georgia;
    height: 100%;
    padding: 0;
    margin: 0;
    line-height: 1.2;
    color: var(--text-color);
    scroll-behavior: smooth;
    background-color: #F6F6F6;
}

body._lock {
    overflow: hidden;
}

.wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 1 auto;
}

.container {
    max-width: 1280px;
    margin: auto;
    padding: 0px 40px;
}

a {
    text-decoration: none;
    color: var(--a-color);
}

.btn {
    font-family: Georgia;
    border-radius: 100px;
    font-size: 17px;
    line-height: 22px;
    letter-spacing: 0.06em;
    -webkit-transition: all 0.5s ease;
    -moz--transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.btn a {
    display: block;
    padding: 15px 45px;
}

.btn-more {
    border: solid 2px var(--bg-btn);
}

.btn-color a {
    color: var(--btn-color);
}

/* header */
.header {
    position: sticky;
    top: 0;
    padding: 30px 0px;
    background: #FFFFFF;
}

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

.header__logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.5s ease 0s;
}

h1.logo__title {
    font-size: 32px;
    font-weight: 400;
    line-height: 35px;
    letter-spacing: 0.06em;
    color: #545454;
    padding-bottom: 10px;
}

h2.logo__subtitle {
    font-family: Arial;
    font-weight: 400;
    font-size: 13px;
    line-height: 15px;
    letter-spacing: 0.1em;
    color: #292929;
}

.menu__list {
    display: flex;
    list-style: none;
}

.menu__item:nth-child(n+2) {
    padding-left: 35px;
}

.menu__item {
    font-family: Arial;
    font-size: 15px;
    line-height: 24px;
    color: #545454;
    -webkit-transition: all 0.5s ease;
    -moz--transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.menu__link:hover {
    color: #292929;
}

.menu__link.active {
    display: inline-block;
    cursor: pointer;
    color: #292929;
}

.menu__link.active:after {
    display: block;
    content: "";
    height: 3px;
    width: 100%;
    background-color: var(--a-active);
}

/* burger */
.menu__icon {
    display: none;
}

.burger__logo {
    display: none;
}

/* section our-friends */
.section-our-friends {
    background-color: #F6F6F6;
    padding: 80px 0px 100px;
}

.our-friends__title {
    font-weight: 400;
    font-size: 35px;
    line-height: 45px;
    letter-spacing: 0.06em;
    text-align: center;
    color: #545454;
    padding-bottom: 45px;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 15px 0px;
    column-gap: 40px;
    row-gap: 30px;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 30px;
    padding-bottom: 30px;
    border-radius: 9px;
    background-color: #FAFAFA;
}

.card:hover {
    background-color: #FFFFFF;
    cursor: pointer;
}

.card:hover .btn-more {
    background-color: var(--bg-btn);
}

.card p {
    font-family: Georgia;
    font-size: 20px;
    line-height: 23px;
    color: #545454;
}

.card img {
    border-top-left-radius: 9px;
    border-top-right-radius: 9px;
}

/* pagination */
.pagination {
    display: flex;
    justify-content: center;
    column-gap: 20px;
    padding-top: 45px;
}

.pagination .element {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 100px;
    border: 2px solid #F1CDB3;
    font-family: Georgia;
    font-weight: 400;
    line-height: 130%;
    color: #292929;
    font-size: 20px;
    line-height: 115%;
}

.pagination .element.active {
    background-color: #F1CDB3;
}

.pagination .element.active:hover {
    cursor: default;
}

.pagination .element:hover {
    border-color: #F1CDB3;
    background-color: #F1CDB3;
    cursor: pointer;
}

.pagination .element.disabled {
    border-color: #CDCDCD;
    color: #CDCDCD;
}

.pagination .element.disabled:hover {
    cursor: default;
}

.pagination .element.disabled:hover {
    background-color: transparent;
}

/* footer */
.dark-bg {
    background-image: url(../../assets/images/noise_transparent@2x.png), radial-gradient(100% 215.42% at 0% 0%, #5b483a 0%, #262425 100%), linear-gradient(0deg, #211F20, #211F20);
    background-repeat: repeat;
    background-size: auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-top: 40px;
}

.footer .container {
    padding: 0px 40px;
}

.contacts__link {
    display: flex;
    align-items: center;
}

.location__link {
    display: flex;
    align-items: center;
}

.contacts h4,
.locations h4 {
    padding-left: 20px;
}

.contacts {
    display: flex;
    flex-direction: column;
    row-gap: 40px;
}

.locations {
    display: flex;
    flex-direction: column;
    row-gap: 32px;
    max-width: 302px;
}

.contacts,
.locations {
    padding-top: 16px;
}

.footer-content h3 {
    font-weight: 400;
    font-size: 35px;
    line-height: 45px;
    letter-spacing: 0.06em;
    color: #fff;
}

.footer h4 {
    font-weight: 400;
    font-size: 20px;
    line-height: 23px;
    letter-spacing: 0.06em;
    color: #F1CDB3;
}

.relocate-br {
    display: none;
}

@media (max-width: 1279px) {

    .header__container.container {
        padding: 0px 30px;
    }

    /* our-friends */
    .section-our-friends {
        padding: 80px 0px 72px;
    }

    .cards {
        padding: 0px;
    }

    .pagination {
        padding-top: 40px;
    }

    /* footer */
    .footer .container {
        padding: 0px 55px;
    }

    .footer-content {
        justify-content: center;
        padding-top: 30px;
        column-gap: 60px;
        row-gap: 65px;
    }

    .contacts,
    .locations {
        padding-top: 0px;
    }

}

@media (max-width: 767px) {

    /* mobile begin */
    .container.header__container {
        max-width: 100%;
        padding: 0px 50px 0px 10px;
    }

    /* dark area */
    .underlay__menu {
        opacity: 0;
        visibility: hidden;
    }

    .underlay__menu._active{
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        transition: all 0.5s ease 0s;
        background: rgba(41, 41, 41, 0.6);
        opacity: 1;
        visibility: visible;
    }

    .nav{
        display: none;
    }

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

    /* burger mobile */
    .menu__icon {
        z-index: 5;
        display: block;
        position: relative;
        width: 30px;
        height: 20px;
        cursor: pointer;
        transition: all 0.5s ease 0s;
        -webkit-tap-highlight-color: transparent;
    }

    .menu__icon span,
    .menu__icon::before,
    .menu__icon::after {
        left: 0;
        position: absolute;
        height: 2px;
        width: 100%;
        background-color: #000;
    }

    .menu__icon::before,
    .menu__icon::after {
        content: "";
    }

    .menu__icon::before {
        top: 0;
    }

    .menu__icon::after {
        bottom: 0;
    }

    .menu__icon span {
        top: 50%;
        transform: translate(0px, -50%);
    }

    .menu__icon._active {
        transform: rotate(90deg);
    }

    .menu__body {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100%;
        background-color: #FAFAFA;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: right 0.5s ease 0s;
        overflow: auto;
    }

    .menu__body._active {
        right: 0;
    }

    .menu__list {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        row-gap: 40px;
    }

    .menu__item:nth-child(n+2) {
        padding: 0;
    }

    .menu__item:nth-child(2) {
        padding-top: 3px;
    }

    .menu__item a {
        font-size: 32px;
        line-height: 160%;
    }

    .burger__logo {
        display: block;
        position: absolute;
        top: 30px;
        left: 10px;
    }

    .header__logo._hide {
        opacity: 0;
        visibility: hidden;
    }

    /* our-friends */
    .container {
        max-width: 320px;
        padding: 0 10px;
    }

    .section h3 {
        font-size: 25px;
        line-height: 130%;
        text-align: center;
    }

    .section-our-friends {
        padding: 80px 0px 42px;
    }

    .our-friends__title {
        font-size: 25px;
        line-height: 130%;
    }

    .section-our-friends .card:nth-child(2) {
        display: none;
    }

    .cards {
        column-gap: 0px;
    }

    .pagination {
        column-gap: 10px;
        padding-top: 42px;
    }

    /* footer */
    .footer-content h3 {
        font-size: 25px;
        line-height: 130%;
        text-align: center;
        letter-spacing: 0.06em;
    }

    .footer .container {
        padding: 0px 10px;
    }

    .hide-br {
        display: none;
    }

    .relocate-br {
        display: block;
    }

    .contacts {
        align-items: center;
    }
    
}