/* ============================================================
   Bielański Ośrodek Psychoterapii — homepage (proposal 3)
   "A calm conversation in a green room"
   Tokens first, then layout, header/footer, sections, components.
   ============================================================ */

:root {
  /* toolbox overrides — institutional rhythm, wider grid (revision 1) */
  --wbm-max: 1320px;
  --wbm-h1: clamp(2.5rem, 1.6rem + 3vw, 3.25rem);
  --wbm-h2: clamp(1.9rem, 1.4rem + 1.9vw, 3rem);
  --wbm-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --wbm-text: 1.09375rem;
  --wbm-lead: clamp(1.125rem, 1.02rem + 0.4vw, 1.375rem);
  --wbm-section: clamp(72px, 7vw, 120px);

  /* type — clean professional grotesk, one family */
  --font-head: "Schibsted Grotesk", system-ui, sans-serif;
  --font-body: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* palette — light neutrals, graphite text, one deep-teal accent,
     muted beige/green section fields (revision 1) */
  --cream: #F7F6F2;
  --paper: #FFFFFF;
  --ink: #22262B;
  --muted: #5A6168;
  --accent: #0F6F6B;
  --accent-deep: #0B4F4C;
  --green-tint: #EAF0EA;
  --beige-tint: #F2ECE3;
  --line: #DEDED7;

  /* legacy token names kept so the existing section/component layer follows
     the new palette in one place (cream=page, sage=accent, peach=beige) */
  --sage: var(--accent);
  --sage-deep: var(--accent-deep);
  --sage-tint: var(--green-tint);
  --peach: var(--beige-tint);
  --terracotta: var(--accent);
  --terracotta-ink: var(--accent-deep);

  /* shape */
  --radius-s: 16px;
  --radius: 22px;
  --radius-l: 28px;
  --bubble-corner: 56px;
  --bar-inset: clamp(8px, 1.2vw, 14px);
  --shadow: 0 10px 28px rgba(34, 38, 43, 0.10);

  /* component tokens */
  --c-bg: var(--paper);
  --c-surface: var(--paper);
  --c-ink: var(--ink);
  --c-muted: var(--muted);
  --c-line: var(--line);
  --c-brand: var(--sage);
  --c-brand-ink: #FFFFFF;
  --space: 24px;
}

