html {
  box-sizing: border-box;
  font-family: "Raleway", sans-serif;
  scroll-behavior: smooth;
  font-size: 10px;
}

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

body {
  background-color: #fafaff;
}

.section__header {
  color: #222222;
  font-size: 3.8rem;
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
  margin-top: 5.5rem;
  text-align: center;
  text-shadow: 0.2rem 0.2rem 0.2rem #949191;
}
@media only screen and (max-width: 560px) {
  .section__header {
    font-size: 3rem;
    margin-top: 3rem;
  }
}

.navigation {
  background-color: #fafaff;
  display: flex;
  height: 50px;
  justify-content: space-between;
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  z-index: 1;
}
.navigation__box {
  align-items: center;
  background-color: transparent;
  display: flex;
  height: 15px;
  justify-content: center;
  width: 30px;
}
.navigation__btn {
  background-color: #fafaff;
  border: 0;
  cursor: pointer;
  display: none;
  margin: 0;
  outline: none;
  padding: 10px;
}
@media only screen and (max-width: 560px) {
  .navigation__btn {
    display: block;
  }
}
.navigation__btn--open .navigation__burger {
  background-color: transparent;
  transform: translateX(-100px);
}
.navigation__btn--open .navigation__burger::after {
  background-color: #fafaff;
  transform: rotate(-45deg) translate(72px, 72px);
}
.navigation__btn--open .navigation__burger::before {
  background-color: #fafaff;
  transform: rotate(45deg) translate(72px, -72px);
}
.navigation__burger {
  background-color: #222222;
  height: 2px;
  position: relative;
  transition: transform 0.5s ease-in, background-color 0.5s ease-in;
  width: 100%;
}
.navigation__burger::after {
  background-color: #222222;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transition: transform 0.5s ease-in, background-color 0.5s ease-in;
  width: 100%;
  transform: translateY(7px);
}
.navigation__burger::before {
  background-color: #222222;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transition: transform 0.5s ease-in, background-color 0.5s ease-in;
  width: 100%;
  transform: translateY(-7px);
}
.navigation__img {
  height: 100%;
}
.navigation__list {
  align-items: center;
  display: flex;
  justify-content: space-evenly;
  list-style: none;
  padding: 0;
}
@media only screen and (max-width: 560px) {
  .navigation__list {
    background-color: #a5b7c3;
    flex-direction: column;
    height: 100vh;
    justify-content: center;
    left: 0;
    margin: 0;
    overflow: hidden;
    position: absolute;
    top: 0;
    transform: translateY(-100%);
    transition: transform 0.5s ease-in;
    width: 100%;
  }
}
.navigation__list--item {
  margin: 0 15px;
}
@media only screen and (max-width: 560px) {
  .navigation__list--item {
    padding: 5% 0;
  }
}
.navigation__list--link {
  color: #222222;
  font-size: 1.6rem;
  font-weight: bold;
  position: relative;
  text-decoration: none;
}
@media only screen and (max-width: 560px) {
  .navigation__list--link {
    color: #fafaff;
    font-size: 2.5rem;
    font-weight: normal;
    letter-spacing: 0.2em;
  }
}
@media only screen and (max-width: 560px) {
  .navigation__list--open {
    transform: translateY(0);
  }
}
.navigation__logo {
  cursor: pointer;
  height: 100%;
  transform: translateX(-100%);
  transition: transform 0.5s ease-in;
}
.navigation__logo--visible {
  transform: translateX(0);
}

