/* ============================================================
   АЛЬФА ИНЖИНИРИНГ — стили сайта
   Светлый экран · читаемые плашки · ровная сетка
   ============================================================ */

:root {
  --c-bg:          #ffffff;
  --c-bg-soft:     #f5f7fa;
  --c-bg-deep:     #102338;
  --c-surface:     #ffffff;
  --c-text:        #1a2433;
  --c-text-soft:   #62707f;
  --c-text-mute:   #8a96a3;
  --c-border:      #e6eaef;
  --c-border-soft: #eef1f4;

  --c-accent:      #1f6fd6;
  --c-accent-deep: #1857ac;
  --c-accent-dark: #134088;
  --c-accent-soft: #eaf2fc;
  --c-accent-line: #4f93e4;

  /* плашка с текстом — светло-синий */
  --c-plate-blue:  #1f6fd6;

  --c-red:      #d32a26;
  --c-red-deep: #b21f1c;

  --font-head: 'Manrope', 'Arial', sans-serif;
  --font-body: 'PT Sans', 'Arial', sans-serif;

  --maxw: 1240px;
  --radius:    10px;
  --radius-sm: 8px;
  --radius-lg: 16px;

  --shadow-sm: 0 2px 8px rgba(16,35,56,0.06);
  --shadow:    0 8px 24px rgba(16,35,56,0.09);
  --shadow-lg: 0 18px 44px rgba(16,35,56,0.14);

  --tr: 0.2s ease;
}

[data-theme="dark"] {
  --c-bg:          #131c28;
  --c-bg-soft:     #18222f;
  --c-bg-deep:     #0c1622;
  --c-surface:     #1c2734;
  --c-text:        #eef2f6;
  --c-text-soft:   #a3afbd;
  --c-text-mute:   #7d8997;
  --c-border:      #2a3744;
  --c-border-soft: #243140;
  --c-accent:      #3d8aec;
  --c-accent-deep: #2f74cf;
  --c-accent-dark: #1f5aa8;
  --c-accent-soft: #1b2c40;
  --c-accent-line: #4f93e4;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow:    0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 18px 44px rgba(0,0,0,0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--tr), color var(--tr);
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.22;
  color: var(--c-text);
  letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.section { padding: 76px 0; }
/* первая секция после хлебных крошек — уменьшенный верхний отступ (-20%) */
.crumbs + .section { padding-top: 60px; }
.section--soft { background: var(--c-bg-soft); }

.section__head { margin-bottom: 42px; max-width: 720px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 12px;
}
.section__title { font-size: 30px; }
.section__subtitle { margin-top: 12px; color: var(--c-text-soft); font-size: 16.5px; }

/* ============================================================
   КНОПКИ — объёмные «подушечки»
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 700; font-size: 14.5px;
  padding: 14px 30px;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow var(--tr), filter var(--tr);
  white-space: nowrap;
  position: relative;
}
.btn--primary {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(180deg, var(--c-accent-line) 0%, var(--c-accent) 48%, var(--c-accent-deep) 100%);
  color: #fff;
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,0.5),
    inset 0 -3px 6px rgba(15,40,80,0.5),
    inset 0 0 0 1px rgba(31,111,214,0.6),
    0 6px 16px rgba(31,111,214,0.4),
    0 2px 5px rgba(16,35,56,0.25);
  text-shadow: 0 1px 2px rgba(12,30,60,0.4);
}
.btn--primary:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn--primary:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 6px rgba(15,40,80,0.55),
    inset 0 -2px 3px rgba(255,255,255,0.25),
    0 3px 9px rgba(31,111,214,0.32);
}
.btn--ghost {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #ffffff 0%, #e9edf2 100%);
  color: var(--c-text);
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,0.95),
    inset 0 -3px 6px rgba(16,35,56,0.16),
    inset 0 0 0 1px rgba(16,35,56,0.08),
    0 6px 15px rgba(16,35,56,0.16),
    0 2px 5px rgba(16,35,56,0.12);
}
[data-theme="dark"] .btn--ghost {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #2c3b4a 0%, #1d2734 100%);
  color: var(--c-text);
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,0.1),
    inset 0 -3px 6px rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(255,255,255,0.06),
    0 6px 15px rgba(0,0,0,0.45);
}
.btn--ghost:hover { transform: translateY(-2px); color: var(--c-accent); }
.btn--ghost:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 6px rgba(16,35,56,0.2),
    inset 0 -2px 3px rgba(255,255,255,0.6),
    0 3px 8px rgba(16,35,56,0.14);
}

/* ============================================================
   ШАПКА
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
  transition: background var(--tr), border-color var(--tr);
}
[data-theme="dark"] .header { background: rgba(19,28,40,0.96); }

/* мобильная контактная полоска — на десктопе скрыта */
.m-topbar { display: none; }

.header__inner { display: flex; align-items: center; gap: 24px; height: 100px; }

.logo { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.logo__img { height: 60px; width: auto; }
.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__name { font-family: var(--font-head); font-weight: 800; font-size: 20px; }
.logo__sub  { font-size: 12px; color: var(--c-text-soft); letter-spacing: 0.02em; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav__item { position: relative; }
.nav__link {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 600; font-size: 14.5px;
  padding: 12px 14px;
  color: var(--c-text);
  border-radius: var(--radius-sm);
  transition: color var(--tr);
  cursor: pointer;
  white-space: nowrap;
}
.nav__link:hover { color: var(--c-accent); }
.nav__caret {
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px,-1px);
  transition: transform var(--tr);
  opacity: 0.6; flex-shrink: 0;
}
.nav__drop {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 268px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--tr), transform var(--tr), visibility var(--tr);
}
.nav__item:hover .nav__drop { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__item:hover .nav__link { color: var(--c-accent); }
.nav__item:hover .nav__caret { transform: rotate(-135deg) translate(-1px,-1px); }
.nav__drop a {
  display: block;
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--c-text);
  transition: background var(--tr), color var(--tr);
}
.nav__drop a:hover { color: var(--c-accent); }

.header__side { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header__contacts { display: flex; flex-direction: column; gap: 2px; }
.header__phone { font-family: var(--font-head); line-height: 1.2; }
.header__phone b { font-size: 16px; font-weight: 800; display: block; }
.header__phone span { font-size: 10.5px; color: var(--c-text-soft); }
.header__mail {
  font-family: var(--font-head); font-size: 12px; font-weight: 600;
  color: var(--c-accent);
  transition: color var(--tr);
}
.header__mail:hover { color: var(--c-accent-deep); }

.theme-toggle {
  width: 42px; height: 42px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-bg-soft);
  cursor: pointer; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--tr); flex-shrink: 0; color: var(--c-text);
}
.theme-toggle:hover { border-color: var(--c-accent); color: var(--c-accent); }

.burger {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-bg-soft);
  cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span {
  width: 22px; height: 2px; background: var(--c-text); border-radius: 2px;
  transition: var(--tr);
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   ПЕРВЫЙ ЭКРАН — всё выровнено по единой левой линии
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg-soft);
}
/* слайд-шоу фонов первого экрана */
.hero__slideshow { position: absolute; inset: 0; }
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero__bg--active { opacity: 1; }
.hero__inner { position: relative; padding: 84px 0 70px; }

