/* AK Formation – strict visual contract (screenshot-driven) */

:root {
    /* Forvalys-like UI (light, flat, clean) */
    --bg: #f6f6fb;
    --surface: #ffffff;
    --text: #030f1c;
    --muted: #64748b;
    --border: #e2e8f0;
    /* Material / Google-like primary blue */
    --blue: #1a73e8;
    --orange: #1a73e8;
    --navy: #030f1c;
    --radius-lg: 0px;
    --radius-md: 0px;
    --shadow-sm: none;
    --shadow-md: none;
    --container: 1120px;
}

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Open Sans', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
    color: var(--text);
    background: #ffffff;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #ffffff;
    border-bottom: none;
}

.header-inner {
    min-height: 72px;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
}

.brand-logo {
    height: 38px;
    width: auto;
    max-width: 280px;
}

.site-footer .brand-logo {
    height: 34px;
    filter: none;
    opacity: 1;
}

.brand-text {
    display: grid;
    gap: 2px;
    line-height: 1.05;
}

.brand-name {
    font-weight: 900;
}

.brand-sub {
    font-size: 11px;
    font-weight: 600;
    color: rgba(20, 20, 20, 0.55);
    letter-spacing: 0.02em;
    text-transform: none;
}

.brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #ffffff 28%, #dbeafe 28%, #dbeafe 100%);
    border: 1px solid #cbd5e1;
    position: relative;
}

.brand-mark::after {
    content: 'AK';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 900;
    color: #0f172a;
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-weight: 400;
    color: var(--text);
    font-size: 14px;
    letter-spacing: normal;
    text-transform: uppercase;
}

.nav a {
    padding: 8px 12px;
    border-radius: 0;
}

.nav a:hover {
    color: var(--orange);
    background: transparent;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-header .btn {
    text-transform: uppercase;
    font-weight: 400;
    border-radius: 10px;
    padding: 8px 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, border-color 120ms ease;
    user-select: none;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--orange);
    color: #ffffff;
    border-color: transparent;
    box-shadow: none;
}

.btn-primary:hover {
    filter: brightness(0.98);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text);
    border-color: var(--border);
    box-shadow: none;
}

.btn-secondary:hover {
    background: #f8fafc;
}

.btn-ghost {
    background: #ffffff;
    border-color: var(--border);
    color: #0f172a;
}

.btn-ghost:hover {
    background: #f8fafc;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: #0f172a;
}

main {
    padding: 0 0 64px;
    background: var(--bg);
}

