:root {
    --bg-navigation: #d7d5da;
    --bg-breadcrumb: linear-gradient(-220deg, transparent 0%, #e8e7ed29 80%);
    --filter-icon-menu: invert(70%);
    --mobile-view-for-javascript: 0;
    --glass-bg: #eae7ef38;
    --glass-shadow: 0 -1px 0 #eeebf0, 1px 1px 0 0 #9b9a9c, 2px 3px 3px 0px #8f879775;
}

:root[data-color-scheme="dark"] {
    --bg-navigation: #3b3743;
    --bg-breadcrumb: linear-gradient(-40deg, transparent 0%, #2d2a3929 80%);
    --filter-icon-menu: invert(0%);
    --glass-bg: #a8a1b81a;
    --glass-shadow: 0 -1px 0 #666468, 1px 1px 0 0 #38343c, 2px 3px 3px 0px #29203375;
}


.highlight {
    animation: highlight-blink .3s ease 2;
    /* Анимация мерцания 2 раза */
}

@keyframes highlight-blink {
    0%,
    100% {
        filter: var(--h-filter);

    }

    50% {
        filter: drop-shadow(0px 0px 10px hsl(49, 99%, 49%));
        
        /* Применение эффекта drop-shadow */
    }
}

body {
    position: relative;
    grid-template-rows: 180px 1fr var(--footer-size);
}

header.main-header {
    grid-template-rows: 70px 70px 50px;
}

header.main-header ul {
    margin-left: calc(10% + 146px);
}

main {
    grid-template-columns: 250px 1fr;
    grid-template-rows: 30px 1fr;
    grid-row-gap: 0;
}
ul{
    line-height: 28px;
}
ul li{
    margin-top: 22px;
}
span.primer{
    font-size: .8em;
    color: #95959c;
    text-shadow: var(--txt-shadow);
    font-style: italic;
    background: #46454f;
    padding: 7px;
    border-radius: 5px;
}
#emblem {
    margin-left: -30px;
    margin-top: -70px;
    transform: scale(0.6);
}
#manualNavigation {
    position: absolute;
    width: 220px;
    top: 0;
    bottom: 0;
    height: calc(100% - var(--footer-size));
    padding: 0 10px 0 0;
    box-sizing: border-box;
    background: linear-gradient(-90deg, var(--bg-navigation), transparent);
    box-shadow: 1px 0 0 var(--footer-color-top-line), 3px 0 3px var(--footer-color-shadow-inset);
    font-size: 14px;
    line-height: 24px;
    z-index: 1;
    transition: background .5s;
    /* grid-row: 1/-1; */
    /* overflow: hidden; */
}
#parentForGlass{
    position: relative;
    margin-top: 220px;
    /* width: 100%; */
}
.fixed-navigation {
  position: fixed !important;
  margin-top: 0px!important;
  width: inherit;
  /* padding-top: 10px; */
  }

#manualNavigation menu {
    -webkit-user-select: none;
    /* Chrome/Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* IE/Edge */
    user-select: none;
    /* Стандартный синтаксис */
    padding: 0;
    z-index: 100;
    position: relative;
    overflow: hidden;
    height: 30px;
    transition: height .3s;
}

#manualNavigation menu li {
    list-style-type: none;
    margin-left: 20px;
    position: relative;
}

#manualNavigation a {
    display: inline-block;
    width: 100%;
    height: 100%;
}

#help-main-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 120px);
    margin: 0 10px 0 0;
    grid-column-gap: 2em;
    row-gap: 1em;
    padding: 0;
}

#help-main-sections li {
    list-style-type: none;
}

#help-main-sections li a {
    display: grid;
    list-style-type: none;
    height: 100%;
    grid-template-columns: 112px 1fr;
    border-radius: 5px;
    background: repeating-linear-gradient(-45deg, #66627710 0 10px, #504c5f10 10px 20px, #8a869f10 20px 30px);
    font-size: 1.3em;
    /* align-items: center; */
    /* text-align: center; */
    /* justify-content: center; */
    box-sizing: border-box;
    box-shadow: 0 0 0 5px #aaa5b82b inset;
    align-items: center;
    cursor: pointer;
}

