@font-face {
  font-family: 'Helvetica';
  src: url('../fonts/HELVETICASCHOOL.TTF') format('truetype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'SF-Pro';
  src: url('../fonts/SF-Pro-Display-Heavy.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}


:root {
  --transition-duration: 0.3s;
  --transition-delay: 0.2s;
}

body {
/*  background-image: url("../images/calc/background-1.jpeg");
  background-size: cover;
  background-attachment: fixed;
  -webkit-background-size: cover; /* Для Safari 3-4 */
  -moz-background-size: cover; /* Для старых версий Firefox */
  -o-background-size: cover; /* Для старых версий Opera */

}

hr {
  border-color: #000;
  margin: 0;
}

h1 {
  margin: 20px auto 20px auto;
  text-align: center;
  font-size: 2em;
  color: #FFF;/*#634750;*/
  font-family: 'SF-Pro';/*'Bree Serif', serif;*/
  text-shadow:  -1px 1px 0 #000, 1px 1px 0 #000;
}

h3 {
  font-family:'SF-Pro';/*, sans-serif; /* 'Bree Serif', serif;*/
  font-size: 1em;
}

header {
  font-family: 'SF-Pro';/*'Bree Serif', serif;*/
  font-size: 1em;
  text-align: center;
  margin: 0;
  border: 0;
  padding: 0;
  background-color: #ecf0f1; 

}
footer {
  margin: 0;
  border: 0;
  padding: 0;
}
header p {
  margin: 0;
  border: 0;
  padding: 0;
  color: #827c7d;
}
.clear {
  clear: both;
  display: block;
  overflow: hidden;
  visibility: hidden;
  width: 0;
  height: 0;
}
.bg{
  position: absolute;
  background-size: cover;
  opacity: 0.5;
  bottom: 20%;
  z-index: -2;
}

.container {
  /*width: 840px;*/
  min-width:300px;
  display: flex;
  justify-content: center;
 /* padding: 100px;*/

/*  width:50%;*/
}

.container_ul {
  width: 100%;
  display: flex;
  justify-content: center;
  background-color:#000137;
  padding: 10px;
  border-color: #000137;
  z-index: 1;
/*  width:50%;*/
}

.container_ {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  max-width: 1600px;
  justify-content: center;
  z-index: 1;
/*  margin: 0 auto;*/
}

.container ul {
  /*margin: 0 0 50px;*/
  justify-content: center;
  border-radius: 10px;
  border-width: 5px;
  border-color: #00FFFF;
  z-index: 1;
}
/*.container ul:hover {
  -webkit-filter: grayscale(90%) brightness(50%);
}*/
/*.container ul:after {
  content: ".";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 4px;
  height: 2px;
}*/

.container li {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  list-style: none;
  float: none;
  width: 300px;
  height: 300px;
  margin: 5px;
  padding: 0;
  perspective: 500px;
}
.container li a {
  display: inline-block;
  vertical-align: top;
  text-decoration: none;
  border-radius: 4px;
  border-width: 5px;
  border-color: #00FFFF;
  filter: grayscale(40%) brightness(85%);
}
.container li h3 {
  margin: 0;
  font-size: 1.4em;
  color: #000000;/*#DCD0D0FF;*/
/*  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;*/
  justify-content: center;
  text-align: center;
  align-items: center;
}
.container li p {
  font-size: 1.2em;
  line-height: 1.5;
  color: #000000;/*#DCD0D0FF;*/
  /*text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;*/
  font-family: 'Helvetica';/*, sans-serif; /* 'Bree Serif', serif;*/
  justify-content: center;
  align-items: center;
  text-align: center;
}
.container p {
  font-size: 1.2em;
  line-height: 1.3;
  color: #000;
  max-width: 900px;
  /*text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;*/
  font-family: 'Helvetica';/*, sans-serif; /* 'Bree Serif', serif;*/
  justify-content: center;
  align-items: center;
  text-align: left;
}
.container li .normal {
  width: 100%;
  height: 100%;
  background-color: #ecf0f1;
  color: rgba(149, 170, 56, 0.452);
  box-shadow: inset 0 2px 20px #000000b2;
  text-align: center;
  font-size: 50px;
  line-height: 180px;
}

.container li .info {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  border-radius: 4px;
  pointer-events: none;
  background-color: #a0a0b5ED;/*666699ED;/*#647a9f;/*#8D9CB7B2;*/
  transform: rotate3d(1, 0, 0, 90deg);
  text-align: center;
  align-items: center;

}

.in-top .info {
  transform-origin: 50% 0%;
  animation: in-top 300ms ease 0ms 1 forwards;
}

.in-right .info {
  transform-origin: 100% 0%;
  animation: in-right 300ms ease 0ms 1 forwards;
}

.in-bottom .info {
  transform-origin: 50% 100%;
  animation: in-bottom 300ms ease 0ms 1 forwards;
}

.in-left .info {
  transform-origin: 0% 0%;
  animation: in-left 300ms ease 0ms 1 forwards;
}

.out-top .info {
  transform-origin: 50% 0%;
  animation: out-top 300ms ease 0ms 1 forwards;
}

.out-right .info {
  transform-origin: 100% 50%;
  animation: out-right 300ms ease 0ms 1 forwards;
}

.out-bottom .info {
  transform-origin: 50% 100%;
  animation: out-bottom 300ms ease 0ms 1 forwards;
}

.out-left .info {
  transform-origin: 0% 0%;
  animation: out-left 300ms ease 0ms 1 forwards;
}

@keyframes in-top {
  from {
    transform: rotate3d(-1, 0, 0, 90deg);
  }

  to {
    transform: rotate3d(0, 0, 0, 0deg);
  }
}

@keyframes in-right {
  from {
    transform: rotate3d(0, -1, 0, 90deg);
  }

  to {
    transform: rotate3d(0, 0, 0, 0deg);
  }
}

@keyframes in-bottom {
  from {
    transform: rotate3d(1, 0, 0, 90deg);
  }

  to {
    transform: rotate3d(0, 0, 0, 0deg);
  }
}

@keyframes in-left {
  from {
    transform: rotate3d(0, 1, 0, 90deg);
  }

  to {
    transform: rotate3d(0, 0, 0, 0deg);
  }
}

@keyframes out-top {
  from {
    transform: rotate3d(0, 0, 0, 0deg);
  }

  to {
    transform: rotate3d(-1, 0, 0, 110deg);
  }
}

@keyframes out-right {
  from {
    transform: rotate3d(0, 0, 0, 0deg);
  }

  to {
    transform: rotate3d(0, -1, 0, 110deg);
  }
}

@keyframes out-bottom {
  from {
    transform: rotate3d(0, 0, 0, 0deg);
  }

  to {
    transform: rotate3d(1, 0, 0, 110deg);
  }
}

@keyframes out-left {
  from {
    transform: rotate3d(0, 0, 0, 0deg);
  }

  to {
    transform: rotate3d(0, 1, 0, 110deg);
  }
}

.main_menu{
  margin: 0;
  border: 0;
  padding: 0;
  width: 100%;
  color: black;
  background-color: #FFFFFF;
  position: fixed;
  top: 0;
  left:0;
  z-index: 10;
}
.menu {
  display: flex;
  justify-content: center;
  max-width: 300;
  margin: 0;
  border: 0;
  padding: 10px;
/* border: 10px;
  padding: 10px;*/
}

.menu li {
  margin-right: 70px;
  list-style: none;
}

.menu a {
  text-decoration: none;
  font-size: 1.2em;
  position: relative;
  display: block;
  padding: 10px;
  color: #000;/*#1a1a1b;*/
 /* text-shadow: -1px 1px 0 #000, 1px 1px 0 #000;*/
}

.menu .border {
  position: absolute;
  left: 0;
  background: currentColor;
  transition: transform var(--transition-duration) ease-in-out;
}

.menu .border-top,
.menu .border-bottom {
  width: 100%;
  height: 1px;
  transform: scaleX(0);
}

.menu .border-left,
.menu .border-right {
  width: 1px;
  height: 100%;
  transform: scaleY(0);
}

.menu .border-top,
.menu .border-left,
.menu .border-right {
  top: 0;
}

.menu .border-bottom {
  bottom: 0;
  transform-origin: bottom right;
}

.menu .border-top {
  transform-origin: top left;
}

.menu .border-left {
  transform-origin: bottom left;
}

.menu .border-right {
  left: auto;
  right: 0;
  transform-origin: top right;
}

.menu a:hover .border-top,
.menu a:hover .border-bottom {
  transform: scaleX(1);
}

.menu a:hover .border-left,
.menu a:hover .border-right {
  transform: scaleY(1);
}

.menu a:hover .border-right {
  transition-delay: var(--transition-delay);
}

.menu a:hover .border-bottom {
  transition-delay: calc(var(--transition-delay) * 2);
}

.menu a:hover .border-left {
  transition-delay: calc(var(--transition-delay) * 3);
}


/* ANIMATIONS
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.menu[data-animation="diagonal"] .border-left {
  transform-origin: top left;
}

.menu[data-animation="diagonal"] .border-right,
.menu[data-animation="diagonal"] .border-bottom {
  transform-origin: bottom right;
}

.menu[data-animation="diagonal"] a:hover [class^=border]{
  transition-delay: 0s;
}

.page-footer {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 1rem;
}

.page-footer span {
  color: var(--red);
}
.text{
  padding: 1.5em 1.5em 1.5em 1.5em;
  border: 1.5em;
  position: relative;
  width: 80%;
  justify-content: center;
  background-color: #FFFFFFA0;
}
.text-grid{
  float: left;
  width: 29.75%;
  min-width: 350px;
  /*margin-right: 5%;*/
  padding: 1.5em 1.5em 1.5em 1.5em;
}
.text-grid:nth-child(3){
  margin-right:0;
}
.text h3{
  color: #000;/*3D3E41;*/
  font-family:'SF-Pro';/*, sans-serif; /* 'Bree Serif', serif;*/
  font-size: 1.8em;
  padding: 0.5em 0;
  font-weight: 100;
  text-align: center;
}
.text p{
  color: #000;/*#3D3E41;*/
  line-height: 1.7em;
  font-family:'Helvetica';/*, sans-serif; /* 'Bree Serif', serif;*/
  font-size: 1em;
  text-align: justify;
 /* text-shadow:  -1px 1px 0 #FFF, 1px 1px 0 #FFF;*/
}

.text img{
  filter: grayscale(80%) brightness(60%);
  -webkit-transition: all 500ms;
}
.text img:hover{
  -webkit-filter: grayscale(0%) brightness(100%);
}

.footer{
  background: #FFF;
  padding: 0.1em 0 0.1em;
  font-family: 'SF-Pro';
  font-size: 1em;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  display: flex;
  left: 0;
  width: 100%;
  position: relative;
  z-index: 10;
}
.footer-left{
  color: #000;
  float:left;
  width:50%;
  text-align: center;
}
.footer-right{
  color: #000;
  float: right;
  width: 50%;
  text-align: center;
}

.copy-right{
  font-family: 'SF-Pro';
  font-size: 1em;
  text-align: center;
  /*background: #545454;
  padding: 1em;*/
  width: 100%;
  /*display: flex;*/
  justify-content: center;
  position: relative;
  z-index: 10;
}
.copy-right p,.copy-right p a{
  color: #8C8C8C;
  transition:0.5s all;
  text-decoration: none;
  -webkit-transition:0.5s all;
  -moz-transition:0.5s all;
  -o-transition:0.5s all;
}
.copy-right p a:hover{
  color:#FFF;
}

.contact-head{
  font-family: 'WorkSans';
  text-align:left;
}
/*----start-contact----*/
.contact-head h3 {
  color: #000;
  text-transform: uppercase;
  font-size: 1.5em;
  font-weight: 900;
  padding: 0.6em 0 0 0;
}

.contact-form{
  border:0;
  padding: 2em;
  justify-content: center;
  margin-right:4%;
}
.contact-form input[type="text"],.contact-form textarea{
  color: #3D3E41;
  font-family: 'Helvetica';
  width: 100%;
  padding: 1.1em;
  font-size: 1em;
  border: none;
  outline: none;
  margin-bottom: 1em;
}

@media only screen and (max-width:1708px) and (min-width:1234px) {
 .text-grid{
    float: left;
    width: 45%;
    min-width: 350px;
    /*margin-right: 5%;*/
    padding: 1.5em 1.5em 1.5em 1.5em;
  }
  .text-grid:nth-child(2){
    margin-right:0;
  } 
}

@media only screen and (max-width:1234px) and (min-width:480px) {
  .text-grid{
    float: none;
    width: 90%;
    min-width: 350px;
    /*margin-right: 5%;*/
    padding: 1.5em 1.5em 1.5em 1.5em;
  }
  .text-grid:nth-child(1){
    margin-right:0;
  }
  header {
    font-family: 'SF-Pro';/*'Bree Serif', serif;*/
    font-size: 1em;
    text-align: center;
    margin: 0;
    border: 0;
    padding: 0;
    background-color: #ecf0f1; 
    letter-spacing: 0.01em;
  }
}
