body, html {
	margin: 0;
	padding: 0;
	height: 100%;
	width: 100%;
    background-color:  #FFC107;
}

main {
	height: 100%;
	width: 100%;
}

/* подложка под сайд бар*/

aside {
	background-color: #FFC107;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 400px;
	z-index: 1;

}

section {
	position: relative;
	width: 100%;
	height: 100%;
	background-color:  transparent;
	overflow-x: hidden;
	min-width: 280px;

}


label[for="myInput"] {
	display: none;
	padding: 10px 10px;
	background-color:  #4A148C;
	border-radius: 25px;
	cursor: pointer;
	margin: 10px;
	z-index: 3;
	position: fixed;
	transition-delay: 0.5s;
}

.bar {
	display: block;
	background-color: #fff;
	width: 30px;
	height: 3px;
	border-radius: 5px;
	margin: 5px auto;
	transition: background-color .5s ease-in,
	transform .5s ease-in, width .5s ease-in;
}


.content {
	top: 0;
	/*bottom: 0;*/
	right:	0;
	left: 0;
	position: absolute;
	background-color: #fff;
	z-index: 2;
	transition: transform .5s ease-in-out;


}

.asideList {
	list-style: none;
	padding: 0;
	margin: 0;
	margin-top: 100px;
	margin-left: 55px;
	text-align: left;


}

.asideAnchor {
	padding: 20px 0 0 0;
	display: block;
	color: #646464;
	text-decoration: none;
	font: 16px san-serif;	
	font-family: Montserrat;
	color: #646464;
	font-weight: 800;
	position: relative;
	transform: color .3s .15s ease-in;
}

h3 {
	margin: 0;
	padding: 0;
	font-size: 13px;
	font-weight: 500;
}


.asideAnchor:hover {
	text-decoration: underline;
}


.underAside {
	padding: 5px;
	display: block;
	color: #646464;
	text-decoration: none;
	font: 13px san-serif;	
	font-family: Montserrat;
	color: #646464;
	position: relative;
	transform: color .3s .15s ease-in;
}

.underAside:first-child {
	margin: 20px 0 0 0;

}


input[type="checkbox"] {
	display: none;
}







/*контент*/


.content {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: 1fr
						60px;
	min-height: 100vh;		
}

/*шапка, навигация, контент*/

.wrapperAll {
	grid-area: 1/1/2/2;
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: 190px 80px 1fr;
} 

header {
	grid-area: 1/1/2/2;
	
}


.hg_header {
	background-color: #4A148C;
	background-image: url(image/headerbg.png);
	background-position: center center;
	background-repeat: no-repeat;
	box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.4);	
}


.logo-container {
	width: 250px;
	height: 100%;
	margin: auto;
	vertical-align: middle;
}


.logo-container img {
	margin: 67px auto;
}



/*навигация*/

nav {
	grid-area: 2/1/3/2;
	background-color:  #FFC107;
}

.hg_nav {
	display: flex;
	justify-content: center;
	align-items: center;
}

.menu {
	margin-left: 20px;
	margin-right: 20px;
	line-height: 80px;
	font: 16px san-serif;	
	font-family: Montserrat;
	color: #646464;
	font-weight: 100;
	height: 100%;
	display: grid;
	grid-template-columns: 1fr 20px 1fr;
	grid-template-rows: 1fr 20px 1fr; 

}
h2 {
	margin: 0;
	padding: 0;
	font-size: 16px;
	font-weight: 800;
}

a {
	text-decoration: none;
	 color:  #646464;
}

a:hover {
	text-decoration: underline;

}

.container {
	grid-column: 1/4;
	grid-row: 2/3;


}

.tre {
	grid-column: 2/3;
	grid-row: 3/4;
	background-image: url(image/tre.png);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center bottom;
}


/*контент*/

.content main {
	grid-area: 3/1/4/2;
}

.hg {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	grid-template-rows: repeat(8, 1fr);
}

.wrapper {
	grid-column: 3/11;
	grid-row: 2/8;
	display: grid;
	grid-template-columns:repeat(3, 256px);
	grid-template-rows: 1fr;
	grid-gap: 80px;
	justify-self:center; 
}

h1 {
	margin: 0;
	padding: 0;
	font-size: 26px;
}

.card {
	display: grid;
	grid-template-columns: 256px;
	grid-template-rows: repeat(8,1fr);
}


.name {
	grid-row: 1;
	font: 26px san-serif;	
	font-family: Montserrat;
	color: #646464;
	font-weight: 100;
	justify-self: center;
    align-self: center;
    text-align: center;
}




.cardcontainer {
	grid-row: 2/4;
	width: 250px;
	height: 162px;
	margin:  auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px 0px #AAAAAA;
    align-self: center;
}



