/* Compact groups should not inherit the same stacking breakpoint as long copy.
   Loaded after page styles; DOM and screen-reader reading order stay unchanged. */
.service-row--kommo .service-row__heading-logo { margin-inline: auto; }

.proof__metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof__metrics > div { min-width: 0; }

/* Service heroes: smaller titles and artwork first when the layout stacks. */
.marketing-service-hero h1,
.systems-page .websites-hero h1,
.websites-page--service .websites-hero h1 {
  font-size: clamp(3rem, 4.8vw, 5.5rem);
  line-height: 1.02;
  max-width: 14ch;
}
@media (max-width: 1000px) {
  .marketing-service-hero > .websites-hero__visual { grid-row: 1; }
}
@media (max-width: 900px) {
  .systems-page .websites-hero > .websites-hero__visual,
  .websites-page--service .websites-hero > .websites-hero__visual { grid-row: 1; }
}
@media (max-width: 760px) {
  .marketing-service-hero h1,
  .systems-page .websites-hero h1,
  .websites-page--service .websites-hero h1 { font-size: clamp(2.5rem, 10vw, 3.25rem); }
  .marketing-service-hero,
  .systems-page .websites-hero,
  .websites-page--service .websites-hero {
    padding-top: calc(var(--header-h) + 2rem);
    row-gap: 2rem;
  }
}

@media (min-width: 761px) {
  /* Align the visible logo artwork, allowing for its transparent inset. */
  .service-row--kommo .service-row__heading-logo { margin-inline: 0; transform: translateX(-9.5%); }
}

@media (max-width: 720px) {
  main .button { align-self: stretch; justify-self: stretch; max-width: none; width: 100%; }
  .closing-cta .closing-cta__content { grid-template-columns: minmax(0, 1fr); }
  .proof__metrics {
    column-gap: clamp(.5rem, 2vw, 1.25rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 3rem;
  }
  .proof__metrics > div {
    align-content: start;
    align-items: start;
    border-left: 0;
    display: grid;
    gap: .9rem;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    min-width: 0;
    padding: 1.4rem 0;
    text-align: center;
  }
  .proof__metrics strong { font-size: clamp(2rem, 10vw, 3.5rem); white-space: nowrap; }
  .proof__metrics > div:nth-child(odd) { border-left: 0; }
  .proof__metrics span { font-size: clamp(.7rem, 3vw, .8rem); line-height: 1.5; margin-top: 0; max-width: none; }
  .method__steps li { gap: 1rem; grid-template-columns: 28px minmax(0, 1fr); min-height: 0; }
}

@media (min-width: 480px) and (max-width: 1000px) {
  .method__steps { display: grid; column-gap: 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method__steps li { gap: .8rem; grid-template-columns: 24px minmax(0, 1fr); min-height: 0; padding: 1.5rem 0 2rem; }
  .method__steps li:last-child { border-bottom: 0; }
  .method__steps h3 { font-size: clamp(1.6rem, 3.7vw, 2.4rem); }
  .method__steps p { font-size: .95rem; line-height: 1.55; }
}

@media (min-width: 480px) and (max-width: 760px) {
  .websites-scope ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .websites-scope li { min-width: 0; padding: 1rem; overflow-wrap: break-word; }
}

@media (min-width: 600px) and (max-width: 760px) {
  .websites-principles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
}

@media (min-width: 640px) and (max-width: 900px) {
  .websites-process ol { display: grid; column-gap: 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .websites-process li { gap: .8rem; grid-template-columns: 24px minmax(0, 1fr); }
  .websites-process li h3 { font-size: 1.5rem; }
}

@media (min-width: 721px) and (max-width: 1000px) {
  .proof__intro { gap: 2rem; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .proof__intro > .section-index { grid-column: 1 / -1; }
  .proof__intro h2 { font-size: clamp(2.5rem, 4.8vw, 3.5rem); }
  .proof__intro > p:last-child { grid-column: 2; }
}

/* Kommo partner benefits: compact icon + copy, with open space between items. */
.kommo-benefits {
  column-gap: clamp(1.5rem, 3vw, 3rem);
  grid-template-columns: minmax(0, 1fr);
  row-gap: .5rem;
}
.kommo-benefits li,
.kommo-benefits li:last-child {
  align-items: flex-start;
  border: 0;
  border-top: 1px solid var(--line);
  gap: 1rem;
  min-height: 0;
  min-width: 0;
  padding: 1.35rem 0;
}
.kommo-benefits .kommo-benefits__icon {
  align-items: center;
  background: #f2eff8;
  border-radius: 10px;
  color: #291754;
  display: flex;
  height: 36px;
  justify-content: center;
  margin-top: 0;
  width: 36px;
}
.kommo-benefits__icon svg { fill: none; height: 18px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 18px; }
.kommo-benefits__copy { min-width: 0; }
.kommo-benefits__copy strong { display: block; font-size: 1.05rem; font-weight: 500; letter-spacing: -.025em; line-height: 1.35; }
.kommo-benefits__copy p { color: var(--muted); font-size: .9rem; line-height: 1.55; margin: .5rem 0 0; max-width: 32ch; }
@media (min-width: 560px) {
  .kommo-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .kommo-benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
