:root {
	font-size: 16px;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	min-height: 100%;
}

body {
	font-family: Arial, sans-serif;
	font-size: 16px;
	line-height: 20px;
	color: #000;
}

#wrapper {
	max-width: 800px;
	margin: 1rem auto;
	border: solid thin #000;
	overflow: hidden;
}

header {
	position: relative;
}

article {
	padding: 0 50px 50px;
}

footer {
	margin: 0 0 40px;
}

footer p em {
	display: block;
	font-size: 10px;
	line-height: 13px;
	margin: 40px 50px;
}

.flexbox {
	display: flex;
	justify-content: space-between;
	position: relative;
	background: url('../images/background.jpg') no-repeat;
	background-size: 100% 100%;
	padding: 30px 50px 20px;
}

footer p {
	font-size: 14px;
	line-height: 18px;
}

footer img {
	vertical-align: middle;
}

footer figure {
	position: absolute;
	top: -40px;
	left: 290px;
}

section:nth-of-type(1) p:nth-of-type(2) {
	font-size: 20px;
	line-height: 24px;
}

section:nth-of-type(2) p {
	font-size: 12px;
	line-height: 17px;
	margin-bottom: 5px;
}

h1 {
	font-size: 30px;
	margin: 16px 0;
	line-height: 1.1;
	color: #535353;
	position: absolute;
	bottom: 16px;
	left: 50px;
}

h1 small {

	font-size: 28px;
}

h2 {
	font-size: 21px;
	margin: 16px 0 16px -50px;
	padding: 0 0 0 50px;
	line-height: 25px;
	display: inline-block;
	width: 246px;
	border-bottom: #940029 3px solid;
	text-align: right;
}

.h2 {
	text-align: left;
}

img {
	max-width: 100%;
}

p:not(:last-child) {
	margin-bottom: 16px;
}

:is(a:link, a:visited, a:hover, a:active) {
	color: #000;
	text-decoration: none;
	white-space: nowrap;
}

ul {
	margin: 0 0 0 20px;
	list-style: none;
}

ul li {
	padding-left: 25px;
	margin-bottom: 20px;
}

li:before {
	text-indent: -25px;
	content: "\25A0";
	color: #000;
	float: left;
	font-size: 11px;
}

@media screen and (max-width:798px) {
	#wrapper {
		border: none;
		margin: 0;
	}

	:is(p,ul) {
		text-wrap: pretty;
		hyphens: auto;
	}

	footer p em br {
		display: none;
	}

	footer figure {
		left: 250px;
	}
}

@media screen and (max-width:767px) {
	article {
	    padding: 0 16px 50px;
	}

	.flexbox {
		padding: 30px 16px 20px;
	}

	footer p em {
	    margin: 40px 16px;
	}

	footer figure {
		position: static;
	}

	h1 {
		position: static;
		padding: 16px;
		text-align: center;
	}
}

@media screen and (max-width:685px) {
	.flexbox {
		flex-wrap: wrap;
		justify-content: center;
		gap: 20px;
	}

	footer section:nth-of-type(1) p {
		text-align: center;
	}

	h1 {
		font-size: 30px;
	}

	h1 small {
		font-size: 25px;
	}
}