/* ==========================================================================
   Chantecler v2 — light edition
   Vanilla CSS. No framework, no build step.
   Layers: fonts / tokens / base / utilities / controls / chrome / sections / motion / responsive
   ========================================================================== */

/* ---------- fonts (self-hosted, cyrillic + latin subsets) ---------- */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/manrope-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/manrope-normal-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;
}

/* IBM Plex Sans — running text. Engineered grotesque: straight terminals, squared curves. */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-sans-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-sans-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;
}

/* ---------- tokens ---------- */

:root {
  /* warm paper with cool, dark graphite accents */
  --paper:      #f4f2ed;
  --paper-2:    #ece9e1;
  --paper-3:    #e3dfd5;
  --white:      #faf9f6;
  --ink:        #25282b;
  --ink-2:      #51565b;
  --ink-3:      #62666b;
  --graphite:   #24272a;
  --graphite-2: #303438;
  --accent:     #b08d57;   /* decorative gold: rules, dots, rings — never small text */
  --accent-2:   #7f6339;   /* text-safe gold: 5.0:1 on paper */
  --flame:      #c2481e;   /* red-orange: the brand word inside the hero dial */

  /* цвета с тарелки — ими покрашены уровни чертежа в герое */
  --mech-green: #7d9c58;   /* горошек и зелень */
  --mech-amber: #c2762f;   /* обжарка гребешка, тюиль */
  --mech-plum:  #6d6a8a;   /* цветы и икра */
  --ok:         #4f6b4a;
  --err:        #9c3a2c;

  --line:      rgb(26 25 23 / .20);
  --line-soft: rgb(26 25 23 / .10);
  --line-hair: rgb(26 25 23 / .06);

  --f-display: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --f-sans: 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --r: 2px;
  --r-round: 999px;

  --wrap: 1360px;
  --gut: clamp(20px, 3.4vw, 48px);
  --head-h: 78px;

  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --t-fast: 180ms;
  --t-ui: 300ms;
  --t-reveal: 820ms;

  --z-head: 60;
  --z-menu: 80;
  --z-modal: 100;

  color-scheme: only light;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--head-h);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; margin: 0; }

button { background: none; border: 0; cursor: pointer; }

em, i { font-style: normal; }

[hidden] { display: none !important; }

h1, h2, h3, p, ul, ol, dl, dd, blockquote, figure { margin: 0; padding: 0; }

ul, ol { list-style: none; }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

::selection { background: var(--accent); color: var(--white); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform var(--t-ui) var(--ease);
}

.skip:focus-visible { transform: none; }

/* ---------- utilities ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.display {
  font-family: var(--f-display);
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.045em;
  line-height: 1.12;
  text-wrap: pretty;
}

.label {
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(18px, 2.2vw, 26px);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.kicker::before { content: ''; width: 28px; height: 1px; background: var(--accent); flex: 0 0 auto; }

.kicker em { font-style: normal; color: var(--ink); }

.ico { width: 1em; height: 1em; fill: currentColor; flex: 0 0 auto; pointer-events: none; }

.lede {
  font-size: clamp(15.5px, 1.15vw, 17.5px);
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 34em;
}

.set__title, .cnt__title { margin-bottom: clamp(18px, 2.2vw, 26px); }

/* ---------- controls: buttons ---------- */

.btn {
  --btn-h: 54px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: var(--btn-h);
  padding: 0 28px;
  border-radius: var(--r-round);
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  transition: background-color var(--t-ui) var(--ease),
              color var(--t-ui) var(--ease),
              border-color var(--t-ui) var(--ease),
              transform var(--t-fast) var(--ease);
}

.btn .ico { font-size: 16px; }

.btn__arrow { font-size: 16px; line-height: 1; transition: transform var(--t-ui) var(--ease); }

.btn:hover .btn__arrow { transform: translateX(4px); }

.btn:active { transform: translateY(1px); }

.btn--sm { --btn-h: 44px; padding: 0 20px; font-size: 10px; gap: 10px; }

.btn--block { width: 100%; }

.btn--solid { background: var(--ink); color: var(--white); border-color: var(--ink); }

.btn--solid:hover { background: #41474c; border-color: #41474c; }

.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }

.btn--ghost:hover { border-color: var(--ink); }

.rbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--r-round);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 16px;
  transition: background-color var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease), color var(--t-ui) var(--ease);
}

.rbtn:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* кнопка-надпись для сервисов без значка в наборе (MAX): своего логотипа не рисуем */
.rbtn--text { font-family: var(--f-display); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color var(--t-ui) var(--ease), color var(--t-ui) var(--ease);
}

.link:hover { border-color: var(--ink); }

.link--quiet { font-weight: 500; color: var(--ink-3); border-color: transparent; min-height: 44px; }

.link--quiet:hover { color: var(--ink); border-color: var(--line); }

/* ==========================================================================
   HEADER
   ========================================================================== */

.scroll-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }

.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-head);
  height: var(--head-h);
  color: var(--ink);
  transition: background-color var(--t-ui) var(--ease), box-shadow var(--t-ui) var(--ease);
}

.site-head__inner {
  width: 100%;
  max-width: var(--wrap);
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--gut);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
}

.site-head.is-stuck {
  background: rgb(244 242 237 / .86);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  box-shadow: 0 1px 0 var(--line-soft);
}

@supports not (backdrop-filter: blur(2px)) {
  .site-head.is-stuck { background: rgb(244 242 237 / .97); }
}

.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: inherit; }

.brand__mark {
  width: 34px; height: 34px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linejoin: round;
  stroke-linecap: round;
  overflow: visible;
}

.brand__mark .brand__fork { fill: currentColor; stroke: none; }

.brand__text { display: block; }

.brand__word {
  display: block;
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  line-height: 1.2;
}

.brand__tag {
  display: block;
  margin-top: 4px;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: opacity var(--t-ui) var(--ease), visibility var(--t-ui);
}

.site-head.is-stuck .brand__tag { opacity: 0; visibility: hidden; }

.nav__list { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 1.35vw, 22px); }

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 2px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-2);
  transition: color var(--t-ui) var(--ease);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-ui) var(--ease);
}

.nav__link:hover, .nav__link.is-active { color: var(--ink); }

.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.site-head__aside { display: flex; align-items: center; justify-content: flex-end; gap: clamp(10px, 1.4vw, 20px); }

.site-head__cta { flex: 0 0 auto; }

.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  color: inherit;
  font-size: 24px;
}

/* ---------- overlay menu ---------- */

.omenu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0 var(--gut) 36px;
  background: var(--paper);
  color: var(--ink);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.omenu[hidden] { display: none; }

.omenu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--head-h);
  max-width: var(--wrap);
  width: 100%;
  margin-inline: auto;
}

.omenu__nav { width: 100%; max-width: var(--wrap); margin-inline: auto; align-self: center; padding: 24px 0; }

.omenu__list { display: grid; }

.omenu__list a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
}

.omenu__list li:last-child a { border-bottom: 1px solid var(--line-soft); }

.omenu__num { font-size: 10px; letter-spacing: .2em; color: var(--ink-3); width: 2.4em; }

.omenu__name {
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.012em;
  transition: transform var(--t-ui) var(--ease);
}

.omenu__list a:hover .omenu__name { transform: translateX(10px); }

.omenu__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 36px;
  max-width: var(--wrap);
  width: 100%;
  margin-inline: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

.omenu__contact { font-size: 14px; border-bottom: 1px solid var(--line); padding-bottom: 2px; }

.omenu__addr { font-size: 12px; line-height: 1.7; color: var(--ink-3); margin-left: auto; }

