/* ===========================================================================
   Ахуряни Коопшин — базовые стили
   Палитра построена на базальте и туфе Гюмри; акцент — глубокий хвойный тон.
   Знак компании — фирменный логотип; форма-подпись в вёрстке — арка:
   верхние углы главных изображений скруглены сильнее обычного.
   ========================================================================= */

:root {
  --ink: #14181c;
  --ink-2: #1e242a;
  --ink-3: #2b3339;
  --paper: #fbfbf9;
  --panel: #eff0ec;
  --panel-2: #e5e7e1;
  --line: #d9dbd4;
  --line-soft: #e8e9e4;
  --text: #14181c;
  --muted: #6d746f;
  --muted-dark: #a3ada7;
  --accent: #1d4e4a;
  --accent-hover: #163b38;
  --accent-soft: #e2ebe8;
  --white: #ffffff;

  --arch: clamp(30px, 7.5vw, 108px);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  --pad: clamp(20px, 5vw, 56px);
  --gap: clamp(24px, 3.5vw, 56px);
  --section: clamp(64px, 9vw, 132px);
  --maxw: 1320px;

  --f-display: "Onest", "Noto Sans Armenian", system-ui, -apple-system, sans-serif;
  --f-body: "Onest", "Noto Sans Armenian", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", "Noto Sans Armenian", ui-monospace, "SF Mono", monospace;

  --shadow-card: 0 1px 2px rgba(20, 24, 28, .04), 0 12px 32px -18px rgba(20, 24, 28, .28);
  --shadow-lift: 0 2px 6px rgba(20, 24, 28, .06), 0 26px 54px -24px rgba(20, 24, 28, .38);
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* Шапка и мобильное меню — одна и та же матовая поверхность.
     Держим её здесь, чтобы слои не разъезжались по оттенку и размытию. */
  --header-h: 88px;
  --glass: rgba(251, 251, 249, .82);
  --glass-filter: saturate(150%) blur(14px);
}

/* --------------------------------------------------------------- reset */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--white);
  padding: 10px 16px; border-radius: var(--r-sm);
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------- layout */

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

.section { padding-block: var(--section); }
/* Кнопка «Оставить заявку» ведёт на #request на той же странице: блок встаёт
   под липкой шапкой, а не прячется за ней. */
#request { scroll-margin-top: var(--header-h); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section--flush-bottom { padding-bottom: 0; }

.band-dark {
  background: var(--ink);
  color: #eef0ee;
}
.band-panel { background: var(--panel); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: .69rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
  flex: none;
}
.band-dark .eyebrow { color: var(--muted-dark); }
.band-dark .eyebrow::before { background: #55706b; }

.h-xl { font-size: clamp(2.45rem, 6vw, 5rem); letter-spacing: -.04em; line-height: .98; }
.h-lg { font-size: clamp(1.95rem, 3.9vw, 3.1rem); }
.h-md { font-size: clamp(1.4rem, 2.2vw, 1.85rem); letter-spacing: -.025em; }
.h-xl--pj { font-size: clamp(2.1rem, 4.6vw, 3.9rem); }
.h-xl--svc { font-size: clamp(2.2rem, 5vw, 4.2rem); }

/* Армянские буквы при равном кегле выглядят крупнее латинских и набираются
   длиннее: заголовок главной занимал пять строк против трёх у английского.
   Уменьшение на 15% — оптическое выравнивание, обычная практика многоязычной
   типографики: визуально размер тот же, а высота колонки сходится с русской. */
:lang(hy) .h-xl { font-size: clamp(2.08rem, 5.1vw, 4.25rem); }
:lang(hy) .h-lg { font-size: clamp(1.7rem, 3.4vw, 2.7rem); }
:lang(hy) .h-xl--pj { font-size: clamp(1.8rem, 3.95vw, 3.3rem); }
:lang(hy) .h-xl--svc { font-size: clamp(1.9rem, 4.3vw, 3.6rem); }

.lead {
  font-size: clamp(1.03rem, 1.35vw, 1.22rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 62ch;
  font-weight: 400;
}
.band-dark .lead { color: #a9b4af; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  gap: var(--gap);
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 60px);
}
.section-head .lead { font-size: 1rem; }
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; align-items: start; gap: 20px; }
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: .97rem;
  letter-spacing: -.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--accent); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(20, 24, 28, .04); }

