html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

body {
	margin: 0;
	font-family: "Fira Sans", "Trebuchet MS", sans-serif;
	color: #333333;
	background-color: #ffffff;
	font-size: 16px;
}
main {
  display: block;
}

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

a {
  background-color: transparent;
}

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

b, strong {
  font-weight: bolder;
}

code, kbd, samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

small {
  font-size: 80%;
}

sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

img {
  border-style: none;
}

button, input, optgroup, select, textarea {
  font-family: "Fira Sans", "Trebuchet MS", sans-serif;
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

button, input { /* 1 */
  overflow: visible;
}

button, select { /* 1 */
  text-transform: none;
}

button, [type="button"], [type="reset"], [type="submit"] {
  -webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

progress {
  vertical-align: baseline;
}

textarea {
  overflow: auto;
}

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

details {
  display: block;
}

summary {
  display: list-item;
}

template {
  display: none;
}

[hidden] {
  display: none;
}


.site-wrapper {
	min-height: 100vh;
	box-sizing: border-box;
	padding: 32px 24px;
	background: url(page.bg.jpg) center center no-repeat #F8F8F8;
	background-size: cover;
	display: flex;
	justify-content: center;
	align-items: center;
}

.from-wrapper {
	width: 100%;
	background: #fff;
	flex: none;
	padding: 32px 24px;
	box-shadow: 0px 30px 60px rgba(0, 0, 0, 0.08);
	border-radius: 16px;
	box-sizing: border-box;
	display: flex;
}

.form-image {
	display: none;
}

.form-part {
	flex: none;
	width: 100%;
}

.form-title {
	font-weight: bold;
	font-size: 20px;
	line-height: 32px;
	color: #000000;
	margin-bottom: 24px;
}

.form-subtitle {
	font-weight: normal;
	font-size: 0.7em;
	line-height: 1.4;
	color: #4c4c4c;
	margin-top: 8px;
}

.tpl-form-button {
	width: 100%;
	font-size: 16px;
	line-height: 24px;
	text-align: center;
	padding: 16px;
	color: #FFFFFF;
	border-radius: 32px;
	background: linear-gradient(180deg, #47C634 0%, #2DBF60 100%);
	border: 1px solid #2FC05F;
	box-shadow: 0px 8px 12px rgb(45 191 96 / 30%);
	margin-top: 16px;
	cursor: pointer;
	font-weight: 700;
}

.tpl-form-button:hover {
	background: linear-gradient(180deg, #51D53D 0%, #2DBF60 100%);
	box-shadow: 0px 8px 12px rgba(45, 191, 96, 0.30025);
}

.tpl-form-button:active {
	background: linear-gradient(180deg, #2EBF5F 0%, #2EBF5F 100%);
	box-shadow: none;
}

.form__note {
	font-size: 0.8em;
	margin-top: 24px;
	color: #afafaf;
}

.mg-form__field-title {
	font-weight: 500;
	font-size: 13px;
	line-height: 24px;
	letter-spacing: -0.4px;
	color: #333333;
	margin-bottom: 4px;
}

.mg-form__field-control input[type="text"], .mg-form__field-control textarea, .mg-form__field-control select {
	background: linear-gradient(0deg, #FFFFFF, #FFFFFF);
	border: 2px solid #E1E1E1;
	box-sizing: border-box;
	border-radius: 8px;
	height: 48px;
	width: 100%;
	box-sizing: border-box;
	padding: 12px 20px;
	outline: none;
	transition: all 0.3s;
}

.mg-form__field-control input[type="text"]:hover, .mg-form__field-control textarea:hover, .mg-form__field-control select:hover {
	box-shadow: 0 9px 24px rgb(0, 0, 0, .05);
}

.mg-form__field-control input[type="text"]:focus, .mg-form__field-control textarea:focus, .mg-form__field-control select:focus {
	box-shadow: none;
	border-color: #9bbea4;
}

.mg-form__field-control textarea {height: 120px;}

.mg-form__field {
	margin-bottom: 16px;
}

.mg-form__field-title-mark {color: red;}

@media all and (min-width: 600px) {
	.site-wrapper {
		padding: 32px 48px;
	}
	
	.from-wrapper {
		padding: 48px;
	}
	
	.form-image {
		display: block;
		max-width: 256px;
		flex: none;
		margin-right: 46px;
		align-self: center;
	}
	
	.form-image img {
		max-width: 100%;
		height: auto;
	}
	
	.form-part {
		flex: 1 0 1%;
	}
	
	.form-title {font-size: 24px;}
	
	.tpl-form-button {
		max-width: 236px;
	}
	
	.mg-form__field-title {
		font-size: 15px;
	}
}

@media all and (min-width: 960px) {
	
	.from-wrapper {
		padding: 48px 48px 48px 64px;
		max-width: 1008px;
		margin-left: auto;
		margin-right: auto;
		box-sizing: border-box;
	}
	
	.form-image {
		max-width: 352px;
		margin-right: 64px;
	}
	
	.form-title {font-size: 24px;}
	
	.form-subtitle {
		font-size: 0.47em;
	}
	
	.mg-form__field-control input[type="text"], .mg-form__field-control select {
		height: 64px;
		padding-left: 32px;
		padding-right: 32px;
	}
	
	.mg-form__field-title {
		font-size: 16px;
	}
	
	.tpl-form-button {
		max-width: 252px;
		padding: 20px;
	}
}

@media all and (min-width: 1200px) {
	
	.from-wrapper {
		padding: 56px 64px;
	}
	
	.form-title {
		font-size: 32px;
		line-height: 48px;
	}
}




.mg-form__field-client-item {
	display: inline-flex;
	width: 80px;
	align-items: center;
	padding-top: 4px;
}

.mg-form__field-client-item input {
	width: 24px;
	height: 24px;
	margin-right: -24px;
	position: relative;
	z-index: 1;
	opacity: 0;
	cursor: pointer;
}

.mg-form__field-client-item input + span {
	flex: none;
	width: 24px;
	height: 24px;
	border: 2px solid #dfdfdf;
	border-radius: 6px;
	box-sizing: border-box;
	margin-right: 8px;
	transition: border 0.15s;
	cursor: pointer;
}

.mg-form__field-client-item input:checked + span {
	border-color: #1DB34B;
	background-size: 18px auto;
	
	background: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.857 7.556L.293 3.993a.999.999 0 111.414-1.414l2.15 2.15L8.293.293a1 1 0 011.414 1.413l-5.85 5.85z' fill='%231DB34B'/%3E%3C/svg%3E") center center no-repeat;
}

.mg-form__field-client-note {
	font-size: 0.8em;
	padding-top: 8px;
	color: red;
	display: none;
}

.mg-form__field-client-note.show {display: block;}

.mg-form__field-control ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

.mg-form__field-control ul input {
	width: 24px;
	height: 24px;
	flex: none;
	margin-right: 8px;
}

.mg-form__field-control ul label {
	margin-top: 16px;
	display: flex;
}

.mg-form__field-control input[type="text"].disabled {
	background: #f3f3f3;
	pointer-events: none
}

.mg-form__field-control:has( input.disabled) {cursor: not-allowed;}

.mg-form__field-control input[type="text"].disabled:hover {
	box-shadow: none;
}