
/* ========== SECTIONS (block layout) ========== */
.hp-section {
  padding: clamp(56px, 8vw, 96px) var(--hp-pad);
}

.hp-section--muted {
  background: color-mix(in srgb, var(--hp-ink) 3%, var(--hp-bg));
  border-block: 1px solid var(--hp-line);
}

.hp-section__inner {
  max-width: var(--hp-max);
  margin: 0 auto;
  min-width: 0;
  width: 100%;
}

.hp-section__head {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 48px);
  min-width: 0;
}

.hp-section__label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hp-accent);
}

.hp-section__title {
  margin: 0 0 12px;
  font-family: var(--hp-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: var(--hp-display-letter-spacing, 0.5px);
  line-height: var(--hp-display-line-height, 1.1);
}

.hp-section__lead,
.hp-section__subtitle {
  margin: 0;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.65;
  color: var(--hp-muted);
}

.hp-section__subtitle {
  margin: 0 0 20px;
  font-family: var(--hp-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--hp-ink);
  letter-spacing: var(--hp-display-letter-spacing, 0.5px);
  line-height: var(--hp-display-line-height, 1.1);
}

.hp-section__actions,
.hp-section__cta {
  margin-top: 32px;
}

/* Marquee */
.hp-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
  border-block: 1px solid var(--hp-line);
  background: var(--hp-bg-elevated);
  padding: 12px 0;
}

.hp-marquee__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(48px, 8vw, 120px);
  z-index: 2;
  pointer-events: none;
}

.hp-marquee__fade--left {
  left: 0;
  background: linear-gradient(90deg, var(--hp-bg-elevated) 0%, transparent 100%);
}

.hp-marquee__fade--right {
  right: 0;
  background: linear-gradient(270deg, var(--hp-bg-elevated) 0%, transparent 100%);
}

.hp-marquee__rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hp-marquee__row {
  overflow: hidden;
}

.hp-marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.hp-marquee__track--forward {
  animation: hp-marquee-forward 38s linear infinite;
  animation-play-state: running;
}

.hp-marquee__track--reverse {
  animation: hp-marquee-reverse 42s linear infinite;
  animation-play-state: running;
  transform: translateX(-50%);
}

.hp-marquee:hover .hp-marquee__track {
  animation-play-state: paused;
}

.hp-marquee__list {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0 5px;
  list-style: none;
}

.hp-marquee__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--hp-pill-border);
  background: var(--hp-pill-bg);
  font-family: var(--hp-display);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--hp-ink-soft);
  white-space: nowrap;
  transition: border-color 0.2s var(--hp-ease), box-shadow 0.2s var(--hp-ease);
}

.hp-marquee__pill::before {
  content: '';
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--hp-muted);
  opacity: 0.45;
}

.hp-marquee__pill--accent {
  border-color: rgba(0, 148, 255, 0.35);
  background: linear-gradient(135deg, rgba(0, 148, 255, 0.14) 0%, rgba(0, 148, 255, 0.06) 100%);
  color: var(--hp-accent);
  font-weight: 700;
}

.hp-marquee__pill--accent::before {
  background: var(--hp-accent);
  opacity: 1;
  box-shadow: 0 0 8px rgba(0, 148, 255, 0.55);
}

.hp-marquee:hover .hp-marquee__pill--accent {
  border-color: rgba(0, 148, 255, 0.55);
  box-shadow: 0 4px 16px rgba(0, 148, 255, 0.12);
}

@keyframes hp-marquee-forward {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes hp-marquee-reverse {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.hp-marquee--single {
  padding: 10px 0;
}

.hp-marquee--single .hp-marquee__track--forward {
  animation-duration: 52s;
}

.hp-marquee--single .hp-marquee__list {
  gap: 8px;
}

.hp-marquee--single .hp-marquee__pill {
  padding: 6px 12px;
  font-size: 12px;
}

@media (min-width: 768px) {
  .hp-marquee--single .hp-marquee__pill {
    padding: 7px 13px;
    font-size: 13px;
  }
}

/* Grids & cards */
.hp-grid {
  display: grid;
  gap: 16px;
}

.hp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hp-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.hp-card {
  padding: 20px;
  border-radius: var(--hp-radius-lg);
  border: 1px solid var(--hp-line);
  background: var(--hp-bg-elevated);
}

.hp-card__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.hp-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--hp-muted);
}

.hp-card--icon .hp-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: color-mix(in srgb, var(--hp-accent) 14%, transparent);
  color: var(--hp-accent);
  font-size: 12px;
  font-weight: 800;
}

.hp-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.hp-stat {
  padding: 16px;
  border-radius: var(--hp-radius);
  border: 1px solid var(--hp-line);
  background: var(--hp-bg-elevated);
}

.hp-stat b {
  display: block;
  font-family: var(--hp-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 6px;
}

.hp-stat span {
  font-size: 16px;
  line-height: 1.3;
  color: var(--hp-muted);
}

.hp-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.hp-case {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--hp-radius-lg);
  border: 1px solid var(--hp-line);
  background: color-mix(in srgb, var(--hp-bg-elevated) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.35s var(--hp-ease),
    box-shadow 0.35s var(--hp-ease),
    border-color 0.35s var(--hp-ease),
    background 0.35s var(--hp-ease);
}

.hp-case::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: var(--hp-accent);
  opacity: 0;
  transform: scaleY(0.6);
  transition: opacity 0.35s var(--hp-ease), transform 0.35s var(--hp-ease);
  z-index: 2;
  pointer-events: none;
}

.hp-case:hover {
  transform: translateY(-8px);
  box-shadow: var(--hp-shadow);
  border-color: color-mix(in srgb, var(--hp-accent) 32%, var(--hp-line));
  background: var(--hp-bg-elevated);
}

.hp-case:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.hp-case:active {
  transform: translateY(-3px);
}

.hp-case__media {
  position: relative;
  display: block;
  margin: 10px 10px 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: calc(var(--hp-radius-lg) - 8px);
  background: color-mix(in srgb, var(--hp-ink) 6%, transparent);
}

.hp-case__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 55%,
    color-mix(in srgb, var(--hp-ink) 18%, transparent) 100%
  );
  opacity: 0;
  transition: opacity 0.4s var(--hp-ease);
  pointer-events: none;
  z-index: 1;
}

.hp-case:hover .hp-case__media::after {
  opacity: 1;
}

.hp-case__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--hp-ease);
}

.hp-case:hover .hp-case__media img {
  transform: scale(1.06);
}

.hp-case__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 20px;
  min-width: 0;
}

.hp-case__title {
  margin: 0;
  font-family: var(--hp-display);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 400;
  line-height: var(--hp-display-line-height, 1.1);
  letter-spacing: var(--hp-display-letter-spacing, 0.5px);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hp-case__title a {
  display: inline;
  color: var(--hp-ink);
  transition: color 0.25s var(--hp-ease);
}

.hp-case:hover .hp-case__title a {
  color: var(--hp-accent);
}

.hp-case__meta {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--hp-muted);
}

.hp-case__more {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--hp-accent);
  transition: transform 0.25s var(--hp-ease), opacity 0.25s var(--hp-ease);
}

.hp-case:hover .hp-case__more {
  transform: translateX(3px);
}

/* Roadmap / steps — infinite marquee strip */
.hp-section--steps {
  overflow: clip;
}

.hp-roadmap {
  position: relative;
}

.hp-roadmap__fade {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(36px, 7vw, 96px);
  z-index: 3;
  pointer-events: none;
}

.hp-roadmap__fade--left {
  left: 0;
  background: linear-gradient(90deg, var(--hp-bg) 8%, transparent 100%);
}

.hp-roadmap__fade--right {
  right: 0;
  background: linear-gradient(270deg, var(--hp-bg) 8%, transparent 100%);
}

.hp-roadmap__viewport {
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hp-roadmap__viewport::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.hp-roadmap__track {
  display: block;
}

.hp-roadmap__set {
  display: grid;
  gap: 10px;
}

.hp-roadmap:not(.is-marquee) .hp-roadmap__set[aria-hidden="true"] {
  display: none;
}

.hp-roadmap__step {
  min-width: 0;
}

.hp-roadmap__card {
  border-radius: var(--hp-radius-lg);
  border: 1px solid var(--hp-line);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--hp-accent) 7%, transparent) 0%, transparent 42%),
    var(--hp-bg-elevated);
  overflow: hidden;
  transition:
    border-color 0.25s var(--hp-ease),
    box-shadow 0.25s var(--hp-ease),
    transform 0.25s var(--hp-ease);
}

.hp-roadmap__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.hp-roadmap__head::-webkit-details-marker { display: none; }

.hp-roadmap__num {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-family: var(--hp-display);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  background: color-mix(in srgb, var(--hp-ink) 6%, transparent);
  color: var(--hp-muted);
  border: 1px solid color-mix(in srgb, var(--hp-ink) 8%, transparent);
  transition: background 0.25s var(--hp-ease), color 0.25s var(--hp-ease), border-color 0.25s, box-shadow 0.25s;
}

.hp-roadmap__step--active .hp-roadmap__num,
.hp-roadmap__step.is-highlight .hp-roadmap__num {
  background: color-mix(in srgb, var(--hp-accent) 18%, transparent);
  color: var(--hp-accent);
  border-color: color-mix(in srgb, var(--hp-accent) 40%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hp-accent) 14%, transparent);
}

.hp-roadmap__title {
  margin: 0;
  font-family: var(--hp-display);
  font-size: 16px;
  font-weight: 400;
  line-height: var(--hp-display-line-height, 1.1);
  letter-spacing: var(--hp-display-letter-spacing, 0.5px);
}

.hp-roadmap__details {
  list-style: none;
  margin: 0;
  padding: 0 20px 18px 74px;
  display: none;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--hp-muted);
}

.hp-roadmap__card[open] .hp-roadmap__details {
  display: flex;
}

.hp-roadmap__details li {
  position: relative;
  padding-left: 14px;
}

.hp-roadmap__details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--hp-accent);
  opacity: 0.55;
}

/* Infinite horizontal marquee (JS adds .is-marquee + clones set) */
.hp-roadmap.is-marquee .hp-roadmap__fade {
  display: block;
}

.hp-roadmap.is-marquee .hp-roadmap__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: hp-roadmap-marquee 70s linear infinite;
  animation-play-state: running;
}

.hp-roadmap.is-marquee:hover .hp-roadmap__track,
.hp-roadmap.is-marquee:focus-within .hp-roadmap__track,
.hp-roadmap.is-marquee.is-paused .hp-roadmap__track {
  animation-play-state: paused;
}

.hp-roadmap.is-marquee .hp-roadmap__set {
  display: flex;
  flex-shrink: 0;
  align-items: stretch;
  gap: 0;
}

.hp-roadmap.is-marquee .hp-roadmap__step {
  position: relative;
  flex: 0 0 clamp(210px, 68vw, 248px);
  padding-right: 20px;
}

.hp-roadmap.is-marquee .hp-roadmap__step::after {
  content: "";
  position: absolute;
  top: 42px;
  right: 2px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--hp-accent), color-mix(in srgb, var(--hp-accent) 20%, var(--hp-line)));
  opacity: 0.55;
  box-shadow: 0 0 10px color-mix(in srgb, var(--hp-accent) 35%, transparent);
}

.hp-roadmap.is-marquee .hp-roadmap__card {
  height: 100%;
  min-height: 198px;
}

.hp-roadmap.is-marquee .hp-roadmap__card:hover,
.hp-roadmap.is-marquee .hp-roadmap__step.is-highlight .hp-roadmap__card {
  border-color: color-mix(in srgb, var(--hp-accent) 45%, var(--hp-line));
  box-shadow:
    0 12px 32px color-mix(in srgb, var(--hp-ink) 8%, transparent),
    0 0 0 1px color-mix(in srgb, var(--hp-accent) 18%, transparent);
  transform: translateY(-3px);
}

.hp-roadmap.is-marquee .hp-roadmap__head {
  pointer-events: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 20px 12px;
  cursor: default;
}

.hp-roadmap.is-marquee .hp-roadmap__num {
  width: 48px;
  height: 48px;
  font-size: 15px;
  border-radius: 16px;
}

.hp-roadmap.is-marquee .hp-roadmap__title {
  font-size: 17px;
}

.hp-roadmap.is-marquee .hp-roadmap__details,
.hp-roadmap.is-marquee .hp-roadmap__card[open] .hp-roadmap__details,
.hp-roadmap.is-marquee .hp-roadmap__card .hp-roadmap__details {
  display: flex;
  padding: 0 20px 20px;
}

@keyframes hp-roadmap-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (min-width: 768px) {
  .hp-roadmap.is-marquee .hp-roadmap__track {
    animation-duration: 58s;
  }

  .hp-roadmap.is-marquee .hp-roadmap__step {
    flex-basis: clamp(230px, 22vw, 260px);
  }
}

@media (min-width: 1200px) {
  .hp-roadmap.is-marquee .hp-roadmap__track {
    animation-duration: 52s;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-animations="on"]) .hp-roadmap.is-marquee .hp-roadmap__track {
    animation: none;
  }

  html:not([data-animations="on"]) .hp-roadmap__set[aria-hidden="true"] {
    display: none;
  }

  html:not([data-animations="on"]) .hp-roadmap__fade {
    display: none;
  }
}

/* Masonry / reviews */
.hp-section--reviews {
  background: color-mix(in srgb, var(--hp-ink) 2%, var(--hp-bg));
  border-block: 1px solid var(--hp-line);
}

.hp-section__head--compact {
  margin-bottom: 20px;
}

.hp-section--reviews-full .hp-section__head--compact + .hp-masonry {
  margin-bottom: clamp(32px, 5vw, 48px);
}

.hp-masonry {
  columns: 2;
  column-gap: 16px;
}

.hp-masonry--2 {
  columns: 2;
  column-gap: 20px;
}

.hp-masonry:not(.hp-masonry--cards) .hp-masonry__item {
  display: block;
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--hp-line);
  background: var(--hp-bg-elevated);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--hp-ink) 4%, transparent);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hp-masonry:not(.hp-masonry--cards) .hp-masonry__item:hover {
  transform: scale(1.015);
  border-color: color-mix(in srgb, var(--hp-accent) 35%, var(--hp-line));
  box-shadow: var(--hp-shadow);
}

