.article {
    max-width: 860px;
    padding: 30px;
    margin: 0 auto 90px;
    background: #FFF;
    border-radius: 10px;
}

.article__divider {
    display: block;
    background: #F0F1F4;
    height: 1px;
    margin: 30px 0;
}

.article__info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 20px;
}

.article__date {
    font-size: 16px;
    line-height: 20px;
    font-weight: 500;
    color: #898FA1;
}

.article__image-wrap {
    display: flex;
    justify-content: center;
    margin: 0 0 20px;
}

.article__image {
    display: block;
    height: auto;
    max-width: 100%;
    border-radius: 10px;
}

.article__title {
    font-weight: 700;
    font-size: 36px;
    line-height: 50px;
    margin: 0 0 25px;
    color: #101010;
}

.article__author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 25px;
}

.article__author-image-wrap {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.article__author-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article__author-name,
.article__author-role {
    display: block;
}

.article__author-name {
    font-weight: 600;
    font-size: 18px;
    line-height: 25px;
    color: #101010;
}

.article__author-role {
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #898FA1;
}

.article__action-wrap,
.article__rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.article__action-wrap {
    justify-content: space-between;
    gap: 25px;
}

.article__rating {
    gap: 15px;
}

.article__views {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article__views-icon {
    width: 20px;
    height: 20px;
    background: #898FA1;
    -webkit-mask: url('../images/icons/show.svg') center / contain no-repeat;
    mask: url('../images/icons/show.svg') center / contain no-repeat;
}

.article__views-text {
    font-size: 16px;
    line-height: 20px;
    color: #898FA1;
}

.article__body {
    line-height: 1.6;
}

.article__body h1,
.article__body h2,
.article__body h3,
.article__body h4,
.article__body h5,
.article__body h6 {
    line-height: 1.4;
}

.article__body h1,
.article__body h2,
.article__body h3,
.article__body h4,
.article__body h5,
.article__body h6,
.article__body p {
    margin: 15px 0;
}

.article__body h1 {
    font-size: 3.2rem;
}

.article__body h2 {
    font-size: 2.5rem;
}

.article__body h3 {
    font-size: 2.2rem;
}

.article__body h4,
.article__body h5,
.article__body h6 {
    font-size: 1.6rem;
}

.article__body figure.table {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 30px 0;
    border: 1px solid #D3D9E9;
    scrollbar-width: thin;
    scrollbar-color: #BDC4D9 #F0F1F4;
}

.article__body figure.table::-webkit-scrollbar {
    height: 6px;
}

.article__body figure.table::-webkit-scrollbar-track {
    background: #F0F1F4;
    border-radius: 3px;
}

.article__body figure.table::-webkit-scrollbar-thumb {
    background: #BDC4D9;
    border-radius: 3px;
}

.article__body figure.table::-webkit-scrollbar-thumb:hover {
    background: #898FA1;
}

.article__body table.ck-table-resized,
.article__body figure.table table {
    border-collapse: collapse;
    width: 100%;
    font-size: 15px;
    line-height: 1.4;
}

.article__body table.ck-table-resized thead th,
.article__body figure.table table thead th {
    background: #142757;
    color: #FFF;
    font-weight: 600;
    padding: 5px;
    text-align: left;
}

.article__body table.ck-table-resized tbody td,
.article__body figure.table table tbody td {
    padding: 5px;
    border-width: 1px;
    border-style: solid;
    border-color: #D3D9E9;
    color: #101010;
    vertical-align: top;
}

.article__body table.ck-table-resized tbody tr:hover td,
.article__body figure.table table tbody tr:hover td {
    background: #EDF0F8;
}

.article__body table.ck-table-resized tbody td:first-child,
.article__body figure.table table tbody td:first-child {
    position: sticky;
    left: 0;
    background: #EDF0F8;
    color: #101010;
    font-weight: 600;
    min-width: 160px;
    z-index: 1;
}

.article__body table.ck-table-resized tbody tr:nth-child(even) td:first-child,
.article__body table.ck-table-resized tbody tr:hover td:first-child,
.article__body figure.table table tbody tr:nth-child(even) td:first-child,
.article__body figure.table table tbody tr:hover td:first-child {
    background: #EDF0F8;
}

.article__body p {
    color: #101010;
}

.article__body ol {
    list-style-type: decimal-leading-zero;
}

.article__body ul > li {
    list-style-type: none;
}

.article__body ul > li::before {
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    box-sizing: border-box;
    border-radius: 50%;
    border: 4px solid #435B97;
    position: absolute;
    right: calc(100% + 14px);
    top: 6px;
}

.article__body li {
    padding: 0 0 0 5px;
    position: relative;
}

.article__body li::marker {
    color: #435B97;
    font-weight: 700;
    font-size: 14px;
}

.article__body li:not(:last-child) {
    margin: 0 0 5px;
}

.article__body figure {
    margin: 30px auto;
}

.article__body figcaption {
    text-align: center;
    color: #898FA1;
    margin: 5px 0 0;
}

.article__body img {
    display: block;
    height: auto !important;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 10px;
}

.article__body a,
.article__body a:active,
.article__body a:link,
.article__body a:visited {
    color: #D1057E;
    text-decoration: underline;
}

.article__body a:focus,
.article__body a:hover {
    text-decoration: none;
}

.article__footer {
    margin: 15px 0 0;
}

.article__footer-text {
    font-size: 16px;
    line-height: 26px;
    color: #101010;
    margin: 0 0 30px;
}

.article__footer-link,
.article__footer-link:active,
.article__footer-link:link,
.article__footer-link:visited {
    color: #D1057E;
}

.article__footer-link:hover {
    text-decoration: none;
}

.article__auth-button-wrap {
    display: flex;
    gap: 15px;
    margin: 30px 0 0;
}

.article-social,
.article-social__list {
    display: flex;
    align-items: center;
}

.article-social {
    gap: 15px;
}

.article-social__list {
    gap: 10px;
}

.article-social__label {
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    color: #898FA1;
}

.article-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    padding: 5px;
    background: #F4F4F4;
    border: 1px solid transparent;
    transition: background .2s ease-in-out, border-color .2s ease-in-out;
    box-sizing: border-box;
    cursor: pointer;
}

.article-social__link:hover {
    background: white;
    border-color: #DADADA;
}

.article-social__icon {
    display: block;
    width: 25px;
    height: 25px;
    flex-shrink: 0;
}

.article-social__link.is-facebook .article-social__icon {
    background: #1778F2;
    -webkit-mask: url('../images/icons/facebook_white.svg') center / contain no-repeat;
    mask: url('../images/icons/facebook_white.svg') center / contain no-repeat;
}

.article-social__link.is-x .article-social__icon {
    background: #101010;
    -webkit-mask: url('../images/icons/x.svg') center / contain no-repeat;
    mask: url('../images/icons/x.svg') center / contain no-repeat;
}

.article-social__link.is-copy .article-social__icon {
    background: #142757;
    -webkit-mask: url('../images/icons/link.svg') center / contain no-repeat;
    mask: url('../images/icons/link.svg') center / contain no-repeat;
}

.article-social__link.is-copy {
    position: relative;
}

.article-social__tooltip {
    display: block;
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background: #516699;
    color: #FFF;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 5px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease-in-out;
}

.article-social__tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 12px;
    border: 5px solid transparent;
    border-top-color: #516699;
}

