.section-main {
  display: flex;
  justify-content: right;
  background-color: #e2ebbc;
}

  .section-main .section-main-heading {
    /* margin-right: auto; */
    flex-grow: 1;
    padding: 5% 30px 0 30px;
    display: block;
    align-content: center;
  }

    .section-main .section-main-heading h1 {
      font-size: 5rem;
      color: #331a09;
      font-weight: normal;
      text-align: center;
      line-height: 1.5;
    }

    /* .section-main .section-main-image {
      border-bottom: 2px solid #675243;
      border-left: 2px solid #675243;
    } */

    .section-main .section-main-image img {
      max-width: 600px;
      display: block;
      border-radius: 50%;
      margin: 50px 50px 0 50px;
    }

.about-content {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row-reverse;
}

  .about-content-name {
    background-color: #e2ebbc;
    color: #331a09;
    flex: 2;
    flex-shrink: 1;
    min-width: 60vw;
    padding: 70px 20px;
  }

    .about-content-name ul {
      text-align: left;
      display: block;
      list-style: none;
    }

      .about-content-name ul li {
        margin: 20px 0;
        padding-left: 40px;
      }

      .section-about ul li img {
        width: 20px;
        height: 20px;
        margin-right: 10px;
        filter: brightness(0) saturate(100%)  invert(10%) sepia(10%) saturate(4659%) hue-rotate(346deg) brightness(97%) contrast(97%);
      }

  .reminder {
    background-color: #727b42;
    display: flex;
  }

  .about-content-points {
    color: #e9deb1;
    flex: 1;
    min-width: 300px;
    padding: 10px 20px 10px 110px;
    display: flex;
    align-items: center;
  }
  
  .about-content-element {
    display: flex; justify-content: center; align-items: center;
  }

    .about-content-element img {
      height: 120px;
      width: auto;
      padding-right: 20px;
      filter: invert(92%) sepia(5%) saturate(1422%) hue-rotate(8deg) brightness(93%) contrast(103%);
    }

.section-reasons {
  background-color: #e2ebbc;
  padding: 70px 50px;
  color: #331a09;
}

  .section-reasons-header {
    font-size: 2rem;
    padding: 0 0 0 80px;
  }

  .section-reasons ul {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    list-style: none;
    align-items: center;
    justify-content: space-evenly;
  }

    .section-reasons ul li {
      margin: 20px 0;
      width: 30%;
      min-width: 356px;
    }

      .section-reasons ul li img {
        width: 20px;
        height: 20px;
        margin-right: 10px;
        filter: brightness(0) saturate(100%)  invert(10%) sepia(10%) saturate(4659%) hue-rotate(346deg) brightness(97%) contrast(97%);
      }

.section-format {
  color: #e9deb1;
  background-color: #727b42;
  padding: 30px 50px;
}

.btn-contact {
  border-radius: 40px 40px 40px 40px;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  font-size: 1.5rem;
  transition: 0.3s;
  cursor: pointer;
}

.button-main-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 150px;
}

#btn-contact-main {
  background-color: #e2ebbc;
  border: 3px solid #331a09;
  color: #331a09;
}

#btn-contact-main:hover {
  background-color: #727b42;
  color: #e9deb1;
  border-color: #727b42;
}

.contact-dialog {
  border: none;
  border-radius: 40px;
  background-color: #fff;
}

.contact-dialog h2 {
  text-align: center;
}

.contact-form-close {
  position: absolute;
  top: 20px;
  right: 20px;
  border: none;
  border-radius: 10px;
  background-color: #164b41;
}

.contact-form-close:hover {
  border: 1px solid #fff;
}

.contact-form-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form-name, .contact-form-tel, .contact-form-message {
  border: 3px solid #164b41;
  border-radius: 10px;
  font-size: 1.5rem;
  padding: 10px;
  background-color: #fff;
  resize: none;
}

.contact-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}

.contact-form-submit {
  border-radius: 40px 40px 40px 40px;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  font-size: 1.5rem;
  transition: 0.3s;
  cursor: pointer;
  background-color: #fff;
  border: 3px solid #164b41;
  color: #164b41;
  display: inline-block;
}

