/* Документация - Основные стили */
.documentation {
    padding: 140px 0 80px;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.doc-container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.doc-sidebar {
    width: 320px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 0;
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    border: 1px solid rgba(255, 109, 0, 0.1);
}

.sidebar-header {
    padding: 25px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, var(--orange) 0%, var(--dark-orange) 100%);
    border-radius: 15px 15px 0 0;
}

.sidebar-header h3 {
    color: white;
    margin: 0 0 20px 0;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-search {
    position: relative;
}

.sidebar-search input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    color: var(--text-dark);
    transition: var(--transition);
}

.sidebar-search input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 109, 0, 0.2);
}

.sidebar-search i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--orange);
}

.doc-nav {
    list-style: none;
    padding: 20px 0;
}

.doc-nav li {
    margin: 5px 0;
}

.doc-nav a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    border-left: 4px solid transparent;
    gap: 12px;
    font-weight: 500;
}

.doc-nav a i {
    color: var(--orange);
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.doc-nav a:hover {
    background: linear-gradient(90deg, rgba(255, 109, 0, 0.05) 0%, rgba(255, 109, 0, 0.02) 100%);
    color: var(--orange);
    border-left-color: var(--orange);
    padding-left: 30px;
}

.doc-nav a.active {
    background: linear-gradient(90deg, rgba(255, 109, 0, 0.1) 0%, rgba(255, 109, 0, 0.05) 100%);
    color: var(--orange);
    border-left-color: var(--orange);
    font-weight: 600;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.sidebar-footer {
    padding: 25px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
}

.sidebar-footer p {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.btn-support {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--dark-orange) 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    gap: 8px;
}

.btn-support:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 109, 0, 0.3);
}

.doc-content {
    flex: 1;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 40px;
    border: 1px solid rgba(255, 109, 0, 0.1);
}

.doc-section {
    margin-bottom: 50px;
    display: none;
}

.doc-section.active {
    display: block;
    animation: fadeInUp 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.doc-section h2 {
    font-size: 32px;
    margin-bottom: 25px;
    color: var(--dark-orange);
    padding-bottom: 15px;
    border-bottom: 3px solid var(--light-orange);
    position: relative;
}

.doc-section h2:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--orange);
}

.doc-section h3 {
    font-size: 24px;
    margin: 35px 0 20px;
    color: var(--orange);
    padding-left: 15px;
    border-left: 4px solid var(--orange);
}

.doc-section h4 {
    font-size: 20px;
    margin: 25px 0 15px;
    color: var(--text-dark);
    font-weight: 600;
}

.doc-section p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.doc-section ul, .doc-section ol {
    margin-bottom: 25px;
    padding-left: 25px;
}

.doc-section li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.step {
    background: linear-gradient(135deg, rgba(255, 109, 0, 0.05) 0%, rgba(255, 109, 0, 0.02) 100%);
    border-left: 4px solid var(--orange);
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 0 12px 12px 0;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.step:hover {
    transform: translateX(5px);
    box-shadow: 5px 5px 15px rgba(0,0,0,0.05);
}

.step:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
}

.step:hover:before {
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--orange) 0%, var(--dark-orange) 100%);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: 15px;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(255, 109, 0, 0.3);
}

.note {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.05) 0%, rgba(33, 150, 243, 0.02) 100%);
    border-left: 4px solid #2196f3;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 12px 12px 0;
    position: relative;
}

.note:before {
    content: 'ℹ️';
    position: absolute;
    left: -30px;
    top: 20px;
    font-size: 20px;
}

.warning {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.05) 0%, rgba(244, 67, 54, 0.02) 100%);
    border-left: 4px solid #f44336;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 12px 12px 0;
    position: relative;
}

.warning:before {
    content: '⚠️';
    position: absolute;
    left: -30px;
    top: 20px;
    font-size: 20px;
}

.faq-item {
    margin-bottom: 30px;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.faq-question {
    font-weight: 600;
    font-size: 18px;
    margin: 0;
    color: var(--dark-orange);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: var(--transition);
    position: relative;
}

.faq-question:after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: auto;
    transition: var(--transition);
    color: var(--orange);
    font-size: 18px;
}

.faq-question.active {
    background: linear-gradient(135deg, rgba(255, 109, 0, 0.1) 0%, rgba(255, 109, 0, 0.05) 100%);
}

.faq-question.active:after {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 30px;
    border-top: 1px solid #eee;
    animation: slideInLeft 0.3s ease;
}

.faq-answer.active {
    display: block;
}

.doc-image {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 25px 0;
    border: 1px solid #eee;
    transition: var(--transition);
}

.doc-image:hover {
    transform: scale(1.01);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.doc-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 25px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 12px;
    overflow: hidden;
}

.doc-table th {
    background: linear-gradient(135deg, var(--orange) 0%, var(--dark-orange) 100%);
    color: white;
    text-align: left;
    padding: 18px 20px;
    font-weight: 600;
    border: none;
}

.doc-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.doc-table tbody tr {
    transition: var(--transition);
}

.doc-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.doc-table tbody tr:hover {
    background: rgba(255, 109, 0, 0.05);
    transform: translateX(5px);
}

.doc-table tbody tr:last-child td {
    border-bottom: none;
}

.back-to-main {
    display: inline-flex;
    align-items: center;
    margin-bottom: 40px;
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    padding: 12px 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 109, 0, 0.05) 0%, rgba(255, 109, 0, 0.02) 100%);
    border: 1px solid rgba(255, 109, 0, 0.1);
    gap: 10px;
}

.back-to-main:hover {
    transform: translateX(-10px);
    background: linear-gradient(135deg, rgba(255, 109, 0, 0.1) 0%, rgba(255, 109, 0, 0.05) 100%);
    box-shadow: 0 5px 15px rgba(255, 109, 0, 0.1);
}

.back-to-main i {
    transition: var(--transition);
}

.back-to-main:hover i {
    transform: translateX(-5px);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.content-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #dee2e6;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--orange);
}

.content-card h4 {
    color: var(--orange);
    margin-top: 0;
}

.content-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

.content-meta i {
    color: var(--orange);
}

.progress-container {
    background: #e9ecef;
    border-radius: 10px;
    height: 10px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--orange), var(--dark-orange));
    border-radius: 10px;
    transition: width 1s ease;
}

.code-block {
    background: #2d3748;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    margin: 20px 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
}

.feature-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--orange) 0%, var(--dark-orange) 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 10px;
    margin-bottom: 10px;
}

.version {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 5px;
}

@media (max-width: 1200px) {
    .doc-container {
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .doc-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .doc-sidebar {
        width: 100%;
        position: static;
        max-height: none;
    }
    
    .documentation {
        padding: 120px 0 50px;
    }
}

@media (max-width: 768px) {
    .doc-content {
        padding: 25px;
    }
    
    .doc-section h2 {
        font-size: 28px;
    }
    
    .doc-section h3 {
        font-size: 22px;
    }
    
    .faq-question {
        padding: 20px;
        font-size: 16px;
    }
    
    .faq-answer {
        padding: 20px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .doc-content {
        padding: 20px;
    }
    
    .back-to-main {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .step {
        padding: 15px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 16px;
    }
}