/* ==========================================================================
   00 · HERO — the plate as a mechanism
   Seven compositor-only rotating layers (SVG), a static drafting layer,
   and a real top-down plate photo turning in the centre.
   ========================================================================== */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  min-height: min(920px, 100svh);
  padding: calc(var(--head-h) + 52px) max(var(--gut), calc((100% - var(--wrap)) / 2 + var(--gut))) 112px;
  overflow: hidden;
  background: radial-gradient(ellipse 65% 75% at 78% 45%, #faf8f3 0%, var(--paper) 80%);
}

.hero__mech {
  --tilt: 0deg;
  position: relative;
  width: min(100%, 700px);
  height: auto;
  aspect-ratio: 1;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  min-width: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__tilt {
  position: absolute;
  inset: 0;
  transform: rotate(var(--tilt));
  transition: transform 1.6s var(--ease);
}

.hero__mech .layer {
  position: absolute;
  inset: 0;
  will-change: transform;
  animation: spin var(--d, 120s) linear infinite;
}

.hero__mech .layer.ccw { animation-direction: reverse; }

/* Обороты ускорены примерно в полтора-два раза против первой версии: на прежних
   80–180 с разнонаправленность соседних колец просто не успевала прочитаться.
   lg остаётся 90 с — это период вращения самой тарелки. */
.hero__mech .la { --d: 96s; }
.hero__mech .lb { --d: 76s; }
.hero__mech .lc { --d: 52s; }
.hero__mech .ld { --d: 80s; }
.hero__mech .le { --d: 84s; }
.hero__mech .lf { --d: 62s; }
.hero__mech .lg { --d: 90s; }

.hero__mech .layer > svg,
.hero__mech .static {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* satellites: orbit with layer A, spin on their own axis */
.hero__mech .sat { position: absolute; width: 6.6%; aspect-ratio: 1 / 1; transform: translate(-50%, -50%); }

.hero__mech .sat svg { display: block; width: 100%; height: 100%; overflow: visible; will-change: transform; animation: spin 24s linear infinite reverse; }

.hero__mech .sat-1 { left: 50%; top: 3%; }
.hero__mech .sat-2 { left: 90.7%; top: 73.5%; }
.hero__mech .sat-3 { left: 9.3%; top: 73.5%; }

/* line vocabulary */
.hero__mech .l { fill: none; stroke: var(--ink); vector-effect: non-scaling-stroke; stroke-linecap: butt; stroke-linejoin: miter; }
.hero__mech .w6 { stroke-width: .6; }
.hero__mech .w7 { stroke-width: .7; }
.hero__mech .w8 { stroke-width: .8; }
.hero__mech .w12 { stroke-width: 1.2; }
.hero__mech .w13 { stroke-width: 1.35; }
.hero__mech .o5 { stroke-opacity: .55; }
.hero__mech .o6 { stroke-opacity: .62; }
.hero__mech .o7 { stroke-opacity: .72; }
.hero__mech .o8 { stroke-opacity: .84; }
.hero__mech .gold { stroke: var(--accent); stroke-opacity: .95; }

/* Каждый уровень чертежа взят в свой цвет с тарелки. Соседние кольца крутятся
   в разные стороны, и теперь это видно: цвет держит уровень как целое. */
.hero__mech .la .l,
.hero__mech .la .tk,
.hero__mech .la polygon { stroke: var(--mech-green); }

.hero__mech .lc .l,
.hero__mech .lc .tk,
.hero__mech .lc polygon,
.hero__mech .lc path { stroke: var(--mech-amber); }
.hero__mech .lc .num { fill: var(--mech-amber); fill-opacity: .8; }

.hero__mech .ld .l,
.hero__mech .ld polygon { stroke: var(--mech-plum); }
.hero__mech .ld .dot { fill: var(--mech-plum); }
.hero__mech .ld .lab { fill: var(--mech-plum); }
.hero__mech .tk, .hero__mech .dash { fill: none; stroke: var(--ink); }
.hero__mech .paper { fill: var(--paper); stroke: none; }
.hero__mech .dot { fill: var(--ink); stroke: none; }
.hero__mech .dotg { fill: var(--accent); stroke: none; }
.hero__mech .arc { font-family: var(--f-sans); fill: var(--ink); fill-opacity: .8; text-transform: uppercase; }
.hero__mech .arc1 { font-size: 13px; letter-spacing: 1.6px; }
.hero__mech .arc2 { font-size: 10.5px; letter-spacing: 1px; fill-opacity: .62; }
.hero__mech .arc__brand { fill: var(--flame); fill-opacity: 1; }
.hero__mech .num { font-family: var(--f-sans); font-size: 8.5px; letter-spacing: .3px; fill: var(--ink); fill-opacity: .62; }
.hero__mech .lab { font-family: var(--f-sans); font-size: 9.5px; letter-spacing: .6px; fill: var(--ink-2); }

/* the dish */
.hero__dish-wrap {
  position: absolute;
  left: 30%; top: 30%;
  width: 40%; height: 40%;
  transform: rotate(var(--tilt));
  transition: transform 1.6s var(--ease);
}

.hero__dish-wrap::before {
  content: '';
  position: absolute;
  inset: 6% 4% 0 4%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 56%, rgb(26 25 23 / .16), rgb(26 25 23 / .06) 55%, rgb(26 25 23 / 0) 72%);
}

.hero__dish-wrap picture { position: absolute; inset: 0; display: block; }

.hero__dish {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  will-change: transform;
  animation: spin 90s linear infinite;
}

.hero__dish-wrap.is-missing picture { visibility: hidden; }

.hero__dish-fallback {
  display: none;
  position: absolute;
  inset: 2.5%;
  border-radius: 50%;
  background: radial-gradient(circle at 44% 40%, #fbf9f4 0%, #f1ece1 58%, #e5ded0 100%);
  box-shadow: inset 0 0 0 1px rgb(26 25 23 / .16), inset 0 0 0 9px rgb(244 242 237 / .9), inset 0 0 0 10px rgb(26 25 23 / .14);
  will-change: transform;
  animation: spin 90s linear infinite;
}

.hero__dish-fallback::after { content: ''; position: absolute; inset: 22%; border-radius: 50%; border: 1px dashed rgb(26 25 23 / .22); }

.hero__dish-wrap.is-missing .hero__dish-fallback { display: block; }

/* callout labels (HTML, positions mirror the SVG leaders: viewBox/10 = %) */
.hero__mech .co {
  position: absolute;
  z-index: 2;
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--paper);
  padding: 3px 5px;
  white-space: nowrap;
  transform: translateY(calc(-100% - 1px));
}

.hero__mech .co-1 { left: 2.6%; top: 28.9%; }
.hero__mech .co-2 { right: 12.2%; top: 23.5%; }
.hero__mech .co-3 { right: 17.4%; top: 69.5%; }
.hero__mech .co-4 { right: 7.4%; top: 40.2%; }

/* animations run only while the hero is on screen */
.js [data-animate]:not(.is-visible) .layer,
.js [data-animate]:not(.is-visible) .sat svg,
.js [data-animate]:not(.is-visible) .hero__dish,
.js [data-animate]:not(.is-visible) .hero__dish-fallback { animation-play-state: paused; }

/* user-chosen "stop animation" (WCAG 2.2.2): everything pauses except the form spinner */
html.is-still *, html.is-still *::before, html.is-still *::after { animation-play-state: paused !important; }
/* лайтбокс галереи открыт: страница под ним стоит, чтобы не отнимать ресурсы у видео */
html.is-lb-open *, html.is-lb-open *::before, html.is-lb-open *::after { animation-play-state: paused !important; }
html.is-still .form__submit[data-busy='true'] .spinner { animation-play-state: running !important; }

.motion-toggle { flex-basis: 100%; min-height: 44px; font-size: 10px; letter-spacing: .12em; }

/* copy */
.hero__copy {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  max-width: 640px;
  z-index: 5;
}

/* бренд над заголовком: «Chantecler Catering · Шантеклер Кейтеринг» (заказчик 17.10 — «побольше названия») */
/* строка — часть H1 (бренд и слово «кейтеринг» в главном заголовке), но выглядит как подпись над ним */
.hero__brand { display: block; margin-bottom: 20px; font-family: var(--f-sans); color: var(--accent-2); }

/* «Архитектура вкуса» — самый крупный текст экрана (правка заказчика 23.09),
   «Идеальных условий не существует» и лид под ним — средним размером */
.hero__title {
  font-size: clamp(52px, 7vw, 104px);
  line-height: .98;
  letter-spacing: -.05em;
  margin-bottom: 28px;
  overflow-wrap: normal;
}

.hero__sub {
  font-size: clamp(24px, 2.25vw, 34px);
  line-height: 1.15;
  letter-spacing: -.04em;
  margin-bottom: 12px;
}

.hero__lede {
  font-family: var(--f-sans);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(19px, 1.65vw, 24px);
  line-height: 1.45;
  letter-spacing: -.025em;
  color: var(--ink);
  max-width: 26em;
  margin-bottom: 18px;
}

.hero__meta { font-size: 16px; line-height: 1.7; color: var(--ink-2); max-width: 31em; }

.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 28px; }

