
body, html {
  margin: 0;
  padding: 0;

}

body {
  font-size: 14px;
  background: #f9f9f9;
  color: #333;
}

.container {
  width: 1200px;
  margin: 0 auto;
}

.max-one-line {
  overflow: hidden;
  white-space: normal;
  text-overflow: ellipsis;
  word-break: break-all;
  display: -webkit-box !important;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

* {
  box-sizing: border-box;
}

.header {
  padding: 15px;

}
.header .container {
  display: flex;
  flex-flow: row;
}
.header .container .logo {
  flex: 1;
}
.header .container .contacts {
  width: 420px;
  overflow: auto;
}
.header .container .contacts .item {
  float: left;
  width: 50%;
  display: flex;
  flex-flow: row;
  padding: 10px 0;
}
.header .container .contacts .item .icon {
  padding-right: 15px;
}
.header .container .contacts .item .icon img {
  width: 36px;
  height: 36px;
}
.header .container .contacts .item .num {
  flex: 1;
  font-size: 24px;
}
.header .container .menu-toggle {
  z-index: 1;
  display: none;
  margin-top: 6px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #fff;
  justify-content: center;
  flex-flow: column;
}
.header .container .menu-toggle img {
  display: block;
  margin: 0 auto;
  width: 36px;
  height: 36px;
}

.bottom-line {
  height: 8px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, #df2b2b 50%, rgba(255, 255, 255, 0) 100%);
}

.cards {
  width: 1200px;
  margin: 0 auto;
  overflow: auto;
  padding: 7.5px;



}
.cards .card {
  user-select: none;
  width: calc(25% - 15px);
  margin: 7.5px;
  float: left;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.5s, background-color 0.5s;
}
.cards .card .preview {
  position: relative;
  padding-top: 30%;
  overflow: hidden;
  margin: 15px;
}
.cards .card .preview .img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 7px;
  overflow: hidden;
}
.cards .card .preview .img img {
  width: 100%;
  height: 100%;
}
.cards .card .text {
  font-weight: bold;
  background-color: #fff;
  transition: color 0.5s;
  text-align: center;
  padding: 10px;
  border-top: solid 1px #ddd;
  border-bottom: solid 1px #ddd;
}
.cards .card .buttons {
  padding: 15px;
}
.cards .card .buttons .button {
  transition: background-color 0.5s, color 0.5s;
  padding: 10px;
  display: block;
  border-radius: 7px;
  text-align: center;
  text-decoration: none;
  background: #3a3654;
  color: #fff;
}
.cards .card .buttons .button:last-child {
  margin-top: 15px;
  background: #fbdd00;
  color: #333;
}
.cards .card:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  background: #df2b2b;
}
.cards .card:hover .text {
  color: #df2b2b;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}
.cards .card:hover .buttons .button:first-child {
  background-color: #dfe0e0;
  color: #333;
}
.cards .card:hover .buttons .button:last-child {
  background-color: #3a3654;
  color: #fff;
}

.footer {
  background: #fff;
  padding: 15px;
}
.footer .container {
  text-align: center;
  line-height: 2em;
}
.footer .container a {
  color: #333;
}
.footer .container a:hover {
  color: #df2b2b;
}

.modal-contacts {
  transition: opacity 0.3s;
  visibility: hidden;
  opacity: 0;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 3;
  display: flex;
  flex-flow: column;
  height: 100%;
}
.modal-contacts .prefix {
  flex: 1;
  background-color: rgba(0, 0, 0, 0.5);
}
.modal-contacts .title {
  background-color: #fff;
  display: flex;
  flex-flow: row;
  padding: 10px 15px;
}
.modal-contacts .title .text {
  flex: 1;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  flex-flow: column;
  justify-content: center;
}
.modal-contacts .title .end {
  width: 36px;
  height: 36px;
  display: flex;
  flex-flow: column;
  justify-content: center;
  text-align: center;
  background-color: #df2b2b;
  border-radius: 50%;
}
.modal-contacts .title .end img {
  width: 24px;
  height: 24px;
  display: block;
  margin: 0 auto;
}
.modal-contacts .list {
  background-color: #fff;
}
.modal-contacts .list .item {
  display: flex;
  flex-flow: row;
  padding: 15px;
  border-top: solid 1px #ddd;
  text-decoration: none;
  color: #333;
}
.modal-contacts .list .item .icon {
  padding-right: 15px;
}
.modal-contacts .list .item .icon img {
  display: block;
  margin: 0;
  width: 24px;
  height: 24px;
}
.modal-contacts .list .item .num {
  display: flex;
  flex-flow: column;
  justify-content: center;
  font-size: 14px;
  flex: 1;
}
.modal-contacts .list .item .end {
  display: flex;
  flex-flow: column;
  justify-content: center;
}
.modal-contacts .list .item .end img {
  display: block;
  margin: 0;
  height: 16px;
}
.modal-contacts .list .item:active {
  background-color: #f9f9f9;
}
.modal-contacts.show {
  visibility: visible;
  opacity: 1;
}

@media screen and (max-width: 1200px) {
  .container, .cards {
    width: 1000px;
  }
}
@media screen and (max-width: 1000px) {
  body {
    font-size: 12px;
  }
  .header {
    height: 90px;
  }
  .header .container .logo img {
    height: 60px;
  }
  .container, .cards {
    width: 100%;
  }
  .cards .card {
    width: calc(33.33% - 15px);
  }
  .header .container .contacts {
    width: 400px;
    overflow: auto;
    padding-top: 5px;
  }
  .header .container .contacts .item {
    float: left;
    width: 50%;
    display: flex;
    flex-flow: row;
    padding: 0;
  }
  .header .container .contacts .item .icon {
    padding-right: 10px;
  }
  .header .container .contacts .item .icon img {
    width: 24px;
    height: 24px;
  }
  .header .container .contacts .item .num {
    flex: 1;
    font-size: 16px;
  }
}
@media screen and (max-width: 720px) {
  .header .container .menu-toggle {
    display: flex;
  }
  .header .container .contacts {
    display: none;
  }
}
@media screen and (max-width: 640px) {
  .cards .card {
    width: calc(50% - 15px);
  }
}
.cards .card .preview .img{
  display: flex;
  flex-flow: column;
  justify-content: center;
}
.cards .card .preview .img img{
  width: 100%;
  height: auto;
  max-height: 100%;
}
/*# sourceMappingURL=style.css.map */