/* popov.systems, main page. Brand: Popov.Solutions (palette and type of the brand kit 20.11.2026). Light theme only. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/landing/assets/fonts/CormorantGaramond-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/landing/assets/fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #FAF8F4;       /* warm white */
  --paper-2: #F3EFE7;     /* the same paper, one step down: cards */
  --ink: #2A2722;         /* coal: every text on light */
  --stone: #8A8274;       /* large text and graphics only (3.58:1) */
  --rule: #E6E1D5;        /* thin lines */
  --bronze: #A8875A;      /* the one accent on light: graphics, rules, large marks */
  --graphite: #14161A;    /* dark sheet, main button */
  --card-dark: #101318;
  --on-dark: #E7E9EB;
  --on-dark-2: #B9C1CA;
  --meta-dark: #8D97A2;
  --bronze-dark: #C29A62;
  --frame: #94A6B8;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: 16px;
  --maxw: 1240px;
  --top-h: 60px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--top-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.005em;
  text-wrap: balance;
  font-variant-numeric: lining-nums;
}
h1 { font-size: clamp(2rem, 1.35rem + 2.9vw, 3.75rem); line-height: 1.05; }
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); }
h3 { font-size: clamp(1.45rem, 1.2rem + 0.7vw, 1.75rem); line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--bronze); }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.block-dark :focus-visible { outline-color: var(--on-dark); }
.btn:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 50;
  padding: 12px 16px;
  background: var(--graphite);
  color: var(--paper);
  border-radius: var(--radius);
}
.skip:focus { top: 8px; }

[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 17px; }
.btn-sm { min-height: 44px; padding: 8px 14px; font-size: 15px; }
.btn-main { background-color: var(--graphite); color: var(--paper); }
.btn-main:hover { background-color: #30343B; box-shadow: inset 0 -3px 0 var(--bronze-dark); }
.btn-line { border-color: var(--ink); color: var(--ink); background-color: transparent; }
.btn-line:hover { background-color: var(--paper-2); }
/* no left padding and no left border: the link lines up with the button and the heading when it wraps under them */
.btn-quiet { color: var(--ink); text-decoration: underline; text-decoration-color: var(--bronze); text-underline-offset: 0.25em; padding-left: 0; padding-right: 8px; border-left-width: 0; }
.btn-quiet:hover { text-decoration-color: var(--ink); }

.more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-decoration-color: var(--bronze);
  text-underline-offset: 0.25em;
}
.more:hover { text-decoration-color: var(--ink); }

/* ---------- header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: rgba(250, 248, 244, 0.94);
  border-bottom: 1px solid var(--rule);
}
@supports (backdrop-filter: blur(6px)) {
  .top { background-color: rgba(250, 248, 244, 0.82); backdrop-filter: blur(8px); }
}
.top-in {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: var(--maxw);
  min-height: var(--top-h);
  margin: 0 auto;
  padding: 8px var(--gutter);
}
.brand { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; margin-right: auto; }
.brand-mark { width: 36px; height: 36px; }
.brand-word { display: none; width: 150px; height: auto; }
.top-nav { display: none; }
.top-act { display: flex; align-items: center; gap: 4px; }
.top-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 15px;
  text-decoration: none;
}
.top-link:hover { text-decoration: underline; text-decoration-color: var(--bronze); }

.acct { position: relative; }
.acct-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  max-width: 128px;
  padding: 0 8px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.acct-mail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-ava { display: none; flex: none; width: 32px; height: 32px; border-radius: 50%; background-color: var(--paper-2); border: 1px solid var(--rule); align-items: center; justify-content: center; font-size: 15px; line-height: 1; }
.acct-who { padding: 10px 12px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--rule); font-size: 14px; overflow-wrap: anywhere; }
/* until /api/v1/me answers (at most 3 s) both header states keep their place and stay invisible */
.auth-pending .top-act { visibility: hidden; }
.acct-caret { flex: none; }
.acct-btn[aria-expanded="true"] .acct-caret { transform: rotate(180deg); }
.acct-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 200px;
  max-width: calc(100vw - 24px);
  list-style: none;
  padding: 6px;
  background-color: #FFFDF9;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(20, 22, 26, 0.12);
}
.acct-menu a, .acct-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  border-radius: 2px;
}
.acct-menu a:hover, .acct-menu button:hover { background-color: var(--paper-2); }

