/* zafiksirovano.ru, the service for advocates and lawyers. Design system 11 values (site/assets/css/tokens.css
   of the main service), self-contained so the pages load nothing else.
   Rules of the project: white screen, large text, colour only on actions, no pills with tinted text,
   no dots before labels, no dashes in copy.
   p- is the landing, c- is the cabinet. */

@font-face { font-family: Geologica; src: url("../fonts/Geologica-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: Geologica; src: url("../fonts/Geologica-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: Inter; src: url("../fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Inter; src: url("../fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --ink: #191b1e;
  --body: #515b65;
  --line: #dfe3e8;
  --line-strong: #b9c0c9;
  --card: #edf0f4;
  --white: #ffffff;
  --green: #1ede7b;
  --green-dark: #149955;
  --green-hover: #19c46c;
  --error: #b3261e;
  --font-head: Geologica, Inter, Arial, sans-serif;
  --font-body: Inter, Arial, sans-serif;
  --font-mono: ui-monospace, Consolas, monospace;
  --wrap: 1120px;
  --gutter: 24px;
  --gap: 48px;
  --sec: 112px;
  --side: 264px;
  --radius-box: 12px;
  --radius-control: 100px;
}

html, body { overflow-x: clip; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 18px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, dl, dd, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); }
a:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 4px; }
a:active { opacity: .8; }

/* Scrollbars as on the main site: a rounded green thumb, no arrows, no track. */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background-color: var(--green); border: 3px solid transparent; border-radius: var(--radius-control); background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--green-dark); }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
@supports not selector(::-webkit-scrollbar) { html { scrollbar-width: thin; scrollbar-color: var(--green) transparent; } }

.p-wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---- header ---- */
.p-top { display: flex; align-items: center; gap: 32px; padding: 24px 0; }
/* The owner's logo (pro/zafiksirovano_ru_logo.svg), painted in the text colour; its height sets its size. */
.p-logo { --logo-h: 30px; display: block; flex: none; line-height: 0; }
.p-logo img { display: block; height: var(--logo-h); width: auto; }
.p-logo:hover { opacity: .75; }
.p-logo:active { opacity: .6; }
.p-nav { display: flex; gap: 28px; margin-left: auto; font-size: 17px; }
.p-nav a { text-decoration: none; color: var(--body); }
.p-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }

/* ---- buttons: icon first, no lift on hover; the outline one fills with green on hover ---- */
.p-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; padding: 0 32px; box-sizing: border-box; border: 2px solid var(--green); border-radius: var(--radius-control); background: var(--green); color: var(--ink); font: 600 19px/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer; }
.p-btn:hover { background: var(--green-hover); border-color: var(--green-hover); }
.p-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.p-btn:active { opacity: .85; }
.p-btn:disabled { opacity: .45; cursor: default; }
.p-btn-line { background: var(--white); }
.p-btn-line:hover { background: var(--green); border-color: var(--green); color: var(--ink); }
.p-btn-small { min-height: 46px; padding: 0 20px; font-size: 17px; }
.p-top .p-btn-small { margin-left: 0; }
.p-ico { width: 22px; height: 22px; flex: none; }

/* ---- hero: the text and a sheet of the protocol ---- */
.p-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 64px; align-items: start; padding: 32px 0 var(--sec); }
.p-hero-text { padding-top: clamp(8px, 4vh, 48px); min-width: 0; }
.p-title { font-family: var(--font-head); font-weight: 500; font-size: clamp(40px, min(5vw, 8.5vh), 72px); line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
.p-lead { margin-top: clamp(16px, 3.5vh, 32px); max-width: 560px; text-wrap: balance; font-family: var(--font-head); font-weight: 300; font-size: clamp(21px, 1.9vw, 25px); line-height: 1.38; }
.p-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(20px, 4vh, 40px); }

/* The sheet repeats an appendix page of the protocol: its number, the address and the time, the capture,
   the strip with the QR code, the number, the key and the page. */