/* drawing title block, bottom-right */
.hero__sheet {
  position: absolute;
  right: max(var(--gut), calc((100% - var(--wrap)) / 2 + var(--gut)));
  bottom: 28px;
  z-index: 5;
  display: grid;
  border: 1px solid var(--line);
  background: rgb(244 242 237 / .9);
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hero__sheet > div { display: grid; grid-template-columns: 72px minmax(140px, auto); border-top: 1px solid var(--line-soft); }

.hero__sheet > div:first-child { border-top: 0; }

.hero__sheet dt, .hero__sheet dd { padding: 8px 12px; line-height: 1.4; }

.hero__sheet dt { border-right: 1px solid var(--line-soft); }

.hero__sheet dd { color: var(--ink); }

/* scroll hint */
.hero__hint {
  position: absolute;
  left: max(var(--gut), calc((100% - var(--wrap)) / 2 + var(--gut)));
  bottom: 24px;
  z-index: 5;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 0;
  color: var(--ink-3);
  font-size: 10px;
  line-height: 1;
  letter-spacing: .22em;
  text-transform: uppercase;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, var(--paper) 35%, rgb(244 242 237 / 0) 100%);
}

.hero__hint i { display: block; width: 1px; height: 24px; margin-left: 8px; background: var(--ink-3); opacity: .6; transform-origin: top; animation: hint 2.6s ease-in-out infinite; }

@keyframes hint { 0%, 100% { transform: scaleY(1); opacity: .6; } 50% { transform: scaleY(.5); opacity: .28; } }

@media (max-width: 1180px) {
  .hero__sheet { display: none; }
}

/* The entire message stays in normal document flow on phones and tablets. */
@media (max-width: 1024px) {
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 24px; padding: calc(var(--head-h) + 34px) var(--gut) 28px; min-height: 0; }
  .hero__copy { order: 1; max-width: 720px; width: 100%; margin-inline: auto; }
  .hero__title { font-size: clamp(56px, 10.5vw, 96px); margin-bottom: 22px; }
  .hero__sub { font-size: clamp(24px, 3.6vw, 32px); }
  .hero__lede { font-size: clamp(19px, 2.8vw, 23px); margin-bottom: 16px; }
  .hero__meta { max-width: 39em; }
  .hero__mech { order: 2; width: min(100%, 660px); margin: 0 auto; }
  .hero__sheet { display: none; }
  .hero__mech .co { font-size: clamp(7px, 1.2vw, 9px); letter-spacing: .13em; }
  .hero__mech .co-1, .hero__mech .ld-1 { display: none; }
  .hero__hint { position: relative; order: 3; left: auto; bottom: auto; align-self: center; margin-top: -12px; }
}

/* ==========================================================================
   FACTS STRIP
   ========================================================================== */

.facts { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--paper); }

.facts__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.facts__cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(22px, 2.6vw, 34px) clamp(16px, 2.4vw, 36px);
  border-left: 1px solid var(--line-soft);
}

.facts__cell:first-child { border-left: 0; padding-left: 0; }

.facts__num {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}

.facts__cap { font-size: 12px; line-height: 1.5; color: var(--ink-3); }

/* ==========================================================================
   01 · СЕТ-КОНСТРУКТОР
   ========================================================================== */

.set { padding-block: clamp(72px, 9vw, 136px); background: var(--paper); }

.set__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}

.set__title { font-size: clamp(2.1rem, 3.3vw, 3rem); max-width: none; }

.set__inside { margin-top: clamp(30px, 3.6vw, 48px); }

.set__inside-title { margin-bottom: 14px; }

.inside {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(18px, 2.4vw, 36px);
  border-top: 1px solid var(--line-soft);
}

.inside li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}

.inside li i { font-style: normal; font-size: 10px; letter-spacing: .12em; color: var(--accent-2); font-variant-numeric: tabular-nums; }

/* адресат раздела — строка между надзаголовком и заголовком */
.set__addressee {
  margin-bottom: 10px;
  font-family: var(--f-display);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.3;
  color: var(--ink-3);
}

.set__figure { position: sticky; top: calc(var(--head-h) + 24px); }

.set__figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-2);
}

.set__figcap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink-3);
}

.set__figcap b { font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: clamp(28px, 3.4vw, 44px);
  border-top: 1px solid var(--line);
}

.step { display: flex; flex-direction: column; gap: 12px; }

.step__num {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 3.6vw, 3.4rem);
  line-height: 1;
  color: var(--accent-2);
}

.step__title { font-family: var(--f-display); font-size: clamp(1.2rem, 1.55vw, 1.5rem); line-height: 1.25; }

.step__text { font-size: 14px; line-height: 1.7; color: var(--ink-2); max-width: 26em; }

.set__order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px clamp(32px, 5vw, 88px);
  align-items: start;
  margin-top: clamp(44px, 5vw, 72px);
  scroll-margin-top: calc(var(--head-h) + 24px);
}

/* фото переговорной стоит рядом с формой заявки — раньше на его месте был текст */
.set__order-media { align-self: stretch; container-type: inline-size; }

/* Фото тянется на высоту формы, но не уже 1,05 : 1 — иначе крышка коробки
   уходит за кадр. Коробка на снимке занимает левые ~70 % (x 92–912 из 1280),
   поэтому обрезка идёт со стороны блокнота, а не поровну с обеих сторон. */
.set__order-media img {
  width: 100%;
  height: 100%;
  max-height: 95cqw;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 15% 50%;
  background: var(--paper-2);
}

/* ==========================================================================
   02 · КЕЙСЫ   ·   05 · ГАЛЕРЕЯ
   ========================================================================== */

.cases, .gal { padding-block: clamp(72px, 9vw, 136px); background: var(--paper-2); border-top: 1px solid var(--line-soft); }

/* версия без раздела сета (build-bez-seta.ps1): кейсы идут сразу за цифрами, линия у цифр уже есть */
.facts + .cases { border-top: 0; }

