.page-shell {
    max-width: 960px;
    margin: 0 auto;
}

.page-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.page-header {
    margin-bottom: 20px;
}

.page-title {
    margin: 0;
    font-size: 2rem;
    line-height: 1.2;
    color: #111827;
}

.page-media {
    margin: 0 0 24px;
}

.page-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.page-body {
    color: #1f2937;
}

.page-section + .page-section {
    margin-top: 28px;
}

.page-section-title {
    margin: 0 0 12px;
    font-size: 1.4rem;
    line-height: 1.3;
    color: #111827;
}

.page-subheading {
    margin: 0 0 16px;
    font-size: 1.05rem;
    line-height: 1.5;
    color: #4b5563;
    font-weight: 600;
}

.page-text {
    font-size: 1rem;
    line-height: 1.75;
    color: #1f2937;
}

.page-text--center {
    text-align: center;
    font-size: 1.08rem;
}

.page-text--long {
    white-space: normal;
}

.page-contact-name {
    margin: 0 0 12px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #111827;
}

.page-contact-block {
    margin: 0 0 18px;
    font-size: 1rem;
    line-height: 1.7;
}

.page-contact-line {
    margin: 0 0 10px;
    font-size: 1rem;
    line-height: 1.6;
}

.page-contact-label {
    font-weight: 700;
    color: #111827;
}

.page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.page-link-button {
    display: inline-block;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    color: #111827;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.page-link-button:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.page-empty {
    margin: 0;
    color: #6b7280;
}

@media (max-width: 640px) {
    .page-card {
        padding: 18px;
    }

    .page-title {
        font-size: 1.7rem;
    }

    .page-section-title {
        font-size: 1.2rem;
    }

    .page-text,
    .page-contact-block,
    .page-contact-line {
        font-size: 0.98rem;
    }
}

.page-paragraph {
    margin: 0 0 1rem;
}

.page-paragraph:last-child {
    margin-bottom: 0;
}

.page-card--home .page-header,
.page-card--contact .page-header {
    text-align: center;
}

.page-card--home .page-image,
.page-card--contact .page-image {
    max-height: 420px;
    object-fit: cover;
}

.page-card--about {
    max-width: 820px;
    margin: 0 auto;
}

.page-card a {
    color: #1d4ed8;
}

.page-card a:hover {
    text-decoration: underline;
}

.page-contact-block,
.page-contact-line,
.page-text--long {
    max-width: 70ch;
}

.page-text--center {
    max-width: 40ch;
    margin: 0 auto;
}

.page-link-button:focus-visible {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.page-card a:focus-visible {
    text-decoration: underline;
}
