/* =========================================================================
   ГК Такт — Серпухов. Концепция «Тектоника стиля».
   Бетонная плоскость, белые блоки, изумрудный акцент, чертёжная сетка.
   ========================================================================= */

/* ── 1. Токены ─────────────────────────────────────────────────────────── */
:root {
  --bg:             #EAE9E6;   /* холодный светло-серый бетон */
  --surface:        #FFFFFF;   /* белые карточки и блоки */
  --text-primary:   #2F2F2F;   /* мокрый асфальт */
  --accent:         #1E6B4E;   /* глубокий изумрудный */

  /* Производные */
  --accent-deep:    #15503A;
  --accent-tint:    rgba(30, 107, 78, .08);
  --accent-line:    rgba(30, 107, 78, .28);
  --text-muted:     #6F6F6B;
  --text-faint:     #9B9A96;
  --line:           rgba(47, 47, 47, .14);
  --line-soft:      rgba(47, 47, 47, .07);
  --bg-deep:        #DEDDD9;
  --graphite:       #23262A;

  --shadow-sm:  0 1px 2px rgba(35, 38, 42, .04);
  --shadow-md:  0 12px 32px -20px rgba(35, 38, 42, .35);
  --shadow-lg:  0 32px 64px -40px rgba(35, 38, 42, .45);

  --sans: 'IBM Plex Sans', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --gutter: 32px;
  --radius: 2px;              /* почти нулевой — тектоника, не пластик */
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ── 2. Сброс и база ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent-deep); }

