/* Подключение шрифтов иконок ElegantIcons */

@font-face {
	font-family: 'ElegantIcons';
	src: url(fonts/fontawesome/ElegantIcons.eot);
	src: url(fonts/fontawesome/ElegantIcons.eot?#iefix) format('embedded-opentype'),
		 url(fonts/fontawesome/ElegantIcons.woff) format('woff'),
		 url(fonts/fontawesome/ElegantIcons.ttf) format('truetype'),
		 url(fonts/fontawesome/ElegantIcons.svg#ElegantIcons) format('svg');
	font-weight: normal;
	font-style: normal;
    font-display: swap;
}

/*--------------------------------------*/

/* Подключение шрифтов Open Sans */

@font-face {
	font-family: 'Open Sans';
    src: local('Open Sans'),
	     url('../fonts/opensans/OpenSans-Medium.woff2') format('woff2'),
         url('../fonts/opensans/OpenSans-Medium.woff') format('woff');
	font-weight: 500;
	font-style: normal;
    font-display: swap;
}

@font-face {
	font-family: 'Open Sans';
	src: local('Open Sans'),
         url('../fonts/opensans/OpenSans-MediumItalic.woff2') format('woff2'),
         url('../fonts/opensans/OpenSans-MediumItalic.woff') format('woff');
	font-weight: 500;
	font-style: italic;
    font-display: swap;
}

/* ----------------------------- */

body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans';
    font-style: normal;
    font-size: medium;
    background-color: rgb(252, 240, 209);
}

a {
    color: rgb(238, 20, 93);
    text-decoration: none;
}

#top {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin-bottom: 30px;
    text-align: center;
    background-color: rgb(30, 30, 30);
}

#top p {
    color: rgb(161, 126, 36);
}

#top a {
    text-decoration: none;
    color: rgb(161, 126, 36);
}

.mx {
    padding-left: 10px;
}

header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 800px;
    grid-template-areas: 'logo nav';
    margin: 0px auto;
    margin-bottom: 30px;
}

.logo img {
    max-width: 200px;
    height: auto;
}


.logo {
    grid-area: logo;
    align-self: center;
    padding-left: 10px;
}

.nav {
    grid-area: nav;
    text-align: right;
    align-self: center;
    padding-right: 10px;
}

.nav ul {
    padding-inline-start: 0px;
}

.nav ul li {
    display: inline;
}

.nav ul li a:link {
    color: rgb(112, 82, 6);
    font-size: 1.3em;
    text-decoration: none;
}

.nav ul li a:hover {
    text-decoration-line: underline;
}

.nav ul li a:visited {
    color: rgb(112, 82, 6);
}

.lx {
    padding-left: 20px;
    padding-right: 20px;
}

.table {
    display: table;
    margin-bottom: 50px;
}

#wrapper {
    width: 800px;
    margin: 0 auto;
}

#wrapper .table {
    box-shadow: 0 0 4px 0;
}

#welcome {
    display: table-row;
    margin: 0px auto;
}

#welcome .left-box {
    padding: 20px;
    background-color: white;
    display: table-cell;
    vertical-align: middle;
}

#welcome .left-box h1 {
    text-align: center;
    color: rgb(112, 82, 6);
}

#welcome .left-box p {
    color: rgb(112, 82, 6);
}

#welcome .right-box {
    display: table-cell;
    line-height: 0;
}

#welcome .right-box img {
    width: 400px;
    height: 400px;
}

#services {
    display: table-row;
}

#services .left-box {
    display: table-cell;
    line-height: 0;
}

#services .left-box img {
    width: 400px;
    height: 400px;
}

#services .right-box {
    display: table-cell;
    background-color: white;
    vertical-align: middle;
    padding: 20px;
}

#services .right-box h1 {
    text-align: center;
    color: rgb(112, 82, 6);
}

#services .right-box p {
    color: rgb(112, 82, 6);
}

#about-us {
    display: table;
}

#about-us .left-box {
    display: table-cell;
    background-color: white;
    vertical-align: middle;
    padding: 20px;
}

#about-us .left-box h1 {
    text-align: center;
    color: rgb(112, 82, 6);
}

#about-us .left-box p {
    color: rgb(112, 82, 6);
}

#about-us .right-box {
    display: table-cell;
    line-height: 0;
}

#about-us .right-box img {
    width: 400px;
    height: 400px;
}

#contacts {
    display: table-row;
}

#contacts .left-box {
    width: 400px;
    height: 400px;
    display: table-cell;
    line-height: 0;
}

#contacts .right-box {
    width: 400px;
    color: rgb(112, 82, 6);
    display: table-cell;
    background-color: white;
    vertical-align: middle;
    padding: 20px;
}

#contacts .right-box h1 {
    text-align: center;
    color: rgb(112, 82, 6);
}

#contacts .right-box p {
    color: rgb(112, 82, 6);
}

#contacts .right-box a {
    color: rgb(238, 20, 93);
    text-decoration: none;
}

footer {
    display: block;
    width: 100%;
    height: 100px;
    text-align: center;
    background-color: rgb(30, 30, 30);
}

footer a {
    color: rgb(238, 20, 93);
    text-decoration: none;
}

footer p {
    padding-top: 15px;
    color: rgb(112, 82, 6);
}

.error {
    text-align: center;
    margin-top: 100px;
}

.error a {
    color: rgb(238, 20, 93);
    text-decoration: none;
}

.error p {
    color: rgb(112, 82, 6);
}