/* =========================================================
   MONOLITH BUREAU — вариант Claude, концепция «Отливка»
   Страница собрана как монолит из щитов опалубки:
   швы панелей, следы стяжек, фактура бетона, косой свет.
   ========================================================= */

:root {
  /* Материал */
  --ink: #141312;          /* мокрый тёмный бетон */
  --ink-2: #1c1a18;
  --ink-3: #2a2724;
  --stone: #cdc6bb;        /* светлый бетон */
  --stone-2: #ddd7cd;
  --stone-3: #e9e4db;      /* тёплый белый */
  --oxide: #cf6c36;        /* окись арматуры — единственный акцент */
  --oxide-hi: #e07e46;

  --on-dark: #efe9df;
  --on-dark-2: rgba(239, 233, 223, .7);
  --on-dark-3: rgba(239, 233, 223, .46);
  --on-light: #171615;
  --on-light-2: rgba(23, 22, 21, .74);
  --on-light-3: rgba(23, 22, 21, .5);

  --seam-light: rgba(40, 34, 28, .12);
  --seam-dark: rgba(255, 245, 230, .06);

  /* Типографика */
  --font-display: "Unbounded", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Onest", "Helvetica Neue", Arial, system-ui, sans-serif;

  /* Сетка */
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --section-y: clamp(80px, 11vw, 168px);
  --header-h: 72px;

  /* Щит опалубки */
  --panel-w: 300px;
  --panel-h: 150px;

  --ease: cubic-bezier(.2, .7, .1, 1);

  /* Фактура: мелкое зерно + крупные облака цемента */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --clouds: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.011' numOctaves='5' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .38 -.12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");
  --pores: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='turbulence' baseFrequency='.06' numOctaves='1' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -9 6.4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
}

