/* Portal CMS TVET MARA — shared corporate design foundation */
:root {
    --navy-950: #091229;
    --navy-900: #101a3c;
    --navy-800: #182759;
    --navy-700: #253778;
    --blue-600: #2367c7;
    --blue-100: #e8f1ff;
    --red-600: #d9292f;
    --red-700: #b91f27;
    --ink-900: #172036;
    --ink-700: #46516a;
    --ink-500: #6c768d;
    --line: #dfe4ee;
    --surface: #ffffff;
    --surface-soft: #f5f7fb;
    --surface-blue: #edf3ff;
    --shadow-sm: 0 4px 18px rgba(16, 26, 60, 0.08);
    --shadow-md: 0 18px 48px rgba(16, 26, 60, 0.13);
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --container: 1180px;
    --font-sans: Inter, Aptos, "Segoe UI", Arial, sans-serif;
    --font-display: Poppins, Aptos, "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 108px;
}

body {
    margin: 0;
    color: var(--ink-900);
    background: var(--surface);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
p,
dl,
dd {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

section[id],
header[id] {
    scroll-margin-top: 104px;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 10px;
    left: 10px;
    transform: translateY(-150%);
    padding: 10px 16px;
    color: #fff;
    background: var(--navy-950);
    border-radius: 8px;
    font-weight: 700;
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid #f9bd2b;
    outline-offset: 3px;
}

.utility-bar {
    color: rgba(255, 255, 255, 0.76);
    background: var(--navy-950);
    font-size: 0.78rem;
}

.utility-inner {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.utility-inner p {
    margin: 0;
}

.utility-inner a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.utility-inner a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(223, 228, 238, 0.9);
    backdrop-filter: blur(14px);
    transition: box-shadow 180ms ease;
}

.site-header.is-scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-wrap {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    color: var(--navy-900);
    text-decoration: none;
}

.brand img {
    width: auto;
    height: 43px;
    object-fit: contain;
}

.brand-divider {
    width: 1px;
    height: 34px;
    background: var(--line);
}

.brand-copy {
    display: grid;
    line-height: 1.18;
}

.brand-copy strong {
    font-family: var(--font-display);
    font-size: 0.98rem;
}

.brand-copy small {
    color: var(--ink-500);
    font-size: 0.7rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 7px;
}

.main-nav > a:not(.button) {
    position: relative;
    padding: 10px 12px;
    color: var(--ink-700);
    text-decoration: none;
    font-size: 0.91rem;
    font-weight: 700;
}

.main-nav > a:not(.button)::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: 5px;
    left: 12px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--red-600);
    transition: transform 180ms ease;
}

.main-nav > a:not(.button):hover,
.main-nav > a:not(.button)[aria-current="page"] {
    color: var(--navy-900);
}

.main-nav > a:not(.button):hover::after,
.main-nav > a:not(.button)[aria-current="page"]::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.nav-toggle span:not(.sr-only) {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    background: var(--navy-900);
    transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(4) {
    transform: translateY(-6px) rotate(-45deg);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 11px 19px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 800;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #fff;
    background: var(--red-600);
}

.button-primary:hover {
    background: var(--red-700);
}

.button-light {
    color: var(--navy-900);
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.button-light:hover {
    color: #fff;
    background: var(--red-600);
}

.button-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.button-ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    color: #fff;
    background: var(--navy-950);
    isolation: isolate;
}

.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -80px;
    bottom: -180px;
    width: 470px;
    height: 470px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    box-shadow: 0 0 0 65px rgba(255, 255, 255, 0.025), 0 0 0 130px rgba(255, 255, 255, 0.02);
}

.hero-image,
.hero-overlay {
    position: absolute;
    z-index: -3;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(8, 18, 42, 0.98) 0%, rgba(10, 24, 55, 0.92) 40%, rgba(10, 24, 55, 0.34) 70%, rgba(10, 24, 55, 0.12) 100%),
        linear-gradient(0deg, rgba(8, 18, 42, 0.42), transparent 38%);
}

.hero-inner {
    display: flex;
    align-items: center;
    min-height: 620px;
    padding-block: 82px 70px;
}

.hero-copy {
    width: min(650px, 62%);
}

