@font-face {
    font-family: 'Century-Gothic';
    src: url('../fonts/GOTHIC.woff2') format('woff2'),
        url('../fonts/GOTHIC.woff') format('woff');
    font-style: normal;
}

@font-face {
    font-family: 'Century-Gothic';
    src: url('../fonts/GOTHICB.woff2') format('woff2'),
        url('../fonts/GOTHICB.woff') format('woff');
    font-style: normal;
    font-weight: 700;
}

html {
    height: 100%;
    box-sizing: border-box;
    background-color: #111111;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

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

body { 
    font-family: "Century-Gothic";
    line-height: 1.75;
}
.wrapper {
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    min-height: calc( 100vh - 100px);
}

ul {
    list-style-type: none;
    padding: 0;
}

.content ul {
    list-style-type: none;
}
.content li::before {
    content: '•';
    color: rgb(220,220,220); /* Белый текст */
    display: inline-block;
    width: 1em;
}
.content li {
    margin-top: 5px;
    margin-left: 5px;
}

header {
    background-color: rgb(38, 150, 38);
    padding-left: 10px;
    padding-right: 10px;
    width: 100%;
    border-bottom: solid rgb(93, 92, 92) 1.5px;
    position: fixed;
    top: 0; 
    left: 0;
    z-index: 1000;
}

.header__inner {
    padding-left: 10px;
    padding-right: 30px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.logo__click:hover {
    background-color: rgb(28, 114, 28);
}


.logo {
    display: flex;
    align-items: center;
    height: 55px;
    padding-left: 10px;
    padding-right: 10px;
    gap: 10px;
}

.logo img {
    width: 50px;
    height: auto;
    border-radius: 50%;
}

.logo__text {
    color:#f9e105;
    font-size: 25px;
    font-family: "Century-Gothic";
    font-weight: bold;
    margin-left: 10px;
    letter-spacing: 10px;
    text-shadow: 1px 1px 1px #000;
}

.nav__list {
    display: flex;
    gap: 35px;
}


.nav__link {
    font-size: 18px;
    font-family: "Century-Gothic";
    text-decoration: none;
    color: white;
    text-shadow: 0.5px 0.5px 0.5px #000;
}

.nav__link:hover {
    color: rgb(186, 186, 186);
}

.page-title {
    text-align: center;
}

.main {
    padding: 0;
    padding-top: 30px;
    padding-bottom: 50px;
    color: rgb(220,220,220);
    flex: 1 0 auto;
}

.main__inner {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0px;
    gap: 40px;
}

.content {
    flex: 1; 
    max-width: 900px;
    background-color: rgb(35, 35, 35);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
	margin-left: auto;
    margin-right: auto;
}

.content h1, 
.content h2, 
.content h3, 
.content h4 {
    scroll-margin-top: 120px; 
}

.content h1:first-child, .content h2:first-child, .content h3:first-child, .content h4:first-child {
    margin-top: 5px;
}

.content h1, .content h2, .content h3, .content h4 {
    margin-block-start: 0.4em;
}


.error-container {
    width: 100%;
    height: 100%;
    color: rgb(220,220,220);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    line-height: 1;
}
.error-container p, .error-container h1, .error-container a {
    margin: 15px
}


.toc-sidebar { 	
  width: max-content;
  position: sticky; 
  top: 100px;
  overflow-y: auto; 
  max-height: calc(100vh - 125px); 
  height: max-content;
  scrollbar-color: #269626 transparent;
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;     
  font-size: 0.9em;
  border: 1px solid #eee;
  background-color: #161616;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}


.toc-sidebar::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
    background: transparent !important;
}



.toc-sidebar h3 {
	text-align: center;
}

.toc-sidebar ul {
  list-style: none;
  padding-left: 15px;
  padding-right: 15px;
}

.toc-sidebar a {
  text-decoration: none;
  color: #666;
}



.toc-list .toc-item a.active {
    color: #269626; 
    font-weight: bold;
    padding-left: 8px; 
    border-left: 2px solid #269626; 
}

.toc-list .toc-item a[href^="#параметры"] {
    display: none;
}

.toc-list .toc-item a[href^="#возвращает"] {
    display: none;
}


.toc-list .toc-item a {
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
    padding-left: 5px;
}

.toc-sidebar a:hover {
  color: #007bff;
}

.toc-list .toc-item a {
    color: #bbb;
    transition: 0.3s;
    display: block;
    padding: 5px 0;
}

.toc-list .toc-item a:hover {
    color: #178b1b;
    padding-left: 5px;
}

.footer {
    background-color: #161616; 
    border-top: 1px solid rgb(93, 92, 92);
    margin-top: 50px;
    padding-top: 40px;
    color: rgb(220, 220, 220);
    flex: 0 0 auto;
}

.footer__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; 
    gap: 40px;
}

.footer__column {
    display: flex;
    flex-direction: column;
}

.footer__title {
    color: #269626; 
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: bold;
}

.footer__description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #bbb;
    margin-top: 15px;
}

.footer__list {
    list-style: none;
    padding: 0;
}

.footer__link {
    color: #bbb;
    text-decoration: none;
    transition: 0.3s;
    line-height: 2;
    font-size: 0.95rem;
}

.footer__link:hover {
    color: #269626;
    padding-left: 5px;
}

.footer__bottom {
    background-color: #0d0d0d;
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
    color: #666;
}


@media (max-width: 768px) {
    .footer__inner {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer__link:hover {
        padding-left: 0;
    }
}

@view-transition {
  navigation: auto;
}

@media (max-width: 1024px) {
    .main__inner {
        flex-direction: column; 
    }
    
    .toc-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        height: auto;
        order: 2; 
    }
    
    .content {
        order: 1;
        padding: 20px;
    }
}


@media( max-width:692px  ) {
    .header__inner {
        flex-direction: column;
        justify-content: center;
        padding-top: 5px;
    }
    .main {
        padding-top: 70px;
    }
    .menu {
        width:100%;
    }
    .nav__list {
        justify-content: space-between;
    }

}

@media( max-width:456px ) {
    .logo__text {
        font-size: 20px;
    }
    .nav__link {
        font-size: 15px;
    }

}

@media( max-width:430px) {
    .logo__text {
        font-size: 20px;
    }
    .header__inner {
        padding: 5px;
    }

}

@media( max-width:380px ) {
    .logo__text {
        font-size: 20px;
    }
    .nav__link {
        font-size: 12px;
    }
    .header__inner {
        padding: 3px;
    }

}