/* Стили для интерактивного пособия */

/* CSS переменные для удобного обслуживания */
:root {
    /* Основные цвета */
    --primary-color: #182968;
    --primary-dark: #0d1a3f;
    --primary-light: #2c4a9e;
    --primary-ultra-light: rgba(24, 41, 104, 0.1);
    --primary-shadow: rgba(24, 41, 104, 0.15);
    
    /* Дополнительные цвета */
    --accent-color: #ff9800;
    --accent-light: #fff3e0;
    
    /* Нейтральные цвета */
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    
    /* Текстовые цвета */
    --text-primary: #333333;
    --text-secondary: #555555;
    --text-muted: #999999;
    
    /* Размеры */
    --border-radius-sm: 5px;
    --border-radius-md: 10px;
    --border-radius-lg: 15px;
    --border-radius-xl: 20px;
    --border-radius-full: 50%;
    
    /* Тени */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    
    /* Переходы */
    --transition-base: all 0.3s ease;
}

/* Оптимизация для производительности на мобильных */
* {
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Улучшение скролла на iOS */
.guide-page {
    -webkit-overflow-scrolling: touch;
}

.guide-page {
    min-height: 100vh;
}

.guide-page .bg-wrap {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 40px 20px;
}

.guide-page .content-wrap {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Заголовок */
.guide-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 40px;
    text-align: center;
}

.guide-subtitle {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 20px;
}

.guide-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
    margin: 20px 0;
}

.guide-subtitle-small {
    font-size: 16px;
    opacity: 0.9;
    margin-top: 20px;
}

/* Навигация */
.guide-navigation {
    padding: 40px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-300);
}

.guide-nav-header h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.guide-chapters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.guide-chapter {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-base);
    cursor: pointer;
}

.guide-chapter:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px var(--primary-shadow);
}

.guide-chapter.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-color: var(--primary-color);
    color: var(--white);
}

.chapter-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-ultra-light);
    border-radius: var(--border-radius-full);
    font-weight: 700;
    font-size: 18px;
    margin-right: 15px;
    flex-shrink: 0;
}

.guide-chapter.active .chapter-number {
    background: rgba(255, 255, 255, 0.2);
}

.chapter-title {
    font-size: 16px;
    font-weight: 500;
}

/* Контент раздела */
.guide-content {
    padding: 50px 40px;
}

.guide-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.guide-section.active {
    display: block;
}

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

.section-title {
    display: flex;
    align-items: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-color);
}

.section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: var(--border-radius-full);
    font-size: 28px;
    margin-right: 20px;
    flex-shrink: 0;
}

.section-content {
    line-height: 1.8;
    color: var(--text-primary);
}

.section-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 30px 0 20px;
}

.section-content p {
    margin-bottom: 20px;
    font-size: 16px;
}

.section-content ul {
    margin: 20px 0;
    padding-left: 0;
}

.section-content ul li {
    list-style: none;
    padding-left: 30px;
    position: relative;
    margin-bottom: 10px;
}

.section-content ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.principles-list,
.structure-list {
    background: var(--gray-100);
    padding: 25px;
    border-radius: var(--border-radius-md);
    border-left: 4px solid var(--primary-color);
}

.intro-block,
.goals-block {
    margin-bottom: 40px;
}

.quote-block {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    margin: 40px 0;
    border-left: 5px solid var(--primary-color);
}

.quote-block blockquote {
    margin: 0;
    font-style: italic;
}

.quote-block p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.quote-block cite {
    display: block;
    text-align: right;
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 600;
    font-style: normal;
}

/* Правовая база */
.legal-basis {
    background: var(--gray-50);
    padding: 30px;
    border-radius: var(--border-radius-md);
    margin: 30px 0;
}

.legal-list {
    counter-reset: item;
    padding-left: 0;
}

.legal-list > li {
    list-style: none;
    margin-bottom: 20px;
    padding-left: 40px;
    position: relative;
    counter-increment: item;
}

.legal-list > li:before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 18px;
}

.legal-list ul {
    margin-top: 10px;
}

/* Ссылки на документы */
.doc-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed var(--primary-color);
    transition: var(--transition-base);
}

.doc-link:hover {
    color: var(--primary-light);
    border-bottom-color: var(--primary-light);
    border-bottom-style: solid;
}

.documents-checklist li a,
.preparation-checklist li a {
    display: inline-block;
    margin-left: -5px;
}

