/* Zerno — сайт. Оформление одно на все страницы: тёмный фон, акцент
   #E8A33D и рёберная маркировка плёнки — подпись по краю кадра.

   Шрифты ЛЕЖАТ РЯДОМ, в fonts/. Google Fonts нельзя: покупатели из РФ,
   их визиты — персональные данные, и отдавать их третьей стороне ради
   начертания не стоит того. Правило жёсткое: сайт не делает ни одного
   внешнего запроса. Подмножества IBM Plex (SIL OFL 1.1, fonts/LICENSE.txt)
   разрезаны по unicode-range — кириллица и латиница тянутся отдельно,
   Latin2 (знак ₽) и Pi (№, →) только там, где эти знаки на странице. */

@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/IBMPlexSans-Regular-Latin1.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/IBMPlexSans-Regular-Latin2.woff2") format("woff2");
  unicode-range: U+0100-0101, U+0104-0130, U+0132-0151, U+0154-017F, U+018F, U+0192, U+01A0-01A1, U+01AF-01B0, U+01FA-01FF, U+0218-021B, U+0237, U+0259, U+1E80-1E85, U+1E9E, U+20A1, U+20A4, U+20A6, U+20A8-20AA, U+20AD-20AE, U+20B1-20B2, U+20B4-20B5, U+20B8-20BA, U+20BD, U+20BF;
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/IBMPlexSans-Regular-Cyrillic.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0462-0463, U+046A-046B, U+0472-0475, U+0490-04C2, U+04CF-04D9, U+04DC-04E9, U+04EE-04F9, U+0524-0525;
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/IBMPlexSans-Regular-Pi.woff2") format("woff2");
  unicode-range: U+2000-200D, U+2015, U+2028-2029, U+202F, U+2032-2033, U+2070, U+2074-2079, U+2080-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+2202, U+2206, U+220F, U+2211, U+2215, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/fonts/IBMPlexSans-Italic-Latin1.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/fonts/IBMPlexSans-Italic-Latin2.woff2") format("woff2");
  unicode-range: U+0100-0101, U+0104-0130, U+0132-0151, U+0154-017F, U+018F, U+0192, U+01A0-01A1, U+01AF-01B0, U+01FA-01FF, U+0218-021B, U+0237, U+0259, U+1E80-1E85, U+1E9E, U+20A1, U+20A4, U+20A6, U+20A8-20AA, U+20AD-20AE, U+20B1-20B2, U+20B4-20B5, U+20B8-20BA, U+20BD, U+20BF;
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/fonts/IBMPlexSans-Italic-Cyrillic.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0462-0463, U+046A-046B, U+0472-0475, U+0490-04C2, U+04CF-04D9, U+04DC-04E9, U+04EE-04F9, U+0524-0525;
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/fonts/IBMPlexSans-Italic-Pi.woff2") format("woff2");
  unicode-range: U+2000-200D, U+2015, U+2028-2029, U+202F, U+2032-2033, U+2070, U+2074-2079, U+2080-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+2202, U+2206, U+220F, U+2211, U+2215, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/IBMPlexSans-Medium-Latin1.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/IBMPlexSans-Medium-Latin2.woff2") format("woff2");
  unicode-range: U+0100-0101, U+0104-0130, U+0132-0151, U+0154-017F, U+018F, U+0192, U+01A0-01A1, U+01AF-01B0, U+01FA-01FF, U+0218-021B, U+0237, U+0259, U+1E80-1E85, U+1E9E, U+20A1, U+20A4, U+20A6, U+20A8-20AA, U+20AD-20AE, U+20B1-20B2, U+20B4-20B5, U+20B8-20BA, U+20BD, U+20BF;
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/IBMPlexSans-Medium-Cyrillic.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0462-0463, U+046A-046B, U+0472-0475, U+0490-04C2, U+04CF-04D9, U+04DC-04E9, U+04EE-04F9, U+0524-0525;
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/IBMPlexSans-Medium-Pi.woff2") format("woff2");
  unicode-range: U+2000-200D, U+2015, U+2028-2029, U+202F, U+2032-2033, U+2070, U+2074-2079, U+2080-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+2202, U+2206, U+220F, U+2211, U+2215, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/IBMPlexSans-SemiBold-Latin1.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/IBMPlexSans-SemiBold-Latin2.woff2") format("woff2");
  unicode-range: U+0100-0101, U+0104-0130, U+0132-0151, U+0154-017F, U+018F, U+0192, U+01A0-01A1, U+01AF-01B0, U+01FA-01FF, U+0218-021B, U+0237, U+0259, U+1E80-1E85, U+1E9E, U+20A1, U+20A4, U+20A6, U+20A8-20AA, U+20AD-20AE, U+20B1-20B2, U+20B4-20B5, U+20B8-20BA, U+20BD, U+20BF;
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/IBMPlexSans-SemiBold-Cyrillic.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0462-0463, U+046A-046B, U+0472-0475, U+0490-04C2, U+04CF-04D9, U+04DC-04E9, U+04EE-04F9, U+0524-0525;
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/IBMPlexSans-SemiBold-Pi.woff2") format("woff2");
  unicode-range: U+2000-200D, U+2015, U+2028-2029, U+202F, U+2032-2033, U+2070, U+2074-2079, U+2080-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+2202, U+2206, U+220F, U+2211, U+2215, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/IBMPlexMono-Regular-Latin1.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/IBMPlexMono-Regular-Latin2.woff2") format("woff2");
  unicode-range: U+0100-0101, U+0104-0130, U+0132-0151, U+0154-017F, U+018F, U+0192, U+01A0-01A1, U+01AF-01B0, U+01FA-01FF, U+0218-021B, U+0237, U+0259, U+1E80-1E85, U+1E9E, U+20A1, U+20A4, U+20A6, U+20A8-20AA, U+20AD-20AE, U+20B1-20B2, U+20B4-20B5, U+20B8-20BA, U+20BD, U+20BF;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/IBMPlexMono-Regular-Cyrillic.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0462-0463, U+046A-046B, U+0472-0475, U+0490-04C2, U+04CF-04D9, U+04DC-04E9, U+04EE-04F9, U+0524-0525;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/IBMPlexMono-Regular-Pi.woff2") format("woff2");
  unicode-range: U+2000-200D, U+2015, U+2028-2029, U+202F, U+2032-2033, U+2070, U+2074-2079, U+2080-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+2202, U+2206, U+220F, U+2211, U+2215, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/IBMPlexMono-Medium-Latin1.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/IBMPlexMono-Medium-Latin2.woff2") format("woff2");
  unicode-range: U+0100-0101, U+0104-0130, U+0132-0151, U+0154-017F, U+018F, U+0192, U+01A0-01A1, U+01AF-01B0, U+01FA-01FF, U+0218-021B, U+0237, U+0259, U+1E80-1E85, U+1E9E, U+20A1, U+20A4, U+20A6, U+20A8-20AA, U+20AD-20AE, U+20B1-20B2, U+20B4-20B5, U+20B8-20BA, U+20BD, U+20BF;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/IBMPlexMono-Medium-Cyrillic.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0462-0463, U+046A-046B, U+0472-0475, U+0490-04C2, U+04CF-04D9, U+04DC-04E9, U+04EE-04F9, U+0524-0525;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/IBMPlexMono-Medium-Pi.woff2") format("woff2");
  unicode-range: U+2000-200D, U+2015, U+2028-2029, U+202F, U+2032-2033, U+2070, U+2074-2079, U+2080-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+2202, U+2206, U+220F, U+2211, U+2215, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Serif'; font-style: italic; font-weight: 300; font-display: swap;
  src: url("/fonts/IBMPlexSerif-LightItalic-Latin1.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
}
@font-face {
  font-family: 'IBM Plex Serif'; font-style: italic; font-weight: 300; font-display: swap;
  src: url("/fonts/IBMPlexSerif-LightItalic-Cyrillic.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0462-0463, U+046A-046B, U+0472-0475, U+0490-04C2, U+04CF-04D9, U+04DC-04E9, U+04EE-04F9, U+0524-0525;
}
@font-face {
  font-family: 'IBM Plex Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/fonts/IBMPlexSerif-Italic-Latin1.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
}
@font-face {
  font-family: 'IBM Plex Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/fonts/IBMPlexSerif-Italic-Cyrillic.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0462-0463, U+046A-046B, U+0472-0475, U+0490-04C2, U+04CF-04D9, U+04DC-04E9, U+04EE-04F9, U+0524-0525;
}
/* ── токены программы ──────────────────────────────────────────────── */
/* Те же значения, что в интерфейсе Zerno: человек приходит с сайта в
   программу, и разрыв в облике читался бы как «это что-то другое». */
:root {
  --bg: #151311;
  --panel: #171512;
  --pill: #211E1B;
  --line: #262220;
  --frame: #0B0A09;
  --hair: #3A3531;
  --text: #ECE7DF;
  --body: #C9C1B6;
  --label: #A79E92;
  --muted: #8B857C;
  --dim: #6E675C;
  --accent: #E8A33D;
  --accent-ink: #201808;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Serif живёт ровно в одном месте — эпиграф в финале главной. */
  --serif: 'IBM Plex Serif', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1040px;
  --measure: 640px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15.5px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
/* Колонка ровно 1040 на широком экране, поля 24 — на узком.
   Ширины сеток ниже (600+60+380, 640+80+320) сходятся именно в 1040. */
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
main { display: block; }

/* ── типографика ───────────────────────────────────────────────────── */
h1 { font-size: 36px; line-height: 1.15; font-weight: 500; letter-spacing: -.01em; margin: 14px 0 18px; }
h2 { font-size: 22px; line-height: 1.25; font-weight: 500; letter-spacing: -.005em; margin: 12px 0 12px; }
h3 { font-size: 15.5px; line-height: 1.4; font-weight: 500; margin: 0 0 6px; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }
b, strong { font-weight: 600; }
.lead { font-size: 17px; line-height: 1.55; color: var(--label); max-width: 600px; }
.body { color: var(--body); max-width: var(--measure); }
.small { color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.mono { font-family: var(--mono); }
.rule { height: 1px; background: var(--line); }

a { color: inherit; text-decoration: none; }
main a:not(.btn) { border-bottom: 1px solid var(--hair); }
main a:not(.btn):hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Моно-набор в тексте: код активации, код машины, имя файла. */
.code {
  font-family: var(--mono); font-size: 13.5px; background: var(--pill);
  border-radius: 5px; padding: 1px 7px; color: var(--text); white-space: nowrap;
}

/* ── рёберная маркировка ───────────────────────────────────────────── */
/* Приём один на весь сайт: подпись по краю плёнки. Отсюда моно, капитель
   и разрядка; жёлтая точка — та же, что в марке ZERNO. */
.edge {
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--dim);
  display: flex; align-items: center; gap: 10px;
}
.edge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }

/* Треугольник в полосках каймы рисуем бордерами, а не знаком ▸ (U+25B8):
   в IBM Plex его нет ни в одном начертании, и шрифт молча подменялся бы
   системным — на разных машинах по-разному. */
.tri {
  display: inline-block; width: 0; height: 0; margin-right: 7px;
  border-left: 5px solid var(--accent);
  border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent;
  vertical-align: 0;
}

/* ── кайма картинки ────────────────────────────────────────────────── */
figure { margin: 0; }
.frame { background: var(--frame); border-radius: 3px; overflow: hidden; }
.frame .strip {
  display: flex; justify-content: space-between; align-items: center; gap: 6px 20px;
  padding: 8px 14px; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted);
  flex-wrap: wrap;
}
.frame .strip.bottom { padding-top: 6px; }
.frame img { display: block; width: 100%; height: auto; }
/* КОНТРОЛЬНЫЙ ЛИСТ (главная, 14.09): двенадцать готовых отпечатков плитками
   внутри той же рамки, что и одиночный кадр. Плитка КВАДРАТНАЯ, а картинка
   вписывается в неё целиком (`contain`): пропорции у кадров разные — от
   квадрата полароида до панорамы, — и кроп на витрине врал бы о том, как
   кадрировано. Поэтому же `.frame img { width: 100% }` здесь перебивается. */