h1, h2, h3, h4, h5 {
  margin: 0 0 .6em;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.9rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

::selection { background: var(--accent); color: #fff; }

/* ── 3. Layout-каркас ──────────────────────────────────────────────────── */
.shell {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.shell--narrow { max-width: 900px; }

.slab {                       /* вертикальный ритм секций */
  padding: clamp(64px, 8vw, 116px) 0;
  position: relative;
}
.slab--tight { padding: clamp(48px, 5vw, 72px) 0; }
.slab--white { background: var(--surface); }
.slab--deep  { background: var(--graphite); color: #EDEDEA; }
.slab--deep h2, .slab--deep h3 { color: #fff; }

/* Тонкая чертёжная сетка на бетоне */
.grid-plane::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  opacity: .9;
}
.grid-plane > * { position: relative; z-index: 1; }

/* ── 4. Signature: размерная линия (как на чертеже) ────────────────────── */
.dim {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.dim__tick {
  flex: 0 0 auto;
  width: 1px;
  height: 14px;
  background: var(--accent);
}
.dim__rule {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(to right, var(--accent-line), transparent);
  max-width: 140px;
}
.dim__label {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
}
.slab--deep .dim__label { color: #7FC9A6; }
.slab--deep .dim__tick  { background: #7FC9A6; }

/* Монтажные уголки — второй signature-приём */
.corner-marks { position: relative; }
.corner-marks::before,
.corner-marks::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--accent-line);
  opacity: 0;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.corner-marks::before {
  top: -1px; left: -1px;
  border-right: 0; border-bottom: 0;
  transform: translate(6px, 6px);
}
.corner-marks::after {
  bottom: -1px; right: -1px;
  border-left: 0; border-top: 0;
  transform: translate(-6px, -6px);
}
.corner-marks:hover::before,
.corner-marks:hover::after {
  opacity: 1;
  transform: translate(0, 0);
}

/* Заголовок секции */
.slab-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.slab-head__text { max-width: 640px; }
.slab-head__text p { color: var(--text-muted); margin-bottom: 0; }
.slab-head h2 { margin-bottom: .35em; }

/* ── 5. Кнопки ─────────────────────────────────────────────────────────── */
.btn-t {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .01em;
  cursor: pointer;
  transition: all .25s var(--ease);
  text-align: center;
  line-height: 1.2;
}
.btn-t i { font-size: .9em; }

.btn-t--solid {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-t--solid:hover {
  background: var(--accent-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-t--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--line);
}
.btn-t--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-tint);
}
.btn-t--light {
  background: var(--surface);
  color: var(--text-primary);
  border-color: transparent;
}
.btn-t--light:hover { color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-t--wide { width: 100%; }
.btn-t:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* Текстовая ссылка со стрелкой */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent);
}
.link-arrow i { transition: transform .25s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* ── 6. Шапка ──────────────────────────────────────────────────────────── */
.hdr {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(234, 233, 230, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.hdr.is-stuck {
  background: rgba(255, 255, 255, .94);
  border-bottom-color: var(--line);
}
.hdr__bar {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--text-primary); }
.brand:hover { color: var(--text-primary); }
.brand__mark {
  width: 40px; height: 40px;
  flex: 0 0 40px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: var(--radius);
}
.brand__name {
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: -.01em;
  line-height: 1.1;
}
.brand__city {
  display: block;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 400;
}

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link {
  position: relative;
  padding: 10px 13px;
  color: var(--text-primary);
  font-size: .93rem;
  font-weight: 400;
  white-space: nowrap;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 13px; right: 13px; bottom: 4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--accent); font-weight: 500; }

.hdr__phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
  color: var(--text-primary);
}
.hdr__phone b { font-size: 1rem; font-weight: 600; white-space: nowrap; }
.hdr__phone span {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.hdr__phone:hover b { color: var(--accent); }

.hdr__cta { flex: 0 0 auto; padding: 13px 22px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  place-items: center;
  color: var(--text-primary);
}
.burger i { font-size: 1.15rem; }

/* Мобильное меню */
.mnav {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform .38s var(--ease);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mnav.is-open { transform: translateX(0); }
.mnav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
}
.mnav__body { padding: 28px var(--gutter) 40px; flex: 1; }
.mnav__link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-primary);
  font-size: 1.28rem;
  font-weight: 500;
}
.mnav__link span {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--accent);
  letter-spacing: .1em;
}
.mnav__foot { padding: 24px var(--gutter) 40px; border-top: 1px solid var(--line); }

/* ── 7. Hero главной ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 7vw, 104px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__title {
  margin-bottom: 24px;
  font-weight: 600;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}
.hero__lead {
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.hero__fact { padding: 20px 20px 0 0; }
.hero__fact b {
  display: block;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--accent);
  line-height: 1.1;
}
.hero__fact span {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Правая часть — «монтажный лист»: белые блоки в сетке */
.sheet {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: minmax(112px, auto);
  gap: 12px;
}
.sheet__cell {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  color: var(--text-primary);
  min-height: 118px;
}
.sheet__cell:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
}
.sheet__cell i { font-size: 1.3rem; color: var(--accent); }
.sheet__cell b { font-weight: 600; font-size: 1.02rem; display: block; }
.sheet__cell small {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.sheet__cell--wide { grid-column: span 2; }
.sheet__cell--accent {
  background: var(--accent);
  color: #fff;
}
.sheet__cell--accent i, .sheet__cell--accent b { color: #fff; }
.sheet__cell--accent small { color: rgba(255,255,255,.68); }
.sheet__cell--accent:hover { color: #fff; }

/* Размерная выноска у листа */
.sheet__note {
  position: absolute;
  top: -26px;
  left: 0;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ── 8. Три принципа: качество / скорость / цена ───────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.pillar {
  background: var(--surface);
  padding: clamp(28px, 3.4vw, 44px);
  transition: background .3s var(--ease);
}
.pillar:hover { background: #FBFBFA; }
.pillar__idx {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--accent);
  display: block;
  margin-bottom: 20px;
}
.pillar h3 { margin-bottom: .5em; }
.pillar p { color: var(--text-muted); margin: 0; font-size: .96rem; }

/* ── 9. Категории ──────────────────────────────────────────────────────── */
.cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cat {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.cat::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.cat:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); color: var(--text-primary); }
.cat:hover::after { transform: scaleX(1); }
.cat__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--accent-tint);
  color: var(--accent);
  border-radius: var(--radius);
  font-size: 1.28rem;
  margin-bottom: 20px;
}
.cat__media {
  height: 96px;
  margin: -28px -26px 20px;
  overflow: hidden;
  background: var(--bg-deep);
}
.cat__media img { width: 100%; height: 100%; object-fit: cover; }
.cat h3 { font-size: 1.22rem; margin-bottom: .4em; }
.cat p { font-size: .9rem; color: var(--text-muted); margin-bottom: 18px; }
.cat__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.cat__count {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ── 10. Карточка услуги ───────────────────────────────────────────────── */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.svc {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  color: var(--text-primary);
}
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); color: var(--text-primary); }
.svc__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-deep);
  overflow: hidden;
}
.svc__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.svc:hover .svc__media img { transform: scale(1.04); }
.svc__tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--surface);
  color: var(--text-primary);
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: var(--radius);
}
.svc__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.svc__body h3 { font-size: 1.12rem; margin-bottom: .45em; }
.svc__body p { font-size: .9rem; color: var(--text-muted); margin-bottom: 18px; }
.svc__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.svc__price {
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--accent);
  white-space: nowrap;
}

