﻿body{
  background-color: #0a0a15;
  font-family: 'Play', sans-serif;
  color:#cfe6fe;
}

h1, h2, h3, h4, h5, h6{
  font-family: 'Roboto', sans-serif;
  line-height: 2rem;
}

dl, ul{
  margin:0;
  padding:0;
}

#wrapper{
  max-width: 1200px;
  min-width: 360px;
  background-color: inherit;
  margin: 15px auto auto auto;
  position: relative;
}

.custom_header {
  max-width: 100%;
}

#header-section{
  margin-bottom: 10px;
}


/*  Панель навигации*/

    .main-nav{
      display: flex;
      flex-direction: row;
      max-width: 100%;
      background-color: #497097;
      height:60px;
      align-items: center;
      justify-content: space-between;
    }

    .home-ref{
      max-height:100%;
      margin-left:32px;
    }

     .home-ref img{
       height: 55px;
     }

    .main-menu li{
      display:inline;
    }

    .main-menu a{
      padding: 9px 20px 9px 20px;
      border-left: 2px solid #49709700;
      border-right: 2px solid #49709700;
      font-family: 'Roboto', sans-serif;
      font-size: 35px;
      text-decoration: none;
      color: #090911;
      transition: all .2s ease-in 0s;
    }

    .main-menu a:hover,
    .main-menu li.active a{
      background-color: #274f75;
      color:#b8dafe;
      text-shadow: 1px 1px 2px #172939;
      border-left-color: #172939;
      border-right-color: #172939;
    }

    #lang-switch{
      margin-right: 12px;
    }

    .navbar-fixed{
      position: fixed;
      z-index: 12;
      top:0;
      max-width:1200px;
      margin-top: 0;
      width:100%;
    }

/*  Раздел контента*/

.content-area{
  display: flex;
  flex-flow: row nowrap;
  align-items: flex-start;
  max-width: 100%;
  margin-top: 15px;
  background-color: inherit;
}

.c-area-is-navbar-fixed{
  margin-top: 75px;
}

article{
  flex:5;
  background: #1c1c36;
  font-family: Play, sans-serif;
  font-size: 1.3em;
  line-height: 1.2em;
}

article a{
  color:#debf4f;
  text-decoration: none;
}


article a:hover{
  text-decoration: underline;
}

aside{
  flex: 2;
  background: #1c1c36;
  margin-left: 15px;
  color:#dfa948;
}


/*  Раздел футера*/
footer{
  max-width: 100%;
  padding: 30px;
  margin-top:15px;
  background-color: #497097;
}

footer #fwrapper{
  display: flex;
  justify-content:space-around;
  flex-flow:row wrap;
}

footer .footer-home-ref{
  display: flex;
  align-items: center;
}

footer .menu ul{
  list-style-type: none;
}

footer h3{
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
    font-size:1.5em;
    margin:0;
    color:#000c23;
}

footer .menu{
  padding-left: 0;
  margin-top:0px;
}

footer .menu li{
  padding-top: 10px;
}

footer .moduletable_menu{
  padding:0px 30px 15px 30px;
}

footer .moduletable_menu a{
  font-family: 'Roboto', sans-serif;
  font-size:1.5em;
  text-decoration: none;
  color:#000c23;
  font-weight:normal;
}

footer .menu a:hover{
  text-decoration: underline;
}

footer .soc-ref{
  text-align:center;
}

footer .soc-ref a{
  text-decoration: none;
}

footer .social-container {
    padding-top:10px
}

footer .social-link{
	display: inline-block;
	height: 90px;
	width: 81px;
	transition: background 0.1s ease-in-out;
	background-color: #000c23;
	mask-size: contain;
	mask-repeat: no-repeat;
	mask-position: center center;
  -webkit-mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center center;
}

footer .social-link:hover{
       background-color:#ffc320;
}

.footer2 a{
  color:#dbd80f;
  text-decoration: none;
}
.footer2 a:hover{
  text-decoration: underline;
}

/* контактная форма */
.custom-contactform{
  max-width:600px;
  margin:auto;
}

.custom-contactform input,
.custom-contactform textarea{
  display: block;
  background-color: #141426;
  color:#252547;
  width:95%;
  font-size: 1em;
  margin-bottom: 20px;
  padding: 10px;
}

.custom-contactform input:focus,
.custom-contactform textarea:focus{
  color:#cfe6fe;
}

