@font-face {
    font-family: 'Instrument Serif';
    font-style: normal;
    src: url('/fonts/InstrumentSerif-Regular.ttf')  format('truetype');
}
@font-face {
    font-family: 'Instrument Italic';
    font-style: italic;
    src: url('/fonts/InstrumentSerif-Italic.ttf')  format('truetype');
}

@font-face{
  font-family: "Alagreya";
  src: url('/fonts/AlegreyaSans-Regular.ttf')  format('truetype');
}



.instrument-serif-regular {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-style: normal;
}

.instrument-serif-regular-italic {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-style: italic;
}

.vegas-slide{
  margin:8px;
  overflow: hidden;
  border-radius: 16px;
  filter: brightness(0.5) saturate(0.8);
}

a{
 color: #1d5a1e;
}
#texts{
  position: absolute;
  bottom: 0px;
  left: 0px;

  background: white;
  padding: 20px 40px;
  border-radius: 0 16px 0 0;
}

@media (max-width: 840px) {
  /* на мобиле - возвращаем обратно в лаяут */
  #texts{
    position: initial;
    bottom: initial;
    left: initial;
  }
}
@media (min-width: 840px) and (max-height: 800px)  {
  #texts{
    height: 100%;
  }
}

#content{
  min-width: 100vw;
  min-height: 100vh;
  background: white;
}
@media (max-width: 840px) {
  #content{
    min-width: initial;
    min-height: initial;
    width: 100%;
    aspect-ratio: 6/4;
  }
}

#texts code{
  color: black;
}
#texts img{
  position: relative;
  right: -20px;
}

#texts{
  font-family: "Alagreya", serif;
  max-width: 420px;
  font-style: normal;
}
@media (max-width: 840px) {
  #texts{
  max-width: initial;
  }
}



#texts h1{
  font-family: "Instrument Serif", serif;
  font-style: normal;
  font-size: 40px;
}

@media (min-width: 840px) {
  #border-1{
    min-width: calc(100vw - 16px);
    min-height: calc(100vh - 16px);
    box-shadow:  0 0 0px 8px white;
    margin: 8px;
    border-radius: 8px;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 100;
  }
  #border-2{
    min-width: 100vw;
    min-height: 100vh;
    border: 8px solid white;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 100;
  }
}
@media (max-width: 840px) {
  #border-1{
    width: 100%;
    aspect-ratio: 6/4;
    box-shadow: inset 0 0 0px 8px white;
    border-radius: 24px;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 200;
  }
  #border-2{
    width: 100%;
    aspect-ratio: 6/4;
    border: 8px solid white;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 100;
  }
}
@media (max-width: 840px) {
  #corner-1, #corner-2{
    display:none;
  }
}
@media (min-width: 840px) and (max-height: 800px) {
#corner-3{
  position: absolute;
  top: 6px;
  right: -17px;
  rotate: 90deg;
  width: 16px;
  height: 16px;
}
#corner-3 svg{
  border-bottom: 4px solid white;
}
}
#corner-1 svg, #corner-2 svg{
  position: absolute;
  top: 0px;
  left: 0px;
}

#corner-1{
  position: absolute;
  top: -16px;
  left: 8px;
  width: 16px;
  height: 16px;
}
#corner-2{
  position: absolute;
  bottom: 8px;
  right: -16px;
  width: 16px;
  height: 16px;
}


lang-switch{
  opacity: 0.4;
  transition: 0.3s;
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 100;
}
lang-switch:hover{
  opacity: 1;
}




/* Кнопочка далее для картинок */
.next{
  opacity: 0.4;
  transition: 0.3s;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  color: black;
  display: flex;
  text-decoration: none;
  justify-content: center;
  align-items: center;
  box-shadow: rgba(60, 64, 67, 0.3) 0 1px 2px 0, rgba(60, 64, 67, 0.15) 0 2px 6px 2px;
  font-size: 20px;
  font-weight: bold;
  background: white;
  will-change: transform;

  user-select: none;
  z-index: 2;
}
.next svg{
  width: 20px;
}
@media (max-width: 840px) {
  .vegas-overlay{
    display: none !important;
  }
  .next{
    opacity: 0.2;
    position: absolute;
    font-size: 16px;
    width: 32px;
    height: 32px;
    bottom: 14px;
    right: 14px;
  }
.next svg{
  width: 14px;
}
}

.logo {
  display: flex;
  justify-content: center;
}
.logo img{
  width: clamp(100px, 33vw, 250px);
}

.next:hover{
  opacity: 1;
  scale: 0.95;
}
.next:active{
  opacity: 1;
  scale: 1.15;
}

