/* Jenko — home v11 prototype, over home-v9.css (owner, 2026-09-27, after the phone v10):
   « единый дизайн-код » — the same sizes per text role and the same spacings on every screen and every device;
   everything on lines; on a phone every block is exactly one or two screens; one ground without hard light/dark cuts.
   Sections: 1 design code · 2 spacing · 3 line-ups · 4 phone bar and fixes · 5 phone rhythm · 6 the ground (variants). */

/* ——— 1. The design code: six text roles. Every text on the page takes one of them; the old scale steps map onto them,
   so the screens, the opening, the footer and the menu share one set of sizes on each device.
     display — the opening claim (unchanged, --step-6)       accent — the workshop's phone number
     title   — screen titles and the workshop's figures       sub    — the chosen point's name, the testimonial
     body    — sentences, lists, names, buttons, fields        small  — specs, captions, labels, notes, the footer
   Phones take fixed sizes, upright tablets a little larger, landscape screens follow the window's width and height. ——— */
:root {
  --t-small: 0.875rem;                          /* 14 */
  --t-body: 1.0625rem;                          /* 17 */
  --t-sub: clamp(1.375rem, 6vw, 1.625rem);      /* 23 at 390 */
  --t-title: clamp(1.75rem, 8.4vw, 2.375rem);   /* 33 at 390 */
  --t-accent: clamp(2.125rem, 10.4vw, 2.75rem); /* 41 at 390 */
  --lh-title: 1.04; --lh-sub: 1.15; --lh-body: 1.5; --lh-small: 1.45;
  /* spacing: one scale, 4 · 8 · 12 · 16 · 24 · 32 · 48 on a phone */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px;
}
@media (min-width: 601px) {
  :root {
    --t-small: 0.875rem; --t-body: 1.0625rem; --t-sub: clamp(1.5rem, 3.3vw, 1.875rem);
    --t-title: clamp(2.25rem, 5.2vw, 3.25rem); --t-accent: clamp(2.75rem, 6.8vw, 3.75rem);
    --s-1: 4px; --s-2: 8px; --s-3: 14px; --s-4: 20px; --s-5: 28px; --s-6: 40px; --s-7: 56px;
  }
}
@media (min-width: 901px) and (min-aspect-ratio: 1/1) {
  :root {
    --t-small: clamp(0.875rem, min(1vw, 1.85svh), 1.0625rem);
    --t-body: clamp(1rem, min(1.3vw, 2.45svh), 1.375rem);
    --t-sub: clamp(1.5rem, min(3vw, 5svh), 3.25rem);
    --t-title: clamp(2rem, min(4.1vw, 7.2svh), 4.5rem);
    --t-accent: clamp(2.5rem, min(5.2vw, 9.4svh), 6rem);
    --s-1: clamp(3px, 0.5svh, 6px); --s-2: clamp(6px, 1svh, 12px); --s-3: clamp(10px, 1.6svh, 18px); --s-4: clamp(12px, 2.2svh, 24px);
    --s-5: clamp(16px, 3svh, 36px); --s-6: clamp(22px, 4.2svh, 48px); --s-7: clamp(32px, 6svh, 72px);
  }
}
@media (min-width: 901px) and (min-aspect-ratio: 1/1) and (max-height: 720px) { :root { --t-accent: clamp(2.25rem, min(5vw, 8.2svh), 6rem); } }
/* the steps the components already use, mapped onto the roles (one set, no screen-scope overrides) */
:root, .s5 { --step--1: var(--t-small); --step-0: var(--t-body); --step-1: var(--t-body); --step-2: var(--t-sub); --step-3: var(--t-title); --step-4: var(--t-accent); }