.cardcontainer a {
	display: block;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

.round-corner {
	border-radius: 8px;
}





.describe {
	grid-row: 4/7;
	font: 14px san-serif;	
	font-family: Arial;
	color: #646464;
	margin-top: 10px;
}

li {
	margin-top: 15px;
}

.button {
	grid-row: 7/8;
	width: 200px;
    height: 64px;
    border-radius: 8px;
    box-shadow: 0 2px 4px 0px #AAAAAA;
    background-color: #4A148C;
    justify-self: center;
    align-self: center;
    text-align: center;
   	font: 14px san-serif ;	
	font-family: Montserrat ;
	line-height: 64px;

}

span {
	color: #fff;
}


.button a {
	display: block;
	width: 100%;
	height: 100%;
	cursor: pointer;	
}
/*подвал*/

footer {
	grid-area: 2/1/3/2;
	background-color:  #FFC107;
	 box-shadow: inset 0 3px 6px 0 rgba(0, 0, 0, 0.4);
}

.hg_footer {
	color: 	 #646464;
	font: 14px  sans-serif;
	font-family: Montserrat;
    text-align: center;
    padding-top: 20px;
}


.hg_footer h2 {
	font-size: 14px;
}

/*медиа запрос*/


@media screen and (max-width: 950px) {

	label[for="myInput"] {
		display: inline-block;
	}


	input[type="checkbox"]:checked ~.content {
		transform: translateX(400px);
	
	}




	input[type="checkbox"]:checked ~ label .bar {
	  background-color: #fff;
	}

	input[type="checkbox"]:checked ~ label {
	  transition-delay: 0s;	
	  background-color: transparent;
	}



	input[type="checkbox"]:checked ~ label .top {
	  -webkit-transform: translateY(0px) rotateZ(45deg);
	  -moz-transform: translateY(0px) rotateZ(45deg);
	  -ms-transform: translateY(0px) rotateZ(45deg);
	  -o-transform: translateY(0px) rotateZ(45deg);
	  transform: translateY(0px) rotateZ(45deg);
	}


	input[type="checkbox"]:checked ~ label .bottom {
	  -webkit-transform: translateY(-15px) rotateZ(-45deg);
	  -moz-transform: translateY(-15px) rotateZ(-45deg);
	  -ms-transform: translateY(-15px) rotateZ(-45deg);
	  -o-transform: translateY(-15px) rotateZ(-45deg);
	  transform: translateY(-15px) rotateZ(-45deg);
	}

	input[type="checkbox"]:checked ~ label .middle {
	  width: 0;
	}



	.middle {
	  margin: 0 auto;
	}
	.hg_nav {
		display: none;
	}

	.wrapperAll {
		box-shadow: 0px 0px 10px 0 rgba(0, 0, 0, 0.3);	
		
	}




	header {
		grid-area: 1/1/2/2;
		background-color: #4A148C;
	}

	.hg_header {
		background-image: url(image/headerbg.png);
		background-position: center center;
		background-repeat: no-repeat;
		box-shadow: none;

	}


	.wrapperAll article {
		grid-area: 2/1/4/2;
		display: grid;
		grid-template-columns: 1fr 70% 1fr;
		grid-template-rows: 1fr;

	}

	
	.wrapper {
		grid-area: 1/2/2/3;
		width: 100%;
		display: grid;
		grid-template-columns: 70vw;
		grid-template-rows: repeat(3, 1fr);
		grid-gap: 50px;
		margin-top: 50px;
		margin-bottom: 50px;
	}
	
	.card {
		display: block;
		width: 100%;
		height: 100%;

	}

	.name {
		margin-bottom: 20px;
	}
	
	br {
		display: none;
	}
	.describe {
		display: none;
	}

	.button {
		display: none;
	}

	.name a:hover {
	text-decoration: underline;
	cursor: pointer;
}

	.cardcontainer a {
		display: block;
		width: 100%;
		height: 100%;
	}

	.cardcontainer {
		width: 60vw;
		height: 39vw;
		background-size: cover;
		background-position: center center;
	}

	.cardcontainer img {
		width: 60vw;
		height: 39vw;
	}
		
	footer {
		grid-area: 2/1/3/2;
		background-color:  #FFC107;
		box-shadow: none;
		z-index: -1;
	}


	.as-card {
		flex-direction: column;
		margin-bottom: 100px;
	}

	.as-photobox a {
		margin: auto;
	}

	.as-textbox h1 {
		text-align: center;
	}

	.as-textbox ul {
		display: none;
	}

}

@media screen and (max-width: 430px) {
		.wrapper {
		grid-area: 1/2/2/3;
		width: 100%;
		display: grid;
		grid-template-columns: 70vw;
		grid-template-rows: repeat(3, 1fr);
		grid-gap: 15px;
		margin-top: 50px;
		margin-bottom: 50px;
	}

	.name {
		font-size: 22px;
	}

	h1 {
		font-size: 22px;
	}

}

/*****************redesign*******************************/


.as-wrapper {
	grid-area: 1/1/9/13;
	width: 85%;
	max-width: 1000px;
	height: auto;
	margin: 100px auto;
	display: flex;
    flex-direction: column;
  }
  
  .as-card {
	height: auto;
	min-height: 250px;
	display: flex;
	justify-content: center;
	gap: 20px;
	font-family: 'Montserrat';
	color: #646464;
	margin-bottom: 7vw;
  }

  .as-photobox {
	  width: auto;
	  height: auto;

	  
  }

  .as-photobox  a {
	  display: block;
	  width: 250px;
	  height: 100%;
  }

  .as-photobox img{
	  width: inherit;
	  border-radius: 8px;
	  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  }

  .as-textbox{
	flex: 1;
	max-width: 750px;
  }

  .as-textbox h1 {
	  font-family: 'Montserrat';
	  font-weight: bold;
	  font-size: 1.2rem;
	  line-height: 1.5;
	  padding: 0px 12px;
  }

  .as-textbox ul {
	list-style: none;
	font-weight: 400;
	margin: 15px 0px 0px 0px;
	padding: 6px 12px;
	font-size: 0.8rem;
  }

  .as-textbox ul li {
	margin-top: 7px;
	line-height: 1.5;
  }

  .as-textbox ul li span {
	  color: #646464;
	  font-weight: 600;
  }

  .as-textbox ul li span a {
	  text-decoration: underline;
  }

  .as-buttonbox {
    width: auto;
    height: auto;
  }

  .as-buttonbox a {
	  display: block;
	  width: 180px;
	  height: 40px;
	  background-color: #4A148C;
	  text-align: center;
	  line-height: 40px;
	  border-radius: 5px;
	  margin: 0px auto;
	  color: #ffffff;
	  font-family: 'Montserrat';
	  font-weight: 600;
	  
  }

  .as-buttonbox a:hover {
	  transform: scale(1.02);
  }



  /***************************form*****************/

  .as-wrapper-form {
	grid-area: 1/1/9/13;
	width: 50%;
	max-width: 800px;
	min-width: 300px;
	height: auto;
	margin: 70px auto;
	
  }

  .as-wrapper-form h1{
	font-family: 'Montserrat';
	font-weight: bold;
	font-size: 1.2rem;
	line-height: 1.5;
	padding: 0px 12px;
	text-align: center;
	color: #646464;
  }

  .as-wrapper-form p {
	font-family: 'Montserrat';
	font-weight: 400;
	font-size: 0.9rem;
	line-height: 1.5;
	padding: 0px 12px;
	text-align: center;
	color: #646464;
  }

  .as-wrapper-form form {
	  display: flex;
	  flex-direction: column;
	  margin: 50px 0px;
	  background-color: #ffffff;
  }


.user-box {
	position: relative;
	margin-bottom: 50px;
}

.user-box input {
	width: calc(100% - 12px);
	padding: 10px 6px;
	font-size: 1rem;
	font-family: 'Montserrat';
	font-weight: 600;
	color: #646464;
	background-color: transparent;
	border: none;
	border-bottom: 1px solid #646464;
	outline: 0;
}


form .user-box .user-box-label {
	display: block;
	position: absolute;
	top: 0;
	left: 6px;
	color: #646464;
	font-family: 'Montserrat';
	font-weight: 500;
	font-size: 0.9rem;
	pointer-events: none;
	transition: .5s;
	  
}


form .user-box .user-box-label sup {
	color: #D71616;
}


.user-box input:valid ~ .user-box-label {
	top: -20px;
	left: 6px;
	font-size: 0.7rem;
}

.user-box input:focus + .user-box-label {
	top: -20px;
	left: 6px;
	font-size: 0.7rem;
}

.user-box input:-webkit-autofill {
    -webkit-box-shadow:0 0 0 50px white inset; /* можно изменить на любой вариант цвета */
    -webkit-text-fill-color: #646464;
}


form select {
	margin-bottom: 30px;
	display: block;
	width: 100%;
	padding: 10px 6px;
	border: none;
	outline: none;
	border-bottom: 1px solid #646464;
	color: #646464;
	font-family: 'Montserrat';
	font-weight: 500;
	font-size: 0.9rem;
	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
	background-image: url(../image/select-arrow.png);
	background-repeat: no-repeat;
	background-position: right 10px top	50%;
	background-size: 1.5rem 0.7rem;

}
 

 form textarea {
	 outline: none;
	 color: #646464;
	 font-family: 'Montserrat';
	 font-weight: 500;
	 font-size: 0.9rem;
	 padding: 10px 6px;
 }

 .as-wrapper-form form p {
	padding: 10px 6px;
	text-align: left;
}

.as-wrapper-form form p sup {
	 color:#D71616;
 }

 .as-wrapper-form form div {
	 text-align: center;

 }


 .as-wrapper-form form div input[type="submit"] {
	 width: 270px;
	 height: 60px;
	 border-radius: 5px;
	 border: none;
	 outline: none;
	 background-color: #4A148C;
	 color: #ffffff;
	 font-family: 'Montserrat';
	 font-weight: 600;
	 font-size: 0.9rem;
 }

 .as-wrapper-form form div input[type="submit"]:hover {
	 transform: scale(1.02);
	 text-decoration: underline;
 }

.submit {
	margin: 50px 0px;
}



/**********************thank-you****************/

.thanks {
	width: 100%;
	height: 300px;
	text-align: center;
}

.emodji {
	margin-bottom: 50px;
}


.thanks p {
	font-family: 'Montserrat';
	font-weight: bold;
	font-size: 1.2rem;
	color: #646464;
	margin-bottom: 50px;
}

.thanks a {
	font-family: 'Montserrat';
	font-weight: 500;
	font-size: 0.9rem;
	color: #646464;
	text-decoration: underline;
}



/*медиа запрос*/


@media screen and (max-width: 950px) {

	label[for="myInput"] {
		display: inline-block;
	}


	input[type="checkbox"]:checked ~.content {
		transform: translateX(400px);
	
	}




	input[type="checkbox"]:checked ~ label .bar {
	  background-color: #fff;
	}

	input[type="checkbox"]:checked ~ label {
	  transition-delay: 0s;	
	  background-color: transparent;
	}



	input[type="checkbox"]:checked ~ label .top {
	  -webkit-transform: translateY(0px) rotateZ(45deg);
	  -moz-transform: translateY(0px) rotateZ(45deg);
	  -ms-transform: translateY(0px) rotateZ(45deg);
	  -o-transform: translateY(0px) rotateZ(45deg);
	  transform: translateY(0px) rotateZ(45deg);
	}


	input[type="checkbox"]:checked ~ label .bottom {
	  -webkit-transform: translateY(-15px) rotateZ(-45deg);
	  -moz-transform: translateY(-15px) rotateZ(-45deg);
	  -ms-transform: translateY(-15px) rotateZ(-45deg);
	  -o-transform: translateY(-15px) rotateZ(-45deg);
	  transform: translateY(-15px) rotateZ(-45deg);
	}

	input[type="checkbox"]:checked ~ label .middle {
	  width: 0;
	}



	.middle {
	  margin: 0 auto;
	}
	.hg_nav {
		display: none;
	}

	.wrapperAll {
		box-shadow: 0px 0px 10px 0 rgba(0, 0, 0, 0.3);	
		
	}




	header {
		grid-area: 1/1/2/2;
		background-color: #4A148C;
	}

	.hg_header {
		background-image: url(image/headerbg.png);
		background-position: center center;
		background-repeat: no-repeat;
		box-shadow: none;

	}


	.wrapperAll article {
		grid-area: 2/1/4/2;
		display: grid;
		grid-template-columns: 1fr 70% 1fr;
		grid-template-rows: 1fr;

	}

	
	.wrapper {
		grid-area: 1/2/2/3;
		width: 100%;
		display: grid;
		grid-template-columns: 70vw;
		grid-template-rows: repeat(3, 1fr);
		grid-gap: 50px;
		margin-top: 50px;
		margin-bottom: 50px;
	}
	
	.card {
		display: block;
		width: 100%;
		height: 100%;

	}

	.name {
		margin-bottom: 20px;
	}
	
	br {
		display: none;
	}
	.describe {
		display: none;
	}

	.button {
		display: none;
	}

	.name a:hover {
	text-decoration: underline;
	cursor: pointer;
}

	.cardcontainer a {
		display: block;
		width: 100%;
		height: 100%;
	}

	.cardcontainer {
		width: 60vw;
		height: 39vw;
		background-size: cover;
		background-position: center center;
	}

	.cardcontainer img {
		width: 60vw;
		height: 39vw;
	}
		
	footer {
		grid-area: 2/1/3/2;
		background-color:  #FFC107;
		box-shadow: none;
		z-index: -1;
	}


	.as-card {
		flex-direction: column;
		margin-bottom: 100px;
	}

	.as-photobox a {
		margin: auto;
	}

	.as-textbox h1 {
		text-align: center;
	}

	.as-textbox ul {
		display: none;
	}

}

@media screen and (max-width: 430px) {
		.wrapper {
		grid-area: 1/2/2/3;
		width: 100%;
		display: grid;
		grid-template-columns: 70vw;
		grid-template-rows: repeat(3, 1fr);
		grid-gap: 15px;
		margin-top: 50px;
		margin-bottom: 50px;
	}

	.name {
		font-size: 22px;
	}

	h1 {
		font-size: 22px;
	}

}