/* ==================================
   CRM MyFabric Documentation Styles
   Based on myfabric.ru website design
   ================================== */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #ffffff;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
}

/* === CONTAINERS === */
.container,
.container-xxl {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.container {
    max-width: 1140px;
}

.container-xxl {
    max-width: 1320px;
}

.c_lg {
    max-width: 1100px;
}

/* === GRID SYSTEM === */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.mrow {
    margin-bottom: 40px;
}

.col-md-3,
.col-md-4,
.col-md-5,
.col-md-6,
.col-md-7,
.col-md-8,
.col-md-12,
.col-lg-4,
.col-lg-6,
.col-lg-7,
.col-lg-8 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 992px) {
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
}

/* === UTILITIES === */
.d-flex { display: flex !important; }
.align-items-center { align-items: center !important; }
.justify-content-between { justify-content: space-between !important; }
.float-end { float: right !important; }
.me-3 { margin-right: 1rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.pe-5 { padding-right: 3rem !important; }
.pe-md-4 { padding-right: 1.5rem !important; }

/* === HEADER SECTION === */
.start {
    background: url('/docs/assets/backh.svg');
    min-height: 870px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 100% 100%;
    padding-bottom: 20px;
}

body:has(.doc-layout) .start {
    min-height: 870px;
    padding-bottom: 80px;
    position: relative;
    z-index: 0;
}

#header {
    padding-top: 24px;
    height: 168px;
}

.logo {
    height: auto;
    max-width: 100%;
}

/* === NAVIGATION === */
nav.nav {
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
}

nav.nav ul {
    list-style-type: none;
    overflow: hidden;
    transition: all 0.5s;
    padding: 0;
    margin: 0;
}

nav.nav li {
    padding: 15px 40px 15px 0px;
}

nav.nav a {
    color: #fff;
    text-decoration: none;
}

nav.nav a:hover {
    opacity: 0.8;
}

.menu-menu-1-container {
    display: inline-block;
}

.menu {
    display: flex;
    list-style: none;
}

.menu-item {
    display: inline-block;
}

/* === MOBILE MENU === */
label .menu-icon {
    font-size: 25px;
    color: #ffffff;
    line-height: 50px;
    position: absolute;
    top: 5px;
    right: 20px;
}

#checkbox {
    display: none;
}

@media (max-width: 991px) {
    label .menu-icon {
        display: block;
        cursor: pointer;
    }
    
    nav.nav {
        position: fixed;
        width: 100%;
        height: calc(100vh - 90px);
        background: rgba(0, 97, 255, 1);
        top: 90px;
        left: -100%;
        text-align: center;
        transition: all 0.5s;
        z-index: 999;
    }
    
    nav.nav ul {
        display: block;
        padding-top: 30px;
    }
    
    nav.nav ul li {
        padding: 20px 0;
    }
    
    #checkbox:checked ~ nav.nav {
        left: 0;
    }
}

@media (min-width: 992px) {
    label .menu-icon {
        display: none;
    }
    
    nav.nav {
        position: static;
        width: auto;
    }
}

