/* NH Hero — full-bleed hero без внешних отступов, статичный, адаптивный */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&display=swap');

.nh-hero,
.nh-hero * {
  box-sizing: border-box;
}

.nh-hero {
  /* Full-bleed: на всю ширину окна независимо от родителя Elementor */
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;

  /* Фон. background-attachment специально нормальный (НЕ fixed) — fixed ломается при zoom/iOS */
  background-color: #1f2a1e;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: scroll;
  background-position: center center;

  color: #ffffff;
  overflow: hidden;
  isolation: isolate;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  display: flex;
  align-items: center;
}

/* Overlay варианты */
.nh-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.nh-hero--overlay-none::before   { background-color: transparent; }
.nh-hero--overlay-light::before  { background-color: rgba(0, 0, 0, .10); }
.nh-hero--overlay-medium::before { background-color: rgba(0, 0, 0, .25); }
.nh-hero--overlay-dark::before   { background-color: rgba(0, 0, 0, .45); }
.nh-hero--overlay-left::before   {
  background: linear-gradient(90deg, rgba(20, 35, 22, .82) 0%, rgba(20, 35, 22, .55) 35%, rgba(20, 35, 22, 0) 65%);
}

.nh-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 60px 32px;
}

.nh-hero__content {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Положение текстового блока */
.nh-hero--align-center .nh-hero__inner { display: flex; justify-content: center; }
.nh-hero--align-center .nh-hero__content {
  align-items: center;
  text-align: center;
  margin: 0 auto;
}
.nh-hero--align-right .nh-hero__inner { display: flex; justify-content: flex-end; }
.nh-hero--align-right .nh-hero__content {
  align-items: flex-end;
  text-align: right;
}

/* Brand */
.nh-hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.nh-hero__logo {
  display: inline-flex;
  width: 84px;
  height: 84px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nh-hero__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.nh-hero__brand-name {
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 46px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.1;
  color: #ffffff;
}

/* Title — две строки: жирная + тонкая. Адаптивный шрифт, чтобы каждая часть умещалась в одну строку */
.nh-hero__title {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 42px);
  line-height: 1.08;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nh-hero__title-bold,
.nh-hero__title-light {
  display: block;
  white-space: nowrap;
}
.nh-hero__title-bold  { font-weight: 800; }
.nh-hero__title-light { font-weight: 300; opacity: .95; }
.nh-hero__subtitle {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  opacity: .9;
}

/* Pillars (Природа | Наука | Современные технологии) */
.nh-hero__pillars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.nh-hero__pillar {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
}
.nh-hero__pillar:first-child { padding-left: 0; }
.nh-hero__pillar:last-child  { padding-right: 0; }

/* Вертикальный белый разделитель между pillar */
.nh-hero__pillar:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 56px;
  background-color: rgba(255, 255, 255, .55);
}

/* Иконка БЕЗ обводки — просто PNG */
.nh-hero__pillar-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
}
.nh-hero__pillar-icon--image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.nh-hero__pillar-text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  color: #ffffff;
  /* Перенос строки из JSON ("Современные\nтехнологии") отрисуется как 2 строки */
  white-space: pre-line;
  line-height: 1.25;
}
.nh-hero__pillar.is-text-only { padding: 0 22px; }
.nh-hero__pillar-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .95;
  text-align: center;
}

.nh-hero--align-left .nh-hero__pillars  { justify-content: flex-start; }
.nh-hero--align-center .nh-hero__pillars { justify-content: center; }
.nh-hero--align-right .nh-hero__pillars  { justify-content: flex-end; }

/* Metric (98% ...) — белая обводка, прозрачный фон с блюром */
.nh-hero__metric {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 26px;
  border-radius: 999px;
  background-color: transparent;
  -webkit-backdrop-filter: blur(4px) saturate(1.05);
  backdrop-filter: blur(4px) saturate(1.05);
  border: 1.5px solid rgba(255, 255, 255, .85);
  width: fit-content;
  color: #ffffff;
}
.nh-hero__metric-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nh-hero__metric-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nh-hero__metric-number {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
}
.nh-hero__metric-text {
  font-size: 13px;
  line-height: 1.35;
  color: #ffffff;
  /* перенос по \n из JSON */
  white-space: pre-line;
}
/* fallback если backdrop-filter не поддерживается */
@supports not (backdrop-filter: blur(10px)) {
  .nh-hero__metric { background-color: rgba(255, 255, 255, .06); }
}