input.uk-form-danger,
textarea.uk-form-danger{
  background-color: #501311;
  color:#c5130d;
  border-color:#c5130d;
}

.custom-contactform button{
  display: block;
  color:#1c1c36;
  background-color: #eeaf3b;
  margin:auto;
  border: none;
  max-width: 400px;
  font-size: 1.2em;
  padding: 10px;
  font-family: Roboto, sans-serif;
  }

.custom-contactform button:hover{
  outline: 2px solid white;
  text-decoration: none;
  outline-offset: 2px;
  }

/* "портфолио" */
.items-container{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.item{
  display:flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  max-width:400px;
  background-color: #2b3952;
  margin:10px;
  padding:15px 15px 15px 15px;
  justify-self:center;
}

.item a{
  color:#cfe6fe;
  text-decoration: none;
  line-height: 1.1em;
}

.item h2{
  display: -webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item a:hover{
  text-decoration: none;
}

.item dl{
  text-align: right;
  color: #8ca5d0;
}

.item-image img{
  object-fit: fill;
  max-width: 100%;
}

.item-info dt{
  display: none;
}

.label-warning{
  color:red;
}

/* иконки для описания */
.icon-calendar-add::before{
  font-family: 'DBB Font';
  content:"1";
}

.icon-calendar-modify::before{
  font-family: 'DBB Font';
  content:"4";
}

.icon-eye-open::before{
  font-family: 'DBB Font';
  content:"5";
}

/* страница тегов */
.tag-category{
  padding:2rem;
  margin: 2rem;
}

.tag-category .btn-toolbar{
  border: none;
}

.tag-category select{
  font-size: 1rem;
  font-family: Play, sans-serif;
}

.tag-category input{
  background: #f3f3f9;
  color: #0a0a15;
  width: 60%;
  padding: .3rem;
  border: 3px solid #0a0a15;
  font-size: 1rem;
  font-family: Play, sans-serif;
  margin:10px;
  flex:1 1 250px;
}

.btn, .inputbox {
  margin-left: 10px;
}

.btn{
  /* width: 40px; */
  height: 40px;
}



/* пагинация */


.pagination li a,
.pagination a{
  
  font-size: 1.2em;
  background-color: #253447;
  padding:10px;
  margin:0 5px 0 5px;
  white-space: nowrap;
}

.pagination li {
  display: inline;
}

.pagination a,
.pagination a:visited,
.pager a,
.pager a:visited{
  color:#ecc63f;
  text-decoration: none;
}

.pagination a:hover,
.pager a:hover{
  text-decoration: underline;
}

.pagination, 
.pagenav,
.pagenavigation{
  text-align:center;
  margin-top: 1rem;
  line-height: 4;
}

.pagination li.disabled{
  display: none;
}

.pagination li.active a{
  border: 2px;
  border-color:#ecc63f;
  border-style: solid;
}

.pagination-start a::before,
.pagination-start .pagenav::before,
.icon-angle-double-left::before{
  content:"<< ";
}

.pagination-prev a::before,
.pagination-prev .pagenav::before,
.previous::before,
.icon-angle-left::before{
    content:" < ";
}

.pagination-end a::after,
.pagination-end .pagenav::after,
.icon-angle-double-right::after{
  content:" >>";
}

.pagination-next a::after,
.pagination-next .pagenav::after,
.next::after,
.icon-angle-right::after{
    content:" > ";
}

/* Панель новостей */
.lastestnews{
  background: #1c1c36;
  max-width:350px;
  padding:1px 10px 10px 10px;
}

.lastestnews a{
  color:#cfe6fe;
  text-decoration: none;
}

.news-item{
  background-color: #2b3952;
  padding:10px;
  margin-top: 10px;
}

.item-cell{
  display: table-cell;
  vertical-align: middle;
  text-align: left;

}

.item-cell h3 {
  display: -webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow: hidden;
  text-overflow: ellipsis;
}


.news-item img{
  width:100px;
  margin-right: 10px;
}

.moduletable-news{
  text-align: center;
}

.moduletable-news>h2{
  color:#e0a03b;
  font-size: 1.5em;
  font-family: Roboto, sans-serif;
  margin: 25px 0 5px 0;
  padding: 10px;
}

.lastestnews p{
  color:#cfe6fe;
  font-size: 1.1em;
  font-family: Play, sans-serif;
}

/* стили основных страниц */

.container{
  max-width:810px;
  margin:auto;
  color:white;
  text-align: center;
  font-family: Roboto, sans-serif;
  padding:25px;
  background: #1c1c36;
}

.page-fragment{
  font-family: Play,sans-serif;
  background-color: #2b3952;
  font-size: 1em;
  margin: 20px 0 40px 0;
  padding: 20px;
  text-align: justify;
}

.page-fragment q{
    font-style: italic;
}

.paragraph1{
  margin:30px;
}

.page-fragment_cell1{
  display: table-cell;
  vertical-align:middle;
  padding-right:30px;
}

.page-fragment_cell2{
  display: table-cell;
  vertical-align: middle;
}

.extra_ref_block{
  text-align: center;
  padding:20px;
  margin-top:15px;
}

.extra_ref_block a{
  color:#1c1c36;
  text-decoration: none;
  padding: 10px 15px 10px 15px;
  background-color: #eeaf3b;
  white-space: nowrap;
  font-family: Roboto, sans-serif;
}

.extra_ref_block a:active{
  box-shadow: inset 1px 1px 3px black;
}

.extra_ref_block a:hover{
  border: 2px solid white;
  text-decoration: none;
}

/* 1 блок карточек */
.card_container{
  display: flex;
  align-items: stretch;
  flex-flow: row wrap;
  justify-content: center;
}

.card_item{
  border: 3px solid #121524;
  margin: 10px;
  padding:25px 15px 25px 15px;
  text-align: center;
  background-color: #212d41;
  width:200px;
}

.hl-text{
  color: #e0a03b;
  font-weight: bold;
}
/* 2 слайдер */
.slider {
  position: relative;
  overflow: hidden;
}

.slider__wrapper {
  display: flex;
  transition: transform 0.6s ease;
}

.slider__item {
  flex: 0 0 50%;
  max-width: 250px;
}

.slider_item_content{
  background-color: #212d41;
  border: 3px solid #121524;
  margin: 0px 5px 0px 5px;
  padding: 20px 15px 10px 15px;
  text-align: center;
  word-wrap: break-word;
  height:300px;
}

.no-wrap{
  word-wrap:normal;
}

.slider__control {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  color: #fff;
  text-align: center;
  opacity: 0.5;
  height: 100%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, .5);
}

.slider__control:hover,
.slider__control:focus {
  color: #fff;
  text-decoration: none;
  outline: 0;
  opacity: .9;
}

.slider__control_left {
  left: 0;
}

.slider__control_right {
  right: 0;
}

.slider__control::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background: transparent no-repeat center center;
  background-size: 100% 100%;
}

