.palekh-service-hero {
  padding: clamp(0.75rem, 2vw, 1.55rem) 1.25rem 0;
}

.palekh-service-hero__stage {
  position: relative;
  isolation: isolate;
  display: grid;
  max-width: 96rem;
  min-height: clamp(30rem, 40vw, 39rem);
  align-items: center;
  margin-inline: auto;
  overflow: hidden;
  background: radial-gradient(ellipse at 77% 66%, #1d1925, transparent 50%), #090806;
  border: 1px solid var(--palekh-line);
  border-radius: 1.45rem;
  box-shadow: inset 0 0 0 4px #090806, inset 0 0 0 5px #3d2918;
}

.palekh-service-hero__art {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 65%;
  mix-blend-mode: screen;
  mask-image: linear-gradient(90deg, transparent 2%, #000 23%, #000 97%, transparent);
}

.palekh-service-hero__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
}

.palekh-service-hero__copy {
  width: min(52%, 47rem);
  padding: clamp(2rem, 5.2vw, 5.5rem);
}

.palekh-service-hero__copy .eyebrow::after {
  content: none;
}

.palekh-service-hero__copy .breadcrumbs {
  margin-bottom: 1.1rem;
  color: var(--palekh-text);
}

.palekh-service-hero h1 {
  max-width: 12ch;
  margin: 0 0 1.15rem;
  font-size: clamp(3.3rem, 7.05vw, 7.45rem);
  letter-spacing: -0.05em;
  line-height: 0.91;
  text-wrap: balance;
}

.palekh-service-hero h1 em {
  display: block;
  color: var(--palekh-gold);
}

.palekh-service-hero__lead {
  max-width: 32rem;
  margin-bottom: 1.35rem;
  color: var(--palekh-text);
  font-size: clamp(1rem, 1.23vw, 1.12rem);
  text-wrap: pretty;
}

.palekh-service-hero__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  padding: 1.1rem 0 0;
  margin: 1.15rem 0 0;
  border-top: 1px solid var(--palekh-line-soft);
  list-style: none;
  font-size: 0.875rem;
}

.palekh-service-hero__topics li,
.palekh-service-section li {
  position: relative;
  padding-left: 0.95rem;
}

.palekh-service-hero__topics li::before,
.palekh-service-section li::before {
  position: absolute;
  top: 0.63em;
  left: 0.1rem;
  width: 0.34rem;
  height: 0.34rem;
  background: var(--palekh-gold);
  transform: rotate(45deg);
  content: "";
}

.palekh-service-layout {
  padding-block: clamp(1.5rem, 3.5vw, 3rem) clamp(2.6rem, 6vw, 5.5rem);
}

.palekh-service-content {
  color: var(--palekh-text);
  overflow-wrap: break-word;
}

.palekh-service-content > * {
  max-width: none;
}

.palekh-service-content h2,
.palekh-service-follow-up h2 {
  margin: 0 0 clamp(0.9rem, 2vw, 1.45rem);
  font-size: clamp(2.45rem, 4.6vw, 4.1rem);
}

.palekh-service-content h3 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.65rem, 2.55vw, 2.4rem);
}

.palekh-service-jump {
  padding: 0.55rem 0.9rem;
  margin: 0 0 1.65rem;
  background: #14100c;
  border: 1px solid var(--palekh-line);
  border-radius: 1rem;
}

.palekh-service-content .palekh-service-jump .section-jump-links {
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
}