/* roles that were set apart per screen come back to their role */
.s5__title { font-size: var(--t-title); line-height: var(--lh-title); }
.shop8__n { font-size: var(--t-title); line-height: var(--lh-title); }
.fin7__tel a { font-size: var(--t-accent); line-height: 1; letter-spacing: -0.03em; font-weight: 400; }
.cab5__detail h3 { font-size: var(--t-sub); line-height: var(--lh-sub); letter-spacing: -0.02em; }
.refs7__avis blockquote, [data-v-refs="grid"] .refs7__avis blockquote { font-size: var(--t-sub); line-height: var(--lh-sub); letter-spacing: -0.015em; }
:is(.s5__lead, .s5__lead p, .cab9__lead, .cab5__list button, .cab5__detail p, .shop8__t, .fam5__name, .fin5__steps b, .fin5__steps h3, .fin7 .fin5__steps h3, .btn, .field input, .refs7__main span, .opening__lead, .cab7__pop-t, .lb8__t) { font-size: var(--t-body); }
:is(.s5__lead p, .cab9__lead, .cab5__detail p, .shop8__t, .opening__lead, .fin5__steps b) { line-height: var(--lh-body); }
.fam5__name { line-height: 1.25; font-weight: 540; }
:is(.fam5__spec, .s5__lead .link, .refs7__avis figcaption, .refs7__label, .refs7__note, .fin7__tel, .fin7__tel span, .field label, .field__err, .fin5__steps span, .footer, .footer__col, .footer__col h2, .footer__legal, .footer__top7, .opening__status, .opening__scroll, .cab5__cap, .cab5__toggle, .shop9__film, .shop8__count, .cab5__n, .fin7__ph figcaption) { font-size: var(--t-small); }
:is(.fam5__spec, .refs7__note, .fin5__steps span, .field__err) { line-height: var(--lh-small); }
/* the step numbers are read with their step name: the same size */
.fin5__steps li::before { font-size: var(--t-body) !important; line-height: var(--lh-body) !important; padding-top: 0 !important; }
.cab9__lead span { color: var(--ink-2); }

/* ——— 2. Spacing: every screen has the same four distances, from the same scale —
   screen top → hairline s-5 · hairline → title s-3 · head → content s-5 · content → screen end s-5 ——— */
main[data-screens] .s5 { --pad-top: var(--s-5); --pad-bottom: var(--s-5); --gap: var(--s-5); }
main[data-screens] .s5 .s5__head { padding-top: var(--s-3); row-gap: var(--s-3); }
.s5__lead { gap: var(--s-2); }
.fam5 { row-gap: var(--s-2); }
.fam5__name { padding-top: var(--s-2); }
.fam9__txt { gap: var(--s-1); }
.cab5__side { gap: var(--s-4); }
.cab5__detail, .cab5__detail > div { gap: var(--s-2); }
.shop8 { row-gap: var(--s-3); }
.shop8__item figure { gap: var(--s-2); }
.shop8__cap { gap: var(--s-1); padding-top: var(--s-3); }
.refs7__avis figure { gap: var(--s-3); padding-top: var(--s-3); }
.refs7__group { gap: var(--s-2); }
.fin7 { row-gap: var(--s-4); }
.fin7__main { gap: var(--s-4); }
.fin7__tel { gap: var(--s-1) var(--s-4); }
.fin5__form { gap: var(--s-4) var(--gutter); }
.fin7 .fin5__steps { gap: var(--s-2); }
.fin5__steps li { padding-block: var(--s-2); }
/* the request and the footer share the last screen: the gap between them is the one between any two blocks (s-5, the
   footer's own top), the footer ends with the screen's bottom distance; the steps' rows use the scale's small step */
@media (min-width: 901px) and (min-aspect-ratio: 1/1) {
  main[data-screens] .s5-fin .s5__in { padding-bottom: 0; }
  html main[data-screens] + .footer .footer__grid { padding-top: var(--s-5); }
  main[data-screens] + .footer { padding-bottom: var(--s-4); }
  .fin7 { row-gap: var(--s-3); }
  .fin5__steps li { padding-block: var(--s-1) var(--s-2); }
  .cab5__list button { min-height: clamp(32px, 4.8svh, 48px); }
  /* the building five columns, the number, the form and the steps seven: the steps' words take two lines, not three */
  [data-v-fin="photo"] .fin7__ph { grid-column: 1 / span 5; }
  [data-v-fin="photo"] :is(.fin7__main, .fin7__steps) { grid-column: 6 / -1; }
}

