@font-face {
    font-family: pt-mono;
    src: url(../fonts/PTMono-Regular.woff2);
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
:root {
    --d-bg-2: #e9f3fb;
    --d-bg-3: #e8f5ff;
    --d-bg-4: #f8fcff;
    --d-bg-5: #16313f;
    --d-border-1: 1px solid #56a5ee;
    --d-border-3: 1px solid rgba(56, 61, 68, 0.10);
    --d-border-5: 1px solid rgba(200, 215, 228, 0.10);
    --d-border-7: 1px solid rgba(200, 215, 228, 0.30);
    --d-text-1: #383d44;
    --d-text-2: #862bff;
    --d-text-3: #56a5ee;
    --d-text-4: #1558c0;
    --d-text-5: #444;
    --d-text-6: rgba(217, 229, 240, 0.50);
    --d-text-7: #e8f5ff;
    --h-keyword: #9ff4cd;
    --h-method: #aac7ff;
    --h-string: #ffdea5;
    --h-comment: #c0c6d6;
    --h-number: #ffb86c;
}
body {
    background: #fff;
}
header {
    flex-direction: row;
    align-items: baseline;
    padding: 0;
    justify-content: space-between;
    margin-bottom: 80px;
}
header .logo,
header .part {
    position: relative;
}
header .logo {
    background: #d9e5f0;
    border-radius: 0 0 300px 0;
    padding: 100px 70px 150px calc((100% - 1200px) / 2);
    display: flex;
    flex-direction: column;
}
header .logo::after {
    display: none;
}
header .logo::before {
    content: '';
    position: absolute;
    left: 0;
    height: 100px;
    width: 75px;
    background: #fff;
    bottom: -100px;
    border-top-left-radius: 300px;
    box-shadow: -20px -20px 0px 20px #d9e5f0;
    z-index: -1;
}
header .logo a,
header .part h2 {
    position: relative;
}
header .logo a {
    margin-bottom: 10px;
}
header .logo a::after {
    width: 60px;
    height: 5px;
    content: '';
    display: block;
    background: #56a5ee;
    position: absolute;
    bottom: -20px;
    left: 0;
}
header .logo span {
    font-size: 12px;
    color: #56a5ee;
    display: block;
    margin-left: auto;
}
header .part {
    padding: 100px calc((100% - 1200px) / 2) 100px 148px;
    background: #1250b5;
    margin-top: auto;
    border-radius: 300px 0 0 300px;
    border-radius: 0px 0 0 300px;
    margin-left: 40px;
}
header .part::before {
    content: '';
    position: absolute;
    left: 0%;
    bottom: 57%;
    top: 0;
    right: 30%;
    border-radius: 0% 0% 190px 300px/ 0 0 100% 100%;
    background: rgba(19, 87, 197, 0.5);
    box-shadow: 10px 10px 10px 0 rgba(14, 71, 165, 0.1);
    z-index: 1;
}
header .part::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    top: 18%;
    border-radius: 0% 70% 0 300px/0% 53% 0 300px;
    background: rgba(21, 90, 204, 0.3);
    box-shadow: 10px -10px 10px 0 rgba(18, 80, 181, 0.6);
    z-index: 1;
}
header .part * {
    color: #fff;
    line-height: 23px;
    z-index: 2;
    position: relative;
    font-size: 12px;
}
header .part h2 {
    font-size: 30px;
    line-height: 36px;
    color: #fff;
    margin-bottom: 20px;
}
header .part h2::before {
    top: -26px;
}
header .part .bit {
    content: '';
    position: absolute;
    height: 100px;
    width: 135px;
    background: #fff;
    bottom: -100px;
    right: 0;
    border-top-right-radius: 500px;
    box-shadow: 21px -22px 0px 20px #1251b7;
    z-index: -1;

}
main {
    display: flex;
    margin-bottom: 100px;
    .container {
        width: 100%;
        .document {
            * {
                line-height: 30px;
                color: var(--d-text-5);
                font-size: 16px;
            }
            &:has(:not(pre)) {
                code {
                    font-family: pt-mono;
                    padding: 2px 4px;
                    background: var(--d-bg-2);
                    color: var(--d-text-2);
                    border: none;
                    border-radius: 4px;
                    font-size: 16px;
                }
            }
            h1 {
                font-size: 36px;
                line-height: 44px;
                color: var(--d-text-3);
                padding: 20px 20px 0;
                border-radius: 16px 16px 0 0;
                background: var(--d-bg-3);
                + .versions {
                    background: var(--d-bg-3);
                    padding: 20px 20px 10px;
                    display: flex;
                    p {
                        padding: 2px 4px;
                        border: var(--d-border-1);
                        font-size: 12px;
                        border-radius: 6px;
                        line-height: 16px;
                        span {
                            color: var(--d-text-3);
                            font-size: 12px;
                            font-weight: 600;
                            line-height: 16px;
                        }
                    }
                    + .line {
                        margin: 10px 20px 20px;
                        position: relative;
                        border-bottom: var(--d-border-3);
                        &::before {
                            background: var(--d-bg-3);
                            position: absolute;
                            left: -20px;
                            top: -10px;
                            right: -20px;
                            bottom: -21px;
                            content: '';
                            z-index: -1;
                        }
                        + h2 {
                            background: var(--d-bg-3);
                            padding: 0 20px 10px;
                            margin-bottom: 0;
                            + p {
                                background: var(--d-bg-3);
                                font-size: 20px;
                                font-weight: 600;
                                line-height: 28px;
                                padding: 0 20px 20px;
                                border-radius:  0 0 16px 16px;
                                z-index: 1;
                                position: relative;
                                margin-bottom: 0;
                                + h2 {
                                    background: var(--d-bg-4);
                                    padding: 50px 20px 20px 60px;
                                    margin-top: -20px;
                                    position: relative;
                                    font-size: 16px;
                                    line-height: 24px;
                                    color: var(--d-text-4);
                                     margin-bottom: 0;
                                    &::before {
                                        background: url(../images/connector.svg) no-repeat 100%;
                                        content: '';
                                        position: absolute;
                                        width: 55px;
                                        height: 24px;
                                        left: 0;
                                        bottom: 20px;
                                    }
                                    + ul {
                                        background: var(--d-bg-4);
                                        padding: 0 40px 40px;
                                        border-radius: 0 0 16px 16px;
                                        margin-bottom: 60px;
                                    }
                                }
                            }
                            
                        }
                    }
                }
            }
            h2 {
                font-size: 24px;
                font-weight: 700;
                line-height: 28px;
                margin-bottom: 20px;
                color: var(--d-text-1);
            }
            h3 {
                font-size: 18px;
                font-weight: 700;
                line-height: 22px;
                margin-bottom: 20px;
                color: var(--d-text-1);
            }
            ul {
                margin-bottom: 10px;
                li {
                    position: relative;
                    padding-left: 24px;
                    margin: 0;
                    font-size: 16px;
                    &::before {
                        width: 20px;
                        height: 20px;
                        content: '';
                        background: url(../images/li.svg) center;
                        position: absolute;
                        top: 6px;
                        left: 0;
                    }
                }
            }
            p {
                margin-bottom: 10px;
            }
            .docs-code-block {
                background: var(--d-bg-5);
                border-radius: 8px 8px 16px 16px;
                margin-bottom: 60px;
                .docs-code-head {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    padding: 8px 20px;
                    border-bottom: var(--d-border-5);
                    span {
                        color: var(--d-text-6);
                    }
                    button {
                        background: url(../images/copy.svg) no-repeat center;
                        background-size: 24px;
                        padding: 0;
                        width: 24px;
                        height: 24px;
                        &::after {
                            content: unset;
                        }
                        &.is-copied {
                            opacity: 0.6;
                        }
                        &.is-error {
                            opacity: 0.6;
                            filter: hue-rotate(320deg);
                        }

                    }
                }
                pre {
                    code {
                        padding: 20px;
                        background: none;
                        display: block;
                        color: var(--d-text-7);
                        font-size: 14px;
                        * {
                            font-size: 14px;
                            font-family: pt-mono;
                            color: var(--d-text-7);
                        }
                        .token-comment {
                            color: var(--h-comment);
                        }
                        .token-string, .token-attr-value {
                            color: var(--h-string);
                        }
                        .token-keyword, .token-tag {
                            color: var(--h-keyword);
                        }
                        .token-method, .token-function, .token-property {
                            color: var(--h-method);
                        }
                        .token-number, .token-attr-name, .token-variable {
                            color: var(--h-number);
                        }
                    }
                }
            }
            table {
                width: 100%;
                border-radius: 16px;
                border-collapse: collapse;
                overflow: hidden;
                margin-bottom: 60px;
                tr {
                    border-bottom: var(--d-border-7);
                    &:first-child, &:last-child {
                        border-bottom: none;
                    }
                    th {
                        padding: 11px 20px;
                        background: var(--d-bg-3);
                        text-align: left;
                    }
                    td {
                        background: var(--d-bg-4);
                        padding: 12px 20px;
                    }
                }
            }
        }
        .banner {
            margin: 40px 0;
        }
    }
}
.main .container .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 40px;
}
.main .container .grid .item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr minmax(100px, 0.5fr);
    gap: 10px;
    align-items: start;
    background: #f3f3f3;
    box-shadow: 0 3px 20px rgb(0 0 0 / 8%);
    border-radius: 22px;
    padding: 25px 25px 15px;
    transform: scale(1);
    will-change: transform;
    transition: 0.3s;
}
.main .container .grid .item:hover {
    z-index: 2;
    transform: scale(1.12);
}
.main .container .grid .item *,
.main .container .grid .item:hover * {
    will-change: transform;
}
.main .container .grid .item *:not(p) {
    color: #56a5ee;
}
.main .container .grid .item img {
    grid-area: 2/2/3/3;
    margin: 0 auto;
    width: 100%;
}
.main .container .grid .item h2,
.main .container .grid .item p,
.main .container .grid .item span {
    grid-column: 1/2;
}
.main .container .grid .item h2 {
    min-height: 50px;
    font-size: 20px;
}
.main .container .grid .item h2::before {
    display: none;
}
.main .container .grid .item p {
    line-height: 26px;
    margin-bottom: 30px;
}
.main .container .grid .item span {
    max-width: max-content;
}
.main .container .grid .item:hover span::after {
    width: 100%;
}
.main .container .grid .item a {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}
.breadcrumbs {
    margin: 0 auto 100px calc((100% - 1200px) / 2);
    max-width: max-content;
}
aside {
    position: relative;
    background: #f3f3f3;
    box-shadow: 0 3px 20px rgb(0 0 0 / 8%);
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    margin-bottom: auto;
    overflow: hidden;
}
aside .ws-menu > .item {
    display: flex;
    flex-direction: column;
    position: relative;
    border-left: 2px solid #56a5ee;
    cursor: pointer;
    transition: 0.2s;
}

