/* === СТИЛИ СТРАНИЦЫ "СВЕДЕНИЯ ОБ ОБРАЗОВАТЕЛЬНОЙ ОРГАНИЗАЦИИ" === */
main {
    min-height: 0;
}


.organization-page .organization-hero {
    padding: 80px 0 40px 0;
    background-color: var(--color-bg-secondary);
    text-align: left;
}

.organization-hero-content {
    margin-left: 28px;
}

.organization-page .organization-hero h1 {
    color: var(--color-text-primary);
    margin-bottom: 8px;
}

.organization-page .organization-hero .text-p2 {
    color: var(--color-text-secondary);
    max-width: 800px;
    margin: 0;
}

/* Основной контент с табами */
.organization-content {
    padding: 0 0 32px 0;
}

.organization-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    align-items: start;
}

/* Вертикальное меню слева */
.organization-sidebar {
    position: sticky;
    top: 100px;
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.organization-tabs {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tab-item {
    border-bottom: none;
}

.tab-link {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--color-text-secondary);
    transition: all 0.3s ease;
    font-size: var(--font-size-base);
    line-height: var(--line-height-tight);
}

.tab-link:hover {
    background-color: var(--color-bg-green-shield);
    color: var(--color-text-primary);
}

.tab-item.active .tab-link {
    background-color: var(--color-bg-green-shield);
    color: var(--color-text-green);
}

.tab-text {
    font-weight: var(--font-weight-medium);
}

/* Контент табов */
.organization-tab-content {
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-header {
    background-color: var(--color-white);
    padding: 24px 32px;
}

.tab-header h2 {
    font-size: 32px;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin: 0;
}

.tab-body {
    padding: 32px;
}

/* Секции информации */
.info-section {
    margin-bottom: 32px;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-subsection {
    margin-bottom: 24px;
}

.info-subsection:last-child {
    margin-bottom: 0;
}

.info-subsection h4 {
    margin-bottom: 10px;
}

.department-info p {
    margin-bottom: 24px !important;
}

.department-info p:last-child {
    margin-bottom: 0 !important;
}

/* Дополнительно для надежности */
.department-info > p {
    margin-bottom: 24px !important;
}

.department-info > p:last-child {
    margin-bottom: 0 !important;
}

/* Красная строка для вкладки "Материально-техническое обеспечение" */
#staff .info-section p {
    text-indent: 20px;
}

/* Стили для платных образовательных услуг */
.service-links {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* Стили для списка реквизитов */
.requisites-list p {
    margin-bottom: 8px;
    line-height: var(--line-height-normal);
}

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

/* Стили для списка с тире */
.dash-list {
    list-style: none;
    padding-left: 20px;
    margin-top: 10px;
}

.dash-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
}

.dash-list li:before {
    content: "–";
    position: absolute;
    left: 0;
    color: var(--color-text-secondary);
}

.dash-list li:last-child {
    margin-bottom: 0;
}

/* Отступы после заголовков в разделе "Финансово-хозяйственная деятельность" */
#scholarships .info-section h3,
#scholarships .info-section h4 {
    margin-bottom: 10px;
    margin-top: 20px;
}

/* Отступ для первого заголовка */
#scholarships .info-section h3:first-child,
#scholarships .info-section h4:first-child {
    margin-top: 0;
}

/* Отступы после заголовков в разделе "Политика обработки персональных данных" */
#international .info-section h3,
#international .info-section h4 {
    margin-bottom: 10px;
    margin-top: 20px;
}

/* Отступ для первого заголовка */
#international .info-section h3:first-child,
#international .info-section h4:first-child {
    margin-top: 0;
}

.service-links li {
    margin-bottom: 12px;
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
}

.service-links li:last-child {
    margin-bottom: 0;
}

.service-links a {
    color: var(--color-primary) !important;
    text-decoration: underline;
    text-decoration-color: var(--color-primary);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-lg);
}

.service-links a:hover {
    color: var(--color-hover-green) !important;
    text-decoration: underline;
    text-decoration-color: var(--color-primary);
}

/* Стили для ресурсов и документов */
.resource-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-links li {
    margin-bottom: 8px;
}

.resource-links li:last-child {
    margin-bottom: 0;
}

.resource-links a {
    color: var(--color-primary) !important;
    text-decoration: underline !important;
    text-decoration-color: var(--color-primary);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-lg);
}

.resource-links a:hover {
    color: var(--color-hover-green) !important;
    text-decoration: underline !important;
    text-decoration-color: var(--color-primary);
}

.document-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: var(--color-bg-secondary);
    border-radius: 8px;
}

.document-item p {
    margin: 0;
    flex: 1;
}

.download-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    padding: 8px 16px;
    background-color: var(--color-white);
    border-radius: 50px;
    border: 1px solid var(--color-primary);
    transition: all 0.3s ease;
}

.download-link:hover {
    background-color: var(--color-primary);
    color: var(--color-white) !important;
    text-decoration: none !important;
}

.info-section h3 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    margin-bottom: 8px;
}

.info-section h4 {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-main);
    margin-bottom: 8px;
}

