/* Brand accent and site palette (v13). Leading theme: homepage hero green #1F4A3A.
   Overrides compiled tokens in /styles.css so the whole site shares one palette
   without re-uploading styles.css. */
:root {
  --color-green: #1f4a3a;
  --color-wine: #1f4a3a;
  --color-bar-green: #1f4a3a;
  --color-green-dark: #133025;
  --color-bar-green-dark: #173b2d;
  --color-green-soft: #3c6757;
  --color-bar-green-soft: #3c6757;
  --color-green-tint: #d2d8cf;
  --color-green-mist: #d6e1db;
  --color-gold: #c6a56c;
  --color-paper: #f1efe9;
  --color-ivory: #f7f4ec;
  --color-ink: #14241e;
  --color-muted: #4e5f57;
  --color-line: #dcd9d0;
  --color-footer: #133025;
  --color-card: #f7f4ec;
}

/* Language switcher and bilingual header helpers. Does not alter the existing layout system. */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  margin-left: 0.25rem;
  font-family: var(--font-sans, "Outfit", "Avenir Next", system-ui, sans-serif);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-ink, #171a1f);
}

.lang-switch a {
  color: inherit;
  text-decoration: none;
  opacity: 0.45;
  padding: 0.35rem 0.1rem;
}

.lang-switch a:hover,
.lang-switch a:focus-visible {
  opacity: 1;
  color: var(--color-wine, #1f4a3a);
  outline: none;
}

.lang-switch a[aria-current="page"] {
  opacity: 1;
  cursor: default;
}

.lang-switch__sep {
  opacity: 0.3;
  user-select: none;
  pointer-events: none;
}

/* ==========================================================================
   Multi-page layout: header, mobile menu, home hero, subpages
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.wrap--narrow { max-width: 48rem; }

@media (min-width: 768px) {
  .wrap { padding-inline: 2rem; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--color-paper, #f3efe7);
  color: var(--color-ink, #171a1f);
  border-bottom: 1px solid rgba(23, 26, 31, 0.1);
}
.site-header::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--color-wine, #1f4a3a);
}
.site-header__bar {
  position: relative;
  max-width: 72rem;
  margin-inline: auto;
  min-height: 4.75rem;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 768px) {
  .site-header__bar { padding-inline: 2rem; min-height: 5.25rem; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.brand { flex-shrink: 0; line-height: 0; }
.brand .brand-logo { display: block; height: 42px; width: auto; max-width: none; }
@media (min-width: 640px) {
  .brand .brand-logo { height: 48px; }
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-shrink: 0;
}
@media (min-width: 1200px) {
  .header-tools { gap: 1.35rem; }
}

/* Circular menu button */
.menu-toggle {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 0;
  background: var(--color-wine, #1f4a3a);
  color: var(--color-ivory, #faf8f4);
  cursor: pointer;
  transition: background 0.2s ease;
}
.menu-toggle:hover { background: var(--color-bar-green-dark, #173a2d); }
.menu-toggle:focus-visible { outline: 2px solid var(--color-wine, #1f4a3a); outline-offset: 3px; }
.menu-toggle svg { width: 1.5rem; height: 1.5rem; }
.menu-toggle__close { display: none; }
.is-menu-open .menu-toggle__open { display: none; }
.is-menu-open .menu-toggle__close { display: block; }

/* Main nav: dropdown list below 1200px, inline above (fits five items + Kontakt + PL/ENG). */
.site-nav {
  display: none;
}
.site-nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-top: 1px solid var(--color-line, #ddd6cb);
  box-shadow: 0 18px 30px rgba(23, 26, 31, 0.12);
  color: var(--color-ink, #171a1f);
}
.site-nav__link {
  display: block;
  padding: 1.35rem 1.5rem;
  font-size: 1.05rem;
  color: var(--color-ink, #171a1f);
  text-decoration: none;
  border-bottom: 1px solid var(--color-line, #ddd6cb);
}
.site-nav__link:last-child { border-bottom: 0; }
.site-nav__link:hover { color: var(--color-wine, #1f4a3a); background: var(--color-ivory, #faf8f4); }
.site-nav__link[aria-current="page"],
.site-nav__link[aria-current="true"] {
  color: var(--color-wine, #1f4a3a);
  background: var(--color-ivory, #faf8f4);
  box-shadow: inset 3px 0 0 var(--color-gold, #c9ad7f);
}

@media (min-width: 1200px) {
  .menu-toggle { display: none; }
  .site-nav,
  .site-nav.is-open {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.2rem;
    position: static;
    background: none;
    border: 0;
    box-shadow: none;
    color: inherit;
  }
  .site-nav__link {
    padding: 0.35rem 0;
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
    color: inherit;
    border: 0;
    background: none;
    white-space: nowrap;
  }
  .site-nav__link:hover { background: none; }
  .site-nav__link[aria-current="page"],
  .site-nav__link[aria-current="true"] {
    background: none;
    color: var(--color-wine, #1f4a3a);
    box-shadow: inset 0 -2px 0 var(--color-gold, #c9ad7f);
  }
  .site-nav__link--cta {
    padding: 0.7rem 0.95rem;
    background: var(--color-wine, #1f4a3a);
    color: var(--color-ivory, #faf8f4);
  }
  .site-nav__link--cta:hover { background: var(--color-bar-green-dark, #173a2d); color: var(--color-ivory, #faf8f4); }
  .site-nav__link--cta[aria-current="page"],
  .site-nav__link--cta[aria-current="true"] {
    background: transparent;
    color: var(--color-wine, #1f4a3a);
    box-shadow: inset 0 -2px 0 var(--color-gold, #c9ad7f);
  }
}

/* Dark (green) header used above the home hero */
.site-header--dark {
  background: var(--color-wine, #1f4a3a);
  color: var(--color-ivory, #faf8f4);
  border-bottom-color: rgba(250, 248, 244, 0.14);
}
.site-header--dark::before { background: var(--color-ink, #171a1f); }
.site-header--dark .lang-switch { color: var(--color-ivory, #faf8f4); }
.site-header--dark .lang-switch a:hover,
.site-header--dark .lang-switch a:focus-visible { color: var(--color-ivory, #faf8f4); }
.site-header--dark .menu-toggle { background: var(--color-ivory, #faf8f4); color: var(--color-wine, #1f4a3a); }
.site-header--dark .menu-toggle:hover { background: #fff; }
.site-header--dark .menu-toggle:focus-visible { outline-color: var(--color-ivory, #faf8f4); }
@media (min-width: 1200px) {
  .site-header--dark .site-nav__link:hover { color: #fff; opacity: 0.8; }
  .site-header--dark .site-nav__link[aria-current="page"],
  .site-header--dark .site-nav__link[aria-current="true"] {
    color: var(--color-ivory, #faf8f4);
    opacity: 1;
    box-shadow: inset 0 -2px 0 var(--color-gold, #c9ad7f);
  }
  .site-header--dark .site-nav__link--cta { background: var(--color-ivory, #faf8f4); color: var(--color-wine, #1f4a3a); }
  .site-header--dark .site-nav__link--cta:hover { background: #fff; color: var(--color-wine, #1f4a3a); opacity: 1; }
  .site-header--dark .site-nav__link--cta[aria-current="page"],
  .site-header--dark .site-nav__link--cta[aria-current="true"] {
    background: transparent;
    color: var(--color-ivory, #faf8f4);
    box-shadow: inset 0 -2px 0 var(--color-gold, #c9ad7f);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--light { background: var(--color-ivory, #faf8f4); color: var(--color-wine, #1f4a3a); }
.btn--light:hover { background: #fff; color: var(--color-ink, #171a1f); }
.btn--outline-light { border-color: rgba(250, 248, 244, 0.5); color: var(--color-ivory, #faf8f4); }
.btn--outline-light:hover { border-color: var(--color-ivory, #faf8f4); background: rgba(250, 248, 244, 0.08); }
.btn--wine { background: var(--color-wine, #1f4a3a); color: var(--color-ivory, #faf8f4); }
.btn--wine:hover { background: var(--color-bar-green-dark, #173a2d); }
.btn--outline { border-color: rgba(23, 26, 31, 0.2); color: var(--color-ink, #171a1f); }
.btn--outline:hover { border-color: var(--color-ink, #171a1f); }

/* ---------- Home hero ---------- */
.hero {
  background: var(--color-wine, #1f4a3a);
  color: var(--color-ivory, #faf8f4);
  overflow: hidden;
}
.hero__inner {
  max-width: 72rem;
  margin-inline: auto;
  padding: 2.25rem 1.25rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.78);
}
.hero__name {
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.3rem, 9.5vw, 2.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.hero__meta {
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: rgba(250, 248, 244, 0.85);
}
.hero__actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}
.hero__actions .btn { min-height: 2.85rem; padding: 0.65rem 1.15rem; font-size: 0.9rem; }
.hero__portrait {
  margin: 0.9rem 0 0;
  width: min(72vw, 19rem);
  line-height: 0;
}
.hero__portrait picture { display: block; }
.hero__portrait img { display: block; background: transparent; }

@media (min-width: 640px) {
  .hero__portrait { width: 20rem; }
}

@media (min-width: 1024px) {
  .hero__inner {
    padding: 0 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: end;
    text-align: left;
    gap: 3rem;
  }
  .hero__text { align-self: center; padding: 4rem 0; }
  .hero__eyebrow { font-size: 0.8rem; }
  .hero__name { font-size: 4.5rem; line-height: 0.98; margin-top: 1rem; }
  .hero__name-line { display: block; }
  .hero__meta { font-size: 1.6rem; margin-top: 1rem; }
  .hero__actions { justify-content: flex-start; margin-top: 2.25rem; gap: 0.85rem; }
  .hero__actions .btn { min-height: 3.1rem; padding: 0.8rem 1.6rem; font-size: 0.95rem; }
  .hero__portrait { width: 100%; max-width: 26rem; justify-self: center; margin-top: 2.5rem; }
}

/* ---------- Home blocks ---------- */
.kicker {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted, #4e4a44);
  font-family: var(--font-sans, "Outfit", system-ui, sans-serif);
  font-weight: 400;
  line-height: 1.4;
}
.block-title {
  margin-top: 0.6rem;
  max-width: 40rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 6.5vw, 3rem);
  line-height: 1.05;
}
.block-title--green {
  margin-top: 0;
  max-width: none;
  color: var(--color-wine, #1f4a3a);
  font-size: clamp(2.25rem, 6vw, 3.25rem);
}
.page-title--green {
  color: var(--color-wine, #1f4a3a);
}
.home-lead { padding: 2.75rem 0 2.5rem; }
.home-lead__text { font-size: 1rem; line-height: 1.65; }
.home-lead__dl { margin-top: 2rem; }
.home-block { padding: 3rem 0; border-top: 1px solid var(--color-line, #ddd6cb); }
.home-block--ivory { background: var(--color-ivory, #faf8f4); }
.block-more { margin-top: 2.25rem; }
@media (min-width: 768px) {
  .home-lead { padding: 4.5rem 0 4rem; }
  .home-lead__text { font-size: 1.125rem; }
  .home-block { padding: 5rem 0; }
}

.practice-cards.practice-cards--compact { margin-top: 1.75rem; gap: 0.85rem 0.75rem; grid-template-columns: 1fr 1fr; }
.practice-cards--compact .practice-card { border-radius: 0.95rem; box-shadow: 0 5px 0 0 var(--card-accent); }
.practice-cards--compact .practice-card a { padding: 1.15rem 1rem 1.1rem; }
.practice-cards--compact .practice-card__title { font-size: 1.12rem; line-height: 1.2; hyphens: none; -webkit-hyphens: none; overflow-wrap: normal; }
@media (min-width: 768px) {
  .practice-cards.practice-cards--compact { gap: 1.1rem; }
  .practice-cards--compact .practice-card a { padding: 1.35rem 1.25rem 1.25rem; }
  .practice-cards--compact .practice-card__title { font-size: 1.35rem; }
}
@media (min-width: 1024px) {
  .practice-cards.practice-cards--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.team-teaser {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.team-teaser__item a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.team-teaser__photo {
  display: block;
  border-bottom: 1px solid var(--color-line, #ddd6cb);
  line-height: 0;
}
.team-teaser__photo picture,
.team-teaser__photo img {
  display: block;
  width: 100%;
  height: auto;
}
.team-teaser__name {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.1;
}
.team-teaser__role {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-wine, #1f4a3a);
}
.team-teaser__item a:hover .team-teaser__name { color: var(--color-wine, #1f4a3a); }
.team-teaser__item a:focus-visible {
  outline: 2px solid var(--color-wine, #1f4a3a);
  outline-offset: 4px;
}
@media (min-width: 768px) {
  .team-teaser { gap: 2.5rem; max-width: none; }
  .team-teaser__name { font-size: 1.9rem; }
  .team-teaser__role { font-size: 0.8rem; }
}

/* Desktop: two large portraits, each half of the content width; name + role underneath.
   Same clean look as before (no framed cards, no bio). Mobile unchanged. */
@media (min-width: 1024px) {
  .team-teaser {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    max-width: none;
  }
  .team-teaser__name { font-size: 2.15rem; }
  .team-teaser__role { font-size: 0.82rem; }
}

.home-contact { display: grid; gap: 1.5rem; }
.home-contact__name { margin-top: 0.75rem; font-size: 1.6rem; line-height: 1.15; }
.home-contact__action .btn { width: 100%; }
@media (min-width: 640px) {
  .home-contact__action .btn { width: auto; }
}
@media (min-width: 1024px) {
  .home-contact { grid-template-columns: 1fr auto; align-items: end; }
  .home-contact__name { font-size: 2rem; }
}

/* ---------- Subpages ---------- */
.page-intro {
  padding: 2.5rem 0 2.25rem;
  background: var(--color-paper, #f3efe7);
  border-bottom: 1px solid var(--color-line, #ddd6cb);
}
.page-title {
  margin-top: 0;
  max-width: 44rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1.04;
}
.kicker + .page-title { margin-top: 0.6rem; }
.page-lead { margin-top: 1.1rem; font-size: 1rem; line-height: 1.65; }
.page-body { padding: 2.5rem 0 3.5rem; }
.page-body--ivory { background: var(--color-ivory, #faf8f4); }
@media (min-width: 768px) {
  .page-intro { padding: 4.5rem 0 3.5rem; }
  .page-lead { font-size: 1.125rem; }
  .page-body { padding: 4rem 0 5.5rem; }
}

/* Compact the inherited one-page type scale on small screens */
.page h2.text-5xl { font-size: clamp(2rem, 7vw, 3rem); line-height: 1.05; }
.page h3.text-3xl { font-size: clamp(1.5rem, 5vw, 1.875rem); line-height: 1.15; }
.page .text-lg { font-size: 1rem; line-height: 1.65; }
@media (min-width: 768px) {
  .page .text-lg { font-size: 1.125rem; line-height: 1.6; }
}

/* Klienci / Clients: framed cards matching the Zakres practice cards (v7) */
.client-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}
.client-card {
  --card-accent: var(--color-wine, #1f4a3a);
  min-width: 0;
  background: #fff;
  border: 1px solid var(--color-line, #ddd6cb);
  border-radius: 1.15rem;
  box-shadow: 0 6px 0 0 var(--card-accent);
  padding: 1.6rem 1.4rem 1.45rem;
}
.client-card h3 {
  overflow-wrap: break-word;
  hyphens: none;
  -webkit-hyphens: none;
  color: var(--color-wine, #1f4a3a);
}
@media (min-width: 768px) {
  .client-cards { grid-template-columns: 1fr 1fr; gap: 1.5rem 1.25rem; }
  .client-card { padding: 2rem 1.9rem 1.85rem; }
}
.process > div { padding-top: 3rem; padding-bottom: 3.5rem; }
.process ul { margin-top: 2rem; }
@media (min-width: 768px) {
  .process > div { padding-top: 5rem; padding-bottom: 5.5rem; }
  .process ul { margin-top: 3rem; }
}

.practice-cards--index { margin-top: 0; }

/* Team page */
.person { padding: 2.5rem 0 3rem; border-top: 1px solid var(--color-line, #ddd6cb); scroll-margin-top: 8rem; }
.person:first-of-type { border-top: 0; }
/* Miłosz: warm paper band. Magdalena: a light green tint of the brand green — not white, still on-palette (t75u). */
.person--main { background: var(--color-paper, #f3efe7); }
.person--alt {
  background: var(--color-green-tint, #d2d8cf);
}
.person__grid { gap: 2rem; }
.person__name { margin-top: 0; }
.person__photo { margin: 0; width: 100%; max-width: 24rem; margin-inline: auto; }
@media (min-width: 768px) {
  .person { padding: 4.5rem 0 5rem; }
}
@media (min-width: 1024px) {
  .person__grid { gap: 4rem; }
  .person__photo { max-width: none; }
}

/* Portraits: full canvas cutout, original 2:3 crop, transparent background, no fade */
.portrait-stage { position: relative; min-width: 0; line-height: 0; }
.portrait-stage picture, .portrait-stage img { display: block; background: transparent; }
.portrait-stage { border-bottom: 1px solid var(--color-line, #ddd6cb); }

/* Contact page */
.contact-grid address .font-display { line-height: 1.15; }

/* Privacy page article keeps its own spacing, only the title scale is tamed */
.page--privacy h1.text-5xl { font-size: clamp(2.2rem, 7vw, 3rem); }

/* ---------- Framed practice cards ---------- */
.practice-cards {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .practice-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.practice-card {
  --card-accent: var(--color-wine, #1f4a3a);
  background: #fff;
  border: 1px solid var(--color-line, #ddd6cb);
  border-radius: 1.15rem;
  box-shadow: 0 6px 0 0 var(--card-accent);
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.practice-card a {
  display: block;
  padding: 1.35rem 1.3rem 1.25rem;
  color: inherit;
  text-decoration: none;
  min-height: 100%;
}

.practice-card__num {
  display: none;
}

.practice-card__title {
  display: block;
  font-family: var(--font-display, "Cormorant Garamond", "Times New Roman", serif);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-ink, #171a1f);
}

.practice-card:hover,
.practice-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 0 var(--card-accent), 0 14px 24px rgba(23, 26, 31, 0.06);
}

.practice-card a:focus-visible {
  outline: 2px solid var(--card-accent);
  outline-offset: 3px;
  border-radius: 0.7rem;
}

.practice-details {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  border: 0;
}

.practice-detail {
  --card-accent: var(--color-wine, #1f4a3a);
  background: #fff;
  border: 1px solid var(--color-line, #ddd6cb);
  border-radius: 1.15rem;
  box-shadow: 0 6px 0 0 var(--card-accent);
  padding: 1.6rem 1.4rem 1.45rem;
}

.practice-detail h3 {
  display: block;
}

.practice-detail ul li {
  border-color: var(--card-accent);
}

@media (prefers-reduced-motion: reduce) {
  .practice-card,
  .practice-card:hover,
  .practice-card:focus-within {
    transition: none;
    transform: none;
  }
}

/* ---------- Footer logos (v5) ---------- */
/* firm lockup (option D), separate from the Bar emblem column */
footer .footer-brand-logo { display: block; height: 56px; width: auto; max-width: 100%; }
/* official "Adwokatura Polska" seal, unaltered, official negative on the dark-green footer */
footer img[src="/bar/adwokatura.png"] { height: 150px; width: auto; max-width: 100%; }

/* ---------- Footer social links (v7) ---------- */
/* discreet monochrome icons in the firm column; the Bar seal column is not touched */
.footer-social { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.footer-social__link {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(250, 248, 244, 0.3);
  border-radius: 0.5rem;
  color: var(--color-ivory, #faf8f4);
  opacity: 0.85;
  transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.footer-social__icon { display: block; width: 18px; height: 18px; }
.footer-social__link:hover { opacity: 1; background: var(--color-wine, #1f4a3a); border-color: var(--color-wine, #1f4a3a); }
.footer-social__link:focus-visible { opacity: 1; outline: 2px solid var(--color-ivory, #faf8f4); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .footer-social__link { transition: none; } }

/* ==========================================================================
   v8 (12 Nov 2026): split home hero (copy | portrait + advocate ID card)
   and practice-area image cards ("Specjalizacje"). Same green/ivory system.
   ========================================================================== */
.hero--split .hero__inner {
  align-items: stretch;
  text-align: left;
  padding: 2.5rem 1.25rem 0;
}
.hero--split .hero__text { width: 100%; max-width: 36rem; }
.hero--split .hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
}
.hero--split .hero__eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: rgba(250, 248, 244, 0.55);
  flex-shrink: 0;
}
.hero__title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.05rem, 8.4vw, 2.6rem);
  line-height: 1.06;
  letter-spacing: -0.005em;
  color: var(--color-ivory, #faf8f4);
  text-wrap: balance;
}
.hero__lead {
  margin-top: 1.1rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(250, 248, 244, 0.86);
  max-width: 34rem;
}
.hero--split .hero__actions { justify-content: flex-start; margin-top: 1.6rem; }
.hero--split .hero__actions .btn { flex: 1 1 12rem; }

.hero__figure {
  position: relative;
  margin: 2.25rem auto 0;
  width: 100%;
  max-width: 22rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero--split .hero__portrait { margin: 0; width: min(78vw, 19rem); line-height: 0; }
.hero-id {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: -3.25rem;
  margin-bottom: 2rem;
  padding: 1.15rem 1.25rem 1.1rem;
  background: var(--color-ivory, #faf8f4);
  color: var(--color-ink, #171a1f);
  border-left: 4px solid var(--color-bar-green-soft, #3a6552);
  box-shadow: 0 18px 40px rgba(10, 25, 19, 0.28);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.hero-id__role {
  font-family: "Playfair Display SC", "Playfair Display", "Iowan Old Style", Palatino, serif;
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-wine, #1f4a3a);
}
.hero-id__name {
  font-family: "Playfair Display", "Iowan Old Style", Palatino, serif;
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--color-ink, #171a1f);
}
.hero-id__bar {
  font-family: "Playfair Display SC", "Playfair Display", "Iowan Old Style", Palatino, serif;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.45;
  color: var(--color-muted, #4e4a44);
}
.hero-id__no {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--color-line, #ddd6cb);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.15rem 0.75rem;
}
.hero-id__no-label { font-family: "Playfair Display SC", "Playfair Display", serif; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-muted, #4e4a44); }
.hero-id__no-value { font-family: "Playfair Display", "Iowan Old Style", Palatino, serif; font-size: 1.02rem; font-weight: 600; letter-spacing: 0.06em; color: var(--color-ink, #171a1f); white-space: nowrap; }

@media (min-width: 640px) {
  .hero--split .hero__inner { padding-top: 3.5rem; }
  .hero--split .hero__actions .btn { flex: 0 0 auto; }
  .hero__lead { font-size: 1.08rem; }
}

@media (min-width: 1024px) {
  .hero--split .hero__inner {
    padding: 0 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: end;
    gap: 4rem;
  }
  .hero--split .hero__text { align-self: center; padding: 4.5rem 0; max-width: 38rem; }
  .hero--split .hero__eyebrow { font-size: 0.78rem; }
  .hero__title { font-size: 3.45rem; line-height: 1.04; margin-top: 1.4rem; }
  .hero__lead { font-size: 1.12rem; margin-top: 1.5rem; }
  .hero--split .hero__actions { margin-top: 2.25rem; gap: 0.85rem; }
  .hero__figure { margin: 2.5rem 0 0; max-width: none; align-items: flex-end; }
  .hero--split .hero__portrait { width: 100%; max-width: 25rem; margin-right: 1rem; }
  .hero-id {
    position: absolute;
    left: -1.5rem;
    bottom: 3rem;
    width: 17.5rem;
    margin: 0;
  }
}
@media (min-width: 1280px) {
  .hero__title { font-size: 3.75rem; }
  .hero-id { left: -3rem; }
}

/* Practice-area image cards */
.area-cards {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.area-cards--index { margin-top: 0; }
.area-card {
  --card-accent: var(--color-wine, #1f4a3a);
  min-width: 0;
  background: #fff;
  border: 1px solid var(--color-line, #ddd6cb);
  border-radius: 1.15rem;
  box-shadow: 0 6px 0 0 var(--card-accent);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.area-card a {
  display: grid;
  grid-template-columns: 7.25rem minmax(0, 1fr);
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.area-card__media { position: relative; display: block; line-height: 0; background: var(--color-paper, #f3efe7); overflow: hidden; }
.area-card__media picture, .area-card__media img { display: block; width: 100%; height: 100%; }
.area-card__media img { object-fit: cover; transition: transform 0.6s ease; }
.area-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 74, 58, 0) 55%, rgba(31, 74, 58, 0.22) 100%);
}
.area-card__body { display: flex; flex-direction: column; gap: 0.4rem; padding: 0.95rem 1rem 1rem; min-width: 0; }
.area-card__title {
  font-family: var(--font-display, "Cormorant Garamond", serif);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.15;
  color: var(--color-ink, #171a1f);
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
}
.area-card__tags { font-size: 0.82rem; line-height: 1.45; color: var(--color-muted, #4e4a44); }
.area-card__dot { color: var(--color-wine, #1f4a3a); }
.area-card__more {
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-wine, #1f4a3a);
}
.area-card:hover, .area-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 0 var(--card-accent), 0 16px 28px rgba(23, 26, 31, 0.08);
}
.area-card:hover .area-card__media img { transform: scale(1.04); }
.area-card a:focus-visible { outline: 2px solid var(--card-accent); outline-offset: -4px; border-radius: 1rem; }

@media (min-width: 640px) {
  .area-cards { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .area-card a { display: flex; flex-direction: column; }
  .area-card__media { aspect-ratio: 4 / 3; }
  .area-card__body { flex: 1 1 auto; padding: 1.15rem 1.2rem 1.25rem; }
  .area-card__title { font-size: 1.45rem; }
}
@media (min-width: 1024px) {
  .area-cards--home, .area-cards--index { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 1.25rem; }
  .area-card__media { aspect-ratio: 5 / 4; }
}
@media (prefers-reduced-motion: reduce) {
  .area-card, .area-card:hover, .area-card:focus-within { transition: none; transform: none; }
  .area-card__media img, .area-card:hover .area-card__media img { transition: none; transform: none; }
}

/* ==========================================================================
   v9 (12 Nov 2026, owner feedback): full-name header lockup incl. "Warszawa";
   hero ID card moved fully BELOW the portrait (no overlap on any breakpoint).
   ========================================================================== */
.brand picture { display: block; line-height: 0; }
/* < 640px: 3-line stacked lockup (397 x 100) */
.brand .brand-logo { height: 46px; width: auto; max-width: none; }
@media (max-width: 359px) { .brand .brand-logo { height: 40px; } }
/* >= 640px: 2-line lockup (615 x 100) */
@media (min-width: 640px) { .brand .brand-logo { height: 46px; } }
@media (min-width: 1400px) { .brand .brand-logo { height: 50px; } }
footer .footer-brand-logo { height: 52px; }

/* hero: no eyebrow; H1 is the largest text */
.hero--split .hero__title { margin-top: 0; }
/* ID card: static block under the photo, aligned to the photo column */
.hero__figure { flex-direction: column; align-items: center; }
.hero--split .hero__portrait { border-bottom: 1px solid rgba(250, 248, 244, 0.28); }
.hero-id {
  position: static;
  width: 100%;
  max-width: 22rem;
  margin: 1.25rem 0 2.25rem;
  left: auto;
  bottom: auto;
}
.hero-id__no-value { font-size: 1.05rem; }
@media (min-width: 1024px) {
  .hero--split .hero__inner { align-items: center; }
  .hero--split .hero__text { padding: 3.5rem 0; }
  .hero__figure { margin: 2.75rem 0 0; align-items: center; justify-self: center; width: 21rem; max-width: 100%; }
  .hero--split .hero__portrait { width: 100%; max-width: 21rem; margin-right: 0; }
  .hero-id {
    position: static;
    width: 100%;
    max-width: 21rem;
    margin: 1.25rem 0 3rem;
  }
}
@media (min-width: 1280px) {
  .hero-id { left: auto; }
}

/* ==========================================================================
   v10 (12 Nov 2026, owner feedback t58u): compact unified hero.
   Larger portrait close to the text; slim ivory/gold caption flush under the
   photo (no white card, no shadow, never over the photo); lead justified.
   ========================================================================== */
.hero__lead { text-align: justify; text-align-last: left; hyphens: none; -webkit-hyphens: none; }
.hero--split .hero__title { text-align: left; }

.hero--split .hero__portrait { border-bottom: 0; }
.hero-id {
  position: static;
  width: 100%;
  max-width: none;
  margin: 0 0 2rem;
  padding: 0.85rem 0 0;
  background: transparent;
  color: var(--color-ivory, #faf8f4);
  border: 0;
  border-top: 1px solid var(--color-gold, #c9ad7f);
  box-shadow: none;
  gap: 0.15rem;
  left: auto;
  bottom: auto;
}
.hero-id__role { color: #d8c29b; font-size: 0.72rem; letter-spacing: 0.22em; }
.hero-id__name { color: var(--color-ivory, #faf8f4); font-size: 1.6rem; line-height: 1.1; }
.hero-id__bar { color: rgba(250, 248, 244, 0.88); font-size: 0.92rem; }
.hero-id__no {
  margin-top: 0.45rem;
  padding-top: 0;
  border-top: 0;
  align-items: baseline;
}
.hero-id__no-label { color: rgba(250, 248, 244, 0.8); font-size: 0.7rem; letter-spacing: 0.08em; }
.hero-id__no-value { color: #fffdf8; font-size: 1.05rem; font-weight: 500; letter-spacing: 0.05em; }

/* mobile / tablet: text, then photo, then caption (photo and caption share one width) */
.hero__figure { margin: 1.75rem auto 0; width: min(86vw, 22rem); max-width: none; align-items: stretch; }
.hero--split .hero__portrait { width: 100%; max-width: none; margin: 0; }

@media (min-width: 640px) {
  .hero__figure { width: 23rem; }
}

@media (min-width: 1024px) {
  .hero--split .hero__inner {
    max-width: 68rem;
    padding: 2.25rem 2rem 0;
    grid-template-columns: minmax(0, 1fr) 26rem;
    column-gap: 3.5rem;
    align-items: stretch;
  }
  /* text block sits in the same band as the photo: top of H1 near top of the portrait,
     buttons towards the lower part of the photo */
  .hero--split .hero__text {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 0 9rem;
    max-width: none;
  }
  .hero__title { font-size: 4rem; line-height: 1.03; }
  .hero__lead { margin-top: 1.5rem; font-size: 1.2rem; max-width: 30rem; }
  .hero--split .hero__actions { margin-top: 2.25rem; }
  .hero__figure { margin: 0; width: 26rem; justify-self: end; }
  .hero-id { margin: 0 0 2rem; }
}
@media (min-width: 1280px) {
  .hero__title { font-size: 4.4rem; }
}
/* v10 refinements: explicit gold hairline; two-column from 768px; text top aligned with the head */
.hero-id { border-top-color: #c9ad7f; }
@media (min-width: 768px) {
  .hero--split .hero__inner {
    display: grid;
    max-width: 68rem;
    padding: 2rem 2rem 0;
    grid-template-columns: minmax(0, 1fr) 19rem;
    column-gap: 2.5rem;
    align-items: stretch;
    text-align: left;
  }
  .hero--split .hero__text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 3.25rem 0 2rem;
    max-width: none;
  }
  .hero__title { font-size: 2.9rem; }
  .hero__figure { margin: 0; width: 19rem; justify-self: end; }
  .hero-id { margin: 0 0 1.75rem; }
}
@media (min-width: 1024px) {
  .hero--split .hero__inner { grid-template-columns: minmax(0, 1fr) 26rem; column-gap: 3.5rem; padding-top: 2.25rem; }
  .hero--split .hero__text { padding: 4.75rem 0 2rem; justify-content: flex-start; }
  .hero__title { font-size: 4rem; }
  .hero--split .hero__actions { margin-top: 2.5rem; }
  .hero__figure { width: 26rem; }
  .hero-id { margin: 0 0 2rem; }
}
@media (min-width: 1280px) {
  .hero__title { font-size: 4.4rem; }
}
/* v10: "Kancelaria Adwokacka" as a display sub-line; buttons sit at the lower part of the photo */
.hero__lead {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.25;
  color: rgba(250, 248, 244, 0.9);
  margin-top: 0.85rem;
}
@media (min-width: 768px) {
  .hero--split .hero__text { padding-bottom: 10.25rem; }
  .hero--split .hero__actions { margin-top: auto; padding-top: 2rem; }
  .hero__lead { font-size: 1.6rem; margin-top: 1rem; }
}
@media (min-width: 1024px) {
  .hero--split .hero__text { padding-bottom: 10.5rem; }
  .hero__lead { font-size: 2rem; margin-top: 1.1rem; max-width: none; }
}

/* v11 (owner t59u): full lead paragraph restored; body text, justified, ivory on green */
.hero__lead {
  font-family: var(--font-sans, "Outfit", system-ui, sans-serif);
  font-style: normal;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(250, 248, 244, 0.9);
  text-align: justify;
  text-align-last: left;
  hyphens: none;
  -webkit-hyphens: none;
  margin-top: 1.1rem;
  max-width: 34rem;
}
@media (min-width: 768px) {
  .hero__lead { font-size: 1.05rem; margin-top: 1.25rem; }
  .hero--split .hero__actions { margin-top: auto; padding-top: 2rem; }
}
@media (min-width: 1024px) {
  .hero__lead { font-size: 1.15rem; line-height: 1.7; margin-top: 1.6rem; max-width: 32rem; }
}
/* v11: buttons follow the paragraph directly (no auto push), so EN (3-line H1) has no gap above them */
@media (min-width: 768px) {
  .hero--split .hero__actions { margin-top: 2rem; padding-top: 0; }
}
@media (min-width: 1024px) {
  .hero--split .hero__actions { margin-top: 2.5rem; }
}

/* v12 (owner t60u): no hyphenation in the lead; desktop H1 lines 1-3 justified, last line natural */
.hero__lead { hyphens: none; -webkit-hyphens: none; overflow-wrap: normal; word-break: normal; }
@media (min-width: 768px) {
  .hero__title--lines { text-wrap: wrap; }
  .hero__tblock { display: grid; width: max-content; max-width: 100%; }
  .hero__tl { display: block; white-space: nowrap; }
  .hero__tl--words { display: flex; justify-content: space-between; }
  .hero__tl--word { letter-spacing: var(--ls, 0); margin-right: calc(-1 * var(--ls, 0)); }
  .hero__tlast { display: block; white-space: nowrap; }
}
@media (min-width: 768px) and (max-width: 1023px) { .hero__lead { font-size: 1rem; } }

/* ==========================================================================
   v16 (12 Nov 2026, owner t66u): mobile hero only (max-width 767px).
   Hide the lead, put the portrait directly under the H1, buttons below the
   photo/caption so the face is visible on the first screen. Desktop (>=768px)
   is unchanged.
   ========================================================================== */
@media (max-width: 767px) {
  .hero--split .hero__inner {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.25rem 0;
  }
  .hero--split .hero__text { display: contents; }
  .hero--split .hero__lead { display: none; }
  .hero--split .hero__title { order: 1; margin-top: 0; }
  .hero--split .hero__figure {
    order: 2;
    margin: 0.95rem 0 0;
    width: 100%;
  }
  .hero--split .hero__portrait { width: 100%; }
  .hero-id { margin: 0; padding: 0.6rem 0 0; gap: 0.1rem; }
  .hero-id__no { margin-top: 0.3rem; }
  .hero--split .hero__actions {
    order: 3;
    width: 100%;
    margin: 1.25rem 0 2rem;
  }
  .hero--split .hero__actions .btn {
    flex: 1 1 auto;
    width: 100%;
  }
}

/* ---------- v10: O kancelarii (livelier, light process cards) + team bios ---------- */
.page-intro--office .page-title--green::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 2px;
  margin-top: 1.2rem;
  background: var(--color-gold, #c9ad7f);
}
.client-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.client-card__icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.9rem;
  color: var(--color-wine, #1f4a3a);
  background: rgba(31, 74, 58, 0.08);
  border-radius: 999px;
  flex-shrink: 0;
}
.client-card__icon svg { display: block; }
.client-card p,
.client-card .legal,
.process-card__text,
.person__bio p {
  hyphens: none;
  -webkit-hyphens: none;
  text-align: justify;
  text-align-last: left;
}

.process--light {
  background: var(--color-green-tint, #d2d8cf);
  color: var(--color-ink, #171a1f);
  border-top: 1px solid var(--color-line, #ddd6cb);
}
.process--light > .wrap {
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}
.process--light .block-title--green { margin-bottom: 0; }
.process-cards {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}
.process-card {
  --card-accent: var(--color-wine, #1f4a3a);
  position: relative;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--color-line, #ddd6cb);
  border-radius: 1.15rem;
  box-shadow: 0 6px 0 0 var(--card-accent);
  padding: 1.6rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.process-card__icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  color: var(--color-wine, #1f4a3a);
  background: rgba(31, 74, 58, 0.08);
  border-radius: 999px;
}
.process-card__icon svg { display: block; }
.process-card__num {
  position: absolute;
  top: 1.55rem;
  right: 1.3rem;
  font-family: var(--font-display, "Cormorant Garamond", serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-gold, #c9ad7f);
  line-height: 1;
}
.process-card__title {
  margin: 1rem 0 0;
  font-family: var(--font-display, "Cormorant Garamond", serif);
  font-weight: 500;
  font-size: clamp(1.45rem, 3vw, 1.75rem);
  line-height: 1.15;
  color: var(--color-wine, #1f4a3a);
  hyphens: none;
  -webkit-hyphens: none;
}
.process-card__text {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-muted, #4e4a44);
}
@media (min-width: 768px) {
  .process--light > .wrap { padding-top: 4.5rem; padding-bottom: 5rem; }
  .process-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 1.25rem; }
  .process-card { padding: 2rem 1.7rem 1.85rem; }
  .process-card__text { font-size: 1.05rem; }
}

/* Team profile: narrative + fact sections (education, languages, practice areas) */
.person__body { min-width: 0; }
.person__role { margin-top: 0.75rem; }
.person__bio { margin-top: 1.5rem; }
.person__bio p {
  margin: 0.9rem 0 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-ink, #171a1f);
}
.person__bio p:first-child { margin-top: 0; }
.person__lead {
  font-size: 1.05rem !important;
  line-height: 1.7;
}
.person-facts {
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}
.person-facts > div { min-width: 0; }
.person-facts dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-wine, #1f4a3a);
  font-family: var(--font-sans, "Outfit", system-ui, sans-serif);
}
.person-facts dd {
  margin: 0.4rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-ink, #171a1f);
}
.person-facts__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.person-facts__list li {
  position: relative;
  padding-left: 1rem;
  margin: 0.25rem 0 0;
}
.person-facts__list li:first-child { margin-top: 0; }
.person-facts__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 1px;
  background: var(--color-gold, #c9ad7f);
  transform: rotate(45deg);
}
.person-facts__line { display: block; }
.person-facts__line + .person-facts__line { margin-top: 0.2rem; }
.person-facts dd a { color: inherit; }
@media (min-width: 768px) {
  .person__bio p { font-size: 1.05rem; }
  .person__lead { font-size: 1.125rem !important; }
  .person-facts { margin-top: 2rem; gap: 1.35rem; }
}
@media (min-width: 1024px) {
  .person__body { padding-top: 0.25rem; }
}

/* v11 (t73u): no hyphenation anywhere; keep justify with a natural last line. */
html, body {
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
}
body, body p, body li, body h1, body h2, body h3, body h4, body dd, body dt,
.legal, .hero__lead, .practice-detail p, .practice-detail li,
.page--privacy, .page--privacy p, .page--privacy li, .page--privacy .legal {
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}
.legal,
.practice-detail p,
.practice-detail li,
.page--privacy p,
.page--privacy li,
.page--privacy .legal {
  text-align: justify;
  text-align-last: left;
}
/* Do not justify short UI chrome */
.site-nav, .lang-switch, .kicker, .btn, .hero-id, footer .uppercase {
  hyphens: none;
  -webkit-hyphens: none;
}


/* ==========================================================================
   v13 (13 Nov 2026): colour harmony + subpage consistency with the homepage.
   One palette derived from the hero green. Subpages use the same dark-green
   header, a compact green title band (ivory Cormorant + gold rule), the same
   band rhythm, cards, labels, buttons and accents. Official Bar emblems are
   not altered.
   ========================================================================== */

/* Footer: dark green instead of near-black; emblem images unchanged */
footer.bg-ink {
  background-color: var(--color-footer);
  color: var(--color-ivory);
}
footer .bg-ivory {
  background-color: var(--color-ivory);
  color: var(--color-ink);
}
/* Transparent official negative sits on the footer green — no dark square box. */
footer a.bg-ink,
footer a.inline-block.bg-ink {
  background-color: transparent;
}
.footer-social__link:hover,
.footer-social__link:focus-visible {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-footer);
  opacity: 1;
}

/* Dark header: same green as the hero, no black hairline under the bar */
.site-header--dark {
  background: var(--color-green);
  color: var(--color-ivory);
  border-bottom-color: transparent;
}
.site-header--dark::before {
  background: var(--color-green-dark);
}
header.site-header.site-header--dark {
  background: var(--color-green);
  color: var(--color-ivory);
  border-bottom-color: transparent;
}
header.site-header.site-header--dark::before {
  background: var(--color-green-dark);
}

/* Subpage intro = compact homepage-style green hero band */
.page-intro,
.page-intro--office {
  background: var(--color-green);
  color: var(--color-ivory);
  border-bottom: 0;
  padding: 2rem 0 2.15rem;
}
@media (min-width: 768px) {
  .page-intro,
  .page-intro--office {
    padding: 2.75rem 0 2.85rem;
  }
}
.page-intro .kicker,
.page-intro .text-xs {
  color: var(--color-gold);
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 500;
}
.page-intro .page-title,
.page-intro .page-title--green,
.page-intro h1,
.page--privacy .page-intro h1 {
  color: var(--color-ivory);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 6.4vw, 3.05rem);
  line-height: 1.06;
  letter-spacing: -0.005em;
  max-width: 44rem;
}
.page-intro .page-title::after,
.page-intro .page-title--green::after,
.page-intro--office .page-title--green::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 2px;
  margin-top: 1.15rem;
  background: var(--color-gold);
}

/* Band rhythm (homepage + subpages) */
body,
.page {
  background: var(--color-paper);
  color: var(--color-ink);
}
.home-block--ivory,
.page-body,
.page-body--ivory,
.person--main {
  background: var(--color-ivory);
}
.home-block {
  background: var(--color-paper);
  border-top-color: var(--color-line);
}
.home-block--ivory { background: var(--color-ivory); }
.home-block--contact {
  background: var(--color-green-tint);
  border-top-color: var(--color-line);
}
.person--alt {
  background: var(--color-green-tint);
}
.process--light {
  background: var(--color-green-tint);
  color: var(--color-ink);
  border-top-color: var(--color-line);
}

/* Privacy body sits on ivory, like other first content bands */
.page--privacy { background: var(--color-ivory); }
.page--privacy article { background: transparent; }
.page--privacy .page-body,
.privacy-body { background: var(--color-ivory); }
.page--privacy .privacy-body {
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
  max-width: 48rem;
}
@media (min-width: 768px) {
  .page--privacy .privacy-body {
    padding-top: 3.5rem;
    padding-bottom: 5rem;
  }
}
.page--privacy .privacy-body > .mt-8 { margin-top: 0; }
.page--privacy .privacy-body h2 { color: var(--color-green); }

/* Cards: cream, not cold white; same green accent */
.client-card,
.practice-card,
.practice-detail,
.area-card,
.process-card {
  background: var(--color-card);
  border-color: var(--color-line);
  --card-accent: var(--color-green);
}
.site-nav.is-open {
  background: var(--color-ivory);
  border-top-color: var(--color-line);
  color: var(--color-ink);
  box-shadow: 0 18px 30px rgba(20, 36, 30, 0.12);
}
.btn--light:hover,
.site-header--dark .menu-toggle:hover,
.site-header--dark .site-nav__link--cta:hover {
  background: #fffdf8;
}

/* One gold, everywhere */
.hero-id__role { color: var(--color-gold) !important; }
.hero--split .hero-id,
.hero-id { border-color: var(--color-gold); border-top-color: var(--color-gold); }

/* Headings and labels stay in the leading green */
.block-title--green,
.page-title--green,
.team-teaser__role,
.person__role,
.person-facts dt {
  color: var(--color-green);
}

/* Shadows: green-black, not cold black */
.hero-id { box-shadow: 0 18px 40px rgba(19, 48, 37, 0.28); }
.practice-card:hover,
.practice-card:focus-within,
.area-card:hover,
.area-card:focus-within {
  box-shadow: 0 8px 0 0 var(--card-accent, var(--color-green)), 0 16px 28px rgba(20, 36, 30, 0.08);
}

/* Contact inputs stay in the palette */
.page input,
.page textarea,
.page select {
  border-color: var(--color-line);
  color: var(--color-ink);
  background: var(--color-ivory);
}

/* ==========================================================================
   v14 (13 Nov 2026): full-body cutouts on the Team page only; homepage
   portraits unchanged. Photo height follows the bio column on desktop.
   Magdalena, the homepage contact band and “Sposób prowadzenia sprawy”
   share --color-green-tint.
   ========================================================================== */
.portrait-stage--full {
  border-bottom: 0;
  max-width: 22rem;
  margin-inline: auto;
  line-height: 0;
}
.portrait-stage--full picture,
.portrait-stage--full img {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
}
@media (min-width: 1024px) {
  .person__grid.grid { align-items: stretch; }
  .portrait-stage--full {
    max-width: none;
    margin-inline: 0;
    /* Do not let the image's intrinsic height size the row; the bio does.
       The figure then stretches to that height so the full-body portrait
       matches the text column. */
    height: 0;
    min-height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }
  .portrait-stage--full picture {
    height: 100%;
    width: auto;
    max-width: 100%;
  }
  .portrait-stage--full img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: top center;
  }
}

/* ==========================================================================
   v16 (14 Nov 2026, t82u): no horizontal overflow on phones.
   Real causes fixed below (header row too wide on narrow / zoomed phones,
   contact grid stretched by long <select> options, long e-mail links),
   full-body portraits capped on mobile. Desktop (>= 1024px) unchanged.
   ========================================================================== */
/* Header: let the logo shrink instead of pushing the row past the screen */
.site-header__bar { min-width: 0; }
.site-header__bar > .brand { flex: 0 1 auto; }
@media (max-width: 379px) {
  .site-header__bar { padding-inline: 1rem; gap: 0.5rem; }
  .brand .brand-logo { height: clamp(30px, 10.6vw, 40px); }
  .header-tools { gap: 0.55rem; }
  .lang-switch { margin-left: 0; gap: 0.3rem; }
  .menu-toggle { width: 2.75rem; height: 2.75rem; }
}

/* Grid children may not grow past the column (contact form, team, office) */
.contact-grid > *,
.person__grid > *,
.client-cards > *,
.process-cards > * { min-width: 0; }
.contact-grid input:not([type="checkbox"]):not([type="radio"]),
.contact-grid select,
.contact-grid textarea { max-width: 100%; min-width: 0; }

/* Long e-mail addresses wrap only when they would not fit (no hyphens added) */
.person-facts a[href^="mailto:"],
.contact-grid a[href^="mailto:"],
footer a[href^="mailto:"] { overflow-wrap: anywhere; }

/* Full-body portraits on phones/tablets: centred, at most ~70% of the screen height */
@media (max-width: 1023px) {
  .portrait-stage--full { max-width: 100%; }
  .portrait-stage--full picture { display: flex; justify-content: center; }
  .portrait-stage--full img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 70vh;
    max-height: 70svh;
    margin-inline: auto;
  }
}

/* ==========================================================================
   v18 (14 Nov 2026, t85u): phones must not be able to pinch-zoom out.
   Chrome on Android sets the minimum zoom from the width of the page's
   content; clipping on <html> only hides the scrollbar (the clip is moved
   to the viewport, which Chrome ignores when it works out how far the page
   may be zoomed out). The clip therefore sits on <body> itself: <html>
   keeps a non-visible overflow-x so that body's value is NOT moved to the
   viewport, and body is the containing block for absolutely positioned
   elements so they are clipped too. "clip" (not "hidden") keeps body from
   becoming a scroll container, so the sticky header still works.
   ========================================================================== */
html { overflow-x: hidden; }
@supports (overflow-x: clip) {
  html { overflow-x: clip; }
  body { overflow-x: clip; position: relative; }
}

/* ==========================================================================
   v19 (14 Nov 2026, t86u): only Zespół and O kancelarii could be zoomed out
   on the owner's Android phone. They are the only phone-visible pages built
   from long justified paragraphs (bios, client cards, process cards). Chrome
   on Android enlarges text in long paragraphs ("font boosting" / text
   scaling) - desktop Chrome and emulators cannot do this - and enlarged text
   that cannot wrap (a word chain glued with non-breaking spaces, a long word
   in a shrink-to-fit card) pushes past the screen edge.
   Phones/tablets only (< 1024px) except the text-size-adjust prefix;
   desktop rendering is unchanged.
   ========================================================================== */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (max-width: 1023px) {
  /* A word that is longer than the whole line wraps (no hyphen is added)
     instead of widening the page. Lines that fit are not affected. */
  main, footer { overflow-wrap: break-word; }
  main p, main li, main dd, main dt, main h1, main h2, main h3, main .legal,
  footer p,
  .legal, .hero__lead, .practice-detail p, .practice-detail li,
  .page--privacy p, .page--privacy li, .page--privacy .legal { overflow-wrap: break-word; }
  main a[href^="mailto:"] { overflow-wrap: anywhere; }
  .practice-cards--compact .practice-card__title,
  .area-card__title { overflow-wrap: break-word; }
  footer .flex-col > p { align-self: stretch; overflow-wrap: break-word; }
  /* Cards were shrink-to-fit (align-items: flex-start), so one long word could
     make the whole card wider than the screen. Text now takes the card width. */
  .client-card > :not(.client-card__icon),
  .process-card > :not(.process-card__icon):not(.process-card__num) {
    align-self: stretch;
    max-width: 100%;
    min-width: 0;
  }
  .person__body, .person__bio, .person-facts, .person-facts dd,
  .client-cards, .process-cards, main .wrap { min-width: 0; max-width: 100%; }
  /* Grid columns are sized by their longest word; with enlarged text that
     word could stretch a column (privacy page, practice cards, team teaser)
     past the screen. Columns now keep the screen width and the word wraps. */
  main .grid > *, .practice-cards > *, .team-teaser > *, .area-cards > *,
  footer .grid > * { min-width: 0; }
  main .flex-wrap > * { min-width: 0; max-width: 100%; }
}

/* ==========================================================================
   v20 (14 Nov 2026, t87u): typography of the homepage photo caption.
   The lines under “Miłosz Siemaszko / adwokat” used Playfair Display /
   Playfair Display SC (set earlier to match the logo) and did not sit
   with the rest of the site. Variant A (recommended) uses the site's
   type system: name in the heading serif (Cormorant Garamond), role in
   the small-caps letterspaced Outfit label style used on Zespół
   (“ADWOKAT”, “SAMORZĄD ZAWODOWY”), ORA + entry number in body Outfit,
   muted ivory on the green hero. Gold role and ivory name colours are
   unchanged. No hyphenation. Layout is unchanged; the entry number
   stays nowrap so “WAW/ADW/12860” is not split.
   ========================================================================== */
/* === v20-VARIANT-A === */
.hero-id__role {
  font-family: var(--font-sans, "Outfit", system-ui, sans-serif);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-id__name {
  font-family: var(--font-display, "Cormorant Garamond", "Iowan Old Style", Palatino, serif);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.hero-id__bar {
  font-family: var(--font-sans, "Outfit", system-ui, sans-serif);
  font-weight: 400;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.45;
  color: rgba(250, 248, 244, 0.78);
}
.hero-id__no-label {
  font-family: var(--font-sans, "Outfit", system-ui, sans-serif);
  font-weight: 400;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(250, 248, 244, 0.72);
}
.hero-id__no-value {
  font-family: var(--font-sans, "Outfit", system-ui, sans-serif);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: rgba(250, 248, 244, 0.84);
}
/* === v20-VARIANT-END === */

/* ==========================================================================
   v22 (21 Nov 2026, t98u)
   ========================================================================== */
/* Header + footer lockup: 2 lines, no "Warszawa", text centred on the MS monogram
   (/logo/lockup-name-*.svg). Slightly larger than the old stacked phone lockup. */
/* 22 Nov: larger mark + text, taller header bar; nav stays centred vertically (flex) */
.site-header__bar { min-height: 5.25rem; }
.brand .brand-logo { height: 54px; width: auto; max-width: none; }
@media (min-width: 768px) { .site-header__bar { min-height: 6rem; } .brand .brand-logo { height: 60px; } }
@media (min-width: 1400px) { .brand .brand-logo { height: 64px; } }
@media (max-width: 639px) {
  .brand { min-width: 0; flex: 0 1 auto; }
  .brand .brand-logo { height: auto; width: min(222px, calc(100vw - 172px)); max-width: 100%; }
}
footer .footer-brand-logo { height: 60px; width: auto; max-width: 100%; }

/* Homepage headline on phones: justified, last line natural, no balancing */
@media (max-width: 767px) {
  .hero__title, .hero__title--lines, .hero--split .hero__title, .page-intro--office .page-title {
    text-align: justify;
    text-align-last: left;
    text-wrap: wrap;
    hyphens: none;
    -webkit-hyphens: none;
  }
}

/* O kancelarii / Zespół on phones: a little more line length inside the cards,
   and the optimal-fit justification (see MENU_JS, .kp) */
@media (max-width: 639px) {
  .client-card { padding: 1.45rem 1.1rem 1.35rem; }
  .process-card { padding: 1.45rem 1.1rem 1.4rem; }
  .process-card__num { right: 1.05rem; }
  .client-card p, .client-card .legal, .process-card__text { font-size: 0.9375rem; line-height: 1.62; }
  .person__bio p, .person__bio .person__lead { font-size: 1rem !important; }
}
.kp-measure { text-align: left !important; text-align-last: left !important; }
.kp-measure .kp-w { white-space: nowrap; }
.kp .kp-l { display: block; text-align: justify; text-align-last: justify; }
.kp .kp-l--last { text-align: left; text-align-last: left; }
/* very narrow phones (≤ 379px): a few more characters per line in the cards */
@media (max-width: 379px) {
  .client-card, .process-card { padding-left: 0.9rem; padding-right: 0.9rem; }
  .client-card p, .client-card .legal, .process-card__text { font-size: 0.9rem; }
}

/* 22 Nov (owner): desktop headline with normal word spacing - lines keep their breaks
   (Profesjonalne / wsparcie dla / wymagających / klientów) but are no longer stretched */
@media (min-width: 768px) {
  .hero__tl--words { display: block; }
  .hero__tl--word { letter-spacing: normal; margin-right: 0; }
}
/* 22 Nov (owner, round 3): headline justified on every width, last line left. The script
   (MENU_JS, fill mode) sets two balanced lines and the font size so word gaps stay normal. */
.hero--split .hero__title, .hero__title--lines { text-align: justify; text-align-last: left; text-wrap: wrap; }
/* Pre-script size close to the fitted one (two lines as wide as the lead), so the headline
   does not jump when the script runs; the script then fits it exactly. */
@media (min-width: 768px) { .hero--split .hero__title { font-size: 2.15rem; } }
@media (min-width: 1024px) { .hero--split .hero__title { font-size: 2.9rem; } }
@media (min-width: 1280px) { .hero--split .hero__title { font-size: 3.05rem; } }
.kp .kp-l--flush { display: block; text-align: justify; text-align-last: justify; }


/* ==========================================================================
   v33 (22 Nov 2026, t104u): O kancelarii heading on phones.
   The H1 ("Podmioty, którym kancelaria udziela pomocy prawnej" /
   "Persons and entities…") is justified to the full wrap width, last line
   included. MENU_JS (titleFill) picks 2–4 flush lines and fills them with
   letter-spacing of at most 0.06em, so word gaps stay normal. Desktop
   (>= 768px) is unchanged.
   ========================================================================== */
@media (max-width: 767px) {
  .page-intro--office .page-title {
    width: 100%;
    max-width: 100%;
    text-align: justify;
    text-align-last: left;
    text-wrap: wrap;
    hyphens: none;
    -webkit-hyphens: none;
  }
}


/* ==========================================================================
   v35 (22 Nov 2026, t104u): body text of O kancelarii cards on phones.
   MENU_JS (tight, Knuth–Plass) makes every line except the last flush
   left and right, with word-spacing of 0.8×–1.4× a normal space and
   letter-spacing of −0.02em to +0.03em. Desktop (≥ 768px) is unchanged.
   ========================================================================== */
.kp-tight .kp-l,
.kp-tight .kp-l--flush {
  display: block;
  white-space: nowrap;
  text-align: justify;
  text-align-last: justify;
}
.kp-tight .kp-l--last {
  display: block;
  white-space: nowrap;
  text-align: left;
  text-align-last: left;
}

/* ==========================================================================
   v36 (22 Nov 2026, t104u): multi-line card titles on phones (O kancelarii /
   About). MENU_JS (titleFill, cardTitle) justifies every line flush left
   and right like the page H1: the longer line fills the width through the
   font size, the shorter one through letter-spacing of at most 0.06em.
   If the lines cannot fill the full card width, the block shrinks to the
   longest line and the other is flush to it. Desktop (≥ 768px) is unchanged.
   ========================================================================== */
@media (max-width: 767px) {
  .client-card h3,
  .process-card__title {
    hyphens: none;
    -webkit-hyphens: none;
  }
}
.client-card h3.kp .kp-l,
.client-card h3.kp .kp-l--flush,
.process-card__title.kp .kp-l,
.process-card__title.kp .kp-l--flush {
  display: block;
  white-space: nowrap;
  text-align: justify;
  text-align-last: justify;
}
