/* ============================================================
   MiPRO — design system
   Industrial/technical theme: navy + safety amber, grounded in
   the occupational-safety training subject matter.
   No framework dependency (no Bootstrap) — plain CSS, BEM-ish
   class names, custom properties for tokens.
   ============================================================ */

:root {
  /* Color tokens */
  --ink: #0F1B2D;
  --ink-soft: #16263C;
  --steel: #24405E;
  --amber: #F5B301;
  --amber-dark: #C98E00;
  --paper: #F6F3EC;
  --paper-dim: #EDE9DE;
  --white: #FFFFFF;
  --slate: #57616F;
  --slate-light: #8891A0;
  --line: rgba(15, 27, 45, 0.1);
  --line-light: rgba(255, 255, 255, 0.14);

  /* Type */
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* Spacing / shape */
  --radius: 4px;
  --container: 1180px;
  --section-pad: 100px;
}

@media (max-width: 767px) {
  :root {
    --section-pad: 60px;
  }
}

/* ---------- Reset / base ---------- */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  max-width: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--paper);
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: 0.01em;
}
p {
  margin: 0 0 16px;
  line-height: 1.7;
}
button {
  font-family: inherit;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--amber-dark);
}
.eyebrow.on-dark {
  color: var(--amber);
}
.eyebrow.on-dark::before {
  background: var(--amber);
}

.section {
  padding: var(--section-pad) 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head p {
  color: var(--slate);
  font-size: 17px;
}
.section--dark {
  background: var(--ink);
}
.section--dark h2, .section--dark h3 {
  color: var(--white);
}
.section--dark p {
  color: rgba(255, 255, 255, 0.72);
}
.section--paper-dim {
  background: var(--paper-dim);
}

h2 {
  font-size: clamp(28px, 3.6vw, 42px);
}
h3 {
  font-size: 20px;
}

/* ---------- Hazard stripe divider (signature element) ---------- */
.stripe-divider {
  height: 14px;
  width: 100%;
  background: repeating-linear-gradient(
    -45deg,
    var(--amber),
    var(--amber) 22px,
    var(--ink) 22px,
    var(--ink) 44px
  );
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn--amber {
  background: var(--amber);
  color: var(--ink);
}
.btn--amber:hover {
  background: var(--amber-dark);
}
.btn--ghost-dark {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}
.btn--ghost-dark:hover {
  border-color: var(--amber);
  color: var(--amber);
}
.btn--ghost-light {
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost-light:hover {
  border-color: var(--ink);
}
.btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  flex-shrink: 0;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--ink);
  border-bottom: 1px solid var(--line-light);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: "Russo One", var(--font-display);
  font-size: 21px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.04em;
  display: flex;
  align-items: baseline;
  gap: 1px;
}
.brand span {
  color: var(--amber);
}
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-desktop > a:not(.lang-toggle) {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}
.nav-desktop > a:not(.lang-toggle):hover {
  color: var(--white);
  border-bottom-color: var(--amber);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

/* language dropdown */
.lang-dropdown {
  position: relative;
}
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  padding: 7px 12px;
  cursor: pointer;
  background: none;
}
.lang-toggle:hover {
  border-color: var(--amber);
  color: var(--amber);
}
.lang-toggle svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  transition: transform 0.15s ease;
}
.lang-dropdown.open .lang-toggle svg {
  transform: rotate(180deg);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(15, 27, 45, 0.25);
  width: max-content;
  padding: 6px;
  display: none;
  z-index: 50;
}
.lang-dropdown.open .lang-menu {
  display: block;
}
.lang-menu a,
.header .lang-menu a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  padding: 9px 12px;
  border-radius: 3px;
  white-space: nowrap;
}
.lang-menu .lang-code {
  color: inherit;
}
.lang-menu .lang-native {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--slate);
}
.lang-menu a.active .lang-native {
  color: var(--ink);
  opacity: 0.75;
}
.lang-menu a:hover {
  background: var(--paper-dim);
}
.lang-menu a.active {
  background: var(--amber);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
}

