.support-document {
  --support-gutter: 23px;
  --screen-header-row: 59px;
  --support-dock-row: 70px;
  --screen-header-height: calc(var(--screen-header-row) + var(--top-safe));
  --phone-dock-height: calc(var(--support-dock-row) + var(--bottom-safe));
  scroll-padding-bottom: var(--phone-dock-height);
}

.support-page {
  --ink: #243624;
  --muted: #4f5b4d;
  --screen-paper: #f8f1e6;
  --screen-line: #d9cdbc;
  --screen-card: #fffaf1bd;
  --screen-sage: #e7ebdf;
}
.support-page .phone-panel { padding-bottom: calc(var(--phone-dock-height) + 13px); }
.support-page .phone-panel:target { outline: 0; }
.support-page .phone-panel[data-screen-panel] {
  --phone-gutter: var(--support-gutter);
  --screen-title: clamp(34px, 10.4vw, 41px);
  padding-top: var(--screen-header-height);
  background: radial-gradient(ellipse at right top, #ead5c258, transparent 66%), var(--screen-paper);
}
.phone-panel[data-screen-panel]::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("support-ecru.webp") center 32% / cover no-repeat;
  opacity: .56;
  pointer-events: none;
  content: "";
}
.support-page #twoje-dziecko:has(#topic-answer:not([hidden])) { background: var(--warm-surface); }
#twoje-dziecko:has(#topic-answer:not([hidden]))::before { content: none; }

