/* Kancelaria — site styles: moodboard colours (navy, ivory, warm beige, brass; D-038) used with a crisp,
   light, high-contrast feel: white pages, ivory bands, solid navy hero, brass accents (D-039). Mobile first; the content
   switches to the desktop layout at 56rem = 896 px, the header menu bar at 80rem = 1280 px. */

/* Lora for headings (D-026): self-hosted variable font, split by script like Google Fonts serves it. */
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/lora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/lora-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/lora-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --bg: #ffffff;           /* white pages */
  --band: #f4f1eb;         /* ivory bands: page heads, alternating sections */
  --surface: #ffffff;      /* header, cards, forms */
  --beige: #d9cdbb;        /* warm beige: lines and frames; text only on navy */
  --travertine: #e9e1d4;   /* base of the travertine texture (accent only: table heads) */
  --heading: #1f2a44;      /* deep navy headings */
  --text: #3a4458;         /* navy-slate body text: 9.9:1 on white, 8.9:1 on ivory */
  --muted: #4a5264;        /* >= 4.5:1 on white, ivory and the darkest travertine pixel */
  --primary: #1f2a44;      /* deep navy: buttons, links, the hero panel */
  --primary-hover: #162033;
  --primary-dark: #162033; /* footer */
  --on-primary: #f4f1eb;
  --on-dark: #e9e1d4;
  --brass: #b08d57;        /* text only on navy (4.6:1); on light grounds decorative only */
  --brass-dark: #7a5e2f;   /* brass for text on ivory (5.4:1) */
  --border: #ddd3c3;
  --focus: #8a6a36;        /* 4.4:1 on ivory */
  --focus-on-dark: #b08d57;
  --brass-texture: url("/img/texture/brass.webp");
  --travertine-texture: url("/img/texture/travertine.webp");
  --placeholder-bg: #fff1b8;
  --placeholder-border: #a17800;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Lora", "Iowan Old Style", "Palatino Linotype", Georgia, "Noto Serif", serif;

  --gutter: 1rem;
  --radius: 0.2rem;       /* crisp, joinery-like corners */
  --mobile-bar-height: 4.5rem;
}

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

html {
  font-size: 112.5%; /* 18 px base */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  padding-bottom: var(--mobile-bar-height);
}

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

h1, h2, h3 {
  text-wrap: balance;  /* no single word left on the last line */
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--heading);
}
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; }

a {
  color: var(--primary);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--brass);
}
a:hover { color: var(--primary-hover); text-decoration-color: currentColor; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.hero :focus-visible, .cta :focus-visible, .site-footer :focus-visible { outline-color: var(--focus-on-dark); }

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.narrow { max-width: 38rem; } /* ~68 characters per line */

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -10rem;
  background: var(--surface);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { top: 0.5rem; }

/* Placeholders for data the user has not provided yet: deliberately conspicuous. */
.placeholder {
  background: var(--placeholder-bg);
  outline: 2px dashed var(--placeholder-border);
  outline-offset: 1px;
  color: var(--text);
  padding: 0 0.2em;
  border-radius: 0.2em;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.6rem 1.25rem;
  border: 2px solid var(--brass);
  border-radius: var(--radius);
  background: var(--brass) var(--brass-texture) center / 512px 96px;
  color: var(--primary-dark);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.button:hover { border-color: var(--primary-dark); color: var(--primary-dark); }
.button-secondary { background: transparent; border-color: var(--primary); color: var(--primary); }
.button-secondary:hover { background: var(--band); border-color: var(--primary-dark); color: var(--primary-dark); }
.hero .button:hover, .cta .button:hover { border-color: var(--on-primary); }
.hero .button-secondary, .cta .button-secondary {
  background: transparent;
  border-color: rgb(217 205 187 / 0.6);
  color: var(--on-primary);
}
.hero .button-secondary:hover, .cta .button-secondary:hover { border-color: var(--on-primary); background: rgb(244 241 235 / 0.06); color: var(--on-primary); }

/* Header and navigation */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--beige);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.brand {
  flex: 1 1 0;     /* takes the room left by the Menu button; a long name wraps instead of pushing it down */
  min-width: 0;
  display: flex;
  flex-direction: column;
  color: var(--text);
  text-decoration: none;
  line-height: 1.25;
}
.brand-name { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; color: var(--primary); }
.brand-role { font-size: 0.9rem; color: var(--muted); }

.menu-toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.menu-toggle[hidden] { display: none; }
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }

.site-nav {
  flex-basis: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li a {
  display: block;
  padding: 0.6rem 0;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.site-nav a[aria-current] { color: var(--primary); font-weight: 600; }
.site-nav li a:hover { color: var(--primary); }
/* With JavaScript the mobile menu starts collapsed; without it the menu is simply always open. */
.js .site-nav:not(.is-open) { display: none; }

/* Hero */
/* The hero is the one bold element: a solid midnight-navy band with ivory type, a brushed-brass
   rule and the portrait edged in brass. */
.hero {
  background: var(--primary-dark);
  color: var(--on-primary);
  padding: 2.5rem 0 3rem;
}
.hero-inner { display: grid; gap: 2rem; align-items: center; }
/* Hierarchy (D-040): what the practice does is the headline, the lawyer's name a clear second line. */
.hero h1 { font-size: clamp(2.1rem, 1.45rem + 2.9vw, 3.2rem); font-weight: 400; color: var(--on-primary); margin-bottom: 1rem; }
.hero h1::before {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-bottom: 1.1rem;
  background: var(--brass) var(--brass-texture);
}
.hero-name {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.7rem);
  line-height: 1.3;
  color: var(--on-primary);
}
/* Name, then the professional title a step smaller (D-043): the same pattern in the hero, O mnie and the footer. */
.hero-title {
  margin: 0 0 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--beige);
}
.hero-role {
  margin: 0 0 1.25rem;
  font-weight: 600;
  color: var(--brass);
}
.hero .lead { color: var(--beige); }
.hero-actions { display: none; }
.hero-note {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--beige);
}
.hero a:not(.button) { color: var(--on-primary); }
.breadcrumb { margin-bottom: 0.5rem; font-size: 0.95rem; }
.breadcrumb a { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.hero-photo { margin: 0; max-width: 15rem; }
.hero-photo { position: relative; z-index: 1; }
.hero-photo img { border-radius: var(--radius); box-shadow: 0 0 0 1px var(--brass); }

/* Sections */
.section { padding: 2.5rem 0 3rem; }
.hero + .section { background: var(--band); }
/* Longer introduction under a section heading (home page, D-042). */
.section-intro { max-width: 46rem; margin: 0 0 1.5rem; }
.section h2 { display: flex; align-items: center; gap: 0.75rem; }
.area {
  margin-top: 1.5rem;
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--beige);
  border-top: 3px solid var(--brass);
  border-radius: var(--radius);
  display: grid;
  gap: 1rem 3rem;
}
.area h3 { font-size: 1.6rem; font-weight: 400; }
.area h3 a { color: var(--heading); }
.area-intro p { color: var(--muted); margin-bottom: 0; }
.area-topics { list-style: none; margin: 0; padding: 0; }
.area-topics a {
  display: block;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  text-underline-offset: 0.2em;
}
.area-topics li:last-child a { border-bottom: 0; }
/* Links between blog posts and the Oferta sections */
.related { margin-top: 1.25rem; color: var(--muted); }

.stub-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  background: var(--placeholder-bg);
  border: 1px dashed var(--placeholder-border);
  border-radius: 1rem;
  font-size: 0.9rem;
}

/* Language switcher: in the menu panel on phones, at the end of the header row on desktop. */
.lang-switch { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.5rem;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 0;
}
.lang-switch a:hover { color: var(--primary); }
.lang-switch a[aria-current] { color: var(--primary); background: var(--bg); box-shadow: inset 0 -2px 0 var(--brass); }

/* Content pages */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.page-head {
  background: var(--band);
  border-bottom: 1px solid var(--beige);
  padding: 2rem 0 1.75rem;
  margin-bottom: 2.5rem;
}
.page-head-grid { display: grid; gap: 1.5rem; align-items: center; }
.page-head-image { margin: 0; display: none; } /* decorative; phones get straight to the text */
.page-head-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}
.page-head .lead { margin-bottom: 0; }
/* Important limitation stated up front, e.g. consultation languages on the Ukrainian pages (D-031). */
.notice {
  margin: 1rem 0 0;
  padding: 0.6rem 0.9rem;
  border-left: 3px solid var(--brass);
  background: var(--surface);
  color: var(--text);
  max-width: 34rem;
}
.head-phone { margin: 1rem 0 0; font-family: var(--font-heading); font-size: 1.75rem; }
.toc ul {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.toc a {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--beige);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.9rem;
  text-decoration: none;
}
.toc a:hover { border-color: var(--primary); }