.p-sheet { container-type: inline-size; aspect-ratio: 210 / 297; background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius-box); color: var(--ink); }
/* cqi counts from the sheet itself, so the inner block carries the fields and the type. */
.p-sheet-in { display: flex; flex-direction: column; gap: 2.5cqi; height: 100%; padding: 9cqi 9cqi 5cqi; box-sizing: border-box; font-size: clamp(8px, 2.5cqi, 12px); line-height: 1.45; }
.p-sheet-no { text-align: right; }
.p-sheet-head p { overflow-wrap: anywhere; }
.p-sheet-img { width: 100%; border: 1px solid var(--line); }
.p-sheet-foot { display: grid; grid-template-columns: 13cqi minmax(0, 1fr) auto; gap: 3cqi; align-items: start; margin-top: auto; padding-top: 3cqi; border-top: 1px solid var(--line-strong); }
.p-sheet-qr { width: 100%; image-rendering: pixelated; }
.p-sheet-note { margin-top: .4em; font-size: .8em; color: var(--body); overflow-wrap: anywhere; }
.p-sheet-page { white-space: nowrap; }

/* ---- sections ---- */
.p-sec { padding: 0 0 var(--sec); }
.p-h2 { font-family: var(--font-head); font-weight: 500; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -.04em; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
.p-intro { margin-top: 16px; max-width: 680px; font-size: 21px; line-height: 1.45; color: var(--body); }
.p-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: start; }

/* A step is headed by h3 on the landing and by h2 in the cabinet, where it follows the title of the page. */
h3, .p-steps h2 { font-family: var(--font-head); font-weight: 500; font-size: 24px; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
.p-steps h3 + p, .p-steps h2 + p, .p-grid h3 + p { margin-top: 8px; color: var(--body); }

.p-steps { list-style: none; padding: 0; counter-reset: step; }
.p-steps li { counter-increment: step; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 8px; padding: 24px 0; border-top: 1px solid var(--line); }
.p-steps li:last-child { border-bottom: 1px solid var(--line); }
.p-steps li::before { content: counter(step); grid-row: span 2; font-family: var(--font-head); font-weight: 500; font-size: 36px; line-height: 1; letter-spacing: -.04em; }

.p-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px var(--gap); margin-top: 48px; }
.p-grid article { padding-top: 20px; border-top: 1px solid var(--line); }

.p-table { width: 100%; margin-top: 40px; border-collapse: collapse; font-size: 19px; }
.p-table th { padding: 0 24px 12px 0; text-align: left; font-size: 17px; font-weight: 600; color: var(--body); }
.p-table td { padding: 20px 24px 20px 0; vertical-align: top; border-top: 1px solid var(--line); }
.p-table td:first-child { width: 46%; font-weight: 600; }
.p-table tr:last-child td { border-bottom: 1px solid var(--line); }

.p-video { display: grid; place-items: center; aspect-ratio: 16 / 9; margin-top: 40px; border: 1px dashed var(--line-strong); border-radius: var(--radius-box); color: var(--body); font-size: 20px; }

.p-terms > div { padding: 20px 0; border-top: 1px solid var(--line); }
.p-terms > div:last-child { border-bottom: 1px solid var(--line); }
.p-terms dt { font-family: var(--font-head); font-weight: 500; font-size: 24px; line-height: 1.2; }
.p-terms dd { margin-top: 8px; color: var(--body); }
.p-terms + .p-acts { margin-top: 32px; }

/* ---- footer ---- */
.p-foot { padding: 28px 0 40px; border-top: 2px solid var(--green); color: var(--body); font-size: 17px; }
.p-logo-small { --logo-h: 22px; display: inline-block; margin-bottom: 16px; }
.p-foot p { margin-top: 4px; }
.p-foot p a { text-underline-offset: 4px; }

