:root {
  --ink: #071827;
  --muted: #587083;
  --line: #d7e3ea;
  --panel: #ffffff;
  --soft: #eef6f8;
  --soft-green: #e8f6ef;
  --soft-amber: #fff3d7;
  --accent: #00a7c8;
  --accent-dark: #0b5b87;
  --teal: #1c8f8a;
  --green: #23966f;
  --amber: #bf7b12;
  --red: #bd3f42;
  --navy: #081f3b;
  --shadow: 0 18px 60px rgba(7, 24, 39, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f8fbfc;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(215, 227, 234, 0.8);
  backdrop-filter: blur(18px);
}

.brand img {
  width: 160px;
  height: 48px;
  object-fit: contain;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: #fff;
  background: var(--accent-dark);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.brand-text {
  color: var(--ink);
  font-weight: 950;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 2vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.main-nav a {
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--accent-dark);
  border-color: var(--accent);
}

.header-actions,
.hero-actions,
.order-actions,
.source-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--panel);
}

.lang-btn {
  border: 0;
  padding: 7px 10px;
  color: var(--muted);
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.lang-btn.is-active {
  color: #fff;
  background: var(--accent-dark);
}

.icon-btn,
.close-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent-dark);
  background: #fff;
  cursor: pointer;
}

.icon-btn svg,
.close-btn svg,
.btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  padding: 130px clamp(18px, 6vw, 78px) 40px;
  overflow: hidden;
  color: #fff;
  background-color: #071827;
  background-image: url('images/main_s2c.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (min-width: 640px) {
  .hero { background-image: url('images/main_s2b.png'); }
}
@media (min-width: 1100px) {
  .hero { background-image: url('images/main_s2a.png'); }
}
@media (min-width: 1500px) {
  .hero { background-image: url('images/main_s2.png'); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 18, 35, 0.35), rgba(5, 18, 35, 0.78));
  pointer-events: none;
}

.hero-content {
  position: relative;
  width: min(760px, 100%);
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #69d7ef;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.75rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.18rem;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 22px 0 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.55;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 850;
  line-height: 1.15;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(7, 24, 39, 0.16);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.btn.secondary {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.88);
}

.btn.full {
  width: 100%;
}

.hero-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(900px, 100%);
  margin-top: 56px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(15px);
}

.hero-panel div {
  padding: 18px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-panel div:last-child {
  border-right: 0;
}

.hero-panel span,
.hero-panel strong {
  display: block;
}

.hero-panel span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  font-weight: 750;
}

.hero-panel strong {
  margin-top: 6px;
  font-size: 1.05rem;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: var(--line);
}

.signal-strip article {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 88px;
  padding: 18px;
  background: #fff;
  color: var(--accent-dark);
  font-weight: 850;
  text-align: center;
}

.signal-strip svg {
  width: 22px;
  height: 22px;
  color: var(--teal);
}

.section {
  padding: clamp(64px, 9vw, 116px) clamp(18px, 5vw, 72px);
}

.split-section,
.training-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

