body {
    font-family: "Open Sans", 'sans-serif';
    line-height: 1.6;
    font-size: 14px;
    font-weight: 400;
    color: #595959;
    background-color: #ffffff;
}

main {
    max-width: 1400px;
    width: min(92%, 1400px);
    margin: 0px auto;
}

h1,
h2,
h3 {
    font-weight: 700;
    margin: 0.9em 0;
    padding: 0;
}

h1 {
    font-size: 24px;
}

h2 {
    font-size: 20px;
}

h3 {
    font-size: 16px;
}

h4 {
    margin-bottom: 0.2em;
}

figure {
    margin: 1.5em 0.5em;
    max-width: 100px;
}

picture img {
    max-width: 100%;
}

button {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    padding: 0.8em 2.8em 0.8em 0.8em;
    background-color: #595959;
    margin: 0.8em 0.5em;
    border: 0;
}

button:hover {
    background-color: #343434;
}

.btn-contact {
    background-color: #20b4e6;
}

.btn-contact:hover {
    background-color: #ee7c32;
}

img {
    width: 100%;
    object-fit: cover;
    box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.1);
}

.gallery img {
    aspect-ratio: 3 / 2;
}


figure img:hover {
    filter: drop-shadow(6px 6px 30px rgba(0, 0, 0, 0.1));
}

a {
    text-decoration: none;
    font-weight: 400;
    color: #595959;
}

a:hover {
    text-decoration: underline;
}

.text-600 {
    font-weight: 600;
}

.text-800 {
    font-weight: 800;
}

.links {
    border-radius: 10px;
    padding: 0.9em 0;
    max-width: 320px;
    text-align: center;
}

.links a {
    margin: 0.05em 0;
    display: block;
}

.links-dark a {
    color: #ffffff;
}

.links-dark a:hover {
    color: #b9b9b9;
}

.links-light a {
    color: #595959;
}

.links-light a:hover {
    color: #343434;
}

.bg-dark {
    background-color: #343434;
    color: #ffffff;
}

p {
    text-align: justify;
    hyphens: auto;
}

p a {
    color: #28b9ec;
}

p a:hover {
    color: #e01c1f;
}

.paragraph-small {
    font-size: 12px;
}

.r-10 {
    border-radius: 10px;
}

.p-30-15 {
    padding: 30px 15px;
}

.display-flex {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .display-flex {
        gap: 20px;
    }
}

ol li::marker {
    color: #f08421;
}

ul,
ol {
    list-style-position: outside;
    text-indent: 0.5em;
    margin: 0.2em 0 0.8em 1.2em;
    padding: 0;
}

li {
    margin: 0.35em 0;
}

ul {
    list-style-image: url("../images/pointer.png");
}

.box {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 100px;
    width: fit-content;
    padding: 0 30px;
    box-sizing: border-box;
}

.gallery {
    display: grid;
    gap: 20px;
    margin: 50px auto;
}

.gallery-2 {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1200px) {
    .gallery-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .gallery-2,
    .gallery-3 {
        grid-template-columns: 1fr;
    }
}

table {
    width: 100%;
    border-radius: 10px;
    border-collapse: separate;
    border-spacing: 0;
    color: #343434;
    margin: 0 auto;
}

th,
td {
    border-right: 1px solid black;
    border-bottom: 1px solid black;
}

thead th {
    border-top: 1px solid black;
}

tr th:first-child {
    border-left: 1px solid black;
}

thead tr th:first-child {
    border-top-left-radius: 1em;
}

thead tr th:last-child {
    border-top-right-radius: 1em;
}

tbody tr:last-child *:first-child {
    border-bottom-left-radius: 1em;
}

tbody tr:last-child *:last-child {
    border-bottom-right-radius: 1em;
}

th {
    background-color: #cdcdcd;
}

table * {
    padding: 1.5em 1em;
    text-align: center;
}

@media (max-width: 768px) {
    main {
        width: 100%;
    }

    table,
    thead,
    tbody,
    tr,
    th,
    td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 0.5em;
        padding: 0;
        border: 1px solid #cdcdcd;
    }

    th,
    td {
        text-align: left;
        border: none;
        padding: 0.5em 0em 0.5em 0.5em;
        box-sizing: border-box;
    }

    td {
        border-top: 1px solid #cdcdcd;
    }

    table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        color: #343434;
        margin: 0 auto;
        border: 1px solid #cdcdcd;
    }

    tbody {
        padding: 1em;
    }

    thead tr th:first-child,
    thead tr th:last-child,
    tbody tr:last-child *:first-child,
    tbody tr:last-child *:last-child,
    tr th:first-child {
        border-left: none;
        border-radius: 0;
    }
}

article {
    margin: 18px 0 26px;
    padding: 18px;
    background: #fafafa;
    border: 1px solid #ededed;
    border-radius: 14px;
}

.article-content {
    display: flow-root;
}

.article-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 0 0 14px 0;
    box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    article {
        flex-direction: row;
        align-items: flex-start;
        gap: 26px;
    }

    .article-img {
        float: left;
        width: min(42%, 420px);
        margin: 4px 22px 14px 0;
        aspect-ratio: 3 / 2;
        object-fit: cover;
    }

    .article-content {
        flex: 1;
    }
}

@media (min-width: 768px) {
    section article:nth-of-type(even) .article-img {
        float: right;
        margin: 4px 0 14px 22px;
    }
}

article h4 {
    margin: 0;
    font-size: 16px;
    color: #343434;
}

article:hover {
    border-color: #dcdcdc;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: 180ms ease;
}

section {
    margin: 36px 0;
}

section>h3 {
    font-size: 18px;
    margin-bottom: 14px;
}