.problemy-page {
  background: var(--color-frost-white);
}

.problemy-page .container {
  width: calc(100% - 2rem);
  max-width: var(--container-max);
}

.problemy-hero {
  padding-block: var(--space-9);
}

.problemy-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: var(--space-7);
  align-items: center;
}

.problemy-hero__copy,
.problemy-hero__media,
.problemy-detail__content,
.problemy-photo,
.problemy-electrical__content,
.problemy-electrical__rule,
.problemy-principle-card,
.problemy-process__step,
.problemy-final__content {
  min-width: 0;
}

.problemy-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
  max-width: 35rem;
}

.problemy-hero__copy h1,
.problemy-hero__copy p,
.problemy-hero__copy .actions {
  margin: 0;
}

.problemy-hero__lead {
  font-size: var(--text-lg);
  line-height: 1.45;
}

.problemy-hero__actions {
  width: 100%;
}

.problemy-hero__media {
  width: 100%;
  margin: 0;
}

.problemy-hero__media img {
  width: 100%;
  border: var(--border-dark);
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.problemy-hero__media figcaption,
.problemy-photo figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
  color: var(--color-muted-steel);
  font-size: var(--text-sm);
  line-height: 1.43;
}

.problemy-symptoms__intro {
  max-width: 40rem;
}

.problemy-symptoms__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.problemy-symptom-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  border: var(--border);
  border-inline-start: 3px solid transparent;
  border-radius: var(--radius-md);
  padding: var(--space-6);
  background: var(--color-frost-white);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.problemy-symptom-card > * {
  min-width: 0;
  margin: 0;
}

.problemy-symptom-card:hover,
.problemy-symptom-card:focus-within {
  border-color: var(--color-ink);
  border-inline-start-color: var(--color-warm-amber);
}

.problemy-symptom-card__meta {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  color: var(--color-text-muted);
  font-family: var(--font-heading);
  font-weight: 700;
}

.problemy-symptom-card a,
.problemy-checklist a,
.problemy-principle-card a,
.problemy-process__step a,
.problemy-faq__answer a {
  font-weight: 700;
}

.problemy-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: var(--space-7);
  align-items: start;
}

.problemy-detail__content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-6);
}

.problemy-detail__heading {
  max-width: 39rem;
}

.problemy-detail__heading .label {
  margin-bottom: var(--space-3);
}

.problemy-detail__heading h2,
.problemy-detail__heading p {
  margin-bottom: 0;
}

.problemy-detail__heading h2 {
  margin-bottom: var(--space-4);
}

.problemy-photo {
  width: 100%;
  margin: 0;
}

.problemy-photo__frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: var(--border);
  border-radius: var(--radius-md);
  background: var(--color-steel-blue);
}

.problemy-photo__frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.problemy-photo__annotation {
  position: absolute;
  right: var(--space-3);
  bottom: var(--space-3);
  max-width: calc(100% - 1.5rem);
  border-inline-start: 2px solid var(--color-warm-amber);
  padding: var(--space-2) var(--space-3);
  background: rgb(21 26 33 / 88%);
  color: var(--color-frost-white);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.problemy-scope-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  border: var(--border-dark);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

.problemy-scope-panel > * {
  margin: 0;
}

.problemy-scope-panel--light {
  border: var(--border);
  border-inline-start: 3px solid var(--color-warm-amber);
  background: #e6ebf0;
  color: var(--color-ink);
}

.problemy-checklist {
  max-width: 33rem;
}

.problemy-checklist h3,
.problemy-checklist ul {
  margin-bottom: var(--space-4);
}

.problemy-checklist--narrow {
  max-width: 31rem;
}

.problemy-electrical {
  background: #e6ebf0;
}

.problemy-electrical__grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: var(--space-7);
  align-items: stretch;
}

.problemy-electrical__content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-6);
}

.problemy-electrical__content > * {
  margin: 0;
}

.problemy-electrical__lead {
  max-width: 38.75rem;
}

.problemy-electrical__panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  max-width: 47.5rem;
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.problemy-electrical__panel > * {
  margin: 0;
}

.problemy-electrical__check {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  max-width: 47.5rem;
}

.problemy-electrical__check > * {
  margin: 0;
}

.problemy-electrical__check ol {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  padding: 0;
  list-style: none;
}

.problemy-electrical__check li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
}

.problemy-electrical__check li strong {
  color: var(--color-warm-amber);
  font-family: var(--font-heading);
}

.problemy-electrical__rule {
  border-inline-start: 1px solid var(--color-line-steel);
  opacity: 0.65;
}

.problemy-principles__intro {
  max-width: 42.5rem;
}

.problemy-principles__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.problemy-principle-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  border: var(--border-dark);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  background: var(--color-steel-blue);
}

.problemy-principle-card > * {
  margin: 0;
}

