/* notarial-hub.css — client-facing hotfix R2 + microfix R2.1/R2.2. Presentation layer for the RU/UA notarial hubs.
   COLOR POLICY: no page-specific palette. Every colour is an existing sitewide OKNO token — shell tokens
   (--gs-teal/--gs-teal-d/--gs-navy/--gs-muted/--gs-line, from okno-global-shell.css :root) and card-system tokens
   (--ok-ink/--ok-muted/--ok-card-line/--ok-card-surface/--ok-card-surface-quiet/--ok-card-accent/--ok-focus/
   --ok-card-shadow-hover, from okno-card-system.css :root). The local --onh-* vars are thin pass-throughs to those
   tokens (they resolve to approved colours, never new ones). No hardcoded HEX/RGB/HSL/gradient. The notarial section
   carries no colour identity; the primary CTA uses the same teal accent as the sitewide .okno-gs-cta. */

.onh, .onh-secnav {
  --onh-ink: var(--ok-ink);
  --onh-muted: var(--ok-muted);
  --onh-line: var(--ok-card-line);
  --onh-surface: var(--ok-card-surface);
  --onh-band: var(--ok-card-surface-quiet);
  --onh-tint: var(--ok-card-accent);
  --onh-accent: var(--gs-teal);
  --onh-accent-d: var(--gs-teal-d);
  --onh-navy: var(--gs-navy);
  --onh-focus: var(--ok-focus);
  --onh-shadow: var(--ok-card-shadow-hover);
  --onh-max: 1200px;
  font-family: var(--font-body, 'Mulish','Segoe UI',system-ui,Arial,sans-serif); color: var(--onh-ink); }
.onh *, .onh-secnav * { box-sizing: border-box; }
.onh { overflow-x: clip; }
.onh img, .onh picture { max-width: 100%; }
.onh :focus-visible, .onh-secnav :focus-visible { outline: 2px solid var(--onh-accent); outline-offset: 2px; }

.onh-wrap { max-width: var(--onh-max); margin: 0 auto; padding: 0 24px; }
.onh-sec { padding: 56px 0; }
.onh-band { background: var(--onh-band); }
.onh-h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; font-weight: 800; margin: 0 0 10px; letter-spacing: -.01em; color: var(--onh-navy); }
.onh-h3 { font-size: 17px; font-weight: 800; margin: 0 0 8px; color: var(--onh-navy); }
.onh-intro { font-size: 17px; color: var(--onh-muted); max-width: 760px; margin: 0 0 28px; line-height: 1.55; }
.onh-prose p { line-height: 1.6; margin: 0 0 14px; color: var(--onh-ink); }
.onh-note { color: var(--onh-muted); font-size: 15px; line-height: 1.55; margin: 14px 0; }
.onh-list { margin: 0 0 8px; padding-left: 20px; }
.onh-list li { margin: 5px 0; line-height: 1.5; color: var(--onh-ink); }

/* ---------- buttons ---------- */
.onh-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:11px 20px;
  border-radius:12px; font-weight:800; font-size:15px; font-family:inherit; cursor:pointer; border:1.5px solid transparent;
  line-height:1.2; text-align:center; transition:background .15s,border-color .15s,color .15s; }
.onh-btn--primary { background: var(--onh-accent); color: var(--onh-surface); }
.onh-btn--primary:hover { background: var(--onh-accent-d); }
.onh-btn--ghost { background: var(--onh-surface); color: var(--onh-accent); border-color: var(--onh-accent); }
.onh-btn--ghost:hover { background: var(--onh-band); }
.onh-btn--service { background: var(--onh-surface); color: var(--onh-ink); border-color: var(--onh-line); width:100%; }
.onh-btn--service:hover { border-color: var(--onh-accent); color: var(--onh-accent); }
.onh-cta-row { display:flex; flex-wrap:wrap; gap:12px; margin-top:22px; }
.onh-cta-row--center { justify-content:center; }

