/* Shared pages and the editorial sections below the live console. */
:root { --panel: linear-gradient(125deg,rgba(27,48,59,.84),rgba(18,36,26,.86)); }
:where(h1,h2,h3,p,dd,summary,a) { overflow-wrap:break-word; }
:where(section,article,details,footer)[id] { scroll-margin-top:18px; }
.nav [aria-current="page"] { color:var(--cream); text-decoration:underline; text-decoration-color:var(--gold); text-underline-offset:6px; }
.text-link, .door-link, .scope-note a { color:var(--cream); text-decoration:underline; text-decoration-color:var(--rim); text-underline-offset:5px; }
.text-link { display:inline-block; padding-block:10px; font-weight:600; font-size:.92rem; }
.service-link { display:inline-flex; align-items:baseline; gap:.45em; }
.service-link .arrow { color:var(--gold); }
.wrap.editorial { border-top:1px solid var(--line); padding-block:clamp(44px,5.6vw,90px); }
.editorial h2, .founder-brief h2 { margin:0; font-size:var(--section-heading); font-weight:700; line-height:1.07; letter-spacing:-.03em; }
.editorial h3 { margin:0; font-size:clamp(1.15rem,1.7vw,1.65rem); line-height:1.22; letter-spacing:-.03em; }
.editorial p, .founder-brief p { color:#d5dccf; }
.section-head + *, .editorial > h2 + :is(.doors,.packages,.case-files), .role-views { margin-top:clamp(22px,2.8vw,44px); }
.section-deck, .section-head p { margin:14px 0 0; max-width:60ch; }
.editorial :where(.doors,.packages,.role-views,.steps)>* { min-width:0; }
.kicker, .door-link, .packages h4, .flow-list small, .case-body dt, .sample figcaption, .next b { font:500 11px/1.5 var(--mono); letter-spacing:.07em; text-transform:uppercase; }
.doors, .packages, .role-views, .steps { display:grid; gap:clamp(12px,1.8vw,29px); grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr)); }
.doors a, .packages article, .role-views figure { border:1px solid var(--line); border-radius:10px; padding:clamp(20px,2.4vw,38px); background:var(--panel); }
.doors a { display:flex; flex-direction:column; align-items:flex-start; border-color:var(--rim); }
.doors a:nth-child(2) { background:linear-gradient(125deg,#152840,#142b2b); }
.doors p { max-width:46ch; margin:10px 0 24px; }
.door-link { margin-top:auto; color:var(--gold); }
.steps { list-style:none; margin:27px 0 0; padding:0; }
.steps li { position:relative; padding:23px 10px 0 0; border-top:1px solid var(--rim); }
.steps li::before { content:''; position:absolute; top:-4px; left:0; width:6px; height:6px; border-radius:50%; background:var(--gold); }
.steps li p { margin:10px 0 0; }
.packages article { display:flex; flex-direction:column; align-items:flex-start; }
.packages article p { margin:12px 0; }
.packages h4 { margin:15px 0 0; color:var(--sage); }
.packages a { margin-top:auto; }
.scope-note { margin-bottom:0; }
.case-files { border-top:1px solid var(--rim); }
.case-file { border-bottom:1px solid var(--line); }
.case-file summary { display:flex; align-items:center; gap:15px; padding:17px 5px; cursor:pointer; list-style:none; font-size:clamp(1.05rem,1.7vw,1.55rem); font-weight:600; }
.case-file summary::-webkit-details-marker { display:none; }
.case-file summary::after { content:'+'; margin-left:auto; color:var(--gold); font:400 25px/1 var(--mono); }
.case-file[open] summary::after { content:'−'; }
.case-file summary:focus-visible, .diploma:focus-visible { outline:2px solid var(--gold); outline-offset:2px; }
.case-body { padding:5px 5px 22px; }
.case-body dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(17px,3vw,44px); }
.case-body dl > div, .rows > div, .sample dl > div { display:block; font:inherit; }
.case-body dt, .rows dt, .sample dt { width:auto; }
.case-body dt { color:var(--gold); }
.case-body dd { margin:7px 0 0; color:#e2e8db; font-weight:400; }
.case-body dt::after,.rows dt::after { content:none; }
.case-body .text-link { margin-top:12px; }
.about { display:grid; grid-template-areas:"portrait title" "portrait story"; row-gap:0; grid-template-columns:minmax(0,.78fr) minmax(0,1.2fr); column-gap:clamp(24px,6vw,95px); align-items:start; }
.portrait-box { grid-area:portrait; align-self:center; justify-self:center; position:relative; isolation:isolate; width:100%; max-width:460px; }
.portrait-box::before {
  content:""; position:absolute; inset:9% -3% 1%; pointer-events:none;
  background:radial-gradient(ellipse at 50% 60%, rgba(232,193,90,.18), transparent 64%);
}
.portrait-pulse { position:absolute; width:100%; height:21%; top:53%; fill:none; color:var(--gold); pointer-events:none; }
.portrait-pulse path { stroke:currentColor; stroke-width:1.2; stroke-linejoin:round; vector-effect:non-scaling-stroke; opacity:.84; }
.portrait-pulse circle { fill:currentColor; }
.portrait {
  position:relative; display:block; width:100%; height:auto;
  aspect-ratio:1; object-fit:contain;
}
.about .kicker, .founder-brief .kicker { margin:0 0 11px; color:var(--sage); }
.about h2, .founder-brief h2 { font-family:'Cormorant SC',Georgia,serif; font-weight:700; letter-spacing:-.025em; }
.biography p:not(.kicker) { max-width:69ch; }
.biography .geo-line { font-family:'Cormorant SC',Georgia,serif; font-weight:600; font-size:1.45rem; color:var(--cream); line-height:1.23; }
.diploma { display:inline-flex; align-items:center; gap:14px; margin-block:6px; }
.diploma img { object-fit:cover; border-radius:3px; }
.diploma small { display:block; margin-top:4px; font-size:13px; color:var(--sage); }
.diploma-dialog { width:min(92vw,1040px); max-height:92vh; margin:auto; padding:14px; background:var(--stage); color:var(--cream); border:1px solid var(--rim); border-radius:12px; }
.diploma-dialog::backdrop { background:rgba(6,12,9,.84); }
.diploma-dialog header { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.diploma-dialog h2 { font-size:1rem; }
.dialog-close { min-height:44px; }
.diploma-scan img { display:block; width:100%; height:auto; }
.founder-brief { padding-block:clamp(36px,4.5vw,72px); display:flex; align-items:center; gap:24px; border-top:1px solid var(--line); }
.founder-brief>img { width:clamp(85px,10vw,140px); height:auto; aspect-ratio:1; object-fit:contain; flex:none; }
.founder-brief p { max-width:67ch; margin:8px 0; }
.request { display:grid; grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr); gap:clamp(25px,6vw,94px); }
.request-intro p { max-width:38ch; }
.direct { display:grid; gap:8px; }
.direct a,.contact-list a,.foot-nav a,.legal a { width:fit-content; text-decoration:underline; text-decoration-color:var(--rim); text-underline-offset:4px; }
.form-box { padding:clamp(16px,2.5vw,37px); background:var(--panel); border:1px solid var(--rim); border-radius:12px; }
.footer a { padding-block:8px; }
.footer { display:block; }
.footer-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,.78fr) minmax(0,.8fr); gap:30px; }
.footer .geography { margin:17px 0; max-width:44ch; }
.contact-list,.foot-nav { display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
.contact-list h2 { font-size:15px; margin:0; color:var(--cream); }
.messengers { display:flex; flex-wrap:wrap; gap:14px; }
.foot-nav { font-size:14px; }
.legal { display:flex; align-items:center; gap:12px 28px; flex-wrap:wrap; margin-top:28px; padding-top:18px; border-top:1px solid var(--line); font-size:12px; }
.legal a:last-child { margin-left:auto; }
.page-trace { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:1; }
.page-trace path,.example-pulse path { fill:none; stroke:var(--gold); vector-effect:non-scaling-stroke; stroke-width:1px; }
.trace-bed { opacity:.12; }
.trace-line { opacity:.62; }
.topic-hero { position:relative; padding-block:clamp(42px,7vw,110px) 20px; border-bottom:1px solid var(--line); background:linear-gradient(100deg,rgba(12,23,16,.47),rgba(12,23,16,.13)),url('img/silk.webp') center bottom / cover; }
.topic-layout { display:grid; grid-template-columns:minmax(0,1.19fr) minmax(0,.81fr); align-items:center; gap:clamp(25px,5vw,85px); }
.topic-layout h1 { max-width:15ch; font-size:clamp(45px,5.3vw,86px); }
.topic-tools { display:flex; justify-content:flex-end; min-height:27px; margin-top:18px; }
.example-wrap { position:relative; min-width:0; }
.topic-sign { display:block; width:clamp(110px,11vw,165px); height:auto; margin-bottom:6px; }
.example-pulse { width:100%; height:32px; display:block; }
.example-pulse circle { fill:var(--stage); stroke:var(--gold); }
.sample { margin:0; border:1px solid var(--rim); border-radius:11px; background:var(--panel); }
.sample figcaption { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px 12px; padding:15px 18px; color:var(--sage); border-bottom:1px solid var(--line); }
.sample figcaption span { text-transform:none; letter-spacing:0; }
.sheet { padding:18px clamp(15px,2vw,29px) 22px; }
.sheet-title { font-size:clamp(20px,2vw,31px); font-weight:650; letter-spacing:-.03em; margin:0 0 19px; }
.sample dl > div { display:grid; grid-template-columns: minmax(94px,.8fr) minmax(0,1.2fr); gap:8px; font-size:14px; padding:5px 0; }
.next { border-top:1px solid var(--line); margin:15px 0 0; padding-top:12px; }
.next b { display:block; color:var(--sage); margin-bottom:4px; }
.flow-list { list-style:none; margin:0; padding:0 0 0 12px; }
.flow-list li { position:relative; padding:0 0 14px 18px; border-left:1px solid var(--rim); }
.flow-list li:last-child { padding-bottom:0; border-left-color:transparent; }
.flow-list li::before { content:''; position:absolute; left:-4px; top:6px; width:6px; height:6px; border-radius:50%; background:var(--gold); }
.flow-list small { display:block; font:400 13px/1.5 Montserrat,sans-serif; letter-spacing:0; text-transform:none; color:var(--sage); }
.split { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:clamp(22px,5vw,76px); }
.split .rows { margin-top:0; }
.rows > div { padding-block:17px; border-top:1px solid var(--line); }
.rows dt { font-size:clamp(18px,1.6vw,23px); font-weight:650; color:var(--cream); }
.rows dd { margin:5px 0 0; font-weight:400; color:#ced9cb; }
.clinic-note { padding-left:14px; border-left:2px solid var(--gold); }
.clinic-note strong { display:block; }
.role-views figure { margin:0; }
.role-views figcaption { font-weight:650; font-size:18px; }
.role-views p { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px; font-size:14px; border-top:1px solid var(--line); padding-top:10px; margin:12px 0 0; }
.note { max-width:78ch; }
.matrix table { width:100%; border-collapse:collapse; font-size:14px; }
.matrix :is(th,td) { text-align:left; padding:9px 4px; border-bottom:1px solid var(--line); }
.matrix thead { color:var(--sage); }
.matrix tbody th { font-weight:500; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media (hover:hover) and (pointer:fine) {
  .doors a:hover,.case-file summary:hover,.text-link:hover,.foot-nav a:hover,.direct a:hover { color:var(--gold); }
}
@media (max-width:840px) {
  .topic-layout { grid-template-columns:minmax(0,1fr); gap:25px; }
  .example-wrap { width:min(100%,550px); justify-self:end; }
  .about,.request,.split { grid-template-columns:minmax(0,1fr); }
  .about { grid-template-areas:"title" "portrait" "story"; }
  .portrait-box { max-width:430px; }
  .footer-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .footer-grid>div:first-child { grid-column:1 / -1; }
  .case-body dl { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:540px) {
  .topic-layout h1 { font-size:clamp(34px,9.4vw,48px); }
  .footer-grid { display:flex; flex-direction:column; }
  .founder-brief { align-items:flex-start; gap:14px; }
  .founder-brief>img { width:65px; }
  .legal { align-items:flex-start; flex-direction:column; }
  .legal a:last-child { margin:0; }
  .matrix table { font-size:12px; }
  .matrix :is(th,td) { padding-inline:3px; }
}


/* The request link is part of the compact menu; the wide header has its own CTA. */
.nav .nav-request { display:none; }
@media (max-width:1180px) {
  .nav .nav-request { display:block; color:var(--cream); }
}
.arrow-right { transform:rotate(45deg) scale(.78); vertical-align:baseline; }
.service-grid .text-link { color:var(--cream); }
.service-grid .text-link .arrow,.related-links a { color:var(--gold); }
.request-contacts .direct { margin-bottom:0; }
.related-links { display:flex; align-items:baseline; flex-wrap:wrap; gap:.45em .75em; }
.related-links a { text-decoration:underline; text-underline-offset:4px; }
[data-page="predpriyatiya"] .topic-hero { background:var(--stage); }
[data-page="predpriyatiya"] :is(.sample,.role-views figure,.form-box) {
  background:transparent; border-color:var(--line); border-radius:0; box-shadow:none;
}
.document { max-width:72ch; padding-block:clamp(40px,7vw,92px); }
.document h1 { max-width:19ch; font-size:clamp(2rem,5vw,4.25rem); }
.document h2 { margin:0 0 .7em; font-size:clamp(1.25rem,2.4vw,1.8rem); line-height:1.2; letter-spacing:-.02em; }
.document section { margin-top:2.4rem; }
.document p,.document li { line-height:1.65; }
.document .document-version { font-size:.88rem; color:var(--sage); }
.document ul { padding-left:1.3rem; }
.document li + li { margin-top:.8em; }
.document a { text-decoration:underline; text-underline-offset:3px; }
[data-page="document"] *,[data-page="document"] *::before,[data-page="document"] *::after {
  animation:none; transition:none;
}

.founder-title { grid-area:title; min-width:0; }
.founder-name svg { display:block; width:min(100%,490px); height:auto; }
.ink-letter { fill:var(--cream); stroke:var(--gold); stroke-width:.32; }
.signature-tail,.founder-proofs svg { fill:none; stroke:var(--gold); stroke-linecap:round; stroke-linejoin:round; stroke-width:1.4; }
.biography { grid-area:story; min-width:0; }
.biography blockquote { margin:12px 0 22px; font:600 clamp(1.45rem,2.5vw,2.35rem)/1.16 'Cormorant SC',Georgia,serif; }
.founder-proofs { list-style:none; margin:22px 0; padding:0; border-top:1px solid var(--line); }
.founder-proofs li { padding:11px 0; border-bottom:1px solid var(--line); font-size:.95rem; }
.founder-proofs li,.founder-proofs .diploma { display:flex; align-items:center; gap:14px; }
.founder-proofs .diploma { margin:0; }
.founder-proofs svg { width:30px; height:28px; flex:none; }
.founder-proofs small { color:var(--sage); text-decoration:underline; text-underline-offset:3px; }
.about .geo-line { margin:22px 0 16px; }
.solution-list { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px 12px; margin:34px 0 16px; padding:0; list-style:none; }
.solution-list > li { min-width:0; }
.solution-plaque { position:relative; height:100%; min-height:144px; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; gap:6px; padding:16px clamp(12px,1.6vw,24px); border:1px solid var(--rim); border-radius:7px; background:linear-gradient(140deg,rgba(246,241,228,.085),rgba(20,43,82,.085)),var(--glass); }
.plaque-edge { position:absolute; inset:-1px; border:1px solid var(--gold); border-radius:inherit; opacity:0; pointer-events:none; }
.solution-plaque strong { font-weight:600; line-height:1.2; }
.solution-plaque .project-wordmark { font:700 clamp(1.45rem,2.5vw,2rem)/1 'Cormorant SC',Georgia,serif; }
.project-kind { color:var(--cream); font-size:.86rem; }
.solution-plaque small,.rights-note { font:400 .72rem/1.45 var(--mono); color:var(--sage); }
[data-page="predpriyatiya"] .solution-plaque { border-radius:3px; background:var(--glass); }
@media(max-width:860px) { .solution-list { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:420px) { .solution-plaque { min-height:136px; } }

.heading-beat { display:block; width:58px; height:14px; margin-top:7px; overflow:visible; color:var(--gold); }
.heading-beat path,.rail-bed,.rail-ink,.field-orbit rect { fill:none; stroke:var(--gold); stroke-width:1.25; vector-effect:non-scaling-stroke; stroke-linecap:round; stroke-linejoin:round; }
.heading-beat path { opacity:.82; }
.steps,.solution-list,.form-box { position:relative; }
.scroll-rail,.field-orbit { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; overflow:visible; }
.rail-bed { opacity:.30; }
.rail-dot { fill:var(--gold); }
.rail-node { fill:var(--stage); stroke:var(--gold); stroke-width:1; transform-box:fill-box; transform-origin:center; }
.steps.has-rail li::before { display:none; }
.field-orbit rect { opacity:0; }
.form-box { min-width:0; }
.b24-form-slot,.b24-form-slot .b24-form {
  color-scheme:dark;
  --b24-primary-color:var(--gold); --b24-primary-text-color:var(--stage);
  --b24-background-color:var(--stage); --b24-text-color:var(--cream);
  --b24-field-background-color:var(--green); --b24-field-focus-background-color:var(--stage);
  --b24-field-border-color:var(--rim); --b24-field-focus-border-color:var(--gold);
}
.b24-form-slot .b24-form-wrapper { background:var(--b24-background-color); color:var(--b24-text-color); }
.b24-form-slot :is(input:not([type=checkbox]):not([type=radio]),textarea,select) { color:var(--b24-text-color); background-color:var(--b24-field-background-color); border-color:var(--b24-field-border-color); }
.b24-form-slot .b24-form-btn { box-shadow:none; background-color:var(--b24-primary-color); color:var(--b24-primary-text-color); }
.b24-form-slot :focus-visible { outline:2px solid var(--gold); outline-offset:2px; }
.b24-documents { margin:14px 0 0; font-size:.78rem; }
.b24-documents a { display:inline-block; padding-block:8px; text-decoration:underline; text-underline-offset:3px; }


.rail-wrap { position:relative; margin:28px 0 16px; }
.rail-wrap > :is(.steps,.solution-list) { margin:0; }
.rail-wrap > .scroll-rail { z-index:1; }
.document .heading-beat { width:42px; }

.medallion { display:grid; place-items:stretch; flex:none; width:56px; height:56px; padding:3px; border:1px solid rgba(232,193,90,.60); border-radius:50%; }
.medallion > svg,.badge-face { width:100%; height:100%; border-radius:50%; }
.badge-face { display:grid; place-items:center; background:var(--cream); overflow:hidden; }
.badge-face img { display:block; width:76%; height:76%; object-fit:contain; }
.badge-avatar img { width:100%; height:100%; }
.badge-cross { background:linear-gradient(135deg,#1f5a41,#1d4486); }
.badge-magazin { background:radial-gradient(circle at 32% 28%,#2d6a4a,#17382a 72%); }
.case-file[open] > summary .medallion { box-shadow:0 0 14px rgba(232,193,90,.22); border-color:var(--gold); }
@media(max-width:540px) { .medallion { width:48px; height:48px; } #headline { font-size:clamp(32px,10.2vw,52px); } }
.route-map .live-signal,.page-trace .live-signal {
  fill:none; stroke-linecap:round; pointer-events:none;
  vector-effect:non-scaling-stroke; 
}
[data-still] .live-signal { display:none; }
@media(prefers-reduced-motion:reduce) { .live-signal { display:none; } }
@media(min-width:801px) and (max-width:1040px) { #headline { font-size:5.5vw; } }

.badge-dark .badge-face { background:#120f09; }
.solution-plaque .medallion { width:76px; height:76px; }
.solution-plaque .badge-face img { width:82%; height:82%; }
.solution-plaque .badge-avatar img { width:100%; height:100%; }
@media(max-width:540px) { .solution-plaque .medallion { width:60px; height:60px; } }
.contact-options { margin:16px 0 4px; }
.contact-options a { display:inline-block; padding-block:8px; text-decoration:underline; text-underline-offset:3px; }
