h1 {
  margin: 0 0 1.2em;
}

.container.photos h1,
.top-photo h1 {
  margin-bottom: 0.5em;
}

.top-photo {
  position: relative;
  width: 100%;
  height: 38.9em;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.top-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.top-photo div {
  position: relative;
  top: 5.55em;
}

.top-photo button {
  margin-top: 1.67em;
}

.info-block {
  height: 27.8em;
  display: flex;
  margin: 3.3em 0;
  box-shadow: rgba(65, 39, 22, 0.1) 0 0 20px;
  border-radius: var(--border-radius);
  align-items: center;
  overflow: hidden;
}

.info-block:nth-child(2n) {
  flex-direction: row-reverse;
}

.info-block > * {
  width: 50%;
  object-fit: cover;
}

.info-block div {
  padding: 0 2.8em;
  font-size: 1.77em;
}

.top-photo div.bg-image {
  width: 100%;
  height: 39em;
  position: absolute;
  top: 0;
  left: 0;
  background-repeat: no-repeat;
}

.animals {
  gap: 14.4em;
}

.animal-gallery {
  position: relative;
  display: flex;
  gap: 1%;
  flex-wrap: wrap;
}

.animal-block {
  position: relative;
  width: 24%;
  margin-bottom: 1%;
}

.animal-block img {
  width: 100%;
}

.animal-block .photo-title,
.animal-block .item-cover {
  height: 3.6em;
}

.equipment-gallery {
  position: relative;
}

.equipment-block {
  display: flex;
}

.equipment-block .photo-txt {
  border-radius: 8px;
  box-shadow: rgba(65, 39, 22, 0.1) 0 0 20px;
  padding: 1.1em 1.7em 1.1em 1.5em;
  cursor: pointer;
}

.equipment-block img {
  display: none;
}

.equipment-block img.active {
  display: block;
}

.equipment-block_txt {
  width: 45%;
  gap: 1.4em;
  display: flex;
  flex-direction: column;
}

.equipment-block .photo-txt.active {
  color: #fff;
  background-color: var(--color-green-action);
}

.equipment-block_photo {
  display: flex;
  align-items: center;
}

.equipment-block img.graf-img {
  display: block;
}

.container.photos > div > div,
.container.photos > div > div > div,
.container.photos > div {
  position: relative;
  gap: 1.7em;
}

.container.photos img {
  border-radius: var(--border-radius);
  box-shadow: rgba(65, 39, 22, 0.18) 0 0 25px;
}

.container.photos .flex-column {
  width: 27.2em;
}

.container.photos div.home-photo-block__text-wrapper {
  display: flex;
  margin: 25px 0 40px;
  gap: 210px;
}

.container.photos div.home_photo_block_photo-title,
.photo-slider__photo div.home_photo_block_photo-title {
  height: 100px;
}

.service-wrapper {
  display: flex;
  flex-wrap: wrap;
}

.service-slider__card {
  width: 16.6em;
  height: 7.2em;
  padding: 0.22em;
  border-radius: var(--border-radius);
  margin: 1.1em 0.7em;
  box-shadow: rgba(65, 39, 22, 0.1) 0 0 20px;
}

.service-slider__card-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 2px solid #EFEFEF;
  border-radius: var(--border-radius);
  padding: 0 1.6em;
  background: #fff;
  justify-content: center;
}

.service-slider__card-wrapper:after {
  position: absolute;
  right: 1.1em;
  top: 1.6em;
  background-image: url("../img/trace_small.svg");
  background-size: 3.3em 3.3em;
  display: inline-block;
  content: '';
  width: 3.3em;
  height: 3.3em;
}

.service-slider__card-title {
  display: flex;
  align-items: center;
  height: 2.2em;
  border-radius: 8px;
  background-color: var(--color-orange);
  color: #fff;
  padding: 0 0.5em;
  width: fit-content;
  flex-wrap: nowrap;
}

.review-slider {
  margin-top: 2.8em;
  position: relative;
  overflow: hidden;
}

.review-slider__card {
  width: 33em;
  height: 20.5em;
  border-radius: var(--border-radius);
  background-color: var(--color-green-action-hover);
  color: #fff;
  padding: 2.7em 2.2em;
}

.review-slider__card .author {
  font-size: 1.3em;
  font-weight: 500;
}

.review-slider__card .stars {
  display: flex;
  gap: 0.25em;
  margin: 0.2em 0 0.55em;
  font-size: 1.5em;
}

.last-card-cover {
  position: absolute;
  width: 11.7em;
  height: 20.5em;
  background: linear-gradient(.25turn, rgba(250, 250, 250, 0), 50%, rgb(99 167 148));
  z-index: 10;
  right: 0;
  top: 0;
}

