@import url('https://fonts.googleapis.com/css?family=Roboto|Suez+One');
@import url('https://fonts.googleapis.com/css2?family=Gemunu+Libre:wght@600&display=swap');

* {
  margin: 0;
  padding: 0;
  outline: none;
}

body,html {
  background-size: cover;
  margin: 0;
  padding: 0;
  outline: none;
  background-color: #fafafa;
  font-family: Trebuchet MS, Helvetica;
  width: 100vw;
  height: 100vh;
}

h1, h2, h3, h4, h5 {
  font-family: 'Roboto Slab', serif;
  font-weight: lighter;
}

#top {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: black;
}

#main {
  float: left;
  background-color: #f6f6f6;
  border-top: 2px solid silver;
  color: black;
  font-size: 1.3em;
}

@media (min-width: 1401px) {
  #main {
    padding: 100px 20%;
    width: 60%;
  }
}

@media (max-width: 1400px) {
  #main {
    padding: 100px 10%;
    width: 80%;
  }
}

@media (max-width: 700px) {
  #main div {
    width: 98%!important;
    margin-bottom: 20px;
  }
}

#main div {
  width: 48%;
  margin-right: 2%;
  float: left;
}

#main h2 {
  font-size: 3em;
  color: black;
}

@media (max-width: 400px)
{
  #main h2 {font-size: 2em}
}

.text {
  color: black;
  font-family: 'Roboto Slab', serif;
  font-weight: lighter;
}

/* Блок с преимуществами */

#overview {
  float: left;
  background-image: url(../img/fst.jpg);

  background-blend-mode: multiply;
  background-color: #403f40;
  background-size: cover;
  background-attachment: fixed;

  padding: 100px 0;
  width: 100vw;
  text-align: center;
  color: #fff;
}

#overview .overviewTopContainer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#overview .overviewTopContainer .overviewContainer {
  height: 20%;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

#overview .img {
  float: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  width: 35%;
  margin-right: 5%;
  margin-left: 10%;
  max-width: 500px;
}

@media (max-width: 700px) {
  .overviewContainer {
    flex-direction: column !important;
  }
  #overview .img {
    width: 70%;
  }
}

#overview h2 {font-size: 4em}

@media (min-width: 561px) {
  #overview h2 {font-size: 4em}
}

@media (max-width: 560px) {
  #overview h2 {font-size: 2em}
}

.image {
  width: 80%;
  border: 2px solid silver;
}

#overview span {
  float: left;
  width: 100%;
  font-size: 2em;
  color: white;
  opacity: 1;
  margin-top: 100px;
}

@media (max-width: 900px) {
  #overview span{
    font-size: 1.5em;
  }
}

#contact {
    width: 100%;
    margin-bottom: 40px;
    margin-top: 70px;
    /*border-top: 4px solid #ccc;*/
    background: #f4f4f4;
}

.flex-container {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
}

@media (max-width: 500px) {
  .flex-container {
    flex-direction: column;
  }
}

.flex-item {
  margin-left: 10%;
  margin-right: 10%;
  margin-bottom: 50px;
  margin-top: 50px;
}

.network-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.networks
{
  width: 50px;
  height: 50px;
  background-color: white;
  margin-right: 10px;
  margin-left: 10px;
  border-radius: 5px;
}
.facebook
{
  background-image: url("../img/facebook.png");
  background-size: cover;
}

.inst
{
  background-image: url("../img/inst.jpg");
  background-size: cover;
}

#callback {
  width: 100%;
  float: left;
  padding-bottom: 40px;
  padding-top: 70px;
  background: #f4f4f4;
}

#callback h5 {font-size: 3em; color: #4f4f4f}

@media (max-width: 400px)
{
  #callback h5 {font-size: 2em}
}

.flex-item h6 {
    color: #7d7d7d;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 20px;
    margin-top: 10px;
}

.flex-item p,a {
    font-family: Arimo, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #4a4a4a;
    font-size: 0.95em;
    margin-bottom: 20px;
}

#form_input {
  margin-top: 15px;
  font-size: 1.1em;
}

@media (min-width: 1051px) {
  #form_input {
    width: 35%;
    margin-left: 38%;
  }
}

@media (max-width: 1050px) {
  #form_input {
    width: 90%;
    margin-left: 10%;
  }
}

#form_input label {
  color: #505050;
  cursor: pointer;
  font-size: 1.4em;
  font-family: 'Roboto Slab', serif;
}

@media (max-width: 400px){
  #form_input label { font-size: 1em}
}

#form_input label > span {
  color: #e87e7e;
}

#form_input input,#form_input textarea {
  margin-bottom: 10px;
  width: 70%;
  padding: 10px 2%;
  border-radius: 7px;
  border: 2px solid silver;
  font-size: 0.9em;
  color: #4a4a4a;
}

#form_input input:focus, #form_input textarea:focus {
  border-color: #333;
}

.btn {
  float: left;
  border-radius: 5px;
  padding: 5px 9px;
  font-size: 1.2em;
  background-color: #ec6550;
  text-shadow: #454545 0 0 2px;
  cursor: pointer;
  color: white;
  font-family: 'Roboto Slab', serif;
}

.btn:hover {
  background-color: #c15443;
}