@media (max-width: 720px) {
  :root { --panel-w: 240px; --panel-h: 120px; --header-h: 64px; }
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--font-text);
  font-size: clamp(16px, 1.05vw + 10px, 18px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

:focus-visible {
  outline: 2px solid var(--oxide-hi);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--oxide); color: var(--ink);
  padding: 10px 16px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Типографика ---------- */
.hero-title, .h2, .h3, .h4, .brand-name, .footer-name, .spec-num, .step-num, .interlude, .eyebrow-num, .duo-index {
  font-family: var(--font-display);
}

.h2 {
  font-size: clamp(1.7rem, 3.9vw + .3rem, 4.1rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  font-weight: 500;
  max-width: 17ch;
  hyphens: manual;
  overflow-wrap: break-word;
}
.h2 .h2-soft { display: block; opacity: .55; }

.h3 {
  font-size: clamp(1.25rem, 1.4vw + .7rem, 1.9rem);
  line-height: 1.15;
  letter-spacing: -.015em;
}
.h4 {
  font-size: clamp(1.05rem, .6vw + .8rem, 1.3rem);
  line-height: 1.2;
  letter-spacing: -.01em;
  font-weight: 500;
  margin: 0 0 .5em;
}

.kicker, .eyebrow, .panel-label, .img-note, .hint, .spec-title, .ticket-title, .hero-scroll, .form-req, .duo-sub {
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 500;
  line-height: 1.4;
}
.duo-sub { letter-spacing: .08em; font-size: .8rem; }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: clamp(20px, 2.4vw, 32px);
  color: var(--oxide);
}
.eyebrow-num {
  letter-spacing: 0; font-size: .78rem;
  padding: 4px 8px; border: 1px solid currentColor; border-radius: 1px;
}
.cast--light .eyebrow { color: #a24d20; }

.section-intro {
  max-width: 44ch;
  font-size: clamp(1.02rem, .4vw + .9rem, 1.2rem);
  margin-top: clamp(20px, 2.4vw, 32px);
}

.img-note {
  font-size: .64rem;
  letter-spacing: .16em;
  opacity: .75;
}

/* ---------- Кнопки и ссылки ---------- */
.btn {
  --pad-y: 18px; --pad-x: 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: var(--pad-y) var(--pad-x);
  font: 600 .95rem/1.2 var(--font-text);
  letter-spacing: .01em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-primary { background: var(--oxide); color: var(--ink); }
.btn-primary:hover { background: var(--oxide-hi); }
.btn-primary .arrow { transition: transform .3s var(--ease); }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-sm { --pad-y: 11px; --pad-x: 18px; font-size: .85rem; }

.text-link {
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size .3s var(--ease), color .2s;
}
.text-link:hover { color: var(--oxide); }

/* =========================================================
   Поверхность: фотофактура бетона + световая вуаль + перетекание
   v2: сетка щитов и точки-стяжки убраны по правке заказчика
   ========================================================= */
.cast {
  --flow: clamp(120px, 16vw, 260px);
  --none: linear-gradient(transparent, transparent);
  position: relative; isolation: isolate;
}
.cast::before, .cast::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
}
.cast::before {
  background-image: var(--flow-top, var(--none)), var(--flow-bottom, var(--none)), var(--wash), var(--tex);
  background-size: 100% 100%, 100% 100%, 100% 100%, cover;
  background-position: 0 0, 0 0, 0 0, var(--tex-pos, center);
  background-repeat: no-repeat;
}
.cast::after {
  background-image: var(--grain);
  background-size: 220px 220px;
}

/* Светлый бетон в косом свете */
.cast--light {
  --wash: linear-gradient(rgba(229, 223, 213, .8), rgba(229, 223, 213, .74));
  --tex: url("assets/img/tex-light-macro.jpg");
  background-color: var(--stone-2);
  color: var(--on-light);
}
.cast--light::after { opacity: .12; mix-blend-mode: multiply; }

/* Тёмный пористый бетон */
.cast--dark {
  --wash: linear-gradient(rgba(24, 22, 20, .86), rgba(24, 22, 20, .9));
  --tex: url("assets/img/tex-dark-macro.jpg");
  background-color: var(--ink-2);
  color: var(--on-dark);
}
.cast--dark::after { opacity: .16; mix-blend-mode: screen; }

/* Фактура и кадрирование по секциям, чтобы фон не повторялся */
#task { --tex-pos: 20% 40%; padding-bottom: 0; }
#competence { --tex-pos: 30% 30%; }
#estimate { --tex: url("assets/img/concrete-light-concept.jpg"); --tex-pos: 60% 35%; --wash: linear-gradient(rgba(229, 223, 213, .76), rgba(229, 223, 213, .8)); }
#process { --tex-pos: 85% 70%; }
.people-body { --tex-pos: 85% 50%; }
#faq { --tex-pos: 45% 60%; }
#request {
  --tex: url("assets/img/tex-wet-macro.jpg"); --tex-pos: 60% 40%;
  --wash: linear-gradient(90deg, rgba(20, 19, 18, .92) 0%, rgba(20, 19, 18, .8) 50%, rgba(20, 19, 18, .66) 100%);
}

/* Перетекание: тёмный край плавно растворяется в светлой фактуре и наоборот */
.flow-from-dark {
  --flow-top: linear-gradient(to bottom, var(--ink) 0, rgba(20, 19, 18, .55) calc(var(--flow) * .45), rgba(20, 19, 18, 0) var(--flow));
  padding-top: calc(var(--section-y) + var(--flow) * .55);
}
.flow-to-dark {
  --flow-bottom: linear-gradient(to top, var(--ink-2) 0, rgba(28, 26, 24, .55) calc(var(--flow) * .45), rgba(28, 26, 24, 0) var(--flow));
  padding-bottom: calc(var(--section-y) + var(--flow) * .55);
}

/* Тёмная фактура проявляется постепенно, без шва после светлого блока */
.flow-from-ink {
  --flow-top: linear-gradient(to bottom, var(--ink-2) 0, rgba(28, 26, 24, .7) calc(var(--flow) * .4), rgba(28, 26, 24, 0) var(--flow));
}

/* Косой свет, который медленно проходит по светлым секциям */
.beam > .wrap, .beam > .people-text { position: relative; }
.beam { overflow: hidden; overflow: clip; }
.beam .beam-ray {
  position: absolute; z-index: -1; pointer-events: none;
  top: -20%; bottom: -20%; left: -60%; width: 220%;
  background: linear-gradient(112deg,
    transparent 34%,
    rgba(255, 238, 210, .55) 40%,
    rgba(255, 238, 210, .18) 47%,
    transparent 52%,
    rgba(255, 238, 210, .32) 57%,
    transparent 62%);
  mix-blend-mode: soft-light;
  transform: translate3d(calc(var(--beam, 0) * 18%), 0, 0);
  will-change: transform;
}

/* =========================================================
   Шапка
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--on-dark);
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(20, 19, 18, .88);
  border-bottom-color: rgba(255,245,230,.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; margin-right: auto;
}
.brand-mark {
  display: inline-block;
  width: 34px; aspect-ratio: 620 / 505;
  background: currentColor;
  -webkit-mask: url("assets/img/mark-white.png") center / contain no-repeat;
  mask: url("assets/img/mark-white.png") center / contain no-repeat;
}
.brand-mark--lg { width: 64px; }
.brand-name {
  font-size: .82rem; font-weight: 500; letter-spacing: .26em; line-height: 1.15;
  white-space: nowrap;
}
.brand-name span { opacity: .6; }

.nav ul { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav a {
  position: relative;
  font-size: .86rem; font-weight: 500; text-decoration: none;
  color: var(--on-dark-2);
  padding: 8px 0;
  transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--oxide); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--on-dark); }
.nav a.is-active::after, .nav a:hover::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  align-items: center; gap: 10px;
  background: none; border: 1px solid rgba(255,245,230,.25); color: inherit;
  font: 500 .8rem/1 var(--font-text); letter-spacing: .12em; text-transform: uppercase;
  padding: 10px 12px; cursor: pointer;
}
.menu-toggle-bars, .menu-toggle-bars::before {
  display: block; width: 18px; height: 1.5px; background: currentColor;
  transition: transform .3s var(--ease);
}
.menu-toggle-bars { position: relative; transform: translateY(-3px); }
.menu-toggle-bars::before { content: ""; position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { transform: translateY(0) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(-6px) rotate(-90deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--ink);
  padding: 24px var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ol { border-top: 1px solid rgba(255,245,230,.1); }
.mobile-menu li { border-bottom: 1px solid rgba(255,245,230,.1); }
.mobile-menu a:not(.btn) {
  display: flex; align-items: baseline; gap: 18px;
  padding: 16px 0;
  font: 500 clamp(1.3rem, 5.5vw, 1.8rem)/1.1 var(--font-display);
  text-decoration: none; letter-spacing: -.01em;
}
.mobile-menu a span { font: 500 .72rem/1 var(--font-text); color: var(--oxide); letter-spacing: .1em; }

@media (max-width: 1023px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
/* v4, телефон: шапка не едет за экраном — логотип стоит прямо на видео
   и уходит вместе с первым экраном; кнопка расчёта есть на самом экране. */
@media (max-width: 767px) {
  html { scroll-padding-top: 8px; }
  .site-header, .site-header.is-solid {
    position: absolute;
    background: transparent; border-bottom-color: transparent;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .header-inner { align-items: flex-start; padding-top: 22px; }
  .header-cta { display: none; }
  .brand { gap: 12px; align-items: center; }
  .brand-mark { width: 40px; }
  .brand-name { display: block; font-size: .86rem; letter-spacing: .3em; line-height: 1.25; }
  .brand-name span { display: block; font-size: .64rem; letter-spacing: .5em; opacity: .7; }
  .menu-toggle { border-color: rgba(255,245,230,.3); background: rgba(20,19,18,.25); }
  .menu-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hero-inner { padding-top: 120px; }
  /* меню открывается поверх всего экрана, раз шапки сверху больше нет */
  .mobile-menu { inset: 0; padding-top: 96px; }
  .menu-toggle[aria-expanded="true"] { position: fixed; top: 22px; right: var(--gutter); z-index: 60; }
}

/* =========================================================
   00 Первый экран
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0; z-index: -2; overflow: hidden;
  animation: hero-settle 2.8s var(--ease) both;
}
@keyframes hero-settle { from { transform: scale(1.1); filter: brightness(.6); } to { transform: none; filter: none; } }
.hero-media img, .hero-canvas, .hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%;
}
.hero-media img { transform: scale(calc(1.04 + var(--hz, 0) * .28)); }
/* v3: при прокрутке камера «наезжает» на струю, текст уходит вверх, кадр темнеет */
.hero-video, .hero-canvas {
  transform: scale(calc(1 + var(--hz, 0) * .28));
  transform-origin: 72% 55%;
  will-change: transform;
}
.hero-media img { transform-origin: 72% 55%; }
.hero-inner, .hero-rail {
  transform: translate3d(0, calc(var(--hz, 0) * -90px), 0);
  opacity: calc(1 - var(--hz, 0) * 1.3);
}
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--ink);
  opacity: calc(var(--hz, 0) * .7);
}
/* Живой кадр: canvas рисует тот же снимок с течением бетона, брызгами и пылью в луче */
.hero-canvas { display: none; }
.hero.is-live .hero-canvas { display: block; }
.hero.is-live .hero-media img, .hero.has-video .hero-media img, .hero.has-video .hero-canvas { visibility: hidden; }

.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14,13,12,.92) 0%, rgba(14,13,12,.72) 36%, rgba(14,13,12,.18) 68%, rgba(14,13,12,.05) 100%),
    linear-gradient(0deg, rgba(14,13,12,.85) 0%, rgba(14,13,12,0) 38%),
    linear-gradient(180deg, rgba(14,13,12,.6) 0%, rgba(14,13,12,0) 22%);
}
.hero-shade::after {
  content: ""; position: absolute; inset: 0;
  background-image: var(--grain); background-size: 220px;
  opacity: .14; mix-blend-mode: overlay;
}

