
*, ::after, ::before {
    box-sizing: border-box;
}

body {
    font-family: 'Ubuntu', sans-serif;
    font-style: normal;
    font-size: 16px;
    color: #424f61;
    font-weight: 400;
    margin: 0;
}

strong {
    font-weight: 500;
}

pre code.hljs {
    border-radius: 4px;
    border: 1px solid #f0f0f0;
    background: #f7f7f7;
}

/**************************************************************************/

table {
    border-collapse: collapse;
    width: 100%;
    /*table-layout: fixed;*/
}

table th,
table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tr:hover {
    background-color: #f1f1f1;
}

/* Стили для заголовков */
table thead th {
    background-color: #eeeeee;
    color: #333;
    font-weight: bold;
}

/**************************************************************************/

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.flex-left-wrapper {
    display: flex;
    align-items: center;
    flex-flow: row wrap;
    justify-content: flex-start;
    margin: 25px 0;
}

.flex-left-wrapper h2 {
    margin-right: 25px;
}

.flex-center-wrapper {
    display: flex;
    align-items: center;
    flex-flow: row wrap;
    justify-content: space-between;
    margin-bottom: 25px;
}

/**************************************************************************/

h1, h2, h3, h4, h5, h6 {
    color: #1e293b;
}

h2, h3, h4, h5, h6 {
    background: #f5f5fa;
    border-left: 3px solid #6b748c;
    padding-left: 7px;
    margin-top: 30px;
}

h1 {
    line-height: 48px;
    font-size: 28px;
}

h2 {
    line-height: 58px;
    font-size: 28px;
}

h3 {
    line-height: 50px;
    /*padding-left: 25px;*/
    font-size: 22px;
}

h4 {
    line-height: 44px;
    /*padding-left: 45px;*/
    font-size: 20px;
}

h5 {
    line-height: 40px;
    /*padding-left: 55px;*/
    font-size: 28px;
}

/**************************************************************************/

a {
    color: #6d28d9;
    font-weight: 500;
    text-decoration-color: #c4b5fd;
}

a.external-link {
    border-bottom: 1px dashed #6d28d9;
    text-decoration: none;
}

a.external-link:after {
    content: "\f08e";
    padding-left: 5px;
    font-weight: 900;
    font-family: "Font Awesome 6 Free";
    font-size: 12px;
    text-decoration: none;
}

a.service {
    color: #334155;
    text-decoration: none;
    /*text-decoration-color: #c4b5fd;*/
}

.top-icons {
    flex-flow: row;
    align-items: center;
    justify-content: center;
    display: flex;
}

.tg-icon {
    border: 3px dashed rgb(143, 160, 255);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex-flow: row;
    align-items: center;
    justify-content: center;
    display: flex;
    color: #4773b3 !important;
    animation: 3s linear infinite rotate-right;
}

.tg-icon a {
    animation: 3s linear infinite rotate-left;
}

@keyframes rotate-right {
    from {
      transform: rotate(0deg);
    }
  
    to {
      transform: rotate(360deg);
    }
}

@keyframes rotate-left {
    from {
      transform: rotate(0deg);
    }
  
    to {
      transform: rotate(-360deg);
    }
}

/**************************************************************************/

blockquote {
    color: #6b7684;
    font-size: inherit;
    padding: 10px 20px;
    margin: 16px 0;
    /*border-left: 3px solid #ddd;*/
    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: flex-start;
    background-color: rgba(0, 0, 0, 0.05);
}

blockquote:before {
    content: "\f10d";
    margin-right: 20px;
    font-weight: 900;
    font-family: "Font Awesome 6 Free";
    font-size: 48px;
    text-decoration: none;
    color: #c9d2db;
}

blockquote.note, blockquote.warning, blockquote.error, blockquote.success {
    color: #444a52;
    /*font-weight: 450;*/
}

blockquote.note {
    border-left-color: rgb(93, 117, 255);
    background-color: rgba(93, 117, 255, 0.05);
}

blockquote.note:before {
    content: "\f05a";
    color: rgb(93, 117, 255);
}


blockquote.warning {
    border-left-color: rgb(253, 179, 18);
    background-color: rgba(253, 179, 18, 0.05);
}

