/* Haywebs prototype — the home page's own geometry: the pinned hero (three
   stepped lines in the wordmark's face, leader-line notes, the seal, the foot), the light
   chapter «Кейсы» (the plate grid and the clients line) and the dark
   chapters after it: «О студии», «Услуги», «Процесс», «Вопросы»,
   «Контакты»; then the footer scene. Load after base.css.

   The hero is measured in --fs-hero, the headline's size. Its two layers
   share one grid: .hero-text sinks and fades with --p (subgrid), the seal's
   sphere (.seal > [data-seal]) is a sibling item in the same tracks, so it
   leaves at full strength when motion.js flies it into the header mark. */

/* ----------------------------------------------------------------- hero --- */
.hero {
  height: 100vh; height: 100svh; min-height: 620px; overflow: hidden;
  background: radial-gradient(60% 50% at 82% 38%, rgb(var(--c-blue) / 0.07), transparent 70%), var(--bg);
  /* the headline's size, also held under the screen's height, so a short
     desktop window (1536×730) keeps the foot and its buttons on screen */
  --fs-fit: min(var(--fs-hero), 28vh - 80px);
  /* the shutter's progress (--p, written here by motion.js) sinks the hero
     back: up 7vh, scale 0.95, opacity 0.3 */
  --sink: translateY(calc(var(--p, 0) * -7vh)) scale(calc(1 - var(--p, 0) * 0.05));
  --fade: calc(1 - var(--p, 0) * 0.7);
}
.hero-in {
  --fs-hero: var(--fs-fit);
  height: 100%; display: grid;
  /* a column as wide as the headline, then the room it leaves, which holds
     the seal; rows: eyebrow / gap / headline / slack / foot */
  grid-template-columns: minmax(0, calc(var(--fs-hero) * 9.85)) minmax(0, 1fr);
  grid-template-rows: auto clamp(20px, 4.5vh, 48px) auto minmax(0, 1fr) auto;
  padding: calc(var(--hdr) + clamp(24px, 7vh, 80px)) max(var(--g), (100% - var(--measure)) / 2) clamp(24px, 5vh, 52px);
}
/* the text layer sinks; the seal beside it is left to its flight */
.hero-text {
  grid-area: 1 / 1 / -1 / -1; display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid;
  transform-origin: 50% 30%; transform: var(--sink); opacity: var(--fade);
}
.hero-text > .eyebrow { grid-row: 1; }
.headline { grid-row: 3; position: relative; }
.hero-foot { grid-row: 5; }

/* three steps: each line starts further in */
.hero .ln-2 { --x: 1.45em; }
.hero .ln-3 { --x: 2.95em; }

/* the notes hang off the headline's lines; leader lines point back to them */
.hero .note {
  position: absolute; display: flex; align-items: flex-end; gap: 10px;
  height: calc(var(--fs-hero) * 0.98); padding-bottom: calc(var(--fs-hero) * 0.2);
  font: 500 12px / 1.3 var(--sans); letter-spacing: 0.02em; white-space: nowrap; color: var(--text-2);
}
.hero .note::before, .hero .note::after { content: ""; flex: 0 1 64px; min-width: 14px; height: 1px; margin-bottom: 0.5em; background: rgb(255 255 255 / 0.35); transform-origin: left; }
.hero .note-1 { top: 0; left: calc(var(--fs-hero) * 8.05); right: 0; }
.hero .note-1::after, .hero .note-2::before { display: none; }
.hero .note-2 { top: calc(var(--fs-hero) * 1.96); left: 0; right: calc(100% - var(--fs-hero) * 2.82); justify-content: flex-end; }
.hero .note-2::after { transform-origin: right; }

/* the seal: the ring text belongs to the text layer, the sphere to its own;
   both sit in the headline's row, just past the headline's column, centred on
   the line between the first two lines: clear of the title, not off at the
   grid's edge (the owner found it too close, then too far) */
.seal-ring, .seal {
  grid-row: 3; grid-column: 2; justify-self: start; align-self: start;
  width: calc(var(--fs-hero) * 1.2); height: calc(var(--fs-hero) * 1.2);
  margin: calc(var(--fs-hero) * 0.45) 0 0 calc(var(--fs-hero) * 0.15);
}
.seal-ring { overflow: visible; fill: var(--text-2); font: 600 6.1px var(--sans); letter-spacing: 0.1em; }
.seal { position: relative; }
.seal-sphere { position: absolute; inset: 19%; border-radius: 50%; }
.seal-sphere canvas { width: 100%; height: 100%; }
/* without JS the canvas stays blank: the mark's PNG stands in */
.no-js .seal-sphere { background: url("haywebs-sphere.png") center / 82% no-repeat; }

/* the foot: the hint under the third line's indent, the lead, the buttons */
.hero-foot {
  position: relative; display: grid; align-items: end; padding-top: 28px;
  grid-template-columns: calc(var(--fs-hero) * 2.95) minmax(0, 46ch) 1fr;
}
.hero-foot::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--line); transform-origin: left; }
.hero .hint { font: 500 12px / 1.3 var(--sans); letter-spacing: 0.06em; color: var(--text-2); }
.hero .actions { display: flex; gap: 12px; justify-self: end; }

/* --------------------------------------------- light chapter: «Кейсы» --- */
.cases-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.cases-head .kicker { grid-column: 1 / -1; }
.cases-head h2 { grid-column: 1 / 9; }
.cases-head .lead { grid-column: 9 / -1; max-width: 40ch; }

