/* ============================================================
   Modern House — Design System & Styles v2
   Основан точно на Figma-макете (frame 1:51 и 1:385)
   ============================================================ */

/* GloriaScript: @font-face добавляется через wp_add_inline_style() в functions.php */

/* --- Design Tokens ----------------------------------------*/
:root {
  /* Backgrounds */
  --bg-dark:    #0d0d0d;
  --bg-mid:     #141414;
  --bg-light:   #f7f6f4;
  --bg-white:   #ffffff;

  /* Text */
  --text-dark:  #1a1a1a;
  --text-light: #ffffff;
  --text-muted: #888888;
  --text-muted-d: rgba(255,255,255,0.50);

  /* Accent */
  --accent:     #c9a96c;

  /* Borders */
  --border-l:   rgba(0,0,0,0.09);
  --border-d:   rgba(255,255,255,0.10);

  /* Fonts — только два шрифта */
  --font-display: 'Manrope', sans-serif;    /* все заголовки */
  --font-script:  'GloriaScript', cursive;  /* рукописный акцент */
  --font-numbers: 'Manrope', sans-serif;    /* статистика */
  --font-ui:      'Manrope', sans-serif;    /* интерфейс / тело */

  /* Type Scale — desktop (max h1=64px) */
  --sz-hero:    clamp(64px, 10vw, 200px);
  --sz-h1:      clamp(32px, 3.3vw, 64px);
  --sz-h2:      clamp(24px, 2.6vw, 48px);
  --sz-h3:      clamp(18px, 1.7vw, 30px);
  --sz-lg:      clamp(15px, 1vw, 20px);
  --sz-body:    clamp(13px, 0.85vw, 16px);
  --sz-sm:      14px;
  --sz-label:   11px;

  /* Grid */
  --px: 80px;          /* horizontal container padding */
  --col: calc((100% - var(--px)*2) / 7);

  /* Spacing — premium magazine breathing room */
  --gap-section: clamp(110px, 11vw, 180px);
  --gap-block:   clamp(56px, 5vw, 84px);
  --gap-el:      clamp(20px, 1.6vw, 28px);

  /* Transitions */
  --tr: 0.35s ease;
  --tr-slow: 0.8s cubic-bezier(.25,.46,.45,.94);
}

/* --- Reset ------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-ui);
  color: var(--text-dark);
  background: var(--bg-white);
  overflow-x: hidden;
  font-size: var(--sz-body);
  line-height: 1.6;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; background: none; border: none; cursor: pointer; }

/* --- Container -------------------------------------------*/
.mh-wrap {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 var(--px);
}

/* --- Section base ----------------------------------------*/
.mh-section {
  padding: var(--gap-section) 0;
}
.is-dark  { background: var(--bg-dark);  color: var(--text-light); }
.is-light { background: var(--bg-light); color: var(--text-dark); }
.is-white { background: var(--bg-white); color: var(--text-dark); }

/* --- Reveal animation ------------------------------------*/
.mh-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s ease;
}
.mh-reveal.is-visible { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .22s; }
.d3 { transition-delay: .38s; }
.d4 { transition-delay: .55s; }

/* --- Декоративная сетка (6 колонок + осевая) -------------*/
.mh-grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  display: flex;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 var(--px);
}
.mh-grid-bg__col {
  flex: 1;
  border-left: 1px solid rgba(128,128,128,.07);
}
.mh-grid-bg__col:last-child {
  border-right: 1px solid rgba(128,128,128,.07);
}
.mh-grid-bg__axis {
  border-right: 1px solid rgba(128,128,128,.13);
}
/* На мобильном скрываем лишние колонки */
@media (max-width: 768px) {
  .mh-grid-bg__col:nth-child(n+4) { display: none; }
  .mh-grid-bg__col:nth-child(3) { border-right: 1px solid rgba(128,128,128,.07); }
}

/* --- Label tag -------------------------------------------*/
.mh-tag {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 18px;
  border: 1px solid var(--border-l);
  font-size: var(--sz-label);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.mh-tag--d {
  border-color: var(--border-d);
  color: var(--text-muted-d);
}

/* --- Buttons ---------------------------------------------*/
.mh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 49px;
  padding: 0 36px;
  border: 1px solid currentColor;
  background: transparent;
  font-size: var(--sz-sm);
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background var(--tr), color var(--tr);
}
.mh-btn--l { color: #fff; }
.mh-btn--d { color: var(--text-dark); }
.mh-btn--l:hover { background: #fff; color: #000; }
.mh-btn--d:hover { background: var(--text-dark); color: #fff; }

.mh-nav-btn {
  height: 35px;
  padding: 0 20px;
  border: 1px solid rgba(255,255,255,.35);
  background: transparent;
  color: #fff;
  font-size: 13px;
  letter-spacing: .08em;
  display: inline-flex;
  align-items: center;
  transition: border-color var(--tr), background var(--tr);
}
.mh-nav-btn:hover {
  border-color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.06);
}

/* --- Image placeholder -----------------------------------*/
.ph {
  background: linear-gradient(135deg, #e8e6e2 0%, #d4d0c8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
}
.ph::after {
  content: 'Фото';
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #aaa;
}

/* ============================================================
   HEADER
   ============================================================ */
.mh-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 90px;
  z-index: 200;
  transition: background var(--tr), backdrop-filter var(--tr);
}
.mh-header.scrolled {
  background: rgba(13,13,13,.92);
  backdrop-filter: blur(14px);
}
.mh-header__inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 var(--px);
  height: 100%;
  display: grid;
  grid-template-columns: 50px 1fr 132px;
  align-items: center;
  gap: 20px;
}

/* Hamburger */
.mh-burger {
  width: 50px; height: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}
.mh-burger span {
  display: block;
  height: 1px;
  background: #fff;
  transition: transform var(--tr), opacity var(--tr);
}
.mh-burger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.mh-burger.open span:nth-child(2) { opacity: 0; }
.mh-burger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Logo */
.mh-logo {
  display: flex;
  justify-content: center;
}
.mh-logo img, .mh-logo svg { height: 49px; width: auto; }

/* Header CTA */
.mh-header-cta { display: flex; justify-content: flex-end; }

/* Nav backdrop */
.mh-nav-bd {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 198;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s cubic-bezier(.25,.1,.25,1);
}
.mh-nav-bd.open { opacity: 1; pointer-events: all; }

/* Half-screen nav overlay */
.mh-nav {
  position: fixed;
  top: 0; left: 0;
  width: 50vw;
  min-width: 320px;
  height: 100vh;
  background: var(--bg-dark);
  z-index: 199;
  display: flex;
  flex-direction: column;
  padding: 80px 60px 60px;
  transform: translateX(-100%);
  transition: transform .5s cubic-bezier(.25,.1,.25,1);
  overflow-y: auto;
}
.mh-nav.open { transform: translateX(0); }

/* Close button */
.mh-nav__close {
  position: absolute;
  top: 32px; right: 32px;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  transition: color var(--tr);
}
.mh-nav__close:hover { color: #fff; }

/* Nav list */
.mh-nav__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  counter-reset: nav-num;
  flex: 1;
  justify-content: center;
  padding: 0;
  margin: 0;
}
.mh-nav__list > li {
  counter-increment: nav-num;
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.mh-nav__list > li::before {
  content: counter(nav-num, decimal-leading-zero);
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgba(255,255,255,.3);
  min-width: 22px;
  flex-shrink: 0;
}
.mh-nav__list > li > a {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 56px);
  font-weight: 300;
  color: #fff;
  line-height: 1.15;
  transition: color var(--tr);
}
.mh-nav__list > li > a:hover { color: var(--accent); }

/* Nav contact footer */
.mh-nav__foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.mh-nav__contact-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: rgba(255,255,255,.55);
  font-family: var(--font-ui);
  font-size: 14px;
  transition: color var(--tr);
}
.mh-nav__contact-link:hover { color: #fff; }
.mh-nav__contact-city {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.3);
}

@media (max-width: 767px) {
  .mh-nav { width: 100vw; padding: 80px 30px 50px; }
  .mh-nav-bd { display: none; }
}

/* ============================================================
   HERO  — «Современный Дом»
   Light photo background, Russian display heading
   ============================================================ */
.mh-hero {
  position: relative;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  background: #0d0d0d;
  perspective: 1400px;
}

/* Background photo: camera walk-forward внутрь сцены (Persepolis-style approach).
   Pure scale-up + perspective + brightness ramp, БЕЗ масок. */
.mh-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: translateY(var(--hero-parallax-y, 0px));
  transition: transform .25s linear;
  will-change: transform;
}

.mh-hero__bg-img,
.mh-hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 55%;
  transform-origin: center 55%;
  backface-visibility: hidden;
  will-change: transform, filter, opacity;
  /* Стартовое состояние: тёмное, размытое, прозрачное */
  opacity: 0;
  filter: brightness(.4) blur(10px);
  transform: translateZ(0) scale(1.0);
  animation: mhHeroFadeIn 1.8s cubic-bezier(.22,.61,.36,1) .1s forwards;
}
@keyframes mhHeroFadeIn {
  0%   { opacity: 0; filter: brightness(.4) blur(10px); }
  100% { opacity: 1; filter: brightness(.88) blur(0); }
}
/* Когда JS активирует scroll-driven walk-in, отключаем keyframes и применяем scroll transform */
.mh-hero__bg-img.is-scroll-driven {
  animation: none;
  opacity: 1;
  filter: brightness(calc(.88 + var(--hero-scroll-bright, 0) * 0.12)) blur(0);
  transform: translateZ(var(--hero-scroll-z, 0px)) scale(var(--hero-scroll-scale, 1));
}
/* Gradient overlay — subtle, lighter photo stays visible */
.mh-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(8,8,8,.18) 0%,
      rgba(8,8,8,.08) 45%,
      rgba(8,8,8,.35) 100%),
    linear-gradient(to right,
      rgba(8,8,8,.22) 0%,
      transparent 55%);
}

/* Vertical grid lines (decorative) */
.mh-hero__lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 0 var(--px);
  pointer-events: none;
}
.mh-hero__lines > span {
  border-left: 1px solid rgba(255,255,255,.055);
}
.mh-hero__lines > span:last-child {
  border-right: 1px solid rgba(255,255,255,.055);
}

/* Horizontal marks (Figma: Line 24-29) */
.mh-hero__hlines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.mh-hero__hlines > span {
  position: absolute;
  left: var(--px); right: var(--px);
  height: 1px;
  background: rgba(255,255,255,.04);
}

/* Content */
.mh-hero__body {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 var(--px);
  display: flex;
  flex-direction: column;
}

/* Small label pair: "Architecture  Design" */
.mh-hero__cats {
  display: flex;
  gap: 40px;
  margin-top: 148px; /* below header */
}
.mh-hero__cat {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
}

/* Display heading */
.mh-hero__heading {
  margin-top: auto;
  padding-bottom: 88px;
}
.mh-hero__word {
  display: block;
  line-height: 1;
  margin: 0;
}
.mh-hero__word-1 {
  font-family: var(--font-script);
  font-size: clamp(52px, 7vw, 140px);
  font-weight: 400;
  color: rgba(255,255,255,.92);
  letter-spacing: .01em;
}
.mh-hero__word-2 {
  font-family: var(--font-display);
  font-size: calc(var(--sz-hero) * .82);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(255,255,255,.7);
  letter-spacing: .005em;
  margin-top: .04em;
}

/* Letter-by-letter reveal — каждый span появляется с delay из inline style */
.mh-hero__letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px);
  animation: mhHeroLetter 1.1s cubic-bezier(.22,.61,.36,1) forwards;
  will-change: opacity, transform;
}
@keyframes mhHeroLetter {
  0%   { opacity: 0; transform: translateY(60px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Sync с dolly-in 6.5s: cats early, slogan — после headings */
.mh-hero__cats {
  opacity: 0;
  animation: mhHeroFadeUp .9s cubic-bezier(.22,.61,.36,1) 1.0s forwards;
}
.mh-hero__slogan {
  font-size: clamp(14px, 1vw, 18px);
  font-weight: 300;
  color: rgba(255,255,255,.72);
  max-width: 440px;
  line-height: 1.65;
  margin-top: 28px;
  opacity: 0;
  animation: mhHeroFadeUp 1.1s cubic-bezier(.22,.61,.36,1) 4.8s forwards;
}
@keyframes mhHeroFadeUp {
  0%   { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Vertical lines: stagger fade-in после photo entrance */
.mh-hero__lines > span,
.mh-hero__hlines > span {
  opacity: 0;
  animation: mhHeroLine 1.8s ease 4.2s forwards;
}
.mh-hero__lines > span:nth-child(2) { animation-delay: 4.3s; }
.mh-hero__lines > span:nth-child(3) { animation-delay: 4.4s; }
.mh-hero__lines > span:nth-child(4) { animation-delay: 4.5s; }
.mh-hero__lines > span:nth-child(5) { animation-delay: 4.6s; }
.mh-hero__lines > span:nth-child(6) { animation-delay: 4.7s; }
.mh-hero__lines > span:nth-child(7) { animation-delay: 4.8s; }
.mh-hero__hlines > span:nth-child(2) { animation-delay: 4.45s; }
.mh-hero__hlines > span:nth-child(3) { animation-delay: 4.55s; }
.mh-hero__hlines > span:nth-child(4) { animation-delay: 4.65s; }
.mh-hero__hlines > span:nth-child(5) { animation-delay: 4.75s; }
.mh-hero__hlines > span:nth-child(6) { animation-delay: 4.85s; }
@keyframes mhHeroLine {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

/* Scroll cue удалён — убрана полоска снизу */

/* ============================================================
   ABOUT — «О компании»
   Figma offset typography: label col-1, line-1 col-4→7, line-2 col-2→7
   Founder: photo col-4, info col-5→7
   ============================================================ */
.mh-about { padding: var(--gap-section) 0; background: var(--bg-white); }

.mh-about__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 0;
}

/* Row 1: editorial label + heading (длинная фраза — col 2/8 = 6 cols) */
.mh-about__tag      { grid-column: 1;    grid-row: 1; align-self: end; padding-bottom: 14px; }
.mh-about__line-1   { grid-column: 2/8;  grid-row: 1;
  font-size: var(--sz-h1);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.015em;
}

/* Row 2: line-2 — короткое продолжение, indented right + серый */
.mh-about__line-2   { grid-column: 4/8;  grid-row: 2;
  font-size: var(--sz-h1);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.015em;
  padding-top: .08em;
  color: var(--text-muted);
}

/* Spacer row */
.mh-about__spacer   { grid-column: 1/8;  grid-row: 3; height: var(--gap-block); }

/* Row 4: founder photo + info */
.mh-about__founder  {
  grid-column: 4/8;
  grid-row: 4;
  display: flex;
  gap: 56px;
  align-items: flex-start;
}
.mh-about__photo-wrap {
  flex: 0 0 auto;
  width: calc(var(--col) * 2.4);
  min-width: 320px;
  max-width: 460px;
  overflow: hidden;
  position: relative;
}
.mh-about__photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  background: var(--bg-light);
  transition: transform 1.4s cubic-bezier(.22,.61,.36,1);
}
.mh-about__photo-wrap:hover .mh-about__photo,
.mh-about__photo-wrap:hover .ph { transform: scale(1.04); }
.mh-about__info     { flex: 1; padding-top: 8px; }
.mh-about__name     { font-size: var(--sz-h3); font-weight: 500; margin-bottom: 4px; }
.mh-about__role     { font-size: var(--sz-sm); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 32px; }
.mh-about__quote    {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.3vw, 22px);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 16px;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
}
.mh-about__quote-la {
  font-size: var(--sz-sm);
  color: var(--text-muted);
  letter-spacing: .08em;
  font-weight: 400;
}

/* ============================================================
   MISSION — «Архитектура, которая подчёркивает...»
   Figma: line-1 col-3→7, line-2 col-2→7, text col-6→7, stats 4-col
   ============================================================ */
.mh-mission { padding: var(--gap-section) 0; background: var(--bg-white); border-top: 1px solid var(--border-l); }

.mh-mission__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 0;
}
.mh-mission__line-1 { grid-column: 3/8; grid-row: 1;
  font-size: var(--sz-h1);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.015em;
}
.mh-mission__line-2 { grid-column: 2/8; grid-row: 2;
  font-size: var(--sz-h1);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.015em;
  padding-top: .08em;
  color: var(--text-muted); /* серый — вторая строка по дизайну */
}
.mh-mission__text   { grid-column: 6/8; grid-row: 3;
  font-size: var(--sz-body);
  line-height: 1.72;
  color: var(--text-muted);
  padding-top: 40px;
}

/* Stats — 2×2 сетка (Figma: 2 колонки × 2 строки), шрифт Manrope */
.mh-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2×2, не 4 в ряд! */
  border: 1px solid var(--border-l);
  background: var(--border-l);
  gap: 1px;
  margin-top: var(--gap-block);
}
.mh-stat {
  background: var(--bg-white);
  padding: 38px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  counter-increment: mh-stat;
  min-height: 260px;
}
/* Тонкая графическая линия + индекс «01 / 04» сверху */
.mh-stat::before {
  content: counter(mh-stat, decimal-leading-zero) " / " counter(mh-stat-total, decimal-leading-zero);
  position: absolute;
  top: 18px;
  right: 24px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: .5;
}
.mh-stat::after {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: var(--text-dark);
  opacity: .85;
}
.mh-stats { counter-reset: mh-stat 0 mh-stat-total 4; }
.mh-stats--row { counter-reset: mh-stat 0 mh-stat-total 4; }

.mh-stat__val {
  font-family: var(--font-numbers);
  font-size: clamp(52px, 5.8vw, 88px);
  font-weight: 200;
  line-height: .92;
  letter-spacing: -.035em;
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
}
.mh-stat__val small {
  font-size: clamp(15px, 1.1vw, 20px);
  font-weight: 400;
  font-family: var(--font-numbers);
  letter-spacing: -.005em;
  opacity: .65;
}
.mh-stat__lbl {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.55;
  letter-spacing: .14em;
  text-transform: uppercase;
  max-width: 92%;
}

/* ============================================================
   SERVICES — «Полный цикл создания...»
   ============================================================ */
.mh-services { padding: var(--gap-section) 0; background: var(--bg-light); }

.mh-services__head {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
}
.mh-services__title {
  font-size: var(--sz-h1);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.015em;
}
.mh-services__title span { display: block; }

/* Accordion → 7 карточек-ссылок: на hover раскрывается, на click переход */
.mh-acc { border-top: 1px solid var(--border-l); }
.mh-acc__item {
  display: block;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border-l);
  transition: background var(--tr);
}
.mh-acc__item:hover { background: rgba(255, 255, 255, 0.4); }
.mh-acc__hd {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: color var(--tr);
}
.mh-acc__item:hover .mh-acc__hd { color: var(--accent); }
.mh-acc__name { font-size: clamp(18px, 1.6vw, 28px); font-weight: 400; }
.mh-acc__num  { font-size: var(--sz-sm); color: var(--text-muted); margin: 0 auto 0 14px; }
.mh-acc__arr  {
  width: 32px; height: 32px;
  border: 1px solid var(--border-l);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform var(--tr), background var(--tr);
}
.mh-acc__item:hover .mh-acc__arr {
  transform: translateX(4px);
  background: var(--accent);
  border-color: var(--accent);
}
.mh-acc__item:hover .mh-acc__arr svg path { stroke: #fff; }
.mh-acc__body { overflow: hidden; max-height: 0; transition: max-height 0.6s cubic-bezier(.7,0,.3,1); }
.mh-acc__item:hover .mh-acc__body { max-height: 500px; }

/* Раскрытый блок: картинка слева + текст справа */
.mh-acc__expand {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border-top: 1px solid var(--border-l);
}
.mh-acc__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-light);
}
.mh-acc__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--tr-slow);
}
.mh-acc__item:hover .mh-acc__img img { transform: scale(1.04); }
.mh-acc__inner {
  padding: 32px 40px 32px 48px;
  font-size: var(--sz-lg);
  color: var(--text-muted);
  line-height: 1.72;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}
.mh-acc__desc { margin: 0; }
.mh-acc__more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  font-size: var(--sz-sm);
  letter-spacing: 0.04em;
  color: var(--text-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--text-dark);
  transition: color var(--tr), border-color var(--tr), gap var(--tr);
}
.mh-acc__more:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  gap: 14px;
}
.mh-acc__more svg { transition: transform var(--tr); }
.mh-acc__more:hover svg { transform: translateX(2px); }

/* ============================================================
   TECHNOLOGY
   ============================================================ */
.mh-tech { padding: var(--gap-section) 0; background: var(--bg-light); border-top: 1px solid var(--border-l); }

/* === TECH v2 — full-bleed photo + paragraph overlay (elicyon style) ====== */
.mh-tech-v2 { padding: 0; background: var(--bg-dark); }
.mh-tech-v2__inner {
  display: flex;
  flex-direction: column;
}
.mh-tech-v2__block {
  position: relative;
  width: 100%;
  min-height: 88vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.mh-tech-v2__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 6s cubic-bezier(.22,.61,.36,1);
}
.mh-tech-v2__block:hover .mh-tech-v2__bg { transform: scale(1.04); }
.mh-tech-v2__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.15) 0%,
    rgba(0,0,0,.25) 30%,
    rgba(0,0,0,.55) 60%,
    rgba(0,0,0,.78) 100%
  );
}
.mh-tech-v2__content {
  position: relative;
  z-index: 3;
  max-width: 880px;
  padding: clamp(40px, 6vw, 88px) clamp(24px, 5vw, 80px);
}
.mh-tech-v2__text {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.9vw, 30px);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -.005em;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 24px rgba(0,0,0,.45);
}

@media (max-width: 768px) {
  .mh-tech-v2__block { min-height: 70vh; }
}