/* ---------- base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--wbm-text);
  font-weight: 400;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.04;
  text-wrap: balance;
}

h1 {
  font-size: var(--wbm-h1);
}

h2 {
  font-size: var(--wbm-h2);
  line-height: 1.08;
  max-width: 24ch;
}

h3 {
  font-size: var(--wbm-h3);
  font-weight: 600;
  line-height: 1.22;
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 3px solid var(--sage-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

section[id],
li[id] {
  scroll-margin-top: 112px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- shared bits ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin: 0;
  color: var(--sage-deep);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow--light {
  color: #FFFFFF;
}

.eyebrow--ink {
  color: var(--ink);
}

.leaf-icon {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--terracotta);
}

.eyebrow--light .leaf-icon {
  color: var(--peach);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.8em 1.45em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s;
}

.btn--primary {
  background: var(--sage);
  color: #FFFFFF;
}

.btn--primary:hover {
  background: var(--sage-deep);
}

.btn--light {
  background: var(--paper);
  color: var(--ink);
}

.btn--light:hover {
  background: #FFFFFF;
  color: var(--sage-deep);
}

.btn--ghost {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.btn--ghost:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  color: var(--sage-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--terracotta);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

.link-arrow span {
  transition: transform 0.18s;
}

.link-arrow:hover span {
  transform: translateX(4px);
}

/* ---------- header (floating bar) ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-top: 12px;
  pointer-events: none;
}

.site-header__bar {
  pointer-events: auto;
  width: min(calc(100% - 2 * var(--bar-inset)), calc(var(--wbm-max) - 2 * var(--bar-inset)));
  margin: 0 auto;
  padding: 10px calc(clamp(16px, 4vw, 40px) - var(--bar-inset));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--paper);
  border: 1px solid rgba(34, 38, 43, 0.07);
  border-radius: 20px;
  box-shadow: 0 8px 26px rgba(34, 38, 43, 0.12);
  transition: background-color 0.25s, box-shadow 0.25s;
}

[data-wbm-nav].is-scrolled .site-header__bar {
  background: #FFFFFF;
  box-shadow: 0 12px 34px rgba(34, 38, 43, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  width: 38px;
  height: 38px;
  flex: none;
  color: var(--sage);
}

.brand__name {
  max-width: 150px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0;
}

[data-wbm-nav] .nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}

[data-wbm-nav].is-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

[data-wbm-nav].is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

[data-wbm-nav].is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

[data-wbm-nav] .site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a[data-wbm-menu-item] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s, color 0.18s;
}

.site-nav a[data-wbm-menu-item]:hover,
.site-nav a[data-wbm-menu-item][aria-current="page"] {
  background: var(--sage-tint);
  color: var(--sage-deep);
}

.site-nav__cta {
  margin-left: 10px;
  min-height: 46px;
  padding: 0.7em 1.25em;
  font-size: 0.95rem;
}

.site-nav__note {
  display: none;
}

@media (max-width: 1179.98px) {
  [data-wbm-nav] .nav-toggle {
    display: flex;
  }

  [data-wbm-nav] .site-nav {
    display: none;
  }

  [data-wbm-nav].is-open .site-nav {
    position: fixed;
    top: 86px;
    right: var(--bar-inset);
    bottom: 12px;
    left: var(--bar-inset);
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 20px 22px;
    overflow-y: auto;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(34, 38, 43, 0.22);
  }

  [data-wbm-nav].is-open .site-nav a[data-wbm-menu-item] {
    display: flex;
    min-height: 58px;
    padding: 12px 6px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 600;
    white-space: normal;
  }

  [data-wbm-nav].is-open .site-nav a[data-wbm-menu-item]:last-of-type {
    border-bottom: 0;
  }

  [data-wbm-nav].is-open .site-nav a[data-wbm-menu-item]:hover {
    background: transparent;
    color: var(--sage);
  }

  [data-wbm-nav].is-open .site-nav__cta {
    display: flex;
    width: 100%;
    min-height: 54px;
    margin: 20px 0 0;
    font-size: 1.05rem;
  }

  [data-wbm-nav].is-open .site-nav__note {
    display: block;
    margin: auto 0 0;
    padding: 22px 6px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(104px, 9vw, 120px) 0 clamp(28px, 3.5vw, 40px);
  border-radius: 0 0 32px 32px;
  background: var(--sage-tint);
  color: var(--ink);
}

.hero__mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero__intro {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 8px;
}

.hero h1 {
  max-width: 100%;
  color: var(--ink);
  text-wrap: balance;
}

.hero__h1-sub {
  display: block;
  margin-top: 0.12em;
  font-size: 0.78em;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.hero__lead {
  max-width: 62ch;
  color: var(--ink);
  font-size: var(--wbm-lead);
  line-height: 1.58;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
}

.hero__photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) var(--radius) var(--bubble-corner);
  background: var(--line);
}

.hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.hero__photo--small img {
  object-position: 52% 58%;
}

.hero__photo--main {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}

.hero__photo--small {
  grid-column: 2 / 3;
  aspect-ratio: 4 / 3;
}

.hero__route {
  position: relative;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 20px 56px 20px 20px;
  border-radius: var(--radius) var(--radius) var(--radius) 44px;
  background: var(--peach);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(34, 38, 43, 0.05);
}

.hero__route-text {
  max-width: 28ch;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
}

.hero__route-arrow {
  position: absolute;
  right: 20px;
  bottom: 14px;
  color: var(--sage-deep);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.18s;
}

.hero__route:hover .hero__route-arrow {
  transform: translateX(4px);
}

.hero__facts {
  grid-column: 1 / 2;
  display: grid;
  align-content: center;
  gap: 16px;
  height: 100%;
  padding: 20px;
  border-radius: var(--radius) var(--radius) 44px var(--radius);
  background: var(--accent);
  color: #FFFFFF;
}

.hero__fact {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero__fact-phrase {
  max-width: 12ch;
  color: #FFFFFF;
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.55rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.hero__num {
  color: #FFFFFF;
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 1.6rem + 2.2vw, 2.7rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 0.95;
}

.hero__fact-label {
  max-width: 15ch;
  margin-top: 2px;
  color: #FFFFFF;
  font-size: 0.8rem;
  line-height: 1.3;
}

@media (min-width: 900px) {
  .hero {
    padding-top: clamp(108px, 9vw, 132px);
  }

  .hero__mosaic {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
  }

  .hero__intro {
    grid-column: 1 / 8;
    grid-row: 1 / 2;
    justify-content: center;
    padding-right: 24px;
    padding-bottom: 0;
  }

  .hero__photo--main {
    grid-column: 8 / 13;
    grid-row: 1 / 2;
    min-height: 430px;
    aspect-ratio: auto;
  }

  .hero__route {
    grid-column: 1 / 6;
    grid-row: 2 / 3;
  }

  .hero__facts {
    grid-column: 6 / 10;
    grid-row: 2 / 3;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 20px;
  }

  .hero__photo--small {
    grid-column: 10 / 13;
    grid-row: 2 / 3;
    min-height: 200px;
    aspect-ratio: auto;
  }
}

/* ---------- section marker ---------- */