.cases-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 5vw, 80px) clamp(16px, 1.7vw, 24px);
  margin: 0; padding: 0; list-style: none;
}
.cases-grid .wide { grid-column: 1 / -1; }
.cases-grid .wide .media { aspect-ratio: 16 / 9; }
.case { display: block; border-radius: var(--r); }
.case figcaption {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 20px;
  padding-top: 18px; font: 500 var(--fs-small) / 1.4 var(--sans); color: var(--text-2);
}
.case b { font-weight: 600; color: var(--text); }
.case .metric { display: inline-flex; align-items: baseline; gap: 12px; font: 400 24px / 1.1 var(--serif); color: var(--text); white-space: nowrap; }
.case .metric i { display: inline-block; font: 400 18px / 1 var(--sans); font-style: normal; }
@media (hover: hover) {
  .case:hover .media { transform: scale(1.02); }
  .case:hover .metric i { transform: translate(5px, 5px); }
}
.case:focus-visible .metric i { transform: translate(5px, 5px); }

/* the clients: one calm line under the grid, names kept whole, a dot after
   each but the last (so a wrapped line never starts with one) */
.clients {
  margin: clamp(64px, 7vw, 112px) 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none;
  font: 500 14px / 1.7 var(--sans); color: var(--text-2);
}
.clients li { display: inline; white-space: nowrap; }
.clients li:not(:last-child)::after { content: "·"; padding: 0 0.5em 0 0.75em; color: var(--text-3); }

/* ------------------------------------------------------------ entrance --- */
/* After base.css's lines and stages: the leader lines and the rule over the
   lead draw (0.9 s), the seal turns in with stage 3 (1.2 s) — on the ring and
   on .seal, never on [data-seal], whose transform is the flight's. */
@media (prefers-reduced-motion: no-preference) {
  .js:not(.go) :is(.seal-ring, .seal) { opacity: 0; }
  .js.go :is(.seal-ring, .seal) { animation: seal-in calc(0.8s * var(--tempo)) var(--ease) calc(1.2s * var(--tempo)) both; }
  .js:not(.go) .hero .note::before, .js:not(.go) .hero .note::after, .js:not(.go) .hero-foot::before { transform: scaleX(0); }
  .js.go .hero .note::before, .js.go .hero .note::after, .js.go .hero-foot::before { animation: draw calc(0.7s * var(--tempo)) var(--ease) calc(0.9s * var(--tempo)) both; }
  .case .metric i { transition: transform 0.5s var(--ease); }
}
@keyframes seal-in { from { opacity: 0; transform: scale(0.86) rotate(-40deg); } }
@keyframes draw { from { transform: scaleX(0); } }

/* --------------------------------------------------------------- medium --- */
@media (max-width: 1180px) {
  .hero-foot { grid-template-columns: calc(var(--fs-hero) * 2.95) minmax(0, 1fr); row-gap: 24px; }
  .hero-pitch, .hero .actions { grid-column: 2; }
  .hero .actions { justify-self: start; }
  .hero .hint { grid-row: 2; grid-column: 1; }
  .cases-head h2 { grid-column: 1 / -1; margin-bottom: 28px; }
  .cases-head .lead { grid-column: 1 / 9; }
  .case .metric { font-size: 22px; }
}

/* Below 861 px motion.js does not fly the seal, so ring and sphere must sink
   as one: the sink moves from the text layer to the grid holding both. */
@media (max-width: 860px) {
  .hero-in { transform-origin: 50% 30%; transform: var(--sink); opacity: var(--fade); }
  .hero-text { transform: none; opacity: 1; }
}

/* ---------------------------------------------------------------- phone --- */
/* The headline spans the width; the notes stack under it with the seal
   beside them; the block sits low, the slack split above and below it. */
@media (max-width: 760px) {
  .hero-in {
    grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px;
    /* slack / eyebrow / gap / headline / note 1 / note 2 / slack / foot */
    grid-template-rows: minmax(0, 1fr) auto clamp(20px, 4.5vh, 48px) auto auto auto minmax(0, 1fr) auto;
    padding-top: calc(var(--hdr) + 12px);
  }
  .hero-text > .eyebrow { grid-row: 2; grid-column: 1 / -1; }
  .headline { display: contents; }
  .headline h1 { grid-row: 4; grid-column: 1 / -1; }
  .hero .ln-2 { --x: 0.7em; }
  .hero .ln-3 { --x: 1.15em; }
  .hero .note { position: static; grid-column: 1; height: auto; padding: 0; }
  .hero .note-1 { grid-row: 5; margin-top: 28px; }
  .hero .note-2 { grid-row: 6; margin-top: 10px; justify-content: flex-start; }
  .hero .note::before { flex-basis: 20px; }
  .hero .note-2::before { display: block; }
  .hero .note-2::after { display: none; }
  .seal-ring, .seal { grid-row: 5 / 7; grid-column: 2; align-self: end; width: 92px; height: 92px; margin: 12px 0 0; }
  .hero-foot { grid-row: 8; grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); padding-top: 22px; row-gap: 20px; }
  .hero-pitch, .hero .actions, .hero .hint { grid-column: 1; grid-row: auto; }
  .hero .hint { grid-row: 3; }
  .hero .actions { justify-self: stretch; }
  .hero .actions .btn { flex: 1; height: 50px; padding: 0 14px; }
  .hero .actions .btn-icon { flex: none; width: 50px; padding: 0; }

  .cases-head { display: block; }
  .cases-head h2 { margin-bottom: 20px; }
  .cases-grid { grid-template-columns: minmax(0, 1fr); }
  .cases-grid .wide .media { aspect-ratio: 4 / 3; }
  .case figcaption { flex-direction: column; gap: 6px; }
  .case .metric { font-size: 20px; }
}

/* ------------------------------------------ dark chapter: «О студии» --- */
/* Two halves set on the four columns of the cards below. The pitch (h2,
   lead, status) holds the left half; the figures, the stack and the speed
   line start where card 03's text starts, and their second column where
   card 04's does — so 84 stands over 03 and 9 over 04. --pad is a card's
   inset after its hairline; a two-column block whose gap is --pad, set
   --pad into the right half, splits exactly on the 3/4 line. */