/* ============================================================
   TRUST — «Нам доверяют»
   Figma: left 2×2 grid (cols 1-4), right 2 stacked (cols 5-7)
   ============================================================ */
.mh-trust { padding: var(--gap-section) 0; background: var(--bg-white); }

.mh-trust__head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: var(--gap-block);
  align-items: end;
  row-gap: 0;
}
.mh-trust__tag    { grid-column: 1;    grid-row: 1; align-self: end; padding-bottom: 8px; }
.mh-trust__line-1 { grid-column: 4/8;  grid-row: 1;
  font-size: var(--sz-h1);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.015em;
}
.mh-trust__line-2 { grid-column: 6/8;  grid-row: 2;
  font-size: var(--sz-h1);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.015em;
  padding-top: .08em;
  color: var(--text-muted); /* серый — вторая строка */
}

/* Trust grid — простой 3+2 без offset (или 2+3 на средних) */
.mh-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-l);
  border: 1px solid var(--border-l);
}
@media (max-width: 1024px) {
  .mh-trust-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .mh-trust-grid { grid-template-columns: 1fr; }
}
.mh-tc {
  background: var(--bg-white);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 280px;
  border: 1px solid var(--border-l);
  transition: background var(--tr), color var(--tr), border-color var(--tr), transform var(--tr);
  cursor: default;
}
.mh-tc:hover {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  transform: translateY(-4px);
}
.mh-tc:hover .mh-tc__title { color: var(--text-light); }
.mh-tc:hover .mh-tc__text  { color: var(--text-muted-d); }
.mh-tc__title { font-size: var(--sz-h3); font-weight: 400; line-height: 1.25; transition: color var(--tr); }
.mh-tc__text  { font-size: var(--sz-body); line-height: 1.72; color: var(--text-muted); transition: color var(--tr); }

/* Фото-карточка в trust grid (одна из 6 ячеек) */
.mh-tc.mh-tc--img {
  padding: 0;
  overflow: hidden;
  background: var(--bg-light);
  border: none;
  min-height: 280px;
}
.mh-tc.mh-tc--img:hover {
  background: var(--bg-light);
  border: none;
  transform: none;
}
.mh-tc.mh-tc--img img,
.mh-tc.mh-tc--img .ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--tr-slow);
}
.mh-tc.mh-tc--img:hover img,
.mh-tc.mh-tc--img:hover .ph { transform: scale(1.04); }

/* ============================================================
   PORTFOLIO — dark section
   3 cards, 3rd offset lower
   ============================================================ */
.mh-portfolio { padding: var(--gap-section) 0; background: var(--bg-dark); color: var(--text-light); }

/* 7-col editorial grid, как в about/trust/partners — tag col 1, heading col 4/8 */
.mh-portfolio__head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  row-gap: 0;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.mh-portfolio__tag    { grid-column: 1; grid-row: 1; align-self: end; padding-bottom: 14px; }
.mh-portfolio__line-1 { grid-column: 4/8; grid-row: 1;
  font-size: var(--sz-h1);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.015em;
}
.mh-portfolio__line-2 { grid-column: 4/8; grid-row: 2;
  font-size: var(--sz-h1);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.015em;
  padding-top: .08em;
  color: var(--text-muted-d);
}
.mh-portfolio__desc { grid-column: 4/8; grid-row: 3;
  font-size: var(--sz-body);
  line-height: 1.72;
  color: var(--text-muted-d);
  margin-top: 28px;
  max-width: 520px;
}

/* Cards row — 3 cards, выровнены одинаково */
.mh-portfolio__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2vw, 32px);
  align-items: start;
}

.mh-pc {
  position: relative;
  /* Текст ниже фото — карточка теперь занимает всю высоту с meta снизу */
  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform var(--tr), box-shadow var(--tr);
}
.mh-pc:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.4);
}
/* Фото — большое, формат 3:2 (между 16:9 и квадратом) */
.mh-pc img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
  background: #1c1c1c;
  transition: transform var(--tr-slow), filter var(--tr-slow);
}
.mh-pc:hover img { transform: scale(1.025); filter: brightness(.95); }
/* Текст под фото, без оверлея */
.mh-pc__overlay {
  position: static;
  inset: auto;
  background: transparent;
  display: flex; flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  opacity: 1;
  transition: background var(--tr);
}
.mh-pc:hover .mh-pc__overlay { background: transparent; }
/* Текст карточки — под фото, в стиле дизайн-системы */
.mh-pc__name {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.5vw, 24px);
  font-weight: 400;
  color: var(--text-dark);
  margin: 0 0 10px;
  text-align: left;
  line-height: 1.25;
  letter-spacing: -.005em;
  transition: color .25s ease;
}
.mh-pc:hover .mh-pc__name { color: var(--text-muted); }
.mh-pc__meta {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0;
  text-align: left;
  font-weight: 500;
}
/* Для светлой темы под фото — текст-цвет тёмный */
.mh-section.is-light .mh-pc__name,
.mh-portfolio .mh-pc__name { color: var(--text-dark); }
.mh-section.is-dark .mh-pc__name,
.mh-section--dark .mh-pc__name { color: #fff; }
.mh-section.is-dark .mh-pc__meta,
.mh-section--dark .mh-pc__meta { color: rgba(255,255,255,.7); }

.mh-portfolio__cta { display: flex; justify-content: center; margin-top: 60px; }

/* ============================================================
   TEAM — «Экспертный подход»
   ============================================================ */
.mh-team { padding: var(--gap-section) 0; background: var(--bg-white); }

.mh-team__head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: start;
  margin-bottom: 56px;
}
.mh-team__tag    { grid-column: 1; }
.mh-team__line-1 { grid-column: 4/8;
  font-size: var(--sz-h1);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.015em;
}
.mh-team__line-2 { grid-column: 5/8;
  font-size: var(--sz-h1);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.015em;
  padding-top: .08em;
  color: var(--text-muted);
}
.mh-team__text   { grid-column: 6/8;
  font-size: var(--sz-body);
  line-height: 1.72;
  color: var(--text-muted);
  padding-top: 40px;
}

.mh-team__photos {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mh-team__row {
  display: grid;
  grid-template-columns: repeat(3, 260px);
  gap: 20px;
}
.mh-member { display: flex; flex-direction: column; gap: 10px; }
.mh-member__frame {
  width: 260px; height: 277px;
  overflow: hidden;
  background: var(--bg-light);
}
.mh-member__photo {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--tr-slow);
}
.mh-member:hover .mh-member__photo,
.mh-member:hover .ph { transform: scale(1.04); }
.mh-member__name { font-size: var(--sz-sm); font-weight: 500; }
.mh-member__role { font-size: var(--sz-label); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }

/* ============================================================
   MEDIA — «О нас говорят в мировых СМИ»
   ============================================================ */
.mh-media { padding: var(--gap-section) 0; background: var(--bg-white); border-top: 1px solid var(--border-l); }

.mh-media__head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: var(--gap-block);
}
.mh-media__tag    { grid-column: 1; }
.mh-media__line-1 { grid-column: 5/8; font-size: var(--sz-h1); font-weight: 400; line-height: 1.05; letter-spacing: -.015em; }
.mh-media__line-2 { grid-column: 4/8; font-size: var(--sz-h1); font-weight: 400; line-height: 1.05; letter-spacing: -.015em; padding-top: .08em; color: var(--text-muted); }

.mh-logos {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 48px 60px;
  background: var(--bg-light);
  border: 1px solid var(--border-l);
}
.mh-logo-img { height: 28px; width: auto; opacity: .5; filter: grayscale(1); transition: opacity var(--tr), filter var(--tr); }
.mh-logo-img:hover { opacity: 1; filter: none; }
.mh-logo-ph {
  height: 28px;
  padding: 0 16px;
  background: var(--border-l);
  display: flex;
  align-items: center;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #bbb;
}

/* ============================================================
   FILM EFFECT — overrides для интеграции с .mh-pc
   Карточка фиксирована (overflow: hidden из .mh-pc),
   на hover увеличивается только image внутри по горизонтали.
   ============================================================ */
.mh-anim-film-grid {
  background: transparent !important;
  padding: 0 !important;
  perspective: none !important;
}
.mh-pc.mh-anim-film-card {
  /* Контейнер без aspect (текст ниже фото). Аспект — на .mh-pc img */
  aspect-ratio: auto;
  background: transparent;
  isolation: isolate;
  /* overflow:hidden уже есть в .mh-pc — image не вылезет за границы */
}
/* Кинематографический фильтр на изображение */
.mh-pc.mh-anim-film-card > img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
  background: #1c1c1c;
  filter: saturate(.82) contrast(1.04) brightness(.96) sepia(.04);
  transform: scale(1);
  transform-origin: center center;
  transition: filter 700ms cubic-bezier(.22,.61,.36,1),
              transform 900ms cubic-bezier(.22,.61,.36,1);
}
/* Hover: цвет возвращается + лёгкий зум внутри фрейма */
.mh-pc.mh-anim-film-card:hover > img,
.mh-pc.mh-anim-film-card.is-active > img {
  filter: none;
  transform: scale(1.04);
}
/* Текстовый overlay должен быть сверху film-слоёв (frame z=5, grain z=3) */
.mh-pc.mh-anim-film-card .mh-pc__overlay { z-index: 6; }
/* ОТКЛЮЧАЕМ Apple Dock полностью — карточка не должна выходить за границы */
.mh-anim-film-grid.is-hovering .mh-anim-film-card,
.mh-anim-film-grid.is-hovering .mh-anim-film-card.is-active {
  transform: none !important;
  box-shadow: none !important;
  z-index: auto !important;
}
/* Также убираем translateY/shadow с базовой mh-pc */
.mh-pc.mh-anim-film-card { transform: none !important; box-shadow: none !important; }
.mh-pc.mh-anim-film-card:hover { transform: none !important; box-shadow: none !important; }

/* ============================================================
   BG LINES — декоративная сетка на фоне секций
   ============================================================ */
.mh-section--lines { position: relative; overflow: hidden; }
.mh-section--lines > .mh-wrap { position: relative; z-index: 1; }

.mh-bglines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
/* Вертикальные — 7 линий, как grid columns */
.mh-bglines--v {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  width: 100%;
}
.mh-bglines--v span {
  border-left: 1px solid var(--border-l);
  height: 100%;
}
.mh-bglines--v span:first-child { border-left: none; }
/* На тёмных секциях линии светлее но прозрачные */
.mh-bglines--v span               { border-left-color: rgba(0,0,0,.04); }
.mh-portfolio .mh-bglines--v span,
.mh-srv-process .mh-bglines--v span,
.mh-contact .mh-bglines--v span   { border-left-color: rgba(255,255,255,.06); }

/* Горизонтальные — 6 линий равномерно по высоте */
.mh-bglines--h span {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: rgba(0,0,0,.04);
}
.mh-bglines--h span:nth-child(1) { top: 16.66%; }
.mh-bglines--h span:nth-child(2) { top: 33.33%; }
.mh-bglines--h span:nth-child(3) { top: 50%; }
.mh-bglines--h span:nth-child(4) { top: 66.66%; }
.mh-bglines--h span:nth-child(5) { top: 83.33%; }
.mh-bglines--h span:nth-child(6) { display: none; }

/* ============================================================
   CUSTOM CURSOR — золотая точка следит за мышью
   ============================================================ */
.mh-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .25s ease, height .25s ease, background .25s ease, opacity .25s ease;
  mix-blend-mode: difference;
  opacity: 0;
}
.mh-cursor.is-active { opacity: 1; }
.mh-cursor.is-hover {
  width: 36px; height: 36px;
  background: var(--accent);
}
.mh-cursor.is-click {
  width: 24px; height: 24px;
  background: var(--text-dark);
}
@media (hover: none), (pointer: coarse) {
  .mh-cursor { display: none; }
}

/* Marquee — бегущая строка с логотипами СМИ */
.mh-marquee {
  margin-top: 60px;
  padding: 32px 0;
  background: var(--bg-light);
  border-top: 1px solid var(--border-l);
  border-bottom: 1px solid var(--border-l);
  overflow: hidden;
  position: relative;
}
.mh-marquee::before,
.mh-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.mh-marquee::before { left: 0;  background: linear-gradient(to right, var(--bg-light), transparent); }
.mh-marquee::after  { right: 0; background: linear-gradient(to left,  var(--bg-light), transparent); }
.mh-marquee__track {
  display: flex;
  align-items: center;
  gap: 80px;
  width: max-content;
  animation: mh-marquee-scroll 50s linear infinite;
}
.mh-marquee:hover .mh-marquee__track { animation-play-state: paused; }
.mh-marquee__item {
  flex: 0 0 auto;
  height: 48px;
  display: flex;
  align-items: center;
}
.mh-marquee__item img {
  max-height: 48px;
  width: auto;
  opacity: .55;
  filter: grayscale(1);
  transition: opacity var(--tr), filter var(--tr);
}
.mh-marquee__item:hover img { opacity: 1; filter: none; }
@keyframes mh-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .mh-marquee__track { animation: none; }
}

/* ============================================================
   CONTACT — CTA + Form
   ============================================================ */
.mh-contact { padding: var(--gap-section) 0; background: var(--bg-dark); color: var(--text-light); }

.mh-contact__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 60px;
  align-items: start;
}

/* CTA heading spans cols 1-5 */
.mh-cta-col { grid-column: 1/5; }
.mh-cta-script {
  font-family: var(--font-script);
  font-size: clamp(20px, 2.2vw, 42px);
  font-weight: 400;
  color: rgba(255,255,255,.5);
  margin-bottom: 8px;
  line-height: 1.1;
}
.mh-cta-title {
  font-size: var(--sz-h1);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.mh-cta-title span { display: block; }

/* Form col spans 5-8 — минималистичная колонка без лишнего текста */
.mh-form-col { grid-column: 5/8; display: flex; flex-direction: column; justify-content: flex-end; }
.mh-form-ttl { display: none; }
.mh-form-desc { display: none; }

.mh-form { display: flex; flex-direction: column; gap: 16px; }
.mh-input {
  width: 100%;
  height: 45px;
  padding: 0 10px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.22);
  color: #fff;
  font-size: 15px;
  font-family: var(--font-ui);
  outline: none;
  transition: border-color var(--tr);
}
.mh-input::placeholder { color: rgba(255,255,255,.32); }
.mh-input:focus { border-bottom-color: rgba(255,255,255,.65); }
.mh-input.err { border-bottom-color: #ff6b6b; }

.mh-form__foot { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; margin-top: 4px; }
.mh-check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.mh-check input[type=checkbox] {
  width: 20px; height: 20px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  appearance: none;
  cursor: pointer;
  position: relative;
  top: 1px;
  transition: background var(--tr);
}
.mh-check input:checked { background: rgba(255,255,255,.15); }
.mh-check input:checked::after { content: '✓'; position: absolute; top: -2px; left: 3px; color: #fff; font-size: 12px; }
.mh-check__txt { font-size: 12px; line-height: 1.5; color: rgba(255,255,255,.4); }

/* ============================================================
   PARTNERS
   ============================================================ */
.mh-partners { padding: var(--gap-section) 0; background: var(--bg-white); border-top: 1px solid var(--border-l); }

.mh-partners__head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: var(--gap-block);
}
.mh-partners__tag    { grid-column: 1; }
.mh-partners__line-1 { grid-column: 4/8; font-size: var(--sz-h1); font-weight: 400; line-height: 1.05; letter-spacing: -.015em; }
.mh-partners__line-2 { grid-column: 2/8; font-size: var(--sz-h1); font-weight: 400; line-height: 1.05; letter-spacing: -.015em; padding-top: .08em; color: var(--text-muted); }

.mh-partner-logos { display: flex; align-items: center; gap: 60px; flex-wrap: wrap; }

/* Partners grid — карточки с лого */
.mh-partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-l);
  border: 1px solid var(--border-l);
  margin-top: 60px;
}
.mh-partner-card {
  background: var(--bg-white);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-decoration: none;
  color: inherit;
  transition: background var(--tr), transform var(--tr);
}
.mh-partner-card:hover { background: var(--bg-light); transform: translateY(-2px); }
.mh-partner-card__logo {
  max-width: 80%;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter var(--tr), opacity var(--tr);
}
.mh-partner-card:hover .mh-partner-card__logo { filter: none; opacity: 1; }
.mh-partner-card__name {
  font-size: var(--sz-h3);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.mh-partner-card--ph .mh-partner-card__name {
  color: var(--text-muted);
  font-style: italic;
}
.mh-partners__hint {
  grid-column: 1 / -1;
  background: var(--bg-white);
  padding: 32px 40px;
  font-size: var(--sz-sm);
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
}
@media (max-width: 1024px) { .mh-partners-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .mh-partners-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.mh-footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: clamp(80px, 8vw, 120px) 0 48px;
}
/* 4 равные колонки выровнены по сетке: offices · nav · directions · socials.
   Совпадает с горизонтальной сеткой остальных секций (--px = 80px slide-out). */
.mh-footer__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(32px, 4vw, 80px);
  padding-bottom: clamp(48px, 4vw, 64px);
  border-bottom: 1px solid var(--border-d);
  margin-bottom: 28px;
  align-items: start;
}
.mh-footer__offices { display: flex; flex-direction: column; gap: 32px; }
.mh-office { display: flex; flex-direction: column; gap: 6px; }
.mh-office__city { font-size: var(--sz-label); letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted-d); }
.mh-office__phone { font-size: clamp(16px, 1.3vw, 22px); font-weight: 300; color: #fff; transition: color var(--tr); }
.mh-office__phone:hover { color: var(--accent); }
.mh-office__addr { font-size: var(--sz-sm); color: var(--text-muted-d); }

.mh-footer__nav { display: flex; flex-direction: column; gap: 10px; }
.mh-footer__directions { display: flex; flex-direction: column; gap: 10px; }
.mh-fnav-lbl { font-size: var(--sz-label); letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted-d); margin-bottom: 4px; }
.mh-fnav-link { font-size: var(--sz-sm); color: rgba(255,255,255,.55); line-height: 1; transition: color var(--tr); }
.mh-fnav-link:hover { color: #fff; }

.mh-footer__socials { display: flex; flex-direction: column; gap: 14px; }
.mh-soc-icons { display: flex; gap: 10px; }
.mh-soc-icon {
  width: 41px; height: 41px;
  border: 1px solid var(--border-d);
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--tr), background var(--tr);
}
.mh-soc-icon:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.05); }
.mh-soc-icon svg { width: 18px; height: 18px; }

.mh-footer__bottom { display: flex; align-items: center; justify-content: space-between; }
.mh-copy, .mh-policy { font-size: 12px; color: rgba(255,255,255,.28); }
.mh-policy:hover { color: rgba(255,255,255,.55); }

/* ============================================================
   PAGE HERO (inner pages — page.php)
   ============================================================ */
.mh-page-hero {
  padding: 160px 0 var(--gap-block);
  background: var(--bg-dark);
  color: var(--text-light);
}
.mh-page-hero--dark { background: var(--bg-dark); color: var(--text-light); }
.mh-page-hero__head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  row-gap: 8px;
}
.mh-page-hero__tag    { grid-column: 1; grid-row: 1; align-self: end; padding-bottom: 12px; }
.mh-page-hero__title  {
  grid-column: 2/8; grid-row: 1;
  font-size: var(--sz-h1);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.015em;
}

.mh-page-content { padding: var(--gap-section) 0; }
.mh-page-content__body {
  max-width: 800px;
  margin: 0 auto;
  font-size: var(--sz-lg);
  line-height: 1.75;
  color: var(--text-dark);
}
.mh-page-content__body h2 { font-size: var(--sz-h2); font-weight: 400; margin: 48px 0 16px; line-height: 1.2; letter-spacing: -.01em; }
.mh-page-content__body h3 { font-size: var(--sz-h3); font-weight: 500; margin: 36px 0 12px; line-height: 1.25; }
.mh-page-content__body p  { margin-bottom: 20px; color: var(--text-muted); }
.mh-page-content__body p:first-child { color: var(--text-dark); font-size: clamp(16px, 1.1vw, 20px); }
.mh-page-content__body ul, .mh-page-content__body ol { margin: 0 0 24px 24px; color: var(--text-muted); }
.mh-page-content__body ul li,
.mh-page-content__body ol li { margin-bottom: 8px; }
.mh-page-content__body a {
  color: var(--text-dark);
  border-bottom: 1px solid var(--accent);
  transition: color var(--tr);
}
.mh-page-content__body a:hover { color: var(--accent); }
.mh-page-content__body img { margin: 32px 0; max-width: 100%; height: auto; }
.mh-page-content__body blockquote {
  margin: 32px 0;
  padding-left: 24px;
  border-left: 2px solid var(--accent);
  font-size: clamp(18px, 1.4vw, 24px);
  font-weight: 300;
  line-height: 1.55;
  color: var(--text-dark);
}

/* ============================================================
   PORTFOLIO PAGE
   ============================================================ */
.mh-filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 44px; }
.mh-filter-btn {
  height: 36px; padding: 0 20px;
  border: 1px solid var(--border-l);
  background: transparent;
  font-size: var(--sz-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--tr);
}
.mh-filter-btn:hover, .mh-filter-btn.active {
  background: var(--text-dark); color: #fff; border-color: var(--text-dark);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.mh-timeline { display: flex; flex-direction: column; }
.mh-tl-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 40px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-l);
}
.mh-tl-year { font-family: var(--font-display); font-size: var(--sz-h2); font-weight: 300; color: var(--text-muted); }
.mh-tl-title { font-size: var(--sz-h3); font-weight: 400; margin-bottom: 8px; }
.mh-tl-text { font-size: var(--sz-body); color: var(--text-muted); line-height: 1.72; }

/* ============================================================
   BLOG PAGE
   ============================================================ */