.hp-masonry:not(.hp-masonry--cards) .hp-masonry__item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
}

.hp-masonry--cards .hp-masonry__item {
  break-inside: avoid;
  margin-bottom: 20px;
}

.hp-masonry--cards .hp-case__media,
.hp-masonry--cards .hp-blog-card__media {
  aspect-ratio: auto;
}

.hp-masonry--cards .hp-case__media img,
.hp-masonry--cards .hp-blog-card__media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hp-masonry--cards .hp-case__media {
  margin: 10px 10px 0;
  border-radius: calc(var(--hp-radius-lg) - 8px);
}

@media (min-width: 768px) {
  .hp-masonry:not(.hp-masonry--2) {
    columns: 3;
  }
}

@media (min-width: 1024px) {
  .hp-masonry:not(.hp-masonry--2) {
    columns: 4;
  }
}

@media (max-width: 640px) {
  .hp-masonry,
  .hp-masonry--2 {
    columns: 1;
  }

  .hp-masonry__item,
  .hp-masonry--cards .hp-masonry__item {
    max-width: 100%;
  }
}

/* Reviews / gratitude — compact tiles (~1.5× smaller) */
.hp-masonry--reviews {
  columns: 2;
  column-gap: 10px;
}

.hp-masonry--reviews:not(.hp-masonry--cards) .hp-masonry__item {
  margin-bottom: 10px;
  border-radius: 8px;
}

.hp-masonry--reviews:not(.hp-masonry--cards) .hp-masonry__item:hover {
  transform: scale(1.01);
}

.hp-masonry--reviews:not(.hp-masonry--cards) .hp-masonry__item img {
  max-height: 180px;
  object-fit: contain;
}

@media (min-width: 641px) {
  .hp-masonry--reviews {
    columns: 3;
  }
}

@media (min-width: 768px) {
  .hp-masonry--reviews {
    columns: 4;
  }
}

@media (min-width: 1024px) {
  .hp-masonry--reviews {
    columns: 6;
  }
}

/* Legacy gallery (fallback) */
.hp-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.hp-gallery__item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--hp-line);
  background: var(--hp-bg-elevated);
  aspect-ratio: 4 / 3;
}

.hp-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Team */
.hp-team {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.hp-team__card {
  border-radius: var(--hp-radius-lg);
  border: 1px solid var(--hp-line);
  background: var(--hp-bg-elevated);
  overflow: hidden;
}

.hp-team__photo {
  aspect-ratio: 1;
  overflow: hidden;
  background: color-mix(in srgb, var(--hp-ink) 6%, transparent);
}

.hp-team__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-team__body {
  padding: 16px;
}

.hp-team__name {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
}

.hp-team__role {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--hp-muted);
}

.hp-team__mail {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--hp-accent);
}

.hp-team__social {
  display: flex;
  gap: 8px;
}

.hp-team__social a {
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--hp-line);
  font-size: 11px;
  font-weight: 700;
}

/* FAQ */
.hp-section--faq .hp-section__inner {
  overflow: visible;
}

.hp-faq {
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.hp-faq--page {
  max-width: 760px;
  margin: 0 auto;
  gap: 12px;
}

.hp-faq__item {
  border-radius: var(--hp-radius);
  border: 1px solid var(--hp-line);
  background: var(--hp-bg-elevated);
  padding: 0 clamp(14px, 2.5vw, 20px);
  overflow: clip;
  transition: border-color 0.2s var(--hp-ease, ease), box-shadow 0.2s var(--hp-ease, ease);
}

.hp-faq__item[open] {
  border-color: color-mix(in srgb, var(--hp-accent) 36%, var(--hp-line));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--hp-accent) 8%, transparent);
}

.hp-faq__item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--hp-ink);
  cursor: pointer;
  list-style: none;
}

.hp-faq__item summary::-webkit-details-marker,
.hp-faq__item summary::marker {
  display: none;
  content: "";
}

.hp-faq__item summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 1.5em;
  margin-top: 0.05em;
  color: var(--hp-accent);
  font-size: 1.25em;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  transition: transform 0.2s var(--hp-ease, ease);
}

.hp-faq__item[open] summary::after {
  content: "−";
}

.hp-faq__item summary:focus-visible {
  outline: 2px solid var(--hp-accent);
  outline-offset: 4px;
  border-radius: 6px;
}

.hp-faq__item p {
  margin: 0 0 18px;
  max-width: 68ch;
  font-size: clamp(14px, 1.4vw, 15px);
  line-height: 1.7;
  color: var(--hp-muted);
}

.hp-faq__item a {
  color: var(--hp-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 640px) {
  .hp-faq__item summary {
    padding: 14px 0;
    gap: 10px;
  }

  .hp-faq__item p {
    margin-bottom: 14px;
  }
}

/* Partners & clients */
.hp-partners__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 640px) {
  .hp-partners__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (min-width: 1024px) {
  .hp-partners__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
  }
}

.hp-partners__logo {
  display: grid;
  place-items: center;
  min-height: clamp(72px, 11vw, 112px);
  padding: clamp(14px, 2vw, 22px);
  border-radius: var(--hp-radius);
  border: 1px solid var(--hp-line);
  background: var(--hp-bg-elevated);
  text-decoration: none;
  transition:
    border-color 0.25s var(--hp-ease),
    background 0.25s var(--hp-ease),
    transform 0.25s var(--hp-ease),
    box-shadow 0.25s var(--hp-ease);
}

/* Light theme: slate cards so grey/white logos aren't lost on pure white */
html[data-theme="light"] .hp-partners__logo {
  background: #e8eaee;
  border-color: color-mix(in srgb, #9aa3b2 35%, transparent);
}

a.hp-partners__logo:hover,
a.hp-partners__logo:focus-visible {
  border-color: color-mix(in srgb, var(--hp-accent) 40%, var(--hp-line));
  background: color-mix(in srgb, var(--hp-accent) 5%, var(--hp-bg-elevated));
  transform: translateY(-2px);
  box-shadow: var(--hp-shadow);
}

html[data-theme="light"] a.hp-partners__logo:hover,
html[data-theme="light"] a.hp-partners__logo:focus-visible {
  background: color-mix(in srgb, var(--hp-accent) 8%, #e8eaee);
}

.hp-partners__logo img {
  display: block;
  max-width: min(100%, 140px);
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.7);
  transition: filter 0.3s var(--hp-ease);
}

html[data-theme="light"] .hp-partners__logo img {
  filter: grayscale(1) opacity(0.82);
}

.hp-partners__logo:hover img,
.hp-partners__logo:focus-within img {
  filter: grayscale(0) opacity(1);
}

/* White/light-on-transparent assets: invert only in light theme */
html[data-theme="light"] .hp-partners__logo.hp-logo--light-invert img,
html[data-theme="light"] .hp-partners__logo--bright img {
  filter: grayscale(1) invert(1) opacity(0.78);
}

html[data-theme="light"] .hp-partners__logo.hp-logo--light-invert:hover img,
html[data-theme="light"] .hp-partners__logo.hp-logo--light-invert:focus-within img,
html[data-theme="light"] .hp-partners__logo--bright:hover img,
html[data-theme="light"] .hp-partners__logo--bright:focus-within img {
  filter: grayscale(0) invert(1) opacity(1);
}

/* Dark theme: slight brighten for pale logos (no invert) */
html[data-theme="dark"] .hp-partners__logo.hp-logo--light-invert img,
html[data-theme="dark"] .hp-partners__logo--bright img,
:root[data-theme="dark"] .hp-partners__logo--bright img {
  filter: grayscale(1) opacity(0.9) brightness(1.25);
}

html[data-theme="dark"] .hp-partners__logo.hp-logo--light-invert:hover img,
html[data-theme="dark"] .hp-partners__logo.hp-logo--light-invert:focus-within img,
html[data-theme="dark"] .hp-partners__logo--bright:hover img,
html[data-theme="dark"] .hp-partners__logo--bright:focus-within img,
.hp-partners__logo--bright:hover img,
.hp-partners__logo--bright:focus-within img {
  filter: grayscale(0) opacity(1) brightness(1);
}

/* Page head (inner pages) */
.hp-pagehead {
  padding: clamp(32px, 5vw, 56px) var(--hp-pad) clamp(24px, 3vw, 32px);
  border-bottom: 1px solid var(--hp-line);
  background: color-mix(in srgb, var(--hp-ink) 2%, var(--hp-bg));
}

.hp-pagehead__inner {
  max-width: var(--hp-max);
  margin: 0 auto;
}

.hp-pagehead__title {
  margin: 0 0 12px;
  font-family: var(--hp-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400;
  letter-spacing: var(--hp-display-letter-spacing, 0.5px);
  line-height: var(--hp-display-line-height, 1.1);
}

.hp-pagehead .breadcrumbs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--hp-muted);
}

.hp-pagehead .breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  opacity: 0.4;
}

.hp-pagehead .breadcrumbs a:hover {
  color: var(--hp-accent);
}

/* Search block wrapper */
.hp-block--search {
  padding: 20px;
  border-radius: var(--hp-radius-lg);
  border: 1px solid var(--hp-line);
  background: var(--hp-bg-elevated);
}

.hp-block--search .Hpace-Field-Search-Input-Vue input {
  border-radius: 12px !important;
  border-color: var(--hp-line) !important;
  background: var(--hp-bg) !important;
  color: var(--hp-ink) !important;
}

.hp-search-teaser {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--hp-accent) 24%, var(--hp-line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--hp-accent) 7%, var(--hp-bg)), var(--hp-bg));
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.25s var(--hp-ease), transform 0.2s var(--hp-ease);
}

.hp-search-teaser:hover {
  border-color: color-mix(in srgb, var(--hp-accent) 50%, var(--hp-line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--hp-accent) 12%, transparent);
  transform: translateY(-1px);
}

.hp-search-teaser__icon {
  flex: 0 0 auto;
  display: inline-flex;
  color: var(--hp-accent);
}

.hp-search-teaser__text {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.hp-search-teaser__placeholder {
  font-family: var(--hp-display);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--hp-ink);
}

.hp-search-teaser__hint {
  font-size: 13px;
  color: var(--hp-muted);
}

.hp-search-teaser__kbd {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--hp-line);
  background: var(--hp-bg-elevated);
  color: var(--hp-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .hp-search-teaser__kbd {
    display: none;
  }
}

/* Inner page legacy sections — base cleanup */
.hp-site .tf-section,
.hp-site .tf-container,
.hp-site .tf-page-title {
  font-family: var(--hp-font);
}

.hp-site .tf-section {
  padding: clamp(40px, 6vw, 72px) var(--hp-pad);
}

.hp-site .tf-container {
  max-width: var(--hp-max);
  margin: 0 auto;
  padding: 0;
}

@media (max-width: 1024px) {
  .hp-grid--4,
  .hp-card-grid,
  .hp-team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hp-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hp-grid--3,
  .hp-grid--4,
  .hp-card-grid,
  .hp-team,
  .hp-stats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-animations="on"]) .hp-marquee__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    gap: 8px;
  }

  html:not([data-animations="on"]) .hp-marquee__list[aria-hidden='true'] {
    display: none;
  }

  html:not([data-animations="on"]) .hp-marquee__fade {
    display: none;
  }

  html:not([data-animations="on"]) .hp-marquee__rows,
  html:not([data-animations="on"]) .hp-marquee--single .hp-marquee__row {
    gap: 12px;
    padding-inline: var(--hp-pad);
  }
}

/* ========== INNER PAGES ========== */
.hp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.hp-filters__item {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--hp-line);
  background: var(--hp-bg-elevated);
  font-size: 13px;
  font-weight: 600;
  color: var(--hp-muted);
  transition: 0.2s;
}

.hp-filters__item:hover,
.hp-filters__item.is-active {
  border-color: var(--hp-accent);
  color: var(--hp-ink);
  background: color-mix(in srgb, var(--hp-accent) 10%, var(--hp-bg-elevated));
}

.hp-case__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--hp-muted);
}

@media (max-width: 640px) {
  .hp-case__title {
    font-size: clamp(17px, 4.6vw, 20px);
  }

  .hp-case__body {
    padding: 14px 14px 16px;
  }

  .hp-case__media {
    margin: 8px 8px 0;
    border-radius: calc(var(--hp-radius-lg) - 10px);
  }
}

.hp-card-grid--blog {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hp-blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-lg);
  overflow: hidden;
  background: var(--hp-bg-elevated);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hp-blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--hp-shadow);
}

.hp-blog-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: color-mix(in srgb, var(--hp-ink) 6%, transparent);
}

.hp-blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-blog-card__body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hp-blog-card__meta {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--hp-muted);
}

.hp-blog-card__title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.hp-blog-card__text {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--hp-muted);
  flex: 1;
}

.hp-blog-card__more {
  font-size: 14px;
  font-weight: 700;
  color: var(--hp-accent);
}

.hp-directions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hp-direction {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: var(--hp-radius-lg);
  border: 1px solid var(--hp-line);
  background: var(--hp-bg-elevated);
  min-height: 180px;
  transition: border-color 0.25s var(--hp-ease), transform 0.25s var(--hp-ease), box-shadow 0.25s var(--hp-ease);
}

.hp-direction:hover {
  border-color: var(--hp-accent);
  transform: translateY(-4px);
  box-shadow: var(--hp-shadow);
}

.hp-direction__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--hp-accent) 12%, transparent);
  color: var(--hp-accent);
}

.hp-direction__icon svg {
  width: 22px;
  height: 22px;
}

.hp-direction__num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--hp-accent);
}

.hp-direction__title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.hp-direction__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--hp-muted);
  flex: 1;
}

.hp-direction__link {
  font-size: 13px;
  font-weight: 700;
  color: var(--hp-ink);
}

.hp-service-list {
  display: grid;
  gap: 10px;
}

.hp-service-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--hp-line);
  background: var(--hp-bg-elevated);
  transition: border-color 0.2s;
}

.hp-service-row:hover {
  border-color: var(--hp-accent);
}

.hp-service-row__title {
  font-size: 16px;
  font-weight: 700;
}

.hp-service-row__price {
  font-size: 13px;
  font-weight: 600;
  color: var(--hp-muted);
  white-space: nowrap;
}

.hp-service-row__arrow {
  color: var(--hp-accent);
  font-weight: 700;
}

.hp-prose {
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--hp-ink);
}