.band-dark .btn--solid { background: var(--paper); color: var(--ink); }
.band-dark .btn--solid:hover { background: var(--accent-soft); }
.band-dark .btn--ghost { color: #eef0ee; border-color: rgba(238, 240, 238, .28); }
.band-dark .btn--ghost:hover { border-color: #eef0ee; background: rgba(255, 255, 255, .07); }

.btn__arrow { width: 15px; height: 15px; flex: none; transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translate(3px, -3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: border-color .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.link-arrow:hover { border-color: var(--accent); color: var(--accent); }
.link-arrow svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translate(3px, -3px); }

/* --------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--glass);
  backdrop-filter: var(--glass-filter);
  -webkit-backdrop-filter: var(--glass-filter);
  border-bottom: 1px solid var(--line-soft);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 40px);
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
  margin-right: auto;
}
.brand__mark { height: 48px; width: auto; flex: none; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.brand__sub {
  font-family: var(--f-mono);
  font-size: .58rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
.nav a {
  text-decoration: none;
  font-size: .95rem;
  font-weight: 400;
  color: var(--ink);
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: border-color .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.nav a:hover { color: var(--accent); }

/* Буквы в навигации тяжелеют по мере приближения курсора: разметку на буквы
   делит site.js, здесь только ячейка. Ширину ячейки скрипт фиксирует по самому
   жирному начертанию — иначе соседние пункты дёргались бы при наборе веса. */
.nav a .vf {
  display: inline-block;
  text-align: center;
  font-variation-settings: "wght" 400;
}
.nav a[aria-current="page"] { border-color: var(--accent); }

.header-tools { display: flex; align-items: center; gap: 14px; flex: none; }

.langs {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--panel);
  border-radius: 999px;
  padding: 3px;
}
.langs a {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .06em;
  text-decoration: none;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--muted);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.langs a:hover { color: var(--ink); }
.langs a[aria-current="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 24, 28, .08); }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex: none;
}
.burger span { display: block; width: 17px; height: 9px; position: relative; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px;
  background: var(--ink); transition: transform .25s var(--ease), top .25s var(--ease);
}
.burger span::before { top: 0; }
.burger span::after { top: 7.5px; }
body.menu-open .burger span::before { top: 4px; transform: rotate(45deg); }
body.menu-open .burger span::after { top: 4px; transform: rotate(-45deg); }

/* Пять пунктов меню (с 15 сентября 2026 — «Документы»). Колонка сайта — 1320 px,
   и телефон в шапке с пятью пунктами не помещается ни на какой ширине даже
   по-русски, поэтому из шапки он убран совсем: остаётся в мобильном меню, форме,
   на контактах и в подвале. Армянские подписи длиннее — армянская навигация
   плотнее и на кегль мельче, запас там ~17 px. Ниже 1300 — бургер. */
:lang(hy) .header-bar { gap: 28px; }
:lang(hy) .nav { gap: 16px; }
:lang(hy) .nav a { font-size: .87rem; }
@media (max-width: 1300px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 760px) {
  :root { --header-h: 72px; }
  .header-tools > .btn { display: none; }
  .header-bar { gap: 8px; }
  .header-tools { gap: 8px; }
  /* Раньше стояло flex: none — блок держал свою ширину и выталкивал
     переключатель с бургером за пределы отступа. Теперь ужимается. */
  .brand { min-width: 0; overflow: hidden; flex-shrink: 1; }
  .brand__name { font-size: .8rem; }
  .brand__mark { height: 36px; }
  .langs { padding: 2px; }
  .langs a { padding: 6px 8px; font-size: .62rem; letter-spacing: .03em; }
  .burger { width: 40px; height: 40px; }
}
/* Подпись под названием шире самого названия (у армянского 189 px против 161)
   и именно она распирала шапку. На телефонах убираем — это единственное, чем
   жертвуем: строка повторяет то, что и так написано в первом экране. */
@media (max-width: 560px) {
  /* Прячем только город: без него подпись становится уже названия и на ширину
     шапки уже не влияет. В подвале строка остаётся целой — там места хватает. */
  .site-header .brand__city { display: none; }
}
@media (max-width: 430px) {
  .brand { gap: 9px; }
  .brand__name { font-size: .72rem; letter-spacing: 0; }
  .brand__mark { height: 32px; }
  .langs a { padding: 6px 6px; font-size: .58rem; letter-spacing: .02em; }
}
/* На совсем узких экранах названию места нет: остаётся фирменный знак,
   он так же ведёт на главную. */
@media (max-width: 360px) {
  .brand__name { display: none; }
  .site-header .brand__sub { display: none; }
}

/* Меню занимает весь экран и уходит под шапку, а не встык под неё:
   стык светился полосой страницы. Пока меню открыто, шапка отдаёт своё
   стекло — поверхность остаётся одна, шва нет. */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 79;
  background: var(--glass);
  backdrop-filter: var(--glass-filter);
  -webkit-backdrop-filter: var(--glass-filter);
  padding: calc(var(--header-h) + 26px) var(--pad) 40px;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  display: none;
}
body.menu-open .mobile-menu { display: flex; }
body.menu-open .site-header {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.menu-open { overflow: hidden; }

/* Без backdrop-filter стекло превратилось бы в мутную плёнку поверх фотографий:
   там поверхность делаем плотной. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mobile-menu { background: var(--paper); }
  body.menu-open .site-header { background: var(--paper); }
}
.mobile-menu a.mm-link {
  text-decoration: none;
  font-family: var(--f-display);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -.03em;
  padding: 14px 0;
  border-bottom: 1px solid rgba(20, 24, 28, .10);
}
.mobile-menu .mm-cta { margin-top: 26px; width: 100%; justify-content: center; }
.mobile-menu .mm-foot { margin-top: 22px; display: grid; gap: 10px; font-size: .95rem; }
.mobile-menu .mm-foot a { text-decoration: none; font-family: var(--f-mono); font-size: .9rem; }

/* --------------------------------------------------------------- hero */

.hero { padding-top: clamp(36px, 5vw, 72px); }

/* Текст слева разбит на два блока — заголовок и «предложение», — между которыми
   на телефоне встаёт галерея. Колонки выровнены по ВЕРХУ: при выравнивании по
   низу галерея съезжала вниз тем сильнее, чем длиннее заголовок, и между
   английским и армянским разница доходила до 217 px. */
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  column-gap: clamp(28px, 4vw, 68px);
  row-gap: 26px;
  align-items: start;
}
.hero__intro { grid-column: 1; grid-row: 1; }
.hero__pitch { grid-column: 1; grid-row: 2; }
.hero__lead { margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__stage {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  margin-top: clamp(20px, 2.6vw, 34px);   /* постоянный отступ, а не остаток от текста */
  position: relative;
  border-radius: var(--arch) var(--arch) var(--r-md) var(--r-md);
  overflow: hidden;
  background: var(--panel-2);
  aspect-ratio: 4 / 3.35;
  box-shadow: var(--shadow-lift);
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12, 16, 18, .74) 0%, rgba(12, 16, 18, .18) 34%, rgba(12, 16, 18, 0) 62%);
}