.mh-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.mh-blog-card { display: flex; flex-direction: column; gap: 14px; }
.mh-blog-card__img { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-light); }
.mh-blog-card__img img, .mh-blog-card__img .ph { width: 100%; height: 100%; object-fit: cover; }
.mh-blog-cat { font-size: var(--sz-label); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.mh-blog-ttl { font-size: var(--sz-h3); font-weight: 400; line-height: 1.3; }
.mh-blog-exc { font-size: var(--sz-body); color: var(--text-muted); line-height: 1.7; }
.mh-blog-date { font-size: 12px; color: var(--text-muted); letter-spacing: .08em; }

/* ============================================================
   RESPONSIVE — 1440px
   ============================================================ */
@media (max-width: 1440px) {
  :root { --px: 60px; }
}

/* ============================================================
   RESPONSIVE — 1280px  (широкий ноутбук / iPad landscape)
   7-column offset grid → плоская стопка
   ============================================================ */
@media (max-width: 1280px) {
  :root { --px: 48px; --gap-section: 100px; }

  /* ---- About: 7-col → linear stack ---- */
  .mh-about__grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .mh-about__tag   { margin-bottom: 32px; }
  .mh-about__line-1,
  .mh-about__line-2 { display: block; }
  .mh-about__spacer { height: 40px; }
  /* founder: фото + info рядом */
  .mh-about__founder { flex-direction: row; align-items: flex-start; }
  .mh-about__photo-wrap { width: 260px; flex-shrink: 0; }

  /* ---- Mission ---- */
  .mh-mission__grid { display: flex; flex-direction: column; gap: 0; }
  .mh-mission__text { padding-top: 28px; max-width: 560px; }

  /* ---- Trust head ---- */
  .mh-trust__head {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: var(--gap-block);
  }
  .mh-trust__tag   { margin-bottom: 28px; }
  .mh-trust__line-1,
  .mh-trust__line-2 { display: block; }

  /* ---- Portfolio ---- */
  .mh-portfolio__head {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 48px;
  }
  .mh-portfolio__tag  { margin-bottom: 28px; }
  .mh-portfolio__desc { margin-top: 20px; }
  .mh-portfolio__row  { grid-template-columns: repeat(2, 1fr); }
  .mh-portfolio__row .mh-pc:nth-child(3) { margin-top: 0; }

  /* ---- Team ---- */
  .mh-team__head {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 48px;
  }
  .mh-team__tag  { margin-bottom: 28px; }
  .mh-team__text { padding-top: 20px; }
  .mh-team__row  { grid-template-columns: repeat(3, 1fr); }
  .mh-member__photo { width: 100%; height: auto; aspect-ratio: 260/277; }

  /* ---- Media ---- */
  .mh-media__head {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: var(--gap-block);
  }
  .mh-media__tag { margin-bottom: 28px; }
  .mh-media__line-1,
  .mh-media__line-2 { display: block; }

  /* ---- Contact ---- */
  .mh-contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .mh-cta-col  { grid-column: 1; }
  .mh-form-col { grid-column: 2; }

  /* ---- Partners ---- */
  .mh-partners__head {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: var(--gap-block);
  }
  .mh-partners__tag { margin-bottom: 28px; }
  .mh-partners__line-1,
  .mh-partners__line-2 { display: block; }

  /* ---- Stats ---- */
  .mh-stats { grid-template-columns: repeat(2, 1fr); }

  /* ---- Blog ---- */
  .mh-blog-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — 1024px  (tablet landscape)
   ============================================================ */
@media (max-width: 1024px) {
  :root { --px: 40px; --gap-section: 80px; --gap-block: 48px; }

  .mh-header__inner { grid-template-columns: 40px 1fr 100px; }
  .mh-logo svg, .mh-logo img { height: 38px; }

  /* Services */
  .mh-services__head { grid-template-columns: 1fr; }

  /* Technology */
  .mh-tech-pair { grid-template-columns: 1fr; }
  .mh-tech-pair--rev .mh-tech-img { order: 0; }

  /* Trust cards */
  .mh-trust-grid    { grid-template-columns: 1fr; }

  /* Contact */
  .mh-contact__grid { grid-template-columns: 1fr; }
  .mh-cta-col, .mh-form-col { grid-column: 1; }

  /* Footer */
  .mh-footer__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ============================================================
   SINGLE PROJECT PAGE
   ============================================================ */

/* ① Hero */
.mh-proj-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--bg-dark);
  overflow: hidden;
  padding: 0;
}
.mh-proj-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.45);
  transform: scale(1.02);
  transition: transform 8s ease;
}
.mh-proj-hero:hover .mh-proj-hero__bg { transform: scale(1); }
.mh-proj-hero__bg--empty { background: var(--bg-mid); }

.mh-proj-hero__inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 140px;
  padding-bottom: 80px;
  gap: 40px;
}
.mh-proj-hero__content { max-width: 680px; }
.mh-proj-hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 80px);
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.1;
  margin: 20px 0 36px;
}
.mh-proj-hero__specs {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.mh-proj-spec {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mh-proj-spec__lbl {
  font-family: var(--font-ui);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
}
.mh-proj-spec__val {
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--text-light);
}

.mh-proj-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--tr);
}
.mh-proj-hero__back:hover { color: #fff; }

/* ② Gallery */
.mh-proj-gallery { padding: 0; }
.mh-proj-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.mh-proj-img {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  display: block;
}
.mh-proj-img--featured {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 7;
}
.mh-proj-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.mh-proj-img:hover img { transform: scale(1.04); }

.mh-proj-img__hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
  color: #fff;
  opacity: 0;
  transition: opacity var(--tr);
}
.mh-proj-img:hover .mh-proj-img__hover { opacity: 1; }

/* Лейбл ракурса */
.mh-proj-img__label {
  position: absolute;
  bottom: 12px; left: 12px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  pointer-events: none;
}

/* Стиль на карточке портфолио */
.mh-pc__style {
  display: block;
  font-family: var(--font-ui);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 6px;
}

/* ③ Details */
.mh-proj-details__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.mh-proj-details__desc {
  font-family: var(--font-ui);
  font-size: var(--sz-lg);
  color: var(--text-dark);
  line-height: 1.7;
  margin-top: 24px;
}
.mh-proj-details__specs {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 48px;
}
.mh-proj-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-l);
}
.mh-proj-detail-row__lbl {
  font-family: var(--font-ui);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
}
.mh-proj-detail-row__val {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--text-dark);
}

/* ④ Navigation */
.mh-proj-nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding-top: 60px;
  padding-bottom: 60px;
}
.mh-proj-nav__item {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 48%;
  transition: opacity var(--tr);
}
.mh-proj-nav__item:hover { opacity: .7; }
.mh-proj-nav__item--next { margin-left: auto; text-align: right; flex-direction: row-reverse; }
.mh-proj-nav__thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  flex-shrink: 0;
}
.mh-proj-nav__dir {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.mh-proj-nav__name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.5vw, 24px);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.2;
}

/* ⑤ Lightbox */
.mh-lb {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.96);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.mh-lb.open { opacity: 1; pointer-events: all; }

.mh-lb__stage {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mh-lb__img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  transition: opacity .25s ease;
}
.mh-lb__img.loading { opacity: 0; }

.mh-lb__loader {
  position: absolute;
  width: 32px; height: 32px;
  border: 2px solid rgba(255,255,255,.15);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lb-spin .7s linear infinite;
}
.mh-lb__loader[hidden] { display: none; }
@keyframes lb-spin { to { transform: rotate(360deg); } }

.mh-lb__close {
  position: absolute;
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  z-index: 1;
  transition: color var(--tr);
}
.mh-lb__close:hover { color: #fff; }

.mh-lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  transition: color var(--tr);
}
.mh-lb__nav:hover { color: #fff; }
.mh-lb__nav--prev { left: 16px; }
.mh-lb__nav--next { right: 16px; }

.mh-lb__bar {
  position: absolute;
  bottom: 24px;
  left: 0; right: 0;
  text-align: center;
}
.mh-lb__counter {
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgba(255,255,255,.4);
  letter-spacing: .1em;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .mh-proj-details__inner { grid-template-columns: 1fr; gap: 40px; }
  .mh-proj-gallery__grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .mh-proj-hero__inner    { flex-direction: column; align-items: flex-start; }
  .mh-proj-hero__back     { order: -1; }
  .mh-proj-hero__specs    { gap: 24px; }
  .mh-proj-gallery__grid  { grid-template-columns: 1fr; }
  .mh-proj-img--featured  { aspect-ratio: 4 / 3; }
  .mh-proj-nav__inner     { flex-direction: column; align-items: stretch; }
  .mh-proj-nav__item      { max-width: 100%; }
  .mh-proj-nav__item--next { flex-direction: row; text-align: left; margin-left: 0; }
  .mh-lb__nav--prev       { left: 8px; }
  .mh-lb__nav--next       { right: 8px; }
}

/* ============================================================
   RESPONSIVE — 768px  (tablet portrait / large phone)
   ============================================================ */
@media (max-width: 768px) {
  :root { --px: 24px; --gap-section: 60px; --gap-block: 36px; }

  /* Header */
  .mh-header__inner { padding: 0 24px; gap: 12px; }

  /* Hero */
  .mh-hero__cats    { gap: 20px; margin-top: 110px; }
  .mh-hero__body    { padding: 0 24px; }
  .mh-hero__heading { padding-bottom: 52px; }

  /* About — founder: стопка вертикально */
  .mh-about__founder { flex-direction: column; gap: 24px; }
  .mh-about__photo-wrap { width: 100%; max-width: 340px; }

  /* Stats */
  .mh-stats { grid-template-columns: 1fr 1fr; }

  /* Portfolio */
  .mh-portfolio__row { grid-template-columns: 1fr; }
  .mh-portfolio__row .mh-pc:nth-child(3) { margin-top: 0; }

  /* Team */
  .mh-team__row { grid-template-columns: 1fr 1fr; }

  /* Media */
  .mh-logos { padding: 28px 24px; gap: 24px; }

  /* Footer */
  .mh-footer__inner { grid-template-columns: 1fr; gap: 32px; }

  /* Blog */
  .mh-blog-grid { grid-template-columns: 1fr; }

}

/* ============================================================
   RESPONSIVE — 480px  (mobile)
   ============================================================ */
@media (max-width: 480px) {
  :root { --px: 20px; --gap-section: 52px; }

  /* Hero display text */
  .mh-hero__word-1 { font-size: clamp(52px, 18vw, 90px); }
  .mh-hero__word-2 { font-size: clamp(44px, 15vw, 76px); }
  .mh-hero__slogan { font-size: 14px; }

  /* Stats 2×2 */
  .mh-stat { padding: 24px 18px; }
  .mh-stat__val { font-size: clamp(30px, 9vw, 52px); }

  /* Team — 2 cols */
  .mh-team__row { grid-template-columns: 1fr 1fr; }

  /* Trust — single col */
  .mh-trust-grid { grid-template-columns: 1fr; }

  /* Footer */
  .mh-footer__inner { grid-template-columns: 1fr; }

  /* Accordion */
  .mh-acc__name { font-size: clamp(16px, 5vw, 22px); }

  /* Contact */
  .mh-cta-title { font-size: clamp(28px, 9vw, 48px); }
}

/* (burger and nav visible at all breakpoints — handled above) */

/* ============================================================
   PORTFOLIO PAGE
   ============================================================ */

/* Hero */
.mh-pf-hero {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 160px 0 80px;
}
.mh-pf-hero__head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
}
.mh-pf-hero__tag    { grid-column: 1; grid-row: 1; }
.mh-pf-hero__line-1 {
  grid-column: 4/8; grid-row: 1;
  font-size: var(--sz-h1); font-weight: 400; line-height: 1.05; letter-spacing: -.015em;
}
.mh-pf-hero__line-2 {
  grid-column: 2/8; grid-row: 2;
  font-size: var(--sz-h1); font-weight: 400; line-height: 1.05; letter-spacing: -.015em;
  color: var(--text-muted-d);
}
.mh-pf-hero__desc {
  grid-column: 5/8; grid-row: 3;
  font-size: var(--sz-body); line-height: 1.72; color: var(--text-muted-d); margin-top: 40px;
}

/* Filter bar — sticky */
.mh-pf-filter-wrap {
  position: sticky;
  top: 90px;
  z-index: 50;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-l);
}
.mh-pf-filter-wrap .mh-filter-bar { padding: 0; border-bottom: none; }

/* Portfolio grid */
.mh-pg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.mh-pc--wide       { grid-column: span 2; aspect-ratio: 970/553 !important; }
.mh-pc__cat {
  display: inline-block;
  font-size: var(--sz-label); letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.65); margin-bottom: 8px;
}

/* Stats strip — 4 cols */
.mh-pf-stats { padding: 80px 0; }
.mh-stats--row { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   SERVICES PAGE
   ============================================================ */

/* Hero */
.mh-srv-hero {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 160px 0 80px;
}
.mh-srv-hero__head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
}
.mh-srv-hero__tag    { grid-column: 1; grid-row: 1; }
.mh-srv-hero__line-1 {
  grid-column: 3/8; grid-row: 1;
  font-size: var(--sz-h1); font-weight: 400; line-height: 1.05; letter-spacing: -.015em;
}
.mh-srv-hero__line-2 {
  grid-column: 2/8; grid-row: 2;
  font-size: var(--sz-h1); font-weight: 400; line-height: 1.05; letter-spacing: -.015em;
  color: var(--text-muted-d);
}
.mh-srv-hero__desc {
  grid-column: 5/8; grid-row: 3;
  font-size: var(--sz-body); line-height: 1.72; color: var(--text-muted-d); margin-top: 40px;
}

/* Overview cards */
.mh-srv-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-l);
  border: 1px solid var(--border-l);
}
.mh-srv-card {
  background: var(--bg-light);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 260px;
  transition: background var(--tr);
  text-decoration: none;
  color: inherit;
}
.mh-srv-card:hover { background: var(--bg-white); }
.mh-srv-card__num   { font-size: var(--sz-label); letter-spacing: .2em; color: var(--text-muted); }
.mh-srv-card__name  { font-size: var(--sz-h3); font-weight: 400; line-height: 1.25; }
.mh-srv-card__desc  { font-size: var(--sz-body); color: var(--text-muted); line-height: 1.65; flex: 1; }
.mh-srv-card__arrow { font-size: 18px; color: var(--text-muted); transition: transform var(--tr), color var(--tr); margin-top: auto; }
.mh-srv-card:hover .mh-srv-card__arrow { transform: translateX(4px); color: var(--accent); }

/* Service detail sections */
.mh-srv-detail__head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  margin-bottom: var(--gap-block);
}
.mh-srv-detail__tag    { grid-column: 1; grid-row: 1; }
.mh-srv-detail__line-1 {
  grid-column: 4/8; grid-row: 1;
  font-size: var(--sz-h1); font-weight: 400; line-height: 1.05; letter-spacing: -.015em;
}
.mh-srv-detail__line-2 {
  grid-column: 2/8; grid-row: 2;
  font-size: var(--sz-h1); font-weight: 400; line-height: 1.05; letter-spacing: -.015em;
  color: var(--text-muted);
}
.mh-srv-detail__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.mh-srv-detail__text { display: flex; flex-direction: column; justify-content: center; gap: 0; }

/* Features grid — 2-колоночный вариант trust-grid (для page-service-detail) */
.mh-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-l);
  border: 1px solid var(--border-l);
}
@media (max-width: 768px) { .mh-features-grid { grid-template-columns: 1fr; } }

/* Hero одиночного направления — меньше padding чем у /services/ overview */
.mh-srv-hero--single { padding: 140px 0 80px; }
@media (max-width: 768px) { .mh-srv-hero--single { padding: 100px 0 50px; } }

/* Контактные офисы (page-contact) */
.mh-offices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-l);
  border: 1px solid var(--border-l);
}
.mh-office-card {
  background: var(--bg-white);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background var(--tr);
}
.mh-office-card:hover { background: var(--bg-light); }
.mh-office-card .mh-tag { align-self: flex-start; margin-bottom: 16px; }
.mh-office-card__title {
  font-size: var(--sz-h3);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 8px;
}
.mh-office-card__phone {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 300;
  letter-spacing: -.01em;
  color: var(--text-dark);
  text-decoration: none;
  margin: 8px 0 12px;
  transition: color var(--tr);
}
.mh-office-card__phone:hover { color: var(--accent); }
.mh-office-card__addr {
  font-size: var(--sz-body);
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}
.mh-office-card__hours {
  font-size: var(--sz-sm);
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin: 16px 0 0;
}
@media (max-width: 768px) { .mh-offices { grid-template-columns: 1fr; } }

/* ============================================================
   EDITORIAL PROJECT PAGE  (single-portfolio.php redesign)
   ============================================================ */

/* ─── Hero: editorial variant ───────────────────────────────── */
.mh-proj-hero.mh-proj-hero--editorial {
  min-height: 0;
  overflow: hidden;
}
.mh-proj-hero__img-wrap {
  display: block;
  width: 100%;
  height: 72vh;
  min-height: 480px;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  text-decoration: none;
}
.mh-proj-hero__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 8s ease;
}
.mh-proj-hero--editorial:hover .mh-proj-hero__img-wrap img { transform: scale(1.03); }
.mh-proj-hero__img-wrap--empty {
  background: var(--bg-mid);
  height: 72vh;
  cursor: default;
}
.mh-proj-hero__img-hover {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.22);
  display: grid;
  place-items: center;
  color: #fff;
  opacity: 0;
  transition: opacity var(--tr);
}
.mh-proj-hero__img-wrap:hover .mh-proj-hero__img-hover { opacity: 1; }

.mh-proj-hero__controls {
  position: absolute;
  top: 32px;
  left: var(--px);
  right: var(--px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

/* ─── Editorial title block ─────────────────────────────────── */
.mh-proj-title-block {
  background: var(--bg-white);
  padding: 64px 0 56px;
}
.mh-proj-editorial-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  margin: 0 0 36px;
}
.mh-proj-specs-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 8px;
  font-family: var(--font-ui);
  font-size: var(--sz-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}
.mh-proj-specs-line__sep {
  display: inline-block;
  padding: 0 14px;
  color: var(--accent);
  letter-spacing: 0;
}

/* ─── Editorial gallery ──────────────────────────────────────── */
.mh-proj-editorial-gallery { background: var(--bg-white); }

.mh-proj-egallery__full { width: 100%; }
.mh-proj-egallery__mt  { margin-top: 4px; }

.mh-proj-egallery__item--full {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 7;
}

.mh-proj-egallery__pair {
  display: grid;
  grid-template-columns: 62fr 36fr;
  gap: 4px;
  margin-top: 4px;
  aspect-ratio: 16 / 9;
}
.mh-proj-egallery__pair.is-reversed { grid-template-columns: 36fr 62fr; }
.mh-proj-egallery__pair .mh-proj-egallery__item--l,
.mh-proj-egallery__pair .mh-proj-egallery__item--s { height: 100%; }

.mh-proj-egallery__3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 4px;
}
.mh-proj-egallery__item--grid {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.mh-proj-egallery__item {
  display: block;
  position: relative;
  overflow: hidden;
}
.mh-proj-egallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s ease;
}
.mh-proj-egallery__item:hover img { transform: scale(1.04); }
.mh-proj-egallery__item:hover .mh-proj-img__hover { opacity: 1; }

/* Pull quote */
.mh-proj-egallery__pullquote { padding: 80px 0; }
.mh-proj-pullquote {
  border: none;
  border-left: 2px solid var(--accent);
  padding: 0 0 0 40px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 30px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-dark);
  max-width: 820px;
}

/* ─── Details (editorial) ────────────────────────────────────── */
.mh-proj-details-editorial { }
.mh-proj-details-editorial__inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 80px;
  align-items: start;
}
.mh-proj-details-editorial__desc {
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.75;
  color: var(--text-dark);
}
.mh-proj-details-editorial__specs { display: flex; flex-direction: column; }

/* ─── Navigation (editorial 50/50) ──────────────────────────── */
.mh-proj-nav-editorial {
  display: flex;
  height: 360px;
  overflow: hidden;
}
.mh-proj-nav-editorial__item {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  background: var(--bg-mid);
}
.mh-proj-nav-editorial__item:only-child { flex: 0 0 50%; }
.mh-proj-nav-editorial__item + .mh-proj-nav-editorial__item {
  border-left: 1px solid rgba(255,255,255,.08);
}
.mh-proj-nav-editorial__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.38);
  transition: transform .7s ease, filter .4s ease;
}
.mh-proj-nav-editorial__item:hover .mh-proj-nav-editorial__bg {
  transform: scale(1.06);
  filter: brightness(.52);
}
.mh-proj-nav-editorial__content {
  position: relative;
  z-index: 1;
  padding: 32px 40px;
  color: #fff;
}
.mh-proj-nav-editorial__content.is-right { text-align: right; margin-left: auto; }
.mh-proj-nav-editorial__dir {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.42);
  margin-bottom: 12px;
}
.mh-proj-nav-editorial__name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .mh-proj-details-editorial__inner { grid-template-columns: 1fr; gap: 40px; }
  .mh-proj-egallery__pair { aspect-ratio: auto; height: 50vw; max-height: 500px; }
}
@media (max-width: 767px) {
  .mh-proj-hero__img-wrap { height: 56vw; min-height: 260px; }
  .mh-proj-hero__img-wrap--empty { height: 56vw; }
  .mh-proj-title-block { padding: 40px 0 36px; }
  .mh-proj-editorial-title { font-size: clamp(36px, 10vw, 72px); margin-bottom: 24px; }
  .mh-proj-egallery__item--full { aspect-ratio: 4 / 3; }
  .mh-proj-egallery__pair { grid-template-columns: 1fr; height: auto; max-height: none; }
  .mh-proj-egallery__pair .mh-proj-egallery__item--l,
  .mh-proj-egallery__pair .mh-proj-egallery__item--s { aspect-ratio: 4/3; height: auto; }
  .mh-proj-egallery__3col { grid-template-columns: 1fr 1fr; }
  .mh-proj-egallery__pullquote { padding: 48px 0; }
  .mh-proj-pullquote { font-size: 17px; padding-left: 24px; }
  .mh-proj-nav-editorial { flex-direction: column; height: auto; }
  .mh-proj-nav-editorial__item { height: 220px; flex: none; }
  .mh-proj-nav-editorial__item:only-child { flex: none; width: 100%; }
  .mh-proj-nav-editorial__item + .mh-proj-nav-editorial__item {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .mh-proj-hero__controls { top: 20px; }
}

/* Process steps — 3-колоночный вариант (для /about/ философия) */
.mh-steps.mh-steps--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .mh-steps.mh-steps--3 { grid-template-columns: 1fr; } }

