/* ==========================================================================
   Instytut Zdrowia — podstrony i elementy WordPress
   Rozszerza design system z makiety (style.css): te same tokeny, promienie, typografia.
   ========================================================================== */

/* ---------- Drobne uzupełnienia makiety ---------- */
section[id], article[id], details[id] { scroll-margin-top: calc(var(--navbar-h) + 1.25rem); }
.mega__cols { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
.mega__panel--full { grid-template-columns: minmax(0, 1fr); }
.mobile-menu__label { margin: 1rem 0 .25rem; font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-700); }
.mobile-menu__label:first-child { margin-top: .25rem; }
.mobile-menu__more { display: inline-flex !important; align-items: center; gap: .4rem; font-weight: 600; color: var(--gold-700) !important; }
.mobile-menu__more .icon { width: 1rem; height: 1rem; }
.nav__link.is-active { background: rgba(22, 20, 15, .06); }
.nav__link[aria-current="page"] { background: var(--ink); color: #fff; }
.principles__more { margin-top: 1.75rem; }
.tech-card__link { display: inline-flex; align-items: center; gap: .4rem; margin-top: .9rem; font-size: .875rem; font-weight: 600; color: var(--gold-200); }
.tech-card__link .icon { width: 1rem; height: 1rem; transition: transform .5s var(--ease); }
.tech-card__link:hover .icon { transform: translateX(4px); }
.diag-list a { display: block; color: inherit; }

/* Karta specjalisty: cała karta prowadzi do profilu, strzałka otwiera rezerwację */
.doc__link { color: inherit; }
.doc__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.doc__cta, .doc__actions { position: relative; z-index: 2; }
.doc__cta { position: absolute; }
.doc__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.doc--featured .doc__btn { margin: 0; }
.doc__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold-500); background: var(--gold-grad-soft); }
.doc__placeholder .icon { width: 30%; height: 30%; stroke-width: 1.25; }
.team__grid:empty + .team__foot { display: none; }