.section-text p:not(.eyebrow),
.section-heading p {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.72;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.metric-row div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.metric-row strong,
.metric-row span {
  display: block;
}

.metric-row strong {
  color: var(--accent-dark);
  font-size: 1.9rem;
}

.metric-row span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.evidence-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.evidence-board article,
.evidence-board .board-card {
  min-height: 190px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.evidence-board article:nth-child(2),
.evidence-board article:nth-child(3),
.evidence-board .board-card:nth-child(2),
.evidence-board .board-card:nth-child(3) {
  background: #eef8fa;
}

.evidence-board .board-card {
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.evidence-board .board-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 22px 60px rgba(7, 24, 39, 0.2);
}

.evidence-board .board-card em {
  margin-top: auto;
  align-self: start;
  color: var(--accent-dark);
  font-style: normal;
  font-weight: 850;
  font-size: 0.9rem;
}

.evidence-board svg {
  width: 32px;
  height: 32px;
  color: var(--accent-dark);
}

.evidence-board strong {
  font-size: 1.15rem;
}

.evidence-board span {
  color: var(--muted);
  line-height: 1.45;
}

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

/* ── Threat / urgency band ───────────────────────────────────────────────── */

.threat-section {
  background: linear-gradient(135deg, #1a0a0c 0%, #3a1216 55%, #081f3b 100%);
  color: #fff;
}

.threat-section h2 {
  color: #fff;
}

.threat-section .eyebrow {
  color: #ff8a80;
}

.threat-section .section-heading p {
  color: rgba(255, 255, 255, 0.82);
}

.threat-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.threat-band article {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 3px solid #ff5b50;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.threat-band svg {
  width: 26px;
  height: 26px;
  color: #ff8a80;
}

.threat-band strong {
  font-size: 1.95rem;
  line-height: 1.1;
  color: #fff;
}

.threat-band span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.5;
}

.threat-actions {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Partners / technical support ────────────────────────────────────────── */

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

.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.partner-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.partner-card svg {
  width: 30px;
  height: 30px;
  color: var(--teal);
}

.partner-card .tag {
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.partner-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.partner-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

/* ── Sectors (essential / important) ─────────────────────────────────────── */

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

.sector-col {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.sector-col.is-essential {
  border-top: 4px solid var(--accent-dark);
}

.sector-col.is-important {
  border-top: 4px solid var(--teal);
}

.sector-col h3 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.sector-note {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.sector-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.sector-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--soft);
  font-weight: 750;
  font-size: 0.92rem;
}

.sector-list svg {
  width: 16px;
  height: 16px;
  color: var(--accent-dark);
  flex: none;
}

/* ── Checklist (risk / suppliers) ────────────────────────────────────────── */

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 750;
}

.checklist svg {
  width: 19px;
  height: 19px;
  color: var(--green);
  flex: none;
}

/* ── Info tables ─────────────────────────────────────────────────────────── */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  background: #fff;
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.5;
}

.info-table thead th {
  background: var(--soft);
  color: var(--ink);
  font-weight: 850;
  white-space: nowrap;
}

.info-table tbody tr:last-child td {
  border-bottom: 0;
}

.info-table tbody tr:hover {
  background: #f4fafb;
}

.info-table td:first-child {
  font-weight: 800;
  color: var(--ink);
}

/* ── Disclosure (collapsible tables / FAQ) ───────────────────────────────── */

.disclosure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}

.disclosure > summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 850;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.disclosure > summary::-webkit-details-marker {
  display: none;
}

.disclosure > summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent-dark);
  font-weight: 700;
}

.disclosure[open] > summary::after {
  content: "\2013";
}

.disclosure > summary:hover {
  color: var(--accent-dark);
}

.disclosure-body {
  padding: 4px 22px 22px;
}

.disclosure-body p {
  margin: 0 0 4px;
  color: var(--muted);
  line-height: 1.7;
}

.disclosure-body.table-wrap {
  padding-bottom: 16px;
}

.disclosure-body a {
  color: var(--accent-dark);
  font-weight: 750;
  text-decoration: underline;
}

/* ── Roadmap block ───────────────────────────────────────────────────────── */

.roadmap-wrap {
  margin-top: 34px;
  max-width: 640px;
}

.roadmap-title {
  margin: 0 0 14px;
  font-size: 1.2rem;
}

/* ── Legal / policy pages ────────────────────────────────────────────────── */

.policy-section {
  background: #fff;
}

.policy-doc {
  max-width: 860px;
  margin: 0 auto;
}

.policy-doc h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin: 0 0 8px;
}

.policy-doc .policy-meta {
  margin: 0 0 28px;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.9rem;
}

.policy-doc h2 {
  margin: 32px 0 10px;
  font-size: 1.3rem;
}

.policy-doc h3 {
  margin: 20px 0 6px;
  font-size: 1.05rem;
}

.policy-doc p {
  margin: 0 0 12px;
  color: var(--ink);
  line-height: 1.7;
}

.policy-doc ul {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--ink);
  line-height: 1.7;
}

.policy-doc li {
  margin-bottom: 4px;
}

.policy-doc .table-wrap {
  margin: 14px 0 18px;
}

.policy-doc a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: underline;
}

.sectors-section,
.measures-section,
.tech-stack-section,
.process-section {
  background: #fff;
}

.assessments-section {
  background: linear-gradient(180deg, #eef6f8 0%, #ffffff 100%);
}

.assessment-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) minmax(300px, 380px);
  gap: 18px;
  align-items: start;
}

.assessment-tabs,
.assessment-form,
.result-card,
.order-builder,
.portal-shell,
.admin-shell,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 38px rgba(7, 24, 39, 0.08);
}