.hp-prose h2,
.hp-prose h3 {
  margin: 1.6em 0 0.6em;
  font-family: var(--hp-display);
  letter-spacing: var(--hp-display-letter-spacing, 0.5px);
  line-height: var(--hp-display-line-height, 1.1);
}

.hp-prose p {
  margin: 0 0 1em;
}

.hp-prose ul,
.hp-prose ol {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

.hp-prose a {
  color: var(--hp-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hp-docs {
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--hp-ink);
}

.hp-docs h2,
.hp-docs h3,
.hp-docs h4,
.hp-docs h5 {
  margin: 1.6em 0 0.6em;
  font-family: var(--hp-display);
  letter-spacing: var(--hp-display-letter-spacing, 0.5px);
  line-height: var(--hp-display-line-height, 1.1);
}

.hp-docs p {
  margin: 0 0 1em;
}

/* Список документов (индекс) — только прямые ul, не списки внутри таблиц */
.hp-docs > ul,
.hp-docs .hp-doc-card {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.hp-docs > ul > li,
.hp-doc-card {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--hp-line);
  background: var(--hp-bg-elevated);
}

.hp-docs a {
  font-weight: 700;
  color: var(--hp-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/*
  Таблицы политик (label|value): каждая строка — свой grid,
  чтобы лейблы не «плыли» относительно карточек разной высоты.
*/
.hp-docs table {
  width: 100%;
  margin: 1.25em 0 1.75em;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
}

.hp-docs table tbody {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hp-docs table tr {
  display: grid;
  grid-template-columns: minmax(9rem, 13.5rem) 1fr;
  gap: 12px 20px;
  align-items: start;
  width: 100%;
}

.hp-docs table th,
.hp-docs table td {
  display: block;
  width: auto;
  max-width: none;
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  vertical-align: top;
  text-align: left;
  font-weight: inherit;
  box-sizing: border-box;
}

.hp-docs table th {
  padding: 14px 0 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--hp-muted);
}

.hp-docs table td {
  min-width: 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--hp-line);
  background: var(--hp-bg-elevated);
  color: var(--hp-ink);
}

.hp-docs table td ul,
.hp-docs table td ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hp-docs table td li {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

@media (max-width: 640px) {
  .hp-docs table tr {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hp-docs table th {
    padding: 0;
    white-space: normal;
  }
}

.hp-pagination {
  margin-top: 28px;
}

.hp-pagination ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.hp-pagination a,
.hp-pagination span {
  display: inline-flex;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--hp-line);
  font-size: 14px;
  font-weight: 600;
}

.hp-pagination .active span {
  background: var(--hp-accent);
  border-color: var(--hp-accent);
  color: #fff;
}

.hp-article__inner {
  max-width: 820px;
}

.hp-article__cover {
  margin: 0 0 24px;
  border-radius: var(--hp-radius-lg);
  overflow: hidden;
}

.hp-article__cover img {
  width: 100%;
  display: block;
}

.hp-article__meta {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--hp-muted);
}

.hp-article__title {
  margin: 0 0 24px;
  font-family: var(--hp-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: var(--hp-display-letter-spacing, 0.5px);
  line-height: var(--hp-display-line-height, 1.1);
}

.hp-article__share {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--hp-line);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--hp-muted);
}

@media (max-width: 900px) {
  .hp-card-grid--blog,
  .hp-directions {
    grid-template-columns: 1fr;
  }
}

/* ========== BENTO GRID ========== */
.hp-pagehead--contacts {
  padding-bottom: clamp(28px, 4vw, 40px);
}

.hp-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.hp-bento--about,
.hp-bento--case-blocks {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hp-bento--start,
.hp-bento--reviews {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hp-bento--leader {
  grid-template-columns: 1fr 1.2fr;
  align-items: stretch;
}

.hp-bento--case-meta {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.hp-bento__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: var(--hp-radius-lg);
  border: 1px solid var(--hp-line);
  background: var(--hp-bg-elevated);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  min-height: 0;
}

a.hp-bento__card:hover {
  border-color: color-mix(in srgb, var(--hp-accent) 40%, var(--hp-line));
  transform: translateY(-2px);
  box-shadow: var(--hp-shadow);
}

.hp-bento__card--wide {
  grid-column: span 2;
}

.hp-bento__card--telegram {
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, color-mix(in srgb, var(--hp-accent) 28%, transparent), transparent 60%),
    var(--hp-bg-elevated);
}

.hp-bento__card--accent,
.hp-stat--accent {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--hp-accent) 12%, var(--hp-bg-elevated)), var(--hp-bg-elevated));
  border-color: color-mix(in srgb, var(--hp-accent) 22%, var(--hp-line));
}

.hp-bento__card--meta {
  padding: 16px 18px;
  text-align: center;
}

.hp-bento__card--meta strong {
  display: block;
  font-family: var(--hp-display);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400;
  line-height: 1.15;
}

.hp-bento__card--budget strong {
  color: var(--hp-accent);
}

.hp-bento__card--photo {
  padding: 0;
  overflow: hidden;
}

.hp-bento__card--photo img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.hp-bento__card--profile {
  justify-content: center;
}

.hp-bento--director {
  margin-bottom: 28px;
}

.hp-bento--director .hp-bento__card--photo img {
  min-height: 360px;
  aspect-ratio: 1 / 1;
}

.hp-director-links {
  list-style: none;
  margin: 4px 0 8px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.hp-director-links li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: baseline;
}

.hp-director-links__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hp-muted);
}

.hp-director-links a {
  color: var(--hp-ink);
  font-weight: 700;
  text-decoration: none;
  word-break: break-word;
}

.hp-director-links a:hover {
  color: var(--hp-accent);
}

.hp-director-links__note {
  grid-column: 2;
  margin-top: -2px;
  font-size: 12px;
  color: var(--hp-muted);
}

@media (max-width: 640px) {
  .hp-director-links li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .hp-director-links__note {
    grid-column: 1;
  }

  .hp-bento--director .hp-bento__card--photo img {
    min-height: 260px;
  }
}

.hp-bento__card--icon .hp-bento__title {
  font-size: clamp(18px, 2vw, 22px);
}

.hp-bento__card--cta .hp-bento__actions {
  margin-top: auto;
  padding-top: 8px;
}

.hp-bento__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hp-accent);
}

.hp-bento__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--hp-accent) 14%, transparent);
  font-size: 18px;
}

.hp-bento__icon--svg .hp-ico {
  width: 22px;
  height: 22px;
  color: var(--hp-accent);
}

.hp-bento__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hp-bento__label .hp-ico {
  width: 14px;
  height: 14px;
}

.hp-director-links__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hp-director-links__label .hp-ico,
.hp-director-links__note .hp-ico {
  width: 14px;
  height: 14px;
}

.hp-director-links__note {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.hp-team__social .hp-ico {
  width: 14px;
  height: 14px;
}

.hp-bento__title {
  margin: 0;
  font-family: var(--hp-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
  letter-spacing: var(--hp-display-letter-spacing, 0.5px);
  line-height: var(--hp-display-line-height, 1.1);
}

.hp-bento__role {
  margin: -4px 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--hp-muted);
}

.hp-bento__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--hp-muted);
}

.hp-bento__cta {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--hp-accent);
}

.hp-bento__num {
  font-family: var(--hp-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1;
  color: var(--hp-accent);
}

.hp-bento__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hp-stats--inline {
  margin-bottom: 24px;
}

.hp-stats--inline .hp-stat {
  text-align: center;
}

/* Tags / expertise pills */
.hp-tags {
  margin-top: 8px;
}

.hp-tags__label {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hp-muted);
}

.hp-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hp-tag {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--hp-line);
  background: var(--hp-bg-elevated);
  font-size: 13px;
  font-weight: 600;
  color: var(--hp-muted);
}

.hp-about__photo {
  margin: 0 0 28px;
  border-radius: var(--hp-radius-lg);
  overflow: hidden;
  border: 1px solid var(--hp-line);
}

.hp-about__photo img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Case detail — selling layout */
.hp-case-detail {
  padding-top: clamp(28px, 4vw, 40px);
}

.hp-case-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(20px, 3.5vw, 48px);
  align-items: center;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.hp-case-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.hp-case-hero__tags a,
.hp-case-hero__tags .tag,
.hp-case-hero__tags span {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--hp-pill-border);
  background: var(--hp-pill-bg);
  color: var(--hp-ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.hp-case-hero__title {
  margin: 0 0 14px;
  font-family: var(--hp-display);
  font-size: clamp(32px, 5.2vw, 56px);
  font-weight: 400;
  letter-spacing: var(--hp-display-letter-spacing, 0.5px);
  line-height: var(--hp-display-line-height, 1.1);
  color: var(--hp-ink);
  overflow-wrap: anywhere;
}

.hp-case-hero__lead {
  margin: 0 0 22px;
  max-width: 42ch;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.65;
  color: var(--hp-muted);
}

.hp-case-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hp-case-hero__media {
  position: relative;
  margin: 0;
  border-radius: var(--hp-radius-lg);
  overflow: hidden;
  border: 1px solid var(--hp-line);
  background:
    radial-gradient(ellipse 70% 55% at 20% 10%, color-mix(in srgb, var(--hp-accent) 18%, transparent), transparent 60%),
    var(--hp-bg-elevated);
  box-shadow: var(--hp-shadow);
  min-height: 0;
}

.hp-case-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(160deg, transparent 55%, color-mix(in srgb, var(--hp-ink) 18%, transparent));
  opacity: 0.55;
}

.hp-case-hero__media img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.7s var(--hp-ease);
}

.hp-case-hero.is-visible .hp-case-hero__media img {
  transform: scale(1);
}

.hp-case-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.hp-case-results__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: clamp(16px, 2.2vw, 22px);
  border-radius: var(--hp-radius-lg);
  border: 1px solid var(--hp-line);
  background: var(--hp-bg-elevated);
  text-align: left;
}

.hp-case-results__item--accent {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--hp-accent) 14%, var(--hp-bg-elevated)), var(--hp-bg-elevated));
  border-color: color-mix(in srgb, var(--hp-accent) 24%, var(--hp-line));
}

.hp-case-results__item--soft {
  background: color-mix(in srgb, var(--hp-ink) 2%, var(--hp-bg-elevated));
}

.hp-case-results__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hp-muted);
}

.hp-case-results__item--accent .hp-case-results__label {
  color: var(--hp-accent);
}

.hp-case-results__value {
  font-family: var(--hp-display);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--hp-ink);
  overflow-wrap: anywhere;
}

.hp-case-results__value--sm {
  font-size: clamp(18px, 2.4vw, 24px);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hp-case-results__value--accent {
  color: var(--hp-accent);
}

.hp-case-stack,
.hp-case-story {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.hp-case-stack__head,
.hp-case-story__head {
  margin-bottom: 16px;
}

.hp-case-stack__eyebrow,
.hp-case-story__eyebrow,
.hp-case-cta-band__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hp-accent);
}

.hp-case-stack__title,
.hp-case-story__title,
.hp-case-cta-band__title {
  margin: 0;
  font-family: var(--hp-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  letter-spacing: var(--hp-display-letter-spacing, 0.5px);
  line-height: var(--hp-display-line-height, 1.1);
}

.hp-case-stack__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hp-case-stack__group {
  min-width: 0;
  padding: 18px 18px 16px;
  border-radius: var(--hp-radius-lg);
  border: 1px solid var(--hp-line);
  background: var(--hp-bg-elevated);
}

.hp-case-stack__label {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hp-muted);
}

.hp-case-stack__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hp-case-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--hp-pill-border);
  background: var(--hp-pill-bg);
  color: var(--hp-ink-soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.hp-case-story__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hp-case-story__card {
  min-width: 0;
  padding: clamp(18px, 2.4vw, 24px);
  border-radius: var(--hp-radius-lg);
  border: 1px solid var(--hp-line);
  background: var(--hp-bg-elevated);
}

.hp-case-story__card--accent {
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--hp-accent) 10%, var(--hp-bg-elevated)), var(--hp-bg-elevated));
  border-color: color-mix(in srgb, var(--hp-accent) 22%, var(--hp-line));
}

.hp-case-story__step {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hp-accent);
}

.hp-case-story__card .hp-prose {
  max-width: none;
  font-size: 15px;
}

.hp-case-cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  gap: 20px;
  align-items: center;
  margin-top: 8px;
  margin-bottom: 8px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--hp-radius-lg);
  border: 1px solid color-mix(in srgb, var(--hp-accent) 22%, var(--hp-line));
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, color-mix(in srgb, var(--hp-accent) 16%, transparent), transparent 55%),
    var(--hp-bg-elevated);
}

.hp-case-cta-band__text {
  margin: 10px 0 0;
  max-width: 48ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--hp-muted);
}

.hp-case-cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.hp-case-detail__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 32px;
}

.hp-case-detail__gallery:empty {
  display: none;
  margin: 0;
}

.hp-case-detail__thumb {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--hp-line);
  aspect-ratio: 4 / 3;
}

.hp-case-detail__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-case-detail__heading {
  margin: 0 0 14px;
  font-family: var(--hp-display);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 400;
  letter-spacing: var(--hp-display-letter-spacing, 0.5px);
  line-height: var(--hp-display-line-height, 1.1);
}

.hp-case-detail__block {
  margin-bottom: 32px;
}

.hp-case-detail__block .hp-prose {
  max-width: none;
  font-size: clamp(13.5px, 1.25vw, 15px);
  line-height: 1.7;
  color: var(--hp-muted);
}

/* Чередование image → text как на new.hpace.ru */
.hp-case-shot {
  margin: 0 0 clamp(20px, 3vw, 32px);
  border-radius: var(--hp-radius-lg);
  overflow: hidden;
  border: 1px solid var(--hp-line);
  background: var(--hp-bg-elevated);
}

.hp-case-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.hp-case-copy {
  width: 100%;
  max-width: none;
  margin: clamp(24px, 3.5vw, 40px) 0 clamp(44px, 6vw, 72px);
  padding-block: clamp(8px, 1.2vw, 16px);
  font-size: clamp(13.5px, 1.25vw, 15px);
  line-height: 1.7;
  color: var(--hp-muted);
}

.hp-case-copy > h3 {
  margin: 0 0 0.5em;
  max-width: none;
  font-family: var(--hp-display);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 400;
  letter-spacing: var(--hp-display-letter-spacing, 0.5px);
  line-height: var(--hp-display-line-height, 1.1);
  color: var(--hp-ink);
}

