.brick::before,
.brick::after {
  box-sizing: border-box;
}
.brick-holder {
  display: flex;
  /*background: #ccc;*/
}
.brick-holder:first-child .brick {
  margin-top: 4px;
}
.brick-holder:last-child .brick {
  margin-bottom: 4px;
}
.brick-holder:nth-child(even) .brick:first-child {
  display: none;
}
.brick-holder:nth-child(even) .brick:last-child {
  margin-right: 2px;
}
.brick-holder:nth-child(even)::before,
.brick-holder:nth-child(even)::after {
  position: relative;
  content: "";
  background: #FAE9BD;
  width: calc(15%/2);
  height: 3.5vw;
  border-radius: 15px;
  margin: 2px;
  margin-top:6px;
}
.brick-holder:nth-child(even)::before {
  margin-left: 4px;
}
.brick-holder:nth-child(even)::after {
  margin-right: 4px;
}
.brick {
  background: #FAE9BD;
  width: 11%;
  height: 3.5vw;
  border-radius: 15px;
  margin: 6px;
  position: relative;
}
.brick:last-child {
  margin-right: 4px;
}
.brick:first-child {
  margin-left: 4px;
}
.brick-with-link{
	text-align: center;
	background-color: #F0B114;
	color: #00558C;
  font-size: 20px;
  line-height: 20px;
  padding: 10px 0;
  cursor: pointer;

}

.brick-with-link a{
	color:#00558C!important;
  position: absolute;
  top: 50%;
  left: 0;
  right:0;
  transform: translateY(-50%);
}

.active-brick{
  background-color: #00558C;
}

.active-brick a{
  color: #fff!important;
}

.brick-with-link:hover{
	background-color: #00558C!important;
}

.brick-with-link:hover a{
	color: #fff!important;
}

.tablet{
	display: none;
}

.mobile{
	display: none;
}

.phone{
	display: none;
}


@media only screen and (max-width: 1500px) {
  .brick{
  	height:4.5vw;
  	width: 15%;
  }

  .brick-holder:nth-child(even)::before,
  .brick-holder:nth-child(even)::after {
  	height:4.5vw;
  	width: 15%;
  }
}

@media only screen and (max-width: 1200px) {
  .brick{
  	height:5.5vw;
  	width: 100%;
  }

  .brick-holder:nth-child(even)::before,
  .brick-holder:nth-child(even)::after {
  	height:5.5vw;
  	width: 100%;
  }
}

@media only screen and (max-width: 993px) {
  .brick-with-link a{
  	font-size: 14px;
  }
  .desktop{
  	display: none;
  }
  .tablet{
  	display: block;
  }
  .brick-with-link {
    line-height: 14px!important;
  }
}

@media only screen and (max-width: 767px) {
  .brick{
  	height:6.5vw;
  	width: 100%;
  }

  .brick-holder:nth-child(even)::before,
  .brick-holder:nth-child(even)::after {
  	height:6.5vw;
  	width: 100%;
  }
  .brick-with-link a{
  	font-size: 15px;
  }
  .brick-with-link {
    line-height: 12px!important;
  }
  .desktop{
  	display: none;
  }
  .tablet{
  	display: none;
  }
  .mobile{
  	display: block;
  }
}

@media only screen and (max-width: 678px) {
  .brick{
  	height:9.5vw;
  	width: 100%;
  }

  .brick-holder:nth-child(even)::before,
  .brick-holder:nth-child(even)::after {
  	height:9.5vw;
  	width: 100%;
  }
  .brick-with-link a{
  	font-size: 15px;
  }
}

@media only screen and (max-width: 550px) {
  .brick-with-link a{
  	font-size: 11px;
  }
}

@media only screen and (max-width: 480px) {
  .mobile{
  	display: none;
  }
  .phone{
  	display: block;
  }
  .brick-holder:nth-child(even) .brick:first-child{
    display: block;
  }
  .brick{
    min-width: 105px;
    max-width: 105px;
  }
  .brick-holder:nth-child(even)::before,
  .brick-holder:nth-child(even)::after {
    min-width: 70px;
  }
}

@media only screen and (max-width: 415px) {
  .brick {
    min-width: 95px;
    max-width: 130px;
  }
}

@media only screen and (max-width: 400px) {
  .brick{
  	height:12.5vw;
  	width: 100%;
  }
  .brick-with-link{
  	line-height: 10px;
  }

  .brick-holder:nth-child(even)::before,
  .brick-holder:nth-child(even)::after {
  	height:12.5vw;
  	width: 100%;
  }
  .brick{
    min-width: 70px;
    max-width: 110px;
  }
}

@media only screen and (max-width: 320px) {
  .brick{
  	height:14.5vw;
  	width: 100%;
    min-width: 85px;
    max-width: 96px;
  }
  .brick-holder:nth-child(even)::before,
  .brick-holder:nth-child(even)::after {
  	height:14.5vw;
  	width: 100%;
    min-width: 22px;
  }
}
