.header__burger {
  position: absolute;
  right: 5%;
  width: 40px;
  height: 18px;
  display: none;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  padding: 0;
  z-index: 1000;
}

.header__burger span {
  display: block;
  width: 80%;
  height: 4px;
  background: var(--main-color);
  border-radius: 5px;
  -webkit-transition: opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
  transition: opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
  -o-transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
}

.header__burger span:nth-child(2) {
  -ms-flex-item-align: start;
      align-self: flex-start;
}

.header__burger.active span:nth-child(1) {
  -webkit-transform: translateY(11px) rotate(45deg);
      -ms-transform: translateY(11px) rotate(45deg);
          transform: translateY(11px) rotate(45deg);
  background: var(--bg-color);
}

.header__burger.active span:nth-child(2) {
  opacity: 0;
}

.header__burger.active span:nth-child(3) {
  -webkit-transform: translateY(-4px) rotate(-45deg);
      -ms-transform: translateY(-4px) rotate(-45deg);
          transform: translateY(-4px) rotate(-45deg);
  background: var(--bg-color);
}

.no-scroll {
  overflow: hidden;
}

.gallery__slider_mobile {
  display: none;
}


@media (max-width: 1075px) {
  .main__title {
    font-size: 70px;
  }

  .hero__description {
    text-align: center;
  }

  .hero__description .decorated {
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
  }

  .exh__title {
    font-size: 80px;
  }

  .exh-slider {
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
  }

  .exh-slider__item {
    min-width: 400px;
  }

  .about__title {
    font-size: 90px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    gap: 12px;
  }

  .about__description {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }

  .about_wrapper {
    height: auto;
    -webkit-box-orient: vertical;
    -webkit-box-direction: reverse;
        -ms-flex-direction: column-reverse;
            flex-direction: column-reverse;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    margin: 0;
    gap: 18px;
    text-align: center;
  }

  .gallery-preview {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }

  .gallery-preview .main__title .decorated__text {
    font-size: 110px;
  }

  .gallery-preview .main__title .decorated__letter {
    font-size: 2.5em;
  }

  .gallery-preview__quote {
    margin-bottom: 60px;
  }

  .gallery__unit-left {
    width: 50%;
  }

  .footer__left-bottom,
  .footer__left-top {
    font-size: 70px;
  }

  .footer__logo {
    font-size: 50px;

  }
}

