﻿:root {
	font-size: 16px;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	min-height: 100%;
}

body {
	font-family: Cambria, "Times New Roman", Times, serif;
	font-size: 16px;
	line-height: 21px;
	color: #242021;
	font-weight: 400;
}

#wrapper {
	max-width: 840px;
	margin: 1rem auto;
	border: solid 1px #A8CE40;
	overflow: hidden;
	position: relative;
	background: url('../images/background.jpg') top right no-repeat;
}

strong {
	font-weight: 700;
}

header {
	padding: 40px 0 0;
}

article {
	padding: 0 40px;
	position: relative;
}

article img {
	position: absolute;
	bottom: 0;
	right: 40px;
}

article div p {
	font-size: 22px;
	line-height: 27px;
}

footer {
	padding: 0 40px 20px;
}

footer div {
	border-bottom: #A8CE40 1px solid;
	display: flex;
	justify-content: space-between;
	padding: 20px 0 4px;
	margin-bottom: 10px;
}

footer div p {
	font-size: 13px;
	line-height: 17px;
}

footer div + p {
	text-align: justify;
}

h1 {
	font-size: 24px;
	margin: 16px 0;
	line-height: 28px;
	font-weight: normal;
	color: #4C6755;
}

h2 {
	font-size: 41px;
	margin: 16px 0;
	line-height: 1.2;
	color: #A8CE40;
	background: url('../images/top.jpg') top left no-repeat;
	padding: 17px 0 0 166px;
}

h3 {
	font-size: 16px;
	margin: 16px 0 0;
	line-height: 20px;
}

img {
	max-width: 100%;
}

p:not(:last-child) {
	margin-bottom: 16px;
}

article p strong, strong a {
	color: #A8CE40 !important;
}

:is(a:link, a:visited, a:hover, a:active) {
	color: #242021;
	text-decoration: none;
	white-space: nowrap;
}

ul {
	margin: 0 0 16px;
	list-style: none;
}

ul li {
	padding-left: 30px;
	margin-bottom: 6px;
}

li:before {
	text-indent: -30px;
	content: "»";
	color: #242021;
	float: left;
	margin-top: -2px;
	font-size: 19px;
}

@media screen and (max-width:838px) {
	#wrapper {
		border: none;
		margin: 0;
	}

	:is(p, ul) {
		hyphens: auto;
		text-wrap: pretty;
	}

	article, footer {
		padding-left: 16px;
		padding-right: 16px;
	}

	footer p {
		text-align: left;
	}

	p span {
		white-space: nowrap;
	}

	ul li {
		padding-left: 20px;
	}

	li:before {
		text-indent: -20px;
	}
}

@media screen and (max-width:700px) {
	#wrapper {
		background: none;
	}

	article br {
		display: none;
	}

	article img {
		position: static;
	}

	article div {
		display: flex;
		flex-direction: column;
		align-items: center;
	}
}

@media screen and (max-width:570px) {
	h2 {
		font-size: 30px;
		padding: 30px 0 0 150px;
	}

	header {
		padding: 0;
	}
}

@media screen and (max-width:565px) {
	footer div {
		flex-direction: column;
		align-items: center;
	}

	footer div p, footer div + p {
		text-align: center;
	}
}

@media screen and (max-width:385px) {
	h2 {
		background-size: 100px auto;
		padding: 20px 0 0 100px;
		font-size: 28px;
	}
}