/* Fonts */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700;800&display=swap');


/* Reset */

* {padding: 0;	margin: 0; -webkit-tap-highlight-color:transparent;}
*, *:before, *:after {
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
}
:focus, :active, a:focus, a:active {outline: none;}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
html, body {
	width: 100%;
	min-height: 100%;
	font-size: 100%;
	line-height: 1;
	-webkit-text-size-adjust: none
}
html {
	display: flex;
}

input, button, textarea, select {
	font-family: inherit;
	-webkit-appearance: none;
	-moz-appearance: none;
	border-radius: 0;
}
input:invalid {box-shadow: none;}
input::-ms-clear {display: none;}
button::-moz-focus-inner {padding: 0; border: 0;}
button, .button, input[type="button"], input[type=submit] {cursor: pointer;}
button[disabled], input[disabled] {cursor: default;}
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {display: none;}

a, a:hover, a:visited {text-decoration: none;}
img {vertical-align: top; max-width: 100%;}

h1,h2,h3,h4,h5,h6 {font-size: inherit; font-weight: normal;}

ol, ul {list-style: none;}
ol {counter-reset: myCounter;}
ol li:before {
	counter-increment: myCounter;
	content:counter(myCounter);
	margin-right: 5px;
}

table {border-collapse: collapse; border-spacing: 0;}
th {font-weight: inherit;}




.hidden {
	display: none !important;
}

/* Preloader */

.preloader {
	background: #F2F2F2; 
	position: fixed;
	top: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
}
.preloader__icon {
	width: 60px;
	height: 60px;
	border: 7px solid #bdf7e4;
	border-left: 7px solid #25C790;
	border-radius: 150px;
	animation: rotation 1.3s infinite linear;
}
@keyframes rotation {
	0% {transform: rotate(0deg);}
	100% {transform: rotate(360deg);}
}






/* Global */

body {
	font-family: 'Open Sans', sans-serif;
	font-weight: 400;
	font-size: 20px;
	line-height: 1.4em;
	color: #89807A;
	background: #F2F2F2; 
	overflow-x: hidden;
}
body.center {
	display: flex;
	align-items: center;
}

.page {
	width: 100%;
	max-width: 1442px; /* ширина контентной части по макету + паддинги по бокам */
	padding: 50px 30px;
	margin: 0 auto;
	overflow: hidden;
	position: relative;
}


a, a:before, button {
	transition: 0.3s;
}

.photo {
	object-fit: cover;
	object-position: center;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 9px;
}
.image {
	display: block;
	position: relative; 
	width: 100%;
	height: 0;
	padding-bottom: 90%; 
	overflow: hidden;
}






/* Logo */

.logo {
	font-weight: 700;
	font-size: 24px;
	line-height: 36px;
	color: #000000;
	text-align: center;
	margin-bottom: 22px;
}
.logo span {
	color: #25C790;
}





/* Heading */

.heading {
	font-weight: 700;
	font-size: 48px;
	line-height: 1.2em;
	text-align: center;
	color: #000000;
	margin-bottom: 22px;
}
.heading_small {
	font-size: 36px;
}
.heading b {
	font-weight: 700;
	color: #2d9cdb;
}
.heading span {
	white-space: nowrap;
}
.heading .emoji {
	height: 1.05em;
	position: relative;
	bottom: -0.05em;
}





/* Tagline */

.tagline {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 15px;
}
.tagline__item {
	display: block;
	font-weight: 400;
	font-size: 16px;
	line-height: 24px;
	color: #FFFFFF;
	background: #25C790;
	border-radius: 10px;
	padding: 10px 14px;
	margin: 5px;
	text-align: center;
}
.tagline__item b {
	font-weight: 600;
	white-space: nowrap;
}
.tagline__item span {
	white-space: nowrap;
}
.tagline__item .emoji {
	height: 1.1em;
	position: relative;
	bottom: -0.15em;
}





/* Text */

.text {
	margin: 22px 0;
	text-align: center;
}
.text span {
	white-space: nowrap;
}
.text .emoji {
	height: 1em;
	position: relative;
	bottom: -0.2em;
}
.text_big {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.4em;
	max-width: 1150px;
	margin: 22px auto;
}





/* Category */

.category {
	display: grid;
	grid-template-columns: repeat(auto-fit, 164px);
	grid-gap: 22px 10px;
	justify-content: center;
	max-width: 1210px;
	margin: 0 auto;
}
.category__item {
	background: #fff;
	color: #000;
	padding: 10px 10px 15px;
	border-radius: 18px;
	line-height: 1.1em;
}
.category__image {
	margin-bottom: 8px;
}
.category__title {
	font-weight: 700;
	font-size: 16px;
	line-height: 1.3em;
}
@media (hover: hover) {
	.category__item:hover {
		background: #333333;
		color: #fff;
	}
}







/* Type */

.type {
	display: grid;
	grid-template-columns: repeat(auto-fit, 164px);
	grid-gap: 22px 10px;
	justify-content: center;
	margin-bottom: 60px;
}
.type__item {
	line-height: 1.1em;
	display: flex;
	align-items: center;
}

