@font-face {
    font-family: 'Avenir';
    src: url('../fonts/AvenirNextCyr-Bold.woff2') format('woff2'),
    url('../fonts/AvenirNextCyr-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir';
    src: url('../fonts/AvenirNextCyr-Heavy.woff2') format('woff2'),
    url('../fonts/AvenirNextCyr-Heavy.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir';
    src: url('../fonts/AvenirNextCyr-Light.woff2') format('woff2'),
    url('../fonts/AvenirNextCyr-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir';
    src: url('../fonts/AvenirNextCyr-Medium.woff2') format('woff2'),
    url('../fonts/AvenirNextCyr-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir';
    src: url('../fonts/AvenirNextCyr-Regular.woff2') format('woff2'),
    url('../fonts/AvenirNextCyr-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair';
    src: url('../fonts/PlayfairDisplay-Bold.woff2') format('woff2'),
    url('../fonts/PlayfairDisplay-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

html {
    line-height: 1.15; /* 1 */
    -webkit-text-size-adjust: 100%; /* 2 */
}

body {
    margin: 0;
    background: #EFEFEF;
    font: 16px/1.56 'Avenir', Arial, sans-serif;
    color: #6E7276;
}

a {
    background-color: transparent;
}

p {
    margin: 0 0 20px;
}

.section p:last-child {
    margin: 0;
}

img {
    display: block;
    max-width: 100%;
}

.wrapper {
    max-width: 640px;
    margin: 80px auto;
    background: #fff;
    border-top: 5px solid #CB3033;
    position: relative;
}

.wrapper::before, .wrapper::after {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    width: 33%;
    height: 5px;
    background: #00385F;
}

.wrapper::after {
    left: auto;
    right: 0;
}

.header {
    padding: 10px 40px;
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    border-bottom: 2px solid #EFEFEF;
}

.logo svg {
    display: block;
}

.logo .logo-img {
    display: block;
    max-width: 300px;
    max-height: 100px;
}

.header dl {
    margin: 0;
}

.header dt {
    display: inline;
}

.header dd {
    display: inline;
    margin: 0;
}

.profile-info {
    padding: 38px 40px;
    border-bottom: 2px solid #EFEFEF;
    display: flex;
    justify-content: space-between;
}

.profile-info .col {
    display: flex;
    flex-direction: column;
}

.profile-info .col:first-child {
    width: 45%;
}

.profile-info .col:last-child {
    width: 55%;
}

.profile-info .col .profile-info__sales-rep-name {
    display: flex;
    flex-direction: row;
    text-align: right;
    justify-content: flex-end;
}

.profile-info dl {
    margin: 0;
}

.profile-info dt {
    color: #339EDA;
    font-size: 18px;
    line-height: 1.38;
}

.profile-info dd {
    margin: 0;
    color: #00385F;
    font: bold 28px/1.25 "Playfair", serif;
    text-transform: uppercase;
    word-break: break-word;
}

.profile-info .profile-info__sales-rep-contact {
    display: flex;
    flex-direction: column;
}
.profile-info .profile-info__sales-rep-contact dl {
    display: flex;
    justify-content: right;
}

.profile-info .profile-info__sales-rep-contact dt {
    margin-right: 5px;
    color: #339EDA;
    font-size: 18px;
    line-height: 1.38;
}

.profile-info .profile-info__sales-rep-contact dd {
    margin: 0 0 20px;
    color: #00385F;
    font: 500 18px/30px "Avenir", sans-serif;
    line-height: 1.38;
    text-transform: none;
}

.profile-info .profile-info__sales-rep-contact dl:last-child dd {
    margin: 0;
    white-space: nowrap;
}

.section {
    counter-increment: section-counter;
    padding: 80px 40px 40px;
    position: relative;
}

.section:first-of-type {
    padding-top: 40px;
}

.section:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(180deg, #000000 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0.03;
}

.section:first-of-type:before {
    display: none;
}

.section h2 {
    margin: 0 0 20px;
    color: #00385F;
    font: bold 32px/1.4 "Playfair", serif;
}

.section > h2:first-of-type {
    position: relative;
    padding-left: 35px;
}

.section > h2:first-of-type::before {
    content: counter(section-counter) '. ';
    color: #CB3033;
    position: absolute;
    top: 0;
    left: 0;
}
.section.uncounted > h2:first-of-type::before {
    content: '';
}

.section h2 + p {
    margin-bottom: 60px;
}

.section h2 + p + .note {
    margin-top: -40px;
}

.section .colored {
    color: #CB3033;
}

.section .critical-score {
    color: #CB3033;
}

.section .dangerous-score {
    color: #ED5928;
}

.section .warning-score {
    color: #ED5928;
}

.section .normal-score {
    color: #AED66E;
}

.section .secure-score {
    color: #50A241;
}

.section .centred {
    text-align: center;
}

.section .centred::before {
    display: none;
}

.section h3 {
    margin: 0 0 20px;
    color: #00385F;
    font: 500 18px/30px "Avenir", sans-serif;
}

.section h4 {
    margin: 0 0 20px;
    color: #6E7276;
    font: 16px/25px "Avenir", sans-serif;
}

.table-holder {
    max-width: 100%;
    overflow-x: scroll;
    margin: 0 0 20px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: #FAFAFA;
    padding: 16px 3px;
    color: #6E7276;
    font: bold 10px/1.33 "Playfair", serif;
}

.table th:first-child {
    border-radius: 5px 0 0 5px;
    text-align: left;
    padding-left: 20px;
    font: bold 10px/1.33 'Avenir', Arial, sans-serif;
}

.table th:last-child {
    border-radius: 0 5px 5px 0;
    text-align: right;
    padding-right: 20px;
}

.table td {
    padding: 13px 3px;
    color: #00385F;
    font-size: 10px;
    line-height: 1.33;
    font-weight: bold;
    border-bottom: 1px solid #E6E6E6;
    text-align: center;
    white-space: nowrap;
}

.table td:first-child {
    text-align: left;
    padding-left: 20px;
}

.table td:last-child {
    text-align: right;
    padding-right: 20px;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tfoot td {
    color: #CB3033;;
    font-size: 12px;
    line-height: 20px;
    border-top: 2px solid #CB3033;
    border-bottom: none;
    padding: 8px 3px;
    white-space: nowrap;
}

.table tfoot td:first-child {
    font-size: 16px;
}

.note {
    display: block;
    margin: 0 0 60px;
    font-size: 10px;
    line-height: 1.5;
}

.section > .note:last-child {
    margin: 0;
}

.total-details {
    background: #FAFAFA;
    border: 1px solid #E6E6E6;
    border-radius: 5px;
    padding: 17px 20px 14px;
    margin-bottom: 20px;
}

.total-details:last-child {
    margin-bottom: 0;
}

.total-details .headings {
    display: flex;
    justify-content: space-between;
    padding: 0 0 20px;
    margin-bottom: 15px;
    border-bottom: 1px solid #E6E6E6;
}

.total-details h2 {
    font-size: 20px;
    line-height: 2;
    margin: 0;
}

.total-details dl {
    display: flex;
    justify-content: space-between;
    line-height: 24px;
    padding: 13px 0;
    margin: 0;
}

.total-details dt {
    font: bold 16px "Playfair", serif;
}

.total-details dd {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
    color: #00385F;
}

.total-details dd span {
    color: #6E7276;
    font-size: 12px;
    font-weight: normal;
}

.score-block .headings {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 28px;
}

.score-block .headings dl {
    margin: 0;
}

.score-block .headings dt {
    display: inline-block;
    font: bold 16px "Playfair", serif;
    color: #6E7276;
}

.score-block .headings dd {
    margin: 0 0 0 10px;
    display: inline-block;
    font-size: 24px;
    font-weight: 500;
}

.score-block .headings strong {
    font-size: 16px;
    font-weight: 500;
}

.score-list {
    margin: 0;
    padding: 0 0 55px;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-column-gap: 10px;
    text-align: center;
    font-size: 10px;
    line-height: 20px;
    font-weight: 500;
    color: #6E7276;
}

.score-list li {
    position: relative;
    padding-top: 18px;
}

.score-list li::before {
    content: "";
    position: absolute;
    top: 0;
    height: 5px;
    left: 0;
    right: 0;
    border-radius: 5px;
}

.score-list li.critical-score::before {
    background: #CB3033;
}

.score-list li.dangerous-score::before {
    background: #ED5928;
}

.score-list li.warning-score::before {
    background: #ED5928;
}

.score-list li.normal-score::before {
    background: #AED66E;
}

.score-list li.secure-score::before {
    background: #50A241;
}

.score-list li.active-score {
    font-weight: bold;
}

.score-list li.active-score::before {
    height: 10px;
    top: -3px;
    border-radius: 10px;
}

.logos {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logos img {
    mix-blend-mode: luminosity;
    opacity: 0.5;
}

.add-lables.total-details dd {
    padding-right: 70px;
    position: relative;
}

.add-lables.total-details .fair,
.add-lables.total-details .poor,
.add-lables.total-details .very-poor,
.add-lables.total-details .good,
.add-lables.total-details .excellent {
    position: absolute;
    color: #fff;
    background: #EEA227;
    font-size: 12px;
    line-height: 20px;
    border-radius: 5px;
    right: 0;
    top: 2px;
    width: 60px;
    text-align: center;
}

.add-lables.total-details .poor {
    background: #CB3033;
}

.add-lables.total-details .very-poor {
    background: #b82602;
}

.add-lables.total-details .good {
    background: #adcc6c;
}

.add-lables.total-details .excellent {
    background: #6fad00;
}

.columns {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.columns + p {
    margin-top: -20px;
}

.creditscore-holder {
    width: 296px;
    height: 200px;
    background: url(../images/diagram.png) no-repeat top left/cover;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    text-align: center;
    position: relative;
}

.creditscore-holder dl {
    margin: 0;
}

.creditscore-holder dt {
    font-size: 18px;
    line-height: 20px;
}

.creditscore-holder dd {
    margin: 0;
    color: #00385F;
    font: bold 64px/80px "Playfair", serif;
}

.creditscore-holder .arrow {
    position: absolute;
    bottom: 37px;
    left: 0;
    width: 145px;
    height: 7px;
    background: url(../images/arrow02.png) no-repeat;
    transform-origin: right bottom;
    right: 50%;
    bottom: 39px;
}

.scoreinfo-area {
    font-size: 12px;
    line-height: 1.2;
    min-width: 230px;
}

.scoreinfo-area dl {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 0 0 6px;
}

.scoreinfo-area dl:first-child {
    align-items: center;
    padding-bottom: 15px;
}

.scoreinfo-area dt {
    padding: 0 5px 0 0;
}

.scoreinfo-area dd {
    margin: 0;
}

.lg-btn {
    display: block;
    margin: 0 auto;
    max-width: 340px;
    text-align: center;
    background: #339EDA;
    box-shadow: 0px 10px 20px -5px rgba(0, 0, 0, 0.25);
    border-radius: 5px;
    text-decoration: none;
    font: bold 24px/32px "Playfair", serif;
    color: #fff;
    padding: 12px;
    box-sizing: border-box;
}

.lg-btn:hover {
    opacity: .8;
}

.lg-btn.disabled {
    cursor: not-allowed;
    background: #E6E6E6;
}

.lg-btn.disabled:hover {
    opacity: 1;
}

.payments-block {
    padding-bottom: 20px;
    margin-top: -10px;
}

.payments-block * {
    box-sizing: border-box;
}

.payments-block dl {
    margin: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 12px;
    line-height: 20px;
}

.payments-block dt {
    width: 80px;
    padding-right: 20px;
    margin: 0;
    line-height: 16px;
}

.payments-block dd {
    width: calc(100% - 100px);
    margin: 0;
    color: #00385F;
    font-size: 18px;
    font-weight: bold;
}

.payments-block dd > div {
    background: #E6E6E6;
    border-radius: 10px 10px 10px 0;
    padding: 10px;
}

.payments-block dd em {
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    display: block;
}

.payments-block dl:last-child dt {
    color: #00385F;
    font-weight: bold;
}

.payments-block dl:last-child dd > div {
    background: #00385F;
    border-radius: 0 10px 10px 10px;
    color: #fff;
}

.advantage-blocks {
    padding: 0 0 40px;
}

.advantage-blocks:last-of-type {
    padding-bottom: 0;
}

.advantage-block {
    position: relative;
    padding: 0 0 0 50px;
    margin-bottom: 23px;

}

.advantage-block .icon {
    position: absolute;
    top: 0;
    left: 0;
}

.advantage-block:before {
    content: "";
    position: absolute;
    top: 47px;
    left: 14px;
    bottom: 0;
    background: #00385F;
    width: 2px;
}

.advantage-block:last-child:before {
    display: none;
}

.advantage-block h3 {
    margin-bottom: 10px;
}

.advantage-block p:last-child {
    margin-bottom: 0;
}

.picture {
    box-shadow: 0px 10px 20px -5px rgba(0, 0, 0, 0.25);
    margin-bottom: 20px;
    border-radius: 10px;
}

h3.border {
    padding-bottom: 20px;
    border-bottom: 2px solid #EFEFEF;
}

.numbered {
    margin: 0;
    padding: 0 0 20px 6px;
    list-style: none;
}

.numbered li {
    counter-increment: list-counter;
    position: relative;
    padding-left: 19px;
}

.numbered li::before {
    position: absolute;
    top: 0;
    left: 0;
    content: counter(list-counter) '. ';
}

@media only screen and (max-width: 640px) {
    .wrapper {
        margin: 0 auto;
    }

    .profile-info {
        display: block;
        padding: 20px;
    }

    .profile-info .col:first-child, .profile-info .col:last-child {
        width: 100%;
    }

    .profile-info .col:first-child {
        margin-bottom: 20px;
    }

    .profile-info .col .profile-info__sales-rep-name {
        flex-direction: row-reverse;
        text-align: left;
    }

    .profile-info .profile-info__sales-rep-contact {
        display: flex;
        flex-direction: column;
        text-align: left;
    }

    .profile-info .profile-info__sales-rep-contact dl {
        display: flex;
        flex-direction: column;
        justify-content: left;
    }

    .profile-info .profile-info__sales-rep-contact dl:last-child dd {
        white-space: normal;
    }

    .columns {
        display: block;
    }

    .creditscore-holder {
        margin: 0 auto 40px;
    }
}

@media only screen and (max-width: 540px) {
    .header {
        display: block;
        padding: 10px 20px;
        max-height: 130px;
        height: auto;
    }

    .logo {
        display: block;
        margin-bottom: 10px;
    }

    .section {
        padding: 40px 20px 20px;
    }

    .section:first-of-type {
        padding-top: 20px;
    }

    .total-details dl {
        display: block;
    }

    .total-details dd span {
        display: block;
    }

    .score-block .headings {
        display: block;
    }

    .add-lables.total-details .fair,
    .add-lables.total-details .poor,
    .add-lables.total-details .very-poor,
    .add-lables.total-details .good,
    .add-lables.total-details .excellent {
        display: inline-block;
        right: auto;
        margin-left: 10px;
    }

    .payments-block dl {
        display: block;
        margin: 0 0 10px;
    }

    .payments-block dt {
        width: auto;
        padding: 0;
        margin: 0 0 5px;
    }

    .total-details .headings {
        display: block;
    }

    .logos li {
        padding: 0 10px;
    }
}
