:root {
    --theme-color-1: #525F7F;
    --theme-color-2: #32325D;
    --theme-color-3: #3F3F67;
    --theme-color-4: #E4E8F9;
    --theme-color-5: #F2F4F9;
    --theme-color-6: #D9DEEB;
    --theme-color-7: #F3F5FC;
    --theme-color-8: #E9EBF2;
    --code-color-1: #D55E40;
    --code-color-2: #01B7B9;
    --current-link-color: #222EAF;
    --menu-border-color: #4A4BCE;
    --sidebar-width: 240px;
}

* {
    color: var(--theme-color-1);
}

code,
pre {
    font-family: inherit;
}

.documentation {
    padding: 187px 0 105px 0;
}

.documentation.documentation__position-modific{
    padding-top: 275px;
    position: relative;
}

.documentation__wrap {
    display: inline-block;
    width: calc(100% - var(--sidebar-width) - 20px);
}

.doc-notification{
    background-color: #F6F8FF;
    padding: 22px 35px;
    max-width: 816px;
    width: 100%;
    position: absolute;
    top: 130px;
    left: 50%;
    transform: translateX(-40%);
}

.doc-notification__content{
    position: relative;
    width: 100%;
    padding-left: 61px;
}

.doc-notification__content::before{
    color: #98A2B1;
    content: '!';
    display: flex;
    justify-content: center;
    align-items: center;
    width: 37px;
    height: 37px;
    border-radius: 50px;
    position: absolute;
    top: 50%;
    left: 0;
    font-weight: 700;
    font-size: 2rem;
    transform: translateY(-50%);
    background-color: var(--theme-color-4); 
}

.doc-notification__text{
    color: #98A2B1;
    max-width: 678px;
}

.doc-aside {
    position: sticky;
    top: 100px;
    display: inline-block;
    vertical-align: top;
    border-right: 1px solid var(--theme-color-4);
    width: var(--sidebar-width);
}

.doc-aside__ad_requirements {
    border-right: none;
}

.doc-aside__item {
    position: relative;
    padding-left: 13px;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2;
}

.doc-aside__item::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 0;
    display: block;
    width: 8px;
    height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg width='8' height='5' viewBox='0 0 8 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.385905 1.63722e-09L7.61412 0C7.95617 0 8.13042 0.471108 7.88517 0.750828L4.27107 4.87302C4.12263 5.04233 3.87739 5.04233 3.72889 4.87302L0.114783 0.750828C-0.130395 0.471108 0.0438561 1.71077e-09 0.385905 1.63722e-09Z' fill='%2398A2B0'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    -webkit-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    transform: rotate(-90deg);
}

.doc-aside__item:where(.isEmpty)::before {
    content: none;
}

.doc-aside__item:where(.open)::before {
    -webkit-transform: rotate(0);
    -ms-transform: rotate(0);
    transform: rotate(0);
}

.doc-aside__item:not(:last-child) {
    margin-bottom: 8px
}

.doc-aside__item.isEmpty.open :where(.link_anchor) {
    color: var(--current-link-color);
}

.doc-aside__btn {
    position: relative;
    display: block;
    border: none;
    padding-left: 13px;
    margin-left: -13px;
    width: 100%;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0);
    text-align: left;
    z-index: 1;
}

.doc-aside__btn:where(.link_anchor) {
    color: var(--theme-color-1);
}

.doc-aside__dropmenu {
    max-height: 0;
    overflow: hidden;
    -webkit-transition: .3s max-height ease;
    -o-transition: .3s max-height ease;
    transition: .3s max-height ease;
}

.doc-aside__item:where(.open) :where(.doc-aside__dropmenu) {
    max-height: none;
}

.doc-aside__sublist {
    padding-top: 7px;
}

.doc-aside__subitem {
    margin-left: 15px;
    font-size: 1.4rem;
    line-height: 1.5;
    font-weight: 400;
    color: var(--theme-color-1);
    -webkit-transition: .3s color linear;
    -o-transition: .3s color linear;
    transition: .3s color linear;
}

