html {
  scroll-behavior: smooth;
  overflow: hidden;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #FFFFFF;
  color: #303030;
  font-size: 1.6vh;
  line-height: 1.7vh;
  margin: 0;
  width: auto;

  /*border: 1px solid #303030; */ 
}

a {
  text-decoration: none;
}

.main-header {
  width: auto;
  height: 100vh;
  margin: 0;
  padding: 4vh 5vw 0 5vw;
  background-image: url("Photo/back-1.jpg");
  background-size: cover;
  position: relative;
  z-index: 200;

  /*border: 1px solid #e625bc;*/
}

.main-header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 5vh;

  /*border: 1px solid white;*/
}

h1 {
  font-family: 'Montserrat', sans-serif;
  color: #FFFFFF;
  font-size: 6.5vh;
  font-weight: 100;
}

.site-navigation { /*Тут есть вопросы касательно ширины блока*/
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 45%;

  padding: 0;
  margin: 0;
  list-style: none;

  /*border: 1px solid red;*/
}

.site-navigation a {
  color: #FFFFFF;
  font-size: 2.5vh;
}

.site-navigation a:hover {
  color: black;
}

.site-navigation-item:last-child {
  margin-right: 0;
}

.main-content {
  width: auto;
  margin: 0 auto;
  padding-left: 5vw;
  padding-right: 5vw;
  
  display: flex;
  justify-content: space-between;

  background-color: rgb(243, 236, 226);
 
  /*border: 1px solid #25e6e6;*/
}

.all-main {
  width: 60vw;
  margin: 0 auto;

  /*border: 1px solid #303030;*/
}

.gallery h2,
.main-footer h2,
.services h2,
.main-conditions h2 {
  margin: 0;
  margin-bottom: 5vh;
  font-size: 4vh;
  line-height: normal;
  text-align: center;
  text-decoration: underline;
  text-decoration-color: #30303080;
  text-decoration-thickness: 2px;
  text-underline-offset: 1vh;
  text-underline-position: under;
}

.gallery h2,
.services h2,
.main-conditions h2 {
  margin-top: 1vh;
}

.list-preview {
  height: 100vh;
  width: 55vw;
  margin: 0 auto;
  
 /*border: 1px solid #20d155;*/
}

.hidden {
  display: none;
}

.title {
  height: 4vh;
  font-size: 2.3vh;
  color: #30303080;
  position: sticky;
  top: 10vh;

  /*border: 1px solid #303030;*/
}

.gallery {
  padding: 0;
  margin: 0;
  height: 100%;

  /*border: 1px solid #303030;*/
}

.preview {
  /*width: 50vw;*/
  height: 90%;
  aspect-ratio: 5/5;
  margin: 0 auto; 
  padding: 0;

  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  row-gap: 1%;
  column-gap: 3%;

  /*border: 1px solid #af2525;*/
}

.preview-photo {
  height: 90%;
  width: 95%;
  /*aspect-ratio: 4/5.5;*/
  border: 4px solid rgb(243, 236, 226);
}

.preview-photo:hover {
  border: 4px solid  #30303080;
}

.preview-photo:active {
  filter: blur(3px);
}

.home-view {
  height: 100vh;
  width: auto;
  margin: 0;

  background-color: rgb(243, 236, 226);
  border: 5px solid rgb(243, 236, 226);

  position: relative;
  top: 0;
  z-index: 100;

}

.view {
  width: 63vw;
  height: 95vh;
  margin: 0 auto;
  margin-top: 2vh;

  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  /*border: 1px solid #303030;*/
  
}

.not-view {
  height: 95vh;
  position: absolute;
  top: 0;
  z-index: 100;

}

.home-active-photo {
  position: relative;
  height: 100%;
  width: 85%;

  /*border: 1px solid #f70a0a;*/
}

.active-photo {
  height: 100%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);  
}

.active-photo-horizontal {
  width: 100%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
  
.view-list {
  height: 95vh;
  width: 10vw;
  padding: 0;
  margin: 0;
  margin-left: 5vw;
  overflow: auto;
}


.view-list-item {    
  margin-bottom: 1vh; 
}

.view-list-item:last-child {
  margin-bottom: 0;
}

.view-list a {
  position: relative;
  display: block;
}

.view-list a::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.4);
}

