/* «Чертёж» waiting screen of the LED proposal (approved layout «C · Чертёж»). */

.led-blueprint {
  --bp-bg: #08090A;
  --bp-ink: #E8E9EB;
  --bp-accent: #4CC3FF;
  /* One secondary grey for all secondary text (readable on the dark sheet). */
  --bp-muted: #8D9299;
  --bp-dim: #8D9299;
  --bp-soft: #8D9299;
  --bp-note: #8D9299;
  --bp-label: #A7ACB2;
  --bp-line: rgba(232, 233, 235, .08);
  margin: 22px auto 0;
  max-width: 1280px;
}

.led-blueprint[hidden] { display: none; }

.bp {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 270px) minmax(0, 1fr) minmax(200px, 236px);
  gap: 36px;
  padding: 60px 40px 64px;
  background: var(--bp-bg);
  color: var(--bp-ink);
  font: 300 15px/1.5 Onest, system-ui, sans-serif;
  /* Figures keep their width, so the timer, coordinates and counters do not jump. */
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  isolation: isolate;
}

.bp-label {
  font-family: Onest, system-ui, sans-serif;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
}

.bp__glow {
  position: absolute; left: 30%; top: 40px; width: 50%; height: 520px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(76, 195, 255, .07), rgba(76, 195, 255, 0));
  pointer-events: none; z-index: -1;
}
.bp__frame { position: absolute; inset: 24px; border: 1px solid rgba(232, 233, 235, .06); pointer-events: none; }

/* Left column: number, title, source, timer, stages */
.bp__left { display: flex; flex-direction: column; min-width: 0; }
.bp__ref { font-size: 12px; color: var(--bp-muted); }
.bp__title { margin: 26px 0 0; font: 200 48px/1 Onest, system-ui, sans-serif; letter-spacing: -.03em; color: var(--bp-ink); }
.bp__title span { color: var(--bp-dim); }
.bp__source {
  margin-top: 16px; display: flex; align-items: center; gap: 10px; font-size: 12px;
  color: var(--bp-soft); overflow-wrap: anywhere;
}
.bp__rule { flex: 0 0 28px; height: 1px; background: var(--bp-accent); }
.bp__clock { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 12px; }
.bp__elapsed { font: 200 64px/.9 Onest, system-ui, sans-serif; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
/* «Live», then «за 36 с»: one line; under the timer when the row has no room. */
.bp__live { font-size: 12px; color: var(--bp-accent); display: flex; align-items: center; gap: 7px; padding-bottom: 6px; white-space: nowrap; }
.bp__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--bp-accent); box-shadow: 0 0 10px var(--bp-accent); animation: bp-breathe 1.8s ease-in-out infinite; }
.bp__live--done i { animation: none; }
.bp__stages { margin: 36px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.bp__stage { display: flex; flex-direction: column; gap: 7px; }
.bp__stage-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 12px; }
.bp__stage-label { font-size: 15px; color: var(--bp-dim); }
.bp__stage-sub { font-size: 12px; color: var(--bp-soft); }
.bp__stage[data-status='active'] .bp__stage-label,
.bp__stage[data-status='done'] .bp__stage-label { color: var(--bp-ink); }
.bp__stage-bar { height: 1px; background: var(--bp-line); overflow: hidden; }
.bp__stage-fill { height: 1px; width: 0; background: rgba(232, 233, 235, .35); transition: width .6s ease; }
.bp__stage[data-status='active'] .bp__stage-fill { background: var(--bp-accent); }
.bp__stage-fill--busy { width: 30%; animation: bp-busy 1.8s ease-in-out infinite; }
/* Done: the result in place of the stages */
.bp__results { margin: 36px 0 0; display: flex; flex-direction: column; }
.bp__result { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--bp-line); }
.bp__result-k { font-size: 12px; color: var(--bp-soft); white-space: nowrap; }
.bp__result-v { margin: 0; font-size: 15px; color: var(--bp-ink); text-align: right; overflow-wrap: anywhere; }
.bp__result-note { display: block; margin-top: 2px; font-size: 12px; color: var(--bp-soft); }

