.classIcon {
  float: left;
  margin: 10px 10px 10px 10px;
  width: 200px;
  height: 225px;
  text-align: center;
  font-size: 0.9em;
  position: relative;
}

.classIcon:hover {
  background: #ffe;
}

.classIcon img {
  float: top;
  width: 100%;
  text-align: center;
}

.classIcon a {
  color: #006;
  text-decoration: underline;
}

.classIconLabel {
  display: table-cell;
  vertical-align: middle;
  width: 85%px;
  color: #006;
  align-content: center;
  text-decoration: underline;
}

#viewIcons {
  font-size: 100% !important;
}

#viewIcons .classPrice {
  position: absolute;
  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  font-weight: normal;
  padding: 0 5px 0 5px;
  right: 2px;
  top: -15px;
  background-color: green;
  color: white;
  font-size: 90%;
  text-align: center;
}

.ruble { 
  background: url("../Images/ruble.png") no-repeat transparent;
  display: inline-block;
  font-size: 100%;
  height: 1.1em;
  vertical-align: bottom;
  width: 1em;
}

#viewIcons .classFree {
  position: absolute;
  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  font-weight: normal;
  padding: 0 5px 0 5px;
  right: 2px;
  top: -15px;
  background-color: red;
  color: white;
  font-size: 90%;
  text-align: center;
}

#viewIcons .classNotActive {
  position: absolute;
  padding: 0 5px 0 5px;
  right: 2px;
  top: -15px;
  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  font-weight: normal;
  background-color: #ccc;
  color: white;
  font-size: 90%;
  text-align: center;
}

#viewIcons .classDate {
  position: absolute;
  left: 2px;
  bottom: 5px;
  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  font-weight: normal;
  padding: 0 5px 0 5px;
  background-color: #00bfff;
  color: white;
  font-size: 80%;
  text-align: center;
}

#viewIcons h5 {
  clear: both;
  padding: 0 0 0.5em 0;
  margin: 0;
  font-size: 120%;
}

/* ===== DESKTOP SCALE ===== */
@media (min-width: 992px) {
  .classIcon {
    width: 300px;
    height: 340px;
    margin: 15px;
    font-size: 1em;
  }

  #viewIcons .classPrice,
  #viewIcons .classFree,
  #viewIcons .classNotActive {
    font-size: 95%;
    padding: 2px 8px;
    top: -18px;
  }

  #viewIcons .classDate {
    font-size: 85%;
    padding: 2px 8px;
  }

  #viewIcons h5 {
    font-size: 140%;
  }
}

/* ===== MOBILE (как было) ===== */
@media only screen and (max-width: 767px)
{
  .classIcon {
    float: left;
    padding: 0;
    margin: 0;
    width: 100%;
    height: auto;
    background: #fff;
    text-align: left;
    font-size: 100% !important;
    box-shadow: none;
    border: 1px #eee solid;
    position: relative;
  }
  
  .classIcon img {
    float: left;
    margin: 2%;
    text-align: left;
    clear: both;
    height: auto;
    width: 100%;
  }
  
  .classIconLabel {
    clear: both;
    float: left;
    vertical-align: middle;
    color: #006;
    align-content: center;
    text-decoration: underline;
    font-size: 130%;
  }

  .classIconLabel a {
    display: inline;
  }
  
  #viewIcons .classPrice, #viewIcons .classFree {
    right: 5%;
    top: 2%;
  }
  
  #viewIcons .classDate {
    left: auto;
    right: 5%;
    top: 45%;
    bottom: auto;
  }
  
  #viewIcons h5 {
    padding: 0.5em 0 0.5em 0;
    margin: 0.5em 0 0.5em 0;
    font-size: 150%;
    text-align: center;
    background: #ddf;
  }
}
