/* Jenko — home v9 prototype, over home-v8.css (owner, 2026-09-26, after v8, on a laptop): each screen's details — larger where it
   carries the point, tighter where space is lost, no gaps. Landscape screens only (the phone keeps v8 until it is reviewed). */

/* ——— 1. Between screens: none. The owner tried a screen staying while the next one slid over it, and the dark screens as
   rounded panels, and rejected both at once (2026-09-27: « Переходы — ужасны, убрать срочно »). Do not bring them back. ——— */

/* ——— 2. Six families: the specs right under the name (no empty lines when a neighbour's name runs longer); names one
   size down so the longest takes three lines, not four ——— */
.fam9__txt { display: grid; align-content: start; gap: 6px; min-height: 0; }
@media (min-width: 901px) and (min-aspect-ratio: 1/1) {
  .fam5 { grid-template-rows: minmax(0, 1fr) auto; row-gap: 10px; }
  .fam5 li, .fam5 a { grid-row: span 2; }
  .fam5__name { font-size: var(--step-0); font-weight: 540; line-height: 1.2; }
  .fam5__spec { font-size: var(--step--1); }
}

/* ——— 3. The cabinet: the title on one line across the screen; its sentence and the hint beside the list; the photo takes
   nine columns and the height the second title line took (no empty band under it); the point's name stays large, its
   words one step down so the narrower column still holds them (checked 1280×689 … 2560×1305) ——— */
.cab9__lead { margin: 0; font-size: var(--step--1); line-height: 1.45; color: var(--ink); max-width: 40ch; }
.cab9__lead span { display: block; margin-top: 4px; color: var(--ink-2); }
@media (min-width: 901px) and (min-aspect-ratio: 1/1) {
  .s5-cab .s5__title { grid-column: 1 / -1; }
  .s5-cab .s5__media { grid-column: 1 / span 9; }
  .s5-cab .s5__aside { grid-column: 10 / -1; }
  .s5-cab .cab5__side { gap: clamp(10px, 1.8svh, 20px); }
  .s5-cab .cab5__detail p { font-size: var(--step-0); line-height: 1.5; max-width: none; }
}
@media (max-width: 900px), (max-aspect-ratio: 1/1) { .cab9__lead span { display: none; } }

/* ——— 4. The workshop: the arrows beside the title (as Thirdway's teams), the film on the hall's picture, the figures one
   size up (List Holding sets its « 11 900 m² » at 60 px), the row inside the page's columns (the side tab keeps its margin) ——— */
.shop9__film { position: absolute; z-index: 2; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 12px;
  border: 0; border-radius: 22px; background: rgb(var(--shade) / 0.62); color: var(--on-photo); font: inherit; font-size: var(--step--1); font-weight: 520; cursor: pointer;
  transition: background-color var(--dur-s); }
.shop9__film:hover { background: rgb(var(--shade) / 0.82); }
.shop9__film svg { width: 16px; height: 16px; }
.shop9__film:focus-visible { outline: 2px solid var(--jaune); outline-offset: 2px; }
.shop8__item figure { position: relative; }
@media (min-width: 901px) and (min-aspect-ratio: 1/1) {
  .s5-shop8 .s5__title { grid-column: 1 / span 6; }
  .s5-shop8 .s5__lead { grid-column: 7 / span 4; }
  .shop9__nav { grid-column: 11 / -1; grid-row: 1; align-self: end; justify-content: flex-end; }
  .shop8 { grid-template-rows: minmax(0, 1fr); }
  .shop8__list { --cap: calc(var(--step-3) * 1.02 + var(--step-0) * 1.4 * 2 + 18px); margin: 0; padding: 0; scroll-padding-inline: 0; }
  .shop8__item { width: min(44cqw, calc((100cqh - var(--cap)) * 16 / 10)); }
  .shop8__n { font-size: var(--step-3); letter-spacing: -0.032em; line-height: 1.02; }
}

/* ——— 5. Who works with us: the tile says what it is, the logo takes the tile ——— */
@media (min-width: 901px) and (min-aspect-ratio: 1/1) {
  .refs7__main li { place-items: center; }
  .refs7__main img { max-width: 78%; max-height: 54%; }
  .refs7__main span { top: 14px; bottom: auto; left: 16px; font-size: var(--step-0); color: var(--ink); }
}

/* ——— 6. The request: the phone number is the largest thing on the screen after the title; the step numbers carry the
   order at a glance ——— */
@media (min-width: 901px) and (min-aspect-ratio: 1/1) {
  .s5-fin { --step-4: clamp(2.5rem, min(5.2vw, 9.4svh), 6rem); }
  .fin5__steps li::before { font-size: var(--step-1); color: var(--on-graphite); padding-top: 0; line-height: 1.1; }
  .fin5__steps li { grid-template-columns: 1.6em minmax(0, 1fr); }
  /* the number and the hours share the column's full width (in French the number is wider: Archivo) */
  .fin7__tel { max-width: none; }
}
@media (min-width: 901px) and (min-aspect-ratio: 1/1) and (max-height: 720px) {
  .s5-fin { --step-4: clamp(2.25rem, min(5vw, 8.2svh), 6rem); }
}

/* a link inside the sentence beside a title keeps the sentence's line height */
@media (min-width: 901px) and (min-aspect-ratio: 1/1) {
  .s5__lead p .link { min-height: 0; line-height: inherit; background-position: 0 100%; }
  .s5__lead p .link:hover { background-position: 100% 100%; }
}
