.catalog-service-item > .catalog-link {
  border-radius: 8px 8px 0 0;
}

.catalog-detail-link,
.guide-source-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--edge);
  background: #1b1216;
  color: #ffc1cc;
  font-size: .88rem;
  font-weight: 800;
}

.catalog-detail-link {
  justify-content: flex-end;
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.service-guide {
  max-width: 900px;
}

.guide-hero {
  padding: clamp(19px, 5vw, 47px);
  border: 1px solid #663843;
  border-radius: 12px;
  background: radial-gradient(ellipse at 98% 0, #3e1824, #211117 44%, #171014 78%);
  box-shadow: inset 0 1px #e6819e28;
}

.guide-hero h1 {
  font-size: clamp(1.85rem, 6vw, 3.25rem);
  line-height: 1.19;
  letter-spacing: -.06em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.guide-hero h1 span {
  color: var(--red);
}

.guide-hero p {
  max-width: 38rem;
  margin-top: 11px;
  color: var(--muted);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.guide-hero-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 15px;
  margin-top: 21px;
}

.guide-hero-action .button {
  min-height: 46px;
  max-width: 100%;
  text-align: center;
}

.guide-host {
  color: #e5b9c2;
  font-size: .89rem;
  overflow-wrap: anywhere;
}

.guide-section,
.guide-related {
  margin-top: 27px;
}

.guide-section h2 {
  margin-bottom: 11px;
  font-size: clamp(1.16rem, 3vw, 1.43rem);
  letter-spacing: -.04em;
  word-break: keep-all;
  text-wrap: balance;
}

.guide-steps,
.guide-sources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
}

.guide-steps li {
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  list-style-position: inside;
}

.guide-steps li::marker {
  color: var(--red);
  font-weight: 800;
}

.guide-steps h3 {
  display: inline;
  font-size: 1rem;
}

.guide-steps p {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.guide-sources {
  list-style: none;
}

.guide-source-link {
  border-radius: 8px;
}

.guide-related {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-related .guide-source-link {
  width: fit-content;
  max-width: 100%;
}

@media (hover: hover) {
  .catalog-detail-link:hover,
  .guide-source-link:hover {
    border-color: #995360;
    background: #2a1921;
  }
}

@media (max-width: 580px) {
  .guide-steps,
  .guide-sources {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-section,
  .guide-related {
    margin-top: 22px;
  }
}

.catalog-intro .catalog-task-link {
  margin-inline-start: 14px;
}

.catalog-intro .catalog-task-link:first-of-type {
  margin-inline-start: 0;
}

.task-steps {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 1.5rem;
}

.task-steps > li {
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.task-steps > li::marker {
  color: var(--red);
  font-weight: 800;
}

.task-steps h3 {
  font-size: 1rem;
  word-break: keep-all;
}

.task-steps p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.task-step-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 14px;
  margin: 7px 0 0;
  padding: 0;
  list-style: none;
}

.task-step-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #ffc1cc;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 540px) {
  .catalog-intro .catalog-task-link {
    display: flex;
    margin-inline-start: 0;
  }
}

.guide-example {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.guide-example p {
  max-width: 68ch;
  color: var(--muted);
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.guide-example-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.guide-steps h3 { word-break: keep-all; }