aside .ws-menu > .item:first-child,
aside .ws-menu > .item:first-child p {
    border-top-left-radius: 22px;
}
aside .ws-menu > .item:last-child,
aside .ws-menu > .item:last-child p {
    border-bottom-left-radius: 22px;
}
aside .ws-menu > .item:only-child p {
    border-bottom-left-radius: unset;
}
aside .ws-menu > .item:last-child .sub-menu .item:last-child {
    margin-bottom: 10px;
}
aside .ws-menu .item p {
    position: relative;
}
aside .ws-menu .item p::before,
aside .ws-menu .item p::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 25px;
    width: 6px;
    height: 6px;
    border-radius: 10px;
    background: #56a5ee;
    transition: 0.2s;
    will-change: transform, width, height;
}
aside .ws-menu .sub-menu .item p::before,
aside .ws-menu .sub-menu .item p::after {
    top: 16px;
}
aside .ws-menu .item p:hover::before,
aside .ws-menu .item p:hover::after {
    height: 10px;
    width: 2px;
    top: 23px;
}
aside .ws-menu .sub-menu .item p:hover:before,
aside .ws-menu .sub-menu .item p:hover:after {
    top: 14px;
}
aside .ws-menu .item p:hover::before,
aside .ws-menu > .item.show > p::before,
aside .ws-menu .sub-menu .item.show p::before {
    transform: rotate(-45deg);
    left: 19px;
}
aside .ws-menu .item p:hover::after,
aside .ws-menu > .item.show > p::after,
aside .ws-menu .sub-menu .item.show p::after {
    transform: rotate(45deg);
    left: 25px;
}
aside .ws-menu > .item.show > p::before,
aside .ws-menu > .item.show > p::after,
aside .ws-menu > .item.show:hover > p::before,
aside .ws-menu > .item.show:hover > p::after,
aside .ws-menu .sub-menu .item.show p::before,
aside .ws-menu .sub-menu .item.show p::after,
aside .ws-menu .sub-menu .item.show:hover p::before,
aside .ws-menu .sub-menu .item.show:hover p::after {
    height: 13px;
    width: 2px;
    left: 20px;
    top: 22px;
}
aside .ws-menu .sub-menu .item.show p::before,
aside .ws-menu .sub-menu .item.show p::after,
aside .ws-menu .sub-menu .item.show:hover p::before,
aside .ws-menu .sub-menu .item.show:hover p::after {
    top: 13px;
}
aside .ws-menu > .item p {
    padding: 20px 20px 20px 40px;
    display: block;
    transition: 0.2s;
}
aside .ws-menu > .item.show > p {
    background: #d9e5f0;
    box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.08);
}
aside .ws-menu .sub-menu .item.show p {
    box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.08);
}
aside .ws-menu .item .sub-menu {
    overflow: hidden;
    max-height: 0;
    transition: 0.45s;
}
aside .ws-menu .item.show > .sub-menu {
    max-height: 500px;
}
aside .ws-menu .item .sub-menu a,
aside .ws-menu .item .sub-menu p,
aside .ws-menu .item.show .sub-menu .item .sub-menu .item a,
aside .ws-menu .item.show .sub-menu .item .sub-menu .item p {
    opacity: 0;
    transition: 0.45s 0.45s, color 0.2s;
    display: flex;
    padding: 10px 0 10px 45px;
    position: relative;
    transform: scale(0.7) rotateX(-60deg);
    transform-origin: 50% 0;
}
aside .ws-menu .item.selected a {
    color: #56a5ee;
}
aside .ws-menu .item .sub-menu .item:first-child a {
    padding-top: 20px;
}
aside .ws-menu .item.show .sub-menu a,
aside .ws-menu .item.show .sub-menu p,
aside .ws-menu .item.show .sub-menu .item.show .sub-menu .item a,
aside .ws-menu .item.show .sub-menu .item.show .sub-menu .item p {
    opacity: 1;
    transform: scale(1);
    transition: 0.45s, color 0.2s;
}
aside .ws-menu .item .sub-menu .item .sub-menu a,
aside .ws-menu .item .sub-menu .item .sub-menu p {
    padding-left: 55px;
}
aside .ws-menu .item .sub-menu a:hover {
    color: #56a5ee;
}
h3 {
    font-size: 21px;
}
h4 {
    font-size: 18px;
}
.main.wrapper .container h3,
.main.wrapper .container h4 {
    margin-bottom: 30px;
}
.main.wrapper .container img {
    box-shadow: 0 3px 20px rgb(0, 0, 0, 0.2);
    border-radius: 22px;
    margin-bottom: 30px;
    padding: 10px;
}
.main.wrapper .container a {
    color: #4a9de9;
    transition: 0.2s;
}
.main.wrapper .container a:hover {
    color: #1654b1;
}
@media screen and (max-width: 1260px) {
    .breadcrumbs {
        margin-left: 0;
    }
    header {
        margin-bottom: 160px;
    }
    header .logo {
        padding: 100px 70px 150px 30px;
    }
    header .part {
        padding: 0 20px 0 0;
        background: unset;
        border-radius: 0;
        margin-top: unset;
    }
    header .part .bit,
    header .part::after,
    header .part::before {
        display: none;
    }
    header .part *,
    header .part h2 {
        color: #383d44;
    }
}
@media screen and (max-width: 950px) {
    header {
        flex-direction: column;
    }
    header .logo {
        padding: 70px 70px 75px 30px;
        margin-bottom: 30px;
    }
    header .logo img {
        width: 260px;
    }
    header .logo::before {
        display: none;
    }
    header .part {
        margin-left: 0;
        padding-left: 30px;
    }
    header .part h2 {
        font-size: 24px;
    }
    .main.wrapper {
        grid-template-columns: 1fr;
    }
}
@media screen and (max-width: 768px) {
    .breadcrumbs {
        margin: 0 0 30px;
        flex-direction: row;
    }
    .breadcrumbs a:first-child ~ * {
        margin-left: -15px;
        padding-left: 40px;
    }
}