/* ---- cabinet: the tree of dates on the left, the protocols on the right ---- */
.c-body { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100dvh; font-size: 17px; }
.c-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.c-side { position: sticky; top: 0; display: flex; flex-direction: column; gap: 32px; height: 100dvh; padding: 24px 12px 20px; box-sizing: border-box; border-right: 1px solid var(--line); overflow-y: auto; }
.c-logo { --logo-h: 26px; margin-left: 12px; }
.c-nav { flex: 1; }
.c-nav-title { margin: 0 0 8px 12px; font-family: var(--font-head); font-weight: 500; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
.c-tree, .c-tree ul { list-style: none; margin: 0; padding: 0; }
.c-tree ul { padding-left: 16px; }
.c-node { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 12px; box-sizing: border-box; border: 0; border-radius: var(--radius-box); background: none; color: var(--ink); font: 400 17px/1.3 var(--font-body); text-align: left; cursor: pointer; }
.c-node:hover { background: var(--card); }
.c-node[aria-current="true"] { background: var(--card); font-weight: 600; }
.c-node:focus-visible { outline: 3px solid var(--green-dark); outline-offset: -3px; }
.c-node:active { opacity: .8; }
.c-node-name { flex: 1; min-width: 0; }
/* A day has no mark: its name stands under the name of its month. */
.c-tree ul .c-node-leaf { padding-left: 32px; }
.c-count { color: var(--body); font-size: 16px; font-weight: 400; font-variant-numeric: tabular-nums; }
/* The mark of a year and of a month: it points right when closed and down when open. */
.c-chev { flex: none; width: 8px; height: 8px; margin: 0 4px 4px 0; border-right: 2px solid var(--body); border-bottom: 2px solid var(--body); transform: rotate(-45deg); transition: transform .15s; }
.c-node[aria-expanded="true"] .c-chev { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .c-chev { transition: none; } }

.c-me { padding: 16px 12px 0; border-top: 1px solid var(--line); }
.c-me-mail { margin: 0 0 4px; color: var(--body); font-size: 16px; overflow-wrap: anywhere; }
.c-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; border: 0; background: none; color: var(--ink); font: 400 17px/1.3 var(--font-body); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.c-link:hover { color: var(--body); }
.c-link:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 4px; }
.c-link:active { opacity: .8; }

.c-main { min-width: 0; max-width: 1280px; padding: 24px 32px 64px; box-sizing: border-box; }
.c-mock { margin: 0 0 24px; color: var(--body); font-size: 16px; }

/* One line and one button: the address of the page to inspect. */
.c-open { margin: 0 0 56px; }
.c-open-label { display: block; margin: 0 0 12px; font-family: var(--font-head); font-weight: 500; font-size: 24px; line-height: 1.2; letter-spacing: -.02em; }
.c-open-row { display: flex; gap: 12px; }
.c-input { flex: 1; min-width: 0; min-height: 60px; padding: 0 24px; box-sizing: border-box; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--white); color: var(--ink); font: 400 19px var(--font-body); }
.c-input::placeholder { color: var(--body); }
.c-input:hover { border-color: var(--ink); }
.c-input:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 2px; }
.c-hint { margin: 12px 0 0; max-width: 820px; color: var(--body); }

/* Until the extension is in the browser: how to install it from the archive. */
.c-ext { margin: 0 0 48px; padding: 24px 28px; border: 1px solid var(--line-strong); border-radius: var(--radius-box); }
.c-ext-steps { margin: 0; padding-left: 24px; }
.c-ext-steps li { margin: 8px 0 0; }
.c-ext-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.c-code { font-family: var(--font-mono); font-size: .95em; }
.c-error { margin: 24px 0 0; color: var(--error); font-weight: 600; }

.c-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 20px; }
.c-title { font-family: var(--font-head); font-weight: 500; font-size: clamp(30px, 3vw, 44px); line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
.c-search { position: relative; display: block; flex: none; width: min(100%, 340px); }
.c-search .p-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--body); pointer-events: none; }
.c-input-small { width: 100%; min-height: 48px; padding: 0 16px 0 48px; font-size: 17px; }