/* блок плашек — единая левая линия */
.hero__plates { max-width: 720px; }
.hero__title-wrap, .hero__lead-wrap { display: block; }
/* плашка-заголовок — цельный блок с заливкой */
.hero__title {
  display: inline-block;
  font-family: var(--font-head); font-weight: 800;
  font-size: 38px; line-height: 1.28;
  color: #fff;
  background: var(--c-red);
  padding: 12px 18px;
}
.hero__title-wrap { margin: 0; }
/* плашка-описание — цельный блок с заливкой */
.hero__lead {
  display: inline-block;
  font-family: var(--font-body); font-weight: 400;
  font-size: 19px; line-height: 1.5;
  color: #fff;
  background: var(--c-plate-blue);
  padding: 12px 18px;
}
.hero__lead-wrap { margin: 0 0 28px 0; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-left: 0; }

/* карточки цифр — равная высота, единая сетка */
.hero__stats {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.stat {
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-bottom: 3px solid var(--c-accent);
  display: flex; flex-direction: column;
  min-height: 116px;
}
.stat__num {
  font-family: var(--font-head); font-weight: 800;
  font-size: 34px; color: var(--c-text); line-height: 1;
}
.stat__num span { color: var(--c-red); }
.stat__label { font-size: 13.5px; color: var(--c-text-soft); margin-top: auto; padding-top: 10px; }

/* текстовый блок о компании — на фоне фото, на тёмной полупрозрачной плашке */
.hero__about {
  position: relative;
  margin-top: 20px;
  max-width: 760px;
  background: rgba(10,22,40,0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
}
.hero__about p {
  font-size: 15.5px; color: #fff; line-height: 1.7;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.hero__about p + p { margin-top: 10px; }

/* ============================================================
   СЛАЙДЕР НАПРАВЛЕНИЙ — читаемые плашки
   ============================================================ */
.slider { position: relative; }
.slider__viewport { overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.slider__track { display: flex; transition: transform 0.55s cubic-bezier(0.4,0,0.2,1); }

.slide { min-width: 100%; position: relative; height: 480px; }
.slide__media { position: absolute; inset: 0; }
.slide__media svg, .slide__media img { width: 100%; height: 100%; object-fit: cover; }
.slide__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,16,26,0.55) 0%, rgba(8,16,26,0.12) 62%);
}
.slide__badge {
  position: absolute; top: 22px; right: 22px;
  font-family: var(--font-head); font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(255,255,255,0.16); color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 7px 13px; border-radius: 40px;
  backdrop-filter: blur(4px);
}
.slide__content { position: absolute; left: 0; bottom: 0; padding: 44px 52px; max-width: 660px; }
.slide__count {
  display: inline-block;
  font-family: var(--font-head); font-weight: 800;
  font-size: 12px; color: #fff; letter-spacing: 0.1em;
  background: var(--c-red);
  padding: 6px 12px; margin-bottom: 14px;
}
.slide__title {
  display: inline-block;
  font-family: var(--font-head); font-weight: 800;
  font-size: 29px; line-height: 1.28;
  color: #fff;
  background: var(--c-red);
  padding: 10px 16px;
}
.slide__title-wrap { margin: 0; }
/* плашка-описание слайда */
.slide__text {
  display: inline-block;
  font-family: var(--font-body); font-weight: 400;
  font-size: 16.5px; line-height: 1.5;
  color: #fff;
  background: var(--c-plate-blue);
  padding: 10px 16px;
}
.slide__text-wrap { margin: 0 0 24px 0; }
/* кнопка в слайдере — в стиле кнопок каруселей: выпуклая, с обводкой */
.slide__content .btn {
  margin-left: 0;
  border: 2px solid var(--c-accent-line);
  background:
    radial-gradient(120% 80% at 50% 18%, rgba(255,255,255,0.32) 0%, rgba(255,255,255,0) 62%),
    linear-gradient(180deg, var(--c-accent-line) 0%, var(--c-accent) 52%, var(--c-accent-deep) 100%);
  box-shadow:
    inset 0 3px 5px rgba(255,255,255,0.4),
    inset 0 -4px 8px rgba(15,40,80,0.5),
    0 5px 14px rgba(16,35,56,0.4),
    0 2px 5px rgba(16,35,56,0.3);
}
.slide__content .btn:hover {
  filter: brightness(1.07);
  transform: translateY(-2px);
}
.slide__content .btn:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 2px 6px rgba(15,40,80,0.55),
    0 2px 6px rgba(16,35,56,0.3);
}

