.palekh-improvements .palekh-service-hero__stage {
  min-height: clamp(29rem, 44vw, 39rem);
  background: radial-gradient(ellipse at 79% 58%, #272741, transparent 68%), var(--palekh-black);
}

.palekh-improvements .palekh-service-hero__copy {
  width: min(58%, 52rem);
  padding: clamp(1.5rem, 4.55vw, 4.7rem);
}

.palekh-improvements .palekh-service-hero__art {
  width: 68%;
  mask-image: linear-gradient(90deg, transparent 5%, #000 31%, #000 97%, transparent);
}

.palekh-improvements .palekh-service-hero h1 {
  max-width: none;
  font-size: clamp(2.8rem, 6.25vw, 6.55rem);
}

.palekh-improvements .palekh-service-hero__lead {
  max-width: 32rem;
}

.palekh-improvements .palekh-service-jump {
  background: linear-gradient(111deg, #392719, #292b40 58%, #29241b);
}

.palekh-improvements .palekh-service-intro {
  max-width: 59rem;
}

.palekh-improvements .palekh-service-section > h2 {
  max-width: 25ch;
  text-wrap: balance;
}

.palekh-improvements :is(
  .palekh-service-section--improvement-decisions,
  .palekh-service-section--improvement-diagnostics,
  .palekh-service-section--improvement-release,
  .palekh-service-section--improvement-formats,
  .palekh-service-section--improvement-brief
) {
  isolation: isolate;
  padding: clamp(1.15rem, 3.35vw, 2.8rem);
  margin-block: 1.05rem;
  background: var(--improvement-panel, #1c1610);
  border: 1px solid var(--improvement-border, var(--palekh-line));
  border-radius: 1.1rem;
}

.palekh-service-section--improvement-decisions {
  --improvement-panel: radial-gradient(ellipse at 89% 4%, #3b3248, transparent 75%), #26180f;
}

.palekh-improvements .palekh-service-section--improvement-decisions .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.55vw, 1.15rem);
  margin-block: 1.1rem;
}

.palekh-improvements .palekh-service-section--improvement-decisions .card::before {
  width: 100%;
  height: clamp(5.4rem, 10.4vw, 8.3rem);
  align-self: center;
  margin-bottom: 0.7rem;
  background: center / contain no-repeat var(--improvement-decision-art);
  mix-blend-mode: screen;
  mask-image: radial-gradient(ellipse, #000 52%, transparent 98%);
  content: "";
}

.palekh-improvements .palekh-service-section--improvement-decisions .card:first-child {
  --improvement-decision-art: url("../images/palekh/recovery.webp");
  background: radial-gradient(ellipse at 40% 5%, #3a4a58, transparent 76%), #181821;
}

.palekh-improvements .palekh-service-section--improvement-decisions .card:nth-child(2) {
  --improvement-decision-art: url("../images/palekh/improvements.webp");
  background: radial-gradient(ellipse at 40% 5%, #493a25, transparent 77%), #211710;
}

.palekh-improvements .palekh-service-section--improvement-decisions .card:nth-child(3) {
  --improvement-decision-art: url("../images/palekh/development.webp");
  background: radial-gradient(ellipse at 40% 5%, #374532, transparent 77%), #171b13;
}

.palekh-improvements .palekh-service-section--improvement-decisions .card .eyebrow::after {
  content: none;
}

.palekh-improvements :is(.palekh-service-section--improvement-decisions, .palekh-service-section--improvement-formats) .card h3 {
  color: var(--palekh-gold);
}

.palekh-improvements :is(
  .palekh-service-section--improvement-tasks,
  .palekh-service-section--improvement-release,
  .palekh-service-section--improvement-estimate
) > ul,
.palekh-improvements .palekh-service-section--improvement-diagnostics .card > ul {
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem clamp(1rem, 3vw, 2.1rem);
}

.palekh-improvements .palekh-service-section--improvement-tasks > ul {
  padding: 0;
  background: transparent;
  border: 0;
}

.palekh-improvements .palekh-service-section--improvement-tasks li {
  padding: 0.67rem 0.8rem 0.67rem 1.92rem;
  background: linear-gradient(115deg, #34251b, #211c25);
  border: 1px solid #6e5135;
  border-radius: 0.58rem;
}

.palekh-improvements .palekh-service-section--improvement-tasks li::before {
  top: 1.12rem;
  left: 0.77rem;
}

.palekh-service-section--improvement-diagnostics {
  --improvement-panel: radial-gradient(ellipse at 91% 20%, #374a65, transparent 82%), #191820;
}

.palekh-improvements .palekh-service-section--improvement-diagnostics > .card {
  margin-top: 1.15rem;
  color: #412c1e;
  background: radial-gradient(ellipse at 93% 12%, #f8e1b8, transparent 80%), #e8c38e;
  border-color: #d7ac70;
  box-shadow: inset 0 0 0 4px #c8a174, inset 0 0 0 5px #a37043;
}

.palekh-improvements .palekh-service-section--improvement-diagnostics .card :is(.eyebrow, h3) {
  color: #752e23;
}

.palekh-improvements .palekh-service-section--improvement-diagnostics .card .eyebrow::before,
.palekh-improvements .palekh-service-section--improvement-diagnostics .card .eyebrow::after {
  background: linear-gradient(90deg, transparent, #8f5135);
}

.palekh-improvements .palekh-service-section--improvement-diagnostics li::before {
  background: #943e2b;
}

.palekh-improvements .palekh-service-scope-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.45vw, 1.15rem);
}

.palekh-improvements .palekh-service-scope-item {
  display: grid;
  min-width: 0;
  grid-template-columns: clamp(4rem, 7vw, 6.1rem) minmax(0, 1fr);
  align-content: start;
  align-items: center;
  gap: 0.55rem 0.85rem;
  padding: clamp(0.95rem, 2vw, 1.52rem);
  background: radial-gradient(ellipse at 10% 0%, #402b1e, transparent 78%), #1a120e;
  border: 1px solid var(--palekh-line);
  border-radius: 0.85rem;
  box-shadow: inset 0 0 0 3px #110d0b, inset 0 0 0 4px rgb(235 188 112 / 15%);
}

.palekh-improvements .palekh-service-scope-item:nth-child(even) {
  background: radial-gradient(ellipse at 10% 0%, #30425d, transparent 78%), #181620;
}

.palekh-improvements .palekh-service-scope-item::before {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--improvement-icon, left top) / 400% 200% no-repeat url("../images/palekh/improvements-scope-paintings.webp");
  mix-blend-mode: screen;
  content: "";
}

.palekh-improvements .palekh-service-scope-item:nth-child(2) { --improvement-icon: 33.3333% top; }
.palekh-improvements .palekh-service-scope-item:nth-child(3) { --improvement-icon: 66.6667% top; }
.palekh-improvements .palekh-service-scope-item:nth-child(4) { --improvement-icon: right top; }
.palekh-improvements .palekh-service-scope-item:nth-child(5) { --improvement-icon: left bottom; }
.palekh-improvements .palekh-service-scope-item:nth-child(6) { --improvement-icon: 33.3333% bottom; }
.palekh-improvements .palekh-service-scope-item:nth-child(7) { --improvement-icon: 66.6667% bottom; }
.palekh-improvements .palekh-service-scope-item:nth-child(8) { --improvement-icon: right bottom; }

.palekh-improvements .palekh-service-scope-item h3 {
  margin: 0;
  color: var(--palekh-gold);
  font-size: clamp(1.5rem, 2.48vw, 2.35rem);
}

.palekh-improvements .palekh-service-scope-item > :not(h3) {
  grid-column: 1 / -1;
}

.palekh-improvements .palekh-service-scope-item > :last-child {
  margin-bottom: 0;
}

.palekh-service-section--improvement-release {
  --improvement-panel: radial-gradient(ellipse at 90% 15%, #334837, transparent 74%), #181e1b;
  --improvement-border: #6e795b;
}

.palekh-improvements .palekh-service-content figure.palekh-improvement-diagram {
  padding: clamp(0.88rem, 2.75vw, 1.9rem);
  margin: 1.15rem 0;
  background: radial-gradient(ellipse at 25% 7%, #3d3729, transparent 81%), #151a1c;
  border: 1px solid #a88051;
  border-radius: 0.85rem;
  box-shadow: inset 0 0 0 4px #181715, inset 0 0 0 5px #755a3d;
}

.palekh-improvement-diagram .palekh-improvement-diagram__title {
  margin: 0 0 1rem;
  color: var(--palekh-gold);
  font-family: var(--palekh-serif);
  font-size: clamp(1.7rem, 3.4vw, 3rem);
  font-weight: 600;
  line-height: 1.06;
  text-align: center;
  text-wrap: balance;
}

.palekh-improvement-diagram > ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0;
  margin: 0 0 0.85rem;
  counter-reset: improvement-release;
  list-style: none;
}

.palekh-improvement-diagram li {
  display: grid;
  align-content: start;
  gap: 0.2rem;
  padding: 2.9rem 0.66rem 0.78rem;
  color: var(--palekh-text);
  background: linear-gradient(125deg, #2c3930, #202620);
  border: 1px solid #6b785e;
  border-radius: 0.57rem;
  counter-increment: improvement-release;
  font-size: 0.9rem;
  line-height: 1.36;
  text-align: center;
}

.palekh-improvement-diagram li::before {
  top: 0.65rem;
  left: 50%;
  display: grid;
  width: 1.72rem;
  height: 1.72rem;
  place-items: center;
  color: var(--palekh-gold);
  background: #1c2019;
  border: 1px solid #ad874d;
  border-radius: 50%;
  transform: translateX(-50%);
  font-size: 0.83rem;
  font-weight: 600;
  content: counter(improvement-release);
}

.palekh-improvement-diagram li strong {
  color: var(--palekh-ivory);
}

.palekh-improvement-diagram .palekh-improvement-diagram__fallback {
  padding: 0.55rem 0.7rem;
  margin: 0;
  color: #f9d3bc;
  background: #3b251f;
  border: 1px solid #916149;
  border-radius: 0.5rem;
  font-weight: 500;
  text-align: center;
}

.palekh-improvements .palekh-improvement-diagram > figcaption {
  margin: 0.75rem 0 0;
  color: var(--palekh-text);
  font-size: 0.82rem;
  text-align: center;
}

.palekh-improvements .palekh-service-section--improvement-release > ul {
  background: #242d23;
  border-color: #a2a47a;
}

.palekh-improvements .palekh-service-section--improvement-release > ul li::before {
  background: #dae1ac;
}

.palekh-improvements .palekh-service-section--improvement-workflow > ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.15rem;
  padding: 0;
  margin: 0;
  counter-reset: improvement-workflow;
  list-style: none;
}

.palekh-improvements .palekh-service-section--improvement-workflow li {
  padding: 0.9rem 1.08rem 0.9rem 3.8rem;
  background: linear-gradient(118deg, #322318, #1c1926);
  border: 1px solid var(--palekh-line);
  border-radius: 0.7rem;
  counter-increment: improvement-workflow;
}

.palekh-improvements .palekh-service-section--improvement-workflow li::before {
  top: 0.9rem;
  left: 0.85rem;
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  color: var(--palekh-gold);
  background: #231810;
  border: 1px solid #ac804c;
  border-radius: 45%;
  transform: none;
  font-weight: 600;
  content: counter(improvement-workflow, decimal-leading-zero);
}

.palekh-improvements .palekh-service-section--improvement-workflow li strong {
  display: block;
  margin-bottom: 0.16rem;
  color: var(--palekh-ivory);
}

.palekh-service-section--improvement-formats {
  --improvement-panel: radial-gradient(ellipse at 89% 60%, #333954, transparent 74%), #251912;
}

.palekh-improvements .palekh-service-section--improvement-formats > .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-block: 1.1rem;
}

.palekh-improvements .palekh-service-section--improvement-formats .card {
  background: radial-gradient(ellipse at 0% 0%, #502e24, transparent 76%), #261913;
}

.palekh-improvements .palekh-service-section--improvement-formats .card + .card {
  background: radial-gradient(ellipse at 0% 0%, #30445a, transparent 77%), #171c25;
}

.palekh-improvements .palekh-service-section--improvement-estimate > ul {
  margin-block: 1rem 1.2rem;
  background: linear-gradient(118deg, #3e2a1d, #211b29);
  border-color: #b78752;
}

.palekh-service-section--improvement-brief {
  --improvement-panel: radial-gradient(ellipse at 87% 66%, #4b302b, transparent 70%), #231710;
}

.palekh-improvements .palekh-service-section--improvement-brief {
  min-height: 15.5rem;
  padding-right: 38%;
}

.palekh-improvements .palekh-service-section--improvement-brief::after {
  position: absolute;
  z-index: -1;
  inset: 0.75rem 0.85rem 0.75rem auto;
  width: 35%;
  background: center / contain no-repeat url("../images/palekh/contact.webp");
  mix-blend-mode: screen;
  mask-image: radial-gradient(ellipse, #000 49%, transparent 98%);
  content: "";
}

.palekh-improvements .palekh-service-section--improvement-brief > p:first-of-type {
  padding: 0.7rem 0.88rem;
  color: var(--palekh-ivory);
  background: #38271d;
  border-inline-start: 2px solid #d0a872;
  border-radius: 0 0.58rem 0.58rem 0;
}

.palekh-improvements .palekh-service-content .palekh-service-cta {
  background: radial-gradient(ellipse at 87% 66%, #3f2f42, transparent 76%), #22160f;
}

@media (max-width: 760px) {
  .palekh-improvements .palekh-service-section--improvement-decisions .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .palekh-improvements .palekh-service-section--improvement-decisions .card::before {
    width: 8.5rem;
    align-self: flex-start;
  }

  .palekh-improvement-diagram > ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .palekh-improvements .palekh-service-hero__stage {
    min-height: 0;
  }

  .palekh-improvements .palekh-service-hero__copy {
    width: 100%;
    padding: 1.4rem 1rem 0.55rem;
  }

  .palekh-improvements .palekh-service-hero__art {
    width: 100%;
    height: clamp(10.4rem, 55vw, 19.4rem);
    margin-top: 0;
    mask-image: linear-gradient(180deg, transparent, #000 11%, #000 91%, transparent);
  }

  .palekh-improvements .palekh-service-hero h1 {
    font-size: clamp(2.2rem, 10vw, 4.65rem);
  }

  .palekh-improvements .palekh-service-hero h1 em {
    display: inline;
  }

  .palekh-improvements .palekh-service-section--improvement-brief {
    min-height: 0;
    padding-right: clamp(1.15rem, 3.35vw, 2.8rem);
    padding-bottom: clamp(7.6rem, 32vw, 10.8rem);
  }

  .palekh-improvements .palekh-service-section--improvement-brief::after {
    inset: auto 0 0.65rem;
    width: 100%;
    height: clamp(6.65rem, 29vw, 10rem);
  }
}

@media (max-width: 560px) {
  .palekh-improvements :is(
    .palekh-service-section--improvement-tasks,
    .palekh-service-section--improvement-release,
    .palekh-service-section--improvement-estimate
  ) > ul,
  .palekh-improvements .palekh-service-section--improvement-diagnostics .card > ul,
  .palekh-improvements .palekh-service-section--improvement-workflow > ol,
  .palekh-improvements .palekh-service-section--improvement-formats > .grid,
  .palekh-improvements .palekh-service-scope-items,
  .palekh-improvement-diagram > ol {
    grid-template-columns: minmax(0, 1fr);
  }

  .palekh-improvement-diagram li {
    min-height: 3.5rem;
    align-content: center;
    padding: 0.55rem 0.6rem 0.55rem 2.65rem;
    text-align: left;
  }

  .palekh-improvement-diagram li::before {
    top: 50%;
    left: 0.52rem;
    transform: translateY(-50%);
  }
}
