:root {
  --geodis-purple: #3200e6;
  --navy: #171038;
  --ink: #1f1f35;
  --muted: #67677a;
  --line: #e3e2eb;
  --page: #f5f6fa;
  --white: #ffffff;
  --green: #08785c;
  --green-soft: #eaf8f3;
  --orange: #a24d00;
  --orange-soft: #fff1df;
  --red: #b4243a;
  --red-soft: #fdecee;
  --purple-soft: #eeebff;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

::selection {
  background: #dcd4ff;
  color: #1d086d;
}

.site-header,
.site-footer {
  background: var(--white);
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner,
.hero-inner,
.content-grid {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand img {
  width: auto;
  height: 54px;
}

.brand-separator {
  width: 1px;
  height: 36px;
  background: #deddea;
}

.brand-label {
  color: #55556c;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-actions,
.language-switcher {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 14px;
}

.language-switcher {
  gap: 4px;
  min-inline-size: 0;
  margin: 0;
  border: 1px solid #d9d7e9;
  border-radius: 999px;
  padding: 3px;
  background: #f7f6fb;
}

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

.language-button {
  display: inline-flex;
  min-width: 58px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 6px 9px;
  background: transparent;
  color: #66647a;
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  transition:
    background 150ms ease,
    box-shadow 150ms ease,
    color 150ms ease;
}

.language-button span:first-child {
  font-size: 1rem;
  line-height: 1;
}

.language-button:hover {
  color: var(--geodis-purple);
}

.language-button.is-active {
  background: var(--white);
  box-shadow: 0 1px 5px rgb(31 21 69 / 14%);
  color: var(--geodis-purple);
}

.language-button:focus-visible {
  outline: 2px solid var(--geodis-purple);
  outline-offset: 2px;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 0%, rgb(97 52 255 / 46%) 0, transparent 34%),
    linear-gradient(
      116deg,
      var(--navy) 0%,
      #25008f 55%,
      var(--geodis-purple) 100%
    );
}

.hero::after {
  position: absolute;
  right: -7%;
  bottom: -76px;
  width: 48%;
  height: 138px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 50%;
  content: '';
  pointer-events: none;
  transform: rotate(-7deg);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding-block: 46px;
}

h1 {
  max-width: 760px;
  margin: 0;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.hero-description {
  max-width: 620px;
  margin: 16px 0 0;
  color: rgb(255 255 255 / 72%);
  font-size: 0.95rem;
  line-height: 1.65;
}

.overall-block {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 11px;
}

.overall-status {
  display: inline-flex;
  margin: 0;
  align-items: center;
  gap: 10px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  padding: 11px 15px;
  background: rgb(10 6 35 / 28%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 8%);
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.overall-warning {
  color: #ffd29e;
}

.overall-ok {
  color: #92f0cd;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px rgb(255 255 255 / 8%);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(330px, 0.9fr);
  align-items: start;
  gap: 24px;
  padding-block: 40px;
}

.status-column {
  display: grid;
  gap: 24px;
}

.service-group {
  min-width: 0;
}

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 8px 24px rgb(28 20 61 / 5%);
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 12px;
}

h2 {
  margin: 0;
  color: #222237;
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.service-count {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  text-align: right;
}

.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-left: 4px solid transparent;
  padding: 18px 20px;
}

.service-row + .service-row {
  border-top: 1px solid var(--line);
}

.service-status-degraded {
  border-left-color: var(--orange);
}

.service-status-outage {
  border-left-color: var(--red);
}

.service-status-operational {
  border-left-color: var(--green);
}

.service-status-maintenance {
  border-left-color: #4d22c6;
}

.service-name {
  font-size: 0.92rem;
  font-weight: 700;
}

.service-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.service-description {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.service-incident-link {
  color: #302080;
  font-size: 0.75rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.service-incident-link:hover,
.service-incident-link:focus-visible {
  color: var(--geodis-purple);
}

.status-chip,
.incident-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.68rem;
  font-weight: 800;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-operational {
  background: var(--green-soft);
  color: var(--green);
}

.status-degraded {
  background: var(--orange-soft);
  color: var(--orange);
}

.status-outage {
  background: var(--red-soft);
  color: var(--red);
}

.status-maintenance {
  background: var(--purple-soft);
  color: #4d22c6;
}

.status-legend {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 8px 24px rgb(28 20 61 / 5%);
}

.status-legend summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  color: #4f4e62;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 750;
  list-style: none;
}

.status-legend summary::-webkit-details-marker {
  display: none;
}

.status-legend summary:focus-visible {
  border-radius: 13px;
  outline: 2px solid var(--geodis-purple);
  outline-offset: -2px;
}

.legend-toggle::before {
  color: var(--geodis-purple);
  content: '+';
  font-size: 1.15rem;
  font-weight: 500;
}

.status-legend[open] .legend-toggle::before {
  content: '−';
}

.legend-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  border-top: 1px solid #e6e5ee;
  padding: 4px 20px 8px;
  list-style: none;
}

.legend-item {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(145px, 175px) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 12px 0;
}

.legend-item + .legend-item {
  border-top: 1px solid #efeff4;
}

.legend-status {
  justify-self: start;
  padding: 6px 9px;
  font-size: 0.75rem;
}

.legend-description {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.communications-count {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  text-align: right;
}

.communications-list {
  display: grid;
  min-height: 0;
}

.communications-list:focus-visible {
  outline: 2px solid var(--geodis-purple);
  outline-offset: -2px;
}

.communication-card {
  min-width: 0;
  padding: 22px 24px;
}

.communication-card + .communication-card {
  border-top: 1px solid #dedce9;
}

.affected-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.73rem;
}

.affected-services {
  margin-top: 18px;
  border-radius: 11px;
  padding: 14px 16px;
  background: #f2efff;
}

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

.component-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #302080;
  font-size: 0.8rem;
}

.incident-badge {
  padding: 7px 10px;
  font-size: 0.68rem;
  font-weight: 500;
}

.incident-open {
  background: var(--orange-soft);
  color: var(--orange);
}

.incident-investigating {
  background: var(--red-soft);
  color: var(--red);
}

.incident-identified {
  background: var(--orange-soft);
  color: var(--orange);
}

.incident-monitoring {
  background: #e9efff;
  color: #2548a8;
}

.incident-resolved {
  background: var(--green-soft);
  color: var(--green);
}

.incident-maintenance {
  background: var(--purple-soft);
  color: #4d22c6;
}

.incident-name {
  margin: 0;
  color: #252538;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.incident-started {
  margin: 14px 0 0;
  color: #5e5e72;
  font-size: 0.73rem;
  line-height: 1.5;
}

.history-title {
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
}

.incident-history {
  display: grid;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.history-entry {
  position: relative;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 16px;
}

.history-entry:last-child {
  padding-bottom: 0;
}

.history-entry:not(:last-child)::before {
  position: absolute;
  top: 12px;
  bottom: -1px;
  left: 6px;
  width: 1px;
  background: #dedce9;
  content: '';
}

.history-marker {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  margin-top: 3px;
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 2px currentColor;
  background: currentColor;
}

.history-marker-open {
  color: var(--orange);
}

.history-marker-investigating {
  color: var(--red);
}

.history-marker-identified {
  color: var(--orange);
}

.history-marker-monitoring {
  color: #2548a8;
}

.history-marker-resolved {
  color: var(--green);
}

.history-marker-maintenance {
  color: #4d22c6;
}

.history-content {
  min-width: 0;
}

.history-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.history-status {
  font-size: 0.8rem;
  font-weight: 600;
}

.history-time {
  color: #777589;
  font-size: 0.66rem;
  font-weight: 500;
}

.history-details {
  margin: 4px 0 0;
  color: #5e5e72;
  font-size: 0.8rem;
  line-height: 1.58;
}

.incident-empty {
  display: flex;
  min-height: 290px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 1.35rem;
  font-weight: 800;
}

.incident-empty h3 {
  margin: 16px 0 0;
  font-size: 1rem;
}

.incident-empty p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.noscript-message {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 40px;
  border: 1px solid #f0ca9a;
  border-radius: 10px;
  padding: 14px;
  background: var(--orange-soft);
  color: var(--orange);
}

.site-footer {
  border-top: 1px solid #e1e0e9;
}

@media (min-width: 851px) {
  .communications-panel {
    position: sticky;
    top: 24px;
    display: flex;
    max-height: min(720px, calc(100vh - 48px));
    flex-direction: column;
  }

  .communications-list {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #bdb5dc transparent;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
  }

  .communications-list::-webkit-scrollbar {
    width: 8px;
  }

  .communications-list::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: #bdb5dc;
    background-clip: padding-box;
  }
}

.footer-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: #69697c;
  font-size: 0.72rem;
  text-align: center;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 850px) {
  .hero-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 28px;
  }

  .overall-block {
    align-items: flex-start;
  }

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

@media (max-width: 560px) {
  .header-inner,
  .footer-inner,
  .hero-inner,
  .content-grid,
  .noscript-message {
    width: min(100% - 32px, 1180px);
  }

  .brand img {
    height: 47px;
  }

  .brand-separator,
  .brand-label {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .language-button {
    min-width: 38px;
    padding-inline: 7px;
  }

  .language-button span:last-child {
    display: none;
  }

  .hero-inner {
    padding-block: 42px;
  }

  .hero-description {
    font-size: 0.92rem;
  }

  .card-heading,
  .service-row {
    padding-inline: 14px;
  }

  .card-heading {
    padding-inline: 0;
  }

  .service-count {
    max-width: 145px;
    text-align: center;
    line-height: 1.25;
  }

  .communications-count {
    max-width: 110px;
    text-align: center;
    line-height: 1.25;
  }

  .legend-list {
    padding-inline: 18px;
  }

  .legend-item {
    grid-template-columns: 1fr;
    gap: 7px;
    padding-block: 14px;
  }

  .status-legend summary {
    padding-inline: 18px;
  }

  .status-chip {
    max-width: 128px;
    justify-content: flex-end;
    text-align: right;
    line-height: 1.2;
  }

  .component-tag {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    min-height: auto;
    padding-block: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