.hero-inner {
  align-self: end;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: clamp(32px, 5vw, 56px);
}
.hero-kicker { color: var(--on-dark-2); margin-bottom: clamp(18px, 2.4vw, 32px); }

.hero-title {
  font-size: clamp(2.05rem, 7.4vw, 8rem);
  line-height: .96;
  letter-spacing: -.035em;
  font-weight: 500;
  margin-left: -.04em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
.hero-title .line:nth-child(2) { color: var(--stone-3); }
.hero-title .line:nth-child(3) > span { color: var(--oxide); }

.hero-foot {
  display: grid; gap: 24px 64px;
  grid-template-columns: minmax(0, 46ch) auto;
  align-items: end;
  margin-top: clamp(28px, 4vw, 56px);
}
.hero-foot .lead { color: var(--on-dark-2); font-size: clamp(1rem, .5vw + .85rem, 1.2rem); margin: 0; }
.hero-action { display: grid; gap: 14px; justify-items: start; }
.hero-note { color: var(--on-dark-3); font-size: .86rem; max-width: 34ch; margin: 0; }

.hero-rail {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-bottom: 22px;
  color: var(--on-dark-3);
}
.hero-rail-end { display: inline-flex; align-items: center; gap: 18px; }
.motion-toggle {
  background: none; color: var(--on-dark-2); cursor: pointer;
  border: 1px solid rgba(255,245,230,.22); padding: 7px 12px;
  font: 500 .72rem/1 var(--font-text); letter-spacing: .1em; text-transform: uppercase;
}
.motion-toggle:hover { color: var(--on-dark); border-color: rgba(255,245,230,.5); }
@media (max-width: 560px) { .hero-rail .img-note { display: none; } }
.hero-scroll { display: inline-flex; align-items: center; gap: 12px; }
.hero-scroll::before {
  content: ""; width: 1px; height: 28px; background: currentColor;
  animation: scroll-cue 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scroll-cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 860px) {
  .hero-foot { grid-template-columns: 1fr; }
  .hero-media img, .hero-canvas, .hero-video { object-position: 70% 50%; }
  .hero-shade {
    background:
      linear-gradient(0deg, rgba(14,13,12,.96) 0%, rgba(14,13,12,.75) 48%, rgba(14,13,12,.25) 80%),
      linear-gradient(180deg, rgba(14,13,12,.6) 0%, rgba(14,13,12,0) 22%);
  }
}

/* =========================================================
   Общая секция
   ========================================================= */
.section { padding-block: var(--section-y); }
.section-head { margin-bottom: clamp(48px, 7vw, 104px); }
.cast--light .section-intro { color: var(--on-light-2); }
.cast--dark .section-intro { color: var(--on-dark-2); }

.bridge {
  margin-top: clamp(48px, 6vw, 88px);
  padding-top: 28px;
  border-top: 1px solid var(--seam-light);
  font-size: clamp(1.02rem, .5vw + .9rem, 1.25rem);
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between;
}
.bridge--dark { border-top-color: rgba(255,245,230,.1); }

/* ---------- 01 Задача: чертёж как фон при прокрутке ---------- */
.blueprint { position: relative; margin-top: clamp(16px, 3vw, 40px); }
.blueprint-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; overflow: clip; }
.blueprint-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.blueprint-sticky img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
  transform: scale(calc(1.04 + var(--bp, 0) * .14)) translate3d(0, calc(var(--bp, 0) * -2%), 0);
  transform-origin: 40% 40%;
  will-change: transform;
}
/* Растворение чертежа: сверху в светлый бетон, снизу в тёмный следующий блок */
.blueprint::before, .blueprint::after { content: ""; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
.blueprint::before { top: 0; height: clamp(140px, 22vh, 260px); background: linear-gradient(to bottom, rgba(229,223,213,.95), rgba(229,223,213,0)); }
.blueprint::after { bottom: -1px; height: clamp(180px, 32vh, 340px); background: linear-gradient(to top, var(--ink-2) 0%, rgba(28,26,24,.6) 45%, rgba(28,26,24,0) 100%); }
.blueprint-content {
  position: relative; z-index: 2;
  padding-top: clamp(160px, 34vh, 360px);
  padding-bottom: clamp(220px, 40vh, 420px);
}
/* v4: на телефоне блок с чертежом короче — меньше пустоты над и под карточками */
@media (max-width: 767px) {
  .blueprint { margin-top: 0; }
  .blueprint-content { padding-top: 56px; padding-bottom: 150px; }
  .blueprint::before { height: 90px; }
  .blueprint::after { height: 150px; }
  #task .section-head { margin-bottom: 32px; }
}
.blueprint .bridge {
  border-top: 0;
  background: rgba(238, 233, 225, .84);
  padding: 22px clamp(20px, 2.6vw, 36px);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.blueprint-note { margin-top: 18px; color: var(--on-dark); text-shadow: 0 1px 8px rgba(0,0,0,.6); }

.roles {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
@media (max-width: 760px) { .roles { grid-template-columns: 1fr; } }

/* Панель поверх чертежа: матовое стекло */
.panel {
  position: relative;
  padding: clamp(28px, 3.4vw, 52px);
  background: rgba(238, 233, 225, .84);
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 40px 80px -40px rgba(30,22,14,.55);
  -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1);
}
.panel-label { color: #a24d20; margin-bottom: 18px; }
.panel .h3 { margin-bottom: 16px; max-width: 16ch; }
.panel p:not(.panel-label) { color: var(--on-light-2); max-width: 46ch; }

/* ---------- 02 Компетенции ---------- */
.duo {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px) clamp(16px, 2vw, 32px);
}
.duo-item { grid-column: 1 / span 6; }
.duo-item--offset { grid-column: 8 / span 5; margin-top: clamp(80px, 14vw, 220px); }
.duo-media { position: relative; margin: 0 0 28px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink-3); }
.duo-item--offset .duo-media { aspect-ratio: 4 / 3; }
.duo-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.duo-item:hover .duo-media img { transform: scale(1.035); }
.duo-media .img-note { position: absolute; left: 14px; bottom: 12px; color: var(--on-dark); text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.pos-light { object-position: 35% 40%; }
.pos-arch { object-position: 70% 50%; }
.duo-index {
  font-size: .8rem; color: var(--oxide); margin-bottom: 14px;
  display: inline-block; border: 1px solid currentColor; padding: 3px 8px; line-height: 1.2;
}
.duo-item .h3 { margin-bottom: 10px; }
.duo-sub { color: var(--on-dark); margin-bottom: 18px; }
.duo-item p:last-child { color: var(--on-dark-2); max-width: 46ch; }

@media (max-width: 860px) {
  .duo-item, .duo-item--offset { grid-column: 1 / -1; margin-top: 0; }
  .duo-media, .duo-item--offset .duo-media { aspect-ratio: 4 / 3; }
}

/* ---------- Интерлюдия: эмоциональная линия ---------- */
.interlude {
  position: relative;
  background: var(--ink);
  border-block: 1px solid rgba(255,245,230,.07);
  padding-block: clamp(28px, 4vw, 56px);
  overflow: hidden;
  font-size: clamp(2.6rem, 9vw, 9rem);
  line-height: 1;
  letter-spacing: -.03em;
  font-weight: 500;
  white-space: nowrap;
}
/* v4: на телефоне бегущая строка меньше и уже */
@media (max-width: 767px) {
  .interlude { font-size: 1.9rem; padding-block: 18px; }
}
.interlude-track {
  display: inline-flex; align-items: center; gap: .35em;
  transform: translate3d(calc(var(--drift, 0) * -1px), 0, 0);
  will-change: transform;
}
.interlude span { color: transparent; -webkit-text-stroke: 1px rgba(239,233,223,.35); }
.interlude span:nth-of-type(3), .interlude span:nth-of-type(7) { color: var(--stone); -webkit-text-stroke: 0; }
.interlude i { width: .22em; height: .22em; border-radius: 50%; background: var(--oxide); flex: none; }

/* ---------- 03 Расчёт ---------- */
.estimate {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(48px, 6vw, 120px);
  align-items: start;
}
.estimate-aside { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 960px) {
  .estimate { grid-template-columns: 1fr; }
  .estimate-aside { position: static; }
}

.ticket {
  margin-top: clamp(32px, 4vw, 48px);
  padding: clamp(24px, 3vw, 36px);
  background: var(--ink-2);
  color: var(--on-dark);
  position: relative;
  box-shadow: 0 40px 70px -40px rgba(20,15,10,.6);
}
.ticket::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grain); background-size: 220px; opacity: .18; mix-blend-mode: screen;
}
.ticket-title { color: var(--oxide); margin-bottom: 16px; }
.ticket-list { display: grid; gap: 0; margin-bottom: 28px; }
.ticket-list li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px solid rgba(255,245,230,.1);
  font-weight: 500;
}
.ticket-list li::before {
  content: ""; width: 7px; height: 7px; flex: none; transform: translateY(-1px);
  border-radius: 50%;
  background: radial-gradient(circle, #000 0 2px, rgba(255,240,220,.35) 2.5px 3.5px);
}
.ticket .btn { width: 100%; }
.ticket-note { margin-top: 14px; font-size: .86rem; color: var(--on-dark-3); }

.spec-title { color: var(--on-light-3); padding-bottom: 18px; border-bottom: 1px solid rgba(23,22,21,.85); }
.spec-row {
  display: grid; grid-template-columns: clamp(64px, 9vw, 132px) 1fr;
  gap: 16px;
  padding: clamp(24px, 3vw, 40px) 0;
  border-bottom: 1px solid rgba(23,22,21,.18);
}
.spec-num {
  font-size: clamp(2rem, 4.2vw, 4rem); line-height: .9; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(23,22,21,.55);
}
.spec-row .h4 { color: var(--on-light); }
.spec-row p { color: var(--on-light-2); max-width: 42ch; }

/* ---------- 04 Процесс ---------- */
.steps {
  --pour: 0;
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  padding-top: 48px;
}
.steps::before, .steps::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
}
.steps::before { background: rgba(255,245,230,.12); }
.steps::after {
  background: var(--oxide);
  transform: scaleX(var(--pour)); transform-origin: left;
}
.step { position: relative; }
.step::before {
  content: ""; position: absolute; top: -55px; left: 0;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink-2); border: 2px solid var(--oxide);
}
.step-num { display: block; font-size: .85rem; color: var(--oxide); margin-bottom: 18px; }
.step p { color: var(--on-dark-2); font-size: .98rem; }

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; padding-top: 0; padding-left: 40px; gap: 40px; }
  .steps::before, .steps::after { top: 0; bottom: 0; left: 6px; right: auto; width: 2px; height: auto; }
  .steps::after { transform: scaleY(var(--pour)); transform-origin: top; }
  .step::before { top: 2px; left: -41px; }
}