.studio, .services, .process, .faq { --pad: clamp(16px, 2vw, 32px); }
.studio-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.studio-intro h2 { max-width: 20ch; }
.studio-intro .lead { max-width: 48ch; margin-top: clamp(24px, 2.6vw, 36px); }
/* the one status point the accent is kept for */
.studio-status {
  display: flex; align-items: center; gap: 10px; width: fit-content; min-height: 38px; margin-top: 32px; padding: 8px 16px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  font: 500 var(--fs-small) / 1.3 var(--sans); color: var(--text);
}
.studio-status::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.studio-facts { padding-left: var(--pad); }
.studio-stats, .studio-chips { margin: 0; padding: 0; list-style: none; }
.studio-stats, .studio-board dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--pad); }
.studio-stats li { display: flex; flex-direction: column; gap: 12px; }
.stat-n { font: 400 56px / 1.1 var(--serif); letter-spacing: -0.01em; }
.stat-l { font: 500 var(--fs-small) / 1.4 var(--sans); color: var(--text-2); }
.studio-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(32px, 3.4vw, 48px); }
.studio-chips li {
  padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--r-pill);
  font: 500 13px / 1 var(--sans); color: var(--text-2);
}
/* the «табло»: a label, one thin rule, then the label/value line — no frame */
.studio-board { margin-top: clamp(32px, 3.4vw, 48px); }
.board-title { font: 600 var(--fs-label) / 1 var(--sans); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-3); }
.studio-board dl { margin: 14px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.studio-board dl div { display: flex; align-items: baseline; gap: 14px; }
.studio-board dt { font: 500 var(--fs-small) / 1.4 var(--sans); color: var(--text-2); }
.studio-board dd { margin: 0; font: 400 24px / 1.1 var(--serif); }

/* the four cards: one typographic row, a hairline over it and between the
   columns, no boxes; the links line up at the foot of the row */
.studio-cards {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(72px, 8vw, 128px) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line);
}
.studio-cards li { display: flex; flex-direction: column; align-items: flex-start; padding: 28px var(--pad) 0; }
.studio-cards li + li { border-left: 1px solid var(--line); }
.studio-cards li:first-child { padding-left: 0; }
.card-n { font: 600 var(--fs-label) / 1 var(--sans); letter-spacing: 0.06em; font-variant-numeric: tabular-nums; color: var(--text-3); }
.studio-cards h3 { margin-top: clamp(28px, 3vw, 44px); font: 600 var(--fs-h3) / 1.3 var(--sans); letter-spacing: -0.012em; }
.studio-cards p { max-width: 34ch; margin: 12px 0 24px; font-size: 14px; line-height: 1.6; color: var(--text-3); }
.studio-cards a {
  margin-top: auto; font: 600 14px / 1.4 var(--sans);
  text-decoration: underline 1px var(--line-strong); text-underline-offset: 6px;
}
.studio-cards a:hover { text-decoration-color: currentColor; }

@media (prefers-reduced-motion: no-preference) {
  .studio-cards a { transition: text-decoration-color var(--t-fast) var(--soft); }
}

@media (max-width: 1180px) {
  .stat-n { font-size: 44px; }
}
/* the cards two by two; the pitch above the facts, whose columns now split
   on the middle line (gap 2 × --pad: the second starts where card 02's text does) */
@media (max-width: 860px) {
  .studio-top { grid-template-columns: minmax(0, 1fr); }
  .studio-facts { margin-top: 56px; padding-left: 0; }
  .studio-stats, .studio-board dl { column-gap: calc(var(--pad) * 2); }
  .studio-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-cards li { padding-bottom: 36px; }
  .studio-cards li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .studio-cards li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .stat-n { font-size: 36px; }
  .studio-cards { grid-template-columns: minmax(0, 1fr); }
  .studio-cards li { padding: 24px 0 28px; }
  .studio-cards li + li { border-left: 0; border-top: 1px solid var(--line); }
  .studio-cards h3 { margin-top: 18px; }
}

/* -------------------------------------------- dark chapter: «Услуги» --- */
/* The head spans the width; the lead and every row's text start on the
   middle line plus --pad, as the right half of «О студии» does. A row is
   one link (number, title, text, arrow): hover and keyboard focus share
   its state — the ground, the title moving 8 px, the arrow. The ground
   bleeds --bleed into the gutter, so the numbers keep to the page's edge. */