.slider__nav { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.slider__dots { display: flex; gap: 8px; }
.slider__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--c-border); border: none; cursor: pointer;
  transition: all var(--tr);
}
.slider__dot.active { background: var(--c-accent); width: 26px; border-radius: 6px; }
.slider__arrows { display: flex; gap: 10px; }
.slider__arrow {
  width: 50px; height: 50px;
  border: 2px solid var(--c-accent);
  border-radius: 50%;
  background:
    radial-gradient(120% 80% at 50% 18%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0) 62%),
    linear-gradient(180deg, #ffffff 0%, #e3e8ef 100%);
  cursor: pointer; font-size: 19px; color: var(--c-accent);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.14s ease, background var(--tr), color var(--tr), box-shadow var(--tr);
  box-shadow:
    inset 0 3px 4px rgba(255,255,255,0.95),
    inset 0 -4px 7px rgba(16,35,56,0.22),
    0 5px 12px rgba(16,35,56,0.28),
    0 2px 4px rgba(16,35,56,0.18);
}
[data-theme="dark"] .slider__arrow {
  background: linear-gradient(180deg, #34465a 0%, #1d2734 100%);
  color: var(--c-accent-line); border-color: var(--c-accent-line);
  box-shadow:
    inset 0 3px 4px rgba(255,255,255,0.12),
    inset 0 -4px 7px rgba(0,0,0,0.5),
    0 5px 12px rgba(0,0,0,0.5);
}
.slider__arrow:hover { background: var(--c-accent); color: #fff; transform: translateY(-2px); }
.slider__arrow:active {
  transform: scale(0.94);
  box-shadow: inset 0 2px 6px rgba(16,35,56,0.3), 0 2px 5px rgba(16,35,56,0.2);
}

/* ============================================================
   ОБЪЕКТЫ
   ============================================================ */
/* ---- карусель объектов: видно 4, стрелки вынесены за карточки ---- */
.objects-carousel { position: relative; padding: 0; }
.objects-viewport { overflow: hidden; }
.objects {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.object-card {
  flex: 0 0 calc((100% - 72px) / 4);   /* 4 карточки в ряд */
  display: block; text-decoration: none; color: inherit;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--tr), box-shadow var(--tr);
  box-shadow: var(--shadow-sm);
}
.object-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.object-card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.object-card__media svg, .object-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--tr); }
.object-card:hover .object-card__media img { transform: scale(1.05); }
.object-card__cat {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-head); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  background: rgba(255,255,255,0.92); color: var(--c-accent);
  padding: 5px 10px; border-radius: 40px;
}
.object-card__body { padding: 18px 20px 22px; }
.object-card__body h3 { font-size: 16.5px; margin-bottom: 6px; }
.object-card__meta {
  font-size: 13.5px; color: var(--c-text-soft);
  display: flex; align-items: center; gap: 7px;
}
.object-card__meta::before {
  content: ''; width: 14px; height: 2px; background: var(--c-accent); flex-shrink: 0;
}
/* стрелки каруселей объектов и брендов */
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; z-index: 5;
  border: 2px solid var(--c-accent);
  border-radius: 50%;
  background:
    radial-gradient(120% 80% at 50% 18%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0) 62%),
    linear-gradient(180deg, #ffffff 0%, #e3e8ef 100%);
  cursor: pointer; font-size: 18px; color: var(--c-accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    inset 0 3px 4px rgba(255,255,255,0.95),
    inset 0 -4px 7px rgba(16,35,56,0.22),
    0 5px 12px rgba(16,35,56,0.28),
    0 2px 4px rgba(16,35,56,0.18);
  transition: transform 0.14s ease, background var(--tr), color var(--tr), box-shadow var(--tr);
}
[data-theme="dark"] .carousel-arrow {
  background: linear-gradient(180deg, #34465a 0%, #1d2734 100%);
  color: var(--c-accent-line); border-color: var(--c-accent-line);
  box-shadow:
    inset 0 3px 4px rgba(255,255,255,0.12),
    inset 0 -4px 7px rgba(0,0,0,0.5),
    0 5px 12px rgba(0,0,0,0.5);
}
.carousel-arrow:hover {
  background: var(--c-accent); color: #fff;
  transform: translateY(-50%) translateY(-2px);
}
.carousel-arrow:active {
  transform: translateY(-50%) scale(0.94);
  box-shadow:
    inset 0 2px 6px rgba(16,35,56,0.3),
    0 2px 5px rgba(16,35,56,0.2);
}
/* стрелки стоят в боковых отступах карусели — не наезжают на карточки */
.carousel-arrow--prev { left: 4px; }
.carousel-arrow--next { right: 4px; }
/* навигация карусели объектов — внизу: точки слева, стрелки справа (как в слайдере) */
.objects-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: 26px;
}
.objects-nav .carousel-dots { margin-top: 0; }
.objects-arrows { display: flex; gap: 10px; }
.objects-nav .carousel-arrow {
  position: static; transform: none; top: auto;
}
.objects-nav .carousel-arrow:hover { transform: translateY(-2px); }
.objects-nav .carousel-arrow:active { transform: scale(0.94); }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.carousel-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--c-border); border: none; cursor: pointer;
  transition: all var(--tr);
}
.carousel-dot.active { background: var(--c-accent); width: 26px; border-radius: 6px; }

/* ============================================================
   ПРОИЗВОДСТВО
   ============================================================ */
.production__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.production__media {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); position: relative; min-height: 400px;
}
.production__media svg, .production__media img { width: 100%; height: 100%; object-fit: cover; }
/* слайд-шоу производства */
.prod-slideshow { position: absolute; inset: 0; }
.prod-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.prod-slide--active { opacity: 1; }
.production h2 { font-size: 30px; margin-bottom: 16px; }
.production p { color: var(--c-text-soft); margin-bottom: 14px; }
.prod-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0 28px; }
.prod-stat {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.prod-stat b {
  font-family: var(--font-head); font-weight: 800;
  font-size: 24px; color: var(--c-accent); display: block;
}
.prod-stat span { font-size: 13.5px; color: var(--c-text-soft); }

/* ============================================================
   ДОВЕРИЕ
   ============================================================ */
/* ---- карусель брендов: видно 6, стрелки вынесены за плашки ---- */
.clients-carousel { position: relative; margin-bottom: 44px; padding: 0 64px; }
.clients-viewport { overflow: hidden; }
/* стрелки брендов отцентрованы по высоте плашек (плашка 84px → центр 42px) */
.clients-carousel .carousel-arrow { top: 42px; }
.clients {
  display: flex;
  gap: 16px;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.client {
  flex: 0 0 calc((100% - 80px) / 6);   /* ровно 6 плашек в ряд */
  height: 84px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700;
  font-size: 13px; color: var(--c-text-soft);
  text-align: center; padding: 8px;
  box-shadow: var(--shadow-sm); transition: all var(--tr);
}
.client:hover { color: var(--c-accent); transform: translateY(-3px); box-shadow: var(--shadow); }

.licenses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.license {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm); transition: all var(--tr);
}
.license:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.license__icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: var(--c-accent-soft); color: var(--c-accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 18px;
  margin-bottom: 16px;
}
.license h3 { font-size: 16.5px; margin-bottom: 8px; }
.license p { font-size: 14.5px; color: var(--c-text-soft); }

/* ============================================================
   УСЛУГИ — карточки с фоновым фото
   ============================================================ */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 22px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--tr), box-shadow var(--tr);
  display: flex; flex-direction: column;
  min-height: 200px;
  background: var(--c-bg-deep);
}
/* фоновое фото карточки */
.service__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* затемнение поверх фото — для читаемости белого текста */
.service::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8,16,26,0.55) 0%, rgba(8,16,26,0.75) 70%, rgba(8,16,26,0.9) 100%);
  transition: background var(--tr);
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service:hover::after {
  background: linear-gradient(180deg, rgba(20,65,138,0.55) 0%, rgba(8,16,26,0.78) 70%, rgba(8,16,26,0.92) 100%);
}
/* содержимое — поверх фото и затемнения */
.service__num,
.service h3,
.service__arrow { position: relative; z-index: 2; }
.service__num {
  font-family: var(--font-head); font-weight: 800; font-size: 13px;
  color: #fff;
  background: var(--c-red);
  display: inline-block;
  padding: 4px 9px;
  margin-bottom: 12px;
  align-self: flex-start;
}
.service h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.75);
}
.service__arrow {
  margin-top: auto;
  color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  display: flex; align-items: center; gap: 6px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
  transition: gap var(--tr);
}
.service:hover .service__arrow { gap: 11px; }

/* ============================================================
   ФОРМА ЗАЯВКИ
   ============================================================ */
.cta { position: relative; background: var(--c-bg-deep); overflow: hidden; }
.cta__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.26; }
.cta__grid {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.cta__text h2 { color: #fff; font-size: 30px; margin-bottom: 14px; }
.cta__text p { color: rgba(255,255,255,0.82); margin-bottom: 22px; }
.cta__phone { font-family: var(--font-head); font-weight: 800; font-size: 24px; color: #fff; }
.cta__phone span { display: block; font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.62); }

.form {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-lg);
}
.form h3 { font-size: 19px; margin-bottom: 18px; }
.field { margin-bottom: 15px; }
.field label {
  display: block; font-family: var(--font-head); font-weight: 600;
  font-size: 13.5px; margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-bg); color: var(--c-text);
  font-family: var(--font-body); font-size: 15px;
  transition: border-color var(--tr);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-soft);
}
.form__note { font-size: 12.5px; color: var(--c-text-mute); margin-top: 4px; }