.eyebrow,
.section-kicker {
    margin-bottom: 18px;
    color: var(--blue-600);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.eyebrow span {
    width: 24px;
    height: 2px;
    background: var(--red-600);
}

.hero h1 {
    max-width: 650px;
    margin-bottom: 22px;
    font-size: clamp(2.85rem, 5.2vw, 4.9rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.01;
}

.hero h1 em {
    color: #ff8186;
    font-style: normal;
}

.hero-lead {
    max-width: 620px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1rem, 1.7vw, 1.15rem);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-stats {
    display: flex;
    gap: 0;
    margin: 46px 0 0;
}

.hero-stats > div {
    flex: 1 1 0;
    min-width: 130px;
    padding: 0 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stats > div:first-child {
    padding-left: 0;
    border-left: 0;
}

.hero-stats dt {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero-stats dd {
    margin: 3px 0 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.76rem;
}

.section {
    padding-block: 100px;
}

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

.section-heading-split {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    align-items: end;
    gap: 70px;
}

.section-kicker {
    margin-bottom: 13px;
}

.section-heading h2,
.about-intro h2,
.contact-card h2 {
    margin-bottom: 0;
    color: var(--navy-900);
    font-size: clamp(2rem, 3.6vw, 3.35rem);
    font-weight: 800;
}

.section-heading > p {
    margin-bottom: 4px;
    color: var(--ink-500);
    font-size: 0.98rem;
}

.systems-section {
    background:
        radial-gradient(circle at 100% 0%, rgba(35, 103, 199, 0.08), transparent 30%),
        var(--surface-soft);
}

.system-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 15px;
    padding: 13px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.search-box {
    position: relative;
    flex: 1 1 360px;
    max-width: 420px;
}

.search-box input {
    width: 100%;
    height: 48px;
    padding: 10px 16px 10px 46px;
    color: var(--ink-900);
    background: var(--surface-soft);
    border: 1px solid transparent;
    border-radius: 10px;
    outline: 0;
}

.search-box input:focus {
    background: #fff;
    border-color: var(--blue-600);
    box-shadow: 0 0 0 3px rgba(35, 103, 199, 0.13);
}

.search-box input::placeholder {
    color: #7b8497;
}

.search-icon {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 18px;
    width: 16px;
    height: 16px;
    transform: translateY(-57%);
    border: 2px solid var(--ink-500);
    border-radius: 50%;
    pointer-events: none;
}

.search-icon::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 7px;
    height: 2px;
    transform: rotate(45deg);
    background: var(--ink-500);
    border-radius: 2px;
}

.filter-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.filter-button {
    min-height: 40px;
    padding: 8px 13px;
    color: var(--ink-700);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 0.78rem;
    font-weight: 800;
}

.filter-button:hover {
    color: var(--navy-900);
    background: var(--surface-soft);
}

.filter-button.is-active {
    color: #fff;
    background: var(--navy-900);
}

.results-note {
    margin-bottom: 20px;
    color: var(--ink-500);
    font-size: 0.78rem;
    font-weight: 700;
}

.system-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.system-card {
    position: relative;
    min-width: 0;
    min-height: 340px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 27px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.system-card::after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -70px;
    width: 135px;
    height: 135px;
    background: var(--surface-blue);
    border-radius: 50%;
    transition: transform 220ms ease;
}

.system-card:hover {
    z-index: 1;
    transform: translateY(-5px);
    border-color: rgba(35, 103, 199, 0.28);
    box-shadow: var(--shadow-md);
}

.system-card:hover::after {
    transform: scale(1.2);
}

.system-card[hidden] {
    display: none;
}

.system-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}

.system-icon {
    width: 62px;
    height: 62px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(24, 39, 89, 0.17);
}

.system-icon img {
    width: 100%;
    height: 100%;
}

.system-number {
    color: #c6ccda;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 800;
}

.system-tagline {
    margin-bottom: 5px;
    color: var(--blue-600);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.system-card h3 {
    margin-bottom: 11px;
    color: var(--navy-900);
    font-size: 1.4rem;
    font-weight: 800;
}

.system-description {
    margin-bottom: 24px;
    color: var(--ink-500);
    font-size: 0.91rem;
    line-height: 1.62;
}

.system-link {
    position: relative;
    z-index: 2;
    align-self: flex-start;
    margin-top: auto;
    color: var(--navy-900);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 900;
}

.system-link span {
    display: inline-block;
    margin-left: 6px;
    color: var(--red-600);
    transition: transform 180ms ease;
}

.system-link:hover {
    color: var(--red-600);
}

.system-link:hover span {
    transform: translate(2px, -2px);
}

.system-link-disabled {
    color: var(--ink-500);
    cursor: not-allowed;
}

.empty-state {
    padding: 58px 24px;
    text-align: center;
    background: #fff;
    border: 1px dashed #bec6d7;
    border-radius: var(--radius-md);
}

.empty-state > span {
    display: block;
    margin-bottom: 10px;
    color: var(--blue-600);
    font-size: 2.5rem;
}

.empty-state h3 {
    margin-bottom: 7px;
    color: var(--navy-900);
}

.empty-state p {
    margin: 0;
    color: var(--ink-500);
}

.about-section {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--navy-900);
}

.about-section::before {
    content: "";
    position: absolute;
    top: -320px;
    right: -220px;
    width: 700px;
    height: 700px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    box-shadow: 0 0 0 85px rgba(255, 255, 255, 0.022), 0 0 0 170px rgba(255, 255, 255, 0.016);
}

.about-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 90px;
}

.section-kicker-light {
    color: #ff858a;
}

.about-intro h2 {
    margin-bottom: 24px;
    color: #fff;
}

.about-intro > p:not(.section-kicker) {
    color: rgba(255, 255, 255, 0.67);
}

.ecosystem-preview {
    margin: 30px 0 25px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 15px;
}

.ecosystem-preview > p {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ecosystem-preview > p span {
    width: 7px;
    height: 7px;
    background: #ff858a;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(255, 133, 138, 0.12);
}

.ecosystem-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ecosystem-list > span:not(.ecosystem-more) {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 4px 10px 4px 4px;
    color: rgba(255, 255, 255, 0.84);
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    font-size: 0.7rem;
    font-weight: 800;
}

.ecosystem-list img {
    width: 30px;
    height: 30px;
    border-radius: 7px;
}

.ecosystem-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #ff9ca0;
    border: 1px dashed rgba(255, 133, 138, 0.58);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 900;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 800;
}

.text-link span {
    color: #ff858a;
}

.text-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--radius-md);
}

