/* Стили основного контента */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 40px;
    max-width: calc(100% - 280px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
    background-color: #F7F7F7;
}

.sidebar.collapsed + .main-content {
    margin-left: 64px;
    max-width: calc(100% - 64px);
}

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

.content-wrapper {
    display: flex;
    gap: 40px;
    position: relative;
    align-items: flex-start;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section.active {
    display: block;
    background-color: #ffffff;
    border: 1px solid;
    border-color: hsla(240, 6%, 90%, .8);
    border-radius: 28px;
    padding: 40px;
    box-shadow: none;
    margin: 0;
    max-width: 776px;
    height: auto;
    flex: 0 0 776px;
}

.content-nav {
    position: sticky;
    top: 40px;
    align-self: flex-start;
    width: 200px;
    flex-shrink: 0;
}

.content-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-nav-list li {
    margin-bottom: 8px;
}

.content-nav-link {
    display: block;
    padding: 6px 12px;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.content-nav-link:hover {
    color: #374151;
    background-color: #EEEEEE;
}

.content-nav-link.active {
    color: #111827;
    background-color: #EEEEEE;
    font-weight: 600;
}

.content-section h2 {
    font-family: 'IBM Plex Serif', 'Times New Roman', Times, serif !important;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 32px;
    color: #1A1A1A;
    letter-spacing: -0.02em;
}

.content-section h3 {
    font-family: 'IBM Plex Serif', 'Times New Roman', Times, serif !important;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 20px;
    margin-top: 48px;
    color: #1A1A1A;
    letter-spacing: -0.01em;
}

.content-section h3:first-of-type {
    margin-top: 0;
}

.content-section h4 {
    font-family: 'IBM Plex Serif', 'Times New Roman', Times, serif !important;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #1A1A1A;
}

.content-section p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
    color: #1A1A1A;
}

.content-section p strong {
    display: block;
    margin-top: 24px;
    margin-bottom: 4px;
}

.content-section p:has(strong) {
    margin-bottom: 0;
    margin-top: 0;
}

.content-section p:has(strong) + p {
    margin-top: 0;
    margin-bottom: 0;
}

.content-section a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.content-section a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

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

.content-section li {
    margin-bottom: 8px;
    color: #1A1A1A;
    font-size: 16px;
    line-height: 1.5;
}

/* Стиль Notion - текстовые ссылки */
.notion-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 32px;
}

.notion-link {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 8px;
    color: #1A1A1A !important;
    text-decoration: none;
    border-radius: 12px;
    transition: background-color 0.15s ease;
    font-size: 16px;
    line-height: 1.5;
}

.notion-link:hover {
    background-color: #F7F7F7;
    text-decoration: none !important;
    color: #1A1A1A !important;
}

.notion-emoji {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    margin-top: 2px;
}

.notion-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 2px;
}

.notion-text {
    font-size: 16px;
    line-height: 1.5;
}

.notion-caption {
    font-size: 12px;
    line-height: 1.5;
    color: #999ba0;
    font-weight: 400;
}

.notion-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notion-sublinks {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-left: 32px;
    margin-top: 4px;
    margin-bottom: 8px;
}

.notion-sublink {
    padding-left: 0;
    font-size: 15px;
}

.notion-sublink .notion-emoji {
    font-size: 14px;
    width: 20px;
}

.content-section .footnote {
    margin-top: 16px;
    margin-bottom: 32px;
    padding-left: 16px;
    border-left: 2px solid #e8e8e8 !important;
}

.footnote p {
    color: #636060;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    margin-bottom: 16px;
    padding-left: 0;
    text-decoration: none;
    font-style: italic;
}

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

.footnote p a {
    color: #2563eb;
    text-decoration: none;
    font-style: italic;
}

.footnote p a:hover {
    color: #1d4ed8;
    text-decoration: none;
}

/* Карточки */
.card {
    background-color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 25px;
    transition: transform 0.3s ease;
    box-shadow: none;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    font-family: 'IBM Plex Serif', 'Times New Roman', Times, serif !important;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #1A1A1A;
    letter-spacing: -0.01em;
}

.card p {
    color: #1A1A1A;
    font-size: 15px;
}

/* Подготовка */
.preparation-steps {
    display: grid;
    gap: 25px;
    margin-top: 30px;
}