.panel {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.hero {
    position: relative;
    overflow: visible;
    padding: 78px 0 200px;
    background: #ffffff;
}

.hero .hero-decor {
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero .panel {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.hero-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-decor .hero-wires {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.85;
}

.hero-cross-link {
    position: absolute;
    left: 76.4%;
    top: 65.4%;
    width: 54px;
    height: 54px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    z-index: 3;
    pointer-events: auto;
    /* keep it visually subtle; the SVG badge provides the visuals */
    background: transparent;
}

.hero-cross-link:hover {
    background: rgba(26, 115, 232, 0.06);
}

.hero-cross-link:focus-visible {
    outline: 2px solid rgba(26, 115, 232, 0.45);
    outline-offset: 5px;
    background: rgba(26, 115, 232, 0.08);
}

.hero-wires path {
    fill: none;
    vector-effect: non-scaling-stroke;
}

.hero-wires .wire-shadow {
    stroke: rgba(3, 15, 28, 0.06);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-wires .wire-base {
    stroke: rgba(26, 115, 232, 0.14);
    stroke-width: 4.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-wires .wire-current {
    stroke: rgba(26, 115, 232, 0.55);
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 26 240;
    animation: wire-flow var(--wire-dur, 3.2s) linear infinite;
    opacity: 0.85;
}

.hero-wires .c1 {
    --wire-dur: 2.8s;
    animation-delay: -1.6s;
}

.hero-wires .c2 {
    --wire-dur: 3.6s;
    animation-delay: -0.8s;
    opacity: 0.7;
    /* Slightly “pulsed” dash pattern (feels more like current/ECG beats) */
    stroke-dasharray: 10 18 2 44 8 220;
}

.hero-wires .c3 {
    --wire-dur: 3.1s;
    animation-delay: -2.2s;
    opacity: 0.55;
}

.hero-wires .wire-node {
    fill: rgba(26, 115, 232, 0.16);
    stroke: rgba(26, 115, 232, 0.22);
    stroke-width: 1;
    filter: drop-shadow(0 12px 22px rgba(3, 15, 28, 0.08));
    animation: wire-node-pulse 2.6s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
}

.hero-wires .n2 {
    animation-delay: -1.1s;
}

.hero-wires .n3 {
    animation-delay: -1.9s;
}

.hero-wires .wire-med {
    transform-box: fill-box;
    transform-origin: center;
    filter: drop-shadow(0 14px 22px rgba(3, 15, 28, 0.08));
    animation: med-pop 3.8s ease-in-out infinite;
    opacity: 0.9;
}

.hero-wires .wire-med.m1 {
    animation-delay: -1.4s;
}

.hero-wires .med-halo {
    fill: rgba(26, 115, 232, 0.1);
}

.hero-wires .med-bg {
    fill: rgba(255, 255, 255, 0.82);
    stroke: rgba(26, 115, 232, 0.25);
    stroke-width: 1;
}

.hero-wires .med-cross {
    fill: none;
    stroke: rgba(26, 115, 232, 0.85);
    stroke-width: 3;
    stroke-linecap: round;
}

.hero-decor .blob {
    z-index: 1;
}

.hero-decor .hero-bubble {
    z-index: 2;
}

.hero-bubble {
    position: absolute;
    overflow: hidden;
    width: var(--bubble-w, 180px);
    height: var(--bubble-h, 180px);
    border-radius: var(--bubble-radius, 52% 48% 55% 45% / 52% 35% 65% 48%);
    background: var(--bubble-bg, rgba(26, 115, 232, 0.12));
    pointer-events: none;
    --bubble-tx: 0px;
    --bubble-ty: 0px;
    --bubble-rot0: 0deg;
    --bubble-rot1: 0deg;
    --bubble-s0: 1;
    --bubble-s1: 1.05;
    transform: translate3d(0, 0, 0) rotate(var(--bubble-rot0)) scale(var(--bubble-s0));
    animation: bubble-image-travel var(--bubble-dur, 18s) cubic-bezier(0.4, 0, 0.2, 1) var(--bubble-delay, 0s) infinite alternate;
    will-change: transform;
    filter: drop-shadow(0 14px 24px rgba(3, 15, 28, 0.1));
}

.hero-bubble::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 62%);
    opacity: 0.55;
    pointer-events: none;
}

.hero-bubble img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: var(--bubble-fit, cover);
    object-position: var(--bubble-pos, 50% 20%);
    transform: translateZ(0);
}

@keyframes wire-flow {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -266;
    }
}

@keyframes wire-node-pulse {
    0%,
    100% {
        opacity: 0.42;
        transform: scale(1);
    }
    50% {
        opacity: 0.92;
        transform: scale(1.12);
    }
}

@keyframes med-pop {
    0%,
    100% {
        opacity: 0.55;
        transform: scale(0.96);
    }
    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

.blob {
    position: absolute;
    border-radius: var(--blob-radius, 52% 48% 55% 45% / 52% 35% 65% 48%);
    filter: none;
    opacity: var(--blob-alpha, 1);
    --blob-tx: 0px;
    --blob-ty: 0px;
    --blob-rot0: 0deg;
    --blob-rot1: 0deg;
    --blob-s0: 1;
    --blob-s1: 1.06;
    transform: translate3d(0, 0, 0) rotate(var(--blob-rot0)) scale(var(--blob-s0));
    animation: bubble-travel var(--blob-dur, 16s) cubic-bezier(0.4, 0, 0.2, 1) var(--blob-delay, 0s) infinite alternate;
    will-change: transform;
}

.blob::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0) 58%);
    opacity: 0.55;
}

