/* Тензор — версия 4: «Архитектурная монография»
   Дизайн построен вокруг полноширинных сгенерированных фотографий
   (монохромный брутализм + изумрудные аннотации #12866F).
   Принципы: острые углы (радиус 0), швейцарская типографика,
   тонкие линии-аннотации, моноширинные технические подписи.
   Фото — не картинки в окошках, а полноэкранные слои сайта:
   hero, ленты-разрывы между секциями, фоновые текстуры тёмных секций. */

:root {
  --ink: #141517;          /* графит — основной текст */
  --ink-soft: #2B2E30;
  --ink-deep: #0C0D0E;     /* почти чёрный — тёмные секции */
  --accent: #12866F;       /* изумруд — как на фотографиях */
  --accent-dark: #0C6553;
  --accent-bright: #2BB894; /* изумруд для тёмного фона */
  --accent-tint: #E3EEE9;
  --steel: #9A9FA0;
  --steel-dark: #5C6163;
  --bg: #F0F0ED;           /* светло-серая «бумага» */
  --surface: #FAFAF8;
  --line: #D8D8D2;
  --line-dark: #2E3134;
  --radius: 0px;           /* брутализм: без скруглений */
  --font-head: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-tech: "JetBrains Mono", ui-monospace, monospace;
  --shadow: 0 16px 44px rgba(12, 13, 14, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; }
h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.015em; margin-bottom: 18px; }
h3 { font-size: 20px; font-weight: 700; }

/* дисплейные заголовки главной: прописные, как плакатная графика.
   Отрицательный трекинг: у крупных прописных межбуквенные просветы
   оптически растут, поэтому их поджимают. */
/* Интерлиньяж 1.16, а не 1.04: у русских прописных «Щ» и «Ц» есть выносные
   хвосты (18% кегля вниз), а над «Й» стоит бреве (94% вверх против обычных 74%).
   Соприкосновение начинается уже на 1.12 — ниже строки налезают друг на друга. */
.t-disp { text-transform: uppercase; letter-spacing: -0.015em; line-height: 1.2; }

.accent-text { color: var(--accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-tech); font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--accent); }
.eyebrow--light { color: var(--accent-bright); }
.eyebrow--light::before { background: var(--accent-bright); }

