:root {
	--cetegory-color: #4da2dd;
}

html, body {
	height: 100%;
}

body {
	margin: 0;
	display: flex;
	flex-direction: column;
	color: #3e4348;
}

* {
	box-sizing: border-box;
}

header {

}

.header__wrapper {
	max-width: 960px;
	margin: 0 auto;
	padding: 10px 20px;
	box-sizing: content-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* .logo {display: flex; align-items: flex-end;} */
.logo a {color: inherit;text-decoration: none;}
.logo__img {margin-right: 12px;}
.logo__title {
	font: 16px 'MuseoSansBlack', 'MuseoSansCyrl-900';
	color: #383d42;
	padding-bottom: 3px;
}
.logo__subtitle {
	font: 12px 'MuseoSansCyrl-500', 'MuseoSansMedium';
	color: #5c5f63;
}

main {
	flex-grow: 1;
}

footer {
	background: #e7e7e7;
}

.footer__wrapper {
	max-width: 960px;
	margin: 0 auto;
	padding: 10px 20px;
	display: flex;
	box-sizing: content-box;
	align-items: center;
	justify-content: space-between;
}

.footer__nav a {
	display: inline-block;
	font: 12px 'MuseoSansCyrl-500', 'MuseoSansMedium';
	text-transform: uppercase;
	text-decoration: none;
	transition: all .3s ease-in-out;
	color: #383d42;
}
.footer__nav a:not(:last-child) {margin-right: 1em;}
.footer__nav a:hover {color: #4da2dd;}

.messageblock {
	width: 100%;
	padding: 1.2em;
    background: url('../img/c1-bg.jpg') no-repeat top center;
	background-size: cover;
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: center;
}

.messageblock h2 {margin: 0; font: 30px/28px 'MuseoSansCyrl-500', 'MuseoSansMedium';}
.messageblock p {margin: 1em 0 0;}

.offers {
	max-width: 960px;
	padding: 1rem 20px 1rem;
	margin: 0 auto;
	box-sizing: content-box;
	background-color: #FFF;
	margin-top: 20px;
}

.offers__categories {
	text-align: center;
	margin-bottom: 1.5em;
	font-size: 0.9em;
}

.category {
	display: inline-block;
	background: var(--cetegory-color);
	cursor: pointer;
	position: relative;
	color: #fff;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 5px;
	padding: 6px 12px;
	margin: 2px 5px;
}

.category_selected {
	box-shadow: 1px 1px 8px var(--cetegory-color);
	text-decoration: underline;
}

.category:active{top: 1px;}

/*----- OFFER START -----*/
.offer {
	max-width: 960px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 120px;
	padding: 8px 0;
	border-bottom: 2px solid transparent;
	border-top: 2px solid transparent;
	font-size: 15px;
	margin: 5px auto;
}

.offer.no_shadow:hover {
	box-shadow: unset!important;
}

.offer__img {
	width: 185px;
	min-width: 185px;
	margin-right: 2em;
}
.offer__img a {
	display: block;
}
.offer__img img {
	max-width: 100%;
}
.offer__props {
	width: 190px;
	min-width: 190px;
	padding-right: 1em;
}
.offer__props_title {
	color: #292929;
	font-size: 1.2em;
	font-weight: bold;
	margin-bottom: 0.6em;
}
.offer__summary {
	flex-grow: 1;
	padding-right: 1em;
}
.offer__summary ul {
	margin: 0;
	padding-left: 1.5em;
}
.offer__summary li {
	margin: 6px 0;
	list-style: none;
	position: relative;
	padding-left: 25px!important;
}
/*.offer__summary li:before {
	content: "\2022";
	color: var(--cetegory-color);
	font-weight: bold;
	margin-left: -1em;
	line-height: 1.1em;
	font-size: 1.2em;
	position: absolute;
}*/
.offer__button {
	display: block;
	color: #fff;
	text-transform: uppercase;
	text-decoration: none;
	font-size: 1.2em;
	font-weight: bold;
	background: #903097;
	border-radius: 5px;
	width: 240px;
	min-width: 240px;
	letter-spacing: 0.5px;
	text-align: center;
	transition: 0.2s;
	padding: 0.9em 0;
}
.offer__button:hover {
    background: #6b1a71;
}
/*----- OFFER END -----*/

.adsense {display: block; width: 100%; margin: 15px 0;}
.adsense_double {display: flex; flex-direction: row; justify-content: space-between;}
.adsense_double > div {display: block; width: 50%;}
.yandex-adaptive {
	width: 100%;
	max-height: 200px;
	overflow: hidden;
}
@media screen and (max-width: 400px) {
	.yandex-adaptive {
		min-width: 100%;
		width: 100%;
		overflow: hidden;
	}
 }
@media only screen and (max-width: 960px) { /*width < 960*/
	.offer {
		flex-wrap: wrap;
	}
	.offer__button {
		width: 100% !important;
		padding: 0.7em 0 !important;
		margin-top: 0.5em;
	}
}

@media only screen and (max-width: 767px) { /*width < 768*/
	.messageblock {padding: 1em;}
	.messageblock h2 {font-size: 1.4em;}
	.messageblock p {margin: 0.5em 0 0; font-size: 0.9em;}
}

@media only screen and (max-width: 640px) { /*width < 640*/
	header {
		display: none;
	}
	.offer {
		padding: 8px 0;
		font-size: 14px;
	}
	.offer__img {
		width: 100px;
		min-width: 100px;
		margin: 0 6px;
	}
	.offer__props_title {
		margin-bottom: 0.4em;
	}
	.offer__props {
		width: auto;
		min-width: auto;
		padding-right: 0;
		margin: 0 6px;
		text-align: right;
	}
	.offer__summary {
		width: 100%;
		display: flex;
	}
	.footer__nav {
		display: flex;
		flex-direction: column;
	}
	.footer__nav a {
		margin: 0 0 1px 0;
	}
}
footer .f__navbar {
	background-color: transparent;
}
.btn {
	width: max-content;
	padding: 7px 30px 7px 30px;
	margin: 15px auto 0 auto;
	border: 0;
	max-width: initial;
	height: auto;
}

/* ---- quadre ----*/

@media only screen and (min-width: 960px) { /*width > 960*/
	.offers_quadre .offer {
		width: 33.3%;
		flex-wrap: wrap;
		padding: 1em;
	}

	.offers_quadre .offer__img {
		width: 120px;
		min-width: 120px;
		margin: 0;
		height: 80px;
		display: flex;
		align-items: center;
	}

	.offers_quadre .offer__props {
		font-size: 0.9em;
		text-align: right;
		padding: 0;
		width: calc(100% - 120px);
		min-width: calc(100% - 120px);
	}

	.offers_quadre .offer__summary {
		padding: 0;
		margin: 0.5em 0;
		width: 100%;
	}

	.offers_quadre .offers__list {
		display: flex;
		flex-wrap: wrap;
	}

	.offers_quadre .offer__button {
		width: 100%;
	}
}
