/* VOXORDIA /ru-v2/ — enhancement layer on top of the original site.css.
   It adds motion and interaction only; the original grid, type and imagery stay as they are. */
:root { --vx-ease: cubic-bezier(.22,1,.36,1); --vx-ease-io: cubic-bezier(.76,0,.24,1); }

/* Brand rule: every h1/h2 has one red «о» and ends with a red, slightly larger period. */
h1 .vx-last, h2 .vx-last { white-space: nowrap; }
h1 .dot, h2 .dot { color: var(--red); display: inline-block; transform: scale(1.25); transform-origin: 20% 85%; margin-left: .02em; }
.section--red .brand-o, .section--red .dot { color: #fff; }

/* Reading progress on the sticky header. */
.header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); transform: scaleX(var(--vx-progress, 0)); transform-origin: left; pointer-events: none; }

/* Hero: arrives in reading order, then the device breathes. */
.hero h1, .hero .lead, .hero__cta, .hero .facts, .hero .eyebrow { animation: vx-rise .8s var(--vx-ease) both; }
.hero .eyebrow { animation-delay: 0ms; }
.hero h1 { animation-delay: 70ms; }
.hero .lead--strong { animation-delay: 150ms; }
.hero .lead:not(.lead--strong) { animation-delay: 220ms; }
.hero__cta { animation-delay: 290ms; }
.hero .facts { animation-delay: 360ms; }
@keyframes vx-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Hero device: the four real screens take turns, same tilt, same place. */
.vx-cycle { display: grid; grid-template-areas: "s"; position: relative; }
.vx-cycle__stage { grid-area: s; display: grid; grid-template-areas: "s"; animation: vx-device 1.1s var(--vx-ease) .3s both; }
.vx-cycle__stage > img { grid-area: s; opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .6s var(--vx-ease), transform .8s var(--vx-ease); }
.vx-cycle__stage > img.is-on { opacity: 1; transform: none; }
.vx-cycle__float { grid-area: s; display: grid; grid-template-areas: "s"; animation: vx-float 7s ease-in-out 1.6s infinite alternate; }
@keyframes vx-device { from { opacity: 0; transform: translateY(36px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
@keyframes vx-float { from { translate: 0 0; } to { translate: 0 -9px; } }
.vx-cycle__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; position: relative; z-index: 1; animation: vx-rise .8s var(--vx-ease) .7s both; }
.vx-cycle__tabs button { position: relative; min-height: 40px; padding: 0 16px 2px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--grey-2); font: 600 14px/1 var(--font); cursor: pointer; overflow: hidden; transition: color .2s, border-color .2s, background-color .2s; }
.vx-cycle__tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
.vx-cycle__tabs button i { position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; }
.vx-cycle.is-playing [aria-selected="true"] i { animation: vx-bar var(--vx-cycle-ms, 5200ms) linear forwards; }
@keyframes vx-bar { to { transform: scaleX(1); } }
@media (hover: hover) and (pointer: fine) { .vx-cycle__tabs button:hover { color: var(--ink); } }

/* Scroll entrances: the original .reveal, with a stronger curve and children in sequence. */
.reveal { transition: opacity .7s var(--vx-ease), transform .8s var(--vx-ease); transform: translateY(24px); }
.vx-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--vx-ease), transform .7s var(--vx-ease); transition-delay: var(--vx-d, 0ms); }
.vx-stagger.is-in > *, .is-in .vx-stagger > * { opacity: 1; transform: none; }

/* Gentle parallax on device renders (the image moves, never the sticky container). */
[data-vx-par] { translate: 0 var(--vx-py, 0px); will-change: translate; }