.services { --nw: clamp(44px, 5vw, 88px); --bleed: clamp(12px, 1.2vw, 20px); }
.services-head { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.services-head h2 { grid-column: 1 / -1; max-width: 22ch; }
.services-head .lead { grid-column: 2; max-width: 40ch; margin-top: clamp(24px, 2.6vw, 36px); padding-left: var(--pad); }

.services-list { margin: clamp(56px, 6vw, 96px) 0 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.services-list li { border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: var(--nw) calc(50% - var(--nw)) minmax(0, 1fr) auto; align-items: baseline;
  margin: 0 calc(var(--bleed) * -1); padding: clamp(22px, 2.2vw, 30px) var(--bleed);
}
.service-n { font: 600 var(--fs-label) / 1 var(--sans); letter-spacing: 0.06em; font-variant-numeric: tabular-nums; color: var(--text-3); }
.service h3 { font: 400 28px / 1.1 var(--serif); letter-spacing: -0.01em; }
.service p { padding-left: var(--pad); font-size: 15px; line-height: 1.5; color: var(--text-2); }
.service-arrow {
  padding-left: 16px; font: 400 22px / 1 var(--sans);
  opacity: 0; transform: translate(-6px, -6px);
}
.service:focus-visible { background: var(--surface); }
.service:focus-visible h3 { transform: translateX(8px); }
.service:focus-visible .service-arrow { opacity: 1; transform: none; }
@media (hover: hover) {
  .service:hover { background: var(--surface); }
  .service:hover h3 { transform: translateX(8px); }
  .service:hover .service-arrow { opacity: 1; transform: none; }
}
.services-more { margin-top: clamp(40px, 4vw, 56px); }

@media (prefers-reduced-motion: no-preference) {
  .service { transition: background-color 0.42s var(--soft); }
  .service h3 { transition: transform 0.42s var(--ease); }
  .service-arrow { transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
}

/* phones: the number beside the title, the text under both title and arrow,
   the lead full width */
@media (max-width: 760px) {
  .services-head .lead { grid-column: 1 / -1; padding-left: 0; }
  .service { grid-template-columns: 36px minmax(0, 1fr) auto; row-gap: 8px; }
  .service-n { grid-area: 1 / 1; }
  .service h3 { grid-area: 1 / 2; font-size: 24px; }
  .service p { grid-area: 2 / 2 / auto / -1; padding-left: 0; } /* under the arrow's column too */
  .service-arrow { grid-area: 1 / 3; }
}

/* ------------------------------------------- dark chapter: «Процесс» --- */
/* The head is set on the rail's five columns (their gap is --pad, the same
   clamp as .rail's column gap in base.css): the h2 over steps 01–03, the
   lead over 04–05, so it starts where step 04 does. The rail itself — the
   subgrid rows, the line through the dots, the draw and the vertical
   phone form — is base.css's. Here a step's head keeps its number at the
   top of the row and its title at the foot, so a title that wraps onto a
   second line moves neither the numbers nor the other titles. */
.process-head {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--pad); align-items: end;
  margin-bottom: clamp(64px, 7vw, 112px);
}
.process-head h2 { grid-column: 1 / 4; }
.process-head .lead { grid-column: 4 / -1; max-width: 40ch; }
.process .rail-head { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; }
.process .rail-head h3 { font: inherit; letter-spacing: inherit; }

/* ------------------------------------------- dark chapter: «Вопросы» --- */
/* Two halves, as «О студии»: the h2 and lead on the left; the accordion
   (base.css, motion.js) on the right, from the middle line plus --pad,
   where the services' texts start. Without JS every answer is open and a
   question does nothing, so its «+» is dropped. */
.faq-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.faq-intro .lead { max-width: 36ch; margin-top: clamp(24px, 2.6vw, 36px); }
.faq-list { padding-left: var(--pad); }
.no-js .faq .acc-icon { display: none; }
.no-js .faq .acc-q button { cursor: default; }

/* the heads stack; the accordion goes under the lead, full width */
@media (max-width: 860px) {
  .process-head h2, .process-head .lead { grid-column: 1 / -1; }
  .process-head .lead { margin-top: clamp(20px, 3vw, 28px); }
  .faq-body { grid-template-columns: minmax(0, 1fr); }
  .faq-list { margin-top: clamp(40px, 6vw, 56px); padding-left: 0; }
}

/* ------------------------------------------ dark chapter: «Контакты» --- */
/* Two halves, as «О студии» and «Вопросы»: the h2, lead, the four points
   and the ways to reach the studio on the left; the form's plate on the
   right, from the middle line plus --pad. The plate is very dark: its
   canvas (art.js «form», one light above the top edge) or, without it, a
   CSS glow in the same place. Fields are underlined, never boxed; a focused
   field's rule turns accent and 2 px, and its label brightens. */
.contact { --pad: clamp(16px, 2vw, 32px); --field-line: rgb(255 255 255 / 0.45); --field-hover: rgb(255 255 255 / 0.7); }
.contact-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.contact-intro h2 { max-width: 16ch; }
.contact-intro .lead { max-width: 44ch; margin-top: clamp(24px, 2.6vw, 36px); }
.contact-points {
  display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 14px clamp(28px, 3vw, 48px);
  margin: clamp(32px, 3.4vw, 44px) 0 0; padding: 0; list-style: none;
  font: 500 15px / 1.4 var(--sans);
}
.contact-points li { display: flex; align-items: baseline; gap: 12px; }
.contact-points li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
.contact-ways {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  margin-top: clamp(40px, 4.4vw, 64px); padding-top: 24px; border-top: 1px solid var(--line);
  font: 500 15px / 1.5 var(--sans); color: var(--text-2); /* the shorthand also undoes <address>'s italic */
}
.contact-ways a { color: var(--text); text-decoration: underline 1px transparent; text-underline-offset: 5px; }
.contact-ways .contact-mail { margin-bottom: 8px; font: 400 28px / 1.2 var(--serif); letter-spacing: -0.01em; text-decoration-color: var(--line-strong); text-underline-offset: 7px; }

/* the plate is glass (.lg, base.css): its corners and rims are the material's */
.contact-plate {
  position: relative; margin-left: var(--pad); overflow: hidden;
  background: radial-gradient(72% 46% at 50% -6%, rgb(var(--c-cyan) / 0.13), transparent 72%), #07080a;
}
.contact-plate canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.contact-form {
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) clamp(20px, 2.4vw, 32px);
  padding: clamp(28px, 3.6vw, 56px);
}
.contact-form h3 { grid-column: 1 / -1; font: 600 var(--fs-h3) / 1.3 var(--sans); letter-spacing: -0.012em; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font: 600 var(--fs-label) / 1.4 var(--sans); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-2); }
.field :is(input, textarea) {
  width: 100%; margin: 0; padding: 8px 0 12px; border: 0; border-bottom: 1px solid var(--field-line); border-radius: 0;
  background: transparent; color: var(--text); font: 400 var(--fs-body) / 1.5 var(--sans);
}
.field textarea { display: block; min-height: calc(4 * 1.5em + 20px); resize: vertical; }
.field ::placeholder { color: var(--text-3); opacity: 1; }
.field :is(input, textarea):focus-visible { outline: 0; border-radius: 0; border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.field:focus-within label { color: var(--text); }
/* the browser's autofill keeps the plate's dark ground */
.field input:-webkit-autofill { -webkit-text-fill-color: var(--text); caret-color: var(--text); transition: background-color 0s 600000s; }
/* the button and, beside it, the form's own line: sending, sent, or what
   went wrong; under each field, the server's word on it; the bots' trap
   off screen, as on the site's own form */
.contact-send { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 8px; }
.contact-send .btn { min-width: 176px; }
.contact-status { flex: 1 1 240px; font: 400 var(--fs-small) / 1.45 var(--sans); color: var(--text-2); }
.field-error { font: 500 var(--fs-small) / 1.45 var(--sans); color: var(--danger); }
.field :is(input, textarea)[aria-invalid="true"] { border-bottom-color: var(--danger); box-shadow: 0 1px 0 var(--danger); }
.cf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (hover: hover) {
  .field :is(input, textarea):hover:not(:focus) { border-bottom-color: var(--field-hover); }
  .contact-ways a:hover { text-decoration-color: currentColor; }
}
@media (prefers-reduced-motion: no-preference) {
  .field :is(input, textarea) { transition: border-color var(--t-fast) var(--soft), box-shadow var(--t-fast) var(--soft); }
  .field label { transition: color var(--t-fast) var(--soft); }
  .contact-ways a { transition: text-decoration-color var(--t-fast) var(--soft); }
}

/* the halves stack: the plate under the ways, full width */
@media (max-width: 860px) {
  .contact-body { grid-template-columns: minmax(0, 1fr); }
  .contact-plate { margin: clamp(48px, 8vw, 64px) 0 0; }
}
/* phones: the points and the fields one per row */
@media (max-width: 760px) {
  .contact-points { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .contact-form { grid-template-columns: minmax(0, 1fr); }
  .contact-send .btn { flex: 1 1 100%; }
}

/* ======================================================================
   The motion layer on the home page (world.js, fx.js).
   ====================================================================== */
/* the hover plate floats under the rows: a row's ground must let it through */
.gl .service:is(:hover, :focus-visible) { background: rgb(255 255 255 / 0.035); }

/* the hero's static grain gives way to the moving one over the page */
.gl .grain::after { display: none; }
/* the seal and the leader lines join the shorter entrance */
@media (prefers-reduced-motion: no-preference) {
  html.gl.js.go :is(.seal-ring, .seal) { animation-duration: 0.6s; animation-delay: 0.24s; }
  html.gl.js.go .hero .note::before, html.gl.js.go .hero .note::after, html.gl.js.go .hero-foot::before { animation-delay: 0.16s; }
}

/* «О студии»: the lead read as one statement, lit word by word (fx.js) */
.statement {
  margin: clamp(88px, 10vw, 168px) auto clamp(72px, 8vw, 136px); max-width: 27ch;
  font: 400 clamp(28px, 3.4vw, 54px) / 1.2 var(--serif); letter-spacing: -0.012em; text-align: center; color: var(--text);
}

/* «Процесс» on wide screens: the chapter is as tall as its sideways run;
   the stage stays while the rail slides left under it (fx.js writes
   --track and moves the rail). */
.process.pin-x { height: calc(100vh + var(--track, 0px)); padding: 0; }
.pin-x .process-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center;
  padding: var(--hdr) max(var(--g), (100% - var(--measure)) / 2) clamp(24px, 4vh, 56px);
}
.pin-x .rail { width: max-content; grid-auto-columns: clamp(320px, 30vw, 460px); column-gap: clamp(48px, 5vw, 96px); margin-top: clamp(36px, 6vh, 72px); will-change: transform; }
.pin-x .rail-n { margin-bottom: 18px; font: 400 clamp(64px, 7vw, 112px) / 0.9 var(--serif); letter-spacing: -0.02em; color: var(--text-3); }
.pin-x .rail-body p { max-width: 34ch; }


/* ======================================================================
   The calm home (owner, 2026-11-03): fewer and larger things, liquid glass
   where text meets the dots, the case wall without lens, bend or drag.
   ====================================================================== */


/* ---------------------------------------- the header: a glass capsule --- */
/* With JS only: without it the header stays in the flow, on its dark ground. */
.js[data-page="home"] .hdr { inset: 12px max(12px, (100% - 1240px) / 2) auto; height: 58px; padding: 0 8px 0 22px; border-radius: 999px; }
.js[data-page="home"] .hdr::before,
.js[data-page="home"] .hdr.scrolled:not(.on-light)::before {
  opacity: 1; border-radius: inherit;
  /* a denser body: what scrolls under the nav must not fight it */
  background: linear-gradient(160deg, rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.03) 45%), rgb(10 11 14 / 0.66);
  box-shadow: inset 0 1px 0.5px rgb(255 255 255 / 0.45), inset 0 -1px 0.5px rgb(255 255 255 / 0.1), 0 12px 36px -10px rgb(0 0 0 / 0.55);
  -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8);
}
.js[data-page="home"] .hdr.on-light::before {
  background: linear-gradient(160deg, rgb(255 255 255 / 0.78), rgb(255 255 255 / 0.5));
  box-shadow: inset 0 1px 0.5px #fff, inset 0 -1px 0.5px rgb(0 0 0 / 0.06), 0 12px 30px -12px rgb(0 0 0 / 0.25);
}
@media (max-width: 860px) {
  .js[data-page="home"] .hdr { inset: 10px 10px auto; height: 54px; padding: 0 6px 0 18px; }
  /* the open menu spreads over the screen: the capsule's glass steps back */
  .js[data-page="home"] .hdr.menu-open::before { opacity: 0; }
}

