.hero {
  margin-left: auto;
  margin-right: auto;
  margin-top: 60px;
  padding: 150px 0px;
  padding-inline: 20px;
  height: 400px;
  text-align: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.8)), url(../img/hero4.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: var(--section-bg-color);
}

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

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

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

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

.question {
  border-bottom: 1px solid var(--second-text-color);
  padding-bottom: 25px;
}

.question-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;

  font-family: var(--title-font-family);
  font-size: 20px;
  color: var(--second-text-color);
  padding-top: 33px;
  padding-bottom: 15px;
}
@media screen and (min-width: 768px) {
  .hero-subtitle {
    font-size: 26px;
  }
}
@media screen and (min-width: 1280px) {
  .hero-subtitle {
    font-size: 30px;
  }
}

.question-title > h3 {
  font-weight: 400;
}

.question-toggle {
  padding-top: 20px;
}

.fa-solid {
  width: 20px;
  height: 20px;
  fill: var(--second-text-color);
}

.question-content {
  position: relative;

  max-width: 1100px;
  display: none;
  overflow: hidden;
  background-color: #d4d4d4;
  padding: 30px 50px;
  border-radius: 10px;
  margin-left: auto;
}

.question-title .open,
.question-title.faq-active .close {
  display: block;
}

.question-title.faq-active .open,
.question-title .close {
  display: none;
}

.question-title.faq-active + .question-content {
  display: block;
}

.text {
  max-width: 900px;
  font-family: var(--primary-font-family);
  font-size: 19px;
  line-height: 1.2;
  color: var(--primary-text-color);
  margin-bottom: 10px;
  text-indent: 20px;
}

.accent-weight {
  font-weight: 600;
}

.question-content-icon {
  display: none;
}
@media screen and (min-width: 1280px) {
  .question-content-icon {
    display: block;
    position: absolute;
    bottom: 30px;
    right: 50px;
    width: 60px;
  }
}

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

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

.resources-list {
  list-style-type: none;
}
@media screen and (min-width: 1280px) {
  .resources-list {
    width: 800px;
  }
}

/* Обгортка - з'являється на планшетній та десктопній версіях */

@media screen and (min-width: 768px) {
  .resources-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
  }
}

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

.item-link {
  display: block;
  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;
  text-align: center;

  box-shadow: 0 4px 6px rgba(225, 225, 225, 0.2);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  margin: 0 auto;
  margin-bottom: 40px;
}
@media screen and (min-width: 768px) {
  .item-link {
    margin: 0;
  }
}
@media (hover: hover) {
  .item-link:hover {
    transform: scale(1.1);
  }
}

.item-link:active {
  transform: scale(0.95);
}

.item-link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

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

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

/* Обгортка - з'являється на десктопній версії */

@media screen and (min-width: 1280px) {
  .wrapper {
    display: flex;
    gap: 100px;
    padding: 40px;
    border: 1px solid var(--primary-text-color);
    border-radius: 7px;
  }
}

.magnets-left-side {
  position: relative;
  width: 100%;
  margin: 0 auto;
}
@media screen and (min-width: 1280px) {
  .magnets-left-side {
    margin: 0;
    width: 600px;
  }
}

.magnets-subtitle {
  font-family: var(--title-font-family);
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--primary-text-color);
  margin-bottom: 50px;
  text-transform: uppercase;
  text-align: center;
}
@media screen and (min-width: 768px) {
  .magnets-subtitle {
    font-size: 27px;
  }
}
@media screen and (min-width: 1280px) {
  .magnets-subtitle {
    font-size: 30px;
    text-align: left;
  }
}

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

.magnets-text {
  font-family: var(--primary-font-family);
  font-size: 25px;
  font-weight: 400;
  color: var(--primary-text-color);
  margin-bottom: 50px;
}

.magnets-logo {
  display: none;
}
@media screen and (min-width: 1280px) {
  .magnets-logo {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;

    font-family: 'Zalando Sans Expanded', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.06em;
    color: var(--primary-text-color);
    text-transform: uppercase;
  }
}

/* Форма звоторнього зв'язку */

.magnets-form {
   width: 100%;
  margin: 0 auto;
}
@media screen and (min-width: 768px) {
  .magnets-form {
    width: 100%;
  }
}
@media screen and (min-width: 1280px) {
  .magnets-form {
    width: 500px;
    margin: 0;
  }
}

.magnets-form-title {
  font-family: var(--subtitle-font-family);
  font-weight: 400;
  font-size: 25px;
  color: var(--primary-text-color);
  text-align: center;
  margin-bottom: 60px;
}

.magnets-form-field {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-bottom: 30px;
}

.magnets-form-input {
  outline: none;
  background-color: transparent;
  border: 1px solid var(--second-text-color);
  border-bottom: 1px solid var(--primary-text-color);
  padding: 10px 35px;
  -webkit-transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--primary-text-color);
}

.magnets-form-input:hover,
.magnets-form-input:focus {
  outline: none;
  border-bottom-color: var(--active-text-color);
}

.magnets-form-label {
  position: absolute;
  left: 35px;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  text-align: left;
  -webkit-transition: -webkit-transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  transition: -webkit-transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  transition:
    transform 250ms cubic-bezier(0.4, 0, 0.2, 1),
    -webkit-transform 250ms cubic-bezier(0.4, 0, 0.2, 1);

  font-family: var(--primary-font-family);
  font-size: 17px;
  font-weight: 400;
  color: var(--primary-text-color);
}

.magnets-form-input:not(:-moz-placeholder-shown) + .magnets-form-label {
  color: var(--active-text-color);
  transform: translateY(-40px);
}

.magnets-form-input:not(:-ms-input-placeholder) + .magnets-form-label {
  color: var(--active-text-color);
  transform: translateY(-40px);
}

.magnets-form-input:focus + .magnets-form-label,
.magnets-form-input:not(:placeholder-shown) + .magnets-form-label {
  color: var(--active-text-color);
  -webkit-transform: translateY(-40px);
  transform: translateY(-40px);
}

.magnets-form-button {
  display: block;
  margin: 0 auto;
  margin-top: 50px;
  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;
  text-align: center;

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

@media (hover: hover) {
  .magnets-form-button:hover {
    transform: scale(1.1);
  }
}

.magnets-form-button:active {
  transform: scale(0.95);
}

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

.bottom-magnet {
  background-color: #ffffff;
  margin-top: -3px;
  padding-inline: 20px;
  padding: 0 20px;
  padding-bottom: 150px;
}

.bottom-magnet-title {
  font-family: var(--title-font-family);
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--primary-text-color);
  margin-bottom: 50px;
  text-transform: uppercase;
  text-align: center;
}
@media screen and (min-width: 768px) {
  .bottom-magnet-title {
    font-size: 27px;
  }
}
@media screen and (min-width: 1280px) {
  .bottom-magnet-title {
    font-size: 30px;
  }
}

.bottom-magnet-btn {
  padding: 30px 0;
}