.hero__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(18px, 2.4vw, 30px);
  color: #fff;
  text-decoration: none;
  display: block;
}
.hero__cap-eyebrow {
  font-family: var(--f-mono);
  font-size: .64rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  opacity: .82;
  margin-bottom: 7px;
}
.hero__cap-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  letter-spacing: -.025em;
  line-height: 1.15;
  max-width: 24ch;
}
.hero__caption:hover .hero__cap-title { text-decoration: underline; text-underline-offset: 4px; }

.hero__ticks {
  position: absolute;
  right: clamp(18px, 2.4vw, 30px);
  bottom: clamp(20px, 2.4vw, 32px);
  display: flex;
  gap: 6px;
}
.hero__tick {
  width: 26px; height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .32);
  border: 0; padding: 0; cursor: pointer;
  overflow: hidden;
  position: relative;
}
.hero__tick.is-active { background: rgba(255, 255, 255, .95); }

@media (max-width: 900px) {
  /* Порядок в разметке — заголовок, галерея, описание, — поэтому достаточно
     снять раскладку по координатам, и фото попадает в первый экран на всех языках */
  .hero__grid { grid-template-columns: 1fr; row-gap: clamp(22px, 4vw, 32px); }
  .hero__intro, .hero__stage, .hero__pitch { grid-column: 1; grid-row: auto; }
  .hero__stage { margin-top: 0; aspect-ratio: 4 / 3.6; }
  .hero__ticks { display: none; }
}

/* --------------------------------------------------------------- facts */

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .11);
  border-radius: var(--r-md);
  overflow: hidden;
}
/* В плитках не цифры, а короткие утверждения. Под заголовок отведены ровно две
   строки, поэтому подписи во всех плитках начинаются на одном уровне — и там, где
   заголовок в одну строку, и там, где в две. Прижимать подпись к низу нельзя:
   у короткой плитки посередине образуется пустота. */
