/* ============================================================
   styles/portfolio-project.css — страница проекта портфолио
   (/portfolio/<slug>). Подключается ПОСЛЕ portfolio.css.
   Переиспользует из существующих файлов:
   - .hero, .breadcrumbs, .section-* (main.css);
   - .pf-specs, .pf-link, .pf-gallery, .gallery-card*,
     .contact-cta-*, .fullscreen-* (portfolio.css).
   Здесь — только специфичные для страницы проекта блоки:
   спецификация в hero, текстовый блок истории, навигация
   по проектам (prev/next).
   ============================================================ */

/* --- Спецификация в hero (перенесена из секции «Характеристики объекта»,
   без надзаголовка). У .hero-content align-items:flex-start — без явной
   ширины таблица сжалась бы в fit-content, поэтому фиксируем её здесь --- */
.pp-hero-specs {
    width: 100%;
    max-width: 640px;
    margin-top: 32px;
}

/* --- Текстовый блок истории проекта --- */
.pp-story {
    max-width: 820px;
    margin: 0 auto;
}

.pp-story h2 {
    font-family: var(--font-head);
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: var(--white);
    margin: 48px 0 16px;
}

.pp-story h2:first-child {
    margin-top: 0;
}

.pp-story p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-muted);
    margin: 0 0 16px;
}

.pp-story strong {
    color: var(--white);
    font-weight: 700;
}

.pp-story ul {
    margin: 0 0 16px;
    padding-left: 22px;
}

.pp-story ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

.pp-story li {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.pp-story li strong {
    color: var(--white);
    font-weight: 700;
}

/* --- Галерея на странице проекта: во всю ширину контейнера --- */
.pf-project .pf-gallery {
    margin-top: 36px;
    height: auto;
}

/* --- Навигация по проектам (prev/next; в пилоте — одна ссылка) --- */
.pp-next {
    padding: 72px 0 8px;
}

.pp-next-inner {
    display: flex;
    justify-content: flex-start;
}

.pp-next-link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 460px;
    width: 100%;
    padding: 22px 26px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    background: linear-gradient(160deg, hsla(0, 0%, 100%, 0.05), hsla(0, 0%, 100%, 0.015));
    box-shadow: var(--glass-shadow);
    text-decoration: none;
    transition: transform 0.35s var(--ease-pop), border-color 0.3s ease, box-shadow 0.35s ease;
}

.pp-next-link:hover {
    transform: translateY(-4px);
    border-color: rgba(46, 123, 255, 0.45);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
}

.pp-next-label {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
}

.pp-next-title {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: var(--white);
}