@media (max-width: 825px) {
  .container {
    padding: 0 10px;
  }

  .header__burger {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }

  .nav {
    margin: 0;
  }

  .nav__list {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    font-size: 44px;
    line-height: 1.2;
    background-color: var(--main-color);
    color: var(--bg-color);
    z-index: 900;

    
  }

  .nav__list .decorated {
    font-size: 35px;
  }

  .nav__item:nth-child(3) {
    -webkit-box-ordinal-group: 0;
        -ms-flex-order: -1;
            order: -1;
  }

  .active {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }

  .hero {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 16px;
  }

  .hero .gallery__slider {
    width: auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }

  .hero__descrs {
    height: 350px;
    position: relative;
  }

  .hero__images {
    width: 100%;
  }

  .hero__img {
    min-width: 250px;
    min-height: 250px;
    -webkit-box-shadow: 0px 0px 20px 3px rgba(0, 0, 0, 0.15);
            box-shadow: 0px 0px 20px 3px rgba(0, 0, 0, 0.15);
  }

  .hero__img img {
    width: 100%;
    height: 100%;
  }

  .hero__img_center,
  .hero__img_left,
  .hero__img_right {
    left: 50%;
    -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
            transform: translateX(-50%);
  }

  .main__title {
    font-size: 60px;
    margin-bottom: 40px;
  }

  .exh__title {
    font-size: 60px;
  }

  .about__title {
    font-size: 70px;
  }

  .about__img {
    margin: 0 auto;
    -webkit-box-shadow: 0px 0px 20px 3px rgba(0, 0, 0, 0.15);
            box-shadow: 0px 0px 20px 3px rgba(0, 0, 0, 0.15);
  }

  .about__description {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    font-size: 20px;
  }

  .gallery-preview {
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }

  .gallery-preview .main__title .decorated__text {
    font-size: 70px;
  }

  .gallery-preview .main__title .decorated__letter {
    font-size: 2em;
  }

  .gallery__unit-content {
    height: auto !important;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }

  .gallery__unit-left {
    width: 100%;
  }

  .gallery__slider {
    display: none;
    width: 100%;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    margin: 0;
  }

  .gallery__slider_mobile {
    display: flex;
  }

  .gallery__unit_max  .gallery__unit-descr_down {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }

  .gallery__unit_max ::after {
    display: none;
  }

  .gallery__unit_max .gallery__unit-content {
    max-height: 100%;
  }

  .gallery__unit_max .button-read-more_light {
    color: var(--main-color);
    border-color: var(--main-color);
  }

  .gallery__unit_max .button-read-more_light svg {
    stroke: var(--main-color);
  }

  .gallery__unit_max .button-read-more_light:hover {
    color: var(--bg-color);
    background-color: var(--main-color);
  }

  .gallery__unit_max svg {
    stroke: var(--bg-color);
  }

  .gallery__unit_max .gallery__unit-descr {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    color: var(--main-color);
  }

  .gallery__unit_max .gallery__unit-info,
  .gallery__unit_max .gallery__unit-descr_down {
      opacity: 1;
    }

  .footer .container {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }

  .footer__left-top {
    font-size: 90px;
  }

  .footer__left-bottom {
    font-size: 90px;
    -webkit-box-orient: vertical;
    -webkit-box-direction: reverse;
        -ms-flex-direction: column-reverse;
            flex-direction: column-reverse;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }

  .footer__logo {
    display: none;
  }

  .footer__logo_mobile {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-top: 18px;
    -webkit-transform: none;
        -ms-transform: none;
            transform: none;
    font-size: 80px;
  }

  .modal.opened {
    width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
    padding: 18px 12px;
  }

  .modal__container {
    -webkit-box-orient: vertical;
        -ms-flex-direction: column;
            flex-direction: column;
            height: 80dvh;
            overflow-y: scroll;
  }


  .modal__container .modal__image {
    width: 90%;
    -webkit-box-shadow: none;
            box-shadow: none;
  }
  
  .modal__container::-webkit-scrollbar {
    width: 4px;
  }
  .modal__container::-webkit-scrollbar-track {
    background: transparent;
  }
  .modal__container::-webkit-scrollbar-thumb {
    background-color: var(--bg-color);
    border-radius: 20px;
  }

  .modal_long .modal__wrapper {
    order: 2;
    width: 100%;
    height: auto;
    text-align: center;
    overflow-y: unset;
  }
  .modal__descr {
    order: 1;
    height: 100%;
    width: 100%;
    margin: 0;
    gap: 15px;
  }
}

@media (max-width: 545px) {
  .container {
    max-width: 480px;
    padding: 0;
  }

  .main__title {
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    font-size: 30px;
    margin-top: 10px;
    margin-bottom: 0px;
  }

  .hero {
    gap: 0;
  }

  .hero__img {
    height: 80%;
    width: 80%;
  }

  .hero__description {
    top: 16px;
    width: calc(100% - 80px);
    max-height: 800px;
    font-size: 20px;
  }

  .hero__description .decorated {
    font-size: 18px;
  }

  .about__title {
    font-size: 40px;
  }

  .about__img {
    width: 80%;
  }

  .exh__title {
    font-size: 40px;
  }

  .exh-slider__item {
    min-width: auto;
  }

  .exh-slider__item p {
    font-size: 20px;
  }

  .exh-slider__image {
    width: 100%;
    height: auto;
    min-width: 250px;
    min-height: 250px;
    -webkit-box-shadow: 0px 0px 20px 3px rgba(0, 0, 0, 0.15);
            box-shadow: 0px 0px 20px 3px rgba(0, 0, 0, 0.15);
  }

  .gallery-preview .main__title .decorated__text {
    font-size: 50px;
  }

  .gallery-preview .main__title .decorated__letter {
    font-size: 2.8em;
  }

  .gallery-preview__quote {
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 22px;
  }

  .gallery-preview__buttons {
    gap: 30px;
  }

  .gallery-preview__button {
    font-size: 24px;
  }

  .gallery__unit-descr {
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    text-align: center;
  }

  .gallery__unit-buttons {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }

  .gallery__slider {
    margin: 0 10%;
  }

  .gallery__unit-links {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }

  .gallery-quote__text {
    padding: 10px;
    font-size: 50px;
  }

  .footer__left-bottom,
  .footer__left-top {
    font-size: 60px;
  }

  .footer__logo_mobile {
    font-size: 50px;
  }

  /* .modal {
    padding-top: 100px !important;
  } */

  .modal__title {
    max-width: 200px;
    font-size: 32px;
  }

  .modal__links {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
}

@media (max-width: 380px) {
  .hero__descrs {
    height: 500px;
    position: relative;
}
}