/* Адвокат Мирон Ведерников — «Портрет»: one advocate as an editorial profile.
   Ivory / stone / ink with aubergine and brass. Display: Oranienbaum (single weight, display sizes only). Text: Commissioner. */

:root {
  --ivory: #F6F3EE;
  --stone: #E4E1DA;
  --stone-2: #D9D5CC;
  --ink: #1E1919;
  --ink-70: rgba(30, 25, 25, .72);
  --ink-55: rgba(30, 25, 25, .58);
  --aub: #3F3A52;
  --brass: #9A8657;
  --brass-ink: #6F5F34;   /* brass that passes 4.5:1 for small text on ivory and stone */
  --brass-lt: #D3BF8C;    /* brass for text on aubergine / ink */
  --line: rgba(30, 25, 25, .16);
  --line-2: rgba(30, 25, 25, .28);

  --ff-display: "Oranienbaum", "Bodoni 72", "Didot", "Playfair Display", "Times New Roman", serif;
  --ff-text: "Commissioner", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --gut: clamp(16px, 4vw, 56px);
  --gap: clamp(14px, 1.4vw, 20px);
  --max: 1360px;
  --edge: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut)));
  --hdr-h: 56px;
  --rib-h: 32px;
  --bar-h: 64px;

  --map-bg: #ECE9E2; --map-block: #F6F3EE; --map-street: #FBF9F5; --map-water: #D8D5E2; --map-line: #CFCABF; --map-brass: #9A8657;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 12px); }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 1.0625rem/1.62 var(--ff-text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--aub); outline-offset: 3px; }
::selection { background: var(--aub); color: var(--ivory); }

.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--ivory); padding: 12px 18px; text-decoration: none; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }

/* ---------- type atoms ---------- */
.label { font: 600 .72rem/1.2 var(--ff-text); letter-spacing: .16em; text-transform: uppercase; color: var(--brass-ink); }
.chap { display: flex; align-items: baseline; gap: 14px; font: 600 .75rem/1 var(--ff-text); letter-spacing: .16em; text-transform: uppercase; color: var(--brass-ink); }
.chap span { font: 400 1.9rem/1 var(--ff-display); letter-spacing: 0; color: var(--brass); }
.h2 { font: 400 clamp(2.1rem, 4.6vw, 4.1rem)/1.04 var(--ff-display); letter-spacing: -.012em; text-wrap: balance; margin-top: 18px; }
.sec { padding-block: clamp(72px, 10vw, 148px); }
.sec__head { max-width: 62rem; margin-bottom: clamp(36px, 5vw, 64px); }
.sec__lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-70); max-width: 44rem; margin-top: 22px; }
.note { font-size: .8125rem; line-height: 1.5; color: var(--ink-55); margin-top: 18px; max-width: 52rem; }
.note--dark { color: rgba(246, 243, 238, .7); }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: .22em; color: var(--aub); font-weight: 600; cursor: pointer; }
.link:hover { color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; font: 600 .95rem/1.1 var(--ff-text); letter-spacing: .005em; text-decoration: none; border: 1px solid var(--ink); border-radius: 2px; background: transparent; color: var(--ink); transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); text-align: center; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn--ink { background: var(--ink); color: var(--ivory); }
.btn--ink:hover { background: var(--aub); border-color: var(--aub); }
.btn--line:hover { background: var(--ink); color: var(--ivory); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: .875rem; }
.btn--lg { min-height: 54px; padding: 0 32px; font-size: 1rem; }

