/* ManyManuals — one style sheet for every page. No build step: this file is served as it is.
   Colours, sizes and the look of blocks follow the approved mock-ups (canvas "Brand page redesign"). */

/* ---------- fonts: files on our own server, see /fonts/README.txt ---------- */
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin-ext.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-cyrillic.woff2) format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/fonts/space-grotesk-latin.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/fonts/space-grotesk-latin-ext.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
    --ink: #17181a;
    --ink-2: #3a3f47;
    --muted: #5b616b;
    --line: #e3e5e8;
    --line-soft: #eef0f2;
    --field: #c9cdd3;
    --page: #f5f6f7;
    --card: #ffffff;
    --accent: #b3261e;
    --link: #a3211a;
    --link-hover: #7a1711;
    --dark: #17181a;
    --dark-text: #d5d8dc;
    --dark-muted: #9aa1ab;
    --radius: 12px;
    --text: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --display: "Space Grotesk", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--text); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--page); }
img { max-width: 100%; height: auto; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; left: -9999px; }

/* viewport-fit=cover (layout): on an iPhone held sideways the bands (header, hero, footer) reach the
   edges instead of stopping at grey strips beside the camera; the text keeps out of the camera's area */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left)); }
main.wrap { padding-bottom: 64px; }

/* ---------- header ---------- */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; padding-top: 14px; padding-bottom: 14px; }
.logo { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.2; text-decoration: none; color: var(--ink); margin: 0; }
.logo span { color: var(--accent); }
.logo a { color: inherit; text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-weight: 500; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 12px 0; }
.site-nav a:hover { color: var(--link); }
.site-search { flex: 1 1 240px; display: flex; justify-content: flex-end; gap: 8px; }
.site-search input[type=search] { width: 100%; max-width: 320px; height: 44px; padding: 0 14px; border: 1px solid var(--field); border-radius: 8px; background: var(--card); }
.site-search button { height: 44px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 8px; background: var(--card); font-weight: 600; cursor: pointer; }

/* ---------- breadcrumbs ---------- */
.crumbs { padding: 16px 0; color: var(--muted); font-size: 14px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--field); }

/* ---------- headings and text ---------- */
h1, .h1 { font-family: var(--display); font-size: 32px; line-height: 1.15; font-weight: 700; overflow-wrap: anywhere; }
h2, .h2 { font-family: var(--display); font-size: 22px; line-height: 1.25; font-weight: 600; margin: 0 0 12px; overflow-wrap: anywhere; }
h3, .h3 { font-size: 17px; font-weight: 600; line-height: 1.35; }
h4, .h4 { font-size: 16px; font-weight: 600; line-height: 1.35; }
.lead { font-size: 17px; color: var(--ink-2); max-width: 780px; margin-top: 10px; }
.meta { font-size: 14px; color: var(--muted); }
.meta a { color: inherit; }
.muted { color: var(--muted); }
.page-head { padding: 4px 0 8px; }
.page-head .meta { margin-top: 8px; }
section, .block { margin-top: 32px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card > h2:first-child { margin-top: 0; }
.stack > * + * { margin-top: 12px; }

/* ---------- links in columns ---------- */
.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 28px; }
/* a count, flags or a brand name stand beside the link, not inside it: link texts are those of the old site */
.cols > li { border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
.cols > li > a { padding: 8px 0; text-decoration: none; min-width: 0; }
.cols > li > a:only-child { flex: 1 1 auto; }
.cols > li > a:hover { text-decoration: underline; }
.cols .count { color: var(--muted); font-size: 13px; }

/* ---------- letters ---------- */
.letters { display: flex; flex-wrap: wrap; gap: 6px; }
.letters a, .letters b { min-width: 40px; height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--page); border-radius: 8px; text-decoration: none; font-family: var(--display); font-weight: 700; color: var(--ink); text-transform: uppercase; }
.card .letters a { background: var(--page); }
.letters a:hover { background: var(--line); }
.letters b, .letters a[aria-current] { background: var(--ink); color: #fff; }

/* ---------- tables of models and manuals ---------- */
.list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list table { table-layout: auto; }
.list th, .list td { padding: 12px 20px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.list tr:last-child td { border-bottom: 0; }
.list th { font-size: 13px; font-weight: 500; color: var(--muted); background: #fafbfb; }
.list td.model { width: 34%; font-weight: 500; overflow-wrap: anywhere; }
.list td.model a { text-decoration: none; }
.list td.model a:hover { text-decoration: underline; }
.list .doc + .doc { margin-top: 6px; }
.list .doc span { color: var(--muted); font-size: 14px; }
.list .more { display: inline-block; margin-top: 6px; font-size: 14px; }
.flags { white-space: nowrap; }
.flags img { width: 16px; height: 16px; vertical-align: -3px; margin-left: 4px; }
.lang { display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; margin-left: 4px; line-height: 16px; }

/* ---------- category tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-align: center; text-decoration: none; color: var(--ink); display: block; }
.tile:hover { border-color: var(--field); color: var(--link); }
.tile img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; display: block; margin-bottom: 8px; }
.tile span { display: block; font-weight: 500; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.tile small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* ---------- a manual as a card and as a row ---------- */
.doc-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-wrap: wrap; gap: 20px; }
.doc-card .cover { flex: 0 0 132px; }
.doc-card .body { flex: 999 1 320px; min-width: 0; }
.doc-card h3, .doc-card h4 { font-size: 18px; }
.doc-card h3 a, .doc-card h4 a, .doc-row h3 a, .doc-row h4 a { text-decoration: none; }
.doc-card h3 a:hover, .doc-card h4 a:hover, .doc-row h3 a:hover, .doc-row h4 a:hover { text-decoration: underline; }
.cover img, img.cover { display: block; width: 132px; border: 1px solid var(--line); border-radius: 4px; background: var(--page); }
.doc-row { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 24px; display: flex; gap: 16px; align-items: flex-start; }
.doc-row .cover { flex: 0 0 54px; }
.doc-row .cover img { width: 54px; }
.doc-row .body { flex: 1 1 auto; min-width: 0; }
.doc-row h3, .doc-row h4 { font-size: 16px; }
.doc-list > * + * { margin-top: 12px; }
.badge { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; vertical-align: middle; }

/* table of contents of a manual */
details > summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
.doc-row details > summary { font-weight: 400; font-size: 14px; color: var(--muted); padding: 6px 0 0; }
.toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 28px; font-size: 14px; margin-top: 4px; }
.toc li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--line-soft); }
.toc a { flex: 1 1 auto; min-width: 0; padding: 7px 0; color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--link); }
.toc li > span { color: var(--muted); }

