:root {
  box-sizing: border-box;
}

*, ::before, ::after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  --main_color:rgb(81, 82, 90);
  box-sizing: inherit;
  padding: 0;
  margin: 0 auto;
	font-family: Montserrat, system-ui, sans-serif;
}

/* $header-color: rgb(219, 202, 255); */
.body, html {
  font-size: 100%;
  height: 100%;
  margin: 0 auto;
  background: repeating-linear-gradient(to right, transparent 0, transparent 8px, var(--main_color) 8px, var(--main_color) 122px, transparent 122px, transparent 127px), repeating-linear-gradient(180deg, transparent 0, transparent 8px, var(--main_color) 8px, var(--main_color) 122px, transparent 122px, transparent 127px), repeating-linear-gradient(180deg, rgb(249, 201, 139), rgb(249, 201, 139) 3px, transparent 3px, transparent 127px), repeating-linear-gradient(to right, rgb(249, 201, 139), rgb(249, 201, 139) 3px, var(--main_color) 3px, var(--main_color) 127px); /*background: #158e79;*/
}

.global_cover{
  min-height: 100%;
  background-color: aliceblue;
  max-width: 1920px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 5rem 0 0 0;
}

h1{
  font-size: 3rem;
  font-weight: 600;
}

/*--------------------------------------------------Main block wrap-------------------------------------------------*/




.header {
  max-width: 1920px;
  max-height: 450px;
  margin: 0;
}
.header__cover {
  display: grid;
  height: 100%;
  width: 100%;
  grid-template-columns: minmax(300px, 1fr) 3fr;
  grid-template-rows: 2fr 2fr 2fr;
  background-color: azure;
  border-left: 2px solid black;
  border-bottom: 2px solid black;
  border-right: 2px solid black;
  border-radius: 5rem 0 0 0;
}
.header__menu {
  width: 100%;
  height: 100%;
  grid-column: 2/3;
  grid-row: 3/4;
  background-color: transparent;
}
.header__list {
  display: flex;
  width: 100%;
  height: 100%;
}
.header__items {
  list-style-type: none;
  margin: 0;
  padding: 0 .8rem;
  flex: 1 1 100%;
  text-align: center;
  border: 5px solid black;
  border-radius: 0 0 5rem 2rem;
}
.header__items:nth-child(2){
  flex:  1 1 130%;
}

.header__items:nth-child(4){
  flex:  1 1 110%;
}