.contact-form-submit:hover {
  background-color: #164b41;
  color: #fff;
}

.contacts {
  display: flex;
}

.link {
  text-decoration: none;
}

.link div {
  padding: 30px 10px 0 10px;
  height: 42px;
  display: flex;
  align-items: center;
  font-size: 1.5rem;
}

.section-articles {
  background-color: #e2ebbc;
  color: #331a09;
}

.articles-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  padding: 20px;
}

.article {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #331a09;
  background-color: transparent;
  text-decoration: none;
}

.article img {
  width: 100px;
  height: auto;
  padding: 30px;
}

.article a {
  color: #331a09;
  background-color: transparent;
  text-decoration: none;
}

.article p {
  color: #331a09;
  background-color: transparent;
  text-decoration: none;
  max-width: 500px;
  font-size: 2rem;
}

#errorMessages p {
  color: red;
  line-height: 0.5;
}

.element-1 {
  /* transform: scaleX(-1); */
  position: absolute;
  left: 100px;
  bottom: 120px;
  width: 200px;
  z-index: 0;
  filter: brightness(0) saturate(100%) invert(10%) sepia(10%) saturate(4659%) hue-rotate(346deg) brightness(97%) contrast(97%);
}

.element-2 {
  display: none;
  position: absolute;
  left: 50px;
  bottom: 20%;
  width: 180px;
  z-index: 0;
  filter: brightness(0) saturate(100%) invert(10%) sepia(10%) saturate(4659%) hue-rotate(346deg) brightness(97%) contrast(97%);
}

.section-format h2 {
  font-size: 2rem;
  padding: 0 0 30px 30px;
}

.format-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  padding: 20px;
}

.format-header {
  margin: 0;
}

.format-info {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.format-info p {
  margin: 0;
}

.link-form svg {
  filter: invert(21%) sepia(9%) saturate(3892%) hue-rotate(120deg) brightness(89%) contrast(83%);
  padding: 30px 10px 0 10px;
}

/* .link svg {
  filter: invert(21%) sepia(9%) saturate(3892%) hue-rotate(120deg) brightness(89%) contrast(83%);
  padding: 30px 10px 0 10px;
} */

/* .section-contacts {
  background-color: #e6e2d4;
  padding: 40px 60px;
}

#btn-contact-format {
  background-color: #e6e2d4;
  border: 3px solid #164b41;
  color: #164b41;
  display: inline-block;
}

#btn-contact-format:hover {
  background-color: #164b41;
  color: white;
} */

.link svg {
  filter: brightness(0) saturate(100%) invert(94%) sepia(10%) saturate(877%) hue-rotate(358deg) brightness(96%) contrast(90%);;
  padding: 30px 10px 0 10px;
}

.section-contacts {
  color: #e9deb1;
  background-color: #727b42;
  padding: 40px 60px;
}

#btn-contact-format {
  background-color: #727b42;
  border: 3px solid #e9deb1;
  color: #e9deb1;
  display: inline-block;
}

#btn-contact-format:hover {
  background-color: #e9deb1;
  color: #727b42;
}

.button-main-wrapper-2 {
  display: none;
}

.section-about {
  /* display: flex;
  align-items: center;
  justify-content: center; */
  background-color: #e2ebbc;
}

.section-about .about-content .about-content-name .about-content-name-image {
  float: left;
  width: 20%;
  margin: 30px 50px 20px 20px;
}

.section-about .about-content .about-content-name .about-content-name-image-2 {
  display: none;
}

/* .section-about .section-about-image {
  width: 25%;
  height: 480px;
  margin: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-about .section-about-image img {
  max-width: 600px;
  height: 100%;
  display: block;
  border-radius: 50%;
  margin: 50px 50px 0 50px;
} */

@media (max-width: 1727px) {
  .section-main .section-main-heading {
    padding: 3% 20px 0 20px;
  }
  
  .section-main .section-main-heading h1 {
    font-size: 4rem;
  }

  .section-main .section-main-image img {
    max-width: 500px;
  }

  .button-main-wrapper {
    margin-top: 50px;
  }

  .element-1 {
    display: none;
  }

  .element-2 {
    display: inline;
  }
}

