/* ============================================================
   НК-Бетон - стили
   Палитра: графит + сигнальный красный (из логотипа). Стиль: производство, надежность.
   --steel/--steel-dark/--graphite - структурный графит (темные секции, тэги, ссылки);
   --accent/--accent-dark - сигнальный красный (CTA, цены, акценты).
   ============================================================ */

:root {
  --white:      #ffffff;
  --steel:      #3d4a57;   /* графит-сталь: структурный цвет */
  --steel-dark: #2c3742;
  --graphite:   #1b232d;   /* глубокий графит: самые темные акценты */
  --accent:     #cc1f3a;   /* сигнальный красный из логотипа НК-Бетон */
  --accent-dark:#a5182e;
  --ink:        #14181f;
  --ink-soft:   #3c4350;
  --gray:       #6b7280;
  --gray-line:  #e4e6ea;
  --bg:         #ffffff;
  --bg-alt:     #f4f5f6;
  --bg-deep:    #171c22;
  --surface:    #ffffff;   /* фон карточек/панелей (в темной теме темнеет) */
  --steel-txt:  var(--steel); /* структурный текст на поверхности (в темной теме светлеет) */
  --header-bg:  rgba(255, 255, 255, .97);

  --radius:     14px;
  --radius-lg:  22px;
  --shadow-sm:  0 2px 8px rgba(23, 28, 34, .05);
  --shadow-md:  0 12px 32px rgba(23, 28, 34, .09);
  --maxw:       1180px;
  --header-h:   72px;

  --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;   /* без серой вспышки при тапе на iOS/Android */
  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(--steel); 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; }
}

/* ---------- Контейнер / секции ---------- */
/* безопасные зоны (вырез/закругления экранов iPhone и пр.) */
.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: 96px 0; }
.section--alt { background: var(--bg-alt); }

.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section__tag {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--steel-txt);
  padding: 6px 14px; border-radius: 999px;
  background: rgba(61, 74, 87, .08);
  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; }

.text-gradient {
  background: linear-gradient(100deg, var(--steel) 0%, var(--accent) 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;
  white-space: nowrap;
}
.btn--lg { padding: 16px 30px; font-size: 17px; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(204, 31, 58, .2); }
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--steel-txt); border-color: rgba(61, 74, 87, .25); }
.btn--ghost:hover { background: rgba(61, 74, 87, .06); border-color: var(--steel-txt); }

/* ============================================================
   Шапка
   ============================================================ */
.header {
  position: -webkit-sticky; 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: 42px; width: auto; display: block; }
.footer__logo img { height: 46px; width: auto; display: block; }

/* Навигация (центр) */
.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(--accent); transition: width .25s ease;
}
.nav__link:hover { color: var(--ink); }
.nav__link.is-active { color: var(--steel-txt); }
.nav__link.is-active::after { width: 100%; background: var(--steel); }
.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(23, 28, 34, .45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .25s ease;
}
.nav-overlay.is-visible { opacity: 1; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; padding: 92px 0 80px; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(61, 74, 87, .12), transparent 60%),
    radial-gradient(720px 480px at 5% 115%, rgba(204, 31, 58, .09), 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: .35;
  -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: .12; }
.hero__shape--steel { width: 560px; height: 230px; top: 26px; right: -160px; background: var(--steel); transform: rotate(-16deg); }
.hero__shape--accent  { width: 440px; height: 200px; bottom: -10px; left: -150px; background: var(--accent);  transform: rotate(-16deg); }
/* диагональные триколор-полосы в углу */
.hero__stripes {
  position: absolute; top: -60px; right: -40px; width: 320px; height: 320px;
  background: repeating-linear-gradient(-45deg,
    var(--steel) 0 10px, transparent 10px 26px,
    var(--accent) 26px 36px, transparent 36px 64px);
  opacity: .14; transform: rotate(0deg);
  -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: 880px; margin: 0 auto; }
.hero__eyebrow {
  display: inline-block; font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
  padding-bottom: 4px; border-bottom: 2px solid rgba(204, 31, 58, .25);
}
.hero__title { font-size: clamp(34px, 6.2vw, 66px); font-weight: 800; line-height: 1.06; letter-spacing: -.03em; }
.hero__subtitle { margin: 26px auto 0; max-width: 640px; font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-soft); }
.hero__actions { margin-top: 38px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Строка логотипов компаний на баннере */
.hero__brands { margin-top: 56px; }
.hero__brands-label {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gray); margin-bottom: 18px;
}
.hero__logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.hero__logo {
  display: flex; align-items: center; justify-content: center;
  height: 66px; padding: 0 24px;
  background: var(--surface); border: 1px solid var(--gray-line); border-radius: 14px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hero__logo:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(61, 74, 87, .2); }
.hero__logo img { max-height: 34px; max-width: 140px; width: auto; object-fit: contain; }

/* ============================================================
   О группе
   ============================================================ */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.about__lead p { font-size: 19px; color: var(--ink-soft); }
.about__lead p + p { margin-top: 18px; }
.about__points { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.about__points li {
  background: var(--bg-alt); border: 1px solid var(--gray-line); border-radius: var(--radius);
  padding: 22px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.about__points li:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(0,57,166,.2); }
.about__point-num { font-weight: 800; color: var(--accent); font-size: 14px; letter-spacing: .08em; }
.about__points h3 { margin: 8px 0 6px; font-size: 19px; font-weight: 700; }
.about__points p { font-size: 15px; color: var(--gray); }

/* ============================================================
   Компании группы
   ============================================================ */
.companies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.company-card {
  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;
  position: relative; overflow: hidden;
}
.company-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(var(--steel), var(--accent)); transform: scaleY(0); transform-origin: top;
  transition: transform .25s ease;
}
.company-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.company-card:hover::before { transform: scaleY(1); }
.company-card__top { margin-bottom: 16px; }
.company-card__badge {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--steel-txt); background: rgba(61, 74, 87, .08); padding: 6px 12px; border-radius: 999px;
}
.company-card__name { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.company-card__desc { margin: 12px 0 22px; color: var(--ink-soft); font-size: 15.5px; flex-grow: 1; }
.company-card__link {
  font-weight: 700; color: var(--accent); font-size: 15px; display: inline-flex; align-items: center; gap: 6px;
  transition: gap .2s ease, color .2s ease;
}
.company-card__link:hover { gap: 12px; color: var(--accent-dark); }
.company-card__link--muted { color: var(--gray); font-weight: 600; }

.company-card--cta {
  background: linear-gradient(145deg, var(--steel) 0%, var(--graphite) 100%);
  color: #fff; border-color: transparent;
}
.company-card--cta::before { display: none; }
.company-card--cta .company-card__name { color: #fff; }
.company-card--cta .company-card__desc { color: rgba(255, 255, 255, .82); }
.company-card--cta .btn { align-self: flex-start; }

/* ============================================================
   Команда
   ============================================================ */
.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.team-quote { max-width: 880px; margin: 0 auto 50px; text-align: center; padding: 0 16px; }
.team-quote::before { content: '\201C'; display: block; font-family: Georgia, 'Times New Roman', serif; font-size: 68px; line-height: .7; color: var(--accent); margin-bottom: 6px; }
.team-quote p { font-size: clamp(16px, 2vw, 20px); color: var(--ink-soft); font-weight: 500; line-height: 1.55; }
.team-quote p + p { margin-top: 14px; }
.member { text-align: center; }
.member__photo {
  width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #e9ebee, #dde0e5);
  border: 1px solid var(--gray-line);
  position: relative; overflow: hidden;
}
.member__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform .35s ease;
}
.member:hover .member__photo img { transform: scale(1.04); }
.member__photo::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 5px; z-index: 1;
  background: linear-gradient(90deg, var(--steel), var(--accent));
}
.member__name { margin-top: 16px; font-size: 18px; font-weight: 700; }
.member__role { color: var(--gray); font-size: 15px; }

/* ============================================================
   Объекты - карусель
   ============================================================ */
.carousel {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  max-width: calc(var(--maxw) + 48px); margin: 0 auto;
  padding: 0 24px;
}
.carousel__viewport { flex: 1 1 auto; overflow: hidden; }
.carousel__track {
  display: flex; gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
  padding: 8px 2px 20px;
  -ms-overflow-style: none; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }

.carousel__nav {
  flex: 0 0 auto;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--gray-line); color: var(--steel-txt);
  font-size: 20px; cursor: pointer; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s, transform .15s, opacity .2s;
}
.carousel__nav:hover { background: var(--steel); color: #fff; transform: scale(1.06); }
.carousel__nav:disabled { opacity: .35; cursor: default; transform: none; background: var(--surface); color: var(--steel-txt); }

.tag {
  font-size: 12.5px; font-weight: 600; color: var(--steel-txt);
  background: rgba(61, 74, 87, .07); border: 1px solid rgba(61, 74, 87, .12);
  padding: 5px 11px; border-radius: 999px;
}

.objects__links { display: flex; gap: 26px; flex-wrap: wrap; }
.objects__links a {
  font-weight: 700; color: var(--ink); font-size: 15px;
  display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 2px solid transparent; transition: color .2s, gap .2s, border-color .2s;
}
.objects__links a:hover { color: var(--accent); gap: 10px; border-color: var(--accent); }

/* ============================================================
   Контакты
   ============================================================ */
.contacts { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: stretch; }
.contacts__info { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-content: start; }
.contacts__item { }
.contacts__label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--steel-txt); }
.contacts__value { margin-top: 6px; font-size: 17px; color: var(--ink); }
.contacts__value a { color: var(--ink); border-bottom: 1px solid transparent; transition: border-color .2s; }
.contacts__value a:hover { border-color: var(--accent); }
.contacts__value em { color: var(--gray); font-size: 14px; }
.contacts__item--wide { grid-column: 1 / -1; }
.contacts__social {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--steel-txt) !important;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(61, 74, 87, .07); border: 1px solid rgba(61, 74, 87, .14) !important;
}
.contacts__social:hover { background: rgba(61, 74, 87, .12); }