@media (max-width: 359.98px) {
  :root { --gutter: 12px; }
  .top-link { padding: 0 6px; font-size: 14px; }
  .btn-sm { padding: 8px 10px; font-size: 14px; }
}
/* a narrow phone: a round initial in place of a cut e-mail; the full e-mail is the first line of the open menu */
@media (max-width: 399.98px) {
  .acct-menu { min-width: 260px; }
  .acct-mail { display: none; }
  .acct-ava { display: inline-flex; }
  .acct-btn { padding: 0 2px 0 4px; }
}
@media (min-width: 400px) {
  .acct-who { display: none; }
}
@media (min-width: 640px) {
  .brand-mark { display: none; }
  .brand-word { display: block; }
}
@media (min-width: 1024px) {
  :root { --top-h: 72px; --gutter: 32px; }
  .top-nav { display: flex; gap: 4px; margin-right: 12px; }
  .top-act { gap: 8px; }
  .acct-btn { max-width: 240px; }
}

/* ---------- first screen ---------- */
/* phone: heading, a short crop of the drawing (rail 1), lead, button; wide: text left, rails 1 and 2 right */
.hero { padding: 24px 0 40px; }
.hero-grid { display: grid; gap: 18px; }
.lead { font-size: 17px; line-height: 1.55; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.reassure { font-size: 15px; }

/* a drawing sheet: thin frame with millimetre ticks along the top and the left edge */
.sheet {
  position: relative;
  margin: 0;
  padding: 18px 14px 12px;
  background-color: #FFFDF9;
  border: 1px solid var(--rule);
  border-radius: 2px;
}
.sheet::before, .sheet::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.sheet::before {
  left: 14px; right: 14px; top: 0; height: 8px;
  background: repeating-linear-gradient(90deg, var(--stone) 0 1px, transparent 1px 10px);
  opacity: .45;
}
.sheet::after {
  top: 18px; bottom: 12px; left: 0; width: 6px;
  background: repeating-linear-gradient(180deg, var(--stone) 0 1px, transparent 1px 10px);
  opacity: .35;
}

/* A crop of assets/facade-hero.svg (viewBox 6 2 350 662, 1 unit = 1 mm) without a second file: the picture is set
   wider than its box and moved, the box cuts it. Crop x 70..300 mm (230 mm): width 350/230, left -(70-6)/230.
   Rail 1: y 86..186 (100 mm); rails 1 and 2: y 86..322 (236 mm); rails 3 and 4: y 348..588 (240 mm);
   top = -(y0 - 2) / crop height. The scale bar under a crop takes 100/230 of the width. */
.crop { --t: -84%; position: relative; overflow: hidden; background-color: #FFFFFF; aspect-ratio: 230 / 100; }
.crop img { position: absolute; max-width: none; width: 152.1739%; height: auto; left: -27.8261%; top: var(--t); }
.crop-card { --t: -144.1667%; aspect-ratio: 230 / 240; }
@media (min-width: 900px) {
  .crop-hero { --t: -35.5932%; aspect-ratio: 230 / 236; }
}

/* the 100 mm scale bar is a share of the picture's width: whole enclosure 100/350, crop 100/242 */
.scaled { width: 100%; }
.scalebar { --share: 28.5714%; width: var(--share); margin: 10px 0 20px; position: relative; }
.scaled .scalebar { margin-left: 6.857%; }       /* the enclosure view starts at x = 6, the enclosure at 30 */
.scalebar-crop { --share: 43.4783%; margin-bottom: 18px; }
.scalebar-cells {
  display: block;
  height: 7px;
  border: 1px solid var(--ink);
  background: repeating-linear-gradient(90deg, var(--bronze) 0 10%, #FFFDF9 10% 20%);
}
.scalebar-n { position: relative; display: block; height: 16px; font-family: var(--mono); font-size: 12px; line-height: 16px; margin-top: 3px; }
.scalebar-n span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.scalebar-n span:nth-child(1) { left: 0; transform: none; }
.scalebar-n span:nth-child(2) { left: 50%; }
.scalebar-n span:nth-child(3) { left: 100%; transform: translateX(-12%); }
.mono-cap {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
  text-align: center;
}
.hero-fig { padding-bottom: 10px; }
.hero-fig .mono-cap { margin-top: -2px; text-align: left; }
.hero-fig .scalebar { margin-bottom: 8px; }
.wide-cap { display: none; }

@media (max-width: 559.98px) {
  .hero .cta .btn-main { width: 100%; }
  /* the main button «Собрать щит» stays on the first screen at 360 x 640 (Г-3; check.cjs asserts it) */
  .hero { padding-top: 18px; }
  .hero-grid { gap: 14px; }
}
@media (min-width: 560px) {
  .cta .btn-main { min-width: 220px; }
}
@media (min-width: 560px) and (max-width: 899.98px) {
  .hero-fig { max-width: 620px; }
}
@media (min-width: 900px) {
  .hero { padding: 32px 0 44px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    grid-template-rows: 1fr auto auto auto auto 1fr;
    grid-template-areas: ". fig" "h1 fig" "lead fig" "cta fig" "re fig" ". fig";
    column-gap: 56px;
    row-gap: 0;
  }
  .hero h1 { grid-area: h1; margin-bottom: 24px; }
  .hero .lead { grid-area: lead; font-size: 19px; margin-bottom: 30px; }
  .hero .cta { grid-area: cta; margin-bottom: 18px; }
  .hero .reassure { grid-area: re; }
  .hero-fig { grid-area: fig; }
  .wide-cap { display: inline; }
  .narrow-cap { display: none; }
}

/* ---------- blocks ---------- */
.block { padding: 64px 0; border-top: 1px solid var(--rule); }
.block h2 { margin-bottom: 20px; max-width: 18em; }
.block p + p { margin-top: 14px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--bronze);
}
.intro { max-width: 40em; }
.block-cta { margin-top: 36px; }
@media (min-width: 1024px) {
  .block { padding: 104px 0; }
  .block h2 { margin-bottom: 28px; }
}

/* recordings with the stopwatch: the switch of the way (template, own diagram) above the switch of the device */
.vswitch { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 28px 0 20px; }
.vtabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--rule); border-radius: 999px; background-color: #FFFDF9; }
.vtabs [role="tab"] { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; }
.vtabs [role="tab"][aria-selected="true"] { background-color: var(--graphite); color: var(--paper); }
.vswitch:not(:has(.vtabs:not([hidden]))) { display: none; }
.vways { display: grid; gap: 32px; margin-top: 24px; }
.vswitch:has(.vtabs:not([hidden])) + .vways { margin-top: 0; }
.vpanes { display: grid; gap: 32px; }
/* a phone: two rows of switches; the spacing is tight so that the video still starts in the second screen at 360 x 640 */
@media (max-width: 899.98px) {
  .vswitch { flex-direction: column; align-items: flex-start; gap: 8px; margin: 16px 0 14px; }
  #sekundomer { padding-top: 48px; }
}
/* before app.js picks the way: the own-diagram recordings stay closed, so their posters are not requested */
.js:not(.tabs-on) #zapis-skhema { display: none; }
[data-video-upload="off"] #zapis-skhema, [data-video-upload="off"] [data-stabs] { display: none !important; }
.vpane { margin: 0; display: grid; gap: 12px; justify-items: center; }
/* the poster is an <img loading=lazy> under the video: the hidden tab never fetches its poster */
.vplayer { position: relative; background-color: var(--graphite); border-radius: 2px; overflow: hidden; }
.vplayer-phone { height: min(640px, 150vw); aspect-ratio: 780 / 1856; max-width: 100%; }
.vplayer-desktop { width: 100%; max-width: 1100px; aspect-ratio: 1280 / 904; }
.vplayer video, .vposter { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.vplayer video { background: transparent; }
.vplayer.is-ready:not(.is-playing) video { pointer-events: none; }
.vplay {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 84px; height: 84px; margin: -42px 0 0 -42px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background-color: rgba(20, 22, 26, 0.86); color: var(--paper);
  box-shadow: 0 0 0 2px var(--bronze-dark), 0 10px 30px rgba(20, 22, 26, 0.25);
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.vplay svg { margin-left: 4px; }
.vplay:hover { background-color: var(--graphite); transform: scale(1.05); }
.vplay:focus-visible { outline: 3px solid var(--bronze); outline-offset: 4px; }
/* before app.js picks the tab: show only the one it will pick, so the other poster is never requested */
.js:not(.tabs-on) .vpane-desktop { display: none; }
@media (min-width: 900px) {
  .js:not(.tabs-on) .vpane-desktop { display: grid; }
  .js:not(.tabs-on) .vpane-phone { display: none; }
}
[data-video="off"] { display: none !important; }
@media (max-width: 399.98px) {
  .vtabs { max-width: 100%; }
  .vtabs [role="tab"] { padding: 0 14px; font-size: 14px; }
}
.vpane figcaption { font-size: 16px; text-align: center; }
.fine { margin-top: 20px !important; font-size: 14px; text-align: center; }

/* steps */
.steps { list-style: none; display: grid; gap: 28px; margin-top: 8px; counter-reset: s; }
.step { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 1px solid var(--ink); }
/* lining figures in a box of fixed height: the three headings share one baseline */
.step-n { display: block; height: 56px; font-family: var(--serif); font-size: 56px; line-height: 56px; font-variant-numeric: lining-nums tabular-nums; color: var(--bronze); }
.step p { max-width: 30em; }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
}

/* three ways to start: a column of cards on a phone, a full-width band per way on a wide screen (picture on the right) */
.ways { list-style: none; display: grid; gap: 48px; margin-top: 32px; }
.way { display: grid; gap: 14px; align-content: start; padding-top: 18px; border-top: 1px solid var(--ink); }
.way-n { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.way h3 { margin-bottom: 4px; }
.way-dl { margin: 0; display: grid; gap: 14px; }
.way-dl dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 2px; }
.way-dl dd { margin: 0; font-size: 16px; line-height: 1.55; max-width: 36em; }
.way-fig { margin: 4px 0 0; padding: 16px; background-color: #FFFDF9; border: 1px solid var(--rule); border-radius: 2px; min-width: 0; }
.way-fig .mono-cap { text-align: left; margin-top: 10px; }
.way-links { display: grid; justify-items: start; gap: 6px; }
.way-links .btn { margin-top: 4px; }
.way-where { font-size: 15px; }
.way-more { display: flex; flex-wrap: wrap; gap: 0 28px; }
.way-links p + p { margin-top: 0; }
/* way 1: the template plates of the generator, at most two columns inside a card */
.way-fig-tpls .tpls { margin-top: 0; }
@media (min-width: 640px) { .way-fig-tpls .tpls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* way 2: the sheet of the project and what the program read from it */
.read-sum { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; line-height: 1.5; text-transform: uppercase; margin-bottom: 12px; }
/* the sheet above the reading at every width: side by side the crop was 285 px wide at 1280 (sheet text about 5 px) */
.read-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.read-img { width: 100%; height: auto; background-color: #FFFFFF; border: 1px solid var(--rule); }
.read-sheet .mono-cap, .read-table .mono-cap { text-align: left; }
.read-table .mono-cap { margin: 0 0 6px; }
.mini-read td:nth-child(1), .mini-read td:nth-child(3), .mini-read td:nth-child(4) { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 559.98px) {
  .mini-read th:nth-child(4), .mini-read td:nth-child(4) { display: none; }
}
/* 320..359 px: the widest word of the table («Посудомоечная») would push the page sideways */
@media (max-width: 359.98px) {
  .mini.mini-read td:nth-child(2) { hyphens: auto; }
}
@media (max-width: 399.98px) {
  .way-fig { padding: 12px; }
  .mini.mini-read { font-size: 12px; }
  .mini.mini-read th { font-size: 10px; letter-spacing: 0; }
  .mini.mini-read th, .mini.mini-read td { padding: 6px 4px; }
}
/* way 3: a shot of the generator in a narrow window, shown at its own width; from 768 px the card is as wide as the shot
   (centred in a 640 px card it left wide empty bands; check.cjs measures it) */
.way-fig-shot { display: grid; justify-items: center; }
@media (min-width: 768px) {
  .way-fig-shot { width: fit-content; max-width: 100%; justify-self: start; }
  .way-fig-shot .shot-img { width: 328px; }            /* a definite width: the card keeps it before the lazy picture loads */
  .way-fig-shot figcaption { contain: inline-size; }   /* the caption wraps to the shot instead of widening the card */
}
.shot-img { width: 100%; max-width: 328px; height: auto; border: 1px solid var(--rule); border-radius: 2px; }
.way-fig-shot .mono-cap { justify-self: stretch; }
@media (min-width: 768px) and (max-width: 1023.98px) {
  .way-fig { max-width: 640px; }
}
@media (min-width: 1024px) {
  .ways { gap: 0; }
  .way {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    grid-template-rows: auto auto auto auto 1fr;
    grid-template-areas: "n fig" "h fig" "dl fig" "links fig" ". fig";
    column-gap: 56px;
    row-gap: 14px;
    padding: 40px 0;
    border-top-color: var(--rule);
  }
  .way:first-child { border-top-color: var(--ink); }
  .way-n { grid-area: n; }
  .way h3 { grid-area: h; }
  .way-dl { grid-area: dl; }
  .way-links { grid-area: links; margin-top: 8px; }
  .way-fig { grid-area: fig; margin: 0; align-self: start; }
}

/* templates */
.tpls { list-style: none; display: grid; gap: 10px; margin-top: 40px; }
.tpl {
  display: grid;
  gap: 2px;
  min-height: 72px;
  padding: 14px 44px 14px 16px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background-color: #FFFDF9;
  text-decoration: none;
  position: relative;
  transition: border-color .15s ease, background-color .15s ease;
}
.tpl::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 9px; height: 9px;
  border-top: 1.5px solid var(--ink);
  border-right: 1.5px solid var(--ink);
  transform: translateY(-50%) rotate(45deg);
}
.tpl:hover { border-color: var(--ink); }
.tpl-t { font-size: 17px; }
.tpl-s { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; }
@media (min-width: 640px) { .tpls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tpls { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* documents */
.docs { list-style: none; display: grid; gap: 40px; margin-top: 8px; }
.doc { display: grid; gap: 10px; align-content: start; }
.doc h3 { margin-top: 8px; }
.doc-frame {
  height: 260px;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background-color: #FFFDF9;
  padding: 14px;
}
/* the whole picture fits the frame (object-fit: contain); a faint grid shows until a lazy picture arrives */
.doc-frame-img {
  display: flex; align-items: center; justify-content: center; padding: 12px;
  background-image: linear-gradient(rgba(138, 130, 116, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(138, 130, 116, .07) 1px, transparent 1px);
  background-size: 20px 20px;
}
.doc-frame-img img { width: 100%; height: 100%; object-fit: contain; background-color: #FFFFFF; }
.doc-frame-crop { display: flex; align-items: center; justify-content: center; padding: 12px; }
.doc-frame-crop .crop { width: min(100%, 226px); }
.mini { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.35; }
.mini th, .mini td { text-align: left; vertical-align: top; padding: 7px 6px; border-bottom: 1px solid var(--rule); }
.mini th { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; border-bottom-color: var(--ink); }
/* a unit symbol is never set in capitals (кВт, not КВТ; мм, not ММ; check.cjs looks for it) */
.mini th.unit, .unit { text-transform: none; }
.mini-spec td:nth-child(2) { font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.mini-conn td:nth-child(4) { white-space: nowrap; }
@media (max-width: 399.98px) {
  .mini-spec th:nth-child(3), .mini-spec td:nth-child(3) { display: none; }
  .mini-conn th:nth-child(1), .mini-conn td:nth-child(1) { display: none; }
}
.mini-check { border-left: 3px solid var(--bronze); padding: 4px 0 4px 14px; display: grid; gap: 8px; }
.mini-check-t { font-size: 15px; }
.mini-check-t::before { content: "Уточнить"; display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px; }
.mini-check-d { font-size: 14px; }
.mini-check + .mini-check { margin-top: 16px; }
.files { margin-top: 40px; max-width: 46em; }
.samples { display: flex; flex-wrap: wrap; gap: 0 28px; margin-top: 6px; }
@media (min-width: 768px) {
  .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
}
@media (min-width: 1100px) {
  .docs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .doc { grid-column: span 2; }
  .doc:nth-child(1), .doc:nth-child(2) { grid-column: span 3; }
  .doc:nth-child(1) .doc-frame, .doc:nth-child(2) .doc-frame { height: 340px; }
  .doc:nth-child(1) .doc-frame-crop .crop { width: min(100%, 302px); }
}

/* dark engineering sheet */
.block-dark {
  background-color: var(--graphite);
  color: var(--on-dark);
  border-top: 0;
}
.block-dark .eyebrow { color: var(--meta-dark); }
.block-dark .eyebrow::before { background: var(--bronze-dark); }
.frame {
  position: relative;
  padding-top: 8px;
  padding-bottom: 8px;
}
.checks { list-style: none; display: grid; gap: 0; margin: 8px 0 32px; max-width: calc(68ch + 52px); counter-reset: c; }
.checks li {
  counter-increment: c;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid rgba(148, 166, 184, 0.3);
  color: var(--on-dark);
}
.checks li::before {
  content: counter(c, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--bronze-dark);
  padding-top: 4px;
}
.dark-p { color: var(--on-dark-2); max-width: 68ch; }
.note {
  margin-top: 28px !important;
  max-width: 68ch;
  padding: 18px 20px;
  border: 1px solid var(--bronze-dark);
  border-radius: 2px;
  background-color: var(--card-dark);
  color: var(--on-dark);
}

/* variants */
.split { display: grid; gap: 36px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips li { padding: 8px 12px; border: 1px solid var(--rule); border-radius: 18px; font-size: 15px; background-color: #FFFDF9; }
.vcards { display: grid; gap: 12px; }
.vcard { margin: 0; padding: 16px; border: 1px solid var(--rule); border-radius: 2px; background-color: #FFFDF9; }
.vcard figcaption { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px; }
.vc { margin: 0; display: grid; }
.vc-row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 10px; padding: 8px 6px; border-top: 1px solid var(--rule); font-size: 14px; line-height: 1.35; }
.vc-row dt { margin: 0; }
.vc-row dd { margin: 0; }
.vc-row.is-changed { background-color: #F1E8DA; box-shadow: inset 3px 0 0 var(--bronze); }
.was { display: block; font-family: var(--mono); font-size: 12px; margin-top: 2px; }
@media (min-width: 560px) { .vcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vnote { margin-top: 10px; font-size: 14px; }
@media (min-width: 1024px) { .split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; } }

/* the drawing to scale: the enclosure large, numbered marks on it, the text column stays in view while it scrolls */
.block-sheet { background-color: var(--paper-2); }
.sheet-grid { display: grid; gap: 32px; }
.sheet-text { display: grid; gap: 14px; align-content: start; }
.sheet-text h2 { margin-bottom: 6px; }
.facts { list-style: none; display: grid; margin-top: 10px; border-top: 1px solid var(--ink); }
.facts li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts-k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 3px; }
.callouts { list-style: none; display: grid; gap: 10px; margin-top: 8px; }
.callouts li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.co-n, .mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background-color: var(--graphite); color: var(--paper);
  font-family: var(--mono); font-size: 14px; line-height: 1;
}
.marked { position: relative; }
.marked img { width: 100%; height: auto; background-color: #FFFFFF; }
.mark { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 4px var(--bronze-dark); }
.sheet-fig { width: 100%; max-width: 760px; justify-self: center; }
@media (max-width: 599.98px) {
  .mark { width: 22px; height: 22px; font-size: 12px; box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 3px var(--bronze-dark); }
}
@media (min-width: 900px) {
  .sheet-grid { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: 56px; align-items: start; }
  .sheet-text { position: sticky; top: calc(var(--top-h) + 32px); }
}

/* who */
.who { list-style: none; display: grid; gap: 28px; }
.who li { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 1px solid var(--ink); }
@media (min-width: 768px) { .who { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }

/* price and registration */
.pair { display: grid; gap: 48px; }
.pair h2 { margin-bottom: 16px; font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.5rem); }
.pair-a { padding: 24px; border: 1px solid var(--ink); border-radius: 2px; align-self: start; background-color: #FFFDF9; }
.ticks { list-style: none; display: grid; gap: 8px; margin: 14px 0 16px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px; background: var(--bronze); }
.pair-b > p[data-auth] { margin-top: 24px; }
@media (min-width: 900px) { .pair { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 72px; } .pair-a { padding: 36px; } }

/* questions */
.faq-wrap { display: grid; gap: 12px; }
.faq-head h2 { margin-bottom: 8px; }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 0;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  margin-right: 6px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq summary h3 { font-family: var(--sans); font-size: 18px; line-height: 1.35; font-weight: 400; }
.faq details p { padding: 0 0 20px; max-width: 44em; }
@media (min-width: 1024px) {
  .faq-wrap { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 56px; align-items: start; }
  .faq-head { position: sticky; top: calc(var(--top-h) + 32px); }
  .faq summary h3 { font-size: 19px; }
}

/* final call */
.block-final { background-color: var(--paper-2); }
.final { text-align: center; display: grid; justify-items: center; gap: 16px; }
.final h2 { margin-bottom: 0; }
.cta-center { justify-content: center; margin-top: 10px; }

/* footer */
.foot { border-top: 1px solid var(--rule); padding: 48px 0 40px; font-size: 15px; }
.foot-in { display: grid; gap: 14px; }
.foot-brand { display: inline-block; justify-self: start; }
.foot-brand img { width: 180px; height: auto; }
.foot-support a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-links { list-style: none; display: grid; gap: 0; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-op, .foot-c { font-size: 14px; }
@media (min-width: 900px) {
  .foot-in { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .foot-links { grid-column: 2; grid-row: 1 / span 3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* the header keeps one line in both states (no jump when the signed-in state comes) */
.top .btn { white-space: nowrap; }

