%h2 {
    font-family: $fontcuprum;
    font-size: 25px;
    margin: 20px 0;
    font-weight: 600;
}

%h3 {
    font-family: $fontcuprum;
    font-size: 20px;
    margin: 20px 0;
    font-weight: 600;
}

h4 {
    font-family: $fontcuprum;
    font-size: 17px;
}

h6 {
    font-family: $fontcuprum;
    font-size: 15px;
}

h7 {
    font-family: $fontcuprum;
    font-size: 13px;
}

%p {
    font-family: $fontopensans;
    font-size: 15px;
    margin: 20px 0;

    img {
        /*float: left;
        margin-right: 20px;
        margin-bottom: 23px;
        margin-top: 6px;*/
        margin: 10px;
        max-width: 100%;
    }

    b,
    strong {
        font-weight: 600;
    }

    i,
    em {
        font-style: italic;
    }
}

%ul {
    margin: 0;
    padding: 0;
    list-style-type: none;

    li {
        padding-left: 12px;
        position: relative;
        font-size: 15px;
        font-family: $fontopensans;
        line-height: 1.5;
        margin-top: 10px;
        margin-bottom: 10px;

        &:before {
            content: '';
            display: block;
            position: absolute;
            left: 0;
            top: 10px;
            background: #265e86;
            border-radius: 50%;
            width: 6px;
            height: 6px;
        }
    }
}

%ol {
    margin: 0;
    padding: 0;
    list-style-type: none;

    > li {
        margin: 10px 0;
        counter-increment: step-counter;
        font-size: 15px;
        font-family: $fontopensans;
        color: #404040;
        line-height: 1.5;

        &:before {
            content: counter(step-counter) ".";
            font-size: 15px;
            font-family: $fontopensans;
            color: #265e86;
            font-weight: bold;
            padding-right: 5px;
        }

        ul, ol {
            margin-left: 40px;
        }
    }
}

%table {
    width: 100%;
    border-spacing: 0;
    border: 1px solid #e6e6e6;
    margin-top: 20px;
    max-width: 100%;

    @media (max-width: 768px) {
        display: block;
        overflow: auto;
    }

    thead td,
    th {
        background: #e6e6e6;
        font-size: 11px;
        font-family: $fontopensans;
        color: #004d7b;
        text-transform: uppercase;
        line-height: 1.2;
        padding: 17px 0 17px 12px;
        border: 1px solid #e6e6e6;
        text-align: left;

        &:nth-child(1) {
            //width: 19%;
        }

        &:nth-child(2) {
            //width: 23%;
        }
    }

    tbody td,
    td {
        font-size: 14px;
        font-family: $fontopensans;
        color: #404040;
        line-height: 1.714;
        border: 1px solid #e6e6e6;
        vertical-align: top;

        &:nth-child(1) {
            //width: 13%;
        }

        &:nth-child(2) {
            //width: 23%;
        }
    }

    // Remove paragraphs and headings from table content
    p, h1, h2, h3, h4, h5, h6 {
        margin: 0;
        padding: 0;
    }

    &.table-price {
        // Assume table with class "price" is two-col table with "name"=>"price" structure
        table-layout: fixed;

        th, td {
            &:nth-child(1) {
                width: 70%;
                text-align: left;
            }

            &:nth-child(2) {
                width: 30%;
                text-align: right;
            }
        }
    }
}

%blockquote {
    padding: 5px 25px 5px 60px;
    background: #ebebeb url('../img/cite.png') 20px 30px no-repeat;

    p {
        font-size: 25px;
        font-family: $fontcuprum;

        small {
            font-size: 15px;
        }
    }
}

img {
    max-width: 100%;
}

%all-tags {
    h2 {
        @extend %h2;
    }

    h3 {
        @extend %h3;
    }

    p {
        @extend %p;
    }

    ul {
        @extend %ul;
    }

    ol {
        @extend %ol;
    }

    table {
        @extend %table;
    }

    blockquote {
        @extend %blockquote;
    }
}