*:dir(ltr) {
    font-family: "Inconsolata", monospace;
    font-variation-settings:
        "wdth" 100;
}

*:dir(rtl) {
    font-family: "IBM Plex Sans Arabic", sans-serif;
}

* {
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    line-height: 1.5;
    color: #121212;
    font-size: 20px;
}

h1,
h2 {
    font-size: 1.3em;
    font-weight: 800;
    color: #A1A1A1;
}

h1:dir(rtl),
h2:dir(rtl) {
    font-weight: 500;
}

h2 {
    margin: 1em 0;
}

body {
    margin: 0 1.5em;
}

#container {
    max-width: 960px;
    margin: .6em auto;
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 1em;

}

p {
    margin: 0;
}

p:dir(rtl) {
    text-align: right;
}

ul {
    padding-inline-start: 1em;
}

header {
    margin: 1em 0;
    display: grid;
    grid-auto-rows: 130px;
    grid-template-columns: 1fr 4ch;
    align-items: center;
    justify-items: start;
}

header img {
    height: 120px;
}

a,
a p {
    color: #2d7894;
    text-decoration: none;
}


header a {
    font-weight: 500;

}

#clients-list {
    display: grid;
    column-gap: 1em;
    row-gap: 1em;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 8em;
    place-items: center;
}


#clients-list a {
    display: grid;
    place-content: center;
    height: 100%;
    width: 100%;
    display: block;
}

#clients-list img {
    height: 100%;
    width: 100%;
    object-fit: scale-down;
    opacity: 70%;
}

#clients-list img:hover {
    opacity: 100%;
}

#contacts {
    display: grid;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    gap: 1em;
}

#contacts a {
    text-decoration: none;
    display: grid;
    grid-template-columns: 2em 1fr;
    grid-auto-rows: 1.5em;
    row-gap: 3em;
    align-items: center;
}

#contacts p {
    font-weight: 600;
    font-size: 1.2em;
    margin: 0;
    direction: ltr;
}

li::marker {
    color: #A1A1A1;
}

@media only screen and (min-width: 992px) {

    * {
        font-size: 18px;
    }

    html,
    body,
    div {
        margin: 0;
        padding: 0;
    }

    ul {
        margin: 0;
    }

    h1 {
        margin: 0;
    }

    h2 {
        margin: .5em 0;
    }

    #container {

        grid-template-columns: 450px 450px;
    }


    header {
        grid-column: 1 / 3;

        margin: 0;
    }

    header a {
        justify-self: end;
    }

    header img {
        height: 90px;
    }


    #clients-list {
        gap: 1em;
        align-content: start;
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 4.5em;
    }

    #clients h2 {
        margin: 0;
    }

    #clients-list img {
        opacity: 40%;
    }

    #contacts-container {
        grid-row: 3 / 4;
    }
}