/* --------------------------------------------------------------- hero --- */
[data-page="home"] .hero { background: radial-gradient(60% 50% at 82% 38%, rgb(var(--c-blue) / 0.08), transparent 70%), var(--bg); }
[data-page="home"] .hero-foot::before { display: none; }
[data-page="home"] .hero-pitch .lead { font-size: clamp(17px, 1.3vw, 20px); color: var(--text); max-width: 32ch; }
/* three facts under the line: the price from, the estimate, the answer */
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 14px 0 0; padding: 0; list-style: none; font: 500 14px / 1.35 var(--sans); color: var(--text-2); }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.hero-facts li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero-facts .dram { display: inline-block; width: auto; height: 0.78em; margin-left: 0.16em; }
/* the messengers: round glass buttons with their marks, named for screen readers */
.btn.btn-icon { width: 52px; padding: 0; }
.btn-icon svg { flex: none; width: 21px; height: 21px; }
@media (min-width: 1181px) {
  [data-page="home"] .hero-pitch { grid-column: 2; }
  [data-page="home"] .hero .actions { grid-column: 3; }
}

/* -------------------------------------------------------------- cases --- */
.cases-title { max-width: 13ch; margin-bottom: clamp(48px, 6vw, 96px); }
[data-page="home"] .cases-grid .media { border-radius: 18px; }
.case figure { position: relative; }
.case .chip {
  --lg-r: 18px; position: absolute; left: clamp(12px, 1.6vw, 24px); bottom: clamp(12px, 1.6vw, 24px);
  display: flex; flex-direction: column; gap: 4px; max-width: calc(100% - 24px); padding: 14px 20px 16px;
  font: 600 13px / 1.3 var(--sans); color: rgb(255 255 255 / 0.72);
}
.case .chip b { font-weight: 600; color: inherit; }
.case .chip .metric { display: block; font: 400 clamp(20px, 2.1vw, 30px) / 1.1 var(--serif); color: #fff; white-space: normal; }

/* ------------------------------------------------------------- studio --- */
.studio-title { max-width: 17ch; }
.studio .statement { margin: clamp(72px, 9vw, 140px) auto; }

/* ----------------------------------------------------------- services --- */
.services-title { max-width: 16ch; }
[data-page="home"] .service { grid-template-columns: minmax(0, 1fr); }
[data-page="home"] .service h3 { font-size: clamp(26px, 3.1vw, 46px); line-height: 1.08; }
[data-page="home"] .services-more { margin-top: clamp(40px, 4vw, 64px); }

/* ------------------------------------------------------------ process --- */
[data-page="home"] .rail-step { --lg-r: 22px; padding: 26px 26px 24px; }
[data-page="home"] .rail-head { padding-bottom: 18px; }
[data-page="home"] .rail-body { padding-top: 18px; }
[data-page="home"] .rail-term { margin-top: 0; }
[data-page="home"] .process:not(.pin-x) .process-stage { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 72px); }
@media (max-width: 760px) {
  [data-page="home"] .rail-step { padding: 20px 20px 18px; }
}