/* ---------- 05 Ответственность ---------- */
.people {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: min(100vh, 960px);
  background: var(--ink);
}
.people-media { position: relative; margin: 0; overflow: hidden; }
.people-media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 45%; }
.people-media .img-note { position: absolute; left: var(--gutter); bottom: 18px; color: var(--on-dark); text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.people-body { display: flex; align-items: center; padding: var(--section-y) var(--gutter); }
.people-text { max-width: 560px; }
.people-text .h2 { margin-bottom: clamp(24px, 3vw, 40px); }
.people-text p:not(.eyebrow) { color: var(--on-light-2); max-width: 46ch; }
.principle {
  margin: clamp(32px, 4vw, 56px) 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(23,22,21,.85);
}
.principle p {
  font: 500 clamp(1.2rem, 1.3vw + .7rem, 1.75rem)/1.2 var(--font-display);
  letter-spacing: -.015em; color: var(--on-light) !important;
}
@media (max-width: 860px) {
  .people { grid-template-columns: 1fr; min-height: 0; }
  .people-media { aspect-ratio: 4 / 3; }
}

/* ---------- 06 FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 120px); align-items: start; }
@media (max-width: 960px) { .faq { grid-template-columns: 1fr; } }
.faq-list { border-top: 1px solid rgba(23,22,21,.85); }
.qa { border-bottom: 1px solid rgba(23,22,21,.18); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: clamp(20px, 2.4vw, 30px) 0;
  font: 500 clamp(1.05rem, .7vw + .85rem, 1.4rem)/1.25 var(--font-display);
  letter-spacing: -.01em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover span { color: #a24d20; }
.qa summary i {
  position: relative; flex: none; width: 36px; height: 36px; border: 1px solid rgba(23,22,21,.4); border-radius: 50%;
  transition: transform .35s var(--ease), background-color .25s;
}
.qa summary i::before, .qa summary i::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor;
  transform: translate(-50%, -50%);
}
.qa summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .35s var(--ease); }
.qa[open] summary i { background: var(--ink); color: var(--stone-3); border-color: var(--ink); }
.qa[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa-body { padding: 0 56px clamp(22px, 2.6vw, 32px) 0; color: var(--on-light-2); max-width: 60ch; }

/* ---------- 07 Заявка ---------- */
/* v2: блок компактнее — меньше отступы, заголовок и поля */
.request { padding-block: clamp(64px, 8vw, 120px); overflow: hidden; }
.request .h2 { font-size: clamp(1.6rem, 2.6vw + .4rem, 3.2rem); max-width: 15ch; }
.request .section-intro { font-size: 1rem; margin-top: 18px; }
.request-grid {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 96px); align-items: start;
}
@media (max-width: 960px) { .request-grid { grid-template-columns: 1fr; } }
.request-hint { margin-top: 16px; color: var(--on-dark-3); font-size: .95rem; max-width: 40ch; }

