* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    font-family: 'Raleway', sans-serif;
    background-image: url("img/tlo.jpg");
    background-repeat: repeat-x;
    background-position-x: center;
    background-position-y: top;
}

a {
    color: #de0516;
}
img {
    max-width: 100%;
    height: auto;
}
main {
    max-width: 1240px;
    margin: 0 auto 4rem auto;
    padding: 0 2rem;
}

.site-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 5rem;
}


.site-header__picture {
    margin-top: 250px;
    width: 80%;
    height: auto;
}

.site-header__text {
    color: #2f2f2f;
    font-size: 2.2rem;
    font-weight: 600;
    padding: 2rem;
}


@media (min-width: 1024px) {
    .site-header {
        flex-direction: row;
        margin-top: 350px;
    }

    .site-header__picture {
        margin-top: 10px;
    }

    .site-header__text {
        align-self: flex-end;
        padding: 0 0.5rem;
        padding: 1.5rem;
        padding-bottom: 5rem;
    }
}

@media (min-width: 1280px) {
    .site-header__picture {
        width: auto;
    }
    .site-header__text {
        font-size: 2.7rem;
        max-width: 50%;
        padding-bottom: 5rem;
    }
}

.custom-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1280px;
}

.custom {
    display: flex;
    flex-flow: column;
    min-width: 100%;
    margin-bottom: 2rem;
    padding: 1rem;
    border: 3px #de0516 solid;
    border-radius: 15px;
    text-align: center;
}

.custom__link {
    display: block;
    height: 100%;
    display: flex;
    flex-flow: column;
    justify-content: space-between;
}
.custom__title {
    margin-bottom: 2rem;
}
.custom__picture {
    position: relative;
    width: 234px;
    margin: 0 auto;
}
.custom__picture-img {
    max-width: 100%;
}
.custom__picture-text {
    position: absolute;
    left: 35.1px;
    top: 178.2px;
    width: 160px;
    transform: translateX(-50%);
    transform: translateY(-50%);
    text-align: center;
    font-weight: 700;
    font-size: 1.4rem;
    color: rgb(3, 102, 33);
}

@media (min-width: 768px) {
    .custom {
        min-width: 48%;
        width: 48%;
        padding: 2rem;
        margin-bottom: 2rem;
    }
}
@media (min-width: 1024px) {
    .custom-list {
        flex-wrap: nowrap;
        width: 100%;
    }
    .custom {
        min-width: 24%;
        width: 24%;
        padding: 2rem;
        margin-bottom: 0;
    }
}


.site-footer {
    margin: 0 auto;
    background-image: url("img/tlo.jpg");
    background-repeat: repeat-x;
}


@media (max-width: 1023px) {
    .site-footer img {
        width:  100%;
    }
 }


.pictures-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pictures-list__picture {
    margin-bottom: 3rem;
}

.pictures-list__picture img {
    border: 3px #de0516 solid;
    border-radius: 15px;
}

.content {
    margin-bottom: 2rem;
}

.content img {
    margin-bottom: 2rem;
}

.content p {
    line-height: 1.7rem;
    font-size: 1.2rem;
    max-width: 52rem;
    margin-bottom: 1rem;
}

.content__section {
    margin-bottom: 1.5rem;
}

.content h2 {
    margin-bottom: 1rem;
}

.content b {
    color: rgb(3, 102, 33);
}

.content u {
    color: #de0516;
    text-decoration: none;
}