@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Regular.ttf") format("opentype");
  font-weight: 400;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Bold.ttf") format("opentype");
  font-weight: 700;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Light.ttf") format("opentype");
  font-weight: 300;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Medium.ttf") format("opentype");
  font-weight: 500;
}
*, *::before, *::after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  color: #283943;
  font-family: "Roboto", sans-serif;
  font-size: 100%;
}

h1 {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-size: 36px;
  line-height: 36px;
}

h2 {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-size: 30px;
  line-height: 30px;
}

a {
  color: #1c85e8;
  text-decoration: none;
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-size: 16px;
}
a:hover {
  text-decoration: underline;
}

.wrapper {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px 0;
}

header {
  background: #1D85E8;
}
header .wrapper {
  height: 65px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
header .wrapper .logo_box .logo {
  font-weight: 500;
  font-size: 21px;
  line-height: 21px;
  color: #fff;
}
header .wrapper .logo_box .logo span {
  color: #ff9800;
}
header .wrapper .location {
  font-size: 13px;
  font-weight: 400;
  color: #88c5fd;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  line-height: 49px;
  width: 270px;
  color: #ffffff;
}
header .wrapper .location .custom-select {
  position: relative;
}
header .wrapper .location .custom-select select {
  display: none;
}
header .wrapper .location .custom-select .select-selected {
  background: url(../images/navigation_blue_light.svg) no-repeat left center;
  background-size: 15px 15px;
  background-color: transparent;
  padding-left: 25px;
  cursor: pointer;
}
header .wrapper .location .custom-select .select-items {
  font-size: 14px;
}
header .wrapper nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  width: 440px;
}
header .wrapper nav a {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  display: block;
  height: 65px;
  line-height: 13px;
  padding-top: 25px;
  border-top: 3px solid transparent;
}
header .wrapper nav a:hover {
  color: #88c5fd;
  text-decoration: none;
}
header .wrapper nav a:active {
  border-top-color: #88c5fd;
}
header .wrapper .items {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
header .wrapper .items .comparison {
  width: 25px;
  height: 25px;
  cursor: pointer;
  background: url("../images/comparison_light_blue.svg") no-repeat center center;
  background-size: contain;
}
header .wrapper .items .comparison:hover {
  background-image: url("../images/comparison_white.svg");
}
header .wrapper .items .comparison:active {
  background-image: url("../images/comparison_light_blue.svg");
}
header .wrapper .items .favorite {
  width: 35px;
  height: 30px;
  position: relative;
  margin-left: 32px;
  cursor: pointer;
  font-weight: 400;
  background: url("../images/favorite_blue_light.svg") no-repeat left bottom;
  background-size: 24px 22px;
}
header .wrapper .items .favorite .count {
  width: 21px;
  height: 21px;
  position: absolute;
  top: 0;
  right: 0;
  border-radius: 50%;
  background: #FF9700;
  border: 2px solid #1D85E8;
  color: #fff;
  font-size: 11px;
  line-height: 17px;
  text-align: center;
}
header .wrapper .items .favorite:hover {
  background-image: url("../images/favorite_white.svg");
}
header .wrapper .items .favorite:active {
  background-image: url("../images/favorite_blue_light.svg");
}
header .wrapper .user {
  width: 43px;
  height: 43px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: distribute;
      justify-content: space-around;
  background: url("../images/user.svg") no-repeat center center;
  background-size: 20px 17px;
  background-color: #1974CA;
  border-radius: 50%;
  margin-left: 45px;
  cursor: pointer;
}
header .wrapper .user:hover {
  background-color: #64C5FF;
}
header .wrapper .user:active {
  background-color: #1974CA;
}

.select-items {
  max-height: 370px;
  overflow: auto;
  position: absolute;
  background-color: #fff;
  top: 100%;
  left: 0;
  right: 0;
  -webkit-box-shadow: 0 0 24px rgba(0, 0, 0, 0.22);
          box-shadow: 0 0 24px rgba(0, 0, 0, 0.22);
  z-index: 99;
}
.select-items.select-hide {
  display: none;
}
.select-items div {
  color: #313c44;
  line-height: 37px;
  padding: 0 25px;
  cursor: pointer;
}
.select-items div:hover {
  background-color: #1D85E8;
  color: #fff;
}
.select-items div.same-as-selected {
  background-color: #1D85E8;
  color: #fff;
}

#main_h .wrapper {
  padding-bottom: 32px;
  padding-right: 0;
}
#main_h .wrapper h1 {
  margin-top: 85px;
}
#main_h .wrapper .sub_h {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 500;
  margin-top: 25px;
  color: #859ead;
  line-height: 14px;
}
#main_h .wrapper .select {
  margin-top: 55px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