.hp-case-copy > h3:not(:first-child) {
  margin-top: 1.35em;
  padding-top: 1.1em;
  border-top: 1px solid var(--hp-line);
}

.hp-case-copy > p {
  margin: 0 0 0.9em;
  max-width: none;
}

.hp-case-copy > p:last-child {
  margin-bottom: 0;
}

/* Обычные блоки с несколькими h3+p — в ряд на desktop */
.hp-case-copy:not(.hp-case-copy--steps):has(> h3:nth-of-type(2)) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 36px);
  row-gap: 0;
}

.hp-case-copy:not(.hp-case-copy--steps):has(> h3:nth-of-type(2)) > h3 {
  margin: 0 0 10px;
  padding-top: clamp(18px, 2.2vw, 26px);
  border-top: 2px solid color-mix(in srgb, #0094ff 70%, var(--hp-line));
}

.hp-case-copy:not(.hp-case-copy--steps):has(> h3:nth-of-type(2)) > h3 + p {
  margin: 0;
}

.hp-case-copy:not(.hp-case-copy--steps):has(> h3:nth-of-type(2)) > h3:nth-of-type(1) { grid-column: 1; grid-row: 1; }
.hp-case-copy:not(.hp-case-copy--steps):has(> h3:nth-of-type(2)) > h3:nth-of-type(1) + p { grid-column: 1; grid-row: 2; }
.hp-case-copy:not(.hp-case-copy--steps):has(> h3:nth-of-type(2)) > h3:nth-of-type(2) { grid-column: 2; grid-row: 1; }
.hp-case-copy:not(.hp-case-copy--steps):has(> h3:nth-of-type(2)) > h3:nth-of-type(2) + p { grid-column: 2; grid-row: 2; }
.hp-case-copy:not(.hp-case-copy--steps):has(> h3:nth-of-type(2)) > h3:nth-of-type(3) { grid-column: 3; grid-row: 1; }
.hp-case-copy:not(.hp-case-copy--steps):has(> h3:nth-of-type(2)) > h3:nth-of-type(3) + p { grid-column: 3; grid-row: 2; }
.hp-case-copy:not(.hp-case-copy--steps):has(> h3:nth-of-type(2)) > h3:nth-of-type(4) { grid-column: 1; grid-row: 3; }
.hp-case-copy:not(.hp-case-copy--steps):has(> h3:nth-of-type(2)) > h3:nth-of-type(4) + p { grid-column: 1; grid-row: 4; }

.hp-case-copy--steps {
  width: 100%;
  max-width: none;
}

.hp-case-copy--steps > h3 {
  margin: 0 0 clamp(16px, 2.2vw, 24px);
  max-width: none;
  padding-top: 0;
  border-top: 0;
}

.hp-case-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.5vw, 40px) clamp(20px, 3vw, 36px);
  width: 100%;
}

.hp-case-point {
  min-width: 0;
  padding-top: clamp(18px, 2.2vw, 26px);
  padding-bottom: clamp(4px, 0.8vw, 10px);
  border-top: 2px solid color-mix(in srgb, #0094ff 70%, var(--hp-line));
}

.hp-case-point h4 {
  margin: 0 0 8px;
  font-family: var(--hp-display);
  font-size: clamp(13.5px, 1.3vw, 15.5px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--hp-ink);
}

.hp-case-point p {
  margin: 0;
  max-width: none;
  font-size: clamp(12.5px, 1.15vw, 14px);
  line-height: 1.65;
  color: var(--hp-muted);
}

/* Fallback без .hp-case-points: явная раскладка h4/p (обычно 3 пункта) */
.hp-case-copy--steps:not(:has(.hp-case-points)) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 36px);
  row-gap: 0;
  width: 100%;
}

.hp-case-copy--steps:not(:has(.hp-case-points)) > h3 {
  grid-column: 1 / -1;
}

.hp-case-copy--steps:not(:has(.hp-case-points)) > h4 {
  margin: 0 0 10px;
  padding-top: clamp(18px, 2.2vw, 26px);
  border-top: 2px solid color-mix(in srgb, #0094ff 70%, var(--hp-line));
  font-family: var(--hp-display);
  font-size: clamp(13.5px, 1.3vw, 15.5px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--hp-ink);
}

.hp-case-copy--steps:not(:has(.hp-case-points)) > h4 + p {
  margin: 0;
  max-width: none;
  font-size: clamp(12.5px, 1.15vw, 14px);
  line-height: 1.65;
}

.hp-case-copy--steps:not(:has(.hp-case-points)) > h4:nth-of-type(1) { grid-column: 1; grid-row: 2; }
.hp-case-copy--steps:not(:has(.hp-case-points)) > h4:nth-of-type(1) + p { grid-column: 1; grid-row: 3; }
.hp-case-copy--steps:not(:has(.hp-case-points)) > h4:nth-of-type(2) { grid-column: 2; grid-row: 2; }
.hp-case-copy--steps:not(:has(.hp-case-points)) > h4:nth-of-type(2) + p { grid-column: 2; grid-row: 3; }
.hp-case-copy--steps:not(:has(.hp-case-points)) > h4:nth-of-type(3) { grid-column: 3; grid-row: 2; }
.hp-case-copy--steps:not(:has(.hp-case-points)) > h4:nth-of-type(3) + p { grid-column: 3; grid-row: 3; }
.hp-case-copy--steps:not(:has(.hp-case-points)) > h4:nth-of-type(4) { grid-column: 1; grid-row: 4; }
.hp-case-copy--steps:not(:has(.hp-case-points)) > h4:nth-of-type(4) + p { grid-column: 1; grid-row: 5; }

@media (max-width: 900px) {
  .hp-case-points,
  .hp-case-copy:not(.hp-case-copy--steps):has(> h3:nth-of-type(2)),
  .hp-case-copy--steps:not(:has(.hp-case-points)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-case-copy:not(.hp-case-copy--steps):has(> h3:nth-of-type(2)) > h3:nth-of-type(3) { grid-column: 1; grid-row: 3; }
  .hp-case-copy:not(.hp-case-copy--steps):has(> h3:nth-of-type(2)) > h3:nth-of-type(3) + p { grid-column: 1; grid-row: 4; }
  .hp-case-copy:not(.hp-case-copy--steps):has(> h3:nth-of-type(2)) > h3:nth-of-type(4) { grid-column: 2; grid-row: 3; }
  .hp-case-copy:not(.hp-case-copy--steps):has(> h3:nth-of-type(2)) > h3:nth-of-type(4) + p { grid-column: 2; grid-row: 4; }

  .hp-case-copy--steps:not(:has(.hp-case-points)) > h4:nth-of-type(3) { grid-column: 1; grid-row: 4; }
  .hp-case-copy--steps:not(:has(.hp-case-points)) > h4:nth-of-type(3) + p { grid-column: 1; grid-row: 5; }
  .hp-case-copy--steps:not(:has(.hp-case-points)) > h4:nth-of-type(4) { grid-column: 2; grid-row: 4; }
  .hp-case-copy--steps:not(:has(.hp-case-points)) > h4:nth-of-type(4) + p { grid-column: 2; grid-row: 5; }
}

@media (max-width: 560px) {
  .hp-case-points,
  .hp-case-copy:not(.hp-case-copy--steps):has(> h3:nth-of-type(2)),
  .hp-case-copy--steps:not(:has(.hp-case-points)) {
    grid-template-columns: 1fr;
  }

  .hp-case-copy:not(.hp-case-copy--steps):has(> h3:nth-of-type(2)) > h3:nth-of-type(n),
  .hp-case-copy:not(.hp-case-copy--steps):has(> h3:nth-of-type(2)) > h3:nth-of-type(n) + p,
  .hp-case-copy--steps:not(:has(.hp-case-points)) > h4:nth-of-type(n),
  .hp-case-copy--steps:not(:has(.hp-case-points)) > h4:nth-of-type(n) + p {
    grid-column: 1;
    grid-row: auto;
  }
}

.hp-case-copy:last-child,
.hp-case-shot:last-child {
  margin-bottom: 0;
}

.hp-case-gallery {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
  margin: clamp(20px, 3vw, 32px) 0 0;
}

.hp-case-gallery-item {
  margin: 0;
  border-radius: var(--hp-radius-lg);
  overflow: hidden;
  border: 1px solid var(--hp-line);
  background: var(--hp-bg-elevated);
}

.hp-case-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
}

.hp-case-detail__makets {
  display: grid;
  gap: 16px;
}

.hp-case-detail__makets img {
  width: 100%;
  border-radius: var(--hp-radius-lg);
  border: 1px solid var(--hp-line);
}

@media (max-width: 1024px) {
  .hp-bento,
  .hp-bento--start,
  .hp-bento--reviews {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-bento__card--wide {
    grid-column: span 2;
  }

  .hp-bento--leader,
  .hp-case-hero {
    grid-template-columns: 1fr;
  }

  .hp-case-hero__media {
    order: -1;
  }

  .hp-case-cta-band {
    grid-template-columns: 1fr;
  }

  .hp-case-cta-band__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .hp-bento,
  .hp-bento--about,
  .hp-bento--start,
  .hp-bento--reviews,
  .hp-bento--case-blocks {
    grid-template-columns: 1fr;
  }

  .hp-bento__card--wide {
    grid-column: auto;
  }

  .hp-stats--inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-case-stack__grid,
  .hp-case-story__grid {
    grid-template-columns: 1fr;
  }

  .hp-case-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-case-results__item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .hp-case-hero__title {
    font-size: clamp(28px, 9vw, 36px);
  }

  .hp-case-results__value {
    font-size: clamp(28px, 8vw, 36px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-animations="on"]) .hp-case-hero__media img {
    transform: none;
    transition: none;
  }
}

/* ========== COUNTERS & RINGS ========== */
.hp-stat--ring {
  position: relative;
  padding-top: 58px;
}

.hp-ring {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 48px;
  height: 48px;
}

.hp-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.hp-ring__bg {
  fill: none;
  stroke: var(--hp-line);
  stroke-width: 3;
}

.hp-ring__fill {
  fill: none;
  stroke: var(--hp-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

[data-hp-count].is-done {
  color: var(--hp-accent);
}

/* ========== PROCESS FLOW INFOGRAPHIC ========== */
.hp-process-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  gap: 8px;
  align-items: start;
}

.hp-process-flow__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 20px 12px;
  border-radius: var(--hp-radius-lg);
  border: 1px solid var(--hp-line);
  background: var(--hp-bg-elevated);
  transition: transform 0.28s var(--hp-ease), border-color 0.28s, box-shadow 0.28s;
}

.hp-process-flow__step:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--hp-accent) 35%, var(--hp-line));
  box-shadow: var(--hp-shadow);
}

.hp-process-flow__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--hp-accent) 12%, transparent);
  color: var(--hp-accent);
}

.hp-process-flow__icon svg {
  width: 24px;
  height: 24px;
}

.hp-process-flow__num {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--hp-accent);
}

.hp-process-flow__title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.hp-process-flow__text {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--hp-muted);
}

.hp-process-flow__connector {
  align-self: center;
  width: 24px;
  height: 2px;
  margin-top: 44px;
  background: linear-gradient(90deg, var(--hp-line), var(--hp-accent), var(--hp-line));
  border-radius: 2px;
  opacity: 0.7;
}

/* ========== RESULTS INFOGRAPHIC ========== */
.hp-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.hp-result-card {
  position: relative;
  padding: 24px 20px;
  border-radius: var(--hp-radius-lg);
  border: 1px solid var(--hp-line);
  background: var(--hp-bg-elevated);
  overflow: hidden;
  transition: transform 0.28s var(--hp-ease), box-shadow 0.28s;
}

.hp-result-card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent 40%, color-mix(in srgb, var(--hp-accent) 50%, transparent), transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.hp-result-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hp-shadow);
}

.hp-result-card:hover::before {
  opacity: 1;
}

.hp-result-card--accent {
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, color-mix(in srgb, var(--hp-accent) 18%, transparent), transparent 55%),
    var(--hp-bg-elevated);
  border-color: color-mix(in srgb, var(--hp-accent) 28%, var(--hp-line));
}

.hp-result-card__badge {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--hp-accent) 14%, transparent);
  color: var(--hp-accent);
  font-size: 16px;
  font-weight: 800;
}

.hp-result-card__value {
  margin: 0 0 8px;
  font-family: var(--hp-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
}

.hp-result-card__title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
}

.hp-result-card__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--hp-muted);
}

/* ========== TECH ORBIT ========== */
.hp-section--tech {
  overflow: hidden;
}

.hp-tech-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-width: 0;
  width: 100%;
}

.hp-section--tech .hp-section__head {
  margin-bottom: 0;
  max-width: none;
}

.hp-tech-orbit {
  --hp-orbit-r1: 168px;
  --hp-orbit-r2: 235px;
  position: relative;
  min-height: clamp(380px, 52vw, 620px);
  width: 100%;
  max-width: min(100%, 600px);
  display: grid;
  place-items: center;
  margin: 0 auto;
  overflow: hidden;
  contain: layout paint;
}

.hp-tech-orbit__paths {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.hp-tech-orbit__svg {
  width: min(100%, 600px);
  height: auto;
  overflow: visible;
}

.hp-tech-orbit__path {
  stroke-width: 1.5;
  stroke-dasharray: 6 10;
  opacity: 0.85;
}

.hp-tech-orbit__path-spin {
  transform-origin: 300px 300px;
  transform-box: fill-box;
}

.hp-tech-orbit__path-spin--1 {
  animation: hp-orbit-path-spin 60s linear infinite;
}

.hp-tech-orbit__path-spin--2 {
  animation: hp-orbit-path-spin 80s linear infinite reverse;
}

.hp-tech-orbit__path--1 {
  stroke: var(--hp-accent);
  stroke-opacity: 0.32;
}

.hp-tech-orbit__path--2 {
  stroke: var(--hp-accent);
  stroke-opacity: 0.18;
}

.hp-tech-orbit__glow {
  position: absolute;
  width: min(72%, 440px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--hp-accent) 14%, transparent) 0%,
    color-mix(in srgb, var(--hp-accent) 4%, transparent) 45%,
    transparent 72%
  );
  pointer-events: none;
  animation: hp-orbit-glow-pulse 5s ease-in-out infinite;
}

