:root {
    --color-text-black: #393939;
    --color-text-white: #ffffff;
    --color-left-background: #223773;
    --color-right-background: #223773;
    --deg-background: 0deg;
}
*, ::after, ::before {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
main {
    padding: 20px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    min-height: 50vh;
}
@media (min-width: 1200px) {
    main {
        max-width: 1190px;
    }
}

/* Header Styles */
header {
    color: var(--color-text-white);
    padding: 10px 0;
    animation: fadeIn 1s ease-in-out;
}
p {
    margin: 2em 0em;
    color: var(--color-text-black);
    line-height: 1.8;
}
ul {
    margin: 2em 0em;
}
span {
    color: var(--color-text-black);
}
main li {
    color: var(--color-text-black);
    line-height: 1.8;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', Arial, sans-serif;
    color: var(--color-text-black);
}
h1 {
    font-size: 40px;
    line-height: 1;
}
h2, h3 {
    margin: 2em 0em;
}
h2:before {
    font-family: 'Roboto', Arial, sans-serif;
    content: '↱';
    font-size: 16px;
    padding: 0px 15px 0px 0px;
    font-weight: 100;
}
.head {
    font-weight: bold;
    font-size: 18px;
    margin: 2em 0px;
}
.bold {
    font-weight: bold;
}
.container {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.logo img {
    height: 50px;
    transition: transform 0.3s ease;
    background: #fff;
    padding: 5px;
    border-radius: 50px;
}
.logo img:hover {
    transform: scale(1.1);
}
.logo + .site-title {
    margin-left: 20px;
}
.site-title h1 {
    margin: 0;
    font-size: 24px;
    animation: slideInFromLeft 1s ease-in-out;
}
nav.desktop-menu {
    display: none;
}
.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
}
.menu li {
    margin-left: 20px;
}
.menu li a {
    text-decoration: none;
    color: var(--color-text-white);
    font-size: 18px;
    transition: color 0.3s ease;
}

/* Mobile Menu Styles */
.mobile-menu-icon {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 20;
}
.mobile-menu-icon span {
    height: 3px;
    background: var(--color-text-white);
    margin: 4px 0;
    width: 25px;
}
nav.mobile-menu {
    display: none;
    position: absolute;
    left: 0;
    width: 100%;
    animation: fadeIn 0.5s ease-in-out;
    z-index: 10;
    top: 0px;
}
nav.mobile-menu .menu li {
    margin: 0px;
    width: 100%;
    text-align: center;
    background: linear-gradient(var(--deg-background), var(--color-left-background), var(--color-right-background));
    color: var(--color-text-white);
    padding: 13px 0px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    position: relative;
    overflow: hidden;
    outline: none;
}
nav.mobile-menu .menu {
    flex-direction: column;
    align-items: center;
}
@media (min-width: 768px) {
    nav.desktop-menu {
        display: block;
    }
    .mobile-menu-icon {
        display: none;
    }
    nav.mobile-menu {
        display: none;
    }
}

/* Footer Styles */
footer {
    color: var(--color-text-white);
    padding: 20px 0;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}
.footer-logo img {
    height: 50px;
    transition: transform 0.3s ease;
}
.footer-logo img:hover {
    transform: scale(1.1);
}
.footer-menu {
    margin: 20px 0;
}
.footer-menu .menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 1s ease-in-out;
}
.footer-menu .menu li {
    margin: 10px 20px;
}
.footer-menu .menu li a {
    text-decoration: none;
    color: var(--color-text-white);
    font-size: 16px;
    transition: color 0.3s ease;
}
.footer-contact p {
    margin: 5px 0;
    animation: slideInFromLeft 1s ease-in-out;
}
.footer-social a {
    margin: 0 10px;
    display: inline-block;
    transition: transform 0.3s ease;
}
.footer-social img {
    height: 30px;
}
.footer-social a:hover {
    transform: scale(1.2);
}
@media (min-width: 768px) {
    .footer-menu .menu li {
        margin: 10px 40px;
    }
    .footer-contact, .footer-social {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .footer-contact p, .footer-social a {
        margin: 0 20px;
    }
}

/* Keyframes for animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Стили для навигационного блока */
.article-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.article-nav li {
    margin: 5px 0px;
}
.article-nav a:hover {
    text-decoration: underline;
}

/* Стили для кнопки "Наверх" */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    color: var(--color-text-white);
    background: linear-gradient(var(--deg-background), var(--color-left-background), var(--color-right-background));
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    overflow: hidden;
    outline: none;
    z-index: 20;
}
.scroll-to-top:hover {
    opacity: 0.8;
    transform: scale(1.02);
}
.scroll-to-top:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.3s ease;
}
.scroll-to-top:hover:before {
    left: 100%;
}
@keyframes shows {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* attention-block  */
.attention-block {
    background: linear-gradient(var(--deg-background), var(--color-left-background), var(--color-right-background));
    color: var(--color-text-white);
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 100%;
    animation: pulse 2s infinite;
}
.attention-block .head {
    margin: 0 0 10px;
    font-size: 24px;
    color: var(--color-text-white);
}
.attention-block p {
    font-size: 18px;
    margin: 0 0 20px;
    color: var(--color-text-white);
}
.cta-button {
    display: block;
    background-color: var(--color-text-white);
    color: var(--color-left-background);
    padding: 20px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.cta-button:hover {
    background-color: var(--color-left-background);
    color: var(--color-text-white);
    transform: scale(1.02);
}
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}
@media (max-width: 600px) {
    .attention-block {
        padding: 15px 20px;
    }
    .attention-block h2 {
        font-size: 20px;
    }
    .attention-block p {
        font-size: 16px;
    }
    .cta-button {
        padding: 8px 15px;
    }
}

/*fancy-list*/
.fancy-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: linear-gradient(var(--deg-background), var(--color-left-background), var(--color-right-background));
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
}
.fancy-list li {
    background-color: var(--color-text-white);
    color: var(--color-text-black);
    padding: 5px 20px;
    margin: 10px 0;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    position: relative;
    overflow: hidden;
}