.pulse { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 0 rgba(154, 134, 87, .55); animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(154, 134, 87, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(154, 134, 87, 0); } }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(246, 243, 238, .93); -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; gap: 18px; height: var(--hdr-h); padding-inline: var(--gut); }
.hdr__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-height: 44px; }
.hdr__mono { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--ink); border-radius: 50%; font: 400 1.35rem/1 var(--ff-display); padding-bottom: 2px; }
.hdr__name b { display: block; font-weight: 600; font-size: .95rem; line-height: 1.15; }
.hdr__name small { display: block; font-size: .72rem; color: var(--ink-55); line-height: 1.2; letter-spacing: .02em; }
.hdr__nav { display: none; }
.hdr__nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: .84rem; font-weight: 500; text-decoration: none; position: relative; }
.hdr__nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 9px; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.hdr__nav a:hover::after, .hdr__nav a[aria-current="true"]::after { transform: scaleX(1); }
.hdr__duty { display: none; align-items: center; gap: 12px; height: 46px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 2px; background: transparent; text-align: left; transition: border-color .25s, background-color .25s; }
.hdr__duty:hover { border-color: var(--ink); background: var(--stone); }
.hdr__duty-t { display: flex; align-items: center; gap: 14px; }
.hdr__duty-t small { display: block; font-size: .62rem; line-height: 1.2; letter-spacing: .03em; color: var(--ink-55); width: 11.2em; }
.hdr__duty-t b { display: block; font-size: 1rem; font-weight: 700; letter-spacing: .01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hdr__burger { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 2px; background: transparent; }
.hdr__burger span { display: block; width: 20px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.hdr.is-open .hdr__burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
.hdr.is-open .hdr__burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.hdr.is-open .hdr__nav { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: var(--ivory); border-bottom: 1px solid var(--line); padding: 8px var(--gut) 20px; }
.hdr.is-open .hdr__nav a { min-height: 54px; font-size: 1.05rem; border-bottom: 1px solid var(--line); padding: 0; }
.hdr.is-open .hdr__nav a::after { display: none; }
html:not(.js) .hdr__nav { display: flex; overflow-x: auto; }
html:not(.js) .hdr__burger { display: none; }

/* ---------- HERO ---------- */
.hero { position: relative; background: var(--ivory); }
.hero__stage { position: relative; container-type: inline-size; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); grid-template-rows: auto auto auto auto; padding: 22px var(--gut) 0; }
.hero__meta { grid-column: 1 / -1; grid-row: 1; display: flex; justify-content: space-between; gap: 24px; font: 600 .7rem/1.3 var(--ff-text); letter-spacing: .15em; text-transform: uppercase; color: var(--ink-55); position: relative; z-index: 6; }
.hero__meta span:last-child { text-align: right; }

.hero__name { grid-column: 1 / -1; grid-row: 2; align-self: center; position: relative; z-index: 2; margin: clamp(34px, 7vw, 92px) 0 clamp(30px, 5vw, 64px); pointer-events: none;
  font-family: var(--ff-display); font-weight: 400; text-transform: uppercase; white-space: nowrap; line-height: .86; letter-spacing: -.004em;
  font-size: calc((100vw - 2 * var(--gut)) / 5.4);
  font-size: calc(100cqw / 5.36);
  color: var(--ink);
  background: url(img/portrait-duo.webp) 49% 20.7% / 125% auto no-repeat;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  transform-origin: 49% 66%;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__name { background: none; -webkit-text-fill-color: currentColor; }
}
.hero__first { display: block; font-size: .29em; line-height: 1.2; letter-spacing: .34em; padding-left: .08em; margin-bottom: .05em; }
.hero__last { display: block; }
.hero__last > span { display: inline; }

.hero__lead { grid-column: 1 / 9; grid-row: 3; position: relative; z-index: 4; padding-bottom: 28px; }
.hero__role { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.5; max-width: 33rem; color: var(--ink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.facts { grid-column: 1 / -1; grid-row: 4; position: relative; z-index: 5; background: var(--ivory); border-top: 1px solid var(--line-2); margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); }
.facts dl { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.facts dl > div { padding: 16px 18px 18px; border-left: 1px solid var(--line); }
.facts dl > div:first-child { border-left: 0; padding-left: 0; }
.facts dt { font: 600 .66rem/1.2 var(--ff-text); letter-spacing: .15em; text-transform: uppercase; color: var(--brass-ink); }
.facts dd { margin-top: 6px; font-weight: 600; font-size: .92rem; line-height: 1.32; }

/* static composition (no scrub): the big name, the lead and the strip */
html:not(.scrub) .hero__plate, html:not(.scrub) .hero__who, html:not(.scrub) .hero__aside, html:not(.scrub) .hero__hint { display: none; }
html:not(.scrub) .hero__stage { padding-bottom: 0; }

/* scrub composition */
.hero__plate { display: none; }
html.scrub .hero__track { height: 250vh; height: 250svh; view-timeline: --hero block; }
html.scrub .hero__stage { position: sticky; top: var(--hdr-h); height: calc(100vh - var(--hdr-h)); height: calc(100svh - var(--hdr-h)); min-height: 560px; overflow: hidden; grid-template-rows: auto minmax(0, 1fr) auto auto; padding-top: 18px; --zoom: 2.35; --slit-t: 31%; --slit-b: 53%; }
html.scrub .hero__name { margin: 0; }
html.scrub .hero__lead { padding-bottom: 0; margin-bottom: 18px; grid-column: 1 / 5; }
html.scrub .hero__role { max-width: none; }
html.scrub .hero__cta .btn { padding: 0 20px; font-size: .9rem; }
html.scrub .hero__plate { display: block; grid-column: 5 / 9; grid-row: 1 / 4; z-index: 3; margin: -18px 0 0; position: relative; overflow: hidden; background: var(--stone); }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; transform-origin: 50% 30%; }
.hero__plate figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 12px; font-size: .68rem; line-height: 1.3; color: rgba(246, 243, 238, .86); background: linear-gradient(to top, rgba(30, 25, 25, .62), transparent); }
.hero__who { display: none; }
html.scrub .hero__who { display: block; grid-column: 1 / 5; grid-row: 2; align-self: start; z-index: 3; padding-top: clamp(8px, 3vh, 36px); }
.hero__who-name { font: 400 clamp(2.2rem, 4.1cqw, 3.7rem)/1.02 var(--ff-display); letter-spacing: -.005em; margin-top: 12px; }
.hero__who-sub { font-size: .84rem; line-height: 1.5; color: var(--ink-70); margin-top: 14px; }
.hero__aside { display: none; }
html.scrub .hero__aside { display: block; grid-column: 9 / 13; grid-row: 2; align-self: start; z-index: 3; padding-top: clamp(8px, 3vh, 36px); }
.hero__words { font: 400 clamp(1.45rem, 2.4cqw, 2.1rem)/1.28 var(--ff-display); }
.hero__words span { display: block; }
.hero__words span:nth-child(2) { color: var(--aub); }
.hero__words span:nth-child(3) { color: var(--brass-ink); }
.hero__aside-note { margin-top: 18px; font-size: .84rem; color: var(--ink-70); max-width: 17rem; }
.hero__hint { display: none; }
html.scrub .hero__hint { display: flex; align-items: center; gap: 12px; grid-column: 9 / 13; grid-row: 3; align-self: end; justify-self: end; z-index: 4; margin-bottom: 22px; font: 600 .68rem/1 var(--ff-text); letter-spacing: .15em; text-transform: uppercase; color: var(--ink-55); }
.hero__hint i { display: block; width: 1px; height: 34px; background: var(--ink-55); transform-origin: top; animation: hint 2.4s var(--ease) infinite; }
@keyframes hint { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); transform-origin: top; } 56% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.hero__duty { display: none; }
html.scrub .hero__duty { display: block; grid-column: 9 / 13; grid-row: 3; align-self: end; z-index: 4; margin-bottom: 18px; }
.hero__duty .label { max-width: 20rem; }
.hero__duty-n { display: block; margin-top: 8px; padding: 4px 0; min-height: 48px; background: none; border: 0; border-bottom: 1px solid var(--line-2); font: 400 clamp(1.8rem, 2.9cqw, 2.6rem)/1.1 var(--ff-display); letter-spacing: .005em; text-align: left; color: var(--ink); transition: border-color .25s, color .25s; }
.hero__duty-n:hover { color: var(--aub); border-color: var(--brass); }
html.scrub .facts { margin-bottom: 0; }
html.scrub .hero__stage { padding-bottom: calc(var(--rib-h) + 0px); }
html.scrub .facts dl > div { padding-bottom: 18px; }

