*,
*:before,
*:after {
    box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: jost, sans-serif;
  line-height: 1.5;
  color: #111; 
  background-image: linear-gradient(180deg,rgba(256,256,256,0.7),rgba(256,256,256,0.7)),url('../images/background1.jpg');  
}

main {
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  width: 100%;    
}

header, .main-menu {
  background-color:  white; 
  color: #0064A1; 
}

header {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  box-shadow: 0 0 5px #111;
}

.header-contacts-mob {
  position: fixed;
  width: 100%;
  display: none;
  /*display: flex;*/
  flex-direction: row;
  font-size: small;
  justify-content: space-between;
  background-color: #555;
  color: #fff;
  margin: 0;
  padding: 0.5em 0.5em;

}

.header-top {
  position: relative;
  margin-top: 0;   
  /*width: 100%;*/
  flex-basis: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content:space-between;
  align-items: center;
  box-shadow: 0 0 5px #111;
  background-color: #fff;
}

.logo h1 {
  margin: 0;
  padding: 0.25em;
  font-family: Tahoma, sans-serif;
  font-size: 1.5em;
  transform: scaleX(1.2);
  transform-origin: left;
  letter-spacing: 0.05em;
  text-decoration: none;
  /*text-decoration: underline;*/
}

.logo a {
  text-decoration: none;
  color: #0064A1;
}

.logo a:hover {
  text-decoration: none;
  color: #0064A1; 
}

.category-product {
  display: flex;
  flex-direction: column;
  margin-bottom: 1em;
}

.category-product-info-name h2 {
  text-align: center;
  margin-top: 1em;
}

.category-product-info-docs {
  padding: 0;
  margin: 0 1em;
}

.category-product-info-docs ul {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  align-content: space-between;
  list-style-type: none;
  margin: 0;
  padding: 0;
 
}

.category-product-info-docs ul li {
  margin: 0.5em 0.5em; 
  width: 100%;
  text-align: center;
  font-size: large;
}

.category-product-info-docs a {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  border: none;
  background-color: #729FCF;
  border-radius: 10px;
  padding: 0.5em 0.5em;  
  box-shadow: 0 0 3px 0 #111;
  width: 100%; 
}

.category-product-info-docs a:hover {
  text-decoration: none;
  background-color: #3364A3;
  transition: 0.2s;
  transition-timing-function: ease-in;  
}


.category-product-img {
  text-align: center;
}

.category-product-info-text {
 padding: 1em;
}


.category-product-img img {
  width:80%;
  display: inline-block;
}

/*кнопка купить*/
.order-button {
  text-align:  center;
  margin-top: 1em;
}

.order-button a {
  display: inline-block;
  text-align:  center;
  border: 3px solid #719ECE;
  text-decoration: none;
  padding: 0.5em;
  margin: 0.5em 1em;
  border-radius: 10px;
  color: #111;
  text-transform: uppercase;
  font-weight: 500;
  box-shadow: 0 0  5px #999;
}

.order-button a:hover {
  text-align:  center;
  transition: 0.1s;
  transition-timing-function: ease-in;
  text-decoration: none; 
  background-color: #719ECE; 
}

/*кнопка связаться*/
.contact-button {
  text-align:  center;
  margin-top: 1em;
}

.contact-button a {
  display: inline-block;
  text-align:  center;
  border: 3px solid #719ECE;
  text-decoration: none;
  padding: 0.5em;
  margin: 0.5em 1em;
  border-radius: 10px;
  color: #111;
  text-transform: uppercase;
  font-weight: 500;
  box-shadow: 0 0  5px #999;
}

.contact-button a:hover {
  text-align:  center;
  transition: 0.1s;
  transition-timing-function: ease-in;
  text-decoration: none; 
  background-color: #719ECE; 
}

/*О компании и тд*/
.main-about-company, .main-company-advantages  {
  margin-top: 1em;

  background-color:#eee;
  padding: 0.5em;
  outline: 1px solid #fff;
}

/*Открытие главного меню (кнопка)*/
.menu-open-style {
    margin-right: 0.25em; 
    text-align: right;
    font-size: xx-large;
    background-color: #fff;
    color: #0064A1;
    padding: 0em;
}

.menu-open-style:hover {
  cursor: pointer;
}

input#menu-open {
  display: none;
}

input#menu-open:checked ~ .main-menu > ul {
  display: flex;
  transform: scaleY(1);
  transition: 1s;
}

input#menu-open:checked ~ .main-menu {  
  transform: scaleY(1);
  transform-origin: top;
  transition: 0.1s;
  transition-timing-function: ease-in-out;
}

input#menu-open:checked ~ label {
  transform-origin: center;
  transform: rotateZ(90deg); 
  transition: 0.5s;
}

input#menu-open:not(:checked) ~ label {
  transform-origin: center;  
  transition: 0.25s;
}

/*Главное меню*/

.main-menu {
  position: relative;
  flex-basis: 100%;
  background-color: #fff;
  color: #0064A1;
  padding: 0;
  margin: 0;
  text-align: right;
  transform: scaleY(0);
  transform-origin: top;
}


.main-menu ul {
  width: 100%;  
  display: none;
  flex-direction: column;
  justify-content: space-around;
  margin: 0;
  padding: 0;
  text-align: center;   
}