.info-section p {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: var(--line-height-normal);
    margin: 0;
}

/* Унифицированные стили для основного текста */
.info-section p,
.dash-list li {
    font-size: var(--font-size-base) !important;
    color: var(--color-text-secondary) !important;
}

/* Стили для списка документов */
.documents-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.documents-list li {
    margin-bottom: 12px;
    font-size: var(--font-size-base);
    color: var(--color-text-main) !important;
}

.documents-list li:last-child {
    margin-bottom: 0;
}

.documents-list a {
    color: var(--color-primary) !important;
    text-decoration: underline;
    text-decoration-color: var(--color-primary);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-lg);
}

.documents-list a:hover {
    color: var(--color-hover-green);
    text-decoration: underline;
    text-decoration-color: var(--color-primary);
}

.sub-documents {
    list-style: none;
    padding-left: 20px;
    margin-top: 8px;
}

.sub-documents li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
    font-size: var(--font-size-sm);
    color: var(--color-text-main) !important;
}

.sub-documents li:before {
    content: "–";
    position: absolute;
    left: 0;
    color: var(--color-text-main) !important;
}

.sub-documents li:last-child {
    margin-bottom: 0;
}

.sub-documents a {
    color: var(--color-primary) !important;
    text-decoration: underline;
    text-decoration-color: var(--color-primary);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-lg);
}

.sub-documents a:hover {
    color: var(--color-hover-green);
    text-decoration: underline;
    text-decoration-color: var(--color-primary);
}

.info-section a:not(.resource-links a) {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
}

.info-section a:not(.resource-links a):hover {
    text-decoration: underline;
    text-decoration-color: var(--color-primary);
}

/* Заглушки для пустых табов */
.placeholder-text {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    text-align: center;
    padding: 40px 20px;
    font-style: italic;
}

/* Адаптивность */
@media screen and (max-width: 1024px) {
    .organization-layout {
        grid-template-columns: 280px 1fr;
        gap: 16px;
    }
    
    .organization-sidebar {
        top: 80px;
    }
    
    .tab-link {
        padding: 14px 16px;
        font-size: var(--font-size-xs);
    }
    
    .tab-body {
        padding: 24px;
    }
    
    .tab-header {
        padding: 20px 24px;
    }
    
    .tab-header h2 {
        font-size: 28px;
    }
}

@media screen and (max-width: 768px) {
    .organization-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .organization-sidebar {
        position: static;
        order: 1;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
    }
    
    .organization-tab-content {
        order: 2;
    }
    
    .organization-content {
        padding-top: 0;
    }

    .organization-hero-content {
        margin-left: 0;
    }
    
    .organization-page .organization-hero {
        padding: 40px 16px 16px 28px;
    }
    
    .organization-hero .container {
        padding: 0;
    }
    
    .organization-tabs {
        display: flex;
        overflow-x: auto;
        position: sticky;
        top: 0;
        z-index: 10;
        background: transparent;
        padding: 8px 0;
        margin-bottom: 0;
        box-shadow: none;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 8px;
    }
    
    .organization-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .tab-item {
        border-bottom: none;
        border-right: none;
        flex-shrink: 0;
    }
    
    .tab-link {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: var(--font-size-sm) !important;
        background-color: var(--color-white);
        color: var(--color-text-main);
        border-radius: 50px;
        padding: 12px 20px;
        text-align: center;
        min-width: 120px;
        text-decoration: none;
        transition: all 0.3s ease;
        border: none;
        box-shadow: none;
    }
    
    .tab-link:hover {
        background-color: var(--color-bg-green-shield);
        color: var(--color-text-primary);
        border-radius: 50px;
    }
    
    .tab-item.active .tab-link {
        background-color: var(--color-primary);
        color: var(--color-white);
        box-shadow: none;
        border-radius: 50px;
    }
    
    .tab-text {
        font-size: var(--font-size-sm);
        line-height: 1.2;
        font-weight: var(--font-weight-medium);
    }
    
    .tab-body {
        padding: 20px;
    }
    
    .tab-header {
        padding: 16px 20px;
    }
    
    .tab-header h2 {
        font-size: 24px;
    }
    
    .info-section h3 {
        font-size: var(--font-size-base);
    }
    
    .info-section p {
        font-size: var(--font-size-sm);
    }
}

@media screen and (max-width: 480px) {
    .organization-page .organization-hero {
        padding: 20px 0;
    }
    
    .organization-page .organization-hero h2 {
        font-size: var(--font-size-32);
    }
    
    .organization-page .organization-hero h5 {
        font-size: var(--font-size-base);
    }
    
    .tab-link {
        padding: 10px 12px;
        min-width: 100px;
    }
    
    .tab-text {
        font-size: 14px;
    }
    
    .tab-body {
        padding: 16px;
    }
    
    .tab-header {
        padding: 12px 16px;
    }
    
    .tab-header h2 {
        font-size: 20px;
    }
    
    .info-section {
        margin-bottom: 24px;
    }
    
    .info-section h3 {
        font-size: var(--font-size-sm);
    }
    
    .info-section p {
        font-size: var(--font-size-xs);
    }
}
