:root {
    --pcp-shell-width: 1120px;
    --pcp-border: #d9e0e8;
    --pcp-surface: #ffffff;
    --pcp-background: #f5f7fa;
    --pcp-text: #172033;
    --pcp-muted: #5d687a;
    --pcp-primary: #1e5eff;
    --pcp-primary-dark: #1646bd;
    --pcp-shadow: 0 12px 30px rgba(23, 32, 51, 0.08);
}

* {
    box-sizing: border-box;
}

body.portal-home-page,
body.pcp-error-page {
    margin: 0;
    background: var(--pcp-background);
    color: var(--pcp-text);
    font-family: Arial, Helvetica, sans-serif;
}

.pcp-shell {
    width: min(100% - 32px, var(--pcp-shell-width));
    margin-inline: auto;
}

#pcp-home-header {
    padding: 56px 0 44px;
    background: linear-gradient(135deg, #102a56, #1e5eff);
    color: #ffffff;
}

#pcp-home-header h1 {
    margin: 8px 0 12px;
    font-size: clamp(2rem, 5vw, 3.3rem);
}

.pcp-brand {
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pcp-subtitle {
    max-width: 720px;
    margin: 0;
    line-height: 1.7;
}

#pcp-home-main {
    padding: 40px 0 56px;
}

.pcp-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
}

.pcp-calculator-card,
.pcp-empty-state,
.pcp-error-box {
    background: var(--pcp-surface);
    border: 1px solid var(--pcp-border);
    border-radius: 18px;
    box-shadow: var(--pcp-shadow);
}

.pcp-calculator-card {
    padding: 24px;
}

.pcp-calculator-card h2 {
    margin: 0 0 12px;
    font-size: 1.35rem;
}

.pcp-calculator-card p {
    margin: 0 0 22px;
    color: var(--pcp-muted);
    line-height: 1.6;
}

.pcp-open-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 10px;
    background: var(--pcp-primary);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.pcp-open-link:hover,
.pcp-open-link:focus-visible {
    background: var(--pcp-primary-dark);
}

.pcp-empty-state {
    padding: 32px;
}

#pcp-home-footer,
#pcp-site-footer {
    padding: 24px 0;
    background: #101827;
    color: #dbe3ef;
}

#pcp-home-footer p,
#pcp-site-footer p {
    margin: 0;
    text-align: center;
}

#pcp-site-header {
    position: relative;
    z-index: 1000;
    border-bottom: 1px solid #dbe2ec;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(20, 31, 50, 0.08);
    font-family: Arial, Helvetica, sans-serif;
}

.pcp-site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 20px;
}

#pcp-site-brand {
    color: #172033;
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
}

#pcp-site-navigation {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pcp-site-home-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 9px 16px;
    border-radius: 9px;
    background: #1e5eff;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.pcp-site-home-link:hover,
.pcp-site-home-link:focus-visible {
    background: #1646bd;
}

.pcp-error-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.pcp-error-box {
    width: min(100%, 620px);
    padding: 32px;
    text-align: center;
}

.pcp-error-box h1 {
    margin-top: 0;
}

.pcp-error-box p {
    margin-bottom: 24px;
    color: var(--pcp-muted);
    line-height: 1.6;
}

@media (max-width: 600px) {
    #pcp-home-header {
        padding: 42px 0 34px;
    }

    .pcp-site-header-inner {
        min-height: 60px;
    }

    #pcp-site-brand {
        font-size: 1rem;
    }

    .pcp-site-home-link {
        min-height: 38px;
        padding: 8px 13px;
    }
}
