@charset "UTF-8";
/* PLANARA landing. Colours are the app's tokens (design/tokens.json), light and dark. */
/* Fonts served from here, not Google: no visitor's address leaves for a third party. Inter and
   Fira Sans Condensed (SIL OFL 1.1, assets/fonts/OFL-*.txt), Latin and Cyrillic, from @fontsource 5. */
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/inter-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/inter-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/inter-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/inter-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/inter-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/inter-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/inter-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/inter-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/inter-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/inter-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/inter-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/inter-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Fira Sans Condensed"; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/fira-sans-condensed-cyrillic-400-italic.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Fira Sans Condensed"; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/fira-sans-condensed-latin-ext-400-italic.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Fira Sans Condensed"; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/fira-sans-condensed-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root {
  --page: #eef1f4;
  --surface: #ffffff;
  --ink: #10272b;
  --muted: #616870;
  --body: #4a5258;
  --line: #e3e8ed;
  --line2: #d3dae1;
  --field: #c4ccd4;
  --primary: #46725a;
  --primary-hover: #3a604b;
  --primary-ink: #46725a;
  --ok: #ecf1ee;
  --info-bg: #f0f3fd;
  --info: #2f5bd3;
  --err: #dc2628;
  --warning: #c27011;
  --dash: #b5bbc2;
  --grid: rgba(16, 39, 43, 0.03); --grid-major: rgba(16, 39, 43, 0.08);
  --sheet-ink: rgba(16, 39, 43, 0.18); --sheet-ink-late: rgba(220, 38, 40, 0.2);
  --bar: rgba(238, 241, 244, 0.96);
  --deep: #14181c;
  --foot: #1e2227;
  --hdr-h: 65px;
  --sh-paper: #ffffff; --sh-edge: #d3dae1; --sh-ink: #10272b; --sh-rule: #8e9399; --sh-row: #e3e8ed; --sh-text: #2a3a3e; --sh-muted: #616870;
  --sh-info: rgba(49, 109, 240, 0.6); --sh-info-bg: rgba(49, 109, 240, 0.08); --sh-info-ink: #316df0;
  --sh-green: #46725a; --sh-box-bg: rgba(70, 114, 90, 0.2); --sh-glow: rgba(70, 114, 90, 0.45); --sh-warn: #c27011; --sh-warn-bg: rgba(194, 112, 17, 0.15); --sh-tip: #ffffff;
  color-scheme: light;
}
:root.dark {
  --page: #14181c;
  --surface: #1e2227;
  --ink: #e6e9ee;
  --muted: #b3b8bf;
  --body: #c9ced4;
  --line: #2c3237;
  --line2: #3a4048;
  --field: #4a515a;
  --primary-ink: #7cc39d;
  --ok: rgba(124, 195, 157, 0.14);
  --info-bg: rgba(120, 150, 240, 0.14);
  --info: #9db8f5;
  --err: #f2706a;
  --dash: #4a515a;
  --grid: rgba(230, 233, 238, 0.03); --grid-major: rgba(230, 233, 238, 0.06);
  --sheet-ink: rgba(230, 233, 238, 0.14); --sheet-ink-late: rgba(242, 112, 106, 0.2);
  --bar: rgba(20, 24, 28, 0.96);
  --deep: #1e2227;
  --foot: #0e1114;
  --sh-paper: #1e2227; --sh-edge: #3a4048; --sh-ink: #c9ced4; --sh-rule: #4a515a; --sh-row: #2c3237; --sh-text: #d5dae0; --sh-muted: #b3b8bf;
  --sh-info: rgba(134, 166, 245, 0.6); --sh-info-bg: rgba(134, 166, 245, 0.12); --sh-info-ink: #9db8f5;
  --sh-green: #7cc39d; --sh-box-bg: rgba(124, 195, 157, 0.16); --sh-glow: rgba(124, 195, 157, 0.45); --sh-warn: #f5ae4b; --sh-warn-bg: rgba(245, 174, 75, 0.16); --sh-tip: #2a2f35;
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* The window does not scroll: the header stays put and the page scrolls in .scroller under it,
   so the scrollbar starts below the header. It takes the page's own colours. */
html, body { height: 100%; overflow: hidden; }
body { display: flex; flex-direction: column; }
.scroller { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: var(--field) var(--page); }
::-webkit-scrollbar { width: 10px; background: var(--page); }
::-webkit-scrollbar-thumb { background: var(--field); border-radius: 999px; border: 2px solid var(--page); }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-ink); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

.only-dark { display: none; }
.dark .only-light { display: none; }
.dark .only-dark { display: revert; }