.doc-link-item {
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.doc-link-item:hover {
    text-decoration: none;
}

.doc-number {
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Навигация по разделам */
.section-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--gray-300);
}

.btn-prev,
.btn-next {
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-prev:hover,
.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--primary-shadow);
}

.btn-prev {
    background: linear-gradient(135deg, var(--gray-600) 0%, var(--gray-700) 100%);
}

.btn-prev:hover {
    box-shadow: 0 5px 20px rgba(117, 117, 117, 0.3);
}

.placeholder {
    text-align: center;
    font-size: 18px;
    color: var(--text-muted);
    padding: 60px 20px;
}

/* Цитата в начале раздела */
.intro-quote {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    padding: 30px;
    border-radius: var(--border-radius-md);
    margin: 0 0 30px 0;
    border-left: 5px solid var(--primary-color);
}

.intro-quote blockquote {
    margin: 0;
    font-style: italic;
}

.intro-quote p {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
    font-weight: 500;
}

/* Методические пособия */
.methodical-section {
    background: var(--gray-50);
    padding: 30px;
    border-radius: var(--border-radius-md);
    margin: 30px 0;
}

.methodical-list {
    counter-reset: item;
    padding-left: 0;
    list-style: none;
}

.methodical-list > li {
    background: var(--white);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 4px solid var(--primary-color);
    border-radius: var(--border-radius-sm);
    position: relative;
    padding-left: 50px;
    counter-increment: item;
}

.methodical-list > li:before {
    content: counter(item) ".";
    position: absolute;
    left: 20px;
    top: 15px;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 16px;
}

/* Анкетирование */
.survey-section {
    background: var(--accent-light);
    padding: 30px;
    border-radius: var(--border-radius-md);
    margin: 30px 0;
    border: 2px solid var(--accent-color);
}

.survey-list {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.survey-list li {
    background: var(--white);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 4px solid var(--accent-color);
    border-radius: var(--border-radius-sm);
    font-weight: 500;
}

/* Блок вовлечения сотрудников */
.unknown-facts.engagement {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    border-color: var(--gray-700);
}

.unknown-facts.engagement .facts-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.arrow-left {
    font-size: 48px;
    color: var(--primary-color);
    font-weight: 700;
}

.book-ref {
    font-size: 16px;
    color: var(--gray-700);
    font-style: italic;
    text-align: center;
    margin: -10px 0 30px 0;
}

.engagement-intro {
    font-size: 17px;
    font-weight: 500;
    margin: 30px 0;
    text-align: center;
}

.engagement-item {
    background: var(--white);
    padding: 25px;
    margin-bottom: 15px;
    border-radius: var(--border-radius-md);
    border-left: 5px solid var(--gray-700);
    box-shadow: var(--shadow-sm);
}

.engagement-item h5 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px 0;
}

.engagement-item p {
    margin: 0;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Документы и чек-листы */
.documents-section,
.prepare-section,
.checklist-section {
    background: var(--gray-50);
    padding: 30px;
    border-radius: var(--border-radius-md);
    margin: 30px 0;
}

.documents-checklist,
.preparation-checklist {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.documents-checklist li,
.preparation-checklist li {
    background: var(--white);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 4px solid var(--primary-color);
    border-radius: var(--border-radius-sm);
    font-weight: 500;
}

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

.doc-item {
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--gray-300);
    font-size: 15px;
    transition: var(--transition-base);
}

.doc-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--primary-shadow);
}

/* Неприкрытые факты */
.unknown-facts {
    background: linear-gradient(135deg, #fff5f5 0%, #ffebee 100%);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    margin: 40px 0;
    border: 2px solid var(--primary-color);
}

.facts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.facts-header h3 {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.arrow-icon {
    font-size: 48px;
    color: var(--primary-color);
    font-weight: 700;
}

.unknown-facts h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 30px 0 25px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quality-item {
    background: var(--white);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: var(--border-radius-md);
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.quality-item h5 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 15px 0;
}

.quality-item p {
    margin: 10px 0;
    line-height: 1.8;
    color: var(--text-secondary);
}

.quality-item .source {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 15px;
}

.quality-item .source {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 15px;
}

/* Блок наставничества */
.unknown-facts.mentorship {
    background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
    border-color: var(--primary-color);
}

.mentorship-images {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
}

.mentor-image-placeholder {
    width: 120px;
    height: 120px;
    background: var(--white);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--primary-color);
}

.definition {
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    color: var(--text-primary);
    margin: 20px 0 30px;
}

.mentor-qualities,
.mentee-qualities {
    background: var(--white);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: var(--border-radius-md);
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.mentor-qualities h5,
.mentee-qualities h5 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 15px 0;
}

.qualities-list {
    list-style: none;
    padding-left: 0;
    margin: 15px 0 0 0;
}

.qualities-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.qualities-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
}