.principles-grid article {
    min-height: 265px;
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: rgba(255, 255, 255, 0.055);
}

.principle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    margin-bottom: 22px;
    color: #ff858a;
    border: 1px solid rgba(255, 133, 138, 0.45);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 900;
}

.principles-grid h3 {
    margin-bottom: 8px;
    font-size: 1.07rem;
}

.principles-grid p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.84rem;
}

.principle-preview {
    min-height: 48px;
    margin-top: auto;
    padding-top: 21px;
}

.system-stack {
    display: flex;
    align-items: center;
}

.system-stack img {
    width: 39px;
    height: 39px;
    margin-right: -8px;
    border: 3px solid #3b496b;
    border-radius: 11px;
    box-shadow: 0 5px 14px rgba(5, 12, 30, 0.3);
}

.system-stack span {
    margin-left: 18px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.69rem;
    font-weight: 800;
}

.search-preview {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

.mini-search-icon {
    position: relative;
    width: 13px;
    height: 13px;
    border: 1.5px solid #ff858a;
    border-radius: 50%;
}

.mini-search-icon::after {
    content: "";
    position: absolute;
    right: -4px;
    bottom: -2px;
    width: 5px;
    height: 1.5px;
    transform: rotate(45deg);
    background: #ff858a;
}

.search-preview strong {
    overflow: hidden;
    color: #fff;
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-preview small {
    padding: 3px 7px;
    color: #9ec3ff;
    background: rgba(35, 103, 199, 0.2);
    border-radius: 20px;
    font-size: 0.58rem;
    font-weight: 800;
}

.device-preview {
    display: flex;
    align-items: flex-end;
    gap: 7px;
}

.device-preview > span {
    display: inline-flex;
    padding: 3px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.04);
}

.device-preview i {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(35, 103, 199, 0.7), rgba(217, 41, 47, 0.45));
}

.device-desktop {
    position: relative;
    width: 52px;
    height: 34px;
    border-radius: 4px;
}

.device-desktop::before,
.device-desktop::after {
    content: "";
    position: absolute;
    bottom: -7px;
    left: 50%;
    background: rgba(255, 255, 255, 0.5);
}

.device-desktop::before {
    width: 2px;
    height: 6px;
}

.device-desktop::after {
    width: 18px;
    height: 1.5px;
    transform: translateX(-8px);
}

.device-tablet {
    width: 25px;
    height: 36px;
    border-radius: 4px;
}

.device-phone {
    width: 17px;
    height: 30px;
    border-radius: 4px;
}

.device-preview small {
    align-self: center;
    margin-left: auto;
    color: rgba(255, 255, 255, 0.54);
    font-size: 0.6rem;
    font-weight: 700;
}

.palette-preview {
    display: flex;
    align-items: center;
}

.palette-preview span {
    width: 26px;
    height: 26px;
    margin-right: -5px;
    background: var(--swatch);
    border: 2px solid rgba(255, 255, 255, 0.34);
    border-radius: 50%;
    box-shadow: 0 3px 9px rgba(5, 12, 30, 0.22);
}

.palette-preview strong {
    margin-left: 17px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
}

.contact-section {
    padding-block: 78px;
    background: var(--surface-blue);
}