.form {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  padding: clamp(20px, 2.6vw, 36px);
  background: rgba(20,19,18,.72);
  border: 1px solid rgba(255,245,230,.1);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.field { display: grid; gap: 5px; align-content: start; min-width: 0; }
.field--wide, .form-status-note { grid-column: 1 / -1; }

.form-status-note {
  margin: 0 0 6px;
  padding: 14px 16px;
  border-left: 3px solid var(--oxide);
  background: rgba(207,108,54,.1);
  font-size: .9rem; color: var(--on-dark);
}
.form-status-note strong { font-weight: 600; }

.field label { font-weight: 500; font-size: .92rem; }
.req { color: var(--oxide); }
.field input, .field textarea {
  width: 100%;
  font: 400 1rem/1.4 var(--font-text);
  color: var(--on-dark);
  background: rgba(255,245,230,.04);
  border: 0; border-bottom: 1px solid rgba(255,245,230,.32);
  border-radius: 0;
  padding: 9px 2px;
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 80px; }
.field input::placeholder { color: var(--on-dark-3); }
.field input:hover, .field textarea:hover { border-bottom-color: rgba(255,245,230,.6); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--oxide); background: rgba(255,245,230,.07); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--oxide-hi); outline-offset: 2px; }
.hint { font-size: .82rem; letter-spacing: 0; text-transform: none; color: var(--on-dark-3); margin: 0; }
.error { font-size: .84rem; color: #ff9b6b; margin: 0; min-height: 0; }
.error:empty { display: none; }
.field.is-invalid input { border-bottom-color: #ff9b6b; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.form-req { color: var(--on-dark-3); margin: 0; }

.form-result {
  padding: 18px 20px;
  border: 1px solid rgba(255,245,230,.18);
  background: rgba(255,245,230,.05);
  font-size: .95rem;
}
.form-result strong { display: block; margin-bottom: 6px; font-weight: 600; color: var(--oxide-hi); }
.form-result .result-actions { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 12px; }
.form-result button {
  background: none; border: 0; padding: 0; color: var(--on-dark); cursor: pointer;
  font: 600 .9rem/1.4 var(--font-text); text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- Подвал ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-2); padding-block: clamp(56px, 7vw, 96px) 40px; border-top: 1px solid rgba(255,245,230,.07); }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; align-items: start; }
.footer-brand { color: var(--on-dark); }
.footer-brand .brand-mark { margin-bottom: 20px; }
.footer-name { font-size: .9rem; letter-spacing: .26em; margin-bottom: 6px; }
.footer-spec { color: var(--on-dark-2); font-size: .95rem; }
.footer-nav { display: grid; gap: 10px; justify-items: start; }
.footer-nav a { text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { color: var(--oxide); }
.footer-meta { font-size: .86rem; color: var(--on-dark-3); }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

/* =========================================================
   Движение
   ========================================================= */
.js .reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

.js .reveal-strip { clip-path: inset(0 100% 0 0); transition: clip-path 1.6s var(--ease); }
.js .reveal-strip.is-in { clip-path: inset(0 0 0 0); }

.js .hero-title .line > span { transform: translate3d(0, 105%, 0); animation: line-up 1.2s var(--ease) forwards; }
.js .hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.js .hero-title .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes line-up { to { transform: none; } }
.js .hero-kicker, .js .hero-foot, .js .hero-rail { animation: fade-in 1.2s var(--ease) .5s backwards; }
@keyframes fade-in { from { opacity: 0; transform: translate3d(0, 12px, 0); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .reveal-strip, .js .hero-title .line > span { opacity: 1; transform: none; clip-path: none; }
  .hero-media img { transform: none; }
  .interlude-track { transform: none; }
  .beam .beam-ray { transform: none; }
  .steps { --pour: 1 !important; }
  .hero-scroll::before { transform: none; }
  .blueprint-sticky img { transform: none; }
}

/* =========================================================
   v5 — правки заказчицы
   ========================================================= */

/* Первый экран: «Запросить расчёт проекта» — оранжевая округлая кнопка */
.hero-action .btn-primary {
  border-radius: 999px;
  padding: 19px 34px;
  box-shadow: 0 14px 40px -14px rgba(207,108,54,.75);
}
.hero-action .btn-primary:hover { box-shadow: 0 18px 50px -14px rgba(224,126,70,.9); }

/* «Архитектура задаёт форму»: фон — строитель перед светом в форме «М» */
#task { --task-photo-h: 900px; }
.task-photo {
  position: absolute; left: 0; right: 0; top: 0; height: var(--task-photo-h); pointer-events: none;
  background:
    linear-gradient(to bottom, var(--ink) 0, rgba(20,19,18,.55) 9%, rgba(20,19,18,0) 22%),
    linear-gradient(to top, rgba(229,223,213,1) 0, rgba(229,223,213,.6) 12%, rgba(229,223,213,0) 30%),
    linear-gradient(90deg, rgba(232,226,216,.94) 0%, rgba(232,226,216,.82) 34%, rgba(232,226,216,.25) 56%, rgba(232,226,216,0) 70%),
    url("assets/img/builder-monolith.jpg") 72% 40% / cover no-repeat;
}
.task-photo + .beam-ray, #task > .beam-ray { display: none; }
@media (max-width: 900px) {
  .task-photo {
    background:
      linear-gradient(to bottom, var(--ink) 0, rgba(20,19,18,0) 16%),
      linear-gradient(to top, rgba(229,223,213,1) 0, rgba(229,223,213,0) 30%),
      linear-gradient(rgba(232,226,216,.78), rgba(232,226,216,.7)),
      url("assets/img/builder-monolith.jpg") 62% 30% / cover no-repeat;
  }
}
/* v5: фото целиком справа, слева — растворение в светлый бетон под текстом */
@media (min-width: 901px) {
  .task-photo {
    background:
      linear-gradient(to bottom, var(--ink) 0, rgba(20,19,18,.55) 9%, rgba(20,19,18,0) 22%),
      linear-gradient(to top, rgba(229,223,213,1) 0, rgba(229,223,213,.6) 12%, rgba(229,223,213,0) 30%),
      linear-gradient(90deg, rgba(229,223,213,1) 0%, rgba(229,223,213,.96) 38%, rgba(229,223,213,.55) 48%, rgba(229,223,213,0) 60%),
      url("assets/img/builder-monolith.jpg") right center / auto 100% no-repeat,
      #cbbfae;
  }
}

/* =========================================================
   v9 — v5 + правки заказчицы от 19.10.2026
   ========================================================= */

/* Первый экран как в v8 */
.hero-title--v7 { font-size: clamp(1.9rem, 5.4vw, 6rem); line-height: 1; }
.hero-title--v7 .line:nth-child(1) > span { color: var(--on-dark); }
.hero-title--v7 .line:nth-child(2) > span { color: var(--stone-3); }
.hero-title--v7 .line:nth-child(3) > span { color: var(--oxide); }
.hero-stat { display: flex; flex-wrap: wrap; gap: 6px 28px; align-items: baseline; margin: clamp(22px, 3vw, 34px) 0 0; font: 500 clamp(1rem, 1.4vw, 1.25rem)/1.2 var(--font-display); color: var(--on-dark-2); letter-spacing: -.01em; }
.hero-stat b { font-weight: 500; font-size: 2.1em; color: var(--on-dark); margin-right: 8px; vertical-align: -.12em; }
.hero-stat span + span::before { content: ""; display: inline-block; width: 1px; height: 1.6em; background: rgba(255,245,230,.25); margin-right: 28px; vertical-align: middle; }
@media (max-width: 560px) { .hero-stat span + span::before { display: none; } }

/* Подход: строка «Вы получаете» */
.gets { margin-top: 14px !important; padding-top: 12px; border-top: 1px solid rgba(255,245,230,.12); font-size: .9rem; color: var(--on-dark) !important; }
.gets b { color: var(--oxide); font-weight: 500; }

/* Замысел архитектора: два абзаца вступления */
#task .section-intro + .section-intro { margin-top: 14px; }

/* Направления: обе фотографии одного размера */
.duo-item.duo-item--equal { grid-column: span 6; margin-top: 0; }
.duo-item--equal .duo-media { aspect-ratio: 4 / 3; }
@media (max-width: 860px) { .duo-item.duo-item--equal { grid-column: 1 / -1; } }

/* Команда: фото знака чуть крупнее — без тёмной полосы слева, без подписи */
.people-media img { object-position: 62% 45%; transform: scale(1.14); transform-origin: 65% 50%; }
.people-claim { font: 500 clamp(1.1rem, 1.4vw, 1.35rem)/1.35 var(--font-display); color: var(--on-light) !important; letter-spacing: -.01em; }

/* Форма: галочка согласия и ловушка для спама */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent-label { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; line-height: 1.5; color: var(--on-dark-2); cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 400; }
.consent-label input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--oxide); flex: none; }
.form button[disabled] { opacity: .6; cursor: wait; }
.people-media img { object-position: 78% 45%; transform: scale(1.08); transform-origin: 90% 50%; }
.people-media img { object-position: 80% 45%; transform: none; }

