/**
 * BORMASH hero — Industrial Premium Hybrid (графит / сталь + золото акцентом).
 */
.bormash-hero {
  --bh-black: #0f1113;
  --bh-graphite: #0b0d0f;
  --bh-panel: #1a1d20;
  --bh-steel: #3a4048;
  --bh-text: #ffffff;
  --bh-dim: #b0b3b8;
  --bh-gold-hi: #e6cc73;
  --bh-gold: #d6b55a;
  --bh-gold-deep: #b7923a;
  --bh-btn-text: #1a1d20;
  --bh-line: #2a2e33;
  --bh-glow: rgba(214, 181, 90, 0.08);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  min-height: min(78vh, 720px);
  padding: clamp(32px, 7vw, 72px) clamp(18px, 4vw, 28px) clamp(40px, 9vw, 80px);
  color: var(--bh-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bh-black);
  box-sizing: border-box;
}

.bormash-hero *,
.bormash-hero *::before,
.bormash-hero *::after {
  box-sizing: border-box;
}

/* --- Atmosphere --- */
.bormash-hero__stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Фото-баннер (Pic/banners-industrial → static) + градиент чёрный → прозрачный слева */
.bormash-hero__photoLayer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bormash-hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 42%;
  display: block;
}

/* Чистый баннер без вшитого текста — нейтральное кадрирование */
.bormash-hero--with-banner .bormash-hero__photo {
  object-position: 58% 42%;
  transform: none;
}

.bormash-hero__photoScrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* ~50–60% чёрного на весь кадр + усиление слева под текст */
  background:
    linear-gradient(
      100deg,
      rgba(0, 0, 0, 0.62) 0%,
      rgba(0, 0, 0, 0.52) 28%,
      rgba(0, 0, 0, 0.38) 52%,
      rgba(0, 0, 0, 0.22) 100%
    ),
    rgba(0, 0, 0, 0.52);
}

.bormash-hero--with-banner .bormash-hero__photoScrim {
  /* Светлый первый экран: затемнение только у края под текст, центр/право кадра почти без маски */
  background:
    linear-gradient(
      100deg,
      rgba(0, 0, 0, 0.38) 0%,
      rgba(0, 0, 0, 0.14) 28%,
      rgba(0, 0, 0, 0.04) 52%,
      transparent 78%
    ),
    rgba(0, 0, 0, 0.06);
}

.bormash-hero--with-banner .bormash-hero__void {
  opacity: 0;
}

/* Декоративные слои не «гасят» фото на баннере */
.bormash-hero--with-banner .bormash-hero__grain,
.bormash-hero--with-banner .bormash-hero__rails {
  opacity: 0;
}

.bormash-hero--with-banner .bormash-hero__hotspot {
  opacity: 0;
}

.bormash-hero__void {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 100% 70% at 85% 35%, rgba(72, 78, 88, 0.1) 0%, transparent 52%),
    radial-gradient(ellipse 80% 55% at 10% 85%, rgba(95, 105, 118, 0.2) 0%, transparent 55%),
    linear-gradient(168deg, #121518 0%, var(--bh-black) 40%, #08090a 100%);
}

.bormash-hero__grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bormash-hero__rails {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0.14;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 71px,
      rgba(255, 255, 255, 0.06) 71px,
      rgba(255, 255, 255, 0.06) 72px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 71px,
      rgba(255, 255, 255, 0.04) 71px,
      rgba(255, 255, 255, 0.04) 72px
    );
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 20%, transparent 75%);
}

.bormash-hero__hotspot {
  position: absolute;
  z-index: 5;
  width: min(90vw, 620px);
  height: min(90vw, 620px);
  right: -18%;
  top: 50%;
  transform: translateY(-52%);
  border-radius: 50%;
  background: radial-gradient(
    circle at 42% 42%,
    rgba(120, 128, 140, 0.1) 0%,
    transparent 62%
  );
  filter: blur(3px);
}

