:root { 
  --bg-color: #eee;
  --bg-color2: #fff;
  --text-col: #000;
  --bg-clo2: #fff;
  --block-col: #fff;
  --boto: #ddd;
  --comboxtext: #fff;
}

.dark-theme {
  --bg-color: #0E0E11;
  --bg-color2: #333;
  --text-col: #f0f0f0;
  --block-col: #202022;
  --bg-clo2: #333;
    --boto: #9b9b9c;
    --comboxtext: #9b9b9c;
}
html {
    scroll-behavior: smooth;
}


body{
font-family: 'Times New Roman';
background: var(--bg-color2);
overflow-x: hidden;
}

.topBlock{
  position: fixed;
  display: flex;
  flex-direction: column;
  /*overflow-y: hidden;*/
  /*overflow-x: auto;*/
  width: 100%;
  top: 0;
  right: 0;
  left: 0;
z-index: 4;
}

.menuBlock2{
  position: relative;
  display: flex;
  overflow-y: hidden;
  overflow-x: auto;
  background: #202022;
  width: 100%;
  top: 0;
  right: 0;
  left: 0;
z-index: 2;
flex-wrap: nowrap;
}

.menuBlock2::-webkit-scrollbar {
  width: 0; /* Ширина всего элемента навигации */
  height: 0;
}


      @media screen and (max-width: 1151px){
        .menuBlock2 {
            padding-left: 90px;
            width: calc(100% - 90px);
        }
    }
     /*Когда ширина окна от 1100 пикселей, ширина  div-2 будет 900px */
    @media screen and (min-width: 1151px){
        .menuBlock2 {
              padding-left: 120px;
            width: calc(100% - 120px);
        }
    }

.mnBtn{
  position: relative;
  display: inline-block;
  font-size: calc(20px + (4 + 4 * 0.7) * ((100vw - 320px)/1000));
  margin: 3px 10px;
  color: #fff;
  text-align: center;
  cursor: pointer;
  padding: 0px 10px;
  border-radius:95% 4% 92% 5%/4% 95% 6% 95%;
  user-select: none;
text-decoration: none;
-webkit-touch-callout:none;                
-webkit-text-size-adjust:none;             
-webkit-tap-highlight-color:rgba(0,0,0,0);
-webkit-user-select:none;
}

.head666{
position: absolute;
top: 60px;
width: 100%;

left: 0;
right: 0;
margin: 0 auto;
display: flex;
flex-direction: column;
z-index: 1;
padding-bottom: 200px;
}


.head666::-webkit-scrollbar {
  height: 8px; /* Ширина всего элемента навигации */
}

.head666::-webkit-scrollbar-track {
  background: #eee; /* Цвет дорожки */
}

.head666::-webkit-scrollbar-thumb {
  background-color: #bbb; /* Цвет бегунка */
  border-radius: 20px; /* Округление бегунка */
  border: 3px solid #eee; /* Оформление границ бегунка */
}


.mySwiper{
/* position: absolute; */
display: inline-flex;
top: 40px;
flex-direction: column;
background: var(--block-col);
color: var(--text-col);
padding: 0px 0 0 0px;
left: 0;
z-index: 999999999;
padding-bottom: 200px;
}


.mySwiper::-webkit-scrollbar {
    width: 0px; /* ширина для вертикального скролла */
    height: 8px; /* высота для горизонтального скролла */
    background-color: #fff;
}

/* ползунок скроллбара */
.mySwiper::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border: 2px solid #fff;
    border-radius: 4px;
}



.slidy0{
 position: static; /* указываем перед sticky */
  position: sticky;
  top: 40px;
 display: flex;
  align-items: center;
  justify-content: center;
    flex-wrap: wrap;
font-size: calc(20px + (12 + 12 * 0.7) * ((100vw - 320px)/1300));
padding: 5px 0px;
text-decoration: none;
text-align: center;
color: var(--text-col);
margin: 0 auto;
font-weight: bold;
z-index: 3;
width: 95%;
    border-radius: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    
}

.slidy:hover {
    scrollbar-color: rgba(155, 155, 155, 0.6) transparent;
}