.support-page .site-header,
.screen-chapter .support-page .compact-header {
  height: var(--screen-header-height);
  padding: var(--top-safe) max(var(--support-gutter), env(safe-area-inset-right, 0px))
    0 max(var(--support-gutter), env(safe-area-inset-left, 0px));
  border-bottom: 1px solid #d3bcaa83;
  border-radius: 0 0 24px 24px;
  background: linear-gradient(110deg, #f4e7d9, #f9eee2 46%, #efdfcf);
}
.support-page .site-header .logo-brand,
.support-page .compact-header .compact-brand { width: 103px; }
.support-page .site-header .menu-toggle,
.screen-chapter .support-page .compact-header :is(.compact-back, .menu-toggle) {
  background: #fff8efac;
  box-shadow: inset 0 0 0 1px #ffffff86;
}
.support-page .compact-menu .menu-lines { margin-bottom: 0; }
.screen-chapter .support-page .compact-section { display: none; }
.screen-chapter .support-page .compact-brand { display: block !important; justify-self: center; }
.screen-chapter .support-page .compact-back svg { width: 19px; height: 19px; }
.support-page .screen-copy.mobile-only { display: inline !important; }

.support-page [data-screen-panel] :is(.hero-intro, .bio-text) .view-heading {
  font: 400 var(--screen-title)/1.04 var(--serif);
  letter-spacing: -.042em;
}
.support-page [data-screen-panel] .section-label {
  font: 400 26px/1.09 var(--serif);
  letter-spacing: -.032em;
}
.support-page [data-screen-panel] .hero-intro .body-copy,
.bio-text .body-copy.bio-summary {
  max-width: 330px;
  font-size: 14.6px;
  line-height: 1.36;
  text-wrap: balance;
}
.support-page [data-screen-panel] .hero-intro .accent-sweep {
  width: 96px;
  height: 10px;
  margin: 5px auto 7px;
  fill: #bb8a6d;
}

.support-top.mobile-only { display: block !important; padding: 20px var(--support-gutter) 0; }
.audience {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
  color: var(--ink);
  font-size: 13.1px;
  font-weight: 500;
  text-align: center;
}
.audience svg { flex: none; width: 15.5px; height: 15.5px; }
.support-options { margin-top: 18px; }
#picker-title.mobile-only { display: block !important; }
.support-options .topic-intro { margin: 4px 0 10px; font-size: 13.35px; line-height: 1.4; }

.screen-rows {
  display: grid;
  gap: 0;
  padding: 0;
  border: 1px solid var(--screen-line);
  border-radius: 17px;
  background: var(--screen-card);
  box-shadow: 0 3px 12px #6e4a2c04;
}
.screen-rows .pill {
  position: relative;
  grid-template-columns: 33px minmax(0, 1fr) auto;
  gap: 11px;
  min-height: 46px;
  padding: 5px 13px 5px 11px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.screen-rows .pill:first-child, .bio-details .bio-detail-open:first-of-type { border-radius: 16px 16px 0 0; }
.screen-rows .pill:last-child { border-radius: 0 0 16px 16px; }
.screen-rows .pill:focus-visible { z-index: 1; outline-offset: -2px; }
.screen-rows .pill + .pill::before {
  position: absolute;
  inset: 0 13px auto 54px;
  height: 1px;
  background: #ded2c2;
  pointer-events: none;
  content: "";
}
.screen-rows .pill > svg:first-child {
  justify-self: start;
  width: 31px;
  height: 31px;
  padding: 7px;
  border-radius: 50%;
  background: var(--screen-sage);
  stroke-width: 1.65;
}
.screen-rows .pill > svg:last-of-type:not(:first-child) {
  width: 17px;
  height: 17px;
  color: #53624d;
  stroke-width: 1.65;
}
.screen-rows .pill-copy { gap: 2px; min-height: 0; padding: 0; border: 0; }
.screen-rows .pill strong { font-size: 14.6px; line-height: 1.2; letter-spacing: -.018em; }
.screen-rows .pill small { margin: 0; font-size: 12px; line-height: 1.25; }
.topic-choice.chosen { border-color: #8b9982; background: #e9eddf; }

.answer-content { padding-top: 19px; }
.answer-content .topic-back {
  min-height: 44px;
  margin-top: -6px;
  margin-bottom: 4px;
}
.topic-chip {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  padding: 5px 11px;
  border: 1px solid #bac2ae;
  border-radius: 40px;
  background: #eceddf;
  color: #3e523a;
  font-size: 11.5px;
  font-weight: 600;
}
.topic-chip svg { width: 15px; height: 15px; }
.answer-content .view-heading { max-width: 14ch; font-size: clamp(34px, 10.26vw, 40px); }
.support-document:has(#topic-answer:not([hidden])) #twoje-dziecko { padding-top: var(--chapter-height); }
.topic-media {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(170px, 56.92vw, 222px);
  margin-top: 17px;
  overflow: hidden;
  border: 1px solid #dfd2c3;
  border-radius: 22px;
  background: #f9f4e9;
}
.topic-art {
  position: absolute;
  inset: 0;
  background: url("topic-illustrations.jpg") 0 0 / 200% auto no-repeat;
}
.topic-art.art-emotions { background: url("temat-emocje.jpg") center / cover no-repeat; }
.art-school { background-position: 100% 0; }
.art-relations { background-position: 0 100%; }
.art-unsure { background-position: 100% 100%; }
.topic-media video { width: 100%; max-height: 360px; }
#topic-placeholder { position: relative; margin: 10px; padding: 8px; border-radius: 8px; background: var(--paper); color: var(--ink); }
.answer-content .body-copy { margin-top: 16px; }
.answer-content .secondary-cta { margin-top: 19px; }

.support-page #o-mnie { --screen-title: clamp(29px, 8.57vw, 34px); }
.bio { padding-top: 13px; }
.bio-image {
  display: block;
  height: 166px;
  margin-inline: max(var(--support-gutter), env(safe-area-inset-left, 0px))
    max(var(--support-gutter), env(safe-area-inset-right, 0px));
  overflow: hidden;
  border: 1px solid #927b6533;
  border-radius: 19px;
  background: #d0bfad;
}
.bio-image .portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.bio-text { padding-top: 12px; text-align: center; }
.bio-role { margin: 4px 0 0; color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1.4; }
.bio-text .bio-summary.mobile-only { display: block !important; margin: 7px auto 0; }
.bio-details { margin-top: 12px; }
.bio-details .pill, .contact-formats .pill { min-height: 50px; }
.bio-links { display: grid; grid-template-columns: 1.18fr 1fr; margin-top: 4px; }
.bio-links .text-action {
  position: relative;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-height: 44px;
  font: 600 12.5px/1.2 var(--sans);
  letter-spacing: -.01em;
}
.bio-links .text-action svg { width: 14px; height: 14px; stroke-width: 1.65; }
.bio-next-icon.mobile-only { display: block !important; }
.bio-links .text-action + .text-action::before {
  position: absolute;
  inset: 12px auto 12px 0;
  width: 1px;
  background: var(--screen-line);
  content: "";
}
.bio-detail-dialog {
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0;
  background: var(--warm-surface);
  color: var(--ink);
}
.bio-detail-dialog .dialog-content {
  max-width: 540px;
  margin-inline: auto;
  padding-top: calc(var(--top-safe) + 66px);
}
.bio-detail-dialog .dialog-close {
  inset: calc(var(--top-safe) + 8px) auto auto max(var(--support-gutter), env(safe-area-inset-left, 0px));
  border-radius: 50%;
  background: #fff8efac;
}
.bio-detail-dialog h2 { padding: 0; margin-bottom: 14px; }
.bio-detail-copy p { margin-top: 12px; font-size: 15px; line-height: 1.5; }
.appointment-intro { padding-top: 31px; }
.appointment-intro .body-copy { max-width: 300px; }
.steps { position: relative; display: grid; gap: 17px; margin: 24px 0 15px; padding: 0; list-style: none; }
.steps::before { position: absolute; left: 19px; top: 15px; bottom: 24px; width: 1px; background: #c8baa6; content: ""; }
.step { display: grid; grid-template-columns: 39px minmax(0, 1fr); align-items: start; gap: 12px; }
.step-number {
  position: relative;
  display: grid;
  height: 39px;
  place-items: center;
  border: 1px solid #adb098;
  border-radius: 50%;
  background: #eeeddf;
  font: 400 24px/1 var(--serif);
}
.step h3 { margin-top: 1px; font: 600 15px/1.23 var(--sans); }
.step p { max-width: none; margin: 4px 0 0; color: var(--muted); font-size: 13.2px; line-height: 1.38; }

.faq-intro { padding-top: 36px; }
.faq-list { display: grid; gap: 9px; margin-top: 23px; }
.faq-item { overflow: hidden; border: 1px solid #c4b5a4; border-radius: 18px; background: #fffaf26a; }
.faq-item[open] { border-color: #9ca38e; background: #f9f6eb; }
.faq-question {
  display: grid;
  width: 100%;
  min-height: 55px;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: transparent;
  text-align: left;
  font: 600 14px/1.22 var(--sans);
  letter-spacing: -.012em;
}
.faq-question svg { width: 17px; height: 17px; justify-self: center; }
.faq-answer { max-width: none; margin: 0 14px; padding: 9px 0 13px; border-top: 1px solid #ddd4c4; color: var(--muted); font-size: 13px; }

.support-page #konsultacje-online { --screen-title: clamp(34px, 10.1vw, 41px); }
.online-heading { padding-top: 28px; }
.online-profile { margin-top: 18px; }
.online-profile .online-desktop-icon { display: none; }
[data-screen-panel] .contact-profile {
  grid-template-columns: 38px minmax(0, 1fr) 24px;
  gap: 10px;
  min-height: 57px;
  padding: 8px 14px 8px 12px;
  border: 1px solid #243624;
  border-radius: 16px;
  color: #fffaf1;
  background: linear-gradient(112deg, #33472f, #243724);
  box-shadow: 0 4px 10px #24372422, inset 0 1px #ffffff0f;
}
[data-screen-panel] .contact-profile .screen-cta-icon {
  justify-self: start;
  display: block !important;
  width: 37px;
  height: 37px;
  padding: 8px 8px 8px 6px;
  border-right: 1px solid #fff5e23b;
  stroke-width: 1.65;
}
[data-screen-panel] .contact-profile .pill-copy { gap: 2px; min-height: 0; padding: 0; border: 0; }
[data-screen-panel] .contact-profile strong { font-size: 15.8px; line-height: 1.2; letter-spacing: -.018em; }
[data-screen-panel] .contact-profile small { margin: 0; color: #f5eee1; font-size: 11.6px; line-height: 1.2; }
.contact-profile .screen-wordmark.mobile-only {
  display: block !important;
  width: 79px;
  height: auto;
  margin-top: 2px;
  filter: brightness(0) invert(1);
}
[data-screen-panel] .contact-profile .contact-profile-arrow { justify-self: end; width: 19px; height: 19px; stroke-width: 1.65; }

.online-guide {
  margin: 21px max(var(--support-gutter), env(safe-area-inset-right, 0px))
    0 max(var(--support-gutter), env(safe-area-inset-left, 0px));
  padding: 15px 14px 16px;
  border: 1px solid var(--screen-line);
  border-radius: 17px;
  background: var(--screen-card);
}
.online-guide .section-label { padding-left: 2px; }
.online-guide .online-steps { gap: 12px; margin: 0; padding-top: 12px; }
.online-guide .step { position: relative; grid-template-columns: 31px minmax(0, 1fr); gap: 10px; }
.online-guide .step-number {
  z-index: 1;
  width: 30px;
  height: 30px;
  border-color: #c2cbb7;
  background: var(--screen-sage);
  font-size: 17px;
}
.online-guide .online-steps::before { display: none; }
.online-guide .step:not(:last-child)::after {
  position: absolute;
  inset: 24px auto -15px 14.5px;
  border-left: 1px solid #c6cbb9;
  content: "";
}
.online-guide h4 { margin: 1px 0 2px; font: 600 14.5px/1.3 var(--sans); }
.online-guide .step p { margin: 0; font-size: 13.6px; line-height: 1.38; }

.support-page #kontakt { --screen-title: clamp(33px, 9.3vw, 38px); }
.contact-heading { padding-top: 16px; }
.contact-age { white-space: nowrap; }
.contact-content { margin-top: 13px; }
.consultation-price {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 5px;
  border-block: 1px solid var(--screen-line);
}
.consultation-price svg { justify-self: center; width: 20px; height: 20px; stroke-width: 1.65; }
.consultation-price strong { font: 400 26px/1 var(--serif); letter-spacing: -.045em; white-space: nowrap; }
.consultation-label { font-size: 13.8px; font-weight: 600; line-height: 1.2; }
.contact-duration { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 400; }
.contact-booking { margin-top: 11px; }
.formats-spaces { margin-top: 15px; }
.formats-spaces .section-label { margin-bottom: 7px; }
.contact-formats .pill strong { font-size: 14px; }
.office-map.mobile-only {
  display: flex !important;
  align-items: center;
  gap: 1px;
  min-height: 44px;
  margin-block: -5px;
  font-size: 11.6px;
  font-weight: 600;
}
.office-map svg { width: 13px; height: 13px; }
.office-map::after { position: absolute; inset: 0; content: ""; }

.family-nav {
  position: fixed;
  z-index: 9;
  inset: auto 0 0;
  --family-gutter: max(8px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  padding: 0 var(--family-gutter) var(--bottom-safe);
  border-top: 1px solid #dacbbb;
  border-radius: 19px 19px 0 0;
  background: #fbf3e8;
  box-shadow: 0 -3px 13px #392a1705;
  color: var(--ink);
}
.family-nav-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.48fr) minmax(0, 1fr) minmax(0, 1fr);
  min-height: calc(var(--support-dock-row) - 1px);
  max-width: 580px;
  margin-inline: auto;
}
.family-link {
  position: relative;
  display: grid;
  grid-template-rows: 37px auto;
  align-content: center;
  place-items: center;
  gap: 3px;
  min-width: 0;
  min-height: 44px;
  font: 500 10.8px/1.13 var(--sans);
  letter-spacing: -.01em;
  text-align: center;
}
.family-link + .family-link::before {
  position: absolute;
  inset: 16px auto 15px 0;
  width: 1px;
  background: #e4d9c9;
  pointer-events: none;
  content: "";
}
.family-link:nth-child(3)::before, .family-link:nth-child(4)::before { display: none; }
.family-symbol {
  display: grid;
  place-items: center;
  width: 37px;
  height: 29px;
  border-radius: 15px;
}
.family-symbol svg { width: 20px; height: 20px; stroke-width: 1.65; }
.family-link[aria-current] { font-weight: 600; }
.family-link:not(.family-online)[aria-current] .family-symbol { background: #e1e9d9; box-shadow: inset 0 0 0 1px #cbd5c2; }
.family-online .family-symbol {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: #2d422c;
  box-shadow: 0 0 0 2px #fbf3e8, 0 2px 4px #2d422c42;
  color: #fffbef;
}
.family-online[aria-current] .family-symbol { box-shadow: 0 0 0 2px #fbf3e8, 0 0 0 3px #809577; }
.family-link:focus-visible { outline-offset: -2px; }
@media (hover: hover) {
  .family-link:not(.family-online):hover .family-symbol { background: #e1e9d9; }
}

@media (max-width: 370px) {
  .support-document { --support-gutter: 18px; }
  .family-link { font-size: 10.3px; }
}

@media (max-height: 591px) {
  .support-document { --screen-header-row: 54px; --support-dock-row: 64px; }
  .support-page .site-header .logo-brand,
  .support-page .compact-header .compact-brand { width: 93px; }
  .support-top.mobile-only, .bio, .contact-heading { padding-top: 13px; }
  .support-options { margin-top: 13px; }
  .bio-image { height: 132px; }
  .bio-text { padding-top: 9px; }
  .online-heading { padding-top: 18px; }
  .online-guide { margin-top: 15px; }
  .support-page #kontakt { --screen-title: 33px; }
  .contact-content { margin-top: 10px; }
  .formats-spaces { margin-top: 12px; }
}