.prose { padding-bottom: 3rem; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; color: var(--brass-dark); }
.prose section:first-child h2, .prose > h2:first-child { margin-top: 0; }
.prose section { scroll-margin-top: 1rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1rem; }
.prose li { margin-bottom: 0.5rem; }
.small, .legal-basis { font-size: 0.85rem; color: var(--muted); }

.table-wrap { overflow-x: auto; margin: 0 0 1rem; }
table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); }
th { background: var(--travertine) var(--travertine-texture); color: var(--heading); font-weight: 600; }
.prices td:last-child { white-space: nowrap; }
/* Wide text tables become one card per row on phones; the cell's column name comes from data-label. */
@media (max-width: 40rem) {
  .stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stack, .stack tbody, .stack tr, .stack td { display: block; width: 100%; }
  .stack tr { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.75rem; }
  .stack td { border-bottom: 0; padding: 0.4rem 0.75rem; }
  .stack td::before { content: attr(data-label); display: block; font-weight: 600; font-size: 0.85rem; color: var(--muted); }
}

.steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 0.5rem 2.75rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--brass);
  background: var(--surface);
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 600;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}

details {
  background: var(--surface);
  border: 1px solid var(--beige);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}
summary {
  cursor: pointer;
  padding: 0.85rem 1rem;
  font-weight: 600;
  list-style-position: outside;
  margin-left: 1rem;
}
details[open] summary { border-bottom: 1px solid var(--border); }
details p { padding: 0.75rem 1rem 0; }

.cta {
  margin-top: 3rem;
  padding: 1.75rem 1.5rem;
  background: var(--primary);
  color: var(--beige);
  border-top: 3px solid var(--brass);
  border-radius: var(--radius);
}
.cta h2 { margin-top: 0; color: var(--on-primary); font-weight: 400; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0; }

.about { display: grid; gap: 1.5rem; margin-bottom: 1rem; }
.about-photo { margin: 0; max-width: 12rem; }
.about-photo img { border-radius: var(--radius); box-shadow: 0 0 0 1px var(--beige); }
.about h2 { margin-top: 0; margin-bottom: 0.15rem; }
.about-role { margin: 0 0 1rem; font-family: var(--font-heading); font-size: 1.1rem; color: var(--muted); }
.nowrap { white-space: nowrap; }
/* One sentence that matters most to the reader (e.g. professional secrecy), set apart from the paragraph. */
.key-note {
  padding: 0.6rem 0 0.6rem 1rem;
  border-left: 3px solid var(--brass);
  background: var(--band);
  color: var(--heading);
  font-weight: 600;
}
.facts { display: grid; gap: 0.25rem 1.5rem; margin: 0 0 1rem; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0 0 0.75rem; }
/* Short facts (consultation: time, fee, format, language) stay in two columns even on phones. */
.facts-short { grid-template-columns: max-content 1fr; gap: 0.35rem 1.25rem; }
.facts-short dd { margin: 0; }

.contact-details { display: grid; gap: 0.25rem 1.5rem; margin: 0 0 2rem; }
.contact-details dt { font-weight: 600; }
.contact-details dd { margin: 0 0 0.75rem; }

.post-list { list-style: none; padding: 0; margin: 0 0 3rem; }
.post-list li { padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.post-list h2 { font-size: 1.4rem; margin-bottom: 0.25rem; }
.post-list h2 a { text-decoration: none; }
.post-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.5rem; }

/* Contact form */
.contact-form {
  margin-top: 1.25rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--beige);
  border-radius: var(--radius);
}
.contact-form label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.contact-form input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #8c7f6b;   /* 3.7:1 against the form */
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.contact-form input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.contact-form .hint { display: block; margin-top: 0.3rem; font-size: 0.85rem; color: var(--muted); }
.contact-form button { font: inherit; font-weight: 600; cursor: pointer; }
/* Honeypot: off-screen rather than display:none, which some bots detect. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer {
  background: var(--primary);
  border-top: 3px solid var(--brass);
  color: var(--on-dark);
  padding: 2.5rem 0 1.5rem;
  font-size: 0.9rem;
  margin-top: 1rem;
}
.site-footer a { color: var(--on-dark); }
.site-footer a { text-decoration-color: var(--brass); }
.site-footer a:hover { color: #ffffff; }
.site-footer .placeholder { color: var(--text); }
.footer-inner { display: grid; gap: 1rem; }
.site-footer .footer-name { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.1rem; }
.site-footer .footer-role { margin-bottom: 0.9rem; color: var(--beige); }
.footer-note { color: var(--beige); }
.site-footer p { margin-bottom: 0.6rem; }
.footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-contact li { margin-bottom: 0.45rem; }

/* Sticky contact bar on phones */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 0.5rem;
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--beige);
  box-shadow: 0 -2px 8px rgb(22 32 51 / 0.08);
}
.mobile-bar .button { padding-left: 0.75rem; padding-right: 0.75rem; white-space: nowrap; }