/* CTA */
.nh-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  background-color: #9CECBF;
  color: #143822;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .01em;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
  width: fit-content;
  margin-top: 4px;
}
.nh-hero__cta:hover,
.nh-hero__cta:focus-visible {
  transform: translateY(-1px);
  background-color: #b8f4d2;
  box-shadow: 0 14px 28px rgba(156, 236, 191, .35);
  outline: none;
}
/* стрелка убрана — текст кнопки задаётся вручную в админке */

/* Тема dark — для светлого фона */
.nh-hero--theme-dark { color: #1d2d1f; }
.nh-hero--theme-dark .nh-hero__logo { background-color: rgba(20, 56, 34, .08); }
.nh-hero--theme-dark .nh-hero__pillar-icon {
  border-color: rgba(20, 56, 34, .18);
  background-color: rgba(20, 56, 34, .04);
}
.nh-hero--theme-dark .nh-hero__metric {
  background-color: rgba(20, 56, 34, .06);
  border-color: rgba(20, 56, 34, .12);
}
.nh-hero--theme-dark .nh-hero__metric-number { color: #1f7a4a; }
.nh-hero--theme-dark .nh-hero__cta { color: #ffffff; background-color: #1f7a4a; }
.nh-hero--theme-dark .nh-hero__cta:hover { background-color: #19623a; box-shadow: 0 14px 28px rgba(31, 122, 74, .3); }

/* ===== АДАПТИВ ===== */
@media (max-width: 1024px) {
  .nh-hero__inner {
    padding: 50px 24px;
  }
  .nh-hero__title    { font-size: 38px; }
  .nh-hero__subtitle { font-size: 16px; }
  .nh-hero__content  { max-width: 540px; }
}

@media (max-width: 767px) {
  .nh-hero {
    align-items: flex-end;
  }
  /* На мобильном — gradient снизу вверх, текст внизу читается на любом фоне */
  .nh-hero--overlay-left::before,
  .nh-hero--overlay-none::before {
    background: linear-gradient(180deg, rgba(20, 35, 22, 0) 25%, rgba(20, 35, 22, .82) 92%);
  }

  .nh-hero__inner {
    padding: 32px 18px 36px;
    max-width: 100%;
  }
  .nh-hero__content {
    max-width: 100%;
    gap: 14px;
  }

  .nh-hero--align-right .nh-hero__inner,
  .nh-hero--align-center .nh-hero__inner {
    justify-content: flex-start;
  }
  .nh-hero--align-right .nh-hero__content,
  .nh-hero--align-center .nh-hero__content {
    align-items: flex-start;
    text-align: left;
  }
  .nh-hero--align-center .nh-hero__pillars,
  .nh-hero--align-right .nh-hero__pillars { justify-content: flex-start; }

  .nh-hero__title    { font-size: 28px; line-height: 1.12; }
  .nh-hero__subtitle { font-size: 15px; }
  .nh-hero__brand-name { font-size: 19px; }

  .nh-hero__pillars { gap: 14px; }
  .nh-hero__pillar  { min-width: 78px; }
  .nh-hero__pillar-icon { width: 38px; height: 38px; font-size: 18px; }
  .nh-hero__pillar-text { font-size: 11px; }

  .nh-hero__metric { padding: 10px 16px; gap: 10px; }
  .nh-hero__metric-number { font-size: 26px; }
  .nh-hero__metric-text   { font-size: 12px; max-width: 150px; }

  .nh-hero__cta { padding: 12px 22px; font-size: 14px; }
}

@media (max-width: 360px) {
  .nh-hero__title { font-size: 24px; }
  .nh-hero__metric { width: 100%; justify-content: flex-start; }
}
