* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a {
  text-decoration: none;
  color: inherit;
}
a:visited {
  color: inherit;
}
:root {
  --mark-font: 'Travels', sans-serif;
  --regular-font: 'Euclid', sans-serif;
  --base-color: #56635c;
  --accent-color: #3e4d48;
  color-scheme: light dark;
}

@font-face {
  font-family: 'Travels';
  src: url("../fonts/TT_travels_next_trial/TT Travels Next Trial Variable.ttf") format('truetype-variations');
  font-weight: 100 900;
}

@font-face {
  font-family: 'Euclid';
  src: url("../fonts/Euclid_square/dehinted-Font_5.ttf") format('truetype-variations');
  font-weight: 400;
}

/* Меню */
.menu {
  /* position: absolute; */
  height: 80px;  
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  font-family: var(--mark-font);
  font-size: 20px;
  background: #56635cbb;
  color: #fff;
  border: 1px solid var(--accent-color);  
  z-index: 1;
}

.menu__active-button {
  background-color: var(--accent-color);
  color: #fff;
  transform: translate(0,-3px);
  box-shadow: 0 2px 2px 0px #666;
  
}
/*Страница Главная*/
.main-banner {
  background-image: url(/assets/images/index/main_banner.JPG);
  background-size: cover;  
  background-repeat: no-repeat;
  height: 90vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--mark-font);
  position: relative;
}
.main-banner::before {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #3556;
}

.main-banner__main-mark {
  position: relative;
  color: #fff;
  font-size: min(96px, 10vw);
  text-align: center;  
}


/*Страница Места*/
.places-banner {
  background-image: url(../images/places/places_banner.jpg);
  background-size: cover;  
  background-repeat: no-repeat;
  height: 90vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--mark-font);
  position: relative;
}
.places-banner::before {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #3556;
}

.places-banner__places-mark {
  position: relative;
  color: #fff;
  font-size: min(96px, 10vw);
  text-align: center;
}

.places-board__container {
  width:100%;
  max-width: 1440px;
  margin: 0 auto;
}

.places__header-mark {
  text-align: center;
  margin: 80px auto;
  font-size: 48px;
  font-family: var(--mark-font);  
  
}
.places-board {
  display: flex;
  width:100%;
  max-width: 1440px;
  gap: clamp(1vw, 30px, 5vw);
  margin: 0 auto;
}
a.places__card-link {
  display: block;
  flex: 1;
  max-width: 33%;
}
.places-board__card {
    border-radius: 10px;
    
    overflow: hidden;
    box-shadow: 0px 2px 3px #0006;
}
.places-board__card:hover {
  box-shadow: 0px 2px 6px #0006;
}
.places-board__card-image img {
  display: block;
  max-width: 100%;
}

.places-board__card-name {
  font-size: 36px;
  font-family: 'Travels';
  padding: 15px;
}
.places-board__card-info {
  padding: 0 15px 15px 15px;
  font-size: 18px;
  line-height: 1.3;
  font-family: var(--regular-font);
}

/* Страница места */

.place-banner {
  background-image: url(../../places/moroshka/images/moroshka_banner.png);
  background-size: cover;  
  background-repeat: no-repeat;
  background-position: center;
  height: 50vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--mark-font);
  position: relative;
}

.place-banner::before {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #3556;
}
.place-banner__mark {
  position: relative;
  color: #fff;
  font-size: min(96px, 10vw);
  text-align: center;
}

.place-menu {
  display: flex;
  max-width: 1440px;
  margin: 60px auto;
  gap: 30px;
}

.place-menu div {
  font-size: 24px;
  font-family: var(--mark-font);
  border: 1px solid var(--accent-color); 
  border-radius: 10px;
  padding: 5px 10px;
  cursor: pointer;
  transition: .3s;
}
.place-menu div:hover {
  transform: translate(0,-3px);
  box-shadow: 0 2px 2px 0px #666;
}
 
.container {
  width: 1440px;
  margin: 0 auto;
}
.place__photo {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.place__photo a {
  display: block;
  flex: 0 0 calc(33.333% - 16px); 
  height: 300px; 
 
}
.place__photo img { 
  width: 100%;
  object-fit: cover;
  height: 300px; 
  transition: .3s;
}

.place__photo img:hover {
  transform: scale(1.05);
}


/*JS стили для выборки Фото и т.д.*/

.blocks-none {
  display: none;
}

.photo__js {

}

.active-button {
  background-color: var(--accent-color);
  color: #fff;
  transform: translate(0,-3px);
  box-shadow: 0 2px 2px 0px #666;
}

.map-block__yandex-map__mobile {
  display: none;
}

/*Адаптив, медиа-запросы*/

@media (max-width: 768px) {
  .place__photo a {    
    flex: 0 0 100%;
  }
  .container {
    width: 100%;
    /* margin: 0 10px; */
  }
  .map-block__yandex-map {
    display: none; 
  }

  .place__map {
    width: fit-content;
    margin: 0 auto;
    
  }
  .map-block__yandex-map__mobile {
    display: block;
       
  }


    /*Карточки на странице "Места"*/
a.places__card-link {
  display: block;
  flex: 1;
  max-width: 100%;
  margin-left: 4vw;
  margin-right: 4vw;
}
    /*Страница конкретного места*/
.place-menu {
  display: flex;
  max-width: 1440px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 30px 10px;
  margin-top: 60px;
  gap: 10px;
}

.place-menu div {
  font-size: min(24px, 4vw);
  font-family: var(--mark-font);
  border: 1px solid var(--accent-color); 
  border-radius: 10px;
  padding: 5px 10px;
  cursor: pointer;
  transition: .3s;
}




}

@media (prefers-color-scheme: dark) {

  body {
    background-color: #fda;
  }

}