.hp-tech-orbit__core {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(140px, 18vw, 168px);
  height: clamp(140px, 18vw, 168px);
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--hp-accent) 45%, var(--hp-line));
  background:
    radial-gradient(circle at 28% 28%, color-mix(in srgb, var(--hp-accent) 28%, transparent), transparent 58%),
    var(--hp-bg-elevated);
  box-shadow:
    0 0 48px color-mix(in srgb, var(--hp-accent) 22%, transparent),
    0 0 0 1px color-mix(in srgb, var(--hp-accent) 12%, transparent) inset;
  animation: hp-orbit-core-pulse 4s ease-in-out infinite;
}

.hp-tech-orbit__logo {
  font-family: var(--hp-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--hp-accent);
  text-shadow: 0 0 24px color-mix(in srgb, var(--hp-accent) 35%, transparent);
}

.hp-tech-orbit__meta {
  margin-top: 6px;
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 700;
  color: var(--hp-muted);
  text-align: center;
  line-height: 1.35;
}

.hp-tech-orbit__ring {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
  animation: hp-orbit-spin 36s linear infinite;
  animation-play-state: running;
  will-change: transform;
}

.hp-tech-orbit__ring--1 {
  --hp-orbit-r: var(--hp-orbit-r1);
}

.hp-tech-orbit__ring--2 {
  --hp-orbit-r: var(--hp-orbit-r2);
  animation-direction: reverse;
  animation-duration: 48s;
}

.hp-tech-orbit__tag {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--hp-accent) 18%, var(--hp-line));
  background: color-mix(in srgb, var(--hp-bg-elevated) 92%, var(--hp-accent) 8%);
  font-size: clamp(11px, 1.2vw, 14px);
  font-weight: 700;
  white-space: nowrap;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 0 0 1px color-mix(in srgb, var(--hp-accent) 6%, transparent) inset;
  opacity: 1;
  transform-origin: center center;
  transition:
    border-color 0.3s var(--hp-ease),
    box-shadow 0.3s var(--hp-ease),
    background 0.3s var(--hp-ease);
}

.hp-tech-orbit__ring--1 .hp-tech-orbit__tag {
  animation: hp-orbit-tag-counter 36s linear infinite;
}

.hp-tech-orbit__ring--2 .hp-tech-orbit__tag {
  animation: hp-orbit-tag-counter 48s linear infinite reverse;
}

.hp-tech-orbit__ring--1 .hp-tech-orbit__tag:nth-child(1) { --hp-orbit-angle: 0deg; }
.hp-tech-orbit__ring--1 .hp-tech-orbit__tag:nth-child(2) { --hp-orbit-angle: 60deg; }
.hp-tech-orbit__ring--1 .hp-tech-orbit__tag:nth-child(3) { --hp-orbit-angle: 120deg; }
.hp-tech-orbit__ring--1 .hp-tech-orbit__tag:nth-child(4) { --hp-orbit-angle: 180deg; }
.hp-tech-orbit__ring--1 .hp-tech-orbit__tag:nth-child(5) { --hp-orbit-angle: 240deg; }
.hp-tech-orbit__ring--1 .hp-tech-orbit__tag:nth-child(6) { --hp-orbit-angle: 300deg; }

.hp-tech-orbit__ring--2 .hp-tech-orbit__tag:nth-child(1) { --hp-orbit-angle: 30deg; }
.hp-tech-orbit__ring--2 .hp-tech-orbit__tag:nth-child(2) { --hp-orbit-angle: 90deg; }
.hp-tech-orbit__ring--2 .hp-tech-orbit__tag:nth-child(3) { --hp-orbit-angle: 150deg; }
.hp-tech-orbit__ring--2 .hp-tech-orbit__tag:nth-child(4) { --hp-orbit-angle: 210deg; }
.hp-tech-orbit__ring--2 .hp-tech-orbit__tag:nth-child(5) { --hp-orbit-angle: 270deg; }
.hp-tech-orbit__ring--2 .hp-tech-orbit__tag:nth-child(6) { --hp-orbit-angle: 330deg; }

.hp-tech-orbit__tag:hover {
  border-color: color-mix(in srgb, var(--hp-accent) 55%, var(--hp-line));
  background: color-mix(in srgb, var(--hp-bg-elevated) 82%, var(--hp-accent) 18%);
  box-shadow:
    0 8px 28px color-mix(in srgb, var(--hp-accent) 28%, transparent),
    0 0 0 1px color-mix(in srgb, var(--hp-accent) 20%, transparent) inset;
  z-index: 4;
}

.hp-tech-orbit.is-live .hp-tech-orbit__ring--1 .hp-tech-orbit__tag {
  animation:
    hp-orbit-tag-in 0.65s var(--hp-ease) both,
    hp-orbit-tag-counter 36s linear infinite;
}

.hp-tech-orbit.is-live .hp-tech-orbit__ring--2 .hp-tech-orbit__tag {
  animation:
    hp-orbit-tag-in 0.65s var(--hp-ease) both,
    hp-orbit-tag-counter 48s linear infinite reverse;
}

.hp-tech-orbit.is-live .hp-tech-orbit__ring--1 .hp-tech-orbit__tag:nth-child(1) { animation-delay: 0.08s, 0s; }
.hp-tech-orbit.is-live .hp-tech-orbit__ring--1 .hp-tech-orbit__tag:nth-child(2) { animation-delay: 0.14s, 0s; }
.hp-tech-orbit.is-live .hp-tech-orbit__ring--1 .hp-tech-orbit__tag:nth-child(3) { animation-delay: 0.2s, 0s; }
.hp-tech-orbit.is-live .hp-tech-orbit__ring--1 .hp-tech-orbit__tag:nth-child(4) { animation-delay: 0.26s, 0s; }
.hp-tech-orbit.is-live .hp-tech-orbit__ring--1 .hp-tech-orbit__tag:nth-child(5) { animation-delay: 0.32s, 0s; }
.hp-tech-orbit.is-live .hp-tech-orbit__ring--1 .hp-tech-orbit__tag:nth-child(6) { animation-delay: 0.38s, 0s; }

.hp-tech-orbit.is-live .hp-tech-orbit__ring--2 .hp-tech-orbit__tag:nth-child(1) { animation-delay: 0.12s, 0s; }
.hp-tech-orbit.is-live .hp-tech-orbit__ring--2 .hp-tech-orbit__tag:nth-child(2) { animation-delay: 0.18s, 0s; }
.hp-tech-orbit.is-live .hp-tech-orbit__ring--2 .hp-tech-orbit__tag:nth-child(3) { animation-delay: 0.24s, 0s; }
.hp-tech-orbit.is-live .hp-tech-orbit__ring--2 .hp-tech-orbit__tag:nth-child(4) { animation-delay: 0.3s, 0s; }
.hp-tech-orbit.is-live .hp-tech-orbit__ring--2 .hp-tech-orbit__tag:nth-child(5) { animation-delay: 0.36s, 0s; }
.hp-tech-orbit.is-live .hp-tech-orbit__ring--2 .hp-tech-orbit__tag:nth-child(6) { animation-delay: 0.42s, 0s; }

@keyframes hp-orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes hp-orbit-tag-counter {
  from {
    transform:
      translate(-50%, -50%)
      rotate(var(--hp-orbit-angle, 0deg))
      translateY(calc(-1 * var(--hp-orbit-r, 168px)))
      rotate(calc(-1 * var(--hp-orbit-angle, 0deg)));
  }
  to {
    transform:
      translate(-50%, -50%)
      rotate(var(--hp-orbit-angle, 0deg))
      translateY(calc(-1 * var(--hp-orbit-r, 168px)))
      rotate(calc(-1 * var(--hp-orbit-angle, 0deg) - 360deg));
  }
}

@keyframes hp-orbit-path-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes hp-orbit-core-pulse {
  0%, 100% {
    box-shadow:
      0 0 40px color-mix(in srgb, var(--hp-accent) 18%, transparent),
      0 0 0 1px color-mix(in srgb, var(--hp-accent) 12%, transparent) inset;
  }
  50% {
    box-shadow:
      0 0 64px color-mix(in srgb, var(--hp-accent) 32%, transparent),
      0 0 0 1px color-mix(in srgb, var(--hp-accent) 22%, transparent) inset;
  }
}

@keyframes hp-orbit-glow-pulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes hp-orbit-tag-in {
  from {
    opacity: 0.45;
    filter: blur(3px);
  }
  to {
    opacity: 1;
    filter: none;
  }
}

/* ========== STEPS TIMELINE PREVIEW ========== */
.hp-steps-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 4px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  counter-reset: step-preview;
}

.hp-steps-preview__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--hp-muted);
}

.hp-steps-preview__item:not(:last-child)::after {
  content: '';
  width: 16px;
  height: 1px;
  margin-left: 4px;
  background: var(--hp-line);
}

.hp-steps-preview__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--hp-line);
  background: var(--hp-bg);
  flex-shrink: 0;
}

.hp-steps-preview__item.is-active .hp-steps-preview__dot {
  border-color: var(--hp-accent);
  background: var(--hp-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hp-accent) 22%, transparent);
}

.hp-steps-preview__item.is-active .hp-steps-preview__label {
  color: var(--hp-ink);
}

/* ========== STAGGERED REVEAL ========== */
.hp-reveal.is-visible .hp-stat,
.hp-reveal.is-visible .hp-card,
.hp-reveal.is-visible .hp-case,
.hp-reveal.is-visible .hp-direction,
.hp-reveal.is-visible .hp-result-card,
.hp-reveal.is-visible .hp-process-flow__step,
.hp-reveal.is-visible .hp-bento__card {
  animation: hp-stagger-in 0.55s var(--hp-ease) both;
}

.hp-reveal.is-visible .hp-stat:nth-child(1),
.hp-reveal.is-visible .hp-card:nth-child(1),
.hp-reveal.is-visible .hp-case:nth-child(1),
.hp-reveal.is-visible .hp-direction:nth-child(1),
.hp-reveal.is-visible .hp-result-card:nth-child(1),
.hp-reveal.is-visible .hp-process-flow__step:nth-child(1),
.hp-reveal.is-visible .hp-bento__card:nth-child(1) { animation-delay: 0.04s; }

.hp-reveal.is-visible .hp-stat:nth-child(2),
.hp-reveal.is-visible .hp-card:nth-child(2),
.hp-reveal.is-visible .hp-case:nth-child(2),
.hp-reveal.is-visible .hp-direction:nth-child(2),
.hp-reveal.is-visible .hp-result-card:nth-child(2),
.hp-reveal.is-visible .hp-process-flow__step:nth-child(3),
.hp-reveal.is-visible .hp-bento__card:nth-child(2) { animation-delay: 0.1s; }

.hp-reveal.is-visible .hp-stat:nth-child(3),
.hp-reveal.is-visible .hp-card:nth-child(3),
.hp-reveal.is-visible .hp-case:nth-child(3),
.hp-reveal.is-visible .hp-direction:nth-child(3),
.hp-reveal.is-visible .hp-result-card:nth-child(3),
.hp-reveal.is-visible .hp-process-flow__step:nth-child(5),
.hp-reveal.is-visible .hp-bento__card:nth-child(3) { animation-delay: 0.16s; }

.hp-reveal.is-visible .hp-stat:nth-child(4),
.hp-reveal.is-visible .hp-card:nth-child(4),
.hp-reveal.is-visible .hp-case:nth-child(4),
.hp-reveal.is-visible .hp-direction:nth-child(4),
.hp-reveal.is-visible .hp-result-card:nth-child(4),
.hp-reveal.is-visible .hp-process-flow__step:nth-child(7),
.hp-reveal.is-visible .hp-bento__card:nth-child(4) { animation-delay: 0.22s; }

.hp-reveal.is-visible .hp-stat:nth-child(5),
.hp-reveal.is-visible .hp-card:nth-child(5),
.hp-reveal.is-visible .hp-case:nth-child(5),
.hp-reveal.is-visible .hp-direction:nth-child(5),
.hp-reveal.is-visible .hp-process-flow__step:nth-child(9),
.hp-reveal.is-visible .hp-bento__card:nth-child(5) { animation-delay: 0.28s; }

.hp-reveal.is-visible .hp-stat:nth-child(6),
.hp-reveal.is-visible .hp-card:nth-child(6),
.hp-reveal.is-visible .hp-case:nth-child(6),
.hp-reveal.is-visible .hp-direction:nth-child(6),
.hp-reveal.is-visible .hp-bento__card:nth-child(6) { animation-delay: 0.34s; }

@keyframes hp-stagger-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1100px) {
  .hp-process-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hp-process-flow__connector {
    display: none;
  }

  .hp-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hp-tech-layout {
    grid-template-columns: 1fr;
    gap: clamp(24px, 6vw, 40px);
    justify-items: center;
    text-align: center;
  }

  .hp-section--tech .hp-section__head {
    margin-bottom: 0;
    width: 100%;
  }

  .hp-tech-orbit {
    --hp-orbit-r1: 120px;
    --hp-orbit-r2: 168px;
    min-height: clamp(300px, 78vw, 400px);
    max-width: min(100%, calc(100vw - var(--hp-pad) * 2));
  }
}

