.section-heading {
    margin-bottom: 28px;
}

.section-eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
}

.section-eyebrow-light {
    color: var(--accent-2);
}

.section-heading h2,
.contacts-copy h2 {
    margin: 0 0 12px;
    font-size: 42px;
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 800;
    color: var(--text);
}

.section-description {
    max-width: 760px;
    margin: 0;
    font-size: 18px;
    line-height: 1.65;
    color: var(--text-muted);
}

@media (max-width: 720px) {
    .section-heading h2,
    .contacts-copy h2 {
        font-size: 34px;
        line-height: 1.02;
    }

    .section-description {
        font-size: 17px;
    }
}

.section-heading h2,
.contacts-copy h2,
.projects-list-title,
.notes-list-title,
.note-single-title {
    margin: 0 0 12px;
    font-weight: 800;
    letter-spacing: var(--section-title-track);
    line-height: var(--section-title-line);
}

.section-heading h2,
.contacts-copy h2 {
    font-size: var(--section-title-size);
    color: var(--text);
}

.section-description,
.projects-list-description,
.notes-list-description,
.note-single-description,
.contacts-description {
    margin: 0;
    color: var(--text-muted);
}

.section-description,
.projects-list-description,
.notes-list-description {
    max-width: 760px;
    font-size: 18px;
    line-height: 1.65;
}

.btn-secondary {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
    transition: background 0.18s ease, color 0.18s ease;
}

.btn-secondary:hover {
    background: rgba(37, 99, 235, 0.15);
    color: #1d4ed8;
}

.not-found {
    display: grid;
    min-height: 100vh;
    padding: 96px 24px;
    place-items: center;
}

.not-found-card {
    width: min(100%, 680px);
    padding: 48px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface-card);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.not-found-code {
    margin: 0 0 12px;
    font-size: clamp(80px, 18vw, 152px);
    font-weight: 800;
    letter-spacing: -0.09em;
    line-height: 0.8;
    color: var(--blue);
}

.not-found-card h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 6vw, 48px);
    letter-spacing: var(--section-title-track);
    line-height: 1;
}

.not-found-card > p:not(.not-found-code):not(.section-eyebrow) {
    max-width: 520px;
    margin: 0 auto 28px;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.65;
}

@media (max-width: 520px) {
    .not-found {
        padding: 72px 16px;
    }

    .not-found-card {
        padding: 36px 24px;
    }
}

:root[data-theme="dark"] .btn-secondary {
    color: #93c5fd;
    background: rgba(96, 165, 250, 0.14);
}

:root[data-theme="dark"] .btn-secondary:hover {
    color: #bfdbfe;
    background: rgba(96, 165, 250, 0.22);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: var(--radius-pill);
    background: var(--blue-bg);
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 600;
}

:root[data-theme="dark"] .tag {
    color: #bfdbfe;
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.projects-breadcrumbs,
.notes-breadcrumbs,
.project-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text-soft);
}

.projects-breadcrumbs a,
.notes-breadcrumbs a,
.project-breadcrumbs a {
    color: var(--text-soft);
    transition: color 0.18s ease;
}

.projects-breadcrumbs a:hover,
.notes-breadcrumbs a:hover,
.project-breadcrumbs a:hover {
    color: var(--blue);
}

.projects-more,
.notes-more-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}