.slidy{
position: relative;
display: flex;
flex-direction: column;
font-size: calc(12px + (4 + 4 * 0.7) * ((100vw - 320px)/1300));
cursor: pointer;
background: var(--block-col);
color: var(--text-col);
margin: 7px;
 padding: 5px 3px;

-webkit-box-shadow: 0px 0px 2px 1px rgba(34, 60, 80, 0.2);
-moz-box-shadow: 0px 0px 2px 1px rgba(34, 60, 80, 0.2);
box-shadow: 0px 0px 2px 1px rgba(34, 60, 80, 0.2);
 width: 250px;
border-radius: 10px;
    text-decoration: none;
}

  .slidy:hover {
            transform: scale(1.01);
            box-shadow: 0 0 7px rgba(109, 109, 109, 0.4);
      transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
        }



.slidy01{
position: relative;
    display: flex;
    width: 100%;
    overflow-x: auto;
    padding: 3px 0;
    font-size: calc(12px + (4 + 4 * 0.7) * ((100vw - 320px)/1300));
    
}


/* Скрываем стандартный скролл визуально, но оставляем функционал */
.slidy01::-webkit-scrollbar {
    height: 8px;
}

.slidy01::-webkit-scrollbar-track {
    background: transparent;
}

/* Бегунок по умолчанию — почти прозрачный */
.slidy01::-webkit-scrollbar-thumb {
    background-color: rgba(155, 155, 155, 0.3);
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

/* При наведении бегунок становится четким */
.slidy01::-webkit-scrollbar-thumb:hover {
    background-color: rgba(155, 155, 155, 0.6);
}

/* Стили для Firefox (бегунок всегда полупрозрачный) */
.slidy01 {
    scrollbar-width: thin;
    scrollbar-color: rgba(155, 155, 155, 0.3) transparent;
}




.slidy02{
position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding: 3px 0;
    font-size: calc(12px + (4 + 4 * 0.7) * ((100vw - 320px)/1300));
}


.slidyUrt{
position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 2px;
    left: 2px;
    background: #fff;
    padding: 3px 7px;
    width: 24px;
    border-radius: 0 0 6px 0;
}

.slidyImg{
width: 250px;
border-radius: 7px;
object-fit: cover;
}

.slidyText{
position: relative;
    padding: 5px 10px;
    text-align: center;
    font-size: calc(11px + (4 + 4 * 0.7) * ((100vw - 320px)/1300));
    font-weight: 600;
}

.slidyText2{
    position: relative;
font-size: calc(8px + (4 + 4 * 0.7) * ((100vw - 320px)/1300));
filter: grayscale(100%) opacity(0.8);
    text-align: justify;
     padding: 2px 4px;
     text-indent: 1em;
}

.slidyHi{
  position: relative;
  display: inline-block;
  padding: 5px 10px;
  left: 0;
  background: #333;
  color: #fff;
  margin: 0;
  width: 20px;
  margin-right: 3px;
  text-align: center;
  font-size: calc(10px + (4 + 4 * 0.7) * ((100vw - 320px)/1300));
  border-radius: 0 9px 0 9px;
}


#y5{
display: none;
}


#y6{
display: none;
}

#y7{
display: none;
}

#y8{
display: none;
}

#y9{
display: none;
}

#y10{
 display: none;
}

#y11{
display: none;
}

#y12{
display: none;
}

.slidySil{
  text-decoration: none;
  color: var(--text-col);
}

.swiper-slide2{
        position: relative;
        display: flex;
width: 98%;
left: 0;
right: 0;
margin: 0 auto;
        background: #fff;
        -webkit-box-shadow: 0px 0px 2px 1px rgba(34, 60, 80, 0.2);
        -moz-box-shadow: 0px 0px 2px 1px rgba(34, 60, 80, 0.2);
        box-shadow: 0px 0px 2px 1px rgba(34, 60, 80, 0.2);

       border-radius: 7px;
        z-index: 1;
        margin-bottom: 10px;
    }

.imgol{
   border-radius: 7px;
   width: 100%;
   height: 100%;
}

.fullScreen{
  position: absolute;
  top: 0px;
  right: 0px;
z-index: 4;
}

.BtnPakt{
  position: relative;
  display: block;
  border: 0;
  background: #fff;
  padding: 4px 10px;
  left: 0;
  right: 0;
  margin: 10px auto;
  font-size: 18pt;
  border-radius: 3px;
-webkit-box-shadow:0px 2px 5px 0px rgba(0, 0, 0, 0.52);
-moz-box-shadow:0px 2px 5px 0px rgba(0, 0, 0, 0.52);
box-shadow:0px 2px 5px 0px rgba(0, 0, 0, 0.52);
transform:translateY(-1px);


}