/* шапка секции с индексом листа, как нумерация в альбоме чертежей */
.sec-head { border-top: 1px solid var(--ink); padding-top: 24px; display: flex; align-items: flex-start; gap: 26px; }
.sec-head__num {
  font-family: var(--font-tech); font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--ink); border: 1px solid var(--ink); padding: 5px 10px; margin-top: 4px; white-space: nowrap;
}
.section--photo .sec-head { border-top-color: rgba(255,255,255,0.28); }
.section--photo .sec-head__num { color: #fff; border-color: rgba(255,255,255,0.4); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border: 1px solid transparent; border-radius: 0;
  font-family: var(--font-head); font-size: 15px; font-weight: 700; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn--lg { padding: 17px 34px; font-size: 17px; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }
.btn--ghost-light { border-color: rgba(255,255,255,0.55); color: #fff; background: transparent; }
.btn--ghost-light:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }
.section--dark .btn--ghost, .section--photo .btn--ghost { border-color: rgba(255,255,255,0.55); color: #fff; }
.section--dark .btn--ghost:hover, .section--photo .btn--ghost:hover { background: #fff; color: var(--ink); }

/* ---------- шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(240, 240, 237, 0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.3s ease, box-shadow 0.25s ease;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(12,13,14,0.06); }
.header__inner { display: flex; align-items: center; gap: 28px; height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo__text { font-family: var(--font-head); font-size: 34px; font-weight: 800; letter-spacing: -0.01em; text-transform: uppercase; color: var(--accent); }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  font-size: 15px; font-weight: 500; color: var(--ink-soft); text-decoration: none;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--accent); }
.header__cta { white-space: nowrap; }

/* прозрачная шапка поверх фото на главной (до прокрутки) */
.header--glass { background: transparent; backdrop-filter: none; }
.header--glass .logo { color: #fff; }
.header--glass .logo__text { color: var(--accent-bright); }
.header--glass .nav a { color: rgba(255,255,255,0.82); }
.header--glass .nav a:hover { color: #fff; }
.header--glass .burger span { background: #fff; }
/* после прокрутки шапка возвращается к светлому виду */
.header--glass.is-scrolled { background: rgba(240, 240, 237, 0.92); backdrop-filter: blur(12px); }
.header--glass.is-scrolled .logo { color: var(--ink); }
.header--glass.is-scrolled .logo__text { color: var(--accent); }
.header--glass.is-scrolled .nav a { color: var(--ink-soft); }
.header--glass.is-scrolled .nav a:hover { color: var(--accent); }
.header--glass.is-scrolled .burger span { background: var(--ink); }

.burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: 0.25s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- герой: полноэкранное фото ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; background: var(--ink-deep);
}
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
/* Завеса. Текст стоит на дне и тянется вправо до края колонки, поэтому
   тёмное поле обязано доходить до 3/4 ширины и уплотняться книзу —
   иначе белые буквы попадают на светлый бетон и теряют контраст. */
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg,
      rgba(12,13,14,0.90) 0,
      rgba(12,13,14,0.86) calc(50% - 420px),
      rgba(12,13,14,0.62) calc(50% + 120px),
      rgba(12,13,14,0.38) calc(50% + 560px),
      rgba(12,13,14,0)    calc(50% + 940px)),
    linear-gradient(180deg, rgba(12,13,14,0.55) 0%, rgba(12,13,14,0) 24%, rgba(12,13,14,0.06) 48%, rgba(12,13,14,0.48) 72%, rgba(12,13,14,0.82) 100%);
}
/* тонкая рамка-аннотация по периметру, как рамка чертёжного листа.
   Верх опущен ниже шапки и логотипа, чтобы не перекрывать их. */
.hero__frame { position: absolute; top: 104px; right: 24px; bottom: 24px; left: 24px; border: 1px solid rgba(255,255,255,0.20); pointer-events: none; }
.hero__frame i { position: absolute; width: 20px; height: 20px; }
.hero__frame i:nth-child(1) { top: -1px; left: -1px; border-top: 2px solid var(--accent-bright); border-left: 2px solid var(--accent-bright); }
.hero__frame i:nth-child(2) { top: -1px; right: -1px; border-top: 2px solid var(--accent-bright); border-right: 2px solid var(--accent-bright); }
.hero__frame i:nth-child(3) { bottom: -1px; left: -1px; border-bottom: 2px solid var(--accent-bright); border-left: 2px solid var(--accent-bright); }
.hero__frame i:nth-child(4) { bottom: -1px; right: -1px; border-bottom: 2px solid var(--accent-bright); border-right: 2px solid var(--accent-bright); }

.hero__annot {
  position: absolute; top: 108px; right: 52px; z-index: 2;
  font-family: var(--font-tech); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.72); text-align: right; line-height: 1.9;
}
.hero__annot b { color: var(--accent-bright); font-weight: 600; }

/* весь текстовый блок стоит на дне экрана — плакатная композиция.
   Интервалы растут сверху вниз (18 → 32 → 40 → 48): надзаголовок принадлежит
   заголовку, а нижняя техническая строка отделена от него сильнее всего. */
.hero__inner { position: relative; z-index: 2; width: 100%; padding-top: 120px; padding-bottom: 56px; }
.hero .eyebrow { margin-bottom: 18px; }

/* 86px — предел, при котором «ПРОЕКТИРУЕМ И СЧИТАЕМ» держится одной строкой
   в колонке 1184px. Крупнее — и союз «и» срывается в конец строки. */
/* кегль привязан и к ширине, и к высоте окна: на низком экране ноутбука
   заголовок сам ужимается, чтобы нижняя строка не ушла под сгиб */
.hero__title { font-size: clamp(34px, min(4.8vw, 8vh), 86px); }
/* каждая смысловая часть — своя строка; на узких экранах переносится сама */
.hero__title span { display: block; }
.hero__title .accent-text { color: var(--accent-bright); }
.hero__sub {
  font-size: clamp(15px, 1.15vw, 17.5px); color: rgba(255,255,255,0.82);
  margin: 32px 0 40px; max-width: 560px; text-wrap: pretty;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* нижняя строка героя — сразу под кнопками, в общем потоке текста */
.hero__badges {
  display: flex; flex-wrap: wrap; list-style: none;
  border-top: 1px solid rgba(255,255,255,0.24);
  gap: 6px clamp(20px, 3.6vw, 60px);
  margin-top: 48px;
}
.hero__badges li {
  font-family: var(--font-tech); font-size: 13px; font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase; color: rgba(255,255,255,0.78);
  padding-top: 13px; position: relative;
}
.hero__badges li::before { content: ""; position: absolute; top: -1px; left: 0; width: 24px; height: 2px; background: var(--accent-bright); }

/* ---------- нормативная база: бегущая лента ---------- */
.norms {
  background: var(--ink-deep); padding: 22px 0;
  border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
}
.norms__track { display: flex; width: max-content; animation: norms-scroll 80s linear infinite; }
.norms__list { display: flex; align-items: center; list-style: none; padding: 0; margin: 0; }
.norms__list li {
  font-family: var(--font-tech); font-size: 13.5px; font-weight: 500;
  letter-spacing: 0.03em; color: var(--steel); white-space: nowrap;
  padding: 0 17px; position: relative;
}
.norms__list li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent-bright);
}
.norms__list li:first-child::before { display: none; }
.norms__list li b { color: #fff; font-weight: 600; }

@keyframes norms-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.norms:hover .norms__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .norms__track { animation: none; }
  .norms { overflow-x: auto; }
}

/* ---------- секции ---------- */
.section { padding: 100px 0; }
.section--tint { background: #E7E7E3; }
.section--dark { background: var(--ink-deep); color: #EDEDEA; }
.section--dark h2 { color: #fff; }

/* тёмная секция с фоновой фотографией-текстурой */
.section--photo { position: relative; background: var(--ink-deep); color: #EDEDEA; overflow: hidden; }
.section--photo h2 { color: #fff; }
.section__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.34; /* фото проступает сквозь тёмный фон, текст остаётся читаемым */
}
.section__veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12,13,14,0.72) 0%, rgba(12,13,14,0.28) 60%, rgba(12,13,14,0.55) 100%);
}
.section--photo .container { position: relative; z-index: 2; }

/* рамка чертёжного листа с угловыми засечками */
.section--stamp::before {
  content: ""; position: absolute; inset: 22px; z-index: 1;
  border: 1px solid rgba(255,255,255,0.16); pointer-events: none;
}
.stamp-corner { position: absolute; width: 18px; height: 18px; pointer-events: none; z-index: 1; }
.stamp-corner--tl { top: 22px; left: 22px; border-left: 2px solid var(--accent-bright); border-top: 2px solid var(--accent-bright); }
.stamp-corner--br { bottom: 22px; right: 22px; border-right: 2px solid var(--accent-bright); border-bottom: 2px solid var(--accent-bright); }

.section__note { max-width: 640px; color: var(--steel-dark); margin-bottom: 36px; }
.section--photo .section__note { color: var(--steel); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 10px; flex-wrap: wrap; }

/* ---------- фото-ленты между секциями ---------- */
.band {
  position: relative; height: 58vh; min-height: 340px; max-height: 640px;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  background-size: cover; background-position: center;
  background-attachment: fixed; /* фото «стоит на месте», сайт скользит поверх */
}
.band__caption {
  position: absolute; left: 0; bottom: 34px;
  display: inline-flex; align-items: center; gap: 14px;
  background: rgba(12, 13, 14, 0.82); color: #fff;
  border-left: 2px solid var(--accent-bright);
  padding: 12px 22px 12px 18px;
  font-size: 14px;
}
.band__tag {
  font-family: var(--font-tech); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-bright); white-space: nowrap;
}

/* ---------- карточки услуг ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; margin-top: 42px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  padding: 30px 26px 26px; display: flex; flex-direction: column; gap: 12px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card::before { content: ""; position: absolute; top: -1px; left: -1px; width: 46px; height: 3px; background: var(--accent); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--ink); }
.card__num {
  font-family: var(--font-tech); font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; color: var(--steel-dark); margin-bottom: 8px;
}
.card p { font-size: 15.5px; color: var(--steel-dark); flex: 1; }
.card__link {
  font-family: var(--font-tech); font-weight: 600; font-size: 13.5px; letter-spacing: 0.04em;
  color: var(--accent); text-decoration: none; text-transform: uppercase;
}
.card__link:hover { color: var(--accent-dark); }
.card__bolt { fill: #EDEFF3; stroke: var(--ink); stroke-width: 1.4; }

/* ---------- каталог услуг: карточки-разделы со списком услуг ---------- */
.cat-grid { columns: 2 420px; column-gap: 18px; margin-top: 42px; }
.cat-card { background: var(--surface); border: 1px solid var(--line); padding: 26px 28px; break-inside: avoid; display: inline-block; width: 100%; margin-bottom: 18px; vertical-align: top; }
.cat-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.cat-card__head h3 { font-family: var(--font-head); font-size: 16.5px; font-weight: 800; text-transform: uppercase; line-height: 1.3; letter-spacing: 0; }
.cat-card__head h3 a { color: var(--ink); text-decoration: none; }
.cat-card__head h3 a:hover { color: var(--accent); }
.cat-card__num { font-family: var(--font-tech); font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; padding-top: 2px; }
.cat-card__list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.cat-card__list li { font-size: 14.5px; color: var(--steel-dark); line-height: 1.4; padding-left: 16px; position: relative; }
.cat-card__list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; background: var(--accent); }
.cat-card__list li a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.cat-card__list li a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- страница «Услуги и цены» ---------- */
.svc-section { margin-top: 52px; padding-top: 36px; border-top: 1px solid var(--line); }
.svc-section:first-of-type { margin-top: 40px; }
.svc-section__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 6px; }
.svc-section__head span { font-family: var(--font-tech); font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.svc-section__head h2 { margin: 0; font-size: clamp(22px, 2.6vw, 30px); }
.svc-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; margin-top: 26px; }
.svc-detail { background: var(--surface); border: 1px solid var(--line); padding: 22px 24px; display: flex; flex-direction: column; transition: border-color .2s; }
.svc-detail:hover { border-color: var(--accent); }
.svc-detail h3 { font-size: 16.5px; margin-bottom: 8px; line-height: 1.3; }
.svc-detail h3 a { color: var(--ink); text-decoration: none; }
.svc-detail h3 a:hover { color: var(--accent); }
.svc-detail p { font-size: 14.5px; color: var(--steel-dark); margin-bottom: 10px; text-align: left; }
.svc-detail__text { flex: 1; }
.svc-detail__price {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  display: grid; gap: 6px;
}
.svc-detail__price-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  font-size: 13.5px; color: var(--steel-dark);
}
.svc-detail__price-row b { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }
/* «цена по задаче» — не цифра, поэтому без акцентного веса и без строк-тарифов */
.svc-detail__price--soft { font-size: 13.5px; color: var(--steel-dark); font-weight: 500; margin-bottom: 0 !important; }
.svc-detail__more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; align-self: flex-start;
  font-family: var(--font-tech); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); text-decoration: none;
}
.svc-detail__more::after { content: "→"; transition: transform .2s; }
.svc-detail__more:hover { color: var(--accent-dark); }
.svc-detail__more:hover::after { transform: translateX(4px); }