/* the choreography: one set of keyframes, driven either by a native scroll timeline or by a scroll listener (--p) */
@keyframes h-name {
  0% { transform: scale(1); opacity: 1; animation-timing-function: cubic-bezier(.5, .05, .75, .55); }
  46% { transform: scale(var(--zoom)); opacity: 1; animation-timing-function: linear; }
  63% { transform: scale(calc(var(--zoom) * 1.16)); opacity: 0; }
  100% { transform: scale(calc(var(--zoom) * 1.3)); opacity: 0; }
}
@keyframes h-plate {
  0%, 13% { opacity: 0; clip-path: inset(var(--slit-t) 0 var(--slit-b) 0); }
  24% { opacity: 1; clip-path: inset(var(--slit-t) 0 var(--slit-b) 0); animation-timing-function: cubic-bezier(.6, 0, .2, 1); }
  64%, 100% { opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes h-img { 0%, 13% { transform: scale(1.32); } 64%, 100% { transform: scale(1); } }
@keyframes h-in-l { 0%, 54% { opacity: 0; transform: translate3d(-30px, 0, 0); } 76%, 100% { opacity: 1; transform: none; } }
@keyframes h-in-r { 0%, 60% { opacity: 0; transform: translate3d(30px, 0, 0); } 82%, 100% { opacity: 1; transform: none; } }
@keyframes h-facts { 0%, 70% { opacity: 0; transform: translate3d(0, 104%, 0); } 94%, 100% { opacity: 1; transform: none; } }
@keyframes h-hint { 0% { opacity: 1; } 9%, 100% { opacity: 0; } }
@keyframes h-duty { 0%, 76% { opacity: 0; visibility: hidden; transform: translate3d(0, 14px, 0); } 77% { visibility: visible; } 97%, 100% { opacity: 1; visibility: visible; transform: none; } }

html.scrub .hero [data-s] { animation-fill-mode: both; animation-timing-function: linear; animation-duration: 1s; animation-play-state: paused; animation-delay: calc(var(--p, 0) * -1s); will-change: transform, opacity; }
html.scrub .hero [data-s="name"] { animation-name: h-name; }
html.scrub .hero [data-s="plate"] { animation-name: h-plate; }
html.scrub .hero [data-s="plateimg"] { animation-name: h-img; }
html.scrub .hero [data-s="who"] { animation-name: h-in-l; }
html.scrub .hero [data-s="aside"] { animation-name: h-in-r; }
html.scrub .hero [data-s="facts"] { animation-name: h-facts; }
html.scrub .hero [data-s="hint"] { animation-name: h-hint; }
html.scrub .hero [data-s="duty"] { animation-name: h-duty; }
html.scrub[data-driver="css"] .hero [data-s] { animation-delay: 0s; animation-duration: auto; animation-play-state: running; animation-timeline: --hero; animation-range: contain 0% contain 100%; }

@media (max-width: 899px) {
  .hero__meta { display: none; }
  .hero__lead, html.scrub .hero__lead { grid-column: 1 / -1; }
  html.scrub .hero__stage { --zoom: 2.2; --slit-t: 24%; --slit-b: 56%; padding-top: 12px; padding-bottom: calc(var(--bar-h) + 10px); }
  .hero__name { font-size: calc(100cqw / 3.1); line-height: .88; transform-origin: 56% 64%; }
  .hero__first { font-size: .4em; letter-spacing: .22em; margin-bottom: .1em; }
  .hero__last > span { display: block; }
  .hero__last > span:first-child::after { content: "-"; }
  .hero__role { font-size: .98rem; line-height: 1.45; }
  .hero__cta { gap: 8px; margin-top: 16px; }
  .hero__cta .btn { flex: 1 1 100%; min-height: 46px; }
  html.scrub .hero__plate { grid-column: 1 / -1; grid-row: 1 / 3; margin: -12px calc(var(--gut) * -1) 0; }
  html.scrub .hero__plate::after { content: ""; position: absolute; inset: auto 0 0 0; height: 42%; background: linear-gradient(to top, var(--ivory), rgba(246, 243, 238, 0)); pointer-events: none; }
  .hero__plate figcaption { display: none; }
  html.scrub .hero__who { grid-column: 1 / -1; grid-row: 2; align-self: end; padding-top: 0; padding-bottom: 6px; position: relative; z-index: 3; }
  .hero__who .label, .hero__who-name br { display: none; }
  .hero__who-name { font-size: 2rem; margin: 0; }
  .hero__who-sub { margin-top: 6px; font-size: .78rem; }
  html.scrub .hero__aside, html.scrub .hero__hint, html.scrub .hero__duty { display: none; }
  .facts { grid-row: 4; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gut); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .facts::-webkit-scrollbar { display: none; }
  .facts dl { display: flex; width: max-content; }
  .facts dl > div { flex: none; width: 188px; scroll-snap-align: start; padding: 12px 16px 12px; }
  .facts dl > div:first-child { padding-left: 0; }
  .facts dd { font-size: .86rem; margin-top: 4px; }
  html:not(.scrub) .hero__stage { padding-bottom: 0; }
  html:not(.scrub) .hero__lead { padding-bottom: 22px; }
}
@media (min-width: 900px) {
  html.scrub .hero__plate { margin-top: -18px; }
}
@media (max-height: 640px) and (max-width: 899px) {
  .hero__role { display: none; }
}

/* ---------- I. About ---------- */
.about__grid { display: grid; gap: clamp(36px, 5vw, 72px); }
.about__head .h2 { max-width: 15ch; }
.about__photo { display: block; margin-top: 30px; max-width: 340px; }
html.scrub .about__photo { display: none; }
.about__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; }
.about__photo figcaption { margin-top: 8px; font-size: .75rem; color: var(--ink-55); }
.prose p + p { margin-top: 1.1em; }
.prose p { max-width: 38rem; color: var(--ink-70); }
.prose .lead { font: 400 clamp(1.45rem, 2.5vw, 2.05rem)/1.3 var(--ff-display); color: var(--ink); max-width: 30ch; margin-bottom: 1.2em; }
.id { margin-top: clamp(36px, 5vw, 56px); background: var(--stone); padding: clamp(22px, 3vw, 36px); border-top: 2px solid var(--brass); }
.id__t { font: 600 .78rem/1.2 var(--ff-text); letter-spacing: .15em; text-transform: uppercase; color: var(--brass-ink); margin-bottom: 8px; }
.id__dl > div { display: grid; gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.id__dl dt { font-size: .78rem; color: var(--ink-55); letter-spacing: .02em; }
.id__dl dd { font-weight: 600; font-size: 1rem; line-height: 1.4; }
.id__note { margin-top: 18px; font-size: .9rem; color: var(--ink-70); max-width: 44rem; }
.id__note .link { display: flex; align-items: center; min-height: 44px; margin-top: 4px; }
@media (min-width: 900px) {
  .about__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .about__head { position: sticky; top: calc(var(--hdr-h) + 32px); }
  .id__dl > div { grid-template-columns: 11rem 1fr; }
}

/* ---------- II. Practice ---------- */
.practice { background: var(--ivory); }
.pracs { border-bottom: 1px solid var(--line-2); }
.prac { border-top: 1px solid var(--line-2); }
.prac > summary { list-style: none; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) 2.6rem; grid-template-areas: "n t i" ". f ."; align-items: center; gap: 6px 14px; padding: 22px 0; cursor: pointer; transition: padding .3s var(--ease); }
.prac > summary::-webkit-details-marker { display: none; }
.prac__n { grid-area: n; font: 600 .78rem/1 var(--ff-text); letter-spacing: .12em; color: var(--brass-ink); align-self: start; padding-top: .55rem; }
.prac__t { grid-area: t; font: 400 clamp(1.65rem, 3.5vw, 3rem)/1.08 var(--ff-display); letter-spacing: -.01em; transition: transform .45s var(--ease), color .3s; }
.prac__fee { grid-area: f; font-weight: 700; font-size: 1rem; color: var(--aub); font-variant-numeric: tabular-nums; }
.prac__fee small { margin-left: 8px; font-weight: 500; font-size: .78rem; color: var(--ink-55); }
.prac__i { grid-area: i; justify-self: end; position: relative; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; transition: background-color .3s, border-color .3s; }
.prac__i::before, .prac__i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: var(--ink); transition: transform .4s var(--ease); }
.prac__i::after { transform: rotate(90deg); }
.prac[open] .prac__i::after { transform: rotate(0); }
.prac > summary:hover .prac__t { transform: translateX(8px); color: var(--aub); }
.prac > summary:hover .prac__i { background: var(--stone); border-color: var(--ink); }
.prac[open] > summary .prac__t { color: var(--aub); }
.prac__body { padding: 4px 0 34px; }
.prac[open] .prac__body { animation: prac-in .55s var(--ease); }
@keyframes prac-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.prac__cols { display: grid; gap: 22px 40px; }
.prac__cols h4 { font: 600 .72rem/1.2 var(--ff-text); letter-spacing: .15em; text-transform: uppercase; color: var(--brass-ink); margin-bottom: 8px; }
.prac__cols p { color: var(--ink-70); font-size: .98rem; line-height: 1.6; }
.prac__foot { display: grid; gap: 10px 40px; margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--line-2); font-size: .9rem; color: var(--ink-70); }
.prac__foot b { color: var(--ink); font-weight: 600; }
@media (min-width: 760px) {
  .prac > summary { grid-template-columns: 3.2rem minmax(0, 1fr) auto 3rem; grid-template-areas: "n t f i"; gap: 18px; padding: 28px 0; }
  .prac__n { padding-top: .9rem; }
  .prac__fee { text-align: right; white-space: nowrap; }
  .prac__fee small { display: block; margin: 2px 0 0; }
  .prac__body { padding-left: 3.2rem; padding-right: 3rem; }
  .prac__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prac__foot { grid-template-columns: 1.3fr 1fr; }
}