/* ---------- section nav (sticky, below the shared header) ---------- */
.onh-secnav { position: sticky; top: 0; z-index: 900; background: var(--onh-surface); border-bottom: 1px solid var(--onh-line); }
.onh-secnav__prog { height: 3px; width: 0; background: var(--onh-accent); transition: width .1s linear; }
.onh-secnav__in { max-width: var(--onh-max); margin: 0 auto; padding: 0 24px; display:flex; align-items:center; gap:16px; min-height:52px; }
.onh-secnav__links { display:flex; gap:6px; overflow-x:auto; flex:1; scrollbar-width:none; -webkit-overflow-scrolling:touch; scroll-behavior:smooth; }
.onh-secnav__links::-webkit-scrollbar { display:none; }
.onh-secnav__l { flex:0 0 auto; padding:8px 12px; border-radius:9px; font-size:14px; font-weight:700; color:var(--onh-muted);
  text-decoration:none; white-space:nowrap; }
.onh-secnav__l:hover { color: var(--onh-ink); background: var(--onh-band); }
.onh-secnav__l.on { color: var(--onh-accent); background: var(--onh-band); }
.onh-secnav__cta { flex:0 0 auto; min-height:40px; padding:9px 16px; border-radius:10px; border:none; cursor:pointer;
  background: var(--onh-accent); color: var(--onh-surface); font-weight:800; font-size:14px; font-family:inherit; }
.onh-secnav__cta:hover { background: var(--onh-accent-d); }
@media (prefers-reduced-motion: reduce) { .onh-secnav__links { scroll-behavior:auto; } .onh-secnav__prog { transition:none; } }

/* ---------- hero ---------- */
.onh-hero { padding: 48px 0 40px; }
.onh-hero__grid { max-width: var(--onh-max); margin:0 auto; padding:0 24px; display:grid; grid-template-columns: 1.05fr .95fr; gap:44px; align-items:center; }
.onh-eyebrow { text-transform:uppercase; letter-spacing:.08em; font-size:12.5px; font-weight:800; color:var(--onh-accent); margin:0 0 14px; }
.onh-h1 { font-size: clamp(28px, 4.2vw, 44px); line-height:1.12; font-weight:800; letter-spacing:-.02em; margin:0 0 16px; color:var(--onh-navy); }
.onh-lead { font-size: 18px; line-height:1.5; color:var(--onh-ink); margin:0 0 12px; }
.onh-support { font-size: 15.5px; line-height:1.55; color: var(--onh-muted); margin:0 0 8px; }
.onh-chips { list-style:none; display:flex; flex-wrap:wrap; gap:8px; padding:0; margin:20px 0 14px; }
.onh-chips li { font-size:13.5px; font-weight:700; color:var(--onh-ink); background:var(--onh-surface); border:1px solid var(--onh-line);
  border-radius:999px; padding:6px 13px; }
.onh-microline { font-size:13.5px; color:var(--onh-muted); line-height:1.5; margin:0; }
.onh-hero-pic img { width:100%; height:auto; border-radius:18px; display:block; box-shadow:var(--onh-shadow); }

/* ---------- 3x3 service grid — equal heights, bottom-aligned price/CTA ---------- */
.onh-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:18px; }
.onh-grid--2 { grid-template-columns: repeat(2, 1fr); }
.onh-card { display:flex; flex-direction:column; background:var(--onh-surface); border:1px solid var(--onh-line); border-radius:16px;
  padding:22px 20px; height:100%; transition: box-shadow .15s, border-color .15s; }
.onh-card:hover { box-shadow:var(--onh-shadow); border-color:var(--onh-line); }
.onh-card__ic { display:inline-flex; width:44px; height:44px; align-items:center; justify-content:center; border-radius:12px;
  background:var(--onh-tint); color:var(--onh-accent); margin-bottom:14px; }
.onh-ic { width:24px; height:24px; }
.onh-card__t { font-size:17px; font-weight:800; margin:0 0 8px; color:var(--onh-navy); }
.onh-card__d { font-size:14.5px; line-height:1.5; color:var(--onh-muted); margin:0 0 18px; flex:1 1 auto; }
.onh-card__foot { margin-top:auto; display:flex; flex-direction:column; gap:10px; }
.onh-card__price { font-size:15px; font-weight:800; color:var(--onh-navy); }
.onh-card__price--req { color: var(--onh-muted); font-weight:700; }
.onh-card__more { align-self:flex-start; font-size:13.5px; font-weight:700; color:var(--onh-accent); text-decoration:underline; }
.onh-card__more:hover { color:var(--onh-accent-d); }
.onh-more { margin:12px 0 0; }
.onh-more a { font-weight:700; font-size:15px; color:var(--onh-accent); text-decoration:none; }
.onh-more a:hover { text-decoration:underline; }