/* A row: the number and what was captured on the left, the actions on the right. */
.c-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.c-col-acts { width: 528px; }
.c-table td { padding: 16px 16px 16px 0; vertical-align: middle; border-bottom: 1px solid var(--line); }
.c-table td:last-child { padding-right: 0; }
.c-day th { padding: 32px 0 12px; text-align: left; font-family: var(--font-head); font-weight: 500; font-size: 20px; line-height: 1.2; letter-spacing: -.01em; border-bottom: 1px solid var(--line); }
.c-table tbody tr:first-child.c-day th { padding-top: 8px; }
.c-line { display: flex; align-items: baseline; gap: 16px; min-width: 0; }
.c-line + .c-line { margin-top: 4px; }
.c-num { flex: none; color: var(--ink); font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; }
.c-num:hover { text-decoration: underline; text-underline-offset: 4px; }
.c-meta { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--body); font-size: 16px; white-space: nowrap; }
.c-host, .c-page { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-host { flex: 0 1 auto; max-width: 55%; }
.c-page { flex: 1 1 0; min-width: 0; color: var(--body); font-size: 16px; }
.c-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.c-btn { gap: 8px; min-height: 44px; padding: 0 12px; font-size: 16px; }
.c-btn .p-ico { width: 20px; height: 20px; }
.c-none { margin: 32px 0 0; color: var(--body); font-size: 19px; }

.c-first .p-steps { max-width: 760px; margin-top: 24px; }

.c-toast { position: fixed; left: 50%; bottom: 24px; z-index: 10; max-width: calc(100% - 32px); margin: 0; padding: 12px 24px; box-sizing: border-box; border-radius: var(--radius-box); background: var(--ink); color: var(--white); font-size: 17px; transform: translateX(-50%); }

/* ---- narrower windows ---- */
@media (max-width: 1180px) {
  /* The buttons of a row go under its text. */
  .c-table, .c-table tbody, .c-table tr, .c-table td, .c-table th { display: block; }
  .c-table colgroup, .c-table thead { display: none; }
  .c-table tbody tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .c-table td { padding: 0; border: 0; }
  .c-table td.c-acts-cell { padding-top: 12px; }
  .c-table tbody tr.c-day { padding: 0; border: 0; }
  .c-acts { justify-content: flex-start; }
}
@media (max-width: 1040px) {
  .p-nav { display: none; }
  .p-top .p-btn-small { margin-left: auto; }
}
@media (max-width: 860px) {
  :root { --sec: 80px; --gap: 32px; }
  .p-hero { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .p-sheet { width: 100%; max-width: 440px; }
  .p-split { grid-template-columns: minmax(0, 1fr); }
  .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* The cabinet in one column: the tree first, the list under it. */
  .c-body { grid-template-columns: minmax(0, 1fr); }
  .c-side { position: static; height: auto; gap: 20px; padding: 20px 4px 16px; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .c-main { padding: 20px 16px 48px; }
  .c-head { flex-wrap: wrap; }
  .c-search { flex: 1 1 100%; width: auto; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; --sec: 64px; }
  .p-top .p-logo { --logo-h: 26px; }
  .p-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .p-acts .p-btn { flex: 1 1 100%; }
  .p-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .p-table tr { display: block; padding: 16px 0; border-top: 1px solid var(--line); }
  .p-table tr:last-child { border-bottom: 1px solid var(--line); }
  .p-table td { display: block; width: auto; padding: 0; border: 0; }
  .p-table td:first-child { width: auto; margin-bottom: 4px; }
  .p-table tr:last-child td { border-bottom: 0; }
  .c-open-row { flex-direction: column; }
  .c-ext { padding: 20px 16px; }
  .c-ext-acts .p-btn { flex: 1 1 100%; padding: 0 16px; }
  .c-line { flex-wrap: wrap; gap: 0 12px; }
  .c-host { max-width: 100%; }
  .c-page { flex-basis: 100%; }
  .c-acts .c-btn { flex: 1 1 calc(50% - 4px); }
}
@media (max-width: 380px) {
  .p-top { gap: 12px; }
  .p-top .p-logo { --logo-h: 20px; }
  .p-btn { padding: 0 20px; }
  .p-top .p-btn-small { padding: 0 16px; }
  .p-h2 { font-size: 28px; }
  .c-btn { padding: 0 12px; }
}
