.accident-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 34%, rgba(217, 35, 46, 0.16), transparent 24%),
    linear-gradient(135deg, rgba(255, 248, 223, 0.94) 0%, rgba(255, 255, 255, 0.98) 44%, rgba(255, 255, 255, 0.72) 100%);
}

.accident-hero::before {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(217, 35, 46, 0.5), transparent);
  opacity: 0.8;
}

.accident-hero .page-hero-copy {
  position: relative;
  z-index: 2;
}

.accident-hero .page-hero-catch {
  max-width: 13em;
  text-shadow: 0 10px 34px rgba(217, 35, 46, 0.1);
  word-break: keep-all;
}

.accident-hero .page-hero-visual {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 0 64px;
  box-shadow: 0 30px 80px rgba(24, 38, 52, 0.18);
  isolation: isolate;
}

.accident-hero .page-hero-visual::before,
.accident-hero .page-hero-visual::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
}

.accident-hero .page-hero-visual::before {
  background:
    linear-gradient(90deg, rgba(10, 12, 16, 0.58), rgba(10, 12, 16, 0.2) 42%, rgba(10, 12, 16, 0.42)),
    linear-gradient(180deg, rgba(217, 35, 46, 0.12), rgba(16, 18, 22, 0.36));
  animation: accidentImageClear 950ms ease-out both;
}

.accident-hero .page-hero-visual::after {
  inset: -26% -34%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.94) 26%, rgba(255, 248, 223, 0.94) 55%, rgba(217, 35, 46, 0.22) 72%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transform: translate(-72%, -64%) rotate(-10deg);
}

.accident-hero .page-hero-visual.is-sweeping::after {
  animation: accidentDiagonalMask 2100ms cubic-bezier(0.76, 0, 0.24, 1) both;
}

.accident-hero-slider {
  min-height: 420px;
  background: #1d2025;
}

.accident-hero-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  opacity: 0;
  clip-path: polygon(0 0, 0 0, -34% 100%, -34% 100%);
  transition:
    opacity 420ms ease,
    clip-path 2100ms cubic-bezier(0.22, 1, 0.36, 1);
}

.accident-hero-slide.is-active {
  z-index: 1;
  opacity: 1;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.accident-hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: 0;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.04);
  transform: scale(1.035);
}

.accident-hero-slide.is-active img {
  animation: accidentHeroSettle 2450ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.accident-slide-label {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  display: grid;
  gap: 4px;
  max-width: min(360px, calc(100% - 44px));
  padding: 13px 15px;
  color: #fff;
  background: rgba(24, 38, 52, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  text-align: left;
}

.accident-slide-label span {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.accident-slide-label small {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  opacity: 0.84;
}

.accident-slider-dots {
  position: absolute;
  bottom: 18px;
  left: 22px;
  z-index: 2;
  display: flex;
  gap: 7px;
}

.accident-slider-dots span {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  transition: width 2100ms ease, background 2100ms ease;
}

.accident-slider-dots span.is-active {
  width: 26px;
  background: rgba(255, 255, 255, 0.92);
}

.accident-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 20px 0;
  list-style: none;
}

.accident-badges li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px);
  animation: accidentBadgeIn 620ms ease-out both;
}

.accident-badges li:nth-child(1) {
  animation-delay: 180ms;
}

.accident-badges li:nth-child(2) {
  animation-delay: 300ms;
}

.accident-badges li:nth-child(3) {
  animation-delay: 420ms;
}

.accident-badges li:nth-child(4) {
  animation-delay: 540ms;
}

.accident-badges li:nth-child(5) {
  animation-delay: 660ms;
}

.accident-badges .badge-num {
  box-shadow: 0 0 0 rgba(217, 35, 46, 0);
  animation: accidentBadgeGlow 3200ms ease-in-out infinite;
}

.accident-badges li:nth-child(1) .badge-num {
  animation-delay: 240ms;
}

.accident-badges li:nth-child(2) .badge-num {
  animation-delay: 840ms;
}

.accident-badges li:nth-child(3) .badge-num {
  animation-delay: 1440ms;
}

.accident-badges li:nth-child(4) .badge-num {
  animation-delay: 2040ms;
}

.accident-badges li:nth-child(5) .badge-num {
  animation-delay: 2640ms;
}

.accident-hero .button-primary {
  position: relative;
  animation: accidentCallPulse 2600ms 1400ms ease-in-out infinite;
}

.accident-hero .button-primary::after {
  position: absolute;
  inset: -7px;
  content: "";
  border: 1px solid rgba(217, 35, 46, 0.25);
  border-radius: inherit;
  opacity: 0;
  animation: accidentCallRing 2600ms 1400ms ease-out infinite;
}

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

.cost-visual-row {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: stretch;
  max-width: 1120px;
  margin: 32px auto 0;
}

.cost-visual-row .cost-banner,
.cost-visual-row .accident-section-media {
  margin: 0;
}

.cost-visual-row .cost-figure {
  font-size: clamp(30px, 3.4vw, 48px);
  white-space: nowrap;
}

.cost-visual-row .accident-section-media img {
  height: 100%;
  min-height: 320px;
}