blockquote.warning:before {
    content: "\f06a";
    color: rgb(253, 179, 18);
}


blockquote.error {
    border-left-color: rgb(255, 66, 66);
    background-color: rgb(255, 66, 66, 0.05);
}

blockquote.error:before {
    content: "\f7ba";
    color: rgb(255, 66, 66);
}


blockquote.success {
    border-left-color: rgb(66, 255, 161);
    background-color: rgb(66, 255, 161, 0.05);
}

blockquote.success:before {
    content: "\f058";
    color: rgb(66, 255, 161);
}


blockquote.prompt {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    line-height: 1.6;
    font-size: 14px;
    white-space: pre-wrap;
    /*box-shadow: 0 8px 20px rgba(0,0,0,.25);
    border-left: 4px solid #38bdf8;*/
    background: #f8fafc;
    color: #0f172a;
}

blockquote.prompt:before {
    content: "\e2ca";
    color: rgb(66, 255, 161);
}

blockquote.prompt-negative {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    line-height: 1.6;
    font-size: 14px;
    white-space: pre-wrap;
    /*box-shadow: 0 8px 20px rgba(0,0,0,.25);
    border-left: 4px solid #38bdf8;*/
    background: #f8fafc;
    color: #0f172a;
}

blockquote.prompt-negative:before {
    content: "\e2ca";
    color: rgb(255, 104, 66);
}

/**************************************************************************/

.tg-channel {
    border: 3px dashed rgb(143, 160, 255);
    background-color: rgba(93, 117, 255, 0.1);
    margin: 30px 0 20px;
    display: flex;
    flex-flow: row ;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 30px;
}

.tg-channel-icon {
    background: url('/static/tg-logo.svg') no-repeat center;
    background-size: contain;
    width: 84px;
    height: 64px;
    display: block;
    margin-right: 20px;
}

.tg-channel-desc {
    display: block;
}

/**************************************************************************/

code {
    padding: 2px 4px;
    color: #444;
    background-color: #f4f4f4;
    word-wrap: break-word;

}

code.codespan {
    color: #eb5757;
    border-width: 0px;
    padding: 3px 8px;
    font-size: .8em;
    font-weight: 600;
    /*margin-left: .125rem;
    margin-right: .125rem;*/
    border-radius: 4px;
    --tw-bg-opacity: 1;
    background-color: rgb(236 236 236 / var(--tw-bg-opacity, 1));
}

pre code {
    font-size: 14px;
}

/**************************************************************************/

img {
    display: block;
    border: 1px solid rgba(0,0,0,0.1);
    height: auto;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
}

img.book-cover {
    max-width: 300px;
    clear: right;
    float: right;
    margin-left: 16px;
}

/*p img {
    padding: 25px 20px;
    background-image: radial-gradient(hsla(200deg,80%,30%) 3%,transparent 1%),radial-gradient(hsla(220deg,80%,30%,30%) 8%,transparent 1%);
    background-size: 3rem 3rem,1rem 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 2px;
}*/

img.svg-w-320 {
    width: 320px;
}

.img-row {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
}

.img-row > img {
    margin: 0;
}

/**************************************************************************/

ul {
    padding-left: 15px;
    margin-left: 20px;
}

ul.list-specific {
    list-style: none;
}

li.plus {
    /*display: flex;
    align-items: flex-start;*/
    position: relative;
    margin: 10px 0;
    padding-left: 35px;
}

li.plus::before {
    position: absolute;
    top: 0;
    left: 0;
    content: "\f058";
    font-weight: 900;
    font-family: "Font Awesome 6 Free";
    font-size: 26px;
    text-decoration: none;
    /*padding-right: 10px;*/
    color: #22c55e;
    text-align: left;
}

li.halfok {
    /*display: flex;
    align-items: flex-start;*/
    position: relative;
    margin: 10px 0;
    padding-left: 35px;
}

li.halfok::before {
    position: absolute;
    top: 0;
    left: 0;
    content: "\f042";
    font-weight: 900;
    font-family: "Font Awesome 6 Free";
    font-size: 26px;
    text-decoration: none;
    /*padding-right: 10px;*/
    color: #f59e0b;
    text-align: left;
}

li.minus {
    /*display: flex;
    align-items: flex-start;*/
    position: relative;
    margin: 10px 0;
    padding-left: 35px;
}