/* Feedback under the hand. */
.btn { transition: background .15s, color .15s, border-color .15s, transform .14s var(--vx-ease); }
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .tool, .docshot { transition: border-color .3s; }
  .tool .shot, .tool img, .docshot img { transition: transform .6s var(--vx-ease); }
  .tool:hover img, .docshot:hover img { transform: scale(1.03); }
  .tool:hover { border-color: #cfc9c1; }
  .aud { transition: background-color .25s; }
  .aud:hover { background-color: #ece8e2; }
  .feature:hover { transform: translateY(-3px); box-shadow: none; border-color: #cfc9c1; }
}

/* Voting: type a rule from your statute, the same ballots are counted by it. */
.vxv { margin-top: 40px; padding: 24px; border: 1px solid #33302d; border-radius: 24px; background: #1d1c1b; color: var(--bone); }
.vxv__title { margin: 0 0 6px; font-size: 20px; font-weight: 650; line-height: 1.25; }
.vxv__sub { margin: 0 0 18px; color: #b9b2a9; font-size: 15px; line-height: 1.5; }
.vxv__label { display: block; margin-bottom: 8px; color: #b9b2a9; font-size: 14px; font-weight: 600; }
.vxv__input { width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid #4a4642; border-radius: 12px; background: #111; color: #fff; font: 500 18px/1.3 var(--font); transition: border-color .2s; }
.vxv__input:focus { outline: none; border-color: var(--red); }
.vxv__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; padding: 0; list-style: none; }
.vxv__chips button { min-height: 40px; padding: 0 14px; border: 1px solid #4a4642; border-radius: 999px; background: transparent; color: #e6e1da; font: 500 14px/1 var(--font); cursor: pointer; transition: border-color .2s, background-color .2s, color .2s, transform .14s var(--vx-ease); }
.vxv__chips button:active { transform: scale(.97); }
.vxv__chips button[aria-pressed="true"] { background: var(--bone); border-color: var(--bone); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .vxv__chips button:hover { border-color: #8c857d; } }
.vxv__seats { display: grid; grid-template-columns: repeat(27, 1fr); gap: 3px; margin-bottom: 14px; }
.vxv__seats i { height: 20px; border-radius: 3px; background: #2e2c2a; transition: background-color .3s; }
.vxv__seats i.yes { background: var(--bone); } .vxv__seats i.no { background: #8c857d; } .vxv__seats i.abs { background: #55504b; }
.vxv__seats i.need { box-shadow: inset 0 -4px 0 var(--red); }
.vxv__tally { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 4px 24px; margin: 0 0 16px; }
.vxv__tally div { display: grid; }
.vxv__tally dt { color: #b9b2a9; font-size: 13px; }
.vxv__tally dd { margin: 0; font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; }
.vxv__rule { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding: 12px 14px; border-radius: 12px; background: #2a2826; font-size: 15px; }
.vxv__rule b { font-variant-numeric: tabular-nums; }
.vxv__verdict { margin: 14px 0 2px; font-size: 19px; font-weight: 700; line-height: 1.3; }
.vxv__verdict::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 50%; vertical-align: .08em; background: #8c857d; transition: background-color .3s; }
.vxv__verdict.is-yes::before { background: #3fa66b; }
.vxv__verdict.is-no::before { background: var(--red); }
.vxv__note { margin: 0; color: #b9b2a9; font-size: 14px; line-height: 1.5; }

@media (max-width: 640px) {
  .vxv { padding: 18px; border-radius: 18px; }
  .vxv__seats { gap: 2px; }
  .vxv__seats i { height: 16px; border-radius: 2px; }
  .vxv__tally { grid-template-columns: repeat(2, auto); }
  .vx-cycle__tabs button { min-height: 44px; padding: 0 14px 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero .lead, .hero__cta, .hero .facts, .hero .eyebrow, .vx-cycle__stage, .vx-cycle__float, .vx-cycle__tabs { animation: none; }
  .vx-cycle__stage > img { transform: none; transition: opacity .3s ease; }
  .reveal, .vx-stagger > * { transform: none; }
  [data-vx-par] { translate: none; }
  .header::after { display: none; }
}

/* ---- Tablet and phone repairs of the original (from the responsive review) ---- */
.nav__langs { display: none; }
@media (max-width: 1120px) {
  .header.is-open .nav__langs { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0 4px; border: 0; }
  .header.is-open .nav .nav__langs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 999px; font-size: 15px; background: #fff; }
}
@media (min-width: 601px) and (max-width: 1120px) {
  .header__cta { display: inline-flex; margin-left: auto; }
  .menu-btn { margin-left: 12px; }
}
/* Demo console: no clipped tab, no scroll-inside-scroll on touch. */
@media (max-width: 860px) {
  .vx__screen { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 560px; max-height: none; }
  .vx__rail, .vx__main, .vx__top, .vx__bar { min-width: 0; }
  .vx__main { overflow: visible; }
}
@media (max-width: 480px) {
  .vx__rail { overflow-x: auto; scroll-snap-type: x mandatory; justify-content: flex-start; }
  .vx__rail button { flex: 0 0 auto; min-width: 56px; padding: 8px 6px; }
  .vx__rail button span { font-size: 11px; hyphens: none; white-space: nowrap; }
}
@media (min-width: 861px) { .vx__device { max-width: min(1120px, calc((100svh - 150px) * 1180 / 800 + 32px)); } }
/* Touch targets of at least 44px. */
@media (pointer: coarse) {
  .vx__chair button, .vx__seg button { min-height: 44px; padding: 0 12px; }
  .options span { min-height: 44px; display: inline-flex; align-items: center; }
  .pillar__more, .contact__alt a, .footer a { min-height: 44px; display: inline-flex; align-items: center; }
  .consent a { padding: 10px 0; }
}
/* Portrait tablets: readable measure, a real tablet-size title, centred device. */
@media (max-width: 900px) { .why__text, .split__text, .docs > div:first-child, .items, .psteps, .section__head { max-width: 40em; } }
@media (min-width: 601px) and (max-width: 1060px) {
  .hero h1 { font-size: clamp(56px, 8.4vw, 80px); }
  .hero__media { margin-inline: auto; }
}
@media (max-width: 1240px) { .shot--hero { width: 104%; } }
/* Phone: the device comes right after the lead, not 850px down. */
@media (max-width: 600px) {
  .hero__grid { gap: 0; }
  .hero__grid > div:first-child { display: contents; }
  .hero .eyebrow { order: 1; } .hero h1 { order: 2; } .hero .lead { order: 3; }
  .hero__media { order: 4; margin: 20px -8px 4px; }
  .hero__cta { order: 5; margin-top: 16px; } .hero .facts { order: 6; margin-top: 24px; }
  .why__head h2 { font-size: 30px; }
  .pdoc__body { min-height: 420px; }
}
@media (max-width: 420px) { .hero .eyebrow { font-size: 12.5px; letter-spacing: .03em; } }

/* The vote card sits inside .split__text: pin its own type and list layout against the section's paragraph/list rules. */
.vxv p, .vxv .vxv__title { margin-top: 0; }
.split__text .vxv .vxv__title { font-size: 20px; color: var(--bone); }
.split__text .vxv .vxv__sub { font-size: 15px; line-height: 1.5; color: #b9b2a9; margin: 0 0 18px; }
.split__text .vxv .vxv__note { font-size: 14px; line-height: 1.5; color: #b9b2a9; margin: 0; }
.split__text .vxv .vxv__verdict { font-size: 19px; margin: 14px 0 2px; color: #fff; }
.split__text .vxv .vxv__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; padding: 0; }
.split__text .vxv .vxv__chips li { display: block; margin: 0; padding: 0; border: 0; }
.split__text .vxv .vxv__chips li::before { content: none; }

/* ---- Cards come alive like a console given the floor ----
   Icons draw themselves when the card arrives; on hover a red "on air" edge sweeps the top
   and the red part of the icon redraws. Touch keeps only the arrival; reduced motion keeps nothing. */
.feature, .aud, .tool, .benefit { position: relative; overflow: hidden; }
.feature::before, .aud::before, .tool::before, .benefit::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .38s var(--vx-ease); pointer-events: none; z-index: 1; }
.vx-draw .feature__icon svg * { stroke-dasharray: 1; stroke-dashoffset: 1; }
.vx-draw.is-drawn .feature__icon svg * { stroke-dashoffset: 0; transition: stroke-dashoffset .9s var(--vx-ease) .15s; }
.vx-draw.is-drawn .feature__icon svg .accent { transition-delay: .55s; transition-duration: .7s; }
.feature__icon { transition: background-color .25s ease, transform .3s var(--vx-ease); }
.pillar__more span { display: inline-block; transition: transform .25s var(--vx-ease); }
.aud__num { display: inline-block; transition: transform .3s var(--vx-ease); }
@media (hover: hover) and (pointer: fine) {
  .feature:hover::before, .aud:hover::before, .tool:hover::before, .benefit:hover::before { transform: scaleX(1); }
  .feature:hover .feature__icon { background: #fbe9e7; transform: scale(1.06); }
  .feature:hover .feature__icon svg .accent { animation: vx-redraw .7s var(--vx-ease); }
  .feature:hover .pillar__more span { transform: translateX(5px); }
  .aud:hover .aud__num { transform: translateX(4px); }
}
@keyframes vx-redraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.feature:focus-within::before, .aud:focus-within::before { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .vx-draw .feature__icon svg * { stroke-dasharray: none; stroke-dashoffset: 0; }
  .feature::before, .aud::before, .tool::before, .benefit::before { transition: none; }
  .feature:hover .feature__icon svg .accent { animation: none; }
}

/* Documents: life of a document across the meeting. */
.vx-doclife { margin-top: clamp(64px, 8vw, 104px); }
.vx-doclife__title { margin: 0 0 28px; max-width: 22em; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -.02em; }
.vx-doclife__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vx-stage { grid-column: auto; padding: 28px 26px 30px; }
.vx-stage__when { display: inline-flex; align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--bone); color: var(--ink); font-size: 14px; font-weight: 650; }
.vx-stage h4 { margin: 2px 0 0; font-size: 21px; line-height: 1.2; letter-spacing: -.01em; }
.vx-stage ul { display: grid; gap: 12px; margin: 4px 0 0; padding: 0; list-style: none; }
.vx-stage li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15.5px; line-height: 1.5; color: var(--grey-2); }
.vx-stage li .ring { margin-top: .42em; }
@media (hover: hover) and (pointer: fine) { .vx-stage:hover .vx-stage__when { background: #fbe9e7; color: var(--red); } .vx-stage__when { transition: background-color .25s, color .25s; } }
@media (max-width: 960px) { .vx-doclife__grid { grid-template-columns: minmax(0, 1fr); max-width: 40em; } }