/* быстрый переход к разделу каталога */
.svc-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.svc-nav a {
  font-family: var(--font-tech); font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--steel-dark); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); padding: 9px 14px;
  transition: color .2s, border-color .2s;
}
.svc-nav a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- ценности ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 34px; margin-top: 46px; }
.value { border-left: 2px solid var(--accent-bright); padding-left: 18px; }
.value h3 { margin: 0 0 8px; color: #fff; }
.value p { font-size: 15.5px; color: var(--steel); }
/* ---------- лента программ, в которых работаем ---------- */
.tools { margin-top: 52px; display: flex; align-items: center; gap: 18px; }
.tools__label { font-size: 14.5px; color: var(--steel); white-space: nowrap; flex-shrink: 0; }
.tools__viewport {
  overflow: hidden; flex: 1; min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
}
.tools__track { display: flex; width: max-content; gap: 12px; animation: tools-scroll 42s linear infinite; }
.tools__list { display: flex; gap: 12px; flex-shrink: 0; }
.tools__list span {
  border: 1px solid var(--line-dark); padding: 6px 14px; white-space: nowrap;
  font-family: var(--font-tech); font-weight: 500; color: #C9CCCA; font-size: 12.5px; letter-spacing: 0.04em;
}
@keyframes tools-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tools:hover .tools__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .tools__track { animation: none; }
  .tools__viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 760px) {
  .tools { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ---------- процесс ---------- */
.process { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px; margin-top: 46px; position: relative; }
.process::before {
  content: ""; position: absolute; top: 26px; left: 4%; right: 4%;
  border-top: 1px dashed var(--steel);
}
.process__step { position: relative; background: var(--bg); }
.process__num {
  position: relative; z-index: 1; display: inline-block;
  font-family: var(--font-tech); font-size: 40px; font-weight: 600; line-height: 1.3;
  color: var(--accent); background: var(--bg); padding-right: 14px; margin-bottom: 8px;
}
.process__step h3 { font-size: 17.5px; margin-bottom: 6px; }
.process__step p { font-size: 14.5px; color: var(--steel-dark); }

/* ---------- кейсы: карточки с фото ---------- */
.case-card {
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  display: flex; flex-direction: column; overflow: hidden;
}
.case-card:hover { border-color: var(--ink); transform: translateY(-5px); box-shadow: var(--shadow); }
.case-card__img { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; background: #DCDCD8; }
.case-card__img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.case-card:hover .case-card__img img { transform: scale(1.035); }
.case-card__tag {
  position: absolute; top: 0; left: 0; z-index: 1;
  font-family: var(--font-tech); font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink); background: rgba(240,240,237,0.94);
  border-left: 2px solid var(--accent);
  padding: 7px 14px;
}
.case-card__body { padding: 20px 22px 22px; }
.case-card h3 { margin-bottom: 4px; }
.case-card__body p { font-size: 14.5px; color: var(--steel-dark); }

/* ---------- статьи ---------- */
.article-card {
  background: var(--surface); border: 1px solid var(--line);
  padding: 28px 26px; display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--ink); }
.article-card--soon { opacity: 0.72; }
.article-card__tag {
  align-self: flex-start; font-family: var(--font-tech); font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); background: var(--accent-tint);
  padding: 5px 12px;
}
.article-card h3 { font-size: 18.5px; line-height: 1.35; }
.article-card h3 a { color: var(--ink); text-decoration: none; }
.article-card h3 a:hover { color: var(--accent); }
.article-card p { font-size: 15px; color: var(--steel-dark); flex: 1; }
.article-card__meta { font-family: var(--font-tech); font-size: 12.5px; color: var(--steel); letter-spacing: 0.04em; }