.article-social__link.is-copied .article-social__tooltip {
    opacity: 1;
}

.comments {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.comments__container {
    border-radius: 10px;
    background: #F4F4F4;
    padding: 20px;
    position: relative;
}

.comments__container.is-guest {
    background: #FFF;
}

.comments__container.is-guest .comments__form {
    pointer-events: none;
}

.comments__title {
    font-weight: 600;
    font-size: 22px;
    line-height: 30px;
    color: #142757;
    margin: 0 0 30px;
}

.comments__list {
    display: grid;
    gap: 15px;
    padding: 0;
    margin: 0;
}

.comments__item {
    border-radius: 10px;
    background: #FFF;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    list-style-type: none;
    border: 1px solid #D3D9E9;
}

.comments__author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments__author-image-wrap {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comments__author-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comments__author-name,
.comments__author-date {
    display: block;
}

.comments__author-name {
    font-weight: 600;
    font-size: 18px;
    line-height: 25px;
    color: #101010;
}

.comments__author-date {
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #898FA1;
}

.comments__text {
    font-size: 16px;
    line-height: 25px;
    color: #101010;
    margin: 0;
}

.comments__button {
    width: 100%;
    max-width: 210px;
}

.comments__form {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
}

.comments__field .gdn-textarea__field {
    min-height: 195px;
}

.comments-auth {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: rgba(255, 255, 255, .96);
}

.comments-auth__icon {
    display: block;
    width: 50px;
    height: 50px;
    margin: 0 0 20px;
    background: #D1057E;
    -webkit-mask: url('../images/icons/lock.svg') center / contain no-repeat;
    mask: url('../images/icons/lock.svg') center / contain no-repeat;
}

.comments-auth__text {
    font-weight: 600;
    font-size: 22px;
    line-height: 30px;
    text-align: center;
    color: #142757;
    margin: 0 0 25px;
}

.comments-auth__button-wrap {
    display: flex;
    gap: 15px;
}

.comments__result {
    position: absolute;
    bottom: calc(100% + 10px);
}

.comments__result.ok {
    color: #49AA0D;
}

.comments__result.error {
    color: #D01E1E;
}

@media (max-width: 767px) {
    .article {
        margin: 0 0 60px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .article {
        margin: 0 -15px 60px;
        padding: 20px 15px;
        border-radius: 0;
    }

    .article__title {
        font-size: 30px;
        line-height: 40px;
    }

    .article__auth-button {
        width: 100%;
    }

    .comments__container {
        padding: 0;
        background: transparent;
    }

    .comments__button {
        max-width: 100%;
    }

    .comments-auth__button,
    .comments-auth__button-wrap {
        width: 100%;
    }
}