.assessment-tabs {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.assessment-tab {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-weight: 800;
}

.assessment-tab.is-active {
  color: var(--ink);
  border-color: #bfe5ee;
  background: #eaf8fb;
}

.assessment-tab svg {
  width: 20px;
  height: 20px;
  color: var(--accent-dark);
}

.assessment-form {
  padding: 20px;
}

.assessment-form h3 {
  margin-bottom: 6px;
}

.assessment-form > p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.question-block {
  display: grid;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.question-block legend {
  padding: 0;
  font-weight: 850;
}

.question-block small {
  color: var(--muted);
  line-height: 1.5;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(80px, 1fr));
  gap: 8px;
}

.choice-row label {
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 9px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #fbfdfe;
  text-align: center;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
}

.choice-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-row label:has(input:checked) {
  color: #fff;
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.form-empty,
.result-empty {
  display: grid;
  place-items: center;
  min-height: 320px;
  color: var(--muted);
  text-align: center;
}

.form-empty svg,
.result-empty svg {
  width: 48px;
  height: 48px;
  color: #94aebc;
}

.result-card {
  position: sticky;
  top: 86px;
  padding: 18px;
}

.score-ring {
  --score: 0%;
  display: grid;
  place-items: center;
  width: 154px;
  height: 154px;
  margin: 8px auto 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 58%, transparent 59%),
    conic-gradient(var(--green) var(--score), #e6eef2 0);
}

.score-ring strong,
.score-ring span {
  display: block;
  text-align: center;
}

.score-ring strong {
  font-size: 2.1rem;
  color: var(--ink);
}

.score-ring span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.risk-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent-dark);
  font-weight: 850;
}

.risk-pill.low {
  background: var(--green);
}

.risk-pill.medium {
  background: var(--amber);
}

.risk-pill.high {
  background: var(--red);
}

.result-card canvas {
  width: 100%;
  height: 180px;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfe;
}

.recommendations {
  display: grid;
  gap: 9px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.recommendations li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.recommendations li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.result-actions {
  display: grid;
  gap: 8px;
}

.services-section {
  background: #fff;
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
  gap: 20px;
  align-items: start;
}

.service-accordion {
  display: grid;
  gap: 12px;
}

.service-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(7, 24, 39, 0.06);
}

.service-panel summary {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 18px;
  cursor: pointer;
  list-style: none;
  font-weight: 900;
}

.service-panel summary::-webkit-details-marker {
  display: none;
}

.service-panel summary svg {
  color: var(--accent-dark);
}

.service-panel summary .chevron {
  transition: transform 0.18s ease;
}

.service-panel[open] summary .chevron {
  transform: rotate(180deg);
}

.service-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 18px 18px;
}

.service-item {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfe;
}

.service-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.service-item .item-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.service-item .price {
  color: var(--accent-dark);
  font-weight: 900;
  white-space: nowrap;
}

.service-item label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.service-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-dark);
}

/* ── Calculator tabs (per service type) ──────────────────────────────────── */

.calc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.calc-tab {
  flex: 1;
  min-width: 190px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font-weight: 850;
  font-size: 0.98rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.calc-tab:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.calc-tab.is-active {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.flat-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ── Documents builder (grouped dropdowns) ───────────────────────────────── */

.doc-builder {
  display: grid;
  gap: 14px;
  padding: 4px 18px 18px;
}

.doc-builder-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.doc-group {
  display: grid;
  gap: 5px;
}

.doc-fullset-btn {
  width: 100%;
  justify-content: center;
}

.doc-fullset-note {
  margin: 0;
  padding: 14px 16px;
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--accent-dark);
  font-weight: 700;
  line-height: 1.5;
}

.doc-builder select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
}

.order-builder {
  position: sticky;
  top: 86px;
  padding: 20px;
}

.order-builder h3 {
  margin-bottom: 16px;
}

.order-selected {
  min-height: 100px;
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.estimate-box {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid #bfe5ee;
  border-radius: var(--radius);
  background: #eaf8fb;
}

.estimate-box strong {
  color: var(--accent-dark);
  font-size: 1.65rem;
}

.estimate-box span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.order-context-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px 14px;
  margin-bottom: 6px;
}

.order-context-grid > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.order-context-grid .field-label {
  margin: 0 0 6px;
  min-height: 32px;
  display: flex;
  align-items: flex-end;
  line-height: 1.2;
}

.order-context-grid select,
.order-context-grid input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 0.92rem;
  color: var(--ink);
  text-overflow: ellipsis;
}

.order-builder select,
.order-builder input,
.order-builder textarea {
  max-width: 100%;
}

.order-builder select option {
  white-space: normal;
}