/* Заглушка изображения — чертёжный паттерн */
.ph {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      var(--bg-deep) 0 14px,
      #D5D4CF 14px 15px
    );
  display: grid;
  place-items: center;
  color: var(--text-faint);
}
.ph__in {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(234, 233, 230, .82);
  padding: 12px 18px;
  border-radius: var(--radius);
}
.ph i { font-size: 1.5rem; color: var(--accent); opacity: .5; }
.ph span {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ph--sm i { font-size: 1.1rem; }

/* ── 11. Портфолио ─────────────────────────────────────────────────────── */
.works {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.work {
  position: relative;
  display: block;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.work:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); color: var(--text-primary); }
.work__media { position: relative; aspect-ratio: 3 / 2; background: var(--bg-deep); overflow: hidden; }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work:hover .work__media img { transform: scale(1.05); }
.work__body { padding: 20px 22px 22px; }
.work__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.work__meta em { font-style: normal; color: var(--accent); }
.work__body h3 { font-size: 1.05rem; margin-bottom: .35em; line-height: 1.3; }
.work__body p { font-size: .88rem; color: var(--text-muted); margin: 0; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.filters a {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: .88rem;
  color: var(--text-primary);
  background: transparent;
  transition: all .25s var(--ease);
}
.filters a:hover { border-color: var(--accent); color: var(--accent); }
.filters a.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Галерея объекта */
.gal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.gal__item {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-deep);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
}
.gal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gal__item:hover img { transform: scale(1.05); }

/* Лайтбокс */
.lb {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(35, 38, 42, .93);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lb.is-open { display: flex; }
.lb img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: var(--radius); }
.lb__close {
  position: absolute;
  top: 24px; right: 28px;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.2rem;
}
.lb__close:hover { border-color: #fff; }

/* ── 12. Отзывы ────────────────────────────────────────────────────────── */
.revs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.rev {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.rev__quote {
  font-family: var(--mono);
  color: var(--accent);
  opacity: .35;
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 16px;
}
.rev__text { font-size: .95rem; color: var(--text-primary); margin-bottom: 24px; }
.rev__who {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.rev__ava {
  width: 44px; height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent-tint);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 600;
  font-size: .95rem;
}
.rev__ava img { width: 100%; height: 100%; object-fit: cover; }
.rev__who b { display: block; font-size: .95rem; font-weight: 600; }
.rev__who span {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .1em;
  color: var(--text-faint);
}
.rev__stars { color: var(--accent); font-size: .78rem; letter-spacing: 2px; margin-top: 2px; }

/* ── 13. Блог ──────────────────────────────────────────────────────────── */
.posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.post {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); color: var(--text-primary); }
.post__media { position: relative; aspect-ratio: 16 / 9; background: var(--bg-deep); overflow: hidden; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post:hover .post__media img { transform: scale(1.04); }
.post__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post__date {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.post__body h3 { font-size: 1.12rem; line-height: 1.34; margin-bottom: .5em; }
.post__body p { font-size: .9rem; color: var(--text-muted); margin-bottom: 18px; }
.post__body .link-arrow { margin-top: auto; }

/* Статья */
.article { background: var(--surface); border-radius: var(--radius); padding: clamp(28px, 4vw, 60px); box-shadow: var(--shadow-sm); }
.article__cover { position: relative; aspect-ratio: 21 / 9; background: var(--bg-deep); border-radius: var(--radius); overflow: hidden; margin-bottom: 36px; }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 1.02rem; line-height: 1.75; color: var(--text-primary); }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.22rem; margin: 1.5em 0 .5em; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose blockquote {
  margin: 1.6em 0;
  padding: 20px 26px;
  border-left: 2px solid var(--accent);
  background: var(--accent-tint);
  color: var(--text-primary);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .94rem; }
.prose th, .prose td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--bg); font-weight: 600; }
.prose img { border-radius: var(--radius); margin: 1.4em 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ── 14. Page-hero внутренних страниц ──────────────────────────────────── */
.phero {
  padding: clamp(40px, 5vw, 68px) 0 clamp(36px, 4vw, 56px);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.phero__in { max-width: 820px; }
.phero h1 { margin-bottom: .35em; }
.phero p { color: var(--text-muted); font-size: clamp(1rem, 1.3vw, 1.1rem); margin: 0; }
.phero--media { position: relative; overflow: hidden; }
.phero__bg { position: absolute; inset: 0; z-index: 0; opacity: .18; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; }
.phero--media > .shell { position: relative; z-index: 1; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 22px;
}
.crumbs a { color: var(--text-faint); }
.crumbs a:hover { color: var(--accent); }
.crumbs i { font-size: .5rem; opacity: .5; }

/* ── 15. Формы ─────────────────────────────────────────────────────────── */
.f-field { margin-bottom: 16px; }
.f-label {
  display: block;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.f-input,
.form-control {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: .96rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
  appearance: none;
}
.f-input::placeholder,
.form-control::placeholder { color: var(--text-faint); }
.f-input:focus,
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
textarea.f-input, textarea.form-control { resize: vertical; min-height: 120px; }
.f-input.is-invalid, .form-control.is-invalid { border-color: #C0392B; }
.f-err { display: block; color: #C0392B; font-size: .8rem; margin-top: 6px; }
.f-note {
  font-size: .78rem;
  color: var(--text-faint);
  line-height: 1.5;
  margin: 14px 0 0;
}
.f-note a { color: var(--text-muted); text-decoration: underline; }
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0 !important; height: 0 !important; }

.f-status { margin-top: 14px; font-size: .9rem; display: none; }
.f-status.is-ok  { display: block; color: var(--accent); }
.f-status.is-err { display: block; color: #C0392B; }

/* Блок-форма */
.lead-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(28px, 3.5vw, 44px);
  box-shadow: var(--shadow-md);
}
.lead-box__title { font-size: 1.5rem; margin-bottom: .35em; }
.lead-box__sub { color: var(--text-muted); font-size: .94rem; margin-bottom: 26px; }

/* CTA-полоса */
.cta {
  background: var(--graphite);
  color: #EDEDEA;
  border-radius: var(--radius);
  padding: clamp(34px, 4.5vw, 60px);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 320px; height: 320px;
  border: 1px solid rgba(127, 201, 166, .16);
  border-radius: 50%;
  pointer-events: none;
}
.cta h2 { color: #fff; margin-bottom: .4em; }
.cta p { color: rgba(237, 237, 234, .72); margin-bottom: 0; }
.cta .dim__label { color: #7FC9A6; }
.cta__form { position: relative; z-index: 1; }
.cta .f-input {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
  color: #fff;
}
.cta .f-input::placeholder { color: rgba(237,237,234,.42); }
.cta .f-input:focus { border-color: #7FC9A6; box-shadow: 0 0 0 3px rgba(127,201,166,.12); }
.cta .f-label { color: rgba(237,237,234,.55); }
.cta .f-note { color: rgba(237,237,234,.45); }
.cta .f-note a { color: rgba(237,237,234,.7); }
.cta .btn-t--solid { background: var(--accent); }
.cta .btn-t--solid:hover { background: #2A8B65; }

/* ── 16. Характеристики / таблицы ──────────────────────────────────────── */
.specs {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.spec {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 24px;
  border-bottom: 1px solid var(--line-soft);
  font-size: .94rem;
}
.spec:last-child { border-bottom: 0; }
.spec dt {
  color: var(--text-muted);
  font-weight: 400;
  margin: 0;
  flex: 0 0 auto;
}
.spec dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
}

.price-tag {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 20px;
}
.price-tag small {
  display: block;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 6px;
}
.price-tag b { font-size: 1.7rem; font-weight: 600; letter-spacing: -.02em; }

/* Липкая колонка */
.sticky-col { position: sticky; top: calc(var(--header-h) + 20px); }

/* Двухколоночный контентный layout */
.split {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.split--even { grid-template-columns: 1fr 1fr; }

/* ── 17. SEO-блок ──────────────────────────────────────────────────────── */
.seo-block {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 52px);
  box-shadow: var(--shadow-sm);
}
.seo-block h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.seo-block .prose { color: var(--text-muted); font-size: .98rem; }

/* ── 18. Контакты ──────────────────────────────────────────────────────── */
.contact-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.contact-row {
  background: var(--surface);
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 26px;
}
.contact-row i {
  width: 40px; height: 40px;
  flex: 0 0 40px;
  display: grid; place-items: center;
  background: var(--accent-tint);
  color: var(--accent);
  border-radius: var(--radius);
  font-size: 1rem;
}
.contact-row small {
  display: block;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 3px;
}
.contact-row b, .contact-row span { font-size: 1rem; font-weight: 500; color: var(--text-primary); }
.contact-row a { color: var(--text-primary); }
.contact-row a:hover { color: var(--accent); }

.map-box {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-deep);
  min-height: 380px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.map-box iframe { width: 100% !important; height: 100% !important; min-height: 380px; border: 0; display: block; }

.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-primary);
  transition: all .25s var(--ease);
}
.socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── 19. Подвал ────────────────────────────────────────────────────────── */
.ftr {
  background: var(--graphite);
  color: rgba(237, 237, 234, .72);
  padding: clamp(52px, 6vw, 80px) 0 28px;
}
.ftr a { color: rgba(237, 237, 234, .72); }
.ftr a:hover { color: #fff; }
.ftr__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.ftr__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: #fff; }
.ftr__brand .brand__name { color: #fff; }
.ftr__brand:hover { color: #fff; }
.ftr__about { font-size: .9rem; line-height: 1.6; margin-bottom: 20px; max-width: 320px; }
.ftr__col h4 {
  color: #fff;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 18px;
}
.ftr__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.ftr__list a { font-size: .92rem; }
.ftr__phone { display: block; color: #fff; font-size: 1.24rem; font-weight: 600; margin-bottom: 6px; }
.ftr__phone:hover { color: #7FC9A6; }
.ftr__meta { font-size: .86rem; line-height: 1.7; }
.ftr__bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .06em;
  color: rgba(237,237,234,.45);
}
.ftr .socials a { border-color: rgba(255,255,255,.16); color: rgba(237,237,234,.8); }
.ftr .socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── 20. Модальное окно заявки ─────────────────────────────────────────── */
.modal-t {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(35, 38, 42, .6);
  backdrop-filter: blur(4px);
}
.modal-t.is-open { display: flex; }
.modal-t__box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  width: 100%;
  max-width: 460px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: pop .3s var(--ease);
}
@keyframes pop {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.modal-t__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius);
  font-size: 1.1rem;
}
.modal-t__close:hover { background: var(--bg); color: var(--text-primary); }

/* ── 21. Cookie-баннер ─────────────────────────────────────────────────── */
.cookie {
  position: fixed;
  left: 24px; bottom: 24px;
  z-index: 1000;
  max-width: 460px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-lg);
  border-top: 2px solid var(--accent);
  transform: translateY(140%);
  transition: transform .5s var(--ease);
}
.cookie.is-shown { transform: translateY(0); }
.cookie__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 10px;
}
.cookie__title i { color: var(--accent); }
.cookie p { font-size: .86rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 18px; }
.cookie__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie__actions .btn-t { padding: 11px 20px; font-size: .86rem; }

/* ── 22. Прочее ────────────────────────────────────────────────────────── */
.alert-t {
  padding: 16px 20px;
  border-radius: var(--radius);
  border-left: 2px solid var(--accent);
  background: var(--surface);
  font-size: .94rem;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.alert-t--err { border-left-color: #C0392B; }

.empty {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 60px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.empty i { font-size: 2rem; color: var(--accent); opacity: .4; margin-bottom: 16px; }
.empty h3 { margin-bottom: .4em; }
.empty p { color: var(--text-muted); margin-bottom: 20px; }

.pager {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 44px;
  flex-wrap: wrap;
}
.pager a, .pager span {
  min-width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: .84rem;
  color: var(--text-primary);
}
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager .is-current { background: var(--accent); border-color: var(--accent); color: #fff; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  background: var(--accent-tint);
  color: var(--accent);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 800;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  background: var(--graphite);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .3s var(--ease);
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); }

.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.list-check li { display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; }
.list-check i { color: var(--accent); margin-top: 5px; font-size: .82rem; flex: 0 0 auto; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  padding: 26px 0 0;
  border-top: 2px solid var(--line);
  transition: border-color .3s var(--ease);
}
.step:hover { border-top-color: var(--accent); }
.step__n {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.06rem; margin-bottom: .4em; }
.step p { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* ── 23. Адаптив ───────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .cats  { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .ftr__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 992px) {
  :root { --header-h: 72px; --gutter: 20px; }
  .nav, .hdr__cta { display: none; }
  .burger { display: grid; margin-left: auto; }
  .hdr__phone { margin-left: 0; }
  .hero__grid { grid-template-columns: 1fr; }
  .sheet__note { position: static; margin-bottom: 12px; }
  .split, .split--even { grid-template-columns: 1fr; }
  .sticky-col { position: static; }
  .cta { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .grid-plane::before { background-size: calc(100% / 3) 100%; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .cats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero__facts { grid-template-columns: 1fr; }
  .hero__fact { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
  .hero__facts { border-top: 1px solid var(--line); }
  .sheet { grid-template-columns: 1fr; }
  .sheet__cell--wide { grid-column: span 1; }
  .ftr__grid { grid-template-columns: 1fr; }
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 20px; }
  .cookie__actions .btn-t { flex: 1 1 auto; }
  .hdr__phone b { font-size: .92rem; }
  .hdr__phone span { display: none; }
  .slab-head { flex-direction: column; align-items: flex-start; }
  .revs, .posts, .works, .svc-grid { grid-template-columns: 1fr; }
  .spec { flex-direction: column; gap: 4px; }
  .spec dd { text-align: left; }
}

/* ── 24. Motion / a11y ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
}
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

body.is-locked { overflow: hidden; }