@media (min-width: 56rem) {
  :root { --gutter: 1.5rem; }
  .brand-name { font-size: 1.25rem; }
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }

  .hero { padding: 4rem 0; }
  .hero-inner { grid-template-columns: 1.3fr 1fr; gap: 3rem; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0; }
  .area { grid-template-columns: 1fr 1.2fr; padding: 2rem 2.25rem; }
  .hero-photo { justify-self: end; max-width: 22rem; }
  .section { padding: 3.5rem 0 4rem; }
  .footer-inner { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .page-head { padding: 3rem 0 2.5rem; }
  .page-head-grid { grid-template-columns: 1.2fr 1fr; gap: 3rem; }
  .page-head-image { display: block; }
  .about { grid-template-columns: 12rem 1fr; align-items: start; }
  .facts { grid-template-columns: max-content 1fr; }
  .facts dd { margin-bottom: 0.25rem; }
  .contact-details { grid-template-columns: max-content 1fr; }
  .contact-details dd { margin-bottom: 0.25rem; }
}

/* Two columns on wide screens (D-044): text column (~68 characters per line) aligned with the page
   title on the left, and a sticky side column with the table of contents and the consultation box. */
.side { display: none; }
.with-aside .prose { max-width: 40rem; }
@media (min-width: 64rem) {
  .with-aside {
    display: grid;
    grid-template-columns: minmax(0, 40rem) minmax(16rem, 19rem);
    justify-content: space-between;
    column-gap: 3rem;
  }
  .side { display: block; }
  .side-inner { display: grid; gap: 1.5rem; padding-bottom: 3rem; }
  /* the side column takes over the table of contents from the page head */
  main:has(.side-toc) .page-head .toc { display: none; }
  /* the sticky consultation box replaces the "Co dalej?" box at the end of the text */
  .with-aside .cta { display: none; }
}
.side-title { margin: 0 0 0.6rem; font-family: var(--font-heading); font-size: 1.15rem; color: var(--heading); }
.side-toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--beige); }
.side-toc a {
  display: block;
  padding: 0.3rem 0 0.3rem 0.9rem;
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}
.side-toc a:hover { color: var(--heading); border-left-color: var(--brass); }
.side-box {
  padding: 1.25rem;
  background: var(--band);
  border-top: 3px solid var(--brass);
  border-radius: var(--radius);
}
.side-box .facts { margin-bottom: 1rem; font-size: 0.95rem; }
.side-actions { display: grid; gap: 0.6rem; margin: 0; }
.side-actions .button { width: 100%; padding-left: 0.75rem; padding-right: 0.75rem; }

/* Tall windows: the whole side column (table of contents + consultation box, ~720 px) stays in view. */
@media (min-width: 64rem) and (min-height: 46rem) {
  .side-inner { position: sticky; top: 1.5rem; }
}
/* Lower windows (typical laptops: 600–730 px): the contents list scrolls away and only the consultation
   box (~330 px) stays in view; .side-inner steps aside so the box sticks within the full-height column. */
@media (min-width: 64rem) and (max-height: 45.99rem) {
  .side { display: flex; flex-direction: column; gap: 1.5rem; }
  .side-inner { display: contents; }
  .side-box { position: sticky; top: 1rem; margin-bottom: 3rem; }
}

/* Full menu bar only where it fits in every language (Ukrainian needs ~1250 px); below that the
   header keeps the "Menu" button even when the content already uses the desktop layout. */
@media (min-width: 80rem) {
  .header-inner { flex-wrap: nowrap; padding-top: 1rem; padding-bottom: 1rem; }
  .menu-toggle, .menu-toggle:not([hidden]) { display: none; }
  .site-nav, .js .site-nav:not(.is-open) {
    width: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    padding: 0;
  }
  .site-nav ul { display: flex; gap: 1.25rem; }
  .site-nav li a { padding: 0.25rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  .site-nav .button { white-space: nowrap; }
  .site-nav a[aria-current] { border-bottom-color: var(--brass); }
  .brand { flex: none; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