/* Steps — 3-колоночная вариация (для /about/ философии, vs 6 в /services/) */
.mh-steps.mh-steps--3 { grid-template-columns: repeat(3, 1fr); }

/* ============================================================
   SERVICES SPLIT-SCREEN  (section-services.php redesign)
   Range Developments style: sticky image left + list right
   ============================================================ */
.mh-services-split { padding: 0; background: var(--bg-white); }

.mh-srv-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* LEFT: sticky image panel */
.mh-srv-split__img {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-dark);
}
.mh-srv-split__photo {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .55s ease;
}
.mh-srv-split__photo.is-visible { opacity: 1; }
.mh-srv-split__photo img { width:100%; height:100%; object-fit:cover; display:block; }
.mh-srv-split__photo-ph { width:100%; height:100%; background: var(--bg-mid); }

/* RIGHT: content — heading сейчас вынесен в .mh-srv-section-head, осталась accordion list */
.mh-srv-split__right {
  padding: clamp(40px, 5vw, 80px) var(--gap-section);
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  min-height: 100vh;
  justify-content: center;
}
/* Editorial section-level heading (full-width ABOVE the split-screen) */
.mh-srv-section-head {
  padding-top: var(--gap-section);
  padding-bottom: clamp(56px, 6vw, 96px);
  background: var(--bg-white);
}
.mh-srv-section-head__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  row-gap: 0;
}
.mh-srv-section-head__grid .mh-tag { grid-column: 1; grid-row: 1; align-self: end; padding-bottom: 14px; }
.mh-srv-section-head__line-1 {
  grid-column: 2/8; grid-row: 1;
  font-family: var(--font-display);
  font-size: var(--sz-h1);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.015em;
  color: var(--text-dark);
  margin: 0;
}
.mh-srv-section-head__line-2 {
  grid-column: 4/8; grid-row: 2;
  font-family: var(--font-display);
  font-size: var(--sz-h1);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.015em;
  color: var(--text-muted);
  padding-top: .08em;
  margin: 0;
}

/* Accordion list — каждый item расширяется на месте */
.mh-srv-split__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.mh-srv-split__item {
  border-top: 1px solid var(--border-l);
  transition: background .35s ease;
}
.mh-srv-split__item:last-child { border-bottom: 1px solid var(--border-l); }

.mh-srv-split__item-toggle {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: clamp(18px, 1.6vw, 26px) 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: padding-left .35s ease;
}
.mh-srv-split__item:hover .mh-srv-split__item-toggle,
.mh-srv-split__item.is-active .mh-srv-split__item-toggle { padding-left: 8px; }

.mh-srv-split__item-num {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--text-muted);
  transition: color .25s ease;
}
.mh-srv-split__item.is-active .mh-srv-split__item-num { color: var(--accent); }

.mh-srv-split__item-name {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 36px);
  font-weight: 400;
  letter-spacing: -.012em;
  line-height: 1.1;
  color: var(--text-dark);
  transition: color .25s ease;
}
.mh-srv-split__item-arr {
  color: rgba(26,26,26,.22);
  transition: color .25s ease, transform .25s ease;
}
.mh-srv-split__item.is-active .mh-srv-split__item-arr { color: var(--accent); transform: translateX(4px); }

/* Expandable panel — описание + ссылка.
   Один inner-wrapper (чтобы grid-template-rows: 0fr/1fr корректно clip'нул всё). */
.mh-srv-split__item-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s cubic-bezier(.22,.61,.36,1);
  overflow: hidden;
}
.mh-srv-split__item.is-active .mh-srv-split__item-panel {
  grid-template-rows: 1fr;
}
.mh-srv-split__item-panel-inner {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.mh-srv-split__item-desc {
  font-family: var(--font-ui);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 0 22px;
  padding: 4px 0 0 64px;
}
.mh-srv-split__item-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 64px;
  margin-bottom: clamp(18px, 1.6vw, 26px);
  padding-bottom: 4px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--text-dark);
  transition: color .25s ease, border-color .25s ease, gap .25s ease;
}
.mh-srv-split__item-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  gap: 12px;
}

/* Fallback для браузеров без grid-template-rows interpolation */
@supports not (grid-template-rows: 0fr) {
  .mh-srv-split__item-panel { display: block; max-height: 0; transition: max-height .45s ease; }
  .mh-srv-split__item.is-active .mh-srv-split__item-panel { max-height: 600px; }
}

@media (max-width: 1024px) {
  .mh-srv-split { grid-template-columns: 1fr; }
  .mh-srv-split__img { position: relative; height: 56vw; min-height: 320px; top: 0; }
  .mh-srv-split__photo { position: absolute; }
  .mh-srv-split__right { min-height: auto; padding: var(--gap-section) var(--px); }
}
@media (max-width: 767px) {
  .mh-srv-split__item-toggle { grid-template-columns: 32px 1fr auto; gap: 14px; }
  .mh-srv-split__item-desc,
  .mh-srv-split__item-link { padding-left: 46px; margin-left: 46px; }
  .mh-srv-split__item-link { margin-left: 0; padding-left: 46px; }
}

/* ============================================================
   SERVICE DETAIL — PHOTO HERO  (page-service-detail.php)
   ============================================================ */
@keyframes mhSrvHeroEnter {
  0%   { transform: scale(1.22); filter: brightness(.45) blur(8px); }
  60%  { filter: brightness(.62) blur(2px); }
  100% { transform: scale(1.0);  filter: brightness(.72) blur(0); }
}
@keyframes mhSrvHeroTextRise {
  0%   { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   PROCESS STEPS — media variant (sketch → final cross-fade)
   ============================================================ */
/* Когда в процессе есть media — секция становится светлой */
.mh-srv-process:has(.mh-steps--with-media) {
  background: var(--bg-white);
  color: var(--text-dark);
}
.mh-srv-process:has(.mh-steps--with-media) .mh-srv-process__title { color: var(--text-dark); }
.mh-srv-process:has(.mh-steps--with-media) .mh-srv-process__title span:last-child { color: var(--text-muted); }
.mh-srv-process:has(.mh-steps--with-media) .mh-tag--d {
  background: rgba(0,0,0,.05);
  color: var(--text-muted);
}

.mh-steps.mh-steps--with-media {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 96px;
  border-top: none;
}
.mh-steps.mh-steps--with-media .mh-step--has-media {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 0;
  border-right: none;
  border: none;
}
.mh-steps.mh-steps--with-media .mh-step--has-media:nth-child(even) { direction: rtl; }
.mh-steps.mh-steps--with-media .mh-step--has-media:nth-child(even) > * { direction: ltr; }

.mh-step__media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-light);
  border-radius: 2px;
}
/* ============================================================
   SCROLLY PROCESS — единая sticky media + список шагов
   Анимация sketch→render→final управляется JS-прогрессом скролла
   ============================================================ */
.mh-srv-process--scrolly { background: var(--bg-white); color: var(--text-dark); }
.mh-srv-process--scrolly .mh-srv-process__title { color: var(--text-dark); }
.mh-srv-process--scrolly .mh-srv-process__title span:last-child { color: var(--text-muted); }
.mh-srv-process--scrolly .mh-tag--d {
  background: rgba(0,0,0,.05);
  color: var(--text-muted);
}

.mh-scrolly {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: flex-start;
  margin-top: clamp(48px, 6vw, 80px);
}

/* Левая колонка — sticky media */
.mh-scrolly__media-col {
  position: sticky;
  top: clamp(60px, 8vh, 100px);
  align-self: start;
  height: fit-content;
}
.mh-scrolly__media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-light);
}
.mh-scrolly__layer {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  /* Быстрый crossfade — 0.5s, snap к активному кадру */
  transition: opacity .55s cubic-bezier(.22,.61,.36,1);
  will-change: opacity;
}
/* Первый слой виден по дефолту до скролла */
.mh-scrolly__layer[data-step="1"] { opacity: 1; }

/* Stage badge — переключается через data-active-step */
.mh-scrolly__stage-badge {
  position: absolute;
  bottom: 20px;
  left: 24px;
  z-index: 5;
  padding: 7px 16px;
  background: rgba(255,255,255,.96);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-dark);
  overflow: hidden;
  height: 16px;
  display: flex;
  align-items: center;
  min-width: 140px;
}
.mh-scrolly__stage-label {
  position: absolute;
  left: 16px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.22,.61,.36,1);
  white-space: nowrap;
}
.mh-scrolly__stage-label[data-step="1"] { opacity: 1; transform: translateY(0); }
/* JS управляет data-active-step на родителе */
.mh-scrolly[data-active-step="1"] .mh-scrolly__stage-label[data-step="1"],
.mh-scrolly[data-active-step="2"] .mh-scrolly__stage-label[data-step="2"],
.mh-scrolly[data-active-step="3"] .mh-scrolly__stage-label[data-step="3"],
.mh-scrolly[data-active-step="4"] .mh-scrolly__stage-label[data-step="4"],
.mh-scrolly[data-active-step="5"] .mh-scrolly__stage-label[data-step="5"],
.mh-scrolly[data-active-step="6"] .mh-scrolly__stage-label[data-step="6"] {
  opacity: 1;
  transform: translateY(0);
}
.mh-scrolly:not([data-active-step="1"]) .mh-scrolly__stage-label[data-step="1"] {
  opacity: 0;
  transform: translateY(-16px);
}

/* Тонкая шкала прогресса под media */
.mh-scrolly__progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,.25);
  z-index: 4;
}
.mh-scrolly__progress-fill {
  display: block;
  height: 100%;
  background: #fff;
  width: 0%;
  transition: width .6s cubic-bezier(.22,.61,.36,1);
}

/* Правая колонка — список шагов */
.mh-scrolly__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(80px, 12vh, 140px);
  padding: clamp(20px, 5vh, 60px) 0 clamp(80px, 12vh, 140px);
}
.mh-scrolly__step {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 540px;
  /* Все шаги читаемы по умолчанию (0.65), активный выделяется (1.0) */
  opacity: .65;
  transition: opacity .6s cubic-bezier(.22,.61,.36,1);
}
.mh-scrolly__step.is-active { opacity: 1; }
.mh-scrolly__step.is-active + .mh-scrolly__step { opacity: .8; }
.mh-scrolly__step.is-active ~ .mh-scrolly__step { opacity: .65; }
.mh-scrolly__step.is-active ~ .mh-scrolly__step.is-active { opacity: 1; }

.mh-scrolly__step-num {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--text-dark);
  display: block;
  text-transform: uppercase;
  opacity: .55;
}
.mh-scrolly__step.is-active .mh-scrolly__step-num { opacity: .85; }
.mh-scrolly__step-name {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.018em;
  color: var(--text-dark);
  margin: 0;
}
.mh-scrolly__step-desc {
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.72;
  color: var(--text-muted);
  margin: 0;
}

/* ── Process title — 2 строки как на главной (mh-portfolio__line-1/2) ── */
.mh-srv-process--scrolly .mh-srv-process__title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-display);
  line-height: 1.0;
  letter-spacing: -.025em;
  margin: 20px 0 0;
}
.mh-srv-process__title-l1 {
  font-size: clamp(40px, 5.6vw, 92px);
  font-weight: 300;
  color: var(--text-dark);
}
.mh-srv-process__title-l2 {
  font-size: clamp(40px, 5.6vw, 92px);
  font-weight: 200;
  color: var(--text-muted);
  opacity: .85;
}

@media (max-width: 900px) {
  .mh-scrolly { grid-template-columns: 1fr; gap: 32px; }
  .mh-scrolly__media-col { position: static; }
  .mh-scrolly__media { aspect-ratio: 4/3; }
  .mh-scrolly__steps { gap: 56px; padding: 32px 0 56px; }
}

/* ============================================================
   Старый 3-stage continuous animation (sketch → render → final)
   Используется как fallback на других страницах
   ============================================================ */
.mh-step__media-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 1.6s cubic-bezier(.22,.61,.36,1),
              transform 6s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.mh-step__media-img--sketch  { z-index: 1; opacity: 1; transform: scale(1.0); }
.mh-step__media-img--render  { z-index: 2; opacity: 0; transform: scale(1.02); }
.mh-step__media-img--final   { z-index: 3; opacity: 0; transform: scale(1.04); }

/* В viewport: запуск 3-стадийной анимации с staggered delays */
.mh-steps.mh-steps--with-media .mh-step--has-media.is-in-view .mh-step__media-img--sketch {
  /* Sketch остаётся видимым внизу — render и final его накрывают */
  transform: scale(1.0);
}
.mh-steps.mh-steps--with-media .mh-step--has-media.is-in-view .mh-step__media-img--render {
  opacity: 1;
  transform: scale(1.0);
  transition-delay: 1.0s;  /* пауза на sketch перед появлением render */
}
.mh-steps.mh-steps--with-media .mh-step--has-media.is-in-view .mh-step__media-img--final {
  opacity: 1;
  transform: scale(1.0);
  transition-delay: 2.6s;  /* пауза на render перед появлением final */
}

/* ── Stage label ticker — единый блок «Чертёж → Рендер → Реализация» ── */
.mh-step__media-stage {
  position: absolute;
  bottom: 20px;
  left: 24px;
  z-index: 4;
  padding: 5px 12px;
  background: rgba(255,255,255,.94);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-dark);
  overflow: hidden;
  height: 14px;
  display: flex;
  align-items: center;
  min-width: 92px;
}
.mh-step__media-stage-label {
  position: absolute;
  left: 12px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.22,.61,.36,1);
  white-space: nowrap;
}
/* Initial: показываем "Чертёж" */
.mh-step__media-stage-label[data-stage="sketch"] { opacity: 1; transform: translateY(0); }

/* В viewport — sequential reveal */
.mh-steps.mh-steps--with-media .mh-step--has-media.is-in-view .mh-step__media-stage-label[data-stage="sketch"] {
  opacity: 0; transform: translateY(-14px);
  transition-delay: 1.0s;
}
.mh-steps.mh-steps--with-media .mh-step--has-media.is-in-view .mh-step__media-stage-label[data-stage="render"] {
  opacity: 1; transform: translateY(0);
  transition-delay: 1.1s;
}
.mh-steps.mh-steps--with-media .mh-step--has-media.is-in-view .mh-step__media-stage-label[data-stage="render"] {
  /* Удерживаем render label, затем сдвигаем вверх когда придёт final */
}
/* Поверх render появляется final — двухфазная анимация для рендер-лейбла */
.mh-steps.mh-steps--with-media .mh-step--has-media.is-in-view.is-stage-final .mh-step__media-stage-label[data-stage="render"] {
  opacity: 0; transform: translateY(-14px);
}
.mh-steps.mh-steps--with-media .mh-step--has-media.is-in-view.is-stage-final .mh-step__media-stage-label[data-stage="final"] {
  opacity: 1; transform: translateY(0);
}

.mh-steps.mh-steps--with-media .mh-step--has-media .mh-step__txt { padding: 0 24px; }
.mh-steps.mh-steps--with-media .mh-step--has-media .mh-step__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.6vw, 28px);
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: .04em;
  margin-bottom: 24px;
  opacity: .6;
}
.mh-steps.mh-steps--with-media .mh-step--has-media .mh-step__name {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--text-dark);
  margin: 0 0 20px;
}
.mh-steps.mh-steps--with-media .mh-step--has-media .mh-step__desc {
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.72;
  color: var(--text-muted);
  max-width: 520px;
}

@media (max-width: 900px) {
  .mh-steps.mh-steps--with-media .mh-step--has-media { grid-template-columns: 1fr; gap: 24px; }
  .mh-steps.mh-steps--with-media .mh-step--has-media:nth-child(even) { direction: ltr; }
  .mh-steps.mh-steps--with-media .mh-step--has-media .mh-step__txt { padding: 0; }
  .mh-steps.mh-steps--with-media { row-gap: 64px; }
}
.mh-srv-hero--photo {
  position: relative;
  min-height: 80vh;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--bg-dark);
}
.mh-srv-hero__photo-img {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  transform-origin: center;
  animation: mhSrvHeroEnter 3.4s cubic-bezier(.22,.61,.36,1) forwards;
  will-change: transform, filter;
  pointer-events: none;
}
.mh-srv-hero__photo-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 var(--px) 88px;
}
.mh-srv-hero__photo-overlay .mh-tag {
  margin-bottom: 24px;
  opacity: 0;
  animation: mhSrvHeroTextRise 1s cubic-bezier(.22,.61,.36,1) 1.2s forwards;
}
.mh-srv-hero__photo-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.2vw, 104px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.025em;
  color: #fff;
  margin: 0;
  opacity: 0;
  animation: mhSrvHeroTextRise 1.2s cubic-bezier(.22,.61,.36,1) 1.5s forwards;
}
.mh-srv-hero__photo-sub {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 32px);
  font-weight: 300;
  letter-spacing: .005em;
  opacity: .72;
  margin-top: 14px;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .mh-srv-hero__photo-sub { white-space: normal; }
}
@media (max-width: 767px) {
  .mh-srv-hero--photo { min-height: 65vw; }
  .mh-srv-hero__photo-overlay { padding-bottom: 48px; }
}

/* ============================================================
   VIVRE-STYLE PROJECT GALLERY  (single-portfolio.php)
   ============================================================ */
.mh-proj-story { background: var(--bg-white); }

.mh-proj-story__intro {
  padding: 0 calc(var(--px) * 2) var(--gap-section);
  max-width: 1920px;
  margin: 0 auto;
}
.mh-proj-story__intro-p {
  font-size: clamp(15px, 1.2vw, 19px);
  line-height: 1.8;
  color: var(--text-dark);
  max-width: 680px;
}

.mh-proj-story__grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}
.mh-proj-story__cell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.mh-proj-story__cell img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .65s ease;
}
.mh-proj-story__cell:hover img { transform: scale(1.04); }
.mh-proj-story__cell:hover .mh-proj-img__hover { opacity: 1; }

.mh-proj-story__quote {
  padding: var(--gap-section) calc(var(--px) * 2);
  max-width: 1920px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 34px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.45;
  letter-spacing: -.01em;
  color: var(--text-dark);
  border: none;
}

.mh-proj-story__stats {
  display: flex;
  gap: 0;
  padding: var(--gap-section) calc(var(--px) * 2);
  max-width: 1920px;
  margin: 0 auto;
  border-top: 1px solid var(--border-l);
  border-bottom: 1px solid var(--border-l);
}
.mh-proj-story__stat { flex: 1; }
.mh-proj-story__stat + .mh-proj-story__stat {
  border-left: 1px solid var(--border-l);
  padding-left: calc(var(--px));
}
.mh-proj-story__stat-val {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.5vw, 88px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--text-dark);
}
.mh-proj-story__stat-lbl {
  font-size: var(--sz-label);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 10px;
}

.mh-proj-story__full { width: 100%; overflow: hidden; margin-top: 3px; }
.mh-proj-story__full img { width:100%; display:block; aspect-ratio:16/7; object-fit:cover; }

.mh-proj-story__grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 3px;
}
.mh-proj-story__grid3 .mh-proj-story__cell { aspect-ratio: 1; }

@media (max-width: 1200px) {
  .mh-proj-story__intro { padding: 0 var(--px) var(--gap-section); }
  .mh-proj-story__quote { padding: var(--gap-section) var(--px); }
  .mh-proj-story__stats { padding: var(--gap-section) var(--px); }
}
@media (max-width: 767px) {
  .mh-proj-story__grid2 { grid-template-columns: 1fr; }
  .mh-proj-story__grid3 { grid-template-columns: 1fr 1fr; }
  .mh-proj-story__stat-val { font-size: clamp(36px, 12vw, 60px); }
  .mh-proj-story__stats { flex-direction: column; gap: 32px; }
  .mh-proj-story__stat + .mh-proj-story__stat { border-left: none; border-top: 1px solid var(--border-l); padding-left: 0; padding-top: 32px; }
  .mh-proj-story__full img { aspect-ratio: 4/3; }
}
@media (max-width: 1024px) { .mh-steps.mh-steps--3 { grid-template-columns: 1fr; } }