.cases__head, .gal__head { margin-bottom: clamp(28px, 4vw, 48px); }

.cases__head .display, .gal__head .display { font-size: clamp(2rem, 4.2vw, 4rem); }

.cases__feature {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.cases__photos { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px; }

.cases__photo { min-width: 0; }

.cases__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-3); }

/* Снимок заказчика 2 : 3 (IMG_7362); в широкой рамке 5 : 4 (≤960px) остаётся меньше
   половины высоты — кадр держит руки с тарелкой и щипцами и первый ряд вафель */
.cases__photo--lead img { object-position: 50% 45%; }

.cases__photo figcaption { margin-top: 10px; font-size: 11px; line-height: 1.5; letter-spacing: .03em; color: var(--ink-3); }

.cases__facts { display: grid; min-width: 0; }

.cases__facts > div { padding: 22px 0; border-top: 1px solid var(--line); }

.cases__facts > div:last-child { border-bottom: 1px solid var(--line); }

.cases__facts dt { margin-bottom: 8px; color: var(--ink-3); text-transform: uppercase; font-size: 10px; font-weight: 600; letter-spacing: .18em; }

.cases__facts dd { font-family: var(--f-display); font-size: clamp(19px, 1.8vw, 26px); font-weight: 500; line-height: 1.45; letter-spacing: -.025em; }

.cases__facts > div:last-child dd { color: var(--ink); }

.nobr { white-space: nowrap; }

/* form card */
.card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: 0 18px 60px rgb(26 25 23 / .06);
}

.card__title { font-family: var(--f-display); font-size: clamp(1.4rem, 1.9vw, 1.8rem); line-height: 1.25; margin-bottom: 22px; }

.mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 8px;
}

.mosaic > li { min-width: 0; }

.mosaic > li.is-wide { grid-column: span 2; }

.gitem {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-3);
  text-align: left;
  color: var(--white);
}

.is-wide .gitem { aspect-ratio: 8 / 3; }

.gitem img, .gitem video { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); transition: transform 900ms var(--ease); }

.gitem:hover img, .gitem:hover video { transform: scale(1.04); }

.gitem__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 16px 14px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: linear-gradient(0deg, rgb(26 25 23 / .55), rgb(26 25 23 / 0));
  opacity: 0;
  transition: opacity var(--t-ui) var(--ease);
}

.gitem:hover .gitem__cap, .gitem:focus-visible .gitem__cap { opacity: 1; }

.gitem__play {
  position: absolute;
  top: 14px; left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgb(244 242 237 / .9);
}

.gitem__play .ico { font-size: 12px; }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgb(244 242 237 / .96);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 16px var(--gut);
}

.lightbox[hidden] { display: none; }

.lightbox__bar { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }

.lightbox__count { font-size: 11px; letter-spacing: .18em; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.lightbox__stage { display: grid; place-items: center; min-height: 0; padding: 12px 0; }

.lightbox__media { max-width: min(1200px, 100%); max-height: 100%; display: grid; place-items: center; }

.lightbox__media img, .lightbox__media video {
  max-width: 100%;
  max-height: calc(100vh - 170px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 30px 80px rgb(26 25 23 / .18);
  background: var(--paper-3);
}

.lightbox__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; }

.lightbox__cap { font-size: 13px; color: var(--ink-2); }

.lightbox__nav { display: flex; gap: 8px; }

/* ==========================================================================
   03 · КОГДА СЛОМАЛСЯ ЦИРКУЛЬ
   Native details keep every story accessible without scripting.
   ========================================================================== */

.contingencies {
  padding-block: clamp(64px, 8vw, 120px);
  background: var(--graphite);
  color: var(--white);
}

.contingencies__head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0 clamp(32px, 6vw, 96px); margin-bottom: clamp(36px, 5vw, 64px); }

