body.portal-public-body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    color: #18324a;
    background: #f4f7fb;
}

.portal-public-body a {
    transition: all 0.25s ease;
}

.portal-public-shell {
    min-height: 100vh;
}

.portal-topbar {
    background: linear-gradient(135deg, #0f4c81, #1a6fb3);
    color: #fff;
    padding: 12px 0;
}

.portal-topbar .container,
.portal-navbar .container,
.portal-footer-main .container,
.portal-footer-bottom .container,
.portal-page-section .container,
.portal-hero-section .container,
.portal-subhero .container {
    max-width: 1180px;
}

.portal-topbar-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.portal-topbar-note {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    opacity: 0.95;
}

.portal-topbar-note i {
    font-size: 15px;
}

.portal-topbar-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.portal-mini-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.portal-mini-btn:hover,
.portal-mini-btn:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.24);
    text-decoration: none;
}

.portal-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(18, 38, 63, 0.08);
}

.portal-navbar .navbar {
    padding: 16px 0;
}

.portal-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.portal-brand:hover,
.portal-brand:focus {
    text-decoration: none;
}

.portal-brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(135deg, #1c7ed6, #22b8cf);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 28px rgba(34, 184, 207, 0.28);
}

.portal-brand-mark img {
    max-width: 32px;
    max-height: 32px;
}

.portal-brand-text {
    display: flex;
    flex-direction: column;
}

.portal-brand-title {
    color: #163754;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.1;
}

.portal-brand-subtitle {
    color: #5f7389;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portal-navbar .navbar-light .navbar-nav .nav-link {
    color: #204361;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 999px;
}

.portal-navbar .navbar-light .navbar-nav .nav-link:hover,
.portal-navbar .navbar-light .navbar-nav .nav-link:focus,
.portal-navbar .navbar-light .navbar-nav .active .nav-link {
    color: #0f5fa8;
    background: rgba(15, 95, 168, 0.09);
}

.portal-navbar .navbar-toggler {
    border: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: #eef4fb;
}

.portal-navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 18px;
}

.portal-btn,
.portal-btn-secondary,
.portal-btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    border: 0;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.portal-btn {
    color: #fff;
    background: linear-gradient(135deg, #0f5fa8, #22b8cf);
    box-shadow: 0 14px 30px rgba(15, 95, 168, 0.24);
}

.portal-btn:hover,
.portal-btn:focus {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.portal-btn-secondary {
    color: #0f5fa8;
    background: rgba(15, 95, 168, 0.08);
}

.portal-btn-secondary:hover,
.portal-btn-secondary:focus {
    color: #0f5fa8;
    text-decoration: none;
    background: rgba(15, 95, 168, 0.14);
}

.portal-btn-light {
    color: #163754;
    background: #fff;
    box-shadow: 0 12px 30px rgba(18, 38, 63, 0.1);
}

.portal-btn-light:hover,
.portal-btn-light:focus {
    color: #163754;
    text-decoration: none;
}

.portal-hero-section {
    padding: 76px 0 52px;
    background:
        radial-gradient(circle at top left, rgba(34, 184, 207, 0.22), transparent 32%),
        radial-gradient(circle at top right, rgba(15, 95, 168, 0.18), transparent 28%),
        linear-gradient(180deg, #f7fbff 0%, #edf4fb 100%);
}

.portal-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 28px;
    align-items: stretch;
}

.portal-hero-copy,
.portal-glass-card,
.portal-subhero-card,
.portal-surface-card,
.portal-contact-card,
.portal-policy-card,
.portal-feature-card,
.portal-product-card,
.portal-stats-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(178, 198, 221, 0.35);
    box-shadow: 0 22px 50px rgba(25, 55, 83, 0.08);
    border-radius: 28px;
}

.portal-hero-copy {
    padding: 38px;
}

.portal-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(15, 95, 168, 0.08);
    color: #0f5fa8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portal-hero-title,
.portal-subhero-title {
    margin: 0 0 16px;
    color: #0f2740;
    font-size: 48px;
    line-height: 1.1;
    font-weight: 800;
}

.portal-hero-text,
.portal-subhero-text,
.portal-section-text,
.portal-card-text,
.portal-list,
.portal-policy-card p,
.portal-policy-card li,
.portal-contact-detail,
.portal-input-note {
    color: #557085;
    font-size: 16px;
    line-height: 1.75;
}

.portal-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.portal-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.portal-stats-card {
    padding: 18px;
}

.portal-stat-value {
    display: block;
    margin-bottom: 6px;
    color: #0f2740;
    font-size: 28px;
    font-weight: 800;
}

.portal-stat-label {
    color: #627d92;
    font-size: 13px;
    font-weight: 600;
}

.portal-glass-card {
    padding: 26px;
}

.portal-login-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.portal-panel-title {
    margin: 0;
    color: #0f2740;
    font-size: 28px;
    font-weight: 800;
}

.portal-panel-subtitle {
    margin: 0;
    color: #668196;
    font-size: 15px;
    line-height: 1.7;
}

.portal-form-group {
    margin: 0;
}

.portal-input,
.portal-textarea {
    width: 100%;
    min-height: 54px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid #c5d6e6;
    background: #eef5fb;
    color: #173654;
    font-size: 15px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.portal-textarea {
    min-height: 160px;
    resize: vertical;
}

.portal-input:focus,
.portal-textarea:focus {
    outline: none;
    border-color: #3a8bd4;
    background: #f4f9fe;
    box-shadow: 0 0 0 4px rgba(58, 139, 212, 0.12);
}

.portal-checkbox-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.portal-check-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #4c6578;
    font-size: 14px;
    font-weight: 600;
}

.portal-inline-note {
    color: #628096;
    font-size: 13px;
}

.portal-error {
    display: block;
    color: #d14343;
    font-weight: 600;
    min-height: 20px;
}

.portal-page-section {
    padding: 34px 0 10px;
}

.portal-section-head {
    max-width: 720px;
    margin-bottom: 26px;
}

.portal-section-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: #0f5fa8;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portal-section-title {
    margin: 0 0 12px;
    color: #102a43;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 800;
}