/*fancy-list-linking*/
.fancy-list-linking {
    list-style: none;
    padding: 0;
    margin: 0;
    background: linear-gradient(var(--deg-background), var(--color-left-background), var(--color-right-background));
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
}
.fancy-list-linking-mini {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 10px;
}
.fancy-list-linking li {
    background-color: var(--color-text-white);
    margin: 10px 0;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    position: relative;
    overflow: hidden;
}
.fancy-list-linking li a {
    padding: 10px 20px;
    display: block;
    color: var(--color-left-background);
}
.fancy-list-linking li:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: rgba(255, 255, 255, 0.5);
    transition: left 0.3s ease;
}
.fancy-list-linking li:hover:before {
    left: 100%;
}
.fancy-list-linking li:hover {
    background-color: var(--color-left-background);
    color: var(--color-text-white);
    transform: scale(1.02);
}
.fancy-list-linking li:hover a {
    color: var(--color-text-white);
}

/*fancy-button*/
.fancy-button {
    background: linear-gradient(var(--deg-background), var(--color-left-background), var(--color-right-background));
    color: var(--color-text-white);
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    position: relative;
    overflow: hidden;
    outline: none;
}
.fancy-button:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.3s ease;
}
.fancy-button:hover:before {
    left: 100%;
}
.fancy-button:hover {
    transform: scale(1.02);
}