.section-marker {
  max-width: 30ch;
}

.section-marker__note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* ---------- offer catalogue ---------- */

.offer {
  background: var(--cream);
}

.offer__grid {
  display: grid;
  gap: 28px;
}

.offer__main h2 {
  max-width: 20ch;
}

.offer__lead {
  max-width: 54ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: var(--wbm-lead);
  line-height: 1.55;
}

.offer__list {
  margin-top: clamp(22px, 3vw, 36px);
  border-top: 1px solid var(--line);
  list-style: none;
}

.offer-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 2px 12px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.offer-row__num {
  color: var(--terracotta-ink);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.offer-row h3 {
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
}

.offer-row__note {
  grid-column: 2 / 3;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.95rem;
}

.offer__more {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.offer__help {
  display: none;
}

.offer__help-text {
  margin: 12px 0 14px;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
}

@media (min-width: 700px) {
  .offer-row {
    grid-template-columns: 56px minmax(0, 1fr) minmax(0, 0.7fr);
    gap: 24px;
    padding: 24px 0;
  }

  .offer-row__note {
    grid-column: 3 / 4;
    align-self: center;
    margin: 0;
    text-align: right;
    font-size: 1rem;
  }
}

@media (min-width: 900px) {
  .offer__grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    column-gap: clamp(32px, 4vw, 64px);
    align-items: start;
  }

  .offer__help {
    display: block;
    margin-top: 34px;
    padding: 22px;
    border-radius: var(--radius) var(--radius) var(--radius) 44px;
    background: var(--peach);
  }

  .offer__more {
    display: none;
  }
}

/* ---------- situation router ---------- */

.start {
  background: var(--sage-tint);
}

.start__head {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.start__head h2 {
  margin: 10px 0 14px;
}

.start__lead {
  max-width: 54ch;
  color: var(--muted);
  font-size: var(--wbm-lead);
  line-height: 1.55;
}

.start__grid {
  display: grid;
  gap: 12px;
  list-style: none;
}

.route {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  height: 100%;
  min-height: 132px;
  padding: 22px;
  border-radius: var(--radius) var(--radius) var(--radius) 44px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(34, 38, 43, 0.05);
  transition: background-color 0.2s, box-shadow 0.2s;
}

.route:hover {
  background: #FFFFFF;
  box-shadow: var(--shadow);
}

.route__situation {
  max-width: 24ch;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
}

.route__service {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--sage);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.route--contact {
  background: var(--sage);
  color: #FFFFFF;
}

.route--contact .route__situation,
.route--contact .route__service {
  color: #FFFFFF;
}

.route--contact .leaf-icon {
  color: var(--peach);
}

.route--contact:hover {
  background: var(--sage-deep);
}

.start__note {
  margin-top: 24px;
  color: var(--muted);
}

@media (min-width: 720px) {
  .start__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .start__grid > li:last-child {
    grid-column: 1 / -1;
  }

  .start__grid .route--contact {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 96px;
  }

  .start__grid .route--contact .route__situation {
    max-width: none;
    font-size: 1.35rem;
  }
}

/* ---------- statement ---------- */

.statement {
  padding: var(--wbm-section) 0;
  background: var(--beige-tint);
  color: var(--ink);
}

.statement__bubble {
  position: relative;
  display: grid;
  gap: 18px;
  max-width: 940px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-l) var(--radius-l) var(--radius-l) 64px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

.statement__bubble::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: clamp(28px, 5vw, 56px);
  width: 30px;
  height: 30px;
  border-radius: 0 0 10px 0;
  background: var(--paper);
  transform: rotate(45deg);
}

.statement h2 {
  max-width: 20ch;
  font-size: clamp(1.7rem, 1.15rem + 1.9vw, 2.5rem);
  line-height: 1.12;
}

.statement p {
  max-width: 42ch;
  margin: 0;
  color: var(--muted);
  font-size: var(--wbm-lead);
  line-height: 1.55;
}

.statement .btn {
  justify-self: start;
}

@media (min-width: 760px) {
  .statement__bubble {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    column-gap: clamp(28px, 4vw, 56px);
    align-items: center;
  }

  .statement h2 {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
  }

  .statement p {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }

  .statement .btn {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    margin-top: 6px;
  }
}

/* ---------- about ---------- */

.about {
  background: var(--paper);
}

.about__grid {
  display: grid;
  gap: 32px;
}

.about__media {
  margin: 0;
}

.about__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-l) var(--radius-l) var(--radius-l) 72px;
}