.portal-grid-3,
.portal-grid-2,
.portal-contact-grid,
.portal-policy-grid {
    display: grid;
    gap: 22px;
}

.portal-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-grid-2,
.portal-contact-grid,
.portal-policy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-feature-card,
.portal-product-card,
.portal-contact-card,
.portal-policy-card,
.portal-subhero-card,
.portal-surface-card {
    padding: 28px;
    height: 100%;
}

.portal-card-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 95, 168, 0.12), rgba(34, 184, 207, 0.16));
    color: #0f5fa8;
    font-size: 22px;
}

.portal-card-title {
    margin: 0 0 12px;
    color: #102a43;
    font-size: 22px;
    font-weight: 800;
}

.portal-product-image {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 22px;
    margin-bottom: 20px;
}

.portal-product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: #0f5fa8;
    font-weight: 700;
    text-decoration: none;
}

.portal-product-link:hover,
.portal-product-link:focus {
    color: #0b4d88;
    text-decoration: none;
}

.portal-list {
    margin: 0;
    padding-left: 18px;
}

.portal-list li + li {
    margin-top: 8px;
}

.portal-subhero {
    padding: 58px 0 10px;
}

.portal-subhero-wrap {
    padding: 0;
}

.portal-subhero-card {
    position: relative;
    overflow: hidden;
    padding: 42px;
    background: linear-gradient(135deg, rgba(15, 95, 168, 0.94), rgba(34, 184, 207, 0.9));
    color: #fff;
}

.portal-subhero-card:before {
    content: '';
    position: absolute;
    top: -60px;
    right: -40px;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 50%;
}

.portal-subhero-title,
.portal-subhero-text,
.portal-breadcrumb,
.portal-breadcrumb a {
    position: relative;
    z-index: 1;
}

.portal-subhero-title,
.portal-subhero-text,
.portal-breadcrumb a,
.portal-breadcrumb span {
    color: #fff;
}

.portal-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 600;
}

.portal-breadcrumb a {
    opacity: 0.88;
    text-decoration: none;
}

.portal-breadcrumb a:hover,
.portal-breadcrumb a:focus {
    opacity: 1;
    text-decoration: none;
}

.portal-contact-detail {
    margin: 0;
}

.portal-contact-detail strong {
    display: block;
    margin-bottom: 6px;
    color: #102a43;
    font-size: 18px;
}

.portal-policy-card h3 {
    margin: 0 0 14px;
    color: #102a43;
    font-size: 22px;
    font-weight: 800;
}

.portal-policy-card ul {
    margin: 0;
    padding-left: 18px;
}

.portal-policy-card a {
    color: #0f5fa8;
    word-break: break-word;
}

.portal-footer-main {
    margin-top: 56px;
    padding: 54px 0 26px;
    background: #102a43;
}

.portal-footer-brand {
    margin-bottom: 20px;
}

.portal-footer-title {
    margin: 0 0 14px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.portal-footer-text,
.portal-footer-links a,
.portal-footer-contact {
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    line-height: 1.8;
}

.portal-footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.portal-footer-links li + li {
    margin-top: 8px;
}

.portal-footer-links a {
    text-decoration: none;
}

.portal-footer-links a:hover,
.portal-footer-links a:focus {
    color: #fff;
    text-decoration: none;
}

.portal-footer-bottom {
    padding: 18px 0 28px;
    background: #102a43;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-footer-bottom-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.portal-footer-copy {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
}

.portal-social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.portal-social-links a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
}

.portal-social-links a:hover,
.portal-social-links a:focus {
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 991px) {
    .portal-navbar-actions {
        margin: 16px 0 0;
        justify-content: flex-start;
    }

    .portal-hero-grid,
    .portal-grid-3,
    .portal-grid-2,
    .portal-contact-grid,
    .portal-policy-grid {
        grid-template-columns: 1fr;
    }

    .portal-hero-title,
    .portal-subhero-title {
        font-size: 38px;
    }

    .portal-stat-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .portal-topbar {
        padding: 10px 0;
    }

    .portal-hero-section,
    .portal-subhero {
        padding-top: 34px;
    }

    .portal-hero-copy,
    .portal-glass-card,
    .portal-subhero-card,
    .portal-feature-card,
    .portal-product-card,
    .portal-contact-card,
    .portal-policy-card,
    .portal-surface-card {
        padding: 22px;
        border-radius: 22px;
    }

    .portal-hero-title,
    .portal-subhero-title,
    .portal-section-title {
        font-size: 30px;
    }

    .portal-topbar-wrap,
    .portal-checkbox-row,
    .portal-footer-bottom-wrap {
        align-items: flex-start;
    }
}