.blob.ring {
    background: transparent !important;
    border: 12px solid rgba(26, 115, 232, 0.18);
    --blob-radius: 999px;
    --blob-alpha: 1;
}

.blob.ring::after {
    display: none;
}

.blob.capsule {
    --blob-radius: 999px;
    background: rgba(26, 115, 232, 0.12);
}

.blob.blue {
    background: rgba(26, 115, 232, 0.18);
}

.blob.orange {
    background: var(--orange);
}

.blob.b1 {
    width: 72px;
    height: 72px;
    left: 140px;
    top: 170px;
    --blob-radius: 26% 74% 52% 48% / 44% 34% 66% 56%;
    --blob-tx: 72px;
    --blob-ty: 44px;
    --blob-rot0: 10deg;
    --blob-rot1: 18deg;
    --blob-s1: 1.08;
    --blob-dur: 12.5s;
    --blob-delay: -2.2s;
}

.blob.b2 {
    width: 120px;
    height: 120px;
    left: 210px;
    bottom: 20px;
    --blob-radius: 58% 42% 62% 38% / 46% 60% 40% 54%;
    --blob-tx: -84px;
    --blob-ty: -66px;
    --blob-rot0: -14deg;
    --blob-rot1: -6deg;
    --blob-s1: 1.09;
    --blob-dur: 18.5s;
    --blob-delay: -6.4s;
}

.blob.b3 {
    width: 40px;
    height: 40px;
    right: 170px;
    top: 190px;
    background: rgba(100, 116, 139, 0.55);
    --blob-radius: 999px;
    --blob-tx: -48px;
    --blob-ty: 76px;
    --blob-rot0: 0deg;
    --blob-rot1: 18deg;
    --blob-s1: 1.14;
    --blob-dur: 11.5s;
    --blob-delay: -4.3s;
}

/* Home hero – larger decor like Forvalys (overlaps next section) */
[data-page='home'] .hero .blob.b1 {
    width: 64px;
    height: 64px;
    left: 160px;
    top: 120px;
    --blob-tx: 86px;
    --blob-ty: 64px;
    --blob-dur: 13.5s;
}

[data-page='home'] .hero .blob.b2 {
    width: 240px;
    height: 240px;
    left: 420px;
    bottom: -300px;
    opacity: 0.72;
    --blob-tx: 90px;
    --blob-ty: -60px;
    --blob-rot0: -10deg;
    --blob-rot1: 8deg;
    --blob-s1: 1.04;
    --blob-dur: 22s;
}

[data-page='home'] .hero .blob.b3 {
    right: 210px;
    top: 120px;
    --blob-tx: -92px;
    --blob-ty: 98px;
    --blob-dur: 14.5s;
}

[data-page='home'] .hero + .container {
    position: relative;
    z-index: 2;
    padding-top: 34px;
}

[data-page='home'] .hero .blob.b4 {
    width: 140px;
    height: 140px;
    left: 90px;
    top: 250px;
    --blob-tx: 140px;
    --blob-ty: 40px;
    --blob-rot0: 0deg;
    --blob-rot1: 0deg;
    --blob-s1: 1.02;
    --blob-dur: 20s;
    --blob-delay: -7s;
}

[data-page='home'] .hero .blob.b5 {
    width: 240px;
    height: 84px;
    right: 120px;
    top: 320px;
    --blob-alpha: 0.9;
    --blob-tx: -120px;
    --blob-ty: 56px;
    --blob-rot0: 6deg;
    --blob-rot1: -4deg;
    --blob-s1: 1.06;
    --blob-dur: 17s;
    --blob-delay: -9s;
}

