body {
    margin: 0 auto;
    background: #edeef0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    color: #555;
}

*, *:before, *:after {
    box-sizing: inherit;
}

.text-blue {
    color: #195b83;
}

.info-label {
    text-align: center;
    font-size: 0.7em;
    padding-bottom: 7px;
    color: #aeaaaa; margin-top:-13px;
}

.button {
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    background: #DDD;
    border: 1px solid transparent;
    text-align: center;
    text-decoration: none;
    color: rgba(0,0,0,0.5);
    -webkit-transition: background-color 0.3s ease-out;
    -moz-transition: background-color 0.3s ease-out;
    -ms-transition: background-color 0.3s ease-out;
    -o-transition: background-color 0.3s ease-out;
    transition: background-color 0.3s ease-out;
    font-size: 14px;
    text-transform: uppercase;
    height: 40px;
    line-height: 38px;
    border-radius: 5px;
    padding: 0px 10px;
    background-color: #2d84b9;
    color: #ffffff;
    font-weight: bold;
    display: inline-block;
    border-bottom: 3px solid #195b83;
}

.button.appeal {
    background: #e44a4a;
    border-bottom-color: #a03232;
}

.button.lenta {
    background: #e4a14a;
    border-bottom-color: #c28838;
}

.button:hover {
    background-color: #3E8FC0;
}

.button.appeal:hover {
    background-color: #e46252;
}

.button.lenta:hover {
    background-color: #c1914f;
}

.card {
    background: #fff;
    margin: 15px;
    position: relative;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.1);
    border-radius: 4px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex-flow: row wrap;
    position: relative;
    height: auto;
    word-wrap: break-word;
}

.card.content {
    display: block;
}

.adult .card.content {
    display: none;
}

.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.adult-content {
    display: none;
}
.adult .adult-content {
    display: block;
}

.adult-content p {
    display: block;
    margin:  50px 20%;
    box-sizing: border-box;
    text-align: center;
}

.adult-content > div {
    display: block;
    text-align: center;
}

.adult-content .button {
    width: 80px;
}

.card-ava {
    width: 100%;
    line-height: 0;
    position: relative;
    height: auto;
}
.card-ava img {
    width: 100%;
}

.card-panel {
    text-align: right;
}

.card-info {
    font-size: 14px;
    width: 100%;
}

.card-info p {
    margin-block-start: .5em;
    margin-block-end: .5em;
    line-height: 1.3em !important;
}

.card-segment {
    margin-bottom: 15px;
}

.card-title {
    background: rgba(0,0,0,0.02);
    font-size: 18px;
    font-weight: bold;
    border-top-right-radius: 4px;
    border-top-left-radius: 4px;
    border-bottom: 1px solid #EEE;
    padding: 15px;
}

.card-body {
    padding: 15px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex-flow: row wrap;
    position: relative;
    line-height: 1.5em;
}

.card-body p {
    line-height: 1.5em;
}

.article-box {
    display: block;
    width: 100%;
}
.article-meta {
    color: #888;
    text-align: right;
    margin-top: 20px;
    width: 100%;
}

.article-appeal {
    margin-top: 20px;
    text-align: right;
    width: 100%;
}

.image-box {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex-flow: row wrap;
    box-sizing: border-box;
    margin-bottom: 15px;
    flex-grow: 1;
    min-height: 250px;
}

.image-item {
    box-sizing: border-box;
    line-height: 0;
    border: 2px solid #FFF;
    background: #000;
    align-items: center;
    display: flex;
    border-radius: 5px;
    justify-content: center;
}

.image-box img {
    max-width: 100%;
    max-height: 250px;
    border-radius: 5px;
}

.comments-open {
    margin: 0 auto;
}

.card-meta-data {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    cursor: pointer;
}

.card-meta-data i {
    font-size: 18px;
}

/*Здесь стили более разумных, но все еще мобильных устройств. Android, iPhone  и так далее.*/
@media only screen and (min-width: 100px) {
    .image-item {
        width: 100%;
    }

    .button.open,
    .button.appeal {
        width: 100%;
    }
    .button.appeal {
        margin-top: 15px;
    }
}