/* ============================================================
   ПОДВАЛ
   ============================================================ */
.footer { background: var(--c-bg-deep); color: rgba(255,255,255,0.7); padding: 58px 0 26px; }
.footer__grid {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 38px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer h4 {
  color: #fff; font-size: 13px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 16px;
}
.footer p { font-size: 14.5px; }
.footer a { transition: color var(--tr); }
.footer a:hover { color: var(--c-accent-line); }
.footer li { margin-bottom: 9px; font-size: 14.5px; }
.footer__logo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer__logo img { height: 52px; width: auto; }
.footer__logo-name { font-family: var(--font-head); font-weight: 800; font-size: 17px; color: #fff; }
.footer__bottom {
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 12.5px; color: rgba(255,255,255,0.5);
}

/* ============================================================
   МОБИЛЬНОЕ МЕНЮ
   ============================================================ */
.m-menu {
  display: none;
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 86%; max-width: 360px;
  background: var(--c-bg);
  z-index: 300;
  box-shadow: -10px 0 40px rgba(0,0,0,0.25);
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.m-menu.is-open { transform: translateX(0); }
.m-menu__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--c-border);
}
.m-menu__title { font-family: var(--font-head); font-weight: 800; font-size: 16px; }
.m-menu__close {
  width: 40px; height: 40px;
  border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  background: var(--c-bg-soft); color: var(--c-text);
  font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.m-menu__body { padding: 10px 14px 20px; }
.m-group { border-bottom: 1px solid var(--c-border-soft); }
.m-group__top { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; }
.m-group__top a {
  flex: 1; padding: 9px 0;
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  color: var(--c-text);
}
.m-group__toggle {
  width: 34px; height: 34px; flex-shrink: 0;
  border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  background: var(--c-bg-soft); color: var(--c-text);
  font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.m-sub { display: none; padding: 0 8px 12px; }
.m-sub.is-open { display: block; }
.m-sub a {
  display: block; padding: 11px 12px;
  font-size: 15px; color: var(--c-text-soft);
  border-radius: var(--radius-sm);
}
.m-sub a:active { background: var(--c-accent-soft); color: var(--c-accent); }
.m-sub__all {
  color: var(--c-accent) !important; font-weight: 700;
  border-bottom: 1px solid var(--c-border); margin-bottom: 4px;
  border-radius: 0 !important;
}
.m-menu__foot { padding: 18px 22px; border-top: 1px solid var(--c-border); margin-top: auto; }
.m-menu__phone {
  font-family: var(--font-head); font-weight: 800; font-size: 20px;
  display: block; margin-bottom: 14px;
}
.m-menu__phone span { display: block; font-size: 12px; font-weight: 400; color: var(--c-text-soft); }
.m-menu__mail {
  display: block; margin-bottom: 14px;
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
  color: var(--c-accent);
}

.m-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(8,16,26,0.5);
  z-index: 250;
}
.m-overlay.is-open { display: block; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1140px) {
  .nav__link { padding: 12px 10px; font-size: 14px; }
}
@media (max-width: 1080px) {
  .object-card { flex: 0 0 calc((100% - 24px) / 2); }   /* 2 объекта */
  .client { flex: 0 0 calc((100% - 32px) / 3); }        /* 3 бренда */
  .services { grid-template-columns: repeat(2, 1fr); }
  .licenses { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .nav { display: none; }
  .burger { display: flex; }
  .m-menu { display: flex; }
  .header__contacts { display: none; }
  /* мобильная контактная полоска над шапкой */
  .m-topbar {
    display: flex; flex-wrap: wrap;
    align-items: center; justify-content: center;
    gap: 4px 18px;
    padding: 7px 14px;
    background: var(--c-bg-deep);
  }
  .m-topbar__item {
    font-family: var(--font-head); font-weight: 600;
    font-size: 12px; color: #fff;
    white-space: nowrap;
  }
  /* в шапке на мобильном: логотип + кнопка темы слева,
     бургер прижат к правому краю; кнопка «Заявка» — в меню */
  .header__cta-btn { display: none; }
  .header__inner { height: 72px; gap: 8px; }
  .header .container { padding: 0 12px; }
  .header__side {
    gap: 8px;
    margin-left: 10px;
    display: contents;        /* распускаем группу, чтобы управлять элементами по отдельности */
  }
  .logo { order: 1; }
  .theme-toggle { order: 2; width: 42px; height: 42px; font-size: 16px; flex-shrink: 0; }
  .burger { order: 3; margin-left: auto; width: 42px; height: 42px; flex-shrink: 0; }
  .logo__img { height: 40px; }
  .logo__name { font-size: 15px; }
  .logo__sub { font-size: 10px; }

  .hero__inner { padding: 52px 0; }
  .hero__title { font-size: 26px; line-height: 1.3; }
  .hero__lead { font-size: 16.5px; line-height: 1.5; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__stats { gap: 12px; margin-top: 30px; }

  /* слайдер на мобильном: фото на весь слайд, текст поверх — как на десктопе */
  .slide { height: 520px; display: block; }
  .slide__media { position: absolute; inset: 0; height: 100%; width: 100%; }
  .slide__media::after {
    display: block;
    background: linear-gradient(180deg, rgba(8,16,26,0.30) 0%, rgba(8,16,26,0.20) 35%, rgba(8,16,26,0.82) 100%);
  }
  .slide__badge { top: 14px; right: 14px; }
  .slide__content {
    position: absolute;
    left: 0; bottom: 0;
    padding: 26px 20px 28px;
    max-width: 100%;
    background: none;
  }
  .slide__title { font-size: 21px; }
  .slide__content .btn { width: 100%; }

  .production__grid, .cta__grid { grid-template-columns: 1fr; gap: 32px; }
  .licenses { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
  .section__title { font-size: 24px; }
  .section__head { margin-bottom: 32px; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .objects-carousel { padding: 0; }                    /* ширина как у слайдера «чем занимаемся» (в границах контейнера) */
  .objects { gap: 0; }                                 /* слайды вплотную, без зазора */
  .objects-carousel .carousel-arrow { display: none; } /* на телефоне листаем свайпом и точками */
  .object-card { flex: 0 0 100%; }                     /* слайд шириной контейнера */
  .clients-carousel { padding: 0 46px; }
  .client { flex: 0 0 calc((100% - 16px) / 2); }       /* 2 бренда */
  .carousel-arrow { width: 40px; height: 40px; font-size: 16px; }
  .carousel-arrow--prev { left: 0; }
  .carousel-arrow--next { right: 0; }
  .services { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .hero__title { font-size: 22px; }
  .stat__num { font-size: 28px; }
  .prod-stats { grid-template-columns: 1fr; }
  .slider__nav { flex-direction: column-reverse; gap: 16px; }
  .slider__arrows { width: 100%; justify-content: center; }
  .form { padding: 24px; }
  .footer__bottom { flex-direction: column; }
}

/* ============================================================
   СТРАНИЦА УСЛУГИ
   ============================================================ */
/* хлебные крошки */
.crumbs { background: var(--c-bg-soft); border-bottom: 1px solid var(--c-border); }
.crumbs__list {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 14px 0; font-size: 13px; color: var(--c-text-soft);
}
.crumbs__list a { color: var(--c-text-soft); transition: color var(--tr); }
.crumbs__list a:hover { color: var(--c-accent); }
.crumbs__sep { color: var(--c-text-mute); }
.crumbs__current { color: var(--c-text); font-weight: 600; }

/* первый экран услуги */
.svc-hero { position: relative; overflow: hidden; background: var(--c-bg-deep); }
.svc-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.svc-hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,16,26,0.86) 0%, rgba(8,16,26,0.6) 60%, rgba(8,16,26,0.45) 100%);
}
.svc-hero__inner { position: relative; padding: 64px 0; max-width: 720px; }
.svc-hero__tag {
  display: inline-block; font-family: var(--font-head);
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; background: var(--c-red); padding: 7px 14px; margin-bottom: 18px;
}
.svc-hero h1 { font-size: 40px; color: #fff; margin-bottom: 16px; }
.svc-hero__lead { font-size: 17px; color: rgba(255,255,255,0.85); margin-bottom: 26px; }
.svc-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* двухколоночная раскладка контента */
.svc-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.svc-main > section { margin-bottom: 44px; }
.svc-main > section:last-child { margin-bottom: 0; }
.svc-main h2 { font-size: 26px; margin-bottom: 16px; }
.svc-main h3 { font-size: 18px; margin: 22px 0 10px; }
.svc-main p { color: var(--c-text-soft); margin-bottom: 12px; }
.svc-main ul.svc-list { margin: 12px 0; }
.svc-main ul.svc-list li {
  position: relative; padding-left: 26px; margin-bottom: 9px;
  color: var(--c-text-soft);
}
.svc-main ul.svc-list li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 12px; height: 12px; border-radius: 3px;
  background: var(--c-accent);
}

/* карточки «что мы делаем» */
.svc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.svc-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.svc-card h3 { margin: 0 0 8px; font-size: 16.5px; }
.svc-card p { font-size: 14px; margin: 0; }

/* этапы работы */
.svc-steps { counter-reset: step; display: grid; gap: 14px; margin-top: 16px; }
.svc-step {
  position: relative; display: flex; gap: 18px; align-items: flex-start;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 18px 22px;
}
.svc-step__num {
  flex-shrink: 0; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-accent); color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 17px;
  border-radius: 50%;
}
.svc-step h3 { margin: 0 0 4px; font-size: 16px; }
.svc-step p { margin: 0; font-size: 14px; }

/* блок производства внутри услуги */
.svc-accent {
  background: var(--c-accent-soft);
  border: 1px solid var(--c-accent-line);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
}
.svc-accent h2 { margin-bottom: 10px; }
.svc-accent p { color: var(--c-text); margin-bottom: 0; }

/* боковая колонка */
.svc-aside { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 20px; }
.svc-aside__card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm);
}
.svc-aside__card h3 { font-size: 17px; margin-bottom: 12px; }
.svc-aside__card p { font-size: 14px; color: var(--c-text-soft); margin-bottom: 16px; }
.svc-aside__phone {
  font-family: var(--font-head); font-weight: 800; font-size: 20px;
  color: var(--c-text); display: block; margin-bottom: 4px;
}
.svc-aside__mail { font-size: 14px; color: var(--c-accent); }
.svc-aside__list { margin-top: 4px; }
.svc-aside__list li {
  font-size: 14px; padding: 9px 0; border-bottom: 1px solid var(--c-border-soft);
}
.svc-aside__list li:last-child { border-bottom: none; }
.svc-aside__list a {
  color: var(--c-text); display: flex; align-items: center; gap: 8px;
  transition: color var(--tr);
}
.svc-aside__list a:hover { color: var(--c-accent); }
.svc-aside__list a::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-accent); flex-shrink: 0;
}