/* Home hero – image bubbles (Forvalys-like) */
[data-page='home'] .hero .hb-standing {
    left: -40px;
    top: 164px;
    --bubble-w: 240px;
    --bubble-h: 300px;
    --bubble-radius: 40% 60% 46% 54% / 56% 38% 62% 44%;
    --bubble-bg: rgba(26, 115, 232, 0.14);
    --bubble-pos: 50% 12%;
    --bubble-tx: 18px;
    --bubble-ty: -16px;
    --bubble-rot0: -6deg;
    --bubble-rot1: 6deg;
    --bubble-s1: 1.03;
    --bubble-dur: 21s;
    --bubble-delay: -9s;
}

[data-page='home'] .hero .hb-left {
    right: 26px;
    top: 238px;
    --bubble-w: 200px;
    --bubble-h: 220px;
    --bubble-radius: 36% 64% 58% 42% / 34% 68% 32% 66%;
    --bubble-bg: rgba(26, 115, 232, 0.18);
    --bubble-pos: 50% 12%;
    --bubble-tx: -18px;
    --bubble-ty: -16px;
    --bubble-rot0: -4deg;
    --bubble-rot1: 4deg;
    --bubble-s1: 1.04;
    --bubble-dur: 23s;
    --bubble-delay: -11s;
}

[data-page='home'] .hero .hb-cpr {
    right: 262px;
    bottom: 38px;
    --bubble-w: 170px;
    --bubble-h: 132px;
    --bubble-radius: 56% 44% 34% 66% / 48% 38% 62% 52%;
    --bubble-bg: rgba(26, 115, 232, 0.1);
    --bubble-pos: 62% 52%;
    --bubble-tx: -28px;
    --bubble-ty: -12px;
    --bubble-rot0: 3deg;
    --bubble-rot1: -6deg;
    --bubble-s1: 1.07;
    --bubble-dur: 19s;
    --bubble-delay: -6s;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    display: grid;
    gap: 16px;
    max-width: 760px;
    margin: 0 auto;
}

.hero h1 {
    margin: 0;
    font-size: 42px;
    line-height: 58.8px;
    letter-spacing: normal;
    font-weight: 700;
    color: var(--text);
}

.hero p {
    margin: 0 auto;
    max-width: 760px;
    color: rgba(3, 15, 28, 0.78);
    font-weight: 500;
    font-size: 16px;
}

.hero-actions {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.portraits {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.portrait {
    position: absolute;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    background: #ffffff;
    border: 6px solid #ffffff;
    box-shadow: none;
    display: grid;
    place-items: center;
    --portrait-scale: 1;
    transform: translateY(0) scale(var(--portrait-scale));
    animation: portrait-float 10s ease-in-out infinite;
    will-change: transform;
}

.portrait .mini {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: #f1f5f9;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.portrait .mini::after {
    display: none;
}

.portrait.p1 {
    left: 60px;
    top: 230px;
}

.portrait.p2 {
    right: 90px;
    top: 150px;
    animation-duration: 11.5s;
    animation-delay: -3s;
}

.portrait.p3 {
    right: 70px;
    top: 310px;
    --portrait-scale: 0.92;
    animation-duration: 12.5s;
    animation-delay: -5s;
}

[data-page='home'] .portrait.p1 .mini {
    background-image: url('../img/worker-left.png');
    background-position: 50% 10%;
}

[data-page='home'] .portrait.p2 .mini {
    background-image: url('../img/worker-right.png');
    background-position: 50% 10%;
}

[data-page='home'] .portrait.p3 .mini {
    background-image: url('../img/cpr.jpg');
    background-position: 60% 40%;
}

.reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 520ms ease, transform 520ms ease;
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}

@keyframes bubble-travel {
    0% {
        transform: translate3d(0, 0, 0) rotate(var(--blob-rot0)) scale(var(--blob-s0));
    }
    100% {
        transform: translate3d(var(--blob-tx), var(--blob-ty), 0) rotate(var(--blob-rot1)) scale(var(--blob-s1));
    }
}

@keyframes bubble-image-travel {
    0% {
        transform: translate3d(0, 0, 0) rotate(var(--bubble-rot0)) scale(var(--bubble-s0));
    }
    100% {
        transform: translate3d(var(--bubble-tx), var(--bubble-ty), 0) rotate(var(--bubble-rot1)) scale(var(--bubble-s1));
    }
}

@keyframes portrait-float {
    0%,
    100% {
        transform: translateY(0) scale(var(--portrait-scale));
    }
    50% {
        transform: translateY(-10px) scale(var(--portrait-scale));
    }
}

.section {
    margin-top: 22px;
}

.section-title {
    margin: 0 0 14px;
    font-size: 18px;
    letter-spacing: -0.01em;
}

.logo-grid {
    background: #ffffff;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 22px 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.logo {
    background: transparent;
    border: none;
    border-radius: 0;
    height: auto;
    padding: 0;
    display: grid;
    place-items: center;
}

.logo img {
    max-height: 46px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none;
    opacity: 1;
}

.split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18px;
}

