:root {
  --safety-blue: #2478c8;
  --safety-deep: #0b3d69;
  --safety-sky: #e8f5fc;
  --safety-yellow: #f7c948;
  --safety-ink: #102f4b;
}

html {
  scroll-behavior: smooth;
}

body[data-nav="safety"] {
  overflow-x: hidden;
  background: #f6fbfe;
}

body[data-nav="safety"] .adik-widget {
  display: none !important;
}

.safety-live-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(112deg, rgba(7, 45, 78, .98) 0%, rgba(21, 96, 158, .97) 52%, rgba(36, 120, 200, .92) 100%),
    #0b3d69;
  isolation: isolate;
}

.safety-live-hero::before,
.safety-live-hero::after {
  content: "";
  position: absolute;
  inset-inline: -5%;
  height: 1px;
  background: rgba(255, 255, 255, .18);
  transform: rotate(-4deg);
  z-index: -1;
}

.safety-live-hero::before { top: 22%; }
.safety-live-hero::after { top: 72%; }

.safety-live-inner {
  width: min(1420px, calc(100% - 48px));
  min-height: clamp(530px, 65vh, 700px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: clamp(44px, 6vw, 100px);
  padding: clamp(70px, 8vw, 112px) 0 clamp(88px, 9vw, 126px);
}

.safety-live-copy {
  position: relative;
  z-index: 3;
}

.safety-live-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: #d9efff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.safety-live-kicker span {
  width: 28px;
  height: 4px;
  border-radius: 4px;
  background: var(--safety-yellow);
  box-shadow: 34px 0 0 rgba(255, 255, 255, .4);
}

.safety-live-copy h1 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: clamp(44px, 5.1vw, 78px);
  line-height: .98;
  font-weight: 900;
  letter-spacing: 0;
  text-wrap: balance;
}

.safety-live-lead {
  max-width: 640px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, .84);
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.52;
  font-weight: 700;
}

.safety-live-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.safety-live-btn {
  min-height: 54px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 24px;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease;
}

.safety-live-btn:hover { transform: translateY(-3px); }
.safety-live-btn:focus-visible,
.safety-live-pause:focus-visible,
.safety-tabs .stab:focus-visible {
  outline: 3px solid var(--safety-yellow);
  outline-offset: 3px;
}

.safety-live-btn--primary {
  color: #172a3a;
  background: var(--safety-yellow);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}

.safety-live-btn--secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px);
}

.safety-live-btn--secondary:hover { background: rgba(255, 255, 255, .15); }

.safety-live-stats {
  display: flex;
  gap: 28px;
  margin: 36px 0 0;
}

.safety-live-stats div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.safety-live-stats dt {
  color: var(--safety-yellow);
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.safety-live-stats dd {
  max-width: 84px;
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
}

.safety-live-media {
  position: relative;
  z-index: 2;
  aspect-ratio: 16 / 10;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: #123f68;
  box-shadow: 0 32px 80px rgba(0, 20, 42, .38);
}

.safety-live-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
}

.safety-live-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 35, 58, .02) 48%, rgba(8, 35, 58, .78) 100%);
}

.safety-live-caption {
  position: absolute;
  left: 24px;
  right: 76px;
  bottom: 23px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #fff;
}

.safety-live-caption span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 50%;
  color: #172a3a;
  background: var(--safety-yellow);
  font-size: 13px;
  font-weight: 900;
}

.safety-live-caption strong {
  font-size: clamp(16px, 1.4vw, 21px);
  line-height: 1.25;
}

.safety-live-pause {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  color: #fff;
  background: rgba(8, 35, 58, .62);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform .2s ease, background-color .2s ease;
}

.safety-live-pause:hover { transform: scale(1.08); background: rgba(8, 35, 58, .84); }

