.post-hero {
  position: relative;
  padding: 0;
}

.post-hero__band {
  background: var(--bg-soft);
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
}

.post-hero__band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 340px;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(255, 255, 255, 0.6) 45%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.post-hero__band .container {
  position: relative;
  z-index: 1;
}

.post-hero__inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.post-hero h1 {
  margin: 0 0 24px;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-tighter);
  color: var(--ink);
  line-height: 1.12;
  text-wrap: balance;
}

.section-head h2 {
  font-weight: var(--fw-regular);
  letter-spacing: var(--tracking-tight);
}

.section-head h2 strong {
  font-weight: var(--fw-bold);
}

.post-hero__lead {
  margin: 0 0 26px;
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--text-soft);
  text-wrap: balance;
}

.post-hero__meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  padding: 8px 24px;
  border-radius: var(--r-pill);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: var(--text-sm);
}

.post-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-soft);
}

.post-hero__meta-item i {
  color: var(--primary);
  font-size: 15px;
}

.post-hero__meta-item strong {
  color: var(--ink);
  font-weight: var(--fw-semibold);
}

.post-hero__cover {
  margin: 56px auto 0;
  max-width: 1200px;
  border-radius: var(--r-2xl);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: var(--bg-soft);
  box-shadow: var(--shadow-lg);
}

.post-hero__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .post-hero__band { padding: 96px 0 40px; }
  .post-hero h1 { font-size: clamp(24px, 6.5vw, 32px); }
  .post-hero__lead { font-size: var(--body); margin-bottom: 22px; }
  .post-hero__meta { padding: 11px 16px; gap: 8px 14px; font-size: var(--text-xs); }
  .post-hero__cover { margin-top: 36px; aspect-ratio: 16 / 9; border-radius: var(--r-lg); }
}

@media (max-width: 480px) {
  .post-hero h1 { font-size: clamp(22px, 7vw, 28px); }
  .post-hero__cover { margin-top: 28px; aspect-ratio: 3 / 2; }
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 56px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.post-layout > * { min-width: 0; }

.post-article { max-width: 760px; }

.post-article > *:first-child { margin-top: 0; }

.post-article h2,
.post-article h3 { scroll-margin-top: 100px; }

@media (max-width: 768px) {
  .post-article h2,
  .post-article h3 { scroll-margin-top: 80px; }
}

.post-article.prose > h2 + *,
.post-article.prose > h3 + * { margin-top: 12px; }

.post-article.prose ul,
.post-article.prose ol {
  list-style: none;
  padding-left: 0;
  display: block;
  gap: 0;
}

.post-article.prose ul > li,
.post-article.prose ol > li {
  position: relative;
  padding-left: 28px;
  margin-top: 10px;
  line-height: 1.6;
}

.post-article.prose ul > li:first-child,
.post-article.prose ol > li:first-child { margin-top: 0; }

.post-article.prose ul > li::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}

.post-article.prose ol { counter-reset: post-list; }
.post-article.prose ol > li { counter-increment: post-list; }

.post-article.prose ol > li::before {
  content: counter(post-list, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  line-height: 1.6;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 13px;
  font-weight: var(--fw-bold);
  color: var(--primary);
  letter-spacing: 0.02em;
}

.post-article.prose table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  font-size: var(--body-sm);
}

.post-article.prose thead { background: var(--bg-soft); }

.post-article.prose th {
  text-align: left;
  padding: 14px 18px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
}

.post-article.prose td {
  padding: 14px 18px;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}

.post-article.prose tr:last-child td { border-bottom: 0; }

.post-article.prose tbody tr { transition: background .2s ease; }
.post-article.prose tbody tr:hover { background: var(--bg-soft); }

.post-article.prose td:first-child {
  font-weight: var(--fw-semibold);
  color: var(--ink);
}

.post-article.prose td strong {
  color: var(--accent-deep);
  font-weight: var(--fw-semibold);
}

.post-article.prose code {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.92em;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--bg-muted);
  color: var(--accent-deep);
  border: 1px solid var(--border);
}

.post-article.prose figure {
  margin: 28px 0;
}

.post-article.prose figure img {
  margin: 0;
}

.post-article.prose figcaption {
  margin-top: 8px;
  font-size: var(--text-sm);
  color: var(--text-faint);
  text-align: center;
  font-style: italic;
}

@media (max-width: 600px) {
  .post-article.prose table {
    font-size: var(--text-sm);
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .post-article.prose th,
  .post-article.prose td { padding: 12px 14px; }
}

@media (max-width: 768px) {
  .post-article.prose { font-size: var(--body-sm); }
  .post-article.prose ul > li::before { top: 9px; }
}

.post-side {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

@media (max-width: 900px) {
  .post-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .post-side {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.service-detail__cta-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.service-detail__cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--primary-rgb), 0.08) 0%, transparent 60%),
    radial-gradient(circle at 0% 100%, rgba(var(--accent-rgb), 0.06) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.service-detail__cta-card > * { position: relative; z-index: 1; }

.service-detail__cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  font-size: 24px;
  box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.28);
}

.service-detail__cta-icon i { line-height: 1; }

