.breadcrumbs {
  display: flex;
  min-height: 48px;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-block: 0.8rem;
  color: var(--color-gray-600);
  font-size: 0.88rem;
}

.breadcrumbs a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  color: var(--color-primary-800);
  font-weight: 750;
  text-underline-offset: 0.2em;
}

.breadcrumbs svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: none;
  stroke: var(--color-gray-400);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.demo-banner {
  display: flex;
  margin-block: 1rem 2rem;
  padding: 0.9rem 1rem;
  align-items: flex-start;
  gap: 0.8rem;
  border: 1px solid #f2d57b;
  border-radius: var(--radius-md);
  color: #713f12;
  background: #fffbeb;
}

.demo-banner > svg {
  width: 1.4rem;
  height: 1.4rem;
  flex: 0 0 auto;
  margin-top: 0.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.demo-banner strong,
.demo-banner span {
  display: block;
}

.demo-banner span {
  margin-top: 0.15rem;
  font-size: 0.9rem;
}

.content-detail {
  padding-bottom: clamp(4rem, 8vw, 7rem);
  background: linear-gradient(180deg, var(--color-white), var(--color-gray-50));
}

.content-detail > .container {
  max-width: 1180px;
}

.content-header {
  display: grid;
  overflow: hidden;
  margin-bottom: clamp(2rem, 6vw, 4rem);
  align-items: stretch;
  grid-template-columns: 1.05fr 0.95fr;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  background: var(--color-white);
  box-shadow: var(--shadow-md);
}

.content-header__copy {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: clamp(1.6rem, 5vw, 3.5rem);
}

.content-header h1,
.catalog-hero h1 {
  max-width: 16ch;
  margin-bottom: 1rem;
  font-size: clamp(2.25rem, 5vw, 4.2rem);
  line-height: 1.02;
}

.content-lead {
  max-width: 62ch;
  color: var(--color-gray-600);
  font-size: clamp(1.02rem, 2vw, 1.18rem);
}

.content-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.5rem 0 0;
  color: #713f12;
  font-size: 0.82rem;
  font-weight: 800;
}

.content-status svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.content-header > img {
  width: 100%;
  height: 100%;
  min-height: 410px;
  object-fit: cover;
}

.content-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(1.5rem, 4vw, 3rem);
}

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

.content-aside {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
}

.aside-card {
  padding: 1.25rem;
  border-top: 4px solid var(--color-primary-700);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.aside-card h2 {
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
}

.aside-card p {
  color: var(--color-gray-600);
  font-size: 0.92rem;
}

.aside-card a,
.back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-primary-800);
  font-weight: 800;
  text-underline-offset: 0.2em;
}

.aside-card svg,
.back-link svg,
.content-sources svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.guide-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.guide-section,
.article-section {
  padding: clamp(1.25rem, 3vw, 1.8rem);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.guide-section:last-child {
  grid-column: 1 / -1;
}

.guide-section--avoid {
  border-color: #fed7aa;
  background: #fff7ed;
}

.guide-section h2,
.article-section h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.guide-section ul,
.article-section ul,
.common-mistakes ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.75rem;
  list-style: none;
}

.guide-section li,
.common-mistakes li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0.65rem;
}

.guide-section li > svg,
.common-mistakes li > svg {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
  fill: none;
  stroke: var(--color-primary-700);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.guide-section--avoid li > svg,
.common-mistakes li > svg {
  stroke: var(--color-emergency-700);
}

.article-section {
  margin-bottom: 1rem;
}

.article-section p {
  max-width: 70ch;
  color: var(--color-gray-600);
}

.article-section ul {
  padding-left: 1.2rem;
  list-style: disc;
}

.common-mistakes {
  border-color: #fed7aa;
  background: #fff7ed;
}

.common-mistakes ul {
  padding: 0;
  list-style: none;
}

.content-emergency {
  display: grid;
  margin-block: clamp(2rem, 5vw, 3.5rem);
  padding: clamp(1.4rem, 4vw, 2rem);
  grid-template-columns: 58px 1fr;
  gap: 1rem;
  border-radius: var(--radius-lg);
  color: var(--color-white);
  background: linear-gradient(120deg, var(--color-primary-950), var(--color-primary-800));
  box-shadow: var(--shadow-md);
}

.content-emergency > span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: var(--color-white);
  background: var(--color-emergency-600);
}