/* С баннером инструмент уже в кадре — убираем дублирующий SVG-блок */
.bormash-hero--with-banner .bormash-hero__showcase {
  display: none;
}

.bormash-hero--with-banner .bormash-hero__layout {
  grid-template-columns: minmax(0, min(44rem, 100%));
  justify-items: start;
  align-items: center;
}

.bormash-hero--with-banner .bormash-hero__body {
  display: flex;
  align-items: center;
  min-height: min(62vh, 560px);
}

.bormash-hero__hl-accent {
  color: var(--bh-text);
  font-weight: 800;
}

.bormash-hero__lede-accent {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

/* --- Content --- */
.bormash-hero__body {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
}

.bormash-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.bormash-hero__intro {
  margin: 0;
  padding-left: clamp(0px, 2vw, 8px);
  border-left: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 2px 0 0 rgba(0, 0, 0, 0.25);
}

.bormash-hero--with-banner .bormash-hero__intro {
  border-left-color: rgba(255, 255, 255, 0.18);
}

.bormash-hero__rule {
  display: block;
  width: 40px;
  height: 2px;
  margin-bottom: clamp(16px, 2.8vw, 22px);
  background: rgba(182, 190, 202, 0.45);
  border-radius: 1px;
}

.bormash-hero--with-banner .bormash-hero__rule {
  background: rgba(255, 255, 255, 0.35);
}

.bormash-hero__headline {
  margin: 0 0 clamp(14px, 2.4vw, 22px);
  font-weight: 800;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.032em;
  color: var(--bh-text);
  text-transform: none;
  max-width: 22ch;
}

.bormash-hero--with-banner .bormash-hero__headline,
.bormash-hero--with-banner .bormash-hero__lede {
  text-shadow:
    0 1px 14px rgba(0, 0, 0, 0.55),
    0 1px 3px rgba(0, 0, 0, 0.75);
}

.bormash-hero__lede {
  margin: 0 0 clamp(28px, 4.8vw, 40px);
  max-width: 36ch;
  font-size: clamp(0.95rem, 2vw, 1.12rem);
  line-height: 1.55;
  font-weight: 400;
  color: rgba(214, 218, 224, 0.92);
}

.bormash-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: center;
}

.bormash-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 1px;
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease;
}

.bormash-hero__btn--solid {
  color: var(--bh-btn-text);
  background: var(--bh-gold);
  border: 1px solid var(--bh-gold-deep);
  box-shadow: none;
  background-image: none;
}

.bormash-hero__btn--solid:hover {
  background: var(--bh-gold-hi);
  border-color: rgba(183, 146, 58, 0.68);
  box-shadow: none;
}

.bormash-hero__btn--solid:active {
  background: var(--bh-gold-deep);
}

.bormash-hero__btn--solid:focus-visible {
  outline: 2px solid var(--bh-gold-hi);
  outline-offset: 3px;
}

.bormash-hero__btn--wire {
  color: rgba(255, 255, 255, 0.92);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: none;
}

.bormash-hero__btn--wire:hover {
  border-color: rgba(255, 255, 255, 0.48);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.bormash-hero__btn--wire:focus-visible {
  outline: 2px solid var(--bh-gold);
  outline-offset: 3px;
}

/* --- Tool --- */
.bormash-hero__showcase {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: min(52vw, 420px);
}

.bormash-hero__bezel {
  position: absolute;
  inset: 8% 4% 4% 12%;
  border: 1px solid rgba(182, 190, 202, 0.14);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.035) 0%, transparent 42%);
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.5),
    0 24px 80px rgba(0, 0, 0, 0.55);
}

.bormash-hero__toolSlot {
  position: relative;
  width: min(108%, 640px);
  margin-right: -4%;
  filter: drop-shadow(0 32px 56px rgba(0, 0, 0, 0.75));
}

.bormash-hero__toolSlot::before {
  content: "";
  position: absolute;
  inset: -8% -6% 10% 40%;
  z-index: -1;
  background: radial-gradient(ellipse 70% 55% at 70% 45%, rgba(100, 108, 118, 0.12), transparent 70%);
  pointer-events: none;
}