li.minus::before {
    position: absolute;
    top: 0;
    left: 0;
    content: "\f057";
    font-weight: 900;
    font-family: "Font Awesome 6 Free";
    font-size: 26px;
    text-decoration: none;
    /*padding-right: 10px;*/
    color: #ef4444;
    text-align: left;
}

li.exclamation {
    /*display: flex;
    align-items: flex-start;*/
    position: relative;
    margin: 10px 0;
    padding-left: 35px;
}

li.exclamation::before {
    position: absolute;
    top: 0;
    left: 0;
    content: "\f06a";
    font-weight: 900;
    font-family: "Font Awesome 6 Free";
    font-size: 26px;
    text-decoration: none;
    /*padding-right: 10px;*/
    color: #ef4444;
    text-align: left;
}

li.dot {
    /*display: flex;
    align-items: center;*/
    margin: 10px 0;
}

li.dot::before {
    position: absolute;
    top: 0;
    left: 0;
    content: "\f192";
    font-weight: 900;
    font-family: "Font Awesome 6 Free";
    font-size: 26px;
    text-decoration: none;
    /*padding-right: 10px;*/
    color: #c9d2db;
    text-align: left;
}

/**************************************************************************/

/* якорь */
.heading-permalink {
    padding-right: 7px;
    text-decoration: none;
}

/**************************************************************************/

.header {
    padding: 15px 15px;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #c9d2db;
}

.header-main {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 900px;
}

.header-main a {
    text-decoration: none;
    color: #0f172a;
    font-size: 28px;
}

.header-main a.link-icon {
    padding-right: 15px;
    font-size: 20px;
    color: #4a5360;
}

.header-main a.link-icon:last-child {
    padding-right: 0px;
}

/**************************************************************************/

.introduction-wrapper {
    margin-bottom: 20px;
    background-color: #eff1f3;
    width: 100%;
}

.introduction {
    margin: 0 auto;
    max-width: 900px;
    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: flex-start;
    padding: 5px 0 20px 0;
}

.introduction-icon {
    border: none;
}

.introduction-icon img {
    border: none;
    border-radius: 50%;
}

.introduction-desc {
}

/**************************************************************************/

.content-wrapper {
    flex: 1;
    max-width: 900px;
    background-color: #ffffff;
    margin: 0 auto;
    font-size: 16px;
    line-height: 24px;
    width: 100%;
}

/**************************************************************************/

.card {
    margin-bottom: 25px;
    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: flex-start;
}

.card-logo-link {
    text-decoration: none;
}

.card-logo-big {
    width: 96px;
    border: none;
    margin: 0;
    margin-right: 25px;
}

.card-logo-big img {
    border-radius: 0;
    border: none;
}

.card-logo-big img.circle {
    border-radius: 50%;
}

.card-header {
    margin: 10px 0 0;
    padding: 5px 0;
    background: none;
    border: none;
    line-height: 36px;
}

.card-header-icon {
    display: none;
}

.card-header-block {
    display: flex;
    flex-flow: row;
    align-items: baseline;
    justify-content: flex-start;
}

.card-date {
    color: #64748b;
    font-size: 14px;
    font-weight: 400;
}

.card-date-item {
    margin-right: 15px;
}

.card-description, .card-content {
    padding: 10px 0;
}

.card-description {
    padding: 10px 0;
    font-size: 16px;
    line-height: 24px;
}

