* {
  box-sizing: border-box;
}

.block-competence .categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.block-competence .category {
  width: 33.33%;
  overflow: hidden;
  padding: 45px 25px;
  position: relative;
  border: 1px solid rgba(0, 0, 51, 0.04);
}

.category:nth-child(4),
.category:nth-child(5) {
  width: 50%;
}
@media (max-width: 1250px) {
  .block-competence .category {
    width: 50%;
  }
}
.block-competence .category a {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 5;
}

.block-competence .category .image {
  margin-bottom: 30px;
}

.block-competence .category .image,
.block-competence .category .image > svg {
  height: 115px;
  width: 115px;
}

.block-competence .category .image > svg path {
  fill: #3562e0;
}

.block-competence .category .image-big {
  opacity: 0;
  position: absolute;
  left: 160px;
  bottom: -60px;
  z-index: 1;
}

.block-competence .category .image-big,
.block-competence .category .image-big > svg {
  height: 350px;
  width: 100%;
}

.block-competence .category .image-big > svg path {
  fill: #313c55;
}

.block-competence .category .title {
  position: relative;
  color: #030b21;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2em;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: 'TTDaysSans';
  margin-bottom: 15px;
  z-index: 2;
}

.block-competence .category .description {
  position: relative;
  color: #030b21;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  z-index: 2;
}

@media (min-width: 1025px) {
  .block-competence .category.first-hover {
    background: #030b21;
    box-shadow: 0 0 20px rgba(0, 0, 51, 0.4);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 51, 0);
  }

  .block-competence .category.first-hover .image-big {
    opacity: 1;
  }

  .block-competence .category.first-hover > .image > svg path {
    fill: #40a2d3;
  }

  .block-competence .category.first-hover > .title,
  .block-competence .category.first-hover > .description {
    color: white;
  }

  .block-competence .category:hover {
    background: #030b21;
    box-shadow: 0 0 20px rgba(0, 0, 51, 0.4);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 51, 0);
  }

  .block-competence .category:hover .image-big {
    opacity: 1;
  }

  .block-competence .category:hover > .image > svg path {
    fill: #40a2d3;
  }

  .block-competence .category:hover > .title,
  .block-competence .category:hover > .description {
    color: white;
  }
}

@media only screen and (max-width: 950px) {
  .block-competence .category .image-big {
    display: none;
  }
  .block-competence .category {
    width: 100%;
    padding: 25px 10px;
    background: #40a2d3;
  }
  .block-competence .category:not(:last-child) {
    margin-bottom: 25px;
  }
  .block-competence .category:nth-child(2) {
    background: #030b21;
  }

  .block-competence .category:nth-child(4) {
    background: #030b21;
  }

  .block-competence .category > .image,
  .block-competence .category > .image > svg {
    margin-left: auto;
  }
  .block-competence .category > .image > svg path {
    fill: #ffffff;
  }
  .block-competence .category .description,
  .block-competence .category .title {
    color: #ffffff;
  }
}

@media only screen and (max-width: 650px) {
  .block-competence .category {
    padding: 10px;
    margin-bottom: 15px;
  }

  .block-competence .category > .image,
  .block-competence .category > .image > svg {
    width: 75px;
    height: 75px;
  }

  .block-competence .category .title,
  .block-competence .category .description {
    font-size: 16px;
  }
}