/* SEO-текст */
.svc-seo p { margin-bottom: 12px; }

@media (max-width: 980px) {
  .svc-layout { grid-template-columns: 1fr; gap: 32px; }
  .svc-aside { position: static; }
  .svc-hero h1 { font-size: 30px; }
}
@media (max-width: 560px) {
  .svc-cards { grid-template-columns: 1fr; }
  .svc-hero__inner { padding: 44px 0; }
  .svc-hero h1 { font-size: 25px; }
  .svc-hero__actions { flex-direction: column; }
  .svc-hero__actions .btn { width: 100%; }
}

/* ============================================================
   СТРАНИЦА КОНТАКТОВ
   ============================================================ */
.contacts-hero {
  position: relative; overflow: hidden;
  background: var(--c-bg-deep); color: #fff;
  padding: 64px 0;
  min-height: 360px;
  display: flex; align-items: center;
}
/* слайд-шоу на фоне шапки контактов */
.contacts-hero__slideshow { position: absolute; inset: 0; z-index: 0; }
.contacts-hero__slideshow .hero__bg {
  background-size: cover; background-position: center;
}
.contacts-hero .container { position: relative; z-index: 2; width: 100%; }
.contacts-hero__plates { max-width: 760px; }

/* головной офис — крупный блок */
.contacts-main { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.contacts-head__card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-red);
  border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow-sm);
}
.contacts-head__tag {
  display: inline-block; font-family: var(--font-head);
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c-red); margin-bottom: 12px;
}
.contacts-head__card h2 { font-size: 24px; margin-bottom: 20px; }
.contacts-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--c-border-soft);
}
.contacts-row:last-child { border-bottom: none; }
.contacts-row__ic {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px;
  background: var(--c-accent-soft); color: var(--c-accent);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.contacts-row__label { font-size: 12.5px; color: var(--c-text-mute); margin-bottom: 2px; }
.contacts-row__val { font-size: 16px; font-weight: 600; color: var(--c-text); }
.contacts-row__val a { color: var(--c-text); transition: color var(--tr); }
.contacts-row__val a:hover { color: var(--c-accent); }

/* карта */
.contacts-map {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--c-border); box-shadow: var(--shadow-sm);
  min-height: 420px; position: relative;
}
.contacts-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* филиалы — сетка карточек */
.branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.branch {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}
.branch:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow:
    0 0 6px 0 rgba(31,111,214,0.30),
    0 0 16px 2px rgba(31,111,214,0.20),
    0 0 32px 6px rgba(31,111,214,0.10),
    0 10px 30px rgba(16,35,56,0.10);
}
.branch h3 {
  font-size: 18px; margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 2px solid var(--c-accent-soft);
}
.branch__line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: 14px; }
.branch__line:last-child { margin-bottom: 0; }
.branch__ic { flex-shrink: 0; color: var(--c-accent); font-size: 15px; margin-top: 1px; }
.branch__line a { color: var(--c-text); font-weight: 600; transition: color var(--tr); }
.branch__line a:hover { color: var(--c-accent); }
.branch__addr { color: var(--c-text-soft); }