.about__body h2 {
  max-width: 18ch;
  margin: 12px 0 18px;
}

.about__body p {
  max-width: 52ch;
  margin-bottom: 14px;
  color: var(--muted);
}

.about__body .link-arrow {
  margin-top: 10px;
}

@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
  }
}

/* ---------- parents, children, sleep ---------- */

.family {
  background: var(--peach);
}

.family__grid {
  display: grid;
  gap: 32px;
}

.family__body h2 {
  max-width: 20ch;
  margin: 12px 0 16px;
}

.family__lead {
  max-width: 48ch;
  color: var(--ink);
  font-size: var(--wbm-lead);
  line-height: 1.55;
}

.family__item {
  padding: 20px 0;
  border-top: 1px solid rgba(34, 38, 43, 0.16);
}

.family__item:first-of-type {
  margin-top: 24px;
}

.family__item h3 {
  margin-bottom: 6px;
  font-size: 1.25rem;
}

.family__item p {
  max-width: 46ch;
  color: var(--muted);
  font-size: 1rem;
}

.family__body .link-arrow {
  margin-top: 20px;
}

.family__media {
  display: grid;
  gap: 16px;
}

.family__media figure {
  margin: 0;
}

.family__media img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) var(--radius) var(--bubble-corner);
}

@media (min-width: 900px) {
  .family__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
  }
}

/* ---------- team (layout around the component) ---------- */

.team {
  background: var(--cream);
}

.team__grid {
  display: grid;
  gap: 28px;
}

.team__title {
  max-width: 22ch;
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: var(--wbm-h2);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.team__lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.62;
}

.team__areas {
  display: grid;
  gap: 14px;
  margin-top: 30px;
  list-style: none;
}

.team-area {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 142px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.team-area__icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.team-area h3 {
  max-width: 18ch;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
}

.team__note {
  max-width: 60ch;
  margin-top: 26px;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 599px) {
  .team-area {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    min-height: 0;
    padding: 18px;
    gap: 14px;
  }

  .team-area h3 {
    max-width: none;
    font-size: 1.05rem;
  }
}

@media (min-width: 600px) {
  .team__areas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1050px) {
  .team__areas {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.care {
  background: var(--paper);
}

.care__grid {
  display: grid;
  gap: 28px;
}

.care .wbm-c-steps {
  padding: 0;
}

.care .wbm-c-steps__head {
  margin-bottom: 32px;
}

.care .wbm-c-steps__title {
  max-width: 24ch;
  margin: 0;
  font-family: var(--font-head);
  font-size: var(--wbm-h2);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.care .wbm-c-steps__step::before {
  border-color: var(--accent);
  background: var(--paper);
  color: var(--accent-deep);
  font-weight: 700;
}

.care .wbm-c-steps__step:not(:last-child)::after {
  background: var(--line);
}

.care .wbm-c-steps__name {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}

.care .wbm-c-steps__text {
  color: var(--muted);
  font-size: 1rem;
}

@media (min-width: 900px) {
  .care__grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    column-gap: clamp(32px, 4vw, 64px);
    align-items: start;
  }
}

.team__count {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 18px 0 0;
}

.team__count-num {
  color: var(--sage);
  font-family: var(--font-head);
  font-size: clamp(3rem, 2.4rem + 2vw, 4.2rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 0.9;
}

.team__count-label {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
}

@media (min-width: 900px) {
  .team__grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    column-gap: clamp(32px, 4vw, 64px);
    align-items: start;
  }
}

/* ---------- contact (layout around the component) ---------- */

.contact {
  background: var(--sage-tint);
}

.contact__hints {
  display: grid;
  gap: 8px;
  margin: 0 0 28px;
  list-style: none;
}

.contact__hints li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.contact__hints li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 0 100% 0 100%;
  background: var(--terracotta);
  transform: rotate(-14deg);
}

.contact__media {
  margin: 28px 0 0;
}

.contact__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) var(--radius) var(--bubble-corner);
}

/* ---------- footer ---------- */