@media (max-width: 720px) {
  .hp-process-flow {
    grid-template-columns: 1fr;
  }

  .hp-results {
    grid-template-columns: 1fr;
  }

  .hp-tech-orbit {
    --hp-orbit-r1: 100px;
    --hp-orbit-r2: 138px;
    min-height: 300px;
    max-width: min(100%, calc(100vw - var(--hp-pad) * 2));
  }

  .hp-tech-orbit__core {
    width: 108px;
    height: 108px;
  }

  .hp-tech-orbit__tag {
    padding: 5px 9px;
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .hp-tech-orbit {
    --hp-orbit-r1: 88px;
    --hp-orbit-r2: 122px;
    min-height: 272px;
    max-width: min(100%, calc(100vw - var(--hp-pad) * 2));
  }

  .hp-tech-orbit__core {
    width: 96px;
    height: 96px;
  }

  .hp-tech-orbit__logo {
    font-size: 18px;
  }

  .hp-tech-orbit__meta {
    font-size: 10px;
  }

  .hp-tech-orbit__tag {
    padding: 4px 8px;
    font-size: 9px;
  }

  .hp-tech-orbit__glow {
    width: min(68%, 260px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-animations="on"]) .hp-tech-orbit__ring,
  html:not([data-animations="on"]) .hp-tech-orbit__path-spin,
  html:not([data-animations="on"]) .hp-tech-orbit__core,
  html:not([data-animations="on"]) .hp-tech-orbit__glow {
    animation: none;
  }

  html:not([data-animations="on"]) .hp-tech-orbit__tag {
    opacity: 1;
    filter: none;
    animation: none;
    transform:
      translate(-50%, -50%)
      rotate(var(--hp-orbit-angle, 0deg))
      translateY(calc(-1 * var(--hp-orbit-r, 168px)))
      rotate(calc(-1 * var(--hp-orbit-angle, 0deg)));
  }

  html:not([data-animations="on"]) .hp-tech-orbit.is-live .hp-tech-orbit__tag {
    animation: none;
  }

  html:not([data-animations="on"]) .hp-case:hover,
  html:not([data-animations="on"]) .hp-direction:hover,
  html:not([data-animations="on"]) .hp-process-flow__step:hover,
  html:not([data-animations="on"]) .hp-result-card:hover {
    transform: none;
  }

  html:not([data-animations="on"]) .hp-case:hover .hp-case__media img,
  html:not([data-animations="on"]) .hp-case:hover .hp-case__more {
    transform: none;
  }

  html:not([data-animations="on"]) .hp-case:hover::before,
  html:not([data-animations="on"]) .hp-case:hover .hp-case__media::after {
    opacity: 0;
  }

  html:not([data-animations="on"]) .hp-reveal.is-visible .hp-stat,
  html:not([data-animations="on"]) .hp-reveal.is-visible .hp-card,
  html:not([data-animations="on"]) .hp-reveal.is-visible .hp-case,
  html:not([data-animations="on"]) .hp-reveal.is-visible .hp-direction,
  html:not([data-animations="on"]) .hp-reveal.is-visible .hp-result-card,
  html:not([data-animations="on"]) .hp-reveal.is-visible .hp-process-flow__step,
  html:not([data-animations="on"]) .hp-reveal.is-visible .hp-bento__card {
    animation: none;
  }
}

/* ========== OUTSTAFF LANDING & HOME PROMO ========== */
.hp-outstaff-hero,
.hp-niches-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 12vw, 120px) clamp(20px, 4vw, 40px) clamp(56px, 8vw, 88px);
  background:
    radial-gradient(ellipse 70% 55% at 85% 0%, color-mix(in srgb, var(--hp-accent) 32%, transparent), transparent 65%),
    radial-gradient(ellipse 50% 40% at 10% 100%, color-mix(in srgb, var(--hp-accent) 18%, transparent), transparent 60%),
    linear-gradient(165deg, color-mix(in srgb, var(--hp-bg) 88%, #0f172a) 0%, var(--hp-bg) 45%, var(--hp-bg-elevated) 100%);
  border-bottom: 1px solid var(--hp-line);
}

.hp-outstaff-hero__glow,
.hp-niches-hero__glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 60%;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--hp-accent) 22%, transparent), transparent 70%);
  pointer-events: none;
  opacity: 0.7;
}

.hp-outstaff-hero__inner,
.hp-niches-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--hp-max, 1120px);
  margin: 0 auto;
  text-align: center;
}

.hp-outstaff-hero__label,
.hp-niches-hero__label {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hp-accent);
}

.hp-outstaff-hero__title,
.hp-niches-hero__title {
  margin: 0 auto 20px;
  max-width: 18ch;
  font-family: var(--hp-display);
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 400;
  letter-spacing: var(--hp-display-letter-spacing, 0.5px);
  line-height: var(--hp-display-line-height, 1.1);
}

.hp-outstaff-hero__lead,
.hp-niches-hero__lead {
  margin: 0 auto 32px;
  max-width: 58ch;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.65;
  color: var(--hp-muted);
}

.hp-outstaff-hero__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.hp-outstaff-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
  padding: 16px 22px;
  border-radius: var(--hp-radius-lg);
  border: 1px solid color-mix(in srgb, var(--hp-accent) 24%, var(--hp-line));
  background: color-mix(in srgb, var(--hp-bg-elevated) 88%, transparent);
}

.hp-outstaff-hero__stat b {
  font-family: var(--hp-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  line-height: 1;
  color: var(--hp-accent);
}

.hp-outstaff-hero__stat span {
  font-size: 13px;
  color: var(--hp-muted);
}

.hp-outstaff-hero__actions,
.hp-niches-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hp-bento--outstaff {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hp-outstaff-roles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.hp-outstaff-role {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: var(--hp-radius-lg);
  border: 1px solid var(--hp-line);
  background: var(--hp-bg-elevated);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.hp-outstaff-role:hover {
  border-color: color-mix(in srgb, var(--hp-accent) 40%, var(--hp-line));
  transform: translateY(-2px);
  box-shadow: var(--hp-shadow);
}

.hp-outstaff-role__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--hp-accent) 14%, transparent);
  font-size: 14px;
  font-weight: 800;
  color: var(--hp-accent);
}

.hp-outstaff-role__title {
  margin: 0;
  font-family: var(--hp-display);
  font-size: clamp(16px, 1.8vw, 18px);
  font-weight: 400;
  letter-spacing: var(--hp-display-letter-spacing, 0.5px);
  line-height: var(--hp-display-line-height, 1.1);
}

.hp-outstaff-role__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--hp-muted);
}

.hp-outstaff-proof {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
}

.hp-outstaff-proof__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.hp-outstaff-proof__quote {
  margin: 0;
  padding: clamp(24px, 4vw, 32px);
  border-radius: var(--hp-radius-lg);
  border: 1px solid color-mix(in srgb, var(--hp-accent) 22%, var(--hp-line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--hp-accent) 10%, var(--hp-bg-elevated)), var(--hp-bg-elevated));
}

.hp-outstaff-proof__quote p {
  margin: 0 0 16px;
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.65;
  font-style: italic;
}

.hp-outstaff-proof__quote footer {
  font-size: 14px;
  font-weight: 600;
  color: var(--hp-muted);
}

.hp-outstaff-cta {
  margin: 0 clamp(16px, 3vw, 32px) clamp(32px, 5vw, 48px);
  padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 40px);
  border-radius: calc(var(--hp-radius-lg) + 4px);
  border: 1px solid color-mix(in srgb, var(--hp-accent) 28%, var(--hp-line));
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, color-mix(in srgb, var(--hp-accent) 24%, transparent), transparent 55%),
    linear-gradient(145deg, color-mix(in srgb, var(--hp-bg) 80%, #0f172a), var(--hp-bg-elevated));
  text-align: center;
}

.hp-outstaff-cta__inner {
  max-width: 640px;
  margin: 0 auto;
}

.hp-outstaff-cta__label {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hp-accent);
}

.hp-outstaff-cta__title {
  margin: 0 0 14px;
  font-family: var(--hp-display);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 400;
  letter-spacing: var(--hp-display-letter-spacing, 0.5px);
  line-height: var(--hp-display-line-height, 1.1);
}

.hp-outstaff-cta__text {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--hp-muted);
}

.hp-outstaff-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Homepage promo block */
.hp-outstaff--home {
  padding-top: 0;
}

.hp-outstaff-promo {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  gap: clamp(20px, 3vw, 32px);
  padding: clamp(28px, 4vw, 40px);
  border-radius: calc(var(--hp-radius-lg) + 2px);
  border: 1px solid color-mix(in srgb, var(--hp-accent) 26%, var(--hp-line));
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, color-mix(in srgb, var(--hp-accent) 18%, transparent), transparent 60%),
    var(--hp-bg-elevated);
}

.hp-outstaff-promo__title {
  margin: 0 0 12px;
  font-family: var(--hp-display);
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 400;
  letter-spacing: var(--hp-display-letter-spacing, 0.5px);
  line-height: var(--hp-display-line-height, 1.1);
}

.hp-outstaff-promo__lead {
  margin: 0 0 16px;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--hp-muted);
}

.hp-outstaff-promo__list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hp-outstaff-promo__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--hp-text);
}

.hp-outstaff-promo__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hp-accent);
}

.hp-outstaff-promo__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hp-outstaff-promo__aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.hp-outstaff-promo__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border-radius: var(--hp-radius-lg);
  border: 1px solid var(--hp-line);
  background: color-mix(in srgb, var(--hp-accent) 8%, var(--hp-bg));
  text-align: center;
}

.hp-outstaff-promo__stat b {
  font-family: var(--hp-display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 400;
  line-height: 1;
  color: var(--hp-accent);
}

.hp-outstaff-promo__stat span {
  font-size: 13px;
  color: var(--hp-muted);
}

.hp-outstaff-promo__pill {
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: var(--hp-accent);
  background: color-mix(in srgb, var(--hp-accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--hp-accent) 28%, var(--hp-line));
}

@media (max-width: 960px) {
  .hp-bento--outstaff {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-outstaff-roles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-outstaff-proof {
    grid-template-columns: 1fr;
  }

  .hp-outstaff-promo {
    grid-template-columns: 1fr;
  }

  .hp-outstaff-promo__aside {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hp-outstaff-promo__stat {
    flex: 1 1 120px;
  }

  .hp-outstaff-promo__pill {
    flex: 1 1 100%;
  }
}

@media (max-width: 560px) {
  .hp-outstaff-roles {
    grid-template-columns: 1fr;
  }

  .hp-bento--outstaff .hp-bento__card--wide {
    grid-column: span 1;
  }
}

/* ========== SERVICES PAGE ========== */
.hp-services-banner {
  padding: clamp(24px, 4vw, 40px) var(--hp-pad);
  border-bottom: 1px solid var(--hp-line);
  background:
    radial-gradient(ellipse 80% 80% at 0% 0%, color-mix(in srgb, var(--hp-accent) 10%, transparent), transparent 55%),
    var(--hp-bg-elevated);
}

.hp-services-banner__inner {
  max-width: var(--hp-max);
  margin: 0 auto;
}

.hp-services-banner__line {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 2vw, 28px);
  margin: 0;
  font-family: var(--hp-display);
  font-size: clamp(18px, 3.2vw, 34px);
  font-weight: 400;
  letter-spacing: var(--hp-display-letter-spacing, 0.5px);
  line-height: var(--hp-display-line-height, 1.1);
  text-transform: uppercase;
  color: var(--hp-ink);
}

.hp-services-banner__line span {
  white-space: nowrap;
}

.hp-services-layout {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.hp-services-nav {
  position: sticky;
  top: calc(var(--hp-header-h, 72px) + 16px);
}

.hp-services-nav__label {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hp-accent);
}

.hp-services-nav__list {
  display: grid;
  gap: 8px;
}

.hp-services-nav__link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--hp-muted);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.hp-services-nav__link:hover {
  color: var(--hp-ink);
  background: color-mix(in srgb, var(--hp-ink) 4%, var(--hp-bg-elevated));
  border-color: var(--hp-line);
}

.hp-services-articles {
  display: grid;
  gap: clamp(48px, 8vw, 96px);
  counter-reset: hp-direction;
}

.hp-direction-article__num::before {
  counter-increment: hp-direction;
  content: counter(hp-direction, decimal-leading-zero);
}

.hp-direction-article__head {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: clamp(24px, 4vw, 48px);
  row-gap: 12px;
  align-items: start;
  margin-bottom: 20px;
}

.hp-direction-article__num {
  display: block;
  box-sizing: content-box;
  flex-shrink: 0;
  width: max-content;
  min-width: 2.15em;
  padding-inline-end: 0.2em;
  font-family: var(--hp-display);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: left;
  color: color-mix(in srgb, var(--hp-accent) 55%, var(--hp-ink));
  overflow: visible;
}

.hp-direction-article__body {
  min-width: 0;
}

.hp-direction-article__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 12px;
}

.hp-direction-article__title {
  margin: 0;
  font-family: var(--hp-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  line-height: var(--hp-display-line-height, 1.1);
  letter-spacing: var(--hp-display-letter-spacing, 0.5px);
  color: var(--hp-ink);
}

.hp-direction-article__more {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hp-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hp-direction-article__text {
  margin: 0 0 18px;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--hp-muted);
}

.hp-direction-article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hp-direction-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--hp-line);
  background: var(--hp-bg-elevated);
  font-size: 13px;
  font-weight: 600;
  color: var(--hp-ink);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.hp-direction-tag:hover {
  border-color: color-mix(in srgb, var(--hp-accent) 45%, var(--hp-line));
  transform: translateY(-1px);
  box-shadow: var(--hp-shadow);
}

.hp-direction-tag svg {
  flex-shrink: 0;
  opacity: 0.55;
}

.hp-direction-article__media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hp-direction-article__thumb {
  margin: 0;
  overflow: hidden;
  border-radius: var(--hp-radius-lg);
  border: 1px solid var(--hp-line);
  aspect-ratio: 16 / 10;
  background-color: color-mix(in srgb, var(--hp-ink) 5%, var(--hp-bg-elevated));
  background-size: cover;
  background-position: center;
}

.hp-direction-article__thumb--analitika-i-strategiya,
.hp-direction-article__thumb--analitika-i-strategiya-a { background-image: url('/gallery/services/tz.jpg'); }
.hp-direction-article__thumb--analitika-i-strategiya-b { background-image: url('/gallery/services/direct.jpg'); }

.hp-direction-article__thumb--brending-i-ajdentika,
.hp-direction-article__thumb--brending-i-ajdentika-a { background-image: url('/gallery/services/corpsite.png'); }
.hp-direction-article__thumb--brending-i-ajdentika-b { background-image: url('/gallery/services/motion.png'); }

.hp-direction-article__thumb--ui-ux-design,
.hp-direction-article__thumb--ui-ux-design-a { background-image: url('/gallery/services/internet-magazin.png'); }
.hp-direction-article__thumb--ui-ux-design-b { background-image: url('/gallery/services/land.png'); }

.hp-direction-article__thumb--web-razrabotka,
.hp-direction-article__thumb--web-razrabotka-a { background-image: url('/gallery/services/layout.png'); }
.hp-direction-article__thumb--web-razrabotka-b { background-image: url('/gallery/services/webapp.png'); }

.hp-direction-article__thumb--marketing-i-prodvizhenie,
.hp-direction-article__thumb--marketing-i-prodvizhenie-a { background-image: url('/gallery/services/seo.jpg'); }
.hp-direction-article__thumb--marketing-i-prodvizhenie-b { background-image: url('/gallery/services/rocket.png'); }