.header {
  background: url("../../img/cover-photo.jpg") no-repeat center center/cover;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100vh - 100px);
}
@media only screen and (max-width: 560px) {
  .header {
    align-items: center;
    background: url("../../img/cover-photo-vertical.jpg") no-repeat 0% 100%/cover;
    justify-content: flex-start;
  }
}
.header__footer {
  color: #fafaff;
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  margin-left: 2.5rem;
}
@media only screen and (max-width: 780px) {
  .header__footer {
    font-size: 2.2rem;
  }
}
@media only screen and (max-width: 560px) {
  .header__footer {
    font-size: 1.5rem;
    margin: 0;
    text-align: center;
  }
}
.header__footer--address {
  margin: 0 0 1.5rem 0;
}
.header__footer--time {
  display: none;
  font-weight: 700;
  margin: 0;
}
.header__icon {
  background-color: #fafaff;
  border-radius: 50%;
  color: #a5b7c3;
  font-size: 1.6rem;
  padding: 5px;
}
.header__link {
  margin: 1rem;
}
.header__link .facebook-icon {
  padding: 5px 8px;
}
.header__logo {
  width: 100%;
}
.header__socials {
  display: flex;
  justify-content: center;
}
.header__wrapper {
  max-width: 40%;
  min-width: 400px;
}
@media only screen and (max-width: 560px) {
  .header__wrapper {
    margin-bottom: 2rem;
    max-width: 60%;
    min-width: 250px;
  }
}

.quote {
  margin: 0 auto;
  width: 80%;
  color: #222222;
  margin: 7.5rem auto;
  text-align: center;
}
@media only screen and (max-width: 1024px) {
  .quote {
    width: 90%;
  }
}
@media only screen and (max-width: 680px) {
  .quote {
    width: 90%;
    padding: 0;
  }
}
.quote__author {
  font-size: 1.6rem;
  position: relative;
  text-transform: uppercase;
}
@media only screen and (max-width: 560px) {
  .quote__author {
    font-size: 1.4rem;
  }
}
.quote__author::after {
  background-color: #222222;
  content: "";
  height: 1px;
  left: 35%;
  position: absolute;
  width: 30%;
  top: 35px;
}
@media only screen and (max-width: 560px) {
  .quote__author::after {
    left: 30%;
    width: 40%;
  }
}
.quote__text {
  font-size: 3rem;
  font-weight: bold;
  line-height: 150%;
  margin: 0;
  position: relative;
}
@media only screen and (max-width: 780px) {
  .quote__text {
    font-size: 2.5rem;
  }
}
@media only screen and (max-width: 560px) {
  .quote__text {
    font-size: 2.2rem;
  }
}
.quote__text::before {
  background-color: #222222;
  content: "";
  height: 1px;
  left: 35%;
  position: absolute;
  width: 30%;
  top: -15px;
}
@media only screen and (max-width: 560px) {
  .quote__text::before {
    left: 30%;
    width: 40%;
  }
}
@media only screen and (max-width: 680px) {
  .quote {
    margin: 7.5rem auto 6rem auto;
  }
}

.about {
  margin: 0 auto;
  width: 80%;
  color: #222222;
}
@media only screen and (max-width: 1024px) {
  .about {
    width: 90%;
  }
}
.about__description {
  line-height: 130%;
  margin: 1rem 0 0 0;
  text-align: justify;
}
.about__description:nth-child(3) {
  margin-top: 2.5rem;
}
.about__element {
  align-items: center;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 0.0625em 0.0625em, rgba(0, 0, 0, 0.25) 0px 0.125em 0.5em, rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  padding: 5%;
}
@media only screen and (max-width: 800px) {
  .about__element {
    margin-bottom: 1rem;
  }
}
.about__element:nth-child(1), .about__element:nth-child(4), .about__element:nth-child(5) {
  padding: 0;
}
@media only screen and (max-width: 800px) {
  .about__element:nth-child(2) {
    order: -1;
  }
}
@media only screen and (max-width: 800px) {
  .about__element:nth-child(4) {
    display: none;
  }
}
@media only screen and (max-width: 800px) {
  .about__element:nth-child(6) {
    margin-bottom: 0;
  }
}
.about__element--header {
  font-size: 2rem;
  letter-spacing: 0.05em;
  margin: 0;
  text-align: center;
}
.about__element--img {
  box-shadow: rgba(0, 0, 0, 0.25) 0px 0.0625em 0.0625em, rgba(0, 0, 0, 0.25) 0px 0.125em 0.5em, rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset;
  display: block;
  filter: saturate(75%);
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: 0 80%;
  width: 100%;
}
.about__element--subheader {
  display: block;
  font-size: 1.8rem;
  font-weight: normal;
  margin: 0.4rem 0 2.5rem 0;
  position: relative;
  text-align: center;
  width: 100%;
}
.about__element--subheader::after {
  background-color: #222222;
  bottom: -2.5rem;
  content: "";
  height: 1px;
  left: 35%;
  position: absolute;
  width: 30%;
}
.about__element--subheader::before {
  background-color: #222222;
  bottom: -2.6rem;
  content: "";
  height: 3px;
  left: 45%;
  position: absolute;
  width: 10%;
}
.about__wrapper {
  align-items: center;
  display: grid;
  font-size: 1.5rem;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  justify-items: center;
}
@media only screen and (max-width: 800px) {
  .about__wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
}