.type__container {
	display: block;
	background: #fff;
	padding: 10px 10px 15px;
	border-radius: 18px;
	transition: 0.3s;
}
.type__image {
	margin-bottom: 8px;
}
.type__title {
	display: block;
	font-weight: 700;
	font-size: 16px;
	color: #000;
	margin-bottom: 8px;
}
.type__text {
	font-size: 13px;
	line-height: 20px;
	color: #89807A;
}

.type__checkbox {
	display: none;
}
.type__checkbox:checked + .type__container {
	background: #000;
	color: #fff;
}
.type__checkbox:checked + .type__container .type__title,
.type__checkbox:checked + .type__container .type__text {
	color: #fff;
}

@media (hover: hover) {
	.type__container:hover {
		background: rgba(51,51,51,0.1);
		color: #fff;
		cursor: pointer;
	}
}




/* TZ */

.tz {
	width: 100%;
	max-width: 910px;
	margin: 0 auto 30px;
}
.tz__textarea {
	width: 100%;
	height: 160px;
	resize: none;
	border: none;
	background: #fff;
	padding: 20px;
	font-weight: 700;
	font-size: 16px;
	line-height: 24px;
	color: #000;
	margin-bottom: 20px;
}
.tz__textarea::placeholder {
	color: #89807A;
}
.dropzone {
	transition: border 0.3s;
}
@media (hover: hover) {
	.dropzone:hover {
		border-color: rgba(0,0,0,0.8);
	}
}






/* Nav */

.nav {
	text-align: center;
	margin-bottom: 15px;
	margin-top: -7px;
}
.nav__link {
	color: #89807A;
	font-size: 16px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
}
.nav__link .emoji {
	height: 1em;
	margin-right: 5px;
}
.nav__link_back .emoji {
	transform: scale(-1,1);
}
@media (hover: hover) {
	.nav__link:hover {
		color: #25C790;
	}
}





/* Button */

.button {
	display: block;
	width: 100%;
	max-width: max-content;
	padding: 20px 24px;
	border: none;
	border-radius: 10px;
	background: #25C790;
	color: #fff;
	font-weight: 400;
	font-size: 32px;
	text-align: center;
	margin: 0 auto 30px;
}
.button .emoji {
	height: 1em;
	margin-right: 5px;
}
.button_back .emoji {
	transform: scale(-1,1);
}
.button_order {
	width: max-content;
	max-width: 95%;
	margin: 0;
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1000;
	visibility: hidden;
	opacity: 0;
}
.button_active {
	visibility: visible;
	opacity: 1;
	animation: pulse 0.97s;
	box-shadow: 0 0 0 1.2em transparent;
}
@keyframes pulse {
	0% {box-shadow: 0 0 0 0 #44dba9;}
}

@media (hover: hover) {
	.button:hover {
		filter: brightness(110%);
		cursor: pointer;
	}
}




/* Phone input */

.phone {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin-bottom: 30px;
}
.phone__input {
	font-weight: 700;
	font-size: 40px;
	color: #000;
	width: 360px;
	border: none;
	background: none;
}
.phone__input::placeholder {
	color: #89807A;
}
.phone__message {
	color: rgb(255, 0, 0);
	text-align: center;
	margin-top: 10px;
	display: none;
}





/* Responsive */

@media screen and (max-width:1093px) {
	.heading {font-size: 42px;}
	.heading_small {font-size: 36px;}
}

/* Phones */
@media screen and (max-width:754px) {
	.button {font-size: 26px;}
}
@media screen and (max-width:551px) {
	.page {padding: 30px 20px 100px;}
	body {font-size: 18px;}

	.heading {font-size: calc(100vw * 0.076);}
	.heading_small {font-size: 32px;}

	.text_big {font-size: 22px;}
	
	.type {grid-template-columns: 1fr; grid-gap: 16px;}
	.type__container {display: grid; grid-template-columns: 144px 1fr; align-items: center; grid-gap: 10px; padding: 10px;}
	.type__image {margin-bottom: 0;}
	.type__text {align-self: start;}
	.button {font-size: 24px; position: fixed; bottom: 0; left: 0; right: 0; max-width: unset; width: 100%; transform: unset; margin: 0; border-radius: 0; z-index: 1000;}

	.reverse {display: flex; flex-direction: column-reverse;}
}
@media screen and (max-width:450px) {
	.heading_small {font-size: calc(100vw * 0.07);}
	.button {font-size: 22px;}
	.text_big {font-size: 20px;}
}
@media screen and (max-width:410px) {
	.button {font-size: 20px;}
}
@media screen and (max-width:380px) {
	.page {padding: 30px 15px 100px;}
}

@media screen and (max-width:370px) {
	.category {grid-template-columns: repeat(2, 1fr);}
	.category__item {padding: 8px 8px 12px;}
	.category__title {font-size: 15px;}

	.type {grid-template-columns: 220px;}
	.type__container {display: block;}
	.type__image {margin-bottom: 8px;}
	
	.phone__input {font-size: 33px; width: 290px;}
}

