body{
    margin:0;
}



.gallery img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {...} 

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {...} 

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {...} 

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
  :root {
    --wrapper-width: 1200px;
    --grid-columns: 4;
    --grid-gap: 10px;
    --grid-columns-width: calc((var(--wrapper-width) / var(--grid-columns)) - var(--grid-gap));
  }

  .wrapper {
    width: var(--wrapper-width);
    margin: 0 auto;
  }

  .gallery {
    display: grid;
    grid-gap: var(--grid-gap);
    grid-template-columns: repeat(auto-fit, minmax(var(--grid-columns-width), 1fr));
    width: 100%;
  }

  .gallery .photo {
    background-color: #eee;
    display: grid;
    height: 100%;
    min-height: calc(var(--grid-columns-width) / 1.5);
    width: 100%;
  }

  .gallery img {
    height: 100%;
    object-fit: cover;
    width: 100%;
  }

  .gallery .photo.big {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery .photo.fat {
    grid-column: span 2;
  }

  .gallery .photo.tall {
    grid-row: span 2;
  }
} 

@media only screen and (min-width: 1200px) {
  :root {
    --wrapper-width: 1400px;
    --grid-columns: 4;
    --grid-gap: 10px;
    --grid-columns-width: calc((var(--wrapper-width) / var(--grid-columns)) - var(--grid-gap));
  }
}

/*--------------------*/

.footer { /* Подвал */
  padding:3%;
color: #6479a2; /* Цвет  текста*/
  height:auto;
  width:100%;
  margin-top: auto;
  
}


.footer-distributed{
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.12);
box-sizing: border-box;
width: 100%;
text-align: left;
font: bold 16px "Open sans",sans-serif;;
padding: 55px 50px;
margin-top:100px
}

.footer-distributed .footer-left,
.footer-distributed .footer-center,
.footer-distributed .footer-right{
display: inline-block;
vertical-align: top;
}

/* Footer left */

.footer-distributed .footer-left{
width: 35%;
}
.footer_img{
  width:80%;
}
.footer-distributed .footer-left p{
display: inline-block;
color: #ffffff;
font-weight:400;
vertical-align: middle;
  font-size:20px;
  
margin:0;
}

.footer-distributed .footer-left p span{
display:block;
font-weight: normal;
font-size:14px;
line-height:2;
}

.footer-distributed .footer-left p a{
color:  lightseagreen;
text-decoration: none;
}
.footer-distributed .footer-left i{
background-color:  #33383b;
color: #ffffff;
font-size: 30px;
width: 40px;
height: 40px;
border-radius: 50%;
text-align: center;
line-height: 42px;
margin: 10px 15px;
vertical-align: middle;
}



/* Footer links */

.footer-distributed .footer-links{
color:  #ffffff;
margin: 20px 0 12px;
padding: 0;
}

.footer-distributed .footer-links a{
display:inline-block;
line-height: 1.8;
font-weight:400;
text-decoration: none;
color:  inherit;
}



/* Footer Center */

.footer-distributed .footer-center{
width: 35%;
}

.footer-distributed .footer-center i{
background-color:  #33383b;
color: #ffffff;
font-size: 30px;
width: 40px;
height: 40px;
border-radius: 50%;
text-align: center;
line-height: 42px;
margin: 10px 15px;
vertical-align: middle;
}

.footer-distributed .footer-center i.fa-envelope{
font-size: 17px;
line-height: 38px;
}

.footer-distributed .footer-center p{
display: inline-block;
color: #ffffff;
font-weight:400;
vertical-align: middle;
  font-size:20px;
  
margin:0;
}

.footer-distributed .footer-center p span{
display:block;
font-weight: normal;
font-size:14px;
line-height:2;
}

.footer-distributed .footer-center p a{
color:  lightseagreen;
text-decoration: none;;
}

.footer-distributed .footer-links a:before {
content: "|";
font-weight:300;
font-size: 20px;
left: 0;
color: #fff;
display: inline-block;
padding-right: 5px;
}

.footer-distributed .footer-links .link-1:before {
content: none;
}

/* Footer Right */

.footer-distributed .footer-right{
width: 35%%;
}


.footer-distributed .footer-company-about span{
display: block;
color:  #ffffff;
font-size: 20px;
font-weight: bold;
margin-bottom: 20px;
}

.footer-distributed .footer-icons{
padding:15px;
}

.footer-distributed .footer-icons a{
display: inline-block;
width: 35px;
height: 35px;
cursor: pointer;
background-color:  #33383b;
border-radius: 2px;

font-size: 20px;
color: #ffffff;
text-align: center;
line-height: 35px;

margin-right: 3px;
margin-bottom: 5px;
}



.footer-distributed .footer-right p{
display: inline-block;
color: #ffffff;
font-weight:400;
vertical-align: middle;
  font-size:20px;
  
margin:0;
}


.footer-distributed .footer-right p a{
color:  lightseagreen;
text-decoration: none;
}



.footer-distributed .footer-right i.fa-envelope{
    background-color:  #33383b;
color: #ffffff;
font-size: 25px;
width: 40px;
height: 40px;
border-radius: 50%;
text-align: center;
line-height: 42px;
margin: 10px 15px;
vertical-align: middle;
}

.footer-distributed .footer-right p{
display: inline-block;
color: #ffffff;
font-weight:400;
vertical-align: middle;
  font-size:20px;
  
margin:0;
}
/* If you don't want the footer to be responsive, remove these media queries */

@media (max-width: 880px) {

.footer-distributed{
  font: bold 14px sans-serif;
}

.footer-distributed .footer-left,
.footer-distributed .footer-center,
.footer-distributed .footer-right{
  display: block;
  width: 100%;
  margin-bottom: 40px;
  text-align: center;
}

.footer-distributed .footer-center i{
  margin-left: 0;
}

}
.menu {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: #BFFFF3;
    top: 0;
    position: -webkit-sticky;
    position: sticky;
    display: flex;
    justify-content: center;
}

.menu li {
    display: inline-block;
    text-align: center;
    width: 50%;
}

.menu li:hover,
.menu li:focus {
    background-color: #66FFE3;
}

.menu a {
    display: block;
    padding: 10px 0;
    text-decoration: none;
    color:  #28a844;
    font-weight:600;
vertical-align: middle;
  font-size:24px;
  font-family:Arial, Helvetica, sans-serif;
}

.sticky {
    top: 0;
    position: fixed;
}