/* =========================================================
   РПД — базовые стили (тёплая терракотовая премиальная тема)
   Название компании, телефоны и e-mail — плейсхолдеры,
   легко меняются глобально (см. подсказки в комментариях).
   ========================================================= */

:root {
  /* Цвета */
  --ink-900: #0D0B08;
  --ink-800: #1A1610;
  --ink-700: #2B2318;
  --terracotta-600: #E08E00;
  --terracotta-500: #F2A900;
  --terracotta-400: #FFB300;
  --sand-100:  #F7E9DE;
  --sand-50:   #FBF5EF;
  --white:    #FFFFFF;

  --text:     #241A14;
  --muted:    #7A6A5C;
  --border:   #ECE0D6;

  --success:  #16A36A;
  --danger:   #E23D3D;

  /* Акцент — двойной жёлтый: канареечный на кнопках, янтарный в тексте/иконках */
  --amber-600: #D4B106;
  --amber-500: #FFDD00;
  --amber-100: #FFF4B8;
  /* Тот же золотой, но затемнённый под мелкий текст на светлом фоне (иначе не проходит контраст) */
  --gold-text: #8A5E00;

  /* Тени */
  --shadow-sm: 0 2px 8px rgba(36, 26, 20, 0.08);
  --shadow-md: 0 12px 30px rgba(36, 26, 20, 0.12);
  --shadow-lg: 0 24px 60px rgba(36, 26, 20, 0.18);

  /* Скругления */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;

  /* Контейнер */
  --container: 1200px;

  /* Шрифт */
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', 'Segoe UI', system-ui, sans-serif;
}

