.navigation, 
.navigation a {
    cursor: pointer !important;
}

#main-nav {
    display: flex !important;
    align-items: center !important;
    height: 50px !important;
    position: static !important;
    z-index: 1002 !important;
}

.navigation a {
    display: flex !important;
    align-items: center !important;
    height: 50px !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    position: static !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
}

.main {
    height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-family: Verdana;
}

.container {
    width: 99%;
    margin: 30px 0 0 0 !important;
    padding-left: 2.5%;
}

@media (min-width: 768px) {
    .container {
        width: 60%;
    }
}

@media (min-width: 1024px) {
    .container {
        width: 58%;
    }
}

h1 {
    line-height: 400%;
    margin-top: 40px; 
    padding-bottom: 10px; 
    font-size: 16px; 
    color: black;
    font-weight: initial;
    letter-spacing: -0.1px;
    line-height: 1.125;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 768px) {
    h1 {
        margin-top: 40px;
        padding-bottom: 15px;
        font-size: 19px;
    }
}

.sub {
    font-size: 20px;
}

@media (min-width: 768px) {
    .sub {
        font-size: 22px;
    }
}


.title {
    font-size: 17px;
}

@media (min-width: 768px) {
    .title {
        font-size: 15px;
    }
}

h2 {
    font-size: 19px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-top: 0px; 
    font-weight: normal;
}

@media (min-width: 768px) {
    h2 {
        font-size: 20px;
    }
}

.color {
    color: #7f6000;
    font-size: 17px;
}

@media (min-width: 768px) {
    .color {
        font-size: 15px;
    }
}

a {
    color: black;
}

.h1_indxmain {
    font-size: 24px;
    color: black;
    font-weight: initial;
    letter-spacing: -0.1px;
    line-height: 1.125;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 768px) {
    .h1_indxmain {
        font-size: 28px;
    }
}

.h1_indx {
    color: #666666;
    font-size: 16px;
    line-height: 400%;
    font-weight: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 768px) {
    .h1_indx {
        font-size: 18px;
    }
}

.toc_indx {
    font-size: 11px;
    line-height: 1;
    padding-left: 20px;
}

@media (min-width: 768px) {
    .toc_indx {
        font-size: 12px;
        padding-left: 25px;
    }
}

.toc {
    font-size: 14px;
    line-height: 1;
    padding-left: 20px;
    color: #1155cc;
}

@media (min-width: 768px) {
    .toc {
        font-size: 16px;
        padding-left: 25px;
    }
}

p {
    font-size: 17px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5; 
}
ul {
    padding-left: 30px; /* общий отступ списка */
}
li {
    font-size: 17px;
    list-style-type: disc;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5; 
    padding-left: 0px;
}

@media (min-width: 768px) {
    p, li {
        font-size: 16px;
    }
}

.link {
    color: #1155cc;
}



/* Модальное окно */
.modal-checkbox {
    display: none;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-checkbox:checked ~ .modal-overlay {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border: 3px solid white;
    border-radius: 8px;
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
}

.caption {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-top: 5px;
}

.modal-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: default;
}

/* Шапка  */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.logo {
    font-size: 12px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 1;
    min-width: 0;
}

.navigation {
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
}

.navigation a {
    text-decoration: none;
    color: #333;
    font-size: 11px !important;
    white-space: nowrap;
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .logo {
        font-size: 12px !important;
    }
    .navigation a {
        font-size: 12px !important;
    }
}

@media (min-width: 850px) {
    .logo {
        font-size: 18px !important;
    }
    .navigation a {
        font-size: 14px !important;
    }
}

/* размер текста в содержании */
.toc_indx {
    font-size: 16px; 
}

.toc_indx p {
    font-size: 16px; 
    line-height: 1.1; 
}

.toc_indx a {
    font-size: 16px; 
}

/* ширина кода */
pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    white-space: pre-wrap; /* перенос по словам */
    word-wrap: break-word; /* перенос длинных слов */
    word-break: break-all; /* принудительный перенос */
    overflow-wrap: break-word; /* современный перенос */
    max-width: 100%;
    font-size: 12px;
    line-height: 1.4;
    margin: 15px 0;
}

/* разделитель */
.divider {
    height: 1px;
    background-color: #ccc;
    margin: 20px 0;
    border: none;
}

/* внутренние ссылки */
.lint {
    color: #3ea8ff;
}


/* Определение шрифта */
@font-face {
    font-family: 'Glyphicons Halflings';
    src: url('../fonts/glyphiconshalflings-regular.eot');
    src: url('../fonts/glyphiconshalflings-regular.eot?#iefix') format('embedded-opentype'),
         url('../fonts/glyphiconshalflings-regular.woff2') format('woff2'),
         url('../fonts/glyphiconshalflings-regular.woff') format('woff'),
         url('../fonts/glyphiconshalflings-regular.ttf') format('truetype'),
         url('../fonts/glyphiconshalflings-regular.svg#glyphicons_halflingsregular') format('svg');
    font-weight: normal;
    font-style: normal;
  }
  
  /* Подключаем шрифт только с двумя символами */
@font-face {
    font-family: 'MyIcons';
    src: url('../fonts/glyphiconshalflings_regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }
  
  /* Базовый класс для иконок */
  .icon {
    font-family: 'MyIcons';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
  }
  
  /* Конкретные иконки */
  .icon-doc:before { content: "\E022"; }
  .icon-pen:before { content: "\E065"; }
  
  /* Размеры по желанию */
  .icon-small { font-size: 16px; }
  .icon-medium { font-size: 24px; }
  .icon-large { font-size: 32px; }
  
  /* Цвета */
  .icon-red { color: #ff0000; }
  .icon-yellow { color: #ffd700; }
  .icon-white { color: white; }