/* === BUTTONS === */
.button_1 {
    display: flex;
    align-items: center;
    font-size: 16px;
    justify-content: center;
    background-color: #FB724C;
    border-radius: 8px;
    min-width: 200px;
    color: #fff;
    text-decoration: none;
    min-height: 56px;
    padding: 8px 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.button_1:hover {
    color: #fff;
    background-color: #FF3700;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 114, 76, 0.4);
}

.button_1.long {
    max-width: 312px;
    font-size: 20px;
}

.button_1.mob {
    display: flex;
}

.button_2,
.button_3 {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(0, 97, 255, 1);
    color: white;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.button_2:hover,
.button_3:hover {
    background: rgba(0, 97, 255, 0.9);
    transform: translateY(-2px);
}

/* === HERO CONTENT === */
article {
    color: #fff;
}

h1.main {
    font-weight: 700;
    font-size: 48px;
    margin-right: 80px;
    font-family: 'Ubuntu';
    color: white;
}

h1.main a {
    color: white !important;
    text-decoration: underline;
}

.entry-content p {
    font-weight: 400;
    color: white;
}

.cube {
    position: relative;
}

@media (min-width: 1800px) {
    .cube::after {
        right: -130px;
    }
}

@media (max-width: 1800px) {
    .cube::after {
        right: 0px;
    }
}

.cube::after {
    display: block;
    content: '';
    width: 450px;
    height: 450px;
    position: absolute;
    bottom: -330px;
    background: url('https://myfabric.ru/wp-content/uploads/cub.svg');
    background-size: cover;
}

@media (max-width: 768px) {
    h1.main {
        font-size: 32px;
        margin-right: 0;
    }
    
    .cube::after {
        display: none;
    }
}

/* === CATALOG SECTION === */
.catalog {
    padding: 60px 0;
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

body:has(.doc-layout) .catalog {
    margin-top: 0;
    padding-top: 40px;
}

.catalog-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 97, 255, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.catalog-section:hover {
    box-shadow: 0 4px 20px rgba(0, 97, 255, 0.12);
    transform: translateY(-3px);
    border-color: rgba(0, 97, 255, 0.15);
}

.catalog-section h2 {
    color: rgba(0, 97, 255, 1);
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(0, 97, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    flex-shrink: 0;
}

.catalog-section h2 i {
    font-size: 26px;
}

.catalog-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.catalog-list li {
    width: 100%;
}

.catalog-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
}

.catalog-list li a:hover {
    background: rgba(0, 97, 255, 0.08);
    color: rgba(0, 97, 255, 1);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 97, 255, 0.15);
}

.catalog-list li a i {
    font-size: 20px;
    color: rgba(0, 97, 255, 1);
    flex-shrink: 0;
    transition: transform 0.3s ease;
    width: 24px;
    text-align: center;
}

.catalog-list li a:hover i {
    transform: scale(1.15);
}

/* === MODULE SECTION (PREMIUM) === */
.module-section {
    border: 2px solid #FB724C;
    background: linear-gradient(135deg, #fff 0%, #fff8f6 100%);
    box-shadow: 0 4px 16px rgba(251, 114, 76, 0.15);
    grid-column: 1 / -1;
}

.module-section:hover {
    box-shadow: 0 6px 24px rgba(251, 114, 76, 0.2);
    border-color: #FF3700;
}

.module-section h2 {
    color: #FB724C;
    border-bottom-color: rgba(251, 114, 76, 0.2);
    flex-wrap: wrap;
}

.module-section .catalog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.module-section .catalog-list li a {
    background: rgba(251, 114, 76, 0.05);
}

.module-section .catalog-list li a:hover {
    background: rgba(251, 114, 76, 0.12);
    color: #FB724C;
    box-shadow: 0 2px 8px rgba(251, 114, 76, 0.2);
}

.module-section .catalog-list li a i {
    color: #FB724C;
}

@media (max-width: 767px) {
    .module-section .catalog-list {
        grid-template-columns: 1fr;
    }
}

.premium-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FB724C 0%, #FF3700 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    box-shadow: 0 2px 6px rgba(251, 114, 76, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* New badge styling */
.new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 8px;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    vertical-align: middle;
    line-height: 1;
    white-space: nowrap;
    animation: pulse-new 2s ease-in-out infinite;
}

@keyframes pulse-new {
    0%, 100% {
        box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
    }
    50% {
        box-shadow: 0 2px 10px rgba(76, 175, 80, 0.5);
    }
}

.catalog-list li a .new-badge {
    margin-left: auto;
    flex-shrink: 0;
}

.sidebar-link .new-badge {
    margin-left: auto;
    flex-shrink: 0;
}

/* === SOCIAL SECTION (eight) === */
.eight {
    background: #f8f9fa;
    padding: 80px 0;
    margin-top: 60px;
}

.eight h3.markt {
    font-size: 36px;
    color: rgba(0, 97, 255, 1);
    margin-bottom: 20px;
    font-family: 'Ubuntu';
}

.eight p {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.eight .iadapt {
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .eight h3.markt {
        font-size: 28px;
    }
    
    .eight p {
        font-size: 16px;
    }
    
    .eight .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 10px;
    }
}

/* === SUPPORT CARD === */
.support-card {
    background: linear-gradient(135deg, rgba(0, 97, 255, 0.1) 0%, rgba(251, 114, 76, 0.1) 100%);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin: 60px 0 40px 0;
    border: 2px solid rgba(0, 97, 255, 0.2);
}

.support-card h3 {
    font-size: 32px;
    color: rgba(0, 97, 255, 1);
    margin-bottom: 15px;
}

.support-card > p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.support-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.support-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(0, 97, 255, 1);
    color: white;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.support-link:hover {
    background: rgba(0, 97, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 97, 255, 0.3);
}

.support-link i {
    font-size: 20px;
}

/* === FOOTER === */
#footer {
    background: linear-gradient(135deg, #1a1d2e 0%, #16213e 100%);
    color: #ffffff;
    padding: 60px 0 30px 0;
    margin-top: 60px;
    border-top: 3px solid rgba(0, 97, 255, 0.3);
}

#footer .footer-logo {
    max-width: 200px;
    margin-bottom: 20px;
    display: block;
    filter: brightness(0) invert(1);
}

#footer .footer-text {
    color: #b8c5d6;
    font-size: 14px;
    line-height: 1.8;
    margin-top: 15px;
}