.services {
  margin: 0 auto;
  width: 80%;
  color: #222222;
}
@media only screen and (max-width: 1024px) {
  .services {
    width: 90%;
  }
}
.services__description {
  font-size: 1.6rem;
  font-weight: bold;
  margin: 0;
  padding-top: 1.2rem;
  text-align: center;
}
.services__detail {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-self: center;
}
.services__detail--wrapper {
  align-items: center;
  border: 7px solid #a5b7c3;
  border-radius: 50%;
  display: flex;
  height: 230px;
  justify-content: center;
  margin: 0;
  width: 230px;
}
@media only screen and (max-width: 780px) {
  .services__detail--wrapper {
    height: 180px;
    width: 180px;
  }
}
@media only screen and (max-width: 560px) {
  .services__detail--wrapper {
    border: 6px solid #a5b7c3;
    height: 150px;
    width: 150px;
  }
}
@media only screen and (max-width: 460px) {
  .services__detail--wrapper {
    border: 5px solid #a5b7c3;
    height: 130px;
    width: 130px;
  }
}
@media only screen and (max-width: 360px) {
  .services__detail--wrapper {
    height: 110px;
    width: 110px;
  }
}
.services__logo {
  width: 60%;
}
.services__wrapper {
  box-shadow: rgba(0, 0, 0, 0.25) 0px 0.0625em 0.0625em, rgba(0, 0, 0, 0.25) 0px 0.125em 0.5em, rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(4, 1fr);
  padding: 5%;
}
@media only screen and (max-width: 1400px) {
  .services__wrapper {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }
}

