/* ============================================================
   НК-Строй (nk-stroy13.ru) - стили
   Палитра снята с логотипа компании: красный знак «НК» #c02844,
   синяя надпись «СТРОЙ» и кран #0466b3, серые корпуса зданий #888888.
   Совпадает с логикой группы (белый / синий / красный).

   --blue/--blue-dark/--blue-deep - структурный цвет: шапка, тэги, ссылки, темные секции;
   --red/--red-dark               - акцент: кнопки действия, подчеркивания, цифры.

   Дизайн-система общая с соседями по группе (nk-grup.ru, nkbeton.ru, szki13.ru):
   Manrope, BEM, CSS-переменные, те же компоненты - шапка, герой, метрики, бенто,
   карточки, cta-полоса, подвал, баннер cookie, кнопка «наверх».
   ============================================================ */

:root {
  --white:      #ffffff;
  --blue:       #0466b3;   /* синий с логотипа: структурный цвет */
  --blue-dark:  #03528f;
  --blue-deep:  #08304f;   /* глубокий синий: подвал и темные полосы */
  --red:        #c02844;   /* красный знака «НК»: акценты и кнопки */
  --red-dark:   #9d1f36;
  --steel:      #888888;   /* серый корпусов зданий с логотипа */
  --ink:        #14181f;
  --ink-soft:   #3c4350;
  --gray:       #656c78;   /* чуть темнее обычного #6b7280: на фоне --bg-alt тот давал контраст 4.47 при норме 4.5 */
  --gray-line:  #e3e7ec;
  --bg:         #ffffff;
  --bg-alt:     #f4f6f9;
  --bg-deep:    #08304f;
  --surface:    #ffffff;   /* фон карточек и панелей (в темной теме темнеет) */
  --blue-txt:   var(--blue); /* структурный текст на поверхности (в темной теме светлеет) */
  --red-txt:    var(--red);  /* красный текст на поверхности (в темной теме светлеет) */
  --header-bg:  rgba(255, 255, 255, .97);
  /* Рисунки-заглушки вместо фотографий: корпуса, окна и земля.
     Мотив взят с логотипа - синий кран и серые здания. */
  --illus-bld:  #c6d2e0;
  --illus-bld2: #aebdcf;
  --illus-win:  #ffffff;
  --illus-line: #9aacc0;

  --radius:     14px;
  --radius-lg:  22px;
  --shadow-sm:  0 2px 8px rgba(8, 48, 79, .06);
  --shadow-md:  0 14px 40px rgba(8, 48, 79, .12);
  --maxw:       1180px;
  --header-h:   72px;
  --cookie-h:   0px;

  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
          'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth; scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  width: 100%;
  overflow-x: hidden;   /* фолбэк для старых браузеров */
  overflow-x: clip;     /* обрезает в т.ч. fixed-элементы, не ломая sticky */
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  width: 100%;
  min-height: 100vh; min-height: 100dvh;
  overflow-x: hidden;
  overflow-x: clip;
  overflow-wrap: break-word;   /* длинные адреса объектов не распирают верстку */
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Доступность: видимый фокус для клавиатуры */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible, .nav__link:focus-visible { outline-offset: 3px; }

/* Скрыто визуально, доступно скринридерам и поисковику */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Контейнер и секции ---------- */
/* padding через max(): безопасные зоны экранов с вырезом */
.container {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}

.section { padding: 92px 0; }
.section--alt { background: var(--bg-alt); }

.section__head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section__tag {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-txt);
  padding: 6px 14px; border-radius: 999px;
  background: rgba(4, 102, 179, .09);
  margin-bottom: 18px;
}
.section__title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.section__lead { margin-top: 16px; color: var(--gray); font-size: 18px; }
.section__cta { margin-top: 42px; text-align: center; }