/* ---------- small cards with a first-page picture ---------- */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.shot { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-align: center; font-size: 14px; }
.shot img { display: block; margin: 0 auto 8px; width: 100%; max-width: 150px; aspect-ratio: 3 / 4; object-fit: contain; border: 1px solid var(--line-soft); background: var(--page); }
.shot a { text-decoration: none; }
.shot a:hover { text-decoration: underline; }
.shot small { display: block; color: var(--muted); }

/* ---------- advertising: the box keeps its height so the page does not jump ---------- */
.ad { margin: 24px 0; min-height: 280px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.ad.is-empty { border: 1px dashed var(--field); border-radius: 8px; color: var(--muted); font-size: 13px; background: #fafbfb; }

/* ---------- buttons and forms ---------- */
.btn { height: 48px; padding: 0 24px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
.btn:hover { background: var(--link-hover); color: #fff; }
.btn-2 { height: 44px; padding: 0 20px; border: 1px solid var(--ink); border-radius: 8px; background: var(--card); color: var(--ink); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
.btn-2:hover { background: var(--page); color: var(--ink); }
.field { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--field); border-radius: 8px; background: var(--card); font-size: 16px; }
.form-row { margin-top: 12px; }
.form-row label { display: block; font-weight: 500; margin-bottom: 4px; }
.quiet { font-size: 14px; color: var(--muted); }
.quiet a { color: var(--muted); }
.quiet a:hover { color: var(--link); }

/* ---------- pager ---------- */
.pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 16px 0; }
.pager a, .pager b, .pager span { min-width: 40px; height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; text-decoration: none; font-weight: 500; }
.pager a { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.pager a:hover { border-color: var(--field); }
.pager b { background: var(--ink); color: #fff; }
.pager span { color: var(--muted); min-width: 20px; padding: 0; }
.pager .step { padding: 0 16px; font-weight: 600; }

/* ---------- reader ---------- */
.reader-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; background: var(--card); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; padding: 10px 16px; }
.reader-bar form { display: flex; align-items: center; gap: 6px; }
.reader-bar input[type=number] { width: 72px; height: 40px; padding: 0 8px; border: 1px solid var(--field); border-radius: 8px; text-align: center; }
.reader-bar .nav { display: flex; gap: 8px; }
/* the page of the manual takes the whole width of its box: no frame around it */
.reader { background: var(--card); border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); padding: 0; overflow-x: auto; overflow-y: hidden; position: relative; }
.reader-frame { margin: 0 auto; position: relative; overflow: hidden; }
.reader .pf { margin: 0; box-shadow: none; transform-origin: 0 0; }
.reader .pc { display: block; }
.reader-toc { background: var(--card); border: 1px solid var(--line); border-top: 0; padding: 0 16px 8px; }
.reader-toc[open] { padding-bottom: 16px; }
.thumbs-wrap { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.reader-stack > .reader-shell { margin-top: 0; }
.thumbs-arrow { flex: none; width: 40px; padding: 0; justify-content: center; font-size: 20px; }
.thumbs { flex: 1 1 auto; min-width: 0; position: relative; display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.thumbs a { flex: 0 0 auto; text-align: center; font-size: 12px; color: var(--muted); text-decoration: none; scroll-snap-align: center; }
.thumbs img { display: block; height: 104px; width: auto; border: 1px solid var(--line); border-radius: 3px; background: var(--card); margin-bottom: 2px; }
.thumbs a:hover img { border-color: var(--field); }
.thumbs a[aria-current] { color: var(--ink); font-weight: 600; }
.thumbs a[aria-current] img { outline: 2px solid var(--accent); outline-offset: -1px; }
.reader-bar .zoom-btn { min-width: 64px; justify-content: center; }

/* ---------- summary of contents ---------- */
.summary-item { padding: 10px 0; border-top: 1px solid var(--line-soft); }
.summary-item a { font-weight: 500; text-decoration: none; }
.summary-item a:hover { text-decoration: underline; }
.summary-item p { margin-top: 2px; color: var(--ink-2); font-size: 14px; overflow-wrap: anywhere; }

/* ---------- download page ---------- */
.ad-fixed { min-height: 250px; }
.download-row { display: grid; grid-template-columns: 300px minmax(0, 1fr) 300px; gap: 24px; align-items: start; margin: 24px 0; }
.download-row > .ad { margin: 0; }
.download-row > .card { margin: 0; }
@media (max-width: 1000px) { .download-row { grid-template-columns: minmax(0, 1fr); } }
.download { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.download .cover img { width: 200px; }
.download .actions { flex: 1 1 320px; }
.download .actions .btn, .download .actions .btn-2 { margin: 12px 12px 0 0; }

/* ---------- text pages ---------- */
.prose { max-width: 820px; }
.prose h2 { margin-top: 28px; }
.prose p, .prose ul, .prose ol { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose ol { list-style: decimal; padding-left: 22px; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: var(--dark-text); font-size: 14px; margin-top: 24px; }
.site-footer .wrap { padding-top: 36px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 28px; }
.site-footer a { color: var(--dark-text); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-top { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.footer-top .name { font-family: var(--display); font-weight: 700; font-size: 18px; color: #fff; }
.footer-top a { color: #fff; font-weight: 600; padding: 10px 0; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.footer-cols .footer-h { margin: 0 0 8px; font-family: var(--text); font-size: 13px; font-weight: 600; color: var(--dark-muted); text-transform: uppercase; letter-spacing: .5px; }
.footer-cols a { display: block; padding: 6px 0; overflow-wrap: anywhere; }
.footer-service { display: flex; flex-wrap: wrap; gap: 4px 24px; border-top: 1px solid var(--ink-2); padding-top: 20px; }
.footer-service a { padding: 10px 0; }
.footer-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; color: var(--dark-muted); }
.footer-langs span.item { display: inline-flex; align-items: center; gap: 6px; }
.footer-langs a { padding: 10px 0; display: inline-flex; align-items: center; }
.footer-langs img { width: 16px; height: 11px; }
.site-footer .copy { color: var(--dark-muted); }

/* ---------- narrow screens ---------- */
@media (max-width: 720px) {
    .wrap { padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
    h1, .h1 { font-size: 26px; }
    h2, .h2 { font-size: 20px; }
    .card, .doc-card { padding: 16px; }
    .doc-row { padding: 12px 16px; }
    .doc-card .cover { flex-basis: 96px; }
    .doc-card .cover img { width: 96px; }
    .site-search { flex-basis: 100%; justify-content: stretch; }
    .site-search input[type=search] { max-width: none; }
    .list table, .list tbody, .list tr, .list td { display: block; width: 100%; }
    .list thead, .list tr.head { display: none; }
    .list td { border-bottom: 0; padding: 4px 16px; }
    .list td.model { width: 100%; padding-top: 12px; }
    .list tr { border-bottom: 1px solid var(--line-soft); padding-bottom: 10px; }
    .list tr:last-child { border-bottom: 0; }
    .reader-bar { padding: 8px; }
    .ad { min-height: 280px; }
}

@media print {
    .site-header, .site-footer, .ad, .crumbs, .pager, .reader-bar, .thumbs { display: none; }
    body { background: #fff; }
}

/* ---------- reader: table of contents over the page ---------- */
.reader-shell { position: relative; }
.reader-bar .reader-toc { position: static; background: none; border: 0; padding: 0; }
.reader-bar .reader-toc > summary { list-style: none; }
.reader-bar .reader-toc > summary::-webkit-details-marker { display: none; }
.reader-bar .reader-toc[open] > summary { background: var(--ink); color: #fff; }
.reader-bar .reader-toc .panel { position: absolute; z-index: 5; left: 0; right: 0; margin-top: 10px; max-height: 70vh; overflow: auto; background: var(--card); border: 1px solid var(--field); border-radius: var(--radius); padding: 8px 20px 16px; box-shadow: 0 12px 32px rgba(0, 0, 0, .18); }
.reader-bar > a { font-weight: 500; }

/* ---------- home: four numbers ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stats a, .stats span { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; text-decoration: none; color: var(--muted); }
.stats a:hover { border-color: var(--field); }
.stats b { display: block; font-family: var(--display); font-size: 26px; line-height: 1.2; color: var(--ink); }

/* ---------- model page: choice of device and group headings ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pills b { font-weight: 600; margin-right: 4px; }
.pills a { min-height: 40px; padding: 0 16px; display: inline-flex; align-items: center; background: var(--card); border: 1px solid var(--field); border-radius: 22px; text-decoration: none; font-weight: 500; color: var(--ink); }
.pills a:hover { border-color: var(--ink); }
.group { margin-top: 20px; }

/* ---------- quiet actions and small windows (print, share) ---------- */
.linklike { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: inherit; }
.linklike:hover { color: var(--link); }
dialog.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 56px 24px 24px; width: min(480px, calc(100vw - 32px)); color: var(--ink); }
dialog.box::backdrop { background: rgba(23, 24, 26, .45); }
dialog.box p { margin-top: 12px; }
dialog.box form { position: absolute; top: 12px; right: 12px; }
dialog.box form button { width: 40px; height: 40px; padding: 0; justify-content: center; font-size: 20px; }

/* printing a manual page: only the page itself */
@media print {
    main:has(.reader-shell) > :not(.reader-shell) { display: none; }
    .reader { border: 0; padding: 0; background: #fff; }
    .reader .pf { box-shadow: none; }
    dialog { display: none; }
}

/* a button that does nothing yet looks like it */
button:disabled, .btn:disabled, .btn-2:disabled, .field:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- forms of the visitor ---------- */
.form-error { margin: 0 0 12px; padding: 10px 14px; border: 1px solid #e3b3af; border-radius: 8px; background: #fdf1f0; color: #7a1711; }
.form-ok { margin: 12px 0; padding: 10px 14px; border: 1px solid #b7d7bd; border-radius: 8px; background: #f0f8f1; color: #1d4d27; }
.g-recaptcha { min-height: 78px; margin: 12px 0; }
.download form .btn, .download form .btn-2 { margin: 4px 12px 0 0; }

/* ---------- home page ---------- */
/* a band that runs to both edges of the window while its content keeps the page width */
.bleed { box-shadow: 0 0 0 100vmax var(--bleed, var(--dark)); clip-path: inset(0 -100vmax); }

.hero { margin-top: 0; padding: 56px 0 96px; color: #fff; }
/* the glow ends before the edges of the page width: beyond them the band is one flat colour */
.hero-band { background: radial-gradient(430px 300px at 70% 34%, rgba(179, 38, 30, .5), transparent 70%), var(--dark); }
.hero .h1 { font-size: 44px; letter-spacing: -.5px; text-wrap: balance; }
.hero .lead { margin-top: 10px; font-weight: 400; font-family: var(--text); color: var(--dark-text); }
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: center; }

/* the large search form */
.search-big { flex: none; justify-content: flex-start; margin-top: 22px; max-width: 680px; gap: 8px; }
.search-big input[type=search] { max-width: none; height: 56px; padding: 0 16px 0 48px; font-size: 17px; border-color: transparent; border-radius: 10px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b616b' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.6-3.6'/%3E%3C/svg%3E") 16px center / 20px no-repeat; color: var(--ink); }
.search-big button { height: 56px; padding: 0 28px; border-radius: 10px; background: var(--accent); border-color: var(--accent); color: #fff; font-size: 16px; }
.search-big button:hover { background: var(--link-hover); border-color: var(--link-hover); }

.hero-chips { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chips a { padding: 6px 14px; border-radius: 18px; background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; font-weight: 500; }
.hero-chips a:hover { background: rgba(255, 255, 255, .26); color: #fff; }

/* first pages of three manuals, spread like a fan */
.cover-fan { position: relative; height: 270px; }
.cover-fan a { position: absolute; top: 24px; left: 50%; width: 168px; height: 224px; margin-left: -84px; padding: 8px; background: #fff; border-radius: 6px; box-shadow: 0 18px 44px rgba(0, 0, 0, .5); display: flex; align-items: center; justify-content: center; transition: transform .18s ease; }
.cover-fan img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cover-fan a:nth-child(1) { transform: translateX(-112px) rotate(-9deg); }
.cover-fan a:nth-child(2) { transform: translateY(-14px); z-index: 2; }
.cover-fan a:nth-child(3) { transform: translateX(112px) rotate(9deg); }
.cover-fan a:nth-child(1):hover { transform: translateX(-112px) translateY(-10px) rotate(-9deg); }
.cover-fan a:nth-child(2):hover { transform: translateY(-24px); }
.cover-fan a:nth-child(3):hover { transform: translateX(112px) translateY(-10px) rotate(9deg); }

/* the text about the site with the four numbers, as a card over the lower edge of the band */
.about-row { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: center; }
.about-over { position: relative; margin-top: -56px; padding: 28px 32px; box-shadow: 0 12px 32px rgba(23, 24, 26, .1); }
.about .prose { max-width: none; font-size: 14.5px; color: var(--ink-2); }
.about .prose h2 { margin-top: 0; color: var(--ink); }
.about-text p:first-child { margin-top: 0; }
.about-row .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.about-row .stats a, .about-row .stats span { background: var(--page); border-color: transparent; }
.about-row .stats a:hover { border-color: var(--field); }
.about-row .stats b { color: var(--accent); font-size: 28px; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section-head a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.section-head a:hover { text-decoration: underline; }
/* sixteen device types: 8 + 8 on a wide screen, 4 × 4 on a tablet, 3 × 4 on a phone */
.tiles-16 { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
.tiles-16 .tile { padding: 12px 8px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tiles-16 .tile:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgba(23, 24, 26, .08); transform: translateY(-2px); }
.tiles-16 .tile img { max-width: 84px; margin: 0 auto 6px; }
.tiles-16 .tile span { font-size: 13.5px; }

/* the lists as tabs: switch, label and panel of each tab stand side by side in the code;
   here the labels are drawn first (a row of tabs) and the open panel under them */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.tab-switch { position: absolute; opacity: 0; pointer-events: none; }
.tab-label { order: 1; padding: 10px 16px; border-radius: 22px; background: var(--page); font-weight: 600; cursor: pointer; text-transform: capitalize; }
.tab-label:hover { background: var(--line); }
.tab-switch:checked + .tab-label { background: var(--accent); color: #fff; }
.tab-switch:focus-visible + .tab-label { outline: 2px solid var(--accent); outline-offset: 2px; }
.tab-panel { order: 2; flex: 0 0 100%; min-width: 0; display: none; margin-top: 12px; }
.tab-switch:checked + .tab-label + .tab-panel { display: block; }
.tab-panel .letters { margin: 12px 0; }
/* the tabs of the sections stand a little apart from the four lists of the catalog */
.tab-label.tab-first-section { margin-left: 17px; position: relative; }
.tab-label.tab-first-section::before { content: ""; position: absolute; left: -13px; top: 8px; bottom: 8px; width: 1px; background: var(--field); }
.tab-panel .section-head h2 { margin-bottom: 4px; }
.sec-list { margin-top: 14px; }
.sec-list li { border-top: 1px solid var(--line-soft); }
.sec-list a { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; text-decoration: none; color: var(--ink); }
.sec-list a:hover span { color: var(--link); }
.sec-list .code { flex: none; min-width: 48px; margin-top: 1px; text-align: center; font-family: var(--display); font-weight: 700; font-size: 13px; line-height: 20px; background: var(--ink); color: #fff; border-radius: 6px; padding: 0 6px; }
.sec-list span { flex: 1 1 auto; min-width: 0; font-weight: 500; line-height: 1.35; }
.sec-list small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.sec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 32px; }
.sample-note { font-size: 12px; margin-top: 8px; }
.ask-entry { border-left: 4px solid var(--accent); margin-bottom: 16px; }
.ask-entry h2 { margin: 0 0 4px; }
.ask-fields { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 14px; }
.ask-field { display: block; flex: 1 1 260px; min-width: 0; }
.ask-field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.ask-question { flex: 2 1 420px; }
.ask-field textarea { resize: vertical; }
.ask-entry .btn, .ask-fields .btn-2 { flex: none; min-height: 48px; }
.ask-entry .quiet { margin-top: 10px; }
/* шаг 2: одна форма — устройство и «искать снова», вопрос, имя, галочка, кнопки устройств, заявка */
.ask-send { max-width: 860px; }
.ask-send .ask-fields { margin-top: 0; }
.ask-row { margin-top: 14px; }
.ask-name { max-width: 360px; }
.ask-send [aria-invalid="true"] { border-color: #c0392b; }
.ask-choose { margin: 24px 0 4px; }
.ask-devices { margin-top: 10px; border-bottom: 1px solid var(--line-soft); }
.ask-devices li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.ask-device { flex: 1 1 280px; min-width: 0; }
.ask-device b { display: block; font-weight: 600; }
.ask-device small { display: block; color: var(--muted); font-size: 13px; }
.ask-device a { font-size: 13px; }
.ask-devices .btn { flex: none; }
.ask-request { margin-top: 24px; }
.ask-request h2 { margin: 0 0 4px; }
.ask-request .btn, .ask-request .btn-2 { margin-top: 12px; }
.ask-answered { max-width: 860px; margin-bottom: 16px; }
.ask-answered h2 { margin: 0 0 4px; }
@media (max-width: 720px) { .ask-entry .btn, .ask-fields .btn-2, .ask-devices .btn, .ask-request .btn, .ask-request .btn-2 { width: 100%; justify-content: center; } }
.sec-more { margin-top: 16px; }
.sec-more .section-head h2 { margin-bottom: 0; }
.sec-more .sec-list { margin-top: 10px; }

/* "New on the site": home page block, brand page block, the page "All new" */
.fresh .section-head h2 { margin-bottom: 4px; }
.fresh-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px 32px; }
.fresh-col { grid-column: span var(--span, 12); min-width: 0; margin-top: 20px; }
.fresh-col h3 { font-family: var(--display); font-size: 15px; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.fresh-col h3 a { color: inherit; text-decoration: none; }
.fresh-col h3 a:hover { color: var(--link); }
.fresh-list li { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line-soft); break-inside: avoid; }
.fresh-list .fresh-what { flex: 1 1 auto; min-width: 0; line-height: 1.35; }
.fresh-list a { text-decoration: none; font-weight: 500; }
.fresh-list a:hover { text-decoration: underline; }
.fresh-list small { display: block; color: var(--muted); font-size: 13px; }
.fresh-list time { flex: none; color: var(--muted); font-size: 13px; white-space: nowrap; }
.fresh-list .code { display: inline-block; min-width: 40px; margin-right: 8px; padding: 0 6px; text-align: center; font-family: var(--display); font-weight: 700; font-size: 13px; line-height: 20px; background: var(--ink); color: #fff; border-radius: 4px; }
.fresh-two { columns: 2; column-gap: 32px; }
.fresh-chip { flex: none; width: 84px; font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.fresh-brand { margin-bottom: 24px; }
.fresh-brand .meta { margin-bottom: 10px; }
.fresh-line { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.fresh-filter { margin: 20px 0 4px; }
.fresh-filter a.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.fresh-brands { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 4px; margin-top: 16px; font-size: 15px; }
.fresh-brands b { font-weight: 600; margin-right: 8px; }
.fresh-brands a { text-decoration: none; font-weight: 500; }
.fresh-brands a:hover { text-decoration: underline; }
.fresh-brands .count { color: var(--muted); font-size: 13px; margin-right: 12px; }
.fresh-day { margin-top: 28px; }
.fresh-day h2 { font-size: 18px; margin-bottom: 10px; }
.fresh-day .fresh-list { padding: 4px 24px; }
.fresh-day .fresh-list li:first-child { border-top: 0; }
@media (max-width: 900px) {
    .fresh-grid { grid-template-columns: minmax(0, 1fr); }
    .fresh-col { grid-column: auto; }
    .fresh-two { columns: 1; }
}
@media (max-width: 720px) {
    .fresh-grid .fresh-list li:nth-child(n+6), .fresh-brand .fresh-list li:nth-child(n+6) { display: none; }
    .fresh-chip { width: auto; }
    .fresh-brand .fresh-list li, .fresh-day .fresh-list li { flex-wrap: wrap; row-gap: 0; }
    .fresh-brand .fresh-list .fresh-what, .fresh-day .fresh-list .fresh-what { flex-basis: 100%; order: 3; }
    .fresh-brand .fresh-list time, .fresh-day .fresh-list time { margin-left: auto; }
    .fresh-day .fresh-list { padding: 4px 16px; }
}

/* ---------- questions and answers ---------- */
.qa-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.qa-layout > div, .qa-layout > aside { display: grid; gap: 16px; min-width: 0; }
.qa-layout section, .qa-layout article { margin-top: 0; }
.qa-row { padding: 14px 0; border-top: 1px solid var(--line-soft); }
.card > h2 + .qa-row { margin-top: 4px; }
.qa-row h3 a { text-decoration: none; }
.qa-row h3 a:hover { text-decoration: underline; }
.qa-row p { margin-top: 4px; color: var(--ink-2); overflow-wrap: anywhere; }
.qa-row .meta { margin: 0 0 2px; color: var(--muted); }
.qa-question h1 { font-size: 28px; margin: 6px 0 12px; }
.qa-body { white-space: pre-line; font-size: 16px; margin-bottom: 12px; overflow-wrap: anywhere; }
.qa-answer-site { border-left: 4px solid var(--accent); }
.qa-answer-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.qa-answer-head h2 { margin: 0; }
.qa-answer .prose { max-width: none; font-size: 16px; }
.qa-source { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--muted); }
.qa-source + p { margin-top: 12px; }
.side-card h2 { font-size: 17px; margin-bottom: 8px; }
.side-card p { margin-bottom: 10px; }
.qa-steps { list-style: decimal; padding-left: 20px; }
.qa-steps li { padding: 4px 0; }
.qa-form { max-width: 640px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.qa-form .quiet, .qa-form + .quiet { margin-top: 12px; }
/* the form of a visitor's answer is a card of its own: no line above it */
.qa-form-own { margin-top: 0; padding-top: 0; border-top: 0; }
.qa-form-own h2 { margin-bottom: 12px; }
.field[aria-invalid=true] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

/* ---------- home page: the strip of visitors' words ---------- */
.reviews { margin-top: 32px; }
.reviews .section-head { align-items: center; }
.reviews .section-head h2 { margin: 0; }
.reviews-nav { display: flex; gap: 8px; }
.reviews-nav .btn-2 { width: 40px; height: 40px; padding: 0; justify-content: center; font-size: 20px; }
.reviews-strip { display: flex; gap: 16px; margin-top: 14px; padding: 2px 0 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.reviews-strip::-webkit-scrollbar { display: none; }
.reviews-strip > li { flex: 0 0 300px; scroll-snap-align: start; }
.reviews-strip blockquote { height: 100%; margin: 0; padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.reviews-strip blockquote::before { content: "\201C"; font-family: var(--display); font-size: 40px; line-height: 24px; height: 18px; color: var(--accent); }
.reviews-strip p { font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; overflow: hidden; }
.reviews-strip footer { margin-top: auto; font-size: 13px; color: var(--muted); }

/* ---------- sections: error codes, how-to guides ---------- */
.sec-preview { margin: 4px 0 0; padding: 8px 14px; border: 1px dashed var(--field); border-radius: 8px; background: #fffbe6; font-size: 14px; }
.sec-find { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; max-width: 760px; }
.sec-find .field { flex: 1 1 200px; width: auto; }
.sec-find .btn { flex: none; }
.sec-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sec-links a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 14px; }
.sec-links a:hover { border-color: var(--field); }
.sec-links a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.sec-blocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 16px; }
.sec-block { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; background: var(--page); min-width: 0; }
.sec-block h3 { font-size: 17px; }
.sec-block h3 a { color: var(--ink); text-decoration: none; }
.sec-block h3 a:hover { color: var(--link); }
.sec-block .meta { margin: 2px 0 8px; font-size: 13px; }
.sec-block li a { display: block; padding: 4px 0; text-decoration: none; }
.sec-block li a:hover { text-decoration: underline; }
.sec-block .more { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 500; }
.code-tag { display: inline-block; min-width: 44px; padding: 2px 8px; border-radius: 6px; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 700; font-size: 14px; line-height: 22px; text-align: center; text-decoration: none; white-space: nowrap; }
a.code-tag:hover { background: var(--accent); color: #fff; }
.code-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sec-table { margin-top: 12px; }
.sec-table td:first-child { white-space: nowrap; }
.sec-table td a { text-decoration: none; }
.sec-table td a:hover { text-decoration: underline; }
.sec-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
.sec-cards .card { margin-top: 0; }
.sec-cards p { margin-top: 8px; color: var(--ink-2); }
.sec-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; border-left: 4px solid var(--accent); }
.sec-ask h2 { margin: 0 0 4px; }
.sec-ask .btn { flex: none; }
.sec-hero { padding: 32px; }
.sec-hero h1 { margin: 6px 0 0; }
.sec-hero ~ .qa-layout { margin-top: 16px; }   /* without the samples note the card would touch the columns */
.kicker { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 24px; margin-top: 20px; padding: 18px 20px; border-radius: 10px; background: var(--page); }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.steps { margin-top: 8px; counter-reset: step; }
.steps > li { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-soft); counter-increment: step; }
.steps > li:first-child { border-top: 0; }
.steps > li::before { content: counter(step); flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; }
.steps h3 { font-size: 16px; margin: 0 0 4px; }
.steps p { color: var(--ink-2); }
.more-line { margin-top: 12px; font-size: 14px; font-weight: 500; }
.side-links li { border-top: 1px solid var(--line-soft); }
.side-links li:first-child { border-top: 0; }
.side-links a { display: block; padding: 8px 0; text-decoration: none; }
.side-links a:hover { text-decoration: underline; }
.side-links.plain li { padding: 8px 0; color: var(--ink-2); }

/* ---------- pieces that only a phone shows ---------- */
/* the switches of the phone layout (menu, search, footer folds, "show all"): they do nothing on a wide screen and are taken out of the page there */
.hdr-switch, .fold-switch, .more-switch { display: none; }
.hdr-btn, .more-btn, .reader-dock { display: none; }
label.footer-h { display: block; }

/* ---------- tablet ---------- */
@media (max-width: 1000px) {
    .tiles-16 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hero-split { grid-template-columns: minmax(0, 1fr); }
    .cover-fan { display: none; }
    .hero { padding: 40px 0 84px; }
    .about-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .about-row .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .about-over { padding: 24px; }
}

/* ---------- phone: its own layout of every block ---------- */
@media (max-width: 720px) {
    .hdr-switch, .fold-switch, .more-switch { display: block; position: absolute; opacity: 0; pointer-events: none; }
    /* fields at 16px: a smaller font makes iOS zoom the page when the field is tapped */
    input, select, textarea { font-size: 16px; }
    main.wrap { padding-bottom: 40px; }
    section, .block { margin-top: 24px; }

    /* header: logo, search button, menu button in one row; the search field and the menu drop down under it */
    .site-header { position: relative; }
    .site-header .wrap { flex-wrap: wrap; gap: 0 4px; padding-top: 6px; padding-bottom: 6px; }
    .logo { margin-right: auto; font-size: 22px; padding: 8px 0; }
    .hdr-btn { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 8px; color: var(--ink); cursor: pointer; }
    .hdr-btn:active { background: var(--page); }
    .hdr-switch:checked + .hdr-btn { background: var(--ink); color: #fff; }
    .hdr-switch:focus-visible + .hdr-btn { outline: 2px solid var(--accent); }
    .hdr-burger .i-close, #nav-open:checked + .hdr-burger .i-open { display: none; }
    #nav-open:checked + .hdr-burger .i-close { display: inline; }
    .site-header .site-nav { display: none; flex: 0 0 100%; flex-direction: column; flex-wrap: nowrap; gap: 0; margin: 6px 0 4px; border-top: 1px solid var(--line); }
    #nav-open:checked ~ .site-nav { display: flex; }
    .site-header .site-nav a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; }
    .site-header .site-nav a::after { content: "›"; color: var(--field); }
    .site-header .site-search { display: none; flex: 0 0 100%; margin: 6px 0; }
    #search-open:checked ~ .site-search { display: flex; }
    .site-header .site-search input[type=search] { max-width: none; }

    /* breadcrumbs: one line; a long name is cut with dots; the last one is the page itself, its name is the heading right below */
    .crumbs { padding: 10px 0 6px; font-size: 13px; }
    .crumbs ol { flex-wrap: nowrap; gap: 0 6px; }
    .crumbs li { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .crumbs li:nth-child(-n+2) { flex: none; }      /* "Home" and the brand stay whole; the longer names after them give way */
    .crumbs li:last-child:not(:first-child) { display: none; }
    .crumbs li + li::before { margin-right: 6px; }
    /* the text under the heading and the hint over the alphabet are not shown, as on the old site: the place goes to the content */
    .page-head .lead, p.meta:has(+ nav.letters) { display: none; }
    .lead { font-size: 16px; }

    /* the alphabet: nine letters in a row */
    .letters { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 5px; }
    .letters a, .letters b { min-width: 0; height: 38px; padding: 0; font-size: 14px; }
    .letters a:first-child:not(:only-child) { grid-column: auto; }

    /* tiles of device types: three in a row */
    .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .tile { padding: 8px 6px; border-radius: 10px; }
    .tile img { max-width: 72px; margin: 0 auto 4px; }
    .tile span { font-size: 12.5px; line-height: 1.25; }
    .tiles-16 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .tiles-16 .tile:nth-child(n+13) { display: none; }
    .tiles-16 .tile img { max-width: 64px; }
    .tiles-16 .tile span { font-size: 12.5px; }

    /* lists: a card for each row; links of a row as chips that are easy to hit */
    .list td.model { padding-top: 14px; font-size: 17px; font-weight: 600; }
    .list td.model a { display: block; }
    .list td.links { font-size: 0; padding-top: 6px; padding-bottom: 4px; }
    .list td.links a { display: inline-flex; align-items: center; min-height: 36px; margin: 0 6px 6px 0; padding: 0 12px; border: 1px solid var(--line); border-radius: 18px; font-size: 14px; text-decoration: none; color: var(--ink); background: var(--page); }
    .list td.links a:last-child { background: none; color: var(--link); border-color: transparent; padding-left: 4px; }
    .list .doc { padding: 4px 0; }
    .list .doc + .doc { margin-top: 2px; border-top: 1px solid var(--line-soft); padding-top: 8px; }
    .list .doc > a { font-weight: 500; }
    .list .doc > span:not(.flags) { display: block; font-size: 13.5px; line-height: 1.4; margin-top: 1px; }

    /* cards of manuals */
    /* the picture beside the title; the table of contents takes the whole width of the card under them */
    .doc-card { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 4px 12px; align-items: start; }
    .doc-card .cover { grid-row: 1 / span 2; }
    .doc-card .cover img { width: 84px; }
    .doc-card .body { display: contents; }
    .doc-card .body > details { grid-column: 1 / -1; }
    .toc { grid-template-columns: minmax(0, 1fr); }
    .toc a { padding: 10px 0; }
    .more-switch:not(:checked) ~ .cols, .more-switch:not(:checked) ~ .toc { max-height: 372px; overflow: hidden; }
    .more-switch:not(:checked) ~ .more-btn { display: block; margin-top: -36px; padding: 44px 0 4px; position: relative; text-align: center; font-weight: 600; color: var(--link); cursor: pointer; background: linear-gradient(rgba(255, 255, 255, 0), var(--card) 44px); }
    .more-switch:focus-visible ~ .more-btn { outline: 2px solid var(--accent); }
    .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .pager { gap: 5px; }
    .pager a, .pager b { min-width: 42px; height: 42px; }

    /* buttons take the whole width */
    .btn, .btn-2 { justify-content: center; }
    main form .btn { width: 100%; }
    .download .actions .btn, .download .actions .btn-2, .download form .btn, .download form .btn-2, form.stack .btn { width: 100%; margin-right: 0; }

    /* home page: search, numbers, the lists, device types, requested manuals; the text goes last */
    .hero { padding: 28px 0 72px; }
    .hero .h1 { font-size: 28px; }
    .search-big input[type=search] { height: 52px; font-size: 16px; padding-left: 44px; background-position: 14px center; }
    .search-big button { height: 52px; padding: 0 16px; }
    .home-flow { display: flex; flex-direction: column; }
    .home-flow > * { order: 5; min-width: 0; }
    .home-flow > .hero { order: 0; }
    .home-flow > .about-over { display: contents; }
    .about-over > .stats { order: 1; position: relative; margin-top: -44px; padding: 14px 4px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(23, 24, 26, .1); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 0; }
    .about-over > .stats a, .about-over > .stats span { background: none; border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 2px 14px; }
    .about-over > .stats > :nth-child(odd) { border-left: 0; }
    .about-over > .stats b { font-size: 22px; }
    .home-flow > .tabs { order: 2; }
    .home-flow > .home-tiles { order: 3; }
    .home-flow > .reviews { order: 10; margin-top: 24px; }
    .reviews-nav { display: none; }
    .reviews-strip > li { flex-basis: 82%; }
    .about-over > .prose { order: 9; margin-top: 24px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }

    /* the lists as an accordion: a row for each list, the open list right under its row */
    .tabs { display: block; padding: 0; overflow: hidden; }
    .tab-label { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; border-radius: 0; background: none; border-top: 1px solid var(--line); font-size: 16px; }
    .tab-label:first-of-type { border-top: 0; }
    .tab-label::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 4px 0 12px; flex: none; }
    .tab-switch:checked + .tab-label { background: none; color: var(--accent); }
    .tab-switch:checked + .tab-label::after { transform: rotate(-135deg); margin-top: 4px; border-color: var(--accent); }
    .tab-label.tab-first-section { margin-left: 0; border-top: 6px solid var(--page); }
    .tab-label.tab-first-section::before { content: none; }
    .tab-panel { margin: 0; padding: 0 16px 16px; }
    .tab-panel > h2 { font-size: 17px; margin-bottom: 4px; }
    .tab-panel .section-head { flex-direction: column; gap: 2px; margin-bottom: 6px; }
    .sec-grid { grid-template-columns: minmax(0, 1fr); }
    /* sections (error codes, guides): the heading card is tighter; brands of a product in two columns;
       a table row is the code at the left and its lines at the right, the meaning first */
    .sec-hero { padding: 20px; }
    .sec-hero h1 { font-size: 24px; }
    .sec-block ul.brand-cols { columns: 2; column-gap: 16px; }
    .sec-table tr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; padding: 12px 16px; align-items: start; }
    .sec-table td { grid-column: 2; width: auto; padding: 0; font-size: 14px; color: var(--muted); }
    .sec-table td:first-child { grid-column: 1; grid-row: 1 / span 4; color: var(--ink); }
    .sec-table td:last-child { grid-row: 1; font-size: 16px; color: var(--ink); }
    .sec-table td.model { width: auto; padding: 0; font-size: 16px; }
    .sec-table td[data-label] { grid-row: auto; font-size: 15px; color: var(--ink); }
    .sec-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: 13px; }
    .sec-table td[data-label].muted { color: var(--muted); }
    .sec-ask .btn { width: 100%; justify-content: center; }

    .qa-layout { grid-template-columns: minmax(0, 1fr); }
    .qa-question h1 { font-size: 23px; }

    /* reader: page field and arrows in one row; turning pages from the lower edge of the screen */
    .reader-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
    .reader-bar form label { position: absolute; left: -9999px; }
    .reader-bar .nav { grid-column: 2; grid-row: 1; }
    .reader-bar .btn-2 { height: 42px; padding: 0 14px; }
    .reader-bar .zoom-btn { display: none; }
    /* the page of the manual from edge to edge of the screen */
    .reader-shell { margin-left: -16px; margin-right: -16px; }
    .reader-shell .reader, .reader-shell .reader-bar { border-left: 0; border-right: 0; border-radius: 0; }
    /* no strip of page pictures on a phone: pages are turned from the bar at the lower edge, the contents
       list jumps to a section; hidden pictures with loading="lazy" are not fetched at all */
    .thumbs-wrap { display: none; }
    .reader-dock { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; padding: 6px 12px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(23, 24, 26, .08); }
    .reader-dock a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 8px; text-decoration: none; font-weight: 600; color: var(--ink); }
    .reader-dock a[rel=prev] { justify-self: start; background: var(--page); }
    .reader-dock a[rel=next] { justify-self: end; background: var(--accent); color: #fff; }
    .reader-dock .now { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 500; }
    .reader-dock .now a { padding: 0 6px; color: var(--muted); font-weight: 500; }
    .reader-dock .zoom-btn { min-height: 40px; min-width: 58px; padding: 0 8px; border: 1px solid var(--field); border-radius: 8px; background: var(--card); font-weight: 600; font-size: 14px; }
    body:has(.reader-dock) .site-footer { padding-bottom: 64px; }

    /* footer: the four lists of links fold; every link stays in the page code */
    .site-footer .wrap { gap: 20px; padding-top: 28px; }
    .footer-top { gap: 0 20px; }
    .footer-cols { display: block; border-top: 1px solid var(--ink-2); }
    .footer-cols > div { border-bottom: 1px solid var(--ink-2); }
    .footer-cols label.footer-h { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 15px 0; color: #fff; font-size: 14px; cursor: pointer; }
    .footer-cols label.footer-h::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--dark-muted); border-bottom: 2px solid var(--dark-muted); transform: rotate(45deg); margin: -4px 4px 0; }
    .fold-switch:checked + label.footer-h::after { transform: rotate(-135deg); margin-top: 4px; }
    .footer-cols ul { display: none; padding-bottom: 10px; }
    .fold-switch:checked ~ ul { display: block; }
    .fold-switch:focus-visible + label.footer-h { outline: 2px solid #fff; }
    .footer-cols a { padding: 9px 0; }
    .footer-langs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
    .footer-langs > span:first-child { grid-column: 1 / -1; padding-bottom: 4px; }
}

/* The glow of the home hero is drawn inside the band only, the full width is a shadow (.bleed). The
   fixed glow (430 px wide, at 70%) reaches past the right edge of a band narrower than about 1000 px and
   was cut off there with a visible line: phones and every iPad upright. closest-side ends inside the band. */
@media (max-width: 1060px) {
    .hero-band { background: radial-gradient(closest-side at 60% 40%, rgba(179, 38, 30, .5), transparent), var(--dark); }
}

/* Touch screens: links that stand alone get a finger-sized target (Android check 2026-11-24); the look stays the same */
@media (pointer: coarse) {
  .reader-bar > a { padding: 10px 0; }
  .summary-item a { display: inline-block; padding: 4px 0; }
  .fresh-brands a { padding: 6px 0; }
}
