/* Общие установки */

* {
    margin: 0 0;
    padding: 0 0;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary {
    display: block;
}
html {
    height: 100%;
}
body {
    background-color: #fefefe;
    background-image: url('/templates/default/images/header-bg.jpg');
    background-position: 0 15px;
    background-repeat: repeat-x;
    font: 16px/18px Arial, sans-serif;
    color: #444;
    height: 100%;
}
h1, h2 {
    display: block;
    color: #5b55c5;
    padding: 10px 20px;
    margin-bottom: 20px;
}
p {
    /*display: block;*/
    margin: 15px 0;
    padding: 0 20px;
    text-align: justify;
    text-justify: inter-word;
}
a {
    color: #444;
    text-decoration: none;
}
a:hover {
    color: #999;
    text-decoration: underline;
}
a:active {
    color: #f00;
}
.in-text {
    color: #167225;
    text-decoration: underline;
}
fieldset {
    margin: 10px;
    padding: 10px;
    border: solid 1px #167225;
}
fieldset > legend {
    color: #167225;
    margin-left: 10px;
}
input[type="checkbox"] {
    display: none;
}
label {
    cursor: default;
    font-weight: normal;
    line-height: 10px;
    padding: 5px 0;
    vertical-align: middle;
    font-size: 14px;
}
 
label:before {
    content: " ";
    color: #000;
    display: inline-block;
    margin-right: 5px;
    position: relative;
    text-align: center;
    text-indent: 0px;
    width: 10px;
    height: 10px;
    background: #FFF;
    border: 1px solid #999;
    border-image: initial;
    vertical-align: middle;
}
input:checked + label:before {
    content: "\2713";
    font-weight: 600;
    font-size: 18px;
    color: #167225;
}
input:disabled + label:before {
    background: #eee;
    color: #aaa;
}
textarea::-webkit-input-placeholder, input::-webkit-input-placeholder {
    color: #ccc;
    font-style: italic;
    padding: 0 3px;
}
textarea::-moz-placeholder, input::-moz-placeholder {
    color: #ccc;
    font-style: italic;
    padding: 0 3px;
}
textarea:-moz-placeholder, input:-moz-placeholder {
    color: #ccc;
    font-style: italic;
    padding: 0 3px;
}
textarea:-ms-input-placeholder, input:-ms-input-placeholder {
    color: #ccc;
    font-style: italic;
    padding: 0 3px;
}
.clear {
    clear: both;
    /*display: none;*/
}
.warning {
  animation-duration: 2s;
  animation-name: fadein;
  animation-iteration-count: infinite;
  font-size: 2rem;
  /*padding-left: 2rem;*/
  color: #ff0000;
  font-weight: normal;
}
@keyframes warning {
  0% { opacity:0; }
  30% { opacity:1; }
  70% { opacity:1; }
  100% { opacity: 0;}
}
.error-img {
    display: block;
    margin: 0px auto !important;
}

.box {
    position: relative;
    margin-bottom: 5px;
    padding: 5px;
}
.bottom-line {
    border-bottom: dotted 1px #167225;
}
.name {
    display: block;
    overflow: hidden;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    vertical-align: middle;
    padding: 5px;
    margin: 0;
    margin-bottom: 5px;
    background-color: #167225;
}

/* Установка тела сайта */
.container {
    min-width: 1000px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100%;
    height: auto !important;
    height: 100%;
    display: flex;
    flex-direction: row;
}
.content {
    flex-grow: 1;
    margin-bottom: 20px;
}

/* Установки Header */
.header {
    position: relative;
    height: 150px;
}
.logo {
    position: absolute;
    top: 25px;
    left: 50px;
    background-image: url('/templates/default/images/hamcom-logo.png');
    background-repeat: no-repeat;
    background-position: top left;
    width: 150px;
    height: 100px;
}
.digital {
    position: absolute;
    top: 15px;
    left: 180px;
    background-image: url('/templates/default/images/digital.png');
    background-repeat: no-repeat;
    background-position: top left;
    width: 200px;
    height: 120px;
}
.flex-box {
    display: flex;
    flex-flow: row wrap;
}
.grow {
    flex-grow: 1;
}
.no-grow {
    flex-grow: 0;
}
.hide {
    display: none;
}
/*  Форма регистрации  */
.label-box {
    width: 30%;
    text-align: right;
    padding-right: 5px;
}
.input-box, .label-box, .describe-box {
    margin: 5px 0;
}
.describe-box {
    width: 85%;
    margin: 5px auto !important;
    font-size: 90%;
    font-style: italic;
}
.sendButton {
    padding: 0 25px;
}
.up-line {
    border-top: dotted 1px #167225;
    margin-top: 20px;
    padding-top: 5px;
    text-align: justify;
}

/* Сайдбар */
.sidebar {
    flex-grow: 0;
    margin: 5px 10px;
    padding: 5px;
    margin-bottom: 20px;
    background-color: #fefefe;
    border: solid 0.5px #167225;
}
.right-col {
    width: 190px;
}
.menu-item {
    display: block;
    padding: 2.5px 15px;
    margin: 1px;
    border: none;
    font-size: 15px;
    color: #167225;
    /*font-weight: 700;*/
    text-decoration: none;
    text-align: left;
    border-left: 2px solid #fefefe;
}
.menu-item:hover {
    background-color: #eee;
    color: #167225;
    text-decoration: none;
    border-left: 2px solid #167225;
}
.menu-item:active {
    color: #ff0000;
    text-decoration: none;
    border-left: 2px solid #ff0000;
}
.notactive, .top-menu a.notactive, .login a.notactive {
    color: #999;
    cursor: default;
}
.menu-item:hover[class*="notactive"], .menu-item:active[class*="notactive"] {
    color: #999;
    cursor: default;
    border-left: 2px solid #999;
}

/* Осовное поле */
.middleplace {
    margin: 0px 5px 5px 10px;
    padding: 5px;
    /*background-color: #f8f8f8;*/
    /*border: solid 1px #aaa;*/
}
.block-disign {
    background: #FBFBFB;
    box-shadow: 2px 5px 7px rgba(175,175,175,0.2);
}
.info-block {
    /*position: relative;*/
}
.next {
    text-align: center;
    margin: 20px 0;
}
.next > span {
    padding: 10px 30px;
    cursor: pointer;
    background-color: #5b55c5;
    color: #fefefe;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}
.info-block-item {
    width: 49%;
    /*border: 1px solid #cfcfcf;*/
    /*float: left;*/
    margin: 5px;
    overflow: hidden;
}
.news-height {
    min-height: 440px;
}
.info-block-item img{
    object-fit: scale-down;
    width: auto;
    height: 25vh;
}
.info-block-item-footer {
    position: relative;
    color: #aaa;
    font-size: 70%;
    padding: 2px 20px;
    border-top: 1px dotted #aaa;
}
.news-info-line {
    position: relative;
    color: #aaa;
    font-size: 70%;
}
.info-block-item-footer span, .news-info-line span {
    position: absolute;
    top: 0px;
    right: 0;
    padding: 2px 20px;
}
.news-info-line span {
    top: -20px;
}
.info-block-item h4, .blog-list-item h4 {
    margin: 5px 0;
    height: 30px;
    line-height: 30px;
    vertical-align: middle;
    overflow: hidden;
    background-color: #eee;
}
.blog-list-item {
    margin-bottom: 20px;
}
.blog-list-pic {
    float: left;
    width: 30%;
    padding: 10px 0;
}
.blog-list-pic img {
    object-fit: scale-down;
    width: 90%;
    height: auto;
}
.blog-list-main {
    padding: 10px;
    text-align: justify;
}
.blogs > a:hover {
    color: #f00;
    text-decoration: none;
}
.news:before, .blogs:before, .awards:before {
    font-size: 80%;
    font-weight: 400;
    padding: 0 10px;
    margin-right: 10px;
    color: #fff;
    display: inline-block;
    background-color: #167225;
}
.news:before {
    content: 'News';
}
.blogs:before {
    content: 'Blogs';
}
.awards:before {
    content: 'Awards';
}
.adaptive-frame {
    display: block;
    position: relative;
    width: 74%;
    padding-top: 43%;
}
.adaptive-frame iframe {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    margin: 0;
    top: 0;
    left: 0;
    border: none;
}
.single-news-block {
    padding-bottom: 10px;
}
.single-news-block h3{
    margin-bottom: 20px;
    height: 30px;
    line-height: 30px;
    vertical-align: middle;
    overflow: hidden;
    background-color: #eee;
}
.news-main {
    margin: 40px 0;
}

/* Articles */
.article {
    font-family: Helvetica, Verdana, Arial, sans-serif;
    font-size: 16px;
    /*border: solid 0.5px #167225;*/
    box-shadow: 5px 5px 10px 0px rgba(0,0,0,0.18);
    padding: 10px;
}
.article h3 {
    text-align: left;
    margin: 20px 0;
    padding: 10px 20px;
    background-color: #167225;
    opacity: 0.85;
    font-size: 140%;
    color: #fff;
}
.article h4 {
    margin: 10px;
    margin-left: 20px;
}
.article ul {
    margin-left: 40px;
}
.button {
    display: inline-block;
    padding: 5px 20px;
    background-color: #f00;
    color: #FFF;
    text-transform: uppercase;
    border-radius: 3px;
}
.button:hover {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
}
/* Дипломы */
#table-calls {
   text-align: center;
}
#table-calls table {
    width: 80%;
    border: solid 1px #5b55c5;
    padding: 1px;
    margin: 10px auto;
    border-collapse: collapse;
}
#table-calls tbody {
    background: #5b55c5;
}
#table-calls th {
    padding: 5px 30px;
    color: #fff;
}
#table-calls td {
    padding: 3px;
    background: #fff;
    border-bottom: 1px solid #5b55c5;
}
.issused-item {
    width: 10em;
    margin: 3px auto;
    padding: 2px;
    text-align: center;
}
.issused-item > span {
    font-weight: bold;
}
.inserted-table {
    margin: 10px auto;
    border-collapse: collapse;
    box-shadow: 0 0 10px #ddd;
}
.inserted-table th, .inserted-table td {
    text-align: center;
    padding: 5px 20px;
}
.inserted-table td {
    font-size: 90%;
}
.inserted-table th {
    background-color: #5b55c5;
    color: #fff;
}
.inserted-table tr {
    border-bottom: 1px solid #ddd;
    margin: 3px;
}

