/*
 * Subpages in the homepage's Blaupause style: the blue title band, the framed
 * drawing sheet and the same type, applied to the existing page markup.
 * Loaded through PageTitle, so the homepage never sees these rules.
 */

/* ── Title band: the hero's blue, dot grid and frame lines ────── */

.page-hero {
  position: relative;
  overflow: clip;
  background: var(--blue-deep);
  color: #fff;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, .2) 1px, transparent 1.5px) 50% 0 / 32px 32px;
  mask-image: radial-gradient(ellipse at 30% 30%, rgba(0, 0, 0, .25), #000 75%);
  pointer-events: none;
}

/* Lanes between grid dots, drawn by PageTitle; they draw in once and then rest. */
.page-hero-lanes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.page-hero-lanes path { stroke: rgba(255, 255, 255, .18); }
.page-hero-lanes circle { fill: rgba(255, 255, 255, .35); stroke: none; }

@media (prefers-reduced-motion: no-preference) {
  .page-hero-lanes:not(.is-drawn) path {
    stroke-dasharray: 1;
    animation: page-lane-draw 1.4s var(--ease) calc(.3s + var(--i) * .35s) both;
  }
  .page-hero-lanes:not(.is-drawn) circle { animation: page-lane-node .4s ease calc(.2s + var(--i) * .35s) both; }
}

@keyframes page-lane-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes page-lane-node { from { opacity: 0; } }

.page-hero-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 160px 64px 72px;
  border-inline: 1px solid rgba(255, 255, 255, .2);
}

.page-hero-label {
  margin: 0;
  color: #fff;
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: .02em;
}

.page-hero h1 {
  max-width: 900px;
  margin: 20px 0 0;
  color: #fff;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -.04em;
}

/* ── Sheets: every section sits inside the same frame lines ───── */

main > .section-block,
main > .section-block-greyer { padding: 0; background: #fff; }

main > .section-block-greyer { border-top: 1px solid var(--line); background: var(--surface); }

main > :is(.section-block, .section-block-greyer) > .container {
  max-width: 1240px;
  padding: 88px 64px;
  border-inline: 1px solid var(--line);
}

main p { color: var(--muted); }
main :is(h2, h3, h4, h5) { color: var(--ink); letter-spacing: -.01em; }
main a:not([class]) { color: var(--blue-ink); font-size: inherit; }

/* Section headings: eyebrow, title and the blue rule, left-aligned like the homepage. */
main .section-heading { margin: 0; }
/* Overrides the legacy centred variant (`text-align: center !important`). */
main .section-heading.center-holder,
main .section-heading { text-align: left !important; }
main .section-heading small {
  display: block;
  padding: 0;
  color: var(--blue-deep);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .12em;
}
main .section-heading :is(h2, h3) {
  margin: 14px 0 0;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.03em;
}
main .section-heading :is(h4, h5) {
  margin: 14px 0 0;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.02em;
}
main .section-heading > :first-child { margin-top: 0; }
main .section-heading .section-heading-line { width: 56px; margin: 24px 0 0; }
main .section-heading p {
  max-width: 780px;
  margin: 24px 0 0;
  padding: 0;
  font-size: 17px;
  line-height: 1.75;
}

/* Long legal text keeps a readable measure. */
.page-prose { max-width: 820px; }
.page-prose :is(h2, h3, h4, h5) { margin: 32px 0 8px; font-weight: 600; }
.page-prose > :first-child { margin-top: 0; }
.page-prose h2 { font-size: 26px; letter-spacing: -.02em; }
.page-prose h3 { font-size: 20px; }
.page-prose :is(h4, h5) { font-size: 17px; }
.page-prose p { font-size: 15.5px; line-height: 1.75; }

/* ── Ruled cells, as in the homepage's service grid ───────────── */

.info-grid {
  display: grid;
  gap: 1px;
  margin: 48px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--line);
  list-style: none;
}

.info-grid--3 { grid-template-columns: repeat(3, 1fr); }
.info-grid--4 { grid-template-columns: repeat(4, 1fr); }

.info-cell { padding: 28px; background: #fff; }

.info-cell-icon {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: none;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--blue-deep);
  font-size: 20px;
}

main .info-cell h4 { margin: 18px 0 0; font-size: 17px; font-weight: 600; line-height: 1.3; }
main .info-cell p { margin: 8px 0 0; font-size: 15px; line-height: 1.65; }

/* ── Kontakt: address beside the homepage's form card ─────────── */

main > .section-block > .contact-page {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  padding: 0;
}

.contact-page-details { padding: 88px 64px; }

.contact-page-places { margin: 32px 0 0; padding: 0; list-style: none; }
.contact-page-places li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
.contact-page-places .info-cell-icon { font-size: 16px; }

.contact-page-form {
  padding: 56px 48px;
  border-left: 1px solid var(--line);
  background: var(--sheet-grid-light), var(--surface);
}

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 991px) {
  .info-grid--3,
  .info-grid--4 { grid-template-columns: repeat(2, 1fr); }
  main > .section-block > .contact-page { grid-template-columns: 1fr; }
  .contact-page-form { border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 767px) {
  .page-hero-inner { padding: 124px 22px 48px; }
  main > :is(.section-block, .section-block-greyer) > .container { padding: 56px 22px; }
  .contact-page-details { padding: 56px 22px 40px; }
  .contact-page-form { padding: 32px 14px; }
  .info-grid--3,
  .info-grid--4 { grid-template-columns: 1fr; }
}