/* Блок адаптации */
.unknown-facts.adaptation {
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
    border-color: #00897b;
}

.adaptation-images {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
}

.adapt-image-placeholder {
    width: 120px;
    height: 120px;
    background: var(--white);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    box-shadow: var(--shadow-md);
    border: 3px solid #00897b;
}

.adaptation-fact {
    background: var(--white);
    padding: 20px 25px;
    margin-bottom: 15px;
    border-radius: var(--border-radius-md);
    border-left: 5px solid #00897b;
    box-shadow: var(--shadow-sm);
}

.adaptation-fact p {
    margin: 0;
    line-height: 1.7;
    color: var(--text-secondary);
    font-size: 16px;
}

.adaptation-fact p {
    margin: 0;
    line-height: 1.7;
    color: var(--text-secondary);
    font-size: 16px;
}

/* Блок классных чинов */
.unknown-facts.ranks {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-color: #ffc107;
}

.rank-history {
    background: var(--white);
    padding: 25px;
    margin: 20px 0;
    border-radius: var(--border-radius-md);
    border-left: 5px solid #ffc107;
    box-shadow: var(--shadow-sm);
}

.rank-history p {
    margin: 0 0 15px 0;
    line-height: 1.8;
    color: var(--text-secondary);
}

.rank-history p:last-child {
    margin-bottom: 0;
}

.quote-section {
    background: var(--white);
    padding: 25px;
    margin: 20px 0;
    border-radius: var(--border-radius-md);
    border-left: 5px solid #ffc107;
    box-shadow: var(--shadow-sm);
}

.quote-intro {
    font-size: 15px;
    color: var(--gray-700);
    font-style: italic;
    margin-bottom: 15px;
}

.quote-section blockquote {
    margin: 15px 0 0 0;
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--border-radius-sm);
}

.quote-section blockquote p {
    margin: 0;
    line-height: 1.8;
    color: var(--text-secondary);
    font-style: italic;
}

.famous-person {
    background: var(--white);
    padding: 20px 25px;
    margin: 20px 0;
    border-radius: var(--border-radius-md);
    border-left: 5px solid #ffc107;
    box-shadow: var(--shadow-sm);
}

.famous-person p {
    margin: 0;
    line-height: 1.7;
    color: var(--text-secondary);
}

.famous-person strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Заключение */
.conclusion-text {
    background: var(--gray-50);
    padding: 40px;
    border-radius: var(--border-radius-md);
    margin-bottom: 40px;
}

.conclusion-text p {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.conclusion-text p:last-child {
    margin-bottom: 0;
}

.farewell {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: var(--border-radius-lg);
    margin-top: 40px;
}

.farewell-text {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 20px 0;
}

.team-signature {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    opacity: 0.9;
}

.btn-home {
    padding: 15px 30px;
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.3);
}

/* Адаптивность - профессиональная мобильная версия */

/* Планшеты и маленькие ноутбуки */
@media (max-width: 1024px) {
    .guide-page .content-wrap {
        margin: 0 15px;
    }

    .guide-chapters {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 12px;
    }

    .guide-content {
        padding: 40px 30px;
    }
}

