﻿:root {
	font-size: 16px;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	color: #ed1c24;
	font-family: 'Roboto', sans-serif;
	font-size: 16px;
	line-height: 20px;
}

#wrapper {
	max-width: 536px;
	margin: 1rem auto;
	background: #fff;
	border: solid 2px #ed1c24;
	position: relative;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}

header {
	position: relative;
	width: 100%;
}

article {
	padding: 20px 40px 16px 48px;
	overflow: hidden;
	flex: 1 1 0;
}

footer {
	background: #ed1c24;
	width: 37.4%;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 16px;
}

h1 {
	position: absolute;
	bottom: 5%;
	left: 8%;
	font-size: 48px;
	line-height: 1.1;
	text-shadow: 2px 2px 2px #000000b8;
	color: #fff;
}

h2 {
	font-size: 26px;
	margin: 0 0 16px;
	line-height: 1.2;
}

h3 {
	font-size: 22px;
	margin: 16px 0;
	line-height: 26px;
}

img {
	max-width: 100%;
	vertical-align: bottom;
}

a {
	color: #ed1c24;
	text-decoration: none;
}

@media screen and (max-width: 536px) {
	#wrapper {
		margin: 0 auto;
		border: none;
	}

	header img {
		width: 100%;
	}

	article {
		padding: 16px;
	}

	h1 {
		font-size: 9vw;
	}
}

@media screen and (max-width: 460px) {
	:is(article, footer) {
		width: 100%;
	}

	:is(h2, p) {
		text-align: center;
	}
}