.contingencies__head .kicker { grid-column: 1 / -1; color: #b8bfc3; }

.contingencies__head .kicker em { color: var(--white); }

.contingencies__head .display { font-size: clamp(2rem, 4.2vw, 4rem); max-width: 11em; }

.contingencies__head > p:not(.kicker) { align-self: end; max-width: 30em; color: #c3c8cb; font-size: 16px; line-height: 1.7; }

.contingencies__list { border-bottom: 1px solid rgb(255 255 255 / .19); }

.incident { border-top: 1px solid rgb(255 255 255 / .19); }

.incident__summary { display: grid; grid-template-columns: 56px minmax(0, 1fr) 44px; align-items: center; gap: 24px; min-height: 124px; padding: 26px 0; list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }

.incident__summary::-webkit-details-marker { display: none; }

.incident__summary::marker { content: ''; }

.incident__icon { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid rgb(255 255 255 / .24); border-radius: 50%; color: #d4bc93; }

.incident__icon svg { display: block; width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.incident__heading { min-width: 0; }

.incident__number { display: block; margin-bottom: 6px; color: #aeb6bb; font-size: 10px; font-weight: 500; line-height: 1.6; letter-spacing: .17em; text-transform: uppercase; }

.incident__title { display: block; font-family: var(--f-display); font-size: clamp(20px, 2.3vw, 32px); font-weight: 500; line-height: 1.3; letter-spacing: -.025em; }

.incident__toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgb(255 255 255 / .25); border-radius: 50%; color: var(--white); font-size: 25px; font-weight: 300; line-height: 1; transition: transform var(--t-ui) var(--ease), background-color var(--t-ui) var(--ease); }

.incident[open] .incident__toggle { transform: rotate(45deg); background: rgb(255 255 255 / .08); }

.incident[open] .incident__title { color: #eedbbe; }

.incident__body { max-width: 1000px; margin-left: 80px; padding: 0 68px 34px 0; font-size: 16px; line-height: 1.8; color: #d2d6d8; }

.incident__story, .incident__resolution { margin-bottom: 20px; }

.incident__body strong { font-weight: 600; color: var(--white); }

.incident__conclusion { border-left: 2px solid #b99a6a; padding: 3px 0 3px 20px; color: #f0e5d5; font-weight: 500; }

.contingencies :focus-visible { outline-color: #e4c797; outline-offset: 5px; }

@media (hover: hover) {
  .incident__summary:hover .incident__toggle { background: rgb(255 255 255 / .11); }
  .incident__summary:hover .incident__title { color: #eedbbe; }
}

/* ==========================================================================
   04 · АРХИТЕКТУРА ПОЗИЦИИ — the rotating triangle
   ========================================================================== */

.arch { padding-block: clamp(72px, 9vw, 136px); background: var(--paper); border-top: 1px solid var(--line-soft); overflow: hidden; }

.arch__inner {
  display: grid;
  grid-template-columns: 42fr 58fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.arch__text { max-width: 520px; }

.arch__title { font-size: clamp(2.1rem, 3.6vw, 3.4rem); margin-bottom: clamp(20px, 2.4vw, 28px); }

.arch__p { margin-bottom: 18px; font-size: clamp(15.5px, 1.15vw, 17.5px); line-height: 1.66; color: var(--ink-2); }

.arch__p--lead { color: var(--ink); font-size: clamp(16.5px, 1.3vw, 19px); line-height: 1.6; }

.arch__cta { margin-top: 10px; }

.arch__figure { width: 100%; max-width: 640px; justify-self: center; }

.arch__sheet { position: relative; aspect-ratio: 1 / 1; width: 100%; }

.arch__sheet svg { display: block; width: 100%; height: 100%; overflow: visible; }

.corner { position: absolute; width: 18px; height: 18px; border: 1px solid var(--line); pointer-events: none; }
.corner.tl { top: -6px; left: -6px; border-right: 0; border-bottom: 0; }
.corner.tr { top: -6px; right: -6px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: -6px; left: -6px; border-right: 0; border-top: 0; }
.corner.br { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }

.sheet-note { position: absolute; right: 0; bottom: -2px; font-size: 9.5px; line-height: 1; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); pointer-events: none; }

.sheet-note--l { right: auto; left: 0; }

/* legend under the figure */
.spec { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-soft); }

.spec li { position: relative; padding: 16px 14px 0 0; color: var(--ink-3); transition: color .35s ease; cursor: default; }

.spec li + li { padding-left: 14px; border-left: 1px solid var(--line-soft); }

.spec b { display: flex; align-items: baseline; gap: 8px; font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; transition: color .35s ease; }

.spec b i { font-style: normal; font-size: 9px; letter-spacing: .12em; color: var(--accent-2); }

.spec span { display: block; font-size: 12.5px; line-height: 1.5; }

.spec li::before { content: ''; position: absolute; left: 0; top: -1px; width: 36px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s ease; }

.spec li + li::before { left: 14px; }

.spec li.is-active, .spec li:hover { color: var(--ink); }

.spec li.is-active b, .spec li:hover b { color: var(--accent-2); }

.spec li.is-active::before, .spec li:hover::before { transform: scaleX(1); }

/* SVG drawing */
.a-gd { fill: rgb(26 25 23 / .16); }
.a-ink { stroke: var(--ink); fill: none; vector-effect: non-scaling-stroke; }
.a-ln { stroke: var(--line); fill: none; vector-effect: non-scaling-stroke; stroke-width: .7; }
.a-ln-soft { stroke: var(--line-soft); fill: none; vector-effect: non-scaling-stroke; stroke-width: .7; }
.a-tk { stroke: var(--ink); stroke-opacity: .5; fill: none; }
.a-tri { stroke-width: 1.1; }
.a-dots circle { fill: var(--line); }
.a-t { font-family: var(--f-sans); fill: var(--ink-3); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.a-angle { font-size: 9.5px; letter-spacing: .06em; }
.a-cap { font-family: var(--f-display); font-size: 10.5px; letter-spacing: .24em; font-variant: small-caps; fill: var(--ink-2); }
.a-label text {
  font-family: var(--f-sans);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  fill: var(--ink);
  paint-order: stroke;
  stroke: var(--paper);
  stroke-width: 5px;
  stroke-linejoin: round;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), fill .3s ease;
}
.vertex { cursor: pointer; }
.vertex:hover .a-label text, .vertex.is-active .a-label text { transform: scale(1.22); fill: var(--accent-2); }
.vertex:hover .a-ring, .vertex.is-active .a-ring { stroke: var(--accent); opacity: 1; }
.a-ring { stroke: var(--line); fill: none; vector-effect: non-scaling-stroke; stroke-width: .7; stroke-dasharray: 2 3; transition: stroke .3s ease, opacity .3s ease; opacity: .9; }
.a-fallback { opacity: 0; transition: opacity .3s; }
.no-img image { display: none; }
.no-img .a-fallback { opacity: 1; }
.a-disc { fill: #efe9dc; }
.a-disc-ring { stroke: var(--line); fill: none; vector-effect: non-scaling-stroke; stroke-width: .8; }
.a-hex { stroke: var(--ink); fill: none; stroke-width: 1; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.a-hex-fork { fill: var(--ink); }
.a-paper { fill: var(--paper); opacity: .85; }
.a-trace { stroke: var(--accent); fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 934.31; }
.a-trail { stroke: var(--accent); fill: none; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 70 865.31; opacity: .45; }

/* motion: transform/opacity only (+ dashoffset for the tracing dot) */
.a-orbit, .a-upright, .a-breathe, .a-spin-rev, .a-dial { transform-box: fill-box; transform-origin: center; }
.a-orbit { animation: spin 48s linear infinite; }
.a-dial { animation: spin-rev 72s linear infinite; }
.a-upright { animation: spin-rev 48s linear infinite; }
.a-spin-rev { animation: spin-rev 96s linear infinite; }
.a-breathe { animation: breathe 8s ease-in-out infinite; }
.a-breathe.a-d2 { animation-delay: -2.67s; }
.a-breathe.a-d3 { animation-delay: -5.33s; }
.a-trace, .a-trail { animation: trace 12s linear infinite; }

@keyframes spin-rev { to { transform: rotate(-360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes trace { to { stroke-dashoffset: -935.31; } }

.js [data-animate]:not(.is-visible) .a-orbit,
.js [data-animate]:not(.is-visible) .a-dial,
.js [data-animate]:not(.is-visible) .a-upright,
.js [data-animate]:not(.is-visible) .a-spin-rev,
.js [data-animate]:not(.is-visible) .a-breathe,
.js [data-animate]:not(.is-visible) .a-trace,
.js [data-animate]:not(.is-visible) .a-trail { animation-play-state: paused; }

/* film row: tweezers video + drafting still */
.film {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(12px, 2vw, 28px);
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: clamp(28px, 3.4vw, 44px);
  border-top: 1px solid var(--line);
}

.film figure { min-width: 0; }

.film video, .film img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper-2); }

.film__cap { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }

.film__cap b { font-weight: 500; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }

@media (max-width: 1100px) {
  .arch__inner { grid-template-columns: 44fr 56fr; }
}

@media (max-width: 860px) {
  .arch__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .arch__figure { max-width: 520px; }
  .arch__text { max-width: none; }
  .spec { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .spec li { padding: 12px 0 0; border-top: 1px solid var(--line-soft); }
  .spec li + li { padding-left: 0; border-left: 0; }
  .spec li + li::before { left: 0; }
  .film { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .sheet-note { display: none; }
  .a-label text { font-size: 13px; }
}

/* ==========================================================================
   05 · АРХИТЕКТУРА ЛОКАЦИЙ — площадки листами плана + форматы событий
   ========================================================================== */

.venues { padding-block: clamp(72px, 9vw, 136px); background: var(--paper); border-top: 1px solid var(--line-soft); }

.venues__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 0 clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(32px, 4.5vw, 56px); }
.venues__head .kicker { grid-column: 1 / -1; }
.venues__title { font-size: clamp(2.1rem, 3.6vw, 3.4rem); }
.venues__lede { max-width: 36em; font-size: clamp(15.5px, 1.15vw, 17.5px); line-height: 1.66; color: var(--ink-2); }

/* сетка как лист плана: линии общие у соседних клеток */
.venues__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
/* число площадок делится на 3, но не на 4 (6, 9, 15…) — три колонки, чтобы последний ряд не был неполным */
@media (min-width: 1101px) {
  .venues__grid:has(> .venue:last-child:nth-child(3n)):not(:has(> .venue:last-child:nth-child(4n))) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.venue {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(170px, 15vw, 210px);
  padding: clamp(18px, 1.8vw, 26px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  transition: background-color var(--t-ui) var(--ease);
}
.venue:hover { background: var(--white); }
/* метка-уголок, как на листах чертежа в разделе 04 */
.venue::after { content: ''; position: absolute; top: 12px; right: 12px; width: 9px; height: 9px; border-top: 1px solid var(--accent); border-right: 1px solid var(--accent); }

/* площадка с сайтом: вся карточка — ссылка (растянутая область ссылки), стрелка у названия */
.venue__link { color: inherit; }
.venue__link::before { content: ''; position: absolute; inset: 0; z-index: 1; }
.venue__link:focus-visible { outline: none; }
.venue:has(.venue__link:focus-visible) { outline: 2px solid var(--ink); outline-offset: -2px; }
.venue__arrow { display: inline-block; margin-left: .3em; font-size: .7em; color: var(--accent-2); transition: transform var(--t-ui) var(--ease); }
.venue:hover .venue__arrow { transform: translate(2px, -2px); }

.venue__photo { width: calc(100% + 2 * clamp(18px, 1.8vw, 26px)); max-width: none; height: auto; margin: calc(-1 * clamp(18px, 1.8vw, 26px)) calc(-1 * clamp(18px, 1.8vw, 26px)) 18px; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-3); }
.venue__idx { font-size: 10.5px; font-weight: 500; letter-spacing: .22em; color: var(--accent-2); }
.venue__name { margin-top: auto; padding-top: 28px; font-family: var(--f-display); font-size: clamp(19px, 1.65vw, 24px); font-weight: 500; line-height: 1.2; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.venue__type { margin-top: 8px; font-size: 10.5px; font-weight: 500; line-height: 1.6; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

.venues__formats { display: grid; grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr); gap: 18px clamp(32px, 6vw, 96px); align-items: start; margin-top: clamp(40px, 5vw, 64px); }
.venues__formats-title { font-family: var(--f-display); font-size: clamp(19px, 1.65vw, 24px); font-weight: 500; line-height: 1.3; letter-spacing: -.03em; color: var(--ink); }
.formats { display: flex; flex-wrap: wrap; gap: 10px; }
.formats li { padding: 9px 16px; border: 1px solid var(--line); border-radius: var(--r-round); font-size: 14px; line-height: 1.4; color: var(--ink); background: var(--paper); }

@media (max-width: 1100px) {
  .venues__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .venues__head, .venues__formats { grid-template-columns: minmax(0, 1fr); }
  .venues__title { margin-bottom: 18px; }
}

@media (max-width: 640px) {
  .venues { padding-block: 64px; }
  .venues__title { font-size: clamp(29px, 7.7vw, 40px); }
  .venues__grid { grid-template-columns: minmax(0, 1fr); }
  .venue { min-height: 0; }
  .venue__name { padding-top: 18px; }
  .formats li { font-size: 13.5px; padding: 8px 14px; }
}

/* ==========================================================================
   04 · КОНТАКТЫ
   ========================================================================== */

.cnt { padding-block: clamp(72px, 9vw, 136px); background: var(--paper); border-top: 1px solid var(--line-soft); }

.cnt__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr) minmax(0, 0.78fr);
  gap: clamp(28px, 3.6vw, 56px);
  align-items: start;
}

/* заголовок — целая фраза заказчика, поэтому мельче остальных: три строки, а не четыре */
.cnt__title { font-size: clamp(2rem, 3.1vw, 2.75rem); max-width: 11em; }

.cnt__form { margin-top: 28px; }

.cnt__reply { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }

.cnt__reply-link { white-space: nowrap; }

.cnt__figure { position: sticky; top: calc(var(--head-h) + 20px); }

.cnt__figure img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; background: var(--paper-2); }

.cnt__info { display: flex; flex-direction: column; }

.mapbox { position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; margin-bottom: clamp(24px, 3vw, 36px); }

.mapbox__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(.9) brightness(1.04); }

.mapbox__veil {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-2);
  background-image:
    linear-gradient(var(--line-hair) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-hair) 1px, transparent 1px);
  background-size: 24px 24px;
}

.mapbox__veil[hidden] { display: none; }

.mapbox__hint {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  padding: 12px 18px;
  box-shadow: 0 8px 30px rgb(26 25 23 / .10);
}

.cinfo { display: flex; flex-direction: column; gap: clamp(14px, 1.6vw, 20px); }

.cinfo__row { display: flex; align-items: flex-start; gap: 16px; }

.cinfo__ico { font-size: 18px; color: var(--ink-3); margin-top: 3px; }

.cinfo__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-block: -10px;
  font-size: 15px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-ui) var(--ease);
}

.cinfo__link:hover { border-color: var(--ink); }

/* два номера: в строку, при нехватке места — друг под другом, зоны касания не перекрываются */
.cinfo__phones { display: flex; flex-wrap: wrap; column-gap: 24px; margin-block: -10px; }

.cinfo__phones .cinfo__link { margin-block: 0; }

.cinfo__text { font-size: 14.5px; line-height: 1.55; }

.cinfo__sub { color: var(--ink-3); }

.social { margin-top: clamp(24px, 3vw, 32px); padding-top: clamp(20px, 2.4vw, 26px); border-top: 1px solid var(--line-soft); }

.social .label { margin-bottom: 14px; }

.social__list { display: flex; gap: 10px; }

/* сноска о Meta — требование для ссылок на WhatsApp (см. скилл fz152, R3) */
.social__note { margin-top: 12px; max-width: 34em; font-size: 11px; line-height: 1.6; color: var(--ink-3); }

/* ---------- forms ---------- */

.form { display: flex; flex-direction: column; gap: 14px; }

.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.field { position: relative; }

.field__input {
  width: 100%;
  min-height: 56px;
  scroll-margin-top: calc(var(--head-h) + 20px);
  padding: 20px 16px 8px;
  background: var(--white);
  border: 1px solid rgb(26 25 23 / .5);
  border-radius: var(--r);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
  appearance: none;
  transition: border-color var(--t-ui) var(--ease), background-color var(--t-ui) var(--ease);
}

.field__input:hover { border-color: rgb(26 25 23 / .7); }

.field__input:focus { border-color: var(--ink); background: #fff; }

.field__input:focus-visible { outline-color: var(--ink); }

.field--icon .field__input { padding-right: 48px; }

.field__label {
  position: absolute;
  left: 17px;
  top: 28px;
  transform: translateY(-50%);
  font-size: 14.5px;
  line-height: 1;
  color: var(--ink-3);
  pointer-events: none;
  transition: transform var(--t-ui) var(--ease), font-size var(--t-ui) var(--ease), color var(--t-ui) var(--ease);
}

/* .is-floated — для полей даты: при смене type на date Chrome не пересчитывает
   :placeholder-shown, поэтому состояние подписи там держит класс, а не селектор */
.field__input:focus ~ .field__label,
input.field__input:not([data-datepicker]):not(:placeholder-shown) ~ .field__label,
select.field__input:valid ~ .field__label,
.field.is-floated .field__label {
  transform: translateY(-160%);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.field__input:focus ~ .field__label { color: var(--ink); }

.field__ico { position: absolute; right: 17px; top: 28px; transform: translateY(-50%); font-size: 16px; color: var(--ink-3); pointer-events: none; }

/* значок календаря кликабелен: по нему открывается системный выбор даты */
.field__ico--btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  right: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  pointer-events: auto;
  cursor: pointer;
}

.field__ico--btn:hover { color: var(--ink); }

/* родной индикатор растянут на ту же область, поэтому клик открывает календарь
   и там, где showPicker() недоступен */
.field__input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 0;
  width: 48px;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.field__input--select { color: var(--ink); }

.field__input--select:invalid { color: transparent; }

.field.has-error .field__input { border-color: var(--err); }

.field__err { margin-top: 6px; font-size: 11.5px; line-height: 1.5; color: var(--err); }

.field__err[hidden] { display: none; }

.check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding-block: 5px; font-size: 12.5px; line-height: 1.55; color: var(--ink-2); cursor: pointer; }

.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); flex: 0 0 auto; }

.check a { color: var(--ink); border-bottom: 1px solid var(--line); }

.form__submit { margin-top: 6px; }

.form__submit[data-busy='true'] { pointer-events: none; }

.form__submit[data-busy='true'] .form__submit-label { opacity: .25; }

.spinner {
  position: absolute;
  width: 18px; height: 18px;
  border-radius: var(--r-round);
  border: 1.5px solid rgb(250 249 246 / .35);
  border-top-color: var(--white);
  opacity: 0;
}

.form__submit[data-busy='true'] .spinner { opacity: 1; animation: spin 720ms linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

.form__legal { font-size: 11.5px; line-height: 1.6; color: var(--ink-3); max-width: 32em; }

.form__legal a { color: var(--ink); border-bottom: 1px solid var(--line); }

.form__status {
  padding: 14px 16px;
  border-left: 2px solid var(--accent);
  background: rgb(176 141 87 / .10);
  font-size: 13.5px;
  line-height: 1.6;
}

.form__status[hidden] { display: none; }

.form__status:focus { outline: none; }

.form__status[data-kind='error'] { border-left-color: var(--err); background: rgb(156 58 44 / .08); color: #7e2e22; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.foot { --ink: #f4f2ed; --ink-2: #d1d6d8; --ink-3: #b1b9bd; --line-soft: rgb(255 255 255 / .2); background: var(--graphite); color: var(--ink); border-top: 1px solid var(--line-soft); padding-block: clamp(22px, 2.4vw, 30px); }

.foot__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px clamp(16px, 1.8vw, 28px); }

.brand--foot .brand__mark { width: 28px; height: 28px; }

.brand--foot .brand__word { font-size: 13px; letter-spacing: 0.3em; }

.foot__nav ul { display: flex; flex-wrap: wrap; gap: 4px clamp(10px, 1.2vw, 18px); }

.foot__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
  transition: color var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease);
}

.foot__nav a:hover { color: var(--ink); border-color: var(--ink); }

.foot__copy { margin-left: auto; font-size: 10.5px; color: var(--ink-3); }

.foot__legal { display: inline-flex; align-items: center; min-height: 44px; font-size: 10.5px; color: var(--ink-3); border-bottom: 1px solid var(--line-soft); }

.foot__legal:hover { color: var(--ink); border-color: var(--ink); }

.foot__req { width: 100%; font-size: 10.5px; color: var(--ink-3); }

/* ==========================================================================
   DOCUMENTS — privacy/ и privacy/consent/: политика и согласие.
   Без script.js: шапка не фиксированная, а липкая и сразу с фоном.
   ========================================================================== */

.site-head--doc {
  position: sticky;
  top: 0;
  background: rgb(244 242 237 / .94);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  box-shadow: 0 1px 0 var(--line-soft);
}

.site-head--doc .site-head__inner { grid-template-columns: minmax(0, 1fr) auto; }

.doc { padding-block: clamp(44px, 6vw, 88px) clamp(64px, 8vw, 120px); }

.doc__wrap { max-width: calc(46rem + 2 * var(--gut)); }

.doc__title { font-size: clamp(32px, 4.2vw, 52px); margin-bottom: 14px; }

.doc__brief {
  display: grid;
  margin-top: clamp(28px, 3.6vw, 40px);
  padding: 6px clamp(18px, 2.4vw, 28px);
  border-left: 2px solid var(--accent);
  background: var(--white);
}

.doc__brief > div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; padding-block: 11px; border-bottom: 1px solid var(--line-hair); }

.doc__brief > div:last-child { border-bottom: 0; }

.doc__brief dt { font-size: 10.5px; font-weight: 500; line-height: 2.2; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }

.doc__brief dd { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink); }

.doc h2 {
  margin: clamp(36px, 4.4vw, 52px) 0 14px;
  padding-top: clamp(20px, 2.4vw, 26px);
  border-top: 1px solid var(--line-soft);
  font-family: var(--f-display);
  font-size: clamp(21px, 2vw, 25px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.doc h3 { margin: 24px 0 10px; font-size: 16px; font-weight: 600; line-height: 1.45; }

.doc p, .doc li { font-size: 16px; line-height: 1.7; color: var(--ink-2); }

.doc .doc__meta { font-size: 13px; line-height: 1.6; color: var(--ink-3); }

.doc p + p, .doc ul + p, .doc p + ul { margin-top: 12px; }

.doc ul { display: grid; gap: 8px; }

.doc li { position: relative; padding-left: 22px; }

.doc li::before { content: ''; position: absolute; left: 2px; top: .85em; width: 10px; height: 1px; background: var(--accent); }

.doc b { font-weight: 600; color: var(--ink); }

.doc__table { margin-top: 14px; overflow-x: auto; border: 1px solid var(--line-soft); background: var(--white); }

.doc__table + p { margin-top: 14px; }

.doc table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.55; }

.doc th, .doc td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-hair); color: var(--ink-2); }