#main_h .wrapper .select_item {
  width: calc(25% - 15px);
  margin-right: 15px;
}
#main_h .wrapper .select .custom-select {
  position: relative;
}
#main_h .wrapper .select .custom-select select {
  display: none;
}
#main_h .wrapper .select .custom-select .select-selected {
  font-size: 15px;
  border: 1px solid #D6DEE4;
  line-height: 32px;
  cursor: pointer;
  background-color: #fff;
  padding: 0 13px;
}
#main_h .wrapper .select .custom-select .select-selected:after, #main_h .wrapper .select .custom-select .select-selected:before {
  position: absolute;
  content: "";
  right: 12px;
  width: 0;
  height: 0;
}
#main_h .wrapper .select .custom-select .select-selected:after {
  bottom: 7px;
  border: 4px solid transparent;
  border-color: #859ead transparent transparent transparent;
}
#main_h .wrapper .select .custom-select .select-selected:before {
  border: 4px solid transparent;
  border-color: transparent transparent #859ead transparent;
  top: 7px;
}
#main_h .wrapper .select .custom-select .select-selected.select-arrow-active:after {
  border-color: #1D85E8 transparent transparent transparent;
}
#main_h .wrapper .select .custom-select .select-selected.select-arrow-active:before {
  border-color: transparent transparent #1D85E8 transparent;
}
#main_h .wrapper .select .custom-select .select-items {
  top: calc(100% + 15px);
}
#main_h .wrapper .select_btn {
  background-color: #FF9800;
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 34px;
  text-align: center;
  border: none;
  color: #fff;
  cursor: pointer;
}
#main_h .wrapper .select_btn:focus {
  outline: none;
}

#grid {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), #f4f4f4 6px);
  padding: 45px 0 43px;
}
#grid .wrapper {
  padding-right: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
#grid .wrapper .item {
  margin-top: 15px;
  color: inherit;
  -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.23);
          box-shadow: 0 0 5px rgba(0, 0, 0, 0.23);
  width: calc(25% - 15px);
  margin-right: 15px;
}
#grid .wrapper .item .content {
  position: relative;
  width: 100%;
  padding-bottom: 96.43%;
  background-color: #fff;
}
#grid .wrapper .item .content .text {
  position: absolute;
  width: 100%;
  bottom: 0;
  font-weight: 300;
  font-size: 1rem;
  padding: 24px 18px 27px 18px;
  background-color: #fff;
  z-index: 2;
}
#grid .wrapper .item .content .discount {
  position: absolute;
  padding: 0 13px;
  line-height: 30px;
  top: 13px;
  right: 13px;
  font-size: 12px;
  color: #fff;
  background-color: #FF1744;
  border-radius: 3px;
  z-index: 2;
}
#grid .wrapper .item:hover .content::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.49);
}
#grid .wrapper .item:nth-child(4n+1) .content {
  background: url(../images/row_item1.png) no-repeat center top;
  background-size: contain;
}
#grid .wrapper .item:nth-child(4n+2) .content {
  background: url(../images/row_item2.png) no-repeat center top;
  background-size: contain;
}
#grid .wrapper .item:nth-child(4n+3) .content {
  background: url(../images/row_item3.png) no-repeat center top;
  background-size: contain;
}
#grid .wrapper .item:nth-child(4n) .content {
  background: url(../images/row_item4.png) no-repeat center top;
  background-size: contain;
}
#grid .wrapper .more_btn {
  width: 100%;
  line-height: 47px;
  margin-top: 44px;
  background-color: transparent;
  border: 1px solid #D6DEE4;
  cursor: pointer;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  color: #8b9dab;
}
#grid .wrapper .more_btn span {
  color: #1c85e8;
}
#grid .wrapper .more_btn:hover {
  color: #1c85e8;
  border-color: #1c85e8;
}
#grid .wrapper .more_btn:focus {
  outline: none;
}
#grid .wrapper .more_btn:active {
  background-color: #1c85e8;
  color: #fff;
}
#grid .wrapper .more_btn:active span {
  color: #fff;
}

