:root {
  --navy: #0d2e3a;
  --teal: #0b3c48;
  --teal-2: #126578;
  --brand: #007786;
  --brand-dark: #00626e;
  --yellow: #ffc83b;
  --yellow-soft: #fff5cf;
  --blue-soft: #eaf7fb;
  --bg: #f8fafc;
  --white: #fff;
  --text: #16313b;
  --muted: #5d6c74;
  --line: #e2e8f0;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow-lg: 0 12px 32px rgba(13, 46, 58, .1);
  --radius: 8px;
  --max: 1120px;
  --read: 760px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: var(--teal-2); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4, p, ul, ol, blockquote { margin-top: 0; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
code {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  padding: 2px 5px;
  color: var(--teal);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  overflow-wrap: anywhere;
}
:focus-visible { outline: 3px solid rgba(255, 200, 59, .75); outline-offset: 2px; }
::selection { background: var(--yellow); color: var(--navy); }

.u-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.u-span { grid-column: 1 / -1; }
.content-shell { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
.flow-stack { display: grid; gap: 18px; }
.matrix-grid { display: grid; gap: 18px; }
.matrix-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.a11y-jump {
  position: fixed;
  left: 16px;
  top: 0;
  z-index: 100;
  transform: translateY(-120%);
  padding: 10px 14px;
  border-radius: 0 0 6px 6px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 750;
}
.a11y-jump:focus { transform: none; }

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 86px;
  background: linear-gradient(140deg, var(--yellow-soft) 0 40%, var(--bg) 40% 100%);
}
.page-hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -80px;
  top: -155px;
  border-radius: 50%;
  background: repeating-linear-gradient(135deg, transparent 0 24px, rgba(118, 211, 231, .2) 24px 35px);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, .55fr);
  gap: 64px;
  align-items: center;
}
.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--teal-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow-tag::before { content: ""; width: 20px; height: 2px; background: var(--yellow); }
.hero-title {
  max-width: 820px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.55rem, 5.2vw, 4.45rem);
  line-height: 1.03;
  letter-spacing: -.055em;
}
.hero-lead { max-width: 680px; margin: 20px 0 0; color: #425c66; font-size: clamp(1.05rem, 2vw, 1.22rem); }
.hero-stamp {
  justify-self: end;
  width: min(100%, 270px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow);
}
.hero-stamp__label { color: var(--teal-2); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero-stamp__line { display: block; width: 42px; height: 3px; margin: 14px 0; border-radius: 3px; background: var(--yellow); }
.hero-stamp__value { margin: 0; color: var(--navy); font-size: 14px; font-weight: 700; line-height: 1.5; }

.tool-wrap { position: relative; z-index: 5; margin-top: -42px; padding-bottom: 34px; }
.tool-board {
  overflow: hidden;
  max-width: 920px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}
.tool-board__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--yellow-soft);
}
.tool-board__bar p { margin: 0; color: var(--teal-2); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tool-board__lights { display: none; }
.tool-board__body { padding: clamp(24px, 4vw, 38px); }
.tool-board__body h2 { max-width: 700px; margin: 0; font-size: clamp(1.55rem, 3vw, 2.15rem); }
.tool-board__note { margin: 0; color: var(--muted); font-size: 13px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-set { display: grid; gap: 7px; }
.field-set label { color: var(--navy); font-size: 13px; font-weight: 750; }
.field-control {
  width: 100%;
  min-height: 52px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: var(--white);
  padding: 12px 16px;
  color: var(--navy);
  outline: none;
}
.field-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 138, 156, .12); }
textarea.field-control { min-height: 128px; resize: vertical; }
.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.action-key {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 18px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.action-key--solid, .prose .content-action { background: var(--brand); color: var(--white); }
.action-key--solid:hover, .prose .content-action:hover { background: var(--brand-dark); color: var(--white); }
.action-key--quiet { border-color: var(--line); background: var(--white); color: var(--teal-2); }
.action-key--quiet:hover { border-color: var(--brand); background: var(--blue-soft); }
.demo-badge { border-radius: 999px; background: var(--yellow-soft); padding: 6px 10px; color: var(--navy); font-size: 12px; font-weight: 750; }

.qr-preview {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  width: 168px;
  aspect-ratio: 1;
  place-self: center;
  border: 14px solid var(--white);
  outline: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.qr-preview i { background: var(--navy); }
.phone-preview {
  width: min(100%, 270px);
  margin-inline: auto;
  border: 7px solid var(--navy);
  border-radius: 28px;
  padding: 34px 16px 20px;
  background: linear-gradient(var(--blue-soft), var(--white));
  box-shadow: var(--shadow-lg);
}
.phone-preview::before { content: ""; display: block; width: 58px; height: 5px; margin: -20px auto 18px; border-radius: 5px; background: var(--navy); }
.phone-preview__avatar { width: 62px; aspect-ratio: 1; margin-inline: auto; border-radius: 50%; background: var(--yellow); }
.phone-preview p { margin: 10px auto 16px; text-align: center; font-weight: 750; }
.phone-preview span { display: block; margin-top: 8px; border: 1px solid var(--line); border-radius: 7px; padding: 9px; background: var(--white); text-align: center; font-size: 13px; font-weight: 700; }

.article-stage { padding: 70px 0 96px; }
.article-grid { display: grid; grid-template-columns: minmax(0, var(--read)) minmax(220px, 1fr); gap: 72px; align-items: start; }
.reading-column { max-width: var(--read); min-width: 0; }
.prose { color: #435a63; }
.prose > * + * { margin-top: 16px; }
.prose h2 { scroll-margin-top: 24px; margin: 76px 0 18px; font-size: clamp(1.75rem, 3vw, 2.35rem); }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { scroll-margin-top: 24px; margin: 44px 0 12px; font-size: 1.32rem; letter-spacing: -.02em; }
.prose h2 + h3 { margin-top: 26px; }
.prose h4 { scroll-margin-top: 24px; margin: 30px 0 8px; font-size: 1.08rem; letter-spacing: -.01em; }
.prose h5 { margin: 22px 0 6px; color: var(--teal-2); font-size: .95rem; letter-spacing: 0; }
.page-index .page-index__l3 a { padding-left: 14px; font-weight: 550; }
.prose p { margin-bottom: 0; }
.prose ul, .prose ol { display: grid; gap: 0; margin: 22px 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); list-style: none; overflow: hidden; }
.prose li { position: relative; padding: 13px 16px 13px 46px; border-bottom: 1px solid var(--line); }
.prose li:last-child { border-bottom: 0; }
.prose ul li::before {
  content: "✓";
  position: absolute;
  left: 15px;
  top: 14px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 850;
}
.prose ol { counter-reset: item; }
.prose ol li { counter-increment: item; }
.prose ol li::before {
  content: counter(item);
  position: absolute;
  left: 15px;
  top: 14px;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--teal-2);
  font-size: 11px;
  font-weight: 800;
}
.prose blockquote { margin: 24px 0; border-left: 4px solid var(--yellow); border-radius: 0 var(--radius) var(--radius) 0; background: var(--yellow-soft); padding: 18px 20px; color: var(--navy); }
.prose table { width: 100%; margin: 24px 0; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font-size: 14px; line-height: 1.45; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--navy); color: var(--white); font-size: 12px; letter-spacing: .02em; }
.prose tr:last-child td { border-bottom: 0; }
.prose tr:nth-child(even) td { background: var(--bg); }
.prose .content-action { display: inline-flex; min-height: 40px; align-items: center; border-radius: 7px; padding: 8px 15px; font-weight: 750; box-shadow: var(--shadow); }
.page-index { position: sticky; top: 24px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.page-index__title { margin: 0 0 14px; color: var(--navy); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.page-index ol { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.page-index a { display: block; color: var(--muted); font-size: 13px; font-weight: 650; line-height: 1.4; text-decoration: none; }
.page-index a:hover { color: var(--brand); }
.end-cap { margin-top: 64px; border-radius: var(--radius); padding: clamp(26px, 5vw, 42px); background: var(--navy); color: var(--white); }
.prose .end-cap .end-cap__title { font-weight: 800; line-height: 1.15; letter-spacing: -.03em; max-width: 520px; margin: 0; padding: 0; border: 0; color: var(--white); font-size: clamp(1.8rem, 3vw, 2.4rem); }
.end-cap p { margin: 12px 0 22px; color: #d5e2e6; }

.guide-card, .system-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: clamp(24px, 4vw, 34px);
  box-shadow: var(--shadow);
}
.guide-card { text-align: left; }
.guide-card h2 { margin: 0; font-size: clamp(1.45rem, 2.5vw, 2rem); }
.guide-card p { margin: 12px 0 22px; color: var(--muted); }
.guide-card .eyebrow-tag { margin-bottom: 12px; }
.system-page { min-height: 68vh; display: grid; place-items: center; padding: 72px 0; }
.system-page .system-card { max-width: 700px; margin-inline: auto; text-align: center; }
.system-code { display: inline-flex; min-width: 56px; min-height: 42px; align-items: center; justify-content: center; border-radius: 7px; background: var(--yellow-soft); color: var(--teal-2); font-size: 18px; font-weight: 850; }
.system-card h1 { margin: 20px 0 0; font-size: clamp(2.3rem, 6vw, 4rem); letter-spacing: -.05em; }
.system-card > p { margin: 16px auto 0; color: var(--muted); }
.system-card > .action-row { justify-content: center; margin-top: 26px; }

.closing-deck { padding: 56px 0 24px; background: var(--navy); color: #dbe6e9; }
.closing-deck__grid { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 42px; }
.closing-deck__brand p { max-width: 300px; margin: 16px 0 0; color: #abc0c7; font-size: 14px; }
.footer-logo { display: inline-flex; width: max-content; padding: 3px 8px; border-radius: 6px; background: var(--white); }
.footer-logo img { display: block; width: 96px; height: auto; }
.closing-deck .closing-deck__title { font-weight: 700; margin: 0 0 14px; color: var(--white); font-size: 14px; letter-spacing: 0; }
.closing-deck ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.closing-deck a { color: #bcd0d5; font-size: 14px; text-decoration: none; }
.closing-deck a:hover { color: var(--white); text-decoration: underline; }
.closing-deck__base { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .13); color: #8fa8af; font-size: 12px; }
.cookie-link { border: 0; padding: 0; background: transparent; color: #bcd0d5; font: inherit; font-size: 14px; text-align: left; text-decoration: none; cursor: pointer; }
.cookie-link:hover { color: var(--white); text-decoration: underline; }
.cookie-banner { position: fixed; z-index: 100; right: 20px; bottom: 20px; left: 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; width: min(calc(100% - 40px), 1040px); margin-inline: auto; border: 1px solid var(--line); border-radius: 10px; padding: 22px; background: var(--white); box-shadow: 0 18px 55px rgba(13, 46, 58, .22); }
.cookie-banner[hidden] { display: none; }
.cookie-title { font-weight: 800; line-height: 1.25; margin: 0; color: var(--navy); font-size: 20px; }
.cookie-banner p, .cookie-dialog p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.cookie-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.cookie-button { min-height: 42px; border: 1px solid #b9c7cc; border-radius: 7px; padding: 9px 14px; background: var(--white); color: var(--navy); font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; }
.cookie-button:hover { border-color: var(--teal-2); }
.cookie-button--primary { border-color: var(--brand); background: var(--brand); color: var(--white); }
.cookie-button--text { border-color: transparent; text-decoration: underline; }
.cookie-dialog { width: min(calc(100% - 32px), 640px); border: 0; border-radius: 12px; padding: 0; color: var(--text); box-shadow: 0 24px 75px rgba(13, 46, 58, .3); }
.cookie-dialog::backdrop { background: rgba(13, 46, 58, .68); }
.cookie-dialog form { padding: 26px; }
.cookie-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.cookie-kicker { color: var(--teal-2); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cookie-close { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--navy); font: inherit; font-size: 22px; cursor: pointer; }
.cookie-choice { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 24px 0 18px; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.cookie-choice strong, .cookie-choice span { display: block; }
.cookie-choice span { margin-top: 4px; color: var(--muted); font-size: 13px; }
.cookie-switch { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; color: var(--navy); font-weight: 750; cursor: pointer; }
.cookie-switch input { width: 20px; height: 20px; accent-color: var(--brand); }
.cookie-dialog .cookie-note { margin-bottom: 22px; font-size: 13px; }

@media (max-width: 900px) {
  .hero-grid, .article-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 30px; }
  .hero-stamp { justify-self: start; }
  .article-grid { gap: 42px; }
  .page-index { position: static; order: -1; }
  .page-index ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .closing-deck__grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .closing-deck__brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .page-hero { padding: 52px 0 76px; background: linear-gradient(155deg, var(--yellow-soft) 0 35%, var(--bg) 35% 100%); }
  .page-hero::after { width: 240px; height: 240px; right: -120px; top: -90px; }
  .hero-title { font-size: clamp(2.35rem, 12vw, 3.25rem); }
  .hero-stamp { width: 100%; }
  .tool-wrap { margin-top: -34px; }
  .tool-board__body { padding: 22px; }
  .field-grid, .matrix-grid--two, .page-index ol, .closing-deck__grid { grid-template-columns: 1fr; }
  .closing-deck__brand { grid-column: auto; }
  .article-stage { padding: 54px 0 72px; }
  .prose table { display: block; overflow-x: auto; }
  .prose th, .prose td { min-width: 140px; }
  .cookie-banner { grid-template-columns: 1fr; right: 12px; bottom: 12px; left: 12px; width: calc(100% - 24px); padding: 18px; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .cookie-button { flex: 1 1 150px; }
  .cookie-choice { align-items: flex-start; flex-direction: column; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Крихти, підказки полів, картки гайдів (05.10.2026) */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; color: var(--muted); font-size: 13px; font-weight: 650; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: #9fb0b7; }
.crumbs a { color: var(--teal-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.field-optional { margin-left: 4px; color: var(--muted); font-size: 12px; font-weight: 600; }
.field-hint { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
.guide-card h2 a { color: inherit; text-decoration: none; }
.guide-card h2 a:hover { color: var(--brand-dark); text-decoration: underline; }
.table-wrap { overflow-x: auto; }
.tool-form .field-set { min-width: 0; }

/* FAQ як на головній: згорнуті блоки з плюсом (05.10.2026) */
.prose .faq { margin: 24px 0 0; border-top: 1px solid var(--line); }
.prose .faq-item { border-bottom: 1px solid var(--line); background: var(--white); }
.prose .faq-item summary { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 18px; cursor: pointer; color: var(--navy); font-weight: 700; font-size: 1rem; line-height: 1.4; list-style: none; }
.prose .faq-item summary::-webkit-details-marker { display: none; }
.prose .faq-item summary::after { content: "+"; flex: 0 0 auto; color: var(--teal-2); font-size: 24px; font-weight: 400; }
.prose .faq-item[open] summary::after { content: "−"; }
.prose .faq-answer { padding: 0 18px 20px; color: var(--muted); font-size: 15px; }
.prose .faq-answer > :first-child { margin-top: 0; }
.prose .faq-answer p { margin: 0 0 10px; }
.prose .faq-answer p:last-child { margin-bottom: 0; }

/* Шапка внутрішніх сторінок: дата ліворуч, праворуч інфоблок */
.hero-grid--aside { grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 56px; }
.hero-grid--solo { grid-template-columns: minmax(0, 1fr); }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 22px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.5; }
.hero-meta__tag { display: inline-flex; align-items: center; gap: 8px; color: var(--teal-2); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero-meta__tag::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--yellow); }
.hx { justify-self: end; width: min(100%, 380px); border-radius: 14px; box-shadow: var(--shadow-lg); }
.hx code { padding: 1px 5px; border-radius: 4px; font-size: .92em; }
.hx-card, .hx-check { padding: 22px; border: 1px solid var(--line); background: rgba(255, 255, 255, .94); }
.hx-card__head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; color: var(--teal-2); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hx-card__head span + span { color: var(--muted); font-weight: 600; letter-spacing: 0; text-transform: none; }
.hx-rows { margin: 0; padding: 0; list-style: none; }
.hx-row { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; }
.hx-rows--chain .hx-row:not(:last-child)::after { content: ""; position: absolute; left: 10px; top: 33px; bottom: -11px; border-left: 2px dashed #b8dce4; }
.hx-dot { width: 22px; height: 22px; border: 2px solid var(--brand); border-radius: 50%; background: var(--white); }
.hx-rows:not(.hx-rows--chain) .hx-dot { width: 10px; height: 10px; margin-left: 6px; border-width: 0; background: #b8dce4; }
.hx-row--end .hx-dot, .hx-rows:not(.hx-rows--chain) .hx-row--end .hx-dot { border-color: var(--yellow); background: var(--yellow); }
.hx-url { min-width: 0; }
.hx-mono { display: block; overflow: hidden; color: var(--navy); font: 600 14px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.hx-row--end .hx-mono { color: var(--teal-2); }
.hx-url small { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; }
.hx-badge { padding: 2px 8px; border-radius: 999px; background: var(--blue-soft); color: var(--teal-2); font: 700 12px/1.6 ui-monospace, monospace; }
.hx-row--end .hx-badge { background: #e7f6ec; color: #1d6b3a; }
.hx-note { display: flex; gap: 10px; margin: 12px 0 0; padding: 11px 12px; border-radius: 10px; background: var(--yellow-soft); color: #5c4300; font-size: 13px; font-weight: 600; line-height: 1.45; }
.hx-note code { background: rgba(255, 255, 255, .7); color: var(--navy); }
.hx-dark { padding: 26px; background: var(--navy); color: #d9e8ec; }
.hx-dark__label { color: var(--yellow); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hx-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; margin: 18px 0 0; padding: 0; list-style: none; }
.hx-stats b { display: block; color: var(--white); font-size: 2rem; line-height: 1; letter-spacing: -.04em; white-space: nowrap; }
.hx-stats b em { color: var(--yellow); font-size: .62em; font-style: normal; letter-spacing: 0; }
.hx-stats span { display: block; margin-top: 7px; font-size: 13px; line-height: 1.4; }
.hx-time { margin: 18px 0 0; padding: 0; list-style: none; }
.hx-time li { position: relative; display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 0 0 14px 18px; font-size: 13px; line-height: 1.4; }
.hx-time li::before { content: ""; position: absolute; left: 0; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: #6fb7c6; }
.hx-time li:not(:last-child)::after { content: ""; position: absolute; left: 4px; top: 16px; bottom: 0; width: 1px; background: rgba(255, 255, 255, .18); }
.hx-time b { color: var(--white); font-size: 14px; }
.hx-time li.is-now::before { background: var(--yellow); }
.hx-time li.is-now b { color: var(--yellow); }
.hx-table { width: 100%; margin: 14px 0 0; border-collapse: collapse; font-size: 14px; }
.hx-table th, .hx-table td { padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); text-align: left; }
.hx-table th { color: #d9e8ec; font-weight: 600; }
.hx-table td { color: var(--white); font-weight: 700; text-align: right; }
.hx-table tr.is-hi th, .hx-table tr.is-hi td { border-bottom: 0; color: var(--yellow); }
.hx-dark__foot { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; line-height: 1.5; }
.hx-dark code { background: rgba(255, 200, 59, .14); color: var(--yellow); }
.hx-check__label { color: var(--teal-2); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hx-check ul { margin: 12px 0 0; padding: 0; list-style: none; }
.hx-check li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.hx-check li:first-child { border-top: 0; }
.hx-check li b { display: block; color: var(--navy); font-size: 15px; }
.hx-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--blue-soft); color: var(--teal-2); }
.hx-ico svg { width: 16px; height: 16px; }
@media (max-width: 900px) {
  .hero-grid--aside { grid-template-columns: 1fr; gap: 30px; }
  .hx { justify-self: stretch; width: 100%; }
  .hx--tool { display: none; }
}

/* Сторінка тарифів */
.pricing { position: relative; z-index: 2; margin-top: -40px; padding-bottom: 24px; }
.bill { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 0; }
.bill__input { position: absolute; opacity: 0; pointer-events: none; }
.bill__opt { grid-row: 1; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border: 1px solid var(--line); background: var(--white); color: var(--muted); font-size: 14px; font-weight: 750; cursor: pointer; }
.bill__opt[for="ciclo-m"] { border-radius: 999px 0 0 999px; }
.bill__opt[for="ciclo-a"] { border-left: 0; border-radius: 0 999px 999px 0; }
.bill__opt em { padding: 2px 8px; border-radius: 999px; background: #e7f6ec; color: #1d6b3a; font-size: 12px; font-style: normal; }
.bill__input:checked + .bill__opt { background: var(--navy); border-color: var(--navy); color: var(--white); }
.bill__input:focus-visible + .bill__opt { outline: 3px solid rgba(255, 200, 59, .7); outline-offset: 2px; }
.pl-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.pl-card { position: relative; display: flex; flex-direction: column; padding: 26px 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: var(--shadow); }
.pl-card--key { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.pl-badge { position: absolute; top: -13px; left: 22px; padding: 4px 11px; border-radius: 999px; background: var(--yellow); color: var(--navy); font-size: 12px; font-weight: 800; }
.pl-head h3 { margin: 0 0 12px; color: var(--teal-2); font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pl-price { display: flex; align-items: baseline; gap: 4px; margin: 0; color: var(--navy); }
.pl-cur { font-size: 16px; font-weight: 750; }
.pl-num { font-size: 2.7rem; font-weight: 850; line-height: 1; letter-spacing: -.045em; }
.pl-per { color: var(--muted); font-size: 14px; font-weight: 600; }
.pl-save { min-height: 20px; margin: 6px 0 0; color: #1d6b3a; font-size: 12.5px; font-weight: 700; }
.pl-price--y { display: none; }
#ciclo-a:checked ~ .pl-grid .pl-price--m { display: none; }
#ciclo-a:checked ~ .pl-grid .pl-price--y { display: flex; }
#ciclo-a:checked ~ .pl-grid p.pl-save { display: block; }
.pl-text { min-height: 66px; margin: 12px 0 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.pl-cta { display: flex; min-height: 46px; align-items: center; justify-content: center; border: 1px solid var(--navy); border-radius: 8px; background: var(--white); color: var(--navy); font-size: 15px; font-weight: 750; text-decoration: none; }
.pl-cta:hover { background: var(--blue-soft); color: var(--navy); }
.pl-card--key .pl-cta { border-color: var(--brand); background: var(--brand); color: var(--white); }
.pl-card--key .pl-cta:hover { background: var(--brand-dark); color: var(--white); }
.pl-list { display: grid; gap: 0; margin: 20px 0 0; padding: 0; list-style: none; }
.pl-item { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.4; }
.pl-item b { color: var(--navy); font-weight: 800; }
.pl-item svg { width: 16px; height: 16px; flex: 0 0 auto; align-self: center; }
.pl-item--ok svg { color: var(--brand); }
.pl-item--ok span { color: var(--text); }
.pl-item--warn svg { color: #c98a00; }
.pl-fine { max-width: 760px; margin: 18px 0 0; color: var(--muted); font-size: 13px; }
.pl-custom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; padding: 28px 30px; border-radius: 14px; background: var(--navy); color: #d9e8ec; }
.pl-custom__tag { color: var(--yellow); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pl-custom h3 { margin: 6px 0 6px; color: var(--white); font-size: 1.45rem; }
.pl-custom p { max-width: 620px; margin: 0; font-size: 14.5px; }
.pl-cta--light { flex: 0 0 auto; padding: 0 22px; border-color: var(--yellow); background: var(--yellow); }
.pl-cta--light:hover { background: #ffd666; }
.pt-title { margin: 64px 0 18px; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.pt-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.pt { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.pt th, .pt td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.pt thead th { position: sticky; top: 0; background: var(--white); color: var(--navy); font-size: 15px; font-weight: 800; }
.pt thead th small, .pt tbody th small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.pt tbody th { width: 30%; color: var(--navy); font-weight: 700; text-align: left; }
.pt tbody th small { margin-top: 2px; font-weight: 500; line-height: 1.4; }
.pt td { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.pt td svg { width: 18px; height: 18px; vertical-align: middle; }
.pt td.ok svg { color: var(--brand); }
.pt td.no svg { color: #b8c2c8; }
.pt td.pt-custom { color: var(--muted); font-weight: 600; }
.pt tr.pt-group th { padding-top: 20px; background: var(--bg); color: var(--teal-2); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.pt tbody tr:last-child th, .pt tbody tr:last-child td { border-bottom: 0; }
.pt thead th:nth-child(4), .pt tbody td:nth-child(4) { background: rgba(0, 138, 156, .05); }
@media (max-width: 1000px) { .pl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .pricing { margin-top: -30px; }
  .bill { grid-template-columns: 1fr 1fr; }
  .bill__opt { justify-content: center; padding: 8px 10px; }
  .bill__opt em { display: none; }
  .pl-grid { grid-template-columns: 1fr; margin-top: 30px; }
  .pl-text { min-height: 0; }
  .pl-custom { flex-direction: column; align-items: stretch; padding: 24px; }
}

/* Юридичні документи: звичайний текстовий документ, без лендінгової шапки */
.page-hero--doc { padding: 44px 0 34px; border-bottom: 1px solid var(--line); background: var(--white); }
.page-hero--doc::after { display: none; }
.page-hero--doc .hero-title { font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -.035em; }
.page-hero--doc .hero-meta { margin-top: 14px; }
.article-stage--doc { padding-top: 44px; }
.prose--doc h2 { margin: 40px 0 12px; padding-top: 0; border-top: 0; font-size: 1.35rem; letter-spacing: -.015em; }
.prose--doc h3 { margin: 26px 0 8px; font-size: 1.08rem; }
.prose--doc p, .prose--doc li { font-size: 16px; line-height: 1.7; }
.prose--doc code { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; }
.article-stage--doc .page-index { max-height: calc(100vh - 48px); overflow-y: auto; }
.article-stage--doc .page-index li a { font-size: 13px; }
@media (max-width: 700px) { .page-hero--doc { padding: 32px 0 26px; } }

/* Стани інструментів: помилки полів, результат, сигнали. Підключається на сторінках з формами. */
.field-error{display:block;min-height:0;margin-top:6px;color:#b42318;font-size:13px;font-weight:600}
.field-error:empty{display:none}
[aria-invalid="true"]{border-color:#d92d20!important;box-shadow:0 0 0 3px rgba(217,45,32,.12)}
.hp-field{position:absolute!important;left:-10000px;width:1px;height:1px;overflow:hidden}
.cf-box:empty{display:none}
.cf-box{margin:10px 0 0}
.tool-out{margin-top:14px}
.tool-out[hidden]{display:none}
.tool-note{margin:0;border-radius:8px;padding:12px 14px;font-size:14px;line-height:1.5}
.tool-note--error{border:1px solid #fecdca;background:#fef3f2;color:#912018}
.tool-note--info{border:1px solid #b9e6ef;background:#eaf7fb;color:#0b3c48}
.tool-note--ok{border:1px solid #abefc6;background:#ecfdf3;color:#05603a}
.result-card{position:relative;overflow:hidden;display:grid;gap:12px;border:1px solid #b9e6ef;border-radius:12px;padding:20px 18px 16px;background:#fff;text-align:left;box-shadow:0 10px 28px rgba(13,46,58,.10);animation:result-in .35s ease-out}
.result-card::before{content:"";position:absolute;inset:0 0 auto;height:4px;border-radius:12px 12px 0 0;background:linear-gradient(90deg,#007786,#ffc83b)}
@keyframes result-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.result-card{animation:none}}
.result-label{display:flex;align-items:center;gap:8px;margin:0;color:#126578;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.result-label .done-icon{width:22px;height:22px;padding:4px;border-radius:50%;background:#067647;color:#fff;flex:0 0 auto}
.result-line{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;border:1px dashed #7cc7d4;border-radius:10px;padding:12px 12px 12px 16px;background:#eaf7fb}
.result-link{color:#00626e;font-size:clamp(1.25rem,3.4vw,1.6rem);font-weight:850;letter-spacing:-.01em;text-decoration:none;overflow-wrap:anywhere}
.result-link:hover{text-decoration:underline}
.result-meta,.result-hint{margin:0;color:#5d6c74;font-size:13px;overflow-wrap:anywhere}
.result-hint{border-top:1px solid #e2e8f0;padding-top:10px}
.result-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;overflow-wrap:anywhere;color:#0b3c48}
.result-final{margin:0;border-radius:6px;padding:10px 12px;background:#f8fafc;font-size:14px}
.result-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;margin:0}
.result-facts div{min-width:0}.result-facts .u-span{grid-column:1/-1}
.result-facts dt{color:#5d6c74;font-size:12px;font-weight:700}
.result-facts dd{margin:0;color:#0d2e3a;font-weight:700;overflow-wrap:anywhere}
.alert-list{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.alert{border-left:4px solid;border-radius:4px;padding:8px 10px;font-size:14px;line-height:1.45}
.alert--high{border-color:#d92d20;background:#fef3f2;color:#7a271a}
.alert--medium{border-color:#f79009;background:#fffaeb;color:#7a2e0e}
.alert--low{border-color:#126578;background:#eaf7fb;color:#0b3c48}
.hop-details summary{min-height:0;padding:6px 0;color:#126578;font-size:14px;font-weight:700;cursor:pointer}
.hop-details{border:0;background:none}
.hop-list{display:grid;gap:6px;margin:6px 0 0;padding-left:20px;font-size:13px}
.hop-status{display:inline-block;min-width:36px;margin-right:8px;border-radius:4px;padding:0 5px;background:#eaf7fb;color:#0b3c48;font-weight:700;text-align:center}
.qr-result{grid-template-columns:auto 1fr;align-items:start}
.qr-image{display:block;width:200px;height:200px;border:1px solid #e2e8f0;border-radius:6px;image-rendering:pixelated}
.result-card .action-row{display:flex;flex-wrap:wrap;gap:8px}
.result-card .action-key,.result-line .action-key{display:inline-flex;min-height:42px;align-items:center;justify-content:center;border:1px solid #007786;border-radius:7px;padding:8px 14px;background:#fff;color:#00626e;font-size:14px;font-weight:750;text-decoration:none;cursor:pointer}
.result-card .action-key--solid{background:#007786;color:#fff}
.result-card .action-key--solid:hover{background:#00626e}
.result-card .action-key[disabled]{opacity:.6;cursor:wait}
button[type="submit"][disabled]{opacity:.7;cursor:wait}
@media(max-width:640px){.qr-result{grid-template-columns:1fr}.qr-image{width:100%;max-width:260px;height:auto}.result-facts{grid-template-columns:1fr}.result-line .action-key{width:100%}}

/* Підтвердження виконаної дії */
.is-done,.result-card .action-key.is-done,.result-line .action-key.is-done{gap:7px;border-color:#067647!important;background:#067647!important;color:#fff!important;transition:background .15s,border-color .15s}
.is-done .done-icon{width:16px;height:16px;flex:0 0 auto}
.is-done{animation:done-pop .25s ease-out}
@keyframes done-pop{0%{transform:scale(.96)}60%{transform:scale(1.03)}100%{transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.is-done{animation:none}}
.tool-note--ok{border-width:1px 1px 1px 4px;font-weight:600}

.brand-rail{position:relative;z-index:30;border-bottom:1px solid #e2e8f0;background:rgba(248,250,252,.97)}
.brand-rail__inner{width:min(calc(100% - 32px),1120px);min-height:72px;margin-inline:auto;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand-signature{display:inline-flex;align-items:center;text-decoration:none}.brand-signature img{display:block;width:96px;height:auto}
.menu-trigger{display:none;width:42px;height:42px;place-items:center;border:1px solid #e2e8f0;border-radius:7px;background:#fff;color:#0d2e3a;font-size:20px;cursor:pointer}
.nav-ribbon{display:flex;align-items:center;gap:6px}
.nav-ribbon>a,.nav-group__label{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:8px 12px;border:0;border-radius:7px;background:none;color:#334c55;font:inherit;font-size:14px;font-weight:650;text-decoration:none;cursor:pointer}
.nav-ribbon>a:hover,.nav-group__label:hover,.nav-group:focus-within .nav-group__label,.nav-ribbon>a[aria-current="page"],.nav-group.is-current .nav-group__label{color:#007786}
.nav-group__label svg{width:14px;height:14px;transition:transform .15s}
.nav-group{position:relative}
.nav-drop{position:absolute;top:calc(100% + 8px);left:50%;z-index:40;width:max-content;min-width:300px;max-width:min(620px,calc(100vw - 32px));padding:10px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;box-shadow:0 18px 40px rgba(13,46,58,.14);opacity:0;visibility:hidden;transform:translate(-50%,6px);transition:opacity .15s,transform .15s,visibility .15s}
.nav-drop::before{content:"";position:absolute;left:0;right:0;top:-10px;height:10px}
.nav-group:hover .nav-drop,.nav-group:focus-within .nav-drop,.nav-group__label[aria-expanded="true"]+.nav-drop{opacity:1;visibility:visible;transform:translate(-50%,0)}
.nav-group:hover .nav-group__label svg,.nav-group__label[aria-expanded="true"] svg{transform:rotate(180deg)}
.nav-drop ul{display:grid;gap:2px;margin:0;padding:0;list-style:none}
.nav-drop--wide ul{grid-template-columns:repeat(2,minmax(240px,1fr))}
.nav-drop a{display:block;padding:9px 12px;border-radius:8px;color:#0d2e3a;text-decoration:none}
.nav-drop a:hover,.nav-drop a:focus-visible,.nav-drop a[aria-current="page"]{background:#eaf7fb}
.nav-drop a b{display:block;font-size:14px;font-weight:700;line-height:1.35}
.nav-drop a span{display:block;color:#5d6c74;font-size:12.5px;line-height:1.4}
.nav-drop .nav-drop__all{margin-top:4px;padding-top:6px;border-top:1px solid #e2e8f0}
.nav-drop .nav-drop__all a b{color:#126578}
.nav-ribbon .nav-ribbon__cta{min-height:40px;margin-left:8px;padding:8px 18px;border:1px solid #007786;border-radius:7px;background:#007786;color:#fff;font-weight:700;box-shadow:0 1px 2px rgba(0,0,0,.05)}
.nav-ribbon .nav-ribbon__cta:hover{background:#00626e;border-color:#00626e;color:#fff}
.nav-ribbon .nav-ribbon__cta svg{width:16px;height:16px}
@media(max-width:860px){.nav-drop--wide ul{grid-template-columns:1fr}.nav-drop{left:auto;right:0;transform:translate(0,6px)}.nav-group:hover .nav-drop,.nav-group:focus-within .nav-drop,.nav-group__label[aria-expanded="true"]+.nav-drop{transform:none}}
@media(max-width:700px){
.brand-rail__inner{min-height:64px}.menu-trigger{display:grid}
.nav-ribbon{position:absolute;inset:calc(100% + 1px) 16px auto;display:grid;gap:2px;max-height:calc(100vh - 90px);overflow-y:auto;padding:8px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;box-shadow:0 12px 32px rgba(13,46,58,.14)}
.nav-ribbon[hidden]{display:none}
.nav-ribbon>a,.nav-group__label{width:100%;justify-content:space-between;padding:11px 12px}
.nav-drop,.nav-group:hover .nav-drop,.nav-group:focus-within .nav-drop{position:static;display:none;width:auto;min-width:0;max-width:none;margin:0 0 6px;padding:2px 0 4px 8px;border:0;box-shadow:none;opacity:1;visibility:visible;transform:none;transition:none}
.nav-drop::before{display:none}
.nav-group__label[aria-expanded="true"]+.nav-drop{display:block}
.nav-group:hover .nav-group__label svg{transform:none}.nav-group .nav-group__label[aria-expanded="true"] svg{transform:rotate(180deg)}
.nav-drop a span{display:none}
.nav-ribbon .nav-ribbon__cta{justify-content:center;margin:6px 0 0}
}
@media(max-width:700px){html:not(.has-js) .nav-drop{display:block}}
.u-visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.fb-mark{display:inline-flex;align-items:center;gap:10px;text-decoration:none}
.fb-mark img{display:block;width:132px;height:auto}
.fb-flag{padding:3px 9px;border-radius:999px;background:#ffc83b;color:#0d2e3a;font-size:11px;font-weight:800;letter-spacing:.08em;line-height:1.4;text-transform:uppercase}
.closing-deck__brand .fb-slogan,.footer-brand .fb-slogan{margin:14px 0 0;color:#fff;font-size:15px;font-weight:700;line-height:1.4}
.closing-deck__brand .fb-text,.footer-brand .fb-text{max-width:300px;margin:10px 0 0;color:#abc0c7;font-size:14px;line-height:1.6}