#footer .footer-text p {
    margin: 0;
}

#footer h4 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 20px;
    font-family: 'Ubuntu';
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 10px;
}

#footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #FB724C 0%, rgba(251, 114, 76, 0) 100%);
}

#footer .footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#footer .footer-nav li {
    margin-bottom: 12px;
}

#footer .footer-nav a {
    color: #b8c5d6;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 15px;
}

#footer .footer-nav a::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #FB724C;
    font-weight: bold;
    font-size: 18px;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

#footer .footer-nav a:hover {
    color: #ffffff;
    padding-left: 20px;
}

#footer .footer-nav a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

#footer .footer-contacts {
    color: #b8c5d6;
    font-size: 14px;
}

#footer .footer-contacts .contact-label {
    color: #8a9aae;
    font-size: 12px;
    margin-top: 15px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#footer .footer-contacts .contact-label:first-child {
    margin-top: 0;
}

#footer .footer-contacts span {
    display: block;
    font-weight: 500;
}

#footer .footer-contacts a {
    color: #b8c5d6;
    transition: color 0.3s ease;
}

#footer .footer-contacts a:hover {
    color: #FB724C;
}

#footer hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 40px 0 25px 0;
}

#footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

#footer .footer-copyright {
    color: #8a9aae;
    font-size: 13px;
}

#footer .footer-social {
    display: flex;
    gap: 15px;
}

#footer .footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #b8c5d6;
    font-size: 20px;
    transition: all 0.3s ease;
}

#footer .footer-social a:hover {
    background: rgba(251, 114, 76, 0.2);
    border-color: #FB724C;
    color: #FB724C;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(251, 114, 76, 0.3);
}

#footer .footer-social a i {
    transition: transform 0.3s ease;
}

#footer .footer-social a:hover i {
    transform: scale(1.1);
}

/* Mobile footer styles */
@media (max-width: 768px) {
    #footer {
        padding: 40px 0 20px 0;
    }
    
    #footer .col-md-2,
    #footer .col-md-3,
    #footer .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    #footer .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    #footer .footer-social {
        justify-content: center;
    }
}

/* === SIDEBAR === */
.doc-layout {
    display: flex;
    min-height: calc(100vh - 200px);
    max-width: 1400px;
    margin: -700px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.doc-layout::after {
    display: block;
    content: '';
    width: 200px;
    height: 200px;
    position: absolute;
    top: -110px;
    right: -20px;
    background: url('https://myfabric.ru/wp-content/uploads/cub.svg');
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 2;
    pointer-events: none;
    opacity: 1;
}

@media (max-width: 1400px) {
    .doc-layout::after {
        width: 160px;
        height: 160px;
        right: -10px;
        top: -85px;
    }
}

@media (max-width: 1200px) {
    .doc-layout::after {
        width: 140px;
        height: 140px;
        right: -5px;
        top: -70px;
    }
}

.sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(0, 97, 255, 0.1);
    padding: 30px 20px;
    position: sticky;
    top: 20px;
    height: fit-content;
    max-height: calc(100vh - 240px);
    overflow-y: auto;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    z-index: 10;
}

.sidebar-toggle {
    display: none;
}

.sidebar-overlay {
    display: none;
}