.main-menu > ul > li {
  display: inline-block;
  margin: 0;
  font-size: large;  
}

.main-menu a {
  display: inline-block;
  padding: 0.25em 0.25em;
  color: #0064A1;
  text-decoration: none;
  text-transform: capitalize;
}

.main-menu a:hover {
  background-color: white;
  color:  #007CBD;
  opacity: 0.8;
  text-decoration: none; 
  transition:0.2s; 
}

/*футер*/
footer {
  padding-top: 0.5em;
  margin-top: 1em;
  background-color: #719ECE;
  color: #fff; 
  font-size: large; 
}

.footer-main-info {
  margin-right:   auto;
  margin-left:  auto;
}

.footer-menu {
  display: block;
  padding-top: 1em;  
}

.footer-contacts {
  text-align: center;
}

.footer-contacts a {
  color: #fff;
}

.copy {
  background-color: #555;
  width:  100%;
  margin-left:  auto;
  margin-right:   auto;
  text-align: center;
}

.copy-text {
  padding:  0.5em 0; 
}

/*о компании*/
.company {
  width: 100%;
  border: none;
  margin-bottom: 1em;
}

.main-about-company h3 {
  text-align: center;
}

.main-company-advantages h3 {
  text-align: center;  
}

.main-about-company {
  display: block;
  width: 100%;
}

.main-company-advantages {
  display: block;
  width: 100%;
}

.feedback {
  width: 100%;
  text-align: center;
}

.feedback_form {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap; 
  justify-content: space-around; 
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.feedback_form_input, .feedback_form_text, .feedback_form_submit  {
  margin: 1em;
  font-size: medium;
  padding: 0.5em 0.5em;
  font-family: jost, sans-serif;
  
}

.feedback_form_submit {
  background: none; 
  border: 3px solid #719ECE;
  padding: 0.5em;
  margin: 0.5em 1em;
  border-radius: 10px;
  color: #111;
  text-transform: uppercase;
  font-weight: 500;
  box-shadow: 0 0 10px #999;
}

.feedback_form_submit:hover {
  cursor: pointer;
}

.feedback_form_input:hover {
  cursor: pointer;
}

.feedback_form_text:hover {
  cursor: pointer;
}

.feedback_form_submit:active {
  outline: none;
  background-color: #719ECE;
  box-shadow: none;
  transition: 0.2s;
}

@media screen and (min-width: 768px)
{
  main { 
    width: 750px; 
    margin-top: 0;

  }    
  header {
    justify-content: center;
    /*position: fixed;*/
    width: 100%;
    top: 0;
  }

  .header-top {
    position: relative;
    flex-basis: 750px;
    margin-top: 0;
    box-shadow: none;
  }  

  .logo h1 {
    font-size: 2em;
    text-decoration: underline;
  }

  .header-contacts {
    display: block;
    text-align: right;
  }

  .header-contacts-mob {
    display: none;
  }
  
  .category-product-img img {
    float:  left;
    width: 30%;
    margin-right: 2em;
  }

  .category-product-info-docs ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-content: space-between;
    list-style-type: none;
    margin: 0;
    padding: 0;
  }

  .category-product-info-docs ul li {
    margin: 0.5em 0.5em; 
    width: auto;
    text-align: center;
    font-size: large;
  }

  .company { 
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }

  .main-about-company, .main-company-advantages {
    flex-basis: 49.5%;
  }
  
  .order-button {
    text-align:  right;
  }

  .feedback_form {
    width: 70%;
    font-size: large;
  }

  .feedback_form_submit {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (min-width: 992px) {

  main { 
    width: 970px; 
  }

  .header-top {
   width: 970px;
   flex-basis: 970px;      
  }

  .logo h1 {
    font-size: 2.5em;
  }
  .feedback_form {
    width: 50%;      
  }
}

@media screen and (min-width: 1200px) {
  main { 
    width: 1170px;
  }

  .header-top {
    flex-basis: 1170px;  
    justify-content: space-between;   
  } 

  .feedback_form {
      width: 50%;      
    }

  .feedback_form_submit {
    width: 40%;
  }
}

@media print {
  
  body {
    font-size: 14px;
    background: none;
  }

  main { 
    width: 750px;

  }

  .header-contacts-mob {
    display: flex;
    color: #000;
    background: none; 
  }

  header {
    background: none;
    box-shadow: none; 
  }


  .feedback, .order-button, .contact-button, .header-top, .main-menu {
    display: none;
  }

  .header-top {
    flex-basis: 750px;
  }  

  .logo h1 {
    font-size: 2em;
  }

  .category-product-img img {
    float:  left;
    width: 10%;
    margin-right: 2em;
  }

  .category-product-info-docs ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: space-between;
    list-style-type: none;
    margin: 0;
    padding: 0;
  }

  .category-product-info-docs ul li {
    margin: 0.5em 0.5em; 
    width: auto;
    text-align: center;
    font-size: large;
  }

  .category-product-info-docs a {
    background: none;
    color: #000;
    border: none;
    text-decoration: underline;
    font-size: medium;
    box-shadow: none;
  }

  .company { 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
  }

  .main-about-company, .main-company-advantages {
    flex-basis: 100%;
    background: none;
  }
}




