@font-face {
  font-family: "Noto Sans";
  src: url(NotoSans.woff2) format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif";
  src: url(NotoSerif.woff2) format("woff2");
  font-weight: 600 750;
  font-display: swap;
}
:root {
  color-scheme: light;
  --po-primary: #1f3a5f;
  --po-primary-dark: #162b47;
  --po-gold: #c9a961;
  --po-gold-dark: #8a6f2e;
  --po-border: #d3dae3;
  --po-bg: #fbfcfe;
  --po-paper: #ffffff;
  --po-ink: #23344a;
  --po-muted: #4e6074;
  --po-soft: #eef3f8;
  --po-focus: #1f3a5f;
  --po-control-border: #78899c;
  --po-warn: #9a470c;
  --po-error: #a22a2e;
  --po-hold: #526175;
  --po-done: #276344;
  --po-sans: "Noto Sans", system-ui, sans-serif;
  --po-serif: "Noto Serif", Georgia, serif;
  --po-gutter: clamp(16px, 3.2vw, 42px);
  --po-space: 16px;
  --po-radius: 10px;
  --po-radius-wide: 20px;
  --po-hit: 44px;
  --po-max: 1440px;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--po-ink); background: var(--po-bg); font: 400 1rem/1.55 var(--po-sans); }
a { color: inherit; text-underline-offset: .2em; }
button, input { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--po-focus); outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, p, figure { margin: 0; }
.shell { max-width: var(--po-max); margin-inline: auto; padding-inline: var(--po-gutter); }
.skip { position: absolute; top: 8px; left: 8px; z-index: 4; padding: 10px; background: var(--po-paper); transform: translateY(-160%); }
.skip:focus { transform: none; }
.top { background: var(--po-paper); border-top: 3px solid var(--po-gold); border-bottom: 1px solid var(--po-border); }
.top-row { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: var(--po-hit); font-weight: 740; font-size: .98rem; line-height: 1.25; color: var(--po-primary-dark); text-decoration: none; }
.brand img { width: 45px; height: 45px; object-fit: contain; flex: none; }
.top-actions { display: flex; align-items: center; gap: clamp(10px,2vw,24px); flex: none; }
.kyiv { color: var(--po-muted); font-size: .875rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kyiv time { font-weight: 740; color: var(--po-primary-dark); }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; text-decoration: none; border-radius: var(--po-radius); border: 1px solid var(--po-primary); padding: 9px 16px; cursor: pointer; font-weight: 750; color: var(--po-paper); background: var(--po-primary); }
.button:hover { background: var(--po-primary-dark); border-color: var(--po-primary-dark); }
.button:disabled { cursor: default; color: var(--po-muted); background: var(--po-soft); border-color: var(--po-border); }
.button[aria-invalid="true"] { border: 2px solid var(--po-error); background: var(--po-paper); color: var(--po-error); }
.hero { display: grid; grid-template-columns: minmax(0,1fr); align-items: center; position: relative; isolation: isolate; margin-block: 24px 18px; padding: clamp(18px,2.7vw,38px); min-height: 520px; }
.hero-copy { min-width: 0; position: relative; z-index: 1; width: min(603px,58%); padding: clamp(18px,2.5vw,34px); border: 1px solid var(--po-border); border-radius: var(--po-radius-wide); background: #fbfcfef7; box-shadow: 0 10px 26px #162b4726; }
.hero h1, .login-card h1 { font: 700 clamp(2rem,4vw,3.85rem)/1.08 var(--po-serif); letter-spacing: -.042em; color: var(--po-primary-dark); }
.hero h1 { max-width: 19ch; }
.hero h1 span { white-space: nowrap; }
.hero-copy > p { margin-top: 16px; max-width: 59ch; color: var(--po-muted); }
.entry { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 10px; margin-top: 22px; }
.entry a { min-width: 0; min-height: 48px; text-decoration: none; border-radius: var(--po-radius); border: 1px solid var(--po-control-border); background: var(--po-paper); padding: 12px; color: var(--po-primary-dark); display: grid; grid-template-columns: 24px 1fr; align-content: center; align-items: center; column-gap: 9px; font-weight: 760; line-height: 1.35; }
.entry a:first-child { background: var(--po-primary); border-color: var(--po-primary); color: var(--po-paper); }
.entry a:first-child:hover { background: var(--po-primary-dark); }
.entry a:last-child:hover { background: var(--po-soft); }
.entry small { grid-column: 2; color: var(--po-muted); font-size: .875rem; line-height: 1.35; font-weight: 400; margin-top: 5px; }
.entry img, .features img, .trust img { width: 24px; height: 24px; }
.entry a:first-child img { filter: brightness(0) invert(1); }
.scene { position: absolute; inset: 0; overflow: hidden; border-radius: var(--po-radius-wide); background: var(--po-soft); border: 1px solid var(--po-border); }
.scene picture, .scene img { display: block; width: 100%; height: 100%; }
.scene img { object-fit: cover; object-position: 70% 20%; }
.scene figcaption { position: absolute; right: 10px; bottom: 10px; max-width: calc(100% - 20px); background: var(--po-primary-dark); color: var(--po-paper); border-radius: 6px; padding: 5px 9px; font-size: .8rem; }
.features { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.features li { display: flex; align-items: start; gap: 10px; padding: 14px; background: var(--po-paper); border: 1px solid var(--po-border); border-radius: var(--po-radius); }
.features strong { display: block; color: var(--po-primary-dark); }
.features span { color: var(--po-muted); display: block; margin-top: 3px; }
.trust { margin-block: 16px 32px; padding: 13px 15px; display: flex; align-items: flex-start; gap: 10px; border-left: 3px solid var(--po-gold); background: var(--po-soft); border-radius: 0 var(--po-radius) var(--po-radius) 0; }
.footer { background: var(--po-primary-dark); color: var(--po-paper); }
.footer-row { display: flex; flex-wrap: wrap; gap: 0 24px; align-items: center; min-height: 66px; padding-block: 8px; }
.footer a { display: inline-flex; align-items: center; min-height: var(--po-hit); }
.footer a:focus-visible { outline-color: var(--po-gold); }
.footer .year { margin-inline-start: auto; }
.login-main { padding-block: clamp(26px,4vw,58px); }
.login-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: 455px; border: 1px solid var(--po-border); border-radius: var(--po-radius-wide); overflow: hidden; background: var(--po-paper); }
.login-card { padding: clamp(20px,4vw,56px); }
.back, .forgot { display: inline-flex; align-items: center; min-height: var(--po-hit); font-weight: 700; color: var(--po-primary); }
.login-card h1 { margin: 16px 0 24px; font-size: clamp(2rem,3.6vw,3.25rem); }
.login-card form { max-width: 450px; }
.field { display: grid; gap: 5px; margin-bottom: 14px; font-weight: 700; }
.field input { min-height: var(--po-hit); border: 1px solid var(--po-control-border); border-radius: var(--po-radius); padding: 9px 10px; color: var(--po-ink); background: var(--po-paper); font-weight: 400; width: 100%; }
.field input:hover { border-color: var(--po-primary-dark); }
.field input:disabled { background: var(--po-soft); color: var(--po-muted); }
.field input[aria-invalid="true"] { border: 2px solid var(--po-error); }
.form-note { color: var(--po-muted); margin-top: 5px; }
.form-error { color: var(--po-error); font-weight: 680; margin-bottom: 12px; }
.login-card .button { width: 100%; }
.support { background: var(--po-soft); min-width: 0; display: grid; grid-template-rows: clamp(235px,29vw,350px) 1fr; }
.support img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 82% 25%; }
.support > div { border-top: 3px solid var(--po-gold); padding: clamp(18px,3.4vw,42px); }
.support h2 { font: 700 clamp(1.3rem,2.05vw,1.85rem)/1.25 var(--po-serif); color: var(--po-primary-dark); }
.support a { display: inline-flex; align-items: center; min-height: var(--po-hit); color: var(--po-primary); font-weight: 760; }
.support p { color: var(--po-ink); }
@media (max-width: 1000px) {
  .hero h1 { font-size: clamp(2rem,4.6vw,3rem); }
  .hero-copy { width: 65%; }
  .entry { gap: 8px; }
  .entry a { grid-template-columns: 1fr; }
  .entry img { display: none; }
  .entry small { grid-column: 1; }
  .features { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 620px) {
  .top-row { min-height: 62px; gap: 7px; }
  .brand { font-size: .85rem; gap: 6px; }
  .brand img { width: 34px; height: 37px; }
  .top-actions { gap: 6px; }
  .top-actions .button { padding-inline: 9px; font-size: .9rem; }
  .kyiv { display: flex; flex-direction: column; font-size: .75rem; line-height: 1.2; }
  .hero { grid-template-columns: minmax(0,1fr); gap: 8px; margin-block: 0 18px; padding: 10px 0 0; min-height: 0; }
  .scene { position: relative; grid-row: 1; height: clamp(112px,30vw,166px); border-radius: var(--po-radius); }
  .scene img { object-position: 69% 8%; }
  .scene figcaption { bottom: 5px; right: 5px; font-size: .72rem; }
  .hero-copy { width: 100%; padding: 13px 10px; border-radius: var(--po-radius); box-shadow: none; }
  .hero h1 { font-size: clamp(1.64rem,7.3vw,2.48rem); max-width: none; text-wrap: pretty; }
  .hero-copy > p { margin-top: 10px; line-height: 1.42; }
  .entry { grid-template-columns: 1fr; margin-top: 12px; }
  .entry a { grid-template-columns: 24px 1fr; padding: 9px 10px; }
  .entry img { display: block; }
  .entry small { grid-column: 2; }

  .features { grid-template-columns: 1fr; }
  .trust { margin-bottom: 21px; }
  .footer .year { margin-inline-start: 0; }
  .login-main { padding-block: 17px 22px; }
  .login-shell { grid-template-columns: 1fr; }
  .login-card h1 { margin: 7px 0 18px; }
  .support { grid-template-rows: auto 155px; }
  .support > div { grid-row: 1; }
  .support img { grid-row: 2; }
}
@media print {
  @page { size: A4; margin: 15mm; }
  body, .print-document, .po-register, .po-annual-report { background: #fff !important; color: #000 !important; }
  header, nav, footer, button, .button, .skip, .scene, .support, .video, [data-no-print] { display: none !important; }
  .print-document, .po-register, .po-annual-report { width: 100%; margin: 0; padding: 0; box-shadow: none; }
  table { border-collapse: collapse; width: 100%; }
  thead { display: table-header-group; }
  tr { break-inside: avoid; }
  th, td { border: 1px solid #222; padding: 4px; }
}
/* Інтеграція: повідомлення форми входу і нижні відступи */
.login-card .form-error { margin: 0 0 14px; padding: 10px 12px; border-left: 4px solid var(--po-error); background: #fff0f1; border-radius: 0 8px 8px 0; }
.login-card .form-info { margin: 0 0 14px; padding: 10px 12px; border-left: 4px solid var(--po-gold); background: var(--po-soft); border-radius: 0 8px 8px 0; }
.top-actions .button.secondary { background: var(--po-paper); color: var(--po-primary); border-color: var(--po-control-border); }
.top-actions .button.secondary:hover { background: var(--po-soft); }