.content-emergency svg {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.content-emergency h2 {
  margin-bottom: 0.4rem;
  color: var(--color-white);
  font-size: 1.45rem;
}

.content-emergency p {
  margin: 0;
}

.content-emergency a {
  min-height: 44px;
  color: var(--color-white);
  font-weight: 850;
  text-underline-offset: 0.2em;
}

.content-sources,
.related-content {
  margin-block: clamp(2.5rem, 6vw, 4.5rem);
}

.content-sources h2,
.related-content > h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.content-sources p {
  color: var(--color-gray-600);
}

.content-sources ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
  list-style: none;
}

.content-sources a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-primary-800);
  font-weight: 750;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.related-grid article {
  padding: 1.25rem;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.related-grid article > p {
  margin-bottom: 0.4rem;
  color: var(--color-primary-700);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.related-grid h3 {
  margin-bottom: 0.65rem;
  font-size: 1.1rem;
}

.related-grid h3 a {
  min-height: 44px;
  color: var(--color-primary-950);
  text-decoration: none;
}

.related-grid h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.related-grid span {
  color: var(--color-gray-600);
  font-size: 0.9rem;
}

.back-link {
  margin-top: 1rem;
}

.back-link svg {
  transform: rotate(180deg);
}

.catalog-hero {
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  background: linear-gradient(145deg, var(--color-primary-50), var(--color-white));
}

.catalog-hero h1 {
  max-width: 14ch;
}

.catalog-hero > .container > p:not(.section-label) {
  max-width: 68ch;
  color: var(--color-gray-600);
  font-size: 1.08rem;
}

.catalog-hero .demo-banner {
  max-width: 780px;
  margin-bottom: 0;
}

.catalog-list {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.catalog-count {
  margin-bottom: 1.25rem;
  color: var(--color-gray-600);
  font-weight: 750;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.catalog-card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.catalog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.catalog-card > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.catalog-card > div {
  display: flex;
  height: 100%;
  padding: 1.2rem;
  align-items: flex-start;
  flex-direction: column;
}

.catalog-card__category {
  margin-bottom: 0.45rem;
  color: var(--color-primary-700);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.catalog-card h2 {
  margin-bottom: 0.65rem;
  font-size: 1.3rem;
}

.catalog-card h2 a {
  color: var(--color-primary-950);
  text-decoration: none;
}

.catalog-card h2 a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.catalog-card > div > p:not(.catalog-card__category) {
  color: var(--color-gray-600);
  font-size: 0.92rem;
}

.catalog-card__status {
  display: block;
  margin-bottom: 0.65rem;
  color: #713f12;
  font-size: 0.78rem;
  font-weight: 720;
}

.catalog-card .text-action {
  margin-top: auto;
  text-decoration: none;
}

@media (max-width: 920px) {
  .content-header {
    grid-template-columns: 1fr;
  }

  .content-header > img {
    min-height: 300px;
    aspect-ratio: 16 / 9;
  }

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

  .content-aside {
    position: static;
  }

  .catalog-grid,
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .content-header h1,
  .catalog-hero h1 {
    font-size: clamp(2.1rem, 11vw, 3rem);
  }

  .content-header > img {
    min-height: 240px;
  }

  .guide-sections,
  .catalog-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .guide-section:last-child {
    grid-column: auto;
  }

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

  .content-emergency > span {
    width: 50px;
    height: 50px;
  }
}