.fact {
  background: var(--ink);
  padding: clamp(24px, 3vw, 40px) clamp(18px, 2.2vw, 32px);
}
.fact__n {
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 2.6vw, 2.15rem);   /* на узких экранах ячейка 124 px: крупнее слово рвётся */
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 14px;
  min-height: 2.16em;          /* две строки: подписи встают на одну линию во всех плитках */
  text-wrap: balance;
  overflow-wrap: break-word;   /* рвём слово, только если целиком не помещается */
}
.fact__l { font-size: .86rem; color: #9aa6a0; line-height: 1.45; }
@media (max-width: 760px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* На самых узких телефонах ячейка сужается до ~100 px: поджимаем поля и кегль,
   иначе заголовок уходит в три строки и подписи перестают стоять на одной линии. */
@media (max-width: 380px) {
  .fact { padding: 22px 14px; }
  .fact__n { font-size: 1.14rem; margin-bottom: 10px; }
  .fact__l { font-size: .8rem; }
}

/* --------------------------------------------------------------- about */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(30px, 4.5vw, 76px);
  align-items: start;
}
.about__text { display: grid; gap: 18px; max-width: 60ch; }
.about__text p { color: var(--muted); }
.about__text p:first-of-type { color: var(--text); font-size: 1.13rem; line-height: 1.55; }
.about__media {
  border-radius: var(--arch) var(--arch) var(--r-md) var(--r-md);
  overflow: hidden;
  background: var(--panel-2);
  aspect-ratio: 4 / 4.4;
}
.about__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 4 / 3; }
}

/* --------------------------------------------------------------- services */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
.svc {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: clamp(24px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 210px;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.svc:hover { border-color: var(--line); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.svc__i {
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--accent);
}
.svc__t { font-size: 1.22rem; letter-spacing: -.025em; }
.svc__d { font-size: .95rem; color: var(--muted); line-height: 1.55; }
@media (max-width: 980px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .svc-grid { grid-template-columns: 1fr; } .svc { min-height: 0; } }

/* --------------------------------------------------------------- cards */

.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 34px) clamp(16px, 1.8vw, 26px);
}
@media (max-width: 980px) { .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .proj-grid { grid-template-columns: 1fr; } }

.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  gap: 16px;
}
.card__media {
  position: relative;
  border-radius: 26px 26px var(--r-sm) var(--r-sm);
  overflow: hidden;
  background: var(--panel-2);
  aspect-ratio: 4 / 3;
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease), filter .4s var(--ease);
}
.card:hover .card__media img { transform: scale(1.045); }
.card__body { display: flex; flex-direction: column; gap: 8px; }
.card__t {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.13rem;
  letter-spacing: -.025em;
  line-height: 1.25;
  transition: color .18s var(--ease);
}
.card:hover .card__t { color: var(--accent); }
.card__meta {
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .05em;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  text-transform: uppercase;
}
.card__meta span + span::before { content: "· "; opacity: .55; }
.card__client {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.35;
}

/* крупная карточка для главной */
.card--wide { grid-column: span 2; }
.card--wide .card__media { aspect-ratio: 16 / 9.6; border-radius: 40px 40px var(--r-sm) var(--r-sm); }
.card--wide .card__t { font-size: clamp(1.3rem, 2vw, 1.7rem); }
@media (max-width: 600px) {
  .card--wide { grid-column: span 1; }
  .card--wide .card__media { aspect-ratio: 4 / 3; border-radius: 26px 26px var(--r-sm) var(--r-sm); }
}

/* --------------------------------------------------------------- clients */

