 :root {
  --accent: #7B9D3D; /*#63A70A;*/
  --white: #fff;
  --black: #111;
  --green: #384823; /*#2A4634*/
  --gray: #E4E7E7;
  --dark-gray: #646464;
}

body {
  font-family: sans-serif;
  font-size: 14px;
  line-height: 1.45em;
  user-select: initial !important;
}

.splide__slide {
  display: flex;
}


.popup-image img {
  max-width: 100%;
  display: block;
}

.splide__slide img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: max(30vh, 300px);
}

.button:not(:empty),
.button-block a {
  position: relative;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  display: block;
  text-decoration: none;
  padding: 8px 24px;
  box-sizing: border-box;
  cursor: pointer;
  border: none;
  color: inherit;
  box-shadow: inset 0 0 0 2px currentColor;
  margin: 0;
}

.button-block strong a,
.button:not(:empty).primary {
  color: var(--white);
  box-shadow: none;
  background-color: var(--accent);
}

.button-block a:hover,
.button:not(:empty):hover {
  opacity: .75;
  color: inherit;
}

.button-block strong a:hover,
.button:not(:empty).primary:hover {
  color: var(--white);
}

.button:after {
  position: absolute;
  margin: auto;
  content: '';
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  height: 24px;
  width: 24px;
  background-image: url('../assets/loading.svg');
  background-size: 24px 24px;
  background-repeat: no-repeat;
  background-position: center;
  animation: rotate infinite 1s;
}

.button:not(.primary):after {
  filter: brightness(0%);
}

@keyframes rotate {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(-360deg);
  }
}

.button.loading {
  color: transparent !important;
  pointer-events: none;
}

.button.loading:after {
  display: block;
}

.age {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  color: var(--accent);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

.tour-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
}

#tour-player {
  flex: 1;
}

.zoom-buttons {
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  left: 16px;
  background: rgba(0, 0, 0, .75);
  z-index: 3;
}

.layout.menu-open .zoom-buttons {
  display: none;
}

.z-button {
  height: 42px;
  width: 42px;
  background-size: 24px;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}

@media (max-width: 700px), (max-height: 600px) {
  .layout:not(.map-open) .zoom-buttons {
    bottom: calc(146px + env(safe-area-inset-bottom, 0px));
  }
}

.z-button:hover {
  background-color: rgba(0,0,0,.5);
}

.z-button.zoom-in {
  background-image: url('../assets/zoom-in.svg');
}

.z-button.zoom-out {
  background-image: url('../assets/zoom-out.svg');
}

.zoom-buttons hr {
  border: 0;
  margin: 0 9px;
  border-bottom: 1px solid rgba(255,255,255,.5);
}

.layout {
  z-index: 2;
  top: 0;
  left: 0;
  position: absolute;
  width: 100%;
}

.layout main {
  display: flex;
  height: 100%;
  flex-direction: column;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--white);
}

.layout main:before {
  position: absolute;
  content: '';
  display: block;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--green);
  z-index: -1;
  opacity: .75;
}

.layout.menu-open,
.layout.map-open {
  height: 100%;
}

.layout.menu-open .mobile-menu {
  display: flex;
}

.layout > * {
  pointer-events: all;
}


header {
  flex: 0 auto;
  min-height: 0;
  padding: 16px 24px;
  padding-top: max(env(safe-area-inset-top, 0), 16px) !important;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  z-index: 1;
}

header nav {
  display: flex;
  align-items: center;
  margin: 0 -12px;
}
header nav > * {
  margin: 0 12px !important;
}

header nav.second {
  margin-left: auto;
}

.vk_mobile header nav.second {
  margin-left: 8px;
}

header .logo {
  width: 151px;
  height: 45px;
  cursor: pointer;
}

header .phone {
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  color: white;
}

header ul {
  list-style: none;
  padding: 0;
}

header nav {
  display: flex;
}
header nav.first {
  margin-left: 5%;
}