@media (max-width: 1414px) {
  .element-2 {
    display: none;
  }

  .section-main .section-main-heading h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 1317px) {
  .section-main .section-main-heading {
    padding: 5% 20px 0 20px;
  }
  
  .section-main .section-main-heading h1 {
    font-size: 3rem;
  }

  .button-main-wrapper {
    margin-top: 70px;
  }
}

@media (max-width: 1220px) {
  .section-main .section-main-heading {
    padding: 3% 20px 0 20px;
  }

  .section-main .section-main-image img {
    max-width: 450px;
  }
}

@media (max-width: 1170px) {
  .section-main .section-main-heading {
    padding: 1% 20px 0 20px;
  }

  .section-main .section-main-image img {
    max-width: 400px;
  }

  .button-main-wrapper {
    margin-top: 50px;
  }
}

@media (max-width: 1120px) {
  .section-main .section-main-heading h1 {
    font-size: 2.5rem;
  }

  .section-main .section-main-image img {
    max-width: 400px;
  }
}

@media (max-width: 1369px) {
  .section-format, .section-reasons, .about-content-name {
    padding: 10px 20px;
  }
}

@media (max-width: 1030px) {
  .section-main {
    flex-direction: column;
    align-items: center;
  }

  .button-main-wrapper-1 {
    display: none;
  }

  .button-main-wrapper-2 {
    display: flex;
  }

  .button-main-wrapper-2 button {
    margin-top: 50px;
  }

  .section-main .section-main-heading {
    padding: 20px 30px;
  }

  .section-main .section-main-image {
    width: 500px;
  }

  .section-main .section-main-image img {
    width: 100%;
    max-width: none;
    margin: 20px 0 0 0;
  }

  .button-main-wrapper {
    margin-top: 0;
  }

  .format-info {
    margin: 30px;
  }
}

@media (max-width: 944px) {
  .section-about .about-content .about-content-name .about-content-name-image {
    display: none;
  }

  .section-about .about-content .about-content-name .about-content-name-image-2 {
    display: block;
    width: 70%;
    margin: auto;
  }
}

@media (max-width: 735px) {
  .about-content-element {
    display: none;
  }

  .about-content-points {
    padding: 20px;
    min-width: 100px;
  }
}

@media (max-width: 543px) {
  .section-main .section-main-image {
    width: 400px;
  }

  .section-main .section-main-image img {
    width: 100%;
    max-width: none;
    margin: 20px 0 0 0;
  }
}

@media (max-width: 520px) {
  .section-reasons-header {
    padding-left: 10px;
  }

  .about-content-name ul li {
    padding-left: 0;
  }

  .about-content-name ul {
    padding-left: 15px;
  }

  .article img {
    padding-left: 0;
  }
}

@media (max-width: 540px) {
  .contacts {
    flex-wrap: wrap;
  }
}

@media (max-width: 500px) {
  .contact-dialog h2 {
    margin-top: 50px;
  }

  .contact-dialog {
    margin-top: 5px;
  }

  .article a p {
    font-size: 1.5rem;
  }
}

@media (max-width: 453px) {
  .section-main .section-main-image {
    width: 80%
  }

  .section-main .section-main-image img {
    width: 100%;
    max-width: none;
    margin: 20px 0 0 0;
  }

  .button-main-wrapper-2 button {
    width: 90%;
  }

  .section-contacts {
    padding: 20px;
  }
}

@media (max-width: 400px) {
  .section-reasons ul li {
    min-width: 200px;
    width: 80%;
  }

  .article a p {
    font-size: 1rem;
  }
}

@media (max-width: 347px) {
  .article {
    padding-right: 0;
  }
}

@media (max-width: 330px) {
  .about-content-name ul {
    padding-left: 10px;
  }

  .about-content-name ul li {
    padding-left: 0;
  }
}

@media (max-width: 315px) {
  .article {
    padding-left: 0;
  }

  .article img {
    padding-left: 0;
  }
}