.clients {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(30px, 5vw, 80px);
}
.client-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 17px 0;
  border-top: 1px solid var(--line-soft);
}
.client-row__t { font-size: 1rem; line-height: 1.4; }
.client-row__n {
  font-family: var(--f-mono);
  font-size: .72rem;
  color: var(--accent);
  flex: none;
  margin-left: auto;
  padding-top: 2px;
  white-space: nowrap;
}
@media (max-width: 760px) { .clients { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- partners */
/* Бегущая лента логотипов. Марки — чужие торговые знаки, показаны в своих
   цветах: обесцвечивать чужой логотип нельзя. Дисциплину держат три вещи —
   небольшой размер, оптическое выравнивание (широкий ALSTOM шире, но втрое
   ниже квадратного Multi Group) и растворение у краёв, чтобы лента не
   обрывалась о границу экрана. Лента во всю ширину — единственное место на
   сайте, где содержимое выходит за колонку, и это оправдано: движение должно
   уходить за край, иначе оно не читается как бесконечное. */

.marquee {
  --mu: 1px;
  position: relative;
  overflow: hidden;
  padding-block: clamp(20px, 2.6vw, 34px);
  border-block: 1px solid var(--line-soft);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(46px, 6vw, 104px);
  width: max-content;
  margin: 0;
  padding: 0 clamp(23px, 3vw, 52px);
  list-style: none;
  animation: marquee-run var(--mq-duration, 46s) linear infinite;
}
/* Пауза под курсором и при переходе табом — чтобы можно было рассмотреть марку */
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

@keyframes marquee-run {
  to { transform: translate3d(calc(-50% - var(--mq-gap, 0px) / 2), 0, 0); }
}

.marquee__item {
  flex: none;
  height: calc(80 * var(--mu));
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Логотип со ссылкой на сайт партнёра. Чужую марку не перекрашиваем и не гасим —
   отклик даём размером, цвета остаются как в фирменном стиле владельца. */
.marquee__link {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s var(--ease);
}
.marquee__link:hover { transform: scale(1.06); }

.marquee__item img {
  max-width: calc(var(--sw) * var(--mu));
  max-height: calc(var(--sh) * var(--mu));
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 760px) {
  .marquee { --mu: .84px; }
  .marquee__track { gap: 44px; padding-inline: 22px; }
}

/* Без анимации лента превращается в обычный горизонтальный список */
@media (prefers-reduced-motion: reduce) {
  .marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
    scrollbar-width: thin;
  }
  .marquee__track { animation: none; }
  .marquee__link { transition: none; }
  .marquee__link:hover { transform: none; }
}

/* --------------------------------------------------------------- filters */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(28px, 3.4vw, 44px);
}
.filter {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 9px 17px;
  font-size: .88rem;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filter__c { font-family: var(--f-mono); font-size: .7rem; opacity: .55; margin-left: 6px; }

.card.is-hidden { display: none; }

/* --------------------------------------------------------------- other works */

.other {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(30px, 5vw, 80px);
}
.other-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}
.other-row__t { font-weight: 500; font-size: 1rem; line-height: 1.35; }
.other-row__p { font-size: .88rem; color: var(--muted); }
@media (max-width: 760px) { .other { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- page hero */

.page-hero { padding-top: clamp(40px, 5vw, 78px); padding-bottom: clamp(30px, 4vw, 54px); }
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: end;
}
@media (max-width: 860px) { .page-hero__grid { grid-template-columns: 1fr; align-items: start; gap: 22px; } }

/* --------------------------------------------------------------- project page */

.pj-head { padding-top: clamp(28px, 3.6vw, 54px); }
.pj-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; text-decoration: none; color: var(--muted);
  margin-bottom: clamp(24px, 3vw, 40px);
}
.pj-back:hover { color: var(--accent); }
.pj-back svg { width: 13px; height: 13px; }

.pj-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: end;
  margin-bottom: clamp(30px, 3.6vw, 52px);
}
.pj-index {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--accent);
  margin-bottom: 16px;
}
@media (max-width: 860px) { .pj-title-row { grid-template-columns: 1fr; align-items: start; gap: 20px; } }

.pj-stage {
  border-radius: var(--arch) var(--arch) var(--r-md) var(--r-md);
  overflow: hidden;
  background: var(--panel-2);
  aspect-ratio: 16 / 9.5;
  cursor: zoom-in;
}
.pj-stage img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .pj-stage { aspect-ratio: 4 / 3; } }

.spec {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border-block: 1px solid var(--line-soft);
  margin-top: clamp(34px, 4vw, 56px);
}
.spec__cell { background: var(--paper); padding: clamp(18px, 2vw, 26px) clamp(14px, 1.6vw, 22px); }
.spec__k {
  font-family: var(--f-mono);
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}
.spec__v { font-size: .98rem; line-height: 1.4; }
@media (max-width: 820px) { .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 14px);
}
.shot {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--panel-2);
  border: 0; padding: 0; margin: 0;
  cursor: zoom-in;
  display: block;
  grid-column: span 4;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.shot--w6 { grid-column: span 6; aspect-ratio: 3 / 2; }
.shot--w12 { grid-column: span 12; aspect-ratio: 21 / 9; }
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shot, .shot--w6, .shot--w12 { grid-column: span 2; aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pj-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border-block: 1px solid var(--line-soft);
}
.pj-nav a {
  background: var(--paper);
  padding: clamp(22px, 2.6vw, 34px) clamp(18px, 2vw, 28px);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: background .2s var(--ease);
}
.pj-nav a:hover { background: var(--panel); }
.pj-nav a.is-next { text-align: right; align-items: flex-end; }
.pj-nav__k {
  font-family: var(--f-mono); font-size: .65rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--muted);
}
.pj-nav__t { font-family: var(--f-display); font-weight: 500; font-size: 1.1rem; letter-spacing: -.02em; line-height: 1.25; }
.pj-nav a.is-empty { pointer-events: none; opacity: .35; }

/* --------------------------------------------------------------- services page */

