/* --- css/about.css --- */

/* Глобальное выравнивание заголовков секций по центру */
section {
    text-align: center;
}

.about-header { 
    padding-top: 150px; 
    padding-bottom: 50px; 
}

.hierarchy-grid, .memos-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 20px; 
    max-width: 1200px; 
    margin: 0 auto 50px auto; 
}

/* --- РОЛИ --- */
.role-card {
    background: var(--bg-card);
    padding: 25px;
    border-left: 4px solid #333;
    transition: var(--transition);
    text-align: left; /* Текст внутри карточек слева */
    position: relative;
}
.role-card:hover { 
    border-left-color: var(--accent-primary); 
    background: #1a1a1a; 
    cursor: context-menu; /* Подсказка курсора, что можно нажать ПКМ */
}
.role-title { 
    color: var(--accent-primary); 
    margin-bottom: 10px; 
    font-size: 1.5rem; 
}

/* --- ПАМЯТКИ MURRIETA --- */
.memo-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-main);
    background: var(--bg-card);
    padding: 20px;
    border: 1px solid rgba(255, 145, 0, 0.1);
    border-radius: 4px;
    transition: var(--transition);
    text-align: left;
}

.memo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 145, 0, 0.1);
    border-color: var(--accent-primary);
}

.memo-top-wrapper {
    display: flex;
    align-items: flex-start; 
    margin-bottom: 15px;
    flex-grow: 1;
}

.memo-image {
    width: 60px;
    height: 60px;
    min-width: 60px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(255, 145, 0, 0.3);
    margin-right: 15px; 
}

.memo-content h4 {
    color: var(--accent-primary);
    margin-top: 0;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.memo-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.memo-link-text {
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    font-size: 0.9rem;
    align-self: center;
    padding-top: 5px;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.memo-card:hover .memo-link-text {
    border-bottom-color: var(--accent-primary);
}

/* --- FAQ --- */
.faq-item { 
    margin-bottom: 20px; 
    padding: 20px; 
    background: #111; 
    border: 1px solid #222; 
    text-align: left;
}
.faq-item h4 { 
    color: #fff; 
    margin-bottom: 10px; 
}

/* ================================================= */
/* МОДАЛЬНОЕ ОКНО ПРОФИЛЯ (СБРОС СТИЛЕЙ + СКРЫТИЕ)   */
/* ================================================= */

.modal {
    display: none; /* <-- КЛЮЧЕВОЕ ИСПРАВЛЕНИЕ: Скрываем по умолчанию */
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.85); /* Затемнение фона */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.profile-modal-content {
    background-color: var(--bg-card);
    margin: 10% auto;
    padding: 0;
    border: 2px solid var(--accent-primary);
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 0 50px rgba(255, 145, 0, 0.3);
    animation: fadeIn 0.3s ease-out;
    overflow: hidden;
}

.profile-body {
    display: flex;
    flex-direction: row;
    min-height: 400px;
}

/* Левая часть (Фото) */
.profile-left {
    flex: 0 0 40%; 
    position: relative;
    background-color: #000;
    border-right: 1px solid rgba(255, 145, 0, 0.2);
}

.profile-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Правая часть (Инфо) */
.profile-right {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.profile-rank {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    display: inline-block;
}

.profile-bio-box p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-main);
}

.profile-stats-list {
    list-style: none;
    padding: 0;
}

.profile-stats-list li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.profile-stats-list li strong {
    color: var(--accent-primary);
    margin-right: 5px;
}

.profile-close {
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 10;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
}
.profile-close:hover { color: var(--accent-primary); }

@media (max-width: 768px) {
    .profile-body { flex-direction: column; }
    .profile-left { height: 300px; border-right: none; border-bottom: 1px solid rgba(255, 145, 0, 0.2); }
    .profile-right { padding: 20px; }
}