/* ---------- III. Stages (aubergine band) ---------- */
.stages { position: relative; background: var(--aub); color: var(--ivory); overflow: hidden; }
.stages .chap, .stages .chap span { color: var(--brass-lt); }
.stages .chap span { color: var(--brass-lt); }
.stages .sec__lead { color: rgba(246, 243, 238, .74); }
.stages .wrap { position: relative; z-index: 1; }
.stages__plate { position: absolute; right: -2%; top: -6%; width: min(60vw, 640px); color: var(--brass); opacity: .34; pointer-events: none; }
.steps6 { display: grid; gap: 0 32px; counter-reset: s; }
.steps6 li { position: relative; padding: 26px 0 28px 0; border-top: 1px solid rgba(211, 191, 140, .45); }
.steps6 li::before { content: ""; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--brass-lt); }
.steps6__n { display: block; font: 400 clamp(2.6rem, 4.4vw, 3.6rem)/1 var(--ff-display); color: var(--brass-lt); margin-bottom: 14px; }
.steps6 h3 { font: 600 1.02rem/1.3 var(--ff-text); margin-bottom: 8px; letter-spacing: .005em; }
.steps6 p { font-size: .9rem; line-height: 1.58; color: rgba(246, 243, 238, .8); }
@media (min-width: 640px) { .steps6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .steps6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .steps6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 26px; } }
.stages :focus-visible, .ftr :focus-visible, .duty :focus-visible { outline-color: var(--brass-lt); }