/* Контакты: 2 офиса side-by-side */
.mh-offices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-l);
  border: 1px solid var(--border-l);
}
.mh-office-card {
  background: var(--bg-white);
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mh-office-card__title {
  font-size: var(--sz-h3); font-weight: 400; line-height: 1.25;
  margin: 12px 0 8px;
}
.mh-office-card__phone {
  font-size: var(--sz-h2); font-weight: 300;
  color: var(--text-dark); text-decoration: none;
  letter-spacing: 0.01em;
  transition: color var(--tr);
}
.mh-office-card__phone:hover { color: var(--accent); }
.mh-office-card__addr {
  font-size: var(--sz-body); color: var(--text-muted); line-height: 1.65;
}
.mh-office-card__hours {
  font-size: var(--sz-sm); color: var(--text-muted); letter-spacing: 0.04em;
  border-top: 1px solid var(--border-l); padding-top: 16px; margin-top: 8px;
}
@media (max-width: 768px) {
  .mh-offices { grid-template-columns: 1fr; }
  .mh-office-card { padding: 40px 28px; }
}

.mh-srv-detail--rev .mh-srv-detail__img { order: -1; }
.mh-srv-detail__img { overflow: hidden; }
.mh-srv-detail__img .ph,
.mh-srv-detail__img img { width: 100%; display: block; transition: transform var(--tr-slow); }
.mh-srv-detail__body:hover .mh-srv-detail__img .ph,
.mh-srv-detail__body:hover .mh-srv-detail__img img { transform: scale(1.04); }
.mh-srv-detail__desc {
  font-size: var(--sz-lg); line-height: 1.72; color: var(--text-muted); margin-bottom: 32px;
}
.mh-srv-detail__list {
  display: flex; flex-direction: column; gap: 14px;
}
.mh-srv-detail__list li {
  font-size: var(--sz-body); padding-left: 20px; position: relative; line-height: 1.5;
}
.mh-srv-detail__list li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }

/* Process — dark */
.mh-srv-process { background: var(--bg-dark); color: var(--text-light); padding: var(--gap-section) 0; }
.mh-srv-process__head { margin-bottom: var(--gap-block); }
.mh-srv-process__title { font-size: var(--sz-h1); font-weight: 400; margin-top: 20px; line-height: 1.1; }
.mh-srv-process__title span { display: block; }
.mh-srv-process__title span:last-child { color: var(--text-muted-d); }
.mh-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--border-d);
}
.mh-step {
  padding: 40px 28px 40px 0;
  border-right: 1px solid var(--border-d);
}
.mh-step:last-child { border-right: none; }
.mh-step__num  { display: block; font-size: var(--sz-label); letter-spacing: .2em; color: var(--text-muted-d); margin-bottom: 24px; }
.mh-step__name { font-size: var(--sz-h3); font-weight: 400; margin-bottom: 12px; line-height: 1.25; }
.mh-step__desc { font-size: var(--sz-body); color: var(--text-muted-d); line-height: 1.65; }

/* Tech section */
.mh-srv-tech__head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  margin-bottom: var(--gap-block);
}
.mh-srv-tech__tag    { grid-column: 1; }
.mh-srv-tech__line-1 { grid-column: 4/8; font-size: var(--sz-h1); font-weight: 400; line-height: 1.05; letter-spacing: -.015em; }
.mh-srv-tech__line-2 { grid-column: 2/8; font-size: var(--sz-h1); font-weight: 400; line-height: 1.05; letter-spacing: -.015em; color: var(--text-muted); }
.mh-srv-tech__body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.mh-srv-tech__desc { font-size: var(--sz-lg); line-height: 1.72; color: var(--text-muted); }

/* ============================================================
   RESPONSIVE — PORTFOLIO + SERVICES pages
   ============================================================ */
@media (max-width: 1280px) {
  .mh-pf-hero__head,
  .mh-srv-hero__head,
  .mh-srv-detail__head,
  .mh-srv-tech__head { display: flex; flex-direction: column; gap: 8px; }

  .mh-pg-grid { grid-template-columns: repeat(2, 1fr); }
  .mh-pc--wide { grid-column: span 2; }

  .mh-srv-cards { grid-template-columns: repeat(2, 1fr); }

  .mh-srv-detail__body { grid-template-columns: 1fr; gap: 40px; }
  .mh-srv-detail--rev .mh-srv-detail__img { order: 0; }

  .mh-srv-tech__body { grid-template-columns: 1fr; }

  .mh-steps { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .mh-pf-filter-wrap { top: 70px; }
  .mh-filter-bar { overflow-x: auto; flex-wrap: nowrap; }

  .mh-pg-grid { grid-template-columns: 1fr; }
  .mh-pc--wide { grid-column: span 1; aspect-ratio: 485/553 !important; }

  .mh-srv-cards { grid-template-columns: 1fr; }

  .mh-stats--row { grid-template-columns: repeat(2, 1fr); }

  .mh-steps { grid-template-columns: 1fr; border-top: none; }
  .mh-step  { border-right: none; border-top: 1px solid var(--border-d); padding: 32px 0; }
}

@media (max-width: 480px) {
  .mh-pf-hero { padding: 120px 0 60px; }
  .mh-srv-hero { padding: 120px 0 60px; }
  .mh-stats--row { grid-template-columns: 1fr; }
}

/* ============================================================
   MOBILE: финальные доводки для новых секций (после деплоя)
   ============================================================ */
@media (max-width: 768px) {
  /* Marquee — меньше gap, ниже */
  .mh-marquee { padding: 24px 0; margin-top: 40px; }
  .mh-marquee__track { gap: 48px; }
  .mh-marquee__item { height: 36px; }
  .mh-marquee__item img { max-height: 36px; }

  /* Direction cards — body показывать всегда (hover нет на touch) */
  .mh-acc__item .mh-acc__body { max-height: none !important; }
  .mh-acc__expand { grid-template-columns: 1fr; }
  .mh-acc__img { aspect-ratio: 16/10; }
  .mh-acc__inner { padding: 24px; }

  /* Trust grid — стек */
  .mh-trust-grid { grid-template-columns: 1fr; }
  .mh-tc { padding: 28px; min-height: auto; }

  /* Portfolio — без offset */
  .mh-portfolio__row { grid-template-columns: 1fr; }
  .mh-pc.mh-anim-film-card { aspect-ratio: 16/10; }

  /* Partners */
  .mh-partner-card { min-height: 140px; padding: 24px 16px; }

  /* BG lines — выключить вертикальные на узких экранах (визуально мешают) */
  .mh-bglines--v { display: none; }
  .mh-bglines--h span:nth-child(n+4) { display: none; }
}
@media (max-width: 480px) {
  .mh-marquee__track { gap: 32px; }
  .mh-acc__name { font-size: 18px; }
  .mh-acc__num { display: none; }
}

/* ============================================================
   PORTFOLIO ARCHIVE — premium filters + sort + grid
   ============================================================ */
.mh-portfolio-hero {
  padding: clamp(120px, 14vw, 200px) 0 clamp(60px, 7vw, 100px);
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-l);
}
.mh-portfolio-hero__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.mh-portfolio-hero__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7.2vw, 128px);
  font-weight: 200;
  line-height: .92;
  letter-spacing: -.04em;
  margin: 0 0 28px;
  color: var(--text-dark);
}
.mh-portfolio-hero__lead {
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0;
}

/* ── Sticky toolbar ── */
.mh-pf-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-l);
}
.mh-pf-toolbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px var(--px);
  flex-wrap: wrap;
}
.mh-pf-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mh-pf-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 9px 18px;
  border: 1px solid var(--border-l);
  background: transparent;
  border-radius: 100px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
  letter-spacing: .005em;
}
.mh-pf-chip:hover { background: var(--bg-light); border-color: var(--text-dark); }
.mh-pf-chip.is-active { background: var(--text-dark); border-color: var(--text-dark); color: #fff; }
.mh-pf-chip__count { font-weight: 400; opacity: .6; font-variant-numeric: tabular-nums; }
.mh-pf-chip.is-active .mh-pf-chip__count { opacity: .55; }

.mh-pf-sort {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mh-pf-sort__lbl {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.mh-pf-sort__select {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--border-l);
  background: transparent;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'><path d='M1 1l4 4 4-4' stroke='%23222' stroke-width='1.4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  border-radius: 100px;
  padding: 9px 36px 9px 16px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: border-color .25s ease;
}
.mh-pf-sort__select:hover { border-color: var(--text-dark); }
.mh-pf-sort__select:focus { outline: none; border-color: var(--text-dark); }

/* ── Results ── */
.mh-pf-results { padding-top: clamp(40px, 5vw, 64px) !important; }

.mh-pf-counter {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 32px;
}
.mh-pf-counter__num { font-variant-numeric: tabular-nums; }

/* Asymmetric grid в стиле fluid.glass — 12-col с тонким offset,
   но карточки занимают по 5-6 колонок (≤ ~38% ширины экрана = ~720px на 1920)
   так aspect 3/4 даёт ~960px высоту вместо безумных 1200px */
.mh-pf-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(64px, 7vw, 112px) clamp(32px, 4vw, 72px);
  align-items: start;
}
.mh-pf-card { grid-column: span 5; max-width: 720px; }
.mh-pf-card--p1 { grid-column: 1 / span 5; transform: translateY(0); }
.mh-pf-card--p2 { grid-column: 8 / span 5; transform: translateY(120px); }
.mh-pf-card--p3 { grid-column: 2 / span 5; transform: translateY(0); }
.mh-pf-card--p4 { grid-column: 8 / span 4; transform: translateY(80px); }
.mh-pf-card--p5 { grid-column: 1 / span 6; transform: translateY(0); }

@media (max-width: 1100px) {
  .mh-pf-grid { grid-template-columns: repeat(6, 1fr); gap: 56px 32px; }
  .mh-pf-card { grid-column: 1 / span 6 !important; transform: translateY(0) !important; max-width: 100%; }
}
@media (max-width: 600px) {
  .mh-pf-grid { display: flex; flex-direction: column; gap: 56px; }
  .mh-pf-card { transform: none !important; }
}

/* ── Card ── */
.mh-pf-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: transparent;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s cubic-bezier(.22,.61,.36,1),
              transform .55s cubic-bezier(.22,.61,.36,1);
}
.mh-pf-card.is-in { opacity: 1; transform: translateY(0); }

.mh-pf-card__media {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: transparent;
  margin-bottom: 24px;
}
/* Per-card aspect-ratio — editorial stagger через разные пропорции карточек.
   Если фото портретное (4/5) — p1, если landscape (16/9) — p5 и т.д. */
.mh-pf-card--p1 .mh-pf-card__media { aspect-ratio: 4/5; }     /* лёгкий портрет */
.mh-pf-card--p2 .mh-pf-card__media { aspect-ratio: 3/2; }     /* стандарт */
.mh-pf-card--p3 .mh-pf-card__media { aspect-ratio: 16/10; }   /* почти 16:9 */
.mh-pf-card--p4 .mh-pf-card__media { aspect-ratio: 1/1; }     /* квадрат */
.mh-pf-card--p5 .mh-pf-card__media { aspect-ratio: 16/9; }    /* широкий */

/* ── Home portfolio — 3 в ряд × 2 ряда (6 карточек), на тёмной секции ── */
.mh-pf-home-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: clamp(28px, 3vw, 56px) clamp(20px, 2.4vw, 40px) !important;
  margin-top: clamp(40px, 5vw, 64px);
}
/* Home-cards: переопределяем transform-translateY и max-width из общего .mh-pf-card,
   НО НЕ задаём opacity:0 — анимация появления через .mh-reveal.is-visible (IO в main.js) */
.mh-pf-card--home {
  transform: none !important;
  max-width: none !important;
  grid-column: auto !important;
  /* Более заметная entrance: больше translateY, scale-in эффект */
}
.mh-pf-card--home.mh-reveal {
  transform: translateY(48px) scale(.96);
  transition: opacity 1s cubic-bezier(.22,.61,.36,1), transform 1.1s cubic-bezier(.22,.61,.36,1);
}
.mh-pf-card--home.mh-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* Портретный aspect 4/5 — соответствует пропорциям загруженных фото portfolio (485x553),
   фото не обрезаются по верх/низу, видна полная архитектура объекта */
.mh-pf-card--home .mh-pf-card__media { aspect-ratio: 4/5; margin-bottom: 18px; }
/* В тёмной секции (mh-portfolio фон var(--bg-dark)) — текст светлый */
.mh-portfolio .mh-pf-card--home .mh-pf-card__title { color: #fff; font-size: clamp(18px, 1.4vw, 22px); }
.mh-portfolio .mh-pf-card--home .mh-pf-card__meta  { color: rgba(255,255,255,.55); }
.mh-pf-card--home:hover .mh-pf-card__title { color: rgba(255,255,255,.7); }

@media (max-width: 900px) {
  .mh-pf-home-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
  .mh-pf-home-grid { grid-template-columns: 1fr !important; }
}
.mh-pf-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.4s cubic-bezier(.22,.61,.36,1), filter .5s ease;
}
.mh-pf-card:hover .mh-pf-card__media img { transform: scale(1.045); filter: brightness(.93); }
.mh-pf-card__placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  font-family: var(--font-display);
  font-weight: 200; font-size: 22px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted);
  background: linear-gradient(135deg, #f5f5f3, #e9e9e6);
}
.mh-pf-card__cat {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 11px;
  background: rgba(255,255,255,.92);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.mh-pf-card__body { padding: 0; }
.mh-pf-card__title {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.005em;
  color: var(--text-dark);
  margin: 0 0 10px;
  transition: color .2s ease;
}
.mh-pf-card:hover .mh-pf-card__title { color: var(--text-muted); }
.mh-pf-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.mh-pf-card__meta span { white-space: nowrap; }
.mh-pf-card__meta span + span::before {
  content: "·";
  margin-right: 12px;
  opacity: .5;
}

/* ── Empty state ── */
.mh-pf-empty {
  text-align: center;
  padding: 80px 24px;
  font-size: 16px;
  color: var(--text-muted);
}
.mh-pf-empty__reset {
  margin-left: 12px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--text-dark);
  color: var(--text-dark);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0 0 2px;
}

/* ── Pagination ── */
.mh-pf-pagination { margin-top: 80px; text-align: center; }

@media (max-width: 768px) {
  .mh-pf-toolbar__inner { gap: 16px; padding: 14px var(--px); }
  .mh-pf-filters { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .mh-pf-filters::-webkit-scrollbar { display: none; }
  .mh-pf-chip { flex-shrink: 0; }
  .mh-pf-sort__lbl { display: none; }
}

/* ============================================================
   TECH-ED — editorial magazine layout
   Однотонный темный фон + small photo + parallax + editorial text.
   2 блока, alternating L/R через --reverse modifier.
   ============================================================ */
.mh-tech-ed {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: clamp(120px, 14vw, 200px) 0 clamp(120px, 14vw, 200px);
}

/* Editorial heading (как в about/portfolio) */
.mh-tech-ed__head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  margin-bottom: clamp(80px, 9vw, 140px);
  row-gap: 0;
}
.mh-tech-ed__head .mh-tag { grid-column: 1; grid-row: 1; align-self: end; padding-bottom: 14px; }
.mh-tech-ed__line-1 {
  grid-column: 4/8; grid-row: 1;
  font-family: var(--font-display);
  font-size: var(--sz-h1);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.015em;
  color: #fff;
  margin: 0;
}
.mh-tech-ed__line-2 {
  grid-column: 4/8; grid-row: 2;
  font-family: var(--font-display);
  font-size: var(--sz-h1);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.015em;
  color: var(--text-muted-d);
  padding-top: .08em;
  margin: 0;
}

/* 2-col editorial block — photo + text. Reverse modifier flips order. */
.mh-tech-ed__block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 6vw, 100px);
  align-items: center;
  margin-bottom: clamp(120px, 14vw, 200px);
}
.mh-tech-ed__block:last-child { margin-bottom: 0; }
.mh-tech-ed__block--reverse { direction: rtl; }
.mh-tech-ed__block--reverse > * { direction: ltr; }

/* Media: smooth entrance (fade-up + scale-up) + subtle residual parallax.
   marvellco.com.au-style — фото появляется плавно с offset снизу. */
.mh-tech-ed__media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-mid);
  max-width: 560px;
  width: 100%;
  justify-self: start;
  opacity: 0;
  transform: translateY(80px) scale(.94);
  transition: opacity 1.3s cubic-bezier(.22,.61,.36,1),
              transform 1.4s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.mh-tech-ed__media.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.mh-tech-ed__block--reverse .mh-tech-ed__media { justify-self: end; }

.mh-tech-ed__media img {
  width: 100%;
  height: 110%;
  object-fit: cover;
  display: block;
  transform: translateY(var(--parallax-y, 0));
  transition: transform .25s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

/* Text column — editorial breakdown */
.mh-tech-ed__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(16px, 1.6vw, 24px);
  max-width: 520px;
}
.mh-tech-ed__num {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(48px, 5.5vw, 88px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--accent);
  margin-bottom: 12px;
  opacity: .92;
}
.mh-tech-ed__tag {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.22);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.mh-tech-ed__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.012em;
  color: #fff;
  margin: 0;
}
.mh-tech-ed__body {
  font-family: var(--font-ui);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.7;
  color: rgba(255,255,255,.78);
  margin: 0;
}
.mh-tech-ed__detail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 8px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.mh-tech-ed__detail span { white-space: nowrap; }
.mh-tech-ed__detail span + span::before {
  content: '·';
  display: inline-block;
  margin-right: 24px;
  margin-left: -16px;
  opacity: .6;
}

@media (max-width: 900px) {
  .mh-tech-ed__head {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 80px;
  }
  .mh-tech-ed__head .mh-tag { grid-column: 1; grid-row: 1; padding-bottom: 0; }
  .mh-tech-ed__line-1 { grid-column: 1; grid-row: 2; }
  .mh-tech-ed__line-2 { grid-column: 1; grid-row: 3; }

  .mh-tech-ed__block { grid-template-columns: 1fr; gap: 40px; margin-bottom: 80px; }
  .mh-tech-ed__block--reverse { direction: ltr; }
  .mh-tech-ed__media { max-width: 100%; aspect-ratio: 3/4; }
}

/* Старый mh-tech-v3 удалён — заменён на mh-tech-ed выше */

/* ============================================================
   BLOG — archive.php + single.php editorial style
   ============================================================ */
.mh-blog { background: var(--bg-white); color: var(--text-dark); }

/* ─── Blog Hero ───────────────────────────────────────────── */
.mh-blog-hero {
  padding: clamp(120px, 13vw, 200px) 0 clamp(80px, 9vw, 120px);
  background: var(--bg-white);
}
.mh-blog-hero__grid {
  display: grid;
  grid-template-columns: 1fr 4fr;
  row-gap: 18px;
  column-gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.mh-blog-hero__grid .mh-tag {
  grid-column: 1; grid-row: 1;
  padding-top: 14px;
}
.mh-blog-hero__title {
  grid-column: 2;
  font-family: var(--font-display);
  font-size: var(--sz-h1);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.015em;
  color: var(--text-dark);
  margin: 0;
}
.mh-blog-hero__title--muted { color: var(--text-muted); }
.mh-blog-hero__lead {
  grid-column: 2;
  font-family: var(--font-ui);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.7;
  color: var(--text-muted);
  margin: 28px 0 0;
  max-width: 720px;
}

@media (max-width: 800px) {
  .mh-blog-hero__grid { grid-template-columns: 1fr; }
  .mh-blog-hero__grid .mh-tag,
  .mh-blog-hero__title,
  .mh-blog-hero__lead { grid-column: 1; }
}

/* ─── Featured post (big card) ────────────────────────────── */
.mh-blog-featured {
  padding: 0 0 clamp(80px, 9vw, 120px);
  background: var(--bg-white);
}
.mh-blog-featured__card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.mh-blog-featured__img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-light);
}
.mh-blog-featured__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(.22,.61,.36,1);
}
.mh-blog-featured__card:hover .mh-blog-featured__img img { transform: scale(1.03); }
.mh-blog-featured__body {
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mh-blog-featured__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.mh-blog-featured__cat { color: var(--accent); }
.mh-blog-featured__sep { opacity: .5; }
.mh-blog-featured__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.012em;
  color: var(--text-dark);
  margin: 0;
}
.mh-blog-featured__exc {
  font-family: var(--font-ui);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}
.mh-blog-featured__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-bottom: 4px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dark);
  border-bottom: 1px solid var(--text-dark);
  transition: color .25s ease, border-color .25s ease, gap .25s ease;
}
.mh-blog-featured__card:hover .mh-blog-featured__cta {
  color: var(--accent);
  border-color: var(--accent);
  gap: 14px;
}

@media (max-width: 900px) {
  .mh-blog-featured__card { grid-template-columns: 1fr; gap: 28px; }
}

/* ─── Blog grid (cards) ───────────────────────────────────── */
.mh-blog-grid-section {
  padding: 0 0 clamp(80px, 9vw, 140px);
  background: var(--bg-white);
}
.mh-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(36px, 4vw, 64px) clamp(28px, 3vw, 48px);
}
.mh-blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: transparent;
}
.mh-blog-card__img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-light);
  margin-bottom: 20px;
}
.mh-blog-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.22,.61,.36,1);
}
.mh-blog-card:hover .mh-blog-card__img img { transform: scale(1.04); }
.mh-blog-card__img-ph,
.mh-blog-featured__img-ph {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #efeae3, #d8d3cc);
}
.mh-blog-card__body { display: flex; flex-direction: column; gap: 12px; }
.mh-blog-card__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.mh-blog-card__cat { color: var(--accent); }
.mh-blog-card__sep { opacity: .5; }
.mh-blog-card__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.005em;
  color: var(--text-dark);
  margin: 0;
  transition: color .25s ease;
}
.mh-blog-card:hover .mh-blog-card__title { color: var(--accent); }
.mh-blog-card__exc {
  font-family: var(--font-ui);
  font-size: clamp(14px, .95vw, 16px);
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.mh-blog-pagination {
  margin-top: clamp(60px, 6vw, 80px);
  display: flex;
  justify-content: center;
}

@media (max-width: 900px) {
  .mh-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .mh-blog-grid { grid-template-columns: 1fr; }
}

.mh-blog-empty {
  padding: clamp(80px, 9vw, 140px) 0;
  text-align: center;
}
.mh-blog-empty__text {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  color: var(--text-muted);
}

/* ============================================================
   ARTICLE — single.php
   ============================================================ */
.mh-article { background: var(--bg-white); color: var(--text-dark); }

.mh-article-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  background: var(--bg-dark);
  overflow: hidden;
  color: #fff;
  padding-top: 88px;
  padding-bottom: clamp(48px, 6vw, 80px);
}
.mh-article-hero__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  animation: mhArticleHeroEnter 2.6s cubic-bezier(.22,.61,.36,1) .1s both;
}
@keyframes mhArticleHeroEnter {
  0%   { transform: scale(1.08); filter: brightness(.5); }
  100% { transform: scale(1.0);  filter: brightness(.65); }
}
.mh-article-hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(0,0,0,.22) 0%, rgba(0,0,0,.0) 30%, rgba(0,0,0,.55) 100%);
}
.mh-article-hero--no-img { background: var(--bg-light); color: var(--text-dark); min-height: 360px; }
.mh-article-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1200px;
}
.mh-article-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  align-self: flex-start;
  transition: color .25s ease, gap .25s ease;
}
.mh-article-hero--no-img .mh-article-hero__back { color: var(--text-muted); }
.mh-article-hero__back:hover { color: #fff; gap: 14px; }
.mh-article-hero--no-img .mh-article-hero__back:hover { color: var(--text-dark); }

.mh-article-hero__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.mh-article-hero--no-img .mh-article-hero__meta { color: var(--text-muted); }
.mh-article-hero__cat { color: var(--accent); }
.mh-article-hero__sep { opacity: .5; }
.mh-article-hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.8vw, 80px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.015em;
  color: inherit;
  margin: 0;
  max-width: 1100px;
  text-shadow: 0 2px 24px rgba(0,0,0,.3);
}
.mh-article-hero--no-img .mh-article-hero__title { text-shadow: none; }