.lead {
    padding: 0;
}

.lead h2 {
    margin: 0 0 8px;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.lead p {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
    background: #e8f0fe;
    border: none;
    border-radius: 0;
}

.category-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    color: var(--text);
    transition: background 140ms ease, transform 160ms ease;
}

.category-card:hover {
    background: rgba(255, 255, 255, 0.92);
    transform: translateY(-1px);
}

.category-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.icon-sq {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(3, 15, 28, 0.06);
}

.icon-sq svg {
    width: 16px;
    height: 16px;
}

.icon-sq.blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.icon-sq.orange {
    background: #e8f0fe;
    color: #1a73e8;
}

.icon-sq.green {
    background: #dcfce7;
    color: #15803d;
}

.icon-sq.purple {
    background: #f3e8ff;
    color: #7e22ce;
}

.icon-sq.red {
    background: #fee2e2;
    color: #b91c1c;
}

.category-title {
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
}

.arrow {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: #ffffff;
    display: grid;
    place-items: center;
    color: #64748b;
    flex: 0 0 auto;
    transition: transform 160ms ease;
}

.category-card:hover .arrow {
    transform: translateX(2px);
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 26px 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.stat {
    text-align: center;
    padding: 8px 12px;
    border-radius: 0;
    border-right: 1px solid rgba(3, 15, 28, 0.08);
}

.stat:last-child {
    border-right: none;
}

.stat strong {
    display: block;
    font-size: 30px;
    letter-spacing: -0.03em;
    color: var(--blue);
}

.stat span {
    display: block;
    color: rgba(3, 15, 28, 0.62);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 6px;
    font-size: 10px;
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 0;
}

.testimonial {
    background: #556476;
    color: #ffffff;
    border-radius: 0;
    padding: 18px 18px 16px;
    min-height: 168px;
    display: grid;
    gap: 10px;
    position: relative;
    box-shadow: none;
}

.testimonial::before {
    content: '“';
    position: absolute;
    top: 10px;
    left: 12px;
    font-size: 40px;
    line-height: 1;
    opacity: 0.45;
    font-weight: 900;
    color: rgba(26, 115, 232, 0.9);
}

.testimonial:nth-child(2) {
    background: var(--blue);
    color: #ffffff;
}

.testimonial:nth-child(2)::before {
    color: rgba(255, 255, 255, 0.6);
}

.testimonial p {
    margin: 0;
    opacity: 0.92;
    font-weight: 500;
}

.testimonial .who {
    font-weight: 700;
    opacity: 0.96;
    letter-spacing: -0.01em;
}

.site-footer {
    margin-top: 26px;
    background: #ffffff;
    color: var(--text);
    border-top: none;
}

.site-footer .brand-sub {
    color: rgba(3, 15, 28, 0.62);
}

.footer-inner {
    padding: 28px 0;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 18px;
    align-items: start;
}

.footer-brand {
    display: grid;
    gap: 10px;
}

.footer-brand p {
    margin: 0;
    color: rgba(3, 15, 28, 0.62);
    font-weight: 500;
}

.footer-badges {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.footer-badge {
    height: 54px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    display: block;
}

.footer-col h3 {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--text);
    letter-spacing: -0.01em;
}

.footer-links {
    display: grid;
    gap: 8px;
    font-weight: 600;
    color: rgba(3, 15, 28, 0.68);
}

.footer-links a:hover {
    color: var(--orange);
}

.footer-bottom {
    border-top: 1px solid rgba(3, 15, 28, 0.08);
    padding: 14px 0;
    color: rgba(3, 15, 28, 0.58);
    font-weight: 600;
    font-size: 12px;
}

.footer-bottom .container {
    display: grid;
    gap: 6px;
}

.footer-legal {
    color: rgba(3, 15, 28, 0.58);
    font-weight: 600;
    line-height: 1.35;
}

.page-hero {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    padding: 58px 0 28px;
}

.page-hero .hero-decor {
    z-index: 0;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero .panel {
    padding: 0;
}

.panel-hero {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    position: relative;
    overflow: visible;
    color: var(--text);
}

.panel-hero::after {
    display: none;
}

.page-hero h1 {
    margin: 0;
    text-align: center;
    font-size: 40px;
    letter-spacing: normal;
    font-weight: 700;
    color: var(--text);
}

.panel-hero h1 {
    color: var(--text);
}

.search-row {
    display: grid;
    place-items: center;
    margin-top: 16px;
    gap: 12px;
}

.search {
    width: min(720px, 100%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(20, 20, 20, 0.08);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.search input::placeholder {
    color: #94a3b8;
    font-weight: 600;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.chip {
    border: 1px solid var(--border);
    background: #ffffff;
    color: #334155;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
}

.chip[data-active='true'] {
    border-color: rgba(26, 115, 232, 0.35);
    background: rgba(26, 115, 232, 0.14);
    color: #141414;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 18px;
}

.formation-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 16px;
    display: grid;
    gap: 10px;
    min-height: 180px;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease;
}

.formation-card:hover {
    border-color: rgba(3, 15, 28, 0.18);
    background: rgba(255, 255, 255, 0.92);
}

.formation-card:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}

.formation-card h3 {
    margin: 0;
    font-size: 15px;
    letter-spacing: -0.01em;
}

.formation-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-weight: 700;
    font-size: 12px;
}

.formation-desc {
    margin: 0;
    color: #475569;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.formation-card .btn {
    width: fit-content;
    padding: 10px 14px;
}

.formation-hero {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    border: none;
    background: #ffffff;
    color: var(--text);
    padding: 26px 0 10px;
    box-shadow: none;
}

.formation-hero::after {
    display: none;
}

.formation-hero--sst {
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.92) 55%, rgba(255, 255, 255, 0.24) 100%), url('../img/cpr.jpg');
    background-size: cover;
    background-position: right center;
}