/* ---------- IV. Work: horizontal gallery ---------- */
.work { background: var(--stone); padding-inline: 0; overflow: hidden; }
.gal__rail { display: flex; gap: clamp(18px, 2.4vw, 36px); overflow-x: auto; scroll-snap-type: x proximity; padding: 0 var(--edge) 18px; scroll-padding-inline: var(--edge); scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.gal__rail::-webkit-scrollbar { display: none; }
.gal__intro { flex: 0 0 min(86vw, 430px); scroll-snap-align: start; align-self: flex-start; padding-right: clamp(0px, 2vw, 28px); }
.gal__intro p:last-child { margin-top: 22px; color: var(--ink-70); max-width: 26rem; }
.gal__item { flex: 0 0 clamp(272px, 31vw, 480px); scroll-snap-align: start; }
.gal__ph { aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone-2); }
.gal__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gal__item:hover .gal__ph img { transform: scale(1.04); }
.gal__item figcaption { padding-top: 20px; }
.gal__item figcaption b { display: block; font: 400 clamp(2.1rem, 3.2vw, 3rem)/1.04 var(--ff-display); letter-spacing: -.01em; }
.gal__item figcaption b::after { content: ""; display: block; width: 36px; height: 2px; background: var(--brass); margin-top: 12px; }
.gal__item figcaption span { display: block; margin-top: 14px; font-size: .95rem; line-height: 1.58; color: var(--ink-70); max-width: 26rem; }
.gal__ctl { display: flex; align-items: center; gap: 16px; margin: 26px var(--edge) 0; max-width: 520px; }
.gal__btn { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--ink); border-radius: 50%; background: transparent; transition: background-color .25s, color .25s; }
.gal__btn:hover { background: var(--ink); color: var(--ivory); }
.gal__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gal__bar { position: relative; flex: 1; height: 1px; background: var(--line-2); }
.gal__bar i { position: absolute; left: 0; top: -1px; height: 3px; width: 30%; background: var(--ink); transform: translateX(var(--gx, 0px)); }
.wrap-l { padding-inline: 0; }