.hp-direction-article__thumb--podderzhka-i-razvitie-proektov,
.hp-direction-article__thumb--podderzhka-i-razvitie-proektov-a { background-image: url('/gallery/services/app.jpg'); }
.hp-direction-article__thumb--podderzhka-i-razvitie-proektov-b { background-image: url('/gallery/services/mobile.png'); }

.hp-services-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--hp-radius-lg);
  border: 1px solid var(--hp-line);
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, color-mix(in srgb, var(--hp-accent) 12%, transparent), transparent 60%),
    var(--hp-bg-elevated);
}

.hp-services-cta__title {
  margin: 0 0 8px;
  font-family: var(--hp-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  line-height: var(--hp-display-line-height, 1.1);
  letter-spacing: var(--hp-display-letter-spacing, 0.5px);
  color: var(--hp-ink);
}

.hp-services-cta__text {
  margin: 0;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--hp-muted);
}

.hp-services-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Direction detail — service bento */
.hp-service-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
  counter-reset: hp-service-card;
}

.hp-service-card:not(.hp-service-card--cta) .hp-service-card__idx::before {
  counter-increment: hp-service-card;
  content: counter(hp-service-card, decimal-leading-zero);
  display: block;
  width: 2ch;
  font-family: var(--hp-display);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 400;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
  color: var(--hp-accent);
}

.hp-service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 180px;
  padding: 22px;
  border-radius: var(--hp-radius-lg);
  border: 1px solid var(--hp-line);
  background: var(--hp-bg-elevated);
  color: var(--hp-ink);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

a.hp-service-card:hover {
  border-color: color-mix(in srgb, var(--hp-accent) 45%, var(--hp-line));
  transform: translateY(-2px);
  box-shadow: var(--hp-shadow);
}

.hp-service-card:nth-child(6n + 1),
.hp-service-card:nth-child(6n + 4),
.hp-service-card:nth-child(6n + 5),
.hp-service-card:nth-child(6n + 6) {
  grid-column: span 6;
}

.hp-service-card:nth-child(6n + 2),
.hp-service-card:nth-child(6n + 3) {
  grid-column: span 3;
}

.hp-service-card--cta {
  grid-column: span 3;
  background:
    radial-gradient(ellipse 90% 80% at 100% 0%, color-mix(in srgb, var(--hp-accent) 18%, transparent), transparent 65%),
    var(--hp-bg-elevated);
}

.hp-service-card__idx {
  display: block;
  min-height: 1.1em;
  width: max-content;
  max-width: 100%;
  margin-bottom: 8px;
}

.hp-service-card__title {
  display: block;
  font-family: var(--hp-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  line-height: var(--hp-display-line-height, 1.1);
  color: var(--hp-ink);
  letter-spacing: var(--hp-display-letter-spacing, 0.5px);
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.hp-service-card__text {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--hp-muted);
  overflow-wrap: anywhere;
}

.hp-service-card__arrow {
  align-self: flex-end;
  font-size: 18px;
  font-weight: 700;
  color: var(--hp-accent);
}

/* Service detail grid */
.hp-service-detail__body {
  max-width: none;
}

.hp-service-lead {
  margin: 0 0 28px;
  max-width: 72ch;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.65;
  color: var(--hp-muted);
}

.hp-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hp-service-block {
  padding: 22px 24px;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-lg);
  background: var(--hp-bg-elevated);
  color: var(--hp-ink);
}

.hp-service-block__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em 0.55em;
  margin: 0 0 12px;
  font-family: var(--hp-display);
  font-size: 16px;
  font-weight: 400;
  line-height: var(--hp-display-line-height, 1.1);
  color: var(--hp-ink);
  letter-spacing: var(--hp-display-letter-spacing, 0.5px);
}

.hp-service-block__num {
  flex: 0 0 auto;
  display: inline-block;
  min-width: 2.4ch;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  color: var(--hp-accent);
  white-space: nowrap;
}

.hp-service-block__label {
  flex: 1 1 auto;
  min-width: 0;
}

.hp-service-block p {
  margin: 0 0 0.75em;
  font-size: 14px;
  line-height: 1.6;
  color: var(--hp-muted);
}

.hp-service-block p:last-child {
  margin-bottom: 0;
}

.hp-service-block strong,
.hp-service-block b {
  color: var(--hp-ink);
}

html[data-theme='dark'] .hp-service-block {
  background: color-mix(in srgb, var(--hp-bg-elevated) 92%, #000);
}

@media (max-width: 1024px) {
  .hp-services-layout {
    grid-template-columns: 1fr;
  }

  .hp-services-nav {
    position: static;
  }

  .hp-services-nav__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-service-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-service-card,
  .hp-service-card:nth-child(n) {
    grid-column: auto;
  }

  .hp-service-card--cta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .hp-direction-article__head {
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: 16px;
  }

  .hp-direction-article__num {
    font-size: 40px;
    letter-spacing: 0;
  }

  .hp-direction-article__media,
  .hp-service-grid {
    grid-template-columns: 1fr;
  }

  .hp-services-nav__list,
  .hp-service-bento {
    grid-template-columns: 1fr;
  }

  .hp-service-card,
  .hp-service-card:nth-child(n) {
    grid-column: auto;
  }

  .hp-services-banner__line {
    font-size: clamp(16px, 5vw, 24px);
  }

  .hp-services-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* === UX pack: page hero, sticky filters, compare, search, breadcrumbs === */
.hp-page-hero,
.hp-pagehead.hp-page-hero {
  padding-block: clamp(28px, 5vw, 52px) clamp(18px, 3vw, 28px);
}

.hp-page-hero .hp-pagehead__title,
.hp-pagehead.hp-page-hero .hp-pagehead__title {
  font-family: var(--hp-display);
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: var(--hp-display-line-height, 1.1);
  letter-spacing: var(--hp-display-letter-spacing, 0.5px);
  margin: 0 0 10px;
}

.hp-filters--sticky {
  /* sticky removed — keep spacing only if class remains in old HTML */
  position: static;
  top: auto;
  z-index: auto;
  margin: 0 0 28px;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 0;
  box-shadow: none;
}

.hp-filters--sticky.is-stuck {
  border-bottom-color: transparent;
  box-shadow: none;
}

/* Compact wrap: all categories visible, no horizontal scrollbar */
.hp-filters__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  overflow: visible;
  padding-bottom: 0;
}

.hp-filters__inner .hp-filters__item {
  flex: 0 1 auto;
  white-space: nowrap;
  padding: 7px 12px;
  font-size: 12.5px;
  line-height: 1.3;
}

@media (max-width: 640px) {
  .hp-filters__inner {
    gap: 6px;
  }

  .hp-filters__inner .hp-filters__item {
    padding: 6px 10px;
    font-size: 12px;
  }
}

.hp-compare {
  margin-top: 36px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--hp-radius-lg);
  border: 1px solid var(--hp-line);
  background: var(--hp-bg-elevated);
}

.hp-compare__head { margin-bottom: 18px; }
.hp-compare__title {
  margin: 0 0 8px;
  font-family: var(--hp-display);
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: var(--hp-display-letter-spacing, 0.5px);
  line-height: var(--hp-display-line-height, 1.1);
}

.hp-compare__table {
  display: grid;
  gap: 0;
  border: 1px solid var(--hp-line);
  border-radius: 14px;
  overflow: hidden;
}

.hp-compare__row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 0;
}

.hp-compare__row > * {
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  border-bottom: 1px solid var(--hp-line);
  border-right: 1px solid var(--hp-line);
}

.hp-compare__row > *:last-child { border-right: 0; }
.hp-compare__row:last-child > * { border-bottom: 0; }

.hp-compare__row--head > * {
  font-weight: 700;
  background: color-mix(in srgb, var(--hp-accent) 8%, var(--hp-bg));
}

.hp-compare__row > [role="rowheader"] {
  font-weight: 650;
  color: var(--hp-ink);
  background: color-mix(in srgb, var(--hp-muted) 6%, var(--hp-bg-elevated));
}

.hp-compare__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 720px) {
  .hp-compare__row {
    grid-template-columns: 1fr;
  }
  .hp-compare__row > * {
    border-right: 0;
  }
  .hp-compare__row--head { display: none; }
  .hp-compare__row > [role="rowheader"] {
    background: color-mix(in srgb, var(--hp-accent) 10%, var(--hp-bg));
  }
}

.hp-search-form {
  max-width: 720px;
  margin-bottom: 32px;
}

.hp-search-form__label {
  display: block;
  margin-bottom: 8px;
  font-weight: 650;
  font-size: 14px;
}

.hp-search-form__row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hp-search-form__input {
  flex: 1 1 240px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--hp-line);
  background: var(--hp-bg-elevated);
  color: var(--hp-ink);
  font: inherit;
}

.hp-search-group { margin-top: 28px; }
.hp-search-group__label,
.hp-search-results__title {
  margin: 0 0 14px;
  font-family: var(--hp-display);
  letter-spacing: var(--hp-display-letter-spacing, 0.5px);
  line-height: var(--hp-display-line-height, 1.1);
}

.hp-search-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.hp-search-list__item a {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--hp-line);
  background: var(--hp-bg-elevated);
  transition: border-color 0.2s, transform 0.2s;
}

.hp-search-list__item a:hover {
  border-color: var(--hp-accent);
  transform: translateY(-1px);
}

.hp-search-list__item span {
  display: block;
  margin-top: 4px;
  color: var(--hp-muted);
  font-size: 13px;
  font-weight: 500;
}

.hp-search-empty { color: var(--hp-muted); }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--hp-muted);
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin: 0 8px;
  opacity: 0.5;
}

.breadcrumbs a {
  color: var(--hp-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumbs a:hover { color: var(--hp-ink); }

.breadcrumbs .active a {
  color: var(--hp-ink);
  text-decoration: none;
  pointer-events: none;
}

@media (max-width: 640px) {
  .breadcrumbs {
    font-size: 12px;
    max-width: 100%;
    overflow: hidden;
  }
  .breadcrumbs li:not(:first-child):not(:last-child) {
    display: none;
  }
  .breadcrumbs li:first-child:not(:last-child)::after {
    content: "… /";
  }
}

.hp-case:hover .hp-case__media img,
.hp-blog-card:hover .hp-blog-card__media img {
  transform: scale(1.03);
}

.hp-case__media img,
.hp-blog-card__media img {
  transition: transform 0.45s var(--hp-ease), opacity 0.3s;
}

.hp-partners__logo,
a.hp-partners__logo {
  transition: transform 0.25s var(--hp-ease), opacity 0.25s, filter 0.25s;
}

.hp-partners__logo:hover,
a.hp-partners__logo:hover {
  transform: translateY(-3px) scale(1.03);
  opacity: 1;
  filter: grayscale(0);
}

.hp-steps-preview__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.hp-steps-preview__item[data-step-jump] {
  cursor: pointer;
}

.hp-steps-preview__item.is-current .hp-steps-preview__label {
  color: var(--hp-accent);
  font-weight: 700;
}

.hp-roadmap__step.is-highlight .hp-roadmap__card {
  outline: 2px solid color-mix(in srgb, var(--hp-accent) 55%, transparent);
  outline-offset: 2px;
}

/* ——— 404 error page ——— */
.hp-404 {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 7.5rem);
  padding: clamp(48px, 8vw, 96px) var(--hp-pad);
  overflow: clip;
  background:
    radial-gradient(ellipse 70% 55% at 15% 20%, color-mix(in srgb, var(--hp-accent) 18%, transparent), transparent 62%),
    radial-gradient(ellipse 55% 45% at 88% 78%, color-mix(in srgb, var(--hp-accent) 12%, transparent), transparent 58%),
    linear-gradient(165deg, var(--hp-bg) 0%, color-mix(in srgb, var(--hp-bg) 88%, var(--hp-accent) 12%) 48%, var(--hp-bg) 100%);
}

.hp-404__atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hp-404__mesh {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(color-mix(in srgb, var(--hp-ink) 6%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--hp-ink) 6%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  opacity: 0.55;
  transform: perspective(800px) rotateX(12deg) scale(1.15);
  transform-origin: center 60%;
}

.hp-404__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  will-change: transform;
  transition: transform 0.35s var(--hp-ease);
}

.hp-404__orb--a {
  width: min(42vw, 380px);
  height: min(42vw, 380px);
  top: 8%;
  left: 6%;
  background: color-mix(in srgb, var(--hp-accent) 45%, transparent);
  animation: hp-404-drift-a 14s ease-in-out infinite alternate;
}

.hp-404__orb--b {
  width: min(36vw, 300px);
  height: min(36vw, 300px);
  right: 8%;
  bottom: 12%;
  background: color-mix(in srgb, var(--hp-accent) 28%, #5b8def 20%);
  animation: hp-404-drift-b 18s ease-in-out infinite alternate;
}

.hp-404__orb--c {
  width: min(28vw, 220px);
  height: min(28vw, 220px);
  left: 42%;
  top: 58%;
  background: color-mix(in srgb, var(--hp-ink) 10%, transparent);
  animation: hp-404-drift-c 11s ease-in-out infinite alternate;
}

@keyframes hp-404-drift-a {
  from { translate: 0 0; }
  to { translate: 28px 36px; }
}

@keyframes hp-404-drift-b {
  from { translate: 0 0; }
  to { translate: -34px 22px; }
}

@keyframes hp-404-drift-c {
  from { translate: 0 0; }
  to { translate: 18px -28px; }
}

.hp-404__inner {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  text-align: center;
}

.hp-404__brand {
  margin: 0 0 12px;
  font-family: var(--hp-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: var(--hp-accent);
  text-transform: uppercase;
}

.hp-404__code {
  margin: 0 0 clamp(8px, 1.5vw, 16px);
  font-family: var(--hp-display);
  font-size: clamp(5.5rem, 18vw, 9.5rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--hp-ink);
  display: flex;
  justify-content: center;
  gap: 0.04em;
}

.hp-404__digit {
  display: inline-block;
  min-width: 0.62em;
  background: linear-gradient(180deg, var(--hp-ink) 35%, color-mix(in srgb, var(--hp-accent) 70%, var(--hp-ink)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform 0.45s var(--hp-ease), filter 0.45s;
}

.hp-404__digit.is-settled {
  transform: translateY(0) scale(1);
}

.hp-404__title {
  margin: 0 0 12px;
  font-family: var(--hp-display);
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
  font-weight: 400;
  line-height: var(--hp-display-line-height, 1.1);
  color: var(--hp-ink);
  letter-spacing: var(--hp-display-letter-spacing, 0.5px);}

.hp-404__lead {
  margin: 0 auto clamp(28px, 4vw, 40px);
  max-width: 36rem;
  font-size: clamp(0.98rem, 1.4vw, 1.125rem);
  line-height: 1.6;
  color: var(--hp-muted);
}

.hp-404__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.hp-404__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  padding-top: 4px;
  border-top: 1px solid var(--hp-line);
}

.hp-404__nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--hp-ink-soft);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--hp-ease), border-color 0.2s;
}

.hp-404__nav a:hover,
.hp-404__nav a:focus-visible {
  color: var(--hp-accent);
  border-bottom-color: color-mix(in srgb, var(--hp-accent) 55%, transparent);
  outline: none;
}

[data-hp-404-anim] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--hp-ease),
    transform 0.7s var(--hp-ease);
}