.card-content h2 {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.card-tags {
}

a.card-link {
    color: inherit;
    font-weight: inherit;
    text-decoration: none;
}

a.tag-link {
    display: inline-block;
    margin: 0 5px 10px 0;
    color: #1f1f1f;
    background-color: rgba(0,0,0,0.06);
    padding: 5px 10px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 400;
}

.card-stats {
    margin-top: 20px;
}

.card-stats span {
    display: inline-block;
    margin: 0 20px 15px 0;
    background: rgba(0,0,0,0.05);
    padding: 5px 10px;
    border-radius: 3px;
}

.card-stats span:last-child {
    margin-right: 0;
}

/**************************************************************************/

.service-404-content {
    display: flex;
    align-items: center;
    background: url('/static/error-404.png');
    width: 256px;
    height: 256px;
    background-size: contain;
    margin: 30px auto 0;
}

/**************************************************************************/

.pagenavi {
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
    justify-content: flex-start;
    font-size: 20px;
    margin-bottom: 25px;
}

.pagenavi-current {
    background-color: #6d28d9;
    color: #ffffff;
    border-radius: 50%;
    font-weight: 500;
}

.pagenavi div {
    padding: 5px;
    width: 34px;
    height: 34px;
    text-align: center;
}

/**************************************************************************/

.footer {
    padding: 30px 0 30px;
    text-align: center;
    background-color: #f8f8f8;
}

.footer-block {
    margin-bottom: 15px;
}

/**************************************************************************/

ul.toc {
    padding: 10px;
    border: 1px solid #dde0e8;
    margin: 0;
    background: #f5f5fa;
}

ul.toc:before {
    display: block;
    content: 'Содержание';
    font-weight: bold;
    margin-bottom: 10px;
}

.toc li {
    list-style-type: none;
    padding: 5px 0;
}

.toc li a:before {
    content: '#';
    color: #6d28d9;
    font-weight: 500;
    padding-right: 5px;
    text-decoration: none;
}

.toc a {
    color: #334155;
    text-decoration: none;
    font-weight: 400;
}

/**************************************************************************/

.card-category-link {
    width: 140px;
    text-decoration: none;
    margin: 0 0px 15px 0;
}

.card-category-link:last-child {
    margin-right: 0;
}

.card-category {
    width: 100%;
    padding: 15px 10px;
    background-color: rgba(0,0,0,0.06);
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.card-category-icon {
    width: 78px;
    margin: 0 auto 20px auto;
}

.card-category-icon img {
    border: none;
}

.card-category-name {
    font-size: 12px;
    font-weight: 400;
    text-align: center;
}

/**************************************************************************/

.menu {
    width: 100%;
    transition: all 0.3s linear;
    overflow: hidden;
    max-height: 0;
}

.menu-button {
    display: inline-block;
    transition: all 0.3s linear;
    margin-right: 15px;
}

.menu-content {
    margin: 0 auto 15px auto;
    max-width: 900px;
}

.menu-hidden {
    max-height: 0;
}

.menu-button-rotate {
    transform: rotate(90deg);
}

.menu-card-icon {
    display: inline;
    padding-right: 5px;
    height: 16px;
    border: none;
    margin: 0;
}

/**************************************************************************/

@media (max-width: 910px)
{
    pre code {
        font-size: 12px;
    }

    img.book-cover {
        clear: none;
        float: none;
        margin: 0 auto;
    }

    .introduction {
        padding: 0 15px 15px 15px;
    }

    .content-wrapper {
        padding: 0 15px;
        max-width: 100%;
    }

    .menu-content {
        padding: 15px;
    }

    .card-category-link {
        width: 45%;
    }

    .card-category {
        display: flex;
        align-items: center;
        flex-flow: row wrap;
        justify-content: flex-start;
    }

    .card-category-icon {
        font-size: 36px;
        height: 36px;
        line-height: 36px;
        text-align: center;
        width: 36px;
        margin: 0 20px 0 0;
    }

    .card-category-name {
        font-size: 18px;
    }
}

/**************************************************************************/

@media (max-width: 640px)
{
    .introduction-icon {
        display: none;
    }

    .card-header-icon {
        display: inline;
        padding-right: 10px;
        height: 24px;
        border: none;
        margin: 0;
    }

    ul {
        margin-left: 10px;
    }

    h1 {
        line-height: 32px;
        font-size: 24px;
    }
    
    h2 {
        line-height: 30px;
        font-size: 22px;
    }
    
    h3 {
        line-height: 28px;
        font-size: 20px;
    }
    
    h4 {
        line-height: 26px;
        font-size: 18px;
    }
    
    h5 {
        line-height: 24px;
        font-size: 16px;
    }

    .card-category-link {
        width: 100%;
    }

    .card-logo-big {
        display: none;
    }

    .tg-channel {
        flex-flow: column;
    }

    .tg-channel-icon {
        margin-right: 0;
        margin-bottom: 20px;
        width: 100%;
    }

    .tg-channel-desc {
        width: 100%;
    }

    .card-header {
        line-height: 32px;
    }
}