/* ---------- mini cards (who / statements / certify / mixed groups) ---------- */
.onh-grid--3 { grid-template-columns: repeat(3, 1fr); }
.onh-mini { background:var(--onh-surface); border:1px solid var(--onh-line); border-radius:14px; padding:20px 18px; }
.onh-mini__t { font-size:16px; font-weight:800; margin:0 0 10px; color:var(--onh-navy); }
.onh-mini p { font-size:14.5px; line-height:1.5; color:var(--onh-muted); margin:0 0 10px; }
.onh-mini__price { font-size:15px; font-weight:800; color: var(--onh-accent); }

/* ---------- two-column prose ---------- */
.onh-cols { display:grid; grid-template-columns:1fr 1fr; gap:32px; margin:8px 0 6px; }
.onh-price-line { font-weight:700; color:var(--onh-ink); background:var(--onh-tint); border-radius:10px; padding:12px 16px; margin:16px 0; }

/* ---------- split (mixed docs + contained N2) — framed, no blank gap ---------- */
.onh-split { display:grid; grid-template-columns: 1.15fr .85fr; gap:40px; align-items:start; }
.onh-split__media { align-self:stretch; }
.onh-n2-pic { display:block; width:100%; aspect-ratio:16/10; border-radius:16px; overflow:hidden; background:var(--onh-band); box-shadow:var(--onh-shadow); }
.onh-n2-pic img { width:100%; height:100%; object-fit:cover; display:block; }

/* ---------- price table -> responsive list ---------- */
.onh-pt { border:1px solid var(--onh-line); border-radius:14px; overflow:hidden; background:var(--onh-surface); margin:18px 0; }
.onh-pt__row { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:13px 18px; border-top:1px solid var(--onh-line); }
.onh-pt__row:first-child { border-top:none; }
.onh-pt__svc { font-size:15px; color:var(--onh-ink); }
.onh-pt__val { font-size:15px; font-weight:800; color:var(--onh-navy); white-space:nowrap; }

