/* ===== СТИЛИ ДЛЯ ДЕТАЛЬНОЙ СТРАНИЦЫ ОСНОВАТЕЛЯ ===== */
.founder-detail-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.founder-detail-container-custom {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.founder-detail-sidebar-custom {
    width: 400px;
    flex-shrink: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    align-self: stretch;
    height: auto;
}

.founder-detail-image-custom {
    width: 100%;
    max-width: 300px;
    height: 400px;
    margin-bottom: 25px;
}

.founder-detail-image-custom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.founder-detail-info-custom {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Изменено с space-between */
    gap: 20px; /* Равномерные отступы между элементами */
}

.founder-detail-name-custom {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.founder-detail-position-custom {
    font-size: 18px;
    color: #666;
    margin: 0;
    font-weight: 500;
}

.founder-detail-age-custom {
    font-size: 16px;
    color: #777;
    margin: 0;
}

.founder-detail-contacts-custom {
    margin: 0; /* Убираем все отступы, т.к. gap уже задан */
}

.founder-detail-email-custom {
    display: block;
    font-size: 16px;
    color: #0066cc;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.founder-detail-email-custom:hover {
    color: #004499;
    text-decoration: underline;
}

.founder-detail-other-custom {
    display: inline;
    font-size: 16px;
    color: #0066cc;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.founder-detail-phone-custom {
    font-size: 16px;
    color: #555;
    margin: 0;
}

.founder-detail-bio-custom {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    line-height: 1.6;
    min-height: 100%;
}

/* Остальные стили для .founder-detail-bio-custom остаются без изменений */
.founder-detail-bio-custom h2,
.founder-detail-bio-custom h3,
.founder-detail-bio-custom h4 {
    color: #333;
    margin-top: 25px;
    margin-bottom: 15px;
}

.founder-detail-bio-custom p {
    margin: 0;
    color: black;
}

.founder-detail-bio-custom ul,
.founder-detail-bio-custom ol {
    margin: 0;
    padding-left: 20px;
}

.founder-detail-bio-custom li {
    margin: 0;
}

.founder-detail-bio-custom strong {
    color: #333;
    font-weight: 600;
}

.founder-detail-bio-custom strong,
.founder-detail-bio-custom b {
    font-family: 'Comfortaa', sans-serif;
    font-weight: 700;
    text-shadow: 0 0 1.5px currentColor;
}

.founder-detail-bio-custom em {
    color: #555;
    font-style: italic;
}

.founder-detail-bio-custom a {
    color: #0066cc;
    text-decoration: none;
}

.founder-detail-bio-custom a:hover {
    text-decoration: underline;
}

/* Стили для выравнивания шрифтов в списках */
.ck-content ul,
.ck-content ol {
    font-size: inherit !important;
    font-family: inherit !important;
    color: inherit !important;
    line-height: inherit !important;
}

.ck-content li {
    font-size: inherit !important;
    font-family: inherit !important;
    color: inherit !important;
    line-height: inherit !important;
}

/* Убедитесь, что основной текст и списки используют одинаковые стили */
.ck-content {
    font-size: 16px;
    font-family: inherit;
    line-height: 1.5;
}

.ck-content p {
    font-size: inherit;
    line-height: inherit;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .founder-detail-container-custom {
        flex-direction: column;
    }

    .founder-detail-sidebar-custom {
        width: 100%;
        max-width: 500px;
        margin: 0 auto 30px;
        align-self: auto;
        height: auto;
    }

    .founder-detail-info-custom {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .founder-detail-custom {
        padding: 20px 15px;
    }

    .founder-detail-sidebar-custom {
        padding: 20px;
    }

    .founder-detail-image-custom {
        max-width: 250px;
        height: 330px;
    }

    .founder-detail-name-custom {
        font-size: 24px;
    }

    .founder-detail-position-custom {
        font-size: 16px;
    }

    .founder-detail-bio-custom {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .founder-detail-image-custom {
        max-width: 200px;
        height: 270px;
    }

    .founder-detail-name-custom {
        font-size: 22px;
    }

    .founder-detail-position-custom {
        font-size: 15px;
    }

    .founder-detail-age-custom,
    .founder-detail-email-custom,
    .founder-detail-phone-custom {
        font-size: 14px;
    }
}


.founder-detail-bio-custom p,
.founder-detail-bio-custom div {
    margin: 0 0 0 0; /* нижний отступ 0 — единый для всех блоков */
    line-height: 1.5;
}

/* Пустые абзацы — не даём им лишней высоты */
.founder-detail-bio-custom p:empty {
    display: none;
    margin: 0;
    padding: 0;
}

/* Перенос строки — без лишних отступов */
.founder-detail-bio-custom br {
    display: block;
    content: "";
    margin: 0;
    line-height: 0;
}

