:root {
    --color-ink: #17202a;
    --color-muted: #53606f;
    --color-soft: #f5f7fa;
    --color-surface: #ffffff;
    --color-border: #d8e0e8;
    --color-accent: #0f5f6f;
    --color-accent-strong: #0a4652;
    --color-gold: #8a621f;
    --color-focus: #1d4ed8;
    --shadow-soft: 0 18px 45px rgba(23, 32, 42, .08);
    --radius: 8px;
    --space-xs: .5rem;
    --space-sm: .875rem;
    --space-md: 1.25rem;
    --space-lg: 2rem;
    --space-xl: 3.5rem;
    --space-xxl: 5rem;
    --width: 1180px;
    --width-narrow: 800px;
    --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: ui-serif, Georgia, Cambria, "Times New Roman", serif;
}

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

html {
    width: 100%;
    max-width: 100%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    color: var(--color-ink);
    background: var(--color-surface);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
}

body.menu-open {
    overflow: hidden;
}

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

picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-accent);
    text-decoration-thickness: .08em;
    text-underline-offset: .18em;
}

a,
button,
input,
select,
textarea,
label,
p,
li,
h1,
h2,
h3 {
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
}

input,
select,
textarea,
button {
    max-width: 100%;
    font: inherit;
}

main *,
section *,
.site-header *,
.site-footer * {
    min-width: 0;
}

a:hover {
    color: var(--color-accent-strong);
}

:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 4px;
}

::selection {
    color: #fff;
    background: var(--color-accent);
}

.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;
    top: 1rem;
    left: 1rem;
    z-index: 100;
    transform: translateY(-150%);
    padding: .75rem 1rem;
    border-radius: var(--radius);
    color: #fff;
    background: var(--color-ink);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(216, 224, 232, .8);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(16px);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--width);
    min-height: 76px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    gap: var(--space-lg);
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    gap: .75rem;
    color: var(--color-ink);
    text-decoration: none;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: var(--radius);
    color: #fff;
    background: var(--color-accent);
    font-weight: 800;
    letter-spacing: 0;
}

.brand-name {
    font-weight: 750;
    overflow-wrap: normal;
    white-space: nowrap;
}

.nav-panel {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: var(--space-md);
}

.nav-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .25rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-list a,
.language-button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .5rem .75rem;
    border-radius: var(--radius);
    color: var(--color-ink);
    text-decoration: none;
    font-weight: 650;
}

.nav-list a[aria-current="page"],
.nav-list a:hover,
.language-button:hover {
    background: var(--color-soft);
}

.language-button {
    gap: .5rem;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    cursor: pointer;
}

.language-button span:first-child {
    font-weight: 800;
    color: var(--color-accent);
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    cursor: pointer;
}

.nav-toggle span:first-child,
.nav-toggle span:first-child::before,
.nav-toggle span:first-child::after {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    background: var(--color-ink);
    content: "";
}

.nav-toggle span:first-child {
    position: relative;
}

.nav-toggle span:first-child::before,
.nav-toggle span:first-child::after {
    position: absolute;
    left: 0;
}

.nav-toggle span:first-child::before {
    top: -7px;
}

.nav-toggle span:first-child::after {
    top: 7px;
}

.section,
.hero,
.page-hero,
.cta-band {
    padding: var(--space-xxl) var(--space-lg);
}

.section-inner {
    width: 100%;
    max-width: var(--width);
    margin: 0 auto;
}

.section-inner.narrow {
    max-width: var(--width-narrow);
}

.hero {
    padding-top: 6rem;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.hero-grid,
.split-grid,
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: var(--space-xl);
    align-items: center;
}

.hero h1,
.page-hero h1 {
    max-width: 880px;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.7rem, 6vw, 5.4rem);
    line-height: .98;
    letter-spacing: 0;
}

.page-hero {
    background: var(--color-soft);
}

.page-hero h1 {
    font-size: clamp(2.35rem, 5vw, 4.5rem);
}

.hero-copy,
.page-hero p,
.section-heading p,
.narrow > p {
    max-width: 760px;
    color: var(--color-muted);
    font-size: 1.16rem;
}

.eyebrow {
    margin: 0 0 .75rem;
    color: var(--color-gold);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: var(--space-lg);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    min-height: 48px;
    padding: .8rem 1rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 750;
}

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

.button-primary:hover {
    color: #fff;
    background: var(--color-accent-strong);
}

.button-secondary {
    color: var(--color-ink);
    border-color: var(--color-border);
    background: #fff;
}

.hero-panel,
.contact-panel,
.service-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.hero-panel {
    padding: var(--space-lg);
}

.hero-panel p {
    margin-top: 0;
    font-weight: 800;
}

.hero-panel ul,
.check-list,
.contact-list,
.site-footer ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.hero-panel li,
.check-list li {
    padding: .75rem 0;
    border-top: 1px solid var(--color-border);
}

.hero-panel li:first-child,
.check-list li:first-child {
    border-top: 0;
}

.trust-band {
    padding: var(--space-lg);
    border-block: 1px solid var(--color-border);
    background: #fff;
}