/* Футер */
.foot {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    /*border-top: 1px solid #5b55c5;*/
    background-color: #fefefe;
}
.foot-block {
    min-width: 1000px;
    max-width: 1600px;
    height: 15px;
    margin: 0 auto;
    position: relative;
    font-size: 11px;
    color: #999;
}
.foot-left {
    position: relative;
    padding-left: 10px;
}
.foot-right {
    position: absolute;
    top: 0;
    right: 0;
    padding-right: 10px;
}
.foot-links {
    font-size: 11px;
    color: #999;
    text-decoration: none;
}
.foot-links:hover {
    text-decoration: underline;
}
.foot-links:active {
    color: #ff0000;
}


/* Форма авторизации */
.authorization {
    display: block;
    width: 190px;
    margin: 0 auto;
    font-size: 14px;
}
.authorization input {
    margin: 2px 0;
    padding: 2px 3px;
    border-width: 1px;
    border-style: solid;
}
.authorization input[type="submit"] {
    width: 90px;
}
.authorization input[type="text"], input[type="password"] {
    width: 180px;
}
.authorization input::-webkit-input-placeholder {
    color: #ccc;
    font-style: italic;
}
.authorization input::-moz-placeholder {
    color: #ccc;
    font-style: italic;
}
.authorization input:-moz-placeholder {
    color: #ccc;
    font-style: italic;
}
.authorization input:-ms-input-placeholder {
    color: #ccc;
    font-style: italic;
}
/* input class error */
.input_error {
    border-color: #ff0000;
    color: #ff0000;
}
.error-box {
    font-size: 13px;
}
.error {
    color: #f00;
    font-weight: normal;
    font-style: italic;
}
.error:before {
    content: ' !! '
}

