/* Fonts */
@font-face {
    font-family: 'Cairo-Bold';
    src: url(./assets/fonts/Cairo-Bold.ttf) format("truetype");
    font-style: normal;
    font-weight: normal;
}
@font-face {
    font-family: 'Cairo-Regular';
    src: url(./assets/fonts/Cairo-Regular.ttf) format("truetype");
    font-style: normal;
    font-weight: normal;
}
/* Base */
* {
    box-sizing: border-box;
    margin: 0;
}
body {
    font-family: 'cairo-regular', sans-serif;
    font-size: 14px;
    padding: 0 15px;
    color: #1D192C;
}
h1, h2, h3, h4 {
    font-family: 'Cairo-Bold', sans-serif;
    font-size: 18px;
    margin-bottom: 28px;
}
h1 {
    font-size: 20px;
}
p {
    margin-bottom: 26px;
    line-height: 28px;
}
img {
    max-width: 100%;
}
/* Helpers */
.text-center {
    text-align: center;
}
.text-gray {
    opacity: .7;
}
.btn {
    font-weight: bold;
    background: #1F4068;
    color: #fff;
    padding: 10px 16px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}
.btn.outline {
    background: #fff;
    color: #1F4068;
    border: 1px solid #1F4068;
}
.btn.wide {
    display: block;
}
/* page */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #DFDFDF;
    padding: 8px 0;
    margin-bottom: 28px;
}
.logo {
    width: 60px;
    height: auto;
}
.btn.change-lang {
    margin-left: 6px;
}
[dir=ltr] .btn.change-lang {
    margin-left: 0;
    margin-right: 6px;
}
section:not(:last-child) {
    margin-bottom: 64px;
}
.why-box {
    border: 1px solid #DFDFDF;
    border-radius: 5px;
    padding: 16px;
    margin-bottom: 16px;
}
.why-box h4 {
    margin-bottom: 16px;
}
.why-box p {
    margin-bottom: 0;
}
.about-box img {
    margin: 0 auto 26px;
    display: block;
}
.our-clients {
    display: flex;
    flex-wrap: wrap;
}
.our-clients .client-box {
    flex-basis: 50%;
    padding-left: 6px;
    padding-right: 6px;
}
.join-us {
    background: #1F4068;
    border-radius: 5px;
    padding: 24px 16px 16px;
    color: #fff;
    border-radius: 20px;
}
.join-us .btn {
    background: #fff;
    color: #1F4068;
    margin-top: 35px;
}
footer {
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
}
@media (min-width: 992px) {
    body {
        font-size: 18px;
    }
    h1, h2, h3, h4 {
        font-size: 40px;
        margin-bottom: 16px;
    }
    h1 {
        font-size: 46px;
        line-height: 80px;
    }
    p {
        margin-bottom: 62px;
    }
    .btn {
        padding: 10px 40px;
        border-radius: 10px;
    }
    .btn.wide {
        display: inline-block;
    }
    .btn.change-lang {
        padding: 10px 20px;
    }
    .container {
        max-width: 1440px;
        margin: 0 auto;
        padding: 0 15px;
    }
    header {
        border: none;
        margin-bottom: 50px;
        align-items: flex-start;
    }
    .logo {
        width: 136px;
    }
    .header-actions {
        margin-top: 40px;
        display: inline-block;
    }
    section:not(:last-child) {
        margin-bottom: 130px;
    }
    .intro {
        display: flex;
        align-items: center;
        text-align: right;
        justify-content: space-between;
    }
    .intro .intro-text {
        width: 40%;
    }
    .intro .intro-img {
        width: 50%;
        position: relative;
    }
    .intro-img::after,
    .intro-img::before {
        width: 160px;
        height: 220px;
        position: absolute;
    }
    .intro-img::after {
        content: '';
        background-image: url(./assets/images/intro-pattern-1.svg);
        right: -70px;
        top: -40px;
        z-index: -1;
    } 
    .intro-img::before {
        content: '';
        background-image: url(./assets/images/intro-pattern-2.svg);
        z-index: -1;
        bottom: -50px;
        left: 0;
    } 
    .why-jam3a-boxes {
        display: flex;
        justify-content: space-between;
        text-align: right;
    }
    .why-jam3a {
        position: relative;
    }
    .why-jam3a::before {
        content: '';
        background-image: url(./assets/images/why-pattern.svg);
        width: 130px;
        height: 220px;
        position: absolute;
        right: -160px;
        bottom: -100px;
    }
    .why-box {
        margin-bottom: 40px;
        padding: 40px;
    }
    .why-box {
        width: 32%;
    }
    .why-box h4 {
        font-size: 28px;
        line-height: 42px;
    }
    .about-box {
        display: flex;
        align-items: center;
        margin-bottom: 80px;
    }
    .about-box img {
        width: 38%;
        margin-bottom: 0;
    }
    .about-box-desc,
    [dir=ltr] .about-box-desc.reverse {
        margin-bottom: 0;
        margin-left: 0;
        margin-right: 30px;
    }
    .about-box-desc.reverse,
    [dir=ltr] .about-box-desc {
        margin-bottom: 0;
        margin-right: 0;
        margin-left: 30px;
    }
    .order-2 {
        order: 2;
    }
    .our-clients {
        flex-wrap: nowrap;
    }
    .client-box {
        margin-bottom: 0;
    }
    .join-us p {
        margin-bottom: 0;
    }
    .join-us .btn {
        margin: 60px 0;
    }
    .join-us h2 {
        margin-top: 40px;
    }
    .pattern {
        position: relative;
    }
    .pattern::before {
        content: '';
        background-image: url(./assets/images/pattern.svg);
        width: 160px;
        height: 220px;
        position: absolute;
    }
    .pattern-1::before {
        left: -110px;
        bottom: -90px;
    }
    [dir=ltr] .pattern-1::before {
        left: auto;
        right: -110px;
    }
    .pattern-2::before {
        right: -75px;
        bottom: -110px;
        z-index: -1;
    }
    footer {
        padding: 30px 0px;
    }
}