/* ---------- контакты / форма ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: start; }
.contact--single { grid-template-columns: 1fr; max-width: 600px; }
.contact__text { color: var(--steel); margin-bottom: 28px; max-width: 440px; }
.contact__list { list-style: none; display: grid; gap: 12px; margin-bottom: 28px; }
.contact__list a { color: #fff; font-size: 20px; font-weight: 700; font-family: var(--font-head); text-decoration: none; }
.contact__list a:hover { color: var(--accent-bright); }

.modal {
  border: 1px solid var(--line); border-radius: 0; padding: 0; max-width: 480px; width: calc(100% - 40px);
  max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); box-shadow: var(--shadow);
  position: fixed; inset: 0; margin: auto;
}
.modal--wide { max-width: 880px; }
.modal::backdrop { background: rgba(12, 13, 14, 0.7); }
.modal__grid { display: grid; grid-template-columns: 1fr 1fr; }
.modal .form { box-shadow: none; position: relative; border-radius: 0; padding: 34px; }
.modal__close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; z-index: 1;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s ease, color 0.2s ease;
}
.modal__close:hover { background: var(--ink); color: #fff; }
/* левая панель модалки: фото на весь блок, ровное затемнение (без выцветания книзу) */
.modal__info {
  position: relative; overflow: hidden;
  background: var(--ink-deep); color: #fff;
  display: flex; flex-direction: column;
}
.modal__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.modal__veil { position: absolute; inset: 0; background: rgba(12,13,14,0.8); }
.modal__sheet {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  font-family: var(--font-tech); font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.65); border: 1px solid rgba(255,255,255,0.32); padding: 4px 9px;
}
.modal__content { position: relative; z-index: 1; padding: 34px; display: flex; flex-direction: column; height: 100%; }
.modal__title { font-size: 24px; margin-bottom: 6px; }
.modal__sub { color: rgba(255,255,255,0.82); font-size: 14.5px; margin-bottom: 20px; }
.modal__hint { font-family: var(--font-tech); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-bright); margin-bottom: 10px; }
.modal__list { list-style: none; display: grid; gap: 10px; margin-bottom: 24px; }
.modal__list li { font-size: 14px; color: rgba(255,255,255,0.82); padding-left: 16px; position: relative; }
.modal__list li::before { content: "—"; position: absolute; left: 0; color: var(--accent-bright); }
.modal__contacts { list-style: none; display: grid; gap: 8px; margin-top: auto; }
.modal__contacts a { color: #fff; font-size: 16px; font-weight: 600; font-family: var(--font-head); text-decoration: none; }
.modal__contacts a:hover { color: var(--accent-bright); }

.form { background: var(--surface); border-radius: 0; padding: 34px; color: var(--ink); box-shadow: var(--shadow); }
.form__row { margin-bottom: 18px; }
.form__row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.form__row input, .form__row textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 0;
  padding: 12px 14px; font: inherit; font-size: 15.5px; color: var(--ink);
  background: var(--bg); resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form__row input:focus, .form__row textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); background: #fff;
}
.form__row input.is-invalid, .form__row textarea.is-invalid { border-color: #C0392B; }
.form__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--steel-dark); margin-bottom: 22px; cursor: pointer; }
.form__consent input { margin-top: 3px; accent-color: var(--accent); }
.form__consent a { color: var(--accent); }
.form__submit { width: 100%; }
.form__status { margin-top: 14px; font-size: 14.5px; min-height: 22px; }
.form__status.ok { color: var(--accent); font-weight: 600; }
.form__status.err { color: #C0392B; }

/* ---------- подвал ---------- */
.footer { background: var(--ink-deep); color: var(--steel); padding: 38px 0; border-top: 1px solid var(--line-dark); }
.footer__inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.logo--footer { color: #fff; }
.logo--footer .logo__text { color: var(--accent-bright); }
.footer__nav { display: flex; gap: 22px; flex-wrap: wrap; margin-left: auto; }
.footer__nav a { color: var(--steel); font-size: 14px; text-decoration: none; }
.footer__nav a:hover { color: #fff; }
.footer__copy { width: 100%; font-family: var(--font-tech); font-size: 12.5px; letter-spacing: 0.04em; border-top: 1px solid var(--line-dark); padding-top: 20px; margin-top: 6px; }

/* ---------- появление при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- страницы статей ---------- */
.page { padding: 150px 0 90px; }
.page--narrow .container { max-width: 1160px; }
.article-body { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: clamp(26px, 5vw, 56px); }
.article-body h1 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 12px; }
.article-body h2 { font-size: 25px; margin: 38px 0 12px; }
.article-body p { margin-bottom: 16px; text-align: justify; }
.article-body ul, .article-body ol { margin: 0 0 16px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: inherit; text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s ease; }
.article-body a:hover { color: var(--accent); }
.article-meta { font-family: var(--font-tech); font-size: 13px; color: var(--steel); margin-bottom: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.article-body blockquote {
  border-left: 3px solid var(--accent); background: var(--accent-tint);
  padding: 16px 20px; margin: 22px 0; font-size: 16px;
}
.article-cta {
  margin-top: 40px; background: var(--ink-deep); color: #fff;
  border-left: 3px solid var(--accent);
  padding: 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.article-cta p { margin: 0; font-size: 16.5px; max-width: 420px; }
.breadcrumbs { font-size: 14px; color: var(--steel); margin-bottom: 26px; }
.breadcrumbs a { color: var(--accent); text-decoration: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1020px) {
  .hero__annot { display: none; }
  .band { background-attachment: scroll; height: 42vh; min-height: 260px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process::before { display: none; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed; top: 72px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 10px 24px 18px;
    transform: translateY(-130%); transition: transform 0.3s ease;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft) !important; }
  .nav a:last-child { border-bottom: 0; }
  .burger { display: block; margin-left: auto; }
  .header__cta { display: none; }
  .hero__frame { top: 88px; right: 14px; bottom: 14px; left: 14px; }
  .hero__inner { padding-top: 116px; padding-bottom: 36px; }
  .hero__badges { gap: 4px 20px; margin-top: 24px; }
  .hero__badges li { font-size: 11.5px; padding-top: 10px; }
  .norms__list li { padding: 0 13px; font-size: 12.5px; }
  .sec-head { flex-direction: column; gap: 12px; }
  .values-grid { grid-template-columns: 1fr; gap: 30px; }
  .process { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .form { padding: 26px 20px; }
  .modal__grid { grid-template-columns: 1fr; }
  .modal .form { padding: 26px 20px; }
  .modal__sheet { display: none; }
}

/* ---------- статьи: расширенные блоки (услуги) ---------- */
.article-body h3 { font-size: 19px; margin: 26px 0 10px; }

.a-lead { font-size: 18.5px; color: var(--ink-soft); }

.a-answer {
  border-left: 3px solid var(--accent); background: var(--accent-tint);
  padding: 16px 20px; margin: 0 0 22px;
  font-size: 16.5px;
}

.a-price-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 22px;
}
.a-price-card {
  background: var(--bg); border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  padding: 18px 18px 16px;
}
.a-price-card__label {
  font-family: var(--font-tech); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel-dark);
  display: block; margin-bottom: 6px;
}
.a-price-card__value {
  font-family: var(--font-head); font-size: 21px; font-weight: 800; color: var(--ink);
  display: block; line-height: 1.2;
}
.a-price-card__note { font-size: 13.5px; color: var(--steel-dark); display: block; margin-top: 4px; }

.a-table-wrap { overflow-x: auto; margin: 18px 0 22px; }
.a-table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 560px; }
.a-table th {
  background: var(--ink-deep); color: #fff; font-family: var(--font-head);
  font-size: 14px; font-weight: 700; text-align: left; padding: 12px 14px;
}
.a-table td { border: 1px solid var(--line); padding: 11px 14px; vertical-align: top; background: var(--surface); }
.a-table tr:nth-child(even) td { background: var(--bg); }

.a-steps { list-style: none; margin: 18px 0 22px !important; counter-reset: steps; }
.a-steps li {
  counter-increment: steps; position: relative;
  padding: 0 0 18px 56px; margin: 0 !important;
}
.a-steps li::before {
  content: counter(steps); position: absolute; left: 0; top: 0;
  width: 38px; height: 38px;
  background: var(--accent); color: #fff;
  font-family: var(--font-tech); font-weight: 600; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}
.a-steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 19px; top: 42px; bottom: 4px;
  width: 1px; background: var(--line);
}
.a-steps b { display: block; font-family: var(--font-head); font-size: 16.5px; margin-bottom: 3px; }
.a-steps span { font-size: 15.5px; color: var(--steel-dark); display: block; text-align: left; }

.a-check {
  background: var(--surface); border: 1px solid var(--line);
  padding: 22px 24px; margin: 18px 0 22px;
}
.a-check ul { list-style: none; margin: 0 !important; }
.a-check li { padding-left: 30px; position: relative; margin-bottom: 10px !important; }
.a-check li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 800; font-size: 17px;
}