.bormash-hero__toolImg {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .bormash-hero {
    padding: clamp(20px, 5vw, 36px) clamp(16px, 4.5vw, 20px) clamp(32px, 8vw, 56px);
  }

  .bormash-hero--with-banner .bormash-hero__photo {
    /* Сдвиг кадра: больше тёмной зоны слева/сверху, меньше серебра под заголовком */
    object-position: 42% 28%;
    transform: none;
  }

  /* Scrim без отдельной «мобильной» версии — иначе при сужении экрана картинка визуально темнела */

  .bormash-hero--with-banner .bormash-hero__headline,
  .bormash-hero--with-banner .bormash-hero__lede {
    text-shadow:
      0 1px 10px rgba(0, 0, 0, 0.5),
      0 1px 3px rgba(0, 0, 0, 0.7);
  }

  .bormash-hero--with-banner .bormash-hero__headline {
    margin-bottom: clamp(10px, 2.4vw, 14px);
  }

  .bormash-hero--with-banner .bormash-hero__lede {
    margin-bottom: clamp(16px, 4vw, 20px);
  }

  .bormash-hero--with-banner .bormash-hero__body {
    min-height: min(72vh, 580px);
    /* Текст выше — не наезжает на светлый инструмент внизу кадра */
    align-items: flex-start;
    padding-top: clamp(28px, 9vh, 64px);
    padding-bottom: clamp(20px, 6vw, 32px);
  }

  .bormash-hero__layout {
    grid-template-columns: 1fr;
    gap: clamp(20px, 5vw, 32px);
  }

  .bormash-hero__intro {
    order: 2;
    text-align: center;
    border-left: none;
    border-top: 2px solid rgba(255, 255, 255, 0.12);
    padding-left: 0;
    padding-top: clamp(20px, 4vw, 28px);
    box-shadow: none;
  }

  .bormash-hero--with-banner .bormash-hero__intro {
    text-align: left;
    order: 1;
    border-left: 2px solid rgba(255, 255, 255, 0.16);
    border-top: none;
    padding-left: clamp(18px, 4.5vw, 24px);
    padding-right: clamp(8px, 2vw, 12px);
    padding-top: clamp(8px, 2vw, 14px);
    padding-bottom: clamp(8px, 2vw, 12px);
    box-shadow: inset 2px 0 0 rgba(0, 0, 0, 0.2);
    margin-right: 0;
  }

  .bormash-hero__rule {
    margin-left: auto;
    margin-right: auto;
  }

  .bormash-hero--with-banner .bormash-hero__rule {
    margin-left: 0;
  }

  .bormash-hero__lede {
    margin-left: auto;
    margin-right: auto;
  }

  .bormash-hero--with-banner .bormash-hero__lede {
    margin-left: 0;
    margin-right: 0;
    max-width: 38ch;
  }

  .bormash-hero__buttons {
    justify-content: center;
  }

  .bormash-hero--with-banner .bormash-hero__buttons {
    justify-content: flex-start;
  }

  .bormash-hero__showcase {
    order: 1;
    justify-content: center;
    min-height: 220px;
    padding-top: 8px;
  }

  .bormash-hero__toolSlot {
    width: min(100%, 420px);
    margin-right: 0;
  }

  .bormash-hero__bezel {
    inset: 10% 12% 8% 12%;
  }

  .bormash-hero__hotspot {
    right: -25%;
    top: 22%;
    transform: none;
  }
}

@media (max-width: 420px) {
  .bormash-hero {
    /* Не обрубать первый экран на коротких мобильных */
    min-height: min(70vh, 640px);
    padding: 20px 16px clamp(28px, 8vw, 40px);
  }

  .bormash-hero--with-banner .bormash-hero__body {
    min-height: min(64vh, 520px);
  }

  .bormash-hero__btn {
    width: 100%;
    max-width: 320px;
  }

  .bormash-hero__buttons {
    flex-direction: column;
  }
}

/* static-revision: 20260417indProcess */