.accident-section-media {
  max-width: 940px;
  margin: 28px auto 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 14px 42px rgba(24, 38, 52, 0.07);
}

.accident-section-media img,
.flow-step-media img,
.lawyer-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.flow-step {
  grid-template-columns: auto minmax(0, 0.95fr) minmax(300px, 1.05fr);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.flow-step:has(.flow-step-media)::before {
  grid-column: 1;
  grid-row: 1;
}

.flow-step:has(.flow-step-media) > * {
  grid-column: auto;
}

.flow-step-copy {
  grid-column: 2;
}

.flow-step-media {
  grid-column: 3;
}

.flow-step.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.flow-step-copy h3 {
  margin-top: 14px;
  margin-bottom: 14px;
  line-height: 1.55;
}

.flow-step-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.85;
}

.flow-step-media {
  height: 100%;
  min-height: 210px;
  margin: 0;
  overflow: hidden;
  background: var(--wash);
  border-radius: 18px;
}

.flow-step-media img {
  height: 100%;
  min-height: 210px;
}

.lawyer-box {
  max-width: 940px;
  margin: 28px auto 0;
  border-color: rgba(217, 35, 46, 0.22);
}

.lawyer-media-box {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 24px;
  align-items: center;
  text-align: left;
}

.lawyer-media {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
}

@media (max-width: 900px) {
  .accident-hero {
    grid-template-columns: 1fr;
  }

  .accident-hero .page-hero-visual img {
    min-height: 340px;
  }

  .accident-hero-slider {
    min-height: 340px;
  }

  .insurance-grid,
  .caution-grid {
    grid-template-columns: 1fr;
  }

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

  .cost-visual-row .accident-section-media img {
    min-height: 260px;
  }

  .cost-visual-row .cost-figure {
    white-space: normal;
  }

  .lawyer-media-box {
    grid-template-columns: 1fr;
  }

  .flow-step {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .flow-step:has(.flow-step-media)::before {
    grid-row: 1 / span 2;
  }

  .flow-step-copy,
  .flow-step-media {
    grid-column: 2;
  }

  .flow-step-media {
    min-height: 240px;
  }

  .flow-step-media img {
    min-height: 240px;
  }
}

@media (max-width: 640px) {
  .accident-hero .page-hero-visual {
    border-radius: 0 0 0 42px;
  }

  .accident-hero .page-hero-visual img {
    min-height: 260px;
  }

  .accident-hero-slider {
    min-height: 260px;
  }

  .accident-slide-label {
    right: 14px;
    bottom: 14px;
    max-width: calc(100% - 28px);
    padding: 11px 12px;
  }

  .accident-slide-label span {
    font-size: 13px;
  }

  .accident-slide-label small {
    font-size: 11px;
  }

  .accident-slider-dots {
    bottom: 14px;
    left: 14px;
  }

  .accident-badges {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .accident-badges li {
    align-items: flex-start;
  }

  .flow-step-media,
  .flow-step-media img {
    min-height: 190px;
  }
}

@keyframes accidentImageClear {
  from {
    opacity: 1;
    background-color: rgba(10, 12, 16, 0.28);
  }

  to {
    opacity: 0.94;
    background-color: transparent;
  }
}

@keyframes accidentDiagonalMask {
  0% {
    opacity: 1;
    transform: translate(-72%, -64%) rotate(-10deg);
  }

  72% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(64%, 58%) rotate(-10deg);
  }
}

@keyframes accidentHeroSettle {
  from {
    filter: brightness(0.74) saturate(1.18) contrast(1.08);
    transform: scale(1.07);
  }

  to {
    filter: brightness(1) saturate(1.12) contrast(1.04);
    transform: scale(1.035);
  }
}

@keyframes accidentBadgeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes accidentBadgeGlow {
  0%,
  100% {
    background-color: #fff8df;
    border-color: #e6e2d8;
    box-shadow: 0 0 0 rgba(217, 35, 46, 0);
  }

  50% {
    background-color: #ffb8bd;
    border-color: #d9232e;
    box-shadow: 0 0 0 4px rgba(217, 35, 46, 0.22), 0 0 20px 5px rgba(217, 35, 46, 0.35);
  }
}

@keyframes accidentCallPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 16px 34px rgba(217, 35, 46, 0.24);
  }

  45% {
    transform: translateY(-1px) scale(1.018);
    box-shadow: 0 20px 42px rgba(217, 35, 46, 0.32);
  }
}

@keyframes accidentCallRing {
  0% {
    opacity: 0;
    transform: scale(0.98);
  }

  28% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .accident-hero .page-hero-visual::before,
  .accident-hero .page-hero-visual::after,
  .accident-hero .page-hero-visual img,
  .accident-hero-slide,
  .accident-slider-dots span,
  .accident-badges li,
  .accident-badges .badge-num,
  .accident-hero .button-primary,
  .accident-hero .button-primary::after,
  .flow-step {
    animation: none;
    transition: none;
  }

  .accident-badges li,
  .flow-step {
    opacity: 1;
    transform: none;
  }
}