/* --------------------------------------------------------------- faq --- */
[data-page="home"] .faq-list { --lg-r: 26px; padding: 4px clamp(20px, 2.4vw, 32px); }
[data-page="home"] .faq-list .acc-item:first-child { border-top: 0; }
[data-page="home"] .faq-list .acc-item:last-child { border-bottom: 0; }

/* ------------------------------------------------------------ contact --- */
[data-page="home"] .contact-intro h2 { max-width: 15ch; }
[data-page="home"] .contact-ways { margin-top: clamp(32px, 4vw, 56px); }
[data-page="home"] .contact-ways .contact-mail { font-size: clamp(28px, 3vw, 44px); }
[data-page="home"] .contact-plate { --lg-r: 28px; margin-left: var(--pad); overflow: visible; }
[data-page="home"] .contact-plate.lg { background: linear-gradient(160deg, rgb(255 255 255 / 0.13), rgb(255 255 255 / 0.05) 42%, rgb(255 255 255 / 0.035)); }
.gl[data-page="home"] .contact-plate.lg { background: none; }
[data-page="home"] .contact-form { grid-template-columns: minmax(0, 1fr); }
[data-page="home"] .field label { text-transform: none; letter-spacing: 0; font-size: 13px; }
@media (max-width: 860px) { [data-page="home"] .contact-plate { margin-left: 0; } }

/* ------------------------------------------------------------- footer --- */
[data-page="home"] .foot { padding-top: clamp(72px, 8vw, 120px); }
[data-page="home"] .foot-row { margin-top: 0; }
/* readability over the moving dots: a quieter grain on this page */
html[data-page="home"].gl body::after { opacity: 0.03; }

/* ======================================================================
   The structured home (owner, 2026-11-04): every chapter opens the same
   way, a label, the title and one line, and its content sits on a grid.
   The studio's real sites carry «Кейсы».
   ====================================================================== */

/* -------------------------------------------------- the chapter head --- */
/* label | title over the page's twelve columns; the lead under the title */
.sec-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: clamp(14px, 1.4vw, 22px);
  margin-bottom: clamp(48px, 5.5vw, 88px); padding-top: 20px; border-top: 1px solid var(--line);
}
.sec-label { grid-column: 1 / 4; display: flex; align-items: center; gap: 10px; padding-top: 0.5em; font: 600 14px / 1.3 var(--sans); color: var(--text); }
.sec-label::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, rgb(var(--c-blue)), rgb(var(--c-green))); }
.sec-title { grid-column: 4 / -1; max-width: 18ch; }
.sec-lead { grid-column: 4 / 11; max-width: 52ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; color: var(--text-2); }
@media (max-width: 860px) {
  .sec-label, .sec-title, .sec-lead { grid-column: 1 / -1; }
  .sec-label { padding-top: 0; }
}