.trust-band ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.trust-band li {
    padding: .45rem .7rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-muted);
    font-size: .9rem;
}

.section-muted {
    background: var(--color-soft);
}

.section-heading {
    max-width: 820px;
    margin-bottom: var(--space-lg);
}

.section-heading.compact {
    margin-bottom: var(--space-md);
}

h2, h3 {
    line-height: 1.18;
    letter-spacing: 0;
}

h2 {
    margin: 0 0 .75rem;
    font-size: clamp(1.85rem, 3vw, 3rem);
}

h3 {
    margin: 0 0 .5rem;
    font-size: 1.18rem;
}

.card-grid,
.principle-grid,
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    gap: var(--space-md);
}

.card-grid.two {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
}

.card-grid.three {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.service-card,
.principle,
.detail-block,
.standard-item,
.process-step {
    padding: var(--space-lg);
}

.service-card a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    color: var(--color-ink);
}

.service-card p,
.principle p,
.detail-block p,
.standard-item p,
.process-step p {
    margin-bottom: 0;
    color: var(--color-muted);
}

.principle,
.detail-block,
.standard-item,
.process-step {
    border-top: 2px solid var(--color-accent);
    background: #fff;
}

.service-group + .service-group {
    margin-top: var(--space-xl);
}

.standards-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
    gap: var(--space-md);
}

.process-list {
    display: grid;
    gap: var(--space-md);
}

.process-step {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: var(--space-md);
    border: 1px solid var(--color-border);
    border-top: 2px solid var(--color-accent);
    border-radius: var(--radius);
}

.process-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #fff;
    background: var(--color-accent);
    font-weight: 800;
}

.breadcrumbs {
    width: 100%;
    max-width: var(--width);
    margin: var(--space-md) auto 0;
    padding: 0 var(--space-lg);
    font-size: .92rem;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.breadcrumbs a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
}

.breadcrumbs li + li::before {
    margin-right: .4rem;
    color: var(--color-muted);
    content: "/";
}

.cta-band {
    color: #fff;
    background: var(--color-accent-strong);
}

.cta-band p {
    max-width: 760px;
    color: rgba(255,255,255,.82);
}

.cta-band .eyebrow {
    color: #f1c77a;
}

.cta-band .button-primary {
    color: var(--color-accent-strong);
    background: #fff;
}

.contact-grid {
    align-items: start;
}

.contact-panel {
    padding: var(--space-lg);
}

.portrait-panel picture {
    display: block;
    width: 100%;
    max-width: 340px;
    margin-bottom: var(--space-lg);
}

.portrait-panel img {
    display: block;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.contact-list li {
    display: grid;
    gap: .2rem;
    padding: .8rem 0;
    border-top: 1px solid var(--color-border);
}

.contact-list li:first-child {
    border-top: 0;
}

.text-link {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin-top: var(--space-lg);
    font-weight: 800;
}

.site-footer {
    padding: var(--space-xl) var(--space-lg) var(--space-lg);
    border-top: 1px solid var(--color-border);
    background: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
    gap: var(--space-md);
    width: 100%;
    max-width: var(--width);
    margin: 0 auto;
}

.footer-grid > div:first-child {
    grid-column: span 2;
}

.footer-brand {
    margin-top: 0;
    font-weight: 800;
}

.site-footer h2 {
    font-family: var(--font-body);
    font-size: 1rem;
}

.site-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    color: var(--color-muted);
}

.footer-meta {
    max-width: var(--width);
    margin: var(--space-lg) auto 0;
    color: var(--color-muted);
    font-size: .92rem;
}

@media (max-width: 980px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-panel {
        position: absolute;
        top: 100%;
        left: var(--space-md);
        right: var(--space-md);
        max-width: calc(100% - (2 * var(--space-md)));
        max-height: calc(100dvh - 92px);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        display: none;
        align-items: stretch;
        flex-direction: column;
        padding: var(--space-md);
        border: 1px solid var(--color-border);
        border-radius: var(--radius);
        background: #fff;
        box-shadow: var(--shadow-soft);
    }

    .nav-panel.is-open {
        display: flex;
    }

    .nav-list {
        align-items: stretch;
        flex-wrap: nowrap;
        flex-direction: column;
        gap: .35rem;
    }

    .nav-list a,
    .language-button {
        justify-content: flex-start;
        width: 100%;
        min-height: 48px;
    }

    .hero-grid,
    .split-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .card-grid,
    .card-grid.two,
    .card-grid.three,
    .principle-grid,
    .detail-grid,
    .standards-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .site-nav,
    .section,
    .hero,
    .page-hero,
    .cta-band {
        padding-inline: var(--space-md);
    }

    .site-footer,
    .trust-band {
        padding-inline: var(--space-md);
    }

    .brand-name {
        display: none;
    }

    .hero {
        padding-top: var(--space-xl);
    }

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

    .service-card,
    .principle,
    .detail-block,
    .standard-item,
    .process-step,
    .hero-panel,
    .contact-panel {
        padding: var(--space-md);
    }

    .footer-grid > div:first-child {
        grid-column: span 1;
    }
}