.safety-status {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  color: #fff;
  background: rgba(9, 51, 83, .82);
  box-shadow: 0 12px 28px rgba(0, 25, 47, .24);
  backdrop-filter: blur(9px);
  font-size: 13px;
  font-weight: 900;
  animation: safety-status-float 4.8s ease-in-out infinite;
}

.safety-status i {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 50%;
  background: #31c47b;
}

.safety-status i::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  width: 7px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.safety-status--vest { left: 14px; top: 15%; }
.safety-status--leash { right: 14px; top: 45%; animation-delay: -1.4s; }
.safety-status--weather { left: 14px; bottom: 72px; animation-delay: -2.8s; }

.safety-live-route {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34px;
  display: flex;
  align-items: flex-end;
  gap: 0;
  opacity: .92;
}

.safety-live-route span {
  width: 25%;
  height: 18px;
  border-top: 2px solid rgba(255, 255, 255, .35);
  border-radius: 50% 50% 0 0;
  animation: safety-wave 5s ease-in-out infinite;
}

.safety-live-route span:nth-child(2) { animation-delay: -.8s; }
.safety-live-route span:nth-child(3) { animation-delay: -1.6s; }
.safety-live-route span:nth-child(4) { animation-delay: -2.4s; }

.safety-tabs {
  width: min(1460px, calc(100% - 32px));
  max-width: none;
  margin: 24px auto 8px;
  padding: 8px;
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  border: 1px solid #cfe4f4;
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 32px rgba(27, 88, 136, .09);
}

.safety-tabs::-webkit-scrollbar { display: none; }

.safety-tabs .stab {
  min-width: max-content;
  min-height: 48px;
  margin: 0;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  color: #4e6b82;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.safety-tabs .stab span {
  color: #8caac0;
  font-size: 11px;
}

.safety-tabs .stab:hover {
  color: var(--safety-blue);
  background: #eef8fe;
  transform: translateY(-1px);
}

.safety-tabs .stab.active {
  color: #fff;
  background: var(--safety-blue);
  box-shadow: 0 8px 18px rgba(36, 120, 200, .22);
}

.safety-tabs .stab.active span { color: var(--safety-yellow); }

.safety-content {
  scroll-margin-top: 90px;
}

.safety-content .sf-wrap {
  padding-top: 20px;
}

.safety-content .sf-hero {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(115deg, #103f68 0%, #1a5ea0 60%, #2478c8 100%) !important;
  box-shadow: 0 22px 50px rgba(24, 83, 130, .16);
}

.safety-content .sf-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--safety-yellow) 0 35%, rgba(255,255,255,.45) 35% 65%, #54c0e8 65% 100%);
}

.sf-card,
.sf-step,
.sf-wcard,
.sf-zone-card,
.cl-block,
.safety-video-card,
.board-card {
  position: relative;
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

@media (hover: hover) and (pointer: fine) {
  .sf-card:hover,
  .sf-step:hover,
  .sf-wcard:hover,
  .sf-zone-card:hover,
  .cl-block:hover,
  .safety-video-card:hover,
  .board-card:hover {
    transform: translateY(-6px);
    border-color: rgba(36, 120, 200, .34);
    box-shadow: 0 20px 46px rgba(28, 87, 132, .16);
  }
}

html.safety-motion-ready .safety-reveal {
  opacity: 0;
  transform: translateY(26px);
}

html.safety-motion-ready .safety-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .55s ease var(--reveal-delay, 0ms), transform .55s ease var(--reveal-delay, 0ms);
}

.safety-check-progress {
  margin: 0 0 20px;
  padding: 17px 18px;
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid #cfe4f4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(28, 87, 132, .08);
}