/* ------------------------------------------------- «Кейсы»: projects --- */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 4.4vw, 64px) clamp(24px, 3vw, 48px); margin: 0; padding: 0; list-style: none; }
.project-link { display: flex; flex-direction: column; gap: 24px; border-radius: 18px; color: inherit; }
/* the desktop screen, and the phone standing at its corner */
.project-shot { position: relative; margin: 0; padding: 0 clamp(14px, 1.6vw, 24px) clamp(26px, 3vw, 40px) 0; }
.project-desk {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top;
  border-radius: 14px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--rule), 0 28px 60px -30px rgb(0 0 0 / 0.45);
}
.project-phone {
  position: absolute; right: 0; bottom: 0; width: 21%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; object-position: top;
  border: 4px solid var(--ink); border-radius: 18px; background: #fff; box-shadow: 0 20px 44px -14px rgb(0 0 0 / 0.5);
}
.project-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 8px 20px; }
.project-meta h3 { font: 400 clamp(26px, 2.4vw, 38px) / 1.08 var(--serif); letter-spacing: -0.012em; }
.project-url { grid-column: 2; grid-row: 1; font: 600 14px / 1 var(--sans); white-space: nowrap; text-decoration: underline 1px var(--rule); text-underline-offset: 5px; }
.project-kind { grid-column: 1 / -1; font-size: 16px; color: var(--text-2); }
.project-tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.project-tags li { padding: 8px 13px; border-radius: 999px; font: 500 13px / 1 var(--sans); background: rgb(255 255 255 / 0.6); box-shadow: inset 0 0 0 1px var(--rule); }
@media (hover: hover) {
  .project-link:hover .project-url { text-decoration-color: currentColor; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .project-desk, .project-phone { transition: transform 0.7s var(--ease); }
  .project-link:hover .project-desk { transform: translateY(-4px); }
  .project-link:hover .project-phone { transform: translate(-6px, -12px); }
}
@media (max-width: 860px) { .projects { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------- «Услуги»: eight cards --- */
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); margin: 0; padding: 0; list-style: none; }
.svc { --lg-r: 20px; display: flex; flex-direction: column; gap: 10px; min-height: 172px; padding: 24px 24px 26px; }
.svc h3 { font: 600 clamp(17px, 1.35vw, 20px) / 1.3 var(--sans); letter-spacing: -0.01em; }
.svc p { font-size: 15px; line-height: 1.5; color: var(--text-2); }
@media (max-width: 1180px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: minmax(0, 1fr); } .svc { min-height: 0; } }

/* ------------------------------------------- «Цены»: three packages --- */
.pkg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); margin: 0; padding: 0; list-style: none; }
.pkg-card { --lg-r: 24px; display: flex; flex-direction: column; padding: 22px 28px 30px; }
/* the box the card's sphere of dots fills (world.js, data-world-orb); the
   card's top padding keeps the sphere off the glass rim, which bends it */
.pkg-orb { height: clamp(150px, 14vw, 200px); }
.pkg-card h3 { font: 600 20px / 1.3 var(--sans); letter-spacing: -0.01em; }
.pkg-sum { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.pkg-cost { margin-top: 24px; font: 400 clamp(36px, 3.4vw, 52px) / 1 var(--serif); letter-spacing: -0.01em; }
.pkg-cost .dram { display: inline-block; width: auto; height: 0.7em; margin-left: 0.14em; vertical-align: baseline; }
.pkg-more { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: clamp(28px, 3vw, 44px); }
.pkg-more p { font-size: 14px; color: var(--text-2); }
@media (max-width: 860px) { .pkg-cards { grid-template-columns: minmax(0, 1fr); } .pkg-orb { height: 120px; } }

/* -------------------------------------------- «Процесс»: five cards --- */
[data-page="home"] .rail-n { margin-bottom: 14px; font: 400 clamp(32px, 3vw, 44px) / 1 var(--serif); letter-spacing: -0.01em; color: var(--text-3); }
[data-page="home"] .rail-body p:not(.rail-term) { color: var(--text-2); }
[data-page="home"] .rail-term { margin-top: 14px; }
/* below 1180 px five columns are too narrow: the rail runs down, as on phones */
@media (max-width: 1180px) and (min-width: 761px) {
  [data-page="home"] .rail { grid-auto-flow: row; grid-template-columns: 11px minmax(0, 1fr); grid-template-rows: none; column-gap: 22px; row-gap: 20px; }
  [data-page="home"] .rail::before { grid-row: auto; grid-column: 1 / 2; top: 0; bottom: 0; left: 5px; right: auto; width: 1px; height: auto; transform-origin: top; }
  [data-page="home"] .rail-step { grid-row: auto; grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: subgrid; }
  [data-page="home"] .rail-dot { grid-column: 1; grid-row: 1; align-self: start; margin-top: 4px; }
  [data-page="home"] .rail-head { grid-column: 2; grid-row: 1; padding-bottom: 10px; }
  [data-page="home"] .rail-body { grid-column: 2; padding-top: 0; }
}

/* ------------------------------------------- «О студии», «Вопросы» --- */
[data-page="home"] .studio .statement { margin: 0 auto clamp(56px, 7vw, 104px); }
[data-page="home"] .faq-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
[data-page="home"] .faq-body .sec-head { grid-column: 1 / -1; }
[data-page="home"] .faq-list { grid-column: 4 / -1; }
@media (max-width: 860px) { [data-page="home"] .faq-list { grid-column: 1 / -1; margin-top: 0; } }
[data-page="home"] .contact-intro .sec-label { margin-bottom: 22px; }

/* --------------------------------------- «О студии», the second take --- */
/* The terms as four points beside the dots' sculpture (its own box, no text
   over it); every column on the chapter's grid. */
.studio-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.studio-points { grid-column: 4 / 9; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 36px); margin: 0; padding: 0; list-style: none; }
.studio-points li { padding-top: 18px; border-top: 1px solid var(--line-strong); }
.studio-points h3 { display: flex; align-items: center; gap: 10px; font: 600 clamp(17px, 1.35vw, 20px) / 1.3 var(--sans); letter-spacing: -0.01em; }
.studio-points h3::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, rgb(var(--c-blue)), rgb(var(--c-green))); }
.studio-points p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
/* the knot of dots (world.js) fills this box */
.studio-knot { grid-column: 9 / -1; aspect-ratio: 1; }
@media (max-width: 1180px) {
  .studio-points { grid-column: 1 / 9; }
}
@media (max-width: 760px) {
  .studio-points { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); }
  .studio-knot { grid-column: 1 / -1; grid-row: 1; width: 70%; margin: 0 auto 24px; }
}


