:root {
  --ink: #183137;
  --deep: #10282e;
  --white: #fffdf8;
  --paper: #f6f2e9;
  --muted: #4a5d5e;
  --line: #d7dcd3;
  --accent: #b94c32;
  --peach: #ffba97;
  --serif: Georgia, 'Times New Roman', serif;
  font: 100%/1.65 Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-padding-top: 1.5rem;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #d96f50; outline-offset: 4px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, figure { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.09; }
h1 { font-size: clamp(2.6rem, 6vw, 5.85rem); letter-spacing: -.05em; margin-bottom: 1.4rem; overflow-wrap: break-word; }
h2 { font-size: clamp(2rem, 4vw, 3.75rem); letter-spacing: -.04em; margin-bottom: 1.35rem; }
h3 { font-size: 1.65rem; letter-spacing: -.025em; margin-bottom: .65rem; }
p, li { overflow-wrap: break-word; }
.wrap { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.narrow { max-width: 47rem; }
.skip { position: absolute; z-index: 4; left: 1rem; top: 1rem; background: white; color: var(--ink); padding: .8rem; transform: translateY(-180%); }
.skip:focus { transform: none; }
.utility { color: #e3ebe5; background: var(--deep); font-size: .88rem; }
.utility .wrap { display: flex; justify-content: space-between; gap: .75rem; padding-block: .45rem; }
.header { background: var(--white); border-bottom: 1px solid var(--line); }
.head { min-height: 5.7rem; display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; gap: .65rem; align-items: center; text-decoration: none; flex-shrink: 0; line-height: 1.2; }
.brand img { width: 3rem; height: auto; }
.brand strong { display: block; font: 1.35rem/1.1 var(--serif); }
.brand small { font-size: .78rem; }
.nav-links { display: flex; flex-wrap: wrap; align-items:center; justify-content: end; gap: .35rem 1.3rem; }
.nav-links a { font-size: .91rem; text-decoration: none; padding-block: .65rem; }
.nav-links a:hover, .nav-links a[aria-current] { text-decoration: underline; }
.menu-toggle { display: none; }
.btn, .nav-links .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.85rem; padding: .65rem 1.1rem; background: var(--accent); color: white; border: 1px solid transparent; text-decoration: none; font: 700 .94rem/1.4 Arial,sans-serif; cursor: pointer; }
.btn:hover { background: #993e28; text-decoration: none; }
.btn.outline { background: transparent; color: inherit; border-color: currentColor; }
.btn.outline:hover { background: #ffffff19; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items:center; margin-top: 1.65rem; }
.eyebrow { font-weight: 700; font-size: .81rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin-bottom: 1.15rem; }
.hero { background: var(--deep); color: var(--white); overflow: clip; }
.hero-grid { display: grid; grid-template-columns: 1.13fr .87fr; align-items: stretch; }
.hero-text { padding: clamp(3rem, 8vw, 7rem) 2rem clamp(3rem, 8vw, 7rem) 0; }
.hero .eyebrow { color: var(--peach); }
.hero h1 em { font-weight: 400; color: var(--peach); }
.lead { font-size: clamp(1.05rem,2vw,1.3rem); max-width: 39rem; color: var(--muted); }
.hero .lead, .band p, .footer p { color: #dbe5e1; }
.hero-visual { position: relative; isolation: isolate; display: grid; align-content: end; justify-items: center; margin: 0; min-width: 0; background: #273b3b center/cover url('/assets/kancelar.webp'); }
.hero-visual::before { content: ''; position:absolute; inset:0; z-index:-1; background: linear-gradient(160deg, #53665b80, transparent 70%); }
.hero-visual img { width: 90%; max-width: 30rem; margin-block: 2rem 1rem; filter: drop-shadow(0 10px 24px #101f23a0); }
.hero-visual figcaption { width: 100%; padding: 1.05rem 1.4rem; line-height: 1.4; background: #12282eee; border-top: 1px solid #dbe5e140; }
.hero-visual strong { display: block; font: 1.25rem var(--serif); }
.hero-visual span { font-size: .875rem; color: #dbe5e1; }
.strip { border-bottom: 1px solid var(--line); background: var(--white); }
.strip .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; column-gap: 1rem; padding-block: 1.05rem; font-size: .94rem; }
.section { padding-block: clamp(3rem,7vw,6.35rem); }
.section + .section { border-top: 1px solid var(--line); }
.white { background: var(--white); }
.section-intro { max-width: 42rem; margin-bottom: 2rem; }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .85rem; }
.card { display: flex; flex-direction: column; min-width: 0; padding: 1.45rem; background: var(--white); border: 1px solid var(--line); }
.card p { color: var(--muted); margin-bottom: 1rem; }
.card a { margin-top: auto; align-self: start; font-weight: 700; }
.card-link { text-decoration: none; }
.card-link:hover { border-color: var(--accent); background: #fff9f0; }
.card-link:hover h3 { text-decoration: underline; text-underline-offset: .18em; }
.card-link .more { margin-top: auto; font-size: .88rem; color: #943b29; font-weight: 700; }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem,6vw,6rem); align-items: start; }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 1.4rem 0 1.4rem 3.6rem; border-top: 1px solid var(--line); }
.step-number { position: absolute; left: 0; top: 1.25rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; width: 2.4rem; aspect-ratio: 1; color: #943b29; }
.steps p { margin-bottom: 0; color: var(--muted); }
.band, .footer { background: var(--deep); color: var(--white); }
.band .wrap { display: flex; gap: 1rem 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.band h2 { margin-bottom: .65rem; }
.band p { margin-bottom: 0; }
.footer { border-top: 1px solid #f6f2e94a; padding-block: 2.6rem 5rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.footer ul { list-style:none; padding:0; margin-bottom:0; }
.footer .brand { margin-bottom: 1rem; }
.footer h2 { font: 700 1rem/1.4 Arial,sans-serif; letter-spacing: normal; margin-bottom: .7rem; }
.footer a { font-size: .94rem; }
.footer li + li { margin-top: .35rem; }
.breadcrumb { font-size: .9rem; color: var(--muted); padding-top: 1.3rem; }
.page-heading { padding-block: clamp(2.3rem,6vw,5rem); }
.page-heading h1 { font-size: clamp(2.4rem,5.6vw,4.7rem); max-width: 62rem; }
.page-heading p:last-child { margin-bottom: 0; }
.prose p, .prose li { max-width: 69ch; }
.prose h2 { font-size: clamp(1.6rem,3vw,2.4rem); margin-top: 1.75rem; }
.prose h2:first-child { margin-top: 0; }
.topic-list { display: grid; gap: 1rem; }
.topic-list > div { border: 1px solid var(--line); background: var(--white); padding: 1.35rem; }
.topic-list p:last-child { margin-bottom: 0; }
.link-list { list-style: none; padding: 0; }
.link-list li { border-top: 1px solid var(--line); }
.link-list a { display: block; padding-block: .7rem; }
.profile img { background: var(--deep); border-radius: 50%; width: min(100%, 21rem); }
address { font-style: normal; margin-bottom: 1.15rem; }
.form-box { border: 1px solid var(--line); padding: clamp(1.1rem,3vw,2rem); background: var(--white); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.field { display: grid; gap: .32rem; margin-bottom: .95rem; }
.field label { font-weight: 700; }
.field em { font-size: .85em; font-style: normal; font-weight: 400; }
input, textarea, select { font: inherit; color: inherit; background: white; border: 1px solid #8a9b97; padding: .55rem .68rem; min-width: 0; border-radius: 0; width: 100%; }
textarea { min-height: 8rem; resize: vertical; }
input[type=checkbox] { width: 1rem; height: 1rem; }
.check { display: flex; align-items: start; gap: .55rem; margin-bottom: 1rem; }
.notice { padding: .85rem 1rem; border-left: 4px solid #a74830; background: #f8e9dc; margin-bottom: 1rem; }
.notice.success { border-color: #427358; background: #e7f2e7; }
.hint { color: var(--muted); font-size: .91rem; margin-bottom: 1.05rem; }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.mobile-contact { display: none; }
@media (max-width: 57rem) {
  .head { flex-wrap: wrap; gap: .55rem; padding-block: .8rem; min-height: auto; }
  .nav-links { width: 100%; justify-content: start; padding: .5rem 0; border-top: 1px solid var(--line); }
  .menu-toggle:not([hidden]) { display: inline-flex; }
  .nav-links[hidden] { display: none; }
  .hero-text { padding-right: 1rem; }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 42rem) {
  .wrap { width: calc(100% - 2rem); }
  .utility .wrap { font-size: .8rem; }
  .hero-grid, .split, .footer-grid { grid-template-columns: 1fr; }
  .hero-text { padding-right: 0; }
  .hero-visual img { max-width: 15rem; margin-block: 1rem .75rem; }
  .hero-visual { margin-bottom: 1rem; }
  .cards, .form-grid { grid-template-columns: 1fr; }
  .form-grid { gap: 0; }
  .mobile-contact { display: grid; grid-template-columns: 1fr 1fr; position: fixed; inset: auto 0 0; z-index: 3; background: var(--deep); color: white; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -3px 20px #0002; }
  .mobile-contact a { text-align: center; font-weight: bold; text-decoration:none; padding: .65rem .3rem; }
  .mobile-contact a + a { background: var(--accent); }
  :root { scroll-padding-bottom: 4.5rem; }
}
.header .brand img { background: var(--deep); padding: .25rem; }
.header .menu-toggle { display: none; }
@media (max-width: 57rem) {
  .header .menu-toggle:not([hidden]) { display: inline-flex; }
  .header .menu-toggle { color: var(--ink); }
}

:root {
  --ink: #2f2a2d;
  --deep: #1f1b1d;
  --white: #fffdfa;
  --paper: #f4efe6;
  --muted: #625752;
  --line: #ded4c5;
  --accent: #b29145;
  --gold-text: #70521f;
  --gold-light: #dbc48d;
  --gold-pale: #eee2c8;
}
:focus-visible { outline-color: #9c7430; }
.wrap { width: min(100% - 5rem, 76rem); }
.utility { color: #eee2d5; border-bottom: 1px solid #ffffff19; }
.utility .wrap { padding-block: .40rem; }
.header { background: var(--white); }
.head { min-height: 5.2rem; }
.header .brand img { background: var(--deep); }
.brand strong { font-size: 1.65rem; }
.brand small { color: var(--muted); }
.nav-links > a:not(.btn) { font-weight: 600; }
.nav-links a[aria-current] { color: var(--gold-text); }
.btn, .nav-links .btn { background: var(--accent); color: #211b15; padding: .75rem 1.25rem; }
.btn:hover { background: #d9b966; }
.btn.outline { color: inherit; background: transparent; }
.hero { background: var(--deep); }
.hero-grid { position: relative; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 32rem; }
.hero-text { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 6vw, 6rem) clamp(1.75rem, 4vw, 4rem) clamp(3rem, 6vw, 6rem) 0; }
.eyebrow { color: var(--gold-text); }
.hero .eyebrow { display: flex; align-items: center; gap: .75rem; color: var(--gold-light); }
.hero .eyebrow::before { content: ''; width: 1.8rem; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(3rem, 5.6vw, 5.55rem); line-height: .99; letter-spacing: -.06em; }
.hero h1 em { display: block; color: var(--gold-light); font-style: normal; }
.hero .lead, .band p, .footer p { color: #e9ded4; }
.hero .lead { max-width: 29rem; }
.hero .actions { margin-top: .75rem; }
.hero-visual { position: relative; display: block; margin: 0; background: #392e2d; }
.hero-visual::before { z-index: 1; background: linear-gradient(90deg, #1f1b1d65, transparent 30%); pointer-events: none; }
.hero-visual img { width: 100%; max-width: none; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 55% center; margin: 0; filter: none; }
.strip { background: var(--gold-pale); border: 0; }
.strip .wrap { gap: .75rem 1.4rem; padding-block: 1rem; }
.strip strong { display: block; color: #60491e; font-size: .79rem; }
.strip a { text-decoration: none; }
.strip a:hover { text-decoration: underline; }
.section { padding-block: clamp(3rem, 6vw, 5.6rem); }
.services-layout { display: grid; grid-template-columns: minmax(0,.64fr) minmax(0,1.36fr); gap: clamp(2rem, 6vw, 6rem); }
.section-intro { max-width: 25rem; margin-bottom: 0; }
.section-intro p { color: var(--muted); }
.cards { display: block; border-top: 1px solid var(--line); }
.card { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: .3rem 1rem; padding: 1.05rem .75rem 1.05rem .25rem; border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.card h3 { margin: 0; }
.card p { grid-row: 2; margin: 0; }
.card-link .more { grid-column: 2; grid-row: 1 / span 2; margin: 0; color: var(--gold-text); }
.card-link:hover { background: var(--paper); }
.firm { background: #eae1d4; }
.editorial { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.firm-photo { margin: 0; background: #392e2d url('/assets/kancelar.webp') center / cover; border-bottom: 4px solid var(--accent); }
.firm-photo img { width: min(80%, 22rem); margin: 1.15rem auto; }
.process { align-items: start; }
.consult-photo { width: 100%; aspect-ratio: 1.7; object-fit: cover; margin-bottom: 1.1rem; }
.step-number { color: var(--gold-text); border-color: #beaa86; }
.page-banner { background: var(--deep); color: var(--white); }
.page-banner .breadcrumb { color: #e5d8bf; }
.page-heading { display: grid; align-items: center; gap: 2rem; }
.page-heading:has(.page-photo) { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); }
.page-heading h1 { margin-bottom: .85rem; }
.page-heading .lead { color: #e9ded4; }
.page-photo { margin: 0; border-bottom: 3px solid var(--accent); }
.page-photo img { width: 100%; aspect-ratio: 2.2; object-fit: cover; }
.topic-list > div { border: 0; border-top: 1px solid var(--line); padding: 1.5rem 0; }
.footer .brand small { color: #e9ded4; }
.footer a:hover { color: var(--gold-light); }
.mobile-contact a + a { color: #211b15; }
@media (max-width: 57rem) {
  .wrap { width: calc(100% - 3rem); }
  .head { min-height: initial; }
  .hero-grid { min-height: 26rem; }
  .services-layout { gap: 2rem; }
}
@media (max-width: 42rem) {
  .wrap { width: calc(100% - 2rem); }
  .hero-grid, .services-layout, .editorial, .page-heading:has(.page-photo) { grid-template-columns: 1fr; }
  .hero-text { padding: 2.65rem 0 2.2rem; }
  .hero h1 { font-size: clamp(2.5rem, 10vw, 4rem); }
  .hero-visual { margin: 0 -1rem; aspect-ratio: 1.75; }
  .hero-visual img { object-position: 55% 60%; }
  .services-layout { gap: 1.6rem; }
  .card { padding-inline: 0; grid-template-columns: 1fr; }
  .card-link .more { grid-column: 1; grid-row: 3; }
  .strip .wrap { justify-content: flex-start; }
}

:root { scroll-padding-top: 6.5rem; }
.header {
  position: sticky;
  top: 0;
  z-index: 5;
  box-shadow: 0 3px 12px #1f1b1d12;
}
.skip { z-index: 6; }
.page-photo--socha-justice img { object-position: center 62%; }
@media (max-width: 57rem) {
  :root { scroll-padding-top: 5.25rem; }
  .nav-links { max-height: 60dvh; overflow-y: auto; }
}