/* v10: контактная почта */
.request-mail { margin-top: 26px; font-size: .95rem; color: var(--on-dark-3); }
.request-mail a, .footer-mail a { color: var(--on-dark); text-decoration: none; border-bottom: 1px solid rgba(207,108,54,.6); padding-bottom: 2px; font-weight: 500; }
.request-mail a:hover, .footer-mail a:hover { color: var(--oxide); }
.footer-mail { margin-top: 14px; font-size: .95rem; }

/* =========================================================
   v12 — правки заказчика
   ========================================================= */
/* Тонкий изысканный шрифт: меню и подзаголовок первого экрана */
:root { --font-fine: "Raleway", "Helvetica Neue", Arial, sans-serif; }
.nav a { font-family: var(--font-fine); font-weight: 300; font-size: .95rem; letter-spacing: .05em; }
.hero-foot .lead { font-family: var(--font-fine); font-weight: 300; letter-spacing: .02em; line-height: 1.5; font-size: clamp(1.05rem, .6vw + .9rem, 1.3rem); }

/* Третья строка заголовка «Замысел архитектора» */
.h2 .h2-brand { display: block; margin-top: .35em; font-size: .52em; letter-spacing: .26em; font-weight: 500; }

/* Овальные кнопки-контуры */
.btn-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 22px; border: 1px solid currentColor; border-radius: 999px;
  font: 400 .95rem/1.2 var(--font-text); letter-spacing: .02em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-pill:hover { border-color: var(--oxide); color: var(--oxide); }

/* Блок с чертежами: ниже, без лишней пустоты сверху и снизу */
.blueprint { margin-top: 0; }
.blueprint-content { padding-top: clamp(64px, 10vh, 120px); padding-bottom: clamp(140px, 22vh, 220px); }
.blueprint::before { height: clamp(70px, 10vh, 130px); }
.blueprint::after { height: clamp(130px, 22vh, 230px); }
@media (max-width: 767px) {
  .blueprint-content { padding-top: 40px; padding-bottom: 120px; }
}
/* Фраза под карточками — без серой плашки, тёмным текстом на чертеже */
.blueprint .bridge {
  background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  padding: 0; margin-top: clamp(32px, 4vw, 56px);
  color: var(--ink); font-weight: 500; justify-content: flex-start; align-items: center; gap: 14px 28px;
  text-shadow: 0 0 14px rgba(238,233,225,.95), 0 0 4px rgba(238,233,225,.9);
}
.blueprint .bridge .btn-pill { text-shadow: none; background: rgba(238,233,225,.55); }

/* Бегущая строка: заполненное и контурное слово чередуются */
.interlude span:nth-of-type(odd) { color: var(--stone); -webkit-text-stroke: 0; }
.interlude span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px rgba(239,233,223,.35); }

/* Блок 04 «От проекта — к реализации» */
.estimate-cta { margin-top: clamp(28px, 3vw, 40px); }
.spec-list { border-top: 1px solid rgba(23,22,21,.85); }