.contact-card {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 70px;
    padding: 48px 56px;
    background: #fff;
    border: 1px solid rgba(35, 103, 199, 0.15);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.contact-card h2 {
    margin-bottom: 13px;
    font-size: clamp(1.8rem, 3vw, 2.65rem);
}

.contact-card > div:first-child > p:last-child {
    margin: 0;
    color: var(--ink-500);
}

.contact-details {
    display: grid;
    gap: 12px;
}

.contact-details a,
.contact-details address {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 16px;
    margin: 0;
    padding: 17px 20px;
    color: var(--ink-900);
    background: var(--surface-soft);
    border-radius: 12px;
    text-decoration: none;
    font-style: normal;
}

.contact-details a:hover {
    background: var(--surface-blue);
}

.contact-details span {
    color: var(--ink-500);
    font-size: 0.76rem;
    font-weight: 800;
}

.contact-details strong {
    font-size: 0.87rem;
    line-height: 1.55;
}

.site-footer {
    color: rgba(255, 255, 255, 0.65);
    background: var(--navy-950);
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding-block: 58px 48px;
}

.footer-logo-wrap {
    display: inline-flex;
    padding: 10px 15px;
    background: #fff;
    border-radius: 10px;
}

.footer-logo-wrap img {
    width: auto;
    height: 38px;
}

.footer-brand p {
    margin: 18px 0 0;
    font-size: 0.86rem;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 50px;
}

.footer-nav > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-nav h2 {
    margin-bottom: 8px;
    color: #fff;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    font-size: 0.84rem;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 70px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.76rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: #fff;
    text-decoration: none;
    font-weight: 800;
}

@media (max-width: 1020px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        z-index: 99;
        top: 100%;
        right: 0;
        bottom: auto;
        width: min(88vw, 380px);
        height: calc(100vh - 78px);
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
        padding: 24px;
        transform: translateX(105%);
        background: #fff;
        border-top: 1px solid var(--line);
        box-shadow: -18px 30px 40px rgba(16, 26, 60, 0.18);
        visibility: hidden;
        transition: transform 200ms ease, visibility 200ms ease;
    }

    .main-nav.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    .main-nav > a:not(.button) {
        padding: 13px 12px;
        border-bottom: 1px solid var(--line);
    }

    .main-nav > a:not(.button)::after {
        display: none;
    }

    .nav-cta {
        margin-top: 14px;
    }

    .system-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .search-box {
        flex-basis: auto;
        max-width: none;
    }

    .filter-list {
        justify-content: flex-start;
    }

    .system-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-intro {
        max-width: 680px;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .utility-inner {
        min-height: 31px;
        justify-content: center;
    }

    .utility-inner p {
        display: none;
    }

    .nav-wrap {
        min-height: 70px;
    }

    .brand img {
        height: 36px;
    }

    .brand-divider,
    .brand-copy small {
        display: none;
    }

    .brand-copy strong {
        font-size: 0.88rem;
    }

    .main-nav {
        height: calc(100vh - 70px);
    }

    .hero,
    .hero-inner {
        min-height: 650px;
    }

    .hero-image {
        object-position: 63% center;
    }

    .hero-overlay {
        background: linear-gradient(90deg, rgba(8, 18, 42, 0.97) 0%, rgba(8, 18, 42, 0.88) 68%, rgba(8, 18, 42, 0.48) 100%);
    }

    .hero-inner {
        align-items: flex-end;
        padding-block: 70px 46px;
    }

    .hero-copy {
        width: 100%;
    }

    .hero h1 {
        font-size: clamp(2.7rem, 14vw, 4rem);
    }

    .hero-lead {
        max-width: 92%;
        font-size: 0.98rem;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        max-width: 310px;
    }

    .hero-stats {
        margin-top: 38px;
    }

    .hero-stats > div {
        min-width: 0;
        padding-inline: 13px;
    }

    .hero-stats dt {
        font-size: 1.28rem;
    }

    .hero-stats dd {
        font-size: 0.66rem;
        line-height: 1.35;
    }

    .section {
        padding-block: 72px;
    }

    .section-heading-split {
        grid-template-columns: 1fr;
        gap: 19px;
    }

    .section-heading h2,
    .about-intro h2 {
        font-size: clamp(2rem, 10vw, 2.7rem);
    }

    .filter-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .filter-button {
        flex: 0 0 auto;
    }

    .system-grid {
        grid-template-columns: 1fr;
    }

    .system-card {
        min-height: 320px;
    }

    .principles-grid {
        grid-template-columns: 1fr;
    }

    .principles-grid article {
        min-height: auto;
    }

    .contact-section {
        padding-block: 54px;
    }

    .contact-card {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 34px 24px;
        border-radius: var(--radius-md);
    }

    .contact-details a,
    .contact-details address {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding-block: 17px;
    }
}

@media (max-width: 390px) {
    .brand-divider,
    .brand-copy {
        display: none;
    }

    .hero h1 {
        font-size: 2.65rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}