header nav > ul {
  display: flex;
  padding: 0;
  margin: -12px;
}

header nav > ul > li {
  position: relative;
  display: block;
}

header nav > ul > li > span {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
  padding: 10px 16px;
  cursor: pointer;
}

header nav > ul > li.list > span:after {
  display: block;
  content: '';
  width: 8px;
  height: 8px;
  margin-left: 8px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url('../assets/menu-arrow.svg');
}

header nav > ul > li {
  cursor: pointer;
  margin: 0 8px;
}

header nav ul ul {
  cursor: default;
  min-width: 300px;
  display: none;
  position: absolute;
  top: 40px;
  left: 0;
  background: #fff;
  padding: 16px 0;
  color: var(--black);
  max-height: calc(100vh - 150px);
  overflow-y: scroll;
}

header nav ul ul li {
  cursor: pointer;
  padding: 6px 16px;
}

header nav ul ul li:hover {
  background: var(--gray);
}

header nav > ul > li:hover > span {
  background: rgba(255,255,255,.25);
}

header nav > ul > li:hover > ul {
  display: block;
}

.layout.map-open header {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.layout.map-open header:before {
  position: absolute;
  content: '';
  display: block;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--green);
  z-index: -1;
  opacity: .75;
}

.layout.map-open.menu-open header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.layout.map-open.menu-open header:before,
.layout.map-open.menu-open .map {
  display: none;
}

.mobile-menu-btn {
  display: none;
  position: relative;
  height: 42px;
  width: 42px;
  cursor: pointer;
  margin-right: auto;
}

.vk_mobile .mobile-menu-btn {
  margin-right: 0;
}

.mobile-menu-btn:before,
.mobile-menu-btn:after {
  content: '';
  position: absolute;
  height: inherit;
  width: inherit;
  top: 0;
  left: 0;
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
  transition: all.5s ease;
}

.mobile-menu-btn:hover {
  background-color: rgba(255,255,255,.25);
}

.mobile-menu-btn:before {
  background-image: url('../assets/menu.svg');
}

.mobile-menu-btn:after {
  opacity: 0;
  transform: scale(0.2);
  background-image: url('../assets/close.svg');
}

.layout.menu-open .mobile-menu-btn:after {
  opacity: 1;
  transform: scale(1);
}

.layout.menu-open .mobile-menu-btn:before {
  opacity: 0;
  transform: scale(0.2);
}

.mobile-menu {
  min-height: 0;
  flex: 1;
  flex-direction: column;
  padding: 0 16px 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  display: none;
}

.mobile-menu nav.first {
  flex: 1;
  overflow-y: scroll;
  height: 100%;
  width: 100%;
  font-size: 18px;
  margin-bottom: 16px;
}

.mobile-menu nav.first ul {
  padding: 0;
  margin: 0;
}

.mobile-menu nav.first > ul > li > span {
  font-weight: bold;
}

.mobile-menu nav.first ul ul {
  padding-left: 16px;
}

.mobile-menu nav.first li {
  display: block;
}

.mobile-menu nav.first li span:active {
  background: rgba(255,255,255,.25);
}

.mobile-menu nav.second {
  margin: -8px 0;
}

.mobile-menu nav.second .button {
  margin: 8px 0;
}

.mobile-menu nav li span {
  padding: 10px;
  display: flex;
  align-items: center;
}

.mobile-menu nav li.list > span:after {
  display: block;
  content: '';
  width: 8px;
  height: 8px;
  margin-left: 8px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url('../assets/menu-arrow.svg');
}



@media (max-width: 1200px) {
  header .button.go-to-site {
    display: none;
  }
}

@media (max-width: 1024px) {
  header .logo {
    display: none;
  }
  header nav.first {
    margin-left: 0;
  }
}

@media (max-width: 820px) {
  header nav.first {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }

  header {
    padding: 16px;
  }
}