.sheet { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; padding: 12px; }
.sheet img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
/* Кадр-ссылка на главной: подчёркивания у неё быть не должно (она обнимает
   картинку целиком), а курсор говорит, что за ней увеличение. */
main a.shotlink, main a.shotlink:hover { border-bottom: none; display: block; cursor: zoom-in; }
.cap { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin-top: 12px; max-width: var(--measure); }

/* ── кнопки ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 18px; border-radius: 7px;
  font-size: 14px; font-weight: 500; white-space: nowrap;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: var(--pill); color: var(--text); }
.btn.ghost:hover { background: #2A2622; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ── форма списка ожидания Windows ─────────────────────────────────── */
/* Единственная форма на сайте. Поля той же высоты, что кнопка, и того же
   радиуса: строка «имя · почта · кнопка» должна читаться одной вещью, а не
   тремя. На узком экране поля разъезжаются по строкам сами — ширины заданы
   минимумом, а не долями. */
.wait { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
.wait input {
  height: 38px; padding: 0 12px; border-radius: 7px; flex: 1 1 200px; min-width: 0;
  background: var(--pill); color: var(--text); border: 1px solid transparent;
  font: 400 14px/1 var(--sans);
}
.wait input::placeholder { color: var(--dim); }
.wait input:focus { outline: none; border-color: var(--accent); }
.wait button { flex: 0 0 auto; border: 0; cursor: pointer; font-family: var(--sans); }
/* Ловушка для ботов. Не display:none: часть ботов такие поля пропускает
   нарочно, а увезённое за край экрана выглядит для них обычным. От человека
   оно спрятано и клавиатурой недостижимо (tabindex="-1" в разметке). */
.wait .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; margin: 0; }
/* Ответ формы показывается на месте — строкой под ней, а не переходом на
   другую страницу: человек оставил почту, а не ушёл в раздел. */