/* ---------- Сброс ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Утилиты ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--sky { background: var(--sand-50); }
.section--navy {
  background: linear-gradient(135deg, var(--ink-800) 0%, var(--ink-900) 100%);
  color: var(--white);
}

/* Секция с фоновым фото (сочетается с .section--navy для белого текста/стеклянных карточек) */
.section--photo {
  position: relative;
  background:
    linear-gradient(180deg, rgba(33,23,18,.45) 0%, rgba(33,23,18,.82) 65%, rgba(33,23,18,.94) 100%),
    var(--photo-bg) center/cover no-repeat;
}
.section--photo > .container { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--terracotta-500);
  display: inline-block;
}
.section--navy .eyebrow { color: var(--terracotta-400); }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 5.6vw, 72px); }
h2 { font-size: clamp(30px, 4.2vw, 54px); }
h3 { font-size: 22px; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 14px; }
.section--navy .section-head p { color: #D3C5B6; }

.lead { font-size: 19px; color: var(--muted); }

/* SEO-текст внизу страницы, над подвалом */
.seo-text { color: var(--muted); font-size: 16px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 16px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
  color: var(--text);
  box-shadow: 0 10px 24px rgba(212,177,6,0.32);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(212,177,6,0.40); }
.btn--light {
  background: #fff;
  color: var(--ink-800);
  box-shadow: var(--shadow-sm);
}
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline {
  background: transparent;
  color: var(--ink-800);
  border: 2px solid var(--border);
}
.btn--outline:hover { border-color: var(--terracotta-500); color: var(--gold-text); }
.section--navy .btn--outline,
.hero .btn--outline,
.page-hero .btn--outline { color: #fff; border-color: rgba(255,255,255,.35); }
.section--navy .btn--outline:hover,
.hero .btn--outline:hover,
.page-hero .btn--outline:hover { border-color: #fff; color: #fff; }
.btn--block { width: 100%; }

/* =========================================================
   ШАПКА
   ========================================================= */
.topbar {
  background: var(--ink-800);
  color: #E2D6C8;
  font-size: 14px;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
}
.topbar__regions { display: flex; align-items: center; gap: 8px; opacity: .9; }
.topbar__regions svg { width: 15px; height: 15px; opacity: .8; }
.topbar__right { display: flex; align-items: center; gap: 22px; }
.topbar a { transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar__phone { font-weight: 700; color: #fff; font-size: 15px; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark { width: 42px; height: 42px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--ink-800); letter-spacing: -.03em; }
.logo__tag { font-size: 12px; color: var(--muted); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--sand-100); color: var(--gold-text); }
.nav a.active { color: var(--gold-text); }
/* Кнопка внутри меню нужна только в мобильной версии — на десктопе прячем дубль */
.nav > .btn { display: none; }

.header__actions { display: flex; align-items: center; gap: 14px; }

.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { width: 26px; height: 2.5px; background: var(--ink-800); border-radius: 2px; transition: .25s; }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =========================================================
   ГЕРОЙ
   ========================================================= */
.hero {
  position: relative;
  background:
    linear-gradient(115deg, rgba(33,23,18,.94) 0%, rgba(33,23,18,.88) 32%, rgba(44,31,24,.72) 55%, rgba(44,31,24,.55) 100%),
    url('../img/hero-pipeline.webp');
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}
/* Тонкая техническая сетка поверх фото — «чертёжный» премиальный акцент */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(224,150,102,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224,150,102,.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 90% at 70% 20%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 70% 20%, #000 30%, transparent 78%);
  pointer-events: none;
  z-index: 1;
}
.hero::after {
  content: "";
  position: absolute;
  right: -180px; top: -120px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(242,169,0,.40), transparent 62%);
  filter: blur(10px);
  pointer-events: none;
  animation: heroGlow 9s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  from { transform: translate(0,0) scale(1); opacity: .8; }
  to   { transform: translate(-40px,30px) scale(1.15); opacity: 1; }
}
.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 74px 0 84px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(217,139,98,.16);
  border: 1px solid rgba(217,139,98,.32);
  color: #E2D6C8;
  padding: 9px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 26px;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.25); }
.hero h1 { margin-bottom: 22px; }
.hero h1 .accent { color: var(--terracotta-400); }
.hero__sub { font-size: 20px; color: #D9CCBE; max-width: 560px; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__stats { display: flex; gap: 44px; flex-wrap: wrap; }
.hero__stat { position: relative; padding-top: 16px; }
.hero__stat::before { content: ""; position: absolute; top: 0; left: 0; width: 30px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--terracotta-400), var(--terracotta-600)); }
.hero__stat .num { font-family: var(--font-display); font-size: 42px; font-weight: 700; color: #fff; letter-spacing: -.02em; line-height: 1; }
.hero__stat .lbl { font-size: 14px; color: #C9B7A4; margin-top: 8px; }

/* Карточка-панель в герое */
.hero__panel {
  background: rgba(33,23,18,.6);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-lg);
  padding: 32px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}
.hero__panel h2 { color: #fff; font-size: 24px; margin-bottom: 8px; }
.hero__panel .muted { color: #D9CCBE; font-size: 15.5px; margin-bottom: 24px; }
.hero__panel-visual {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  min-height: 190px;
  padding: 18px;
  background: linear-gradient(160deg, var(--ink-700), var(--ink-900));
}
.hero__panel-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(217,139,98,.08) 0 10px, transparent 10px 20px);
}
.hero__panel-visual-label {
  position: relative;
  display: block;
  font-size: 13px;
  color: #D9C7B8;
  margin-bottom: 40px;
}
.hero__panel-stats {
  position: relative;
  display: flex;
  gap: 10px;
}
.hero__panel-stat {
  flex: 1;
  background: rgba(255,255,255,.1);
  border-radius: var(--r-sm);
  padding: 12px 10px;
  text-align: center;
}
.hero__panel-stat .num { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 700; color: #fff; }
.hero__panel-stat .lbl { display: block; font-size: 11px; color: #D9C7B8; margin-top: 3px; }
.hero__panel-stat--hot { background: rgba(212,148,31,.28); }
.hero__panel-stat--hot .num { color: var(--amber-500); }

/* Плашка «доверяют» под героем */
.trust {
  background: var(--ink-900);
  color: #D9C7B8;
  border-top: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}
.trust__inner { padding: 26px 0 24px; }
.trust__label {
  display: flex; align-items: center; gap: 10px;
  font-size: 14.5px; color: #C2AF9C; margin-bottom: 18px; letter-spacing: .01em;
}
.trust__label::before { content: ""; width: 22px; height: 2px; background: var(--terracotta-500); flex: none; }

/* Бегущая лента (как логотип-карусель на референсах) */
.marquee {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 40px;
  white-space: nowrap; will-change: transform;
  animation: marquee 26s linear infinite;
}
.marquee__track span { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: .06em; color: #D3C5B6; opacity: .6; }
.marquee__track .sep { color: var(--terracotta-500); opacity: .8; font-size: 14px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================
   ПРЕИМУЩЕСТВА / КАРТОЧКИ
   ========================================================= */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 30px;
  overflow: hidden;
  transition: transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s, border-color .25s;
}
.card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--terracotta-500), var(--terracotta-600));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #E2D6C8; }
.card:hover::after { transform: scaleX(1); }
.card:hover .card__icon { transform: scale(1.06) rotate(-3deg); }
.card__icon { transition: transform .3s cubic-bezier(.22,.61,.36,1); }
.card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ink-700), var(--ink-900));
  color: var(--amber-500);
  margin-bottom: 20px;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; }