@media (max-width: 900px) {
  .contacts-main { grid-template-columns: 1fr; gap: 24px; }
  .branches { grid-template-columns: 1fr 1fr; }
  .contacts-hero h1 { font-size: 30px; }
}
@media (max-width: 560px) {
  .branches { grid-template-columns: 1fr; }
  .contacts-head__card { padding: 24px; }
}

/* ============================================================
   СТРАНИЦА РАЗДЕЛА «УСЛУГИ» / «ОБЪЕКТЫ» / «О КОМПАНИИ»
   ============================================================ */
.section-intro { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-intro p { color: var(--c-text-soft); font-size: 16px; line-height: 1.7; }

/* сетка услуг на странице раздела — 10 карточек с фоном (как на главной) */
.services-page { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .services-page { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-page { grid-template-columns: 1fr; } }
.services-page .service { min-height: 220px; }

/* раздел «Объекты»: категории */
.obj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .obj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .obj-grid { grid-template-columns: 1fr; } }
.obj-item {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform var(--tr), box-shadow var(--tr);
}
.obj-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.obj-item__media { height: 200px; position: relative; overflow: hidden; }
.obj-item__media svg, .obj-item__media img { width: 100%; height: 100%; object-fit: cover; }
.obj-item__cat {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-head); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(255,255,255,0.92); color: var(--c-accent);
  padding: 5px 11px; border-radius: 40px;
}
.obj-item__body { padding: 20px 22px 24px; }
.obj-item__body h3 { font-size: 17px; margin-bottom: 8px; }
.obj-item__body p { font-size: 14px; color: var(--c-text-soft); line-height: 1.6; }

/* раздел «О компании»: блоки */
.about-block { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; margin-bottom: 64px; }
.about-block:last-child { margin-bottom: 0; }
.about-block--reverse .about-block__media { order: 2; }
.about-block__media {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  min-height: 320px; position: relative;
}
.about-block__media svg, .about-block__media img { width: 100%; height: 100%; object-fit: cover; }
.about-block h2 { font-size: 28px; margin-bottom: 16px; }
.about-block p { color: var(--c-text-soft); line-height: 1.7; margin-bottom: 12px; }
.about-block ul.svc-list { margin-top: 12px; }
@media (max-width: 860px) {
  .about-block { grid-template-columns: 1fr; gap: 24px; }
  .about-block--reverse .about-block__media { order: 0; }
}

/* карточки лицензий и вакансий на странице О компании */
.about-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 700px) { .about-cards { grid-template-columns: 1fr; } }
.about-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-accent);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm);
}
.about-card h3 { font-size: 17px; margin-bottom: 8px; }
.about-card p { font-size: 14px; color: var(--c-text-soft); line-height: 1.6; }

/* ============================================================
   СТРАНИЦА О КОМПАНИИ
   ============================================================ */
.about-text { max-width: 820px; }
.about-text p { color: var(--c-text-soft); font-size: 16px; line-height: 1.7; margin-bottom: 14px; }
.about-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.about-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow-sm); transition: transform var(--tr), box-shadow var(--tr);
}
.about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.about-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.about-card p { font-size: 14px; color: var(--c-text-soft); margin: 0; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .about-grid { grid-template-columns: 1fr; } }

   ЗАГОЛОВКИ H2 НА ТЕКСТОВЫХ СТРАНИЦАХ — чистая типографика
   ============================================================ */
.about-text h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.3;
  color: var(--c-text);
  margin: 64px 0 40px;
  letter-spacing: -0.01em;
}
.about-text > p { margin-bottom: 14px; }
.about-text > p + p { margin-top: 0; }
.about-text h2:first-child { margin-top: 0; }

@media (max-width: 560px) {
  .about-text h2 {
    font-size: 19px;
    padding-bottom: 12px;
    margin: 36px 0 20px;
  }
}

/* ============================================================
   ПЕРЕРАБОТАННЫЕ ВСТРАИВАЕМЫЕ ПЛАШКИ: фото + затемнение + объём
   ============================================================ */
.inline-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  width: 300px;
  height: 300px;
  aspect-ratio: 1 / 1;
  padding: 26px;
  border-radius: var(--radius-lg);
  color: #fff; text-decoration: none;
  box-shadow:
    0 14px 32px rgba(15,33,55,0.22),
    0 4px 10px rgba(15,33,55,0.16);
  transition: transform var(--tr), box-shadow var(--tr);
  margin: 6px 0 22px 30px;
  float: right;
  isolation: isolate;
}
@media (max-width: 880px) {
  .inline-card { height: auto; aspect-ratio: auto; min-height: 220px; }
}
.inline-card--left { float: left; margin: 6px 30px 22px 0; }
.inline-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 22px 40px rgba(15,33,55,0.28),
    0 6px 14px rgba(15,33,55,0.18);
}

/* фон-картинка */
.inline-card__bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  filter: saturate(1.0);
}
/* цветная затемняющая накладка */
.inline-card__veil {
  position: absolute; inset: 0; z-index: -1;
}
/* Цвет накладки задаётся переменной — JS подставит случайный синий оттенок */
:root {
  --card-veil-1: 31, 111, 214;   /* фирменный синий по умолчанию */
  --card-veil-2: 20, 80, 175;
}
.inline-card--blue .inline-card__veil,
.inline-card--red .inline-card__veil,
.inline-card--graphite .inline-card__veil {
  background: linear-gradient(150deg,
    rgba(var(--card-veil-1), 0.96) 0%,
    rgba(var(--card-veil-2), 0.94) 100%);
}
/* лёгкая внутренняя темнота по нижнему краю для объёма */
.inline-card__veil::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.18) 100%);
  pointer-events: none;
}

.inline-card__tag {
  display: inline-block;
  font-family: var(--font-head); font-weight: 800;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #ffffff !important;
  margin-bottom: 12px;
  text-shadow:
    0 0 1px rgba(0,0,0,0.9),
    0 0 6px rgba(0,0,0,0.7),
    0 2px 8px rgba(0,0,0,0.5);
}
.inline-card__title {
  font-family: var(--font-head); font-weight: 800;
  font-size: 22px; line-height: 1.25;
  color: #ffffff !important;
  margin-bottom: 12px;
  text-shadow:
    0 0 1px rgba(0,0,0,0.9),
    0 0 8px rgba(0,0,0,0.6),
    0 2px 10px rgba(0,0,0,0.5);
}
.inline-card__text {
  font-size: 14px; line-height: 1.55;
  color: #ffffff !important;
  margin-bottom: 20px;
  text-shadow:
    0 0 1px rgba(0,0,0,0.9),
    0 0 6px rgba(0,0,0,0.6),
    0 2px 8px rgba(0,0,0,0.5);
}
.inline-card__arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  color: #ffffff !important;
  text-shadow:
    0 0 1px rgba(0,0,0,0.9),
    0 0 6px rgba(0,0,0,0.6),
    0 2px 8px rgba(0,0,0,0.5);
  transition: gap var(--tr);
}
.inline-card:hover .inline-card__arrow { gap: 11px; }