/* Форма DMR Ids */
.dmr-form {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    width: 400px;
    margin: 2px auto;
}
.dmr-form-left {
    flex-grow: 1;
    text-align: right;
    padding: 2px 5px;
}
.dmr-form-right {
    flex-grow: 0;
    width: 190px;
}
.dmr-form select {
    width: 190px;
    padding: 2px;
    border: solid 1px #999;
}
.dmr-form input[type="submit"] {
    padding: 2px 15px;
    border: 1px solid #999;
}

/* FRN Nodes Online table */
.frn-nodes-table {
    /*width: 60%;*/
    margin: 20px auto;
    border-collapse: collapse;
}
.frn-col1, .frn-col2, .frn-col3 {
    width: 34px;
    height: 34px;
    border-collapse: collapse;
}
.frn-server {
    background-image: url('/templates/default/images/server.gif');
    background-repeat: no-repeat;
    background-position: center;
}
.frn-server-line {
    background-image: url('/templates/default/images/server_line.gif');
    background-repeat: no-repeat;
    background-position: center;
}
.frn-server-t {
    background-image: url('/templates/default/images/server_t.gif');
    background-repeat: no-repeat;
    background-position: center;
}
.frn-server-l {
    background-image: url('/templates/default/images/server_l.gif');
    background-repeat: no-repeat;
    background-position: center;
}
.frn-room {
    background-image: url('/templates/default/images/room.gif');
    background-repeat: no-repeat;
    background-position: center;
}
.frn-room-t {
    background-image: url('/templates/default/images/room_t.gif');
    background-repeat: no-repeat;
    background-position: center;
}
.frn-room-l {
    background-image: url('/templates/default/images/room_l.gif');
    background-repeat: no-repeat;
    background-position: center;
}
.CrossLink {
    background-image: url('/templates/default/images/cross.gif');
    background-repeat: no-repeat;
    background-position: center;
}
.Gateway {
    background-image: url('/templates/default/images/node.gif');
    background-repeat: no-repeat;
    background-position: center;
}
.Client {
    background-image: url('/templates/default/images/client.gif');
    background-repeat: no-repeat;
    background-position: center;
}
.frn-info {
    line-height: 34px;
    text-align: left;
    vertical-align: middle;
    padding-left: 10px;
}
.frn-nodes-table .bold {
    font-weight: 900;
}