#help-main-sections li a::before {
    height: 100%;
    display: block;
    background: url('/images/dams4.jpg') no-repeat;
    background-size: auto;
    clip-path: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 %3E%3Cdefs%3E%3CclipPath id=%22clipers%22 transform=%22translate(-89 -36), rotate(32, 100, 100), scale(2.5, 2.5)%22%3E%3Cpath d=%22m 73.496487,22.850109 0,33.865568 a 4.5827174,4.5827174 120 0 1 -2.291359,3.96875 L 41.876686,77.617208 a 4.5827181,4.5827181 8.4135348e-7 0 1 -4.582718,0 L 7.9655282,60.684427 a 4.5827176,4.5827176 59.999999 0 1 -2.2913589,-3.96875 l -1e-7,-33.865567 A 4.5827178,4.5827178 120 0 1 7.965528,18.88136 L 37.293968,1.9485768 a 4.5827178,4.5827178 180 0 1 4.582718,-1e-7 L 71.205128,18.881359 a 4.5827175,4.5827175 59.999999 0 1 2.291359,3.96875 z%22%3E%3C/path%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E#clipers');
    -webkit-clip-path: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 %3E%3Cdefs%3E%3CclipPath id=%22clipers%22 transform=%22translate(-89 -36), rotate(32, 100, 100), scale(2.5, 2.5)%22%3E%3Cpath d=%22m 73.496487,22.850109 0,33.865568 a 4.5827174,4.5827174 120 0 1 -2.291359,3.96875 L 41.876686,77.617208 a 4.5827181,4.5827181 8.4135348e-7 0 1 -4.582718,0 L 7.9655282,60.684427 a 4.5827176,4.5827176 59.999999 0 1 -2.2913589,-3.96875 l -1e-7,-33.865567 A 4.5827178,4.5827178 120 0 1 7.965528,18.88136 L 37.293968,1.9485768 a 4.5827178,4.5827178 180 0 1 4.582718,-1e-7 L 71.205128,18.881359 a 4.5827175,4.5827175 59.999999 0 1 2.291359,3.96875 z%22%3E%3C/path%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E#clipers');
    border: 5px solid #7e779499;
    box-sizing: border-box;
    border-radius: 5px;
    place-content: center;
    filter: grayscale(40%);
    font-size: 2em;
    text-shadow: 2px 2px 3px #08050e;
    color: #c8bddb;
    padding-right: 15px;
    text-align: center;
}

#help-main-sections li:nth-child(1) a::before {
    content: '1';
    background-position: -70px -100px;
}

#help-main-sections li:nth-child(2) a::before {
    content: '2';
    background-position: -150px -290px;
}

#help-main-sections li:nth-child(3) a::before {
    content: '3';
    background-position: -390px -500px;
}

#help-main-sections li:nth-child(4) a::before {
    content: '4';
    background-position: -750px -500px;
}

#help-main-sections li a p {
    text-indent: 0px;
    margin-right: .5em;
    margin-left: .5em;
}

#breadcrumb {
    grid-row: 1;
    grid-column: 2;
    justify-self: end;
    margin: 0;
    text-shadow: var(--txt-shadow);
    margin-right: 10px;
}
#breadcrumb ol{
    margin: 0;
}
#breadcrumb li {
    display: inline;
    list-style-type: none;
}

#breadcrumb li:not(:last-of-type):after {
    content: "⮞";
    margin-left: 10px;
    margin-right: 5px;
    color: #878393;
    text-shadow: var(--txt-shadow);
}

#breadcrumb a {
    font-size: .6em;
    padding: 4px 10px 4px 10px;
    /* box-shadow: 1px 1px 0 #fff, -1px -1px 0 #000; */
    border-radius: 6px;
    box-shadow: 1px 1px 0 0 var(--butt-color-top-line), -1px -1px 0 0 var(--butt-color-bottom-line);
    background: var(--bg-breadcrumb);
    backdrop-filter: blur(1px);
    color: #878393;
    text-shadow: var(--txt-shadow);
}
.button_icon{
    background-image: url('/images/manual/icons_hidpi.png');
    width: 32px;
    display: inline-block;
    height: 30px;
    vertical-align: middle;
}

.mask {
    float: left;
    width: 200px;
    height: 200px;
    margin-left: -70px;
    margin-top: -110px;
    shape-outside: polygon(100% 0%, 100% 25%, 25% 100%, 0% 100%);
}

article, section {
    grid-column: 2;
    /*grid-row: 2;*/
}

article p:first-of-type {
    text-indent: 20px;
}

h3:not(:first-of-type) {
    margin-top: 50px;
}

abbr {
    text-decoration: dotted underline;
    cursor: help;
    /* Указывает, что текст интерактивен */
    color: var(--abbr-color);
    /* Синий цвет текста */
    /* font-weight: bold; */
    /* Выделяет текст жирным */
}

abbr:hover {
    text-decoration: none;
    /* Убирает подчеркивание при наведении */
    color: #3f3f50;
    /* Темный оттенок синего при наведении */
    background-color: #f0f8ff;
    /* Светлый фон при наведении */
    /* padding: 2px; */
    /* Добавляет небольшой отступ */
    border-radius: 3px;
    /* Округляет уголки фона */
}