/* ——— 3. Line-ups. The footer: the logo, the two lists and « back to top » share one row; « back to top » stands on the
   last line of links (its baseline is theirs), the legal line under the row. On upright screens and phones it sits at
   the end of the logo's line. ——— */
.footer__top7 { gap: var(--s-3); font-weight: 520; }
html main[data-screens] + .footer .footer__top7 { position: static; margin: 0; min-height: 44px; }
.footer__top7 i { flex: none; width: 40px; height: 40px; }
@media (min-width: 901px) and (min-aspect-ratio: 1/1) {
  html main[data-screens] + .footer .footer__grid { position: static; align-items: start; }
  html main[data-screens] + .footer .footer__brand { grid-row: 1; }
  html main[data-screens] + .footer .footer__col:nth-of-type(4), html main[data-screens] + .footer .footer__col:nth-of-type(5) { grid-row: 1; align-self: last baseline; }
  html main[data-screens] + .footer .footer__top7 { grid-column: 12; grid-row: 1; justify-self: end; align-self: last baseline; min-height: 26px; }
  /* the ring rides on the line without making it taller */
  html main[data-screens] + .footer .footer__top7 i { margin-block: -7px; }
  html main[data-screens] + .footer .footer__legal { grid-row: 2; }
}
@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  html main[data-screens] + .footer .footer__brand { grid-row: 1; grid-column: 1 / -1; align-self: center; }
  html main[data-screens] + .footer .footer__top7 { grid-row: 1; grid-column: 1 / -1; justify-self: end; align-self: center; }
}

/* upright tablets: the two main clients keep a real tile (their label sat on the logo), one testimonial across the width */
@media (min-width: 601px) and (max-aspect-ratio: 1/1), (min-width: 601px) and (max-width: 900px) {
  .refs7 { grid-template-rows: minmax(104px, 1fr) auto auto auto !important; }
  .refs7__main span { top: var(--s-2); bottom: auto; left: var(--s-3); color: var(--ink); }
  .refs7__main img { max-height: 42%; }
  .refs7__avis { grid-template-columns: minmax(0, 1fr) !important; }
  .refs7__avis figure ~ figure { display: none !important; }
  .refs7__note .refs5__note-t { font-size: var(--t-small); }
  /* the footer as on a laptop: the logo and « back to top » on one line, the two lists in columns under it */
  html main[data-screens] + .footer .footer__note { display: none; }
  html main[data-screens] + .footer .footer__grid { padding-top: var(--s-4); row-gap: var(--s-3); }
  html main[data-screens] + .footer .footer__brand svg { width: 132px; }
  html main[data-screens] + .footer .footer__col:nth-of-type(4) { grid-row: 2; grid-column: 1 / span 8; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); }
  html main[data-screens] + .footer .footer__col:nth-of-type(5) { grid-row: 2; grid-column: 9 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
  html main[data-screens] + .footer .footer__col h2 { grid-column: 1 / -1; margin-bottom: var(--s-1); }
  html main[data-screens] + .footer .footer__col :is(a, span) { min-height: 32px; }
  html main[data-screens] + .footer .footer__legal { grid-row: 3; margin-top: 0; padding-top: var(--s-3); }
  /* the request as on a laptop: the building beside the number and the form, the four steps under them — the request and
     the footer share one screen */
  .s5-fin .fin7 { grid-template-rows: auto auto !important; }
  .s5-fin .s5__lead { display: none; }
  .s5-fin .fin7__ph { grid-column: 1 / span 4 !important; grid-row: 1 !important; aspect-ratio: auto !important; min-height: 0; }
  .s5-fin .fin7__main { grid-column: 5 / -1 !important; grid-row: 1 !important; }
  .s5-fin .fin7__steps { grid-column: 1 / -1 !important; grid-row: 2 !important; }
  .s5-fin .fin5__form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s5-fin .fin5__form .btn { grid-column: 1 / -1; justify-self: stretch; justify-content: space-between; margin-top: 0; }
  /* four lines kept under each field (the longest message, in Russian, takes four in a half column): it must not push the
     button away from under the finger */
  .s5-fin .fin5__form .field__err { min-height: calc(4 * var(--lh-small) * 1em); }
  .s5-fin .fin5__steps li { padding-block: var(--s-1); }
}