.header__link {
  display: flex;
  width: 100%;
  height: 100%;
  color: rgb(26, 26, 112);
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  color: black;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 2rem;
  justify-content: center;
  align-items: center;
  padding: 0 .2rem;
}
.header__items:hover {
  border: 5px solid rgba(9, 18, 146, 0.801);
  box-shadow: 5px -5px 13px 0 black;
  background-image: linear-gradient(to right top, rgba(43, 110, 211, 0.253), white);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.header__items:active {
  background-color: aquamarine;
  color: red;
}

.icon {
  display: flex;
  grid-column: 1/2;
  grid-row: 1/4;
  width: 100%;
  background-color: rgba(43, 110, 211, 0.253);
  border-radius: 5rem;
  border: 5px solid rgb(23, 23, 61);
}

.title {
  background-image: linear-gradient(to right top, rgba(43, 110, 211, 0.253), white);
  display: flex;
  align-items: center;
  justify-items: center;
  width: 100%;
  height: 100%;
  grid-column: 2/3;
  grid-row: 1/3;
  font-size: 3.8rem;
  text-align: center;
  padding: 1rem;
}

.burger, .burger__cover {
  display: none;
}

/*++++==++++++++++++++++++++++++++++++++++Стиль для куба+++++++++++++++++++++++++++++++++++++++++++++*/
.father{
	margin: 60px auto;
	transform: rotateX(-23deg) rotateY(23deg);
    transform-style: preserve-3d;
    width: 20rem;
    height: 20rem;
}

.side{
    width: 100%;
    height: 100%;
    position: absolute;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
  transition: all .6s linear;
}

.inner{
	width: 100%;
	height: 100%;
	background-color: rgba(83, 77, 77, 0.1);
	border: 3px solid rgba(123, 31, 77, 0.2);
}

.inn_act{
	background-color: rgba(255, 0, 0, .3);
	border: 3px solid rgba(214, 64, 139, 0.925);
}

.side_round{
  background-image: radial-gradient(circle at 50% 50%,red 13px, transparent 13px);
}

.side_osX{
  background-image: linear-gradient(to top, transparent 47%, red 53%, transparent 53%, transparent);
}

.side_osZ{
  background-image: linear-gradient(to left, transparent 47%, red 53%, transparent 53%, transparent);
}

.no1{
    transform: rotateX(90deg);
    transform-origin: 50%;
    top: 50%;
}

.no2{
    transform: rotateX(90deg);
    transform-origin: 50%;
    bottom: 50%;
}

.no3{
    transform: translateX(-50%) rotateY(90deg);
}

.no4{
    transform: translateX(50%) rotateY(90deg);
}
.no5{
	transform: rotateY(90deg) translateX(50%) rotateY(-90deg);
	transform-origin: 50%;

    /* transform: translateZ(60px); */
}
.no6{
	transform: rotateY(90deg) translateX(-50%) rotateY(-90deg);
	transform-origin: 50%;
}
.no7{
	transform: rotateX(90deg);
	transform-origin: 50%;
}

.no9{
	transform: rotateY(90deg);
	transform-origin: 50%;
}


/*++++==++++++++++++++++++++++++++++++++++Стиль для куба+++++++++++++++++++++++++++++++++++++++++++++*/

/* Стили для описания калькуляторов */

.dedscr{
  font-family: Montserrat, sans-serif, Comic Sans MS;
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 3rem;
  text-align: justify;
  width: 100%;
  margin-top: 2rem;
  grid-column: 1/3;
  grid-row: 3/4;
}

.img_ded-left {
  min-width: 25rem;
  width: 20%;
  height: auto;
  float: left;
  padding: 1rem 1rem 1rem 0;
  filter: drop-shadow(3px 3px 6px #4444dd);
}
.dedscr > p{
  min-width: 100%;
  margin-top: 2rem;
  overflow: auto;
}
.img_ded-right {
  min-width: 25rem;
  width: 20%;
  height: auto;
  float: right;
  padding: 1rem 0 1rem 1rem;
  filter: drop-shadow(-3px 3px 6px #4444dd);
}
.dedscr > h1, .dedscr > h2{
  text-align: center;
}

/* Стили для описания калькуляторов */

@keyframes rotation {
  0% {
    transform: rotateY(0deg) rotateX(20deg);
  }
  100% {
    transform: rotateY(360deg) rotateX(20deg);
  }
}
.shar {
  margin: 30px auto;
  position: relative;
  animation: rotation 25s linear infinite;
  transform-style: preserve-3d;
  width: 330px;
  height: 330px;
  padding: 30px;
  display: inline-block;
  text-align: center;
}

.sphere {
  width: 270px;
  height: 270px;
  border: 15px double rgb(197, 174, 46);
  border-radius: 50%;
  position: absolute;
  background-color: transparent;
  box-shadow: 2px 2px 7px 0 rgb(170, 77, 10);
}

.sphere_hor {
  width: 230px;
  height: 230px;
  border: 15px double rgb(197, 174, 46);
  border-radius: 50%;
  position: absolute;
  background-color: transparent;
  box-shadow: 2px 2px 7px 0 saddlebrown;
}

.nb2 {
  transform: rotateY(90deg);
  transform-origin: 50%;
}

.nb3 {
  transform: rotateY(45deg);
  transform-origin: 50%;
}

.nb4 {
  transform: rotateY(135deg);
  transform-origin: 50%;
}

.nb5 {
  transform: rotateX(90deg);
  transform-origin: 50%;
}

.nb6 {
  margin: 20px;
  transform: rotateX(90deg);
  transform-origin: 50%;
  top: 30%;
}

.nb7 {
  margin: 20px;
  transform: rotateX(90deg);
  transform-origin: 50px;
  top: -10%;
}

.body__cover{
  min-height: 100%;
  background-color: aliceblue;
  padding: 0 1rem;
  text-align: center;
  width: 100%;
}

.malbert{
  display: inline-block;
  margin: 2rem auto;
  border-radius: 2rem;
  width: 100%;
  height: 800px;
  background-color: rgb(227, 253, 253);
  border: 3px solid rebeccapurple;
}

.field{
  display: grid;
  margin: 1rem auto;
  padding: 1rem;
  border: 2px solid rebeccapurple;
  border-radius: .8rem;
  grid-template-columns: repeat(2, minmax(250px, 1fr));
  grid-template-rows: 1fr;
  grid-auto-flow: dense;
  grid-gap: 2rem;
  width: 100%;
  align-items: center;
}

.field__dots{
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-around;
  border: 2px solid rebeccapurple;
  border-radius: .8rem;
  min-height: 80%;
}

hr{
  width: 80%;
  height:.25rem;
  margin: .5rem auto;
  background-color: rebeccapurple;;
}

.field__cube{
  min-width: 250px;
  min-height: 250px;
  padding: 2rem;
  width: 100%;
  height: 100%;
}

.field__answer{
  background-color: rgba(15, 247, 65, 0.356);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  grid-column: 1/3;
  min-width: 250px;
  min-height: 300px;
  width: 100%;
  height: 100%;
}

.bot_chek{
position: absolute;
width: 0;
height: 0;
top: 0;
left: 0;
background-color: rgba(227, 253, 253, 0)
}
.submit{
padding: .3rem;
border-radius: .5rem;
background-color: antiquewhite;
margin: .2rem;
}

.input_wind{
display: inline-block;
padding: .3rem;
border-radius: .5rem;
background-color: antiquewhite;
margin: .2rem;
}

.input__cover{
margin: 0;

}

.description{
padding: .3rem;
border: 2px solid black;
margin: 7px auto;
border-radius: .3rem;
}

.footer {
  width: 100%;
  max-width: 1920px;
  background-color: aliceblue;
  padding: 4rem 0 0 0;
  margin-bottom: 0;
}

  .footer__cover {
    display: grid;
    width: 100%;
    min-height: 200px;
    background-image: linear-gradient(to bottom right, rgba(43, 110, 211, 0.253) 30%, aliceblue);
    border-radius: 3rem 3rem 0 0;
    border: 3px solid black;
    grid-template-columns: 3fr minmax(300px, 1fr);
    grid-template-rows: 1.5fr 2fr 2fr;
  }

 .footer__menu{
  width: 100%;
    grid-column: 1/3;
    grid-row: 1/2;
 }

 .footer__list{
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  border-bottom: 2px solid black;
 }


 .footer__items{
  list-style-type: none;
  width: 100%;
  height: 100%;
 }

 .footer__items:nth-child(n):not(:last-of-type){
  border-right: 2px solid black;
 }

 .footer__link{
  display: inline-block;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  text-decoration:none;
  font-size: 1.6rem;
  color: black;
 }
.contacts{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  grid-column: 1/3;
  grid-row: 2/3;
}
.contacts > a{
  font-size: 1.6rem;
  color: black;
  text-decoration: none;
}
.rights{
  width: 100%;
  height: 100%;
  grid-column: 1/3;
  grid-row: 3/4;
  font-size: 1.6rem;
  color: black;
  text-decoration: none;
  text-align: center;
}
.rights.sub{
  width: 100%;
  height: 100%;
  vertical-align: center;
}

/*------------------------------------------------------------------Медиазапросы------------------------------------------------------------------------------*/

@media (max-width: 1440px) {
  .shar {
    margin: 10px auto;
    width: 270px;
    height: 270px;
  }
  .sphere {
    width: 210px;
    height: 210px;
  }
  .header__link {
    padding: 0.2rem 0.2rem 0.2rem 0.2rem;
  }
  .sphere_hor {
    width: 160px;
    height: 160px;
  }
  .nb6 {
    margin: 25px;
    top: 30%;
  }
  .nb7 {
    margin: 25px;
    top: -10%;
  }
  .title {
    font-size: 3rem;
  }
  .header {
    height: 300px;
  }
}
@media (max-width: 1024px) {
  .title {
    font-size: 1.4rem;
    height: 100%;
    grid-column: 2/3;
    grid-row: 1/4;
  }
  .field{
    display: grid;
    margin: 1rem auto;
    padding: 1rem;
    border: 2px solid rebeccapurple;
    border-radius: .8rem;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    /* grid-auto-flow: dense; */
    row-gap: 2rem;
    width: 100%;
    align-items: center;
  }
 
  .field__cube{
    grid-column: 1/2;
    grid-row: 1/2;
    width: 100%;
    margin: 0 auto;
  }
  .field__dots{
    grid-column: 1/2;
    grid-row: 2/3;
  }
  .field__answer{
    grid-column: 1/2;
    grid-row: 3/4;
  }
  .dedscr{
    grid-column: 1/2;
    grid-row: 4/5;
  }

  .header {
    width: 100%;
    height: 150px;
  }
  .header__menu {
    display: none;
  }
  .header__cover {
    grid-template-columns: minmax(300px, 1fr) 2fr minmax(100px, 0.5fr);
    grid-template-rows: 2fr 2fr 1fr;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  .burger {
    display: block;
    margin: 0 auto;
    width: 40px;
    height: 3px;
    background-color: black;
    position: relative;
  }
  .burger:before, .burger:after {
    content: "";
    display: inline-block;
    width: 60px;
    height: 3px;
    background-color: black;
    position: absolute;
  }
  .burger:before {
    top: 20px;
  }
  .burger:after {
    top: -20px;
  }
  .burger__cover {
    display: block;
    margin: 0 auto;
    grid-column: 3/4;
    grid-row: 1/4;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
  }
  .burger__cover.active {
    margin: 0 auto;
    border: 3px solid black;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  .burger.active {
    width: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  .burger.active:before {
    rotate: 45deg;
    width: 123px;
    left: -63px;
    top: 0;
  }
  .burger.active:after {
    rotate: -45deg;
    width: 123px;
    left: -63px;
    top: 0;
  }
  .header__menu.active {
    display: block;
    position: absolute;
    z-index: 2;
    max-height: 400px;
    max-width: 320px;
    top: 0;
    right: 0;
    top: 150px;
  }
  .header__menu.active .header__list {
    display: flex;
    flex-direction: column;
    background-color: azure;
  }
  .shar {
    margin: 10px auto;
    width: 100px;
    height: 100px;
  }
  .sphere {
    width: 80px;
    height: 80px;
  }
  .sphere_hor {
    width: 60px;
    height: 60px;
  }
  .nb6 {
    margin: 10px;
    top: 10%;
  }
  .nb7 {
    margin: 10px;
    top: 50%;
  }
}
@media (max-width: 1024px) {
  .title {
    display: none;
  }
  .icon {
    height: 100%;
    border-radius: 5rem 0 0 0;
  }
  .header__cover {
    grid-template-columns: 180px 2fr minmax(120px, 0.5fr);
  }
  .footer__menu{
    display: none;
   }
   .contacts{
    grid-column: 1/3;
    grid-row: 1/2;
  }
  .rights{
    width: 100%;
    height: 100%;
    grid-column: 1/3;
    grid-row: 2/3;
  }
  .footer__cover {
    grid-template-columns: 1fr;
    grid-template-rows: 2fr 2fr;
    padding: 0 1rem;
  }
  .sub{
    font-size: 1.2rem;
  }
  .contacts a{
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {

  .dedscr{
    font-family: Montserrat, sans-serif, Comic Sans MS;
    font-weight: 400;
    font-size: 1.2rem;
    line-height: 2rem;
    text-align: justify;
    width: 100%;
  }
  
  .img_ded-left {
    min-width: 100%;
    height: auto;
    padding: 0;
  }
h1{
    font-size: 2rem;
  }
  .dedscr > p{
    margin-top: 1rem;
  }
  .img_ded-right {
    min-width: 100%;
    height: auto;
    padding: 0;
  }
  }

@media (max-width: 550px) {
  .father{
      width: 12rem;
      height: 12rem;
  }
  .field__answer{
    font-size: 1.3rem;
  }
}