.hp-404.is-ready [data-hp-404-anim="brand"] { transition-delay: 0.05s; }
.hp-404.is-ready [data-hp-404-anim="code"] { transition-delay: 0.14s; }
.hp-404.is-ready [data-hp-404-anim="title"] { transition-delay: 0.26s; }
.hp-404.is-ready [data-hp-404-anim="lead"] { transition-delay: 0.34s; }
.hp-404.is-ready [data-hp-404-anim="cta"] { transition-delay: 0.42s; }
.hp-404.is-ready [data-hp-404-anim="nav"] { transition-delay: 0.52s; }

.hp-404.is-ready [data-hp-404-anim] {
  opacity: 1;
  transform: none;
}

@media (max-width: 640px) {
  .hp-404 {
    min-height: calc(100vh - 5.5rem);
    padding-block: 40px 56px;
  }

  .hp-404__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hp-404__cta .hp-btn {
    width: 100%;
    justify-content: center;
  }

  .hp-404__nav {
    gap: 6px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-animations="on"]) .hp-404__orb {
    animation: none;
  }

  html:not([data-animations="on"]) [data-hp-404-anim] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

html[data-animations="on"] .hp-404__orb--a {
  animation: hp-404-drift-a 14s ease-in-out infinite alternate;
}

html[data-animations="on"] .hp-404__orb--b {
  animation: hp-404-drift-b 18s ease-in-out infinite alternate;
}

html[data-animations="on"] .hp-404__orb--c {
  animation: hp-404-drift-c 11s ease-in-out infinite alternate;
}

/* ===== Niche services catalog (grid / filters / cards) ===== */
.hp-niches-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.hp-niches-filters__btn {
  appearance: none;
  border: 1px solid var(--hp-line);
  background: var(--hp-bg-elevated);
  color: var(--hp-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}

.hp-niches-filters__btn:hover {
  border-color: color-mix(in srgb, var(--hp-accent) 40%, var(--hp-line));
  color: var(--hp-ink);
}

.hp-niches-filters__btn.is-active {
  border-color: color-mix(in srgb, var(--hp-accent) 55%, var(--hp-line));
  background: color-mix(in srgb, var(--hp-accent) 12%, var(--hp-bg-elevated));
  color: var(--hp-ink);
}

.hp-niches-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hp-niche-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  min-width: 0;
  padding: 22px 24px;
  border-radius: var(--hp-radius-lg);
  border: 1px solid var(--hp-line);
  background:
    radial-gradient(220px 120px at 100% 0%, color-mix(in srgb, var(--hp-accent) 10%, transparent), transparent 70%),
    var(--hp-bg-elevated);
  color: var(--hp-ink);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.25s var(--hp-ease), transform 0.25s var(--hp-ease), box-shadow 0.25s var(--hp-ease);
}

.hp-niche-card:hover {
  border-color: color-mix(in srgb, var(--hp-accent) 45%, var(--hp-line));
  transform: translateY(-3px);
  box-shadow: var(--hp-shadow);
}

.hp-niche-card[hidden] {
  display: none !important;
}

.hp-niche-card__tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hp-accent);
}

.hp-niche-card__title {
  margin: 0;
  font-family: var(--hp-display);
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: var(--hp-display-weight, 400);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--hp-ink);
  overflow-wrap: anywhere;
}

.hp-niche-card__text {
  margin: 0;
  flex: 1;
  font-size: 14px;
  line-height: 1.55;
  color: var(--hp-muted);
  overflow-wrap: anywhere;
}

.hp-niche-card__go {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--hp-accent);
}

.hp-niches-teaser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--hp-radius-lg);
  border: 1px solid var(--hp-line);
  background:
    radial-gradient(ellipse 70% 80% at 0% 0%, color-mix(in srgb, var(--hp-accent) 14%, transparent), transparent 60%),
    var(--hp-bg-elevated);
}

.hp-niches-teaser__title {
  margin: 0 0 8px;
  font-family: var(--hp-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: var(--hp-display-weight, 400);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--hp-ink);
}

.hp-niches-teaser__text {
  margin: 0;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--hp-muted);
}

@media (max-width: 1024px) {
  .hp-niches-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hp-niches-grid {
    grid-template-columns: 1fr;
  }

  .hp-niches-filters {
    gap: 6px;
  }

  .hp-niches-filters__btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .hp-niche-card {
    min-height: 0;
    padding: 18px 18px;
  }

  .hp-niches-teaser {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========== AGENT / PARTNER PROGRAM ========== */
.hp-agent-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 12vw, 120px) clamp(20px, 4vw, 40px) clamp(56px, 8vw, 88px);
  background:
    radial-gradient(ellipse 70% 55% at 80% 0%, color-mix(in srgb, var(--hp-accent) 30%, transparent), transparent 65%),
    radial-gradient(ellipse 45% 40% at 5% 100%, color-mix(in srgb, var(--hp-accent) 14%, transparent), transparent 60%),
    linear-gradient(165deg, color-mix(in srgb, var(--hp-bg) 88%, #0b1220) 0%, var(--hp-bg) 48%, var(--hp-bg-elevated) 100%);
  border-bottom: 1px solid var(--hp-line);
}

.hp-agent-hero__glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 55%;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--hp-accent) 20%, transparent), transparent 70%);
  pointer-events: none;
  opacity: 0.7;
}

.hp-agent-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--hp-max, 1120px);
  margin: 0 auto;
  text-align: center;
}

.hp-agent-hero__label {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hp-accent);
}

.hp-agent-hero__title {
  margin: 0 auto 20px;
  max-width: 16ch;
  font-family: var(--hp-display);
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 400;
  letter-spacing: var(--hp-display-letter-spacing, 0.5px);
  line-height: var(--hp-display-line-height, 1.1);
}

.hp-agent-hero__lead {
  margin: 0 auto 28px;
  max-width: 58ch;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.65;
  color: var(--hp-muted);
}

.hp-agent-hero__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.hp-agent-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
  padding: 16px 22px;
  border-radius: var(--hp-radius-lg);
  border: 1px solid color-mix(in srgb, var(--hp-accent) 24%, var(--hp-line));
  background: color-mix(in srgb, var(--hp-bg-elevated) 88%, transparent);
}

.hp-agent-hero__stat b {
  font-family: var(--hp-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  line-height: 1;
  color: var(--hp-accent);
}

.hp-agent-hero__stat span {
  font-size: 13px;
  color: var(--hp-muted);
}

.hp-agent-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hp-bento--agent {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hp-agent-audience {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hp-agent-audience__card {
  padding: clamp(22px, 3vw, 28px);
  border-radius: var(--hp-radius-lg);
  border: 1px solid var(--hp-line);
  background: var(--hp-bg-elevated);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.hp-agent-audience__card:hover {
  border-color: color-mix(in srgb, var(--hp-accent) 40%, var(--hp-line));
  transform: translateY(-2px);
  box-shadow: var(--hp-shadow);
}

.hp-agent-audience__title {
  margin: 0 0 8px;
  font-family: var(--hp-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  letter-spacing: var(--hp-display-letter-spacing, 0.5px);
  line-height: var(--hp-display-line-height, 1.1);
}

.hp-agent-audience__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--hp-muted);
}

.hp-agent-rates {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.hp-agent-rate {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--hp-radius-lg);
  border: 1px solid var(--hp-line);
  background: var(--hp-bg-elevated);
  text-align: center;
}

.hp-agent-rate--accent {
  border-color: color-mix(in srgb, var(--hp-accent) 36%, var(--hp-line));
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, color-mix(in srgb, var(--hp-accent) 16%, transparent), transparent 60%),
    var(--hp-bg-elevated);
}

.hp-agent-rate__pct {
  font-family: var(--hp-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  line-height: 1;
  color: var(--hp-accent);
}

.hp-agent-rate__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.hp-agent-rate__text {
  margin: 0;
  font-size: 13px;
  color: var(--hp-muted);
}

.hp-agent-cta {
  margin: 0 clamp(16px, 3vw, 32px) clamp(32px, 5vw, 48px);
  padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 40px);
  border-radius: calc(var(--hp-radius-lg) + 4px);
  border: 1px solid color-mix(in srgb, var(--hp-accent) 28%, var(--hp-line));
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, color-mix(in srgb, var(--hp-accent) 22%, transparent), transparent 55%),
    linear-gradient(145deg, color-mix(in srgb, var(--hp-bg) 80%, #0b1220), var(--hp-bg-elevated));
  text-align: center;
}

.hp-agent-cta__inner {
  max-width: 640px;
  margin: 0 auto;
}

.hp-agent-cta__label {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hp-accent);
}

.hp-agent-cta__title {
  margin: 0 0 14px;
  font-family: var(--hp-display);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 400;
  letter-spacing: var(--hp-display-letter-spacing, 0.5px);
  line-height: var(--hp-display-line-height, 1.1);
}

.hp-agent-cta__text {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--hp-muted);
}

.hp-agent-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hp-agent-home {
  padding-top: 0;
}

.hp-agent-promo {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  gap: clamp(20px, 3vw, 32px);
  padding: clamp(28px, 4vw, 40px);
  border-radius: calc(var(--hp-radius-lg) + 2px);
  border: 1px solid color-mix(in srgb, var(--hp-accent) 26%, var(--hp-line));
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, color-mix(in srgb, var(--hp-accent) 16%, transparent), transparent 60%),
    var(--hp-bg-elevated);
}

.hp-agent-promo__title {
  margin: 0 0 12px;
  font-family: var(--hp-display);
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 400;
  letter-spacing: var(--hp-display-letter-spacing, 0.5px);
  line-height: var(--hp-display-line-height, 1.1);
}

.hp-agent-promo__lead {
  margin: 0 0 16px;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--hp-muted);
}

.hp-agent-promo__list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hp-agent-promo__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--hp-text);
}

.hp-agent-promo__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hp-accent);
}

.hp-agent-promo__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hp-agent-promo__aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.hp-agent-promo__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border-radius: var(--hp-radius-lg);
  border: 1px solid var(--hp-line);
  background: color-mix(in srgb, var(--hp-accent) 8%, var(--hp-bg));
  text-align: center;
}

.hp-agent-promo__stat b {
  font-family: var(--hp-display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 400;
  line-height: 1;
  color: var(--hp-accent);
}

.hp-agent-promo__stat span {
  font-size: 13px;
  color: var(--hp-muted);
}

.hp-agent-promo__pill {
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: var(--hp-accent);
  background: color-mix(in srgb, var(--hp-accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--hp-accent) 28%, var(--hp-line));
}

@media (max-width: 960px) {
  .hp-bento--agent {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-agent-rates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-agent-promo {
    grid-template-columns: 1fr;
  }

  .hp-agent-promo__aside {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hp-agent-promo__stat {
    flex: 1 1 120px;
  }

  .hp-agent-promo__pill {
    flex: 1 1 100%;
  }
}

@media (max-width: 640px) {
  .hp-agent-audience,
  .hp-agent-rates,
  .hp-bento--agent {
    grid-template-columns: 1fr;
  }

  .hp-bento--agent .hp-bento__card--wide {
    grid-column: span 1;
  }
}

/* ===== SEO copy (crawlable accordion, collapsed by default) ===== */
.hp-seo-copy {
  margin: 0;
  padding: clamp(28px, 4vw, 48px) 0 clamp(40px, 6vw, 72px);
  border-top: 1px solid color-mix(in srgb, var(--hp-ink, #0f1218) 8%, transparent);
  background: color-mix(in srgb, var(--hp-muted-bg, #f3f5f8) 55%, transparent);
}

.hp-seo-copy__inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hp-seo-copy__details {
  border: 1px solid color-mix(in srgb, var(--hp-ink, #0f1218) 10%, transparent);
  border-radius: 14px;
  background: var(--hp-surface, #fff);
  overflow: hidden;
}

.hp-seo-copy__summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 650;
  line-height: 1.4;
  color: var(--hp-muted, #5b6575);
  cursor: pointer;
  list-style: none;
}

.hp-seo-copy__summary::-webkit-details-marker,
.hp-seo-copy__summary::marker {
  display: none;
  content: "";
}

.hp-seo-copy__summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--hp-accent, #e85d04);
  font-size: 1.2em;
  font-weight: 500;
}

.hp-seo-copy__details[open] .hp-seo-copy__summary::after {
  content: "−";
}

.hp-seo-copy__body {
  max-height: 12.5rem;
  overflow: hidden;
  padding: 0 18px 18px;
  color: var(--hp-muted, #5b6575);
  font-size: 14px;
  line-height: 1.7;
}

.hp-seo-copy__details[open] .hp-seo-copy__body {
  max-height: none;
  overflow: visible;
}

.hp-seo-copy__body p {
  margin: 0 0 0.9em;
}

.hp-seo-copy__body h3,
.hp-seo-copy__body h4 {
  margin: 1.1em 0 0.45em;
  color: var(--hp-ink, #0f1218);
  font-size: 1.05em;
}

.hp-related-cases,
.hp-related-services {
  scroll-margin-top: 96px;
}

.hp-service-bento--related {
  margin-top: 8px;
}

@media (max-width: 640px) {
  .hp-seo-copy__inner {
    width: min(1120px, calc(100% - 24px));
  }
}