/* Карточки-цифры для блока «Нам доверяют» */
.stat-card {
  position: relative;
  text-align: center; padding: 32px 16px 26px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
}
.stat-card::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 34px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--amber-500), var(--amber-600));
}
.stat-card__num { font-family: var(--font-display); font-size: 42px; font-weight: 700; color: var(--ink-800); letter-spacing: -0.02em; line-height: 1; }
.stat-card__lbl { font-size: 14.5px; color: var(--muted); margin-top: 10px; }

/* На тёмной секции — не белая коробка, а стеклянная панель (как hero__panel) */
.section--navy .stat-card {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.14);
}
.section--navy .stat-card__num { color: #fff; }
.section--navy .stat-card__lbl { color: #C9B7A4; }

/* Плашка-примечание для блока сертификатов (плейсхолдер) */
.cert-badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--gold-text); background: var(--sand-100);
  padding: 4px 10px; border-radius: 100px; margin-bottom: 14px;
}
.cert-note {
  color: var(--muted); font-size: 15px;
  max-width: 640px; margin: 0 0 40px; line-height: 1.6;
}

/* Карточки патентов партнёра */
.partner-note {
  background: var(--sand-100); border: 1px solid #E2D6C8; border-radius: var(--r-md);
  padding: 20px 24px; margin-bottom: 40px; font-size: 15.5px; color: var(--ink-800); line-height: 1.6;
}
.partner-note strong { color: var(--gold-text); }
.patents {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
}
.patent-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.patent-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.patent-card a { display: block; }
.patent-card__trigger {
  display: block; width: 100%; padding: 0; margin: 0; border: none; background: none; cursor: zoom-in;
}
.patent-card img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top;
  border-bottom: 1px solid var(--border);
}
.patent-card__body { padding: 14px 16px 18px; }
.patent-card__num { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--gold-text); margin-bottom: 4px; }
.patent-card__title { font-size: 13.5px; color: var(--text); line-height: 1.4; }

/* =========================================================
   УСЛУГИ (крупная сетка)
   ========================================================= */