.sidebar-close {
    display: none !important;
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(251, 114, 76, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #FB724C;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.sidebar-close:hover {
    background: #FB724C;
    color: white;
    transform: rotate(90deg);
}

.sidebar-header {
    margin-bottom: 20px;
}

.sidebar-home-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(0, 97, 255, 1) 0%, rgba(0, 97, 255, 0.9) 100%);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 97, 255, 0.2);
}

.sidebar-home-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 97, 255, 0.3);
    color: white;
}

.sidebar-home-link i {
    font-size: 20px;
}

.sidebar-title {
    font-size: 18px;
    color: rgba(0, 97, 255, 1);
    font-weight: 700;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: rgba(0, 97, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-title i {
    font-size: 22px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu > li {
    margin-bottom: 8px;
}

.sidebar-category {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(0, 97, 255, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    position: relative;
}

.sidebar-category:hover {
    background: rgba(0, 97, 255, 0.1);
    transform: translateX(3px);
}

.sidebar-category.collapsed {
    background: rgba(0, 97, 255, 0.03);
}

.sidebar-category > i:first-child {
    font-size: 20px;
    color: rgba(0, 97, 255, 1);
}

.sidebar-category > span:first-of-type {
    flex: 1;
}

.category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: rgba(0, 97, 255, 0.15);
    color: rgba(0, 97, 255, 1);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.toggle-icon {
    font-size: 20px;
    color: rgba(0, 97, 255, 1);
    transition: transform 0.3s ease;
}

.sidebar-category.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.sidebar-submenu {
    list-style: none;
    padding: 8px 0 0 0;
    margin: 0;
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    opacity: 1;
}

.sidebar-submenu.collapsed {
    max-height: 0;
    padding: 0;
    opacity: 0;
}

.sidebar-submenu li {
    margin: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 36px;
    color: #555;
    font-size: 13px;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.sidebar-link:hover {
    background: rgba(0, 97, 255, 0.08);
    color: rgba(0, 97, 255, 1);
    transform: translateX(5px);
}

.sidebar-link.active {
    background: rgba(0, 97, 255, 1);
    color: white;
    font-weight: 600;
}

.sidebar-link.active i {
    color: white;
}

.sidebar-link i {
    font-size: 16px;
    color: rgba(0, 97, 255, 1);
    transition: transform 0.3s ease;
}

.sidebar-link:hover i {
    transform: scale(1.1);
}

/* Premium category styling */
.premium-category {
    background: linear-gradient(135deg, rgba(251, 114, 76, 0.1) 0%, rgba(255, 55, 0, 0.05) 100%);
    border: 1px solid rgba(251, 114, 76, 0.2);
}

.premium-category:hover {
    background: linear-gradient(135deg, rgba(251, 114, 76, 0.15) 0%, rgba(255, 55, 0, 0.08) 100%);
}

.premium-category > i:first-child {
    color: #FB724C;
}

.premium-category .category-count {
    background: #FB724C;
    color: white;
}

.premium-category .toggle-icon {
    color: #FB724C;
}

.premium-category + .sidebar-submenu .sidebar-link i {
    color: #FB724C;
}

.main-content {
    flex: 1;
    padding: 0 0 0 30px;
    min-width: 0;
}

.content-wrapper {
    flex: 1;
    padding: 0 0 0 30px;
    min-width: 0;
}

/* === CONTENT PAGES === */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(0, 97, 255, 1);
    color: white;
    border-radius: 8px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: rgba(0, 97, 255, 0.9);
    transform: translateY(-2px);
}

.content-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 45px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    border: 1px solid rgba(0, 97, 255, 0.08);
}

.content-card h1 {
    color: rgba(0, 97, 255, 1);
    font-size: 32px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 97, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
}

.content-card h1 i {
    font-size: 38px;
}

.content-card .section {
    margin-bottom: 35px;
}

.content-card h2 {
    color: rgba(0, 97, 255, 1);
    font-size: 24px;
    margin: 0 0 18px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.content-card h3 {
    color: #333;
    font-size: 20px;
    margin: 20px 0 12px 0;
    font-weight: 600;
}

.content-card p {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 16px;
}

.content-card ul,
.content-card ol {
    margin: 16px 0;
    padding-left: 28px;
}

.content-card li {
    margin-bottom: 12px;
    line-height: 1.7;
    color: #555;
}

.content-card li ul,
.content-card li ol {
    margin-top: 8px;
}

.content-card strong {
    color: rgba(0, 97, 255, 1);
    font-weight: 600;
}

.content-card code {
    background: rgba(0, 97, 255, 0.08);
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    color: #FB724C;
    font-size: 14px;
}

.content-card a {
    color: rgba(0, 97, 255, 1);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 97, 255, 0.3);
    transition: all 0.3s ease;
}

.content-card a:hover {
    color: #FB724C;
    border-bottom-color: #FB724C;
}

/* === INFO BLOCKS === */
.tip,
.warning,
.success,
.info {
    padding: 20px 24px;
    border-radius: 12px;
    margin: 24px 0;
    border-left: 5px solid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    font-size: 15px;
    line-height: 1.7;
}

.tip {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f7ff 100%);
    border-color: #2196f3;
    color: #1565c0;
}

.tip strong {
    color: #0d47a1;
}

.warning {
    background: linear-gradient(135deg, #fff3e0 0%, #fffaf0 100%);
    border-color: #ff9800;
    color: #e65100;
}

.warning strong {
    color: #bf360c;
}

.success {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
    border-color: #4caf50;
    color: #2e7d32;
}

.success strong {
    color: #1b5e20;
}

.info {
    background: linear-gradient(135deg, #f3e5f5 0%, #faf5fb 100%);
    border-color: #9c27b0;
    color: #6a1b9a;
}

.info strong {
    color: #4a148c;
}

/* Navigation buttons */
.navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 50px;
    padding-top: 35px;
    border-top: 2px solid rgba(0, 97, 255, 0.1);
}

.nav-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #FB724C 0%, #FF3700 100%);
    color: white !important;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(251, 114, 76, 0.3);
    position: relative;
}

.nav-button:hover {
    background: linear-gradient(135deg, #FF3700 0%, #FB724C 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(251, 114, 76, 0.4);
    color: white !important;
}

.nav-button:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(251, 114, 76, 0.3);
}

.nav-button * {
    color: white !important;
}

.nav-button.next {
    margin-left: auto;
}

.nav-button.prev {
    margin-right: auto;
}

.nav-button i {
    font-size: 22px;
    color: white !important;
    transition: transform 0.3s ease;
}

.nav-button.next:hover i {
    transform: translateX(5px);
}

.nav-button.prev:hover i {
    transform: translateX(-5px);
}

/* === TABLES === */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

thead {
    background: rgba(0, 97, 255, 1);
    color: white;
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

tbody tr:hover {
    background: #f8f9fa;
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Permissions table specific styles */
.permissions-table {
    margin: 20px 0;
}

.permissions-table th {
    background: rgba(0, 97, 255, 1);
    color: white;
    font-weight: 600;
    text-align: center;
}

.permissions-table th:first-child {
    text-align: left;
}

.permissions-table td {
    text-align: center;
    vertical-align: middle;
}

.permissions-table td:first-child {
    text-align: left;
    font-weight: 500;
}

/* === RESPONSIVE === */
/* Very large screens - 3 section columns */
@media (min-width: 1600px) {
    .catalog {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large screens - 2 section columns */
@media (min-width: 1200px) and (max-width: 1599px) {
    .catalog {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium screens - 2 section columns, smaller minmax */
@media (min-width: 768px) and (max-width: 1199px) {
    .catalog {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .catalog-section {
        padding: 25px;
    }
    
    .catalog-section h2 {
        font-size: 20px;
    }
}

/* Tablet and below */
@media (max-width: 992px) {
    /* Скрываем навигационное меню и иконку гамбургера на мобильных */
    #menu,
    .menu-menu-1-container,
    #menu-menu-1,
    .menu-icon,
    label[for="checkbox"] {
        display: none !important;
    }
    
    .catalog {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 40px 0;
    }
    
    .doc-layout {
        flex-direction: column;
        padding: 0 15px;
        margin-top: -700px;
        z-index: auto;
        position: static;
    }
    
    .doc-layout::after {
        display: none;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        height: 100vh;
        max-height: 100vh;
        z-index: 10000 !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 0;
        padding: 60px 20px 20px 20px;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
    }
    
    .sidebar.mobile-open {
        left: 0;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
        z-index: 10001 !important;
    }
    
    .sidebar-close {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .sidebar-toggle {
        display: flex !important;
        position: fixed;
        top: 100px;
        left: 15px;
        z-index: 9998 !important;
        background: linear-gradient(135deg, rgba(0, 97, 255, 1) 0%, rgba(0, 97, 255, 0.9) 100%);
        color: white;
        border: none;
        padding: 0;
        border-radius: 50%;
        width: 56px;
        height: 56px;
        cursor: pointer;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 0 40px rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15);
        align-items: center;
        justify-content: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .sidebar-toggle:hover {
        background: linear-gradient(135deg, rgba(0, 97, 255, 0.9) 0%, rgba(0, 97, 255, 0.8) 100%);
        transform: scale(1.08);
        box-shadow: 0 6px 20px rgba(0, 97, 255, 0.5);
    }
    
    .sidebar-toggle:active {
        transform: scale(0.95);
    }
    
    .sidebar-toggle i {
        font-size: 28px;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9999 !important;
        transition: opacity 0.3s ease;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .main-content,
    .content-wrapper {
        padding: 20px 0;
    }
    
    .content-card {
        padding: 30px 25px;
    }
    
    .content-card h1 {
        font-size: 26px;
    }
    
    .content-card h2 {
        font-size: 22px;
    }
    
    .navigation {
        flex-direction: column;
    }
    
    .nav-button {
        width: 100%;
        justify-content: center;
    }
    
    .nav-button.next,
    .nav-button.prev {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Tablet landscape */
@media (min-width: 768px) and (max-width: 992px) {
    .catalog {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile - 1 column */
@media (max-width: 767px) {
    .catalog {
        padding: 30px 0;
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .catalog-section {
        padding: 20px 18px;
    }
    
    .catalog-section h2 {
        font-size: 18px;
        margin-bottom: 16px;
        padding-bottom: 10px;
    }
    
    .catalog-section h2 i {
        font-size: 22px;
    }
    
    .catalog-list {
        gap: 8px;
    }
    
    .catalog-list li a {
        padding: 10px 14px;
        font-size: 13px;
        min-height: 44px;
    }
    
    .catalog-list li a i {
        font-size: 18px;
        width: 20px;
    }
    
    .premium-badge {
        display: block;
        margin-left: 0;
        margin-top: 8px;
        width: fit-content;
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .support-card {
        padding: 25px;
    }
    
    .content-card {
        padding: 25px 20px;
    }
    
    .content-card h1 {
        font-size: 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .content-card h1 i {
        font-size: 32px;
    }
    
    .content-card h2 {
        font-size: 20px;
    }
    
    .content-card h3 {
        font-size: 18px;
    }
    
    .content-card p {
        font-size: 14px;
    }
    
    .tip,
    .warning,
    .success,
    .info {
        padding: 16px 18px;
        font-size: 14px;
    }
    
    .sidebar-toggle {
        top: 80px;
    }
    
    .support-links {
        flex-direction: column;
        align-items: stretch;
    }
    
    .support-link {
        justify-content: center;
    }
    
    #footer {
        padding: 40px 0 20px 0;
    }
    
    #footer .col-md-2,
    #footer .col-md-3,
    #footer .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 97, 255, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 97, 255, 0.7);
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.catalog-section,
.content-card {
    animation: fadeIn 0.5s ease-out;
}

/* === PRINT STYLES === */
@media print {
    .sidebar,
    .sidebar-toggle,
    .back-button,
    #header,
    #footer {
        display: none;
    }
    
    .content-wrapper {
        margin-left: 0;
    }
    
    .content-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* === IMAGE MODAL === */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease-out;
    overflow: auto;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    position: relative;
    margin: auto;
    max-width: 95%;
    max-height: 95%;
    animation: zoomIn 0.3s ease-out;
}

.image-modal-content img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.image-modal-close:hover,
.image-modal-close:focus {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.2);
    transform: scale(1.1);
}

.image-modal-close i {
    font-size: 32px;
}

.image-clickable {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-clickable:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 97, 255, 0.3);
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .image-modal-content {
        max-width: 100%;
        max-height: 100%;
        padding: 20px;
    }
    
    .image-modal-content img {
        max-height: 85vh;
    }
    
    .image-modal-close {
        top: 10px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .image-modal-close i {
        font-size: 24px;
    }
}