.formation-hero .title-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.formation-hero h1 {
    margin: 0;
    font-size: 28px;
    letter-spacing: normal;
    font-weight: 700;
}

.formation-hero .hero-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--orange);
    color: #ffffff;
    border: none;
}

.formation-hero .hero-icon svg {
    width: 24px;
    height: 24px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18px;
    margin-top: 18px;
}

.content-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 18px;
}

.content-card h2 {
    margin: 0 0 10px;
    font-size: 16px;
    letter-spacing: -0.02em;
}

.content-card p,
.content-card li {
    color: #334155;
    font-weight: 550;
}

.content-card ul {
    margin: 10px 0 0;
    padding-left: 18px;
}

.sidebar {
    display: grid;
    gap: 14px;
}

.sidebar-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 16px;
}

.sidebar-card h3 {
    margin: 0 0 10px;
    font-size: 14px;
    letter-spacing: -0.01em;
}

.kv {
    display: grid;
    gap: 8px;
    color: #334155;
    font-weight: 700;
    font-size: 13px;
}

.kv div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.kv span {
    color: var(--muted);
    font-weight: 700;
}

.mini-calendar {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px;
    background: #f8fafc;
}

.mini-calendar .month {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 900;
    font-size: 12px;
    color: #0f172a;
}

.mini-calendar .grid {
    padding: 0;
    margin-top: 8px;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.day {
    height: 26px;
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: #ffffff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 11px;
    color: #475569;
}

.day.active {
    border-color: rgba(26, 115, 232, 0.55);
    background: #e8f0fe;
    color: #174ea6;
}

.about-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 18px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.avatar {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 12px 10px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.avatar .pic {
    width: 74px;
    height: 74px;
    border-radius: 999px;
    border: 6px solid #ffffff;
    box-shadow: var(--shadow-sm);
    background: radial-gradient(circle at 30% 30%, #f1f5f9 0%, #cbd5e1 100%);
    position: relative;
    overflow: hidden;
}

.avatar .pic::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(26, 115, 232, 0.22), rgba(26, 115, 232, 0)),
        radial-gradient(circle at 20% 80%, rgba(26, 115, 232, 0.14), rgba(26, 115, 232, 0));
}

.avatar strong {
    font-size: 12px;
    letter-spacing: -0.01em;
}

.avatar span {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    margin-top: -6px;
}

.callout {
    display: flex;
    gap: 14px;
    padding: 14px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(37, 99, 235, 0.2);
    background: #eff6ff;
}

.callout h3 {
    margin: 0 0 6px;
    font-size: 14px;
}

.callout p {
    margin: 0;
    color: #334155;
    font-weight: 600;
}

.callout .icon-sq {
    flex: 0 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.contact-item .icon-sq {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    flex: 0 0 auto;
}

.contact-item .icon-sq svg {
    width: 15px;
    height: 15px;
}

.contact-item strong {
    display: block;
    font-size: 13px;
    letter-spacing: -0.01em;
}

.contact-item span {
    display: block;
    color: var(--muted);
    font-weight: 700;
    margin-top: 6px;
    font-size: 13px;
}

.floating-action {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: var(--orange);
    color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: none;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.floating-action svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 980px) {
    .split {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 64px 0 46px;
    }

    .hero-content {
        text-align: center;
        max-width: none;
    }

    .hero-actions {
        justify-content: center;
    }

    [data-page='home'] .hb-standing {
        display: none;
    }

    [data-page='home'] .hb-right {
        right: 46px;
        top: 84px;
        --bubble-w: 128px;
        --bubble-h: 128px;
    }

    [data-page='home'] .hb-left {
        right: 18px;
        top: 228px;
        --bubble-w: 178px;
        --bubble-h: 198px;
    }

    [data-page='home'] .hero .blob.b4,
    [data-page='home'] .hero .blob.b5 {
        display: none;
    }

    [data-page='home'] .hero-wires {
        opacity: 0.45;
    }

    .logo-grid {
        gap: 22px;
        padding: 16px 14px;
    }

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

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

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

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .about-layout {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 560px) {
    .header-inner {
        height: auto;
        padding: 14px 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 56px 0 40px;
    }

    .hero h1 {
        font-size: 34px;
        line-height: 1.25;
    }

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

    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .brand-logo {
        height: 34px;
        max-width: 240px;
    }

    .portrait {
        display: none;
    }

    [data-page='home'] .hero-bubble {
        display: none;
    }

    [data-page='home'] .hero-wires {
        display: none;
    }

    [data-page='home'] .hero-cross-link {
        display: none;
    }
}
