.hero {
  margin-left: auto;
  margin-right: auto;
  margin-top: 60px;
  padding-inline: 20px;
  text-align: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7)), url(../img/hero3.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: var(--section-bg-color);
}
@media screen and (min-width: 768px) {
  .hero {
    width: 100%;
  }
}
@media screen and (min-width: 1280px) {
  .hero {
    width: 100%;
    height: 500px;
  }
}

.hero-content-wrapper {
  width: 100%;
  height: 100%;
  padding: 70px 40px 50px 40px;
  background-color: rgba(0, 0, 0, 0.3);
}
@media screen and (min-width: 1280px) {
  .hero-content-wrapper {
    width: 45%;
    height: 500px;
    padding: 70px 100px 50px 100px;
  }
}

.hero-title {
  font-family: var(--title-font-family);
  font-size: 35px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--second-text-color);
  margin-bottom: 50px;
}
@media screen and (min-width: 768px) {
  .hero-title {
    font-size: 40px;
  }
}

.hero-text {
  font-family: var(--primary-font-family);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 400;
  text-align: center;
  color: var(--second-text-color);
  margin-bottom: 20px;
}
@media screen and (min-width: 768px) {
  .hero-text {
    font-size: 19px;
  }
}
@media screen and (min-width: 1280px) {
  .hero-text {
    font-size: 20px;
  }
}

.hero-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  margin-top: 20px;
}

.benefits {
  background-color: #ffffff;
  padding: 60px 0;
  padding-inline: 20px;
}
@media screen and (min-width: 1280px) {
  .benefits {
    padding: 100px 0;
  }
}

.benefits-list {
  list-style-type: none;
  width: 100%;
  margin: 0 auto;
}
@media screen and (min-width: 768px) {
  .benefits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
  }
}
@media screen and (min-width: 1280px) {
  .benefits-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    margin: 0;
  }
}

.benefits-item a {
  width: 100%;
}

.benefits-item-text {
  font-family: var(--title-font-family);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 400;
  text-align: center;
  color: var(--primary-text-color);
  margin-bottom: 10px;

  -webkit-transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.benefits-icon {
  width: 60px;
  height: 60px;
  fill: #ffffff;

  -webkit-transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.benefits-icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 150px;
  border-radius: 7px;
  -webkit-transition: -webkit-box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
  transition: -webkit-box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
  transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
  transition:
    box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1),
    -webkit-box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 50px;
}
@media screen and (min-width: 768px) {
  .benefits-icon-wrapper {
    width: 354px;
    height: 180px;
    margin-bottom: 20px;
  }
}
@media screen and (min-width: 1280px) {
  .benefits-icon-wrapper {
    width: 232px;
    height: 200px;
    margin-bottom: 0;
  }
}

.bg-img1 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.8)), url(../img/money.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: var(--section-bg-color);
}
.bg-img2 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.8)), url(../img/tax.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: var(--section-bg-color);
}
.bg-img3 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.8)), url(../img/salary.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: var(--section-bg-color);
}
.bg-img4 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.8)), url(../img/business.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: var(--section-bg-color);
}
.bg-img5 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.8)), url(../img/people.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: var(--section-bg-color);
}

.benefits-item:hover .benefits-icon-wrapper,
.benefits-item:focus .benefits-icon-wrapper {
  -webkit-box-shadow:
    1px 4px 6px 0px rgba(0, 0, 0, 0.3),
    0px 4px 4px 0px rgba(0, 0, 0, 0.3),
    0px 1px 1px 0px rgba(0, 0, 0, 0.3);
  box-shadow:
    1px 4px 6px 0px rgba(0, 0, 0, 0.3),
    0px 4px 4px 0px rgba(0, 0, 0, 0.3),
    0px 1px 1px 0px rgba(0, 0, 0, 0.3);
}

.benefits-item:hover .benefits-item-text,
.benefits-item:focus .benefits-item-text {
  color: var(--active-text-color);
}

.benefits-item:hover .benefits-icon,
.benefits-item:focus .benefits-icon {
  fill: var(--active-text-color);
}

.bottom-registration {
  padding: 0 0 110px;
  background-color: #ffffff;
  margin-top: -2px;
  padding-inline: 20px;
}

.bottom-registration-button {
  display: block;
  margin: 0 auto;
  width: 240px;
  padding: 20px 0;
  background-color: var(--active-text-color);
  border: none;
  border-radius: 5px;

  font-family: var(--title-font-family);
  font-size: 15px;
  color: var(--second-text-color);
  text-transform: uppercase;

  box-shadow: 0 4px 6px rgba(225, 225, 225, 0.2);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

@media (hover: hover) {
  .bottom-registration-button:hover {
    transform: scale(1.1);
  }
}

.bottom-registration-button:active {
  transform: scale(0.95);
}

.bottom-registration-button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}