.review-slider .owl-theme .owl-nav button {
  margin: 0 0.28em;
}

.review-slider .owl-dots {
  margin-top: 2.2em;
}

.owl-theme .owl-nav {
  display: flex;
  margin-top: 2.2em;
}

.review-slider .owl-theme .owl-dots .owl-dot span {
  background-color: var(--color-green-1);
}
.review-slider .owl-theme .owl-dots .owl-dot.active span {
  background-color: var(--color-green-action);
}

.owl-carousel .owl-nav button.owl-next,
.owl-carousel .owl-nav button.owl-prev {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  font: inherit;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  font-size: 2em;
  background: var(--color-green-action);
  color: #fff;
  font-weight: 300;
  padding-bottom: 0.06em !important;
}

.owl-carousel .owl-nav button.owl-next:hover,
.owl-carousel .owl-nav button.owl-prev:hover {
  background: var(--color-green-action-hover);
}

.owl-carousel .owl-nav button.owl-next:active,
.owl-carousel .owl-nav button.owl-prev:active {
  background: var(--color-green-action-active);
}



@media screen and (max-width: 600px) {
  .container.form {
    margin-top: 0;
  }

  .top-photo {
    height: 45em;
  }

  .top-photo h3 {
    width: 70%;
    text-align: center;
  }

  .top-photo div {
    position: relative;
    top: 6em;
    margin: 0 1.4em;

  }

  .top-photo div.bg-image {
    background-size: 250% 100%;
    background-position: 7%;
    height: 100%;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    width: 100%;
  }

  .info-block {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2.1em 0;
    height: auto;
  }

  .info-block > * {
    height: 17em;
    width: 100%;
  }

  .info-block div {
    padding: 1.8em;
    font-size: 1.1em;
    height: auto;
  }

  .info-block:nth-child(2n) {
    flex-direction: column;
  }

  .animals {
    gap: 0;
  }

  .animals button {
    display: none;
  }

  .animal-gallery {
    gap: 1.5%;
  }

  .animal-block {
    width: 49%;
    margin-bottom: 1.5%;
  }

  .equipment-block_txt {
    width: 100%;
  }

  .equipment-block {
    flex-direction: column;
    gap: 1em;
  }

  .graf-img {
    display: none;
  }

  .form-wrapper {
    padding-top: 5em;
  }

  .container.photos div.home-photo-block__text-wrapper {
    flex-direction: column;
    gap: 1.22em;
    margin: 0 0 1.7em;
  }

  .container.photos div {
    position: relative;
    gap: 2.1em;
    flex-direction: column;
  }

  .container.photos .flex-column {
    width: 100%;
  }

  .container.photos div.home_photo_block_photo-title, .photo-slider__photo div.home_photo_block_photo-title {
    height: 4em;
  }

  .service-wrapper {
    gap: 3vw;
    justify-content: space-between;
  }

  .service-slider__card {
    width: 43vw;
    height: 23vw;
    border-radius: var(--border-radius);
    margin: 0;
    box-shadow: rgba(65, 39, 22, 0.1) 0 0 10px;
    padding: 0.1em;
  }

  .service-slider__card-wrapper:after {
    right: 0;
    top: 0.6em;
    background-size: 4em 4em;
    width: 4em;
    height: 4em;
  }

  .service-slider__card-wrapper {
    padding: 0 0.6em;
  }

  .service-slider__card-title {
    z-index: 1;
    position: relative;
  }

  .review-slider__card {
    width: calc(100vw - 3em);
    height: auto;
    padding: 1.7em;
  }

  .last-card-cover {
    display: none;
  }

  .equipment-block img.graf-img {
    display: none;
  }
}

@media only screen and (max-width: 350px) and (orientation: portrait) {
  .top-photo {
    height: 40em;
  }

  .top-photo h3 {
    width: 60%;
    line-height: 1.2em;
  }

  .top-photo h1 {
    text-align: center;
    line-height: 1.2em;
    width: 80%;
  }

  .top-photo div {
    top: 3.7em;
  }

  .service-wrapper {
    gap: 1vw;
  }

  .service-slider__card-title {
    font-size: 0.8em;
  }
}

@media only screen and (max-width: 1000px) and (orientation: landscape) {
  .info-block div {
    font-size: 1.2em;
    align-items: center;
    display: flex;
  }

  .info-block {
    height: 90vh;
  }

  .info-block > * {
    width: 50%;
    object-fit: cover;
    height: 100%;
  }

  .animals {
    gap: 4em;
  }

  h1 {
    font-size: 1.4em;
  }

  .equipment-block_txt {
    width: 75%;
    gap: 1em;
    font-size: 0.73em;
  }

  .top-photo {
    height: 90vh;
  }

  .top-photo div.bg-image {
    height: 100%;
    background-size: 100%;
  }
}
