/* v169: zabezpieczenia układu na małych ekranach i przy długich wyrazach. */
.article-layout > .article-body,
.article-layout > .toc,
.article-layout > .article-layout__inner,
.article-layout__inner > .article-body,
.article-layout__inner > .toc {
  min-width: 0;
}

.article-body {
  min-width: 0;
  width: 100%;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-hero h1,
.article-body p,
.article-body li,
.article-body a {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

@media (max-width: 700px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .article-body,
  .article-layout > .article-body,
  .article-layout__inner > .article-body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .article-body h1,
  .article-body h2,
  .article-body h3,
  .article-body h4,
  .article-hero h1 {
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
  }
}

@media (max-width: 700px) {
  .article-body table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}


/* v187: spójne sekcje treściowe i noty pod wizytówką. */
.content-section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background: var(--cream, #faf7f1);
}
.content-section > .container {
  max-width: 920px;
}
.content-section h2 {
  max-width: 760px;
  margin: 0.55rem 0 1.5rem;
  line-height: 1.08;
}
.content-section h3 {
  margin: 2.2rem 0 0.75rem;
}
.content-section p,
.content-section li {
  max-width: 820px;
}
.content-section ul {
  margin: 1rem 0 1.7rem 1.25rem;
}
.content-section li + li {
  margin-top: 0.45rem;
}
.choice-note {
  margin-top: 1.35rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--gold, #cdaa5e);
  background: rgba(205,170,94,0.10);
  font-size: 0.95rem;
  line-height: 1.6;
}
.choice-note a {
  color: var(--gold-deep, #7d5f24);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 700px) {
  h1 br, h2 br { display: none; }
  .choice-note { margin-top: 1rem; }
}

/* v238: zachowanie naturalnych odstępów i łamania tekstu na mobile. */
.article-body,
.article-body p,
.article-body li,
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.toc,
.toc a {
  white-space: normal;
  word-spacing: normal;
}

.toc a {
  min-width: 0;
}

@media (max-width: 700px) {
  .toc a {
    overflow-wrap: break-word;
    word-break: normal;
  }
}


/* v246 — final cascade for EN/DE "Who we help" / "Wem die Kanzlei hilft" */
.content-section {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  background: var(--cream, #faf7f1);
}
.content-section > .container { max-width: 980px; }
.content-section .eyebrow { margin-bottom: 1.15rem; }
.content-section h2 {
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.6vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: -.012em;
  max-width: 19ch;
  margin: 0 0 1.7rem;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.content-section h3 {
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-weight: 500;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.18;
  margin: 2.45rem 0 .85rem;
  text-wrap: pretty;
  overflow-wrap: break-word;
}
.content-section p,
.content-section li {
  font-family: var(--sans, "Jost", Arial, sans-serif);
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.82;
  color: var(--ink-soft, #2a2d33);
  max-width: 76ch;
  overflow-wrap: break-word;
  hyphens: auto;
}
.content-section p { margin: 0 0 1.15rem; }
.content-section ul {
  list-style: none;
  max-width: 76ch;
  margin: 1.2rem 0 1.8rem;
  padding: 0;
  display: grid;
  gap: .62rem;
}
.content-section li { position: relative; padding-left: 1.35rem; }
.content-section li + li { margin-top: 0; }
.content-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold, #cdaa5e);
}
@media (max-width: 640px) {
  .content-section { padding: 4rem 0; }
  .content-section > .container { max-width: none; }
  .content-section h2 { font-size: clamp(2rem, 10vw, 2.7rem); max-width: none; }
  .content-section h2 br { display: none; }
  .content-section h3 { margin-top: 2rem; }
  .content-section p,
  .content-section li { font-size: 1rem; line-height: 1.76; }
}


/* v247 — multilingual homepage typography, guide catalog and overflow safety */
.i18n-home main,
.i18n-home main section,
.i18n-home main .container,
.i18n-home main .article-body,
.i18n-home main .content-section,
.i18n-home main .guide-catalog,
.i18n-home main .guide-cat,
.i18n-home main .practice-index {
  min-width: 0;
}

.i18n-home main :is(h1,h2,h3,h4,p,li,a,span,strong,em) {
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

.i18n-home main :is(h1,h2,h3,h4) {
  text-wrap: balance;
}

/* The language landing pages use these classes for guide navigation.
   They previously had no component rules, so the global reset could leave them looking unfinished. */
.i18n-home .practice-index {
  margin: 2.4rem 0 3.2rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--rule, #c8bfae);
  border-bottom: 1px solid var(--rule, #c8bfae);
  font-family: var(--sans, "Jost", Arial, sans-serif);
}
.i18n-home .practice-index__eyebrow {
  margin: 0 0 .85rem !important;
  font-family: var(--sans, "Jost", Arial, sans-serif) !important;
  font-size: .72rem !important;
  line-height: 1.3 !important;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted, #6b6558);
}
.i18n-home .practice-index__list {
  list-style: none !important;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.5rem;
  margin: 0 !important;
  padding: 0 !important;
}
.i18n-home .practice-index__list li {
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border-top: 1px solid rgba(125,95,36,.22);
  font-family: var(--sans, "Jost", Arial, sans-serif) !important;
  font-size: .94rem !important;
  line-height: 1.45 !important;
}
.i18n-home .practice-index__list a {
  display: grid !important;
  font-family: var(--sans, "Jost", Arial, sans-serif) !important;
  grid-template-columns: 2.2rem minmax(0,1fr);
  align-items: baseline;
  gap: .35rem;
  padding: .78rem .15rem !important;
  color: var(--ink-soft, #2a2d33) !important;
  background-image: none !important;
  text-decoration: none !important;
}
.i18n-home .practice-index__list i {
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--gold-deep, #7d5f24);
}
.i18n-home .practice-index__list a:hover {
  color: var(--gold-deep, #7d5f24) !important;
}

.i18n-home .guide-catalog {
  margin: 3rem 0 1rem;
  border-top: 1px solid var(--rule, #c8bfae);
}
.i18n-home .guide-cat {
  min-width: 0;
  padding: 2rem 0 2.2rem;
  border-bottom: 1px solid var(--rule, #c8bfae);
}
.i18n-home .guide-cat__head {
  display: grid;
  grid-template-columns: 3rem minmax(0,1fr);
  gap: .8rem;
  align-items: baseline;
  margin-bottom: 1rem;
}
.i18n-home .guide-cat__num {
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif) !important;
  font-size: 1.05rem;
  line-height: 1;
  font-style: italic;
  color: var(--gold-deep, #7d5f24);
}
.i18n-home .guide-cat__title {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif) !important;
  font-weight: 500 !important;
  font-size: clamp(1.55rem, 2.8vw, 2rem) !important;
  line-height: 1.15 !important;
  letter-spacing: -.005em;
}
.i18n-home .guide-cat__list {
  list-style: none !important;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .45rem 1.6rem;
  margin: 0 !important;
  padding: 0 0 0 3.8rem !important;
}
.i18n-home .guide-cat__list li {
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--sans, "Jost", Arial, sans-serif) !important;
  font-size: .98rem !important;
  line-height: 1.52 !important;
}
.i18n-home .guide-cat__list a {
  display: block;
  font-family: var(--sans, "Jost", Arial, sans-serif) !important;
  padding: .38rem 0 .48rem !important;
  color: var(--ink-soft, #2a2d33) !important;
  background-image: none !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(125,95,36,.15);
}
.i18n-home .guide-cat__list a:hover {
  color: var(--gold-deep, #7d5f24) !important;
  border-bottom-color: var(--gold, #cdaa5e);
}

/* Alphabetical / complete list shown at the end of ES, NL, DA, NO and IS landing pages. */
.i18n-home .hub-links {
  padding: clamp(3.8rem, 7vw, 6rem) 0;
  background: var(--bone, #f2ede3);
  border-top: 1px solid var(--rule, #c8bfae);
}
.i18n-home .hub-links .container {
  max-width: 1080px;
}
.i18n-home .hub-links h2 {
  margin: 0 0 1.5rem;
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif) !important;
  font-weight: 400 !important;
  font-size: clamp(2.15rem, 4vw, 3.25rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -.01em;
}
.i18n-home .hub-links ul {
  list-style: none !important;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  column-gap: 2.5rem;
  margin: 0 !important;
  padding: 0 !important;
  border-top: 1px solid rgba(125,95,36,.25);
}
.i18n-home .hub-links li {
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid rgba(125,95,36,.20);
  font-family: var(--sans, "Jost", Arial, sans-serif) !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
}
.i18n-home .hub-links a {
  display: block;
  min-width: 0;
  padding: .9rem .15rem .95rem !important;
  font-family: var(--sans, "Jost", Arial, sans-serif) !important;
  font-weight: 400;
  color: var(--ink-soft, #2a2d33) !important;
  background-image: none !important;
  text-decoration: none !important;
  overflow-wrap: break-word;
  hyphens: auto;
}
.i18n-home .hub-links a:hover {
  color: var(--gold-deep, #7d5f24) !important;
}

/* Small homepage notes and footer navigation also need an explicit sans face and safe wrapping. */
.i18n-home :is(.title-note,.legal-note,.note,.national-reach,.footer__languages,.footer__practices,.footer__practices-row) {
  font-family: var(--sans, "Jost", Arial, sans-serif) !important;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}
.i18n-home .footer__languages {
  line-height: 2;
}
.i18n-home .footer__languages :is(a,span) {
  white-space: nowrap;
}
.i18n-home .footer__practices-row {
  display: inline;
  white-space: normal;
}

/* Generic grid/flex children on older EN/DE/FR landing pages: permit long translated words to shrink instead of overflowing. */
.i18n-home :is(.hero__grid,.about__grid,.experience__grid,.fees__grid,.footer__inner,.practice-list) > * {
  min-width: 0;
}
.i18n-home :is(.hero__title,.about__side h2,.practice-list__title,.experience h2,.fees h2,.contact h2,.content-section h2,.content-section h3) {
  overflow-wrap: break-word;
  hyphens: auto;
}

@media (max-width: 760px) {
  .i18n-home .practice-index__list,
  .i18n-home .guide-cat__list,
  .i18n-home .hub-links ul {
    grid-template-columns: minmax(0,1fr);
  }
  .i18n-home .guide-cat__head {
    grid-template-columns: 2.4rem minmax(0,1fr);
    gap: .55rem;
  }
  .i18n-home .guide-cat__list {
    padding-left: 2.95rem !important;
  }
  .i18n-home .hub-links {
    padding: 3.6rem 0;
  }
  .i18n-home .hub-links h2 {
    font-size: clamp(2rem, 10vw, 2.65rem) !important;
  }
}

@media (max-width: 480px) {
  .i18n-home .guide-cat__list {
    padding-left: 0 !important;
  }
  .i18n-home .guide-cat__head {
    grid-template-columns: 2rem minmax(0,1fr);
  }
  .i18n-home .hub-links a {
    padding-top: .82rem !important;
    padding-bottom: .86rem !important;
  }
}

/* v247.1 — missing landing-page lead/note/footer safeguards */
.i18n-home .article-body > .lead {
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif) !important;
  font-size: clamp(1.22rem, 2.2vw, 1.36rem) !important;
  line-height: 1.68 !important;
  color: var(--ink-soft, #2a2d33) !important;
  margin: 0 0 1.9rem !important;
}
.i18n-home .article-body > .note {
  font-family: var(--sans, "Jost", Arial, sans-serif) !important;
  font-size: .92rem !important;
  line-height: 1.68 !important;
  color: var(--muted, #6b6558) !important;
  margin: 0 0 2rem !important;
  padding: .9rem 1rem;
  border-left: 2px solid var(--gold, #cdaa5e);
  background: rgba(205,170,94,.07);
}
.i18n-home :is(.footer__languages-wrap,.footer__bottom,.update-note,.gbp-stars) {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
}
.i18n-home .footer__bottom {
  font-family: var(--sans, "Jost", Arial, sans-serif) !important;
  line-height: 1.75;
}
.i18n-home .update-note {
  font-family: var(--sans, "Jost", Arial, sans-serif) !important;
}
.i18n-home .gbp-stars {
  overflow-wrap: normal;
  hyphens: none;
}
@media (max-width: 560px) {
  .i18n-home .footer__languages {
    text-align: left !important;
    letter-spacing: .09em !important;
  }
  .i18n-home .footer__bottom {
    font-size: .84rem;
  }
}


/* v248 — mobile marquee + uniform hero background */
/*
   1) Ujednolica pasek z instytucjami na wszystkich 9 stronach głównych
      (PL + wersje językowe): na telefonie elementy są w jednej kolumnie,
      bez wychodzenia poza viewport.
   2) Po przejściu hero do układu jednokolumnowego wyłącza prawostronny
      pseudo-gradient, który na mobile dawał efekt jaśniejszej lewej i
      ciemniejszej prawej części tła.
*/
@media (max-width: 960px) {
  .hero::before {
    display: none !important;
    content: none !important;
  }
}

@media (max-width: 640px) {
  .marquee {
    padding: 2rem 0;
  }
  .marquee__label {
    max-width: 28rem;
    margin: 0 auto 1.35rem;
    padding-inline: .25rem;
    line-height: 1.55;
  }
  .marquee__track {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    max-width: 34rem;
    margin: 0 auto;
    text-align: center;
    font-size: clamp(1.08rem, 4.6vw, 1.28rem);
  }
  .marquee__track span {
    display: block !important;
    width: 100%;
    min-width: 0;
    padding: .7rem .25rem;
    line-height: 1.35;
    overflow-wrap: break-word;
    word-break: normal;
  }
  .marquee__track span + span {
    border-top: 1px solid rgba(205,170,94,.22);
  }
  .marquee__track span::after {
    display: none !important;
    content: none !important;
  }
}