.site-footer {
  padding: clamp(48px, 6vw, 80px) 0 26px;
  border-radius: 32px 32px 0 0;
  background: var(--ink);
  color: #FFFFFF;
}

.footer-top {
  display: grid;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.brand--footer {
  gap: 12px;
  color: #FFFFFF;
}

.brand--footer .brand__mark {
  width: 44px;
  height: 44px;
  color: var(--cream);
}

.brand--footer .brand__name {
  max-width: 17ch;
  font-size: 1.2rem;
  line-height: 1.1;
}

.footer-tagline {
  max-width: 34ch;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  line-height: 1.55;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav__title {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 44px;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  color: #FFFFFF;
  font-size: 1rem;
  text-decoration: none;
}

.footer-nav a:hover {
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  padding-top: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.875rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom .wbm-credit {
  margin: 0;
  color: inherit;
  font-size: 0.875rem;
}

.footer-bottom .wbm-credit a {
  color: inherit;
}

@media (min-width: 800px) {
  .footer-top {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
  }
}

/* ---------- mobile header details ---------- */

@media (max-width: 560px) {
  .brand__mark {
    width: 34px;
    height: 34px;
  }

  .brand__name {
    max-width: 140px;
    font-size: 0.8rem;
  }

  .hero__actions .btn {
    padding: 0.75em 1.1em;
    font-size: 0.95rem;
  }

  .hero__h1-sub {
    font-size: 0.72em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .link-arrow span,
  .hero__route-arrow {
    transition: none;
  }
}

/* ============================================================
   Component: team — style via tokens
   ============================================================ */
.wbm-c-team{--_bg:var(--c-bg,#fff);--_surface:var(--c-surface,#f4f6f8);--_ink:var(--c-ink,#16191f);--_muted:var(--c-muted,#545d6a);--_line:var(--c-line,#dde1e7);--_brand:var(--c-brand,#1d5f8a);--_brand-ink:var(--c-brand-ink,#fff);--_r:var(--radius,10px);--_head:var(--font-head,inherit);--_body:var(--font-body,inherit);--_s:var(--space,24px);padding:calc(var(--_s)*2.5) 0;color:var(--_ink);font-family:var(--_body)}
.wbm-c-team__head{margin-bottom:calc(var(--_s)*1.25)}
.wbm-c-team__title{margin:0 0 .4em;font:700 clamp(1.75rem,1.2rem + 1.8vw,2.5rem)/1.12 var(--_head)}
.wbm-c-team__lead{margin:0;color:var(--_muted);max-width:52ch}
.wbm-c-team__list{list-style:none;margin:0;padding:0;display:grid;gap:calc(var(--_s)*1.25) var(--_s);grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr))}
.wbm-c-team__photo{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;border-radius:var(--_r);background:var(--_surface);margin-bottom:.9em}
.wbm-c-team__name{margin:0;font:700 1.1875rem/1.25 var(--_head)}
.wbm-c-team__role{margin:.2em 0 0;color:var(--_brand);font-weight:600;font-size:.9375rem}
.wbm-c-team__bio{margin:.55em 0 0;color:var(--_muted);line-height:1.55;font-size:.9375rem}
.wbm-c-team--list .wbm-c-team__list{grid-template-columns:1fr;gap:0;border-top:1px solid var(--_line)}
.wbm-c-team--list .wbm-c-team__person{border-bottom:1px solid var(--_line);padding:1em 0}
.wbm-c-team--list .wbm-c-team__body{display:grid;gap:.15em .6em}
@media (min-width:700px){.wbm-c-team--list .wbm-c-team__body{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,2fr);align-items:baseline}.wbm-c-team--list .wbm-c-team__role,.wbm-c-team--list .wbm-c-team__bio{margin:0}}

/* team — made ours */
.team .wbm-c-team {
  padding: 0;
}

.team .wbm-c-team__head {
  margin-bottom: 24px;
}

.team .wbm-c-team__title {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: var(--wbm-h2);
  font-weight: 700;
  line-height: 1.08;
}

.team .wbm-c-team__lead {
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.team .wbm-c-team--list .wbm-c-team__person {
  position: relative;
  padding: 22px 0 22px 34px;
}

.team .wbm-c-team--list .wbm-c-team__person::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 0 100% 0 100%;
  background: var(--terracotta);
  transform: rotate(-14deg);
}

.team .wbm-c-team--list .wbm-c-team__body {
  display: grid;
  gap: 2px 16px;
}

.team .wbm-c-team__name {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
}

.team .wbm-c-team__role {
  margin: 0;
  color: var(--sage);
  font-size: 1rem;
  font-weight: 600;
}

@media (min-width: 700px) {
  .team .wbm-c-team--list .wbm-c-team__body {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 2fr);
    align-items: baseline;
  }
}

/* ============================================================
   Component: contact-form — style via tokens
   ============================================================ */
.wbm-c-contact-form{--_bg:var(--c-bg,#fff);--_surface:var(--c-surface,#f4f6f8);--_ink:var(--c-ink,#16191f);--_muted:var(--c-muted,#545d6a);--_line:var(--c-line,#dde1e7);--_brand:var(--c-brand,#1d5f8a);--_brand-ink:var(--c-brand-ink,#fff);--_r:var(--radius,10px);--_head:var(--font-head,inherit);--_body:var(--font-body,inherit);--_s:var(--space,24px);display:grid;gap:calc(var(--_s)*1.5);padding:calc(var(--_s)*2.5) 0;color:var(--_ink);font-family:var(--_body)}
@media (min-width:900px){.wbm-c-contact-form{grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:calc(var(--_s)*3)}}
.wbm-c-contact-form__title{margin:0 0 .5em;font:700 clamp(1.75rem,1.2rem + 1.8vw,2.5rem)/1.12 var(--_head)}
.wbm-c-contact-form__lead{margin:0 0 1.25em;color:var(--_muted);font-size:1.0625rem;line-height:1.6;max-width:42ch}
.wbm-c-contact-form__alt{display:grid;gap:.4em;margin:0;font-weight:600;font-size:1.0625rem}
.wbm-c-contact-form__alt a{color:var(--_ink);text-decoration:none;border-bottom:1px solid var(--_line);width:max-content;max-width:100%;overflow-wrap:anywhere}
.wbm-c-contact-form__alt a:hover{border-color:var(--_brand);color:var(--_brand)}
.wbm-c-contact-form__form{display:grid;gap:calc(var(--_s)*.75);grid-template-columns:minmax(0,1fr);padding:calc(var(--_s)*1.25);background:var(--_surface);border-radius:var(--_r)}
@media (min-width:600px){.wbm-c-contact-form__form{grid-template-columns:repeat(2,minmax(0,1fr));padding:calc(var(--_s)*1.5)}}
.wbm-c-contact-form__field{display:grid;gap:.4em;min-width:0}
.wbm-c-contact-form__field--full,.wbm-c-contact-form__note,.wbm-c-contact-form__actions{grid-column:1/-1}
.wbm-c-contact-form__field label{font-weight:600;font-size:.9375rem}
.wbm-c-contact-form__field label span{font-weight:400;color:var(--_muted)}
.wbm-c-contact-form__field input,.wbm-c-contact-form__field textarea{box-sizing:border-box;width:100%;min-width:0;padding:.8em .95em;border:1px solid var(--_line);border-radius:calc(var(--_r)*.7);background:var(--_bg);color:var(--_ink);font:inherit;font-size:1rem;line-height:1.4}
.wbm-c-contact-form__field textarea{resize:vertical;min-height:8.5em}
.wbm-c-contact-form__field input:focus-visible,.wbm-c-contact-form__field textarea:focus-visible{outline:2px solid var(--_brand);outline-offset:1px;border-color:var(--_brand)}
.wbm-c-contact-form__note{margin:0;font-size:.875rem;color:var(--_muted);line-height:1.5}
.wbm-c-contact-form__actions{display:flex;flex-wrap:wrap;align-items:center;gap:.75em 1.25em}
.wbm-c-contact-form__submit{appearance:none;border:0;border-radius:calc(var(--_r)*.7);padding:.95em 1.6em;background:var(--_brand);color:var(--_brand-ink);font:600 1rem/1.2 var(--_body);cursor:pointer;transition:filter .2s,transform .2s}
.wbm-c-contact-form__submit:hover{filter:brightness(1.08);transform:translateY(-1px)}
.wbm-c-contact-form__submit:focus-visible{outline:2px solid var(--_ink);outline-offset:3px}
.wbm-c-contact-form__submit:disabled{opacity:.6;cursor:progress;transform:none}
.wbm-c-contact-form__status{margin:0;font-weight:600}
.wbm-c-contact-form__status:empty{display:none}

/* contact — made ours */
.contact .wbm-c-contact-form {
  padding: 0;
  color: var(--ink);
}

.contact .wbm-c-contact-form__title {
  margin: 10px 0 14px;
  font-family: var(--font-head);
  font-size: var(--wbm-h2);
  font-weight: 700;
  line-height: 1.08;
}

.contact .wbm-c-contact-form__lead {
  max-width: 44ch;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: var(--wbm-lead);
  line-height: 1.55;
}

.contact .wbm-c-contact-form__form {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l) var(--radius-l) var(--radius-l) 56px;
  background: var(--paper);
}

.contact .wbm-c-contact-form__field input,
.contact .wbm-c-contact-form__field textarea {
  border-color: var(--line);
  border-radius: 12px;
  background: #FFFFFF;
}

.contact .wbm-c-contact-form__submit {
  min-height: 50px;
  padding: 0.9em 1.6em;
  border-radius: 999px;
  background: var(--sage);
}

.contact .wbm-c-contact-form__submit:hover {
  background: var(--sage-deep);
  filter: none;
  transform: none;
}

@media (min-width: 900px) {
  .contact .wbm-c-contact-form {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
  }
}

/* ============================================================
   Component: steps — style via tokens
   ============================================================ */
.wbm-c-steps{--_bg:var(--c-bg,#fff);--_surface:var(--c-surface,#f4f6f8);--_ink:var(--c-ink,#16191f);--_muted:var(--c-muted,#545d6a);--_line:var(--c-line,#dde1e7);--_brand:var(--c-brand,#1d5f8a);--_brand-ink:var(--c-brand-ink,#fff);--_r:var(--radius,10px);--_head:var(--font-head,inherit);--_body:var(--font-body,inherit);--_s:var(--space,24px);padding:calc(var(--_s)*2.5) 0;color:var(--_ink);font-family:var(--_body)}
.wbm-c-steps__head{margin-bottom:calc(var(--_s)*1.5)}
.wbm-c-steps__title{margin:0 0 .4em;font:700 clamp(1.75rem,1.2rem + 1.8vw,2.5rem)/1.12 var(--_head)}
.wbm-c-steps__lead{margin:0;color:var(--_muted);max-width:52ch}
.wbm-c-steps__list{list-style:none;margin:0;padding:0;display:grid;gap:calc(var(--_s)*1.1);counter-reset:wbm-step}
.wbm-c-steps__step{position:relative;counter-increment:wbm-step;padding-left:3.4em;min-width:0}
.wbm-c-steps__step::before{content:counter(wbm-step);position:absolute;left:0;top:-.1em;display:grid;place-items:center;width:2.3em;height:2.3em;border-radius:50%;border:2px solid var(--_brand);color:var(--_brand);background:var(--_bg);font:700 1rem/1 var(--_head);z-index:1}
.wbm-c-steps__step:not(:last-child)::after{content:"";position:absolute;left:1.15em;top:2.3em;bottom:calc(var(--_s)*-1.1);width:2px;background:var(--_line)}
.wbm-c-steps__name{margin:0 0 .3em;font:700 1.1875rem/1.3 var(--_head)}
.wbm-c-steps__text{margin:0;color:var(--_muted);line-height:1.6}
@media (min-width:900px){
  .wbm-c-steps__list{grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:calc(var(--_s)*1.25)}
  .wbm-c-steps__step{padding-left:0;padding-top:3.4em}
  .wbm-c-steps__step:not(:last-child)::after{left:2.6em;right:calc(var(--_s)*-1.25);top:1.15em;bottom:auto;width:auto;height:2px}
}

/* ---------- subpages ---------- */
/* Shared kit for the inner pages. Everything here builds on the homepage
   tokens (colour, radii, leaf marker, bubble corner) and never overrides a
   homepage rule. Prefixes: .page-head (opening), .sub-* (sections/blocks). */

/* opening band: label + H1 + lead, optional photo beside the text */
.page-head {
  padding: clamp(104px, 9vw, 120px) 0 clamp(44px, 5vw, 64px);
  border-radius: 0 0 32px 32px;
  background: var(--green-tint);
}

.page-head--cream {
  background: var(--cream);
}

.page-head--beige {
  background: var(--beige-tint);
}

.page-head__grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 900px) {
  .page-head__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: clamp(32px, 4vw, 64px);
  }
}

.page-head__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
}

.page-head h1 {
  max-width: 20ch;
}

.page-head__lead {
  max-width: 58ch;
  color: var(--ink);
  font-size: var(--wbm-lead);
  line-height: 1.58;
}

.page-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-head__media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) var(--radius) var(--bubble-corner);
  background: var(--line);
}