.slider__control_left::before {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E");
}

.slider__control_right::before {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E");
}

.secpage-container{
  background-color:#1c1c36;
  margin:auto;
  color:white;
  text-align: center;
  font-family: Roboto, sans-serif;
  padding:25px;
  clear:both;
}


.profile-lside{
  font-family: Play, sans-serif;
  font-size: 1.3em;
  float:left;
  width:38%;
  margin-right: 2%;
  background: #2b3952;
  text-align: left;
}

.profile-rside{
  font-family: Play, sans-serif;
  font-size: 1.3em;
  width:60%;
  background: #2b3952;
  text-align: left;
  float: left;
}

.profile-photo{
  max-width:100%;
}

.msg-ref-logo{
  height: 2em;
  transition: transform 0.3s ease;
  margin-right: 20px;
}

.msg-ref-logo:hover{
  transform: translateY(-.4em);
}

/* контакты */
.ref-card-container{
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}

.ref-card-container-vertical{
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}

.ref-card-item{
  flex:1 400px;
  border: 3px solid #121524;
  margin: 10px;
  padding:15px;
  background-color: #212d41;
}

.ref-card-item img{
  max-width:100px;;
}

.ref-card-cell-1{
  display: table-cell;
  vertical-align:middle;
  padding-right:30px;
  transition: transform 2s ease;
}

.ref-card-cell-1 img{
  transition: transform .5s ease;
}

.ref-card-cell-1 img:hover{
  transform: scale(1.1);
}

.ref-card-cell-2{
  display: table-cell;
  vertical-align: middle;
}


/* страница проекта */