@media (max-width: 900px) {
  .nav-desktop {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 24px 24px;
    border-bottom: 1px solid var(--line-light);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.18s ease;
  }
  .nav-desktop.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-desktop > a:not(.lang-toggle) {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-light);
  }
  .nav-right {
    margin-top: 14px;
  }
  .nav-toggle {
    display: flex;
  }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  padding: 76px 0 90px;
  position: relative;
}
.hero .container {
  max-width: 880px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(34px, 5.4vw, 58px);
  margin-bottom: 22px;
}
.hero__sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
  max-width: 620px;
  margin-bottom: 36px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 48px;
  border-top: 1px solid var(--line-light);
  padding-top: 32px;
}
.stat__num {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 6px;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
@media (max-width: 600px) {
  .hero__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .stat__num {
    font-size: 28px;
  }
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--paper);
  padding: 40px 32px;
}
.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.service-card__icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--amber);
}
.service-card h3 {
  margin-bottom: 14px;
}
.service-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-card li {
  font-size: 14.5px;
  color: var(--slate);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  background: var(--amber);
}
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- About split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split--reverse .split__figure {
  order: 2;
}
.split__figure {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 40px;
}
.fact-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.fact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.5;
}
.fact-list svg {
  width: 20px;
  height: 20px;
  stroke: var(--amber);
  flex-shrink: 0;
  margin-top: 2px;
}
.fact-list--on-light li {
  color: var(--ink);
}
@media (max-width: 860px) {
  .split, .split--reverse .split__figure {
    grid-template-columns: 1fr;
    order: unset;
  }
  .split {
    gap: 36px;
  }
}

/* ---------- Documents ---------- */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.doc-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.doc-card:hover {
  border-color: var(--amber-dark);
  transform: translateY(-2px);
}
.doc-card__icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--paper-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.doc-card__icon svg {
  width: 19px;
  height: 19px;
  stroke: var(--ink);
}
.doc-card__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
@media (max-width: 860px) {
  .doc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .doc-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Why grid ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-light);
}
.why-card {
  background: var(--ink);
  padding: 34px 30px;
}
.why-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
}
.why-card__icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--amber);
}
.why-card h3 {
  color: var(--white);
  font-size: 17px;
  margin-bottom: 10px;
}
.why-card p, .why-card div {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.6;
}
.why-card a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact band ---------- */
.contact-band {
  background: var(--amber);
  padding: 64px 0;
}
.contact-band .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
}
.contact-band h2 {
  color: var(--ink);
  margin-bottom: 8px;
}
.contact-band .contact-director {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
  opacity: 0.75;
  margin-bottom: 28px;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.contact-list svg {
  width: 20px;
  height: 20px;
  stroke: var(--ink);
  flex-shrink: 0;
}
.contact-card {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-card h3 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 16px;
}
.contact-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 20px;
}
@media (max-width: 800px) {
  .contact-band .container {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink-soft);
  padding: 72px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-light);
}
.footer-brand .brand {
  margin-bottom: 18px;
}
.footer-quote {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  font-style: italic;
  line-height: 1.6;
  max-width: 260px;
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.15s ease;
}
.footer-links a:hover {
  color: var(--amber);
}
.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.4);
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Lightbox ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 14, 24, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 40px;
}
.lightbox-overlay.active {
  display: flex;
}
.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-body {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-body img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.lightbox-body iframe {
  width: min(900px, 92vw);
  height: 85vh;
  border: none;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.lightbox-body iframe.lightbox-map {
  width: min(1000px, 92vw);
  height: 70vh;
}
.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 8px;
}
.lightbox-close:hover {
  color: var(--amber);
}
.lightbox-caption {
  position: absolute;
  bottom: -36px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  opacity: 0.8;
}

/* ---------- utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.icon-flip { transform: scaleX(-1); }

/* ---------- professions list page ---------- */
.professions-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.professions-list li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  color: var(--ink);
}
.prof-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber-dark);
  flex-shrink: 0;
  width: 28px;
}

/* ---------- pricing table page ---------- */
.calc-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.calc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 720px;
}
.calc-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--ink);
  padding: 14px 16px;
}
.calc-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--slate);
  vertical-align: top;
}
.calc-table tbody tr:nth-child(odd) {
  background: var(--paper-dim);
}
.calc-table tbody tr:hover {
  background: rgba(245, 179, 1, 0.12);
}
.calc-num {
  font-family: var(--font-mono);
  color: var(--amber-dark);
  white-space: nowrap;
  width: 48px;
}
.calc-grade, .calc-hours {
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 13px;
  width: 100px;
}
.calc-price {
  white-space: nowrap;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  width: 110px;
}

