.gallery label[for] {
  cursor: pointer;
}

.gallery input[type="checkbox"] {
  display: none;
}

.gallery .lightbox, .grid {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
}

.gallery .lightbox {
  z-index: 1;
  min-height: 100%;
  overflow: auto;
  -webkit-transform: scale(0);
      -ms-transform: scale(0);
          transform: scale(0);
  -webkit-transition: -webkit-transform .5s ease-out;
          transition: transform .5s ease-out;
}
.gallery .lightbox img {
  position: fixed;
  top: 50%;
  left: 50%;
  max-width: 96%;
  max-height: 96%;
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.gallery input[type="checkbox"]:checked + .lightbox {
  -webkit-transform: scale(1);
      -ms-transform: scale(1);
          transform: scale(1);
}

.gallery input[type="checkbox"]:checked ~ .grid {
  opacity: .125;
}

.gallery .grid {
  position: relative;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
      -ms-flex-wrap: wrap;
          flex-wrap: wrap;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
      -ms-flex-align: start;
          align-items: flex-start;
  -webkit-align-content: flex-start;
      -ms-flex-line-pack: start;
          align-content: flex-start;
  z-index: 0;
  height: 100%;
  padding: 16px;
  overflow: auto;
  text-align: center;
  -webkit-transition: opacity .75s;
          transition: opacity .75s;
}
.gallery .grid .grid-item {
  display: inline-block;
  width: 25%;
  padding: 16px;
  opacity: .75;
  -webkit-transition: opacity .5s;
          transition: opacity .5s;
}
.gallery .grid .grid-item:hover {
  opacity: 1;
}
@media screen and (max-width: 1024px) {
  .gallery .grid .grid-item {
    width: 50%;
  }
}
@media screen and (max-width: 480px) {
  .gallery .grid .grid-item {
    width: 100%;
  }
}
.gallery .grid img {
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.popup-form .soglasie{
    color: #fff;
    text-align: center;
    font-size: 12px;
    margin-top: 20px;
}

/* header.main .logo {
 background:  url(../ekot.svg) center top no-repeat  

} */

.popup-form .soglasie a{
    color: #fff;
    text-decoration: underline;
    display: block;
    text-align: center;
}
.popup-form .soglasie a:hover{text-decoration: none;}

.form-block .soglasie{
    color: #fff;
    text-align: center;
    font-size: 12px;
    margin-top: 20px;
}

.form-block .soglasie a{
    color: #fff;
    text-decoration: underline;
    display: block;
    text-align: center;
}
.form-block .soglasie a:hover{text-decoration: none;}

/* Стр о нас */

.first_img img {
    border: none;
    width: 100%;
}

.center_block {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
}

.center_block_inner:first-of-type, .center_block_inner:last-of-type {
    width: 100%;
    max-width: 230px;
    position: relative;
}
.center_block_inner:first-of-type img, .center_block_inner:last-of-type img{
    position: absolute;
    top: -30px;
    border: none !important;
}
.center_block_inner {
    width: 100%;
    max-width: 600px;
}

.center_block_logo {
    display: block;
    margin: 10px auto 50px;
    border: none !important;
    width: 116px !important;
}

.center_block_inner p {
    font-size: 16px;
    line-height: 24px;
    text-align: center;
}

.last_block {
    margin-top: 20px;
}

.last_block p{
    font-size: 16px;
    line-height: 24px;
    text-align: center;
}

.article_item {
    background-color: #fff;
    box-shadow: rgb(0 0 0 / 30%) 0 2px 10px;
    display: block;
    margin-bottom: 30px;
}

.article_item .img_block {
    -webkit-background-size: cover;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    padding-bottom: 60%;
    transition: .3s ease-out;
}

.article_item:hover .img_block {
    opacity: .7;
}

.article_item .article_item_title {
    text-transform: uppercase;
    font-weight: bold;
    height: 44px;
    overflow: hidden;
    font-size: 13px;
}

.article_item .text_block {
    padding: 15px 20px;
}

@media screen and (max-width:1024px) {
    .center_block {
        -webkit-box-pack: space-evenly;
            -ms-flex-pack: space-evenly;
                justify-content: space-evenly;
    }
    .center_block_inner:first-of-type{
        -webkit-box-ordinal-group: 3;
            -ms-flex-order: 2;
                order: 2;
    }
    .center_block_inner:last-of-type  {
        -webkit-box-ordinal-group: 4;
            -ms-flex-order: 3;
                order: 3;
    }
    .center_block_inner {
        -webkit-box-ordinal-group: 2;
            -ms-flex-order: 1;
                order: 1;
        max-width: none;
        margin: 20px auto;
    }
    .center_block_inner:first-of-type img, .center_block_inner:last-of-type img {
        position: relative;
        top: 0;
    }
}
@media screen and (max-width:768px) {
    .article_item .article_item_title {
        height: auto;
    }
}

/* cookie policy message */
.cookie-message {
    position: fixed;
    z-index: 2147483647;
    right: 20px;
    left: 20px;
    margin: 0 auto;
    bottom: 30px;
    -webkit-transform: translateY(200%);
    -ms-transform: translateY(200%);
    transform: translateY(200%);
    max-width: 600px;
    background-color: #fff;
    border: 1px solid #fff;
    border-radius: 10px;
    -webkit-transition: 0.2s ease;
    -o-transition: 0.2s ease;
    transition: 0.2s ease;
    -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.01), 0 0 10px rgba(0, 0, 0, 0.25)!important;
            box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.01), 0 0 10px rgba(0, 0, 0, 0.25)!important;
}
@media (max-width: 767px) {
    .cookie-message {
        bottom: 15px;
    }
}
.cookie-message-inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 20px;
    line-height: 1.2;
    grid-gap: 20px;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}
@media (max-width: 499px) {
    .cookie-message-inner {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
    }
}
.cookie-message-text {
    font-size: 14px;
}
.cookie-message-text a {
    font-size: 14px;
    transition: all 0.2s ease;
    color: #1f1919;
    text-decoration: underline;
}
.cookie-message-text a:hover {
    text-decoration: none;
}
.js-cookie-message-confirm {
    cursor: pointer;
    transition: all 0.2s;
    height: 48px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    width: 172px;
    background: #005aca;
    color: #fff;
    border: 1px solid #005aca;
    -webkit-border-radius: 6px;
       -moz-border-radius: 6px;
            border-radius: 6px;
    padding: 16px 14px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}
.js-cookie-message-confirm:hover {
    background: #fff;
    color: #005aca;
}
/* /. cookie policy message */
