/* ==========================================================================
   VitaCoreX design system v5 — "Architecture of Order", variant B (the prepared kit)
   Spec: vitacorex-rebuild-work/worklogs/ART_DIRECTION_V5.md §3.3, §6, §9.
   Site-wide layer loaded after vcx-v2-shell.css and vcx-v2.css on every v2 page.
   Replaces vcx-v4.css ("Teal Intaglio" security-print motif, seals, glow, glass) entirely.
   Geometry: the 17:22 fold slope (US Letter diagonal). 1 px hairlines, 2 px accents.
   Radii: 2 px buttons/chips/tabs, 4 px cards/fields/panels, 0 on folded corners.
   No glow, no glass blur, no circles, no seals. Cool palette only (no beige/cream).
   ========================================================================== */
@property --fw { syntax: '<length>'; inherits: false; initial-value: 11px; }
@property --fh { syntax: '<length>'; inherits: false; initial-value: 14px; }

/* 0. TOKENS (AD §9.3) — the v2 names are re-pointed so every v2 component follows */
:root {
  --vx-ink: #0A2530; --vx-ink-2: #0E323E; --vx-abyss: #071B23;
  --vx-hdr: #123E4C; --vx-hdr-solid: #0A2530;
  --vx-on: #FFFFFF; --vx-on-2: #C9D8DC; --vx-on-3: #9FB7BE;
  --vx-accent: #2BB3C0; --vx-accent-hi: #34C5D2; --vx-accent-lo: #229BA8; --vx-accent-soft: #7CD2DE;
  --vx-link: #0F6E79; --vx-paper: #F4F7F8; --vx-white: #FFFFFF; --vx-frost: #E6F3F5;
  --vx-text: #22363D; --vx-muted: #4E6470;
  --vx-line: #D6E3E6; --vx-line-strong: #B7CBD0; --vx-line-input: #788F97;
  --vx-edge-lit: #A9E4EC; --vx-danger: #9B2C35; --vx-ok: #1F6B4F;
  --vx-ring: #0F6E79; --vx-focus: #0F6E79;
  --vx-disabled-bg: #EBF0F2; --vx-disabled-fg: #52666E;
  --vx-radius: 4px; --vx-radius-sm: 2px;
  --vx-shadow: 0 1px 0 rgb(10 37 48 / .06), 0 12px 24px -12px rgb(10 37 48 / .18);
  --vx-shadow-lift: 0 2px 0 rgb(10 37 48 / .05), 0 24px 40px -20px rgb(10 37 48 / .28);
  --vx-e-out: cubic-bezier(.16, 1, .3, 1); --vx-e-inout: cubic-bezier(.65, 0, .35, 1);
  --vx-k: 1;
  --vx-fs-sm: clamp(.875rem, .8518rem + .0952vw, .9375rem);
  --vx-fs-body: clamp(1rem, .9768rem + .0952vw, 1.0625rem);
  --vx-fs-lead: clamp(1.125rem, 1.0786rem + .1905vw, 1.25rem);
  --vx-fs-h2: clamp(1.875rem, 1.3643rem + 2.0952vw, 3.25rem);
  --vx-fs-h3: clamp(1.375rem, 1.2821rem + .381vw, 1.625rem);
  /* the dog-ear (M, 17×22) and the button flap (S, 11×14) */
  --vx-ear-w: 17px; --vx-ear-h: 22px;
}
html:lang(es) { --vx-k: .96; }
html:lang(ru) { --vx-k: .92; }

/* 1. TYPE (AD §9.1) */
body.vx { color: var(--vx-text); }
body.vx :is(h1, h2, h3) { text-wrap: balance; hyphens: manual; }
body.vx p { text-wrap: pretty; }
body.vx :is(h1, h2) { font-weight: 440; font-variation-settings: "opsz" 60; }
body.vx .vx-h2, body.vx main h2.vx-h2 { font-size: calc(var(--vx-fs-h2) * var(--vx-k)); line-height: 1.1; letter-spacing: -.01em; }
body.vx .vx-lead { font-size: var(--vx-fs-lead); line-height: 1.55; }
html:lang(ru) body.vx .vx-lead { line-height: 1.6; }
.vx-price__amount, .vx-ptable__price, .vx-ptable__num { font-variant-numeric: lining-nums tabular-nums; }
/* eyebrows: sentence case, a 1 px hairline instead of a bar */
.vx-eyebrow { text-transform: none; letter-spacing: 0; font: 600 13px/1.45 var(--vx-sans); color: var(--vx-link); }
.vx-eyebrow::before { width: 24px; height: 1px; opacity: 1; }

/* 2. BUTTONS (AD §9.4): plate painted by ::before (clipped), flap by ::after, the element is never clipped */
.vx-btn {
  --bg: var(--vx-accent); --fg: var(--vx-ink); --bd: transparent; --flap: var(--vx-accent-lo); --ring: var(--vx-ink);
  --fw: 11px; --fh: 14px;
  position: relative; isolation: isolate; min-height: 48px; padding: 0 20px; gap: 10px;
  border: 0; border-radius: var(--vx-radius-sm); background: none !important; color: var(--fg) !important; box-shadow: none !important;
  font: 600 15px/20px var(--vx-sans); letter-spacing: 0; white-space: nowrap; transform: none;
  transition: --fw 240ms var(--vx-e-out), --fh 240ms var(--vx-e-out), color 160ms ease, transform 160ms ease;
}
.vx-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -2; border-radius: var(--vx-radius-sm); background: var(--bg); box-shadow: inset 0 0 0 1px var(--bd);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--fh)), calc(100% - var(--fw)) 100%, 0 100%);
  transition: background-color 160ms ease, box-shadow 160ms ease;
}
.vx-btn::after {
  content: ""; position: absolute; right: 0; bottom: 0; z-index: -1; width: var(--fw); height: var(--fh);
  background: linear-gradient(to bottom right, var(--flap) 50%, transparent 50%);
}
.vx-btn:hover { --fw: 17px; --fh: 22px; transform: none; }
.vx-btn:active { --fw: 7px; --fh: 9px; transform: translateY(1px); }
.vx-btn:focus-visible { outline: 2px solid var(--ring) !important; outline-offset: 3px !important; }
.vx-btn .vx-arrow { transition: transform 240ms var(--vx-e-out); }
.vx-btn:hover .vx-arrow { transform: translateX(6px); }
.vx-btn--lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
/* 1 primary teal */
.vx-btn--accent:hover { --bg: var(--vx-accent-hi); }
.vx-btn--accent:active { --bg: var(--vx-accent-lo); }
/* 2 primary ink */
.vx-btn--dark { --bg: var(--vx-ink); --fg: #fff; --flap: var(--vx-accent); --ring: var(--vx-link); }
.vx-btn--dark:hover { --bg: var(--vx-ink-2); }
.vx-btn--dark:active { --bg: var(--vx-abyss); }
/* 3 outline light: the flap is a 1 px diagonal */
.vx-btn--line { --bg: #fff; --fg: var(--vx-ink); --bd: var(--vx-ink); --ring: var(--vx-link); }
.vx-btn--line:hover { --bg: var(--vx-frost); }
.vx-btn--line:active { --bg: var(--vx-line); }
/* 4 outline dark (was "ghost") */
.vx-btn--ghost { --bg: transparent; --fg: #fff; --bd: rgb(255 255 255 / .40); --ring: var(--vx-accent-soft); }
.vx-btn--ghost:hover { --bd: var(--vx-accent-soft); --bg: rgb(124 210 222 / .08); }
.vx-btn--ghost:active { --bg: rgb(124 210 222 / .16); }
.vx-btn--line::after, .vx-btn--ghost::after { background: linear-gradient(to bottom right, transparent calc(50% - .75px), var(--bd) calc(50% - .75px) calc(50% + .25px), transparent calc(50% + .25px)); }
/* teal focus ring flips on dark surfaces */
:is(.vx-hdr, .vx-drawer, .vx-mega, .vx-phero, .vx-band, .vx-ftr, .vx-consent, .vx-hero3, .vx6-hero, .vx-dark) .vx-btn--accent { --ring: var(--vx-accent-soft); }
/* disabled */
.vx-btn[disabled], .vx-btn[aria-disabled="true"] { --bg: var(--vx-disabled-bg); --fg: var(--vx-disabled-fg); --bd: transparent; --fw: 0px; --fh: 0px; opacity: 1; cursor: not-allowed; }
/* loading: the arrow becomes the fold spinner; width is locked by the element */
.vx-btn[aria-busy="true"] { pointer-events: none; }
.vx-btn[aria-busy="true"]::after { width: 14px; height: 14px; right: 50%; bottom: 50%; margin: 0 -7px -7px 0; z-index: 1; background: linear-gradient(to bottom right, transparent 45%, currentColor 45% 55%, transparent 55%); animation: vx5fold 900ms var(--vx-e-inout) infinite; }
@keyframes vx5fold { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.12); } }
@media (prefers-reduced-motion: reduce) { .vx-btn, .vx-btn::before { transition: none; } .vx-btn[aria-busy="true"]::after { animation: none; } }
@media (forced-colors: active) {
  .vx-btn::before { background: ButtonFace; box-shadow: inset 0 0 0 1px ButtonText; clip-path: none; }
  .vx-btn::after { display: none; }
  .vx-btn { color: ButtonText !important; }
}

/* text links on dark heroes, bands and footer */
:is(.vx-hero3, .vx-phero, .vx-band, .vx-ftr) .vx-link { color: var(--vx-accent-soft); }
:is(.vx-hero3, .vx-phero, .vx-band, .vx-ftr) .vx-link:hover { color: #fff; }

/* 3. CARDS (AD §9.5): white, 1 px line, 4 px radius, M dog-ear top-right. No shadow glow. */
.vx-scard, .vx-box, .vx-callout, .vx-pkg, .vx-irow, .vx-legend {
  border-radius: var(--vx-radius); box-shadow: none;
}
.vx-scard, .vx-box, .vx-callout {
  position: relative;
  clip-path: polygon(0 0, calc(100% - var(--vx-ear-w)) 0, 100% var(--vx-ear-h), 100% 100%, 0 100%);
  transition: border-color 160ms ease;
}
.vx-scard::after, .vx-box::after, .vx-callout::after {
  content: ""; position: absolute; top: 0; right: 0; width: var(--vx-ear-w); height: var(--vx-ear-h); pointer-events: none;
  background: linear-gradient(to top right, var(--vx-frost) calc(50% - .5px), var(--vx-line) calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px));
  transition: width 240ms var(--vx-e-out), height 240ms var(--vx-e-out);
}
.vx-scard:hover, .vx-scard:focus-within { border-color: var(--vx-line-strong); }
.vx-scard:hover::after, .vx-scard:focus-within::after { width: 22px; height: 28px; }
.vx-scard:hover, .vx-scard:focus-within { clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 28px, 100% 100%, 0 100%); }
.vx-scard { padding: 24px; border-color: var(--vx-line); }
.vx-scard h3 { font: 500 calc(var(--vx-fs-h3) * var(--vx-k))/1.2 var(--vx-serif); }
.vx-scard__actions { padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { .vx-scard, .vx-scard::after { transition: none; } }
@media (forced-colors: active) { .vx-scard, .vx-box, .vx-callout { clip-path: none; } .vx-scard::after, .vx-box::after, .vx-callout::after { display: none; } }

/* 4. SECTIONS */
.vx-section--tint { background: var(--vx-paper); }
.vx-section--tint::before { content: none !important; }
.vx-band { background: var(--vx-ink); }
.vx-band .vx-box { background: var(--vx-ink-2); border-color: rgb(124 210 222 / .25); color: var(--vx-on-2); }
.vx-band .vx-box::after { background: linear-gradient(to top right, var(--vx-accent-lo) calc(50% - .5px), rgb(124 210 222 / .45) calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px)); }
/* the fold mark: a 1 px rule with an M V-notch at column 1 (on the closing strip only — max 3 per page) */
.vx-strip { position: relative; background: var(--vx-paper); border-top: 0; }
.vx-strip::before {
  content: ""; position: absolute; top: 0; left: max(var(--vx-gutter, 24px), calc((100% - var(--vx-container, 1280px)) / 2 + var(--vx-gutter, 24px))); right: max(var(--vx-gutter, 24px), calc((100% - var(--vx-container, 1280px)) / 2 + var(--vx-gutter, 24px)));
  height: 23px; pointer-events: none;
  background:
    linear-gradient(var(--vx-line), var(--vx-line)) 34px 0 / 100% 1px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='23' viewBox='0 0 34 23'%3E%3Cpath d='M0 .5H.5L17 22 33.5 .5H34' fill='none' stroke='%23D6E3E6'/%3E%3C/svg%3E") 0 0 / 34px 23px no-repeat;
}
.vx-strip h2 { font: 440 clamp(1.5rem, 1.25rem + 1vw, 2rem)/1.15 var(--vx-serif); }