/* Cookie Alert */
#cookie-first-look {
    display: none;
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 99;
    background-color: #167225;
    height: 50px;
    width: 100%;
}
.cookie-box {
    min-width: 1000px;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    color: #fff;
}
.cookie-box-left {
    position: relative;
    float: left;
    line-height: 50px;
    vertical-align: middle;
    padding: 0 20px;
}
.cookie-box-left > a {
    color: #fff;
    text-decoration: underline;
}
.cookie-box-left > a:hover {
    color: #ff0000;
    text-decoration: none;
}
.cookie-box-right {
    position: relative;
    float: right;
    width: 250px;
    line-height: 50px;
    vertical-align: middle;
    text-align: center;
}
.cookie-box-right > a {
    padding: 5px 35px;
    margin: 0px auto;
    background-color: #eee;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
}

/* slide */
.slider {
    overflow: hidden;
    margin: 15px 20px;
}
.fadein {
  animation-duration: 2s;
  animation-name: fadein;
  animation-iteration-count: infinite;
  font-family: Arial Narrow;
  font-size: 25px;
  text-align: center;
  color: #ff0000;
  font-weight: bold;
  line-height: 0.9;
}
.violet {
    color: #5b55c5;
}

@keyframes fadein {
  0% { opacity:0; }
  50% { opacity:1; }
  100% { opacity: 0;}
}

@media (max-width: 360px) {
    .sidebar {
        display: none;
    }
    body {
        width: 100%;
        background-size: 1px 125px ;
    }
    .container {
        min-width: 360px;
        max-width: 360px;
    }
    .header{
        height: 125px;
    }
    .logo {
        left: 20px;
        height: 105px;
        background-size: 100%;
    }
    .digital {
        left: 150px;
    }
    .middleplace {
        margin: 0;
        padding: 0;
    }
    .article {
        padding: 10px 0;
    }
    .frn-nodes-table {
        width: 95%;
    }
    .frn-info {
        line-height: normal;
    }
    .cookie-box {
        min-width: 360px;
        max-width: 360px;
    }
}