/*** SpectralSCExtraLight ***/
@font-face {
  font-family: SpectralSCExtraLight;
  src: url('/fonts/SpectralSCExtraLight-Italic.woff2') format('woff2');
  font-style: italic;
  font-weight: normal;
}
/*** SpectralSCLight ***/
@font-face {
  font-family: SpectralSCLight;
  src: url('/fonts/SpectralSCLight-Italic.woff2') format('woff2');
  font-style: italic;
  font-weight: normal;
}
/*** SpectralSC ***/
@font-face {
  font-family: SpectralSC;
  src: url('/fonts/SpectralSC-Italic.woff2') format('woff2');
  font-style: italic;
  font-weight: normal;
}
@font-face {
  font-family: SpectralSC;
  src: url('/fonts/SpectralSC-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: normal;
}
/*** SpectralExtraBold ***/
@font-face {
  font-family: SpectralExtraBold;
  src: url('/fonts/SpectralExtraBold-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: normal;
}

* {
  border: 0;
  margin: 0;
  padding: 0;
}

html, body, #app{
  position: relative;
  width: 100%;
  height: 100%;
}
body {
  background: #201A32;
}

.header{
  width: 100%;
  height: 125px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
}
.header img.logo {
  cursor: pointer;
  display: inline;
}
.header img.logo.mini {
  cursor: pointer;
  display: none;
}
.header .wrapper {
  padding: 24px 16px 16px 16px;
  display: table;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}
.header .wrapper > * {
  display: table-cell;
  vertical-align: middle;
}
.header-left {
  width: 400px;
  text-align: center;
}
.header-center {
  text-align: center;
  font-family: SpectralSCExtraLight, serif;
  font-style: italic;
  font-weight: normal;
  font-size: 40pt;
  color: #FFFFFF;
}
.header-right {
  padding: 0 16px;
  width: 400px;
  text-align: center;
  box-sizing: border-box;
}
.header button.connected-btn,
.header a.connected-btn {
  border-radius: 2px;
  border: #B2AED7 solid 1px;
  box-shadow: 1px 1px 2px 0 #FFFFFF;
  padding: 8px 32px;
  background-color: #201A32;
  color: #FFFFFF;
  font-family: SpectralSCLight, serif;
  font-style: italic;
  font-weight: normal;
  font-size: 16pt;
  cursor: pointer;
}
.header button.connected-btn:hover,
.header a.connected-btn:hover {
  border: #D5AB00 solid 1px;
}
.header button.connected-btn.active,
.header a.connected-btn.active{
  border: #D5AB00 solid 1px;
  color: #D5AB00;
}

.footer{
  width: 100%;
  height: 125px;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 999;
}

.footer .wrapper {
  padding: 20px 0;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}
.page.main-menu {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.5s ease;
  background: none;
}

.telegram-link {
  width: 40px;
}
.telegram-link.mini {
  width: 24px;
}
.page-item a img.telegram-link.full {
  padding-right: 16px;
}

.page.main-menu.active{
  opacity: 1;
  transition: opacity 0.5s ease;
}

.page.main-menu .wrapper {
  display: block;
  background-image: url("/img/menu-background.png");
  background-clip: content-box;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  text-align: center;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.page.main-menu .wrapper .map {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 16px;
  box-sizing: border-box;
}
.page.main-menu .wrapper .map svg,
.page.main-menu .wrapper .map img {

}

.page.main-menu .wrapper .map svg.normal {
  display: inline;
  width: auto;
  height: 100%;
  box-sizing: content-box;
}
.page.main-menu .wrapper .map svg.mini {
  display: none;
  width: 100%;
  height: auto;
  box-sizing: content-box;
}

.home-item {
  filter: drop-shadow(0 4px 4px #ffffff);
}
.main-menu svg.normal .menu-item text{
  font-family: SpectralSC, serif;
  font-style: italic;
  font-weight: normal;
  font-size: 18pt;
}
.main-menu svg.normal circle {
  fill: transparent;
}
.main-menu svg.normal path {
  filter: drop-shadow(0 1px 1px #ffffff);
}

form {
  margin: 0 auto;
  display: flex;
  width: 100%;
  max-width: 800px;
  flex-direction: row;
  flex-wrap: wrap;
}
.field {
  padding: 16px 8px;
  box-sizing: border-box;
}
.field.full-width {
  width: 100%
}
.field.half-width {
  width: 50%
}
.field.email {
  display: none;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="time"] {
  width: 100%;
}
.field input[type="date"],
.field input[type="time"] {
  padding-top: 15px;
  padding-bottom: 15px;
}
.field input[type="checkbox"]:checked {
  accent-color: #6C5EFF;
}
.field input {
  font-family: SpectralSC, serif;
  font-size: 16pt;
  font-style: normal;
  font-weight: normal;
  padding: 16px;
  box-sizing: border-box;
  background-color: #D9D9D9;
  border-radius: 6px;
}
.field.submit {
  display: flex;
  flex-direction: row;
  justify-content: right;
  align-items: flex-start;
}
form.has-errors .field.submit {
  justify-content: space-between;
}
.error-message {
  display: none;
  color:#D5AB00;
  font-family: SpectralSC serif;
  font-size: 16pt;
  font-style: normal;
  padding-right: 16px;
}
form.has-errors .error-message {
  display: block;
}
button[type="submit"] {
  color: #FFFFFF;
  background-color: #D5AB00;
  border: #FFFFFF solid 1px;
  box-shadow: 0 4px 4px 0 rgba(255, 255, 255, .25);
  font-family: SpectralSC serif;
  font-size: 18pt;
  font-style: normal;
  padding: 9px 52px;
  cursor: pointer;
}
button[type="submit"]:disabled {
  background-color: #B2AED7;
}

.agreement {
  font-family: SpectralSC serif;
  font-size: 14pt;
  font-style: normal;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
}
.agreement label {
  padding-left: 16px;
}
.agreement a {
  color: #6C5EFF;
  text-decoration: none;
}
.agreement span {
  text-align: left;
}
input[type="checkbox"] {
  -moz-transform: scale(2); /* Для Firefox */
  -ms-transform: scale(2); /* Для IE */
  -webkit-transform: scale(2); /* Для Safari, Chrome, iOS */
  -o-transform: scale(2); /* Для Opera */
}

input[type="checkbox"] {
  position: absolute;
  z-index: -1;
  opacity: 0;
}
/* вертикальное центрирование флажка и надписи к нему */
input[type="checkbox"]+label {
  display: inline-flex;
  align-items: center;
  user-select: none;
  cursor: pointer;
}
/* создаем поддельный чекбокс */
input[type="checkbox"]+label::before {
  content: '';
  display: inline-block;
  width: 1.3em;
  height: 1.3em;
  border: 2px solid #B2AED7;
  border-radius: 6px;
  margin-right: 0.5em;
  position: relative;
}
input[type="checkbox"]:checked+label::after {
  content: "✔";
  position: absolute;
  margin: 0.35em;
  color: #6C5EFF;
}
/* стили при наведении курсора на checkbox */
input[type="checkbox"]:not(:disabled)+label:hover::before,
input[type="checkbox"]:not(:disabled):not(:checked)+label:hover::before,
input[type="checkbox"]:focus:not(:disabled):not(:checked)+label:hover::before{
  border-color: #6C5EFF;
}
/* стили для чекбокса, находящегося в фокусе */
input[type="checkbox"]:focus+label::before {
  box-shadow: 0 0 0 0.2rem rgba(178, 174, 215, 0.25);
}
/* стили для чекбокса, находящегося в фокусе и не находящегося в состоянии checked */
input[type="checkbox"]:focus:not(:checked)+label::before {
  border-color: #B2AED7;
}
/* стили для чекбокса, находящегося в состоянии disabled */
input[type="checkbox"]:disabled+label::before {
  background-color: #e9ecef;
}

.main-menu .menu-item:hover text{
  fill: #D5AB00;
}
.main-menu .menu-item:hover {
  cursor: pointer;
}
.main-menu .menu-item:hover circle {
  stroke: #D5AB00;
}
.main-menu svg.normal .menu-item:hover path {
  filter: drop-shadow(0 1px 1px #D5AB00);
}

.main-menu .menu-item:active circle {
  stroke: #D5AB00;
}
.main-menu .menu-item:active path {
  fill: #D5AB00
}

.page {
  display: block;
  background-image: url("/img/menu-background2.png");
  background-clip: content-box;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  padding: 125px 0;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.page.active{
  background-color: #201A32;
  opacity: 1;
  transition: opacity 0.5s ease;
  z-index: 100;
}

.page .wrapper {
  /*background-color: rgba(32,26,50,.8);*/
  width: 100%;
  margin: 0 auto;
  height: 100%;
  box-sizing: border-box;
  position: relative;
  display: flex;
}
.back {
  display: block;
  font-family: SpectralSC, serif;
  font-style: normal;
  font-size: 18pt;
  line-height: 27px;
  vertical-align: middle;
  padding-bottom: 8px;
  text-underline: none;
  text-decoration: none;
  color: #11004C;
  background: none;
  cursor: pointer;
}
.back:hover circle {
  filter: drop-shadow(0 0 4px #D5AB00);
}
.page .wrapper .back {
  position: absolute;
  right: 32px;
  top: 32px;
}
.page h1,
.page h2 {
  font-family: SpectralSC, serif;
  font-size: 42pt;
  color: #FFFFFF;
  font-style: italic;
  font-weight: normal;
  display: flex;
  align-items: center;
  padding-bottom: 48px;
  text-align: left;
  justify-content: left;
}
.page:has(.empty-content.active) .page-item h1,
.page:has(.empty-content.active) .page-item h2{
  color: #D5AB00;
}
.page h1 img,
.page h2 img {
  padding-right: 24px;
}
.page .text {
  color: #11004C;
  padding: 0 150px;
  font-size: 24pt;
  font-family: SpectralSC, serif;
  font-style: normal;
  font-weight: normal;
}
.page .text p {
  padding-bottom: 24px;
}
.page .text b {
  font-weight: bold;
}
.page-item {
  background-color: rgba(32, 26, 50, .9);
  height: 100%;
  box-sizing: border-box;
  width: 40%;
  padding: 32px;
  text-align: center;
  overflow-y: auto;
}
.page-item button,
.page-item a {
  font-family: SpectralSC, serif;
  font-style: italic;
  font-weight: normal;
  font-size: 20pt;
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 17px;
  text-align: center;
  margin-bottom: 69px;
  background-color: rgba(0,0,0,.25);
  color: #FFFFFF;
  border-radius: 100px;
  border: #B2AED7 solid 1px;
  cursor: pointer;
  box-shadow: 0 1px 2px 0 #ffffff
}
.page-item button .mini,
.page-item a .mini {
  display: none;
}
.back.mini{
  display: none;
}
.page-item button .full,
.page-item a .full {
  display: inline-block;
}
.page-item h2 .full {
  display: inline;
}
.page-item h2 .mini {
  display: none;
}

.page-item a {
  text-decoration: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}
.page-item a img {
  padding: 0 4px;
}
.page-item button:hover,
.page-item a:hover {
  border: #D5AB00 solid 1px;
}
.page-item button.active,
.page-item a.active{
  border: #D5AB00 solid 1px;
  color: #D5AB00;
}
.page-text {
  height: 100%;
  width: 60%;
  box-sizing: border-box;
  padding: 32px;
  backdrop-filter: blur(5px);
  background-color: rgba(0,0,0,.8);
  overflow-y: auto;
}
.page.agreement-page .page-text {
  width: 100%;
  background-color: rgba(32, 26, 50, .9);
}
.page.agreement-page .page-text .page-text-wrapper {
  padding-top: 24px;
  padding-bottom: 24px;
}
.page-text .page-text-wrapper {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding-top: 128px;
}
.page-text .content {
  color: #FFFFFF;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  position: relative;
}
.page-text .content > div {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  opacity: 0;
  overflow-y: hidden;
  visibility: hidden;
  padding-bottom: 32px;
}
.page-text .content > div.active {
  opacity: 1;
  transition: opacity 2s ease;
  visibility: visible;
  overflow-y: visible;
  height: auto;
}
.page-text .content p {
  font-family: Spectral, serif;
  font-style: normal;
  font-weight: normal;
  font-size: 20pt;
  padding-bottom: 20px;
  line-height: 36px;
}
.page-text .content ul {
  list-style-type: circle;
  list-style-position: inside;
  font-family: Spectral, serif;
  font-style: normal;
  font-weight: normal;
  font-size: 20pt;
  padding-bottom: 20px;
  line-height: 36px;
}
.page-text .content p:last-child {
  padding-bottom: 0;
}
.page-text .content p b {
  font-family: SpectralExtraBold, serif;
  font-style: normal;
  font-weight: normal;
}

.page {
  color: #FFFFFF;
}
.page div > p {
  font-family: Spectral, serif;
  font-style: normal;
  font-weight: normal;
  font-size: 24px;
  padding-bottom: 20px;
  line-height: 37px;
  text-align: left;
}
.page div > p:last-child {
  padding-bottom: 0;
}
.page div > p b {
  font-weight: bold;
}
.page.about-page.active .empty-content.active {
  height: 100%;
}

@media (max-width: 1280px) {
  .header-center {
    font-size: 32pt;
  }
  .header-left {
    width: 300px;
  }
  .header-right {
    width: 300px;
  }
  .header button.connected-btn,
  .header a.connected-btn {
    font-size: 12pt;
  }
}
@media (max-width: 1024px) {
  .header-center {
    font-size: 32pt;
  }
  .header-left {
    width: 200px;
  }
  .header-right {
    width: 200px;
  }
  .header button.connected-btn,
  .header a.connected-btn {
    display: none;
  }
  .page h1, .page h2 {
    font-size: 20pt;
  }
  .page-item button,
  .page-item a {
    font-size: 16pt;
  }
  .page-item button .mini,
  .page-item a .mini {
    display: inline;
  }
  .page-item button img.mini,
  .page-item a img.mini {
    display: none;
  }
  .page-item button .full,
  .page-item a .full {
    display: none;
  }
  .page-item button img.mini,
  .page-item a img.full {
    display: inline;
  }
  .page-text .content p{
    font-size: 20pt;
  }
}

@media (max-width: 768px) {
  .header img.logo {
    cursor: pointer;
    display: none;
  }
  .header img.logo.mini {
    cursor: pointer;
    display: inline;
    height: 100%;
  }
  .header-left, .header-right {
    width: 100px;
  }
  .page.main-menu .wrapper .map {
    padding: 42px 24px;
  }
}
@media (max-width: 540px) {
  .page.main-menu .wrapper .map svg.normal {
    display: none;
  }
  .page.main-menu .wrapper .map svg.mini {
    display: inline;
  }
  .header {
    height: 80px;
  }
  .header-center {
    font-size: 16pt;
  }
  .header .wrapper {
    padding: 20px 16px 16px 16px;
  }
  .footer {
    height: 100px;
  }
  .footer .wrapper {
    padding: 8px 0;
  }
  .header-left, .header-right {
    width: 50px;
  }

  .page {
    display: none;
    padding: 80px 0 100px 0;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
  }
  .page.active {
    display: block;
  }
  .page .wrapper {
    display: block;
    background-color: rgba(32, 26, 50, .9);
    text-align: center;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-y: scroll;
    padding-bottom: 20px;
  }
  .page-item {
    height: auto;
    width: 100%;
    background: none;
    padding: 12px 32px 32px;
  }
  .page-item.has-text-content p{
    line-height: 48px;
    font-family: Spectral, serif;
    font-style: normal;
    font-weight: normal;
    font-size: 18pt;
  }
  .page-item:not(.has-text-content) {
    height: 128px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    padding: 4px 16px 0;
  }
  .page-item:not(.has-text-content) > * {
    width: 50%;
    height: 50%;
    padding: 12px 16px;
    box-sizing: border-box;
  }
  .page-item h2 .full {
    display: none;
  }
  .page-item h2 .mini {
    display: inline;
  }
  .page-item button img.mini,
  .page-item a img.mini {
    display: inline;
  }
  .page-item button img.mini,
  .page-item a img.full {
    display: none;
  }

  .page-item button,
  .page-item a{
    margin: 0;
    font-size: 16px;
    padding: 3px;
  }
  .page .page-item h1,
  .page .page-item h2 {
    justify-content: center;
    padding: 17px;
    text-align: center;
    color: #FFFFFF;
  }

  .page.electric-devices-page .page-item,
  .page.leaks-protection-page .page-item
  {
    justify-content: left;
    height: 66px;
  }
  .page.electric-devices-page .page-item h1,
  .page.electric-devices-page .page-item h2,
  .page.leaks-protection-page .page-item h1,
  .page.leaks-protection-page .page-item h2
  {
    width: 100%;
    height: 100%;
    justify-content: left;
  }
  .page.about-page .page-item h1,
  .page.about-page .page-item h2 {
    justify-content: left;
  }

  .page.climate-control-page .page-item,
  .page.gates-page .page-item,
  .page.advantages-page .page-item
  {
    justify-content: left;
    flex-direction: row;
  }
  .page.climate-control-page .page-item h1,
  .page.climate-control-page .page-item h2,
  .page.gates-page .page-item h1,
  .page.gates-page .page-item h2
  {
    width: 100%;
    justify-content: left;
  }

  .page-text {
    height: auto;
    width: 100%;
    display: block;
    background: none;
    padding: 12px 32px 32px;
  }
  .page-text .back {
    display: none;
  }
  .page-text .page-text-wrapper {
    padding: 0;
  }
  .page-text .content {
    position: unset;
    height: auto;
  }
  .page-text .content p {
    font-size: 16pt;
    line-height: 32px;
  }
  .page-text .content > div {
    position: unset;
    display: none;
  }
  .page-text .content > div.active {
    display: block;
  }
  .back.mini.invisible {
    visibility: hidden;
  }
  .back.mini{
    display: block;
    padding: 0;
  }
  .field.submit {
    display: block;
    text-align: right;
  }
  .field.submit .error-message {
    text-align: center;
    padding-bottom: 32px;
  }
}