/* --------------------------------------- the short home (2026-11-16) --- */
/* «Что мы делаем» as one switch (vovi.studio): two words, the chosen one
   lit; one glass panel with its list; beside it the dots draw a browser or a
   phone (world.js, in .what-art) */
.what-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: clamp(20px, 2.4vw, 36px); align-items: stretch; }
.what-tabs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 clamp(24px, 3.4vw, 64px); }
.what-tab {
  padding: 0; border: 0; background: none; color: var(--text); cursor: pointer;
  font: italic 800 clamp(56px, 8.4vw, 136px) / 0.95 var(--brand); letter-spacing: var(--ls-display); opacity: 0.2;
}
.what-tab[aria-selected="true"] { opacity: 1; }
.what-tab:not([aria-selected="true"]):hover { opacity: 0.5; }
.what-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; border-radius: 14px; }
.what-panes { --lg-r: 28px; grid-column: 1 / 8; padding: clamp(24px, 2.8vw, 44px); }
.what-art { grid-column: 8 / -1; min-height: clamp(260px, 25vw, 400px); }
.what-lead { max-width: 40ch; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.5; }
.what-list { margin: clamp(18px, 2vw, 28px) 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.what-list :is(a, li > span) { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 16px 2px; border-bottom: 1px solid var(--line); font: 600 clamp(16px, 1.35vw, 20px) / 1.3 var(--sans); }
.what-from { flex: none; font: 400 clamp(18px, 1.55vw, 23px) / 1.2 var(--serif); color: var(--text-2); white-space: nowrap; }
.what-from .dram { display: inline-block; width: auto; height: 0.72em; margin-left: 0.14em; }
.what-list a:hover .what-from { color: var(--text); }
.what-links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; }
.what-links a { font: 600 15px / 1.4 var(--sans); text-decoration: underline 1px var(--line-strong); text-underline-offset: 6px; }
.what-links a:hover { text-decoration-color: currentColor; }
.what-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.what-chips span { padding: 8px 14px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-strong); font: 500 14px / 1 var(--sans); color: var(--text-2); }
@keyframes what-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: no-preference) {
  .what-tab { transition: opacity 0.4s cubic-bezier(0.645, 0.045, 0.355, 1); }
  .what-pane:not([hidden]) > * { animation: what-in 0.6s var(--ease) both; }
  .what-pane:not([hidden]) > :nth-child(2) { animation-delay: 0.05s; }
  .what-pane:not([hidden]) > :nth-child(3) { animation-delay: 0.1s; }
  .what-pane:not([hidden]) > :nth-child(4) { animation-delay: 0.15s; }
}
@media (max-width: 860px) {
  .what-panes, .what-art { grid-column: 1 / -1; }
  .what-art { order: 1; min-height: 240px; }
  .what-panes { order: 2; }
}

/* «Контакты» as the headline: the address large, the messengers as pills, a
   live line; the form beside them, always open */
[data-page="home"] .contact-ways .contact-mail { font-size: clamp(32px, 3.8vw, 58px); }
.contact-ways .contact-msg { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.contact-ways .contact-msg .btn { text-decoration: none; }
.contact-live { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font-size: 14px; color: var(--text-2); }
.contact-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.contact-live.is-open .contact-dot { background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .contact-live.is-open .contact-dot { animation: live-pulse 2s var(--soft) infinite; }
}
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgb(79 201 138 / 0.5); } 70%, 100% { box-shadow: 0 0 0 9px rgb(79 201 138 / 0); } }

/* «Как мы работаем»: the four promises under the rail, a row of short lines,
   each behind the ramp's dot */
.how-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px clamp(16px, 2vw, 32px); margin: clamp(28px, 3vw, 44px) 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; }
.how-facts li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--text-2); }
.how-facts li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 0.45em; border-radius: 50%; background: linear-gradient(135deg, rgb(var(--c-blue)), rgb(var(--c-green))); }
@media (max-width: 1180px) { .how-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .how-facts { grid-template-columns: minmax(0, 1fr); } }

/* without the world nothing draws in the art box: the panel takes its room */
:root:not(.gl) .what-art { display: none; }
:root:not(.gl) .what-panes { grid-column: 1 / 9; }
@media (max-width: 860px) { :root:not(.gl) .what-panes { grid-column: 1 / -1; } }
/* touch targets on a phone (see base.css) */
@media (max-width: 760px) {
  .what-links a, .contact-ways a { display: inline-flex; align-items: center; min-height: 44px; }
}