@media (max-width: 880px) {
  .inline-card, .inline-card--left {
    float: none; width: 100%; margin: 18px 0; min-height: 180px;
  }
}

/* ============================================================
   БЛОК «СВЯЗАННЫЕ РАЗДЕЛЫ» — крупные плашки с фоновыми фото
   ============================================================ */
.related-block { margin-top: 56px; }
.related-block h2 {
  font-size: 24px; margin-bottom: 22px;
}
.related-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.related-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 240px;
  padding: clamp(18px, 2vw, 28px);
  color: #fff; text-decoration: none;
  display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow:
    0 14px 32px rgba(15,33,55,0.22),
    0 4px 10px rgba(15,33,55,0.16);
  transition: transform var(--tr), box-shadow var(--tr);
  isolation: isolate;
  /* перенос длинных слов */
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
.related-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 22px 42px rgba(15,33,55,0.30),
    0 6px 14px rgba(15,33,55,0.20);
}
.related-card__bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  transform: scale(1.04);
  transition: transform 0.6s ease;
}
.related-card:hover .related-card__bg { transform: scale(1.10); }
.related-card__veil {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,16,26,0.45) 0%, rgba(8,16,26,0.75) 55%, rgba(8,16,26,0.92) 100%);
}
.related-card__title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(17px, 1.6vw, 22px);
  color: #ffffff !important;
  margin-bottom: 8px;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  text-shadow:
    0 0 1px rgba(0,0,0,0.9),
    0 0 8px rgba(0,0,0,0.6),
    0 2px 10px rgba(0,0,0,0.5);
}
.related-card__text {
  font-size: 14px; color: #ffffff !important;
  margin-bottom: 15px; line-height: 1.5;
  text-shadow:
    0 0 1px rgba(0,0,0,0.9),
    0 0 6px rgba(0,0,0,0.6),
    0 2px 8px rgba(0,0,0,0.5);
}
.related-card__arrow {
  font-family: var(--font-head); font-weight: 700; font-size: 13.5px;
  color: #ffffff !important; display: inline-flex; align-items: center; gap: 6px;
  text-shadow:
    0 0 1px rgba(0,0,0,0.9),
    0 0 6px rgba(0,0,0,0.6),
    0 2px 8px rgba(0,0,0,0.5);
  transition: gap var(--tr);
}
.related-card:hover .related-card__arrow { gap: 11px; }
@media (max-width: 1080px) { .related-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .related-grid { grid-template-columns: 1fr; } }

/* ============================================================
   БЛОК «ДОКУМЕНТЫ И РЕПУТАЦИЯ» — 4 плитки с эмблемой
   ============================================================ */
.credentials-block { margin-top: 56px; }
.credentials-block h2 {
  font-family: var(--font-head);
  font-weight: 700; font-size: 22px;
  color: var(--c-text); padding-bottom: 14px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 32px;
}
.credentials-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.credential {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}
.credential:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--c-accent); }
.credential__badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--c-accent);
  color: #fff;
  font-family: var(--font-head); font-weight: 800;
  font-size: 14px;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.credential--red .credential__badge { background: var(--c-red); }
.credential--graphite .credential__badge { background: #2c3340; }
.credential--gold .credential__badge { background: #b88a3a; }
.credential h3 {
  font-size: 16.5px; line-height: 1.3;
  margin-bottom: 10px;
}
.credential p {
  font-size: 14px; color: var(--c-text-soft);
  line-height: 1.55; margin: 0;
}

@media (max-width: 1080px) {
  .credentials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .credentials-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ПОДЗАГОЛОВКИ ВНУТРИ ТЕКСТОВОЙ СТРАНИЦЫ
   стиль О НАС / Наша миссия, но компактнее (внутри about-text)
   ============================================================ */
.text-head {
  margin: 56px 0 28px;
  max-width: 720px;
}
.text-head__tag {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 12px;
}
.text-head__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.25;
  color: var(--c-text);
  letter-spacing: -0.01em;
  margin: 0;
}
.text-head:first-child { margin-top: 0; }

@media (max-width: 560px) {
  .text-head { margin: 40px 0 22px; }
  .text-head__title { font-size: 22px; }
}

/* ============================================================
   РОТАЦИЯ ПЛАШЕК УСЛУГ (случайный показ при загрузке)
   все ссылки есть в HTML (для SEO), JS управляет видимостью
   ============================================================ */
.svc-pool .inline-card { display: none; }
.svc-pool .inline-card.is-shown { display: flex; }

/* ============================================================
   СВЕТЛЫЕ ПЛАШКИ (для страниц лицензий и вакансий)
   белый фон, тёмный текст, тонкая окантовка
   ============================================================ */
.inline-card--light {
  background: var(--c-accent);
  border: none;
  box-shadow: 0 14px 32px rgba(15,33,55,0.22), 0 4px 10px rgba(15,33,55,0.16);
  min-height: 0;
  overflow: hidden;
}
/* фоновая картинка — видимая (как на синих плашках) */
.inline-card--light .inline-card__bg {
  display: block;
  opacity: 1;
  filter: none;
}
/* синяя вуаль поверх фото — оттенок берётся из общих переменных (ротация при загрузке) */
.inline-card--light .inline-card__veil {
  display: block;
  background: linear-gradient(150deg,
    rgba(var(--card-veil-1), 0.97) 0%,
    rgba(var(--card-veil-2), 0.94) 100%);
}
.inline-card--light .inline-card__title {
  color: #ffffff !important;
  font-size: 19px;
  margin-bottom: 10px;
  position: relative; z-index: 1;
  text-shadow: 0 0 1px rgba(0,0,0,0.9), 0 0 8px rgba(0,0,0,0.6), 0 2px 10px rgba(0,0,0,0.5);
}
.inline-card--light .inline-card__text {
  color: #ffffff !important;
  margin-bottom: 18px;
  position: relative; z-index: 1;
  text-shadow: 0 0 1px rgba(0,0,0,0.9), 0 0 6px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.5);
}
.inline-card--light .inline-card__arrow {
  color: #ffffff !important;
  position: relative; z-index: 1;
  text-shadow: 0 0 1px rgba(0,0,0,0.9), 0 0 6px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.5);
}
.inline-card--light:hover {
  box-shadow: 0 22px 40px rgba(15,33,55,0.28), 0 6px 14px rgba(15,33,55,0.18);
  transform: translateY(-4px);
}

/* одинаковый размер светлых плашек */
.svc-pool--light {
  float: right;
  width: 300px;
  margin: 6px 0 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 56px; /* большой вертикальный интервал между плашками */
}
.svc-pool--light .inline-card {
  width: 100%;
  display: none;
  float: none;
  margin: 0;
}
.svc-pool--light .inline-card.is-shown { display: flex; }

@media (max-width: 880px) {
  .svc-pool--light { width: 100%; float: none; margin: 18px 0; gap: 24px; }
}