/* ---------- structure / org chart page ---------- */
.org-top {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 8px;
}
.org-node {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.org-node--side {
  background: var(--paper-dim);
  color: var(--slate);
  font-weight: 500;
  font-size: 13px;
}
.org-node--chief {
  background: var(--ink);
  color: var(--white);
  flex-direction: column;
  gap: 4px;
  padding: 22px 20px;
  position: relative;
}
.org-node--chief::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -16px;
  transform: translateX(-50%);
  width: 2px;
  height: 16px;
  background: var(--line);
}
.org-node__role {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--amber);
}
.org-node--highlight .org-node__role {
  color: var(--amber-dark);
}
.org-node__sub {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.7;
}
.org-node__name {
  font-size: 15px;
  font-weight: 700;
}
.org-branches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 32px;
}
.org-branch .org-node {
  margin-bottom: 14px;
}
.org-node--highlight {
  border-color: var(--amber-dark);
  flex-direction: column;
  gap: 2px;
  padding: 18px;
}
.org-children {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 2px solid var(--line);
  padding-left: 16px;
  margin: 0 0 14px 10px;
}
.org-children li {
  font-size: 13.5px;
  color: var(--slate);
}
.org-node--footer {
  background: var(--paper-dim);
  font-size: 13px;
  margin-left: 10px;
}
@media (max-width: 700px) {
  .org-top {
    grid-template-columns: 1fr;
  }
  .org-node--chief::after {
    display: none;
  }
  .org-branches {
    grid-template-columns: 1fr;
  }
}

/* ---------- doc article pages (rules, requisites, licenses etc.) ---------- */
.doc-article h2 {
  font-size: 20px;
  margin-top: 36px;
  margin-bottom: 14px;
  color: var(--ink);
}
.doc-article h3 {
  font-size: 16px;
  margin-top: 22px;
  margin-bottom: 10px;
  color: var(--steel);
  text-transform: none;
}
.doc-article p {
  font-size: 15px;
  color: var(--slate);
  margin-bottom: 14px;
}
.doc-article ul {
  margin: 0 0 16px;
  padding-left: 0;
}
.doc-article ul li {
  list-style: none;
  padding-left: 20px;
  position: relative;
  font-size: 15px;
  color: var(--slate);
  margin-bottom: 8px;
  line-height: 1.6;
}
.doc-article ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  background: var(--amber-dark);
}
.fact-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 24px;
}
.fact-table tr {
  border-bottom: 1px solid var(--line);
}
.fact-table td {
  padding: 12px 4px;
  font-size: 14.5px;
  vertical-align: top;
}
.fact-table td:first-child {
  color: var(--slate-light);
  font-family: var(--font-mono);
  font-size: 12.5px;
  width: 220px;
  padding-top: 14px;
}
.fact-table td:last-child {
  color: var(--ink);
  font-weight: 600;
}
.mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 4px 0 24px;
}
.mini-stats .stat__num {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--amber-dark);
  line-height: 1;
  margin-bottom: 4px;
}
.mini-stats .stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
}
@media (max-width: 480px) {
  .mini-stats {
    gap: 18px;
  }
}
.doc-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 8px 0 24px;
}
.doc-images a {
  display: block;
}
.doc-images img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  display: block;
}
.doc-images--photos {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 700px) {
  .doc-images--photos {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .doc-images {
    grid-template-columns: 1fr;
  }
  .fact-table td:first-child {
    width: 140px;
  }
}
.staff-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.staff-card__photo {
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-dim);
  margin-bottom: 14px;
}
.staff-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.staff-card__name {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.3;
}
.staff-card__role {
  font-size: 12.5px;
  color: var(--slate);
  line-height: 1.4;
}
.staff-list {
  border-top: 1px solid var(--line);
}
.staff-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 20px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}
.staff-row__name {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
}
.staff-row__role {
  font-size: 14px;
  color: var(--slate);
}
@media (max-width: 900px) {
  .staff-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .staff-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ---------- floating action buttons ---------- */
.fab-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 400;
}
.fab {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 27, 45, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease, color 0.15s ease;
}
.fab.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.fab:hover {
  background: var(--amber);
  color: var(--ink);
}
.fab svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}
@media (max-width: 600px) {
  .fab-stack {
    right: 14px;
    bottom: 14px;
  }
  .fab {
    width: 42px;
    height: 42px;
  }
}