.a-expert {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--bg); border: 1px solid var(--line);
  padding: 22px 24px; margin: 18px 0 22px;
}
.a-expert__avatar {
  flex: 0 0 56px; width: 56px; height: 56px;
  background: var(--ink-deep); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 19px;
}
.a-expert__name { font-family: var(--font-head); font-weight: 700; font-size: 15.5px; margin-bottom: 2px; }
.a-expert__role { font-size: 13.5px; color: var(--steel-dark); margin-bottom: 10px; }
.a-expert__text { font-size: 15.5px; font-style: italic; color: var(--ink-soft); text-align: left; margin: 0 !important; }

.a-sell {
  background: var(--accent); color: #fff;
  padding: 22px 26px; margin: 22px 0;
  display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.a-sell p { margin: 0 !important; text-align: left !important; font-size: 16.5px; max-width: 620px; }
.a-sell .btn { background: #fff; color: var(--accent-dark); flex-shrink: 0; }
.a-sell .btn:hover { background: var(--accent-tint); }

.a-img {
  border: 2px dashed var(--steel);
  background: var(--bg); padding: 30px 26px; margin: 20px 0;
  text-align: center; color: var(--steel-dark);
}
.a-img__tag {
  font-family: var(--font-tech); font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 8px;
}
.a-img p { margin: 0 !important; font-size: 14.5px; text-align: center !important; }

.a-norm { font-size: 15px; color: var(--steel-dark); }

@media (max-width: 760px) {
  .a-price-grid { grid-template-columns: 1fr; }
  .a-sell { flex-direction: column; align-items: flex-start; }
  .a-expert { flex-direction: column; }
}

/* ---------- статьи: иллюстрации ---------- */
.a-fig { margin: 22px 0; }
.a-fig img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); background: #fff;
}
.a-fig figcaption {
  font-size: 14px; color: var(--steel-dark); text-align: center; margin-top: 10px;
}

/* ---------- изометрические грани (используются в SVG статей) ---------- */
.f-top.m-ink    { fill: #232527; }
.f-right.m-ink  { fill: #141517; }
.f-left.m-ink   { fill: #0B0C0D; }
.f-top.m-steel  { fill: #C9CCCA; }
.f-right.m-steel{ fill: #9A9FA0; }
.f-left.m-steel { fill: #5C6163; }
.f-top.m-emerald   { fill: #35C4A4; }
.f-right.m-emerald { fill: #12866F; }
.f-left.m-emerald  { fill: #0C6553; }