/* Header */
.hdr {
  position: relative; z-index: 5; flex: none;
  display: flex; align-items: center; gap: 24px;
  padding: 10px 56px;
  min-height: var(--hdr-h);
  background: var(--surface); /* a plate of its own over the page, its edge drawn */
  border-bottom: 1px solid var(--line2);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { height: 28px; width: auto; }
.brand-word { height: 15px; width: auto; }
.tagline { padding-left: 24px; border-left: 1px solid var(--line2); font-size: 14px; font-weight: 500; color: var(--body); }
.navlinks { margin-left: auto; display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.navlinks a, .login { color: var(--body); text-decoration: none; }
.navlinks a:hover, .login:hover { color: var(--ink); }
.hdr-right { display: flex; align-items: center; gap: 16px; }
.login { font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
.themebtn {
  width: 44px; height: 44px; border-radius: 999px;
  border: 0; background: transparent; color: var(--muted);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.themebtn:hover { color: var(--ink); }

/* Sections */
.sect { padding: 80px 56px; }
.screen { display: flex; flex-direction: column; justify-content: center; }
.screen.first { min-height: min(calc(100svh - var(--hdr-h)), 1000px); }
.screen > * { width: 100%; }
.wrap { max-width: 1240px; margin: 0 auto; }
/* Drawing paper: a line every 5 mm and a heavier one every 1 cm (CSS mm/cm are
   the real ones at 100% zoom). app.js puts a centimetre line on the content's left and top edges. */
.paper-grid {
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 1cm 1cm, 1cm 1cm, 5mm 5mm, 5mm 5mm;
  background-position: var(--gx, 0) var(--gy, 0);
}
.surface { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.deep { background-color: var(--deep); color: #e6e9ee; }
.stack-48 { display: flex; flex-direction: column; gap: 48px; }
.stack-40 { display: flex; flex-direction: column; gap: 40px; }
.stack-32 { display: flex; flex-direction: column; gap: 32px; }
.stack-28 { display: flex; flex-direction: column; gap: 28px; }
.stack-20 { display: flex; flex-direction: column; gap: 20px; }

.h1 { font-size: 54px; line-height: 1.06; letter-spacing: -0.03em; font-weight: 700; }
.h2 { font-size: 44px; line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; }
.lead { font-size: 22px; line-height: 1.55; color: var(--body); max-width: 34em; }
.big-p { font-size: 20px; line-height: 1.5; max-width: 32em; }

/* Hero */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 64px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 28px; }
/* The heading breaks only between its phrases, so no word is left on a line of its own */
.h1 span { white-space: nowrap; }
/* Each of the three theses is a block of its own, a little apart from the next */
.h1 span { display: block; }
.h1 span:nth-child(3), .h1 span:nth-child(5) { margin-top: 0.42em; }

/* Forms */
.lead-form { display: flex; flex-direction: column; gap: 12px; max-width: 540px; }
.field-label { font-size: 15px; font-weight: 500; }
.field-label.big { font-size: 18px; font-weight: 600; line-height: 1.35; }
.hint:empty { display: none; }
/* A wide form: the fields on the left, the button on the right as tall as two fields, the consent
   under both */
.lead-form.wide { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); column-gap: 24px; align-items: start; }
.lead-form.wide > :not(.wide-fields, .btn) { grid-column: 1 / -1; }
/* The button a little shorter than the two fields, level with their middle; beside a task's
   description it stands at the fields' top */
.lead-form.wide > .btn { align-self: center; height: 96px; font-size: 18px; }
.lead-form.wide:has(.area) > .btn { align-self: start; margin-top: 0; }
.wide-fields { display: flex; flex-direction: column; gap: 14px; }
.form-h { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
.field.area { height: auto; min-height: 96px; padding: 14px 18px; resize: vertical; line-height: 1.4; }
.field {
  min-width: 0; height: 56px; flex: none; padding: 0 18px;
  border-radius: 10px; border: 1px solid var(--field);
  font: inherit; font-size: 17px; color: var(--ink); background: var(--surface);
}
.field:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.field[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 1px var(--err); }
.consent input[aria-invalid="true"] { outline: 2px solid var(--err); outline-offset: 1px; }
.btn {
  height: 56px; padding: 0 26px; border: 0; border-radius: 10px;
  background: var(--primary); color: #fff; font: inherit; font-size: 17px; font-weight: 600;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.btn:hover { background: var(--primary-hover); color: #fff; }
.btn:disabled { opacity: 0.7; cursor: progress; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 0; accent-color: var(--primary); flex-shrink: 0; }
.err { font-size: 15px; color: var(--err); }
.hint { font-size: 15px; color: var(--muted); }
.hint.err { color: var(--err); }
/* Every message fits the hint's lines: one on a wide form, two on a phone */
@media (max-width: 560px) { .lead-form [data-msg] { min-height: 2lh; } }
.sent {
  max-width: 540px; padding: 20px 22px; border-radius: 12px; background: var(--ok);
  display: flex; gap: 16px; align-items: flex-start; color: var(--primary-ink);
}
.sent > svg { flex-shrink: 0; }
.sent div { display: flex; flex-direction: column; gap: 4px; color: var(--body); font-size: 16px; }
.sent b { font-size: 18px; font-weight: 600; color: var(--ink); }
.linkbtn {
  align-self: flex-start; min-height: 40px; padding: 0; border: 0; background: none;
  color: var(--primary-ink); font: inherit; font-size: 15px; text-decoration: underline; cursor: pointer;
}

/* The specification sheet; to its right the machine's picks from the 1C price list, then the sums */
.sheet { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.paper { position: relative; padding: 0; }
.spec {
  --pp: 196px; --sum: 92px;
  position: relative; display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 36px 46px 50px var(--pp) var(--sum);
  font-family: "Fira Sans Condensed", sans-serif; font-style: italic; font-size: 14px; color: var(--sh-text);
}
/* The table's cells take the page's colour, so the paper grid does not run through the text */
.spec > :not(:empty):not(.frame) { background-color: var(--page); }
.frame { position: absolute; left: 0; top: 0; bottom: 0; right: calc(var(--pp) + var(--sum)); border: 1.5px solid var(--sh-ink); pointer-events: none; overflow: hidden; z-index: 2; }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--sh-green); box-shadow: 0 0 14px 4px var(--sh-glow); display: none; }
.price-title {
  grid-column: 6 / 8; display: flex; align-items: center; justify-content: center; padding: 10px 12px;
  border-top: 1.5px solid var(--sh-ink); border-right: 1.5px solid var(--sh-ink); border-bottom: 1px solid var(--sh-ink);
  font-family: Inter, sans-serif; font-style: normal; font-size: 15px; font-weight: 600; color: var(--sh-ink);
}
.spec-title { grid-column: 1 / 6; padding: 10px 12px; border-bottom: 1px solid var(--sh-ink); text-align: center; font-size: 16px; }
.th { padding: 6px; border-bottom: 1px solid var(--sh-ink); border-right: 1px solid var(--sh-rule); font-size: 13px; }
.td { position: relative; padding: 8px 6px; border-bottom: 1px solid var(--sh-row); border-right: 1px solid var(--sh-rule); }
.th.last, .td.last { border-right: 0; }
.box { position: absolute; inset: 3px; border-radius: 2px; border: 1px solid var(--sh-green); background: var(--sh-box-bg); opacity: 0; }
.box.doubt { border: 2px solid var(--sh-warn); background: var(--sh-warn-bg); }
/* The price columns are a table joined to the sheet's frame */
.pth { font-family: Inter, sans-serif; font-style: normal; font-weight: 500; color: var(--sh-muted); padding: 6px 8px; }
.pth.end { border-right: 1.5px solid var(--sh-ink); text-align: right; }
/* A pick from the price list: a candidate that turns out wrong is struck out and the next one tried */
.pp {
  display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 2px 8px;
  font-family: Inter, sans-serif; font-style: normal; line-height: 1.25;
  border-bottom: 1px solid var(--sh-row); border-right: 1px solid var(--sh-rule);
}
/* Both lines hold their height while empty, so the rows do not jump when the picks come in */
.pp-name { display: block; min-height: 15px; line-height: 16px; font-size: 13px; color: var(--sh-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-price { display: block; min-height: 17px; line-height: 18px; font-size: 14px; font-weight: 600; color: var(--sh-text); white-space: nowrap; }
.pp.try { animation: try 0.3s ease-out; }
.pp.miss .pp-name, .pp.miss .pp-price { text-decoration: line-through; color: var(--err); }
.pp.hit { animation: try 0.3s ease-out, hit 1.2s ease-out; }
.pp.hit.warn .pp-price { color: var(--sh-warn); }
@keyframes try { from { opacity: 0; transform: translateY(-6px); } }
@keyframes hit { 0% { background: var(--sh-box-bg); } 100% { background: transparent; } }
.ann {
  display: flex; align-items: center; justify-content: flex-end; padding-right: 8px;
  border-bottom: 1px solid var(--sh-row); border-right: 1.5px solid var(--sh-ink);
  font-family: Inter, sans-serif; font-style: normal; font-size: 14px; font-weight: 600; color: var(--sh-green); white-space: nowrap;
}
.ann.warn { color: var(--sh-warn); }
.pp.end, .ann.end { border-bottom: 1.5px solid var(--sh-ink); }
/* The price columns are drawn only when they are needed: the pick column as the matching starts,
   the sum column with the first sum; top to bottom, left to right */
.pcol, .scol { clip-path: inset(0 100% 0 0); }
.pcol.on, .scol.on { animation: draw 0.35s ease-out forwards; animation-delay: calc(var(--i) * 45ms); }
@keyframes draw { to { clip-path: inset(0 0 0 0); } }
.ann span { opacity: 0; }
.ann.has span, .tip.on, .total.on { animation: ann 0.4s ease-out forwards; }
.stamp-row { grid-column: 1 / 6; display: flex; justify-content: flex-end; }
.stamp { display: grid; grid-template-columns: 70px 90px 46px; border-left: 1px solid var(--sh-ink); border-top: 1px solid var(--sh-ink); font-size: 11px; color: var(--sh-muted); }
.stamp span { padding: 4px 6px; border-right: 1px solid var(--sh-rule); }
.stamp span:last-child { border-right: 0; }
/* The cell that holds the tooltip lies above the price columns, so the tooltip covers them whole */
.td.has-tip:has(.tip.on) { z-index: 4; } /* only while the tooltip is up: before it, the scan line passes over this row as over the others */
/* The app's tooltip over a page: white plate, the remark on the warning tint */
.tip {
  position: absolute; left: 24px; top: calc(100% + 10px); z-index: 3; width: 360px; opacity: 0;
  padding: 6px 10px; border-radius: 12px; background: var(--sh-tip); border: 1px solid var(--sh-edge);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  font-family: Inter, sans-serif; font-style: normal; font-size: 13px; color: var(--sh-ink);
  display: flex; flex-direction: column; gap: 3px;
}
.tip-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.tip-head b { font-size: 14px; font-weight: 600; }
.tip-head span { font-size: 12px; color: var(--sh-muted); }
.tip-remark { padding: 4px 8px; border-radius: 8px; background: var(--sh-warn-bg); line-height: 1.35; }
.fix-row { display: grid; margin-top: 4px; } /* the one fix, as wide as the tooltip */
.fix-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 32px; padding: 0 8px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--primary); color: #fff; font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.fix-btn:hover { background: var(--primary-hover); }
/* Accepted: the value a person corrected is blue, as an edited value is in the app */
.sheet .td.edited .box { border: 1px solid var(--sh-info); background: var(--sh-info-bg); opacity: 1; animation: none; box-shadow: none; }
.sheet .td.edited { color: var(--sh-info-ink); }
.sheet .tip.gone { animation: none; opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0s 0.2s; }
.total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 0; opacity: 0; }
.total span { font-size: 15px; color: var(--muted); }
.total b { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }

/* What the machine has done with the request so far: lit one by one as the sheet plays */
.stages { margin: 0.5cm 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stages li { position: relative; padding-top: 22px; padding-right: 0.25cm; font-size: 14px; line-height: 1.3; color: var(--muted); transition: color 0.3s; }
/* Each stage's dot sits on a crossing of the paper's centimetre lines (its centre on the column's
   left edge and on the strip's top line); the line runs from dot to dot, bolder and green once
   both ends are through */
.stages li::before {
  content: ""; position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; box-sizing: border-box;
  border: 1.5px solid var(--field); background: var(--page); z-index: 1; transition: background 0.3s, border-color 0.3s;
}
.stages li::after { content: ""; position: absolute; left: 0; right: 0; top: -0.5px; height: 1px; background: var(--line2); transition: background 0.3s, height 0.3s, top 0.3s; }
.stages li:last-child::after { display: none; }
.stages li.done:has(+ li.done)::after, .stages li.done:has(+ li.wait)::after { height: 2px; top: -1px; background: var(--primary-ink); }
.stages li.done { color: var(--ink); }
.stages li.done::before { background: var(--primary-ink); border-color: var(--primary-ink); }
.stages li.wait { color: var(--ink); }
.stages li.wait::before { background: var(--warning); border-color: var(--warning); }
.stages li small { display: block; min-height: 1.3em; font-size: 13px; color: var(--muted); }

/* Reading, played once the table is wholly on screen (app.js adds .run, then picks the prices) */
.sheet.run .scan { display: block; animation: scan 2.8s cubic-bezier(0.4, 0, 0.4, 1) forwards; }
.sheet.run .box { animation: fade 0.25s ease-out forwards; animation-delay: calc(0.4s + var(--i) * 0.5s); }
.sheet.run .box.doubt { animation: fade 0.25s ease-out forwards; animation-delay: calc(0.4s + var(--i) * 0.5s); }
.sheet .box.doubt.pulse { animation: pulse 0.9s ease-in-out 3; opacity: 1; }
.sheet .box.settled { animation: none; opacity: 1; }
@keyframes fade { to { opacity: 1; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 0 6px var(--sh-warn); } }
@keyframes ann { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes scan { 0% { top: 0; opacity: 1; } 92% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .box, .ann span, .tip, .total, .pic-pdf .pdf, .pic-check span::after, .pic-sum b { opacity: 1; transform: none; }
  .pic-sum span i { width: var(--w); }
  .sheet.run .scan { display: none; }
  .pcol, .scol { clip-path: none; }
  .sheet.run .box, .ann.has span, .tip.on, .total.on, .pp.try, .pp.hit, .sheet .box.doubt.pulse { animation: none; opacity: 1; }
}

/* Familiar situation */
.queue { display: flex; flex-wrap: wrap; gap: 10px; }
/* A request still waiting is drawn dashed by gradients, not by a dashed border: Safari on iOS lost the
   dashed border's sides */
.queue i {
  --dc: var(--dash);
  position: relative; width: 40px; height: 52px; border: 1.5px solid transparent;
  background-origin: border-box;
  background-image:
    linear-gradient(90deg, var(--dc) 50%, transparent 0), linear-gradient(90deg, var(--dc) 50%, transparent 0),
    linear-gradient(var(--dc) 50%, transparent 0), linear-gradient(var(--dc) 50%, transparent 0);
  background-size: 6px 1.5px, 6px 1.5px, 1.5px 6px, 1.5px 6px;
  background-position: 0 0, 0 100%, 0 0, 100% 0;
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
}
.queue i::after { content: ""; position: absolute; right: 3px; bottom: 3px; width: 14px; height: 6px; border-top: 1px dashed var(--dash); border-left: 1px dashed var(--dash); }
.queue i.done { border-color: var(--ink); background: var(--ok); }
.queue i.done::after { border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
/* app.js brings the requests in and works some of them as the block scrolls in; the rest turn red */
.queue.live i { opacity: 0; transform: translateY(12px); transition: background 0.2s, border-color 0.2s; }
.queue i.late { --dc: var(--err); }
.queue i.late::after { border-color: var(--err); }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 0; padding: 0; list-style: none; }
.pain { border-top: 2px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.pain h3, .steps h3 { font-size: 19px; font-weight: 600; line-height: 1.3; }
.pain p, .steps p { font-size: 17px; line-height: 1.55; color: var(--muted); }
.steps h3 { font-size: 21px; }
.steps p { font-size: 18px; }

/* «Знакомая ситуация»: ГОСТ drawing sheets pile up behind the block as it scrolls in, burying it
   (app.js drops one more sheet at a time) */
.situation { position: relative; overflow: hidden; }
.situation > .wrap { position: relative; z-index: 1; }
.pile { position: absolute; inset: 0; pointer-events: none; color: var(--sheet-ink); transition: color 0.8s ease; }
.pile.late { color: var(--sheet-ink-late); }
.gsheet {
  position: absolute; width: 210px; height: 297px; opacity: 0;
  transform: translateY(-60px) rotate(calc(var(--r) + 8deg)) scale(1.04);
  transition: opacity 0.35s ease-out, transform 0.5s cubic-bezier(0.3, 1.3, 0.5, 1);
  filter: drop-shadow(0 10px 18px rgba(16, 30, 48, 0.08));
}
.gsheet.in { opacity: 1; transform: rotate(var(--r)); }
.gsheet.a3 { width: 297px; height: 210px; } /* a sheet of the plan, A3 lying */
.situation .queue i:not(.done):not(.late) { background-color: var(--surface); }
/* The text keeps a plate of the page under it, so the pile shows around it, not through it */
.situation h2, .situation .queue, .situation .big-p, .situation .pain {
  width: fit-content; background: var(--surface); border-radius: 6px; box-shadow: 0 0 0 12px var(--surface);
}
/* The cards' top rules run straight to their ends */
.situation .pain { width: auto; border-radius: 0; }

/* How it works */
/* The pictures in a row, «Инженер:» under them, then the three steps it does */
.steps { grid-auto-flow: column; row-gap: 20px; }
.steps::before { content: "Инженер:"; grid-row: 2; grid-column: 1 / -1; font-size: 32px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.steps li { display: contents; }
.steps .pic { grid-row: 1; margin-bottom: 0; }
/* Under «Инженер:» each step as before the block had it: its number, its heading, its text */
.steps .step-body { grid-row: 3; display: flex; flex-direction: column; gap: 0.5cm; } /* the texts are trimmed to their letters: half a centimetre between them */
.steps li:nth-child(2) > * { grid-column: 2; }
.steps li:nth-child(3) > * { grid-column: 3; }
/* Each step's little picture plays once the steps come into view (app.js adds .in) */
.pic { position: relative; height: 112px; margin-bottom: 8px; border: 1px solid var(--line2); border-radius: 12px; background: var(--surface); overflow: hidden; }
.pic-pdf .pdf { position: absolute; top: 18px; width: 58px; height: 76px; color: var(--ink); opacity: 0; transform: translateY(-30px); overflow: visible; }
.pic-pdf .pdf:nth-child(1) { left: calc(50% - 95px); --d: 0s; }
.pic-pdf .pdf:nth-child(2) { left: calc(50% - 29px); --d: 0.15s; }
.pic-pdf .pdf:nth-child(3) { left: calc(50% + 37px); --d: 0.3s; }
.in .pic-pdf .pdf { animation: drop 0.5s cubic-bezier(0.3, 1.4, 0.5, 1) var(--d) forwards; }
@keyframes drop { to { opacity: 1; transform: none; } }
.pic-check { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 22px; }
.pic-check span { position: relative; height: 14px; border-radius: 3px; border: 1px solid var(--line2); }
.pic-check span::after { content: ""; position: absolute; inset: -1px; border-radius: 3px; border: 1px solid var(--primary-ink); background: color-mix(in srgb, var(--primary) 18%, transparent); opacity: 0; }
.pic-check span.w::after { border: 1.5px solid var(--warning); background: color-mix(in srgb, var(--warning) 16%, transparent); }
.pic-check span:nth-child(2)::after { animation-delay: 0.2s !important; } .pic-check span:nth-child(3)::after { animation-delay: 0.4s !important; } .pic-check span:nth-child(4)::after { animation-delay: 0.6s !important; }
.in .pic-check span::after { animation: fade 0.3s ease-out forwards; }
.in .pic-check span.w::after { animation: fade 0.3s ease-out forwards, pulse 0.9s ease-in-out 1.2s 2; }
.pic-sum { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 22px; }
.pic-sum span { height: 8px; border-radius: 4px; background: var(--line); }
.pic-sum span i { display: block; height: 8px; border-radius: 4px; width: 0; background: var(--primary-ink); }
.pic-sum span + span i { background: var(--muted); opacity: 0.5; }
.in .pic-sum span i { animation: grow-w 0.7s ease-out forwards; }
.in .pic-sum span:nth-child(2) i { animation-delay: 0.15s; } .in .pic-sum span:nth-child(3) i { animation-delay: 0.3s; }
@keyframes grow-w { to { width: var(--w); } }
.pic-sum b { align-self: flex-end; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; opacity: 0; }
.in .pic-sum b { animation: ann 0.4s ease-out 0.8s forwards; }
.num { font-size: 40px; font-weight: 700; color: var(--primary-ink); line-height: 1; }
/* Demo: the link in the first screen, the film after «Знакомая ситуация?» */
.demo-link { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; font-size: 18px; font-weight: 600; color: var(--primary-ink); text-decoration: none; }
.demo-link:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.demo-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; padding-left: 2px; }
.demo-head { display: flex; flex-direction: column; gap: 12px; text-align: center; align-items: center; }
.demo-sub { font-size: 20px; color: var(--muted); }
/* As wide as fits under its heading on one screen */
.video { position: relative; aspect-ratio: 16 / 9; width: 100%; max-width: calc((100svh - var(--hdr-h) - 260px) * 16 / 9); margin: 0 auto; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
/* The phone's film stands upright: as tall as the screen allows, centred */
.video.vertical { aspect-ratio: 9 / 16; max-width: none; width: min(100%, calc((100svh - var(--hdr-h) - 320px) * 9 / 16)); } /* above the phone's bottom button */
.video video { width: 100%; height: 100%; display: block; object-fit: contain; }
.video-play {
  position: absolute; left: 50%; top: 50%; width: 104px; height: 104px; margin: -52px 0 0 -52px;
  display: grid; place-items: center; padding-left: 6px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--primary); color: #fff; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25); transition: transform 0.15s;
}
.video-play:hover { transform: scale(1.06); background: var(--primary-hover); }
.video-play[hidden] { display: none; }

/* Solution */
.sol { display: flex; flex-direction: column; gap: 40px; }
/* The dark block is drawing paper too, its lines light */
.deep.paper-grid { --grid: rgba(230, 233, 238, 0.015); --grid-major: rgba(230, 233, 238, 0.035); }
.deep .h2 { color: #fff; }
/* The orders ranked: each row its sum and five criteria, a value over one thin bar whose length says how
   good it is and whose colour says whether it is fine, needs attention or is a problem (app.js draws the rows) */
.rating { display: flex; flex-direction: column; gap: 20px; padding: 32px; border: 1px solid #3a4048; border-radius: 14px; background: #14181c; }
/* The title and its line, under them the colours' key with the sorting at the right */
.rating-top { display: flex; flex-direction: column; gap: 10px; }
.rating-top > div { display: flex; flex-direction: column; gap: 10px; }
.rating-top > .rating-bar { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: 6px; }
.rating-h { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
/* The product's mark in the corner: the card reads as a screen of PLANARA */
.rating-brand { display: flex; align-items: center; gap: 8px; }
.rating-brand img:first-child { height: 22px; }
.rating-brand img:last-child { height: 12px; }
.rating-top p { font-size: 17px; line-height: 1.5; color: #b3b8bf; }
.rating-sort { display: flex; align-items: center; gap: 10px; flex-shrink: 0; font-size: 15px; color: #b3b8bf; }
.rating-sort select { height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid #3a4048; background: #1e2227; color: #fff; font: 500 16px Inter, system-ui, sans-serif; }
.rk-grid { display: grid; grid-template-columns: 40px minmax(0, 1.2fr) minmax(0, 1fr) repeat(5, minmax(0, 1fr)) 22px; column-gap: 16px; }
.rating-head { padding: 0 20px; font-size: 14px; line-height: 1.3; color: #8e9399; }
.rating-head .on { color: #fff; font-weight: 600; }
.rating-rows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.rk { border-radius: 12px; border: 1px solid #2c3237; background: #1a1e22; }
.rk.first { border-color: #46725a; background: rgba(124, 195, 157, 0.07); }
.rk-row {
  width: 100%; box-sizing: border-box; align-items: center; padding: 16px 20px; border: 0; border-radius: 12px;
  background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.rk-row:hover { background: rgba(255, 255, 255, 0.02); }
.rk-place { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; background: #262b31; color: #e6e9ee; }
.rk.first .rk-place { background: #46725a; color: #fff; }
.rk-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rk-name b { font-size: 17px; font-weight: 600; color: #fff; }
.rk-name span { font-size: 16px; color: #c9ced4; }
.rk-sum { font-size: 17px; font-weight: 600; color: #fff; white-space: nowrap; }
.rk-c { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rk-v { font-size: 16px; font-weight: 500; color: #fff; white-space: nowrap; }
.rk-v small { font-size: 14px; font-weight: 400; color: #8e9399; }
.rk-vs, .rk-cl { display: none; }
.rk-cs { display: contents; }
.rk-bar { display: block; height: 4px; border-radius: 2px; background: #2c3237; }
.rk-bar i { display: block; height: 100%; border-radius: 2px; }
.g { background: #7cc39d; } .y { background: #f5ae4b; } .r { background: #f2706a; }
.rk-chev { color: #b3b8bf; transition: transform 0.2s; }
.rk-row[aria-expanded="true"] .rk-chev { transform: rotate(180deg); }
.rk-more { padding: 4px 20px 20px; border-top: 1px solid #2c3237; }
.rk-why { grid-column: 2 / 4; display: flex; flex-direction: column; gap: 10px; padding: 16px 12px 0 0; font-size: 15px; line-height: 1.5; }
.rk-why b { font-weight: 600; color: #fff; }
.rk-why .pro { color: #7cc39d; } .rk-why .con { color: #f5ae4b; }
.rk-fig { grid-column: 4 / 9; margin: 0; padding-top: 16px; display: flex; gap: 40px; }
.rk-fig div { display: flex; flex-direction: column; gap: 2px; }
.rk-fig dt { font-size: 13px; color: #8e9399; }
.rk-fig dd { margin: 0; font-size: 17px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.rating-foot { font-size: 14px; color: #8e9399; }
.rating-key { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: #8e9399; }
.rating-key > span { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.rating-key i { width: 16px; height: 4px; border-radius: 2px; }

/* Pilot */
.pilot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 64px; align-items: center; }
.fourteen { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 16px; }
.fourteen b { font-size: 176px; line-height: 0.8; font-weight: 700; letter-spacing: -0.04em; color: var(--primary-ink); }
.fourteen span { font-size: 20px; line-height: 1.3; padding-bottom: 6px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.card .lead-form { max-width: none; gap: 14px; }

/* A pilot's case: the story on the left, the two sums and the value that made them differ on the right */
.case-tag { border-left: 3px solid var(--primary-ink); padding-left: 12px; font-size: 17px; line-height: 1.2; color: var(--body); }
.case-sum { color: var(--err); white-space: nowrap; }
.case-text { display: flex; flex-direction: column; gap: 1cm; }
.case-text p { font-size: 18px; line-height: 1.55; color: var(--body); max-width: 32em; }
.card.case-card { gap: 0; }
.case-card > * + * { margin-top: 0.5cm; }
.case-row { height: 1.5cm; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 0.5cm; border: 1px solid var(--line2); border-radius: 8px; font-size: 19px; font-weight: 600; }
.case-row b { font-size: 22px; font-weight: 700; }
.case-row.ok { background: var(--ok); border-color: rgb(from var(--primary-ink) r g b / 0.4); }
.case-diff { display: grid; } /* a plate as wide as the rows, square like the app's remark */
.case-diff span { height: 1cm; display: flex; align-items: center; padding: 0 0.5cm; border-radius: 8px; background: var(--sh-warn-bg); color: var(--sh-warn); font-size: 19px; font-weight: 600; }
.case-vals { display: grid; grid-template-columns: minmax(0, 1fr) 1cm minmax(0, 1fr); }
.case-vals > svg { place-self: center; color: var(--primary-ink); }
.case-val { min-height: 3cm; display: flex; flex-direction: column; justify-content: space-between; gap: 0.5cm; padding: 0.5cm; border-radius: 8px; border: 1px solid; }
.case-val span { font-size: 15px; line-height: 1.3; color: var(--body); }
.case-val b { font-size: 44px; line-height: 1; letter-spacing: -0.02em; }
.case-val.bad { background: rgb(from var(--err) r g b / 0.07); border-color: rgb(from var(--err) r g b / 0.3); }
.case-val.bad b { color: var(--err); }
.case-val.good { background: var(--ok); border-color: rgb(from var(--primary-ink) r g b / 0.4); }
.case-val.good b { color: var(--primary-ink); }
.case-note { padding: 0.5cm; border-radius: 8px; border: 1px solid rgb(from var(--primary-ink) r g b / 0.4); background: var(--ok); }
.case-note p { border-left: 3px solid var(--primary-ink); padding-left: 12px; font-size: 20px; line-height: 1.35; font-weight: 600; text-box: normal; }

/* Other task: its text and «Открыть форму»; the form opens under them */
.band { padding-top: 40px; padding-bottom: 40px; }
.other { padding-top: 0; }
.card.other-card { gap: 16px; }
.other-card .h3 { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
.other-card p { font-size: 18px; line-height: 1.55; color: var(--body); }
.btn.small { align-self: flex-start; height: 44px; padding: 0 18px; font-size: 16px; }
.btn.ghost { background: transparent; color: var(--primary-ink); box-shadow: inset 0 0 0 1.5px var(--primary-ink); }
.btn.ghost:hover { background: var(--ok); color: var(--primary-ink); }
.foot { padding: 48px 56px; background: var(--foot); color: #b3b8bf; font-size: 15px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 28px 64px; justify-content: space-between; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col.narrow { max-width: 380px; }
.foot-col a { color: #b3b8bf; }
.foot-col a:hover { color: #fff; }
.foot-word { height: 14px; width: auto; align-self: flex-start; }
.foot-h { color: #fff; }

.stickybar { display: none; }

/* Desktop layout on the drawing paper: the content box is a whole number of centimetres and the
   pieces that sit on the paper are sized in centimetres and half-centimetres, so their edges fall on
   the grid lines (app.js also nudges each block's top onto the nearest 5 mm line below). */
/* Text boxes are trimmed to the cap height and the baseline, so what sits on a grid line is the
   letters themselves, not the empty leading above them */
.paper-grid :is(h1, h2, h3, p, .field-label, .num, .total) { text-box: trim-both cap alphabetic; }
@media (min-width: 1181px) {
  .hdr { padding-left: max(56px, calc((100% - 32cm) / 2)); padding-right: max(56px, calc((100% - 32cm) / 2)); }
  /* «Пилот» on the paper: two 15 cm columns, the card in centimetres (its height rounded up by app.js) */
  .pilot-grid { grid-template-columns: 15cm 15cm; gap: 1cm 2cm; align-items: start; }
  .pilot-grid .stack-20 { gap: 0; }
  .pilot-grid .stack-20 > * + * { margin-top: 1cm; }
  .fourteen { margin-bottom: 0; }
  .fourteen b { text-box: trim-both cap alphabetic; line-height: 1; }
  .fourteen b { min-width: 2ch; text-align: left; } /* «1»…«14» keeps the room of two digits, its left edge on the line */
  .card { padding: 1cm; gap: 0; }
  .card .lead-form { gap: 0; }
  .card .lead-form > * + * { margin-top: 0.5cm; }
  .card.other-card { gap: 0.5cm; }
  .card .field.area { height: 3cm; }
  .lead-form.wide { column-gap: 1cm; grid-template-columns: 15cm minmax(0, 1fr); }
  .card .lead-form.wide > .btn { height: 2.5cm; }
  .card .lead-form.wide:has(.area) > .btn { height: 3.5cm; }
  .band { padding-top: 1cm; padding-bottom: 1cm; }
  .stages { grid-template-columns: 4cm 4cm 4cm 3cm; } /* each stage starts on a centimetre line */
  .card .field, .card .btn { height: 1.5cm; }
  /* The block must fit one screen: its content starts near the top, the heading takes two lines */
  .deep.screen { justify-content: flex-start; padding-top: 1.5cm; padding-bottom: 1.5cm; }
  .deep .h2 { font-size: 40px; }
  .rating { padding: 1cm; }
  .wrap { max-width: 32cm; }
  .sheet { gap: 0; }
  /* The offer's headline and the sheet start on one line */
  .hero-grid { grid-template-columns: 14cm 16cm; gap: 2cm; align-items: start; }
  .screen.first { padding-top: 1cm; padding-bottom: 1cm; }
  .hero-text { gap: 0; }
  .hero-text > * + * { margin-top: 1cm; }
  .lead-form { gap: 0; }
  .spec { --pp: 4.25cm; --sum: 2.75cm; font-size: 16px; grid-template-columns: 0.75cm minmax(0, 1fr) 1cm 1.25cm 1.5cm var(--pp) var(--sum); grid-template-rows: 1cm 1cm repeat(5, 1cm); } /* every row a whole centimetre: the table's lines fall on the paper's */
  .spec .td, .spec .th, .spec .pp, .spec .ann { display: flex; align-items: center; padding-top: 0; padding-bottom: 0; }
  .spec .pp { flex-direction: column; align-items: stretch; justify-content: center; }
  .spec .spec-title { display: flex; align-items: center; justify-content: center; padding: 0 12px; }
  .total { margin-top: 0.5cm; }
  .spec .th { font-size: 14px; }
  .spec .spec-title { font-size: 17px; }
  .spec .pp-name { font-size: 14px; }
  .spec .pp-price { font-size: 15px; }
  .spec .ann { font-size: 16px; }
  .pic { height: 3.5cm; }
  .stack-40 { gap: 1cm; }
  .cols3.steps { column-gap: 1cm; row-gap: 0.5cm; }
  .pic { height: 3cm; }
}

/* A narrower desktop (1181–1329 px): the same on 28 cm — the offer 12 cm, the sheet 15 cm */
@media (min-width: 1181px) and (max-width: 1329px) {
  .wrap { max-width: 28cm; }
  .hdr { padding-left: max(56px, calc((100% - 28cm) / 2)); padding-right: max(56px, calc((100% - 28cm) / 2)); }
  .hero-grid { grid-template-columns: 12cm 15cm; gap: 1cm; }
  .lead-form.wide { grid-template-columns: 13cm minmax(0, 1fr); }
  .pilot-grid { grid-template-columns: 13cm 14cm; gap: 1cm; }
  .cols3.steps { column-gap: 0.5cm; }
  .h1 { font-size: 46px; }
  .spec { --pp: 3.7cm; font-size: 15px; } /* the sheet is 15 cm here: the names keep one line */
}

/* Too narrow for the sheet beside the offer: it goes under the form */
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-text { max-width: 720px; }
  .sheet { max-width: 760px; }
}

/* Phone and narrow windows */
@media (max-width: 960px) {
  :root { --hdr-h: 57px; }
  .hdr { padding: 6px 16px; }
  .tagline, .navlinks { display: none; }
  .hdr-right { margin-left: auto; }
  .brand-mark { height: 24px; }
  .brand-word { height: 13px; }
  .sect, .foot { padding-left: 16px; padding-right: 16px; }
  .sect { padding-top: 40px; padding-bottom: 40px; }
  .screen { justify-content: flex-start; }
  .screen.first { min-height: calc(100svh - var(--hdr-h)); }
  .hero-grid, .pilot-grid, .cols3 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  /* One column: «Инженер:», then each step with its picture */
  .steps { grid-auto-flow: row; }
  .field { padding: 0 14px; }
  .field::placeholder { font-size: 15px; } /* «Номер телефона, ник ТГ или email» whole on a 360 px phone */
  .steps::before { grid-row: auto; grid-column: auto; font-size: 26px; }
  .steps li { display: flex; flex-direction: column; gap: 0.5cm; }
  .lead-form.wide { grid-template-columns: minmax(0, 1fr); }
  .lead-form.wide > .btn, .card .lead-form.wide > .btn { height: 1.5cm; font-size: 17px; }
  .form-h, .other-card .h3 { font-size: 24px; }
  .btn.small { align-self: stretch; height: 1.5cm; }
  .h1 { font-size: 34px; }
  .h2 { font-size: 30px; }
  .demo-sub { font-size: 17px; }
  .video-play { width: 80px; height: 80px; margin: -40px 0 0 -40px; }
  .lead { font-size: 19px; }
  .h1 span { white-space: normal; }
  .foot-row { flex-direction: column; }
  .fourteen b { font-size: 104px; }
  .case-row { font-size: 16px; padding: 0 12px; }
  .case-row b { font-size: 18px; }
  .case-val { padding: 12px; gap: 12px; }
  .case-val span { font-size: 13px; }
  .case-val b { font-size: 30px; }
  .case-vals { grid-template-columns: minmax(0, 1fr) 0.75cm minmax(0, 1fr); }
  .case-note { padding: 12px; }
  .case-note p { font-size: 16px; }
  .case-text p { font-size: 16px; }
  .fourteen span { font-size: 17px; }
  /* On the paper in half-centimetres, like the desktop in centimetres */
  .card { padding: 0.5cm; }
  .field, .btn, .card .field, .card .btn { height: 1.5cm; }
  .pic { height: 3cm; }
  /* The text takes the whole width of a phone: its plates would hide the pile, so there it has none and
     the pile lies under the text itself (the sheets are filled, their lines faint) */
  .situation :is(h2, .queue, .big-p, .pain) { background: none; box-shadow: none; }
  .gsheet { width: 105px; height: 148.5px; }
  .gsheet.a3 { width: 148.5px; height: 105px; }
  /* At half size the sheets' thin lines need a little more ink to be seen */
  .pile { color: rgb(from var(--sheet-ink) r g b / calc(alpha * 1.4)); }
  .pile.late { color: rgb(from var(--sheet-ink-late) r g b / calc(alpha * 1.4)); }
  /* The rating as cards: the request and its sum, under them the five values in short */
  .rating { padding: 16px 12px; gap: 14px; }
  .rating-top { gap: 14px; padding: 0 4px; }
  .rating-top > .rating-bar { flex-direction: column; align-items: stretch; }
  .rating-h { font-size: 24px; }
  .rating-top p { font-size: 15px; }
  .rating-sort span { display: none; }
  .rating-sort select { flex: 1; }
  .rating-head { display: none; }
  .rk-cs { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1.1fr) minmax(0, 0.7fr) minmax(0, 1.2fr); column-gap: 6px; }
  .rk-cl { display: block; font-size: min(11px, 3vw); color: #8e9399; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rk-row { grid-template-columns: 36px minmax(0, 1fr) 22px; grid-template-areas: "place name chev" "place sum chev" "cs cs cs"; column-gap: 10px; row-gap: 2px; padding: 12px; }
  .rk-place { grid-area: place; width: 36px; height: 36px; font-size: 18px; align-self: start; }
  .rk-name { grid-area: name; }
  .rk-name b { font-size: 16px; }
  .rk-name span { font-size: 15px; }
  .rk-sum { grid-area: sum; font-size: 15px; font-weight: 500; color: #c9ced4; }
  .rk-chev { grid-area: chev; align-self: start; margin-top: 8px; }
  .rk-cs { grid-area: cs; display: grid; margin-top: 10px; }
  .rk-c { gap: 6px; }
  .rk-v { display: none; }
  .rk-vs { display: block; font-size: min(13px, 3.6vw); font-weight: 500; color: #fff; white-space: nowrap; } /* «частично» fits down to a 320 px screen */
  .rk-bar { height: 3px; }
  .rk-more { display: flex; flex-direction: column; gap: 16px; padding: 12px; }
  .rk-more > span { display: none; }
  .rk-why { padding: 0; }
  .rk-fig { padding: 0; gap: 24px; }
  .rk-fig dd { font-size: 15px; }
  .spec { --pp: 84px; --sum: 72px; grid-template-columns: 22px minmax(0, 1fr) 24px 32px 34px var(--pp) var(--sum); font-size: 12.5px; }
  .spec .th { padding: 6px 2px; font-size: 11px; }
  .spec .td { padding: 8px 4px; }
  .spec .pp, .spec .pth, .spec .ann { padding-left: 5px; padding-right: 5px; }
  .spec .ann { font-size: 12px; }
  .pp { padding: 2px 6px; }
  .pp-name { font-size: 12px; line-height: 15px; }
  .price-title { font-size: 12px; padding: 6px 5px; }
  .pp-price { font-size: 12px; line-height: 17px; }
  .stages li { font-size: 13px; }
  .stages li small { font-size: 12px; }
  .ann { font-size: 13px; }
  .stamp { grid-template-columns: 40px 76px 46px; }
  .total b { font-size: 24px; }
  .tip { left: 0; width: min(320px, 82vw); }
  .fix-btn { padding: 0 6px; font-size: 13px; }
  .fix-btn svg { display: none; }
  .stickybar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--bar); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform 0.25s ease;
  }
  .stickybar.on { transform: none; }
  .stickybar .btn { flex: 1; height: 54px; }
}

/* Counting numbers keep their width while they run */
.total b, .ann, .fourteen b, .rk-sum, .rk-v, .case-row b, .case-val b { font-variant-numeric: tabular-nums; }

/* A field only robots fill (the API drops a lead that has it) */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