.service {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 32px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(var(--terracotta-500), var(--terracotta-600));
  opacity: 0; transition: opacity .2s;
}
.service:hover::before { opacity: 1; }
.service__num { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--terracotta-400); margin-bottom: 14px; letter-spacing: .04em; }
.service__icon { color: var(--gold-text); margin-bottom: 18px; }
.service__icon svg { width: 34px; height: 34px; }
.service h3 { margin-bottom: 12px; }
.service p { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
.service ul { display: grid; gap: 8px; margin-bottom: 20px; }
.service li { display: flex; gap: 9px; align-items: flex-start; font-size: 15px; color: var(--text); }
.service li svg { width: 18px; height: 18px; color: var(--success); flex: none; margin-top: 3px; }
.service__more { font-weight: 700; color: var(--gold-text); display: inline-flex; align-items: center; gap: 6px; }
.service__more svg { width: 16px; height: 16px; transition: transform .2s; }
.service:hover .service__more svg { transform: translateX(4px); }

/* Карточка без ссылки (информационная категория) */
.service--info { padding-bottom: 28px; }
.service--info .service__icon svg { width: 30px; height: 30px; }

/* =========================================================
   БЛОК НАПРАВЛЕНИЯ (крупный заголовок услуги)
   ========================================================= */
.dir-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.dir-head .dir-num {
  font-size: 15px; font-weight: 800; letter-spacing: .08em;
  color: var(--gold-text); background: var(--sand-100);
  padding: 6px 13px; border-radius: 100px; flex: none;
}
.section--navy .dir-head .dir-num { color: var(--terracotta-400); background: rgba(217,139,98,.14); }
.sub-title { font-size: 22px; font-weight: 800; margin: 46px 0 22px; color: var(--ink-800); letter-spacing: -.01em; }
.section--navy .sub-title { color: #fff; }
.sub-title:first-child { margin-top: 0; }

/* Чипы (материалы, что арендовать) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--amber-100); color: var(--text);
  font-weight: 600; font-size: 15px;
  padding: 10px 18px; border-radius: 100px;
  border: 1px solid #F0D6A8; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .2s ease;
}
.chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.section--sky .chip, .section--navy .chip { background: var(--amber-100); }

/* Заметка о технологиях / условиях */
.tech-note {
  margin-top: 26px;
  background: var(--sand-50);
  border: 1px solid var(--border);
  border-left: 4px solid var(--amber-600);
  border-radius: var(--r-md);
  padding: 22px 26px;
  color: var(--muted);
  font-size: 16px;
}
.tech-note strong { color: var(--ink-800); font-weight: 700; }

/* Список с галочками (что получает клиент / условия) */
.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 16px; color: var(--text); }
.check-list li svg { width: 20px; height: 20px; color: var(--success); flex: none; margin-top: 3px; }
.section--navy .check-list li { color: #E5DACD; }

/* Панель-обёртка внутри направления (белая карточка со списком) */
.panel-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.panel-card h4 { font-size: 18px; margin-bottom: 18px; color: var(--ink-800); }
.panel-card .panel-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; letter-spacing: .04em;
  color: var(--gold-text); margin-bottom: 14px;
}

.dir-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* =========================================================
   ЭТАПЫ РАБОТЫ
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; text-align: left; }
.step__num {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--terracotta-500), var(--terracotta-600));
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 21px;
  box-shadow: 0 10px 22px rgba(224,142,0,.3);
  margin-bottom: 18px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }
.section--navy .step p { color: #CEBFAE; }

/* =========================================================
   ОБЪЕКТЫ / ПРОЕКТЫ — фото-галерея bento
   ========================================================= */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  gap: 16px;
}
.proj-tile {
  position: relative;
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s;
}
.proj-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.proj-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.proj-tile:hover img { transform: scale(1.06); }
.proj-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(33,23,18,0) 40%, rgba(33,23,18,.82) 100%);
  pointer-events: none;
}
.proj-tile__tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(33,23,18,.55);
  backdrop-filter: blur(4px);
  color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 11px; border-radius: 100px;
}
.proj-tile__cap { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; color: #fff; }
.proj-tile__cap h3 { font-size: 16px; margin-bottom: 3px; }
.proj-tile__cap p { font-size: 12.5px; color: #E2D6C8; }
.proj-tile--feature { grid-column: span 2; grid-row: span 2; }
.proj-tile--feature .proj-tile__cap h3 { font-size: 21px; }
.proj-tile--wide { grid-column: span 2; }

/* =========================================================
   СЕТКА ОБЪЕКТОВ (страница /proekty)
   ========================================================= */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.project {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.project__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.project__img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.project:hover .project__img img { transform: scale(1.06); }
.project__tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(33,23,18,.55);
  backdrop-filter: blur(4px);
  color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 11px; border-radius: 100px;
}
.project__body { padding: 22px 24px 26px; }
.project__body h3 { font-size: 18px; margin-bottom: 8px; }
.project__body p { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.project__meta { display: flex; gap: 10px; flex-wrap: wrap; }
.project__meta span {
  font-size: 12.5px; font-weight: 700; color: var(--gold-text);
  background: var(--sand-100); padding: 4px 10px; border-radius: 100px;
}

/* =========================================================
   ЛЕНТА ФОТО С ОБЪЕКТОВ (сразу под героем)
   ========================================================= */
.evidence { background: var(--ink-900); }
.evidence__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.evidence__item { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.evidence__item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.evidence__item:hover img { transform: scale(1.07); }
.evidence__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(33,23,18,0) 45%, rgba(33,23,18,.78) 100%);
  pointer-events: none;
}
.evidence__cap {
  position: absolute; left: 14px; bottom: 12px; right: 14px; z-index: 2;
  color: #fff; font-size: 13px; font-weight: 700;
}

/* =========================================================
   ЦИТАТА КЛИЕНТА (терракотовый акцент)
   ========================================================= */
.quote-panel {
  background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
  border-radius: var(--r-lg);
  padding: 48px 56px;
  color: #fff;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 30px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.quote-panel::after {
  content: ""; position: absolute; right: -100px; bottom: -140px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 60%);
}
.quote-panel__mark {
  font-family: var(--font-display); font-size: 64px; line-height: 1;
  opacity: .55; position: relative; z-index: 2;
}
.quote-panel blockquote {
  font-family: var(--font-display); font-size: 23px; line-height: 1.35;
  margin-bottom: 14px; max-width: 60ch; position: relative; z-index: 2; font-weight: 600;
}
.quote-panel cite { font-style: normal; font-size: 14.5px; opacity: .92; display: block; position: relative; z-index: 2; }
.quote-panel__note { font-size: 12.5px; opacity: .78; margin-top: 16px; position: relative; z-index: 2; max-width: 60ch; }

/* =========================================================
   ИЛЛЮСТРАЦИИ И ШАГИ ВНУТРИ СТАТЬИ
   ========================================================= */
.article-figure { margin: 34px 0; }
.article-figure img {
  width: 100%; border-radius: var(--r-md); box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.article-figure figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }

.proc-list { counter-reset: proc; display: grid; gap: 18px; margin: 20px 0 28px; }
.proc-list li { position: relative; padding-left: 46px; font-size: 16px; }
.proc-list li::before {
  counter-increment: proc; content: counter(proc);
  position: absolute; left: 0; top: -1px;
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--terracotta-500), var(--terracotta-600));
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(224,142,0,.28);
}
.proc-list strong { color: var(--ink-800); }

/* =========================================================
   ОБЗОР НАПРАВЛЕНИЙ (страница «Услуги») — фото на весь фон карточки
   ========================================================= */