/* активный пункт верхнего меню (открыт раздел этого пункта) */
.nav__link--active { color: var(--c-accent) !important; }

.m-group__top a.m-active { color: var(--c-accent) !important; }

/* ============================================================
   ЛАЙТБОКС — увеличение фото в галерее объекта по клику
   ============================================================ */
.obj-gallery__item img { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(8,16,26,0.92);
  display: none; align-items: center; justify-content: center;
  padding: 5vh 5vw;
  opacity: 0; transition: opacity 0.25s ease;
}
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox__img {
  max-width: 92vw; max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
  cursor: default;
}
.lightbox__cap {
  position: absolute; left: 0; right: 0; bottom: 4vh;
  text-align: center; color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  pointer-events: none; padding: 0 5vw;
}
.lightbox__close {
  position: absolute; top: 20px; right: 24px;
  width: 46px; height: 46px;
  background: rgba(255,255,255,0.16);
  border: none; color: #fff; font-size: 26px; line-height: 1;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--tr);
}
.lightbox__close:hover { background: rgba(255,255,255,0.30); }

/* ============================================================
   ПУБЛИЧНЫЕ СТРАНИЦЫ ОБЪЕКТОВ (PHP)
   ============================================================ */
.obj-cat { margin-bottom: 56px; background: transparent !important; border: 0 !important; }
.obj-cat:hover { background: transparent !important; }
.obj-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.obj-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}
.obj-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.obj-card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--c-bg-soft); }
.obj-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--tr); }
.obj-card:hover .obj-card__media img { transform: scale(1.05); }
.obj-card__noimg { width: 100%; height: 100%; background: linear-gradient(135deg, #2a6fd0, #1a4f9e); display: flex; align-items: center; justify-content: center; padding: 16px; }
.obj-card__noimg span { color: rgba(255,255,255,0.95); font-family: var(--font-head); font-weight: 700; font-size: 15px; text-align: center; line-height: 1.35; }
.obj-card__body { padding: 16px 18px 18px; }
.obj-card__body h3 { font-size: 16px; font-weight: 800; margin: 0 0 6px; line-height: 1.3; }
.obj-card__cust { font-size: 13.5px; color: var(--c-text-soft); margin: 0; }

@media (max-width: 1080px) { .obj-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .obj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .obj-grid { grid-template-columns: 1fr; } }

/* страница объекта */
.obj-detail { max-width: 860px; }
.obj-props { border-collapse: collapse; margin-bottom: 12px; width: 100%; max-width: 620px; }
.obj-props th, .obj-props td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--c-border); vertical-align: top; }
.obj-props th { width: 160px; color: var(--c-text-soft); font-weight: 700; font-size: 14px; }
.obj-props td { font-weight: 600; }

.obj-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.obj-gallery__item { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/2; box-shadow: var(--shadow-sm); cursor: zoom-in; }
.obj-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.obj-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) { .obj-gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .obj-gallery { grid-template-columns: 1fr; } }

/* Кнопка «Наверх» — только в мобильной версии, появляется при прокрутке */
.to-top {
  display: none;
  position: fixed; right: 16px; bottom: 16px; z-index: 1200;
  width: 56px; height: 56px; padding: 0; border: none; border-radius: 50%;
  align-items: center; justify-content: center;
  background: var(--c-accent, #c8102e); color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
  box-shadow: 0 8px 22px rgba(15,33,55,.35);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover, .to-top:active { background: #a50d26; }
@media (max-width: 880px) { .to-top { display: flex; } }

/* Кнопки под объектом — отступ сверху, чтобы не льнули к галерее и тексту */
.obj-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
@media (max-width: 560px) {
  .obj-actions { flex-direction: column; }
  .obj-actions .btn { width: 100%; text-align: center; }
}

/* Плитки направлений (внутренние ссылки на услуги — полезно для SEO), фото-фон, сетка по 4 */
.napr-block { margin-top: 56px; }
.napr-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 14px;
}
.napr-tile {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  min-height: 240px; padding: clamp(18px, 2vw, 28px); border-radius: var(--radius-lg);
  color: #fff; text-decoration: none;
  box-shadow: 0 14px 32px rgba(15,33,55,.22), 0 4px 10px rgba(15,33,55,.16);
  transition: transform var(--tr), box-shadow var(--tr);
}
.napr-tile:hover { transform: translateY(-5px); box-shadow: 0 22px 42px rgba(15,33,55,.30), 0 6px 14px rgba(15,33,55,.20); }
.napr-tile__bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  transform: scale(1.04); transition: transform .6s ease;
}
.napr-tile:hover .napr-tile__bg { transform: scale(1.10); }
.napr-tile__veil {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,16,26,.45) 0%, rgba(8,16,26,.75) 55%, rgba(8,16,26,.92) 100%);
}
/* блок текста центрирован по плитке, а строки внутри выровнены по левому краю */
.napr-tile__body { text-align: left; }
.napr-tile__title {
  display: block;
  font-family: var(--font-head); font-weight: 800; font-size: 15px; line-height: 1.3;
  margin-bottom: 9px;
  text-shadow: 0 0 1px rgba(0,0,0,.9), 0 0 8px rgba(0,0,0,.6), 0 2px 10px rgba(0,0,0,.5);
}
.napr-tile__arrow {
  display: block;
  font-family: var(--font-head); font-weight: 700; font-size: 12.5px; opacity: .95;
  text-shadow: 0 0 1px rgba(0,0,0,.9), 0 0 6px rgba(0,0,0,.6), 0 2px 8px rgba(0,0,0,.5);
}
@media (max-width: 1080px) { .napr-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .napr-block { margin-top: 44px; }
  .napr-grid { grid-template-columns: 1fr; gap: 14px; }
  .napr-tile { min-height: 200px; }
}

/* Лайтбокс: скрываем подпись, добавляем стрелки навигации */
.lightbox__cap { display: none !important; }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff; font-size: 28px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s ease; z-index: 2;
}
.lightbox__nav:hover { background: rgba(255,255,255,.32); }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
@media (max-width: 560px) {
  .lightbox__nav { width: 42px; height: 42px; font-size: 23px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

/* шапка страницы объекта: панель свойств слева + главная картинка справа вверху */
.obj-head { display: flex; gap: 32px; align-items: flex-start; margin-bottom: 12px; flex-wrap: wrap; }
.obj-head__info { flex: 1 1 320px; min-width: 280px; }
.obj-head__cover { flex: 0 0 400px; max-width: 400px; margin-left: auto; }
.obj-head__cover img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
@media (max-width: 820px) {
  .obj-head__cover { flex-basis: 100%; max-width: 100%; margin-left: 0; order: -1; }
}

/* группировка объектов по году внутри категории */
.obj-year { margin-top: 14px; }
.obj-year__label {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--c-accent);
  margin: 26px 0 16px;
}
.obj-year__label::after { content: ""; flex: 1; height: 1px; background: var(--c-border); }

/* Качественное сглаживание при масштабировании всех изображений (убирает «лесенку») */
img {
  image-rendering: auto;
  -ms-interpolation-mode: bicubic;
}