@media (max-width: 520px) {
  .order-context-grid {
    grid-template-columns: 1fr;
  }
  .order-context-grid .field-label {
    min-height: 0;
  }
}

.empty-note {
  color: var(--muted);
  margin: 0;
}

.order-chip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 750;
}

.order-chip button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #dcecf2;
  color: var(--accent-dark);
  cursor: pointer;
}

.field-label {
  display: block;
  margin: 14px 0 7px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
}

textarea {
  resize: vertical;
}

.order-actions {
  align-items: stretch;
  margin-top: 16px;
}

.order-actions .btn {
  flex: 1 1 0;
}

.incident-section {
  background: linear-gradient(135deg, #071827, #0a344f 52%, #123d3c);
  color: #fff;
}

.incident-section .section-heading p,
.incident-section .eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.incident-section .eyebrow {
  color: #82e2ef;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.timeline-item {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 230px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.timeline-item strong {
  color: #84e9f6;
  font-size: 1.4rem;
}

.timeline-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  font-size: 0.95rem;
}

.timeline-item span {
  color: #fff;
  font-weight: 900;
}

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

.training-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 30px rgba(7, 24, 39, 0.08);
}

.training-card:nth-child(2) {
  background: var(--soft-green);
}

.training-card:nth-child(3) {
  background: var(--soft-amber);
}

.training-card svg {
  width: 28px;
  height: 28px;
  color: var(--accent-dark);
}

.training-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.training-card strong {
  color: var(--accent-dark);
}

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

.admin-section {
  background: #fff;
}

.portal-shell,
.admin-shell {
  padding: 22px;
}

.portal-locked {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--green);
  background: var(--soft-green);
  font-weight: 900;
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.profile-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.profile-card.full-row {
  grid-column: 1 / -1;
}

.profile-card h3 {
  margin-bottom: 12px;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--accent-dark);
  background: #eef6f8;
  font-size: 0.86rem;
  text-transform: uppercase;
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.admin-kpis article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfe;
}

.admin-kpis strong,
.admin-kpis span {
  display: block;
}

.admin-kpis strong {
  color: var(--accent-dark);
  font-size: 1.5rem;
}

.admin-kpis span {
  color: var(--muted);
  font-weight: 750;
}

.profile-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.profile-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfe;
}

.profile-list span {
  color: var(--muted);
  font-size: 0.88rem;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent-dark);
  background: #fff;
  cursor: pointer;
  line-height: 1;
}

.mini-btn svg,
.mini-btn i {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  stroke-width: 2;
}

.mini-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.mini-btn.danger {
  color: var(--red);
}

.mini-btn.danger:hover {
  border-color: var(--red);
  background: #fff5f5;
  color: var(--red);
}

.order-row-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.profile-list li.order-row.is-cancelled,
.profile-list li.order-row.is-final {
  background: #f0f3f5;
  color: var(--muted);
  border-color: #e1e7eb;
}

.profile-list li.order-row.is-cancelled strong,
.profile-list li.order-row.is-final strong {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(88, 112, 131, 0.55);
}