.service-detail__cta-title {
  font-size: 15.5px;
  font-weight: var(--fw-bold);
  color: var(--ink);
  letter-spacing: var(--tracking-tight);
  line-height: 1.3;
  margin-top: 2px;
}

.service-detail__cta-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0 0 4px;
}

.service-detail__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

.service-detail__cta-btn i {
  font-size: 15px;
  transition: transform .25s var(--easing-out);
}

.service-detail__cta-btn:hover i { transform: translateX(3px); }

.service-detail__cta-meta {
  list-style: none;
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-detail__cta-meta li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.4;
}

.service-detail__cta-meta li i {
  font-size: 15px;
  color: var(--primary);
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .service-detail__cta-card { padding: 20px; }
}

.modal-form__form.is-subject-hidden .form-field--select:has(select[name="subject"]) {
  display: none;
}

.modal-form__context-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 7px 14px 7px 12px;
  border-radius: var(--r-pill);
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.modal-form__context-pill i {
  font-size: 14px;
  color: var(--primary);
  flex-shrink: 0;
}

.modal-form__context-label {
  color: var(--text-soft);
  font-weight: var(--fw-medium);
}

.modal-form__context-pill strong {
  color: var(--primary-deep, var(--primary));
  font-weight: var(--fw-semibold);
}

.post-article.prose ol.faq-accordion {
  list-style: none;
  padding: 0;
  margin: 24px 0 28px;
  border-top: 1px solid var(--border);
}

.post-article.prose ol.faq-accordion > li {
  padding-left: 0;
  margin-top: 0;
  border-bottom: 1px solid var(--border);
  counter-increment: none;
}

.post-article.prose ol.faq-accordion > li::before {
  content: none;
}

.faq-accordion__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 4px;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  font-weight: var(--fw-semibold);
  font-size: var(--body);
  line-height: 1.5;
  transition: color .2s ease;
}

.faq-accordion__question:hover,
.faq-accordion__question[aria-expanded="true"] {
  color: var(--primary);
}

.faq-accordion__question:focus-visible {
  outline: 2px solid rgba(var(--primary-rgb), 0.4);
  outline-offset: 2px;
  border-radius: 4px;
}

.faq-accordion__q-text {
  flex: 1;
  min-width: 0;
}

.faq-accordion__q-text strong {
  font-weight: var(--fw-bold);
  color: inherit;
}

.faq-accordion__caret {
  font-size: 18px;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform .3s var(--easing-out);
}

.faq-accordion__question[aria-expanded="true"] .faq-accordion__caret {
  transform: rotate(180deg);
}

.faq-accordion__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--easing-out);
}

.faq-accordion__answer.is-open {
  grid-template-rows: 1fr;
}

.faq-accordion__answer-inner {
  overflow: hidden;
  min-height: 0;
}

.post-article.prose .faq-accordion__answer-inner p {
  margin: 0 4px 18px;
  font-size: var(--body-sm);
  color: var(--text);
  line-height: 1.65;
}

.post-article.prose .faq-accordion__answer-inner p:last-child {
  margin-bottom: 18px;
}

@media (prefers-reduced-motion: reduce) {
  .faq-accordion__answer { transition: none; }
  .faq-accordion__caret { transition: none; }
}

.service-related__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 0;
  list-style: none;
  margin: 0;
}

.service-related__grid > li { display: flex; }

.service-related__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 22px;
  min-height: 144px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition:
    transform .25s var(--easing-out),
    box-shadow .25s var(--easing-out),
    border-color .25s var(--easing-out);
}

.service-related__card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.service-related__card-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 16px;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.018em;
  color: var(--ink);
  line-height: 1.3;
}

.service-related__card-desc {
  position: relative;
  z-index: 1;
  margin: 6px 0 0;
  font-size: var(--text-sm);
  color: var(--text-soft);
  line-height: 1.55;
  letter-spacing: -0.005em;
  padding-right: 60px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-related__card-icon {
  position: absolute;
  right: -14px;
  bottom: -22px;
  z-index: 0;
  display: inline-flex;
  color: var(--text-faint);
  opacity: .15;
  transform: rotate(-15deg);
  pointer-events: none;
  transition: transform .5s var(--easing-out), opacity .3s var(--easing-out);
}

.service-related__card-icon i {
  font-size: 92px;
  line-height: 1;
}

.service-related__card:hover .service-related__card-icon {
  opacity: 1;
  transform: rotate(-15deg) translate(-4px, -10px);
}

.service-related__card:hover .service-related__card-icon i {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.service-related__card::after {
  content: attr(data-cta) "  →";
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(100% + 24px));
  box-shadow:
    0 6px 18px rgba(var(--primary-rgb), 0.30),
    inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  transition:
    transform .42s cubic-bezier(.22, .9, .25, 1),
    opacity .28s ease,
    box-shadow .3s ease;
}

.service-related__card:hover::after {
  transform: translate(-50%, 0);
  opacity: 1;
  box-shadow:
    0 10px 24px rgba(var(--primary-rgb), 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .service-related__card::after {
    transition: opacity .2s ease;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 768px) {
  .service-related__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .service-related__card { padding: 18px; min-height: 120px; }
  .service-related__card-icon { right: -10px; bottom: -16px; }
  .service-related__card-icon i { font-size: 80px; }
}