/*Здесь стили более разумных, но все еще мобильных устройств. Android, iPhone  и так далее.*/
@media only screen and (min-width: 480px) {
    body {
        width: 100%;
    }
    .card {
        flex-flow: column;
    }
    .card-ava {
        width: 100%;
        margin: 0;
        height: 300px;
        overflow: hidden;
        position: relative;
    }
    .card-ava img {
        width: -webkit-fill-available;
        max-width: none;
        position: absolute;
        left: 0;
        right: 0;
        top: -50%;
    }

    .card-info h2 {
        margin-block-start: 1em;
    }

    .image-item {
        width: 100%;
    }
    .button.open,
    .button.appeal {
        width: 100%;
    }

    .button.appeal {
        margin-top: 15px;
    }
}

/*Планшеты в режиме portrait. @media only screen and (min-width: 768px) {*/
@media only screen and (min-width: 768px) {
    body {
        width: 85%;
    }
    .card {
        flex-flow: row wrap;
    }
    .card-ava {
        width: 100%;
        height: auto;
        margin: 0;
        height: 300px;
        overflow: hidden;
        position: relative;
    }
    .card-ava img {
        width: -webkit-fill-available;
        max-width: none;
        position: absolute;
        left: 0;
        right: 0;
        top: -50%;
    }

    .card-info h2 {
        margin-block-start: 1em;
    }

    .image-item {
        width: 50%;
    }

    .button.open,
    .button.appeal {
        width: auto;
    }

    .button.appeal {
        margin-top: 0;
    }
}

/*Планшеты в режиме landscape, нетбуки, ноутбуки, десктоп.*/
@media only screen and (min-width: 992px) {
    body {
        width: 70%;
    }
    .card {
        flex-flow: row wrap;
    }
    .card-ava {
        width: 30%;
        padding-right: 20px;
        height: auto;
        margin: 0;
        text-align: left;
    }
    .card-ava img {
        width: 100%;
        position: relative;
        top: 0;
    }
    .card-info {
        width: 70%;
    }

    .card-info h2 {
        margin-block-start: 0;
    }

    .image-item {
        width: 33.3333%;
    }

    .button.open,
    .button.appeal {
        width: auto;
    }

    .button.appeal {
        margin-top: 0;
    }
}

/*Десктоп с большими разрешениями, телевизоры.*/
@media only screen and (min-width: 1382px) {
    body {
        width: 55%;
    }
    .card {
        flex-flow: row wrap;
    }
    .card-ava {
        width: 30%;
        padding-right: 20px;
    }
    .card-ava img {
        width: 100%;
        position: relative;
        top: 0;
    }

    .card-info {
        width: 70%;
    }

    .card-info h2 {
        margin-block-start: 0;
    }

    .image-item {
        width: 33.3333%;
    }

    .button.open,
    .button.appeal {
        width: auto;
    }

    .button.appeal {
        margin-top: 0;
    }
}

.float-left {
    float: left;
}


.cm-header {
    background-color: #7aaee8;
    color: #6d6d6d;
    padding: 0px 10px;
    box-sizing: border-box;
    border-top-right-radius: 4px;
    border-top-left-radius: 4px;
    margin-bottom: 1px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cm-header-button {
    height: 50px;
    line-height: 50px;
    padding: 0 5px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: rgba(255,255,255,0.7);
    outline: none;
    text-decoration: none;
    margin-left: 5px;
}

.cm-header-button.back {
    margin-left: -5px;
}

.cm-header-button:hover {
    color: rgba(255,255,255,1);
}
.cm-header-fill {
    flex-grow: 1;
    flex-shrink:1;
    overflow: hidden;
    margin-left: 5px;
}

.cm-header-title,
.cm-header-name,
.cm-header-info {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: uppercase;
    font-weight: bold;
    color: #ffffff;
    font-size: 14px;
}

.cm-header-name {
    font-size: 14px;
    line-height: 20px;
    text-transform: none;
}
.cm-header-info {
    font-size: 11px;
    font-weight: normal;
    line-height: 20px;
    text-transform: none;
}



.cm-header-ava {
    height: 50px;
    min-width: 36px;
    line-height: 50px;
    padding: 7px 0;
    cursor: pointer;
    outline: none;
    text-decoration: none;
    margin-right: 5px;
    box-sizing: border-box;
}

.cm-header-ava img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    opacity: 0.8;
}



.cm-header .xx-tbutton {
    color: #ddd !important;
}

.cm-header .xx-tbutton i {
    color: #fff;
}

.cm-header .xx-tbutton:hover {
    color: #fff !important;
}

.cm-header .xx-tbutton:hover i {
    color: #fff;
}



.cm-title > div {
    height: 50px;
    line-height: 50px;
    font-weight: bold;
    color: #ffffff;
    font-size: 14px;
    box-sizing: border-box;
}