.projectpage-wrapper{
  max-width: 100%;
  margin: auto;
  padding-top:10px;
  padding-bottom:10px;
}

.item-image{
  text-align: center;
}

.projectpage-wrapper h1{
  margin-top: 3rem;
}

.projectpage-wrapper p{
  text-align: justify;
}

.projectpage-wrapper img{
  max-width: 100%;
}

.projectpage-wrapper ul,
.projectpage-wrapper ol{
  padding:0;
  margin-left:2em;
}

.projectpage-wrapper .page-header,
.projectpage-wrapper [itemprop='articleBody'],
.productpage-wrapper{
  box-sizing: content-box;
  max-width: 900px;
  margin: auto;
  margin-top: 15px;
  padding-left:10px;
  padding-right:10px;
}

.projectpage-info-nested{
  max-width: 900px;
  margin: auto;
  margin-top:25px;
  margin-bottom:25px;
}

.projectpage-info{
  background-color: #2b3952;
  padding:10px;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.projectpage-info dd{
  display:inline;
  white-space:nowrap;
}

.projectpage-info dl{
  margin:auto;
  max-width: 900px;
}

.share{
  display: inline-block;
}

.thumb-wrap {
  position: relative;
  padding-bottom: 56.25%; /* задаёт высоту контейнера для 16:9 (если 4:3 — поставьте 75%) */
  height: 0;
  overflow: hidden;
}

.thumb-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-width: 0;
  outline-width: 0;
}
/* страница продукта */
.prod-summary-container{
  display: flex;
  flex-direction: row;
}

.prod-summary-logo-block{
  flex: 1 1 300px;
  margin-left: 2rem;
  max-width: 300px;
}

.prod-summary-desc-block{
  flex: 2 1 600px;
}