.step {
    background-color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 25px;
    box-shadow: none;
}

.step h3 {
    font-family: 'IBM Plex Serif', 'Times New Roman', Times, serif !important;
    color: #1A1A1A;
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.step ul {
    padding-left: 20px;
}

.step li {
    margin-bottom: 10px;
    color: #1A1A1A;
}

/* Вопросы */
.questions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.question-card {
    background-color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 25px;
    transition: transform 0.3s ease;
    box-shadow: none;
}

.question-card:hover {
    transform: translateY(-3px);
}

.question-card h3 {
    font-family: 'IBM Plex Serif', 'Times New Roman', Times, serif !important;
    color: #1A1A1A;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.question-card p {
    margin-bottom: 10px;
}

.question-card strong {
    color: #1A1A1A;
}

/* Примеры ответов */
.answer-examples {
    margin-top: 30px;
}

.example {
    background-color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: none;
}

.example h3 {
    font-family: 'IBM Plex Serif', 'Times New Roman', Times, serif !important;
    color: #1A1A1A;
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.good-answer {
    background-color: #F7F7F7;
    border: none;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.good-answer h4 {
    color: #1A1A1A;
    margin-bottom: 10px;
}

.bad-answer {
    background-color: #F7F7F7;
    border: none;
    border-radius: 8px;
    padding: 20px;
}

.bad-answer h4 {
    color: #1A1A1A;
    margin-bottom: 10px;
}

/* Советы */
.tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.tip-category {
    background-color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 25px;
    box-shadow: none;
}

.tip-category h3 {
    font-family: 'IBM Plex Serif', 'Times New Roman', Times, serif !important;
    color: #1A1A1A;
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.tip-category ul {
    padding-left: 20px;
}

.tip-category li {
    margin-bottom: 10px;
    color: #1A1A1A;
}

/* Ошибки */
.mistakes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.mistake-card {
    background-color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 25px;
    transition: transform 0.3s ease;
    box-shadow: none;
}

.mistake-card:hover {
    transform: translateY(-3px);
}

.mistake-card h3 {
    font-family: 'IBM Plex Serif', 'Times New Roman', Times, serif !important;
    color: #333333;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.mistake-card p {
    margin-bottom: 15px;
    color: #1A1A1A;
}

.solution {
    background-color: #F7F7F7;
    border: none;
    border-radius: 8px;
    padding: 15px;
}

.solution strong {
    color: #1A1A1A;
}

/* Психология */
.psychology-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.psych-section {
    background-color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 25px;
    box-shadow: none;
}

.psych-section h3 {
    font-family: 'IBM Plex Serif', 'Times New Roman', Times, serif !important;
    color: #1A1A1A;
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.psych-section ul {
    padding-left: 20px;
}

.psych-section li {
    margin-bottom: 10px;
    color: #1A1A1A;
}

/* Типология душнил - дропдауны */
.typology-dropdowns {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.dropdown-item {
    background-color: #F7F7F7;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.dropdown-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'IBM Plex Serif', 'Times New Roman', Times, serif !important;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #1A1A1A;
    letter-spacing: -0.01em;
}

.dropdown-title {
    flex: 1;
    white-space: pre;
}

.dropdown-level {
    flex-shrink: 0;
    margin-right: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.4;
}

.dropdown-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: #1A1A1A;
}

.dropdown-item.active .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
}

.dropdown-item.active .dropdown-content {
    max-height: 1000px;
    padding: 0 24px 20px 24px;
}

.dropdown-content p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
    color: #1A1A1A;
}

.dropdown-content p:last-child {
    margin-bottom: 0;
}

/* Старые стили для обратной совместимости */
.typology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.typology-card {
    background-color: #F7F7F7;
    border: 1px solid;
    border-color: hsla(240, 6%, 90%, .8);
    border-radius: 16px;
    padding: 24px;
}

.typology-card h4 {
    font-family: 'IBM Plex Serif', 'Times New Roman', Times, serif !important;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #1A1A1A;
    letter-spacing: -0.01em;
}

.typology-card p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 8px;
    color: #1A1A1A;
}

.typology-card p:last-child {
    margin-bottom: 0;
}

/* Таблица типологии */
.typology-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 24px;
    margin-bottom: 24px;
    font-size: 14px;
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
}

.typology-table thead {
    background-color: #F7F7F7;
}

.typology-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 400;
    color: #6b7280;
    border-bottom: 1px solid #e8e8e8;
    border-right: 1px solid #e8e8e8;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    line-height: 1.3;
}