/* ХК */
.breadcrumbs {
    display: flex;
    align-items: center;
}
.breadcrumbs .arrow-right {
    padding: 10px;
}
.breadcrumbs a {
    display: block;
    background: linear-gradient(var(--deg-background), var(--color-left-background), var(--color-right-background));
    color: var(--color-text-white);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    position: relative;
    overflow: hidden;
    outline: none;
    border-radius: 5px 5px;
    padding: 10px;
}
.breadcrumbs a span {
    color: var(--color-text-white);
}
.breadcrumbs a:hover {
    transform: scale(1.02);
}
.breadcrumbs a:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.3s ease;
}
.breadcrumbs a:hover:before {
    left: 100%;
}

#more_text {
    display: none;
    animation: shows 1s;
    transition: all 2s linear;
}
.article-nav-wrap {
    margin: 2em 0px;
}
@media (max-width: 420px) {
    .site-title {
        display: none;
    }
}

/* Содержание fancy-list-index */
.fancy-list-index {
    background: linear-gradient(var(--deg-background), var(--color-left-background), var(--color-right-background));
    color: var(--color-text-white);
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    transition: transform 0.3s ease;
}
.fancy-list-index .head {
    margin-top: 0;
    font-size: 24px;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}
.fancy-list-index ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.fancy-list-index ul li {
    background-color: var(--color-text-white);
    color: var(--color-left-background);
    margin: 10px 0;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.fancy-list-index ul li:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.3s ease;
}
.fancy-list-index ul li:hover:before {
    left: 100%;
}
.fancy-list-index ul li:hover {
    background-color: var(--color-left-background);
    color: var(--color-text-white);
    transform: scale(1.02);
}
.fancy-list-index ul li a {
    padding: 5px 20px;
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.fancy-header {
    background: linear-gradient(var(--deg-background), var(--color-left-background), var(--color-right-background));
    color: var(--color-text-white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin: 20px;
    transition: transform 0.3s ease;
    z-index: 25;
}
.fancy-header .logo {
    font-size: 24px;
    font-weight: bold;
}
.fancy-header .site-title {
    font-size: 24px;
    transition: color 0.3s ease;
}
.mini-site-title {
    font-size: 16px;
}
.fancy-header nav {
    flex-grow: 1;
    text-align: right;
}
.fancy-header .nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}
.fancy-header .nav-list li {
    position: relative;
    overflow: hidden;
}
.fancy-header .nav-list li a {
    text-decoration: none;
    color: var(--color-text-white);
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.fancy-header .nav-list li:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.3s ease;
}
.fancy-header .nav-list li:hover:before {
    left: 100%;
}
.fancy-header .nav-list li:hover a {
    background-color: var(--color-text-white);
    color: var(--color-left-background);
}

.fancy-footer {
    background: linear-gradient(var(--deg-background), var(--color-left-background), var(--color-right-background));
    color: var(--color-text-white);
    padding: 40px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-top: auto;
    transition: transform 0.3s ease;
    margin: 20px;
}
.fancy-footer .footer-section {
    flex: 1;
    margin: 0 20px;
}
.fancy-footer .footer-section .head {
    font-size: 24px;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}
.fancy-footer .footer-section p {
    margin: 10px 0;
    line-height: 1.6;
    color: var(--color-text-white);
}
.fancy-footer .nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.fancy-footer .nav-list li {
    position: relative;
    overflow: hidden;
    margin: 10px 0;
}
.fancy-footer .nav-list li a {
    text-decoration: none;
    color: var(--color-text-white);
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.fancy-footer .nav-list li:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.3s ease;
}
.fancy-footer .nav-list li:hover:before {
    left: 100%;
}
.fancy-footer .nav-list li:hover a {
    background-color: var(--color-text-white);
    color: var(--color-left-background);
}
.fancy-footer .fancy-footer:hover {
    transform: scale(1.05);
}
@media (max-width: 768px) {
    .fancy-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .fancy-footer .footer-section {
        margin: 20px 0;
    }
}

/* Курсор */
body {
    cursor: none;

}
.content {
    text-align: center;
}
.custom-cursor {
    width: 30px;
    height: 30px;
    border: 2px solid #ff7e5f;
    border-radius: 50%;
    position: absolute;
    pointer-events: none;
    transition: transform 0.1s ease;
    z-index: 1000;
}
.custom-cursor::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,126,95,0.4) 0%, rgba(255,126,95,0) 70%);
    border-radius: 50%;
    transform: scale(2);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