.view-list a.active-item::before {
  background-color: transparent;
}

.view-list img {
  display: block;
  width: 100%;
}

.arrow-button {
  width: 6vh;
  height: 5vh;
  margin-left: 2vw;
  font-family: inherit;
  background-color: rgb(243, 236, 226);
  border: 2px solid #30303080;
  border-radius: 50%;
  
}

.arrow-button:hover {
  border:2px solid #303030;
  font-weight: 700;
}

.arrow-button:active {
  background-color: #30303080;
}

.main-content-nav {
  height: 25vh;
  position: sticky;
  top: 10vh;

  /*border: 1px solid #303030;*/
}

.main-content-site-navigation {
  padding: 0;
  margin: 0;
  list-style: none;
}

.main-content-site-navigation-item {
  margin-bottom: 2.5vh;  
}

.main-content-site-navigation-item a {
  color: #30303080;
  font-size: 2.5vh;
}

.main-content-site-navigation a:hover {
  color: black;
}

.list-services {
  width: 60vw;
  height: 95vh;
  margin: 0 auto;
  padding-bottom: 2vh;
  display: flex;
  justify-content: space-around;
  
  overflow: auto;

  /*border: 1px solid #159edd;*/
}

.services {
  width: 55vw;
  height: 100%;

  /*border: 1px solid #b7f1c3;*/
}

.services-item {
  width: 55vw;
  margin: 0 auto;
  
  display: flex;
  justify-content: center;

  /*border: 1px solid #303030;*/
}

.s-i-last{
  margin-top: 10vh;
}

.services-item-text {
  margin-right: 5%;
}

.services-item-photo img {
  width: 16vw;
}

.for-button {
  width: 100%;
  height: 3vh;
  margin: 0 auto;
  margin-bottom: 5vh;
 
  /*border: 1px solid #cc1a1a;*/
}

.order-button {
  margin-left: 45%;
  width: 10%;
  height: 100%;
  font-family: inherit;
  background-color: rgb(243, 236, 226);
  border-top-left-radius: 30% 50%;
  border-bottom-right-radius: 30% 50%;
  border-color: #30303080;

}

.order-button:hover {
  border-color: #303030;
  color: #303030;
  font-weight: 700;
}

.order-button:active {
  background-color: #30303080;
}

.main-conditions {
  width: 55vw;
  height: 75vh;
  margin: 0 auto;
  padding-top: 25vh;
  
  /*border: 1px solid #3b0aeb;*/
}

.main-conditions-content-list {
  width: 80%;
  margin: 0 auto;
  
 /* border: 1px solid #af2525;*/
}

.author-photo {
  width: 55vw;
  height: 50vh;
  margin: 0 auto;
  padding-top: 20vh;

 /*border: 1px solid #3dc91a;*/ 
}

.author-img {
  /*width: 25%;*/
  height: 70%;
  display: block;
  margin: 0 auto;
  margin-bottom: 1%;

  /*border: 1px solid #af2525;*/
}

.author-photo figcaption  {
  text-align: center;
}


.main-footer {
  display: flex;
  justify-content: space-between;
  padding: 2vh;
  background-color: rgb(243, 236, 226);

  /*border: 1px solid #303030;*/
}

.main-footer-left,
.main-footer-right,
.contacts-content {
  width: 30vw;
  height: 25vh;
  border-radius: 20px;
  margin-right: 25px;
  background-color: rgb(243, 236, 226);

  /*border: 3px solid #30303070;*/
}

.main-footer-right {
  margin-right: 0;
}

.contacts-content-items {
  width: 300px;
  margin: 0 auto;

 /*border: 1px solid #303030;*/
}

.contact-items,
.social-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-item {
  text-align: center;
}

.contact-item a {
  color: inherit;
}

.contact-item a:hover {
  text-decoration: underline;
}

.social-list {
  width: 50%;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;

  /*border: 1px solid #303030;*/
}

.social-list img {
  height: 4vh;
  width: 4vh;
  border: 2px solid rgb(243, 236, 226);
  border-radius: 50%;
}

.social-list img:hover {
  border: 2px solid #303030;
  border-radius: 50%;
  box-shadow: 0 0 2px 0 #30303080;
}

.social-list img:active {
  background-color: #30303080;
}