.doc th { font-size: 10.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); border-bottom-color: var(--line-soft); }

.doc td:first-child { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }

.doc tbody tr:last-child td { border-bottom: 0; }

.doc a:not(.btn) { color: var(--ink); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; transition: border-color var(--t-ui) var(--ease); }

.doc a:not(.btn):hover { border-color: var(--ink); }

/* 404.html: кнопка «На главную» под текстом */
.doc .nf__actions { margin-top: 28px; }

.foot__legal[aria-current='page'] { color: var(--ink); }

@media (max-width: 640px) {
  .doc__brief > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .doc__brief dt { line-height: 1.7; }
  /* таблица cookie: строка — карточка, подпись колонки берётся из data-label */
  .doc thead { display: none; }
  .doc tr { display: block; padding: 10px 16px; border-bottom: 1px solid var(--line-hair); }
  .doc tbody tr:last-child { border-bottom: 0; }
  .doc td { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); gap: 10px; padding: 3px 0; border: 0; }
  .doc td::before { content: attr(data-label); font-size: 10px; font-weight: 500; line-height: 2.1; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
}

/* ==========================================================================
   MOTION
   ========================================================================== */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease);
  will-change: opacity, transform;
}

.js .reveal.is-in { opacity: 1; transform: none; will-change: auto; }