.safety-check-progress strong { color: var(--safety-ink); font-size: 15px; }
.safety-check-track { height: 9px; overflow: hidden; border-radius: 999px; background: #e6f1f8; }
.safety-check-fill { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2478c8, #36b978); transition: width .35s ease; }
.safety-check-value { min-width: 48px; color: var(--safety-blue); text-align: right; font-weight: 900; }

#st-check .cl-item {
  cursor: pointer;
  user-select: none;
  transition: background-color .2s ease, transform .2s ease, opacity .2s ease;
}

#st-check .cl-item:hover { transform: translateX(3px); }
#st-check .cl-item.is-checked { background: #eefaf4; opacity: .78; }
#st-check .cl-item.is-checked .cl-check { background: #25a966 !important; color: #fff !important; transform: scale(1.08); }
#st-check .cl-item.is-checked .cl-item-text { text-decoration: line-through; text-decoration-color: rgba(17, 79, 53, .32); }

@keyframes safety-status-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes safety-wave {
  0%, 100% { transform: translateY(4px) scaleX(1.05); }
  50% { transform: translateY(-4px) scaleX(.95); }
}

@media (max-width: 1050px) {
  .safety-live-inner {
    grid-template-columns: minmax(0, .95fr) minmax(430px, 1.05fr);
    gap: 32px;
  }
  .safety-live-stats { gap: 18px; }
  .safety-status--vest { left: 12px; top: 13%; }
  .safety-status--leash { right: 12px; }
}

@media (max-width: 820px) {
  .safety-live-inner {
    width: min(100% - 28px, 680px);
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 58px 0 82px;
  }

  .safety-live-copy h1 { max-width: 620px; font-size: clamp(42px, 11vw, 62px); }
  .safety-live-lead { font-size: 18px; }
  .safety-live-media { min-height: 0; }
  .safety-tabs { width: calc(100% - 20px); margin-top: 14px; }
  .safety-tabs .stab { min-height: 46px; padding: 0 15px; }
}

@media (max-width: 560px) {
  .safety-live-inner { width: calc(100% - 24px); gap: 14px; padding: 28px 0 28px; }
  .safety-live-kicker { margin-bottom: 11px; font-size: 11px; }
  .safety-live-copy h1 { font-size: 36px; line-height: 1.01; }
  .safety-live-lead { margin-top: 14px; font-size: 14px; line-height: 1.45; }
  .safety-live-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
  .safety-live-btn { width: 100%; min-height: 48px; padding: 0 10px; font-size: 13px; }
  .safety-live-stats { justify-content: space-between; gap: 9px; margin-top: 18px; }
  .safety-live-stats div { display: block; }
  .safety-live-stats dt { margin-bottom: 5px; font-size: 24px; }
  .safety-live-stats dd { max-width: 82px; font-size: 11px; }
  .safety-live-media { height: 160px; min-height: 160px; aspect-ratio: auto; }
  .safety-live-caption { left: 12px; right: 52px; bottom: 10px; gap: 8px; }
  .safety-live-caption span { width: 31px; height: 31px; flex-basis: 31px; }
  .safety-live-caption strong { font-size: 14px; }
  .safety-live-pause { top: 10px; right: 10px; width: 39px; height: 39px; }
  .safety-status { min-height: 32px; padding: 0 10px; font-size: 11px; }
  .safety-status i { width: 15px; height: 15px; flex-basis: 15px; }
  .safety-status i::after { left: 4px; top: 3px; width: 6px; height: 3px; }
  .safety-status--vest { left: 8px; top: 8px; }
  .safety-status--leash { right: 8px; top: 50px; }
  .safety-status--weather { display: none; }
  .safety-tabs { padding: 6px; }
  .safety-content .sf-wrap { padding-top: 10px; }
  .safety-check-progress { grid-template-columns: 1fr auto; }
  .safety-check-track { grid-row: 2; grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .safety-status,
  .safety-live-route span { animation: none !important; }
  html.safety-motion-ready .safety-reveal,
  html.safety-motion-ready .safety-reveal.is-revealed {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .safety-live-btn,
  .safety-tabs .stab,
  .sf-card,
  .sf-step,
  .sf-wcard,
  .sf-zone-card,
  .cl-block,
  .safety-video-card,
  .board-card { transition: none; }
}
