/* Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

img {
    width: auto;
    max-width: 100%;
    height: auto;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    color: #000;
}

* {
    box-sizing: border-box;
}
/* Reset */

.logo {
    min-width: 117px;
}

.header {
    background: url('./img/baner.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    padding: 0 20px;
}

.header-content {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #442ECF;
    border-radius: 25px;
    padding: 50px 30px 50px 83px;
}

.header-title {
    margin-left: 29px;
    font-weight: 500;
    font-size: 35px;
    line-height: 42px;
    max-width: 713px;

    color: #fff;
}

.header-img {
    position: absolute;
    top: -15px;
    right: -15px;
}

.page-content {
    padding: 50px 100px;
    margin-bottom: 40px;
}

.page-title {
    font-weight: 700
}

p, li {
    margin-bottom: 20px;
    text-align: justify;
}

ul {
    margin-left: 40px;
}

.footer {
    background-color: #442ECF;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 100px;
}

.footer-content {
    width: 100%;
    justify-content: space-between;
    display: flex;
    align-items: center;
    color: #fff;
}

.footer-contact {
    display: flex;
    align-items: center;
    margin-left: 30px;
    justify-content: space-evenly;
    width: 100%;
}

.footer-contact h4 {
    font-size: 35px;
    font-weight: 500;
    line-height: 42px;
    margin-right: 44px;
    margin-bottom: 0;
}

.footer-contact p {
    margin-right: 35px;
    margin-bottom: 0;
    text-align: left;
}

@media (max-width: 921px) {
    p {
        font-size: 20px;
    }
    .header {
        padding-left: 15px;
        padding-right: 15px;
    }

    .header-content {
        padding: 28px 5px 28px 10px;
    }

    .header-title {
        font-size: 20px;
        line-height: 24px;
        max-width: 308px;
        margin-left: 14px;
    }

    .header-img {
        top: auto;
        bottom: -35px;
        right: -5px;
    }

    .page-content {
        padding: 26px 38px;
        margin-bottom: 20px;
    }

    .footer {
        display: block;
        padding: 30px 38px;
    }

    .footer-content {
        display: grid;
        row-gap: 44px;
        grid-template-areas:
        "contact img"
        "contact  logo";
        grid-template-columns: 1fr 1fr;
    }

    .footer-contact {
        grid-area: contact;
        margin-left: 0;
        flex-direction: column;
        align-items: start;
    }

    .footer-contact h4 {
        font-size: 20px;
        line-height: 24px;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .footer-contact p {
        font-size: 16px;
        line-height: 18px;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .footer-contact p:last-child {
        margin-right: 0;
        margin-bottom: 0;
    }

    .footer-content .logo {
        grid-area: logo;
        text-align: end;
    }

    .footer-content .footer-img {
        grid-area: img;
        text-align: end;
    }
}