/* Shared rhythm for every internal page: list, detail, company and tools.
   Page content may grow, but its type scale, gutters and spacing stay the same. */
:root {
  --page-heading-size: clamp(36px, 4.2vw, 56px);
  --page-heading-top: 40px;
  --page-heading-bottom: 44px;
  --page-content-top: 64px;
}
body[class] main > .page-hero {
  padding: var(--page-heading-top) 0 var(--page-heading-bottom);
}
main > .page-hero > .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
main > .page-hero .breadcrumb {
  margin: 0 0 24px;
  font-size: 13px;
  line-height: 1.7;
}
main > .page-hero .kicker { margin: 0; }
body[class] main > .page-hero h1 {
  width: 100%;
  max-width: 1150px;
  margin: 18px 0;
  font-size: var(--page-heading-size);
  line-height: 1.12;
  overflow-wrap: break-word;
}
main > .page-hero p {
  max-width: 900px;
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
}
/* Only the first content section gets this offset; nested cards keep their own padding. */
body main > .page-hero + section,
body main > .subnav + section {
  padding-top: var(--page-content-top);
}
.em-catalog .em-catalog__intro {
  padding: 0;
  margin: 0 0 40px;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.em-catalog__intro .kicker { margin: 0; }
.em-catalog__intro h2 {
  font-size: clamp(32px, 3.2vw, 44px);
  line-height: 1.16;
  margin: 18px 0 0;
}
.em-catalog__intro p { margin: 0; }
.em-offer__overview,
.em-story__top,
.em-team__intro { align-items: start; }
.em-testimonials .em-testimonials__card {
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.em-testimonials__card > img { display: none; }
@media (max-width: 700px) {
  :root {
    --page-heading-size: 36px;
    --page-heading-top: 28px;
    --page-heading-bottom: 32px;
    --page-content-top: 36px;
  }
  main > .page-hero .breadcrumb { margin-bottom: 20px; }
  body[class] main > .page-hero h1 { margin: 16px 0; }
  main > .page-hero p { font-size: 16px; }
  .em-catalog .em-catalog__intro { gap: 20px; margin-bottom: 30px; }
  .em-catalog__intro h2 { font-size: 32px; }
  .em-catalog__intro p { font-size: 16px; line-height: 1.7; }
}