footer {
  padding: 36px 0;
}
footer .wrapper {
  font-weight: 400;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  color: #859ead;
  font-size: 14px;
}
footer .wrapper .info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  width: 100%;
}
footer .wrapper .info .links {
  max-width: 515px;
  width: 515px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
footer .wrapper .info .links a {
  font-weight: inherit;
  color: inherit;
  font-size: inherit;
}
footer .wrapper .up {
  min-width: 43px;
  min-height: 43px;
  max-width: 43px;
  max-height: 43px;
  border-radius: 50%;
  background: url(../images/arrow_up_grey.svg) no-repeat center center;
  background-size: 12px 14px;
  background-color: #F4F4F4;
  margin-left: 135px;
}
footer .wrapper .up:hover {
  background-color: #1D85E8;
  background-image: url(../images/arrow_up_white.svg);
}

@media (max-width: 999px) {
  header .wrapper {
    position: relative;
  }
  header .wrapper .logo_box {
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
  header .wrapper .logo_box .menu_burger {
    margin-right: 30px;
    width: 28px;
    height: 100%;
    background: url(../images/burger.svg) no-repeat center center;
    background-size: contain;
    cursor: pointer;
  }
  header .wrapper nav {
    display: none;
  }
  header .wrapper nav.show {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    z-index: 1;
    background-color: #1D85E8;
  }
  header .wrapper nav.show a {
    line-height: 65px;
    height: auto;
    padding: 0 15px;
    border-bottom: 3px solid #88c5fd;
  }
  header .wrapper nav.show a:nth-child(1) {
    border-top: 3px solid #88c5fd;
  }

  #grid .wrapper .item {
    width: calc(33.333% - 15px);
  }
  #grid .wrapper .item:nth-child(12) ~ .item {
    display: none;
  }

  footer .wrapper .info {
    -webkit-box-orient: vertical;
    -webkit-box-direction: reverse;
        -ms-flex-direction: column-reverse;
            flex-direction: column-reverse;
  }
  footer .wrapper .info .copyright {
    margin-top: 25px;
  }
}
@media (max-width: 767px) {
  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 26px;
  }

  header .wrapper .location {
    display: none;
    line-height: 65px;
    width: 200px;
  }
  header .wrapper .location.show {
    border-top: 3px solid #88c5fd;
    position: absolute;
    display: block;
    top: 100%;
    left: 0;
    z-index: 3;
    background-color: #1D85E8;
  }
  header .wrapper .location.show .select-items {
    width: 200px;
    top: 100%;
    left: 0;
  }
  header .wrapper nav.show {
    top: calc(100% + 68px);
  }

  #main_h .wrapper .select {
    width: 100%;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    margin-top: 30px;
  }
  #main_h .wrapper .select_item {
    width: calc(100% - 15px);
    margin-top: 15px;
  }

  #grid .wrapper .item {
    max-height: none;
    width: calc(100% - 15px);
  }
  #grid .wrapper .item:nth-child(n) .content {
    background-size: cover;
  }

  footer .wrapper .info .links {
    display: none;
  }
  footer .wrapper .info .copyright {
    margin-top: 0;
  }
}