.wait-msg { margin-top: 10px; }
.wait-msg.ok { color: var(--accent); }

/* ── шапка и подвал ────────────────────────────────────────────────── */
.top .wrap { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-size: 19px; font-weight: 600; letter-spacing: .14em; color: var(--text); }
.brand i { color: var(--accent); font-style: normal; }
/* Только шапка: <nav> есть ещё у бокового оглавления «Что внутри», и
   глобальный display:flex складывал его в строки. */
.top nav { display: flex; gap: 28px; font-size: 14px; flex-wrap: wrap; }
.top nav a { color: var(--label); }
.top nav a:hover { color: var(--text); }
.top nav a[aria-current] { color: var(--text); }

.foot {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 28px 0 32px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap;
}
.foot .brand { font-size: 14px; }
.foot .who { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.foot .links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a:hover { color: var(--text); }
.foot .mail { color: var(--text); }

/* ── сетки страниц ─────────────────────────────────────────────────── */
/* ПЕРВЫЙ ЭКРАН (ред. 14.09): не две колонки, а текст и под ним кадр во всю
   полосу. Пока кадр был вертикальным, он жил справа от текста в 380 px;
   горизонтальный отпечаток там выходит вдвое мельче, и зерно — то, ради чего
   снимок и выбран, — перестаёт читаться. Ширину текста держат сами `.lead`
   и `.body` (600 и 640 px), поэтому строка не растягивается на всю полосу. */
.heroshot { padding: 40px 0 0; }
.herotop { padding: 44px 0 0; }
.sec { padding: 56px 0 48px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 36px; margin-top: 28px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 56px 0 64px; }
.cols { display: grid; grid-template-columns: 640px 320px; gap: 80px; padding: 56px 0 64px; align-items: start; }
.aside { position: sticky; top: 24px; padding-top: 42px; }

/* Ряд ячеек библиотеки, 3×2. Разделители — часть сетки, крайние поля
   нулевые, чтобы цифры стояли на той же вертикали, что и текст.
   Нижняя строка каждой ячейки — ручки блока, за пунктирной чертой. */
.cells { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 20px; }
.cells > div { padding: 22px 24px 20px 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cells > div:nth-child(3n+2) { padding-left: 24px; }
.cells > div:nth-child(3n) { padding-left: 24px; padding-right: 0; border-right: none; }
.cells > div:nth-last-child(-n+3) { border-bottom: none; }
.cells .n { font-family: var(--mono); font-size: 34px; line-height: 1; color: var(--text); height: 34px; display: flex; align-items: flex-end; }
/* Блоки без числа (ПРОЯВКА, ОФОРМЛЕНИЕ) — слово на месте цифры, по той же
   нижней линии: выравнивание по flex-end держит базу ряда единой. */
.cells .n.word { font-size: 15px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); padding-bottom: 3px; }
.cells .t { font-size: 14.5px; font-weight: 500; margin: 12px 0 4px; }
.cells .ctl { color: var(--dim); font-size: 13px; line-height: 1.5; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }

/* Эпиграф в финале главной. До 16.09 он был единственным местом, где включался
   serif; теперь цитата набрана машинкой, и IBM Plex Serif не использует никто —
   @font-face оставлены: неиспользуемый шрифт браузер не скачивает. */
.epigraph { padding: 96px 0 100px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.epigraph .edge { justify-content: center; }
/* Цитата набрана моноширинным — тем же IBM Plex Mono, что и подписи в
   программе. Моно шире курсива, поэтому кегль меньше: 31/17 вместо 36/20. */
.epigraph .say {
  font-family: var(--mono); font-style: normal; font-weight: 400;
  font-size: 31px; line-height: 1.3; letter-spacing: -.01em;
  color: var(--text); max-width: 760px; margin: 30px 0 22px;
}
.epigraph .sub {
  font-family: var(--mono); font-style: normal; font-weight: 400;
  font-size: 17px; line-height: 1.5; color: var(--label); max-width: 600px;
}
.epigraph .bar { width: 36px; height: 1px; background: var(--accent); margin: 34px 0; }

.price { display: flex; align-items: baseline; gap: 10px; }
.price .v { font-family: var(--mono); font-size: 34px; line-height: 1; }
.price .u { color: var(--label); font-size: 15px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 22px 22px 20px; }

/* ── нумерованные списки ───────────────────────────────────────────── */
/* Номер рисует счётчик, а не разметка: порядок правится перестановкой
   пунктов, и «02» после вставки нового не остаётся вторым по ошибке. */
ol.marks {
  list-style: none; margin: 0 0 22px; padding: 0; counter-reset: mark;
  display: flex; flex-direction: column; gap: 8px;
  color: var(--body); font-size: 14.5px;
}
ol.marks > li { counter-increment: mark; position: relative; padding-left: 34px; }
ol.marks > li::before {
  content: counter(mark, decimal-leading-zero);
  position: absolute; left: 0; top: 5px;
  font-family: var(--mono); font-size: 11px; line-height: 1; color: var(--dim);
}

ol.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
/* Номер вынесен из потока, а не отдельной колонкой grid: в grid-контейнере
   КАЖДЫЙ инлайновый ребёнок становится своей ячейкой, и ссылка внутри пункта
   уезжала во вторую колонку поверх текста. Наступили. */
ol.steps > li {
  counter-increment: step; position: relative;
  padding: 14px 0 14px 44px; border-top: 1px solid var(--line);
}
ol.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 18px;
  font-family: var(--mono); font-size: 12px; line-height: 1; letter-spacing: 1px;
  color: var(--accent);
}
ol.steps.flush > li:first-child { border-top: none; padding-top: 4px; }
ol.steps.flush > li:first-child::before { top: 8px; }
ol.steps.closed { border-bottom: 1px solid var(--line); }

/* Вопросы поддержки — те же рёбра, только с заголовком. */
ol.qa { list-style: none; margin: 0; padding: 0; counter-reset: q; border-bottom: 1px solid var(--line); }
ol.qa > li {
  counter-increment: q; position: relative;
  padding: 18px 0 18px 44px; border-top: 1px solid var(--line);
}
ol.qa > li::before {
  content: counter(q, decimal-leading-zero);
  position: absolute; left: 0; top: 21px;
  font-family: var(--mono); font-size: 12px; line-height: 1; letter-spacing: 1px;
  color: var(--accent);
}
ol.qa p { max-width: var(--measure); }

/* ── таблица «ключ — значение» ─────────────────────────────────────── */
dl.facts { display: grid; grid-template-columns: 96px 1fr; gap: 0 12px; margin: 0; font-size: 14px; border-bottom: 1px solid var(--line); }
dl.facts > dt { color: var(--muted); padding: 10px 0; border-top: 1px solid var(--line); }
dl.facts > dd { margin: 0; padding: 10px 0; border-top: 1px solid var(--line); }
dl.facts.wide { grid-template-columns: 168px 1fr; }

/* ── разделы оферты ────────────────────────────────────────────────── */
.section { padding: 36px 0 26px; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: none; }
/* Последняя секция не добавляет нижнего поля — какой бы она ни была:
   разделы прячут и возвращают, инлайновый padding пришлось бы возить
   за ними следом. */
.section:last-of-type { padding-bottom: 0; }
/* Секция, которая кончается собственной линейкой списка: нижнюю линию рисует
   борт следующей секции, иначе их две в 26 px друг от друга. */
.section.tight { padding-bottom: 0; }
.section > .edge { margin-bottom: 12px; }
.legal { max-width: var(--measure); }
.legal h2 { margin: 0 0 12px; }
.legal ol, .legal ul { margin: 0 0 14px; padding-left: 22px; color: var(--body); }
.legal li { margin-bottom: 6px; }
.docs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }


/* ── страница «Что внутри» ─────────────────────────────────────────── */
/* Свой кегль: страница почти целиком из строк «метка · значение», и на
   общих 15.5 колонка значений становится слишком рыхлой. */
.inside { display: grid; grid-template-columns: 200px 760px; gap: 80px; padding: 56px 0; align-items: start; font-size: 14.5px; line-height: 1.55; }
.inside .small { font-size: 13px; line-height: 1.5; }
.inside .sec h2 { font-size: 20px; line-height: 1.3; margin: 6px 0 4px; }
.inside p { margin: 0 0 12px; }

/* Оглавление липнет к верху окна. Подсветки текущего раздела нет: следить
   за прокруткой нечем — скрипт на сайте один и он про версию. Ссылки
   работают якорями, scroll-margin отводит заголовок от края. */
.ix { position: sticky; top: 24px; padding-top: 118px; }
main .ix a { font-family: var(--mono); font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--dim); padding: 6px 0; display: flex; gap: 12px; border-bottom: none; }
main .ix a > span:first-child { color: #4E4841; flex: 0 0 22px; }
main .ix a:hover { color: var(--text); }
.ix .note { color: #4E4841; font-size: 12.5px; line-height: 1.5; margin-top: 22px; }

.sec { padding: 30px 0 22px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.sec .sum { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; }
.sec.closed { border-bottom: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 9px 0; border-top: 1px dashed var(--line); }
.row .k { font-family: var(--mono); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.row .v { color: var(--body); }
.row .v b { color: var(--text); font-weight: 500; }
.row .v i { color: var(--muted); font-style: normal; }
.cnt { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 1px; margin-left: 8px; }


/* ── галерея ───────────────────────────────────────────────────────── */
/* Все кадры лежат на чёрном (#0B0A09) и вписываются целиком: object-fit
   contain, а не cover. Кроп у нас показывал бы не то, что посчитал
   движок, — у оформления и инстанта холст ЧАСТЬ результата. */
.looks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 13px; margin-top: 18px; }
.looks button { all: unset; cursor: zoom-in; display: block; }
.looks .frame { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.looks img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; }
.gcap { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--dim); margin-top: 7px; line-height: 1.4; }

.ghead { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.ghead h2 { margin: 10px 0 8px; }
.ghead .note { max-width: 640px; margin: 0; }
.glink { font-size: 14px; color: var(--label); white-space: nowrap; padding-bottom: 4px; }
.gser { display: grid; grid-template-columns: 640px 1fr; gap: 48px; margin-top: 24px; align-items: start; }

/* Высота кадра резервируется ПРОПОРЦИЕЙ бокса из gallery.json — по самому
   высокому варианту серии. Иначе смена варианта дёргала бы страницу. */
.gbig { all: unset; cursor: zoom-in; display: block; width: 100%; }
.gbig .shot { display: flex; align-items: center; justify-content: center; background: var(--frame); aspect-ratio: var(--box); }
.gbig .shot img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; }

.gthumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gthumbs button { all: unset; cursor: pointer; display: block; }
.gthumbs img { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 2px; }
/* Выделение — outline, а не border: border раздвинул бы ленту, и восьмая
   миниатюра переносилась на вторую строку. */
.gthumbs button[aria-current] img { outline: 2px solid var(--accent); outline-offset: -2px; }

.vlist { display: flex; flex-direction: column; border-bottom: 1px dashed var(--line); }
.vlist button { all: unset; cursor: pointer; display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 9px 0; border-top: 1px dashed var(--line); }
.vlist .i { font-family: var(--mono); font-size: 11px; color: #4E4841; padding-top: 4px; }
.vlist .n, .vlist .d { display: block; }
.vlist .n { font-size: 14.5px; color: var(--label); font-weight: 500; }
.vlist .d { font-size: 12.5px; color: var(--dim); line-height: 1.45; }
.vlist button:hover .n { color: var(--text); }
.vlist button[aria-current] .i { color: var(--accent); }
.vlist button[aria-current] .n { color: var(--text); }
.vlist button[aria-current] .d { color: var(--muted); }

/* Лента-вставка на «Что внутри» */
.gstrip { display: flex; align-items: center; gap: 18px; padding: 12px 0 14px; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); margin-bottom: 2px; }
.gstrip .pics { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gstrip .row6 { display: flex; gap: 8px; }
.gstrip button { all: unset; cursor: zoom-in; display: block; }
.gstrip img { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: 2px; }
.gstrip .txt { flex: 1; min-width: 0; }
.gstrip .t { font-size: 14px; color: var(--text); font-weight: 500; }
/* Под лентой, по центру: в правой колонке (126 px) ссылка переносилась. */
.gstrip .l { font-size: 13.5px; color: var(--accent); white-space: nowrap; }
main .gstrip a { border-bottom: none; }

/* ── полноэкранный просмотр ────────────────────────────────────────── */
/* Один компонент на галерею и на «Что внутри»: разметку рисует gallery.js,
   поэтому без скрипта его нет вовсе — и страница остаётся читаемой. */
.viewer { position: fixed; inset: 0; z-index: 100; background: var(--frame); display: flex; align-items: center; justify-content: center; }
.viewer[hidden] { display: none; }
.viewer .stage { max-width: min(92vw, 1100px); max-height: 62vh; display: flex; }
.viewer .stage img { max-width: 100%; max-height: 62vh; width: auto; height: auto; display: block; border-radius: 2px; }
.viewer .top { position: absolute; left: 40px; right: 40px; top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.viewer .who { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; min-width: 0; }
.viewer .who .name { font-size: 15px; color: var(--text); font-weight: 500; }
.viewer .cnt2 { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 1px; }
.viewer button { all: unset; cursor: pointer; display: flex; align-items: center; justify-content: center; background: var(--pill); color: var(--text); }
.viewer .x { width: 34px; height: 34px; border-radius: 7px; font-size: 16px; }
.viewer .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 22px; font-size: 20px; }
.viewer .nav.prev { left: 44px; } .viewer .nav.next { right: 44px; }
.viewer .film { position: absolute; left: 50%; transform: translateX(-50%); bottom: 74px; max-width: 92vw; }
.viewer .film .row6 { display: flex; gap: 8px; overflow-x: auto; }
.viewer .film img { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: 2px; }
.viewer .film button[aria-current] img { outline: 2px solid var(--accent); outline-offset: -2px; }
.viewer .film .names { display: flex; gap: 8px; margin-top: 8px; }
.viewer .film .names span { width: 64px; text-align: center; font-family: var(--mono); font-size: 9.5px; letter-spacing: .6px; text-transform: uppercase; color: #5A5349; line-height: 1.3; }
.viewer .film .names span[data-on] { color: var(--text); }
.viewer .keys { position: absolute; left: 0; right: 0; bottom: 26px; text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: #4E4841; }
body.locked { overflow: hidden; }


/* ── сравнение отпечатков (compare.js) ─────────────────────────────── */
/* Тот же каркас, что у серий галереи (.gser, .vlist, .gthumbs), плюс
   вьюпорт с приближением и кнопки масштаба. Высота вьюпорта — пропорция
   --box из gallery.json: вертикальный отпечаток ложится в него с тёмными
   полями каймы, а не вытягивает страницу в столб. */
.cmp { padding: 52px 0 60px; }
.cvp { position: relative; overflow: hidden; background: var(--frame); aspect-ratio: var(--box); touch-action: none; user-select: none; -webkit-user-select: none; }
.cvp[data-mode="fit"] { cursor: zoom-in; }
.cvp[data-mode="zoom"] { cursor: grab; }
.cvp.drag { cursor: grabbing; }
.cpic { position: absolute; left: 0; top: 0; will-change: transform; }
.cpic img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
/* пока полная картинка едет, показывается экранная в том же масштабе;
   image-rendering — чтобы в 2:1 браузер не размывал пиксели файла */
.cvp[data-mode="zoom"] .cpic img.hi { image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; }
.cpic img.hi[hidden] { display: none; }

.ctool { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; }
.ctool button { all: unset; cursor: pointer; padding: 7px 12px; border-radius: 6px; background: var(--pill); color: var(--label); font: inherit; letter-spacing: inherit; text-transform: inherit; line-height: 1; }
.ctool button:hover { color: var(--text); }
.ctool button[aria-pressed] { color: var(--accent-ink); background: var(--accent); }
.ctool .full { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }
.ctool .full i { font-style: normal; font-size: 13px; }

.gthumbs button.gap { margin-left: 14px; }
/* заголовок группы в списке — исходник, к которому относятся варианты ниже */
.vgroup { display: flex; align-items: center; gap: 8px; padding: 14px 0 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--dim); }
.vgroup .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.vlist .vgroup + button { border-top: none; }

/* ── во весь экран ──────────────────────────────────────────────────── */
/* grid-template-columns: minmax(0, 1fr) — ОБЯЗАТЕЛЬНО. Без него единственная
   колонка сетки растёт по max-content содержимого шапки (465 px при экране
   375), и крестик уезжает за правый край. Правка с боевого сайта 07.09 —
   не потерять при переносе. */
.cviewer { position: fixed; inset: 0; z-index: 100; background: var(--frame); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 66px 1fr 0 122px 40px; touch-action: none; overscroll-behavior: contain; }
.cviewer[hidden] { display: none; }
.cviewer .top { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 0 40px; }
.cviewer .who { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; min-width: 0; }
.cviewer .who .name { font-size: 15px; color: var(--text); font-weight: 500; }
.cviewer .right { display: flex; align-items: center; gap: 22px; flex: 0 0 auto; }
/* Строки сетки заданы явно: mtools на большом экране скрыт (display: none),
   и без явных номеров лента съезжала бы в его нулевую строку. */
.cviewer .top { grid-row: 1; } .cviewer .cvp { grid-row: 2; } .cviewer .mtools { grid-row: 3; display: none; }
.cviewer .film { grid-row: 4; } .cviewer .keys { grid-row: 5; }
.cviewer .cnt2 { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 1px; white-space: nowrap; }
.cviewer .ctool { margin-top: 0; }
.cviewer .ctool button { padding: 7px 12px; border-radius: 6px; color: var(--label); background: var(--pill); }
.cviewer .ctool button[aria-pressed] { color: var(--accent-ink); background: var(--accent); }
.cviewer .cvp { aspect-ratio: auto; margin: 6px 40px 10px; }
.cviewer button { all: unset; cursor: pointer; display: flex; align-items: center; justify-content: center; background: var(--pill); color: var(--text); }
.cviewer .x { width: 34px; height: 34px; border-radius: 7px; font-size: 16px; }
.cviewer .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 22px; font-size: 20px; opacity: .85; }
.cviewer .nav.prev { left: 44px; } .cviewer .nav.next { right: 44px; }
.cviewer .film { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cviewer .film .row { display: flex; gap: 8px; max-width: 92vw; overflow-x: auto; }
.cviewer .film img { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 2px; }
.cviewer .film button.gap, .cviewer .film .names span.gap { margin-left: 24px; }
.cviewer .film button[aria-current] img { outline: 2px solid var(--accent); outline-offset: -2px; }
.cviewer .film .names { display: flex; gap: 8px; margin-top: 8px; }
.cviewer .film .names span { width: 72px; text-align: center; font-family: var(--mono); font-size: 9.5px; letter-spacing: .6px; text-transform: uppercase; color: #5A5349; line-height: 1.3; }
.cviewer .film .names span[data-on] { color: var(--text); }
.cviewer .keys { text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: #4E4841; align-self: center; }

/* Планшет: убираем стрелки и подсказки, всё остальное как на большом. */
@media (max-width: 960px) {
  .cviewer .top { padding: 0 16px; }
  .cviewer .who .small, .cviewer .keys, .cviewer .nav { display: none; }
  .cviewer { grid-template-rows: 56px 1fr 0 96px 0; }
  .cviewer .cvp { margin: 0; }
  .cviewer .film .names { display: none; }
  .cviewer .film img { width: 52px; height: 52px; }
}
/* Телефон вертикально: в шапке только имя (с многоточием), счётчик и крестик —
   крестик обязан быть на экране всегда; кнопки масштаба — своей строкой над
   лентой (compare.js переносит их сам по matchMedia). Высота — dvh, чтобы
   низ не уезжал под панель браузера. */
@media (max-width: 720px) {
  .cviewer { height: 100dvh; grid-template-rows: 48px 1fr 46px 76px 0; }
  .cviewer .top { padding: 0 8px 0 14px; gap: 10px; }
  .cviewer .who { flex-wrap: nowrap; gap: 10px; overflow: hidden; }
  .cviewer .who .edge { display: none; }
  .cviewer .who .name { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cviewer .right { gap: 10px; }
  .cviewer .cnt2 { font-size: 10.5px; letter-spacing: .6px; }
  .cviewer .x { width: 38px; height: 38px; }
  .cviewer .mtools { display: flex; align-items: center; justify-content: center; }
  .cviewer .mtools .ctool button { padding: 8px 12px; }
  .cviewer .film .row { max-width: 100vw; padding: 0 12px; scrollbar-width: none; }
  .cviewer .film .row::-webkit-scrollbar { display: none; }
  .cviewer .film img { width: 56px; height: 56px; }
  .ctool { flex-wrap: wrap; }
}


/* ── страница «Первые шаги» ────────────────────────────────────────── */
/* Тот же каркас, что у «Что внутри»: липкое оглавление 200 px + колонка
   760. Разница в наполнении — сплошной текст, снимки экрана и таблица
   клавиш, поэтому кегль обычный (15.5), а не уменьшенный. */
.guide { display: grid; grid-template-columns: 200px 760px; gap: 80px; padding: 56px 0; align-items: start; }
.guide .sec { padding: 30px 0 18px; }
.guide .sec h2 { margin: 8px 0 12px; }
.guide p { color: var(--body); }
.guide p.lead { color: var(--label); }
.guide ul, .guide ol { margin: 0 0 14px; padding-left: 22px; color: var(--body); }
.guide li { margin: 0 0 6px; }
.guide li::marker { color: var(--dim); font-family: var(--mono); font-size: 12px; }

/* Снимок экрана: 760 px в ширину, тонкая рамка. Пока файла нет — плашка
   с именем: страницу надо было выложить раньше съёмки интерфейса. */
.shot { margin: 8px 0 22px; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }
/* Кроп стойки — портрет: во всю ширину колонки он стал бы столбом в две
   тысячи пикселей, поэтому такие снимки ограничиваем по высоте. */
.shot.tall img { width: auto; max-width: 100%; max-height: 900px; margin: 0 auto; }
.shot .ph {
  aspect-ratio: 1440 / 900; background: #100F0D; border: 1px solid var(--line);
  border-radius: 6px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; padding: 20px; text-align: center;
}
.shot .ph .name { font-family: var(--mono); font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--accent); }
.shot .ph .small { max-width: 520px; }
.shot .cap { color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 10px; font-family: var(--mono); letter-spacing: .3px; }

/* Таблица клавиш — строки «клавиша · действие». */
.keys { border-top: 1px dashed var(--line); margin-top: 4px; }
.keys > div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; color: var(--body); }
.keys .kb { font-family: var(--mono); font-size: 13px; color: var(--text); }

/* ── адаптив ───────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .heroshot { padding: 24px 0 0; }
  .herotop { padding: 30px 0 0; }
  /* Двенадцать плиток в шесть колонок — это 60 px на планшете и 50 на
     телефоне: видно, что кадров много, и не видно ни одного. */
  .sheet { grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px; }
  .trio > div { max-width: var(--measure); }
  .cols { grid-template-columns: 1fr; gap: 44px; padding: 44px 0 52px; }
  .aside { position: static; padding-top: 0; max-width: 420px; }
  .trio { grid-template-columns: 1fr; gap: 26px; }
  .duo { grid-template-columns: 1fr; gap: 40px; padding: 44px 0 52px; }
  .sec { padding: 44px 0 40px; }
  /* Ряд ячеек библиотеки ложится в два столбца, кайма картинок остаётся. */
  .cells { grid-template-columns: 1fr 1fr; }
  .cells > div { padding: 20px 20px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .cells > div:nth-child(odd) { padding-left: 0; }
  .cells > div:nth-child(even) { padding-left: 20px; padding-right: 0; border-right: none; }
  .cells > div:nth-last-child(-n+2) { border-bottom: none; }
  /* Оглавление обеих страниц с колонкой уходит наверх строкой. */
  .guide { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  /* Оглавление «Что внутри» уходит наверх и складывается в строку:
     девять пунктов столбиком перед заголовком отодвинули бы саму
     страницу на экран вниз. */
  /* minmax(0, 1fr), а не 1fr — ОБЯЗАТЕЛЬНО: `1fr` это minmax(auto, 1fr),
     и колонка не может стать уже min-content своего содержимого. Полоса
     из шести миниатюр (.row6) держит 472 px, и страница на телефоне
     раздувалась до 496 вместо 375 — уезжала в мелкий масштаб целиком.
     Те же грабли, что у модуля сравнения в галерее. */
  .inside { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  /* И сама полоса переносится: шесть кадров по 96 px не влезают ни в
     телефон, ни в узкий планшет. Перенос центрируем — «Что внутри»
     показывает миниатюры столбиком по центру. */
  .gstrip .row6 { flex-wrap: wrap; justify-content: center; }
  /* Текст полосы уходит ПОД картинки, когда рядом с ними ему мало места.
     Без basis он сжимался до нуля (min-width: 0 разрешает) и вылезал
     наружу строкой поверх соседей: перенос не срабатывал, потому что
     сжиматься было куда. 260 px — та ширина, ниже которой две-три
     строки названия читаются хуже, чем строка под кадрами. */
  .gstrip .txt { flex: 1 1 260px; }
  .ix { position: static; padding-top: 0; display: flex; flex-wrap: wrap; gap: 0 18px; }
  main .ix a { padding: 4px 0; }
  .ix .note { display: none; }
  .epigraph { padding: 64px 0 68px; }
  .epigraph .say { font-size: 24px; }
  .epigraph .sub { font-size: 15px; }
  /* Галерея: список вариантов уходит под кадр горизонтальными чипами. */
  .gser { grid-template-columns: 1fr; gap: 20px; }
  .ghead { flex-direction: column; align-items: flex-start; gap: 10px; }
  .vlist { flex-direction: row; flex-wrap: wrap; gap: 8px; border-bottom: none; }
  .vlist button { grid-template-columns: auto; gap: 0; padding: 7px 12px; border-top: none; background: var(--pill); border-radius: 6px; }
  .vlist .i, .vlist .d { display: none; }
  .vlist button[aria-current] { background: var(--accent); }
  .vlist button[aria-current] .n { color: var(--accent-ink); }
  .looks { grid-template-columns: repeat(3, 1fr); }
  .gstrip { flex-wrap: wrap; }
  .viewer .top { left: 16px; right: 16px; }
  .viewer .nav.prev { left: 8px; } .viewer .nav.next { right: 8px; }
}

@media (max-width: 640px) {
  .epigraph .say { font-size: 20px; }
  .epigraph .say br, .epigraph .sub br { display: none; }
  .sheet { grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; }
  body { font-size: 16px; }
  h1 { font-size: 29px; }
  h2 { font-size: 20px; }
  .lead { font-size: 16.5px; }
  .top .wrap { height: auto; padding: 16px 0 14px; flex-direction: column; align-items: flex-start; gap: 12px; }
  nav { gap: 18px; }
  .frame .strip { font-size: 9.5px; letter-spacing: 1.1px; padding: 7px 11px; }
  .foot { align-items: flex-start; }
  .foot .links { gap: 14px; }
  ol.steps > li, ol.qa > li { padding-left: 32px; }
  /* Метка над значением: в две колонки на телефоне значению остаётся 190 px. */
  .row { grid-template-columns: 1fr; gap: 4px; }
  .row .k { padding-top: 0; }
  /* Клавиши над действием: 200 px под комбинацию на телефоне не остаётся. */
  .keys > div { grid-template-columns: 1fr; gap: 2px; }
  dl.facts, dl.facts.wide { grid-template-columns: 1fr; gap: 0; }
  dl.facts > dd { padding-top: 0; border-top: none; }
  .btns .btn { flex: 1 1 auto; }
  .looks { grid-template-columns: repeat(2, 1fr); }
  .gthumbs img { width: 56px; height: 56px; }
  .gstrip img { width: 72px; height: 72px; }
  .viewer .film { bottom: 60px; }
  .viewer .film .names { display: none; }
}