/* Article body */
.mh-article-body {
  padding: clamp(80px, 9vw, 140px) 0;
  background: var(--bg-white);
}
.mh-article-body__wrap { max-width: 1280px; }
.mh-article-body__content {
  max-width: 780px;
  margin: 0 auto;
  font-family: var(--font-ui);
  font-size: clamp(16px, 1.1vw, 19px);
  line-height: 1.85;
  color: var(--text-dark);
}
.mh-article-body__content > * + * { margin-top: 1.4em; }
.mh-article-body__content p { margin: 0; }
.mh-article-body__content h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.012em;
  margin-top: 2em;
  margin-bottom: .4em;
}
.mh-article-body__content h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.25;
  margin-top: 1.6em;
  margin-bottom: .3em;
}
.mh-article-body__content blockquote {
  margin: 2em 0;
  padding: 0 0 0 32px;
  border-left: 2px solid var(--accent);
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: var(--text-dark);
}
.mh-article-body__content img,
.mh-article-body__content .wp-block-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 2em 0;
}
/* Full-width image — выходит за пределы narrow column */
.mh-article-body__content .wp-block-image.alignfull,
.mh-article-body__content figure.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  margin-top: 2.5em;
  margin-bottom: 2.5em;
}
.mh-article-body__content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  transition: color .25s ease, border-color .25s ease;
}
.mh-article-body__content a:hover { color: var(--text-dark); border-color: var(--text-dark); }
.mh-article-body__content ul, .mh-article-body__content ol { padding-left: 1.4em; }
.mh-article-body__content li { margin-bottom: .5em; }

/* Article nav (prev/next) */
.mh-article-nav {
  padding: clamp(48px, 6vw, 80px) 0;
  background: var(--bg-light);
  border-top: 1px solid rgba(0,0,0,.06);
}
.mh-article-nav__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 56px);
  align-items: start;
}
.mh-article-nav__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: color .25s ease;
}
.mh-article-nav__item--next { text-align: right; }
.mh-article-nav__dir {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.mh-article-nav__name {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-dark);
  transition: color .25s ease;
}
.mh-article-nav__item:hover .mh-article-nav__name { color: var(--accent); }

@media (max-width: 700px) {
  .mh-article-nav__grid { grid-template-columns: 1fr; }
  .mh-article-nav__item--next { text-align: left; }
}

/* Related articles section */
.mh-article-related {
  padding: clamp(80px, 9vw, 140px) 0;
  background: var(--bg-white);
}
.mh-article-related__head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: clamp(48px, 5vw, 72px);
  align-items: flex-start;
}
.mh-article-related__title {
  font-family: var(--font-display);
  font-size: var(--sz-h1);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.015em;
  margin: 0;
}

/* ============================================================
   PROJECT EDITORIAL — single-portfolio.php awwwards-style
   Natural aspect ratios, asymmetric grid, magazine typography
   ============================================================ */
.mh-pe { background: var(--bg-white); color: var(--text-dark); }

/* ─── Hero ────────────────────────────────────────────────── */
.mh-pe-hero {
  position: relative;
  height: 100svh;
  min-height: 720px;
  overflow: hidden;
  background: var(--bg-dark);
}
.mh-pe-hero__img {
  position: absolute; inset: 0;
  display: block;
  overflow: hidden;
}
.mh-pe-hero__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  animation: mhPeHeroEnter 2.6s cubic-bezier(.22,.61,.36,1) .1s both;
  will-change: transform, filter;
}
@keyframes mhPeHeroEnter {
  0%   { transform: scale(1.10); filter: brightness(.55); }
  100% { transform: scale(1.0);  filter: brightness(.78); }
}
.mh-pe-hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.30) 0%, rgba(0,0,0,.0) 22%, rgba(0,0,0,.0) 60%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}
.mh-pe-hero__grid {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 90px;
  padding-bottom: clamp(48px, 6vw, 80px);
  pointer-events: none;
}
.mh-pe-hero__grid > * { pointer-events: auto; }
.mh-pe-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255,255,255,.85);
}
.mh-pe-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  transition: color .25s ease, gap .25s ease;
}
.mh-pe-hero__back:hover { color: #fff; gap: 14px; }
.mh-pe-hero__cat {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,.2);
}

.mh-pe-hero__bottom {
  color: #fff;
  max-width: 1200px;
}
.mh-pe-hero__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 104px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -.018em;
  margin: 0 0 24px;
  color: #fff;
  text-shadow: 0 2px 32px rgba(0,0,0,.35);
  animation: mhPeFadeUp 1.1s cubic-bezier(.22,.61,.36,1) .6s both;
}
.mh-pe-hero__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  animation: mhPeFadeUp 1.1s cubic-bezier(.22,.61,.36,1) .9s both;
}
.mh-pe-hero__sep { opacity: .5; }
@keyframes mhPeFadeUp {
  0%   { opacity: 0; transform: translateY(28px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ─── Intro ───────────────────────────────────────────────── */
.mh-pe-intro {
  padding: clamp(100px, 11vw, 160px) 0 clamp(80px, 9vw, 120px);
  background: var(--bg-white);
}
.mh-pe-intro__grid {
  display: grid;
  grid-template-columns: 1fr 4fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.mh-pe-intro__label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: .6em;
}
.mh-pe-intro__text {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 36px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -.005em;
  color: var(--text-dark);
  margin: 0;
  max-width: 920px;
}

@media (max-width: 800px) {
  .mh-pe-intro__grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ─── Editorial Gallery ───────────────────────────────────── */
.mh-pe-gallery {
  display: flex;
  flex-direction: column;
  background: var(--bg-light);
}
.mh-pe-row {
  display: grid;
  align-items: start;
}
.mh-pe-row--full {
  grid-template-columns: 1fr;
  margin-bottom: clamp(40px, 5vw, 80px);
}
.mh-pe-row--asym-6040 {
  grid-template-columns: 6fr 4fr;
  gap: clamp(24px, 3vw, 56px);
  padding: 0 var(--px);
  margin-bottom: clamp(60px, 7vw, 100px);
  align-items: end;
}
.mh-pe-row--asym-4060 {
  grid-template-columns: 4fr 6fr;
  gap: clamp(24px, 3vw, 56px);
  padding: 0 var(--px);
  margin-bottom: clamp(60px, 7vw, 100px);
  align-items: start;
}
.mh-pe-row--triple {
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 40px);
  padding: 0 var(--px);
  margin-bottom: clamp(60px, 7vw, 100px);
}
.mh-pe-row--double {
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.5vw, 40px);
  padding: 0 var(--px);
  margin-bottom: clamp(60px, 7vw, 100px);
}
.mh-pe-row--single {
  grid-template-columns: minmax(0, 920px);
  justify-content: center;
  padding: 0 var(--px);
  margin-bottom: clamp(60px, 7vw, 100px);
}

@media (max-width: 900px) {
  .mh-pe-row--asym-6040,
  .mh-pe-row--asym-4060,
  .mh-pe-row--triple,
  .mh-pe-row--double { grid-template-columns: 1fr; gap: 24px; }
}

/* Каждое фото — natural aspect (без object-fit: cover).
   .mh-reveal base — opacity:0/translateY уже задан, .is-visible сделает видимым */
.mh-pe-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--bg-mid);
}
.mh-pe-photo.mh-reveal { transition-duration: 1.1s; }
.mh-pe-photo__link {
  display: block;
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
}
.mh-pe-photo__link img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 1.4s cubic-bezier(.22,.61,.36,1), filter .35s ease;
}
.mh-pe-photo--full .mh-pe-photo__link img {
  max-height: 92vh;
  object-fit: cover; /* full-bleed slot — обрезать высоту чтобы не быть слишком высоким */
}
.mh-pe-photo__link:hover img {
  transform: scale(1.025);
  filter: brightness(.95);
}
.mh-pe-photo__zoom {
  position: absolute;
  top: 18px; right: 18px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.85);
  color: var(--text-dark);
  opacity: 0;
  transform: scale(.85);
  transition: opacity .3s ease, transform .3s ease;
}
.mh-pe-photo__link:hover .mh-pe-photo__zoom { opacity: 1; transform: scale(1); }

.mh-pe-photo__caption {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 14px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.mh-pe-photo__num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: 0;
}
.mh-pe-photo__label {}

/* Asymmetric position offsets для editorial feel */
.mh-pe-row--asym-6040 .mh-pe-photo--tall {
  margin-top: clamp(40px, 6vw, 100px);
}
.mh-pe-row--asym-4060 .mh-pe-photo--tall {
  margin-bottom: clamp(40px, 6vw, 100px);
}

/* Каптион/quote блок в asym ряду (если 2-е фото нет) */
.mh-pe-row__caption {
  padding: clamp(40px, 4vw, 64px) 0;
}
.mh-pe-row__caption--left { display: none; }
.mh-pe-row__quote {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  color: var(--text-dark);
  margin: 0;
  max-width: 360px;
}

/* ─── Pull Quote Block ────────────────────────────────────── */
.mh-pe-quote-block {
  padding: clamp(80px, 10vw, 160px) 0;
  background: var(--bg-light);
}
.mh-pe-quote {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 56px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -.012em;
  color: var(--text-dark);
  text-align: center;
  margin: 0 auto;
  max-width: 1100px;
  padding: 0 var(--px);
}
.mh-pe-quote__mark {
  display: inline-block;
  font-size: 1.6em;
  line-height: 0;
  vertical-align: -.25em;
  margin-right: .12em;
  color: var(--accent);
  font-style: normal;
}

/* ─── Specs (бывшие stats) ────────────────────────────────── */
.mh-pe-specs {
  padding: clamp(80px, 9vw, 140px) 0;
  background: var(--bg-white);
  border-top: 1px solid rgba(0,0,0,.06);
}
.mh-pe-specs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}
.mh-pe-spec {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,.12);
}
.mh-pe-spec__lbl {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.mh-pe-spec__val {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--text-dark);
}

/* ─── Project Navigation (large editorial prev/next) ──────── */
.mh-pe-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-dark);
  min-height: 360px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.mh-pe-nav__item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 60px var(--px);
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  transition: background .35s ease;
}
.mh-pe-nav__item--prev { border-right: 1px solid rgba(255,255,255,.08); }
.mh-pe-nav__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .25;
  filter: grayscale(50%);
  transform: scale(1.04);
  transition: opacity .55s ease, transform 1.4s cubic-bezier(.22,.61,.36,1), filter .55s ease;
}
.mh-pe-nav__item:hover .mh-pe-nav__bg {
  opacity: .5;
  filter: grayscale(0%);
  transform: scale(1.0);
}
.mh-pe-nav__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 580px;
}
.mh-pe-nav__item--next .mh-pe-nav__content {
  margin-left: auto;
  text-align: right;
}
.mh-pe-nav__dir {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.mh-pe-nav__name {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.012em;
  color: #fff;
  transition: color .25s ease;
}
.mh-pe-nav__item:hover .mh-pe-nav__name { color: var(--accent); }

@media (max-width: 900px) {
  .mh-pe-nav { grid-template-columns: 1fr; min-height: auto; }
  .mh-pe-nav__item--prev { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .mh-pe-nav__item { padding: 48px var(--px); min-height: 220px; }
  .mh-pe-nav__item--next .mh-pe-nav__content { margin-left: 0; text-align: left; }
}

/* ============================================================
   GLOBE — 3D rotating globe with project markers (cobe.js)
   ============================================================ */
.mh-globe-sec {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: clamp(120px, 13vw, 200px) 0;
  overflow: hidden;
}
.mh-globe-sec__head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  row-gap: 0;
  margin-bottom: clamp(60px, 7vw, 100px);
}
.mh-globe-sec__head .mh-tag { grid-column: 1; grid-row: 1; align-self: end; padding-bottom: 14px; }
.mh-globe-sec__line-1 {
  grid-column: 4/8; grid-row: 1;
  font-family: var(--font-display);
  font-size: var(--sz-h1);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.015em;
  color: #fff;
  margin: 0;
}
.mh-globe-sec__line-2 {
  grid-column: 4/8; grid-row: 2;
  font-family: var(--font-display);
  font-size: var(--sz-h1);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.015em;
  color: var(--text-muted-d);
  padding-top: .08em;
  margin: 0;
}
.mh-globe-sec__desc {
  grid-column: 4/8; grid-row: 3;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.7;
  color: rgba(255,255,255,.7);
  max-width: 580px;
  margin: 28px 0 0;
}

.mh-globe-sec__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  max-width: 720px;
  aspect-ratio: 1/1;
  width: 100%;
}
.mh-globe-sec__canvas {
  display: block;
  margin: 0 auto;
  contain: layout style paint;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  position: relative;
  z-index: 2;
}
/* Декоративное кольцо вокруг глобуса */
.mh-globe-sec__ring {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.06);
  pointer-events: none;
  z-index: 1;
}
.mh-globe-sec__ring::before {
  content: '';
  position: absolute;
  inset: -3%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.03);
}

@media (max-width: 900px) {
  .mh-globe-sec__head {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }
  .mh-globe-sec__head .mh-tag,
  .mh-globe-sec__line-1,
  .mh-globe-sec__line-2,
  .mh-globe-sec__desc {
    grid-column: 1;
  }
  .mh-globe-sec__line-1 { grid-row: 2; }
  .mh-globe-sec__line-2 { grid-row: 3; }
  .mh-globe-sec__desc { grid-row: 4; }
}

/* ============================================================
   MEDIA v2 — premium grid вместо marquee
   ============================================================ */
.mh-media-v2 { padding: clamp(80px, 10vw, 140px) 0; background: var(--bg-white); }

.mh-media-v2__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: end;
  margin-bottom: clamp(60px, 8vw, 100px);
}
.mh-media-v2__head-left { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.mh-media-v2__title {
  font-family: var(--font-display);
  font-size: var(--sz-h1);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.015em;
  color: var(--text-dark);
  margin: 0;
}
.mh-media-v2__desc {
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0;
  padding-bottom: 4px;
}

.mh-media-v2__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border-l);
  border: 1px solid var(--border-l);
}
.mh-media-v2__cell {
  background: var(--bg-white);
  aspect-ratio: 3/2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 2vw, 32px);
  transition: background .3s ease;
}
.mh-media-v2__cell:hover { background: var(--bg-light); }
.mh-media-v2__cell img {
  max-width: 100%;
  max-height: 60%;
  object-fit: contain;
  filter: grayscale(1) opacity(.7);
  transition: filter .35s ease, transform .35s ease;
}
.mh-media-v2__cell:hover img {
  filter: grayscale(0) opacity(1);
  transform: scale(1.04);
}

@media (max-width: 1100px) {
  .mh-media-v2__grid { grid-template-columns: repeat(4, 1fr); }
  .mh-media-v2__head { grid-template-columns: 1fr; gap: 20px; align-items: start; }
}
@media (max-width: 640px) {
  .mh-media-v2__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ════════════════════════════════════════════════════════════════════
   POLISH & A11Y (added 2026-05-24)
   ════════════════════════════════════════════════════════════════════ */

/* 1. Touch-устройства не должны видеть hover-эффекты */
@media (hover: none) {
  .mh-pf-card:hover .mh-pf-card__media img,
  .mh-tile:hover img,
  .mh-blog-card:hover img,
  .mh-tile:hover { transform: none !important; }
}

/* 2. Keyboard focus visible — accent outline */
.mh-pf-chip:focus-visible,
.mh-pf-card:focus-visible,
.mh-blog-card:focus-visible,
.btn:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent, #c9a96c);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 3. Aspect-ratio защитник для img в portfolio cards — фикс CLS */
.mh-pf-card__media,
.mh-blog-card__img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e9e9e6;
}
.mh-pf-card__media img,
.mh-blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 4. will-change для часто-анимируемых элементов */
.mh-hero__bg-img,
.mh-pf-card__media img,
.mh-blog-card__img img,
[data-reveal] {
  will-change: transform, opacity;
}

/* 5. Маленький middle-breakpoint 414px (iPhone 12 Pro Max и подобное) */
@media (max-width: 414px) {
  :root { --px: 16px; }
  .mh-pf-grid,
  .mh-blog-grid { grid-template-columns: 1fr; }
  h1, .mh-h1 { font-size: clamp(28px, 8vw, 40px); }
}

