@import "https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&amp;subset=cyrillic";

html {
    font-family: Roboto, sans-serif;
    font-size: 14px;
    color: #000;
}

body {
    background-color: #f9f9f9;
    margin: 0;
    display: block;
}

* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

p {
    font-size: 1em;
    margin: 1em 0;
}

img {
    border-style: none;
}

a {
    background-color: transparent;
    text-decoration: none;
    font-weight: 500;
}

.container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: auto;
}

.card-container {
    position: relative;
    width: 375px;
    max-width: 100%;
    height: 700px;
    max-height: calc(100vh - 40px);
    background-color: #fff;
    box-shadow: 0 2px 30px 0 rgba(0, 0, 0, .08);
    border-radius: 10px;
    overflow: hidden;
    margin: auto;
    padding: 62px 0 0;
}

.card {
    width: 100%;
    height: calc(100% - 0px);
    position: absolute;
    /*top: 42px;*/
    top: 0;
    left: 0;
    overflow-y: scroll;
    padding: 0 0 24px;
}

.substrate {
    height: 200px;
    background-image: linear-gradient(135deg, rgb(109, 104, 203) 0%, rgba(109, 104, 203, 0.6) 100%);
}

.message {
    opacity: 1;
    position: relative;
    padding: 16px 55px 57px 24px;
    min-height: 168px;
}
.message>h2 {
    position: relative;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .08);

    font-weight: 500;
    font-size: 36px;
    line-height: 42px;
    margin: 0;
}

.message>p {
    font-size: 16px;
    line-height: 20px;
    margin: 8px 0 0;
    white-space: pre-line;

    position: relative;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.card-container .substrate {
    position: absolute;
    width: 100%;
    min-height: 168px;
}

.card-body {
    padding: 0 8px;
    margin: -41px 0 0;
}

.messengers {
    position: relative;
    width: 100%;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, .16);
    padding: 10px;
    margin: 0 8px;
    max-width: calc(100% - 16px);
}

.messengers-header {
    display: flex;
}

.logo>img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.title {
    display: -webkit-box;
    display: flex;
    width: calc(100% - 60px);
    padding: 0 0 0 12px;
    -webkit-box-align: center;
    align-items: center;
}

.title>div {
    max-width: 100%;
}

.title h1 {
    width: 100%;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.title p {
    width: 100%;
    font-size: 12px;
    line-height: 12px;
    color: rgba(0, 0, 0, .5);
    margin: 5px 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.messengers-buttons {
    margin: 10px 0 0;
}

.list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-weight: 500;
    font-size: 14px;
    line-height: 41px;
    text-align: center;
    text-transform: capitalize;
    letter-spacing: .02px;
}

.list:after {
    content: "";
    display: table;
    height: 0;
    clear: both;
}

.list>li.telegram-button {
    background-color: #1f98d4;
}

.list>li.viber-button {
    background-color: #665cac;
}

.list>li.fb-button {
    background-color: #0284ff;
}

.list>li:only-of-type {
    margin: 0;
}

.list>li {
    width: 100%;
    height: 60px;
    border-radius: 8px;
    user-select: none;
}

.list>li>a {
    display: block;
    color: #fff;
}

.list>li>a>img {
    display: inline-block;
    height: 60px;
    width: auto;
    vertical-align: top;
    margin: 0;
}

.list[count="2"]>li:first-of-type {
    margin: 0 8px 0 0;
}

.list[count="3"]>li:last-of-type {
    margin: 0;
}

.list[count="2"]>li {
    width: calc(50% - 4px);
    float: left;
    margin: 0;
}

.list[count="3"]>li {
    width: calc(33.33333% - 5.5px);
    float: left;
    margin: 0 8px 0 0;
}

.promo {
    position: relative;
    width: 100%;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.16);
    margin: 20px 8px 0 8px;
    max-width: calc(100% - 16px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-promo {
    width: 100%;
    border-radius: 6px;
}

.company-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}