.typology-table th:last-child {
    border-right: none;
}

.typology-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e8e8e8;
    border-right: 1px solid #e8e8e8;
    color: #1A1A1A;
    line-height: 1.5;
    vertical-align: top;
    font-size: 14px;
}

.typology-table td:last-child {
    border-right: none;
}

.typology-table td:first-child {
    font-family: 'Inter', sans-serif;
}

.typology-table td:nth-child(2) {
    font-weight: 500;
    color: #6b7280;
}

.typology-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

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

.content-section .typology-scale-note {
    font-size: 15px !important;
    font-style: italic;
    color: #6b7280 !important;
    margin-top: 16px;
    margin-bottom: 0;
    line-height: 1.6;
}

.color-indicator {
    display: inline-block;
    margin-right: 6px;
}

.typology-note {
    margin-top: 8px;
    margin-bottom: 24px;
}

.typology-note p {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 0;
    line-height: 1.7;
}

.typology-note p:last-child {
    margin-bottom: 0;
}

/* После собеседования */
.follow-up-steps {
    display: grid;
    gap: 25px;
    margin-top: 30px;
}

.step-card {
    background-color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 25px;
    box-shadow: none;
}

.step-card h3 {
    font-family: 'IBM Plex Serif', 'Times New Roman', Times, serif !important;
    color: #1A1A1A;
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.step-card ul {
    padding-left: 20px;
}

.step-card li {
    margin-bottom: 10px;
    color: #1A1A1A;
}

.email-template {
    background-color: #F7F7F7;
    border: none;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.email-template h4 {
    color: #1A1A1A;
    margin-bottom: 15px;
}

.email-template p {
    margin-bottom: 10px;
    color: #1A1A1A;
    font-family: monospace;
    font-size: 14px;
}

/* Адаптивность основного контента для мобильных устройств */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        max-width: 100%;
        padding: 20px;
    }
    
    .sidebar.collapsed + .main-content {
        margin-left: 0;
        max-width: 100%;
    }
    
    .content-section.active {
        padding: 24px;
        border-radius: 12px;
    }
    
    .content-wrapper {
        flex-direction: column;
        gap: 24px;
    }
    
    .content-nav {
        position: static;
        width: 100%;
        order: -1;
    }
    
    .content-nav-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .content-nav-list li {
        margin-bottom: 0;
    }
    
    .content-nav-link {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .content-section h2 {
        font-size: 28px;
    }
    
    .intro-cards,
    .questions-grid,
    .tips-container,
    .mistakes-grid,
    .psychology-content,
    .typology-grid {
        grid-template-columns: 1fr;
    }
    
    .typology-dropdowns {
        gap: 10px;
    }
    
    .dropdown-toggle {
        padding: 16px 20px;
        font-size: 16px;
        line-height: 1.4;
    }
    
    .dropdown-content {
        padding: 0 20px;
    }
    
    .dropdown-item.active .dropdown-content {
        padding: 0 20px 16px 20px;
    }
    
    .dropdown-content p {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .typology-note p {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .typology-table {
        font-size: 13px;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
    }
    
    .typology-table th,
    .typology-table td {
        padding: 8px 10px;
        font-size: 13px;
        line-height: 1.4;
    }
    
    .typology-table th {
        font-size: 12px;
    }
    
    .typology-table td:first-child {
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 15px;
    }
    
    .content-section.active {
        padding: 20px;
        border-radius: 12px;
    }
    
    .content-section h2 {
        font-size: 24px;
    }
    
    .card,
    .step,
    .question-card,
    .example,
    .tip-category,
    .mistake-card,
    .psych-section,
    .step-card {
        padding: 20px;
    }
    
    .dropdown-toggle {
        padding: 14px 16px;
        font-size: 15px;
        line-height: 1.4;
    }
    
    .dropdown-content {
        padding: 0 16px;
    }
    
    .dropdown-item.active .dropdown-content {
        padding: 0 16px 14px 16px;
    }
    
    .dropdown-content p {
        font-size: 14px;
        line-height: 1.7;
    }
    
    .typology-note p {
        font-size: 14px;
        line-height: 1.7;
    }
}