.doc-aside__subitem:not(:last-child) {
    margin-bottom: 10px;
}

.doc-aside__subitem:where(.doc-aside__subitem_current) {
    color: var(--current-link-color);
}

.doc-aside__subitem:not(.doc-aside__subitem_current):hover {
    color: var(--theme-color-2);
}

.doc-aside__subitem :where(a) {
    display: block;
    width: 100%;
    font-size: inherit;
    color: inherit;
}

.doc-aside__subitem_current:not(.isEmpty) :is(.link_anchor), .doc-aside__subitem_current.open :is(.link_anchor) {
    pointer-events: none;
}

.documentation__content {
    position: absolute;
    content-visibility: hidden;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    width: calc(100% - var(--sidebar-width));
}

.documentation__content:where(.open) {
    position: static;
    padding-left: 80px;
    content-visibility: visible;
    contain: style layout paint;
    width: 100%;
    visibility: visible;
    opacity: 1;
    pointer-events: all;
}

.documentation__section:not(:last-child) {
    margin-bottom: 40px;
}

.documentation__h2-title {
    margin-bottom: 20px;
    text-transform: uppercase;
}

.documentation__h3-title {
    margin-bottom: 30px;
}

.documentation__h4-title {
    margin-bottom: 15px;
}

.documentation__block:not(:last-child) {
    margin-bottom: 20px;
};

.documentation__text:not(:last-child) {
    margin-bottom: 20px;
};

/* code */
.code {
    border-radius: 10px 10px 0px 0px;
    padding: 0 20px 5px 20px;
    overflow: auto;
    background-color: var(--theme-color-5);
}
.code :is(.documentation__h4-title) {
    margin-left: -20px;
    margin-right: -20px;
    padding: 10px 20px;
    width: calc(100% + 40px);
    background-color: #E8ECF4;
}
.code:not(:last-child) {
    margin-bottom: 30px;
}

.code__string {
    display: inline-block;
    padding: 5px;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    white-space: nowrap;
}

.code__string-colored {
    color: var(--code-color-2);
}

.code__string_json {
    color: var(--code-color-1);
}

.html-page{
    position: relative;
    margin-top: 1rem;
    padding: 0.625rem 3.5rem 0.625rem 1.25rem;
    background-color: #E8ECF4;
    border-radius: 0.5rem;
}

.code__copy{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0.6rem;
    cursor: pointer;
    height: 2.2rem;
}

.code__copy svg{
    fill: var(--theme-color-1);
    width: 100%;
    height: 100%;
}

.code__copy:hover svg{
    fill: var(--code-color-1);
}

.html-page code,
.html-page pre{
    overflow-x: auto;
    padding-bottom: 0.3125rem;
    color: var(--code-color-1);
}

.html-page code::-webkit-scrollbar-thumb,
.html-page pre::-webkit-scrollbar-thumb{
    border-radius: 6px;
    background: #c6c6d98a;
    border: 1px solid #fff;
}

.ordered-list,
.unordered-list {
    padding-left: 30px;
    margin: 20px 0 30px 15px;
}

.unordered-list {
    list-style-type: disc;
}

.documentation__accordeon-content .unordered-list{
    margin-top: 0;
}

.ordered-list :where(ul, ol),
.unordered-list :where(ul, ol) {
    margin-top: 15px;
}

.ordered-list :where(li):not(:last-child),
.unordered-list :where(li):not(:last-child) {
    margin-bottom: 5px;
}

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

.documentation__t-wrap:not(:last-child) {
    margin-bottom: 20px;
}

.documentation__table :where(td, th) {
    border: 1px solid var(--theme-color-6);
    padding: 10px 30px;
    text-align: left;
}

.documentation__table_big :where(td, th) {
    padding: 10px 5px;
}