.svc-list { border-top: 1px solid var(--line); }
.svc-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(16px, 3vw, 44px);
  padding: clamp(26px, 3.4vw, 46px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.svc-row__n { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; color: var(--accent); padding-top: 6px; }
.svc-row__t { font-size: clamp(1.3rem, 2.1vw, 1.75rem); letter-spacing: -.028em; }
.svc-row__d { color: var(--muted); font-size: 1rem; }
@media (max-width: 800px) {
  .svc-row { grid-template-columns: 40px minmax(0, 1fr); }
  .svc-row__d { grid-column: 2; }
}

.docs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.doc {
  display: block; text-align: left;
  border: 1px solid var(--line-soft);
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 14px 14px 20px;
  cursor: zoom-in;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.doc:hover { border-color: var(--line); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.doc__img {
  aspect-ratio: 3 / 4;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--panel);
  margin-bottom: 16px;
}
.doc__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.doc__t { font-weight: 500; font-size: 1rem; line-height: 1.35; margin-bottom: 5px; padding-inline: 4px; }
.doc__n { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; color: var(--muted); padding-inline: 4px; }
@media (max-width: 760px) { .docs { grid-template-columns: 1fr; } .doc__img { aspect-ratio: 4 / 3; } }

/* Один документ — крупная подача.
   Скан не кадрируем: у лицензии по краю рамка с гербом, обрезать её нельзя.
   Фирменную арку берёт на себя подложка, документ лежит внутри как в паспарту. */
.docs--single { grid-template-columns: 1fr; }
.docs--single .doc {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  grid-template-areas: "img title" "img note";
  align-content: center;
  gap: 8px clamp(24px, 4vw, 64px);
  border: 0;
  background: transparent;
  padding: 0;
}
.docs--single .doc:hover { border-color: transparent; box-shadow: none; transform: none; }
.docs--single .doc__img {
  grid-area: img;
  aspect-ratio: auto;
  margin-bottom: 0;
  background: var(--panel);
  border-radius: var(--arch) var(--arch) var(--r-md) var(--r-md);
  padding: clamp(18px, 2.6vw, 40px);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.docs--single .doc:hover .doc__img { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.docs--single .doc__img img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-soft);
}
.docs--single .doc__t { grid-area: title; align-self: end; font-size: 1.3rem; margin-bottom: 0; padding-inline: 0; }
.docs--single .doc__n { grid-area: note; align-self: start; padding-inline: 0; }

@media (max-width: 860px) {
  .docs--single .doc {
    grid-template-columns: 1fr;
    grid-template-areas: "img" "title" "note";
    gap: 6px;
  }
  .docs--single .doc__img { margin-bottom: 14px; aspect-ratio: auto; }
  .docs--single .doc__t { font-size: 1.1rem; }
}

/* --------------------------------------------------------------- contacts */

/* Число колонок = число ячеек: с 15 сентября 2026 ячеек три (адрес, телефон,
   почта), строка «Мобильный» появится сама, если в CONTACT задать mobile. */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(var(--cells, 4), minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border-block: 1px solid var(--line-soft);
}
.contact-cell { background: var(--paper); padding: clamp(20px, 2.4vw, 30px) clamp(16px, 1.8vw, 24px); }
.contact-cell__k {
  font-family: var(--f-mono); font-size: .65rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 11px;
}
.contact-cell__v { font-size: 1rem; line-height: 1.5; display: grid; gap: 3px; }
.contact-cell__v a { text-decoration: none; }
.contact-cell__v a:hover { color: var(--accent); }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* нечётная последняя ячейка растягивается на ряд, иначе рядом серая пустота */
  .contact-cell:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .contact-grid { grid-template-columns: 1fr; } }

.map {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  aspect-ratio: 21 / 8;
  min-height: 280px;
}
.map-note {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 10px 24px; margin-top: 16px; font-size: .92rem; color: var(--muted);
}
.map iframe { position: relative; width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.28) contrast(1.03); }
.map__fallback {
  position: absolute; inset: 0; z-index: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; text-align: center; padding: 24px; color: var(--muted);
}

/* --------------------------------------------------------------- form */