.contacts__map {
  border-radius: var(--radius-lg); overflow: hidden; min-height: 320px;
  border: 1px solid var(--gray-line);
  background: linear-gradient(135deg, #eceef1, #e0e3e8);
  display: flex; align-items: center; justify-content: center;
}
.contacts__map-placeholder { text-align: center; color: var(--gray); }
.contacts__map-placeholder strong { display: block; font-size: 22px; color: var(--ink-soft); }
.contacts__map-placeholder span { font-size: 14px; }

/* Карта Яндекса: прямой iframe (как на bp13.ru) */
.contacts__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ============================================================
   Подвал
   ============================================================ */
.footer { background: var(--bg-deep); color: #ced3da; padding: 64px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__tagline { margin-top: 14px; color: #8b9099; font-size: 15px; }
.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: #979ca5; margin-bottom: 4px; }
.footer__nav a { color: #ced3da; font-size: 15px; transition: color .2s; width: fit-content; }
.footer__nav a:hover { color: #fff; }
.footer__nav-muted { color: #979ca5; font-size: 15px; }
.footer__bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  color: #8b9099; font-size: 14px;
}

/* Правовые ссылки в нижней строке подвала */
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; order: 1; width: 100%; }
.footer__legal a { color: #8b9099; }
.footer__legal a:hover { color: #fff; }
@media (min-width: 761px) {
  .footer__legal { order: 0; width: auto; }
}

/* Наверх */
/* --cookie-h: высота баннера cookie, пока он висит внизу; ставится скриптом,
   чтобы кнопка «наверх» не оказалась под ним. Без JS переменной нет - берется 0px. */
.to-top {
  position: fixed; left: max(20px, env(safe-area-inset-left)); bottom: calc(20px + var(--cookie-h, 0px) + 62px); z-index: 80;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--steel); color: #fff; font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); cursor: pointer;
  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(--steel-dark); }

/* ============================================================
   Анимации появления (reveal)
   Скрываем элементы только если активен JS (класс .js на <html>),
   иначе контент всегда виден.
   ============================================================ */
.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;
}
.reveal.is-visible,
.reveal-group.is-visible > * { opacity: 1; transform: none; }
.reveal-group.is-visible > *:nth-child(1) { transition-delay: .04s; }
.reveal-group.is-visible > *:nth-child(2) { transition-delay: .12s; }
.reveal-group.is-visible > *:nth-child(3) { transition-delay: .20s; }
.reveal-group.is-visible > *:nth-child(4) { transition-delay: .28s; }
.reveal-group.is-visible > *:nth-child(5) { transition-delay: .36s; }
.reveal-group.is-visible > *:nth-child(6) { transition-delay: .44s; }

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

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 980px) {
  .companies { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .contacts { grid-template-columns: 1fr; }
  .contacts__map { min-height: 300px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .carousel { padding: 0 16px; gap: 8px; }

  /* Бургер-меню и выезжающая панель */
  .nav {
    position: fixed; top: 0; right: 0; z-index: 95;
    height: 100vh; height: 100dvh; width: min(340px, 86vw);
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0;
    background: var(--surface); padding: calc(var(--header-h) + 16px) 28px 28px;
    box-shadow: -12px 0 40px rgba(23, 28, 34, .18);
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    /* Прячем БЕЗ выноса за экран: панель всегда в границах вьюпорта,
       поэтому ее нельзя «достать» горизонтальным свайпом. */
    visibility: hidden; opacity: 0; pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
  }
  .nav.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
  .nav__list li { width: 100%; }
  .nav__link { display: block; width: 100%; padding: 14px 0; font-size: 19px; border-bottom: 1px solid var(--gray-line); }
  .nav__link::after { display: none; }
  .nav__cta { font-size: 15px; padding: 12px 20px; }
  .nav__cta--out { display: none; }
  .nav__cta--in { display: inline-flex; margin-top: 22px; width: 100%; }
  .burger { display: flex; }
  .logo__img { height: 38px; }
}

@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .logo__img { height: 36px; }

  .hero { padding: 56px 0 64px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__brands { margin-top: 44px; }
  .hero__logo { height: 56px; padding: 0 18px; }
  .hero__logo img { max-height: 28px; max-width: 120px; }
  .hero__stripes { width: 220px; height: 220px; }

  .carousel__nav { width: 42px; height: 42px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
  .companies, .about__points, .team, .contacts__info { grid-template-columns: 1fr; }
  .section__head { margin-bottom: 40px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .company-card, .asset-key { padding: 22px; }
  .hero__logo { height: 50px; padding: 0 14px; }
  .hero__logo img { max-height: 24px; max-width: 100px; }
  .photo-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .asset-key__val { font-size: 28px; }
}

/* ============================================================
   Многостраничные компоненты
   ============================================================ */

/* Баннер внутренних страниц */
.page-hero { position: relative; overflow: hidden; padding: 88px 0 70px; }
.page-hero__bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(760px 380px at 90% -30%, rgba(61, 74, 87, .12), transparent 60%),
    radial-gradient(560px 340px at -2% 125%, rgba(204, 31, 58, .08), transparent 60%),
    var(--bg-alt);
  border-bottom: 1px solid var(--gray-line);
}
/* фирменная сетка */
.page-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: 46px 46px; opacity: .4;
  -webkit-mask-image: radial-gradient(80% 120% at 100% 0%, #000, transparent 70%);
          mask-image: radial-gradient(80% 120% at 100% 0%, #000, transparent 70%);
}
/* геометрические фигуры */
.page-hero__shape { position: absolute; border-radius: 32px; opacity: .10; }
.page-hero__shape--a { width: 440px; height: 170px; top: 6px; right: -140px; background: var(--steel); transform: rotate(-15deg); }
.page-hero__shape--b { width: 340px; height: 150px; bottom: -50px; left: -120px; background: var(--accent); transform: rotate(-15deg); }
/* декоративный значок раздела */
.page-hero__art {
  position: absolute; top: 50%; right: clamp(20px, 7vw, 120px); transform: translateY(-50%);
  width: clamp(150px, 22vw, 250px); height: auto; color: var(--steel-txt); opacity: .09;
}
/* акценты по разделам */
.page-hero--about   .page-hero__art { color: var(--steel-txt); }
.page-hero--companies .page-hero__art { color: var(--accent); }
.page-hero--objects .page-hero__art { color: var(--steel-txt); }
.page-hero--charity .page-hero__art { color: var(--accent); }
.page-hero--contacts .page-hero__art { color: var(--steel-txt); }
.page-hero--legal   .page-hero__art { color: var(--steel-txt); }

.page-hero__crumbs { position: relative; display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--gray); }
.page-hero__crumbs a { color: var(--steel-txt); font-weight: 600; }
.page-hero__crumbs a:hover { text-decoration: underline; }
.page-hero__crumbs span { color: var(--gray); opacity: .6; }
.page-hero__title { position: relative; margin-top: 14px; font-size: clamp(30px, 5vw, 48px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.page-hero__sub { position: relative; margin-top: 14px; max-width: 680px; font-size: 18px; color: var(--ink-soft); }
@media (max-width: 760px) {
  .page-hero { padding: 60px 0 48px; }
  .page-hero__art { right: -24px; width: 150px; opacity: .07; }
}
@media (max-width: 560px) {
  .page-hero__art { display: none; }
}

/* Логотип/монограмма в карточке компании */
.company-card__logo { height: 60px; display: flex; align-items: center; margin-bottom: 18px; }
.company-card__logo img { max-height: 54px; max-width: 180px; width: auto; object-fit: contain; }
.company-card__mono {
  width: 58px; height: 58px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 21px; color: #fff; letter-spacing: .02em;
  background: linear-gradient(145deg, var(--steel), var(--accent));
}

/* Тизеры на главной */
.teasers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.teaser {
  display: flex; flex-direction: column; gap: 8px;
  padding: 30px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--gray-line); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.teaser:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.teaser__icon {
  width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--accent); background: rgba(204, 31, 58, .08); margin-bottom: 6px;
}
.teaser h3 { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.teaser p { color: var(--ink-soft); font-size: 15px; flex-grow: 1; }
.teaser__more { font-weight: 700; color: var(--steel-txt); font-size: 15px; transition: letter-spacing .2s; }
.teaser:hover .teaser__more { letter-spacing: .01em; }

/* CTA-баннер */
.cta-band { background: linear-gradient(135deg, var(--steel) 0%, var(--graphite) 100%); color: #fff; padding: 60px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.cta-band p { margin-top: 8px; color: rgba(255, 255, 255, .85); font-size: 17px; }
.btn--white { background: #fff; color: var(--steel); }
.btn--white:hover { background: #edeff2; transform: translateY(-2px); }

/* Прочее */
.section__cta { margin-top: 36px; text-align: center; }
.about__points--wide { grid-template-columns: repeat(4, 1fr); }

/* Благотворительность */
.charity-intro { max-width: 760px; margin: 0 auto 46px; text-align: center; font-size: 20px; color: var(--ink-soft); }
.charity { display: grid; gap: 28px; max-width: 920px; margin: 0 auto; }
.charity-card {
  position: relative; 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;
}
.charity-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.charity-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; z-index: 2; background: linear-gradient(var(--steel), var(--accent)); }
.charity-card__photo { width: 100%; aspect-ratio: 21 / 9; overflow: hidden; background: var(--bg-alt); }
.charity-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.charity-card:hover .charity-card__photo img { transform: scale(1.04); }
.charity-card__inner { padding: 32px 36px; }
.charity-card__head { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--gray-line); }
.charity-card__no { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.charity-card__title { margin-top: 8px; font-size: 24px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.charity-card__rows { display: grid; gap: 16px; }
.charity-card__rows > div { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: start; }
.charity-card__rows dt { font-weight: 700; color: var(--steel-txt); font-size: 15px; }
.charity-card__rows dd { color: var(--ink-soft); font-size: 16px; }

/* Адаптив компонентов */
@media (max-width: 980px) {
  .teasers { grid-template-columns: 1fr; }
  .about__points--wide { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .charity-card__inner { padding: 24px 22px; }
  .charity-card__photo { aspect-ratio: 16 / 9; }
  .charity-card__rows > div { grid-template-columns: 1fr; gap: 4px; }
  .charity-card__rows dt { color: var(--accent); }
  .cta-band__inner .btn { width: 100%; }
}
@media (max-width: 560px) {
  .about__points--wide { grid-template-columns: 1fr; }
}

/* ============================================================
   Горизонтальный таймлайн (история)
   ============================================================ */
.htl__track { gap: 0; padding: 34px 0; align-items: stretch; }
.htl-item { position: relative; flex: 0 0 clamp(220px, 24vw, 280px); min-height: 300px; scroll-snap-align: center; }
.htl-item::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 3px;
  transform: translateY(-50%); background: rgba(61, 74, 87, .18);
}
.htl-item:first-child::before { left: 50%; }
.htl-item:last-child::before { right: 50%; }
.htl-item__dot {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 18px; height: 18px; border-radius: 50%; z-index: 2;
  background: var(--surface); border: 4px solid var(--accent); box-shadow: 0 0 0 4px rgba(204, 31, 58, .12);
  transition: transform .25s ease;
}
.htl-item:hover .htl-item__dot { transform: translate(-50%, -50%) scale(1.25); }
.htl-item__card {
  position: absolute; left: 14px; right: 14px;
  background: var(--surface); border: 1px solid var(--gray-line); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.htl-item:hover .htl-item__card { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.htl-item--up .htl-item__card { bottom: calc(50% + 24px); }
.htl-item--down .htl-item__card { top: calc(50% + 24px); }
.htl-item__card::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  width: 2px; height: 16px; background: rgba(61, 74, 87, .18);
}
.htl-item--up .htl-item__card::after { bottom: -16px; }
.htl-item--down .htl-item__card::after { top: -16px; }
.htl-item__year {
  display: inline-block; font-size: 20px; font-weight: 800; color: var(--accent);
  padding-bottom: 4px; margin-bottom: 6px; border-bottom: 3px solid rgba(61, 74, 87, .25);
}
.htl-item__text { font-size: 13px; line-height: 1.45; color: var(--ink-soft); }
.htl-item--now .htl-item__card { background: linear-gradient(145deg, var(--steel), var(--graphite)); border-color: transparent; }
.htl-item--now .htl-item__year { color: #fff; border-bottom-color: rgba(255, 255, 255, .4); }
.htl-item--now .htl-item__text { color: rgba(255, 255, 255, .9); }
.htl-item--now .htl-item__dot { border-color: var(--steel-txt); box-shadow: 0 0 0 4px rgba(61, 74, 87, .15); }

/* ============================================================
   Компании - фичи
   ============================================================ */
.features { display: grid; gap: 26px; }
.feature {
  position: relative; display: grid; grid-template-columns: 320px 1fr;
  background: var(--surface); border: 1px solid var(--gray-line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .25s ease;
}
.feature:hover { box-shadow: var(--shadow-md); }
.feature::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(var(--steel), var(--accent)); z-index: 1; }
.feature__aside {
  padding: 34px; background: var(--bg-alt); border-right: 1px solid var(--gray-line);
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
}
.feature__logo { min-height: 60px; display: flex; align-items: center; }
.feature__logo img { max-height: 58px; max-width: 230px; object-fit: contain; }
.feature__mono { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 24px; color: #fff; background: linear-gradient(145deg, var(--steel), var(--accent)); }
.feature__badge { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--steel-txt); background: rgba(61, 74, 87, .08); padding: 7px 13px; border-radius: 999px; }
.feature__site { margin-top: auto; font-weight: 700; color: var(--accent); font-size: 15px; display: inline-flex; align-items: center; gap: 6px; transition: gap .2s ease; }
.feature__site:hover { gap: 10px; }
.feature__site--muted { color: var(--gray); }
.feature__body { padding: 34px 36px; }
.feature__title { font-size: 27px; font-weight: 800; letter-spacing: -.02em; }
.feature__desc { margin: 12px 0 18px; color: var(--ink-soft); font-size: 16px; }
.feature__list { display: grid; gap: 10px; }
.feature__list li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: 15px; }
.feature__list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--steel), var(--accent)); }
.feature:nth-child(even) { grid-template-columns: 1fr 320px; }
.feature:nth-child(even) .feature__aside { order: 2; border-right: none; border-left: 1px solid var(--gray-line); }
.feature:nth-child(even) .feature__body { order: 1; }
.feature:nth-child(even)::before { left: auto; right: 0; }

/* ============================================================
   Приветствие руководителя
   ============================================================ */
.greeting { display: grid; grid-template-columns: 360px 1fr; gap: 48px; align-items: start; }
.greeting__photo {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5;
  border: 1px solid var(--gray-line); box-shadow: var(--shadow-md);
  background: linear-gradient(150deg, #e9ebee, #dde0e5);
}
.greeting__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.greeting__text .section__tag { margin-bottom: 16px; }
.greeting__text p { color: var(--ink-soft); margin-bottom: 14px; font-size: 16px; }
.greeting__tagline { font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; color: var(--accent); letter-spacing: -.01em; }
.greeting__sign { font-weight: 800; color: var(--ink); margin-top: 8px; }
.greeting__sign span { display: block; color: var(--gray); font-weight: 600; font-size: 14px; margin-top: 2px; }

/* ============================================================
   Мощности и ресурсы
   ============================================================ */
.rstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 40px; }
.rstat { text-align: center; padding: 26px 18px; background: var(--surface); border: 1px solid var(--gray-line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.rstat__num { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; color: var(--steel-txt); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rstat p { margin-top: 8px; color: var(--gray); font-size: 14px; }
/* Подзаголовки внутри материальной базы */
.resources__subtitle { font-size: 21px; font-weight: 800; letter-spacing: -.01em; margin: 46px 0 18px; }
.resources__subtitle--muted { margin-top: 52px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gray); }

/* Акцент: собственный офис и склады */
.assets-key { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.asset-key {
  position: relative; overflow: hidden;
  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;
}
.asset-key::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--steel), var(--accent)); }
.asset-key:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.asset-key__icon { display: inline-flex; width: 52px; height: 52px; border-radius: 14px; align-items: center; justify-content: center; color: var(--steel-txt); background: rgba(61, 74, 87, .08); margin-bottom: 18px; }
.asset-key__icon svg { width: 28px; height: 28px; }
.asset-key__val { display: block; font-size: clamp(28px, 3.4vw, 36px); font-weight: 800; color: var(--steel-txt); letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.asset-key__name { margin-top: 8px; font-size: 16px; font-weight: 600; color: var(--ink-soft); }

/* Сетка фото-заглушек (офис / склад) */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.photo-ph {
  position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--gray-line); background: linear-gradient(135deg, #eceef1, #e0e3e8);
  display: flex; align-items: center; justify-content: center;
}
.photo-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.photo-ph:hover img { transform: scale(1.05); }
.photo-ph__label { display: inline-flex; align-items: center; gap: 8px; color: var(--gray); font-size: 13px; font-weight: 600; }
.photo-ph__label::before {
  content: '+'; display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed var(--gray); font-size: 16px; line-height: 1;
}

/* Прочие активы - фоном */
.assets-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 28px; }
.assets-list li { position: relative; padding-left: 18px; font-size: 14.5px; color: var(--gray); }
.assets-list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--gray-line); }
.assets-list b { color: var(--ink-soft); font-weight: 700; }

/* ============================================================
   Объекты - сетка с фото и фильтром
   ============================================================ */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter { font-family: inherit; font-weight: 600; font-size: 15px; padding: 9px 18px; border-radius: 999px; cursor: pointer; background: var(--surface); color: var(--ink-soft); border: 1px solid var(--gray-line); transition: all .2s ease; }
.filter:hover { border-color: var(--steel-txt); color: var(--steel-txt); }
.filter.is-active { background: var(--steel); color: #fff; border-color: var(--steel-txt); }

.objects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.object-tile { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--gray-line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.object-tile.is-hidden { display: none; }
.object-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.object-tile__photo { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #eceef1, #dcdfe4); display: flex; align-items: flex-end; padding: 14px; overflow: hidden; }
.object-tile__photo::before { content: attr(data-label); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--gray); font-size: 13px; font-weight: 600; opacity: .55; }
.object-tile__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.object-tile:hover .object-tile__photo img { transform: scale(1.05); }
.object-tile__cat { position: relative; z-index: 1; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 5px 11px; border-radius: 999px; }
.object-tile__body { display: flex; flex-direction: column; flex-grow: 1; padding: 22px; }
.object-tile__title { font-size: 19px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.object-tile__desc { margin: 8px 0 16px; color: var(--ink-soft); font-size: 14.5px; flex-grow: 1; }
.object-tile__tags { display: flex; flex-wrap: wrap; gap: 7px; }
.objects__links { margin-top: 44px; justify-content: center; }

/* Карточка-компания как ссылка (главная) */
.company-card--link { cursor: pointer; }

/* ============================================================
   Адаптив новых компонентов
   ============================================================ */
@media (max-width: 980px) {
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; }
  .feature__aside, .feature:nth-child(even) .feature__aside {
    order: 0; border-right: none; border-left: none; border-bottom: 1px solid var(--gray-line);
    flex-direction: row; align-items: center; flex-wrap: wrap; gap: 16px;
  }
  .feature:nth-child(even) .feature__body { order: 0; }
  .feature__site { margin-top: 0; margin-left: auto; }
  .greeting { grid-template-columns: 1fr; gap: 28px; max-width: 640px; margin: 0 auto; }
  .greeting__photo { max-width: 320px; }
  .rstats { grid-template-columns: repeat(2, 1fr); }
  .objects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .objects-grid { grid-template-columns: 1fr; }
  .htl-item { flex-basis: 80vw; }
  .feature__body { padding: 26px 22px; }
  .feature__aside { padding: 24px; }
}

/* ============================================================
   Контакты компаний группы
   ============================================================ */
.ccards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ccard { 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; }
.ccard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.ccard__logo { height: 58px; display: flex; align-items: center; margin-bottom: 16px; }
.ccard__logo img { max-height: 44px; max-width: 190px; object-fit: contain; }
.ccard__mono { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 19px; color: #fff; background: linear-gradient(145deg, var(--steel), var(--accent)); }
.ccard__name { font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 16px; }
.ccard__rows { display: grid; gap: 12px; }
.ccard__row { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.ccard__lbl { flex: 0 0 54px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--steel-txt); padding-top: 3px; }
.ccard__val { color: var(--ink-soft); line-height: 1.5; }
.ccard__val a { color: var(--ink); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.ccard__val a:hover { border-color: var(--accent); }

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

/* НК-Индустрия: квадратный логотип крупнее остальных, чтобы хорошо читался */
.hero__logo img[src*="bp13"]    { max-height: 52px; }
.feature__logo img[src*="bp13"] { max-height: 82px; max-width: 130px; }
.ccard__logo img[src*="bp13"]   { max-height: 56px; }
@media (max-width: 760px) {
  .hero__logo img[src*="bp13"] { max-height: 42px; }
}
@media (max-width: 560px) {
  .hero__logo img[src*="bp13"] { max-height: 38px; }
}

/* ============================================================
   Лайтбокс-галерея
   ============================================================ */
.photo-ph--zoom { cursor: pointer; }
.photo-ph__zoom {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(23, 28, 34, .55); color: #fff;
  opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.photo-ph--zoom:hover .photo-ph__zoom,
.photo-ph--zoom:focus-visible .photo-ph__zoom { opacity: 1; transform: translateY(0); }
.photo-ph__zoom svg { width: 18px; height: 18px; }

.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(8, 12, 24, .93);
  opacity: 0; transition: opacity .2s ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__stage { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; }
.lightbox__img {
  max-width: min(1100px, 92vw); max-height: 84vh; width: auto; height: auto;
  object-fit: contain; border-radius: 10px; background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}
.lightbox__cap { color: rgba(255, 255, 255, .85); font-size: 14px; text-align: center; max-width: 80vw; }
.lightbox__btn {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 30px; line-height: 1;
  transition: background .2s ease, transform .15s ease;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .26); }
.lightbox__close { top: 18px; right: 18px; font-size: 26px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__prev:hover { transform: translateY(-50%) scale(1.07); }
.lightbox__next:hover { transform: translateY(-50%) scale(1.07); }
.lightbox__counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, .8); font-size: 14px; font-weight: 600; letter-spacing: .04em;
}
@media (max-width: 560px) {
  .lightbox__btn { width: 44px; height: 44px; font-size: 24px; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
  .lightbox__close { top: 12px; right: 12px; }
}

/* ============================================================
   Метрики-доказательства (темная акцентная полоса)
   Группа в цифрах сразу под героем - «доказательства важнее обещаний».
   ============================================================ */
.metrics {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--graphite) 0%, #12161c 55%, var(--steel-dark) 145%);
  color: #fff; padding: 60px 0;
}
.metrics::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(70% 120% at 50% 0%, #000, transparent 75%);
          mask-image: radial-gradient(70% 120% at 50% 0%, #000, transparent 75%);
}
.metrics .container { position: relative; z-index: 1; }
.metrics__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.metric { position: relative; text-align: center; padding: 4px 12px; }
.metric + .metric::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 56px; background: rgba(255, 255, 255, .12);
}
.metric__val {
  display: block; font-size: clamp(40px, 5.4vw, 62px); font-weight: 800;
  line-height: 1; letter-spacing: -.03em;
  background: linear-gradient(180deg, #ffffff 0%, #cbd2dc 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  font-variant-numeric: tabular-nums;
}
.metric__label { margin-top: 14px; color: #a4aab3; font-size: 15px; font-weight: 600; }

/* ============================================================
   Бенто-сетка компетенций (доминирующий layout 2025-2026)
   ============================================================ */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 18px; }
.bento__tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 8px;
  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(61, 74, 87, .2); }
.bento__icon {
  width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  color: var(--steel-txt); background: rgba(61, 74, 87, .08); margin-bottom: 4px;
}
.bento__icon svg { width: 24px; height: 24px; }
.bento__tile h3 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.bento__tile p { color: var(--gray); font-size: 15px; }

.bento__tile--lead {
  grid-column: span 2; grid-row: span 2;
  background: linear-gradient(155deg, var(--steel) 0%, var(--graphite) 100%);
  color: #fff; border-color: transparent;
}
.bento__tile--lead:hover { transform: translateY(-5px); border-color: transparent; }
.bento__tile--lead::after {
  content: ''; position: absolute; right: -40px; bottom: -60px; width: 280px; height: 280px;
  background: repeating-linear-gradient(-45deg,
    var(--accent) 0 10px, transparent 10px 26px, #fff 26px 34px, transparent 34px 60px);
  opacity: .10; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
          mask-image: radial-gradient(closest-side, #000, transparent);
}
.bento__kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.bento__lead-title { position: relative; font-size: clamp(23px, 3vw, 33px); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; margin: 8px 0 2px; }
.bento__tile--lead p { position: relative; color: rgba(255, 255, 255, .84); font-size: 16px; max-width: 34ch; }
.bento__cta {
  position: relative; margin-top: auto; padding-top: 18px; font-weight: 700; color: #fff; font-size: 15px;
  display: inline-flex; align-items: center; gap: 7px; transition: gap .2s ease;
}
.bento__tile--lead:hover .bento__cta { gap: 12px; }

@media (max-width: 980px) {
  .metrics__grid { grid-template-columns: repeat(2, 1fr); gap: 18px 24px; }
  .metric + .metric::before { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__tile--lead { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 560px) {
  .metrics { padding: 44px 0; }
  .metrics__grid { grid-template-columns: 1fr 1fr; gap: 30px 16px; }
  .bento { grid-template-columns: 1fr; }
  .bento__tile--lead { grid-column: span 1; }
}

/* ============================================================
   Правовые страницы (политика, согласие на обработку, cookie)
   ============================================================ */
.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: 190px 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(--steel-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 h3 {
  margin-top: 28px; margin-bottom: 10px;
  font-size: 18px; font-weight: 800; color: var(--steel-txt);
}
.legal__block p { color: var(--ink-soft); }
.legal__block p + p { margin-top: 14px; }
.legal__block a { color: var(--steel-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(--accent);
}
.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(--steel); background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.legal__contact p { margin: 0; }

@media (max-width: 560px) {
  .legal__card, .legal__toc { padding: 20px; }
  .legal__req > div { grid-template-columns: 1fr; gap: 2px; }
  .legal__block { margin-top: 36px; }
}

/* ---------- Всплывашка согласия на cookie ---------- */
/* Показывается скриптом, если согласие еще не сохранено. Без JS не появляется вовсе. */
.cookie {
  /* 85: выше кнопки «наверх» (80), но ниже затемнения меню (90) и лайтбокса (1000),
     иначе при открытом мобильном меню баннер всплывает поверх затемнения. */
  position: fixed; z-index: 85;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; justify-content: center;
  opacity: 0; transform: translateY(24px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.cookie[hidden] { display: none; }
.cookie.is-visible { opacity: 1; transform: none; pointer-events: auto; }

.cookie__inner {
  width: 100%; max-width: var(--maxw);
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 20px 24px;
  background: var(--surface); border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  /* потолок высоты: на низких экранах баннер не должен съедать всю страницу */
  max-height: 70vh; max-height: 70dvh; overflow-y: auto;
}
.cookie__body { flex: 1 1 420px; min-width: 0; }
.cookie__text { font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.cookie__text a { color: var(--steel-txt); font-weight: 700; text-decoration: underline; }
.cookie__links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 9px; font-size: 13px; }
.cookie__links a { color: var(--steel-txt); font-weight: 700; }
.cookie__links a:hover { text-decoration: underline; }
.cookie__btn { flex: 0 0 auto; }

@media (max-width: 700px) {
  .cookie { bottom: max(10px, env(safe-area-inset-bottom)); left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right)); }
  .cookie__inner { padding: 16px; gap: 12px; }
  .cookie__text { font-size: 13px; line-height: 1.45; }
  .cookie__links { gap: 2px 14px; margin-top: 7px; font-size: 12px; }
  .cookie__btn { width: 100%; padding: 12px 18px; }
}

/* ============================================================
   Кросс-браузерность: фолбэки и печать
   ============================================================ */
/* Фолбэк для браузеров без aspect-ratio (Safari <15 и т.п.) */
@supports not (aspect-ratio: 1 / 1) {
  .object-tile__photo { height: 220px; }
  .photo-ph { height: 200px; }
  .member__photo { height: 240px; }
  .greeting__photo { height: 460px; }
  .charity-card__photo { height: 250px; }
}

/* Версия для печати */
@media print {
  .header, .footer, .nav, .nav-overlay, .header__actions, .to-top,
  .hero__bg, .page-hero__bg, .page-hero__art, .carousel__nav,
  .lightbox, .cta-band .btn, .hero__actions, .section__cta, .cookie { display: none !important; }
  html, body { background: #fff !important; color: #000 !important; }
  * { box-shadow: none !important; text-shadow: none !important; }
  a { color: #000 !important; text-decoration: underline; }
  .section, .hero, .page-hero { padding: 14px 0 !important; }
  .reveal, .reveal-group > *, .js .reveal, .js .reveal-group > * { opacity: 1 !important; transform: none !important; }
  .carousel__track { overflow: visible !important; flex-wrap: wrap; }
  .object-tile, .company-card, .feature, .charity-card, .asset-key, .ccard, .member,
  .bento__tile, .metric { break-inside: avoid; page-break-inside: avoid; }
  /* Темные акцентные блоки - читаемыми на белой печати */
  .metrics, .bento__tile--lead { background: #fff !important; color: #000 !important; }
  .metric__val { background: none !important; -webkit-text-fill-color: #000 !important; color: #000 !important; }
  .metric__label, .bento__kicker, .bento__tile--lead p, .bento__cta { color: #000 !important; }
  .metric + .metric::before, .bento__tile--lead::after, .metrics::after { display: none !important; }
}

/* ============================================================
   НК-Бетон: собственные компоненты
   ============================================================ */

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

/* ---------- Карточки продукции (категории) ---------- */
.prodcats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.prodcat {
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  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;
}
.prodcat::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(var(--steel), var(--accent)); transform: scaleY(0); transform-origin: top;
  transition: transform .25s ease;
}
.prodcat:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.prodcat:hover::before { transform: scaleY(1); }
.prodcat__icon {
  width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  color: var(--steel-txt); background: rgba(61, 74, 87, .08); margin-bottom: 16px;
}
.prodcat__icon svg { width: 26px; height: 26px; }
.prodcat__name { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.prodcat__desc { margin: 8px 0 16px; color: var(--ink-soft); font-size: 15px; flex-grow: 1; }
.prodcat__price { font-size: 14px; color: var(--gray); }
.prodcat__price b { color: var(--accent); font-size: 18px; font-weight: 800; }
.prodcat__link {
  margin-top: 14px; font-weight: 700; color: var(--accent); font-size: 15px;
  display: inline-flex; align-items: center; gap: 6px; transition: gap .2s ease;
}
.prodcat:hover .prodcat__link { gap: 11px; }

/* ---------- Калькулятор стоимости ---------- */
.calc-section { background: var(--bg-alt); }
.calc-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.calc-wrap__intro h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.calc-wrap__intro p { margin-top: 14px; color: var(--ink-soft); font-size: 17px; }
.calc-wrap__points { margin-top: 22px; display: grid; gap: 10px; }
.calc-wrap__points li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: 15px; }
.calc-wrap__points li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 11px; height: 11px; border-radius: 50%;
  background: linear-gradient(135deg, var(--steel), var(--accent));
}
.calc {
  background: var(--surface); border: 1px solid var(--gray-line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-md);
}
.calc__title { font-size: 18px; font-weight: 800; margin-bottom: 20px; }
.calc__field { margin-bottom: 18px; }
.calc__field label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--steel-txt); margin-bottom: 8px; }
.calc__control {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--gray-line); border-radius: var(--radius);
  background: var(--surface); transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none; appearance: none;
}
select.calc__control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%233d4a57' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 42px;
}
.calc__control:focus { outline: none; border-color: var(--steel-txt); box-shadow: 0 0 0 3px rgba(61, 74, 87, .12); }
.calc__out {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 18px;
  margin: 22px 0; padding: 20px 22px; border-radius: var(--radius);
  background: var(--graphite); color: #fff;
}
.calc__out-unit { font-size: 14px; color: #b9c2cf; }
.calc__out-unit b { color: #fff; font-weight: 700; font-size: 16px; }
.calc__out-total { font-size: 15px; color: #b9c2cf; }
.calc__out-total b {
  display: block; margin-top: 2px; font-size: clamp(28px, 4vw, 34px); font-weight: 800; line-height: 1;
  color: #fff; font-variant-numeric: tabular-nums;
}
.calc .btn { width: 100%; }
.calc__note { margin-top: 14px; font-size: 13px; color: var(--gray); line-height: 1.45; }

/* ---------- Прайс-таблица (рендерится из prices.js) ---------- */
.pricetable-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--gray-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.pricetable { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 460px; background: var(--surface); }
.pricetable caption { text-align: left; padding: 18px 22px 0; font-weight: 800; font-size: 18px; }
.pricetable th, .pricetable td { padding: 13px 22px; text-align: left; border-bottom: 1px solid var(--gray-line); }
.pricetable thead th {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--steel-txt);
  background: var(--bg-alt); position: sticky; top: 0;
}
.pricetable tbody tr:last-child td { border-bottom: none; }
.pricetable tbody tr:hover { background: var(--bg-alt); }
.pricetable__mark { font-weight: 700; color: var(--ink); }
.pricetable__class { color: var(--gray); font-size: 14px; }
.pricetable__price { font-weight: 800; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pricetable__note { margin-top: 14px; font-size: 14px; color: var(--gray); }

/* ---------- Форма заявки ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__field { display: flex; flex-direction: column; }
.form__field--wide { grid-column: 1 / -1; }
.form__label { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--steel-txt); margin-bottom: 8px; }
.form__label span { color: var(--accent); }
.form__input, .form__textarea, .form__select {
  font-family: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--gray-line); border-radius: var(--radius); background: var(--surface);
  transition: border-color .2s ease, box-shadow .2s ease; width: 100%;
}
.form__textarea { resize: vertical; min-height: 110px; }
.form__input:focus, .form__textarea:focus, .form__select:focus {
  outline: none; border-color: var(--steel-txt); box-shadow: 0 0 0 3px rgba(61, 74, 87, .12);
}
.form__input.is-invalid, .form__textarea.is-invalid { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(204, 31, 58, .12); }
/* honeypot: спрятано от людей, видно ботам */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--gray); line-height: 1.45; }
.form__consent input { margin-top: 3px; flex: 0 0 auto; width: 17px; height: 17px; accent-color: var(--accent); }
.form__consent a { color: var(--steel-txt); text-decoration: underline; }
.form__submit { justify-self: start; }
.form__status { font-size: 15px; font-weight: 600; padding: 12px 16px; border-radius: var(--radius); display: none; }
.form__status.is-ok { display: block; color: #0f6b3d; background: rgba(16, 122, 68, .1); border: 1px solid rgba(16, 122, 68, .25); }
.form__status.is-err { display: block; color: var(--accent-dark); background: rgba(204, 31, 58, .08); border: 1px solid rgba(204, 31, 58, .25); }

/* ---------- Блок «Доставка» (тизер) ---------- */
.delivery-teaser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dcard {
  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;
}
.dcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.dcard__icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(145deg, var(--steel), var(--accent)); margin-bottom: 16px; }
.dcard__icon svg { width: 26px; height: 26px; }
.dcard h3 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.dcard p { margin-top: 8px; color: var(--ink-soft); font-size: 15px; }

/* ---------- Адаптив собственных компонентов ---------- */
@media (max-width: 980px) {
  .prodcats { grid-template-columns: repeat(2, 1fr); }
  .calc-wrap { grid-template-columns: 1fr; gap: 30px; }
  .delivery-teaser { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .prodcats { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .calc { padding: 22px; }
}

/* ============================================================
   Плавающая кнопка калькулятора (FAB) + модалка
   ============================================================ */
.calc-fab {
  position: fixed; z-index: 82;
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(20px + var(--cookie-h, 0px));
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 20px; border: none; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 15px; color: #fff;
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  box-shadow: 0 10px 26px rgba(204, 31, 58, .4);
  transition: transform .15s ease, box-shadow .2s ease, bottom .3s ease;
}
.calc-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(204, 31, 58, .5); }
.calc-fab svg { width: 20px; height: 20px; flex: 0 0 auto; }

.calc-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transition: opacity .2s ease;
}
.calc-modal[hidden] { display: none; }
.calc-modal.is-open { opacity: 1; }
.calc-modal__backdrop {
  position: absolute; inset: 0; background: rgba(8, 12, 18, .6);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.calc-modal__panel { position: relative; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; background: var(--surface); border-radius: var(--radius-lg); box-shadow: 0 24px 70px rgba(0, 0, 0, .32); }
.calc-modal__panel .calc { background: none; border: none; border-radius: 0; box-shadow: none; padding: 14px 24px 26px; }
/* Вкладки калькулятора: бетон / кирпич */
.calc-tabs { display: flex; gap: 8px; padding: 18px 58px 0 24px; }
.calc-tab { flex: 1; padding: 11px 12px; border: 1px solid var(--gray-line); background: var(--surface); color: var(--steel-txt); font-family: inherit; font-weight: 700; font-size: 15px; border-radius: 999px; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.calc-tab:hover { border-color: rgba(61, 74, 87, .3); }
.calc-tab.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.calc-panel { animation: calcFade .2s ease; }
@keyframes calcFade { from { opacity: 0; } to { opacity: 1; } }
.calc-modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 38px; height: 38px; border: none; border-radius: 50%;
  background: var(--bg-alt); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.calc-modal__close:hover { background: var(--gray-line); }

@media (max-width: 560px) {
  .calc-fab { padding: 14px; }
  .calc-fab__label { display: none; }
}

/* ============================================================
   Лид-магнит (оффер + звонок)
   ============================================================ */
.leadmagnet {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; align-items: center;
  padding: 44px 48px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--graphite) 0%, var(--steel-dark) 100%); color: #fff;
}
.leadmagnet::after {
  content: ''; position: absolute; right: -60px; bottom: -80px; width: 320px; height: 320px; pointer-events: none;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 12px, transparent 12px 30px, #fff 30px 38px, transparent 38px 66px);
  opacity: .10;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent);
}
.leadmagnet__body { position: relative; }
.leadmagnet__tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: var(--accent); padding: 6px 13px; border-radius: 999px; margin-bottom: 14px;
}
.leadmagnet h2 { font-size: clamp(23px, 3vw, 31px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.leadmagnet p { margin-top: 12px; color: rgba(255, 255, 255, .82); font-size: 16px; max-width: 46ch; }
.leadmagnet__actions { position: relative; display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.leadmagnet__phone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px; border-radius: var(--radius); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
}
.leadmagnet__phone span { font-size: 13px; color: rgba(255, 255, 255, .7); }
.leadmagnet__phone b { font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.leadmagnet .btn--white { width: 100%; }

/* Компактная call-полоса (лидмагнит выше по странице) */
.callband {
  margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px;
  padding: 20px 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--gray-line);
}
.callband__text { font-size: 17px; font-weight: 700; color: var(--ink); max-width: 42ch; }
.callband__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.callband__phone {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none;
  font-size: clamp(19px, 2.4vw, 23px); font-weight: 800; letter-spacing: -.01em; color: var(--accent);
}
.callband__phone .lm-phone-ico { width: 25px; height: 25px; flex: 0 0 auto; }
.callband__phone:hover { color: var(--accent-dark); }
.callband--dark { background: linear-gradient(135deg, var(--graphite), var(--steel-dark)); border-color: transparent; }
.callband--dark .callband__text { color: #fff; }
.callband--dark .callband__phone { color: #fff; }
.callband--dark .callband__phone:hover { color: rgba(255, 255, 255, .82); }
@media (max-width: 560px) {
  .callband { padding: 20px; }
  .callband__actions { width: 100%; justify-content: space-between; }
}

@media (max-width: 760px) {
  .leadmagnet { grid-template-columns: 1fr; gap: 22px; padding: 32px 24px; }
}

/* ---------- Расширенный калькулятор: размеры и материалы ---------- */
.calc__row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.calc__row3 .calc__field { margin-bottom: 0; }
.calc__row3 label { font-size: 12px; }
.calc__reisov { margin-top: 10px; font-size: 13px; color: var(--gray); }
.calc__reisov:empty { margin: 0; }
.calc__mix-title { margin-top: 16px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--steel-txt); }
.calc__mix { margin-top: 8px; margin-bottom: 4px; display: grid; gap: 6px; }
.calc__mix li { position: relative; padding-left: 18px; font-size: 14px; color: var(--ink-soft); }
.calc__mix li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.calc__mix b { color: var(--ink); font-weight: 700; }
@media (max-width: 420px) {
  .calc__row3 { grid-template-columns: 1fr; }
}

/* ============================================================
   Гид по бетону: статья, таблица применения, FAQ
   ============================================================ */
.article { max-width: 880px; margin: 0 auto; }
.article__lead { font-size: 19px; color: var(--ink-soft); }
.article h3 { font-size: clamp(20px, 2.6vw, 25px); font-weight: 800; letter-spacing: -.01em; margin: 40px 0 14px; }
.article h3:first-child { margin-top: 0; }
.article p { color: var(--ink-soft); font-size: 16px; }
.article p + p { margin-top: 12px; }
.article__list { margin-top: 14px; display: grid; gap: 9px; }
.article__list li { position: relative; padding-left: 22px; color: var(--ink-soft); font-size: 15.5px; }
.article__list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--steel), var(--accent)); }
.article__list b { color: var(--ink); }
.article__callout {
  margin-top: 20px; padding: 18px 22px; border-left: 3px solid var(--accent);
  background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0;
}
.article__callout p { margin: 0; font-size: 15.5px; }

/* FAQ (native details/summary, без JS) */
.faq { max-width: 880px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--gray-line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq__item summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 16.5px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; font-size: 26px; font-weight: 300; line-height: 1; color: var(--accent); flex: 0 0 auto; }
.faq__item[open] summary::after { content: '\2212'; }
.faq__item summary:hover { color: var(--accent); }
.faq__item summary:focus-visible { outline: 3px solid var(--steel); outline-offset: -3px; }
.faq__answer { padding: 0 22px 20px; color: var(--ink-soft); font-size: 15.5px; }
.faq__answer p + p { margin-top: 10px; }

/* ============================================================
   Иллюстрации (рисованные SVG: миксер, завод, куб)
   ============================================================ */
.illus { max-width: 640px; margin: 0 auto; }
.illus img { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); }
.illus-band { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.illus-band__art img { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.illus-band__text h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.illus-band__text p { margin-top: 14px; color: var(--ink-soft); font-size: 17px; }
.illus-band__text .btn { margin-top: 22px; }
.illus-band--flip .illus-band__art { order: 2; }
@media (max-width: 860px) {
  .illus-band { grid-template-columns: 1fr; gap: 26px; }
  .illus-band__art { max-width: 460px; margin: 0 auto; order: -1; }
  .illus-band--flip .illus-band__art { order: -1; }
}

/* Наличие кирпича в прайс-таблице */
.pricetable__instock { color: #0f6b3d; font-weight: 700; white-space: nowrap; }

/* ============================================================
   Кирпич: галерея фото + превью паспорта качества
   ============================================================ */
.brick-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 720px; margin: 0 auto 8px; }
.brick-gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); display: block; }
@media (max-width: 560px) { .brick-gallery { gap: 12px; } }

.passport { max-width: 300px; margin-top: 18px; }
.passport a { display: block; border: 1px solid var(--gray-line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .15s ease; }
.passport a:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.passport img { width: 100%; display: block; }
.passport figcaption { margin-top: 8px; font-size: 13px; color: var(--gray); }

/* ============================================================
   Кирпич: карточки «в наличии», калькулятор, ссылка на паспорт
   ============================================================ */
.stock-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.stock-card { position: relative; display: flex; flex-direction: column; 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; }
.stock-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.stock-card__badge { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #0f6b3d; background: rgba(16, 122, 68, .1); border: 1px solid rgba(16, 122, 68, .25); padding: 5px 11px; border-radius: 999px; margin-bottom: 14px; }
.stock-card__name { font-size: 18px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; min-height: 2.4em; }
.stock-card__meta { margin-top: 6px; font-size: 14px; color: var(--gray); min-height: 1.4em; }
.stock-card__price { margin-top: 14px; font-size: 14px; color: var(--gray); }
.stock-card__price b { font-size: 30px; font-weight: 800; color: var(--accent); letter-spacing: -.02em; }
.stock-card__pallet { margin-top: 4px; font-size: 13px; color: var(--gray); }
.stock-card .btn { margin-top: auto; }
/* Карточки популярных марок бетона */
.stock-card--mark .stock-card__name { min-height: 0; }
.stock-card--mark .stock-card__name b { color: var(--accent); }
.stock-card__badge--pop { color: var(--accent); background: rgba(204, 31, 58, .08); border-color: rgba(204, 31, 58, .22); }
.stock-card__use { margin-top: 8px; margin-bottom: 16px; font-size: 13px; line-height: 1.35; color: var(--ink-soft); min-height: 2.7em; }

/* Калькулятор кирпича */
.brick-out { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin: 22px 0 6px; }
.brick-out__cell { padding: 16px 14px; border-radius: var(--radius); background: var(--graphite); color: #fff; text-align: center; }
.brick-out__cell span { display: block; font-size: 12px; color: #b9c2cf; }
.brick-out__cell b { display: block; margin-top: 5px; font-size: clamp(18px, 3vw, 23px); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .brick-out { grid-template-columns: 1fr; gap: 8px; } }

/* Ссылка на паспорт качества (в тексте) */
.passport-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--steel-txt); text-decoration: underline; text-underline-offset: 3px; }
.passport-link:hover { color: var(--accent); }

/* Компактная пара фото кирпича внутри блока (не на всю страницу) */
.brick-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.brick-duo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); display: block; }

/* ============================================================
   Плавающий стек справа: Позвонить (основной) + Калькулятор
   ============================================================ */
/* Плавающие кнопки: звонок отдельно справа, калькулятор слева */
.fab-btn {
  position: fixed; z-index: 82;
  bottom: calc(20px + var(--cookie-h, 0px));
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 20px; border: none; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 15px; text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, bottom .3s ease;
}
.fab-btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.fab-btn:hover { transform: translateY(-2px); }
.fab-btn--call { right: max(20px, env(safe-area-inset-right)); background: linear-gradient(145deg, var(--accent), var(--accent-dark)); color: #fff; box-shadow: 0 10px 24px rgba(204, 31, 58, .32); }
.fab-btn--call:hover { box-shadow: 0 14px 30px rgba(204, 31, 58, .4); }
.fab-btn--calc { left: max(20px, env(safe-area-inset-left)); background: var(--surface); color: var(--ink); border: 1px solid var(--gray-line); box-shadow: var(--shadow-md); }
.fab-btn--calc:hover { border-color: rgba(61, 74, 87, .25); }
@media (max-width: 560px) { .fab-btn { padding: 14px; } .fab-btn__label { display: none; } }

/* Лид-магнит: телефон как явная кнопка звонка (иконка слева) */
.leadmagnet__phone { flex-direction: row; align-items: center; gap: 14px; text-align: left; }
.leadmagnet__phone .lm-phone-ico { width: 30px; height: 30px; color: #fff; flex: 0 0 auto; }
.leadmagnet__phone .lm-phone-txt { display: flex; flex-direction: column; }

/* ============================================================
   Темная тема - автоматически по настройке устройства
   (prefers-color-scheme: dark). Перекрываем только переменные +
   точечно то, что захардкожено. Графитовые декоративные секции
   (--graphite/--steel-dark/--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;
    --steel-txt:  #97a3b1;   /* структурный текст (тэги, лейблы, ссылки) */
    --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);
  }
  /* «В наличии»: темно-зеленый плохо читается на темном - делаем ярче */
  .pricetable__instock { color: #43c47f; }
  .stock-card__badge { color: #43c47f; background: rgba(67, 196, 127, .12); border-color: rgba(67, 196, 127, .3); }
  /* Кнопка-призрак: рамку видно на темном фоне */
  .btn--ghost { border-color: rgba(151, 163, 177, .32); }
  .btn--ghost:hover { background: rgba(151, 163, 177, .1); border-color: var(--steel-txt); }
  /* Фото чуть приглушаем, чтобы не слепили на темном */
  .illus-band__art img, .feature__media img, .object-tile img { filter: brightness(.92); }
}

/* ============================================================
   Оффер-полоса срочности + строка почты
   ============================================================ */
/* Строка «напишите на почту» под первым экраном */
.hero__mailnote { margin-top: 16px; font-size: 14px; color: var(--ink-soft); }
.hero__mailnote a { color: var(--accent); font-weight: 600; text-decoration: underline; }

/* Оффер-полоса (красная, срочность) */
.offer-band { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; }
.offer-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; padding: 30px 0; }
.offer-band__text { max-width: 62ch; }
.offer-band__text h2 { font-size: clamp(21px, 2.6vw, 27px); font-weight: 800; letter-spacing: -.01em; }
.offer-band__text p { margin-top: 8px; color: rgba(255, 255, 255, .85); font-size: 16px; }
.offer-band__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.offer-band__phone { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: clamp(20px, 2.4vw, 25px); font-weight: 800; white-space: nowrap; letter-spacing: -.01em; }
.offer-band__phone svg { width: 26px; height: 26px; }
.offer-band .btn--white { width: auto; }

/* Пункты-галочки и светлая подпись в лид-магните (на темном фоне) */
.lm-points { margin-top: 18px; display: grid; gap: 10px; }
.lm-points li { display: flex; align-items: flex-start; gap: 10px; color: rgba(255, 255, 255, .9); font-size: 15px; }
.lm-points li svg { width: 18px; height: 18px; flex: 0 0 auto; color: #fff; margin-top: 2px; }

/* Отзывы клиентов (соцдоказательство) */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.review { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--gray-line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.review__stars { display: flex; gap: 3px; color: #f5a623; margin-bottom: 14px; }
.review__stars svg { width: 18px; height: 18px; fill: currentColor; }
.review__text { color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; flex: 1; }
.review__author { margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.review__avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--steel), var(--graphite)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; flex: 0 0 auto; }
.review__name { font-weight: 700; color: var(--ink); font-size: 15px; }
.review__meta { font-size: 13px; color: var(--gray); margin-top: 2px; }
.reviews__source { margin-top: 22px; font-size: 14px; color: var(--gray); display: flex; align-items: center; justify-content: center; gap: 8px; }
.reviews__source svg { width: 16px; height: 16px; color: #f5a623; fill: currentColor; }

/* ============================================================
   Кирпич: каталог с фото, фото в карточке наличия, документы завода
   Фотографии и данные позиций - с завода группы (СЗКИ). Цифры берутся
   из js/prices.js, в разметке их нет.
   ============================================================ */

/* --- Сетка каталога. Заголовок группы занимает всю строку сетки --- */
.bcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.bcards__group {
  grid-column: 1 / -1; margin-top: 10px; font-size: 13px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--steel-txt);
}
.bcards__group:first-child { margin-top: 0; }

.bcard {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg); padding: 18px 18px 22px;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
  scroll-margin-top: calc(var(--header-h) + 20px);   /* якорь #id не уезжает под шапку */
}
.bcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

/* Фото у позиций разной пропорции (техничные снимки с размерами) -
   поэтому фиксируем окно и вписываем целиком, а не режем по краям. */
.bcard__photo {
  background: #f7f5f3; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center;
}
.bcard__photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
@supports not (aspect-ratio: 3 / 2) { .bcard__photo { height: 180px; } }

.bcard__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.bcard__badge {
  font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  color: var(--gray); background: var(--bg-alt); border: 1px solid var(--gray-line);
  padding: 4px 10px; border-radius: 999px;
}
.bcard__badge--stock { color: #0f6b3d; background: rgba(16, 122, 68, .1); border-color: rgba(16, 122, 68, .25); }
.bcard__badge--sale  { color: var(--accent); background: rgba(204, 31, 58, .08); border-color: rgba(204, 31, 58, .22); }

.bcard__name { margin-top: 12px; font-size: 17px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.bcard__meta { margin-top: 6px; font-size: 13.5px; color: var(--gray); }
.bcard__use  { margin-top: 10px; font-size: 13.5px; line-height: 1.4; color: var(--ink-soft); flex: 1; }
.bcard__price { margin-top: 14px; font-size: 13.5px; color: var(--gray); }
.bcard__price b { font-size: 27px; font-weight: 800; color: var(--accent); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bcard__pallet { margin-top: 4px; font-size: 13px; color: var(--ink-soft); }
.bcard__pallet b { font-weight: 700; }
.bcard__code { margin-top: 8px; font-size: 11.5px; color: var(--gray); font-variant-numeric: tabular-nums; word-break: break-word; }
.bcard__cta { margin-top: 16px; }

/* --- Фото в карточке «в наличии» --- */
.stock-card--photo { padding-top: 18px; }
.stock-card__photo {
  background: #f7f5f3; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 3 / 2; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
}
.stock-card__photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
@supports not (aspect-ratio: 3 / 2) { .stock-card__photo { height: 165px; } }

/* Условное обозначение по ГОСТ - второй строкой в ячейке названия */
.pricetable__code { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 500; color: var(--gray); }

/* --- Документы завода (сертификаты, протоколы) --- */
.docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.doc {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.doc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(204, 31, 58, .35); }
.doc__icon { width: 40px; height: 40px; border-radius: var(--radius); background: var(--bg-alt); color: var(--steel-txt); display: flex; align-items: center; justify-content: center; }
.doc__icon svg { width: 21px; height: 21px; }
.doc__name { margin-top: 14px; font-size: 16.5px; font-weight: 800; line-height: 1.25; }
.doc__desc { margin-top: 7px; font-size: 14px; line-height: 1.45; color: var(--ink-soft); flex: 1; }
.doc__more { margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--accent); }

@media (prefers-color-scheme: dark) {
  .bcard__photo, .stock-card__photo { background: #f2efec; }  /* снимки на белом фоне - подложку не темним */
  .bcard__badge--stock { color: #43c47f; background: rgba(67, 196, 127, .12); border-color: rgba(67, 196, 127, .3); }
}

/* --- Ряд фотографий с подписями (завод, площадка) --- */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.shot { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-line); box-shadow: var(--shadow-sm); background: var(--bg-alt); }
.shot img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; display: block; transition: transform .4s ease; }
.shot:hover img { transform: scale(1.04); }
.shot figcaption { padding: 12px 16px; font-size: 14px; color: var(--ink-soft); background: var(--surface); }
@supports not (aspect-ratio: 4 / 3) { .shot img { height: 210px; } }
@media (prefers-color-scheme: dark) { .shot img { filter: brightness(.92); } }

/* ============================================================
   Быстрый заказ бетона (второй экран главной)
   Четыре ходовые марки: марка -> класс -> цена «от» -> для чего -> позвонить.
   Марки и цены рисует js/main.js из js/prices.js, в разметке их нет.
   ============================================================ */
.section--tight { padding: 64px 0 72px; }
.section--tight .section__head { margin-bottom: 40px; }
/* Главное в подзаголовке - доставка: выделяем, но не кричим */
.section--tight .section__lead b { color: var(--ink); font-weight: 700; }

.qmarks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.qmark {
  display: flex; flex-direction: column; text-align: center;
  background: var(--surface); border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg); padding: 26px 20px 22px;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.qmark:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(204, 31, 58, .3); }

.qmark__name { font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.qmark__name b { font-weight: 800; color: var(--accent); }
.qmark__cls { margin-top: 4px; font-size: 13.5px; color: var(--gray); }
.qmark__price { margin-top: 16px; font-size: 13.5px; color: var(--gray); }
.qmark__price b {
  display: block; margin: 2px 0; font-size: clamp(28px, 3.2vw, 34px); font-weight: 800;
  color: var(--ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1;
}
.qmark__use {
  margin-top: 14px; margin-bottom: 18px; font-size: 13.5px; line-height: 1.4;
  color: var(--ink-soft); flex: 1;
}
/* Кнопки прижаты к низу: карточки в ряду разной высоты из-за длины строки «для чего» */
.qmark__cta { margin-top: auto; width: 100%; }
.qmark__calc {
  margin-top: 10px; padding: 0; border: none; background: none; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--steel-txt);
  text-decoration: underline; text-underline-offset: 3px;
}
.qmark__calc:hover { color: var(--accent); }

.qmarks__note { margin-top: 22px; text-align: center; font-size: 14px; color: var(--gray); }
.qmarks__note a { color: var(--accent); font-weight: 600; }

/* Ниже 900px четыре карточки в ряд не читаются - раскладываем 2 x 2, потом в столбик */
@media (max-width: 900px) { .qmarks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .qmarks { grid-template-columns: 1fr; gap: 14px; } }

/* ============================================================
   Мобильные и планшеты: размер пальца и читаемость
   Проверено на 12 ширинах от 320 до 1440. Горизонтальной прокрутки нет ни на одной,
   а вот по двум вещам сайт не проходил проверку мобильной пригодности:
   ссылки-действия были ниже 40px (палец попадает мимо) и мелкий текст 11,5px.
   ============================================================ */

/* Пиксель Метрики: невидимая картинка 1x1 для тех, у кого отключен JS */
.ym-pixel { position: absolute; left: -9999px; width: 1px; height: 1px; }

@media (max-width: 900px) {
  /* Телефон - главное действие на сайте. Он должен нажиматься с первого раза. */
  .callband__phone, .offer-band__phone, .leadmagnet__phone, .contacts__value a {
    min-height: 44px; display: inline-flex; align-items: center;
  }
  /* Ссылка «Посчитать объем» в карточке марки: была высотой 22px */
  .qmark__calc { min-height: 44px; padding: 8px 4px; }
  /* «Смотреть пример паспорта» и подобные ссылки-строки */
  .passport-link, .qmarks__note a, .pricetable__note a, .article__list a {
    display: inline-block; padding: 10px 0; min-height: 40px;
  }
  /* Хлебные крошки и ссылки подвала: разводим по вертикали, чтобы не слипались */
  .page-hero__crumbs a { display: inline-block; padding: 10px 0; min-height: 40px; }
  .footer__nav a, .footer__legal a, .cookie__links a {
    display: inline-block; padding: 9px 0; min-height: 40px;
  }
  /* Кнопка-призрак внутри текста (гид по бетону) была 35px */
  .article .btn, .legal .btn { min-height: 44px; }
}

/* Ничего мельче 12px на сенсорных экранах: проверка мобильной пригодности считает
   такой текст нечитаемым. Задеты были плашки и обозначение по ГОСТ в карточке кирпича.
   Порог 900px, а не 480px: на планшете эти же карточки и тот же мелкий шрифт. */
@media (max-width: 900px) {
  .bcard__badge, .bcard__code, .pricetable__code, .stock-card__badge { font-size: 12px; }
  .bcard__pallet, .stock-card__pallet, .footer__nav-muted { font-size: 13px; }
}

/* ============================================================
   Калькулятор доставки и география (страница «Доставка»)
   Цифры берутся из прайса - в разметке их нет.
   ============================================================ */
.dcalc {
  margin-top: 28px; background: var(--surface); border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm);
}
.dcalc__title { font-size: clamp(19px, 2.2vw, 23px); font-weight: 800; letter-spacing: -.01em; }
.dcalc__lead { margin-top: 8px; font-size: 15px; color: var(--gray); }
.dcalc__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 18px; margin-top: 18px; }
.dcalc__total { margin-top: 16px; font-size: 17px; color: var(--ink-soft); }
.dcalc__total b { font-size: clamp(22px, 3vw, 28px); font-weight: 800; color: var(--accent); letter-spacing: -.02em; }
.dcalc__note { margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: var(--gray); }
.dcalc .btn { margin-top: 18px; }
.calc__hint { font-weight: 400; color: var(--gray); }

.geo { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.geo__card {
  background: var(--surface); border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.geo__card--accent { border-color: rgba(204, 31, 58, .3); }
.geo__title { font-size: 17.5px; font-weight: 800; letter-spacing: -.01em; }
.geo__desc { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--ink-soft); flex: 1; }
.geo__card .btn { margin-top: 18px; align-self: flex-start; }

/* Ссылка-действие внутри предложения (например «воспользуйтесь калькулятором»).
   Раньше там стояла кнопка с инлайновым стилем: посреди строки она смотрелась
   инородно и на телефоне была высотой 35px - палец попадал мимо. Ссылка в тексте
   такой проблемы не создает: она наследует строку. */
.textlink {
  color: var(--accent); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
  background: none; border: none; padding: 0; font: inherit; cursor: pointer;
}
.textlink:hover { color: var(--accent-dark); }