/* ---------- V. Memo ---------- */
.memo__grid { display: grid; gap: clamp(36px, 5vw, 64px); }
.about__grid > *, .memo__grid > *, .fees__grid > *, .pubs__grid > *, .contacts__grid > *, .ftr__grid > * { min-width: 0; }
.tabs__list { display: flex; gap: 6px; border-bottom: 1px solid var(--line-2); overflow-x: auto; scrollbar-width: none; }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__list button { flex: 1 0 auto; min-height: 52px; padding: 0 22px; background: transparent; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; font-weight: 600; font-size: 1rem; color: var(--ink-55); transition: color .25s, border-color .25s; }
.tabs__list button:hover { color: var(--ink); }
.tabs__list button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brass); }
.tabs__panel { padding-top: 26px; }
.tabs__h { font: 400 clamp(1.6rem, 2.4vw, 2.1rem)/1.15 var(--ff-display); margin-bottom: 8px; }
html.js .tabs__h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
html:not(.js) .tabs__list { display: none; }
html:not(.js) .tabs__panel[hidden] { display: block; }
html:not(.js) .tabs__panel { margin-top: 28px; }
.check { counter-reset: c; }
.check li { border-bottom: 1px solid var(--line); }
.check label { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 16px; padding: 16px 0; cursor: pointer; align-items: start; }
.check input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 1px 0 0; border: 1.5px solid var(--ink); border-radius: 2px; background: transparent; display: grid; place-content: center; cursor: pointer; transition: background-color .2s, border-color .2s; }
.check input::after { content: ""; width: 12px; height: 7px; border: 2px solid var(--ivory); border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); margin-top: -3px; transition: transform .2s var(--ease); }
.check input:checked { background: var(--aub); border-color: var(--aub); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.check input:checked + span { color: var(--ink-55); }
.check span { color: var(--ink); font-size: 1rem; line-height: 1.5; }
.check em { display: block; margin-top: 5px; font: 600 .74rem/1.3 var(--ff-text); font-style: normal; letter-spacing: .06em; color: var(--brass-ink); }
.memo__note { margin-top: 26px; }

.calc { margin-top: 30px; padding: clamp(20px, 3vw, 30px); background: var(--stone); border-top: 2px solid var(--brass); }
.calc__t { font: 400 1.6rem/1.15 var(--ff-display); margin-bottom: 16px; }
.calc__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.calc__row label { font-size: .84rem; font-weight: 600; width: 100%; }
.calc input[type="datetime-local"] { flex: 1 1 220px; min-height: 48px; padding: 0 14px; background: var(--ivory); border: 1px solid var(--line-2); border-radius: 2px; }
.calc__out { margin-top: 18px; }
.calc__out li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 12px 0; border-top: 1px solid var(--line-2); font-size: .92rem; }
.calc__out li span { color: var(--ink-70); grid-column: 1; }
.calc__out li b { grid-column: 2; grid-row: 1 / 3; align-self: center; text-align: right; font-weight: 700; font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.calc__out li em { grid-column: 1; font: 600 .72rem/1.3 var(--ff-text); font-style: normal; letter-spacing: .06em; color: var(--brass-ink); }
.calc__hint { margin-top: 14px; font-size: .8125rem; line-height: 1.5; color: var(--ink-55); }
.calc__fin { margin-top: 14px; font-size: .92rem; color: var(--ink); padding: 12px 14px; background: var(--ivory); border-left: 2px solid var(--aub); }

.wallet-wrap { align-self: start; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; justify-items: start; }
.wallet { position: relative; width: 360px; max-width: 100%; min-height: 228px; padding: 22px 24px 18px; background: var(--aub); color: var(--ivory); overflow: hidden; display: grid; align-content: space-between; gap: 10px; box-shadow: 0 24px 50px -24px rgba(30, 25, 25, .55); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.wallet::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(211, 191, 140, .5); pointer-events: none; }
.wallet__k { font: 600 .62rem/1 var(--ff-text); letter-spacing: .18em; text-transform: uppercase; color: var(--brass-lt); }
.wallet__l li { font-size: .8rem; line-height: 1.38; padding: 2px 0 2px 14px; position: relative; }
.wallet__l li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--brass-lt); }
.wallet__p small { display: block; font-size: .62rem; letter-spacing: .04em; color: var(--brass-lt); }
.wallet__p b { font-size: 1.22rem; font-weight: 700; letter-spacing: .01em; }
.wallet__f { font-size: .56rem; line-height: 1.4; color: rgba(246, 243, 238, .72); }
.wallet-wrap__n { font-size: .8rem; color: var(--ink-55); }
@media (min-width: 960px) {
  .memo__grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .wallet-wrap { position: sticky; top: calc(var(--hdr-h) + 32px); }
}

/* ---------- VI. Fees ---------- */
.fees { background: var(--ivory); }
.fees__grid { display: grid; gap: clamp(40px, 5vw, 72px); }
.fee { width: 100%; border-collapse: collapse; }
.fee thead { display: none; }
.fee tr { display: block; padding: 18px 0; border-top: 1px solid var(--line-2); }
.fee tbody tr:last-child { border-bottom: 1px solid var(--line-2); }
.fee th[scope="row"] { display: block; text-align: left; font-weight: 600; font-size: 1.02rem; line-height: 1.35; }
.fee td { display: block; font-size: .92rem; color: var(--ink-70); }
.fee td:first-of-type { font: 400 1.9rem/1.2 var(--ff-display); color: var(--ink); margin: 6px 0 2px; }
.fee td + td::before { content: attr(data-l) ": "; font-weight: 600; color: var(--ink-55); }
.flow { background: var(--stone); padding: clamp(22px, 3vw, 36px); align-self: start; border-top: 2px solid var(--brass); }
.flow__t { font: 400 clamp(1.7rem, 2.4vw, 2.2rem)/1.1 var(--ff-display); margin-bottom: 16px; }
.flow__l { counter-reset: f; }
.flow__l li { counter-increment: f; position: relative; padding: 14px 0 14px 46px; border-top: 1px solid var(--line-2); font-size: .95rem; line-height: 1.55; color: var(--ink-70); }
.flow__l li::before { content: counter(f); position: absolute; left: 0; top: 10px; font: 400 1.9rem/1 var(--ff-display); color: var(--brass); }
.flow__l b { color: var(--ink); font-weight: 600; }
@media (min-width: 900px) {
  .fees__grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }
}
@media (min-width: 760px) {
  .fee thead { display: table-header-group; }
  .fee thead th { text-align: left; font: 600 .7rem/1.2 var(--ff-text); letter-spacing: .15em; text-transform: uppercase; color: var(--brass-ink); padding: 0 16px 12px 0; }
  .fee tr { display: table-row; padding: 0; border: 0; }
  .fee tbody tr > * { display: table-cell; padding: 20px 16px 20px 0; border-top: 1px solid var(--line-2); vertical-align: top; }
  .fee tbody tr:last-child > * { border-bottom: 1px solid var(--line-2); }
  .fee { table-layout: fixed; }
  .fee thead th:nth-child(1) { width: 36%; }
  .fee thead th:nth-child(2) { width: 24%; }
  .fee th[scope="row"] { display: table-cell; }
  .fee td:first-of-type { font-size: 1.75rem; margin: 0; white-space: nowrap; }
  .fee td + td::before { content: none; }
}

/* ---------- VII. Publications ---------- */
.pubs { background: var(--stone); }
.pubs__grid { display: grid; gap: clamp(30px, 5vw, 64px); }
.pubs__list li { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--line-2); }
.pubs__list li:last-child { border-bottom: 1px solid var(--line-2); }
.pubs__list time { font: 400 1.9rem/1 var(--ff-display); color: var(--brass-ink); }
.pubs__list h3 { font: 600 1.08rem/1.38 var(--ff-text); }
.pubs__list p { margin-top: 6px; font-size: .88rem; color: var(--ink-55); }
@media (min-width: 900px) {
  .pubs__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .pubs__head { position: sticky; top: calc(var(--hdr-h) + 32px); }
}

