/* ============================================
   ДОКУМЕНТАЦИЯ - СТИЛИ
   ============================================ */

/* Базовые стили */
.user-guide-container {
    max-width: 75rem; /* 1200px */
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 0;
    background-color: transparent;
    min-height: calc(100vh - 100px);
    box-sizing: border-box;
}

/* Заголовок документации */
.guide-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 50px 30px;
    background: linear-gradient(93.81deg, #FF9500 0%, #CF5600 104.53%);
    color: white;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.guide-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 20s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.guide-header h1 {
    font-size: 48px;
    font-weight: 800;
    font-family: 'Gilroy', sans-serif;
    font-style: italic;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.guide-header p {
    font-size: 20px;
    font-weight: 400;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* Хлебные крошки */
.breadcrumb {
    background-color: var(--white);
    padding: 15px 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.breadcrumb a {
    color: #FF9500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #CF5600;
    text-decoration: underline;
}

/* Быстрый старт */
.quick-start {
    background: linear-gradient(93.81deg, #FF9500 0%, #CF5600 104.53%);
    color: white;
    padding: 40px 30px;
    border-radius: 24px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.quick-start::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.quick-start h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    font-family: 'Gilroy', sans-serif;
}

.quick-start-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 1;
}

.quick-start .step {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.quick-start .step:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
}

.quick-start .step h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.quick-start .step-number {
    background: rgba(255, 255, 255, 0.3);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.quick-start .step p {
    font-size: 15px;
    opacity: 0.95;
    line-height: 1.5;
}

/* Поиск */
.search-box {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.search-box h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #484848;
    font-family: 'Gilroy', sans-serif;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

.search-input:focus {
    outline: none;
    border-color: #FF9500;
    box-shadow: 0 0 0 3px rgba(255, 149, 0, 0.1);
}

/* Сетка карточек руководства */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.guide-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #FF9500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.guide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #FF9500 0%, #CF5600 100%);
    transition: width 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.guide-card:hover::before {
    width: 100%;
    opacity: 0.05;
}

.guide-card h3 {
    color: #FF9500;
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 700;
    font-family: 'Gilroy', sans-serif;
    position: relative;
    z-index: 1;
}

.guide-card p {
    color: #868686;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.guide-card ul {
    list-style: none;
    padding: 0;
    position: relative;
    z-index: 1;
}

.guide-card li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: padding-left 0.3s ease;
}

.guide-card li:last-child {
    border-bottom: none;
}

.guide-card li:hover {
    padding-left: 10px;
}

.guide-card li::before {
    content: "\f15b"; /* Font Awesome file icon Unicode */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 10px;
    font-size: 16px;
    color: #FF9500;
}

.guide-card a {
    color: #FF9500;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    display: inline-block;
}

.guide-card a:hover {
    color: #CF5600;
    text-decoration: underline;
}

/* Футер документации */
.user-guide-container .footer {
    text-align: center;
    margin-top: 60px;
    padding: 40px 30px;
    background-color: var(--white);
    border-radius: 20px;
    color: #868686;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.user-guide-container .footer p {
    margin-bottom: 10px;
    font-size: 15px;
}

.user-guide-container .footer p:last-child {
    margin-bottom: 0;
}

.user-guide-container .footer a {
    color: #FF9500;
    text-decoration: none;
}

.user-guide-container .footer a:hover {
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .user-guide-container {
        padding: 1.875rem 0;
    }
    
    .guide-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .user-guide-container {
        padding: 1.25rem 0;
    }
    
    .guide-header {
        padding: 30px 20px;
    }
    
    .guide-header h1 {
        font-size: 36px;
    }
    
    .guide-header p {
        font-size: 18px;
    }
    
    .quick-start {
        padding: 30px 20px;
    }
    
    .quick-start-steps {
        grid-template-columns: 1fr;
    }
    
    .guide-grid {
        grid-template-columns: 1fr;
    }
    
    .search-box {
        padding: 20px;
    }
}

/* ============================================
   СТРАНИЦЫ ДОКУМЕНТАЦИИ
   ============================================ */

/* Контейнер страницы документации */
.docs-page-container {
    max-width: 62.5rem; /* 1000px */
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 0 2.5rem;
    background-color: transparent;
    min-height: calc(100vh - 100px);
    box-sizing: border-box;
}

.docs-content {
    margin-bottom: 40px;
}

.docs-page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 30px;
    background: linear-gradient(93.81deg, #FF9500 0%, #CF5600 104.53%);
    color: white;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.docs-page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 20s ease-in-out infinite;
}

.docs-page-header h1 {
    font-size: 42px;
    font-weight: 800;
    font-family: 'Gilroy', sans-serif;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.docs-page-header p {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* Секции документации */
.docs-section {
    margin-bottom: 40px;
    padding: 30px;
    border-left: 4px solid #FF9500;
    background-color: var(--white);
    border-radius: 0 20px 20px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.docs-section h2 {
    color: #484848;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 700;
    font-family: 'Gilroy', sans-serif;
}

.docs-section h3 {
    color: #868686;
    margin: 25px 0 15px 0;
    font-size: 20px;
    font-weight: 600;
}

/* Шаги */
.docs-step {
    background: var(--white);
    padding: 25px;
    margin: 20px 0;
    border-radius: 16px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #FF9500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.docs-step:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.docs-step h4 {
    color: #FF9500;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.docs-step-number {
    background: #FF9500;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.docs-step ul {
    margin-left: 20px;
    margin-top: 10px;
}

.docs-step ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Информационные блоки */
.docs-info,
.docs-warning,
.docs-success,
.docs-tip {
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    line-height: 1.6;
}

.docs-info {
    background-color: rgba(255, 149, 0, 0.1);
    border: 1px solid rgba(255, 149, 0, 0.3);
    color: #484848;
}

.docs-info::before {
    content: "ℹ️ ";
    font-weight: bold;
    margin-right: 8px;
}

.docs-warning {
    background-color: rgba(255, 149, 0, 0.15);
    border: 1px solid rgba(255, 149, 0, 0.4);
    color: #484848;
}

.docs-warning::before {
    content: "⚠️ ";
    font-weight: bold;
    margin-right: 8px;
}

.docs-success {
    background-color: rgba(255, 149, 0, 0.1);
    border: 1px solid rgba(255, 149, 0, 0.3);
    color: #484848;
}

.docs-success::before {
    content: "✅ ";
    font-weight: bold;
    margin-right: 8px;
}

.docs-tip {
    background-color: #e2e3e5;
    border: 1px solid #d6d8db;
    color: #383d41;
}

.docs-tip::before {
    content: "💡 ";
    font-weight: bold;
    margin-right: 8px;
}

/* Блоки кода */
.docs-code-block {
    background-color: #f8f9fa;
    border: 1px solid #EFEFEF;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    overflow-x: auto;
    color: #484848;
}

/* Чек-листы */
.docs-checklist {
    background: var(--white);
    padding: 25px;
    margin: 20px 0;
    border-radius: 16px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #FF9500;
}

.docs-checklist h4 {
    color: #FF9500;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.docs-checklist-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.docs-checklist-item:last-child {
    border-bottom: none;
}

.docs-checklist-item input[type="checkbox"] {
    margin-right: 12px;
    transform: scale(1.3);
    cursor: pointer;
}

.docs-checklist-item label {
    cursor: pointer;
    font-size: 15px;
    line-height: 1.5;
}

/* Карточки функций/ролей */
.docs-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.docs-feature-card {
    background: var(--white);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #FF9500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.docs-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.docs-feature-card h4 {
    color: #FF9500;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.docs-feature-card ul {
    list-style: none;
    padding: 0;
}

.docs-feature-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    line-height: 1.6;
}

.docs-feature-card ul li:last-child {
    border-bottom: none;
}

.docs-feature-card ul li::before {
    content: "• ";
    color: #FF9500;
    font-weight: bold;
    margin-right: 8px;
}

/* Workflow блоки */
.docs-workflow {
    background: var(--white);
    padding: 25px;
    margin: 20px 0;
    border-radius: 16px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #FF9500;
}

.docs-workflow h4 {
    color: #FF9500;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.docs-workflow-step {
    background: #f8f9fa;
    padding: 20px;
    margin: 15px 0;
    border-radius: 12px;
    border-left: 3px solid #FF9500;
}

.docs-workflow-step h5 {
    color: #FF9500;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
}

.docs-workflow-step ul {
    margin-left: 20px;
    margin-top: 10px;
}

.docs-workflow-step ul li {
    margin-bottom: 8px;
    line-height: 1.6;
    font-size: 14px;
}

/* Статусы */
.docs-status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin: 4px;
}

.docs-status-new {
    background-color: rgba(255, 149, 0, 0.15);
    color: #484848;
}

.docs-status-active {
    background-color: rgba(255, 149, 0, 0.2);
    color: #484848;
}

.docs-status-completed {
    background-color: rgba(255, 149, 0, 0.1);
    color: #484848;
}

.docs-status-cancelled {
    background-color: rgba(234, 29, 55, 0.1);
    color: #484848;
}

/* FAQ элементы */
.docs-faq-category {
    margin-bottom: 40px;
    padding: 30px;
    border-left: 4px solid #FF9500;
    background-color: var(--white);
    border-radius: 0 20px 20px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.docs-faq-category h2 {
    color: #484848;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Gilroy', sans-serif;
}

.docs-faq-item {
    background: var(--white);
    margin: 15px 0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #EFEFEF;
}

.docs-faq-question {
    background: #f8f9fa;
    padding: 20px;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #484848;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
}

.docs-faq-question:hover {
    background: #EFEFEF;
}

.docs-faq-question.active {
    background: #FF9500;
    color: white;
}

.docs-faq-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
    font-weight: bold;
}

.docs-faq-question.active .docs-faq-icon {
    transform: rotate(45deg);
}

.docs-faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.docs-faq-answer.active {
    padding: 20px;
    max-height: 1000px;
}

.docs-faq-answer p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.docs-faq-answer ul {
    margin-left: 20px;
    margin-bottom: 12px;
}

.docs-faq-answer ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Контактная информация */
.docs-contact-info {
    background: linear-gradient(93.81deg, #FF9500 0%, #CF5600 104.53%);
    color: white;
    padding: 40px;
    border-radius: 20px;
    margin-top: 40px;
    text-align: center;
}

.docs-contact-info h3 {
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Gilroy', sans-serif;
}

.docs-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.docs-contact-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.docs-contact-item h4 {
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.docs-contact-item p {
    margin-bottom: 8px;
    font-size: 14px;
    opacity: 0.95;
}

/* Навигационные кнопки */
.docs-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding: 30px 0;
    border-top: 1px solid #EFEFEF;
}

.docs-nav-button {
    background: #FF9500;
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.docs-nav-button:hover {
    background: #CF5600;
    transform: translateY(-2px);
}

.docs-nav-button.secondary {
    background: #868686;
}

.docs-nav-button.secondary:hover {
    background: #484848;
}

/* Футер страницы документации */
.docs-page-footer {
    text-align: center;
    margin-top: 50px;
    padding: 40px 30px;
    background-color: var(--white);
    border-radius: 20px;
    color: #868686;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.docs-page-footer p {
    margin-bottom: 10px;
    font-size: 15px;
}

.docs-page-footer p:last-child {
    margin-bottom: 0;
}

/* Адаптивность для страниц документации */
@media (max-width: 1024px) {
    .docs-page-container {
        padding: 1.875rem 0;
    }
    
    .docs-feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .docs-page-container {
        padding: 1.25rem 0;
    }
    
    .docs-page-header {
        padding: 30px 20px;
    }
    
    .docs-page-header h1 {
        font-size: 32px;
    }
    
    .docs-section {
        padding: 20px;
    }
    
    .docs-section h2 {
        font-size: 24px;
    }
    
    .docs-nav-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .docs-nav-button {
        width: 100%;
        text-align: center;
    }
    
    .docs-contact-grid {
        grid-template-columns: 1fr;
    }
    
    .docs-feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .docs-page-header h1 {
        font-size: 28px;
    }
    
    .docs-page-header p {
        font-size: 16px;
    }
    
    .docs-section h2 {
        font-size: 20px;
    }
    
    .docs-step,
    .docs-checklist,
    .docs-workflow {
        padding: 20px;
    }
}

