/* org.css - Стили для страницы сведений об организации */

/* =========================================
   Стили для страницы сведений об организации
   ========================================= */
.info-page {
    padding: 120px 0 80px;
    background: var(--bg-main);
    min-height: calc(100vh - 200px);
}

.info-content {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 2rem;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.back-link:hover {
    gap: 0.8rem;
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.back-link i {
    font-size: 1rem;
}

.info-content h1 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.info-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.info-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    width: 100%;
    outline: none;
    color: var(--text-main);
}

.info-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.info-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.info-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 31, 31, 0.1);
}

.info-btn i {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
    color: var(--primary);
}

.info-btn.active i {
    color: white;
}

.info-display {
    margin-top: 2rem;
    min-height: 400px;
    scroll-margin-top: 20px;
    position: relative;
}

.info-placeholder {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 2px dashed var(--border-color);
}

.info-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--border-color);
}

.info-placeholder h3 {
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.info-placeholder p {
    margin: 0;
    font-size: 1rem;
}

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

.info-section-content.active {
    display: block;
}

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

.info-section-content h2 {
    color: var(--text-main);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
}

.info-block {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.info-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-block h3 {
    color: var(--text-main);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.info-table th,
.info-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.info-table th {
    background: rgba(255, 31, 31, 0.05);
    font-weight: 600;
    color: var(--text-main);
    width: 30%;
    border-right: 1px solid var(--border-color);
}

.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: none;
}

.info-table tr:hover {
    background: rgba(255, 31, 31, 0.02);
}

.info-table td {
    color: var(--text-muted);
    line-height: 1.5;
}

.info-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.info-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: var(--text-muted);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li strong {
    color: var(--text-main);
    font-weight: 600;
}

.document-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.document-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    outline: none;
    position: relative;
    z-index: 1;
}

.document-link:hover {
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-lg); /* Усиливаем тень при наведении */
    transform: translateY(-4px); /* Увеличиваем подъем для лучшего эффекта */
    border-color: var(--primary);
    z-index: 2; /* Поднимаем выше при наведении */
}

.document-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: -1px;
    right: -1px;
    height: 1px;
    background: transparent;
    transition: var(--transition);
    border-radius: 0 0 var(--radius) var(--radius);
}


.document-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 31, 31, 0.1);
}

.document-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.document-link:hover .document-icon {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.document-link div:last-child {
    flex: 1;
}

.document-link h4 {
    color: var(--text-main);
    margin: 0 0 0.3rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.document-link p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.85rem;
}

/* Стили для активного пункта меню в навигации */
.nav-block.active a {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.nav-block.active a i {
    color: white;
}

.nav-block.active a:hover {
    background: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
}

.nav-block.active a:hover i {
    color: white;
}

/* Стили для контента страницы сведений */
.content-wrapper {
    position: relative;
    z-index: 1;
}

.info-page .container {
    position: relative;
    z-index: 1;
}

/* Адаптивность для страницы сведений */
@media (max-width: 1024px) {
    .info-buttons-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .document-links {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .info-page {
        padding: 100px 0 40px;
    }
    
    .info-content {
        padding: 1.5rem;
    }
    
    .info-buttons-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        margin: 1.5rem 0;
    }
    
    .info-btn {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .info-btn i {
        font-size: 1.1rem;
    }
    
    .document-links {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .info-table {
        display: block;
        overflow-x: auto;
        font-size: 0.9rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .info-table th,
    .info-table td {
        padding: 0.8rem;
        min-width: 150px;
    }
    
    .info-table th {
        width: 40%;
    }
    
    .info-block {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .info-block h3 {
        font-size: 1.1rem;
    }
    
    .info-placeholder {
        padding: 2rem 1rem;
    }
    
    .info-placeholder i {
        font-size: 2.5rem;
    }
    
    .document-link {
        padding: 1rem;
    }
    
    .document-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .info-content h1 {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .info-section-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .info-content {
        padding: 1rem;
        margin: 0 10px;
        width: calc(100% - 20px);
    }
    
    .info-btn {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
    
    .info-btn i {
        font-size: 1rem;
    }
    
    .info-table th,
    .info-table td {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .info-table th {
        width: 45%;
    }
    
    .info-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .document-link {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .info-content h1 {
        font-size: 1.6rem;
    }
    
    .info-section-content h2 {
        font-size: 1.4rem;
    }
    
    .back-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Улучшения для доступности */
.info-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.document-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Улучшения для таблиц на мобильных */
@media (max-width: 480px) {
    .info-table {
        font-size: 0.8rem;
    }
    
    .info-table th,
    .info-table td {
        padding: 0.5rem;
        min-width: 120px;
    }
    
    .info-table th {
        width: 50%;
    }
    
    .info-buttons-grid {
        gap: 0.5rem;
    }
    
    .info-btn {
        padding: 0.8rem 0.6rem;
    }
    
    .info-btn span {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

/* Стили для заголовков внутри таблиц */
.info-table th[colspan="2"],
.info-table th[colspan="3"],
.info-table th[colspan="4"] {
    text-align: center;
    background: rgba(255, 31, 31, 0.1);
    color: var(--text-main);
    font-size: 1.1rem;
    padding: 1.2rem;
}

/* Стили для подзаголовков */
.info-block > p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* Стили для ссылок внутри текста */
.info-block a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.info-block a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
}

/* Стили для списков внутри текста */
.info-block ul:not(.info-list) {
    list-style: disc;
    margin: 1rem 0 1rem 1.5rem;
    color: var(--text-muted);
}

.info-block ul:not(.info-list) li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.info-block ul:not(.info-list) li:last-child {
    margin-bottom: 0;
}

/* Стили для кода или специальных элементов */
.info-block code {
    background: rgba(255, 31, 31, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--primary);
}

/* Анимация при переключении разделов */
.info-section-content {
    animation-duration: 0.3s;
    animation-fill-mode: both;
}

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

.info-section-content.active {
    animation-name: slideIn;
}

/* Стили для печати */
@media print {
    .info-page {
        padding: 0;
        background: white;
    }
    
    .info-content {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .back-link,
    .info-buttons-grid,
    .info-placeholder {
        display: none;
    }
    
    .info-section-content {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .info-table {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .info-table th {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
    
    a {
        color: #000 !important;
        text-decoration: none;
    }
}

/* Поддержка темной темы для печати */
@media print and (prefers-color-scheme: dark) {
    .info-content {
        background: white !important;
        color: #000 !important;
    }
    
    .info-table th,
    .info-table td {
        color: #000 !important;
        border-color: #000 !important;
    }
}

/* Улучшения для высококонтрастного режима */
@media (prefers-contrast: high) {
    .info-btn {
        border: 2px solid currentColor;
    }
    
    .info-table {
        border: 2px solid currentColor;
    }
    
    .info-table th {
        background: transparent;
        border: 1px solid currentColor;
    }
}

/* Поддержка уменьшения движения */
@media (prefers-reduced-motion: reduce) {
    .info-btn,
    .document-link,
    .back-link {
        transition: none;
    }
    
    .info-section-content {
        animation: none;
    }
}