.palekh-service-jump .section-jump-links a {
  padding: 0.46rem 0.85rem;
  color: var(--palekh-ivory);
  border-radius: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.palekh-service-jump .section-jump-links a:hover {
  color: var(--palekh-gold);
  background: #2b1c10;
}

.palekh-service-intro {
  max-width: 51rem;
  padding: 0.65rem 0 0.9rem;
}

.palekh-service-intro > :first-child {
  color: var(--palekh-ivory);
  font-size: clamp(1.07rem, 1.65vw, 1.27rem);
}

.palekh-service-section {
  position: relative;
  padding: clamp(1.95rem, 4vw, 3.5rem) 0;
  border-top: 1px solid var(--palekh-line-soft);
}

.palekh-service-section > h2 {
  max-width: 23ch;
}

.palekh-service-section > h2:target {
  color: var(--palekh-gold);
}

.palekh-service-section > p {
  max-width: 75ch;
  margin-bottom: 0.95rem;
}

.palekh-service-section > :last-child,
.palekh-service-step > :last-child,
.palekh-service-answer > :last-child {
  margin-bottom: 0;
}

.palekh-service-section .grid {
  margin-top: 1.15rem;
}

.palekh-service-content .card {
  padding: clamp(1.2rem, 2.3vw, 1.85rem);
  background: linear-gradient(144deg, #1d160f, #100d0a 78%);
  border: 1px solid var(--palekh-line);
  border-radius: 1rem;
  box-shadow: inset 0 0 0 3px #0d0a07, inset 0 0 0 4px rgb(192 144 80 / 13%);
}

.palekh-service-content .grid .card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.palekh-service-content .card > .text-link {
  min-height: 2.5rem;
  margin-top: auto;
}

.palekh-service-content .card > :last-child {
  margin-bottom: 0;
}

.palekh-service-section--types > h2,
.palekh-service-section--process > h2 {
  max-width: none;
  text-align: center;
}

.palekh-service-section--types .grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.palekh-service-section--types .card {
  padding-top: 0.5rem;
  background: radial-gradient(ellipse at 50% 16%, #1c2131, transparent 65%), #110d0a;
}

.palekh-service-section--types h3 {
  font-size: clamp(1.63rem, 2.3vw, 2.05rem);
}

.palekh-service-section--types .card::before {
  display: block;
  width: 100%;
  height: clamp(6.4rem, 9.8vw, 9rem);
  margin-bottom: 0.8rem;
  background: center / contain no-repeat var(--development-type-art, none);
  mix-blend-mode: screen;
  mask-image: linear-gradient(#000 79%, transparent);
  content: "";
}

.palekh-service-section--types .card:nth-child(1) {
  --development-type-art: url("../images/palekh/development-corporate.webp");
}

.palekh-service-section--types .card:nth-child(2) {
  --development-type-art: url("../images/palekh/development-store.webp");
}

.palekh-service-section--types .card:nth-child(3) {
  --development-type-art: url("../images/palekh/development-catalog.webp");
}

.palekh-service-section--types .card:nth-child(4) {
  --development-type-art: url("../images/palekh/development-redesign.webp");
}

.palekh-service-section ul {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  margin-top: 0.8rem;
  list-style: none;
}

.palekh-service-section > ul {
  max-width: 61rem;
  padding: clamp(0.9rem, 2vw, 1.25rem) clamp(0.95rem, 2vw, 1.6rem);
  background: #13100d;
  border-left: 2px solid var(--palekh-line);
  border-radius: 0 0.85rem 0.85rem 0;
}

.palekh-service-section--planning > ul,
.palekh-service-section--pricing > ul,
.palekh-service-section--architecture .card ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.8rem;
}

.palekh-service-section--architecture {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-rows: auto min-content auto;
  gap: 0.9rem clamp(1.5rem, 4vw, 3.9rem);
  align-items: start;
}

.palekh-service-section--architecture > h2,
.palekh-service-section--architecture > .card,
.palekh-service-section--architecture > :last-child {
  grid-column: 1 / -1;
}

.palekh-service-section--architecture > .card {
  width: 100%;
}

.palekh-service-section--architecture > figure {
  grid-column: 2;
  grid-row: 2 / span 2;
  margin: 0;
}

.palekh-service-section--architecture > figure img {
  width: 100%;
  height: auto;
  border-color: var(--palekh-line);
  border-radius: 0.9rem;
  filter: sepia(0.72) saturate(0.88);
}

.palekh-service-section--architecture figcaption {
  margin-top: 0.55rem;
  color: var(--palekh-text);
  font-size: 0.875rem;
  text-align: left;
}

.palekh-service-process-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1.15rem;
}

.palekh-service-step {
  min-width: 0;
  padding: 1.15rem 1.35rem;
  background: linear-gradient(135deg, #22180e, #111213);
  border: 1px solid var(--palekh-line-soft);
  border-top-color: var(--palekh-line);
  border-radius: 0.85rem;
}

.palekh-service-step h3 {
  font-size: clamp(1.57rem, 2.35vw, 2.07rem);
}

.palekh-service-section--seo,
.palekh-service-section--migration,
.palekh-service-section--platform {
  padding-inline: clamp(1rem, 3.5vw, 3rem);
  margin-block: 0 1.15rem;
  background: linear-gradient(105deg, #171923, #100c09);
  border: 1px solid var(--palekh-line-soft);
  border-radius: 1rem;
}

.palekh-service-section--migration {
  background: linear-gradient(105deg, #1b1410, #12151d);
}

.palekh-service-section--platform {
  background: radial-gradient(ellipse at 50% 0, #22180e, #100c09);
}

.palekh-service-section--integrations .grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.2rem;
}

.palekh-service-section--integrations .grid h3 {
  color: var(--palekh-gold);
  font-size: clamp(1.6rem, 2.4vw, 2.18rem);
}

.palekh-service-section--faq {
  display: grid;
  grid-template-columns: minmax(13rem, 0.75fr) minmax(0, 1.25fr);
  column-gap: clamp(1.3rem, 5vw, 5rem);
  align-items: start;
}

.palekh-service-section--faq > h2 {
  width: 100%;
}

.palekh-service-section--faq > h2::after {
  display: block;
  width: min(22rem, 100%);
  aspect-ratio: 2;
  margin-top: 0.35rem;
  background: left center / contain no-repeat url("../images/palekh/faq-firebird.webp");
  mix-blend-mode: screen;
  content: "";
}

.palekh-service-faq-items {
  display: grid;
  gap: 0.6rem;
}

.palekh-service-faq-items details {
  padding-inline: 1.15rem;
  background: #15110d;
  border: 1px solid var(--palekh-line);
  border-radius: 0.8rem;
}

.palekh-service-faq-items summary {
  display: flex;
  min-height: 3.5rem;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 0.65rem;
  list-style: none;
  cursor: pointer;
}

.palekh-service-faq-items summary::-webkit-details-marker {
  display: none;
}

.palekh-service-faq-items summary::after {
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.25rem;
  border-right: 1px solid var(--palekh-gold);
  border-bottom: 1px solid var(--palekh-gold);
  transform: translateY(-0.15rem) rotate(45deg);
  content: "";
}

.palekh-service-faq-items details[open] summary::after {
  transform: translateY(0.14rem) rotate(225deg);
}

.palekh-service-faq-items summary h3 {
  margin: 0;
  font: 600 1rem/1.36 "Golos Text", system-ui, sans-serif;
}

.palekh-service-faq-items summary:hover h3 {
  color: var(--palekh-gold);
}

.palekh-service-answer {
  padding-block: 0.8rem 1rem;
  border-top: 1px solid var(--palekh-line-soft);
}

.palekh-service-content .palekh-service-cta {
  position: relative;
  isolation: isolate;
  padding: clamp(1.35rem, 4vw, 3.2rem);
  padding-right: 43%;
  margin: 0.8rem 0 0;
}

.palekh-service-cta::after {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 43%;
  background: center / contain no-repeat url("../images/palekh/project-troika.webp");
  mix-blend-mode: screen;
  mask-image: linear-gradient(90deg, transparent, #000 25%, #000 96%, transparent);
  content: "";
}

.palekh-service-follow-up {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem 1.25rem;
  padding: 1.3rem 0 0;
}

.palekh-service-follow-up h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
}

.palekh-service-follow-up ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

@media (max-width: 1050px) {
  .palekh-service-hero__copy {
    width: 55%;
    padding-inline: 2.2rem 0.6rem;
  }

  .palekh-service-section--types .grid,
  .palekh-service-section--integrations .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .palekh-service-hero {
    padding-inline: 0.75rem;
  }

  .palekh-service-hero__stage {
    min-height: 0;
    border-radius: 1rem;
  }

  .palekh-service-hero__art {
    position: relative;
    grid-row: 2;
    width: 100%;
    height: clamp(10rem, 43vw, 17.7rem);
    margin-top: -0.5rem;
    mask-image: linear-gradient(180deg, transparent, #000 16%, #000 82%, transparent);
  }

  .palekh-service-hero__art img {
    object-position: center;
  }

  .palekh-service-hero__copy {
    width: 100%;
    padding: 1.7rem 1.1rem 0.6rem;
  }

  .palekh-service-hero h1 {
    font-size: clamp(3.15rem, 9vw, 4.85rem);
  }

  .palekh-service-hero__topics {
    gap: 0.35rem 0.9rem;
  }

  .palekh-service-hero .actions {
    gap: 0.55rem;
  }

  .palekh-service-layout {
    width: calc(100% - 1.5rem);
  }

  .palekh-service-content h2 {
    font-size: clamp(2.15rem, 7.8vw, 3.2rem);
  }

  .palekh-service-jump {
    padding: 0.55rem 0.45rem;
  }

  .palekh-service-content .palekh-service-jump .section-jump-links {
    justify-content: flex-start;
    gap: 0.25rem;
  }

  .palekh-service-jump .section-jump-links a {
    min-height: 2.55rem;
    padding-inline: 0.55rem;
  }

  .palekh-service-section--architecture {
    display: block;
  }

  .palekh-service-section--architecture > figure {
    margin-bottom: 1rem;
  }

  .palekh-service-section--faq {
    grid-template-columns: minmax(0, 1fr);
  }

  .palekh-service-section--faq > h2::after {
    display: none;
  }

  .palekh-service-content .palekh-service-cta {
    padding-right: 1.2rem;
    padding-bottom: clamp(7rem, 29vw, 10rem);
  }

  .palekh-service-cta::after {
    inset: auto 0 0;
    width: 100%;
    height: clamp(6.5rem, 27vw, 9rem);
    mask-image: linear-gradient(transparent, #000 22%, #000 95%, transparent);
  }
}

@media (max-width: 520px) {
  .palekh-service-hero__copy {
    padding-inline: 0.9rem;
  }

  .palekh-service-section--types .grid,
  .palekh-service-section--integrations .grid,
  .palekh-service-process-items,
  .palekh-service-section--planning > ul,
  .palekh-service-section--pricing > ul,
  .palekh-service-section--architecture .card ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .palekh-service-section--types .card::before {
    height: 8.8rem;
  }
}