/* ---------- VIII. Contacts ---------- */
.contacts { background: var(--ivory); }
.contacts__grid { display: grid; gap: clamp(32px, 4vw, 56px) var(--gap); }
.duty-card { padding: 22px 24px 24px; background: var(--ink); color: var(--ivory); border-top: 2px solid var(--brass); }
.duty-card__t { display: flex; align-items: center; gap: 12px; font: 600 .72rem/1.35 var(--ff-text); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-lt); }
.duty-card__n { display: block; margin-top: 10px; padding: 6px 0; min-height: 48px; background: none; border: 0; color: var(--ivory); font: 400 clamp(2rem, 4.2vw, 3rem)/1.1 var(--ff-display); letter-spacing: .005em; text-align: left; text-decoration: underline; text-decoration-color: rgba(211, 191, 140, .5); text-underline-offset: .18em; text-decoration-thickness: 1px; }
.duty-card__n:hover { text-decoration-color: var(--brass-lt); }
.duty-card :focus-visible { outline-color: var(--brass-lt); }
.addr { margin-top: 26px; }
.addr > div { padding: 14px 0; border-top: 1px solid var(--line-2); }
.addr > div:last-child { border-bottom: 1px solid var(--line-2); }
.addr dt { font: 600 .7rem/1.2 var(--ff-text); letter-spacing: .15em; text-transform: uppercase; color: var(--brass-ink); }
.addr dd { margin-top: 5px; font-weight: 600; line-height: 1.45; }
.addr dd small { font-weight: 400; font-size: .84rem; color: var(--ink-55); }
.open { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 16px; background: var(--stone); font-size: .92rem; font-weight: 500; }
.open__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-55); }
.open.is-open .open__dot { background: #3E7E5E; box-shadow: 0 0 0 4px rgba(62, 126, 94, .18); }
.open.is-closed .open__dot { background: var(--brass); }
.msgr { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip { min-height: 48px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 2px; background: transparent; font-weight: 600; font-size: .95rem; transition: background-color .25s, color .25s; }
.chip:hover { background: var(--ink); color: var(--ivory); }
.map { margin: 0; border: 1px solid var(--line-2); background: var(--map-bg); }
.map svg { width: 100%; height: auto; }
.map figcaption { padding: 10px 14px; font-size: .75rem; color: var(--ink-55); border-top: 1px solid var(--line); background: var(--ivory); }
.map__s { font: 500 11px var(--ff-text); fill: rgba(30, 25, 25, .62); letter-spacing: .02em; }
.map__s--i { fill: rgba(30, 25, 25, .42); }
.map__s--w { fill: rgba(63, 58, 82, .6); font-style: normal; letter-spacing: .14em; text-transform: uppercase; font-size: 10px; }
.map__s--b { font-weight: 700; fill: var(--ink); }
.map__pin { font: 400 17px var(--ff-display); fill: var(--ivory); }
.map__route { margin-top: 14px; }

.form { display: grid; gap: 26px var(--gap); padding: clamp(24px, 4vw, 52px); background: var(--stone); border-top: 2px solid var(--brass); }
.form__t { font: 400 clamp(1.9rem, 3.4vw, 2.8rem)/1.08 var(--ff-display); letter-spacing: -.01em; }
.form__n { margin-top: 16px; font-size: .95rem; color: var(--ink-70); max-width: 28rem; }
.form__n b { color: var(--ink); font-weight: 700; }
.form__fields { display: grid; gap: 22px; align-content: start; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: .82rem; font-weight: 600; letter-spacing: .02em; padding: 0; }
.field .opt { font-weight: 400; color: var(--ink-55); margin-left: 6px; }
.field input[type="text"], .field input[type="tel"], .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; background: var(--ivory); border: 1px solid var(--line-2); border-radius: 2px; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--aub); box-shadow: 0 0 0 3px rgba(63, 58, 82, .18); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 2px; background: var(--ivory); font-weight: 600; font-size: .92rem; transition: background-color .2s, color .2s, border-color .2s; }
.seg input:checked + span { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--aub); outline-offset: 3px; }
.agree { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; font-size: .86rem; line-height: 1.5; color: var(--ink-70); cursor: pointer; }
.agree input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 0; border: 1.5px solid var(--ink); border-radius: 2px; background: var(--ivory); display: grid; place-content: center; cursor: pointer; }
.agree input::after { content: ""; width: 12px; height: 7px; border: 2px solid var(--ivory); border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); margin-top: -3px; transition: transform .2s var(--ease); }
.agree input:checked { background: var(--aub); border-color: var(--aub); }
.agree input:checked::after { transform: rotate(-45deg) scale(1); }
.agree a { color: var(--ink); font-weight: 600; padding: 12px 2px; margin: -12px 0; }
.form .btn { justify-self: start; }
@media (min-width: 900px) {
  .contacts__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .contacts__info { grid-column: 1 / 6; }
  .contacts__map { grid-column: 6 / -1; }
  .form { grid-column: 1 / -1; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: 8px; }
}