.page-head__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* breadcrumb (alternative to the eyebrow label) */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45em;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.breadcrumb a {
  color: var(--accent-deep);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.45em;
  color: var(--line);
}

/* section rhythm: full-bleed bands with the homepage fields */
.sub-section {
  padding-block: var(--wbm-section);
}

.sub-section--paper {
  background: var(--paper);
}

.sub-section--cream {
  background: var(--cream);
}

.sub-section--green {
  background: var(--green-tint);
}

.sub-section--beige {
  background: var(--beige-tint);
}

/* asymmetric section head: narrow marker column + wide content */
.sub-head {
  display: grid;
  gap: 20px 32px;
}

.sub-head__body {
  min-width: 0;
}

.sub-head__body h2 {
  max-width: 24ch;
}

.sub-lead {
  max-width: 58ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: var(--wbm-lead);
  line-height: 1.55;
}

@media (min-width: 900px) {
  .sub-head {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    gap: clamp(32px, 4vw, 56px);
  }
}

/* prose column: comfortable measure, quiet typography */
.prose {
  max-width: 68ch;
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.prose--narrow {
  max-width: 62ch;
}

.prose > * + * {
  margin-top: 1em;
}

.prose h2 {
  max-width: 26ch;
  margin-top: 1.9em;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.14;
}

.prose h3 {
  margin-top: 1.6em;
  font-size: 1.25rem;
}

.prose h2 + *,
.prose h3 + * {
  margin-top: 0.6em;
}

.prose ul,
.prose ol {
  padding-left: 1.35em;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose li::marker {
  color: var(--accent);
}

.prose a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

.prose strong {
  font-weight: 600;
}

.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.55;
}

/* main column + side box (contact, deadlines, downloads) */
.sub-split {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 900px) {
  .sub-split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: clamp(32px, 5vw, 72px);
  }
}