/* 6. Сокрытие scrollbar на горизонтальных каруселях (chips/filters) */
.mh-pf-filters,
.mh-scroll-x {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.mh-pf-filters::-webkit-scrollbar,
.mh-scroll-x::-webkit-scrollbar { display: none; }

/* 7. Smooth scroll + restoration */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* 8. Print-friendly (для CV-style export портфолио) */
@media print {
  .mh-header, .mh-footer, .mh-pf-toolbar, .mh-mobile-menu, .mh-contact { display: none !important; }
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #000; }
}


/* ============================================================
   Static Vercel extensions
   Kept separate from the WordPress theme source so generated
   static pages can use additional routes without changing WP.
   ============================================================ */

/* ============================================================
   Modern House Design System 2026
   Static Vercel layer. One source of truth for generated pages.
   ============================================================ */

@font-face {
  font-family: 'Arsenal MH';
  src: url('../assets/fonts/arsenal-400.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Arsenal MH';
  src: url('../assets/fonts/arsenal-700.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../assets/fonts/manrope-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../assets/fonts/manrope-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../assets/fonts/manrope-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../assets/fonts/manrope-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --mh-bg-dark: #1f1a15;
  --mh-bg-dark-2: #15110e;
  --mh-bg-paper: #f3eee6;
  --mh-bg-stone: #e8dfd3;
  --mh-text: #2a241d;
  --mh-text-soft: #6f6559;
  --mh-text-dark-soft: rgba(246, 239, 228, .76);
  --mh-line: rgba(92, 73, 52, .22);
  --mh-line-dark: rgba(246, 239, 228, .16);
  --mh-gold: #c9aa72;
  --mh-gold-dark: #8a6d3f;
  --mh-white: #f6efe4;
  --mh-font-display: 'Arsenal MH', 'Manrope', Arial, sans-serif;
  --mh-font-ui: 'Manrope', Arial, sans-serif;
  --mh-page-x: 40px;
  --mh-wrap: 1320px;
  --mh-gap: 24px;
  --mh-section-y: 112px;
  --mh-h1: 64px;
  --mh-h1-sub: 48px;
  --mh-h2: 48px;
  --mh-h2-sub: 34px;
  --mh-h3: 30px;
  --mh-body: 17px;
  --mh-lead: 19px;
  --mh-small: 13px;
  --mh-label-gap: 14px;
  --mh-title-stack-gap: 8px;
  --mh-copy-gap: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background: var(--mh-bg-paper);
  color: var(--mh-text);
  font-family: var(--mh-font-ui);
  font-size: var(--mh-body);
  font-weight: 400;
  line-height: 1.68;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

.mh-cursor {
  display: none !important;
}

img,
svg,
canvas,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

::selection {
  background: rgba(200, 168, 106, .32);
}

.mh-grid-bg {
  display: none !important;
}

.mh-wrap {
  width: min(calc(100% - (var(--mh-page-x) * 2)), var(--mh-wrap));
  margin-inline: auto;
}

.mh-section {
  position: relative;
  scroll-margin-top: 96px;
  padding: var(--mh-section-y) 0;
  overflow: clip;
}

.mh-section.is-white,
.mh-section.is-light,
.mh-home-about,
.mh-home-services-preview {
  background: var(--mh-bg-paper);
  color: var(--mh-text);
}

.mh-section.is-light {
  background: var(--mh-bg-stone);
}

.mh-section::before,
.mh-home-about::before,
.mh-home-services-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(42, 36, 29, .032) 1px, transparent 1px),
    linear-gradient(180deg, rgba(42, 36, 29, .018) 1px, transparent 1px);
  background-size: calc((min(100vw, 1320px)) / 12) 100%, 100% 128px;
  background-position: center top;
  opacity: .32;
}

.mh-section > *,
.mh-home-about > *,
.mh-home-services-preview > * {
  position: relative;
  z-index: 1;
}

.mh-reveal,
.mh-reveal.d1,
.mh-reveal.d2,
.mh-reveal.d3 {
  opacity: 1 !important;
  transform: none !important;
}

.mh-tag,
.mh-blog-cat,
.mh-pc__cat,
.mh-pc__meta,
.mh-srv-card__num,
.mh-member__role,
.mh-stat__label,
.mh-fnav-lbl,
.mh-filter-btn,
.mh-nav a,
.mh-nav-btn,
.mh-btn {
  font-family: var(--mh-font-ui);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 500;
}

.mh-tag {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: 0;
  border: 0;
  color: var(--mh-gold-dark);
  background: transparent;
  font-size: 11px;
  line-height: 1.35;
}

.mh-tag::before {
  content: '';
  width: 24px;
  height: 1px;
  margin-right: 10px;
  background: currentColor;
  opacity: .52;
}

.mh-tag--d {
  border-color: transparent;
  color: rgba(246, 239, 228, .76);
  background: transparent;
}

.mh-home-about__title,
.mh-home-services-head__title,
.mh-portfolio__line-1,
.mh-portfolio__line-2,
.mh-globe-sec__line-1,
.mh-globe-sec__line-2,
.mh-team__line-1,
.mh-team__line-2,
.mh-media__line-1,
.mh-media__line-2,
.mh-cta-title,
.mh-pf-hero__line-1,
.mh-pf-hero__line-2,
.mh-srv-detail__line-1,
.mh-srv-detail__line-2,
.mh-srv-process__title,
.mh-case-story__title,
.mh-case-gallery__title,
.mh-blog-ttl,
.mh-home-hero__title {
  font-family: var(--mh-font-display) !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.mh-home-about__title,
.mh-home-services-head__title,
.mh-portfolio__line-1,
.mh-portfolio__line-2,
.mh-globe-sec__line-1,
.mh-globe-sec__line-2,
.mh-team__line-1,
.mh-team__line-2,
.mh-media__line-1,
.mh-media__line-2,
.mh-cta-title,
.mh-pf-hero__line-1,
.mh-pf-hero__line-2,
.mh-srv-process__title {
  font-size: var(--mh-h2) !important;
  line-height: 1.04 !important;
}

.mh-home-hero__title {
  font-size: 72px !important;
  line-height: 1 !important;
}

.mh-home-about__title,
.mh-home-services-head__title,
.mh-srv-process__title {
  max-width: 820px;
}

.mh-pf-hero__line-1,
.mh-pf-hero__line-2 {
  font-size: var(--mh-h1) !important;
}

.mh-pf-hero__line-2 {
  font-size: var(--mh-h1-sub) !important;
  line-height: 1.1 !important;
}

.mh-portfolio__line-2,
.mh-globe-sec__line-2,
.mh-team__line-2,
.mh-media__line-2,
.mh-srv-detail__line-2 {
  font-size: var(--mh-h2-sub) !important;
  line-height: 1.1 !important;
}

.mh-srv-detail__line-1 {
  font-size: var(--mh-h2) !important;
  line-height: 1.06 !important;
}

.mh-copy,
.mh-home-about__copy,
.mh-portfolio__desc,
.mh-globe-sec__desc,
.mh-team__text,
.mh-pf-hero__desc,
.mh-srv-detail__desc,
.mh-case-story__text,
.mh-blog-exc,
.mh-office,
.mh-footer {
  font-family: var(--mh-font-ui);
  font-size: var(--mh-body);
  line-height: 1.72;
  letter-spacing: 0;
}

.mh-srv-detail__desc {
  color: #332d27 !important;
}

.mh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  width: fit-content;
  max-width: 100%;
  padding: 0 28px;
  border: 1px solid rgba(201, 170, 114, .46);
  background: var(--mh-gold);
  color: #241d16;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  box-shadow: inset 0 0 0 1px rgba(246, 239, 228, .16);
  transition: background .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.mh-btn:hover {
  background: #d7bc88;
  border-color: rgba(215, 188, 136, .62);
  transform: translateY(-1px);
}

.mh-btn--ghost {
  background: transparent !important;
  color: var(--mh-white) !important;
  border-color: rgba(246, 239, 228, .38) !important;
  box-shadow: none !important;
}

.mh-btn--ghost:hover {
  background: rgba(246, 239, 228, .1) !important;
  border-color: rgba(246, 239, 228, .72) !important;
}

.mh-btn--dark {
  background: #2d251d !important;
  color: var(--mh-white) !important;
  border-color: #2d251d !important;
}

.mh-btn--dark:hover {
  background: #3a3027 !important;
  border-color: #3a3027 !important;
}

.mh-btn--light {
  background: #eadcc5 !important;
  color: var(--mh-text) !important;
  border-color: rgba(138, 109, 63, .28) !important;
}

.mh-btn--l {
  min-height: 56px;
  padding-inline: 32px;
}

/* Header and navigation */

.mh-header {
  position: fixed !important;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(31, 26, 21, .86);
  color: var(--mh-white);
  border-bottom: 1px solid rgba(246, 239, 228, .12);
  backdrop-filter: blur(16px);
}

.mh-header__inner {
  width: min(calc(100% - 48px), var(--mh-wrap));
  height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.mh-logo,
.mh-logo__text {
  font-family: var(--mh-font-display);
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.mh-header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mh-burger {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(246, 239, 228, .24);
  background: transparent;
  color: var(--mh-white);
  cursor: pointer;
}

.mh-nav {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 60;
  width: min(460px, 100vw);
  min-height: 100vh;
  padding: 34px;
  background: #18130f;
  color: var(--mh-white);
  transform: translateX(100%);
  transition: transform .28s ease;
}

.mh-nav.open,
.mh-nav.active {
  transform: translateX(0);
}

.mh-nav-bd {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(21, 17, 14, .56);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease;
  backdrop-filter: blur(3px);
}

.mh-nav-bd.open,
.mh-nav-bd.active {
  opacity: 1;
  pointer-events: auto;
}

.mh-nav__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(246, 239, 228, .24);
  background: transparent;
  color: var(--mh-white);
}

.mh-nav__list {
  display: grid;
  gap: 18px;
  margin: 84px 0 42px;
  list-style: none;
}

.mh-nav__list a {
  font-size: 13px;
  color: rgba(246, 239, 228, .86);
}

.mh-nav__list a:hover,
.mh-nav__contact-link:hover {
  color: var(--mh-white);
}

.mh-nav__foot {
  display: grid;
  gap: 14px;
  margin-top: auto;
}

.mh-nav__contact-link {
  display: block;
  color: rgba(246, 239, 228, .78);
  font-size: 15px;
}

.mh-nav__contact-city {
  display: block;
  margin-bottom: 3px;
  color: var(--mh-gold);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.mh-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(246, 239, 228, .32);
  color: var(--mh-white);
  font-size: 11px;
}

/* Home hero */

.mh-home-hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  color: var(--mh-white);
  background: var(--mh-bg-dark);
  overflow: clip;
}

.mh-home-hero__image,
.mh-home-hero__video,
.mh-home-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mh-home-hero__image,
.mh-home-hero__video {
  object-fit: cover;
  object-position: 50% 54%;
  background: var(--mh-bg-dark);
}

.mh-home-hero__shade {
  background:
    linear-gradient(180deg, rgba(31, 26, 21, .46) 0%, rgba(31, 26, 21, .18) 44%, rgba(31, 26, 21, .74) 100%),
    linear-gradient(90deg, rgba(31, 26, 21, .68), rgba(31, 26, 21, .24) 56%, rgba(31, 26, 21, .38)),
    radial-gradient(circle at 68% 30%, rgba(201, 170, 114, .12), transparent 38%);
}

.mh-home-hero__content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding: 150px 0 84px;
}

.mh-home-hero__lead {
  width: min(620px, 100%);
  margin-top: 22px;
  color: rgba(246, 239, 228, .84);
  font-size: var(--mh-lead);
  line-height: 1.62;
}

.mh-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

/* Editorial intro and service preview */

.mh-home-about {
  position: relative;
  padding: 118px 0 108px;
}

.mh-home-about__grid,
.mh-contact__grid,
.mh-case-story__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--mh-gap);
}

.mh-home-about__heading {
  grid-column: 1 / span 7;
}

.mh-home-about__copy {
  grid-column: 9 / span 4;
  max-width: 520px;
  color: #5b524a;
}

.mh-home-about__copy p + p {
  margin-top: 22px;
}

.mh-home-about__cta {
  margin-top: 34px;
}

.mh-home-about__title {
  max-width: 820px;
  margin-top: 34px;
  color: var(--mh-text);
}

.mh-home-services-preview {
  position: relative;
  padding: 108px 0 116px;
}

.mh-home-services-head,
.mh-team__head,
.mh-media__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--mh-gap);
  row-gap: var(--mh-title-stack-gap);
  align-items: start;
  margin-bottom: 52px;
}

.mh-home-services-head__tag,
.mh-team__tag,
.mh-media__tag,
.mh-globe-sec__tag,
.mh-pf-hero__tag,
.mh-srv-detail__tag,
.mh-portfolio__tag {
  grid-column: 4 / span 7;
  grid-row: 1;
  margin-bottom: var(--mh-label-gap);
}

.mh-home-services-head__title {
  grid-column: 4 / span 7;
  grid-row: 2;
  max-width: 740px;
}

.mh-srv-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.mh-srv-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  min-height: 100%;
  padding: 0 0 24px;
  color: var(--mh-text);
  background: rgba(255, 250, 244, .42);
  border: 1px solid rgba(113, 91, 61, .18);
  overflow: hidden;
  transition: transform .24s ease, border-color .24s ease, background .24s ease;
}

.mh-srv-card:hover {
  transform: translateY(-3px);
  border-color: rgba(113, 91, 61, .36);
  background: rgba(255, 250, 244, .72);
}

.mh-srv-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0 0 22px;
  overflow: hidden;
  background-size: cover;
  background-position: 50% 50%;
}

.mh-srv-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(.92) contrast(.96);
  transition: transform .42s ease;
}

.mh-srv-card:hover .mh-srv-card__media img {
  transform: scale(1.025);
}

.mh-srv-card--service-architecture .mh-srv-card__media img { object-position: 50% 46%; }
.mh-srv-card--service-design .mh-srv-card__media img { object-position: 52% 52%; }
.mh-srv-card--service-construction .mh-srv-card__media img { object-position: 54% 50%; }
.mh-srv-card--service-cottage .mh-srv-card__media img { object-position: 50% 48%; }
.mh-srv-card--service-bespoke .mh-srv-card__media img { object-position: 50% 55%; }
.mh-srv-card--service-ready .mh-srv-card__media img { object-position: 50% 54%; }
.mh-srv-card--service-commercial .mh-srv-card__media img { object-position: 50% 52%; }

.mh-srv-card__num {
  padding: 0 24px;
  color: var(--mh-gold-dark);
  font-size: 11px;
}

.mh-srv-card__name {
  padding: 10px 24px 0;
  font-family: var(--mh-font-ui);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: 0;
  text-transform: none;
  text-wrap: balance;
}

.mh-srv-card__desc {
  padding: 12px 24px 0;
  color: var(--mh-text-soft);
  font-size: 13px;
  line-height: 1.56;
  letter-spacing: 0;
  text-transform: none;
}

.mh-srv-card__arrow {
  position: absolute;
  right: 22px;
  bottom: 20px;
  color: var(--mh-gold-dark);
}

.mh-srv-card--cta {
  display: flex;
  min-height: 100%;
  padding: 30px 28px;
  justify-content: flex-end;
  color: var(--mh-white);
  background:
    linear-gradient(180deg, rgba(35, 29, 24, .88), rgba(22, 18, 15, .96)),
    radial-gradient(circle at 18% 16%, rgba(177, 143, 88, .24), transparent 34%);
  background-color: #16120f;
  border-color: rgba(177, 143, 88, .32);
}

.mh-srv-card--cta:hover {
  background:
    linear-gradient(180deg, rgba(43, 35, 29, .92), rgba(22, 18, 15, .98)),
    radial-gradient(circle at 18% 16%, rgba(177, 143, 88, .3), transparent 38%);
  background-color: #16120f;
  border-color: rgba(177, 143, 88, .5);
}

.mh-srv-card--cta .mh-srv-card__num,
.mh-srv-card--cta .mh-srv-card__name,
.mh-srv-card--cta .mh-srv-card__desc {
  padding-left: 0;
  padding-right: 0;
}

.mh-srv-card--cta .mh-srv-card__num {
  color: var(--mh-gold);
}

.mh-srv-card--cta .mh-srv-card__name {
  color: var(--mh-white);
  font-family: var(--mh-font-display);
  font-size: 32px;
  line-height: 1.08;
  max-width: 260px;
}

.mh-srv-card--cta .mh-srv-card__desc {
  color: rgba(244, 241, 237, .84);
  max-width: 260px;
  margin: 0 0 26px;
}

.mh-srv-card--cta .mh-btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Globe */

.mh-globe-sec {
  background:
    radial-gradient(circle at 50% 58%, rgba(201, 170, 114, .12), transparent 36%),
    linear-gradient(180deg, #1f1a15 0%, #18130f 100%);
  color: var(--mh-white);
}

.mh-globe-sec .mh-wrap {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--mh-gap);
  align-items: center;
}

.mh-globe-sec::before,
.mh-portfolio::before,
.mh-contact::before,
.mh-footer::before {
  background-image:
    linear-gradient(90deg, rgba(246, 239, 228, .032) 1px, transparent 1px),
    linear-gradient(180deg, rgba(246, 239, 228, .018) 1px, transparent 1px);
  opacity: .18;
}

.mh-globe-sec__head,
.mh-portfolio__head,
.mh-pf-hero__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--mh-gap);
  row-gap: var(--mh-title-stack-gap);
  align-items: start;
}

.mh-globe-sec__head {
  grid-column: 1 / span 5;
  grid-template-columns: 1fr;
  row-gap: 10px;
}

.mh-globe-sec__tag {
  grid-column: 1 / -1;
  grid-row: auto;
  margin-bottom: 14px;
}

.mh-globe-sec__line-1,
.mh-globe-sec__line-2 {
  grid-column: 1 / -1;
  color: var(--mh-white);
}

.mh-globe-sec__line-1 {
  grid-row: auto;
}

.mh-globe-sec__line-2 {
  grid-row: auto;
  margin-top: 0;
  color: rgba(246, 239, 228, .58);
}

.mh-globe-sec__desc {
  grid-column: 1 / -1;
  grid-row: auto;
  max-width: 520px;
  margin-top: 20px;
  color: var(--mh-text-dark-soft);
}

.mh-globe-sec__stage {
  position: relative;
  grid-column: 7 / span 6;
  width: min(660px, 100%);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
  overflow: visible;
}

.mh-globe-sec__stage::before {
  content: '';
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 30%, rgba(246, 239, 228, .14), transparent 32%),
    radial-gradient(circle at 52% 64%, rgba(201, 170, 114, .16), transparent 48%);
  filter: blur(24px);
  opacity: .9;
  pointer-events: none;
}

.mh-globe-sec__body {
  display: none !important;
}

.mh-globe-sec__canvas {
  position: relative;
  z-index: 2;
  width: min(560px, 84vw) !important;
  height: min(560px, 84vw) !important;
  max-width: 100%;
  max-height: 100%;
  border-radius: 50%;
  cursor: grab;
  filter: drop-shadow(0 30px 70px rgba(0, 0, 0, .28));
}

.mh-globe-sec__canvas.is-grabbing {
  cursor: grabbing;
}

.mh-globe-sec__ring {
  position: absolute;
  inset: 5%;
  border: 1px solid rgba(246, 239, 228, .16);
  border-radius: 50%;
  pointer-events: none;
}

.mh-globe-sec__ring::before {
  content: '';
  position: absolute;
  inset: -16px;
  border: 1px solid rgba(246, 239, 228, .08);
  border-radius: 50%;
}

.mh-globe-sec__locations {
  grid-column: 7 / span 6;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 28px auto 0;
  max-width: 760px;
}

.mh-globe-sec__locations span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(201, 170, 114, .28);
  color: rgba(246, 239, 228, .78);
  background: rgba(246, 239, 228, .045);
  font-size: 12px;
  line-height: 1;
}

/* Home portfolio */

.mh-portfolio {
  background: var(--mh-bg-dark);
  color: var(--mh-white);
}

.mh-portfolio__line-1,
.mh-portfolio__line-2 {
  grid-column: 4 / span 7;
  color: var(--mh-white);
}

.mh-portfolio__line-1 {
  grid-row: 2;
}

.mh-portfolio__line-2 {
  grid-row: 3;
  margin-top: 0;
  color: rgba(255, 250, 244, .62);
}

.mh-portfolio__desc {
  grid-column: 8 / span 5;
  grid-row: 4;
  margin-top: var(--mh-copy-gap);
  color: var(--mh-text-dark-soft);
}

.mh-portfolio__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  margin-top: 62px;
}

.mh-pc {
  position: relative;
  min-height: 0 !important;
  height: auto !important;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0f0d0b;
  border: 1px solid rgba(244, 241, 237, .12);
}

.mh-pc--wide {
  aspect-ratio: 4 / 5;
}

.mh-pc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
  filter: saturate(.9) contrast(.96) brightness(.78);
  transition: transform .45s ease, filter .45s ease;
}

.mh-pc:hover img {
  transform: scale(1.025);
  filter: saturate(.92) contrast(1) brightness(.88);
}

.mh-pc__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(31, 26, 21, .02) 0%, rgba(31, 26, 21, .18) 34%, rgba(31, 26, 21, .92) 100%),
    linear-gradient(90deg, rgba(31, 26, 21, .2), transparent 58%);
  opacity: 1 !important;
}

.mh-pc__cat,
.mh-pc__meta {
  color: rgba(246, 239, 228, .78);
  font-size: 11px;
  line-height: 1.35;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .36);
}

.mh-pc__name {
  max-width: 92%;
  color: var(--mh-white);
  font-family: var(--mh-font-display) !important;
  font-size: 31px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .42);
}

.mh-portfolio .mh-pc .mh-pc__name,
.mh-pg-grid .mh-pc .mh-pc__name,
.mh-case-related .mh-pc .mh-pc__name {
  color: var(--mh-white) !important;
}

.mh-portfolio .mh-pc .mh-pc__cat,
.mh-portfolio .mh-pc .mh-pc__meta,
.mh-pg-grid .mh-pc .mh-pc__cat,
.mh-pg-grid .mh-pc .mh-pc__meta {
  color: rgba(246, 239, 228, .78) !important;
}

.mh-portfolio__cta {
  margin-top: 42px;
}

/* Services page and process */

.mh-pf-hero {
  padding: 158px 0 96px;
  background: var(--mh-bg-dark);
  color: var(--mh-white);
}

.mh-pf-hero__line-1,
.mh-pf-hero__line-2,
.mh-pf-hero__desc {
  grid-column: 4 / span 8;
}

.mh-pf-hero__tag,
.mh-pf-hero__tag .mh-tag {
  position: static !important;
}

.mh-pf-hero__line-2 {
  grid-row: 3;
  color: rgba(255, 250, 244, .62);
}

.mh-pf-hero__line-1 {
  grid-row: 2;
}

.mh-pf-hero__desc {
  width: min(720px, 100%);
  grid-row: 4;
  margin-top: var(--mh-copy-gap);
  color: var(--mh-text-dark-soft);
}

.mh-stats,
.mh-stats--row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 48px;
  border: 1px solid var(--mh-line-dark);
  background: var(--mh-line-dark);
}

.mh-stat {
  padding: 24px;
  background: rgba(244, 241, 237, .045);
}

.mh-stat__val {
  font-family: var(--mh-font-display);
  font-size: 42px;
  line-height: 1;
}

.mh-stat__label {
  margin-top: 10px;
  color: rgba(255, 250, 244, .68);
  font-size: 11px;
}

.mh-pf-stats {
  display: block;
  background: #eee8df;
  color: var(--mh-text);
}

.mh-pf-stats .mh-stats {
  border-color: rgba(113, 91, 61, .2);
  background: rgba(113, 91, 61, .18);
}

.mh-pf-stats .mh-stat {
  min-height: 168px;
  background: rgba(255, 250, 244, .42);
}

.mh-pf-stats .mh-stat__val {
  color: var(--mh-text);
  font-size: 48px;
}

.mh-pf-stats .mh-stat__label {
  color: #6a5f55;
}

.mh-srv-detail {
  padding: 118px 0;
}

.mh-srv-detail__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--mh-gap);
  row-gap: var(--mh-title-stack-gap);
  align-items: start;
  margin-bottom: 44px;
}

.mh-srv-detail__line-1,
.mh-srv-detail__line-2 {
  grid-column: 4 / span 7;
}

.mh-srv-detail__line-1 {
  grid-row: 2;
}

.mh-srv-detail__line-2 {
  grid-row: 3;
  margin-top: 0;
  color: var(--mh-text-soft);
}

.mh-srv-detail__body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--mh-gap);
  align-items: center;
}

.mh-srv-detail__text {
  grid-column: 1 / span 5;
  color: #504940;
}

.mh-srv-detail__img {
  grid-column: 7 / span 6;
  overflow: hidden;
  background: #d9d1c7;
}

.mh-srv-detail--rev .mh-srv-detail__text {
  grid-column: 8 / span 5;
}

.mh-srv-detail--rev .mh-srv-detail__img {
  grid-column: 1 / span 6;
  grid-row: 1;
}

.mh-srv-detail__img img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover !important;
  filter: saturate(.9) contrast(.96);
}

.mh-srv-detail__img--service-architecture img { object-position: 50% 48%; }
.mh-srv-detail__img--service-design img { object-position: 54% 52%; }
.mh-srv-detail__img--service-construction img { object-position: 50% 50%; }
.mh-srv-detail__img--service-cottage img { object-position: 50% 48%; }
.mh-srv-detail__img--service-bespoke img { object-position: 50% 54%; }
.mh-srv-detail__img--service-ready img { object-position: 50% 54%; }
.mh-srv-detail__img--service-commercial img { object-position: 50% 52%; }