.problemy-principle-card__number {
  color: var(--color-warm-amber);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
}

.problemy-process__intro {
  max-width: 38.75rem;
}

.problemy-process__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.problemy-process__steps::before {
  position: absolute;
  top: 1.15rem;
  right: 16.66%;
  left: 16.66%;
  height: 1px;
  background: var(--color-line-steel);
  content: "";
}

.problemy-process__step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-content: start;
}

.problemy-process__number {
  z-index: 1;
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-ink);
  border-radius: 50%;
  background: var(--color-warm-amber);
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-weight: 700;
}

.problemy-process__step h3,
.problemy-process__step p {
  margin-bottom: var(--space-3);
}

.problemy-process__step div > :last-child {
  margin-bottom: 0;
}

.problemy-faq__intro {
  max-width: 40.625rem;
}

.problemy-faq__list {
  display: flex;
  width: min(100%, 51.25rem);
  min-width: 0;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.problemy-faq__list details {
  min-width: 0;
  border: var(--border);
  border-radius: var(--radius-sm);
  background: var(--color-frost-white);
}

.problemy-faq__list summary {
  display: flex;
  min-height: 3rem;
  align-items: center;
  padding: var(--space-4);
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.3;
}

.problemy-faq__list summary::marker {
  color: var(--color-warm-amber);
}

.problemy-faq__answer {
  max-width: 42.5rem;
  padding: 0 var(--space-4) var(--space-4);
}

.problemy-faq__answer > :last-child {
  margin-bottom: 0;
}

.problemy-final__content {
  display: flex;
  width: min(100%, 43.75rem);
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
  margin-inline: auto;
}

.problemy-final__content > * {
  margin: 0;
}

.problemy-final__content p {
  max-width: 35rem;
}

@media (min-width: 768px) {
  .problemy-page .container {
    width: calc(100% - 2.5rem);
  }
}

@media (max-width: 1023px) {
  .problemy-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-5);
  }

  .problemy-hero__copy {
    max-width: none;
  }

  .problemy-hero__media img {
    max-height: 21rem;
  }

  .problemy-detail__grid,
  .problemy-detail--reverse .problemy-detail__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .problemy-detail--reverse .problemy-photo {
    order: 2;
  }

  .problemy-detail--reverse .problemy-detail__content {
    order: 1;
  }

  .problemy-detail__heading,
  .problemy-checklist,
  .problemy-checklist--narrow {
    max-width: none;
  }

  .problemy-electrical__grid {
    grid-template-columns: 1fr;
  }

  .problemy-electrical__rule {
    display: none;
  }

  .problemy-electrical__lead,
  .problemy-electrical__panel,
  .problemy-electrical__check {
    max-width: none;
  }

  .problemy-principles__grid,
  .problemy-process__steps {
    grid-template-columns: 1fr;
  }

  .problemy-process__steps {
    gap: var(--space-5);
    padding-inline-start: 3.25rem;
  }

  .problemy-process__steps::before {
    top: 1.25rem;
    bottom: 1.25rem;
    left: 1.25rem;
    width: 1px;
    height: auto;
  }

  .problemy-process__step {
    grid-template-columns: 2.5rem minmax(0, 1fr);
  }

  .problemy-faq__list {
    width: 100%;
  }
}

@media (max-width: 899px) {
  .problemy-symptoms__grid {
    grid-template-columns: 1fr;
  }

  .problemy-hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .problemy-hero__media {
    max-width: 42rem;
  }
}

@media (max-width: 767px) {
  .problemy-hero {
    padding-block: var(--space-7);
  }

  .problemy-hero__copy {
    gap: var(--space-4);
  }

  .problemy-hero__lead {
    font-size: var(--text-base);
    line-height: var(--leading-body);
  }

  .problemy-hero__media img {
    max-height: 13.75rem;
  }

  .problemy-symptom-card {
    padding: var(--space-5);
  }

  .problemy-detail__content,
  .problemy-electrical__content {
    gap: var(--space-5);
  }

  .problemy-scope-panel,
  .problemy-electrical__panel {
    padding: var(--space-5);
  }

  .problemy-photo__annotation {
    font-size: 0.6875rem;
  }

  .problemy-principle-card {
    padding: var(--space-5);
  }

  .problemy-process__steps {
    padding-inline-start: 3rem;
  }

  .problemy-process__step {
    gap: var(--space-3);
  }

  .problemy-faq__list summary {
    padding: var(--space-4);
    font-size: var(--text-base);
  }

  .problemy-faq__answer {
    padding: 0 var(--space-4) var(--space-4);
  }

  .problemy-final__content {
    width: 100%;
  }
}

@media (max-width: 419px) {
  .problemy-final__content .actions,
  .problemy-final__content .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .problemy-symptom-card {
    transition-duration: 150ms;
  }
}