/* Планшеты портретная ориентация */
@media (max-width: 768px) {
    /* Общие настройки */
    .guide-page .bg-wrap {
        padding: 20px 10px;
    }

    .guide-page .content-wrap {
        border-radius: var(--border-radius-md);
        margin: 0;
    }

    /* Заголовок */
    .guide-header {
        padding: 40px 20px;
    }

    .guide-title {
        font-size: 28px;
        line-height: 1.2;
    }

    .guide-subtitle {
        font-size: 12px;
    }

    .guide-subtitle-small {
        font-size: 14px;
    }

    /* Навигация */
    .guide-navigation {
        padding: 30px 20px;
    }

    .guide-nav-header h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .guide-chapters {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .guide-chapter {
        padding: 15px 20px;
    }

    .chapter-number {
        width: 35px;
        height: 35px;
        font-size: 16px;
        margin-right: 12px;
    }

    .chapter-title {
        font-size: 15px;
    }

    /* Контент */
    .guide-content {
        padding: 30px 20px;
    }

    .section-title {
        font-size: 26px;
        flex-direction: row;
        align-items: center;
        gap: 15px;
        flex-wrap: wrap;
        padding-bottom: 15px;
    }

    .section-number {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .section-content h3 {
        font-size: 20px;
        margin: 25px 0 15px;
    }

    .section-content p {
        font-size: 15px;
        line-height: 1.7;
    }

    /* Навигация по разделам */
    .section-navigation {
        flex-direction: column;
        gap: 12px;
        margin-top: 40px;
        padding-top: 30px;
    }

    .btn-prev,
    .btn-next,
    .btn-home {
        width: 100%;
        justify-content: center;
        padding: 14px 25px;
        font-size: 15px;
    }

    /* Цитаты */
    .intro-quote,
    .quote-block {
        padding: 20px;
        margin: 25px 0;
    }

    .intro-quote p,
    .quote-block p {
        font-size: 16px;
        line-height: 1.6;
    }

    .quote-block cite {
        font-size: 14px;
    }

    /* Списки */
    .legal-basis,
    .methodical-section,
    .documents-section,
    .prepare-section,
    .checklist-section,
    .survey-section {
        padding: 20px;
        margin: 25px 0;
    }

    .legal-list > li,
    .methodical-list > li {
        padding-left: 35px;
        font-size: 15px;
        line-height: 1.6;
    }

    .legal-list > li:before {
        font-size: 16px;
    }

    /* Сетка документов */
    .documents-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .doc-item {
        padding: 16px;
        font-size: 14px;
    }

    /* Неприкрытые факты */
    .unknown-facts {
        padding: 25px 20px;
        margin: 30px 0;
    }

    .facts-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }

    .facts-header h3 {
        font-size: 24px;
    }

    .arrow-icon,
    .arrow-left {
        font-size: 36px;
    }

    .unknown-facts h4 {
        font-size: 20px;
        margin: 25px 0 20px;
    }

    .quality-item,
    .engagement-item,
    .adaptation-fact {
        padding: 18px;
        margin-bottom: 15px;
    }

    .quality-item h5,
    .engagement-item h5 {
        font-size: 16px;
    }

    .quality-item p,
    .engagement-item p,
    .adaptation-fact p {
        font-size: 14px;
        line-height: 1.6;
    }

    /* Изображения-заглушки */
    .mentorship-images,
    .adaptation-images {
        flex-wrap: wrap;
        gap: 20px;
        margin: 25px 0;
    }

    .mentor-image-placeholder,
    .adapt-image-placeholder {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }

    /* Качества наставника */
    .mentor-qualities,
    .mentee-qualities {
        padding: 18px;
    }

    .qualities-list li {
        font-size: 14px;
        margin-bottom: 8px;
    }

    /* Заключение */
    .conclusion-text {
        padding: 25px 20px;
    }

    .conclusion-text p {
        font-size: 15px;
        line-height: 1.7;
    }

    .farewell {
        padding: 40px 20px;
    }

    .farewell-text {
        font-size: 26px;
    }

    .team-signature {
        font-size: 16px;
    }

    /* История чинов */
    .rank-history,
    .quote-section,
    .famous-person {
        padding: 18px;
    }

    .rank-history p,
    .quote-section p,
    .famous-person p {
        font-size: 14px;
    }

    .quote-intro {
        font-size: 13px;
    }
}

/* Мобильные телефоны */
@media (max-width: 480px) {
    /* Общие настройки */
    .guide-page .bg-wrap {
        padding: 10px 5px;
    }

    /* Заголовок */
    .guide-header {
        padding: 30px 15px;
    }

    .guide-title {
        font-size: 22px;
        line-height: 1.3;
    }

    .guide-subtitle {
        font-size: 11px;
        letter-spacing: 0.5px;
    }

    .guide-subtitle-small {
        font-size: 13px;
    }

    /* Навигация */
    .guide-navigation {
        padding: 20px 15px;
    }

    .guide-nav-header h2 {
        font-size: 20px;
    }

    .guide-chapter {
        padding: 12px 15px;
    }

    .chapter-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
        margin-right: 10px;
    }

    .chapter-title {
        font-size: 14px;
    }

    /* Контент */
    .guide-content {
        padding: 20px 15px;
    }

    .section-title {
        font-size: 22px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .section-number {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .section-content h3 {
        font-size: 18px;
        margin: 20px 0 12px;
    }

    .section-content p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    /* Навигация */
    .section-navigation {
        gap: 10px;
        margin-top: 30px;
        padding-top: 25px;
    }

    .btn-prev,
    .btn-next,
    .btn-home {
        padding: 12px 20px;
        font-size: 14px;
        gap: 8px;
    }

    /* Цитаты */
    .intro-quote,
    .quote-block {
        padding: 15px;
        margin: 20px 0;
    }

    .intro-quote p {
        font-size: 15px;
    }

    .quote-block p {
        font-size: 14px;
    }

    /* Секции */
    .legal-basis,
    .methodical-section,
    .documents-section,
    .prepare-section,
    .checklist-section,
    .survey-section {
        padding: 15px;
        margin: 20px 0;
    }

    .legal-list > li,
    .methodical-list > li {
        padding-left: 30px;
        font-size: 13px;
        margin-bottom: 15px;
    }

    .legal-list > li:before {
        font-size: 14px;
    }

    /* Документы */
    .documents-grid {
        gap: 10px;
    }

    .doc-item {
        padding: 14px;
        font-size: 13px;
    }

    .doc-number {
        font-size: 14px;
    }

    /* Неприкрытые факты */
    .unknown-facts {
        padding: 20px 15px;
    }

    .facts-header h3 {
        font-size: 20px;
    }

    .arrow-icon,
    .arrow-left {
        font-size: 32px;
    }

    .unknown-facts h4 {
        font-size: 18px;
        letter-spacing: 0.5px;
    }

    .quality-item,
    .engagement-item,
    .adaptation-fact {
        padding: 15px;
    }

    .quality-item h5,
    .engagement-item h5 {
        font-size: 15px;
        margin-bottom: 10px;
    }

    /* Изображения */
    .mentorship-images,
    .adaptation-images {
        gap: 15px;
        margin: 20px 0;
    }

    .mentor-image-placeholder,
    .adapt-image-placeholder {
        width: 80px;
        height: 80px;
        font-size: 32px;
        border-width: 2px;
    }

    /* Списки качеств */
    .mentor-qualities,
    .mentee-qualities {
        padding: 15px;
    }

    .qualities-list li {
        font-size: 13px;
        padding-left: 20px;
    }

    .qualities-list li:before {
        font-size: 16px;
    }

    /* Заключение */
    .conclusion-text {
        padding: 20px 15px;
    }

    .conclusion-text p {
        font-size: 14px;
    }

    .farewell {
        padding: 30px 15px;
    }

    .farewell-text {
        font-size: 20px;
    }

    .team-signature {
        font-size: 14px;
    }

    /* История */
    .rank-history,
    .quote-section,
    .famous-person {
        padding: 15px;
    }

    .definition {
        font-size: 16px;
    }

    .book-ref {
        font-size: 13px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .guide-title {
        font-size: 20px;
    }

    .section-title {
        font-size: 20px;
    }

    .section-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .btn-prev,
    .btn-next,
    .btn-home {
        font-size: 13px;
        padding: 10px 15px;
    }

    .mentor-image-placeholder,
    .adapt-image-placeholder {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
}

/* Ландшафтная ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .guide-header {
        padding: 25px 20px;
    }

    .guide-title {
        font-size: 24px;
    }

    .mentorship-images,
    .adaptation-images {
        gap: 15px;
    }

    .mentor-image-placeholder,
    .adapt-image-placeholder {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
}

/* Улучшения для touch-устройств */
@media (hover: none) and (pointer: coarse) {
    /* Увеличиваем области нажатия */
    .guide-chapter,
    .btn-prev,
    .btn-next,
    .btn-home,
    .doc-item {
        min-height: 44px; /* Рекомендация Apple для touch targets */
    }

    .guide-chapter {
        padding: 16px 20px;
    }

    .doc-link {
        padding: 2px 0;
        display: inline-block;
    }

    /* Убираем hover эффекты */
    .guide-chapter:hover,
    .doc-item:hover,
    .btn-prev:hover,
    .btn-next:hover,
    .btn-home:hover {
        transform: none;
    }

    /* Добавляем active состояния для обратной связи */
    .guide-chapter:active,
    .btn-prev:active,
    .btn-next:active,
    .btn-home:active {
        opacity: 0.8;
        transform: scale(0.98);
    }

    .doc-item:active {
        opacity: 0.9;
    }
}
