/*
    Normalize
*/

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 8px;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

header, main {
    margin-bottom: 32px;
}

main {
    flex-grow: 1;
}

hr {
	border: 0;
	margin: 0.8em 0;
	height: 1px;
    background-color: rgb(250, 250, 250);
}

h1, h2, h3, h4, h5, h6, p, address, label, a {
	margin: 0;
	margin-bottom: 0.5em;
    font-weight: 500;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-style: normal;
    line-height: 110%;
}

label {
    padding-left: 40px;
    font-size: 12px;
    margin-top: -8px;
}

a {
    color: rgb(0, 0, 0);
    cursor: pointer;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
	list-style: none;
	padding: 0 !important;
	margin: 0 !important;
}

*::selection {
	background-color: orange
}

img {
    width: 100%;
    height: auto;
    margin-bottom: -4px;
}


/*
    Grid
*/

.grid {
    display: flex;
	display: grid;
	flex-direction: row;
	justify-content: space-around;
	grid-gap: 6px;
}

.grid--16 {
    grid-template-columns: repeat(6, 1fr);
}
@media only screen and (min-width: 600px) {
    .grid--16 {
        grid-template-columns: repeat(12, 1fr);
    }
}
@media only screen and (min-width: 1024px) {
    .grid--16 {
        grid-template-columns: repeat(16, 1fr);
    }
}

/*
    Composition
*/

.header-title, .header-address, .header-postal {
    grid-column: 1/7;
}

@media only screen and (min-width: 1024px) {
    .header-title {
        grid-column: 1/5;
    }
    .header-subtitle {
        grid-column: 2 span;
    }
    .footer-address {
        grid-column: 5/11;
    }
    .footer-contacts {
        grid-column: 11/17;
    }
    .main-image-1 {
        grid-column: 5/11;
    }
    .main-image-2 {
        grid-column: 11/17;
    }
}
