.hero {
  margin-left: auto;
  margin-right: auto;
  margin-top: 60px;
  padding-inline: 20px;
  height: 600px;
  text-align: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5)), url(../img/hero3.1.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: 700px;
  }
}

.hero-content-wrapper {
  padding: 100px 40px;
  background-color: rgba(0, 0, 0, 0.6);
}

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

.hero-subtitle {
  font-family: var(--primary-font-family);
  font-weight: 400;
  font-size: 20px;
  text-align: center;
  color: var(--second-text-color);
  margin-bottom: 40px;
}
@media screen and (min-width: 768px) {
  .hero-subtitle {
    font-size: 25px;
  }
}
@media screen and (min-width: 1280px) {
  .hero-subtitle {
    font-size: 30px;
  }
}

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

.accent-color {
  color: var(--active-text-color);
}

.services {
  padding: 100px 0;
  padding-inline: 20px;
}

.services-card {
  width: 100%;
  height: 550px;
  padding: 320px 30px 30px;
  margin: 0 auto;
  background-image: url(../img/card5.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #ffffff;

  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);
}
@media screen and (min-width: 768px) {
  .services-card {
    width: 600px;
    height: 580px;
    padding: 340px 30px 30px;
  }
}
@media screen and (min-width: 1280px) {
  .services-card {
    width: 900px;
    padding: 330px 30px 30px;
  }
}

.services-card:hover,
.services-card:focus {
  -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);
}

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

.services-card-list {
  padding: 0 40px;
  list-style-type: circle;
}
@media screen and (min-width: 1280px) {
  .services-card-list {
    padding: 0 130px;
  }
}

.services-list-item {
  font-family: var(--subtitle-font-family);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 400;
  color: var(--primary-text-color);
  margin-bottom: 10px;
}
@media screen and (min-width: 768px) {
  .services-list-item {
    font-size: 23px;
  }
}

.services-card-img {
  margin: 0 auto;
  margin-top: 30px;
  width: 35px;
}

.bottom-registration {
  padding: 100px 0;
  background-color: #ffffff;
  padding-inline: 20px;
}

.bottom-registration-button {
  display: block;
  margin: 0 auto;
  width: 320px;
  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;
}
