.menu_item_active {
    color: #afafbe;
    pointer-events: none
}

.menu_list_item.active {
    /* color: var(--main-color);  Можно сделать текст желтым/салатовым */
    opacity: 1;
}

.menu_default_link {
    font-size: 20px;
    text-decoration: none
}

.menu_list .menu_dropdown__toggle.active {
    color: #afafbe;
    /* Здесь поставьте код вашего серого цвета */
}


/* --- New Grid System for Documents --- */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    padding: 30px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.doc-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.doc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.doc-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.4;
    /* Typical document aspect ratio */
    background: #f8f9fa;
    overflow: hidden;
}

.doc-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.doc-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(62, 78, 104, 0.8);
    /* Site's blue color */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    text-align: center;
}

@media (max-width: 768px) {
    .doc-overlay {
        font-size: 14px;
        width: 70%;
        height: 70%;
    }

}

.doc-card:hover .doc-overlay {
    opacity: 1;
}

.doc-overlay i {
    font-size: 32px;
    margin-bottom: 10px;
}

.doc-overlay span {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.doc-caption {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    color: #3e4e68;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

/* --- Archive of Appendices (PDF List) --- */
.archive-list {
    max-width: 1200px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.archive-item {
    display: flex;
    align-items: center;
    background: #f4f7fa;
    padding: 15px 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.archive-item:hover {
    background: #ebf1f7;
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.archive-icon {
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: #e74c3c;
    /* PDF red */
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.archive-content {
    flex-grow: 1;
}

.archive-title {
    display: block;
    font-weight: 700;
    color: #3e4e68;
    font-size: 16px;
    margin-bottom: 2px;
}

.archive-desc {
    display: block;
    color: #7f8c8d;
    font-size: 13px;
}

.archive-download {
    margin-left: 20px;
    color: #3e4e68;
    font-size: 18px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.archive-item:hover .archive-download {
    opacity: 1;
}

/* --- Overlay/Lightbox (Shared with OBZH) --- */
.obzh-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.obzh-overlay.active {
    display: flex;
}

.obzh-overlay-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.obzh-overlay-img {
    max-width: 100%;
    max-height: 90vh;
    border: 5px solid #fff;
    border-radius: 4px;
}

.obzh-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

/* Titles */
.section-header {
    text-align: center;
    margin: 60px 0 30px;
    color: #3e4e68;
}

.section-header h2 {
    font-size: 42px;
    text-transform: uppercase;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 10px;
    border-top: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;

}


@media screen and (max-width: 768px) {

    .section-header h2,
    h2.directions_h2_size,
    .event_news_title,
    .Otzyvy_header_title,
    .corpus_title {
        font-size: 28px !important;
        line-height: 1.2 !important;
        margin-bottom: 20px !important;

    }
}


.section-header h3 {
    font-size: 28px;
    font-weight: 700;
    opacity: 0.9;
}

.doc-grid--accreditation {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {
    .doc-grid--accreditation {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .doc-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }

    .archive-item {
        padding: 12px;
    }

    .archive-icon {
        width: 35px;
        height: 35px;
        font-size: 18px;
        margin-right: 12px;
    }
}