.products__container {
  position: relative;
}
.products__container:nth-child(1) {
  grid-column: 1/span 9;
}
@media only screen and (max-width: 1024px) {
  .products__container:nth-child(1) {
    grid-column: 1/span 14;
  }
}
.products__container:nth-child(2) {
  grid-column: 10/span 7;
}
@media only screen and (max-width: 1024px) {
  .products__container:nth-child(2) {
    grid-column: 15/span 11;
  }
}
.products__container:nth-child(3) {
  grid-column: 17/span 9;
}
@media only screen and (max-width: 1024px) {
  .products__container:nth-child(3) {
    grid-column: 12/span 14;
    order: 4;
  }
}
.products__container:nth-child(4) {
  grid-column: 1/span 7;
}
@media only screen and (max-width: 1024px) {
  .products__container:nth-child(4) {
    grid-column: 1/span 11;
    order: 3;
  }
}
.products__container:nth-child(5) {
  grid-column: 8/span 18;
}
@media only screen and (max-width: 1024px) {
  .products__container:nth-child(5) {
    grid-column: 1/-1;
    order: 5;
  }
}
.products__container--overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(253, 253, 253, 0.2) 100%);
  height: 100%;
  left: 0;
  padding: 1rem;
  position: absolute;
  top: 0;
  width: 100%;
}
@media only screen and (max-width: 560px) {
  .products__container--overlay {
    background: linear-gradient(180deg, rgba(253, 253, 253, 0.2) 0%, rgba(0, 0, 0, 0.4) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
  }
}
.products__header {
  color: #fafaff;
  font-size: 2rem;
  letter-spacing: 0.05em;
  margin: 0;
}
.products__img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.products__paragraph {
  color: #fafaff;
  font-size: 1.6rem;
  margin: 1rem 0;
  text-align: justify;
}
@media only screen and (max-width: 780px) {
  .products__paragraph {
    font-size: 1.4rem;
  }
}
@media only screen and (max-width: 560px) {
  .products__paragraph {
    font-size: 1.6rem;
  }
}
@media only screen and (max-width: 380px) {
  .products__paragraph {
    font-size: 1.4rem;
    margin: 0.5rem 0;
  }
}
.products__wrapper {
  box-shadow: rgba(0, 0, 0, 0.25) 0px 0.0625em 0.0625em, rgba(0, 0, 0, 0.25) 0px 0.125em 0.5em, rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset;
  display: grid;
  grid-template-columns: repeat(25, 1fr);
  grid-template-rows: 1fr 1fr;
}
@media only screen and (max-width: 1024px) {
  .products__wrapper {
    grid-template-rows: repeat(3, 1fr);
  }
}
@media only screen and (max-width: 560px) {
  .products__wrapper {
    grid-template-rows: repeat(5, 1fr);
  }
}
@media only screen and (max-width: 560px) {
  .products__wrapper .products__container {
    grid-column: 1/-1;
  }
}

.contact {
  margin: 0 auto;
  width: 80%;
  margin-bottom: 7.5rem;
}
@media only screen and (max-width: 1024px) {
  .contact {
    width: 90%;
  }
}
@media only screen and (max-width: 560px) {
  .contact {
    margin-bottom: 4.5rem;
  }
}
@media only screen and (max-width: 880px) {
  .contact__description {
    margin-bottom: 4rem;
  }
}
.contact__details {
  display: flex;
  flex-direction: column;
  margin: 0;
}
.contact__details--info {
  color: #fafaff;
  font-weight: bold;
  margin: 0;
  text-decoration: none;
}
.contact__form {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  padding: 5%;
}
.contact__header {
  color: #222222;
  text-align: center;
  font-size: 2rem;
  letter-spacing: 0.05em;
  margin: 0 0 5% 0;
}
.contact__icon {
  color: #fafaff;
  font-size: 22px;
  padding-right: 4rem;
}
@media only screen and (max-width: 380px) {
  .contact__icon {
    padding-right: 2rem;
  }
}
.contact__information {
  background: #a5b7c3;
  display: flex;
  flex: 1;
  flex-direction: column;
  font-size: 1.6rem;
  justify-content: space-between;
  padding: 5%;
}
@media only screen and (max-width: 380px) {
  .contact__information {
    font-size: 1.4rem;
  }
}
.contact__method {
  align-items: center;
  display: flex;
  padding-top: 2.5rem;
}
.contact__method:nth-child(3), .contact__method:nth-child(4) {
  display: none;
}
.contact__methods {
  align-items: baseline;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0 auto;
}
.contact__paragraph {
  color: #fafaff;
  margin-top: 0;
  text-align: center;
}
.contact__wrapper {
  box-shadow: rgba(0, 0, 0, 0.25) 0px 0.0625em 0.0625em, rgba(0, 0, 0, 0.25) 0px 0.125em 0.5em, rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset;
  display: flex;
  justify-content: space-between;
}
@media only screen and (max-width: 880px) {
  .contact__wrapper {
    flex-direction: column;
  }
}

.form {
  color: #222222;
  font-size: 1.6rem;
}
@media only screen and (max-width: 380px) {
  .form {
    font-size: 1.4rem;
  }
}
.form__button {
  background: #a5b7c3;
  border: none;
  box-shadow: rgba(50, 50, 105, 0.15) 0px 2px 5px 0px, rgba(0, 0, 0, 0.05) 0px 1px 1px 0px;
  color: #fafaff;
  cursor: pointer;
  display: block;
  font-weight: bold;
  letter-spacing: 0.15em;
  outline: none;
  padding: 1.25rem 0;
  transition: background-color 1s;
  width: 50%;
}
@media only screen and (max-width: 380px) {
  .form__button {
    width: 100%;
  }
}
.form__icon {
  padding: 0 1rem;
}
.form__input {
  background: rgba(255, 255, 255, 0.5);
  border: none;
  border-radius: 2px;
  box-shadow: rgba(50, 50, 105, 0.15) 0px 2px 5px 0px, rgba(0, 0, 0, 0.05) 0px 1px 1px 0px;
  color: #222222;
  margin-top: 5px;
  outline: none;
  padding: 8px 10px;
  -webkit-appearance: none;
  -webkit-box-shadow: rgba(50, 50, 105, 0.15) 0px 2px 5px 0px, rgba(0, 0, 0, 0.05) 0px 1px 1px 0px;
  width: 100%;
}
.form__input--check {
  border: none;
  cursor: pointer;
  margin: 0 1rem 0 0;
  max-width: 15px;
  outline: none;
  -webkit-appearance: checkbox;
  width: 100%;
}
.form__input--message {
  resize: none;
}
.form__input:focus {
  background: white;
  border: 1px solid #222222;
  box-shadow: none;
}
.form__input:required:focus:invalid {
  border: 1px solid red;
  background: white url("../../img/contact-form-invalid.png") no-repeat 98% 50%/auto 50%;
}
.form__input:required:focus:valid {
  border: 1px solid #47b847;
  background: white url("../../img/contact-form-valid.png") no-repeat 98% 50%/auto 50%;
}
.form__input::-webkit-contacts-auto-fill-button {
  visibility: hidden;
}
.form__label--check {
  font-size: 1.2rem;
}
.form__wrapper {
  margin-bottom: 1.6rem;
}
.form__wrapper .form__label {
  transition: letter-spacing 0.3s ease;
}
.form__wrapper:focus-within .form__label {
  letter-spacing: 0.15em;
}
.form__wrapper--button {
  display: flex;
  justify-content: flex-end;
}
.form__wrapper--check {
  align-items: center;
  display: flex;
  text-align: justify;
}
.form__wrapper--check:focus-within .form__label {
  letter-spacing: normal;
}
.form__wrapper--link {
  color: #222222;
  text-decoration: none;
}

.footer {
  background: #a5b7c3;
  font-size: 1.6rem;
  padding: 1rem;
}
@media only screen and (max-width: 560px) {
  .footer {
    font-size: 1.4rem;
    padding: 1rem 0.5rem;
  }
}
@media only screen and (max-width: 380px) {
  .footer {
    font-size: 1.2rem;
  }
}
.footer__icon {
  background-color: #fafaff;
  border-radius: 50%;
  color: #a5b7c3;
  font-size: 1.6rem;
  padding: 5px;
}
.footer__info {
  color: #fafaff;
  margin: 0;
  text-align: center;
}
.footer__link {
  margin: 0 1.5rem 1rem 1rem;
}
.footer__link .facebook-icon {
  padding: 5px 8px;
}
.footer__socials {
  display: flex;
  justify-content: center;
}
.footer__wrapper {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.modal {
  align-items: center;
  background-color: transparent;
  color: #fafaff;
  display: flex;
  height: 0;
  justify-content: center;
  left: 0;
  position: fixed;
  top: 0;
  transition: background-color 0.5s linear;
  visibility: hidden;
  width: 0;
  z-index: 1;
}
.modal__button {
  align-items: center;
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  font-size: 2rem;
  height: 3rem;
  justify-content: center;
  outline: none;
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  width: 3rem;
}
.modal__button::after, .modal__button::before {
  background-color: #fafaff;
  content: "";
  height: 0.2rem;
  position: absolute;
  width: 3rem;
}
.modal__button::after {
  transform: rotate(-45deg);
}
.modal__button::before {
  transform: rotate(45deg);
}
.modal__content {
  align-items: flex-start;
  background-color: #a5b7c3;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 0.0625em 0.0625em, rgba(0, 0, 0, 0.25) 0px 0.125em 0.5em, rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 85%;
  padding: 5%;
  position: relative;
  transform: scale(0);
  transition: transform 0.5s linear;
}
.modal__paragraph {
  font-size: 1.6rem;
  line-height: 140%;
  text-align: justify;
}
.modal__title {
  font-size: 2.5rem;
  letter-spacing: 0.05em;
}
.modal--visible {
  background-color: rgba(0, 0, 0, 0.7);
  height: 100vh;
  visibility: visible;
  width: 100%;
}
.modal--visible > .modal__content {
  transform: scale(1);
}