@media (min-width: 820px) {
  .mobile-menu {
    display: none !important;
  }
  .layout.menu-open {
    height: auto !important;
  }
}
@media (max-width: 460px) {
  header a.phone {
    display: none;
  }
}

.map {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  background-color: #FFFEF8;
  overflow: hidden;
}

.map #map {
  width: 100%;
  height: calc(100% + 32px);
  margin-bottom: -32px;
}

.map .fullscreen-close {
  display: flex;
  align-items: center;
  position: absolute;
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  right: 16px;
}

.map .fullscreen-close:before {
  content: '';
  display: block;
  height: 24px;
  width: 24px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url('../assets/fullscreen-close.svg');
  margin: -3px 8px -3px -8px;
}

.layout.map-open .map {
  display: block;
}

/*.layout.map-open main {*/
/*  display: flex;*/
/*}*/

.layout.map-open main header {
  position: relative;
  z-index: 3;
}

.pano-controls {
  display: flex;
  flex-direction: column;
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 1;
}

.mini-map {
  overflow: hidden;
  flex: 0 0 auto;
  position: relative;
  width: 235px;
  height: 235px;
  background-color: #FFFEF8;
  background-size: 235px auto;
  background-position: center;
}

#mini-map {

  pointer-events: none;
  position: absolute;
  top:0;
  left: 0;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  margin: -40px;
}

.mini-map-canvas {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  height: 100px;
  width: 100px;
}

.mini-map:after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  height: 8px;
  width: 8px;
  background: #FF0000;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.3);
}

.pano-info {
  width: 235px;
  box-sizing: border-box;
  padding: 16px;
  background: var(--white);
  margin-bottom: 12px;
}

.pano-info h2 {
  font-size: 17px;
  margin: 0;
  margin-bottom: 8px;
  font-weight: bold;
}

.pano-info p {
  margin: 0;
  font-size: 14px;
  color: var(--dark-gray);
}

.pano-info-content {
  margin-bottom: 16px;
}

.pano-info .button {
  width: 100%;
}


@media (max-width: 700px), (max-height: 600px) {
  .pano-controls {
    width: 100%;
    bottom: 0;
    right: 0;
    flex-direction: row;
    border-bottom: env(safe-area-inset-bottom, 0px) solid #fff;
  }

  .pano-info {
    width: auto;
    margin-bottom: 0;
    flex: 1;
  }

  .pano-info .button,
  .pano-info h2,
  .pano-info p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: calc(100vw - 130px - 16px * 2);
  }

  .mini-map {
    width: 130px;
    height: 130px;
  }
}

.popups-wrapper {
  position: absolute;
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.5);
  z-index: 3;
  overflow-y: auto;
  padding: 64px;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .popups-wrapper {
    padding: 0;
  }
  .popups-wrapper .popup {
    flex: 1;
  }
}

.popups-wrapper.open {
  display: flex;
}

.popup {
  display: flex;
  flex-direction: column;
  background: var(--white);
  width: 100%;
  min-height: min-content;
  max-width: 600px;
  margin: auto;
}

.popup-title {
  display: flex;
  padding: 24px;
  font-weight: 500;
  font-size: 20px;
  align-items: center;
}

.vk_mobile .popup-title {
  margin-right: 84px;
  padding-top: max(env(safe-area-inset-top, 0), 24px) !important;
}

.popup-title .title {
  display: block;
  line-height: 1.45;
  margin-right: 12px;
}

.vk_mobile .popup-title .title {
  font-size: 16px;
}

.popup-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.popup-annotation {
  border-left: 8px solid var(--accent);
  padding: 9px 12px;
  margin: 16px 0;
  font-style: italic;
}

.popup-annotation:empty {
  display: none;
}