.order-status {
  display: inline-block;
  padding: 1px 8px;
  margin-left: 4px;
  border-radius: 999px;
  background: #e6eef4;
  color: var(--accent-dark);
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.order-status-new { background: #dff7ea; color: #07432f; }
.order-status-reviewing,
.order-status-quoted { background: #fff3d7; color: #7a4a05; }
.order-status-accepted,
.order-status-in_progress { background: #d8ecf6; color: #0b5b87; }
.order-status-completed { background: #e6eaee; color: #3b4a59; }
.order-status-cancelled { background: #e6e6e6; color: #6e6e6e; text-decoration: none; }

.contact-section {
  padding-top: 44px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(238, 246, 248, 0.86));
}

.site-footer {
  padding: clamp(40px, 5vw, 64px) clamp(18px, 5vw, 72px) 26px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col h4 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 650;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: #93e6f4;
}

.footer-about p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
}

.footer-about a {
  color: #93e6f4;
  font-weight: 750;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  color: #fff;
  font-weight: 900;
  font-size: 1.12rem;
}

.footer-brand .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(0, 167, 200, 0.18);
}

.footer-brand .brand-mark svg {
  width: 18px;
  height: 18px;
  color: #93e6f4;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1180px;
  margin: 30px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.source-links a {
  color: #93e6f4;
  font-weight: 750;
}

.auth-dialog {
  width: min(520px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-dialog::backdrop {
  background: rgba(7, 24, 39, 0.6);
  backdrop-filter: blur(4px);
}

.auth-card {
  position: relative;
  padding: 24px;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 24px 42px 16px 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfe;
}

.auth-tab {
  border: 0;
  border-radius: var(--radius);
  padding: 10px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.auth-tab.is-active {
  color: #fff;
  background: var(--accent-dark);
}

.register-only.is-hidden,
.is-hidden {
  display: none !important;
}

.otp-box {
  display: grid;
  gap: 6px;
  margin: 18px 0;
  padding: 16px;
  border: 1px dashed #8fcbd8;
  border-radius: var(--radius);
  background: #eefafd;
}

.otp-box span {
  color: var(--muted);
  font-weight: 850;
}

.otp-box strong {
  color: var(--accent-dark);
  font-size: 2rem;
}

.auth-message {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--red);
  font-weight: 800;
}

.auth-hint {
  margin: -2px 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.auth-secondary {
  margin: 12px 0 0;
  text-align: center;
}

.link-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 2px 4px;
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
}

.link-btn:hover {
  color: var(--accent);
}

.mfa-choice {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.mfa-choice label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
}

.mfa-choice input {
  width: auto;
  margin: 0;
}

@media (max-width: 1120px) {
  .assessment-layout,
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .assessment-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .result-card,
  .order-builder {
    position: static;
  }

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

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 14px;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 8px;
    font-size: 0.88rem;
  }

  .main-nav a {
    flex: 0 0 auto;
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
    padding-bottom: 24px;
  }

  .hero-panel,
  .signal-strip,
  .split-section,
  .training-section,
  .profile-grid,
  .portal-locked,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .signal-strip {
    padding: 0;
  }

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

  .service-items,
  .training-grid,
  .assessment-tabs,
  .admin-kpis,
  .order-context-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 560px) {
  .hero-actions,
  .form-actions,
  .order-actions,
  .portal-actions,
  .source-links {
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero-panel div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .hero-panel div:last-child {
    border-bottom: 0;
  }

  .metric-row,
  .timeline {
    grid-template-columns: 1fr;
  }

  .brand img {
    width: 132px;
  }

  .brand-text {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  h1 {
    font-size: clamp(2.25rem, 13vw, 3.4rem);
  }

  h2 {
    font-size: clamp(1.7rem, 9vw, 2.4rem);
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
    gap: 6px;
  }
}

/* ── Active nav ──────────────────────────────────────────────────────────── */

.main-nav a.nav-active {
  color: var(--accent-dark);
  border-color: var(--accent);
}

/* ── Auth dialog – TOTP flow ─────────────────────────────────────────────── */

.auth-step-copy {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.qr-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 216px;
  margin: 4px 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 8px;
}

.qr-container img,
.qr-container canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

.qr-loading {
  color: var(--muted);
  font-size: 1.4rem;
  font-weight: 800;
}

/* ── Strategic partners ─────────────────────────────────────────────────── */

.trusted-section .section-heading {
  text-align: center;
}

.trusted-grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 4vw, 48px);
  justify-content: center;
  align-items: center;
  margin: 28px auto 18px;
  max-width: 900px;
}

.trusted-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(140px, 22vw, 220px);
  aspect-ratio: 1 / 1;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(7, 24, 39, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.trusted-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(7, 24, 39, 0.12);
}

.trusted-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(0.15);
  opacity: 0.95;
}

@media (max-width: 540px) {
  .trusted-grid { gap: 16px; }
  .trusted-logo { width: 44vw; }
}

/* ── Three pillars ──────────────────────────────────────────────────────── */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.pillar-card {
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(7, 24, 39, 0.07);
}

.pillar-card i {
  width: 38px;
  height: 38px;
  color: var(--accent-dark);
}

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

.pillar-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Size thresholds & AI threats note ──────────────────────────────────── */

.size-thresholds {
  margin-top: 36px;
}

.size-thresholds h3 {
  margin: 0 0 14px;
  font-size: 1.18rem;
}

.size-note {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  background: var(--soft);
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.55;
}

.ai-threats {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--amber);
  background: var(--soft-amber);
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ── SPOC registration grid ─────────────────────────────────────────────── */

.spoc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.spoc-card {
  display: grid;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(7, 24, 39, 0.06);
}

.spoc-card i {
  width: 30px;
  height: 30px;
  color: var(--accent-dark);
}

.spoc-card h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.3;
}

.spoc-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.spoc-card-update {
  border-color: var(--accent);
  background: var(--soft);
}

.spoc-card-update i {
  color: var(--accent);
}

/* ── Sanctions matrix ───────────────────────────────────────────────────── */

.sanctions-section .subhead {
  margin: 26px 0 12px;
  font-size: 1.1rem;
  color: var(--accent-dark);
}

.sanctions-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px 16px;
}

.sanctions-table tbody td:last-child {
  font-weight: 750;
  color: var(--ink);
}

.sanctions-personal td {
  background: #fff4ee;
}

.sanctions-personal td:last-child {
  color: var(--red);
}

/* ── Mandatory management training callout ──────────────────────────────── */

.mgmttrain-section {
  padding-top: 22px;
}

.mgmttrain-card {
  position: relative;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: 14px;
  background:
    linear-gradient(135deg, #fff 0%, #fff5f5 100%);
  box-shadow: 0 14px 38px rgba(7, 24, 39, 0.08);
}

.mgmttrain-badge {
  background: #ffe2e0;
  color: #7c1d20;
  margin-bottom: 14px;
}

.mgmttrain-card h2 {
  margin: 0 0 12px;
  max-width: 760px;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.2;
}

.mgmttrain-card > p {
  max-width: 820px;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.mgmttrain-list {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.qr-fallback {
  padding: 12px;
  text-align: center;
}

/* ── Admin expandable rows ───────────────────────────────────────────────── */

.admin-table .user-row {
  cursor: default;
}

.admin-table .user-row:hover {
  background: #f5fafc;
}

.admin-table .user-detail-row {
  background: #f0f7fa;
}

.admin-table .user-detail-row td {
  padding: 0;
  border-bottom: 2px solid var(--accent);
}

.user-detail-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 18px;
}

.user-detail-section h4 {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.user-detail-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 8px;
  font-size: 0.88rem;
}

.detail-item-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.detail-item-header strong {
  font-weight: 850;
}

.detail-item-header span {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.detail-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.detail-item-price {
  color: var(--accent-dark);
  font-weight: 900;
  font-size: 1rem;
  margin-bottom: 6px;
}

.detail-item-services {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 6px;
}

.service-chip {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 750;
}

.detail-item-notes {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.detail-empty {
  padding: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.btn-expand {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--accent-dark);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
  white-space: nowrap;
}

.btn-expand:hover {
  background: var(--soft);
}

.mfa-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  background: #eaf8fb;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 900;
}

.role-admin {
  background: #e8f0fe;
  color: #1a56db;
}

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

/* ── Incident matrix ─────────────────────────────────────────────────────── */

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.matrix-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.matrix-card-escalation {
  background: #fdeceb;
  border-color: rgba(189, 63, 66, 0.35);
}

.matrix-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--soft);
  color: var(--accent-dark);
}

.matrix-card-escalation .matrix-icon {
  background: #f7d9d8;
  color: var(--red);
}

.matrix-icon svg {
  width: 20px;
  height: 20px;
}

.matrix-card h3 {
  color: var(--ink);
}

.matrix-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.matrix-deadline {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.matrix-card-escalation .matrix-deadline {
  background: #f7d9d8;
  color: var(--red);
}

.matrix-recipient {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 750;
}

.matrix-recipient svg {
  width: 16px;
  height: 16px;
}

/* ── Training extras ─────────────────────────────────────────────────────── */

.training-deliverables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}

.deliverable-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 750;
}

.deliverable-item svg {
  width: 20px;
  height: 20px;
  color: var(--teal);
  flex: 0 0 auto;
}

.training-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.training-step {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.training-step h3 {
  margin: 8px 0 6px;
}

.training-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.step-number {
  font-size: 2rem;
  font-weight: 950;
  color: var(--accent);
  line-height: 1;
}

/* ── Page header spacing ─────────────────────────────────────────────────── */

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

.section-heading h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.profile-header-card {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.profile-header-card h3 {
  flex: 1;
}

/* ── Responsive additions ────────────────────────────────────────────────── */

@media (max-width: 1120px) {
  .matrix-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .training-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .threat-band,
  .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .user-detail-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .matrix-grid,
  .training-deliverables {
    grid-template-columns: 1fr;
  }
  .training-steps {
    grid-template-columns: 1fr;
  }
  .sector-grid,
  .checklist {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .threat-band,
  .partner-grid {
    grid-template-columns: 1fr;
  }
  .sector-list {
    grid-template-columns: 1fr;
  }
}
