.document-header {
    position: relative;
    padding: 56px 24px;
}

.document-header::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: var(--color-white-secondary);
}

.document-header::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    left: 0;
    width: 1px;
    height: 100%;
    opacity: 0.3;
    background: repeating-linear-gradient(to bottom, var(--color-violet) 0 12px, transparent 12px 24px);
}

.document-header__title {
    margin: 0 0 24px;
    color: var(--color-black);
    font-size: 52px;
    font-weight: 700;
    line-height: 1.3;
}

.document-header__description {
    margin-bottom: 32px;
    color: var(--color-neutral-700);
    font-size: 18px;
    line-height: 1.4;
    font-weight: 500;
}

.document-header__description p:last-of-type {
    margin: 0;
}

.document-header__bottom {
    display: flex;
    align-items: center;
    gap: 24px;
}

.document-header__updated {
    color: var(--color-neutral-500);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    display: flex;
    gap: 3px;
}

.document-header__download {
    display: flex;
    align-items: center;
    padding-left: 24px;
    position: relative;
}

.document-header__download::before {
    content: "";
    display: block;
    width: 1px;
    height: 16px;
    background-color: var(--color-neutral-300);

    position: absolute;
    left: 0;
}


/* PDF icon */
.document-header__download .file--application-pdf {
    background-image: none;
}

.document-header__download .file {
    padding: 0;
}


/* BODY */
.document-content {
    padding: 46px 24px;

    display: flex;
    gap: 40px;
}

.document-sidebar {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 30px;

    width: 100%;
    max-width: 260px;
}

.document-sidebar__title {
    font-weight: 700;
    font-size: 18px;
    line-height: 132%;
    letter-spacing: 0%;
    color: var(--color-neutral-500);
}

.document-sidebar__list {
    padding-left: 0;

    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    position: relative;
}

.document-sidebar__list::before {
    content: "";
    display: block;
    width: 1px;
    height: 100%;
    background-color: var(--color-black);
    position: absolute;
    left: 3px;
    top: 20px;
}
 
.document-sidebar__item {
    list-style-type: none;
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
    padding-left: 32px;

    a {
        display: flex;
        padding: 12px 16px;
        color: var(--color-black);
        font-weight: 500;
        font-size: 16px;
        line-height: 100%;
        letter-spacing: 0%;
        transition: all .3s linear;
        border-radius: 4px;
        position: relative;
        cursor: pointer;

        text-decoration: none;
        position: relative;
    }

    a:hover {
        background: var(--color-neutral-100, #F2F2F2);
        color: var(--color-black);
    }

    a::after {
        content: "";
        display: block;
        width: 0;
        height: 1px;
        background-color: var(--color-black);
        position: absolute;
        left: 8px;
        right: 8px;
        bottom: -1px;
    }

    a:focus,
    a:active {
        background: transparent;
    }

    a:focus::after,
    a:active::after {
        width: calc(100% - 16px);
    }
}

.document-sidebar__item::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    transform: rotate(45deg);
    background-color: var(--color-black);

    position: absolute;
    left: 0;
}