/* ---------- process steps ---------- */
.onh-steps { list-style:none; padding:0; margin:8px 0 0; display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.onh-step { display:flex; gap:14px; background:var(--onh-surface); border:1px solid var(--onh-line); border-radius:14px; padding:18px; }
.onh-step__n { flex:0 0 auto; width:34px; height:34px; border-radius:50%; background:var(--onh-accent); color:var(--onh-surface);
  display:flex; align-items:center; justify-content:center; font-weight:800; font-size:15px; }
.onh-step__t { font-size:15.5px; font-weight:800; margin:0 0 4px; color:var(--onh-navy); }
.onh-step p { font-size:14px; line-height:1.5; color:var(--onh-muted); margin:0; }

/* ---------- FAQ accordion ---------- */
.onh-faqwrap { max-width: 860px; }
.onh-faq { border:1px solid var(--onh-line); border-radius:14px; overflow:hidden; background:var(--onh-surface); }
.onh-faq__i { border-top:1px solid var(--onh-line); }
.onh-faq__i:first-child { border-top:none; }
.onh-faq__q { list-style:none; cursor:pointer; padding:16px 48px 16px 18px; font-weight:700; font-size:16px; position:relative; color:var(--onh-navy); }
.onh-faq__q::-webkit-details-marker { display:none; }
.onh-faq__mk { position:absolute; right:18px; top:50%; width:12px; height:12px; margin-top:-6px; }
.onh-faq__mk::before, .onh-faq__mk::after { content:""; position:absolute; background:var(--onh-accent); border-radius:2px; }
.onh-faq__mk::before { left:0; top:5px; width:12px; height:2px; }
.onh-faq__mk::after { left:5px; top:0; width:2px; height:12px; transition:transform .2s, opacity .2s; }
.onh-faq__i[open] .onh-faq__mk::after { transform:rotate(90deg); opacity:0; }
.onh-faq__a { padding:0 18px 18px; }
.onh-faq__a p { font-size:15px; line-height:1.6; color:var(--onh-ink); margin:0; }

/* ---------- final CTA (no photo) — sitewide navy panel, teal/white controls ---------- */
.onh-final { padding: 64px 0; }
.onh-final__panel { background: var(--onh-navy); color:var(--onh-surface); border-radius:22px; padding:48px 40px; text-align:center; }
.onh-final__t { font-size: clamp(24px, 3.4vw, 34px); font-weight:800; margin:0 0 12px; color:var(--onh-surface); }
.onh-final__x { font-size:17px; line-height:1.55; color:var(--onh-surface); opacity:.86; max-width:640px; margin:0 auto 8px; }
.onh-final__panel .onh-btn--ghost { background:transparent; color:var(--onh-surface); border-color:var(--onh-line); }
.onh-final__panel .onh-btn--ghost:hover { background:transparent; border-color:var(--onh-surface); }
.onh-final__panel .onh-btn--primary { background:var(--onh-surface); color:var(--onh-accent-d); }
.onh-final__panel .onh-btn--primary:hover { background:var(--onh-band); }
.onh-final__tg { display:inline-block; margin-top:18px; background:none; border:none; cursor:pointer; color:var(--onh-surface); opacity:.82;
  font-weight:700; font-size:15px; text-decoration:underline; font-family:inherit; }
.onh-final__tg:hover { opacity:1; }

/* ---------- hide floating page actions while ANY modal is open (R2.1 #6) ---------- */
html.okno-modal-lock .okno-fa,
html.okno-modal-lock .okno-gs-cta,
html.okno-modal-lock .onh-secnav__cta,
html.onh-genwidget-open .okno-fa,
html.onh-genwidget-open .okno-gs-cta,
html.onh-genwidget-open .onh-secnav__cta { visibility:hidden !important; opacity:0 !important; pointer-events:none !important; }

/* ---------- internal-page components (Batch 01) — tokens only ---------- */
.ip-quick { background: var(--onh-band); border:1px solid var(--onh-line); border-radius:16px; padding:24px; }
.ip-quick .onh-h2 { font-size: clamp(20px,2.4vw,26px); }
.ip-fig { display:flex; align-items:center; justify-content:center; gap:18px; background: var(--onh-tint); border:1px solid var(--onh-line); border-radius:18px; min-height:240px; color: var(--onh-accent); }
.ip-fig svg { width:88px; height:88px; }
.ip-langs li { background: var(--onh-tint); }
.ip-pt__note { display:block; font-size:13px; font-weight:600; color: var(--onh-muted); margin-top:2px; }
.ip-related { list-style:none; display:flex; flex-wrap:wrap; gap:12px; padding:0; margin:0; }
.ip-related a { display:inline-flex; align-items:center; min-height:44px; padding:10px 18px; border:1px solid var(--onh-line); border-radius:12px;
  background: var(--onh-surface); color: var(--onh-accent); font-weight:700; font-size:14.5px; text-decoration:none; }
.ip-related a:hover { border-color: var(--onh-accent); background: var(--onh-band); }

/* ---------- tablet ---------- */
@media (max-width: 1000px) {
  .onh-hero__grid { grid-template-columns:1fr; gap:28px; }
  .onh-hero__media { order:2; }
  .onh-grid { grid-template-columns: repeat(2, 1fr); }
  .onh-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .onh-split { grid-template-columns:1fr; gap:24px; }
  .onh-split__media { order:-1; }
  .onh-steps { grid-template-columns:1fr; }
}

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  .onh-sec { padding: 40px 0; }
  .onh-wrap, .onh-hero__grid, .onh-secnav__in { padding-left:16px; padding-right:16px; }
  .onh-grid, .onh-grid--2, .onh-grid--3 { grid-template-columns:1fr; gap:14px; }
  .onh-cols { grid-template-columns:1fr; gap:8px; }
  .onh-hero { padding:32px 0 28px; }
  .onh-cta-row .onh-btn { width:100%; }
  .onh-hero__media { order:2; margin-top:6px; }
  .onh-secnav__cta { display:none; }
  .onh-pt__row { flex-direction:column; align-items:flex-start; gap:4px; padding:12px 16px; }
  .onh-pt__val { font-size:16px; }
  .onh-final__panel { padding:36px 20px; border-radius:18px; }
  .onh-final__x { font-size:16px; }
}