/* 5. HEADER (AD §9.6): solid, no blur, no glow; ink after scroll */
.vx-hdr { background: var(--vx-hdr); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid rgb(124 210 222 / .18); }
.vx-hdr.is-stuck { background: var(--vx-ink); box-shadow: none; border-bottom-color: rgb(124 210 222 / .22); }
.vx-nav > a, .vx-nav__trigger { font: 600 15px/1 var(--vx-sans); color: rgb(255 255 255 / .88); border-radius: var(--vx-radius-sm); }
.vx-nav > a:hover, .vx-nav__trigger:hover, .vx-nav > a[aria-current="page"], .vx-nav__menu[data-open="true"] .vx-nav__trigger { color: #fff; }
.vx-nav > a::after, .vx-nav__trigger::after { height: 1px; bottom: 6px; background: var(--vx-accent-soft); transition: transform 200ms var(--vx-e-out); }
/* active page: hairline + XS V notch (7×9) under the label */
.vx-nav > a[aria-current="page"]::before {
  content: ""; position: absolute; left: 50%; bottom: -3px; width: 7px; height: 9px; margin-left: -3.5px;
  background: var(--vx-accent-soft); clip-path: polygon(0 0, 100% 0, 50% 100%);
}
/* services trigger: the M notch (17×11 on the 17:22 slope) joins the open panel to its trigger */
.vx-nav__menu[data-open="true"] .vx-nav__trigger::before {
  content: ""; position: absolute; left: 50%; bottom: -17px; width: 17px; height: 11px; margin-left: -8.5px; z-index: 96;
  background: var(--vx-ink-2); clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.vx-hdr__phone { font: 600 15px/1 var(--vx-sans); }
.vx-hdr__cta { min-height: 44px; padding: 0 18px; }
/* language button = outline dark S; its menu: 44 px rows, active row with a teal rule and the V-tick */
.vx-lang__btn { min-height: 44px; border-radius: var(--vx-radius-sm); border: 1px solid rgb(255 255 255 / .40); background: transparent; font: 600 15px/1 var(--vx-sans); }
.vx-lang__btn:hover, .vx-lang[data-open="true"] .vx-lang__btn { border-color: var(--vx-accent-soft); background: rgb(124 210 222 / .08); }
.vx-lang__list { border-radius: var(--vx-radius); border: 1px solid var(--vx-line); box-shadow: var(--vx-shadow-lift); padding: 4px 0; }
.vx-lang__list button { min-height: 44px; border-radius: 0; border-left: 2px solid transparent; font: 600 15px/1 var(--vx-sans); }
.vx-lang__list button[aria-checked="true"] { border-left-color: var(--vx-accent); }
.vx-lang__list button[aria-checked="true"]::after {
  content: ""; width: 16px; height: 16px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 10.5 8 15.5 17 4' fill='none' stroke='%230F6E79' stroke-width='2'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.vx-lang__list button:hover[aria-checked="true"]::after, .vx-lang__list button:focus-visible[aria-checked="true"]::after { filter: brightness(4); }
.vx-menu-btn { border-radius: var(--vx-radius-sm); border: 1px solid rgb(255 255 255 / .40); background: transparent; }
.vx-menu-btn:hover { border-color: var(--vx-accent-soft); background: rgb(124 210 222 / .08); }

/* 6. MEGA MENU (AD §9.6): solid ink-2 panel, no blur, no photo; groups with prices on a fixed right track */
.vx-mega {
  background: var(--vx-ink-2); -webkit-backdrop-filter: none; backdrop-filter: none;
  border: 1px solid rgb(255 255 255 / .10); border-top: 0; border-radius: 0 0 var(--vx-radius) var(--vx-radius);
  box-shadow: 0 32px 48px -24px rgb(3 14 19 / .6);
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-areas: "documents personal court" "founders biz court" "foot foot foot" !important;
  gap: 8px 32px; padding: 28px 32px 20px;
}
.vx-nav__menu[data-open="true"] .vx-mega { animation: vx5MegaIn 200ms var(--vx-e-out) both; }
@keyframes vx5MegaIn { from { opacity: 0; } to { opacity: 1; } }
.vx-mega__feature { display: none !important; }
.vx-mega__group h3 { font: 500 18px/1.3 var(--vx-serif); color: #fff; letter-spacing: 0; padding: 0 0 10px; margin: 0 0 6px; border-bottom: 1px solid rgb(255 255 255 / .10); }
.vx-mega__group a { flex-direction: row !important; justify-content: space-between !important; align-items: baseline !important; gap: 16px !important; min-height: 40px; padding: 8px 0 !important; border-radius: 0; color: var(--vx-on-2); font: 500 15px/1.35 var(--vx-sans); }
.vx-mega__group a small { flex: none; white-space: nowrap !important; color: var(--vx-accent-soft); font: 600 15px/1.35 var(--vx-serif); font-variant-numeric: lining-nums tabular-nums; text-align: right; }
.vx-mega__group a:hover, .vx-mega__group a:focus-visible { background: none !important; color: #fff; text-decoration: underline; text-decoration-color: var(--vx-accent-soft); text-underline-offset: 6px; }
.vx-mega__plain a { justify-content: flex-start !important; }
.vx-mega__foot { border-top: 1px solid rgb(255 255 255 / .10); justify-content: space-between !important; align-items: center; padding-top: 16px; }
.vx-mega__foot a { color: var(--vx-accent-soft); font: 600 15px/1 var(--vx-sans); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; padding: 12px 0 !important; }
.vx-mega__foot a:hover { color: #fff; }
.vx-mega__foot .vx-btn { text-decoration: none; padding: 0 18px !important; }
.vx-mega__links { display: inline-flex; flex-wrap: wrap; gap: 4px 24px; }
.vx-mega__unsure { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; color: var(--vx-on-2); font: 500 15px/1.4 var(--vx-sans); }
body.vx::after { background: rgb(7 27 35 / .5); -webkit-backdrop-filter: none; backdrop-filter: none; }
.vx-mega a:focus-visible { outline: 2px solid var(--vx-accent-soft); outline-offset: 2px; }
@media (max-width: 80em) { .vx-mega { grid-template-areas: "documents personal court" "founders biz court" "foot foot foot" !important; } }

/* 7. MOBILE MENU (AD §9.6, M08): full-height ink sheet unfolding from a V notch */
.vx-drawer { background: var(--vx-ink); }
.vx-drawer[data-open="true"] { animation: vx5Unfold 220ms var(--vx-e-out) both; }
@keyframes vx5Unfold {
  from { clip-path: polygon(calc(100% - 64px) 0, calc(100% - 20px) 0, calc(100% - 42px) 28px); }
  to { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}
@media (prefers-reduced-motion: reduce) { .vx-drawer[data-open="true"] { animation: vx5Fade 120ms linear both; } }
@keyframes vx5Fade { from { opacity: 0; } to { opacity: 1; } }
.vx-drawer__lang { border: 0; border-radius: 0; padding: 0; margin: 4px 0 20px; }
.vx-drawer__lang p { color: var(--vx-on-3); font: 600 13px/1.45 var(--vx-sans); }
/* language segments = index tabs on a 1 px rule */
.vx-seg { gap: 4px; border-bottom: 1px solid rgb(124 210 222 / .35); }
.vx-seg button { min-height: 44px; border-radius: 4px 4px 0 0; border: 1px solid rgb(124 210 222 / .25); border-bottom: 0; font: 600 15px/1 var(--vx-sans); }
.vx-seg button[aria-pressed="true"] { background: var(--vx-accent); border-color: var(--vx-accent); color: var(--vx-ink); }
.vx-drawer h3 { font: 500 18px/1.3 var(--vx-serif); color: #fff; margin: 20px 0 4px; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / .10); }
.vx-drawer a { min-height: 56px; border-bottom: 1px solid rgb(255 255 255 / .06); font: 500 16px/1.3 var(--vx-sans); color: var(--vx-on-2); }
.vx-drawer a small { color: var(--vx-accent-soft); font: 600 15px/1 var(--vx-serif); font-variant-numeric: lining-nums tabular-nums; }
.vx-drawer__cta a { border-bottom: 0; }
.vx-drawer__cta .vx-btn { min-height: 52px; }

/* 8. COOKIE SLIP (AD §9.7): ink slip bottom-left, M dog-ear, two equal outline-dark buttons */
.vx-consent {
  left: 24px; right: auto; bottom: calc(24px + env(safe-area-inset-bottom)); width: min(488px, calc(100vw - 48px)); max-width: none; margin: 0;
  display: block; padding: 22px 24px 20px; border: 0; border-radius: var(--vx-radius);
  background: var(--vx-ink-2); box-shadow: 0 24px 40px -20px rgb(3 14 19 / .55), inset 0 0 0 1px rgb(124 210 222 / .18);
  clip-path: polygon(0 0, calc(100% - 17px) 0, 100% 22px, 100% 100%, 0 100%);
  font: 400 14px/22px var(--vx-sans); color: var(--vx-on-2);
  animation: vx5Rise 200ms var(--vx-e-out) both;
}
.vx-consent::after { content: ""; position: absolute; top: 0; right: 0; width: 17px; height: 22px; background: linear-gradient(to top right, var(--vx-accent-lo) 50%, transparent 50%); }
@keyframes vx5Rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .vx-consent { animation: vx5Fade 120ms linear both; } }
.vx-consent__short { display: none; }
.vx-consent__title { margin: 0 0 6px !important; font: 500 18px/1.3 var(--vx-serif); color: #fff; }
.vx-consent p { margin: 0; }
.vx-consent a { color: var(--vx-accent-soft); text-underline-offset: 3px; }
.vx-consent__actions { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.vx-consent .vx-btn { min-height: 48px; padding: 0 12px; font-size: 15px; width: 100%; }
@media (max-width: 47.99em) {
  /* compact bottom sheet: it must not cover the hero's primary button on a 390×844 first screen */
  .vx-consent { left: 8px; right: 8px; width: auto; bottom: 8px; padding: 16px 16px max(14px, env(safe-area-inset-bottom)); font-size: 13px; line-height: 20px; }
  .vx-consent__title, .vx-consent__full { display: none; }
  .vx-consent__short { display: block !important; }
  .vx-consent__short b { color: #fff; font-weight: 600; }
  .vx-consent__actions { margin-top: 12px; gap: 8px; }
  .vx-consent .vx-btn { min-height: 48px; padding: 4px 10px; font-size: 14px; line-height: 18px; white-space: normal; text-align: center; }
}
@media (max-width: 21.24em) { .vx-consent__actions { grid-template-columns: 1fr; } }

/* 9. FOOTER (AD §9.8): abyss floor, hinge line with an L notch, one ghost "in order." */
.vx-bandrule, .vx-ruler, .vx-ftr__gl { display: none !important; }
.vx-ftr { position: relative; overflow: hidden; background: var(--vx-abyss); color: var(--vx-on-2); }
.vx-ftr::before {
  content: ""; position: absolute; top: 0; left: max(var(--vx-gutter, 24px), calc((100% - var(--vx-container, 1280px)) / 2 + var(--vx-gutter, 24px))); right: 0;
  height: 45px; pointer-events: none;
  background:
    linear-gradient(rgb(124 210 222 / .22), rgb(124 210 222 / .22)) 68px 0 / 100% 1px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='68' height='45' viewBox='0 0 68 45'%3E%3Cpath d='M0 .5H1L34 44 67 .5H68' fill='none' stroke='%237CD2DE' stroke-opacity='.22'/%3E%3C/svg%3E") 0 0 / 68px 45px no-repeat;
}
.vx-ftr::after { content: none; }
.vx-ftr__ghost {
  position: absolute; right: -0.04em; bottom: -0.22em; margin: 0; z-index: 0; pointer-events: none; user-select: none;
  font: italic 400 clamp(112px, 5.2rem + 10vw, 240px)/1 var(--vx-serif); letter-spacing: -.02em; white-space: nowrap;
  color: rgb(124 210 222 / .06);
}
.vx-ftr__inner { position: relative; z-index: 1; padding-top: clamp(64px, 7vw, 96px); }
.vx-ftr a { color: var(--vx-on-2); }
.vx-ftr a:hover { color: #fff; }
.vx-ftr ul a { font: 400 15px/24px var(--vx-sans); }
.vx-ftr__grid h2, .vx-ftr h2 { font: 600 13px/1.45 var(--vx-sans) !important; color: var(--vx-accent-soft) !important; letter-spacing: 0 !important; }
.vx-ftr__statement { font: 440 clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem)/1.18 var(--vx-serif); color: #fff; max-width: 18ch; }
:root:lang(ru) .vx-ftr__statement, :root:lang(es) .vx-ftr__statement { max-width: 22ch; }
.vx-ftr__statement-sub { margin: 14px 0 0; color: var(--vx-on-2); font-size: var(--vx-fs-body); max-width: 40ch; }
.vx-ftr__phone { font: 600 28px/1.2 var(--vx-serif) !important; font-variant-numeric: lining-nums tabular-nums; color: #fff !important; }
.vx-ftr__phone svg { color: var(--vx-accent-soft); }
.vx-ftr__mail { color: var(--vx-accent-soft) !important; }
.vx-ftr__lead { border-bottom-color: rgb(255 255 255 / .08); }
.vx-ftr__general { color: var(--vx-on-2); font-size: 14px; }
.vx-ftr .vx-notice { border-left: 1px solid rgb(124 210 222 / .35); }
.vx-ftr .vx-notice h3 { color: var(--vx-on-3); font: 600 13px/1.45 var(--vx-sans); }
.vx-ftr .vx-notice p { color: var(--vx-on-2); font: 500 12px/1.6 var(--vx-sans); }
.vx-ftr__bottom { color: var(--vx-on-3); font-size: 13px; border-top-color: rgb(255 255 255 / .08); }

/* 10. INNER PAGE HEROES (AD §6): muted photo insert, text in columns 1–7, solid ink fact panel with an M dog-ear */
.vx-phero { background: var(--vx-ink); }
.vx-phero__img { filter: grayscale(.35); opacity: .5; mix-blend-mode: normal; }
.vx-phero::after { background: linear-gradient(90deg, rgb(10 37 48 / .94) 0%, rgb(10 37 48 / .82) 55%, rgb(10 37 48 / .6) 100%); }
.vx-phero::before { content: none !important; }
.vx-phero h1 { font-weight: 440; letter-spacing: -.012em; font-size: calc(clamp(2.125rem, 1.6rem + 2.2vw, 3.5rem) * var(--vx-k)); line-height: 1.06; }
.vx-phero__rule { display: none; } /* the eyebrow hairline is enough; a lone V reads as a check mark */
.vx-phero__aside {
  position: relative; background: var(--vx-ink-2) !important; border: 1px solid rgb(124 210 222 / .22) !important; border-radius: var(--vx-radius) !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: none !important; padding: 24px 24px 22px !important;
  clip-path: polygon(0 0, calc(100% - 17px) 0, 100% 22px, 100% 100%, 0 100%);
}
.vx-phero__aside::before { content: none !important; }
.vx-phero__aside::after {
  content: "" !important; position: absolute; top: 0; right: 0; width: 17px; height: 22px; inset: 0 0 auto auto; opacity: 1 !important;
  background: linear-gradient(to top right, var(--vx-accent-lo) calc(50% - .5px), rgb(124 210 222 / .5) calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px)) !important;
  -webkit-mask: none !important; mask: none !important; transform: none !important;
}
.vx-phero__art { display: block; width: calc(100% + 48px); height: auto; aspect-ratio: 384 / 200; margin: -24px -24px 18px; border-bottom: 1px solid rgb(124 210 222 / .18); background: var(--vx-ink-2); }
.vx-phero__aside .vx-price__amount { font: 600 clamp(1.75rem, 1.1071rem + 1.1429vw, 2.5rem)/1.1 var(--vx-serif); color: #fff; }
.vx-phero__aside .vx-eyebrow { color: var(--vx-accent-soft); }

/* 11. FORMS (AD §9.9) */
:where(body.vx) .vx-field :is(input[type], select, textarea) { min-height: 48px; border: 1px solid var(--vx-line-input); border-radius: var(--vx-radius); }
:where(body.vx) .vx-field textarea { min-height: 120px; }
:where(body.vx) .vx-field :is(input[type], select, textarea):focus { outline: 2px solid var(--vx-link); outline-offset: 2px; border-color: var(--vx-line-input); }
:where(body.vx) .vx-field[data-error] :is(input, select, textarea), :where(body.vx) .vx-field.is-error :is(input, select, textarea) { border-color: var(--vx-danger); box-shadow: inset 0 0 0 1px var(--vx-danger); }
@media (max-width: 47.99em) { :where(body.vx) .vx-field :is(input[type], select) { min-height: 52px; } }
/* option cards: selected = 2 px link border, teal dog-ear */
:where(body.vx) .vx-choice { position: relative; }
:where(body.vx) .vx-choice > span { border-radius: var(--vx-radius); border: 1px solid var(--vx-line-strong); }
:where(body.vx) .vx-choice input:checked + span { border: 2px solid var(--vx-link); background: var(--vx-frost);
  clip-path: polygon(0 0, calc(100% - 17px) 0, 100% 22px, 100% 100%, 0 100%); }
:where(body.vx) .vx-choice input:checked + span::after { content: ""; position: absolute; top: 0; right: 0; width: 17px; height: 22px; background: linear-gradient(to top right, var(--vx-accent) 50%, transparent 50%); }

/* 12. ACCESSIBILITY FIXES carried from v4 §9 (WCAG 1.4.11: 3:1 focus indicators and input outlines) */
.vx-lang__list, .vx-finder__list { --vx-ring: #0F6E79; }
:where(body.vx) :is(.vx-faq summary, .vx-switch button, .vx-chip, .vx-irow__more summary, .vx-est__field select, .vx-stepper button, .vx-lang__list button):focus-visible { outline-color: var(--vx-ring); }
:where(body.vx) :is(.vx-toggle input:focus-visible + .vx-toggle__track, .vx-seg2 input:focus-visible + span, .vx-choice input:focus-visible + span) { outline-color: var(--vx-ring); }
:where(body.vx) .vx-stepper button:disabled { color: var(--vx-disabled-fg); background: var(--vx-disabled-bg); }

/* 13. SMALL PIECES: chips, tags, tables, FAQ, team plates (square, never circular) */
.vx-chip, .vx-price__tag, .vx-tag { border-radius: var(--vx-radius-sm) !important; }
.vx-ptable { border-radius: var(--vx-radius); }
.vx-faq details { border-radius: var(--vx-radius); }
.vx-medal { position: relative; display: block; width: 96px; height: 96px; border-radius: 0 !important; background: var(--vx-ink-2); overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 17px) 0, 100% 22px, 100% 100%, 0 100%); }
.vx-medal::before, .vx-medal::after { content: none !important; }
.vx-medal .vx-portrait { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; border: 0 !important; box-shadow: none !important; }
.vx-medal__gl { display: none !important; }

/* 14. ITERATION 5 SERVICE BLOCKS (moved from v4 §11): deadline callout, record-to-apostille chain, state-fee table, ticks */
.vx-callout { max-width: 62rem; padding: clamp(22px, 3vw, 36px) clamp(22px, 3.4vw, 44px); background: #fff; border: 1px solid var(--vx-line); border-left: 2px solid var(--vx-accent); }
.vx-callout .vx-h2 { margin: 6px 0 12px; }
.vx-callout p { max-width: 68ch; margin: 0 0 12px; }
.vx-callout__self { padding-top: 14px; border-top: 1px solid var(--vx-line); color: var(--vx-muted); font-size: var(--vx-fs-sm); margin-bottom: 0 !important; }
.vx-callout a, .vx-source a { color: var(--vx-link); text-decoration: underline; text-underline-offset: 3px; }
.vx-chain { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 16px; }
@media (min-width: 37.5em) { .vx-chain { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .vx-chain { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.vx-chain__step { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: #fff; border: 1px solid var(--vx-line); border-radius: var(--vx-radius); }
.vx-chain__step h3 { font-size: 1.0625rem; margin: 2px 0 6px; }
.vx-chain__step p { margin: 0; color: var(--vx-muted); font-size: var(--vx-fs-sm); }
/* step marker: a V glyph instead of a numbered disc (the number stays for screen readers and order) */
.vx-chain__n { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 30px; color: var(--vx-link); font: 600 13px/1 var(--vx-sans); font-variant-numeric: tabular-nums;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='22' viewBox='0 0 34 22'%3E%3Cpath d='M1 1 17 21 33 1' fill='none' stroke='%232BB3C0' stroke-width='2'/%3E%3C/svg%3E") center bottom / 22px 14px no-repeat; padding-bottom: 14px; }
@media (min-width: 64em) { .vx-chain__step:not(:last-child)::after { content: ""; position: absolute; top: 36px; right: -17px; width: 18px; height: 1px; background: var(--vx-line-strong); } }
.vx-ptable--fees th[scope="col"]:first-child { width: 52%; }
.vx-ptable__num { white-space: nowrap; }
.vx-source { margin-top: 12px; color: var(--vx-muted); font-size: var(--vx-fs-sm); max-width: 72ch; }
.vx-ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.vx-ticks li { position: relative; padding-left: 28px; }
.vx-ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 10.5 8 15.5 17 4' fill='none' stroke='%230F6E79' stroke-width='2'/%3E%3C/svg%3E") 0 0 / 20px no-repeat; }
.vx-band .vx-ticks li::before { filter: brightness(2.2); }
.vx-box > .vx-btn { margin-top: 18px; }
@media (max-width: 47.5em) {
  .vx-ptable--fees, .vx-ptable--fees tbody { display: block; }
  .vx-ptable--fees caption { display: block; padding: 16px 16px 4px; font-size: 1.125rem; }
  .vx-ptable--fees thead { display: none; }
  .vx-ptable--fees tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--vx-line); }
  .vx-ptable--fees th[scope="row"] { grid-column: 1 / -1; border-bottom: 0; padding-bottom: 2px; }
  .vx-ptable--fees td { border-bottom: 0; padding-top: 4px; }
  .vx-ptable--fees td::before { content: attr(data-label) ": "; color: var(--vx-muted); }
}

/* 15. PAGE TRANSITIONS (M10) */
@view-transition { navigation: auto; }
.vx-hdr { view-transition-name: header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 160ms; }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* 16. PRICE MARKS: V glyphs on the 17:22 slope instead of discs (fixed = filled, from = outline, fees = dashed) */
.vx-pmark { width: 11px; height: 14px; border-radius: 0 !important; border: 0 !important; background: none !important; vertical-align: -.1em; }
.vx-pmark--fixed { background: var(--vx-accent-lo) !important; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.vx-pmark--quote { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='14' viewBox='0 0 11 14'%3E%3Cpath d='M1 1h9L5.5 12.6z' fill='none' stroke='%230F6E79' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px 14px no-repeat !important; }
.vx-pmark--free { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='14' viewBox='0 0 11 14'%3E%3Cpath d='M1 1h9L5.5 12.6z' fill='none' stroke='%230F6E79' stroke-width='1.4' stroke-dasharray='2 1.6'/%3E%3C/svg%3E") center / 11px 14px no-repeat !important; }
:is(.vx-phero, .vx-band) .vx-pmark--quote, :is(.vx-phero, .vx-band) .vx-pmark--free { filter: brightness(2.6) saturate(.6); }

/* 17. NO CIRCLES (owner: «кружок … ужас»): every round plate, dot and stamp becomes a square plate or a V glyph */
.vx-person__photo, .vx-person__mono, .vx-portrait { border-radius: var(--vx-radius) !important; box-shadow: none !important; }
.vx-path__icon { border-radius: var(--vx-radius) !important; }
.vx-path__icon::before, .vx-path__icon::after { border-radius: var(--vx-radius) !important; }
.vx-doc__seal, .vx-seal { display: none !important; }
.vx-track__dot { border-radius: var(--vx-radius) !important; }
.vx-track__dot::before { content: none !important; }
.vx-track__label::before { width: 9px; height: 11px; border-radius: 0; box-shadow: none; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.vx-legend__mark { width: 11px; height: 14px; border-radius: 0 !important; border: 0 !important; transform: none !important; background: none !important; }
.vx-legend__mark--fixed { background: var(--vx-accent) !important; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.vx-legend__mark--from { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='14' viewBox='0 0 11 14'%3E%3Cpath d='M1 1h9L5.5 12.6z' fill='none' stroke='%237CD2DE' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px 14px no-repeat !important; }
.vx-legend__mark--fees { background: linear-gradient(#B8D8DE, #B8D8DE) center / 11px 2px no-repeat !important; }
.vx-legend__mark--free { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='14' viewBox='0 0 11 14'%3E%3Cpath d='M1 1h9L5.5 12.6z' fill='none' stroke='%237CD2DE' stroke-width='1.4' stroke-dasharray='2 1.6'/%3E%3C/svg%3E") center / 11px 14px no-repeat !important; }

/* 18. ESTIMATOR TOTAL: the ledger's double rule instead of the v4 perforated stub */
.vx-est__stub { position: relative; margin-top: 20px; padding-top: 18px; border-top: 0; }
.vx-est__stub::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-top: 1px solid var(--vx-accent); border-bottom: 1px solid var(--vx-accent); }
.vx-est__stub::after { content: none; }
.vx-est__total { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.vx-est__total > span { font: 600 15px/1.3 var(--vx-sans); color: var(--vx-ink); }
.vx-est__total > strong { font: 600 clamp(1.75rem, 1.1071rem + 1.1429vw, 2.5rem)/1.1 var(--vx-serif); color: var(--vx-ink); font-variant-numeric: lining-nums tabular-nums; }
.vx-est__num { font-variant-numeric: lining-nums tabular-nums; }
.vx-est { border-radius: var(--vx-radius); }

/* 19. HEADER ROW ABOVE THE MOBILE SHEET: the menu button always stays clickable to close the sheet */
.vx-hdr__row { z-index: 91; }

/* ==========================================================================
   20. CRITIQUE ROUND 1 FIXES (worklogs/CRITIQUE_V5_R1.md)
   ========================================================================== */
/* B4 focus ring on dark surfaces: #7CD2DE (6.7:1 on the header) instead of the light-surface link teal */
.vx-hdr, .vx-drawer, .vx-ftr, .vx-mega, .vx-consent, .vx-phero, .vx-band, .vx5-hero, .vx5-rs, .vx5-ix--b2b { --vx-focus: #7CD2DE; --vx-ring: #7CD2DE; }
.vx-lang__list, .vx-finder__list { --vx-focus: #0F6E79; --vx-ring: #0F6E79; }
.vx-hdr a:focus-visible, .vx-hdr button:focus-visible, .vx-drawer a:focus-visible, .vx-drawer button:focus-visible, .vx-ftr a:focus-visible { outline: 2px solid var(--vx-focus) !important; outline-offset: 2px !important; border-radius: 2px; }

/* B1 services index: fixed price and action tracks, so every price starts on one x («под линеечку») */
.vx-irow { grid-template-columns: minmax(0, 1fr) 208px 176px; column-gap: 32px; }
.vx-irow__go .vx-btn { width: 100%; min-height: 44px; justify-content: space-between; }
.vx-irow__amount { font: 600 18px/24px var(--vx-serif); font-variant-numeric: lining-nums tabular-nums; }
@media (max-width: 64em) { .vx-irow { grid-template-columns: minmax(0, 1fr) 176px 160px; } }
@media (max-width: 47.99em) { .vx-irow { grid-template-columns: minmax(0, 1fr) auto; } .vx-irow__go .vx-btn { width: auto; } }
.vx-ptable__price { font: 600 18px/24px var(--vx-serif); font-variant-numeric: lining-nums tabular-nums; }
.vx-ptable__go { width: 200px; padding-right: 16px !important; }
.vx-ptable__go .vx-btn { max-width: 100%; }

/* M6 no glass on the services filter bar */
.vx-index__bar { background: #fff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: 0 0 0 100vmax #fff; clip-path: inset(0 -100vmax); }

/* M7 targets ≥ 44 px */
.vx-nav > a, .vx-nav__trigger { min-height: 44px; display: inline-flex; align-items: center; }
.vx-hdr__phone { min-height: 44px; align-items: center; }
@media (min-width: 27.51em) { .vx-hdr__phone { display: inline-flex; } }
@media (max-width: 27.5em) { .vx-hdr__phone { display: none !important; } } /* phones: the drawer has the phone row; keeps the wordmark clear of the language button */
.vx-ftr ul a, .vx-ftr__mail, .vx-ftr__all, .vx-link { display: inline-flex; align-items: center; min-height: 44px; }
.vx-ftr ul { gap: 0; }
.vx-ftr__phone { min-height: 44px; }
.vx-irow__more summary, .vx-index .vx-chip, .vx-chips .vx-chip { min-height: 44px; }
.vx-menu-btn { min-width: 44px; }

/* M4 form errors (§9.9): the JS marks invalid fields with aria-invalid */
:where(body.vx) .vx-field :is(input, select, textarea)[aria-invalid="true"] { border-color: var(--vx-danger); box-shadow: inset 0 0 0 1px var(--vx-danger); }
:where(body.vx) .vx-field [id^="err-"], :where(body.vx) .vx-field .vx-err { display: flex; align-items: flex-start; gap: 6px; min-height: 20px; font: 500 14px/20px var(--vx-sans); color: var(--vx-danger); }
:where(body.vx) .vx-field [id^="err-"]:not(:empty)::before, :where(body.vx) .vx-field .vx-err:not(:empty)::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5 15 14.5H1z' fill='none' stroke='%239B2C35' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M8 6v4M8 11.6v.9' stroke='%239B2C35' stroke-width='1.5'/%3E%3C/svg%3E") center / 16px no-repeat; }
#f-phone, :where(body.vx) .vx-field input[type="tel"] { min-height: 48px; height: 48px; }
/* M5 the request form keeps its height while the service script settles (no jump below it) */
html:not(.vx-ready) .vx-form-wrap { visibility: hidden; } /* painted once, after the service script has set the fields */
/* MINOR 18 alerts and error summaries: cool surfaces with a 2 px rule, no warm tint */
.vx-alert { border-radius: var(--vx-radius); }
.vx-alert--err { background: #fff; color: #6E1A23; border: 1px solid var(--vx-line); border-left: 2px solid var(--vx-danger); }
.vx-alert--info, .vx-alert--warn { background: var(--vx-frost); color: var(--vx-ink); border: 1px solid var(--vx-line); border-left: 2px solid var(--vx-link); }
.vx-alert--ok { background: #fff; color: #144A35; border: 1px solid var(--vx-line); border-left: 2px solid var(--vx-ok); }
/* MINOR 17 order status: reserve the status block so the footer does not jump */
#vx-status { min-height: 120px; }

/* M9 inner page heroes: solid ink, no stock photo; text and panel start on the same line; 12-column grid */
.vx-phero__img { display: none !important; }
.vx-phero::after { background: none !important; }
.vx-phero { background: var(--vx-ink); border-bottom: 1px solid rgb(124 210 222 / .14); }
.vx-phero__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: start; padding-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(48px, 5vw, 80px); }
.vx-phero__inner > :first-child { grid-column: 1 / 8; }
.vx-phero__aside { grid-column: 8 / 13; }
@media (max-width: 63.99em) { .vx-phero__inner { grid-template-columns: minmax(0, 1fr); row-gap: 32px; } .vx-phero__inner > :first-child, .vx-phero__aside { grid-column: 1 / -1; } }

/* MINOR 1 three-up rows and FAQ on the 12-column lines */
.vx-detail, .vx-team { column-gap: 32px; }
.vx-variants { column-gap: 32px; }
@media (min-width: 64em) {
  .vx-faq2 { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
  .vx-faq2__aside { grid-column: 1 / 5; }
  .vx-faq2 > :last-child { grid-column: 6 / 13; }
}
.vx-narrow { max-width: 800px; }
/* MINOR 2 stepped gutters: 16 / 24 / 32 */
:root { --vx-gutter: 16px; }
@media (min-width: 48em) { :root { --vx-gutter: 24px; } }
@media (min-width: 64em) { :root { --vx-gutter: 32px; } }

/* MINOR 6 retired radii */
.vx-finder__box, .vx-finder__box input { border-radius: var(--vx-radius) !important; }
.vx-seg2 span, .vx-stepper, :where(body.vx) select { border-radius: var(--vx-radius) !important; }
.vx-toggle__track { border-radius: 2px !important; }
.vx-toggle__track::after { border-radius: 1px !important; }

/* MINOR 7 the language button is words only (no globe) */
.vx-lang__btn > svg:first-child { display: none; }

/* MINOR 8 services trigger marked on services pages */
.vx-nav__trigger[aria-current]::before {
  content: ""; position: absolute; left: 50%; bottom: -3px; width: 7px; height: 9px; margin-left: -3.5px;
  background: var(--vx-accent-soft); clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.vx-nav__trigger[aria-current]::after { transform: scaleX(1); }

/* MINOR 9 mega: centred button label, a visible 17×22 notch with a hairline edge */
.vx-mega__foot .vx-btn { display: inline-flex; align-items: center; min-height: 48px; }
.vx-nav__menu[data-open="true"] .vx-nav__trigger::before { bottom: -18px; width: 34px; height: 22px; margin-left: -17px;
  background: linear-gradient(var(--vx-ink-2), var(--vx-ink-2)); clip-path: polygon(50% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 -1px 0 rgb(255 255 255 / .10)); }

/* 21. PREVIEW BADGE (non-production only): a fixed corner note instead of a top ribbon, so it never shifts the layout */
.vx-preview-ribbon { position: fixed !important; top: auto !important; left: auto !important; right: 12px; bottom: 12px; z-index: 130; width: auto; max-width: min(300px, calc(100vw - 24px));
  margin: 0 !important; padding: 6px 10px !important; border-radius: 2px; background: #3B1F4F !important; color: #fff !important; font: 600 12px/16px var(--vx-sans) !important; text-align: left !important;
  box-shadow: 0 8px 20px -10px rgb(0 0 0 / .5); pointer-events: none; opacity: .92; }
@media (max-width: 47.99em) { .vx-preview-ribbon { right: 8px; bottom: 8px; max-width: 180px; line-height: 15px !important; padding: 4px 8px !important; } }
body:has(.vx-consent) .vx-preview-ribbon, body.vx-drawer-open .vx-preview-ribbon { display: none !important; }

/* ==========================================================================
   22. v6 CINEMA (owner 2026-10-15): full-screen darkened Tampa video on home, darkened landscapes on inner pages.
   Reference technique (Robins Kaplan): the city footage is the protagonist, framed by one brand shape: here a slanted
   brighter window on the 17:22 slope with hairlines; everything else stays dark and quiet. No drawings, no kit.
   ========================================================================== */
.vx6-hero { --vx-focus: #7CD2DE; --vx-ring: #7CD2DE; position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(640px, calc(100svh - 72px), 920px); overflow: hidden; background: #071B23; color: #fff; }
.vx6-hero__media { position: absolute; inset: 0; z-index: -1; background: #071B23 url(/assets/img/hero-01-poster.jpg) center / cover no-repeat; }
.vx6-hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 900ms ease; filter: saturate(.8) contrast(1.04); }
.vx6-hero__media video.is-on { opacity: 1; }
.vx6-hero__shade { position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(7 27 35 / .88) 0%, rgb(7 27 35 / .72) 34%, rgb(7 27 35 / .28) 58%, rgb(7 27 35 / .08) 100%),
    linear-gradient(0deg, rgb(7 27 35 / .92) 0%, rgb(7 27 35 / 0) 32%),
    linear-gradient(180deg, rgb(7 27 35 / .55) 0%, rgb(7 27 35 / 0) 18%); }
.vx6-hero__window { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vx6-hero__veil { fill: rgb(7 27 35 / .38); }
.vx6-hero__line { fill: none; stroke: rgb(255 255 255 / .62); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.vx6-hero__line--slope { stroke: rgb(124 210 222 / .9); }
@media (prefers-reduced-motion: no-preference) {
  .vx6-hero__line { animation: vx6draw 1200ms var(--vx-e-out) 300ms both; }
  .vx6-hero__line--slope { animation-delay: 150ms; }
  .vx6-hero__inner > * { animation: vx6rise 700ms var(--vx-e-out) both; }
  .vx6-hero__h1 { animation-delay: 60ms !important; } .vx6-hero__lead { animation-delay: 140ms !important; } .vx6-hero__ctas { animation-delay: 220ms !important; } .vx6-hero__b2b { animation-delay: 280ms !important; }
}
@keyframes vx6draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes vx6rise { from { transform: translateY(14px); } to { transform: none; } } /* motion only: text is readable from 0 ms even if animations never run */
.vx6-hero__inner { position: relative; width: 100%; padding-top: clamp(72px, 12vh, 150px); padding-bottom: clamp(40px, 6vh, 72px); }
.vx6-hero__inner > * { max-width: 640px; }
.vx6-hero__cred { display: flex; align-items: center; gap: 12px; margin: 0 0 28px; color: var(--vx-on-3); font: 500 13px/20px var(--vx-sans); }
.vx6-hero__cred::before { content: ""; width: 34px; height: 1px; background: var(--vx-accent-soft); }
.vx6-hero__h1 { margin: 0; color: #fff; font: 440 calc(clamp(2.875rem, 1.65rem + 4.6vw, 6rem) * var(--vx6-k, 1))/1.0 var(--vx-serif); letter-spacing: -.022em; text-wrap: balance; max-width: 11.5em !important; }
html:lang(ru) .vx6-hero__h1 { --vx6-k: .84; line-height: 1.04; letter-spacing: -.012em; }
html:lang(es) .vx6-hero__h1 { --vx6-k: .9; line-height: 1.02; }
.vx6-hero__h1 em { font-style: italic; color: var(--vx-accent-soft); white-space: nowrap; }
.vx6-hero__lead { margin: 24px 0 0; color: var(--vx-on-2); font: 400 var(--vx-fs-lead)/1.55 var(--vx-sans); max-width: 36em !important; }
.vx6-hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.vx6-hero__b2b { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 18px; color: var(--vx-accent-soft); font: 600 15px/20px var(--vx-sans); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.vx6-hero__b2b:hover { color: #fff; }
.vx6-hero__b2b .vx-arrow { width: 16px; height: 16px; }
/* the service bar: four quick paths with prices, on one hairline */
.vx6-hero__bar { position: relative; border-top: 1px solid rgb(255 255 255 / .14); background: rgb(7 27 35 / .78); }
.vx6-ticker { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vx6-ticker li + li { border-left: 1px solid rgb(255 255 255 / .12); }
.vx6-ticker a { display: flex; flex-direction: column; gap: 4px; min-height: 84px; justify-content: center; padding: 16px 24px; color: #fff; text-decoration: none; transition: background-color 160ms ease; }
.vx6-ticker li:first-child a { padding-left: 0; }
.vx6-ticker a:hover { background: rgb(124 210 222 / .08); }
.vx6-ticker a:hover .vx6-ticker__l { text-decoration: underline; text-underline-offset: 5px; }
.vx6-ticker__l { font: 600 15px/20px var(--vx-sans); }
.vx6-ticker__p { color: var(--vx-accent-soft); font: 600 18px/24px var(--vx-serif); font-variant-numeric: lining-nums tabular-nums; }
.vx6-hero .vx5-hero__pause { position: absolute; right: var(--vx-gutter); top: 20px; z-index: 2; }
@media (max-width: 63.99em) {
  .vx6-hero__window { display: none; }
  .vx6-hero__shade { background: linear-gradient(90deg, rgb(7 27 35 / .82), rgb(7 27 35 / .5)), linear-gradient(0deg, rgb(7 27 35 / .92) 0%, rgb(7 27 35 / 0) 40%); }
  .vx6-ticker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vx6-ticker li:nth-child(3) { border-left: 0; }
  .vx6-ticker li:nth-child(n+3) { border-top: 1px solid rgb(255 255 255 / .12); }
  .vx6-ticker li:nth-child(3) a { padding-left: 0; }
}
@media (max-width: 47.99em) {
  .vx6-hero { min-height: 0; }
  .vx6-hero__inner { padding-top: 40px; padding-bottom: 32px; }
  .vx6-hero__cred { margin-bottom: 20px; }
  .vx6-hero__h1 { font-size: calc(2.75rem * var(--vx6-k, 1)); }
  .vx6-hero__ctas .vx-btn { flex: 1 1 100%; }
  .vx6-ticker a { min-height: 72px; padding: 12px 12px 12px 16px; }
  .vx6-ticker li:nth-child(odd) a { padding-left: 0; }
}

/* inner page heroes: the page darkened landscape behind, text on the left, the solid price panel on the right */
.vx-phero__img { display: block !important; position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: 1 !important; filter: saturate(.85); }
.vx-phero::after { content: "" !important; display: block; background:
    linear-gradient(90deg, rgb(7 27 35 / .9) 0%, rgb(7 27 35 / .76) 42%, rgb(7 27 35 / .42) 72%, rgb(7 27 35 / .3) 100%),
    linear-gradient(0deg, rgb(7 27 35 / .6) 0%, rgb(7 27 35 / 0) 45%) !important; }
.vx-phero { min-height: clamp(480px, 62vh, 640px); display: flex; align-items: stretch; }
.vx-phero > .vx-phero__inner { width: 100%; align-items: end !important; padding-top: clamp(96px, 14vh, 160px) !important; }
.vx-phero__art { display: none !important; }
.vx-phero__aside { background: rgb(14 50 62 / .94) !important; }
@media (max-width: 63.99em) { .vx-phero::after { background: linear-gradient(180deg, rgb(7 27 35 / .55), rgb(7 27 35 / .88)) !important; } .vx-phero { min-height: 0; } }

/* v6 logic: the mega menu in business order (court first, translations and apostille as supporting services last) */
.vx-mega__group--court { grid-area: court; }
.vx-mega__group--founders { grid-area: founders; }
.vx-mega__group--personal { grid-area: personal; }
.vx-mega__group--documents { grid-area: documents; }
.vx-mega__group--biz { grid-area: biz; }
.vx-mega { grid-template-areas: "court biz founders" "court personal documents" "foot foot foot" !important; }
@media (max-width: 80em) { .vx-mega { grid-template-areas: "court biz founders" "court personal documents" "foot foot foot" !important; } }
/* hero pause button never overlaps the credential line */
@media (max-width: 63.99em) { .vx6-hero__cred { padding-right: 56px; } }

/* 23. CLS: the hero bar keeps one height while the web fonts arrive (prices may re-wrap inside) */
@media (max-width: 47.99em) {
  .vx6-ticker a { height: 112px; min-height: 0; overflow: hidden; }
  .vx6-ticker__p { font-size: 16px; line-height: 21px; }
}
@media (min-width: 48em) { .vx6-ticker a { height: 84px; min-height: 0; } }
.vx-ftr__statement br { display: none; }

/* 24. CAREERS: role cards on the 12-column grid, the application form in a readable measure */
.vx-jobs { display: grid; gap: 24px 32px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 63.99em) { .vx-jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 47.99em) { .vx-jobs { grid-template-columns: minmax(0, 1fr); } }
.vx-job { display: flex; flex-direction: column; }
.vx-job h3 { font: 500 calc(var(--vx-fs-h3) * var(--vx-k))/1.2 var(--vx-serif); margin: 0 0 6px; }
.vx-job__meta { margin: 0 0 14px; color: var(--vx-muted); font: 500 14px/1.45 var(--vx-sans); }
.vx-job h4 { margin: 14px 0 6px; font: 600 13px/1.45 var(--vx-sans); color: var(--vx-link); }
.vx-job .vx-ticks { margin-top: 4px; }
.vx-job p { margin: 0; }
.vx-job > .vx-btn { margin-top: auto; align-self: flex-start; }
.vx-job > p + .vx-btn, .vx-job > ul + .vx-btn { margin-top: 20px; }
.vx-jobs__form { max-width: 760px; display: grid; gap: 4px; }
.vx-jobs__form .vx-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
@media (max-width: 47.99em) { .vx-jobs__form .vx-row { grid-template-columns: minmax(0, 1fr); } }
.vx-jobs__form button { justify-self: start; margin-top: 12px; }
.vx-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* 25. Icons inside buttons always have a fixed size (the phone button in the mobile menu lost its size with v4) */
.vx-btn svg, .vx-btn > svg:not(.vx-arrow) { width: 18px; height: 18px; flex: none; }
.vx-drawer__cta .vx-btn { gap: 10px; }
.vx-hdr__phone svg, .vx-ftr__phone svg { width: 18px; height: 18px; flex: none; }
.vx-drawer__cta .vx-btn { justify-content: center; }

/* 26. Owner request 2026-10-15: "in order" / «в порядок» / «en orden» in signal red — the one warm accent on the site.
   #FF4D4D on ink #071B23 = 5.4:1; the soft shadow keeps it readable over the brightest video frames */
:root { --vx-signal: #FF4D4D; }
.vx6-hero__h1 em, .vx-ftr__statement em { color: var(--vx-signal); text-shadow: 0 0 2px rgb(7 27 35 / .55), 0 0 14px rgb(7 27 35 / .75), 0 1px 30px rgb(7 27 35 / .6); }
@media (forced-colors: active) { .vx6-hero__h1 em, .vx-ftr__statement em { color: CanvasText; text-shadow: none; } }

/* 27. Critique round 2 fixes (2026-10-15) */
/* team: education line under the role */
.vx-person__edu { margin: 10px 0 12px; padding-top: 10px; border-top: 1px solid var(--vx-line); color: var(--vx-text); font: 500 .875rem/1.45 var(--vx-sans); }
/* focus on the hero link and the price bar: the brand ring, not the browser default */
.vx6-hero__b2b:focus-visible, .vx6-ticker a:focus-visible { outline: 2px solid var(--vx-accent-soft); outline-offset: 2px; }
/* the slanted window only where the 17:22 slope clears the text (from 1280); below, the same veil covers the whole frame */
@media (max-width: 68.74em) {
  .vx6-hero__window { display: none; }
  .vx6-hero__shade { box-shadow: inset 0 0 0 100vmax rgb(7 27 35 / .38); }
}
/* small text over imagery on phones stays above 4.5:1 */
@media (max-width: 47.99em) {
  .vx6-hero__cred { color: var(--vx-on-2); }
  .vx6-hero__shade { background: linear-gradient(90deg, rgb(7 27 35 / .86), rgb(7 27 35 / .66)), linear-gradient(0deg, rgb(7 27 35 / .92) 0%, rgb(7 27 35 / 0) 40%); }
}
@media (max-width: 63.99em) { .vx-phero::after { background: linear-gradient(180deg, rgb(7 27 35 / .72), rgb(7 27 35 / .9)) !important; } }
/* action labels fit their buttons in RU/ES */
@media (min-width: 64.01em) { .vx-irow { grid-template-columns: minmax(0, 1fr) 208px 192px; } }
@media (min-width: 48em) and (max-width: 64em) { .vx-irow { grid-template-columns: minmax(0, 1fr) 160px 176px; } }
/* 3-up cards on the 32 px gutter; prices of one row on one line */
.vx-cards { column-gap: 32px; }
@media (min-width: 48em) { .vx-cards .vx-scard h3 { min-height: 2lh; } }
/* footer social links are real targets */
.vx-ftr__social a { min-height: 44px; display: inline-flex; align-items: center; }
/* the dev-only preview badge sits under the header, clear of the hero buttons and prices */
.vx-preview-ribbon { top: 80px !important; bottom: auto !important; }
/* owner screenshots 2026-10-15: nothing may run over a neighbour. The price may take a second line; the action column fits the longest RU/ES label;
   if a label is ever longer than its button, it wraps inside the button instead of spilling out */
.vx-ptable td.vx-ptable__price { white-space: normal; overflow-wrap: normal; text-wrap: balance; }
.vx-ptable th:nth-child(4), .vx-ptable td:nth-child(4), .vx-ptable__go { width: 232px; }
.vx-ptable__go .vx-btn, .vx-irow .vx-btn { white-space: normal; text-wrap: balance; text-align: center; line-height: 1.25; }
@media (max-width: 47.5em) { .vx-ptable__go { width: auto; } }
/* mobile menu at 320: a long price unit takes a second line instead of running past the sheet edge */
.vx-drawer a > span { min-width: 0; }
.vx-drawer a small { white-space: normal; text-align: right; max-width: 8.5em; flex: none; }
/* R2 M7: on phones the price-type legend shrinks to one compact key, so the first prices reach the first screen */
@media (max-width: 47.99em) {
  .vx-phero__aside.vx-legend { padding: 14px 16px !important; }
  .vx-legend .vx-legend__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .vx-legend dl { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; }
  .vx-legend dl > div { margin: 0; padding: 0; border: 0; }
  .vx-legend dt { margin: 0; font-size: 14px; line-height: 20px; }
  .vx-legend dd { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .vx-phero--index .vx-phero__inner { padding-top: 88px !important; padding-bottom: 20px !important; gap: 20px; }
}
/* phones: one-column grids never grow wider than the screen because of a long word or a fixed-width child */
@media (max-width: 47.99em) {
  .vx-form-wrap, .vx-detail, .vx-band__grid, .vx-cards { grid-template-columns: minmax(0, 1fr) !important; }
  .vx-form-wrap > *, .vx-detail > *, .vx-band__grid > *, .vx-cards > * { min-width: 0; }
}
/* price list between 768 and 1024: the price column is wider, so «Цена по смете» / "Individual quote" never runs into the next column */
@media (min-width: 47.51em) and (max-width: 64em) {
  .vx-ptable th:nth-child(1), .vx-ptable td:nth-child(1) { width: 28%; }
  .vx-ptable th:nth-child(2), .vx-ptable td:nth-child(2) { width: 22%; }
  .vx-ptable th:nth-child(4), .vx-ptable td:nth-child(4), .vx-ptable__go { width: 196px; }
}
@media (max-width: 47.5em) { .vx-ptable caption { display: block; width: auto; padding: 16px 16px 8px; text-align: left; } }

/* 28. Financial Recovery v2: the rollout rate block and the retainer promotion */
.vx-rate { display: grid; gap: 12px; margin: 28px 0 0; padding-top: 22px; border-top: 1px solid rgb(124 210 222 / .25); }
.vx-rate__row { display: grid; grid-template-columns: clamp(6.5rem, 4.6rem + 5vw, 9.5rem) minmax(0, 1fr); align-items: baseline; column-gap: 20px; margin: 0; }
.vx-rate__n { color: #fff; font: 440 clamp(3rem, 2.2rem + 2.6vw, 4.5rem)/1 var(--vx-serif); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.02em; }
.vx-rate__row--alt .vx-rate__n { font-size: clamp(2rem, 1.6rem + 1.2vw, 2.75rem); }
.vx-rate__row--alt .vx-rate__n { color: var(--vx-accent-soft); }
.vx-rate__t { color: var(--vx-on-2); font: 500 1rem/1.4 var(--vx-sans); max-width: 26ch; }
.vx-rate__note { margin: 18px 0 0; color: var(--vx-on-3); font-size: .9375rem; }
.vx-band .vx-ticks li { color: var(--vx-on-2); }
.vx-rate__side { align-self: end; }
.vx-rate__side .vx-ticks { margin: 0 0 28px; }
#extras { margin-top: 32px; }
.vx-promo { margin-top: 32px; padding: 24px 28px; border-top: 2px solid var(--vx-accent); }
.vx-promo h3 { margin: 6px 0 8px; color: var(--vx-ink); font: 480 1.375rem/1.3 var(--vx-serif); }
.vx-promo p { max-width: 64ch; margin: 0 0 16px; }
@media (max-width: 47.99em) { .vx-promo { padding: 20px; } }

/* 29. Menu group headings stand apart (owner 2026-10-15): a framed plate like the home price-list tabs — hairline frame, teal edge,
   brand dog-ear — and a soft glow on the group you are in. No numbering (owner: never number groups). Plates fade in one after another. */
.vx-mega__group { position: relative; padding-top: 18px !important; }
.vx-mega__group h3, .vx-drawer h3 {
  position: relative; display: block; margin: 0 0 12px !important; padding: 11px 36px 11px 16px !important;
  color: #fff; font: 500 clamp(1.125rem, 1rem + .35vw, 1.3125rem)/1.25 var(--vx-serif) !important; letter-spacing: -.005em;
  background: linear-gradient(90deg, rgb(124 210 222 / .12), rgb(124 210 222 / .04)); border: 1px solid rgb(124 210 222 / .24) !important;
  box-shadow: inset 3px 0 0 var(--vx-accent);
  transition: box-shadow .22s ease, border-color .22s ease, background-color .22s ease;
  --vx-plate-bg: var(--vx-ink-2);
}
.vx-drawer h3 { --vx-plate-bg: var(--vx-ink); }
/* the dog-ear: the corner is covered with the panel colour (no clip-path, so the glow is not cut off), then the fold */
.vx-mega__group h3::before, .vx-drawer h3::before { content: ""; position: absolute; top: -1px; right: -1px; width: 15px; height: 15px;
  background: linear-gradient(225deg, var(--vx-plate-bg) 50%, transparent 50%); }
.vx-mega__group h3::after, .vx-drawer h3::after { content: ""; position: absolute; top: -1px; right: -1px; width: 15px; height: 15px;
  background: linear-gradient(225deg, transparent 50%, rgb(124 210 222 / .4) 50%); }
/* the group you are in lights up softly */
.vx-mega__group:hover h3, .vx-mega__group:focus-within h3 { border-color: rgb(124 210 222 / .5) !important;
  box-shadow: inset 3px 0 0 var(--vx-accent-hi), 0 0 0 1px rgb(124 210 222 / .18), 0 10px 28px -12px rgb(43 179 192 / .55); }
.vx-mega__group a { color: var(--vx-on-2) !important; font-size: 16px; }
.vx-mega__group a:hover, .vx-mega__group a:focus-visible { color: #fff !important; }
.vx-mega__group a small { font-size: 15px; }
.vx-drawer h3 { margin: 26px 0 8px !important; }
.vx-drawer li a { color: var(--vx-on-2); }
/* plates arrive one after another when the menu opens */
@media (prefers-reduced-motion: no-preference) {
  @keyframes vxPlateIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  .vx-nav__menu[data-open="true"] .vx-mega__group h3 { animation: vxPlateIn .32s cubic-bezier(.2, .7, .2, 1) both; }
  .vx-nav__menu[data-open="true"] .vx-mega__group:nth-child(2) h3 { animation-delay: .05s; }
  .vx-nav__menu[data-open="true"] .vx-mega__group:nth-child(3) h3 { animation-delay: .1s; }
  .vx-nav__menu[data-open="true"] .vx-mega__group:nth-child(4) h3 { animation-delay: .15s; }
  .vx-nav__menu[data-open="true"] .vx-mega__group:nth-child(5) h3 { animation-delay: .2s; }
  .vx-drawer[data-open="true"] h3 { animation: vxPlateIn .32s cubic-bezier(.2, .7, .2, 1) both; }
}
/* the dev-only preview badge never sits on an open menu */
body:has(.vx-nav__menu[data-open="true"]) .vx-preview-ribbon, body:has(.vx-drawer[data-open="true"]) .vx-preview-ribbon { visibility: hidden; }

/* 30. The mega menu always fits the window (owner 2026-10-15: it ran off the bottom on a laptop):
   never taller than the space under the header, scrolls inside if it must, the bottom row stays pinned; compact rows on short screens */
.vx-mega { max-height: calc(100vh - 84px); max-height: calc(100dvh - 84px); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgb(124 210 222 / .35) transparent; padding-bottom: 0 !important; }
.vx-mega__foot { position: sticky; bottom: 0; z-index: 2; background: var(--vx-ink-2); padding-bottom: 18px; box-shadow: 0 -14px 18px -14px rgb(3 14 19 / .7); }
@media (min-width: 64.01em) and (max-height: 62em) {
  .vx-mega { padding-top: 16px !important; row-gap: 2px !important; }
  .vx-mega__group { padding-top: 10px !important; }
  .vx-mega__group h3 { padding: 8px 32px 8px 14px !important; margin-bottom: 4px !important; font-size: 1.0625rem !important; }
  .vx-mega__group a { min-height: 32px; padding: 5px 0 !important; font-size: 15px; }
  .vx-mega__group a small { font-size: 14px; }
  .vx-mega__foot { padding-top: 10px; padding-bottom: 12px; }
  .vx-mega__foot a { padding: 8px 0 !important; }
  .vx-mega__foot .vx-btn { min-height: 44px; }
}

/* 31. Media curation (2026-10-15): the hero segments and the inner-page stills carry one baked-in cool grade, so the CSS grade is off */
.vx6-hero__media video { filter: none; }
.vx-phero__img { filter: none !important; }

/* 32. Price lists (owner 2026-10-15: the guide line ran through «Узнать цену»): every action button in a price table
   has one width, so the buttons line up on both edges and the alignment guide stays clear of all of them */
@media (min-width: 47.51em) {
  .vx-ptable td.vx-ptable__go .vx-btn { width: 100%; justify-content: center; }
}

/* 33. Phones never scroll sideways (owner 2026-10-15: on iPhone the page drifted when dragged and could be zoomed out).
   Safari lets the selected text of a <select> spill out of the control — a long option such as
   «Пакет документов на подачу small claims — от $199» made the page 462 px wide on a 390 px screen.
   The control now clips its own text, and the page itself never grows wider than the screen
   (clip, not hidden: no new scroll container, so the sticky header keeps working). */
html, body { max-width: 100%; overflow-x: clip; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }
/* Safari spills the chosen text of a <select> outside the control; paint containment keeps it inside the box
   (clipping the control's own overflow or max-width does not help in WebKit — verified by the iPhone tester) */
select { max-width: 100%; contain: paint; }
.vx-field, .vx-est__field { min-width: 0; }
.vx-ftr__ghost { max-width: 100%; overflow: hidden; }
/* fields smaller than 16 px make iPhone zoom in on tap */
.vx-field input[type="url"] { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid #8FA7AE; border-radius: 8px; background: #fff; color: var(--vx-ink); font: 400 1rem/1.4 var(--vx-sans); }
.vx-field input[type="url"]:focus { outline: 3px solid rgba(43, 179, 192, .45); outline-offset: 1px; border-color: var(--vx-link); }
.vx-est__field select { font-size: 1rem; }
/* jumps to an error, a field or the receipt land below the sticky header, label included */
.vx-form [id], #vx-receipt, [role="alert"] { scroll-margin-top: calc(var(--vx-hdr-h) + 16px); }
.vx-field :is(input, select, textarea) { scroll-margin-top: calc(var(--vx-hdr-h) + 52px); }
/* with the menu sheet open the cookie slip and the floating focus frame step aside: the slip was inert,
   so taps on it went through to the menu link underneath (even a tel: link) */
body.vx-drawer-open .vx-consent { visibility: hidden; }
body.vx-drawer-open .vx7-focus { display: none; }