.popup-close {
  margin-left: auto;
  background-image: url('../assets/popup-close.svg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  height: 24px;
  width: 24px;
  cursor: pointer;
  flex: 0 0 auto;
}

.popup-close:hover {
  opacity: .75;
}

.popup-close:active {
  transform: scale(.80);
}

.service-price {
  display: none;
  margin: 16px;
}

.service-price.display {
  display: block;
}

.service-price strong {
  font-size: 18px;
}

.popup-content {
  margin: 24px;
  flex: 1;
}


.popup-content hr {
  border: none;
  margin: 16px 0;
  border-bottom: 1px solid var(--black);
}

.popup-content p {
  margin: 16px 0;
      text-align: justify;
      text-indent: 2em;
}



.popup-close:hover {
  opacity: .75;
}

.popup-body {
  display: none;
}

.popup-body.active {
  display: flex;
}

.popup-image {
  display: none;
  position: relative;
}

.popup-image.display {
  display: block;
}

.popup-image img[src=""] {
  display: none;
}

.popup-list {
  width: calc(100% + 48px);
  display: table;
  padding: 0;
  margin: 0 -24px;
  border-spacing: 0;
}

.popup-list li {
  display: table-row;
}

.popup-list li:hover {
  background: var(--gray);
}

.popup-list li > * {
  padding: 8px;
  display: table-cell;
}

.popup-list li > *:first-child {
  padding-left: 24px;
}

.popup-list li > *:last-child {
  padding-right: 24px;
}

.characteristics-list-title.hidden {
  display: none;
}

.popup-list:empty {
  display: none;
}

.popup-content h3 {
  margin: 32px 0 16px;
  font-size: 20px;
  font-weight: bold;
}

.popup-image .age {
  position: absolute;
  bottom: 8px;
  right: 8px;
}

.popup-image .age:empty {
  display: none;
}

.popup-footer {
  background: var(--gray);
}

.popup-footer p {
  margin: 0;
  display: flex;
  padding: 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
}

.popup-footer p > * {
  margin: 12px;
}

.popup-service-list ul {
  padding: 0;
  margin: 0 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 24px;
  list-style: none;
}

@media (max-width: 700px) {
  .popup-service-list ul {
    grid-template-areas: 'a';
  }
}

.popup-service-list li {
  cursor: pointer;
  margin-bottom: 24px;
}

.popup-service-list li:hover strong {
  color: var(--accent);
}

.popup-service-list li strong {
  font-weight: 500;
  display: block;
  margin-top: 12px;
  font-size: 18px;
}

.service-image {
  position: relative;
}

.service-image .age {
  position: absolute;
  bottom: 8px;
  right: 8px;
}

.service-image img {
  display: block;
  width: 100%;
}

.mega-popup {
  padding: 16px;
  box-sizing: border-box;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  top: 0;
  left: 0;
  z-index: 100;
  background: var(--white);
  height: 100vh;
  width: 100vw;
  position: absolute;
}

.mega-popup.visible {
  display: flex;
}

.mega-popup h1 {
  font-size: 24px;
  line-height: 1.6em;
  margin: .5em 0;
}

.mega-popup p {
  text-align: center;
  margin: 16px 0;
}

@media (max-width: 699px) and (orientation: landscape) {
  .mega-popup.mobile-portrait {
    display: flex;
  }
}

.z-button:hover {
  background-color: rgba(0,0,0,.5);
}

.z-button.zoom-in {
  background-image: url('../assets/zoom-in.svg');
}

.fs-button {
  background-color: rgba(0,0,0,.5);
  position: absolute;
  width: 42px;
  height: 42px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
    background-position: center;
    background-repeat: no-repeat;
  background-image: url('../assets/fs.svg');
  cursor: pointer;
  display: none;
}

body.iframe .pano-controls, body.iframe main, body.iframe .zoom-buttons{
  display: none !important;
}

body.iframe .fs-button {
  display: block;
}

/*@media (max-width: 499px), (max-height: 599px)  {
  body.in-iframe .small-iframe {
    display: flex;
  }
}*/

/*@media (max-height: 550px) and (min-width: 700px){
  body.in-iframe .small-iframe {
    display: flex;
  }
}*/