/* ---------- footer, mobile bar, dialog ---------- */
.ftr { background: var(--ink); color: rgba(246, 243, 238, .86); padding-block: clamp(44px, 6vw, 72px); font-size: .86rem; line-height: 1.6; }
.ftr__grid { display: grid; gap: 30px 48px; }
.ftr p + p { margin-top: 12px; }
.ftr__name { font: 400 1.7rem/1.15 var(--ff-display); color: var(--ivory); }
.ftr a { color: var(--ivory); }
.ftr__demo { color: rgba(246, 243, 238, .6); }
@media (min-width: 900px) { .ftr__grid { grid-template-columns: 1.2fr 1.2fr .9fr; } }

.duty { display: none; }
@media (max-width: 999px) {
  body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px)); }
  .duty { position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 8px max(var(--gut), env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(var(--gut), env(safe-area-inset-left, 0px)); background: var(--ink); color: var(--ivory); border-top: 1px solid rgba(211, 191, 140, .4); }
  .duty__t { display: flex; align-items: center; gap: 10px; font-size: .74rem; line-height: 1.25; font-weight: 500; letter-spacing: .01em; }
  .duty__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 48px; min-height: 48px; border-radius: 2px; border: 1px solid var(--ivory); background: transparent; color: var(--ivory); }
  .duty__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .duty__btn--call { background: var(--ivory); color: var(--ink); padding: 0 16px; font-weight: 700; font-size: .92rem; }
}
@media (min-width: 1000px) { .hdr__duty { display: flex; } }
@media (min-width: 1180px) { .hdr__nav { display: flex; } .hdr__burger { display: none; } }
@media (min-width: 900px) { :root { --hdr-h: 64px; } }
@media (max-width: 380px) { .duty__t { font-size: .68rem; } .duty__btn--call span { display: none; } }

.dlg { border: 0; padding: 0; width: min(540px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: var(--ivory); color: var(--ink); box-shadow: 0 30px 80px rgba(30, 25, 25, .4); border-top: 3px solid var(--brass); }
.dlg::backdrop { background: rgba(30, 25, 25, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dlg__box { padding: clamp(22px, 4vw, 34px); }
.dlg__t { font: 400 clamp(1.8rem, 4vw, 2.4rem)/1.1 var(--ff-display); margin: 10px 0 16px; }
.dlg__l { counter-reset: d; }
.dlg__l li { counter-increment: d; position: relative; padding: 10px 0 10px 34px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink-70); }
.dlg__l li::before { content: counter(d); position: absolute; left: 0; top: 8px; font: 400 1.5rem/1 var(--ff-display); color: var(--brass); }
.dlg__d { margin-top: 14px; background: var(--stone); padding: 6px 16px; }
.dlg__d > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; }
.dlg__d > div + div { border-top: 1px solid var(--line-2); }
.dlg__d dt { font-size: .8rem; color: var(--ink-55); }
.dlg__d dd { font-weight: 700; text-align: right; }
.dlg__n { margin-top: 14px; font-size: .84rem; color: var(--ink-55); }
.dlg__a { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }


/* ---------- documents: privacy, consent ---------- */
.docpage { padding-bottom: 0; }
.hdr--doc .hdr__in { justify-content: space-between; }
.doc { padding-block: clamp(48px, 8vw, 110px); }
.doc__wrap { max-width: 52rem; }
.doc__h1 { font: 400 clamp(2.2rem, 5.4vw, 3.8rem)/1.06 var(--ff-display); letter-spacing: -.012em; text-wrap: balance; margin-top: 18px; }
.doc__meta { margin-top: 14px; font-size: .86rem; color: var(--ink-55); }
.doc__demo { margin-top: 22px; padding: 14px 18px; background: var(--stone); border-left: 3px solid var(--brass); font-size: .92rem; color: var(--ink-70); }
.doc__list { margin-top: 40px; counter-reset: d; }
.doc__list > li { counter-increment: d; position: relative; padding: 26px 0 26px 3.2rem; border-top: 1px solid var(--line-2); }
.doc__list > li:last-child { border-bottom: 1px solid var(--line-2); }
.doc__list > li::before { content: counter(d); position: absolute; left: 0; top: 24px; font: 400 2rem/1 var(--ff-display); color: var(--brass); }
.doc__list h2 { font: 400 clamp(1.5rem, 2.6vw, 1.9rem)/1.15 var(--ff-display); margin-bottom: 10px; }
.doc__list p, .doc__body p { color: var(--ink-70); max-width: 42rem; }
.doc__list p + p, .doc__body p + p { margin-top: .9em; }
.doc__list b { color: var(--ink); font-weight: 700; }
.doc__list a, .doc__body a { color: var(--aub); font-weight: 600; }
.doc__body { margin-top: 36px; }
.doc__dl { margin: 26px 0; border-top: 2px solid var(--brass); background: var(--stone); padding: 6px clamp(16px, 3vw, 28px); }
.doc__dl > div { display: grid; gap: 4px 24px; padding: 16px 0; }
.doc__dl > div + div { border-top: 1px solid var(--line-2); }
.doc__dl dt { font: 600 .72rem/1.3 var(--ff-text); letter-spacing: .15em; text-transform: uppercase; color: var(--brass-ink); }
.doc__dl dd { font-weight: 500; }
.doc__back { margin-top: 40px; }
@media (min-width: 720px) { .doc__dl > div { grid-template-columns: 11rem 1fr; } }

/* ---------- print: only the wallet card ---------- */
@media print {
  body.printing-card * { visibility: hidden !important; }
  body.printing-card .wallet, body.printing-card .wallet * { visibility: visible !important; }
  body.printing-card .wallet { position: fixed; left: 12mm; top: 12mm; box-shadow: none; }
  body.printing-card { background: #fff; }
  @page { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .pulse { animation: none; }
}