/* Sheet. Its text is drawn in design units, so the sheet keeps a width at which labels read at ≥12px. */
.bp__sheet-wrap { min-width: 0; }
.bp__sheet { position: relative; border: 1px solid var(--bp-line); aspect-ratio: 590 / 642; min-width: 0; }
.bp__ruler { position: absolute; }
.bp__ruler--x {
  /* Ticks along the top edge, the millimetre figures under them (owner 2026-11-18). */
  left: 16px; right: 0; top: 0; height: 26px; border-bottom: 1px solid var(--bp-line);
  background: repeating-linear-gradient(90deg, rgba(232, 233, 235, .22) 0 1px, transparent 1px 7.5px) 0 0 / 100% 5px no-repeat;
}
.bp__ruler--y {
  left: 0; top: 26px; bottom: 0; width: 16px; border-right: 1px solid var(--bp-line);
  background: repeating-linear-gradient(180deg, rgba(232, 233, 235, .22) 0 1px, transparent 1px 7.5px) 100% 0 / 5px 100% no-repeat;
}
.bp__majors { position: absolute; inset: 0; pointer-events: none; }
.bp__major { position: absolute; top: 10px; font-size: 12px; line-height: 14px; color: var(--bp-muted); transform: translateX(-50%); }
.bp__major-tick { position: absolute; top: 0; width: 1px; height: 8px; background: rgba(232, 233, 235, .6); }
/* Bottom-right: with two columns of screens the top-right corner holds a drawing. */
.bp__scale { position: absolute; right: 14px; bottom: 10px; font-size: 12px; color: var(--bp-muted); z-index: 1; }
.bp__canvas { position: absolute; left: 16px; top: 26px; right: 0; bottom: 0; overflow: hidden; container-type: size; }
.bp__drawing { display: block; width: 100%; height: 100%; overflow: visible; }
.bp__sheet--searching .bp__canvas::before {
  /* Reading phase: a scan line sweeps the sheet until the first screen is found. */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(76, 195, 255, .55) 20%, rgba(76, 195, 255, .55) 80%, transparent);
  box-shadow: 0 0 14px rgba(76, 195, 255, .35);
  animation: bp-scan 5.5s cubic-bezier(.45, 0, .55, 1) infinite alternate;
}
.bp__waiting { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
/* Reading phase: the lead's own ТЗ lines pass under the plotter; the one in its sight is lit. */
.bp__reader {
  position: absolute; inset: 0; overflow: hidden;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}
.bp__reader-track {
  position: absolute; left: 34px; right: 34px; top: 0;
  animation: bp-read calc(var(--bp-lines) * 2.6s) linear infinite;
}
.bp__excerpt {
  margin: 0; height: 24px; line-height: 24px; font-size: 12px;
  color: rgba(232, 233, 235, .26); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bp__reader-band {
  position: absolute; left: 0; right: 0; top: calc(50% - 12px); height: 24px;
  border-top: 1px solid rgba(76, 195, 255, .18); border-bottom: 1px solid rgba(76, 195, 255, .18);
  background: rgba(76, 195, 255, .05); backdrop-filter: brightness(3.2);
}
.bp__about {
  position: absolute; left: 22px; top: 18px; max-width: min(62%, 330px); padding: 12px 14px;
  display: flex; flex-direction: column; gap: 7px;
  background: rgba(8, 9, 10, .88); border-left: 1px solid var(--bp-accent); z-index: 2;
}
.bp__about-object { margin: 0 0 3px; font-size: 15px; line-height: 1.35; color: var(--bp-ink); }
.bp__about-fact { margin: 0; font-size: 13px; line-height: 1.45; color: var(--bp-note); }
.bp__waiting--reading { align-items: flex-end; }
.bp__waiting-copy--foot { margin-bottom: 26px; z-index: 2; padding: 8px 14px; background: rgba(8, 9, 10, .85); }
.bp__waiting-copy--foot .bp__waiting-text { font-size: 13px; max-width: 360px; }
.bp__waiting-copy { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.bp__waiting-note { margin: 0; max-width: 320px; text-align: center; font-size: 12px; color: var(--bp-accent); }
.bp__waiting-text { margin: 0; max-width: 300px; text-align: center; font-size: 15px; line-height: 1.6; color: var(--bp-note); }

.bp__label-kind { font-size: 15px; fill: var(--bp-accent); }
.bp__label-title { font: 300 17px Onest, system-ui, sans-serif; fill: var(--bp-ink); }
.bp__outline { fill: none; stroke: var(--bp-accent); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bp__outline--unknown { stroke: rgba(232, 233, 235, .35); stroke-dasharray: 4 5; }
.bp__unknown { font-size: 15px; fill: var(--bp-soft); }
.bp__tz { fill: none; stroke: rgba(232, 233, 235, .3); stroke-dasharray: 3 4; }
.bp__pixels { opacity: 1; }
.bp__grid line { stroke: rgba(76, 195, 255, .28); stroke-width: 1; }
.bp__diagonal { stroke: rgba(232, 233, 235, .35); stroke-dasharray: 3 5; }
.bp__pill rect { fill: var(--bp-bg); stroke: rgba(232, 233, 235, .16); }
.bp__pill--chosen rect { stroke: rgba(76, 195, 255, .6); }
.bp__pill-text { font-size: 15px; fill: var(--bp-ink); }
.bp__side { fill: none; stroke: rgba(232, 233, 235, .35); stroke-dasharray: 2 3; }
.bp__side-label { font-size: 14px; fill: var(--bp-muted); }
.bp__dim line { stroke: rgba(232, 233, 235, .4); }
.bp__dim .bp__dim-line { stroke: rgba(232, 233, 235, .2); }
.bp__dim-gap { fill: var(--bp-bg); }
.bp__dim-label { font-size: 15px; fill: var(--bp-label); }
.bp__note { font-size: 15px; fill: var(--bp-note); }
.bp__note--strong { fill: var(--bp-ink); }
/* Two sentences of the КП introduction under a finished screen */
.bp__brief { font-size: 15px; fill: var(--bp-label); }

/* Plotter head */
.bp__plotter { transition: transform .7s cubic-bezier(.4, 0, .2, 1); }
.bp__plotter--parked { opacity: 0; transition: opacity .6s ease; }
.bp__plotter--wander { animation: bp-wander 22s ease-in-out infinite; }
.bp__cross { stroke: rgba(76, 195, 255, .16); stroke-width: 1; }
.bp__head { fill: none; stroke: rgba(76, 195, 255, .9); stroke-width: 1; filter: drop-shadow(0 0 6px rgba(76, 195, 255, .45)); }
.bp__readout { font-size: 15px; fill: var(--bp-accent); }

/* Catalog, CTA, stamp */
.bp__catalog { position: relative; display: flex; flex-direction: column; min-width: 0; }
.bp__catalog-title { font-size: 13px; color: var(--bp-muted); }
.bp__catalog-wait { margin: 14px 0 0; font-size: 13px; line-height: 1.6; color: var(--bp-muted); }
.bp__models { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.bp__model {
  height: 30px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center;
  border-bottom: 1px solid rgba(232, 233, 235, .05); animation: bp-rise .6s cubic-bezier(.2, .7, .2, 1) both;
}
.bp__models-more { height: 26px; display: flex; align-items: center; font-size: 12px; color: var(--bp-muted); }
.bp__model-name { display: flex; min-width: 0; font-size: 13px; color: var(--bp-ink); white-space: nowrap; }
.bp__model-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* The pitch is never cut: only the name gives way. */
.bp__model-pitch { flex: none; white-space: pre; color: var(--bp-muted); }
.bp__model-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(232, 233, 235, .2); }
.bp__model--fits .bp__model-dot,
.bp__model--chosen .bp__model-dot { width: 7px; height: 7px; background: var(--bp-accent); box-shadow: 0 0 10px 2px rgba(76, 195, 255, .6); }
.bp__model--out .bp__model-name { color: var(--bp-muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.bp__model--chosen .bp__model-name { color: var(--bp-accent); }

.bp__cta {
  position: relative; display: block; margin-top: auto; margin-bottom: 18px; width: 100%; max-width: 236px; height: 66px;
  color: var(--bp-ink); text-decoration: none; background: rgba(8, 9, 10, .9); transition: background .3s ease;
}
.bp__cta:hover, .bp__cta:focus-visible { background: rgba(76, 195, 255, .07); }
.bp__cta-frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bp__cta-base { fill: none; stroke: rgba(232, 233, 235, .14); }
.bp__cta-run { fill: none; stroke: var(--bp-accent); stroke-width: 1.2; stroke-dasharray: .16 .84; animation: bp-run 2.8s linear infinite; }
.bp__cta-corners { fill: none; stroke: var(--bp-accent); stroke-width: 1.6; }
.bp__cta-copy { position: absolute; left: 16px; top: 12px; display: flex; flex-direction: column; gap: 4px; }
.bp__cta-label { font-size: 15px; font-weight: 400; }
.bp__cta-sub { font-size: 12px; color: var(--bp-soft); }
.bp__cta-arrow {
  position: absolute; right: 9px; top: 9px; width: 48px; height: 48px; background: var(--bp-accent);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 24px rgba(76, 195, 255, .35);
}
.bp__cta-arrow svg { transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.bp__cta:hover .bp__cta-arrow svg { transform: translateX(5px); }

.bp__stamp { margin-top: auto; border: 1px solid rgba(232, 233, 235, .16); display: grid; grid-template-columns: 104px minmax(0, 1fr); }
.bp__cta + .bp__stamp { margin-top: 0; }
.bp__stamp-k { padding: 7px 8px; font-size: 12px; color: var(--bp-soft); border-bottom: 1px solid rgba(232, 233, 235, .1); border-right: 1px solid rgba(232, 233, 235, .1); }
.bp__stamp-v { padding: 6px 8px; font-size: 13px; color: var(--bp-ink); border-bottom: 1px solid rgba(232, 233, 235, .1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp__stamp-v--empty { color: var(--bp-muted); }
.bp__stamp-foot { grid-column: 1 / -1; padding: 7px 8px; font-size: 12px; color: var(--bp-muted); display: flex; justify-content: space-between; }
.bp__caret { display: inline-block; width: 6px; height: 11px; margin-left: 4px; background: var(--bp-accent); vertical-align: -1px; animation: bp-caret 1s steps(1) infinite; }

.bp__links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.bp__link { fill: none; stroke: var(--bp-accent); stroke-width: 1; stroke-dasharray: 2 5; stroke-opacity: .7; }

/* Text states: refusal and budget deferral, no drawing */
.bp--message { display: block; padding: 72px 56px; }
.bp__message { max-width: 560px; }
.bp__message .bp__title { font-size: 40px; }
.bp__message-text { margin: 22px 0 0; font-size: 16px; line-height: 1.6; color: var(--bp-note); }
.bp--deferred .bp__ref { color: var(--bp-accent); }

/* Entrances: only elements drawn for the first time */
.bp-in { animation: bp-rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.bp-fade { animation: bp-fade .8s ease both; }
.bp-trace { stroke-dasharray: 1; stroke-dashoffset: 1; animation: bp-trace 1.6s cubic-bezier(.6, 0, .2, 1) forwards; }

@keyframes bp-rise { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes bp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bp-trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes bp-breathe { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes bp-caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes bp-run { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes bp-read { from { transform: translateY(calc(50cqh - 12px)); } to { transform: translateY(calc(50cqh - 12px - var(--bp-lines) * 24px)); } }
@keyframes bp-scan { from { transform: translateY(0); } to { transform: translateY(calc(100cqh - 1px)); } }
@keyframes bp-busy { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }
@keyframes bp-wander {
  0%, 100% { transform: translate(287px, 300px); }
  20% { transform: translate(470px, 140px); }
  40% { transform: translate(120px, 210px); }
  60% { transform: translate(390px, 480px); }
  80% { transform: translate(90px, 430px); }
}
/* The phone sheet is ~300 units wide: the head wanders inside it. */
@keyframes bp-wander-compact {
  0%, 100% { transform: translate(170px, 150px); }
  25% { transform: translate(260px, 70px); }
  50% { transform: translate(60px, 120px); }
  75% { transform: translate(220px, 230px); }
}
.bp__sheet--compact .bp__plotter--wander { animation-name: bp-wander-compact; }

/* Medium width: header and catalog side by side, the sheet below at a readable size. */
@media (min-width: 901px) and (max-width: 1279px) {
  .bp { grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); grid-template-areas: 'left catalog' 'sheet sheet'; }
  .bp__left { grid-area: left; }
  .bp__catalog { grid-area: catalog; }
  .bp__sheet-wrap { grid-area: sheet; display: flex; justify-content: center; }
  .bp__sheet { width: 100%; max-width: 640px; }
  /* The catalog is above the sheet here, not beside it: the links would cross the layout. */
  .bp__links { display: none; }
}

/* Phone width: sheet on top, then «Открыть КП», models and stamp; no cross-column links.
   The sheet is laid out for its column (screens stacked, callouts under each) and drawn at
   0.86 of its design size, so its text stays ≥12px and nothing scrolls sideways. */
@media (max-width: 900px) {
  .bp__sheet { width: 100%; }
  .bp__cta { order: -1; }
  .bp { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 40px 16px 32px; }
  .bp__frame { inset: 8px; }
  .bp__title { font-size: 38px; margin-top: 18px; }
  .bp__clock { margin-top: 22px; }
  .bp__elapsed { font-size: 48px; }
  .bp__stages, .bp__results { margin-top: 24px; }
  .bp__stages { gap: 10px; }
  .bp__cta { max-width: none; margin: 0 0 22px; }
  .bp__links { display: none; }
  .bp__scale { display: none; }
  .bp__about { max-width: calc(100% - 44px); }
  .bp--message { padding: 48px 16px; }
  .bp__message .bp__title { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .bp-in, .bp-fade, .bp__model { animation: none; }
  .bp-trace { animation: none; stroke-dashoffset: 0; stroke-dasharray: none; }
  .bp__plotter, .bp__stage-fill { transition: none; }
  .bp__plotter--wander { animation: none; transform: translate(287px, 300px); }
  .bp__sheet--compact .bp__plotter--wander { animation: none; transform: translate(170px, 150px); }
  .bp__live i, .bp__caret, .bp__cta-run, .bp__stage-fill--busy { animation: none; }
  .bp__sheet--searching .bp__canvas::before { animation: none; display: none; }
  .bp__reader-track { animation: none; transform: translateY(calc(50cqh - 12px)); }
  .bp__cta-run { stroke-dasharray: none; }
}