.custom-tooltip {
    display: none;
    position: fixed;
    /* Меняем позиционирование на fixed для точности */
    background-color: #f0f8ff;
    color: #000;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.9em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.openHelp {
    cursor: pointer;
    display: inline-flex;
    width: 100%;
    max-width: 100%;
    background-repeat: no-repeat;
    padding-left: 38px;
    align-items: end;
    box-sizing: border-box;
    /* box-shadow: 0 1px 0 0 #000; */
}

.openHelp:before {
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-left: -30px;
    margin-right: 10px;
    content: "";
    background-size: cover;
    background-repeat: repeat;
    filter: var(--filter-icon-menu);
    -webkit-filter: var(--filter-icon-menu);
    background-image: url(/images/manual/manual.png);
    transition: filter .3s;
    /* filter: hue-rotate(0deg); */
}

#email_send:before {
    background-position: 0px 0px;
}

#base_management:before {
    background-position: 0px 30px;
}

#template_email:before {
    background-position: 0px 60px;
}

#balance:before {
    background-position: 0px 90px;
}

#additionally:before {
    background-position: 0px 120px;
}

#glass {
    width: calc(100% + 15px);
    background: var(--glass-bg);
    display: block;
    padding: 3px 10px 3px 0;
    border-radius: 0 7px 7px 0;
    box-shadow: var(--glass-shadow);
    position: absolute;
    backdrop-filter: blur(2px);
    text-align: right;
    top: -45px;
    transform: translate3d(0px, -225px, 0px);
    height: 25px;
    transition: transform .3s, height .3s;
    align-content: center;
}

#glass:after {
    content: "\2B9A";
    font-weight: bold;
    color: var(--font-color);
    font-size: 1.3em;
}

article figure {
    padding: 8px;
    width: 100%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    border-radius: 7px;
    display: block;
    background: repeating-linear-gradient(-45deg, #666277 0 10px, #504c5f 10px 20px, #8a869f 20px 30px);
    box-shadow: 3px 3px 5px #2e2a38;
}

article figure img,
article figure figcaption {
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: 100%;
    filter: grayscale(30%);
}

article figure figcaption {
    background: #4d4659e8;
    backdrop-filter: blur(2px) contrast(300%);
    font-size: .8em;
    box-sizing: border-box;
    text-align: center;
    color: #d3c8ea;
    padding: 10px;
    /* display: block; */
    border-radius: 0 0 7px 7px;
}

figure.descLeft {
    /* background: none; */
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: 300px auto;
    align-items: center;
    margin: 20px 0;
}

figure.descLeft figcaption {
    /* color: #070707; */
    font-size: inherit;
    text-align: left;
    text-indent: 2em;
}






@media screen and (max-width: 1220px) {
    .mask {
        display: none;
    }

    #emblem {
        margin-left: -110px;
        /* margin-top: -40px; */
    }
/*
    #manualNavigation {
        padding: 260px 10px 0 0;
    }*/
}

@media screen and (max-width: 1090px) {
    #help-main-sections {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 120px);
        row-gap: .5em;
    }
}

@media screen and (max-width: 850px) {
    :root {
        /* проверяем в JS что используется мобильная версия */
        --mobile-view-for-javascript: 1;
    }

    header.main-header {
        grid-template-rows: 0 90px 50px;
    }

    #emblem {
        margin-left: -177px;
        margin-top: -103px;
        transform: scale(0.55);
    }

    body {
        grid-template-rows: 120px 1fr var(--footer-size);
    }

    #manualNavigation {
        /* display: flex; */
        padding: 0px 10px 0 0;
        background: var(--bg-navigation);
        /*transform: translate3d(-200px, 0px, 0px);
        transition: transform .3s;*/
    }

    main {
        grid-template-columns: 1fr;
        touch-action: pan-y;
    }


    #glass {
        width: calc(100% + 10px);
        padding: 3px 5px 3px 0;
        /* background: #3c3943; */
    }

    section,
    #breadcrumb {
        grid-column: 2;
    }

    section {
        padding: 0 10px 0 25px;
    }
}


@media screen and (max-width: 600px) {
    figure.descLeft {
        grid-template-columns: auto;
        grid-auto-flow: row;
    }

    #emblem {
        margin-left: -177px;
        margin-top: -103px;
        transform: scale(0.4);
    }
}


@media screen and (max-width: 450px) {
    #help-main-sections li a {
        font-size: 1em;
    }
}