.document-main .field--name-field-add-to-page-sidebar-menu {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

/* MAIN CONT BLOCK */
.document-main {
    flex: auto;

    .document-field-wrap {
        padding-block: 0 16px;
        padding-inline: 32px;
        border-inline: 1px solid var(--color-neutral-200, #E5E5E5);
        position: relative;

        .field {
            margin-bottom: 0;
        }

        > .field:last-of-type:not(:first-child) {
            margin-bottom: 16px;
        }

        .field__label {
            position: absolute;
            width: 0;
            height: 0;
            opacity: 0;
            overflow: hidden;
            pointer-events: none;
        }
    }

    .document-field-wrap:first-of-type {
        .document-main__title {
            margin-top: 0;
        }
    }

    .document-field-wrap:last-of-type {
        position: relative;
        padding-bottom: 24px;
        border-bottom: 1px solid var(--color-neutral-200);
    }

    .document-field-wrap:has(.document-main__title) {
        border-top: 1px solid var(--color-neutral-200);
        margin-top: 24px;
    }

    .document-field-wrap:first-of-type:has(.document-main__title) {
        margin-top: 0;
    }

    .document-field-wrap:has(.document-main__title)::before {
        content: "";
        display: block;
        position: absolute;
        left: 0px;
        top: -26px;

        width: calc(100%);
        height: 1px;
        background: var(--color-neutral-200);
    }

    .document-field-wrap:first-of-type:has(.document-main__title)::before {
        display: none;
    }
    
}


/* POINST TITLE & DESCR */
.document-main__title {
    padding-top: 16px;
    margin: 0;
    position: relative;

    color: var(--color-neutral-700);
    font-weight: 600;
    font-size: 24px;
    line-height: 120%;
    letter-spacing: 0%;

    p {
        margin-bottom: 0;
    }
}


.document-main .paragraph--type--points-description p {
    font-weight: 600;
    font-size: 16px;
    line-height: 154%;
    letter-spacing: 0%;
    font-weight: 600;

    color: var(--color-neutral-600);
}

/* .document-main .paragraph--type--points-description p:last-of-type {
    margin-bottom: 0;
} */

.document-main h3,
.document-main h4,
.document-main h5,
.document-main h6,
.paragraph--type--points-additional-title {
    color: var(--color-neutral-700);
    font-weight: 600;
    line-height: 128%;
    letter-spacing: 0%;
    margin: 0;
}


.document-main h3,
.paragraph--type--points-additional-title {
    font-size: 20px;
}

.document-main h4 {
    font-size: 18px;
}

.document-main h5 {
    font-size: 16px;
}

.document-main h6 {
    font-size: 14px;
}

/* IMPORTANT BLOCK */
.document-main .field--name-field-important-block {
    display: flex;
    gap: 12px;

    padding: 16px;
    background-color: var(--color-light-orange);
}

.document-main .field--name-field-important-block > .paragraph--type--important-label {

    .field--name-field-point-type-1-title {
        font-weight: 500;
        font-size: 16px;
        line-height: 120%;
        letter-spacing: 0%;
        color: var(--color-neutral-900);
        margin-bottom: 4px;
    }

    .field--name-field-point-type-1 {
        font-weight: 500;
        font-size: 14px;
        line-height: 140%;
        letter-spacing: 0%;
    }
}

.document-main .field--name-field-important-block::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: url('../../images/icons/info-circle.svg') no-repeat center;
    background-size: contain;
}

.document-main .field--name-field-important-block p:last-of-type {
    margin: 0;
}



/* POINTS LIST TYPE 1 */
.document-main .field--name-field-pointer-1.field {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 8px;
}

.document-main .paragraph--type--point-type-1 {
    display: flex;
    flex-direction: column;
    gap: 12px;

    p {
        font-weight: 500;
        font-size: 14px;
        line-height: 140%;
        letter-spacing: 0%;
        color: var(--color-neutral-600);
    }

    p:last-of-type {
        margin-bottom: 0;
    }

    .field--name-field-point-type-1-title {
        font-weight: 500;
        font-size: 18px;
        line-height: 140%;
        letter-spacing: 0%;
        color: var(--color-black);

        padding-left: 22px;
        position: relative;
    }

    .field--name-field-point-type-1-title::before {
        content: "";
        display: block;
        width: 0;
        height: 0;
        border-top: 5px solid transparent;
        border-left: 6px solid var(--color-black);
        border-bottom: 5px solid transparent;

        position: absolute;
        left: 6px;
        top: 8px;
    }

    .field--name-field-point-type-1 {
        padding-left: 22px;
    }
}


/* POINTS LIST TYPE 2 */
.document-main .field--name-field-point-type-2.field {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: var(--color-light-green);
    padding: 10px 16px;
    margin-bottom: 8px;
}

.document-main .paragraph--type--point-type-2 {
    display: flex;
    flex-direction: column;
    gap: 12px;    

    p {
        font-weight: 500;
        font-size: 14px;
        line-height: 140%;
        letter-spacing: 0%;
        color: var(--color-neutral-600);
    }

    p:last-of-type {
        margin-bottom: 0;
    }

    .field--name-field-point-type-1-title {
        font-weight: 500;
        font-size: 18px;
        line-height: 140%;
        letter-spacing: 0%;
        color: var(--color-black);

        padding-left: 22px;
        position: relative;
    }

    .field--name-field-point-type-1-title::before {
        content: "";
        display: block;
        width: 0;
        height: 0;
        border-top: 5px solid transparent;
        border-left: 6px solid var(--color-black);
        border-bottom: 5px solid transparent;

        position: absolute;
        left: 6px;
        top: 8px;
    }

    .field--name-field-point-type-1-title a {
        color: var(--color-black);
        text-decoration: none;
    }

    .field--name-field-point-type-1 {
        padding-left: 22px;
    }
}

/* POINTS LIST TYPE 3 */
.document-main .field--name-field-point-type-3.field {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: var(--color-light-blue);
    padding: 10px 16px;
    margin-bottom: 8px;
}

.document-main .paragraph--type--points-type-3 {
    display: flex;
    flex-direction: column;
    gap: 12px;    

    p {
        font-weight: 500;
        font-size: 14px;
        line-height: 140%;
        letter-spacing: 0%;
        color: var(--color-neutral-600);
    }

    p:last-of-type {
        margin-bottom: 0;
    }

    .field--name-field-point-type-1-title {
        font-weight: 500;
        font-size: 18px;
        line-height: 140%;
        letter-spacing: 0%;
        color: var(--color-black);

        padding-left: 22px;
        position: relative;
    }

    .field--name-field-point-type-1-title::before {
        content: "";
        display: block;
        width: 0;
        height: 0;
        border-top: 5px solid transparent;
        border-left: 6px solid var(--color-black);
        border-bottom: 5px solid transparent;

        position: absolute;
        left: 6px;
        top: 8px;
    }

    .field--name-field-point-type-1-title a {
        color: var(--color-black);
        text-decoration: none;
    }

    .field--name-field-point-type-1 {
        padding-left: 22px;
    }
}

/* TABLE */
.document-main .table {
    border: 1px solid var(--color-neutral-200, #E5E5E5);
    width: 100%;

    table-layout: fixed;
    margin-bottom: 0;
}

.document-main .table tr:first-of-type td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--color-neutral-200, #E5E5E5);
    background: var(--color-neutral-100);
    color: var(--color-neutral-500);

    font-weight: 500;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: 0%;

}

.document-main .table tr:first-of-type td:first-of-type {
    padding-left: 16px;
}

.document-main .table tr:first-of-type td:last-of-type {
    padding-right: 16px;
}

.document-main .table tr td {
    font-weight: 500;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: 0%;
    color: var(--color-neutral-900);
    padding-block: 16px;
}

.document-main .table tr td:first-of-type {
   color: var(--colour-neutral-700);
}

/* POINTS LIST TYPE 5 */
.document-main .field--name-field-point-type-5.field {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: var(--color-white-main);
    margin-bottom: 8px;
}

.document-main .field--name-field-point-type-5 > .field__item {
    counter-increment: points-type-5;
}

.document-main .paragraph--type--points-type-5 {
    display: flex;
    flex-direction: column;
    gap: 12px;

    p {
        font-weight: 500;
        font-size: 14px;
        line-height: 140%;
        letter-spacing: 0%;
        color: var(--color-neutral-600);
    }

    p:last-of-type {
        margin-bottom: 0;
    }

    .field--name-field-point-type-1-title {
        font-weight: 500;
        font-size: 18px;
        line-height: 140%;
        letter-spacing: 0%;
        color: var(--color-black);

        padding-left: 22px;
        position: relative;
    }

    .field--name-field-point-type-1-title::before {
        content: counter(points-type-5) ".";
        width: 22px;
        margin-right: 5px;

        position: absolute;
        left: 0px;
        top: 0px;
    }

    .field--name-field-point-type-1 {
        padding-left: 22px;
    }
}


/* DETAILS ELEMENTS */
.document-faq-item {
  margin-top: 0;
  margin-bottom: 12px;
  border: 1px solid var(--color-neutral-200);
}

.document-faq-item__question {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    font-weight: 600;
    font-size: 20px;
    line-height: 128%;
    letter-spacing: 0%;
    color: var(--color-black);
}

.document-faq-item__question::marker {
  content: "";
}

.document-faq-item__answer {
    padding: 0 20px 20px;

    p:last-of-type {
        margin-bottom: 0;
    }
}

.document-faq-item__arrow {
    flex: 0 0 9px;
    width: 9px;
    height: 18px;
    background-color: var(--color-neutral-500);
    mask: url('../../images/icons/faq-arrow.svg') center / contain no-repeat;
    -webkit-mask: url('../../images/icons/faq-arrow.svg') center / contain no-repeat;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.document-faq-item[open] .document-faq-item__arrow {
    background-color: #1C173B;
    transform: rotate(-90deg);
}



/* Tablet */
@media (max-width: 1199px) {
    .document-header {
        padding: 48px 40px;
    }

    .document-header__title {
        font-size: 44px;
    }

    .document-content {
        flex-direction: column;
        gap: 30px;
        padding-inline: 0;
    }

    .document-sidebar {
        max-width: 100%;
    }
}


/* Mobile */
@media (max-width: 767px) {
    .document-header {
        padding: 40px 20px;
        padding-inline: 1rem;
    }

    .document-header__title {
        margin-bottom: 20px;
        font-size: 36px;
    }

    .document-header__description {
        margin-bottom: 28px;
        font-size: 16px;
    }

    .document-header__bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .document-header__download {
        padding-left: 0;
        border-left: 0;
    }

    .document-main {
        .document-field-wrap {
            padding-inline: 1rem;
        }
    }

   
    /* TABLE */
    .document-main .table {
        display: block;
        width: 100%;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }

    .document-main .table tbody {
        display: table;
        width: 100%;
        min-width: 700px;
        table-layout: fixed;
    }

    .document-main .table td {
        overflow-wrap: break-word;
    }
}