/* Przycisk w trakcie wysyłki */
.btn.is-busy { pointer-events: none; opacity: .75; }
.btn.is-busy .btn__icon .icon { animation: spin 1s linear infinite; }
.form__alert { margin-top: 1rem; padding: .85rem 1rem; border-radius: 14px; background: #FBEDE9; color: #7A2A1D; font-size: .9375rem; font-weight: 500; }

/* ==========================================================================
   NAGŁÓWEK PODSTRONY
   ========================================================================== */
.page-hero {
  position: relative; overflow: clip;
  padding-top: calc(var(--header-h) + clamp(1.75rem, 4.5vw, 3.75rem));
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  background:
    radial-gradient(50% 70% at 88% 20%, rgba(222, 196, 142, .26), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(236, 230, 219, .9), transparent 70%),
    var(--bg);
}
.page-hero::after {
  content: ""; position: absolute; right: -3%; bottom: 0; width: min(640px, 62vw); aspect-ratio: 361 / 144; pointer-events: none;
  background: url("../img/tree-half.svg") center bottom / contain no-repeat; opacity: .16;
}
.page-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.page-hero--media .page-hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.page-hero__copy { max-width: 52rem; }
.page-hero__eyebrow { margin-bottom: 1.1rem; }
.page-hero__eyebrow .icon { width: 1rem; height: 1rem; }
.page-hero__title {
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  font-size: clamp(2.5rem, 1.4rem + 4.2vw, 5.5rem); line-height: .98; letter-spacing: -.05em;
}
.page-hero__title em { font-style: italic; font-weight: 400; background: var(--gold-grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-right: .06em; }
.page-hero__lead { max-width: 40rem; margin-bottom: 1.75rem; font-size: clamp(1.0625rem, 1rem + .35vw, 1.3125rem); line-height: 1.55; color: var(--ink-2); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.page-hero__chips { margin: -.25rem 0 1.75rem; }
.page-hero__chips a { background: rgba(255, 255, 255, .55); }
.page-hero__meta { margin-bottom: 1.75rem; }
.page-hero__facts { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.page-hero__facts li { display: flex; align-items: baseline; gap: .5rem; color: var(--muted); font-size: .9375rem; }
.page-hero__facts strong { font-size: 2.25rem; font-weight: 500; letter-spacing: -.05em; color: var(--ink); line-height: 1; }
.page-hero__visual { position: relative; justify-self: center; width: min(100%, 470px); }
.page-hero__media { position: relative; overflow: hidden; background: var(--bg-soft); box-shadow: var(--shadow-l); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media--arch { aspect-ratio: 4 / 5; border-radius: 50% 50% 26px 26px / 40% 40% 26px 26px; }
.page-hero__media--arch::after { content: ""; position: absolute; inset: 10px; pointer-events: none; border: 1px solid rgba(255, 244, 220, .5); border-radius: 50% 50% 18px 18px / 40% 40% 18px 18px; }
.page-hero__media--rounded { aspect-ratio: 4 / 3; border-radius: 32px; }
.page-hero__search { max-width: 34rem; margin-bottom: 1.5rem; }
.page-hero--compact { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.page-hero--compact .page-hero__title { font-size: clamp(2.25rem, 1.3rem + 3.4vw, 4.25rem); }
.page-hero--crumbs { padding-bottom: 0; background: var(--bg); }
.page-hero--crumbs::after { display: none; }
.page-hero--404 { min-height: 72vh; display: flex; align-items: center; }

/* Okruszki */
.crumbs { margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; font-size: .8125rem; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; }
.crumbs a { color: var(--ink-2); transition: color .3s; }
.crumbs a:hover { color: var(--gold-700); }
.crumbs .icon { width: .85rem; height: .85rem; color: var(--gold-500); }
.crumbs [aria-current] { color: var(--muted); max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==========================================================================
   SEKCJE TREŚCI (ACF Flexible Content)
   ========================================================================== */
.page-body { padding-bottom: clamp(2rem, 5vw, 4rem); }
.fx { padding-block: clamp(2.75rem, 6vw, 5.5rem); }
.page-body > .fx:first-child, .page-body > section:first-child { padding-top: clamp(2rem, 4vw, 3.5rem); }
.fx--soft { margin-inline: var(--inset); border-radius: var(--panel-r); background: var(--bg-soft); }
.fx--soft + .fx--soft { margin-top: var(--inset); }
.fx--white { margin-inline: var(--inset); border-radius: var(--panel-r); background: #fff; border: 1px solid var(--line); }
.fx-head { display: grid; gap: 1rem; max-width: 52rem; margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.fx-head .eyebrow { margin-bottom: 0; }
.fx-head .eyebrow .icon { width: 1rem; height: 1rem; }
.fx-head--wide { max-width: none; }
.fx-title, .section-title--md { font-size: clamp(2rem, 1.25rem + 2.6vw, 3.6rem); line-height: 1.02; letter-spacing: -.045em; }
.fx-title em, .section-title--md em { font-style: italic; font-weight: 400; background: var(--gold-grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-right: .06em; }
.fx-head--light .fx-title { color: var(--on-dark); }
.fx-head--light .section-lead { color: var(--on-dark-2); }
.fx-head--light .eyebrow { color: var(--gold-300); }
.fx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }

/* Tekst sformatowany (WYSIWYG) */
.prose { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.8em; margin-bottom: -.3em; color: var(--ink); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.6rem, 1.25rem + 1.2vw, 2.2rem); letter-spacing: -.035em; }
.prose h3 { font-size: clamp(1.3rem, 1.15rem + .55vw, 1.6rem); letter-spacing: -.025em; }
.prose h4 { font-size: 1.15rem; letter-spacing: -.015em; }
.prose strong, .prose b { color: var(--ink); font-weight: 600; }
.prose a { color: var(--gold-700); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .3s; word-break: break-word; }
.prose a:hover { color: var(--ink); }
.prose ul, .prose ol { display: grid; gap: .55em; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 1.6em; }
.prose ul > li::before { content: ""; position: absolute; left: .2em; top: .62em; width: .5em; height: .5em; border-radius: 50%; background: var(--gold-300); box-shadow: 0 0 0 3px var(--gold-50); }
.prose ol { counter-reset: li; }
.prose ol > li { position: relative; padding-left: 2.2em; counter-increment: li; }
.prose ol > li::before { content: counter(li, decimal-leading-zero); position: absolute; left: 0; top: .15em; font-family: var(--font-mono); font-size: .8em; color: var(--gold-700); }
.prose blockquote { padding: 1.25rem 1.5rem; border-left: 3px solid var(--gold-400); border-radius: 0 16px 16px 0; background: var(--gold-50); color: var(--ink); }
.prose img { border-radius: 18px; }
.prose iframe { width: 100%; min-height: 360px; border: 0; border-radius: 18px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-weight: 600; color: var(--ink); background: var(--bg-soft); }
.prose--columns { columns: 2 22rem; column-gap: clamp(2rem, 4vw, 4rem); }
.prose--columns > * { break-inside: avoid; }
.prose--columns > * + * { margin-top: 0; margin-bottom: 1.1em; }

/* Tekst */
.fx-text__inner { max-width: 48rem; }
.fx-text--wide .fx-text__inner { max-width: 72rem; }
.fx-text--columns .fx-text__inner { max-width: none; }
.fx-text--center .fx-text__inner { margin-inline: auto; text-align: center; }

/* Tekst + obraz */
.fx-media__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5.5vw, 6rem); align-items: center; }
.fx-media--left .fx-media__visual { order: -1; }
.fx-media__copy { min-width: 0; }
.fx-media__copy .fx-head { margin-bottom: 1.5rem; }
.fx-media__visual { position: relative; min-width: 0; }
.fx-media__figure { position: relative; overflow: hidden; background: var(--bg-soft); box-shadow: var(--shadow-m); }
.fx-media__figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.fx-media__figure:hover img { transform: scale(1.03); }
.fx-media__figure--rounded { aspect-ratio: 4 / 3.4; border-radius: clamp(24px, 3vw, 36px); }
.fx-media__figure--arch { aspect-ratio: 4 / 5; max-width: 460px; margin-inline: auto; border-radius: 50% 50% 26px 26px / 38% 38% 26px 26px; }
.fx-media__figure--natural { border-radius: clamp(20px, 2.4vw, 30px); }
.fx-media__figure--natural img { height: auto; }
.fx-media__gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: .75rem; }
.fx-media__gallery figure { overflow: hidden; aspect-ratio: 4 / 3; border-radius: 18px; background: var(--bg-soft); }
.fx-media__gallery img { width: 100%; height: 100%; object-fit: cover; }
.fx-media__visual .media-chip { left: 1rem; bottom: 1rem; }

/* Ikony / korzyści */
.fx-icons__grid { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 1rem; }
.fx-icon { display: flex; flex-direction: column; gap: .5rem; padding: 1.75rem; border-radius: 26px; background: #fff; border: 1px solid var(--line); transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .5s; }
.fx-icon:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--gold-200); }
.fx-icon__ico { display: grid; place-items: center; width: 3.125rem; height: 3.125rem; margin-bottom: 1rem; border-radius: 16px; background: var(--gold-50); color: var(--gold-700); transition: background-color .5s var(--ease), color .5s var(--ease); }
.fx-icon:hover .fx-icon__ico { background: var(--ink); color: var(--gold-200); }
.fx-icon__name { font-size: 1.25rem; letter-spacing: -.025em; }
.fx-icon p { font-size: .9375rem; color: var(--muted); }
.fx-icons--dark .fx-icons__wrap { padding: clamp(2rem, 5vw, 4rem); border-radius: clamp(28px, 4vw, 48px); background: radial-gradient(70% 90% at 12% 30%, #2E2417 0%, var(--night) 62%); }
.fx-icons--dark .fx-icon { background: rgba(255, 255, 255, .04); border-color: var(--line-dark); }
.fx-icons--dark .fx-icon:hover { border-color: rgba(213, 183, 128, .4); box-shadow: none; }
.fx-icons--dark .fx-icon__ico { background: var(--gold-grad); color: var(--ink); }
.fx-icons--dark .fx-icon__name { color: var(--on-dark); }
.fx-icons--dark .fx-icon p { color: var(--on-dark-2); }
.fx-icons__list { max-width: 56rem; }
.fx-icons__name { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); letter-spacing: -.025em; margin-bottom: .35rem; }

/* Cennik */
.fx-prices__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.fx-prices__aside { position: sticky; top: calc(var(--navbar-h) + 1.5rem); display: grid; gap: 1.25rem; }
.fx-prices__aside .fx-head { margin-bottom: 0; }
.fx-prices__aside .fx-title { font-size: clamp(1.9rem, 1.2rem + 2vw, 3rem); }
.price-search { position: relative; display: flex; align-items: center; gap: .65rem; height: 3.5rem; padding: 0 1.25rem; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); transition: border-color .3s, box-shadow .3s; }
.price-search:focus-within { border-color: var(--gold-400); box-shadow: 0 0 0 4px rgba(213, 183, 128, .25); }
.price-search .icon { color: var(--gold-600); }
.price-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font-size: 1rem; color: var(--ink); }
.price-search input::-webkit-search-cancel-button { filter: grayscale(1); }
.price-search__empty { font-size: .9375rem; color: var(--muted); }
.price-search__empty a { color: var(--ink); font-weight: 600; }
.fx-prices__note { display: flex; gap: .6rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: 16px; background: var(--gold-50); font-size: .875rem; color: var(--ink-2); }
.fx-prices__note .icon { width: 1.1rem; height: 1.1rem; margin-top: .1rem; color: var(--gold-600); }
.fx-prices__nav { display: grid; gap: .15rem; padding: .5rem; border-radius: 22px; background: #fff; border: 1px solid var(--line); max-height: calc(100vh - var(--navbar-h) - 20rem); overflow-y: auto; overscroll-behavior: contain; }
.fx-prices__nav a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem .85rem; border-radius: 14px; font-size: .9375rem; color: var(--ink); transition: background-color .25s; }
.fx-prices__nav a:hover { background: var(--bg); }
.fx-prices__nav span { font-family: var(--font-mono); font-size: .6875rem; color: var(--muted); }
.price-list { display: grid; gap: .75rem; min-width: 0; }
.price-group { border-radius: 24px; background: #fff; border: 1px solid var(--line); transition: border-color .4s, box-shadow .5s var(--ease); }
.price-group[open] { border-color: var(--gold-200); box-shadow: var(--shadow-m); }
.price-group summary { display: flex; align-items: center; gap: 1rem; padding: 1.15rem 1.25rem 1.15rem 1.6rem; list-style: none; cursor: pointer; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.price-group summary::-webkit-details-marker { display: none; }
.price-group__name { flex: 1; min-width: 0; }
.price-group__count { padding: .15rem .55rem; border-radius: 999px; background: var(--bg-soft); font-family: var(--font-mono); font-size: .6875rem; color: var(--muted); }
.price-group[open] .faq__icon { background: var(--ink); border-color: var(--ink); }
.price-group[open] .faq__icon::before, .price-group[open] .faq__icon::after { background: #fff; }
.price-group[open] .faq__icon::after { transform: rotate(0); }
.price-group__body { overflow: hidden; }
.price-group__note { margin: 0 1.6rem 1rem; font-size: .875rem; color: var(--muted); }
.price-rows { padding: 0 1.6rem 1.25rem; }
.price-row { display: flex; align-items: baseline; gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--line); font-size: .9688rem; }
.price-row__name { color: var(--ink-2); min-width: 0; }
.price-row__dots { flex: 1; min-width: 1.5rem; border-bottom: 1px dotted var(--line-2); transform: translateY(-.25em); }
.price-row__price { flex: none; max-width: 48%; text-align: right; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Osoby */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1rem; }
.person { display: flex; flex-direction: column; padding: .5rem; border-radius: 26px; background: #fff; border: 1px solid var(--line); transition: box-shadow .6s var(--ease), transform .6s var(--ease); }
.person:hover { box-shadow: var(--shadow-m); transform: translateY(-4px); }
.person__photo { position: relative; overflow: hidden; aspect-ratio: 1 / 1; border-radius: 20px; background: var(--gold-grad-soft); display: grid; place-items: center; color: var(--gold-500); }
.person__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.person__photo > span .icon { width: 2.5rem; height: 2.5rem; }
.person__body { padding: 1rem .75rem .6rem; }
.person__name { font-size: 1.1875rem; letter-spacing: -.025em; margin-bottom: .25rem; }
.person__role { font-size: .875rem; line-height: 1.4; color: var(--muted); margin-bottom: .75rem; }
.person__links { display: grid; gap: .3rem; font-size: .8125rem; }
.person__links a { display: inline-flex; align-items: center; gap: .4rem; min-width: 0; color: var(--ink); overflow-wrap: anywhere; }
.person__links a:hover { color: var(--gold-700); }
.person__links .icon { width: 1rem; height: 1rem; color: var(--gold-600); }

/* Pas CTA */
.cta-band { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 3rem; align-items: center; padding: clamp(2rem, 5vw, 4rem); border-radius: clamp(28px, 4vw, 48px); }
.cta-band--dark { background: radial-gradient(70% 120% at 100% 0%, rgba(176, 138, 78, .3), transparent 60%), var(--night); color: var(--on-dark-2); }
.cta-band--gold { background: linear-gradient(135deg, #FCF7EC 0%, #F1E3C4 100%); border: 1px solid rgba(176, 138, 78, .2); }
.cta-band__title { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.75rem); line-height: 1; letter-spacing: -.05em; }
.cta-band__title em { font-style: italic; font-weight: 400; background: var(--gold-grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-right: .06em; }
.cta-band--dark .cta-band__title { color: var(--on-dark); }
.cta-band__text { max-width: 36rem; margin-top: 1rem; font-size: 1.0625rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }
.cta-band__phone { display: flex; flex-direction: column; font-size: 1.6rem; font-weight: 500; letter-spacing: -.035em; line-height: 1.15; color: var(--on-dark); }
.cta-band--gold .cta-band__phone { color: var(--ink); }
.cta-band__phone small { font-family: var(--font-mono); font-size: .625rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); }
.cta-band--gold .cta-band__phone small { color: var(--gold-700); }

/* Osadzenie */
.fx-embed__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.fx-embed__grid--single { grid-template-columns: minmax(0, 1fr); }
.fx-embed__frame { position: relative; overflow: hidden; height: var(--h, 520px); border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-m); }
.fx-embed__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Tekst + formularz */
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: .75rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.highlights li { display: flex; flex-direction: column; gap: .75rem; padding: 1.25rem 1.4rem; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.highlights span { font-family: var(--font-mono); font-size: .75rem; color: var(--gold-700); }
.highlights strong { font-size: 1.125rem; font-weight: 500; letter-spacing: -.02em; color: var(--ink); line-height: 1.25; }
.fx-form__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.fx-form__grid--solo { grid-template-columns: minmax(0, 40rem); justify-content: center; }
.form-card { position: sticky; top: calc(var(--navbar-h) + 1.5rem); padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 30px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-m); }
.iz-form__title { font-size: 1.6rem; letter-spacing: -.035em; margin-bottom: .5rem; }
.iz-form__intro { margin-bottom: 1.5rem; font-size: .9375rem; color: var(--muted); }
.iz-form__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: .75rem; }
.iz-form__fields .field { grid-column: 1 / -1; }
.iz-form__fields .field--half { grid-column: span 1; }
.iz-form .consent { margin: .25rem 0 .5rem; }
.iz-form__submit { margin-top: 1.25rem; width: 100%; }
.iz-form__success { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 1.5rem 0 .5rem; text-align: center; outline: none; }
.iz-form__success h3 { font-size: 1.75rem; letter-spacing: -.04em; }
.iz-form__success p { color: var(--muted); }
.file-input { position: relative; display: flex; align-items: center; gap: .6rem; min-height: 3.25rem; padding: .75rem 1rem; border-radius: 14px; border: 1.5px dashed var(--line-2); background: var(--bg); font-size: .9375rem; color: var(--muted); cursor: pointer; transition: border-color .3s, background-color .3s; }
.file-input:hover { border-color: var(--gold-400); background: #fff; }
.file-input .icon { color: var(--gold-600); }
.file-input input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.field label.field__label { display: block; }

/* Kroki */
.fx-steps__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.fx-steps__card { padding: clamp(1.5rem, 3.4vw, 2.75rem); border-radius: clamp(24px, 3vw, 36px); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-m); }
.fx-steps__card .result__steps { margin: 0; }
.fx-steps__name { margin-bottom: .2rem; font-size: 1.125rem; font-weight: 600; letter-spacing: -.015em; }
.fx-steps__card p { font-size: .9688rem; color: var(--muted); }

/* Cytat */
.fx-quote__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.fx-quote__grid--solo { grid-template-columns: minmax(0, 52rem); justify-content: center; }
.fx-quote__media { aspect-ratio: 4 / 5; }
.fx-quote__body blockquote p { font-size: clamp(1.4rem, 1.05rem + 1.4vw, 2.25rem); line-height: 1.3; letter-spacing: -.03em; color: var(--ink); margin-bottom: 1.5rem; }
.fx-quote__body figcaption { display: flex; flex-direction: column; padding-top: 1rem; border-top: 1px solid var(--line); }
.fx-quote__body figcaption strong { color: var(--ink); font-weight: 600; }
.fx-quote__body figcaption span { font-size: .9375rem; color: var(--muted); }

/* Galeria */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: .75rem; }
.gallery-grid a { display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 20px; background: var(--bg-soft); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.05); }

/* ==========================================================================
   KARTY OFERTY
   ========================================================================== */
.ocards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ocards--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ocard { position: relative; display: flex; flex-direction: column; padding: .5rem; border-radius: 26px; background: #fff; border: 1px solid var(--line); transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .5s; }
.ocard:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); border-color: var(--gold-200); }
.ocard__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 20px; background: var(--gold-grad-soft); isolation: isolate; }
.ocard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter .8s var(--ease); filter: saturate(.9); }
.ocard:hover .ocard__media img { transform: scale(1.05); filter: saturate(1.02); }
.ocard__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold-500); }
.ocard__placeholder .icon { width: 3rem; height: 3rem; stroke-width: 1.25; }
.ocard__cat { position: absolute; left: .75rem; top: .75rem; padding: .3rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(8px); font-family: var(--font-mono); font-size: .625rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.ocard__body { display: flex; flex-direction: column; gap: .4rem; flex: 1; padding: 1rem 3.5rem 1rem .85rem; }
.ocard__title { font-size: 1.1875rem; line-height: 1.22; letter-spacing: -.025em; }
.ocard__title a { color: inherit; }
.ocard__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.ocard__lead { font-size: .875rem; line-height: 1.5; color: var(--muted); }
.ocard__go { position: absolute; right: 1rem; bottom: 1rem; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink); transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s, transform .6s var(--ease); }
.ocard__go .icon { width: 1rem; height: 1rem; }
.ocard:hover .ocard__go { background: var(--ink); color: #fff; border-color: var(--ink); transform: rotate(45deg); }
.ocards--compact .ocard__title { font-size: 1.0625rem; }

.fx-cat { padding-block: clamp(2.25rem, 4.5vw, 4rem); }
.fx-cat + .fx-cat { border-top: 1px solid var(--line); }
.fx-cat__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 28rem) auto; gap: 1rem 2.5rem; align-items: end; margin-bottom: 1.75rem; }
.fx-cat__head .eyebrow { margin-bottom: .75rem; }
.fx-cat__head .eyebrow .icon { width: 1rem; height: 1rem; }
.fx-cat__head .section-lead { font-size: 1rem; }
.fx-cat__head .link-arrow { white-space: nowrap; }
.fx-related { margin-inline: var(--inset); border-radius: var(--panel-r); background: var(--bg-soft); }
.tags--lg a { height: 2.75rem; padding: 0 1.15rem; font-size: .9375rem; }
.fx-children .ocards { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ==========================================================================
   SPECJALIŚCI
   ========================================================================== */
.team--page { padding-top: clamp(2rem, 4vw, 3rem); }
.team--page .team__filters { margin-bottom: 1.5rem; }
.doctor-hero__grid { display: grid; grid-template-columns: minmax(0, 4.5fr) minmax(0, 7.5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.doctor-hero__photo { position: relative; overflow: hidden; aspect-ratio: 4 / 5; max-width: 460px; border-radius: 32px; background: var(--bg-soft); box-shadow: var(--shadow-l); }
.doctor-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.doctor-hero__degree { margin-bottom: .5rem; font-size: .8125rem; }
.doctor-hero__name { font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.75rem); }
.doctor-hero__spec { margin-bottom: 1.25rem; font-size: 1.125rem; font-weight: 500; color: var(--gold-700); }
.doctor-hero__deps { margin-bottom: 1.5rem; }
.doctor-bio .fx-text__inner { max-width: 52rem; }

/* ==========================================================================
   REZERWACJA NA STRONIE
   ========================================================================== */
.booking-page__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.booking-page__card { border-radius: 32px; background: var(--bg-soft); border: 1px solid var(--line); overflow: hidden; }
.booking-page__card .booking__form { padding: 1.75rem; }
.booking-page__card.is-success .booking__nav, .booking-page__card.is-success .booking__progress, .booking-page__card.is-success [data-booking-step-label] { visibility: hidden; }
.booking-page__aside { position: sticky; top: calc(var(--navbar-h) + 1.5rem); display: grid; gap: 1rem; }
.booking-page__aside .faq__card { margin: 0; }
.booking-page__facts { display: grid; gap: .25rem; }
.booking-page__facts li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); color: var(--ink); }
.booking-page__facts .icon { width: 2.5rem; height: 2.5rem; padding: .65rem; border-radius: 50%; background: var(--gold-50); color: var(--gold-700); }
.booking-page__facts small { display: block; margin-bottom: .2rem; font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.booking-page__facts .status { display: flex; }

/* Kontakt jako strona */
.page-body--contact .contact { padding-top: clamp(1rem, 2vw, 2rem); }

/* Pakiety jako strona */
.packages--stacked + .packages--stacked { padding-top: 0; }
.packages--stacked .section-head { margin-bottom: 2rem; }

/* ==========================================================================
   WYSZUKIWANIE, PAGINACJA
   ========================================================================== */
.results { display: grid; gap: .75rem; max-width: 56rem; }
.result-item { position: relative; padding: 1.4rem 1.6rem; border-radius: 22px; background: #fff; border: 1px solid var(--line); transition: border-color .4s, box-shadow .5s var(--ease); }
.result-item:hover { border-color: var(--gold-200); box-shadow: var(--shadow-m); }
.result-item__type { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-700); }
.result-item__title { margin: .35rem 0 .4rem; font-size: 1.375rem; letter-spacing: -.025em; }
.result-item__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.result-item p { font-size: .9375rem; color: var(--muted); }
.pagination { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 2rem; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 2.75rem; height: 2.75rem; padding: 0 .8rem; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 500; color: var(--ink); }
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination .icon { width: 1rem; height: 1rem; }
.empty-state a { color: var(--ink); font-weight: 600; text-decoration: underline; }

/* ==========================================================================
   Kontrast
   ========================================================================== */
.hc .page-hero__title em, .hc .fx-title em, .hc .cta-band__title em, .hc .section-title--md em { background: none; color: var(--gold-700); -webkit-text-fill-color: currentColor; }
.hc .cta-band--dark .cta-band__title em, .hc .fx-icons--dark .fx-title em { color: var(--gold-200); }
.hc .prose a { color: var(--ink); }

/* ==========================================================================
   RWD
   ========================================================================== */
@media (max-width: 1180px) {
  .ocards--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fx-cat__head { grid-template-columns: minmax(0, 1fr) auto; }
  .fx-cat__head .section-lead { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 1023px) {
  .page-hero--media .page-hero__grid, .doctor-hero__grid, .fx-media__grid, .fx-prices__grid, .fx-embed__grid, .fx-form__grid, .fx-steps__grid, .fx-quote__grid, .booking-page__grid { grid-template-columns: minmax(0, 1fr); }
  .page-hero__visual { width: min(100%, 380px); justify-self: start; }
  .page-hero::after { width: 80vw; right: -30%; }
  .fx-media--left .fx-media__visual { order: 0; }
  .fx-media__visual { max-width: 640px; }
  .fx-prices__aside, .form-card, .booking-page__aside { position: static; }
  .fx-prices__nav { max-height: none; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .ocards, .fx-children .ocards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ocards--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-icons__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band { grid-template-columns: minmax(0, 1fr); }
  .doctor-hero__photo { max-width: 360px; }
}
@media (max-width: 767px) {
  .page-hero { padding-top: calc(var(--header-h) + 1.25rem); }
  .page-hero__actions .btn { flex: 1 1 auto; }
  .page-hero__chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .page-hero__chips::-webkit-scrollbar { display: none; }
  .page-hero__chips li { flex: none; }
  .team__filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) .25rem; scrollbar-width: none; }
  .team__filters::-webkit-scrollbar { display: none; }
  .team__filters .chip { flex: none; }
  .ocards, .ocards--compact, .fx-children .ocards { grid-template-columns: minmax(0, 1fr); }
  .ocard { flex-direction: row; align-items: center; gap: .9rem; }
  .ocard__media { width: 6.5rem; flex: none; aspect-ratio: 1; border-radius: 16px; }
  .ocard__cat { display: none; }
  .ocard__body { padding: .25rem 3.25rem .25rem 0; }
  .ocard__lead { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ocard__go { top: 50%; bottom: auto; margin-top: -1.125rem; width: 2.25rem; height: 2.25rem; }
  .fx-icons__grid { grid-template-columns: minmax(0, 1fr); }
  .fx-cat__head { grid-template-columns: minmax(0, 1fr); }
  .fx-cat__head .section-lead { grid-row: auto; }
  .price-group summary { padding-left: 1.15rem; }
  .price-rows { padding: 0 1.15rem 1rem; }
  .price-row { flex-wrap: wrap; gap: .25rem .75rem; }
  .price-row__dots { display: none; }
  .price-row__name { flex: 1 1 100%; }
  .price-row__price { flex: 1 1 100%; max-width: none; text-align: left; color: var(--gold-700); }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .person { border-radius: 20px; padding: .375rem; }
  .person__photo { border-radius: 15px; aspect-ratio: 4 / 5; }
  .person__body { padding: .75rem .4rem .5rem; }
  .person__name { font-size: 1rem; }
  .person__role, .person__links { font-size: .8125rem; }
  .person__links a { align-items: flex-start; word-break: break-all; }
  .iz-form__fields { grid-template-columns: minmax(0, 1fr); }
  .iz-form__fields .field--half { grid-column: 1 / -1; }
  .booking-page__card .booking__form { padding: 1.25rem; }
  .booking-page__card .booking__head { padding-inline: 1.25rem; }
  .booking-page__card .booking__progress { margin-inline: 1.25rem; }
  .fx-embed__frame { height: min(var(--h, 520px), 80vh); }
  .cta-band__actions .btn { width: 100%; }
  .crumbs [aria-current] { max-width: 20ch; }
}

/* ==========================================================================
   STRONA GŁÓWNA — wersja skrócona (zapowiedzi podstron zamiast pełnego landingu)
   ========================================================================== */
body.home { --section-y: clamp(4rem, 7vw, 6.75rem); }

/* O Instytucie: zdanie i zasady opieki po lewej, zdjęcie z cytatem założycielki po prawej */
.about--home { padding-bottom: calc(var(--section-y) * .6); overflow-x: clip; }
.about-home {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "head media" "points media" "actions media";
  grid-template-rows: auto auto 1fr; column-gap: clamp(3rem, 7vw, 7.5rem);
}
.about-home--solo { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "points" "actions"; }
.about-home__head { grid-area: head; }
.about--home .about__statement { font-size: clamp(1.65rem, .95rem + 2.05vw, 2.95rem); line-height: 1.16; }
.about__statement em { font-style: italic; font-weight: 400; }
/* złota kursywa — na całym <em>, a po podziale na słowa na każdym słowie osobno
   (spokojniejszy gradient niż w tytułach, żeby krótkie słowa nie wychodziły blado) */
.about__statement em:not(:has(.word)), .about__statement em .word, .about__statement em .nb {
  background: linear-gradient(115deg, #94703A 0%, #BF9858 55%, #A27C42 100%); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; padding-right: .06em;
}
.hc .about__statement em, .hc .about__statement em .word, .hc .about__statement em .nb { background: none; color: var(--gold-700); -webkit-text-fill-color: currentColor; }

.about-home__points {
  grid-area: points; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(2rem, 4vw, 3.25rem); border-top: 1px solid var(--line);
}
.about-home__point {
  display: flex; align-items: center; gap: 1rem; padding: 1.15rem 1rem 1.15rem 0; border-bottom: 1px solid var(--line);
  font-size: clamp(1rem, .95rem + .2vw, 1.125rem); font-weight: 500; line-height: 1.3; letter-spacing: -.02em; color: var(--ink);
}
.about-home__point:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.about-home__icon {
  display: grid; place-items: center; flex: none; width: 2.9rem; height: 2.9rem; border-radius: 50%;
  background: var(--gold-50); border: 1px solid var(--gold-100); color: var(--gold-700);
  transition: background-color .5s var(--ease), color .5s var(--ease), transform .6s var(--ease);
}
.about-home__icon .icon { width: 1.2rem; height: 1.2rem; }
.about-home__point:hover .about-home__icon { background: var(--ink); color: var(--gold-200); transform: rotate(-8deg) scale(1.05); }
.about-home__actions { grid-area: actions; margin-top: clamp(1.75rem, 3vw, 2.5rem); }

.about-home__media { grid-area: media; position: relative; isolation: isolate; align-self: start; }
.about-home__glow {
  position: absolute; z-index: -1; inset: 12% -8% -6% 8%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(214, 182, 120, .42), rgba(214, 182, 120, 0)); filter: blur(24px);
}
.about-home__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 30px; background: var(--bg-soft); box-shadow: var(--shadow-m); }
.about-home__photo img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; }
.about-home__quote {
  position: absolute; left: clamp(-3.25rem, -3.2vw, -1.5rem); bottom: clamp(1.25rem, 2.6vw, 2.25rem); width: min(25rem, 88%);
  padding: 1.6rem 1.6rem 1.3rem; border-radius: 24px;
  background: rgba(255, 255, 255, .92); border: 1px solid rgba(255, 255, 255, .8); box-shadow: var(--shadow-l);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.about-home__media:not(:has(.about-home__photo)) .about-home__quote { position: relative; left: auto; bottom: auto; width: auto; }
.about-home__quote .founder__mark { width: 30px; margin-bottom: .8rem; }
.about-home__quote blockquote p { font-size: clamp(1rem, .96rem + .2vw, 1.125rem); line-height: 1.5; letter-spacing: -.01em; color: var(--ink); }
.about-home__quote figcaption { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.about__person { display: inline-flex; align-items: center; gap: .8rem; color: var(--ink); }
.about__avatar { width: 2.75rem; height: 2.75rem; flex: none; overflow: hidden; border-radius: 50%; background: var(--bg-soft); }
.about__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform .8s var(--ease); }
.about__person:hover .about__avatar img { transform: scale(1.08); }
.about__who { display: flex; flex-direction: column; line-height: 1.3; }
.about__who strong { font-size: .9375rem; font-weight: 600; }
.about__who span { font-size: .8125rem; color: var(--muted); }
@media (max-width: 1023px) {
  .about-home { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "media" "points" "actions"; grid-template-rows: none; }
  /* tablet: zdjęcie i cytat obok siebie, karta lekko nachodzi na zdjęcie */
  .about-home__media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; margin-top: clamp(2rem, 5vw, 3rem); }
  .about-home__photo { grid-area: 1 / 1; aspect-ratio: 4 / 4.6; }
  .about-home__quote { grid-area: 1 / 2; position: relative; left: auto; bottom: auto; width: auto; margin-left: -3rem; }
  .about-home__glow { inset: 10% 0 0 30%; }
}
@media (max-width: 600px) {
  .about-home__media { display: block; }
  .about-home__photo { aspect-ratio: 4 / 3.4; border-radius: 24px; }
  .about-home__photo img { object-position: 50% 40%; }
  .about-home__quote { margin: -3.5rem .5rem 0; padding: 1.35rem 1.25rem 1.1rem; border-radius: 20px; }
  .about-home__point { flex-direction: column; align-items: flex-start; gap: .7rem; padding: 1rem .75rem 1rem 0; font-size: .9375rem; }
  .about-home__point:nth-child(even) { padding-left: 1rem; }
  .about-home__icon { width: 2.5rem; height: 2.5rem; }
  .about-home__actions .btn { width: 100%; justify-content: space-between; }
}

