.work {
  padding-top: 80px;
  padding-bottom: 100px;
}

.wort__title {
  font-weight: 800;
  font-size: 36px;
  line-height: 46px;
  color: #010000;
  margin-bottom: 40px;
}

.work__items {
  display: flex;
  flex-wrap: wrap;
  transition: 0.3s;
}

.work__item {
  width: 226px;
  height: 325px;
  cursor: pointer;
  padding-left: 20px;
  padding-top: 20px;
}

.work__item--key {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid #10223d;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  position: relative;
  background-color: transparent;
}

.work__item--key::after {
  content: '';
  position: absolute;
  width: 290%;
  border-top: 1px solid #10223d;
  top: 50%;
  left: 100%;
  height: 2px;
}

.work__item--step {
  background-color: #10223d;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  line-height: 40px;
  text-align: center;
  font-weight: 800;
  font-size: 16px;
  color: #ffffff;
}

.work__item--icon {
  margin-bottom: 10px;
  filter: invert(0);
}

.work__item--title {
  font-weight: 700;
font-size: 20px;
line-height: 120%;
color: #302928;
  margin-bottom: 5px;
}

.work__item--text {
  font-weight: 400;
font-size: 16px;
line-height: 140%;
color: #302928;
  width: 186px;
}
.work__item .work__item--text a {
  font-weight: 600;
} 
.header__phone.work__item--text {
  font-weight: 700;
}

.work__item:hover {
  background-color: #10223d;
  background-repeat: no-repeat;
  background-position: 32px 162px;
}

.work__item:hover .work__item--key {
  border: 1px solid #ffffff;
  background-color: #10223d;
  position: relative;
  z-index: 10;
}
.work__item:hover .work__item--step {
  background-color: #ffffff;
  color: #10223d;
  box-shadow: 0 0 0 8px #10223d;
  z-index: 2;
}

.work__item:hover .work__item--title {
  color: #ffffff;
}

.work__item:hover .work__item--text {
  display: block;
  color: white;
}
.work__item:hover .work__item--text a {
  color: white;
  font-weight: 600;
}
.work__item:hover .work__item--icon {
  filter: invert(1);
}

.work__item:hover .work__item--key::before {
  border-top: 1px solid #ffffff;
  width: 392%;
  z-index: 1;
  content: '';
  position: absolute;
  top: 50%;
  left: -37%;
  height: 2px;
}

.work__item:nth-of-type(1) .work__item--key::before {
  width: 254%;
  left: 100%;
}

.work__item:last-of-type .work__item--key::after {
  display: none;
}

.work__item:last-of-type:hover .work__item--key::before {
  width: 37%;
}

@media (max-width: 1200px) {
  .work__item--key::after {
    display: none;
  }

  .work__item:hover .work__item--key::before {
    display: none;
  }

  .work__items {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .work__item {
    background-color: #10223d;
    background-repeat: no-repeat;
    background-position: 32px 162px;
  }

  .work__item--text {
    display: block;
  }

  .work__item--key {
    border: 2px solid #ffffff;
    background-color: #10223d;
  }

  .work__item--step {
    background-color: #ffffff;
    color: #10223d;
  }

  .work__item--title {
    color: #ffffff;
  }
  
  .work__item--icon {
    filter: invert(1);
  }

  .work__items {
    justify-content: space-evenly;
  }
  .work__item--text {
    color: white;
  }
  .work__item--text a {
    color: white;
  }
  .work {
    padding-top: 40px;
    padding-bottom: 40px;      
  }
  .wort__title {
    text-align: center;
  }
  .work .container {
    padding: 0px;
  }
}
@media (max-width: 500px) {
  .work__item {
    max-width: 425px;
    width: 100%;
    background-position: 180px 162px;
    padding: 10px;
    height: auto;
  }
  .work .top {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .work .work__item--icon {
    display: none;
  }
  .work__item--text {
    font-size: 14px;
    width: unset;
  }
  .work__item--key {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
  }
  .work {
    padding-top: 40px;
    padding-bottom: 50px;
  }

  .wort__title {
    font-size: 24px;
    line-height: 38px;
    margin-bottom: 30px;
  }
}