.documentation__table :where(th) {
    font-weight: 500;
    background-color: var(--theme-color-5);
}

.documentation__table :where(caption) {
    margin-bottom: 15px;
    text-align: left;
}

.documentation__img :where(img) {
    width: 100%;
    height: auto;
}

.documentation__img :where(figcaption) {
    margin-bottom: 20px;
}

.note {
    border: 1px solid var(--theme-color-4);
    padding: 30px 20px;
}

.note__subtitle {
    margin-bottom: 16px;
    font-weight: 500;
}

.description-list {
    margin-bottom: 20px;
}

.description-list__item {
    border-top: 1px solid var(--theme-color-4);
    border-bottom: 1px solid var(--theme-color-4);
    padding: 20px 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.description-list__item:not(:first-child) {
    margin-top: -1px;
}

.description-list__title {
    margin-right: 100px;
    max-width: 170px;
    width: 100%;
    font-weight: 500;
}

.description-list__wrap {
    max-width: 270px;
    width: 100%;
}

.doc-aside__choosen {
    display: none;
}

.documentation__t-wrap {
    overflow-x: auto;
    width: 100%;
    cursor: -webkit-grab;
    cursor: grab;
}

.documentation__t-wrap:where(.active) {
    cursor: -webkit-grabbing;
    cursor: grabbing;
}

.documentation__img {
    margin-bottom: 20px;
}

.documentation__accordeon-wrap {
    position: relative;
    border-top: 1px solid var(--theme-color-4);
    border-bottom: 1px solid var(--theme-color-4);
    padding: 20px 45px 20px 0;
    margin-top: -1px;
    cursor: pointer;
}

.documentation__accordeon :is(.documentation__h4-title) {
    margin-bottom: 0;
}

.documentation__accordeon:where(.empty-item) :is(.documentation__accordeon-btn) {
    display: none;
}

.documentation__accordeon:where(.open) :is(.documentation__accordeon-btn) {
    background-color: var(--theme-color-4);
}

.documentation__accordeon:where(.open) :is(.documentation__accordeon-wrap) {
    border-bottom: none;
}

.documentation__accordeon-btn {
    position: absolute;
    top: 50%;
    right: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    border-radius: 50%;
    border: none;
    width: 23px;
    height: 23px;
    font-size: 2.3rem;
    font-weight: 500;
    background-color: var(--theme-color-1);
    color: var(--white);
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

.documentation__accordeon-btn::before {
    content: "+";
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 15px;
    height: 15px;
    color: var(--white);
    font-size: 2.3rem;
    font-weight: 500;
    line-height: 15px;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.documentation__accordeon:where(.open) :is(.documentation__accordeon-btn)::before {
    content: "-";
    line-height: 12px;
}

.documentation__accordeon-content {
    display: none;
    padding: 20px 0;
}

.documentation__accordeon:where(.open) :is(.documentation__accordeon-content) {
    display: block;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 32px;
}
.pagination__link {
    position: relative;
    border: 1px solid rgba(57, 57, 104, 0.6);
    border-radius: 3px;
    display: block;
    padding: 7px 0;
    width: 140px;
    font-size: 12px;
    line-height: 1.2;
    color: rgba(57, 57, 104, 0.6);
    transition: .3s color linear, .3s border-color linear;
}
.pagination__link.hide {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}
.pagination__link :is(span) {
    display: block;
    width: 100%;
    overflow: hidden;
    color: inherit;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pagination__link:hover {
    border-color: #393968;
    color: #393968;
}
.pagination__link_next {
    padding-right: 24px;
    padding-left: 8px;
}
.pagination__link_prev {
    padding-left: 24px;
    padding-right: 24px;
}
.pagination__icon {
    content: '';
    position: absolute;
    top: 50%;
    display: block;
    width: 10px;
    height: 10px;
    fill: rgba(57, 57, 104, 0.6);
    transition: .3s fill linear;
}
.pagination__link:hover :is(.pagination__icon) {
    fill: #393968;
}
.pagination__link_next :is(.pagination__icon) {
    right: 9px;
    transform: translateY(-50%) rotate(180deg);
}
.pagination__link_prev :is(.pagination__icon) {
    left: 9px;
    transform: translateY(-50%);
}

@media screen and (max-width: 1200px) {
    .doc-notification{
        transform: translateX(-50%);
    }
}

@media screen and (max-width:1024px) {
    .documentation {
        padding: 92px 0 60px 0;
    }

    .documentation.documentation__position-modific{
        padding: 187px 0 60px 0;
    }

    .documentation__wrap {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        width: 100%;
    }

    .doc-notification{
        top: 77px;
        padding: 20px 28px;
    }

    .doc-aside {
        position: relative;
        top: auto;
        border: none;
        padding-right: 0;
        margin-bottom: 30px;
        width: 100%;
    }

    .doc-aside__list {
        position: absolute;
        top: calc(100% + 2px);
        left: 0;
        border: 1px solid var(--menu-border-color);
        border-radius: 9px;
        padding: 20px 17px;
        width: 100%;
        background-color: var(--white);
        -webkit-box-shadow: 0 8px 24px rgba(44, 43, 81, .15);
        box-shadow: 0 8px 24px rgba(44, 43, 81, .15);
        visibility: hidden;
        pointer-events: none;
        z-index: 1;
    }

    .doc-aside__list.open {
        visibility: visible;
        pointer-events: all;
    }

    .documentation__content {
        padding-left: 0;
        width: 100%;
    }

    .doc-aside__choosen {
        display: block;
        position: relative;
    }

    .doc-aside__choosen-field {
        border-radius: 9px;
        outline: 0;
        padding: 12px 55px 12px 10px;
        width: 100%;
        height: 42px;
        border: none;
        color: var(--theme-color-1);
        background-color: var(--theme-color-7);
        overflow: hidden;
        -o-text-overflow: ellipsis;
        text-overflow: ellipsis;
    }

    .doc-aside__choosen-btn {
        position: absolute;
        right: 0;
        top: 0;
        display: block;
        border: 1px solid var(--theme-color-7);
        border-radius: 9px;
        width: 42px;
        height: 42px;
        background-color: var(--theme-color-8);
    }

    .doc-aside__choosen-btn.open {
        background-color: var(--menu-border-color);
    }

    .doc-aside__dots {
        top: 50%;
        left: 50%;
        -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }

    .doc-aside__dots,
    .doc-aside__dots::after,
    .doc-aside__dots::before {
        position: absolute;
        display: block;
        border-radius: 50%;
        width: 4px;
        height: 4px;
        background-color: var(--theme-color-2);
    }

    .doc-aside__choosen-btn.open .doc-aside__dots::after,
    .doc-aside__choosen-btn.open .doc-aside__dots::before,
    .doc-aside__choosen-btn.open :where(.doc-aside__dots) {
        background-color: var(--white);
    }

    .doc-aside__dots::after,
    .doc-aside__dots::before {
        content: "";
    }

    .doc-aside__dots::before {
        bottom: 7px;
    }

    .doc-aside__dots::after {
        top: 7px;
    }
}

@media screen and (max-width:768px) {
    .documentation {
        padding: 57px 0;
    }

    .doc-notification{
        top: 77px;
        padding: 15px 20px;
    }

    .doc-notification__content{
        padding-left: 51px;
    }

    .doc-notification__text{
        font-size: 1.4rem;
    }

    .doc-aside {
        border-top: 1px solid var(--theme-color-8);
        padding-top: 15px;
    }

    .description-list__title {
        max-width: none;
        margin-bottom: 15px;
    }

    .description-list__item {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
}

@media screen and (max-width:425px) {
    .doc-notification{
        top: 64px;
        padding: 15px;
    }

    .doc-notification__text {
        font-size: 1.2rem;
    } 
}