/* ——— 4. The phone's bar and the fixes of v10 (home-m.css) ——— */
@media (max-width: 600px) {
  :root { --margin: clamp(16px, 5.2vw, 20px); }
  .cab5__list { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); justify-content: stretch; }
  .cab5__list button { width: 100%; }
  .opening__scroll { margin-right: 0; }
  .top.is-compact { left: 8px; right: 8px; top: 0; padding: calc(env(safe-area-inset-top, 0px) + 8px) 0 0; }
  .top.is-compact::before { content: ""; position: absolute; z-index: -1; inset: calc(env(safe-area-inset-top, 0px) + 8px) 0 0; border-radius: 6px;
    background: var(--paper-hi); box-shadow: 0 10px 30px rgb(22 24 27 / 0.12), 0 1px 2px rgb(22 24 27 / 0.08); transition: background-color 300ms ease; }
  .top.is-compact.is-dark-band::before { background: color-mix(in srgb, var(--on-graphite) 9%, var(--graphite)); box-shadow: none; }
  .top.is-compact :is(.top__brand, .top__right) { background: none !important; box-shadow: none !important; }
  .top.is-compact .top__brand { padding: 0 12px; }
  .top.is-compact .top__right { gap: 4px; padding: 4px; }
  .top.is-compact .top__menu { padding: 0 10px; }
  .top.is-compact .top__call { display: grid; }
}
@media (max-width: 340px) { .cab5__list { margin-inline: -6px; } }
.top__call { display: none; place-items: center; width: 44px; height: 44px; color: inherit; }
.top__call svg { width: 20px; height: 20px; }

/* ——— 5. The phone's rhythm (owner: « либо 2 либо 1 » экран, не 0,5 и не 1,5). Each block is a whole number of screens,
   --n (home-v11.js measures the block with its pictures at their smallest and rounds up); the pictures take what is left,
   never the gaps. The footer ends the request's last screen when it fits there without another screen; otherwise it
   follows at its own short height (it is the page's end, not a block). ——— */