.text-gradient {
  background: linear-gradient(100deg, var(--blue) 0%, var(--red) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 16px;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap; text-align: center;
}
.btn--lg { padding: 16px 30px; font-size: 17px; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(192, 40, 68, .26); }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--blue-txt); border-color: rgba(4, 102, 179, .28); }
.btn--ghost:hover { background: rgba(4, 102, 179, .07); border-color: var(--blue); }
.btn--white { background: #fff; color: var(--blue-deep); }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .18); }

/* ============================================================
   Шапка
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: var(--header-bg);
  /* ВАЖНО: без backdrop-filter, filter и transform - иначе шапка становится
     containing block для вложенного fixed-меню, и панель уезжает к верху
     страницы при прокрутке вместо позиционирования по экрану. */
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.header.is-scrolled { border-bottom-color: var(--gray-line); box-shadow: var(--shadow-sm); }
.header__inner {
  height: 100%; display: grid; align-items: center; gap: 20px;
  grid-template-columns: auto 1fr auto;
}

/* Логотип. Фон белый: логотип цветной, на темной теме подложка обязательна */
.logo { display: inline-flex; align-items: center; }
.logo__img { height: 40px; width: auto; display: block; }
.footer__logo img { height: 46px; width: auto; display: block; background: #fff; border-radius: 8px; padding: 6px 10px; }

/* Навигация */
.nav { display: flex; align-items: center; justify-content: center; gap: 28px; }
.header__actions { display: flex; align-items: center; gap: 14px; justify-self: end; }
.nav__cta--in { display: none; }
.nav__list { display: flex; align-items: center; gap: 26px; }
.nav__link {
  position: relative; font-weight: 600; font-size: 16px; color: var(--ink-soft);
  padding: 4px 0; transition: color .2s ease;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--red); transition: width .25s ease;
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { width: 100%; }
.nav__link.is-active { color: var(--blue-txt); }
.nav__link.is-active::after { width: 100%; background: var(--blue); }
.nav__cta { font-size: 15px; padding: 10px 20px; }

/* Бургер */
.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 10px;
}
.burger span { display: block; height: 2.5px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .3s ease, opacity .2s ease; }
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(8, 48, 79, .45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .25s ease;
}
.nav-overlay.is-visible { opacity: 1; }

@media (max-width: 980px) {
  .nav {
    position: fixed; top: var(--header-h); right: 0; z-index: 95;
    width: min(320px, 86vw); height: calc(100dvh - var(--header-h));
    flex-direction: column; justify-content: flex-start; align-items: stretch;
    gap: 6px; padding: 26px 24px calc(26px + env(safe-area-inset-bottom));
    background: var(--surface); border-left: 1px solid var(--gray-line);
    box-shadow: var(--shadow-md);
    transform: translateX(102%); transition: transform .3s ease;
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { display: block; padding: 13px 4px; font-size: 17px; border-bottom: 1px solid var(--gray-line); }
  .nav__link::after { display: none; }
  .nav__cta--in { display: inline-flex; margin-top: 20px; }
  .nav__cta--out { display: none; }
  .burger { display: flex; }
}

/* ============================================================
   Герой
   ============================================================ */
.hero { position: relative; overflow: hidden; padding: 88px 0 76px; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(4, 102, 179, .13), transparent 60%),
    radial-gradient(720px 480px at 5% 115%, rgba(192, 40, 68, .08), transparent 60%),
    var(--bg);
}
/* строительная сетка на фоне: намек на чертеж, гаснет к краям */
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--gray-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--gray-line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .38;
  -webkit-mask-image: radial-gradient(62% 62% at 50% 38%, #000, transparent 82%);
          mask-image: radial-gradient(62% 62% at 50% 38%, #000, transparent 82%);
}
.hero__shape { position: absolute; border-radius: 40px; opacity: .11; }
.hero__shape--blue { width: 560px; height: 230px; top: 26px; right: -160px; background: var(--blue); transform: rotate(-16deg); }
.hero__shape--red  { width: 440px; height: 200px; bottom: -10px; left: -150px; background: var(--red);  transform: rotate(-16deg); }
.hero__stripes {
  position: absolute; top: -60px; right: -40px; width: 320px; height: 320px;
  background: repeating-linear-gradient(-45deg,
    var(--blue) 0 10px, transparent 10px 26px,
    var(--red) 26px 36px, transparent 36px 64px);
  opacity: .13;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
          mask-image: radial-gradient(closest-side, #000, transparent);
}
.hero__inner { position: relative; text-align: center; max-width: 900px; margin: 0 auto; }
.hero__eyebrow {
  display: inline-block; font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red-txt); margin-bottom: 22px;
  padding-bottom: 4px; border-bottom: 2px solid rgba(192, 40, 68, .25);
}
.hero__title { font-size: clamp(32px, 5.8vw, 62px); font-weight: 800; line-height: 1.07; letter-spacing: -.03em; }
.hero__subtitle { margin: 26px auto 0; max-width: 680px; font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-soft); }
.hero__actions { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Чипы доверия под первым экраном */
.chips { margin-top: 44px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--gray-line); box-shadow: var(--shadow-sm);
  font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
}
.chip svg { width: 17px; height: 17px; color: var(--blue-txt); flex: 0 0 auto; }

/* ============================================================
   Метрики (цифры компании)
   ============================================================ */
.metrics { background: var(--blue-deep); color: #fff; padding: 54px 0; }
.metrics__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.metric__val { display: block; font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.metric__label { display: block; margin-top: 8px; color: rgba(255, 255, 255, .74); font-size: 15px; }
.metrics__note { margin-top: 26px; text-align: center; font-size: 13.5px; color: rgba(255, 255, 255, .5); }

/* ============================================================
   Бенто: что делаем
   ============================================================ */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.bento__tile {
  background: var(--surface); border: 1px solid var(--gray-line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.bento__tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(4, 102, 179, .22); }
.bento__tile h3 { margin: 14px 0 8px; font-size: 19px; font-weight: 700; }
.bento__tile p { color: var(--gray); font-size: 15px; }
.bento__tile--lead {
  grid-column: span 2; grid-row: span 2;
  background: linear-gradient(150deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff; border-color: transparent;
  display: flex; flex-direction: column; justify-content: center;
}
.bento__tile--lead:hover { border-color: transparent; }
.bento__tile--lead p { color: rgba(255, 255, 255, .84); font-size: 16.5px; }
.bento__kicker { font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.bento__lead-title { margin: 14px 0 14px; font-size: clamp(23px, 2.8vw, 31px); font-weight: 800; line-height: 1.18; letter-spacing: -.02em; }
.bento__cta { margin-top: 20px; font-weight: 700; color: #fff; display: inline-flex; align-items: center; gap: 8px; transition: gap .2s ease; width: fit-content; }
.bento__cta:hover { gap: 14px; }
.bento__icon { display: block; width: 34px; height: 34px; color: var(--blue-txt); }
.bento__icon svg { width: 100%; height: 100%; }

/* ============================================================
   Объекты: карточки портфолио с фотографией
   ============================================================ */
.objects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.object {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--gray-line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.object:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(4, 102, 179, .22); }
.object__photo { position: relative; aspect-ratio: 4 / 3; background: var(--bg-alt); overflow: hidden; }
.object__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.object:hover .object__photo img { transform: scale(1.04); }
/* Заглушка вместо фотографии: фотографии есть не у всех объектов */
.object__photo--empty {
  display: block;
  background: linear-gradient(165deg, #f2f6fa 0%, #dde5ee 100%);
  color: #9aa7b6;
}
.object__role {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 13px; border-radius: 999px; color: #fff; background: var(--blue);
  box-shadow: 0 4px 14px rgba(8, 48, 79, .28);
}
.object__role--smr { background: var(--steel); }
.object__role--land { background: #2e8b57; }
.object__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.object__name { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.object__desc { margin-top: 10px; color: var(--ink-soft); font-size: 15.5px; flex: 1; }
.object__rows { margin-top: 18px; display: grid; gap: 8px; border-top: 1px solid var(--gray-line); padding-top: 16px; }
.object__row { display: flex; justify-content: space-between; gap: 14px; font-size: 14.5px; }
.object__lbl { color: var(--gray); }
.object__val { font-weight: 700; color: var(--ink); text-align: right; }
.object__award {
  margin-top: 16px; display: inline-flex; align-items: flex-start; gap: 9px;
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  background: rgba(192, 40, 68, .07); border: 1px solid rgba(192, 40, 68, .18);
  border-radius: var(--radius); padding: 10px 13px;
}
.object__award svg { width: 17px; height: 17px; color: var(--red-txt); flex: 0 0 auto; margin-top: 2px; }

/* ============================================================
   Рисунок-заглушка вместо фотографии объекта
   Ставится там, где снимка с площадки еще нет. Не картинка, а встроенный
   SVG: не грузится отдельным запросом, не мылится на retina и сам
   перекрашивается в темной теме.
   ============================================================ */
.illus { display: block; width: 100%; height: 100%; }
.illus__sky { fill: none; }
.illus__grid { stroke: var(--illus-line); stroke-width: 1; opacity: .28; }
.illus__bld { fill: var(--illus-bld); }
.illus__bld2 { fill: var(--illus-bld2); }
.illus__win { fill: var(--illus-win); opacity: .78; }
.illus__crane { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.illus__crane--thin { stroke-width: 2; }
.illus__accent { fill: var(--red); }
.illus__ground { stroke: var(--illus-line); stroke-width: 2.5; stroke-linecap: round; }
.illus__green { fill: #6fae7f; }
.illus__water { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; opacity: .75; }

/* ============================================================
   Заказчики: с кем работаем
   ============================================================ */
.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.client {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); border: 1px solid var(--gray-line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, border-color .2s ease;
}
.client:hover { transform: translateY(-3px); border-color: rgba(4, 102, 179, .22); }
.client__name { font-weight: 700; font-size: 16px; }
.client__note { font-size: 14px; color: var(--gray); }

/* ============================================================
   Полоса «федеральный уровень»
   ============================================================ */
.band {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.band::after {
  content: ''; position: absolute; right: -80px; top: -60px; width: 340px; height: 340px;
  background: repeating-linear-gradient(-45deg, #fff 0 8px, transparent 8px 26px);
  opacity: .07;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
          mask-image: radial-gradient(closest-side, #000, transparent);
}
.band__inner {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 22px 40px; padding: 46px 0;
}
.band__text { max-width: 64ch; }
.band__tag { font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.band__text h2 { margin-top: 10px; font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.band__text p { margin-top: 10px; color: rgba(255, 255, 255, .84); font-size: 16.5px; }

/* ============================================================
   Надежность: карточки-доводы
   ============================================================ */
.proofs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.proof {
  background: var(--surface); border: 1px solid var(--gray-line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.proof::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(var(--blue), var(--red));
  transform: scaleY(0); transform-origin: top; transition: transform .25s ease;
}
.proof:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.proof:hover::before { transform: scaleY(1); }
/* display:block обязателен: .proof__icon - это <span>, у строчного элемента
   ширина и высота игнорируются, и вложенный svg с width:100% раздувается
   на всю карточку, выдавливая заголовок и текст за ее пределы. */
.proof__icon { display: block; width: 38px; height: 38px; color: var(--blue-txt); }
.proof__icon svg { width: 100%; height: 100%; }
.proof h3 { margin: 16px 0 10px; font-size: 19px; font-weight: 700; }
.proof p { color: var(--ink-soft); font-size: 15.5px; }

/* ============================================================
   Руководство
   ============================================================ */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.person {
  display: flex; align-items: center; gap: 18px;
  background: var(--surface); border: 1px solid var(--gray-line); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(4, 102, 179, .22); }
/* Фотографий руководителей у нас нет - вместо них инициалы в фирменном круге */
.person__avatar {
  flex: 0 0 auto; width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff; font-weight: 800; font-size: 19px; letter-spacing: .02em;
}
.person__name { font-weight: 700; font-size: 17px; line-height: 1.3; }
.person__role { margin-top: 5px; font-size: 14.5px; color: var(--gray); }

/* ============================================================
   Вакансии: тизер найма
   ============================================================ */
.jobs { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.jobs__lead p { font-size: 18px; color: var(--ink-soft); }
.jobs__lead p + p { margin-top: 16px; }
.jobs__actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.jobs__list { display: grid; gap: 12px; }
.jobs__list li {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--surface); border: 1px solid var(--gray-line); border-radius: var(--radius);
  padding: 16px 18px; font-size: 15.5px; color: var(--ink-soft); box-shadow: var(--shadow-sm);
}
.jobs__list svg { width: 19px; height: 19px; color: var(--blue-txt); flex: 0 0 auto; margin-top: 2px; }

/* ============================================================
   Блок связи (лид-магнит)
   ============================================================ */
.lead {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px 44px;
  background: linear-gradient(150deg, var(--blue-deep) 0%, #051f34 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 44px clamp(24px, 4vw, 52px);
}
.lead__body { max-width: 62ch; }
.lead__tag { font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.lead h2 { margin-top: 12px; font-size: clamp(23px, 3vw, 32px); font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.lead p { margin-top: 12px; color: rgba(255, 255, 255, .84); font-size: 16.5px; }
.lead__points { margin-top: 20px; display: grid; gap: 10px; }
.lead__points li { display: flex; align-items: flex-start; gap: 10px; color: rgba(255, 255, 255, .9); font-size: 15.5px; }
.lead__points svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 3px; }
.lead__actions { display: flex; flex-direction: column; gap: 14px; align-items: stretch; min-width: 260px; }
.lead__phone {
  display: inline-flex; align-items: center; gap: 14px; color: #fff;
  font-size: clamp(19px, 2.2vw, 24px); font-weight: 800; letter-spacing: -.01em; white-space: nowrap;
}
.lead__phone svg { width: 28px; height: 28px; flex: 0 0 auto; }
.lead__phone span { display: flex; flex-direction: column; }
.lead__phone small { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .66); letter-spacing: 0; }

/* Заглушка вместо неизвестного контакта. Видна сразу и в верстке, и на странице -
   чтобы такой сайт нельзя было случайно выложить на бой. */
.todo {
  background: repeating-linear-gradient(-45deg, rgba(192,40,68,.22) 0 8px, rgba(192,40,68,.06) 8px 16px);
  border: 1px dashed var(--red); border-radius: 6px; padding: 0 8px;
  font-style: normal; color: inherit;
}

/* ============================================================
   Тизеры разделов: с главной в разделы сайта
   ============================================================ */
.teasers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.teaser {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--gray-line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.teaser:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(4, 102, 179, .22); }
.teaser__icon { display: block; width: 34px; height: 34px; color: var(--blue-txt); }
.teaser__icon svg { width: 100%; height: 100%; }
.teaser h3 { margin: 16px 0 8px; font-size: 20px; font-weight: 700; }
.teaser p { color: var(--gray); font-size: 15.5px; flex: 1; }
.teaser__more {
  margin-top: 18px; font-weight: 700; font-size: 15px; color: var(--red-txt);
  display: inline-flex; align-items: center; gap: 7px; transition: gap .2s ease;
}
.teaser:hover .teaser__more { gap: 13px; }

/* ============================================================
   Услуга: развернутый блок с перечнем работ
   ============================================================ */
.service {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
  padding: 36px 0; border-top: 1px solid var(--gray-line);
}
.service:first-of-type { border-top: none; padding-top: 0; }
.service__head { position: sticky; top: calc(var(--header-h) + 24px); }
.service__badge {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: var(--blue); padding: 7px 13px; border-radius: 999px;
}
.service__badge--smr { background: var(--steel); }
.service__badge--land { background: #2e8b57; }
.service__title { margin-top: 16px; font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.service__lead { margin-top: 12px; color: var(--ink-soft); font-size: 16.5px; }
.service__list { display: grid; gap: 12px; }
.service__list li {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--surface); border: 1px solid var(--gray-line); border-radius: var(--radius);
  padding: 16px 18px; font-size: 15.5px; color: var(--ink-soft); box-shadow: var(--shadow-sm);
}
.service__list svg { width: 18px; height: 18px; color: var(--blue-txt); flex: 0 0 auto; margin-top: 2px; }
.service__list b { color: var(--ink); font-weight: 700; }

/* ============================================================
   Этапы работы
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative; counter-increment: step;
  background: var(--surface); border: 1px solid var(--gray-line); border-radius: var(--radius-lg);
  padding: 30px 26px 26px; box-shadow: var(--shadow-sm);
}
.step::before {
  content: counter(step); position: absolute; top: -16px; left: 26px;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff; font-weight: 800; font-size: 16px;
}
.step h3 { margin-bottom: 8px; font-size: 18px; font-weight: 700; }
.step p { color: var(--gray); font-size: 15px; }

/* ============================================================
   Абзацы страницы «О компании»
   ============================================================ */
.prose { max-width: 760px; }
.prose p { font-size: 17.5px; color: var(--ink-soft); }
.prose p + p { margin-top: 16px; }
.prose b { color: var(--ink); }

/* ============================================================
   Офисы: головной и обособленное подразделение
   ============================================================ */
.offices { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.office {
  background: var(--surface); border: 1px solid var(--gray-line); border-radius: var(--radius-lg);
  padding: 26px 28px; box-shadow: var(--shadow-sm);
}
.office__city {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue-txt); background: rgba(4, 102, 179, .09); padding: 6px 12px; border-radius: 999px;
}
.office__role { margin-top: 14px; font-size: 14px; color: var(--gray); }
.office__addr { margin-top: 6px; font-size: 16px; font-weight: 600; }
.office__rows { margin-top: 16px; display: grid; gap: 8px; border-top: 1px solid var(--gray-line); padding-top: 14px; }
.office__rows a { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; color: var(--blue-txt); }
.office__rows a:hover { text-decoration: underline; }
.office__rows svg { width: 17px; height: 17px; flex: 0 0 auto; }

/* ============================================================
   Правовые страницы
   ============================================================ */
.legal { max-width: 860px; margin: 0 auto; }
.legal__intro { font-size: 18px; color: var(--ink-soft); }
.legal__card {
  margin-top: 24px; padding: 26px 28px;
  background: var(--bg-alt); border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg);
}
.legal__card-title { font-size: 15px; font-weight: 800; margin-bottom: 14px; }
.legal__req { display: grid; gap: 10px; margin: 0; }
.legal__req > div { display: grid; grid-template-columns: 200px 1fr; gap: 6px 18px; }
.legal__req dt { color: var(--gray); font-size: 15px; }
.legal__req dd { color: var(--ink); font-size: 15px; font-weight: 600; }
.legal__toc {
  margin-top: 34px; padding: 24px 28px;
  background: var(--surface); border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.legal__toc-title { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.legal__toc ol { list-style: none; counter-reset: toc; display: grid; gap: 8px; }
.legal__toc li { counter-increment: toc; }
.legal__toc a { color: var(--blue-txt); font-weight: 600; font-size: 15px; }
.legal__toc a::before { content: counter(toc) '. '; color: var(--gray); font-weight: 700; }
.legal__toc a:hover { text-decoration: underline; }
.legal__block { margin-top: 48px; scroll-margin-top: calc(var(--header-h) + 20px); }
.legal__block h2 {
  font-size: clamp(21px, 2.6vw, 26px); font-weight: 800;
  line-height: 1.25; letter-spacing: -.01em;
  padding-bottom: 14px; margin-bottom: 20px;
  border-bottom: 2px solid var(--gray-line);
}
.legal__block p { color: var(--ink-soft); }
.legal__block p + p { margin-top: 14px; }
.legal__block a { color: var(--blue-txt); font-weight: 600; text-decoration: underline; }
.legal__list, .legal__num {
  margin-top: 14px; padding-left: 4px;
  display: grid; gap: 9px; color: var(--ink-soft);
}
.legal__list li { position: relative; padding-left: 20px; }
.legal__list li::before {
  content: ''; position: absolute; left: 0; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--red);
}
.legal__num { list-style: decimal; padding-left: 24px; }
.legal__num li { padding-left: 4px; }
.legal__num li::marker { color: var(--gray); font-weight: 700; }
.legal__contact {
  margin-top: 20px; padding: 20px 24px;
  border-left: 3px solid var(--blue); background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.legal__contact p { margin: 0; }
.legal__updated { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--gray-line); font-size: 14px; color: var(--gray); }

/* ============================================================
   Полоса призыва
   ============================================================ */
.cta-band { background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%); color: #fff; }
.cta-band__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px 34px; padding: 44px 0;
}
.cta-band h2 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; letter-spacing: -.01em; }
.cta-band p { margin-top: 8px; color: rgba(255, 255, 255, .88); font-size: 16.5px; }

/* ============================================================
   Заголовок внутренней страницы
   ============================================================ */
.page-hero { position: relative; overflow: hidden; padding: 62px 0 56px; background: var(--bg-alt); }
.page-hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.page-hero__shape { position: absolute; border-radius: 36px; opacity: .1; }
.page-hero__shape--a { width: 440px; height: 170px; top: 6px; right: -140px; background: var(--blue); transform: rotate(-15deg); }
.page-hero__shape--b { width: 340px; height: 150px; bottom: -50px; left: -120px; background: var(--red); transform: rotate(-15deg); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero__crumbs { font-size: 14px; color: var(--gray); margin-bottom: 14px; }
.page-hero__crumbs a { color: var(--blue-txt); font-weight: 600; }
.page-hero__crumbs a:hover { text-decoration: underline; }
.page-hero__title { font-size: clamp(28px, 4.6vw, 46px); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
.page-hero__sub { margin-top: 14px; max-width: 70ch; color: var(--ink-soft); font-size: 18px; }

/* ============================================================
   Таблица объектов в работе
   ============================================================ */
.otable-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); border: 1px solid var(--gray-line); background: var(--surface); }
.otable { width: 100%; border-collapse: collapse; min-width: 660px; font-size: 15.5px; }
.otable th, .otable td { padding: 15px 18px; text-align: left; vertical-align: top; }
.otable thead th {
  background: var(--bg-alt); font-size: 13px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue-txt); white-space: nowrap;
}
.otable tbody tr + tr { border-top: 1px solid var(--gray-line); }
.otable tbody tr:hover { background: rgba(4, 102, 179, .035); }
.otable__num { color: var(--gray); font-variant-numeric: tabular-nums; width: 1%; }
.otable__name { font-weight: 700; }
.otable__addr { display: block; margin-top: 4px; font-weight: 400; font-size: 14px; color: var(--gray); }
.tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
  background: rgba(4, 102, 179, .09); color: var(--blue-txt);
}
.tag--infra { background: rgba(46, 139, 87, .12); color: #237348; }
.tag--muni  { background: rgba(192, 40, 68, .09); color: var(--red-txt); }

/* ============================================================
   Подвал
   ============================================================ */
.footer { background: var(--bg-deep); color: #c9d7e3; padding: 62px 0 26px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__tagline { margin-top: 14px; color: #89a0b4; font-size: 15px; max-width: 34ch; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav-title { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #93aabd; margin-bottom: 4px; }
.footer__nav a { color: #c9d7e3; font-size: 15px; transition: color .2s; width: fit-content; }
.footer__nav a:hover { color: #fff; }
.footer__nav-muted { color: #7b93a8; font-size: 15px; }
.footer__bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 26px;
  font-size: 14px; color: #8fa6ba;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer__legal a { color: #8fa6ba; transition: color .2s; }
.footer__legal a:hover { color: #fff; }
.footer__credit { color: #6f8699; }

/* ============================================================
   Кнопка «наверх»
   ============================================================ */
.to-top {
  position: fixed; right: 22px; z-index: 80;
  bottom: calc(22px + var(--cookie-h) + env(safe-area-inset-bottom));
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff; font-size: 20px; box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(12px);
  transition: opacity .25s, transform .25s, background .2s, bottom .3s ease;
}
.to-top.is-visible { opacity: 1; transform: translateY(0); }
.to-top:hover { background: var(--blue-dark); }

/* ============================================================
   Reveal-анимации
   Показ элемента вешает JS: класс .js ставится в самом начале main.js.
   Без JS элементы видны сразу - иначе страница осталась бы пустой.
   ============================================================ */
.js .reveal, .js .reveal-group > * {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.js .reveal-group > *:nth-child(2) { transition-delay: .07s; }
.js .reveal-group > *:nth-child(3) { transition-delay: .14s; }
.js .reveal-group > *:nth-child(4) { transition-delay: .21s; }
.js .reveal-group > *:nth-child(5) { transition-delay: .28s; }
.js .reveal-group > *:nth-child(6) { transition-delay: .35s; }
.reveal.is-visible, .reveal-group.is-visible > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal-group > * { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Баннер согласия на cookie
   ============================================================ */
.cookie {
  /* 85: выше кнопки «наверх» (80), но ниже затемнения меню (90) и шапки (100),
     иначе при открытом мобильном меню баннер всплывает поверх затемнения. */
  position: fixed; left: 0; right: 0; z-index: 85;
  bottom: 0; padding: 14px 0 calc(14px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--gray-line);
  box-shadow: 0 -8px 30px rgba(8, 48, 79, .12);
  opacity: 0; transform: translateY(100%); transition: opacity .3s ease, transform .3s ease;
}
.cookie.is-visible { opacity: 1; transform: translateY(0); }
.cookie__inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
  display: flex; align-items: center; justify-content: space-between; gap: 18px 30px; flex-wrap: wrap;
}
.cookie__text { font-size: 14px; color: var(--ink-soft); max-width: 82ch; }
.cookie__text a { color: var(--blue-txt); text-decoration: underline; }
.cookie__links { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; }
.cookie__links a { color: var(--gray); text-decoration: underline; }
.cookie__links a:hover { color: var(--blue-txt); }
.cookie__btn { flex: 0 0 auto; }

/* ============================================================
   Страница 404
   ============================================================ */
.err { text-align: center; padding: 96px 0 84px; }
.err__code { font-size: clamp(74px, 15vw, 150px); font-weight: 800; line-height: 1; letter-spacing: -.05em; }
.err__title { margin-top: 14px; font-size: clamp(23px, 3.4vw, 34px); font-weight: 800; }
.err__text { margin: 16px auto 0; max-width: 54ch; color: var(--ink-soft); font-size: 17px; }
.err__actions { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 980px) {
  .section { padding: 72px 0; }
  .metrics__grid { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__tile--lead { grid-column: span 2; grid-row: auto; }
  .objects { grid-template-columns: repeat(2, 1fr); }
  .proofs { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; }
  .offices { grid-template-columns: 1fr; }
  .teasers { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .service { grid-template-columns: 1fr; gap: 24px; padding: 30px 0; }
  .service__head { position: static; }
  .jobs { grid-template-columns: 1fr; gap: 32px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .hero { padding: 62px 0 56px; }
  /* Фигуры сделаны под широкий экран: на 375px они шире страницы и лезут на текст */
  .hero__shape--blue { width: 300px; height: 150px; right: -110px; }
  .hero__shape--red  { width: 240px; height: 130px; left: -100px; }
  .hero__stripes { width: 200px; height: 200px; top: -40px; right: -30px; }
  .section { padding: 60px 0; }
  .section__head { margin-bottom: 40px; }
  .objects { grid-template-columns: 1fr; }
  .lead { padding: 32px 24px; }
  .legal__card, .legal__toc { padding: 20px; }
  .legal__req > div { grid-template-columns: 1fr; gap: 2px; }
  .legal__block { margin-top: 36px; }
  .lead__actions { min-width: 0; width: 100%; }
  .cta-band__inner, .band__inner { padding: 36px 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero__actions .btn, .cta-band .btn, .err__actions .btn { width: 100%; }
  .metrics__grid { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .bento { grid-template-columns: 1fr; }
  .bento__tile--lead { grid-column: auto; }
  .footer__inner { grid-template-columns: 1fr; gap: 26px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .cookie__inner { flex-direction: column; align-items: stretch; }
  .cookie__btn { width: 100%; }
  .to-top { right: 14px; width: 42px; height: 42px; }
}

/* ============================================================
   Темная тема - автоматически по настройке устройства.
   Перекрываем только переменные и то, что захардкожено.
   Синие декоративные секции (--blue-deep, --bg-deep) темные в обеих темах.
   ============================================================ */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:         #10151b;
    --bg-alt:     #161d25;
    --surface:    #1d252e;
    --gray-line:  #2a333d;
    --ink:        #eceff3;
    --ink-soft:   #bcc4ce;
    --gray:       #868f9b;
    --blue-txt:   #5aa8e8;   /* синий бренда на темном не читается - берем светлее */
    --illus-bld:  #33404e;   /* корпуса на рисунках-заглушках */
    --illus-bld2: #3d4c5c;
    --illus-win:  #6b7d8f;
    --illus-line: #4a5a6b;
    --red-txt:    #f2748a;   /* фирменный красный на темном дает контраст 3.17 - мало */
    --header-bg:  rgba(16, 21, 27, .96);
    --shadow-sm:  0 2px 10px rgba(0, 0, 0, .5);
    --shadow-md:  0 14px 36px rgba(0, 0, 0, .6);
  }
  .btn--ghost { border-color: rgba(90, 168, 232, .32); }
  .btn--ghost:hover { background: rgba(90, 168, 232, .1); border-color: var(--blue-txt); }
  .object__photo img { filter: brightness(.92); }
  .object__photo--empty { background: linear-gradient(165deg, #232c37 0%, #171e26 100%); color: #55626f; }
  .object__award { background: rgba(192, 40, 68, .13); border-color: rgba(192, 40, 68, .3); }
  .otable thead th { background: #161d25; }
  .otable tbody tr:hover { background: rgba(90, 168, 232, .06); }
  /* логотип цветной на белом - на темной шапке нужна подложка */
  .logo__img { background: #fff; border-radius: 8px; padding: 4px 8px; }
}

/* ============================================================
   Печать: убираем интерактив, оставляем содержание
   ============================================================ */
@media print {
  .header, .nav, .nav-overlay, .to-top, .cookie, .hero__bg, .page-hero__bg { display: none !important; }
  .js .reveal, .js .reveal-group > * { opacity: 1 !important; transform: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  .metrics, .band, .cta-band, .lead, .footer { background: #fff !important; color: #000 !important; }
  .metric__label, .band__text p, .cta-band p, .lead p, .footer__nav a { color: #333 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  .section { padding: 18pt 0; page-break-inside: avoid; }
}