/* Nagłówki sekcji z wstępem i linkiem po prawej */
.pillars__head, .team--home .team__head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 28rem); gap: 1.5rem 3rem; align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.pillars__head .section-title, .team--home .team__head .section-title { margin: 0; }
.pillars__aside, .team__aside { display: grid; gap: 1.1rem; justify-items: start; }
.pillars__aside .section-lead, .team__aside .section-lead { margin: 0; }

/* Obszary opieki: kafelki */
.pillars--grid { padding-bottom: calc(var(--section-y) * .6); }
.areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.area {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  padding: .5rem; border-radius: 26px; background: #fff; border: 1px solid var(--line);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .5s;
}
.area:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--gold-200); }
.area__media { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 4 / 3; border-radius: 20px; background: var(--bg-soft); }
.area__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.area:hover .area__media img { transform: scale(1.045); }
.area__media--duotone { background: #17110A; }
.area__media--duotone img { filter: grayscale(1) contrast(1.25) brightness(1.1); object-position: 50% 45%; }
.area__media--duotone::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, #F2DDAA 0%, #B8914F 45%, #3A2A14 100%); mix-blend-mode: multiply; pointer-events: none; }
.area__media--monitor { background: radial-gradient(120% 90% at 50% 0%, #2B241A 0%, #0E0D0B 70%); }
/* monitor przypięty do ramki — płótno EEG mierzy własną wysokość, więc nie może wyznaczać wysokości karty */
.area__media--monitor .monitor { position: absolute; inset: .5rem; min-height: 0; border-radius: 14px; }
.area__media--monitor .monitor__bar { padding: .5rem .75rem; font-size: .625rem; }
.area__media--monitor .monitor__canvas { display: block; flex: 1 1 0; min-height: 0; background-size: 16px 16px; }
.area__body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem .9rem .8rem; }
.area__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .9rem; }
.area__num { font-family: var(--font-mono); font-size: .75rem; font-weight: 500; color: var(--gold-700); }
.area__num span { color: var(--muted); }
.area__icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink); }
.area__icon .icon { width: 1.1rem; height: 1.1rem; }
.area__title { margin-bottom: .55rem; font-size: clamp(1.3rem, 1.05rem + .55vw, 1.6rem); line-height: 1.08; letter-spacing: -.035em; }
.area__text { margin-bottom: 1.1rem; font-size: .9375rem; line-height: 1.55; color: var(--muted); }
.area__actions { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--line); }
.area__link { font-size: .9375rem; }
.area__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.area:hover .area__link { background-size: 0 1px; background-position: 100% 100%; }
.area:hover .area__link .icon { transform: translateX(4px); }
.area__booking {
  position: relative; z-index: 2; padding: .25rem 0;
  font-size: .8125rem; font-weight: 500; color: var(--muted);
  text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px;
  transition: color .3s, text-decoration-color .3s;
}
.area__booking:hover { color: var(--ink); text-decoration-color: currentColor; }
.area--dark { background: var(--night); border-color: var(--night-3); color: var(--on-dark-2); }
.area--dark:hover { border-color: var(--night-3); }
.area--dark .area__title, .area--dark .area__link { color: var(--on-dark); }
.area--dark .area__text, .area--dark .area__booking { color: var(--on-dark-2); }
.area--dark .area__booking { text-decoration-color: var(--line-dark); }
.area--dark .area__booking:hover { color: var(--on-dark); }
.area--dark .area__num { color: var(--gold-300); }
.area--dark .area__num span { color: rgba(243, 238, 230, .5); }
.area--dark .area__icon { border-color: var(--line-dark); color: var(--gold-200); }
.area--dark .area__actions { border-color: var(--line-dark); }
.area--sand { background: var(--bg-soft); }
.area--gold { background: linear-gradient(135deg, #FCF7EC 0%, #F1E3C4 100%); border-color: rgba(176, 138, 78, .2); }

/* Specjaliści: jeden rząd + link */
.team--home { padding-top: var(--section-y); }
.team--home .team__foot { display: none; }

/* Dla Ciebie: kafelki-linki (panel przed stopką — odstęp, żeby panele się nie zlewały) */
body.home .offers { margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.tile {
  position: relative; display: flex; align-items: flex-start; gap: 1.1rem;
  padding: 1.5rem; border-radius: 24px; background: #fff; border: 1px solid var(--line);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .5s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--gold-200); }
.tile__icon { display: grid; place-items: center; width: 3rem; height: 3rem; flex: none; border-radius: 14px; background: var(--gold-50); color: var(--gold-700); }
.tile__body { min-width: 0; padding-right: 2.5rem; }
.tile__tag { margin-bottom: .3rem; font-family: var(--font-mono); font-size: .625rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-700); }
.tile__title { margin-bottom: .35rem; font-size: 1.25rem; line-height: 1.15; letter-spacing: -.025em; }
.tile__link { color: inherit; }
.tile__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tile__link:focus-visible { outline: none; }
.tile:focus-within { outline: 2px solid var(--gold-500); outline-offset: 3px; }
.tile__text { font-size: .9rem; line-height: 1.5; color: var(--muted); }
.tile__arrow {
  position: absolute; top: 1.1rem; right: 1.1rem;
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink);
  transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s, transform .6s var(--ease);
}
.tile__arrow .icon { width: .95rem; height: .95rem; }
.tile:hover .tile__arrow { background: var(--ink); color: #fff; border-color: var(--ink); transform: rotate(-45deg); }
.tile--dark { background: var(--night); border-color: var(--night); color: var(--on-dark-2); }
.tile--dark:hover { border-color: var(--night-3); }
.tile--dark .tile__title {
  font-size: 1.5rem; font-style: italic; font-weight: 400; letter-spacing: -.035em;
  background: var(--gold-grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; padding-right: .1em;
}
.tile--dark .tile__text { color: var(--on-dark-2); }
.tile--dark .tile__tag { color: var(--gold-300); }
.tile--dark .tile__icon { background: rgba(213, 183, 128, .12); color: var(--gold-200); }
.tile--dark .tile__arrow { border-color: var(--line-dark); color: var(--on-dark); }
.tile--dark:hover .tile__arrow { background: var(--gold-grad); color: var(--ink); border-color: transparent; }
.tile--gold { background: var(--gold-grad-soft); border-color: rgba(176, 138, 78, .2); }
.tile--gold .tile__icon { background: #fff; }

@media (max-width: 1180px) {
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area { flex-direction: row; }
  .area__media { width: 40%; flex: none; aspect-ratio: auto; min-height: 15rem; }
  .area__body { padding: 1rem 1rem .75rem 1.25rem; }
  .team--home .team__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .pillars__head, .team--home .team__head { grid-template-columns: minmax(0, 1fr); }
  .team--home .team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team--home .doc--featured { grid-column: 1 / -1; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .areas {
    display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) .25rem; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .areas::-webkit-scrollbar { display: none; }
  .area { flex: 0 0 84%; flex-direction: column; scroll-snap-align: start; }
  .area:hover { transform: none; box-shadow: none; }
  .area__media { width: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .area__body { padding: 1rem .75rem .6rem; }
  .tiles { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .tile { padding: 1.1rem; gap: .9rem; border-radius: 20px; }
  .tile__icon { width: 2.6rem; height: 2.6rem; border-radius: 12px; }
  .tile__title { font-size: 1.125rem; }
  .tile--dark .tile__title { font-size: 1.3rem; }
  .tile__arrow { top: 50%; right: .9rem; margin-top: -1.125rem; }
  .team--home .doc--featured .doc__photo { aspect-ratio: 4 / 3; }
}
@media (max-width: 420px) {
  .team--home .team__grid { grid-template-columns: minmax(0, 1fr); }
}