.prod-summary-desc-element{
  background-color: #2b3952;
  padding: 15px;
  margin-bottom: 1rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

.prod-extra-ref-block{
  text-align: center;
  padding-bottom:20px;
  margin-top:7px;
}

.prod-extra-ref-block a{
  border: 2px solid;
  border-color: #eeaf3b;
  margin-top: 15px;
  box-sizing: content-box;
  display: block;
  color:#1c1c36;
  text-decoration: none;
  padding: 10px 15px 10px 15px;
  background-color: #eeaf3b;
  white-space: nowrap;
  font-family: Roboto, sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prod-extra-ref-block a:hover{
  border: 2px solid white;
  text-decoration: none;
}

.gap{
  margin-top: 1.5em;
}
  /* страница, выводимая при ошибке */

  .error-header{
    background: #497096;
    max-width:100%;
    padding:3rem;
    margin-bottom: 1rem;
    color:#0a0a15;
  }

  .error-wrapper{
    background-color:#1c1c36;
  }

  .error-msg-block{
    max-width: 700px;
    margin:auto;
    color:white;
    text-align: center;
    font-family: Roboto, sans-serif;
    clear:both;
    padding:5rem 15px 25px 15px;
    font-size: 1rem;
    letter-spacing: .1em;
  }

  .error-message{
    color: #e0a03b;
    font-weight: bold;
    font-size: 2em;
  }


  /* скрытый блок навигации */
.toggle-nav{
  display: none;
  background-color: #497097;
  margin-top: 5px;
}

.toggle-nav li{
  display:block;
}

.toggle-nav a{
  display:block;
  padding: 24px 25px 24px 25px;
  font-family: 'Roboto', sans-serif;
  font-size: 2.2em;
  text-decoration: none;
  color: #090911;
  transition: all .2s ease-in 0s;
  text-align: center;
}

.toggle-nav  a:hover,
.toggle-nav  li.active a{
  color:#b8dafe;
  text-shadow: 1px 1px 2px #172939;
}

  /* метка для кнопки */
.nav-button{
  display: none;
  color:#090911;
  font-family: Roboto,sans-serif;
  font-size:3em;
  padding:0px 10px 5px 10px;
  cursor:pointer;
  margin-left: 15px;
  transition: all 0.3s;
}

.nav-button:after{
  content:"\2630";
}

#nav-toggle:checked~.main-nav>.nav-button:after{
  content:"\2715";
}

.nav-button:hover{
    color:#b8dafe;
    text-shadow: 1px 1px 2px #172939;
}


/* теги */
.label-info:before{
  font-family: 'DBB Font';
  content:"8";
}

.label-info {
	margin-right: 1em;
	white-space: nowrap;
}

.btn-group{
  display: flex;
  flex-flow: wrap;
  justify-content: flex-start;
  align-items: center;
}

.icon-search:before{
  font-family: 'DBB Font';
  content:"6";
  font-size:1.5rem;
}

  .icon-remove:before{
    font-family: 'DBB Font';
    content:"7";
    font-size:1.5rem;
  }

  /* Страницы раздела "прочие" */
  /* .btn-clipboard{} */

  .p-crypto-adr{
    overflow-wrap: anywhere;
  }

  /* Модальное окно */
  .modal{
    visibility: hidden;
    z-index: -1;
    opacity: 0;
    position: fixed;
    display: flex;
    align-items: center;
    justify-content:center;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    transition: all .09s ease-out;
  }
  .modal.show{
    visibility: visible;
    z-index: 5;
    opacity: 1;
  }

a.btn-close{
    background-color: #ec2c2c;
    border-color: #ec2c2c;
    color: #07071e;
    font-size: 1.25em;
  }

  .modal-window{
    position: relative;
    z-index: 2;
    width: 550px;
    background-color: #2b3952;
    padding:30px;
    margin: 15px;
    max-height: 50%;
    overflow-y: auto;
  }

  .modal .overlay{
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.7;
    z-index: 0
  }

  /* спойлер */

  .spoiler-container{
    margin: 20px 0 20px 0;
  }

  .spoiler-container .spoiler-btn{
    font-size: 4rem;
    text-decoration: none;
  }

  .spoiler-container .spoiler-btn::after{
    content: "+";
  }

  .show.spoiler-container .spoiler-btn::after{
    content: "-";
  }

  .spoiler-header{
    background-color: #2b3952;
    display:flex;
    align-items: center;
    justify-content: space-between;
    padding:0 15px 0 15px;
  }

  .spoiler-content {
    background-color: #2b3952;
    box-sizing: border-box;
  	padding: 0px;
  	margin-top: 10px;
  	/* display: none; */
  	height: 0;
  	overflow: hidden;
  	transition: padding 0.5s, opacity .5s ease;
  	opacity: 0;
  }

  .show .spoiler-content {
  	height: auto;
  	padding: 25px;
  	opacity: 1;
  }


/* медиазапросы */

@media screen and (max-width:1200px){
  .nav-button{
    display:block;
  }

  .home-ref {
    margin-left: 10px;
    display: inline;
  }

  .main-menu{
    display: none;
  }

  #nav-toggle:checked~.toggle-nav{
    display: block;
  }

  .news-item img{
    display: none;
  }

  .item-cell{
    display: block;
    text-align: center;
  }

}


@media screen and (max-width: 991px) {
  /* стили для больших планшетов - начало */
  .items-container {
      grid-template-columns: 1fr 1fr;
  }

  aside{
    display: none;
  }

  .content-area{
    display:block;
  }

  .container{
    padding:10px;
  }

}

@media screen and (max-width: 767px) {
/* стили для средних планшетов - начало */
  .items-container {
    display: block;
  }

  .item{
    margin:10px auto;
  }

  #lang-switch {
	margin-right: 16px;
  }

  .profile-lside, .profile-rside{
    float: none;
    width:100%;
  }

  .profile-rside{
    margin-top: 20px;
  }

  .secpage-container{
    padding: 10px;
  }

  .paragraph1{
    margin:10px;
  }

  .page-fragment_cell1{
    display:block;
    text-align: center;
  }

  .prod-summary-container {
  flex-direction: column-reverse;
  }

  .prod-summary-logo-block, .prod-summary-desc-block {
    margin: auto;
    flex-basis:auto;
  }
  .prod-summary-desc-block {
    width: 100%
  }

  }


@media screen and (max-width: 479px) {
/* стили для телефонов - начало */
  .custom_header{
    display: none;
  }

  .home-ref img {
    height: 60px;
  }

  #lang-switch {
	margin-right: 12px;
  }

  .page-fragment{
    padding:10px;
  }

  .container{
    padding: 10px 0 10px 0;
  }

  .ref-card-cell-1{
    display: none;
  }
}

@font-face {
    font-family: 'DBB Font';
    src: url('../fonts/font983.woff2') format('woff2'),
        url('../fonts/font983.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