.mh-srv-detail__list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  list-style: none;
}

.mh-srv-detail__list li {
  position: relative;
  padding-left: 22px;
  color: #332d27;
}

.mh-srv-detail__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .74em;
  width: 8px;
  height: 1px;
  background: var(--mh-gold-dark);
}

.mh-srv-process {
  background: var(--mh-bg-dark);
  color: var(--mh-white);
}

.mh-srv-process__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--mh-gap);
  margin-bottom: 54px;
}

.mh-srv-process__title {
  grid-column: 4 / span 8;
  color: var(--mh-white) !important;
}

.mh-srv-process__title span {
  display: block;
  color: inherit !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.mh-srv-process__title-l1 {
  color: var(--mh-white) !important;
}

.mh-srv-process__title-l2 {
  color: rgba(255, 250, 244, .68) !important;
}

.mh-scrolly {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--mh-gap);
}

.mh-scrolly__media-col {
  grid-column: 1 / span 6;
}

.mh-scrolly__media {
  position: sticky;
  top: 104px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--mh-line-dark);
  background: #0f0d0b;
}

.mh-scrolly__layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .22s ease;
}

.mh-scrolly__layer.is-active,
.mh-scrolly__layer.active,
.mh-scrolly__layer:first-child {
  opacity: 1;
}

.mh-scrolly__layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(.9) contrast(.94);
}

.mh-scrolly__steps {
  grid-column: 8 / span 5;
  display: grid;
  gap: 18px;
}

.mh-scrolly__step {
  padding: 24px 0 22px;
  border-top: 1px solid var(--mh-line-dark);
}

.mh-scrolly__step-num,
.mh-scrolly__stage-label,
.mh-scrolly__stage-badge {
  color: var(--mh-gold);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.mh-scrolly__step-name {
  margin-top: 12px;
  color: var(--mh-white) !important;
  font-family: var(--mh-font-display);
  font-size: 30px;
  line-height: 1.16;
}

.mh-scrolly__step-desc {
  margin-top: 10px;
  color: rgba(255, 250, 244, .78);
  line-height: 1.65;
}

/* Team and media */

.mh-team__line-1,
.mh-team__line-2,
.mh-team__text,
.mh-media__line-1,
.mh-media__line-2 {
  grid-column: 4 / span 7;
}

.mh-team__line-1,
.mh-media__line-1 {
  grid-row: 2;
}

.mh-team__line-2,
.mh-media__line-2 {
  grid-row: 3;
}

.mh-team__line-2,
.mh-media__line-2 {
  color: var(--mh-text-soft);
}

.mh-team__text {
  max-width: 720px;
  grid-row: 4;
  margin-top: var(--mh-copy-gap);
  color: #5b524a;
}

.mh-team__photos {
  display: grid;
  gap: 30px;
}

.mh-team__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.mh-member {
  min-width: 0;
}

.mh-member__frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ded7cf;
}

.mh-member__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(.9) contrast(.96);
}

.mh-member:nth-child(1) .mh-member__photo { object-position: 48% 48%; }
.mh-member:nth-child(2) .mh-member__photo { object-position: 52% 48%; }
.mh-member:nth-child(3) .mh-member__photo { object-position: 50% 54%; }
.mh-member--drawing-hand .mh-member__photo { object-position: 48% 48%; }
.mh-member--bim-model-room .mh-member__photo { object-position: 52% 48%; }
.mh-member--interior-detail .mh-member__photo { object-position: 50% 54%; }
.mh-member--site-supervision .mh-member__photo { object-position: 50% 50%; }
.mh-member--material-board .mh-member__photo { object-position: 50% 50%; }
.mh-member--landscape-context .mh-member__photo { object-position: 50% 62%; }

.mh-member__name {
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.28;
}

.mh-member__role {
  margin-top: 8px;
  color: var(--mh-text-soft);
  font-size: 11px;
  line-height: 1.48;
}

.mh-media {
  background: var(--mh-bg-paper);
}

.mh-media__head {
  margin-bottom: 34px;
}

.mh-logos {
  overflow: hidden;
  border-top: 1px solid var(--mh-line);
  border-bottom: 1px solid var(--mh-line);
  background: rgba(255, 250, 244, .36);
}

.mh-logos__track {
  display: flex;
  align-items: center;
  width: max-content;
  min-width: 100%;
  gap: 76px;
  padding: 34px 0;
  animation: mh-marquee 34s linear infinite;
}

.mh-logos:hover .mh-logos__track {
  animation-play-state: paused;
}

.mh-logo-img {
  width: auto;
  max-width: 132px;
  height: 24px;
  object-fit: contain;
  opacity: .56;
  filter: grayscale(1) contrast(.9);
}

.mh-logo-word {
  color: rgba(80, 68, 56, .54);
  font-family: var(--mh-font-ui);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
}

@keyframes mh-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Contact */

.mh-contact {
  background: var(--mh-bg-dark);
  color: var(--mh-white);
}

.mh-cta-col {
  grid-column: 1 / span 6;
}

.mh-form-col,
.mh-contact .mh-form {
  grid-column: 8 / span 5;
  min-width: 0;
}

.mh-case-story__grid > .mh-form {
  grid-column: 8 / span 5;
  min-width: 0;
}

.mh-cta-script {
  margin-bottom: 18px;
  color: var(--mh-gold);
  font-family: var(--mh-font-ui) !important;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
}

.mh-cta-title {
  max-width: 620px;
  color: var(--mh-white);
}

.mh-cta-title span {
  display: inline;
}

.mh-form {
  display: grid;
  width: 100%;
  gap: 18px;
}

.mh-input {
  width: 100%;
  min-height: 54px;
  padding: 0;
  color: var(--mh-white);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(244, 241, 237, .38);
  border-radius: 0;
  outline: 0;
}

.mh-input::placeholder {
  color: rgba(244, 241, 237, .58);
}

.mh-input:focus {
  border-bottom-color: var(--mh-gold);
}

.is-white .mh-form .mh-input,
.is-light .mh-form .mh-input,
.mh-case-story__grid .mh-form .mh-input {
  color: var(--mh-text);
  border-bottom-color: rgba(28, 24, 20, .32);
}

.is-white .mh-form .mh-input::placeholder,
.is-light .mh-form .mh-input::placeholder,
.mh-case-story__grid .mh-form .mh-input::placeholder {
  color: rgba(28, 24, 20, .56);
}

.is-white .mh-form .mh-input:focus,
.is-light .mh-form .mh-input:focus,
.mh-case-story__grid .mh-form .mh-input:focus {
  border-bottom-color: var(--mh-gold-dark);
}

.is-white .mh-form .mh-check,
.is-light .mh-form .mh-check,
.mh-case-story__grid .mh-form .mh-check {
  color: #5b524a;
}

.is-white .mh-form .mh-check__txt,
.is-light .mh-form .mh-check__txt,
.mh-case-story__grid .mh-form .mh-check__txt {
  color: #5b524a;
}

.is-white .mh-form .mh-btn,
.is-light .mh-form .mh-btn,
.mh-case-story__grid .mh-form .mh-btn {
  background: var(--mh-bg-dark);
  color: var(--mh-white);
  border-color: var(--mh-bg-dark);
}

.mh-form__foot {
  display: grid;
  gap: 16px;
  justify-items: start;
  margin-top: 8px;
}

.mh-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: rgba(244, 241, 237, .72);
  font-size: 12px;
  line-height: 1.45;
}

.mh-check input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--mh-gold);
}

/* Portfolio, detail, blog, policy */

.mh-filter-bar,
.mh-pf-filter-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 38px 0 0;
}

.mh-filter-btn {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(113, 91, 61, .24);
  background: rgba(255, 250, 244, .32);
  color: #5b524a;
  font-size: 11px;
  cursor: pointer;
}

.mh-filter-btn.is-active,
.mh-filter-btn.active,
.mh-filter-btn:hover {
  color: var(--mh-text);
  border-color: rgba(113, 91, 61, .52);
  background: rgba(255, 250, 244, .86);
}

.mh-pg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.mh-case-hero {
  padding: 150px 0 86px;
  background: var(--mh-bg-paper);
  color: var(--mh-text);
}

.mh-case-hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--mh-gap);
}

.mh-case-back {
  display: inline-flex;
  margin-bottom: 34px;
  color: #4a4038 !important;
  font-size: 13px;
}

.mh-case-hero__title {
  font-family: var(--mh-font-display) !important;
  font-size: 64px !important;
  font-weight: 400 !important;
  line-height: 1.04 !important;
  letter-spacing: 0 !important;
  color: var(--mh-text) !important;
  text-transform: none !important;
  text-wrap: balance;
}

.mh-case-hero__copy {
  grid-column: 1 / span 5;
  align-self: end;
  color: #332d27;
}

.mh-case-hero__lead {
  grid-column: 7 / span 6;
  align-self: end;
  font-size: 18px;
  line-height: 1.72;
  color: #332d27;
}

.mh-case-facts {
  margin-top: 34px;
}

.mh-case-facts__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--mh-line);
  background: var(--mh-line);
}

.mh-case-fact {
  padding: 18px;
  background: rgba(255, 250, 244, .42);
  color: #332d27;
}

.mh-case-fact strong {
  font-weight: 600;
}

.mh-case-hero__media,
.mh-case-shot {
  overflow: hidden;
  background: #ddd4ca;
}

.mh-case-hero__media {
  margin-top: 52px;
  aspect-ratio: 16 / 9;
}

.mh-case-story,
.mh-case-gallery,
.mh-case-highlights,
.mh-case-related,
.mh-case-cta {
  background: var(--mh-bg-paper);
  color: var(--mh-text);
}

.mh-case-story__title,
.mh-case-gallery__title,
.mh-case-related__title {
  color: var(--mh-text);
}

.mh-case-story__text {
  color: #332d27;
}

.mh-case-related__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.mh-case-related__item {
  padding: 24px;
  border: 1px solid var(--mh-line);
  background: rgba(255, 250, 244, .42);
}

.mh-case-cta .mh-btn {
  background: var(--mh-bg-dark);
  color: var(--mh-white);
  border-color: var(--mh-bg-dark);
}

.mh-case-hero__media img,
.mh-case-shot img,
.mh-blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9) contrast(.96);
}

.mh-case-story__text {
  grid-column: 4 / span 6;
}

.mh-case-story__title,
.mh-case-gallery__title {
  font-size: 44px;
  line-height: 1.12;
}

.mh-case-highlights__grid,
.mh-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.mh-case-highlight {
  padding: 28px;
  border: 1px solid var(--mh-line);
  background: rgba(255, 250, 244, .4);
}

.mh-case-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.mh-case-gallery__head {
  grid-column: 1 / -1;
}

.mh-case-shot {
  grid-column: span 4;
  aspect-ratio: 4 / 3;
}

.mh-case-shot--wide {
  grid-column: span 8;
}

.mh-blog-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  color: var(--mh-text);
  border: 1px solid var(--mh-line);
  background: rgba(255, 250, 244, .45);
}

.mh-blog-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.mh-blog-ttl {
  margin-top: 12px;
  font-size: 30px;
  line-height: 1.14;
}

.mh-blog-date,
.mh-blog-cat {
  color: var(--mh-gold-dark);
  font-size: 11px;
}

.mh-case-story__grid .mh-blog-cat {
  color: #715b3d;
}

.mh-policy {
  max-width: 860px;
}

/* Footer */

.mh-footer {
  position: relative;
  padding: 72px 0 34px;
  background: #14110e;
  color: rgba(255, 250, 244, .76);
}

.mh-footer__inner {
  width: min(calc(100% - (var(--mh-page-x) * 2)), var(--mh-wrap));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr 1fr;
  gap: 48px;
}

.mh-footer__nav,
.mh-footer__offices,
.mh-footer__socials {
  display: grid;
  gap: 12px;
}

.mh-fnav-lbl {
  margin-bottom: 10px;
  color: var(--mh-gold);
  font-size: 11px;
}

.mh-fnav-link {
  color: rgba(255, 250, 244, .72);
  font-size: 14px;
}

.mh-fnav-link:hover {
  color: var(--mh-white);
}

.mh-footer__bottom {
  width: min(calc(100% - (var(--mh-page-x) * 2)), var(--mh-wrap));
  margin: 54px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--mh-line-dark);
  color: rgba(255, 250, 244, .5);
  font-size: 12px;
}

/* Responsive system */

@media (max-width: 1180px) {
  :root {
    --mh-page-x: 32px;
    --mh-section-y: 92px;
    --mh-h1: 52px;
    --mh-h1-sub: 40px;
    --mh-h2: 40px;
    --mh-h2-sub: 30px;
    --mh-h3: 27px;
    --mh-lead: 18px;
  }

  .mh-section::before,
  .mh-home-about::before,
  .mh-home-services-preview::before {
    background-size: calc((100vw - 64px) / 8) 100%, 100% 120px;
  }

  .mh-globe-sec .mh-wrap {
    display: block;
  }

  .mh-globe-sec__head {
    max-width: 760px;
  }

  .mh-globe-sec__stage {
    width: min(620px, 100%);
    margin: 56px auto 0;
  }

  .mh-globe-sec__locations {
    max-width: 760px;
  }

  .mh-home-services-head__title,
  .mh-team__line-1,
  .mh-team__line-2,
  .mh-team__text,
  .mh-media__line-1,
  .mh-media__line-2,
  .mh-pf-hero__line-1,
  .mh-pf-hero__line-2,
  .mh-pf-hero__desc,
  .mh-case-hero__title,
  .mh-case-hero__copy,
  .mh-globe-sec__line-1,
  .mh-globe-sec__line-2,
  .mh-globe-sec__desc,
  .mh-portfolio__line-1,
  .mh-portfolio__line-2,
  .mh-portfolio__desc,
  .mh-srv-detail__line-1,
  .mh-srv-detail__line-2 {
    grid-column: 1 / -1;
  }

  .mh-home-services-head__tag,
  .mh-team__tag,
  .mh-media__tag,
  .mh-pf-hero__tag,
  .mh-globe-sec__tag,
  .mh-portfolio__tag,
  .mh-srv-detail__tag {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 16px;
  }

  .mh-pf-hero__line-1,
  .mh-globe-sec__line-1,
  .mh-portfolio__line-1 {
    grid-row: 2;
  }

  .mh-pf-hero__line-2,
  .mh-globe-sec__line-2,
  .mh-portfolio__line-2 {
    grid-row: 3;
  }

  .mh-pf-hero__desc,
  .mh-globe-sec__desc,
  .mh-portfolio__desc {
    grid-row: 4;
    margin-top: 18px;
  }

  .mh-home-about__heading,
  .mh-home-about__copy {
    grid-column: 1 / span 6;
  }

  .mh-srv-cards,
  .mh-pg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mh-portfolio__row,
  .mh-team__row,
  .mh-blog-grid,
  .mh-case-highlights__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mh-srv-detail__text,
  .mh-srv-detail--rev .mh-srv-detail__text {
    grid-column: 1 / span 5;
  }

  .mh-srv-detail__img,
  .mh-srv-detail--rev .mh-srv-detail__img {
    grid-column: 7 / span 6;
    grid-row: auto;
  }

  .mh-cta-col {
    grid-column: 1 / span 6;
  }

  .mh-form-col,
  .mh-contact .mh-form {
    grid-column: 7 / span 6;
  }

  .mh-case-story__grid > .mh-form {
    grid-column: 7 / span 6;
  }
}

@media (max-width: 860px) {
  :root {
    --mh-page-x: 22px;
    --mh-section-y: 76px;
    --mh-h1: 40px;
    --mh-h1-sub: 31px;
    --mh-h2: 31px;
    --mh-h2-sub: 25px;
    --mh-h3: 24px;
    --mh-body: 16px;
    --mh-lead: 17px;
  }

  .mh-section::before,
  .mh-home-about::before,
  .mh-home-services-preview::before {
    background-size: calc((100vw - 44px) / 4) 100%, 100% 112px;
    opacity: .22;
  }

  .mh-header__inner {
    width: min(calc(100% - 32px), var(--mh-wrap));
    height: 66px;
  }

  .mh-header-cta {
    gap: 10px;
  }

  .mh-nav-btn {
    display: none;
  }

  .mh-home-hero {
    min-height: 86vh;
  }

  .mh-home-hero__video {
    object-position: 52% 50%;
  }

  .mh-home-hero__content {
    padding: 128px 0 70px;
  }

  .mh-home-hero__title {
    font-size: 50px !important;
  }

  .mh-home-about__grid,
  .mh-contact__grid,
  .mh-case-story__grid,
  .mh-home-services-head,
  .mh-team__head,
  .mh-media__head,
  .mh-globe-sec__head,
  .mh-portfolio__head,
  .mh-pf-hero__head,
  .mh-srv-detail__head,
  .mh-srv-detail__body,
  .mh-srv-process__head,
  .mh-scrolly {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 12px;
  }

  .mh-home-about__heading,
  .mh-home-about__copy,
  .mh-home-services-head__tag,
  .mh-home-services-head__title,
  .mh-team__tag,
  .mh-team__line-1,
  .mh-team__line-2,
  .mh-team__text,
  .mh-media__tag,
  .mh-media__line-1,
  .mh-media__line-2,
  .mh-pf-hero__tag,
  .mh-pf-hero__line-1,
  .mh-pf-hero__line-2,
  .mh-pf-hero__desc,
  .mh-globe-sec__line-1,
  .mh-globe-sec__line-2,
  .mh-globe-sec__desc,
  .mh-portfolio__tag,
  .mh-portfolio__line-1,
  .mh-portfolio__line-2,
  .mh-portfolio__desc,
  .mh-srv-detail__tag,
  .mh-srv-detail__line-1,
  .mh-srv-detail__line-2,
  .mh-srv-detail__text,
  .mh-srv-detail__img,
  .mh-srv-detail--rev .mh-srv-detail__text,
  .mh-srv-detail--rev .mh-srv-detail__img,
  .mh-srv-process__title,
  .mh-scrolly__media-col,
  .mh-scrolly__steps,
  .mh-cta-col,
  .mh-form-col,
  .mh-contact .mh-form,
  .mh-case-story__grid > .mh-form,
  .mh-case-hero__title,
  .mh-case-hero__copy,
  .mh-case-story__text {
    grid-column: 1 / -1;
  }

  .mh-srv-detail__img img {
    min-height: 340px;
  }

  .mh-scrolly__media {
    position: relative;
    top: auto;
  }

  .mh-srv-cards,
  .mh-pg-grid,
  .mh-portfolio__row,
  .mh-team__row,
  .mh-blog-grid,
  .mh-case-highlights__grid {
    grid-template-columns: 1fr;
  }

  .mh-pc {
    aspect-ratio: 5 / 6;
  }

  .mh-globe-sec__stage {
    width: min(520px, 100%);
    margin-top: 46px;
  }

  .mh-globe-sec__locations {
    justify-content: flex-start;
    margin-top: 22px;
  }

  .mh-case-gallery {
    grid-template-columns: 1fr;
  }

  .mh-case-shot,
  .mh-case-shot--wide {
    grid-column: 1 / -1;
  }

  .mh-case-hero {
    padding: 112px 0 70px;
  }

  .mh-case-hero__grid,
  .mh-case-facts__grid,
  .mh-case-related__grid {
    grid-template-columns: 1fr;
  }

  .mh-case-hero__title {
    font-size: 42px !important;
  }

  .mh-home-services-head__tag,
  .mh-team__tag,
  .mh-media__tag,
  .mh-pf-hero__tag,
  .mh-srv-detail__tag {
    display: block;
    grid-row: 1;
    margin-bottom: 18px;
  }

  .mh-globe-sec__tag,
  .mh-portfolio__tag {
    display: block;
    grid-row: 1;
    margin-bottom: 18px;
  }

  .mh-home-services-head__tag .mh-tag,
  .mh-team__tag .mh-tag,
  .mh-media__tag .mh-tag,
  .mh-pf-hero__tag .mh-tag,
  .mh-srv-detail__tag .mh-tag {
    display: inline-flex;
  }

  .mh-globe-sec__tag .mh-tag,
  .mh-portfolio__tag .mh-tag {
    display: inline-flex;
  }

  .mh-pf-hero__line-1,
  .mh-globe-sec__line-1,
  .mh-portfolio__line-1 {
    grid-row: 2;
  }

  .mh-pf-hero__line-2,
  .mh-globe-sec__line-2,
  .mh-portfolio__line-2 {
    grid-row: 3;
  }

  .mh-pf-hero__desc,
  .mh-globe-sec__desc,
  .mh-portfolio__desc {
    grid-row: 4;
    margin-top: 20px;
  }

  .mh-footer__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 520px) {
  :root {
    --mh-page-x: 16px;
    --mh-h1: 34px;
    --mh-h1-sub: 27px;
    --mh-h2: 28px;
    --mh-h2-sub: 23px;
    --mh-lead: 16px;
  }

  .mh-home-hero__title {
    font-size: 42px !important;
  }

  .mh-home-hero__content {
    padding: 112px 0 58px;
  }

  .mh-home-hero__lead {
    margin-top: 16px;
    line-height: 1.58;
  }

  .mh-home-hero__actions {
    display: grid;
    width: 100%;
  }

  .mh-home-hero__actions .mh-btn,
  .mh-form__foot .mh-btn {
    width: 100%;
  }

  .mh-btn {
    width: 100%;
    padding-inline: 18px;
  }

  .mh-srv-card__name {
    font-size: 19px;
  }

  .mh-pc__overlay {
    padding: 22px;
  }

  .mh-pc__name {
    font-size: 28px;
  }

  .mh-logos__track {
    gap: 42px;
  }

  .mh-logo-img {
    max-width: 104px;
    height: 20px;
  }
}