.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 900px) { .cta__grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 7px; }
.field label {
  font-family: var(--f-mono);
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.field .req { color: #86a49d; margin-left: 5px; text-transform: none; letter-spacing: .04em; }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 1rem;
  color: #f2f4f2;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r-md);
  padding: 14px 16px;
  width: 100%;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.field textarea { min-height: 118px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7d8a85; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: #8fb3ac;
  background: rgba(255, 255, 255, .08);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%238fa39d' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; padding-right: 42px; }
.field select option { background: var(--ink-2); color: #f2f4f2; }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 6px; }
.form__note { font-size: .8rem; color: #7d8a85; max-width: 46ch; line-height: 1.45; }

.cta-phones { display: grid; gap: 6px; margin-top: 26px; }
.cta-phones__k {
  font-family: var(--f-mono); font-size: .65rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--muted-dark); margin-bottom: 4px;
}
.cta-phones a {
  font-family: var(--f-mono);
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: -.01em;
  width: fit-content;
}
.cta-phones a:hover { color: #a7ccc4; }

/* --------------------------------------------------------------- footer */

.footer { background: var(--ink); color: #cfd6d1; border-top: 1px solid rgba(255, 255, 255, .1); padding-block: clamp(40px, 4.5vw, 64px) 34px; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 3vw, 48px);
  margin-bottom: clamp(34px, 4vw, 56px);
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 500px) { .footer__grid { grid-template-columns: 1fr; } }

.footer .brand { margin-right: 0; margin-bottom: 4px; }
.footer .brand__mark { height: 54px; }
.footer .brand__name { color: #f0f2f0; }
.footer .brand__sub { color: #8b968f; }
.footer__col-k {
  font-family: var(--f-mono); font-size: .65rem; letter-spacing: .15em;
  text-transform: uppercase; color: #8b968f; margin-bottom: 14px;
}
.footer__col a, .footer__col p { display: block; text-decoration: none; color: #cfd6d1; font-size: .95rem; padding-block: 4px; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 24px;
  font-size: .82rem; color: #7f8a84;
}
.footer__bottom a { text-decoration: none; }
.footer__bottom a:hover { color: #cfd6d1; }
.footer__blurb { color: #98a39d; font-size: .95rem; max-width: 34ch; margin-top: 16px; line-height: 1.5; }

/* ------------------------------------------------ «остальные объекты» */
/* Кнопка под витриной на главной: после девяти карточек посетитель уже
   внизу блока, а ссылка «Все проекты» осталась в шапке секции экраном выше. */

/* Такая же ссылка, как «Все проекты» в шапке секции, и так же слева:
   заметная кнопка по центру перетягивала взгляд с карточек. */
/* Якорь «Остальные объекты» на странице проектов — пустая метка в углу
   десятой карточки (у самой ссылки id быть не должно: Safari дал бы ей фокус
   и нарисовал рамку). Отступ — шапка + 20px + 18px сдвига .reveal: браузер
   целится в карточку до её появления, потом она поднимается. */
.card { position: relative; }
.anchor {
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 0;
  scroll-margin-top: calc(var(--header-h) + 20px + 18px);
}

.proj-more {
  display: flex;
  justify-content: flex-start;
  margin-top: clamp(36px, 4vw, 56px);
}

/* ------------------------------------------------------------- наверх */
/* Как стрелки лайтбокса: прозрачный «жидкий» кружок с тонким шевроном —
   поверх фотографий и текста он почти не заметен, пока не нужен. Появляется
   после полутора экранов прокрутки (site.js ставит .is-on); пока открыто
   мобильное меню — скрыта. */

.to-top {
  position: fixed;
  right: clamp(14px, 2vw, 26px);
  bottom: clamp(14px, 2vw, 26px);
  z-index: 70;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(20, 24, 28, .14);
  background: rgba(255, 255, 255, .32);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 2px 10px rgba(20, 24, 28, .06);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease),
              border-color .18s var(--ease), background .18s var(--ease);
}
.to-top[hidden] { display: flex; }
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
body.menu-open .to-top { opacity: 0; pointer-events: none; }
.to-top svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.to-top:hover { background: rgba(255, 255, 255, .55); border-color: rgba(20, 24, 28, .3); }
.to-top:hover svg { transform: translateY(-1px); }
@supports not (backdrop-filter: blur(1px)) {
  .to-top { background: rgba(251, 251, 249, .9); }
}
@media (prefers-reduced-motion: reduce) {
  .to-top { transition: opacity .2s linear; transform: none; }
}

/* ------------------------------------------------------------ документы */
/* Отчёты — карточки с крупным годом в моно, как подписи и цифры на сайте.
   Ссылка целиком: PDF открывается в новой вкладке. */

.reps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}
.rep {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(22px, 2.6vw, 32px) clamp(20px, 2.2vw, 28px) clamp(18px, 2vw, 24px);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--white);
  color: inherit;
  text-decoration: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.rep:hover { border-color: var(--line); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.rep__year {
  font-family: var(--f-mono);
  font-size: clamp(2rem, 2.8vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1;
  margin: 0 0 14px;
}
.rep__t { font-weight: 500; font-size: 1.05rem; letter-spacing: -.01em; margin: 0; }
.rep__for { color: var(--muted); font-size: .92rem; margin: 0; }
.rep__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.rep__open { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); }
.rep__open svg { width: 13px; height: 13px; transition: transform .25s var(--ease); }
.rep:hover .rep__open svg { transform: translate(2px, -2px); }
@media (max-width: 900px) { .reps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .reps { grid-template-columns: 1fr; } }

/* -------------------------------------------------- окно после заявки */
/* Та же стеклянная карточка с аркой, что на 404, но поверх затемнённой
   страницы. Состояние ошибки — класс .fm--fail на контейнере: показывает
   второй набор заголовка и текста. */

.fm {
  position: fixed;
  inset: 0;
  z-index: 190;                     /* выше шапки и стрелки, ниже лайтбокса */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 24, 28, .42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.fm[hidden] { display: none; }
.fm.is-open { opacity: 1; }
.fm__card {
  width: min(100%, 560px);
  padding: clamp(30px, 4.5vw, 52px) clamp(24px, 4vw, 48px) clamp(26px, 3.5vw, 40px);
  border-radius: var(--arch) var(--arch) var(--r-md) var(--r-md);
  border: 1px solid var(--line-soft);
  background: var(--paper);
  box-shadow: 0 40px 80px -40px rgba(20, 24, 28, .5);
  text-align: center;
  transform: translateY(14px);
  transition: transform .3s var(--ease);
}
.fm.is-open .fm__card { transform: none; }
.fm__card .eyebrow { justify-content: center; }
.fm__card .h-lg { margin-top: 14px; }
.fm__card .lead { margin-top: 16px; }
.fm__card .cta-phones { justify-items: center; margin-top: 22px; }
.fm__card .cta-phones__k { color: var(--muted); }
.fm__card .cta-phones a { color: var(--ink); }
.fm__close { margin-top: 28px; }
.fm__fail { display: none; }
.fm--fail .fm__ok { display: none; }
.fm--fail .fm__fail { display: inline; }
@media (prefers-reduced-motion: reduce) {
  .fm, .fm__card { transition: none; transform: none; }
}

/* ---------------------------------------------------------------- 404 */
/* Гигантские цифры тают в бумагу сверху вниз, поверх них — матовая карточка
   с фирменной аркой. Цифры выключены из дерева доступности (aria-hidden):
   читалке достаточно заголовка. Карточка заходит на цифры отрицательным
   отступом — насколько, задаёт --nf-overlap. */

.nf {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(56px, 8vw, 120px);
  --nf-size: clamp(9.5rem, 30vw, 21rem);
  --nf-overlap: .3;      /* доля высоты цифр, на которую карточка на них заходит */
}
.nf__num {
  margin: 0;
  font-weight: 300;
  font-size: var(--nf-size);
  line-height: .82;
  letter-spacing: -.07em;
  font-variant-numeric: lining-nums tabular-nums;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-3) 38%, #b8bcb3 72%, var(--paper) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}
.nf__card {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  margin-top: calc(-1 * var(--nf-overlap) * var(--nf-size));
  padding: clamp(30px, 4.5vw, 52px) clamp(24px, 4vw, 48px) clamp(30px, 4vw, 44px);
  border-radius: var(--arch) var(--arch) var(--r-md) var(--r-md);
  border: 1px solid var(--line-soft);
  background: rgba(251, 251, 249, .74);   /* чуть прозрачнее шапки: цифры должны просвечивать */
  backdrop-filter: var(--glass-filter);
  -webkit-backdrop-filter: var(--glass-filter);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 30px 60px -40px rgba(20, 24, 28, .25);
}
.nf__card .eyebrow { justify-content: center; }
.nf__card .h-lg { margin-top: 14px; }
.nf__card .lead { margin-top: 16px; }
.nf__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
@supports not (backdrop-filter: blur(1px)) {
  .nf__card { background: var(--paper); }
}
@media (max-width: 480px) {
  .nf__actions { flex-direction: column; align-items: stretch; }
  .nf__actions .btn { justify-content: center; }
}

/* --------------------------------------------------------------- lightbox */

.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(9, 12, 13, .95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 40px);
  padding-bottom: clamp(62px, 7vw, 88px);
}
.lb.is-open { display: flex; }
.lb__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--r-sm);
}
.lb__btn {
  position: absolute;
  width: 50px; height: 50px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .07);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s var(--ease), border-color .18s var(--ease);
  backdrop-filter: blur(6px);
}
.lb__btn:hover { background: rgba(255, 255, 255, .17); border-color: rgba(255, 255, 255, .45); }
.lb__btn svg { width: 17px; height: 17px; }
.lb__close { top: clamp(12px, 2vw, 26px); right: clamp(12px, 2vw, 26px); }
.lb__prev { left: clamp(10px, 2vw, 26px); top: 50%; transform: translateY(-50%); }
.lb__next { right: clamp(10px, 2vw, 26px); top: 50%; transform: translateY(-50%); }
.lb__count {
  position: absolute;
  bottom: clamp(14px, 2vw, 28px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: 7px 16px;
  backdrop-filter: blur(6px);
}
@media (max-width: 620px) {
  .lb__prev { left: 10px; }
  .lb__next { right: 10px; }
  .lb__btn { width: 42px; height: 42px; }
}

/* --------------------------------------------------------------- reveal */

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