@media (max-width: 600px) {
  :root { --screen: max(100svh, 520px); }
  main[data-screens] .s5 { height: calc(var(--n, 1) * var(--screen)); min-height: 0; }
  main[data-screens] .s5-fin { height: calc(var(--n, 1) * var(--screen)); min-height: 0; }
  main[data-screens] .s5-fin.is-with-foot { height: calc(var(--n, 1) * var(--screen) - var(--foot-h, 0px)); }
  main[data-screens] .s5 .s5__in { display: flex; flex-direction: column; gap: var(--gap); }
  html[data-v-mbar="pill"] main[data-screens] .s5 { --pad-top: calc(68px + var(--s-3)); }
  .s5-fam .s5__lead p .link, .s5__lead p .link { display: flex; width: fit-content; }

  /* six families, two by two: the three rows of pictures share the height */
  .s5-fam .fam5 { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr) auto);
    column-gap: var(--gutter); row-gap: 0; margin: 0; padding: 0; overflow: visible; scroll-snap-type: none; }
  .s5-fam .fam5 li { grid-row: span 2; display: grid; grid-template-rows: subgrid; flex: none; }
  .s5-fam .fam5 a { grid-row: span 2; display: grid; grid-template-rows: subgrid; gap: 0; }
  .s5-fam .fam5__ph { min-height: 0; }
  .s5-fam .fam9__txt { padding-bottom: var(--s-4); }
  .s5-fam .fam5 li:nth-last-child(-n+2) .fam9__txt { padding-bottom: 0; }
  .s5-fam .fam5__name { font-weight: 540; }
  .s5-fam .fam5__name svg { display: none; }

  /* the cabinet, two layouts (home-v11.js takes the one that ends on a whole screen):
     compact (one screen, tall phones) — the seven numbers in a row, the chosen point's photo beside its words;
     full (two screens) — the seven points by name (the names say what is inside, as on a laptop), then the chosen point's
     photo across the width takes the rest */
  .s5-cab .s5__media { flex: none; }
  .s5-cab .s5__aside { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: var(--s-4); container-type: inline-size; }
  .s5-cab .cab5__detail > div { flex: none; }
  .s5-cab .cab5__detail p { color: var(--ink); }
  .s5-cab.is-compact .cab5__detail { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: minmax(0, 1fr); align-items: start; gap: var(--s-3); }
  /* the photo takes the detail's full height, the words hang from its top */
  .s5-cab.is-compact .cab7__thumb { align-self: stretch; width: 100%; height: 100%; min-height: 0; max-height: none; aspect-ratio: auto; object-fit: cover; }
  .s5-cab.is-measure.is-compact .cab7__thumb { height: 150px; }
  .s5-cab.is-compact .cab5__detail h3 { font-size: var(--t-body); font-weight: 560; }
  .s5-cab.is-compact .cab5__detail p { font-size: var(--t-small); line-height: var(--lh-small); }
  .s5-cab:not(.is-compact) .cab5__list { display: block; margin: 0; border-top: 1px solid var(--rule-strong); }
  .s5-cab:not(.is-compact) .cab5__list li { border-bottom: 1px solid var(--rule); }
  .s5-cab:not(.is-compact) .cab5__list button { width: 100%; min-height: 44px; display: grid; grid-template-columns: 2.4em minmax(0, 1fr); justify-items: start; gap: var(--s-2); }
  .s5-cab:not(.is-compact) .cab5__list .cab5__t { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
  .s5-cab:not(.is-compact) .cab5__list .cab5__n { width: auto; height: auto; border: 0; border-radius: 0; font-size: var(--t-small); }
  .s5-cab:not(.is-compact) .cab5__list button[aria-pressed="true"] .cab5__n { width: 1.9em; height: 1.9em; border-radius: 50%; }
  .s5-cab:not(.is-compact) .cab5__detail { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: var(--s-3); }
  /* the photo grows into the rest, up to one and a half times its width */
  .s5-cab:not(.is-compact) .cab7__thumb { flex: 1 1 0; min-height: 0; max-height: 150cqw; width: 100%; height: auto; aspect-ratio: auto; object-fit: cover; }

  /* the workshop: the ribbon takes the rest, each picture across most of the width */
  .s5-shop8 .s5__lead p { display: block; }
  .s5-shop8 .shop9__nav { justify-content: flex-start; }
  .s5-shop8 .shop8 { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
  .s5-shop8 .shop8__list { flex: 1 1 0; min-height: 0; container-type: size; --cap: calc(var(--t-title) * 1.04 + var(--t-body) * 1.5 * 3 + var(--s-2) + var(--s-1) + 2px); }
  .s5-shop8 .shop8__item { width: 86cqw; height: 100%; }

  /* who works with us: the two main clients, one testimonial, the two tables — their rows take the rest */
  .s5-refs7 .refs7 { flex: 1 1 0; min-height: 0; display: flex !important; flex-direction: column; gap: var(--s-5) !important; }
  .s5-refs7 .refs7__main { flex: none; display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
  .s5-refs7 .refs7__main li { aspect-ratio: 2 / 1; }
  .s5-refs7 .refs7__main img { max-width: 70%; max-height: 40%; }
  .s5-refs7 .refs7__main span { display: block; top: var(--s-2); bottom: auto; left: var(--s-3); color: var(--ink); }
  .s5-refs7 .refs7__avis { flex: none; display: grid !important; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .s5-refs7 .refs7__avis figure ~ figure { display: none !important; }
  .s5-refs7 .refs7__note .refs5__note-t { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
  .s5-refs7 .refs7__avis figcaption img { width: 40px; }
  .s5-refs7 .refs7__group { flex: 1 1 0; min-height: 0; display: grid !important; grid-template-rows: auto minmax(0, 1fr); gap: var(--s-2); }
  .s5-refs7 .refs7__group ul { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-template-rows: repeat(5, minmax(40px, 1fr));
    border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
  .s5-refs7 .refs7__group li { height: auto; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .s5-refs7 .refs7__group img { height: calc(20px * var(--k, 1)); max-width: 72%; opacity: 0.9; }

  /* the request: the number, the form, the four steps, then the building takes the rest; the footer closes the screen */
  .s5-fin .s5__lead { display: none; }
  .s5-fin .fin7 { flex: 1 1 0; min-height: 0; display: flex !important; flex-direction: column; gap: var(--s-5); padding-top: 0; }
  .s5-fin .fin7__main { flex: none; gap: var(--s-4); }
  .s5-fin .fin7__tel { gap: var(--s-1); }
  .s5-fin .fin7__addr { display: none !important; }
  .s5-fin .fin5__form { gap: var(--s-3); }
  .s5-fin .fin5__form .btn { justify-self: stretch; justify-content: space-between; }
  /* two lines kept under each field for its message: it appears on the tap on the button and must not move the button */
  .s5-fin .fin5__form .field__err { min-height: calc(2 * var(--lh-small) * 1em); }
  .s5-fin .fin5__form .field { gap: var(--s-1); }
  .s5-fin .fin7__steps { flex: none; order: 2; }
  .s5-fin .fin5__steps li { grid-template-columns: 1.6em minmax(0, 1fr); }
  .s5-fin .fin7__ph { display: block !important; flex: 1 1 0; min-height: 0; order: 3; aspect-ratio: auto !important; }

  /* the footer, short: the logo and « back to top » on one line, the two lists side by side, the legal line */
  main[data-screens] + .footer { padding-block: 0 var(--s-5); }
  main[data-screens] + .footer .footer__grid { padding-top: var(--s-5); row-gap: var(--s-4); }
  main[data-screens] + .footer .footer__brand svg { width: 120px; }
  main[data-screens] + .footer .footer__note { display: none; }
  main[data-screens] + .footer .footer__col { gap: 0; }
  main[data-screens] + .footer .footer__col h2 { margin-bottom: var(--s-1); }
  main[data-screens] + .footer .footer__col :is(a, span) { min-height: 36px; }
  main[data-screens] + .footer .footer__legal { margin-top: 0; padding-top: var(--s-4); gap: var(--s-1) var(--s-5); }
  main[data-screens] + .footer .footer__legal > span { flex-basis: 100%; }

  /* measuring (home-v11.js): the block at its natural height, the pictures at their smallest */
  main[data-screens] .s5.is-measure { height: auto !important; }
  .s5.is-measure :is(.fam5, .s5__aside, .cab5__detail, .shop8, .shop8__list, .refs7, .refs7__group, .fin7) { flex: none !important; }
  .s5-fam.is-measure .fam5 { grid-template-rows: repeat(3, 110px auto); }
  .s5-cab.is-measure:not(.is-compact) .cab7__thumb { flex: none; height: 150px; }
  .s5-shop8.is-measure .shop8__list { height: calc(170px + var(--cap)); }
  .s5-refs7.is-measure .refs7__group ul { grid-template-rows: repeat(5, 40px); }
  .s5-fin.is-measure .fin7__ph { flex: none; height: 150px; }
}

/* ——— 6. The ground (owner: « границы вроде бы есть, но у фона их быть не должно »). Variants in <html data-v-ground>:
   one   — one warm ground under the whole page: the request and the footer are light too, the opening film sits in a frame
           on the ground, so no edge crosses the page; the dark stays inside the pictures;
   panel — one warm ground too, and the request a graphite panel framed on it (research, NN/g « common region »: keep a
           change of ground for the one region that differs);
   shift — the dark blocks stay, but the whole page changes colour together, smoothly, when a dark block comes to the middle
           of the window (and back), so there is never a light and a dark ground on the screen at once;
   cut   — as now (the page as approved), to compare. ——— */
html[data-v-ground="one"] { background: var(--paper); }
html[data-v-ground="one"] :is(.s5-fin, .footer) { --graphite: var(--paper); --graphite-2: var(--stone); --on-graphite: var(--ink); --on-graphite-2: var(--ink-2); --err-on-dark: #8c1c0c; }
html[data-v-ground="one"] :is(.s5-fin, .footer) :focus-visible { outline-color: var(--ink); }
html[data-v-ground="one"] main[data-screens] + .footer .footer__grid { border-top-color: var(--rule-strong); }
html:is([data-v-ground="one"], [data-v-ground="panel"]) #site { scroll-margin-top: var(--frame, 8px); }
html[data-v-ground="one"] .opening { --frame: 8px; margin: var(--frame) var(--frame) 0; height: calc(100svh - var(--frame)); min-height: 0; border-radius: 8px; }
@media (min-width: 601px) { html[data-v-ground="one"] .opening { --frame: clamp(10px, 1vw, 18px); border-radius: 10px; } }
html[data-v-ground="one"] .top:not(.is-compact) { padding-top: calc(env(safe-area-inset-top, 0px) + 18px + var(--frame, 8px)); padding-inline: calc(var(--margin) + var(--frame, 8px)); }

/* panel: one warm ground as « one », but the request stays graphite — as a framed panel on the ground (inset by the frame,
   rounded), like the opening's film; the words inside keep the page's lines (the panel's inner margin is the page margin
   less the frame). The footer is on the ground, under a hairline. */
html[data-v-ground="panel"] { background: var(--paper); }
html[data-v-ground="panel"] .footer { --graphite: var(--paper); --graphite-2: var(--stone); --on-graphite: var(--ink); --on-graphite-2: var(--ink-2); }
html[data-v-ground="panel"] .footer :focus-visible { outline-color: var(--ink); }
/* the panel's edge parts the footer from the request: no hairline over the footer */
html[data-v-ground="panel"] main[data-screens] + .footer .footer__grid { border-top: 0; }
html[data-v-ground="panel"] .opening { --frame: 8px; margin: var(--frame) var(--frame) 0; height: calc(100svh - var(--frame)); min-height: 0; border-radius: 8px; }
html[data-v-ground="panel"] .s5-fin { --frame: 8px; background: var(--paper); padding: var(--frame); }
@media (min-width: 601px) { html[data-v-ground="panel"] :is(.opening, .s5-fin) { --frame: clamp(8px, 0.7vw, 14px); } html[data-v-ground="panel"] .opening { border-radius: 10px; } }
html[data-v-ground="panel"] .top:not(.is-compact) { padding-top: calc(env(safe-area-inset-top, 0px) + 18px + var(--frame, 8px)); padding-inline: calc(var(--margin) + var(--frame, 8px)); }
html[data-v-ground="panel"] main[data-screens] .s5-fin .s5__in { background: var(--graphite); border-radius: 10px; padding: var(--s-4) calc(var(--margin) - var(--frame)); }
/* inside the panel the frame is the edge: no hairline over the title, and the same distance above the title as under the steps */
html[data-v-ground="panel"] main[data-screens] .s5-fin .s5__head { border-top: 0; padding-top: 0; }
html[data-v-ground="panel"] main[data-screens] + .footer .footer__grid { padding-top: var(--s-3); }

/* shift: the colours are registered, so the page's tokens themselves glide from light to dark (Chrome, Safari 16.4+,
   Firefox 128+); every block, line and word follows them at once */
@property --paper { syntax: '<color>'; inherits: true; initial-value: #f1ede6; }
@property --paper-hi { syntax: '<color>'; inherits: true; initial-value: #f8f6f1; }
@property --stone { syntax: '<color>'; inherits: true; initial-value: #e2ddd4; }
@property --ink { syntax: '<color>'; inherits: true; initial-value: #16181b; }
@property --ink-2 { syntax: '<color>'; inherits: true; initial-value: #454b52; }
@property --rule { syntax: '<color>'; inherits: true; initial-value: rgb(38 34 28 / 0.16); }
@property --rule-strong { syntax: '<color>'; inherits: true; initial-value: rgb(38 34 28 / 0.5); }
html[data-v-ground="shift"] { background: var(--paper); transition: --paper 900ms ease, --paper-hi 900ms ease, --stone 900ms ease, --ink 900ms ease, --ink-2 900ms ease, --rule 900ms ease, --rule-strong 900ms ease; }
html[data-v-ground="shift"].is-dark { --paper: #23272b; --paper-hi: #2c3136; --stone: #353a40; --ink: #e9eae6; --ink-2: #a9afb5; --rule: rgb(233 234 230 / 0.16); --rule-strong: rgb(233 234 230 / 0.45); }
html[data-v-ground="shift"] body, html[data-v-ground="shift"] main > section.s5, html[data-v-ground="shift"] .footer { background: var(--paper); }
html[data-v-ground="shift"] :is(.s5-fin, .footer) { --graphite: var(--paper); --graphite-2: var(--stone); --on-graphite: var(--ink); --on-graphite-2: var(--ink-2); }
html[data-v-ground="shift"].is-dark :is(.s5-fin, .footer) { --err-on-dark: #ffb4a2; }
html[data-v-ground="shift"]:not(.is-dark) :is(.s5-fin, .footer) { --err-on-dark: #8c1c0c; }
html[data-v-ground="shift"] :is(.refs7__group img, .refs7__main img) { transition: filter 900ms ease; }
html[data-v-ground="shift"].is-dark :is(.refs7__group img, .refs7__main img) { filter: invert(1) brightness(0.92); }
html[data-v-ground="shift"].is-dark .s5 :focus-visible { outline-color: var(--jaune); }
html[data-v-ground="shift"] :is(.btn, .rail7__devis) { --btn-fg: #16181b; color: #16181b; }
@media (prefers-reduced-motion: reduce) { html[data-v-ground="shift"] { transition: none; } html[data-v-ground="shift"] :is(.refs7__group img, .refs7__main img) { transition: none; } }

/* ——— 7. Fitting the last screen on low and narrow laptop windows (after the rules above, so they win) ——— */
/* low laptop windows (1280×689, 1366×657): the steps' rows one scale step tighter, so the request and the footer still
   share the window */
@media (min-width: 901px) and (min-aspect-ratio: 1/1) and (max-height: 720px) {
  .fin7 { row-gap: var(--s-2) !important; }
  .fin5__steps li { padding-block: var(--s-1) !important; }
  .fin5__steps span { line-height: 1.38; }
  .fin7 .fin5__steps { gap: var(--s-1); }
  main[data-screens] + .footer { padding-bottom: var(--s-3); }
}
/* narrow landscape windows (1024×768): the building four columns, the words eight */
@media (min-width: 901px) and (max-width: 1180px) and (min-aspect-ratio: 1/1) {
  [data-v-fin="photo"] .fin7__ph { grid-column: 1 / span 4; }
  [data-v-fin="photo"] :is(.fin7__main, .fin7__steps) { grid-column: 5 / -1; }
}