.sub-split__main,
.sub-split__aside {
  min-width: 0;
}

.side-box {
  display: grid;
  gap: 12px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.side-box h3 {
  font-size: 1.1875rem;
}

.side-box p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.side-box .link-arrow,
.side-box .btn {
  justify-self: start;
}

.side-box--green {
  border-color: transparent;
  background: var(--green-tint);
}

.side-box--beige {
  border-color: transparent;
  background: var(--beige-tint);
}

.side-box--accent {
  border-color: transparent;
  background: var(--accent);
  color: #FFFFFF;
}

.side-box--accent h3,
.side-box--accent p {
  color: #FFFFFF;
}

.side-box--accent .eyebrow,
.side-box--accent .leaf-icon {
  color: #FFFFFF;
}

/* card grid: services, work areas, short facts */
.sub-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sub-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.sub-card h3 {
  font-size: 1.125rem;
}

.sub-card p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.sub-card__num {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.sub-card__icon {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--accent);
}

.sub-card--green {
  border-color: transparent;
  background: var(--green-tint);
}

/* data table with horizontal scroll on small screens */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.sub-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.sub-table th,
.sub-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.sub-table thead th {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sub-table tbody tr:last-child th,
.sub-table tbody tr:last-child td {
  border-bottom: 0;
}

.sub-table th[scope="row"] {
  font-weight: 600;
}

/* list of documents (only for real files from input) */
.doc-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.doc-list__item {
  border-bottom: 1px solid var(--line);
}

.doc-list__link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  color: var(--ink);
  text-decoration: none;
}

.doc-list__link:hover .doc-list__name {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.doc-list__icon {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 0.15em;
  color: var(--accent);
}

.doc-list__meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* inline figure with the bubble corner */
.sub-figure {
  margin: 0;
}

.sub-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) var(--radius) var(--bubble-corner);
}

.sub-figure--tall img {
  aspect-ratio: 4 / 5;
}

.sub-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* closing contact / CTA band: the homepage bubble language, page variant */
.cta-band {
  padding-block: var(--wbm-section);
  background: var(--beige-tint);
}

.cta-band__inner {
  display: grid;
  gap: 24px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-l) var(--radius-l) var(--radius-l) 64px;
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

.cta-band__body {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.cta-band h2 {
  max-width: 22ch;
  font-size: clamp(1.7rem, 1.15rem + 1.9vw, 2.5rem);
  line-height: 1.12;
}

.cta-band p {
  max-width: 52ch;
  color: var(--muted);
  font-size: var(--wbm-lead);
  line-height: 1.55;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

@media (min-width: 760px) {
  .cta-band__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    column-gap: clamp(28px, 4vw, 56px);
  }

  .cta-band__actions {
    justify-content: flex-end;
  }
}
