/* ——— Шапка страницы проекта (proekt-header) ——— */

.proekt-header {
    background-color: var(--color-neutral-50);
    color: var(--color-neutral-900);
}

.proekt-header__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px 80px;
    box-sizing: border-box;
}

.proekt-header__breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    font-size: 14px;
    line-height: 20px;
}

.proekt-header__breadcrumbs-link {
    color: var(--color-neutral-600);
    text-decoration: none;
    transition: color 0.2s ease;
}

.proekt-header__breadcrumbs-link:hover {
    color: var(--color-neutral-900);
}

.proekt-header__breadcrumbs-sep {
    color: var(--color-neutral-400);
}

.proekt-header__breadcrumbs-current {
    font-weight: 500;
    color: var(--color-neutral-900);
}

.proekt-header__body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.proekt-header__title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.proekt-header__label {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 14px;
    color: var(--color-neutral-500);
}

.proekt-header__title {
    margin: 0;
    font-size: 32px;
    font-weight: 500;
    line-height: 40px;
    letter-spacing: -0.32px;
    color: var(--color-neutral-900);
    word-break: break-word;
}

.proekt-header__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px 40px;
    min-width: 0;
}

.proekt-header__meta-row {
    display: contents;
}

.proekt-header__meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.proekt-header__meta-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    line-height: 20px;
    color: var(--color-neutral-500);
}

.proekt-header__meta-dot {
    display: block;
    flex-shrink: 0;
}

.proekt-header__meta-value {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-neutral-900);
    word-break: break-word;
    max-width: 320px;
}

.proekt-header__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 40px;
    padding: 8px 16px;
    border-radius: 8px;
    background-color: var(--color-red-500);
    font-size: 14px;
    font-weight: 500;
    line-height: 14px;
    color: var(--color-neutral-0);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s ease;
    box-sizing: border-box;
}

.proekt-header__button:hover {
    opacity: 0.92;
}

/* ——— Tablet (768px – 1279px) ——— */

@media (max-width: 1279px) {
    .proekt-header__inner {
        padding: 24px 32px;
    }

    .proekt-header__body {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .proekt-header__meta {
        align-items: center;
        gap: 16px 24px;
        width: 100%;
    }

    .proekt-header__meta-row {
        display: contents;
    }
}

/* ——— Mobile (до 767px) ——— */

@media (max-width: 767px) {
    .proekt-header__inner {
        padding: 24px 16px;
    }

    .proekt-header__breadcrumbs {
        margin-bottom: 32px;
    }

    .proekt-header__meta {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .proekt-header__meta-row {
        display: flex;
        gap: 24px;
        width: 100%;
    }

    .proekt-header__meta-item--address {
        width: 100%;
    }

    .proekt-header__meta-row .proekt-header__meta-item {
        flex: 1 1 0;
        min-width: 0;
    }

    .proekt-header__button {
        width: 100%;
    }
}