blockquote {
margin: 10px auto;
background: var(--block-col);
border-top: 2px dashed #777;
border-bottom: 2px dashed #777;
padding: 10px 15px;
text-indent: 30px;
width: 80%;
text-align: justify;
font-size: calc(12px + (4 + 4 * 0.7) * ((100vw - 320px)/1000));
}




h1, h2, h2, h3{
    margin: 0;
}


.contentTextBox{
  position: relative;
  display: block;
  background: var(--bg-color2);
  color: var(--text-col);
  border-radius: 7px;
  font-size: calc(12px + (4 + 4 * 0.7) * ((100vw - 320px)/1000));
  z-index: 1;
  margin-bottom: 10px;
  margin-left: 1%;
}


      @media screen and (max-width: 1151px){
        .contentTextBox {
            width: 98%;
        }
    }
     /*Когда ширина окна от 1100 пикселей, ширина  div-2 будет 900px */
    @media screen and (min-width: 1151px){
        .contentTextBox {
    width: 70%;
        }
    }


.backfon{
  position: absolute;
  display: flex;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: #0f0;
  opacity: 0.3;
  width: 0px;

  border-radius: 2px;
    font-size: 0px;
}



.imgPas{
    position: relative;
    display: block;
    max-width: 80%;
    margin: 0 auto;
    border-radius: 3px;
}


.comtemtDown{
    
    position: relative;
    top: 150px;
    width: 100%;
    max-width: 1100px;
    left: 0;
    min-height: 50px;
    right: 0;
    margin: 0 auto;
}



.soderBlock{
    position: relative;
    display: block;

    font-size: calc(10px + (4 + 4 * 0.7) * ((100vw - 320px)/1000));
}




.soderBlockName{
    font-size: calc(12px + (4 + 4 * 0.7) * ((100vw - 320px)/1000));
    margin-bottom: 10px;
    margin-left: 20px;
    font-weight: bold;
    color: var(--text-col);
}

.soderBlockNameBlock{

    top: 60px;
    border-left: 1px solid var(--text-col);
    padding: 10px 5px;

}


      @media screen and (max-width: 1151px){
        .soderBlockNameBlock {
           
            position: static;
            left: 0;
            width: 100%;
        }
    }
     /*Когда ширина окна от 1100 пикселей, ширина  div-2 будет 900px */
    @media screen and (min-width: 1151px){
        .soderBlockNameBlock {
            position: fixed;
            right: 0;
            width: 20%;
        }
    }







.soderBlockli{
    padding: 5px 10px;
    cursor: pointer;
    color: var(--text-col);
    
}

.soderBlockli:hover{
    color: #f00;
}


  .code-editor {
           position: relative;
      left: 1%;
        display: flex;
        align-items: flex-start;
        font-family: 'Courier New', Courier, monospace;
        border: 1px solid #ccc;
        border-radius: 5px;
        width: 72%;
        margin: 10px 0;
        padding-top: 20px;
          margin-bottom: 10px;
    }

    /* Стили номеров строк */
    .line-numbers {
        background-color: #f0f0f0;
        padding: 15px 10px;
        text-align: right;
        margin-right: 10px;
        user-select: none; /* Номера нельзя скопировать */
        border-right: 1px solid #ccc;
        font-size: calc(12px + (4 + 4 * 0.7) * ((100vw - 320px)/1000));
        line-height: 1.5; /* Важно для синхронизации */
    }

    /* Стили редактируемой зоны */
    .code-input {
        flex-grow: 1;
        outline: none;
        
        white-space: pre-nowrap; /* Сохраняет пробелы и переносы */
        color: var(--text-col);
        font-size: calc(12px + (4 + 4 * 0.7) * ((100vw - 320px)/1000));
        line-height: 1.5;
        tab-size: 4;
    }
    pre{
    overflow-x: auto;
    }
    .code-heder{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #333;
    color: #fff;
    padding: 2px 10px;
    font-size: calc(14px + (4 + 4 * 0.7) * ((100vw - 320px)/1000));
    font-family: 'Courier New', Courier, monospace;
}

math{
    position: relative;
    left: 1%;
    width: 72%;
font-size: calc(20px + (6 + 6 * 0.7) * ((100vw - 320px)/1000));
}