body:hover .custom-cursor::before {
    opacity: 1;
    transform: scale(1);
}
body:hover .custom-cursor {
    transform: scale(1.2);
}
@keyframes cursorAnimation {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}
.custom-cursor {
    animation: cursorAnimation 2s infinite;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 30;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}
.modal p {
    margin: auto;
}
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}
.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.open-modal {
    position: fixed;
    bottom: 20px;
    left: 20px;
    color: var(--color-text-white);
    background: linear-gradient(var(--deg-background), var(--color-left-background), var(--color-right-background));
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    overflow: hidden;
    outline: none;
    z-index: 20;
}
.open-modal:hover {
    opacity: 0.8;
    transform: scale(1.02);
}
.open-modal:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.3s ease;
}
.open-modal:hover:before {
    left: 100%;
}

/* Закрепленный header */
.sticky {
  position: fixed;
  top: 0;
  width: calc(100% - 40px);
}
article pre,
pre.code {
    line-height: 1.8;
    background: linear-gradient(var(--deg-background), var(--color-left-background), var(--color-right-background));
    color: var(--color-text-white);
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    transition: transform 0.3s ease;
}
article .table_wrapper {
    overflow-y: auto;
    margin: 2em 0em;
}
article table,
table.table {
    width: 100%;
    color: var(--color-text-black);
    border-collapse: collapse;
}
article table td,
table.table td {
    padding: 10px;
    border-collapse: collapse;
}
article table tr:first-child,
table.table tr:first-child {
    font-weight: bold;
    background: linear-gradient(var(--deg-background), var(--color-left-background), var(--color-right-background));
    color: var(--color-text-white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
article table tr:not(:last-child),
table.table tr:not(:last-child) {
    border-bottom: 1px solid #ccc;
}
article table td:not(:last-child),
table.table td:not(:last-child) {
    border-right: 1px solid #ccc;
}



.features_icons_wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    list-style-type: none;
    padding: 0px;
}
.features_icons_wrapper li {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 33%;
}
.features_icons_wrapper img {
    width: 128px;
}
.features_icons_wrapper div {
    text-align: center;
}

.attention-block-mini {
    display: inline-block;
    width: auto;
    padding: 5px;
}
.attention-block-mini .cta-button {
    padding: 10px 20px;
}

.max_block_wrapper {
    border: 1px solid #ededed;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 10px 20px;
    border-radius: 10px;
    margin: 20px 0px;
}
.img_left_block_wrapper {
    display: flex;
    align-items: center;
}
.img_left_block_wrapper img {
    width: 25%;
    height: max-content;
}
.img_left_block_wrapper > div {
    padding: 20px;
}

.card_max_block_wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2%;
}
.card_max_block_wrapper > div {
    width: 48%;
}
@media (max-width: 550px) {
    .features_icons_wrapper li {
        width: 100%;
    }
    .card_max_block_wrapper > div {
        width: 100%;
    }
}
@media (max-width: 750px) {
    .img_left_block_wrapper {
        flex-direction: column;
    }
    .img_left_block_wrapper img {
        padding: 20px;
        width: 50%;
    }
}
.telegram-flat-icon {
    position: fixed;
    bottom: 70px;
    left: 20px;
    z-index: 999;
}
.telegram-flat-icon:hover {
    zoom: 1.05;
}

.banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none; /* Скрываем события для скрытого баннера */
}

.banner.show {
    opacity: 1;
    pointer-events: auto; /* Включаем события, когда баннер виден */
}

.banner-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-btn {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 20px;
}

.close-btn:hover {
    background-color: #ff0000;
}