/* Логотип на бетоне — по центру кадра */
.people-media img { object-position: 50% 50%; transform: none; }
/* На широком экране колонка вытянута вверх — показываем знак целиком, без обрезки */
@media (min-width: 861px) {
  .people-media { display: flex; align-items: center; background: radial-gradient(ellipse at 50% 50%, #3b3d3e 0%, #2a2c2d 55%, #1f2122 100%); }
  .people-media img { height: auto; aspect-ratio: 1 / 1; object-fit: cover;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%); }
}

/* =========================================================
   v13 — правки заказчика
   ========================================================= */
/* Скруглённый шрифт, похожий на логотип: название бюро */
:root { --font-logo: "Montserrat", "Helvetica Neue", Arial, sans-serif; }
.brand-name, .footer-name { font-family: var(--font-logo); font-weight: 500; }
.h2 .h2-brand { font-family: var(--font-logo); font-weight: 500; font-size: 1em; letter-spacing: .02em; margin-top: 0; }

/* Instagram — овальная плашка в шапке и подвале */
.ig-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border: 1px solid rgba(255,245,230,.35); border-radius: 999px;
  font: 300 .9rem/1 var(--font-fine); letter-spacing: .05em;
  color: var(--on-dark); text-decoration: none; white-space: nowrap;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.ig-pill:hover { border-color: var(--oxide); color: var(--oxide); }
.header-ig { margin-left: auto; }
.nav + .header-ig { margin-left: 0; }
.footer-ig { margin-top: 18px; }
@media (max-width: 767px) {
  .header-ig { padding: 9px; margin-top: 2px; }
  .header-ig span { display: none; }
}

/* 01: подзаголовок — мелко и в одну строку, главная мысль — заголовок */
.h2 .h2-sub { display: block; margin-top: .6em; font: 300 clamp(1rem, .7vw + .85rem, 1.35rem)/1.3 var(--font-fine); letter-spacing: .03em; opacity: .7; }
.gets-plain { margin-top: 12px; color: var(--on-dark-2); }
.gets-plain b { color: var(--oxide); font-weight: 500; }

/* 02: фраза под карточками снова на светлой плашке; чертёж без приближения */
.blueprint .bridge {
  background: rgba(238, 233, 225, .84);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding: 22px clamp(20px, 2.6vw, 36px);
  text-shadow: none; color: var(--on-light); font-weight: 400;
  justify-content: space-between;
}
.blueprint .bridge .btn-pill { background: none; }
.blueprint-sticky img { transform: none !important; will-change: auto; }

/* 03: вопрос стоит рядом с кнопкой */
.bridge--dark { justify-content: flex-start; align-items: center; gap: 14px 24px; }

/* 05: вертикальное фото вывески — во всю колонку, без затемнений */
.people-media { display: block; background: none; }
.people-media img { height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 62% 50%; -webkit-mask-image: none; mask-image: none; }
@media (max-width: 860px) { .people-media { aspect-ratio: 4 / 5; } }
.header-cta { white-space: nowrap; }
@media (max-width: 1040px) {
  .header-ig { padding: 9px; }
  .header-ig span { display: none; }
}

/* =========================================================
   v14 — правки заказчика
   ========================================================= */
/* Instagram: только значок, без обводки */
.ig-link { display: inline-flex; align-items: center; justify-content: center; color: var(--on-dark); transition: color .25s var(--ease), transform .25s var(--ease); }
.ig-link svg { width: 24px; height: 24px; }
.ig-link:hover { color: var(--oxide); transform: scale(1.08); }
.header-ig { margin-left: auto; padding: 6px; }
.nav + .header-ig { margin-left: 0; }
@media (max-width: 767px) { .header-ig { margin-top: 6px; } .header-ig svg { width: 26px; height: 26px; } }

/* 01: подзаголовок — тем же шрифтом и серым, крупнее, в одну строку */
.h2 .h2-sub { font: inherit; font-size: .58em; line-height: 1.2; letter-spacing: -.01em; margin-top: .45em; opacity: .55; }
/* 02: MONOLITH BUREAU — тем же шрифтом, что и «Точность исполнения» */
.h2 .h2-brand { font-family: inherit; font-weight: inherit; letter-spacing: inherit; }

/* Бегущая световая линия по обводке кнопок */
@property --edge { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes edge-run { to { --edge: 360deg; } }
.glow { position: relative; isolation: isolate; }
.glow::before, .glow::after {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--edge), transparent 0deg 220deg, rgba(255,226,160,0) 240deg, rgba(255,226,160,.85) 320deg, #fff6dc 348deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: edge-run 3.4s linear infinite;
}
.glow::after { inset: -4px; padding: 4px; filter: blur(6px); opacity: .8; }
.btn-pill.glow { border-color: rgba(255,236,190,.35); }
.blueprint .btn-pill.glow { border-color: rgba(23,22,21,.45); }
.blueprint .btn-pill.glow::before, .blueprint .btn-pill.glow::after {
  background: conic-gradient(from var(--edge), transparent 0deg 220deg, rgba(207,108,54,0) 240deg, rgba(207,108,54,.9) 320deg, #ffd9a0 348deg, transparent 360deg);
}
/* Первый экран: кнопка ещё и мягко «дышит» */
@keyframes btn-breathe { 50% { box-shadow: 0 14px 48px -10px rgba(240,150,90,.95); } }
.hero-action .btn-primary.glow { animation: btn-breathe 3.4s ease-in-out infinite; }

/* Бегунок этапов: больше света и искра на конце */
.steps::after { box-shadow: 0 0 10px rgba(240,140,80,.9), 0 0 26px rgba(240,140,80,.55); background: linear-gradient(90deg, var(--oxide), #ffb27a); }
.pour-spark {
  position: absolute; top: 1px; left: calc(var(--pour) * 100%); width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: #fff3e2; pointer-events: none; z-index: 2;
  box-shadow: 0 0 8px 3px rgba(255,200,140,.95), 0 0 26px 10px rgba(240,130,70,.6);
  opacity: calc(var(--pour) * 40); /* скрыта, пока линия не началась */
}
.step::before { transition: background-color .4s, box-shadow .4s; }
.step.is-lit::before { background: var(--oxide); box-shadow: 0 0 12px 3px rgba(240,140,80,.7); }
@media (max-width: 960px) {
  .steps::after { background: linear-gradient(180deg, var(--oxide), #ffb27a); }
  .pour-spark { left: 7px; top: calc(var(--pour) * 100%); margin: -5px 0 0 -5px; }
}

/* 05: свет на вывеске разгорается при прокрутке */
#people { --lit: 1; }
.people-media img { filter: brightness(calc(.12 + .88 * var(--lit))) contrast(calc(1.25 - .25 * var(--lit))); transition: filter .15s linear; }

/* Подвал: тонкая компактная строка */
.site-footer { padding-block: 26px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.footer-brand .brand-mark { width: 26px; margin: 0; }
.footer-name { font: 500 .74rem/1 var(--font-logo); letter-spacing: .24em; margin: 0; color: var(--on-dark); }
.footer-spec { font: 300 .8rem/1.3 var(--font-fine); letter-spacing: .03em; color: var(--on-dark-3); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a { font: 300 .82rem/1.3 var(--font-fine); letter-spacing: .04em; }
.footer-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; font: 300 .78rem/1.3 var(--font-fine); letter-spacing: .03em; }
.footer-meta .ig-link svg { width: 20px; height: 20px; }
.footer-meta .footer-mail { margin: 0; color: var(--on-dark-2); text-decoration: none; border: 0; padding: 0; font-size: .82rem; font-weight: 300; }
.footer-meta .footer-mail:hover { color: var(--oxide); }
@media (max-width: 760px) { .footer-inner { justify-content: flex-start; } }

@media (prefers-reduced-motion: reduce) {
  .glow::before, .glow::after { animation: none; }
  #people { --lit: 1 !important; }
}
/* свечение заметнее */
.glow::before { inset: -3px; padding: 3px;
  background: conic-gradient(from var(--edge), transparent 0deg 190deg, rgba(255,226,160,0) 200deg, rgba(255,226,160,.9) 300deg, #fffaf0 345deg, transparent 360deg); }
.glow::after { inset: -7px; padding: 7px; filter: blur(8px); opacity: 1;
  background: conic-gradient(from var(--edge), transparent 0deg 210deg, rgba(255,210,140,.0) 220deg, rgba(255,210,140,.85) 320deg, rgba(255,240,210,1) 345deg, transparent 360deg); }
.glow::before { background: conic-gradient(from var(--edge), transparent 0deg 170deg, rgba(255,226,160,0) 180deg, rgba(255,230,170,1) 290deg, #fffdf6 340deg, transparent 360deg); }

/* =========================================================
   v16 — мобильная версия (компьютерная не меняется)
   ========================================================= */
.people-media--inline { display: none; }

@media (max-width: 767px) {
  :root { --section-y: 60px; }
  .cast { --flow: 56px; }
  .section-head { margin-bottom: 36px; }

  /* Шапка: логотип, Instagram и меню на одной линии */
  .header-inner { align-items: center; }
  .header-ig { margin-top: 0; padding: 6px; }
  .header-ig svg { width: 24px; height: 24px; }

  /* Первый экран: не темнеет при прокрутке, без «Листайте», цифры в одну строку */
  .hero-media::after { opacity: 0; }
  .hero-inner, .hero-rail { opacity: 1; transform: none; }
  .hero-rail { display: none; }
  .hero-inner { padding-bottom: 36px; }
  .hero-stat { flex-wrap: nowrap; gap: 0 18px; font-size: .95rem; }
  .hero-stat b { font-size: 1.9em; margin-right: 6px; }
  .hero-stat span { white-space: nowrap; }
  .hero-stat span + span::before { display: inline-block; height: 1.3em; margin-right: 18px; }

  /* 01: подзаголовок в одну строку */
  .h2 .h2-sub { font-size: min(.58em, 4.05vw); white-space: nowrap; }

  /* 02: короче и плотнее */
  #task .h2 { font-size: 1.75rem; }
  #task .section-intro + .section-intro { display: none; }
  .blueprint .bridge { display: none; }
  .roles { gap: 14px; }
  .panel { padding: 22px 20px; }
  .panel-label { margin-bottom: 10px; }
  .panel .h3 { margin-bottom: 10px; font-size: 1.25rem; }
  .panel p:not(.panel-label) { font-size: .95rem; }
  .blueprint-content { padding-top: 24px; padding-bottom: 90px; }
  .blueprint::after { height: 110px; }

  /* 03: буква и заголовок направления в одной строке */
  .duo { row-gap: 48px; }
  .duo-item { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; }
  .duo-item > * { grid-column: 1 / -1; }
  .duo-item > .duo-index { grid-column: 1; margin: 0; }
  .duo-item > .h3 { grid-column: 2; margin: 0; }
  .duo-media { margin-bottom: 20px; }
  .duo-item > .duo-sub { margin-top: 12px; }
  .bridge--dark { margin-top: 40px; }

  /* 04: без пустого поля перед фото */
  #estimate { padding-bottom: 28px; }
  .spec-row { padding: 20px 0; }
  .spec-row:last-child { border-bottom: 0; }

  /* 05: заголовок → текст → фото со светом → девиз */
  .people > .people-media { display: none; }
  .people-media--inline { display: block; margin: 26px calc(-1 * var(--gutter)); aspect-ratio: 4 / 5; }
  .people-media--inline img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
  .people-body { padding-block: 44px 52px; }
  .people-text .h2 { margin-bottom: 18px; }
}
@media (max-width: 767px) {
  .h2 .h2-sub { font-size: 3.6vw; }
  .hero-stat { font-size: .85rem; gap: 0 14px; }
  .hero-stat span + span::before { margin-right: 14px; }
}
@media (max-width: 767px) { #task .h2 { font-size: 1.5rem; } }

/* =========================================================
   v17 — мобильная версия
   ========================================================= */
.dash-en, .task-cta { display: none; }
@media (max-width: 767px) {
  /* короткое тире, не отрывается от слова */
  .hero-title .dash-em { display: none; }
  .hero-title .dash-en { display: inline; }
  /* первый экран не приближается при прокрутке */
  .hero-media img, .hero-video, .hero-canvas { transform: none !important; will-change: auto; }
  /* 02: MONOLITH BUREAU — мягкий шрифт, как в шапке и подвале */
  #task .h2 .h2-brand { font-family: var(--font-logo); font-weight: 500; letter-spacing: .04em; }
  /* 02: кнопка заказа расчёта */
  .task-cta { display: flex; width: 100%; margin-top: 22px; border-radius: 999px; padding: 17px 22px; box-shadow: 0 14px 40px -14px rgba(207,108,54,.75); }
}

/* =========================================================
   v18 — телефон: фон первого экрана полностью статичный
   ========================================================= */
@media (max-width: 767px) {
  .hero-media { animation: none; transform: none; filter: none; }
  .hero-media img, .hero-video, .hero-canvas { transform: none !important; }
  .hero-media::after { display: none; }
}

/* =========================================================
   v19 — переключатель языков ES · EN · RU
   ========================================================= */
.header-ig { margin-left: 0; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; font: 300 .84rem/1 var(--font-fine); letter-spacing: .08em; color: var(--on-dark-3); }
.lang-switch a { color: var(--on-dark-2); text-decoration: none; padding: 6px 2px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.lang-switch a:hover { color: var(--on-dark); }
.lang-switch a[aria-current="page"] { color: var(--on-dark); font-weight: 400; border-bottom-color: var(--oxide); }
.lang-switch span { opacity: .5; }
@media (max-width: 767px) {
  .lang-switch { font-size: .78rem; gap: 4px; letter-spacing: .06em; }
  .header-inner { gap: 12px; }
}
@media (max-width: 360px) {
  .brand-name { letter-spacing: .2em; }
  .lang-switch span { display: none; }
}
/* испанские и английские пункты меню длиннее — на средних экранах шапка плотнее */
@media (min-width: 1024px) and (max-width: 1280px) {
  .header-inner { gap: 18px; }
  .nav ul { gap: 18px; }
  .nav a { font-size: .88rem; letter-spacing: .03em; }
  .brand-name { letter-spacing: .2em; }
}
@media (max-width: 767px) {
  .header-inner { gap: 10px; }
  .brand { gap: 9px; }
  .brand-mark { width: 32px; }
  .brand-name { font-size: .8rem; letter-spacing: .22em; }
  .brand-name span { letter-spacing: .42em; }
  .lang-switch { gap: 3px; }
  .header-ig { padding: 4px; }
}

/* =========================================================
   v21
   ========================================================= */
/* Короткое тире в заголовке первого экрана — на всех экранах и языках */
.hero-title .dash-em { display: none; }
.hero-title .dash-en { display: inline; }

/* ES, блок 03: «Hormigón como estructura. / Hormigón como arquitectura.» — ровно в две строки */
@media (min-width: 768px) {
  html[lang="es"] #competence-title { font-size: clamp(1.9rem, 3.6vw, 3.6rem); max-width: none; }
  html[lang="es"] #competence-title,
  html[lang="es"] #competence-title .h2-soft { white-space: nowrap; }
  html[lang="es"] #competence-title .h2-soft { display: block; }
}
