/* ================= Публичные проекты ================= */
/* Layout общий (views/layouts/main.php) — шапка и подвал сайта. */

/* Карточки проектов в списке */
.pp-card {
    transition: transform .15s ease, box-shadow .15s ease;
    border-radius: 10px;
    overflow: hidden;
}

.pp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}

.pp-card .card-title a {
    color: #212529;
    text-decoration: none;
}

.pp-card .card-title a:hover {
    color: #0d6efd !important;
}

.pp-card__cover {
    height: 200px;
    width: 100%;
    object-fit: cover;
    background: #e9ecef;
}

/* Страница проекта */
.pp-article-container {
    max-width: 1000px;
}

/* Скрин проекта (обложка статьи) */
.pp-cover {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #dee2e6;
    border-radius: 10px;
}

/* Рамка вьювера: фиксированная высота, чтобы iframe не «схлопывался». */
.pp-viewer {
    position: relative;
    width: 100%;
    height: min(75vh, 640px);
    min-height: 420px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
    background: #e9ecef;
}

.pp-viewer iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.pp-post p {
    line-height: 1.8;
}

.pp-post h2 {
    margin-top: 2.5rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid #e9ecef;
}

.pp-post ul,
.pp-post ol {
    line-height: 1.8;
}

.pp-post h3 {
    margin-top: 1.75rem;
}

/* Блок «Особенности проекта» */
.pp-features {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: 4px solid #0d6efd;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
}

.pp-post .pp-features__title {
    margin-top: 0;
    padding-bottom: 0;
    border-bottom: 0;
    font-size: 1.1rem;
    margin-bottom: .75rem;
}

.pp-features__list {
    padding-left: 1.1rem;
    margin-bottom: 0;
}

.pp-features__list li {
    margin-bottom: .35rem;
    line-height: 1.6;
}

.pp-post figure {
    margin-bottom: 2rem;
}

.pp-post figcaption {
    font-size: .9rem;
    color: #6c757d;
    margin-top: .5rem;
}

