*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
}

ol,
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.swiper {
  max-width: 80rem;
  height: 25rem;
  margin-top: 2rem;
}

.swiper-slide {
  max-height: 22.5rem;
}

.swiper__image {
  user-select: none;
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0.5rem;
}

.button {
  cursor: pointer;
  padding: 0.75rem 0.875rem;
  border: 0.125rem solid hsl(217, 90%, 59%);
  background-color: hsl(217, 90%, 59%);
  color: hsl(0, 0%, 100%);
  transition: all 0.35s linear;
  border-radius: 0.5rem;
  text-decoration: none;
  z-index: 1;
}

.button_header {
  margin-left: auto;
}

.button_section {
  padding: 0.5rem;
  margin-left: auto;
  margin-right: auto;
}

.button:hover {
  background-color: hsl(0, 0%, 100%);
  color: hsl(217, 90%, 59%);
}

.container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

.header {
  background-color: hsl(0, 0%, 100%);
  position: sticky;
  z-index: 30;
  top: 0;
  box-shadow: 0 0.375rem 0.75rem hsla(0, 0%, 0%, 0.1);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.header__container {
  display: flex;
  align-items: center;
}

.header__links {
  display: flex;
  gap: 2.25rem;
}

.header__link {
  color: #4b5162;
  text-decoration: none;
}

.header__link:hover,
.header__link_active {
  color: hsl(217, 90%, 59%);
}

.header__image {
  height: 6rem;
  width: 6rem;
  display: block;
  object-fit: cover;
  margin-right: 2.5rem;
  transition: opacity 0.35s linear;
  cursor: pointer;
}

.header__image:hover {
  opacity: 0.6;
}

.header__menu-icon {
  display: none;
  cursor: pointer;
  object-fit: cover;
  width: 2.5rem;
  height: 2.5rem;
  z-index: 60;
}

.hero {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hero__image {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: url("./hero.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 34rem;
  border-radius: 0.5rem;
  color: hsl(0, 0%, 100%);
  text-align: center;
}

.hero__image::before {
  border-radius: 0.5rem;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: hsl(0, 0%, 0%, 0.45);
  z-index: 1;
}

.hero__title {
  font-size: 3.5rem;
  font-weight: bold;
  z-index: 1;
  margin-top: 0;
  margin-bottom: 0;
}

.hero__text {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  margin-top: 1.25rem;
  z-index: 1;
}

.section {
  margin-bottom: 3rem;
  margin-top: 3rem;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 0.5rem 1rem hsl(0, 0%, 0%, 0.05);
  scroll-margin-top: 6.25rem;
}

.section__title {
  color: hsl(224, 13%, 34%);
  font-size: 2rem;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 1.625rem;
  padding-bottom: 0.5rem;
  border-bottom: 0.125rem solid hsl(229, 22%, 85%);
}

.section__text {
  color: hsl(224, 13%, 34%);
  line-height: 1.5;
}

.section__link {
  color: hsl(217, 90%, 59%);
  transition: opacity 0.35s linear;
}

.section__link:hover {
  opacity: 0.6;
}

.section__form {
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
  width: 100%;
}

.section__input {
  outline: 0;
  width: 100%;
  border: 0.125rem solid hsl(229, 22%, 85%);
  padding: 0.25rem;
  border-radius: 0.25rem;
}

.section__input:focus,
.section__input:hover {
  border-color: hsl(217, 90%, 59%);
}

.section__input::placeholder {
  font-weight: 400;
  line-height: normal;
  font-size: 1rem;
  color: hsl(224, 13%, 34%);
}

.section__input_textarea {
  resize: none;
  overflow: hidden;
  min-height: 3rem;
  line-height: 1.5;
}

.section__feedback-message {
  margin-bottom: 1rem;
}

ul.section__list li {
  position: relative;
  margin-bottom: 0.75rem;
  padding-left: 1rem;
  color: hsl(224, 13%, 34%);
}

ul.section__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.5rem;
  height: 0.5rem;
  background-color: hsl(217, 90%, 59%);
  border-radius: 50%;
  transform: translateY(-50%);
}

ol.section__list_numbered {
  list-style: decimal inside;
  color: hsl(224, 13%, 34%);
  line-height: 1.5;
}

ol.section__list_numbered li {
  padding-left: 0;
}

ol.section__list_numbered li::marker {
  color: hsl(217, 90%, 59%);
}

.footer {
  text-align: center;
  color: hsl(227, 14%, 45%);
  font-size: 0.9rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

@media screen and (max-width: 54.25rem) {
  .button_header {
    margin-right: auto;
  }

  .header__image {
    margin-right: 0;
  }

  .header__menu-icon {
    display: block;
  }

  .header__menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: hsla(0, 0%, 0%, 0.302);
    display: flex;
    justify-content: left;
    z-index: 40;
    visibility: hidden;
    opacity: 0;
    transition: all 0.35s ease-in-out;
  }

  .header__menu_active {
    opacity: 1;
    visibility: visible;
  }

  .header__links {
    flex-direction: column;
    justify-content: center;
    background-color: hsl(0, 0%, 100%);
    padding: 2rem;
    min-width: 20rem;
  }

  .section {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
}

@media screen and (max-width: 40.5rem) {
  .hero {
    padding-bottom: 1.5rem;
  }

  .hero__image {
    min-height: 20rem;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .hero__text {
    font-size: 1rem;
  }

  .section {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
  }

  .section__title {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 28.125rem) {
  .header__links {
    width: 100%;
  }
}