@media (max-width: 360px) {
    .site-nav,
    .section,
    .hero,
    .page-hero,
    .cta-band,
    .site-footer,
    .trust-band,
    .breadcrumbs {
        padding-inline: var(--space-sm);
    }

    .hero h1,
    .page-hero h1 {
        font-size: 2.2rem;
        line-height: 1.04;
    }

    h2 {
        font-size: 1.65rem;
    }

    .button-row,
    .button {
        width: 100%;
    }
}

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

.client-shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 4rem; }
.client-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.client-nav a { padding: .65rem .8rem; border: 1px solid #d7dde8; border-radius: .4rem; background: #fff; color: #152238; font-weight: 700; text-decoration: none; }
.client-nav a:focus, .client-nav a:hover { border-color: #2457c5; color: #2457c5; }
.client-heading { margin-bottom: 1.5rem; }
.client-heading h1 { font-size: clamp(2rem, 6vw, 3.7rem); line-height: 1.05; }
.client-kpi-grid, .client-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.client-kpi-grid article, .client-card { padding: 1.1rem; border: 1px solid #d7dde8; border-radius: .55rem; background: #fff; box-shadow: 0 8px 28px rgba(15, 23, 42, .06); }
.client-kpi-grid span { display: block; color: #5b6472; font-weight: 700; }
.client-kpi-grid strong { display: block; font-size: 2rem; color: #152238; }
.client-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.client-list li { padding-bottom: .75rem; border-bottom: 1px solid #e6e9ef; }
.client-list li:last-child { border-bottom: 0; }
.client-list span { display: block; color: #5b6472; }
.client-form { display: grid; gap: .75rem; max-width: 760px; }
.client-form input, .client-form select, .client-form textarea { width: 100%; min-height: 44px; padding: .55rem .7rem; border: 1px solid #aab4c2; border-radius: .35rem; }
.primary-action, .secondary-action { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .5rem .8rem; border-radius: .35rem; font-weight: 800; text-decoration: none; }
.primary-action { border: 0; background: #2457c5; color: white; }
.secondary-action { border: 1px solid #2457c5; color: #2457c5; background: white; }
.client-alert { padding: .8rem 1rem; margin-bottom: 1rem; border-radius: .4rem; background: #eef4ff; border: 1px solid #bfd3ff; }
.client-alert-warning { background: #fff7e6; border-color: #f5c46b; }
.client-alert-success { background: #ecfdf3; border-color: #96e3b9; }
.client-alert-danger { background: #fff1f2; border-color: #fda4af; }
.table-wrap { overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; }
.table-wrap th, .table-wrap td { padding: .75rem; border-bottom: 1px solid #e6e9ef; text-align: left; vertical-align: top; }
.admin-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1rem 0; }
.admin-fieldset { display: grid; gap: .75rem; padding: 1rem; border: 1px solid #d7dde8; border-radius: .45rem; }
.admin-fieldset legend { padding: 0 .35rem; font-weight: 800; color: #152238; }
.admin-definition-list { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1rem; margin: 0; }
.admin-definition-list dt { color: #5b6472; font-weight: 800; }
.admin-definition-list dd { margin: 0; }
@media (max-width: 820px) { .client-kpi-grid, .client-grid { grid-template-columns: 1fr; } .client-nav { display: grid; grid-template-columns: 1fr 1fr; } .admin-definition-list { grid-template-columns: 1fr; } }

.auth-shell { width: min(640px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(2rem, 8vw, 5rem) 0; }
.auth-card { padding: clamp(1rem, 4vw, 2rem); border: 1px solid #d7dde8; border-radius: .55rem; background: #fff; box-shadow: 0 8px 28px rgba(15, 23, 42, .06); }
.totp-setup { margin: 1rem 0; }
.totp-setup img { display: block; width: min(260px, 100%); height: auto; border: 1px solid #d7dde8; border-radius: .4rem; background: #fff; }
.totp-setup figcaption,
.small-note { color: #5b6472; font-size: .95rem; line-height: 1.6; }
.secret-box { display: grid; gap: .35rem; max-width: 100%; padding: .8rem; border: 1px solid #d7dde8; border-radius: .4rem; background: #f8fafc; }
.secret-box code,
.recovery-codes code,
.small-note code { overflow-wrap: anywhere; font-size: .95rem; }
.recovery-codes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .5rem 1rem; padding-left: 1.25rem; }
.recovery-card { border-color: #f5c46b; background: #fffaf0; }

.auth-intro,
.auth-helper {
    color: #5b6472;
    line-height: 1.6;
}

.auth-helper {
    margin-top: 1rem;
    text-align: center;
}

.password-field {
    position: relative;
    display: block;
    width: 100%;
}

.password-field input {
    width: 100%;
    padding-right: 3.25rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: .35rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    border-radius: .35rem;
    color: #3c4658;
    background: transparent;
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus {
    color: #2457c5;
    background: #eef4ff;
}

.password-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