.js .reveal--2 { transition-delay: 120ms; }

.js .reveal--3 { transition-delay: 240ms; }

.js .reveal--4 { transition-delay: 360ms; }

/* ==========================================================================
   RESPONSIVE (shared)
   ========================================================================== */

@media (max-width: 1320px) {
  .nav { display: none; }
  .site-head__inner { grid-template-columns: minmax(0, 1fr) auto; }
  .site-head__aside { grid-column: 2; }
  .burger { display: inline-flex; }
  .cnt__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); }
  .cnt__figure { display: none; }
}

@media (max-width: 960px) {
  .set__grid { grid-template-columns: minmax(0, 1fr); }
  .set__figure { position: static; }
  .cases__feature { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cases__photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases__photo img { aspect-ratio: 5 / 4; }
  .cases__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
  .cases__facts > div { padding: 20px 18px; border: 0; border-left: 1px solid var(--line); }
  .cases__facts > div:first-child { padding-left: 0; border-left: 0; }
  .cases__facts > div:last-child { padding-right: 0; border-bottom: 0; }
  .cases__facts dd { font-size: 19px; }
  .contingencies__head { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .contingencies__head > p:not(.kicker) { margin-top: 24px; max-width: 40em; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .is-wide .gitem { aspect-ratio: 8 / 3; }
}

@media (max-width: 860px) {
  :root { --head-h: 70px; }
  .facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts__cell:nth-child(3) { border-left: 0; padding-left: 0; grid-column: 1 / -1; }
  .facts__cell:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .set__order { grid-template-columns: minmax(0, 1fr); }
  .cnt__grid { grid-template-columns: minmax(0, 1fr); }
  .foot__inner { flex-direction: column; align-items: flex-start; }
  .foot__copy { margin-left: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --head-h: 64px; }
  .brand__tag { display: none; }
  .brand__word { font-size: 13px; letter-spacing: 0.3em; }
  .site-head__cta { display: none; }
  .btn { --btn-h: 52px; font-size: 11px; padding: 12px 20px; letter-spacing: 0.1em; white-space: normal; }
  .hero { padding-top: calc(var(--head-h) + 26px); gap: 14px; }
  .hero__title { font-size: clamp(44px, 14.5vw, 64px); margin-bottom: 18px; }
  .hero__sub { font-size: clamp(22px, 6.2vw, 26px); margin-bottom: 10px; }
  .hero__lede { font-size: 18px; }
  .hero__cta { gap: 4px 18px; margin-top: 24px; }
  .hero__cta > .btn { width: 100%; }
  .hero__cta > .link:not(.motion-toggle) { min-height: 48px; margin-top: 6px; }
  .hero__mech { width: 100%; }
  .hero__mech .co { font-size: 6.5px; letter-spacing: .06em; padding-inline: 2px; }
  .hero__hint { margin-top: 0; }
  .set, .cases, .gal, .arch, .cnt { padding-block: 64px; }
  .set__title, .arch__title, .cnt__title { font-size: clamp(29px, 7.7vw, 40px); max-width: none; }
  .kicker { font-size: 10px; letter-spacing: .14em; gap: 10px; }
  .lede, .arch__p, .inside li, .step__text, .cinfo__text { font-size: 16px; }
  .set__figure { margin-top: 4px; }
  .set__figcap { flex-direction: column; gap: 4px; font-size: 12px; }
  .facts__cell { padding: 22px 0 22px 16px; }
  .facts__num { font-size: clamp(25px, 6.8vw, 34px); letter-spacing: -.04em; }
  .facts__cap { font-size: 12px; }
  .cases__photos { gap: 8px; }
  .cases__photo img { aspect-ratio: 3 / 4; }
  .cases__photo figcaption { font-size: 10.5px; }
  .cases__facts { grid-template-columns: minmax(0, 1fr); border-bottom: 0; }
  .cases__facts > div, .cases__facts > div:first-child, .cases__facts > div:last-child { padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); }
  .cases__facts dt { margin-bottom: 6px; }
  .cases__facts dd { font-size: 20px; }
  .contingencies__head .display { font-size: clamp(31px, 8.3vw, 44px); }
  .contingencies__head > p:not(.kicker) { margin-top: 20px; }
  .incident__summary { grid-template-columns: 40px minmax(0, 1fr) 36px; gap: 12px; min-height: 108px; padding: 24px 0; }
  .incident__icon { width: 40px; height: 40px; }
  .incident__icon svg { width: 22px; height: 22px; }
  .incident__number { font-size: 9px; margin-bottom: 5px; }
  .incident__title { font-size: 19px; line-height: 1.35; letter-spacing: -.025em; }
  .incident__toggle { width: 36px; height: 36px; font-size: 23px; }
  .incident__body { margin-left: 0; padding: 0 0 28px; font-size: 16px; line-height: 1.75; }
  .incident__conclusion { padding-left: 16px; }
  .card { padding: 24px 18px; box-shadow: none; }
  .card__title { font-size: 23px; }
  .field__label { font-size: 15px; }
  .spec span { font-size: 14px; }
  .form__legal, .check { font-size: 12px; }
  .form__submit { width: 100%; }
  .inside { grid-template-columns: minmax(0, 1fr); }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .mosaic { grid-template-columns: minmax(0, 1fr); }
  .mosaic > li.is-wide { grid-column: span 1; }
  .is-wide .gitem { aspect-ratio: 16 / 9; }
  .omenu__foot { flex-direction: column; }
  .omenu__addr { margin-left: 0; }
  .omenu__name { font-size: clamp(22px, 6.2vw, 32px); letter-spacing: -.035em; }
  .omenu__list a { gap: 10px; }
  .omenu__num { flex: 0 0 2.4em; }
  .omenu__contact { min-height: 44px; display: flex; align-items: center; }
  .foot__nav ul { gap: 4px 18px; }
  .foot__copy, .foot__req { font-size: 11px; line-height: 1.7; }
  .lightbox { padding-inline: 12px; }
  .lightbox__foot { flex-direction: column; align-items: flex-start; }
  .js .reveal { transform: none; transition-duration: 400ms; }
}

@media (hover: none) {
  .gitem__cap { opacity: 1; }
  .foot__nav a { min-width: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .gitem:hover img, .gitem:hover video { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-head.is-stuck { background: var(--paper); backdrop-filter: none; }
}

@media print {
  .site-head, .omenu, .skip, .lightbox, .mapbox__veil { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   COOKIE BANNER — баннер и его скрипт взяты из скилла fz152 (assets/legal/),
   здесь только оформление под сайт: графитовая плашка, кнопки-пилюли.
   «Принять все» и «Только необходимые» одного размера — отказ не труднее согласия.
   ========================================================================== */

:root {
  --cc-bg: var(--graphite);
  --cc-fg: #f4f2ed;
  --cc-muted: #b1b9bd;
  --cc-line: rgb(255 255 255 / .22);
  --cc-accent: #f4f2ed;
  --cc-accent-fg: var(--graphite);
  --cc-radius: 4px;
}

.cc-root { left: var(--gut); right: var(--gut); bottom: 20px; }

.cc-box { max-width: 760px; padding: 18px 22px 16px; font-family: var(--f-sans); font-size: 13.5px; line-height: 1.6; border-color: var(--cc-line); box-shadow: 0 18px 48px rgb(20 22 24 / .28); }

.cc-text a { text-decoration: none; border-bottom: 1px solid var(--cc-line); transition: border-color var(--t-ui) var(--ease); }

.cc-text a:hover { border-color: var(--cc-fg); }

.cc-opt { font-size: 13px; color: #d1d6d8; }

.cc-opt b { font-weight: 600; color: var(--cc-fg); }

.cc-opt input { width: 18px; height: 18px; margin-top: 2px; accent-color: #f4f2ed; }

.cc-btn {
  flex: 1 1 0;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--r-round);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
  transition: background-color var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease), color var(--t-ui) var(--ease);
}

.cc-btn:hover { background: rgb(255 255 255 / .08); }

.cc-btn--main:hover { background: #fff; border-color: #fff; }

.cc-btn--quiet { flex: 0 0 auto; padding-inline: 6px; font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; text-underline-offset: 3px; color: var(--cc-muted); }

.cc-btn--quiet:hover { background: none; color: var(--cc-fg); }

.cc-btn:focus-visible { outline-color: var(--accent); }

button.foot__legal { padding: 0; }

/* поле-ловушка для ботов в формах: человек его не видит и не попадает в него Tab'ом */
.form__hp { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 480px) {
  .cc-root { left: 10px; right: 10px; bottom: 10px; }
  .cc-box { padding: 14px 16px 12px; font-size: 13px; line-height: 1.5; }
  .cc-btn { flex: 1 1 calc(50% - 4px); padding-inline: 10px; letter-spacing: 0.1em; }
  .cc-btn--quiet { flex: 1 1 100%; min-height: 36px; }
}

@media print {
  .cc-root { display: none !important; }
}