.dir-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dir-card {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 300px;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s;
}
.dir-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.dir-card__bg { position: absolute; inset: 0; z-index: 0; }
.dir-card__bg img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.dir-card:hover .dir-card__bg img { transform: scale(1.06); }
.dir-card__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(33,23,18,.12) 0%, rgba(33,23,18,.94) 82%);
}
.dir-card__body { position: relative; z-index: 1; padding: 24px 24px 26px; color: #fff; }
.dir-card__num { font-family: var(--font-display); font-size: 13.5px; font-weight: 700; color: var(--terracotta-400); margin-bottom: 10px; letter-spacing: .04em; }
.dir-card h3 { font-size: 19px; margin-bottom: 9px; color: #fff; }
.dir-card p { color: #D9CCBE; font-size: 14.5px; margin-bottom: 14px; line-height: 1.5; }
.dir-card__more { font-weight: 700; color: #fff; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
.dir-card__more svg { width: 15px; height: 15px; transition: transform .2s; }
.dir-card:hover .dir-card__more svg { transform: translateX(4px); }

/* Терракотовый вариант карточек (для «Сферы применения» — отличие от синих «Преимуществ») */
.cards--terra .card__icon { background: linear-gradient(135deg, var(--ink-700), var(--ink-900)); color: var(--amber-500); }
.cards--terra .card::after { background: linear-gradient(90deg, var(--amber-500), var(--amber-600)); }
.cards--terra .card:hover { border-color: #F0D6A8; }

/* =========================================================
   ПРЕИМУЩЕСТВО-БЛОК (сплит)
   ========================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__visual {
  border-radius: var(--r-lg);
  min-height: 420px;
  background: linear-gradient(135deg, var(--ink-800), var(--ink-900));
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split__list { display: grid; gap: 22px; margin-top: 26px; }
.split__item { display: flex; gap: 16px; }
.split__item .ic {
  width: 46px; height: 46px; flex: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ink-700), var(--ink-900)); color: var(--amber-500);
  display: grid; place-items: center;
}
.split__item .ic svg { width: 24px; height: 24px; }
.split__item h4 { font-size: 17px; margin-bottom: 4px; }
.split__item p { color: var(--muted); font-size: 15.5px; }

/* =========================================================
   CTA-ПОЛОСА
   ========================================================= */
.cta {
  background: linear-gradient(135deg, var(--terracotta-600), var(--ink-800));
  border-radius: var(--r-lg);
  padding: 56px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta::after {
  content:""; position:absolute; right:-100px; bottom:-140px;
  width:420px; height:420px;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 60%);
}
.cta h2 { position: relative; z-index: 2; }
.cta p { position: relative; z-index: 2; color: #E2D6C8; margin-top: 12px; font-size: 18px; }
.cta__actions { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 14px; }
.cta__phone { font-family: var(--font-display); font-size: 27px; font-weight: 700; letter-spacing: -.01em; }
.cta__phone span { display:block; font-size: 14px; font-weight: 600; color:#DED2C4; }

/* Тултип «Номер скопирован» при клике на телефон (десктоп) */
a[href^="tel:"] { position: relative; }
.phone-copied-toast {
  position: absolute; left: 50%; bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  background: var(--ink-800); color: #fff;
  font-family: var(--font); font-size: 12.5px; font-weight: 700;
  padding: 6px 12px; border-radius: 100px; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  box-shadow: var(--shadow-md); z-index: 50;
}
.phone-copied-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.phone-copied-toast::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--ink-800);
}

/* =========================================================
   ФОРМА
   ========================================================= */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 16px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--terracotta-500);
  box-shadow: 0 0 0 4px rgba(242,169,0,.14);
}
.field textarea { resize: vertical; min-height: 110px; }
.form__note { font-size: 13px; color: var(--muted); }
.form__note a { color: var(--gold-text); text-decoration: underline; }
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.5;
}
.consent input[type="checkbox"] {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--terracotta-600);
  cursor: pointer;
}
.consent a { color: var(--gold-text); text-decoration: underline; }
.form-result {
  display: none;
  text-align: center;
  padding: 10px 4px 4px;
}
.form.form--result > *:not(.form-result) { display: none; }
.form.form--result .form-result { display: block; }
.form-result__icon {
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.form-result__icon svg { width: 26px; height: 26px; stroke-width: 2.5; }
.form-result--success .form-result__icon { background: rgba(22,163,106,.12); color: var(--success); }
.form-result--error .form-result__icon { background: rgba(226,61,61,.12); color: var(--danger); }
.form-result--toofast .form-result__icon { background: var(--amber-100); color: var(--amber-600); }
.form-result h4 { font-family: var(--font-display); font-size: 19px; margin-bottom: 6px; }
.form-result p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.form-result__actions { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.form-result__retry {
  font-size: 13px; font-weight: 700; color: var(--gold-text);
  background: none; border: none; font-family: inherit; cursor: pointer; padding: 4px;
}
.form-result__retry:hover { text-decoration: underline; }

/* Карточка-обёртка формы */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 34px;
  box-shadow: var(--shadow-md);
}
.form-card h3 { margin-bottom: 6px; }
.form-card > p { color: var(--muted); margin-bottom: 22px; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }
.faq__item { border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.faq__q {
  width: 100%; text-align: left;
  padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-weight: 700; font-size: 17px; color: var(--ink-800);
}
.faq__q .plus { width: 24px; height: 24px; flex: none; position: relative; transition: transform .25s; }
.faq__q .plus::before, .faq__q .plus::after {
  content:""; position:absolute; background: var(--gold-text); border-radius: 2px;
}
.faq__q .plus::before { left: 5px; right: 5px; top: 11px; height: 2px; }
.faq__q .plus::after  { top: 5px; bottom: 5px; left: 11px; width: 2px; transition: transform .25s; }
.faq__item.open .plus::after { transform: scaleY(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a p { padding: 0 24px 22px; color: var(--muted); }

/* =========================================================
   КОНТАКТЫ
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-block { display: grid; gap: 20px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .ic {
  width: 48px; height: 48px; flex: none; border-radius: 12px;
  background: linear-gradient(135deg, var(--ink-700), var(--ink-900)); color: var(--amber-500);
  display: grid; place-items: center;
}
.contact-item .ic svg { width: 22px; height: 22px; }
.contact-item .lbl { font-size: 14px; color: var(--muted); }
.contact-item .val { font-weight: 700; font-size: 18px; color: var(--ink-800); }
.contact-item .val a:hover { color: var(--gold-text); }
.map-placeholder {
  border-radius: var(--r-md); overflow: hidden; min-height: 300px;
  border: 1px solid var(--border);
  background:
    linear-gradient(0deg, rgba(242,169,0,.06), rgba(242,169,0,.06)),
    repeating-linear-gradient(0deg, #F7F1E8, #F7F1E8 24px, #EFE3D3 24px, #EFE3D3 25px),
    repeating-linear-gradient(90deg, #F7F1E8, #F7F1E8 24px, #EFE3D3 24px, #EFE3D3 25px);
  display: grid; place-items: center; color: var(--muted);
}

/* =========================================================
   ВНУТРЕННИЙ ГЕРОЙ (шапка страниц)
   ========================================================= */
.page-hero {
  background: linear-gradient(135deg, var(--ink-800), var(--ink-900));
  color: #fff;
  padding: 56px 0 60px;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content:""; position:absolute; right:-140px; top:-120px;
  width:460px; height:460px;
  background: radial-gradient(circle, rgba(242,169,0,.4), transparent 62%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { margin-bottom: 14px; }
.page-hero p { color: #D9CCBE; font-size: 19px; max-width: 680px; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: #C2AF9C; margin-bottom: 22px; }
.crumbs a:hover { color: #fff; }

/* =========================================================
   ПОДВАЛ
   ========================================================= */
.footer { background: var(--ink-900); color: #D9C7B8; padding: 66px 0 0; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer .logo__name { color: #fff; }
.footer .logo__tag { color: #B0987F; }
.footer__about { margin-top: 18px; font-size: 15px; max-width: 320px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer__links { display: grid; gap: 11px; font-size: 15px; }
.footer__links a:hover { color: #fff; }
.footer__contact { display: grid; gap: 14px; font-size: 15px; }
.footer__contact .big { color:#fff; font-size: 20px; font-weight: 800; }
.footer__legal { padding-top: 6px; font-size: 12.5px; color: #B0987F; line-height: 1.7; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 13.5px; flex-wrap: wrap;
}
.footer__bottom a:hover { color: #fff; }

/* =========================================================
   МОДАЛКА (заказать звонок)
   ========================================================= */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(33,23,18,.55);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: var(--r-lg);
  width: 100%; max-width: 440px;
  padding: 34px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: pop .25s ease;
}
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; color: var(--muted);
  background: var(--sand-50);
}
.modal__close:hover { background: var(--sand-100); color: var(--ink-800); }
.modal h3 { margin-bottom: 6px; }
.modal > p { color: var(--muted); margin-bottom: 22px; }
.modal__service-tag {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--sand-100);
  color: var(--gold-text);
  font-weight: 700;
  font-size: 13.5px;
  padding: 8px 14px;
  border-radius: 100px;
  margin: -8px 0 18px;
}

/* =========================================================
   ЛАЙТБОКС (просмотр патентов в полном размере)
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(20,14,10,.88);
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox__inner {
  position: relative;
  max-width: min(720px, 92vw);
  max-height: 92vh;
  display: flex; flex-direction: column; align-items: center;
  animation: pop .2s ease;
}
.lightbox__img {
  max-width: 100%; max-height: 74vh;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.lightbox__caption {
  margin-top: 16px; text-align: center; color: #fff; max-width: 640px;
}
.lightbox__caption .num { font-family: var(--font-display); font-weight: 700; color: var(--terracotta-400); font-size: 14px; margin-bottom: 4px; }
.lightbox__caption .title { font-size: 15px; color: #E5DACD; }
.lightbox__close {
  position: absolute; top: -14px; right: -14px;
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; color: var(--ink-800);
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
}
.lightbox__close:hover { background: var(--sand-100); }
.lightbox__nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff;
  display: grid; place-items: center;
  transition: background .2s;
}
.lightbox__nav:hover { background: rgba(255,255,255,.24); }
.lightbox__nav svg { width: 24px; height: 24px; }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }
.lightbox__counter {
  position: absolute; top: -14px; left: -14px;
  background: rgba(255,255,255,.14); color: #fff;
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  padding: 6px 12px; border-radius: 100px;
}
@media (max-width: 640px) {
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
  .lightbox__close { top: -10px; right: 4px; }
  .lightbox__counter { top: -10px; left: 4px; }
}

/* Появление секций (только если работает JS) */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.js [data-reveal].in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee__track, .hero::after { animation: none !important; }
}

/* Полоса прогресса прокрутки (тонкий премиальный акцент сверху) */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--terracotta-400), var(--terracotta-600));
  z-index: 200; transition: width .1s linear;
  box-shadow: 0 0 12px rgba(242,169,0,.6);
}

/* Кнопка «наверх» */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--terracotta-600); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 26px rgba(224,142,0,.4);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 22px; height: 22px; }

/* =========================================================
   АДАПТИВ
   ========================================================= */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__panel { max-width: 520px; }
  .cards, .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .cta { grid-template-columns: 1fr; padding: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-tile--feature { grid-column: span 2; grid-row: span 1; }
  .proj-tile--wide { grid-column: span 2; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .quote-panel { grid-template-columns: 1fr; padding: 36px; text-align: left; }
  .quote-panel__mark { display: none; }
  .dir-overview { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .evidence__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .topbar { display: none; }
  .nav, .header__actions .btn { display: none; }
  .burger { display: flex; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(320px, 84vw);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 90px 20px 30px;
    box-shadow: -20px 0 60px rgba(44,31,24,.2);
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 120;
  }
  .nav.open { display: flex; transform: none; }
  .nav a { font-size: 18px; padding: 14px 16px; }
  .nav .btn { display: inline-flex; margin-top: 12px; }
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(33,23,18,.4);
    z-index: 110; display: none;
  }
  .nav-backdrop.open { display: block; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .container { padding: 0 18px; }
  .cards, .cards--4, .cards--2, .steps, .contact-grid, .form__row, .footer__grid, .projects {
    grid-template-columns: 1fr;
  }
  .hero__stats { gap: 26px; }
  .hero__stat .num { font-size: 28px; }
  .cta { padding: 30px 22px; }
  .form-card { padding: 24px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .evidence__grid { grid-template-columns: 1fr 1fr; }
  .proj-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .proj-tile--feature, .proj-tile--wide { grid-column: span 1; grid-row: span 1; }
  .quote-panel { padding: 28px 22px; }
  .quote-panel blockquote { font-size: 19px; }
  .dir-overview { grid-template-columns: 1fr; }
}

/* =========================================================
   СТРАНИЦА 404
   ========================================================= */
.error-page { text-align: center; padding: 120px 0; }
.error-page .container { max-width: 640px; }
.error-page__code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 96px;
  line-height: 1;
  background: linear-gradient(90deg, var(--terracotta-400), var(--terracotta-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.error-page h1 { font-size: 30px; margin-bottom: 12px; }
.error-page p { color: #D3C5B6; font-size: 16px; }
.error-page__actions { display: flex; gap: 14px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.error-page__phone {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 40px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.error-page__phone svg { width: 18px; height: 18px; color: var(--terracotta-400); flex: none; }
.error-page__phone a { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: #fff; text-decoration: none; }
.error-page__phone-label { display: block; font-size: 12.5px; color: #C9B7A4; text-align: left; margin-top: 2px; }

@media (max-width: 640px) {
  .error-page { padding: 80px 0; }
  .error-page__code { font-size: 60px; }
  .error-page__actions { flex-direction: column; align-items: stretch; }
  .error-page__actions .btn { width: 100%; }
}

.tg-link { display: flex; align-items: center; color: #29A9EA; transition: transform .2s, color .2s; }
.tg-link:hover { color: #1c8fd1; transform: translateY(-2px); }
.tg-link svg { width: 28px; height: 28px; }
