/* ============================================================
   HERO FULL-BLEED — альтернативный первый экран
   Юлия справа на весь фон, текст слева на тёмном overlay
   ============================================================ */

.hero-fb {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #1A2F26;
}

.hero-fb__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 42%;
  transform: scale(0.94);
  transform-origin: 70% center;
  z-index: -2;
  -webkit-mask-image:
    linear-gradient(to right, #000 0%, #000 88%, transparent 100%),
    linear-gradient(to bottom, #000 0%, #000 90%, transparent 100%);
  mask-image:
    linear-gradient(to right, #000 0%, #000 88%, transparent 100%),
    linear-gradient(to bottom, #000 0%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* Затемнение слева — усиленный градиент + размытие, чтобы текст не сливался */
.hero-fb__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg,
      rgba(15, 30, 24, 0.95) 0%,
      rgba(15, 30, 24, 0.92) 32%,
      rgba(15, 30, 24, 0.75) 50%,
      rgba(15, 30, 24, 0.35) 68%,
      rgba(15, 30, 24, 0.05) 86%,
      rgba(15, 30, 24, 0.00) 100%
    );
  backdrop-filter: blur(0px);
}

/* Дополнительный мягкий blur на левой трети — чтобы текст читался даже на светлых участках */
.hero-fb__overlay::before {
  content: "";
  position: absolute;
  inset: 0 60% 0 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  mask-image: linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
}

.hero-fb__container {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  padding-bottom: 64px;
}

.hero-fb__copy {
  max-width: 580px;
  color: #F9F4EF;
}

.eyebrow--on-dark {
  color: #E8B6A7;
  border-color: rgba(232, 182, 167, 0.4);
}

.hero-fb__title {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: #F9F4EF;
  margin: 18px 0 20px;
}

.hero-fb__title em {
  font-style: italic;
  font-weight: 400;
  color: #E8B6A7;
}

.hero-fb__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.55;
  color: rgba(249, 244, 239, 0.92);
  margin: 0 0 12px;
}

.hero-fb__subtitle strong {
  color: #F9F4EF;
  font-weight: 600;
}

.hero-fb__lead {
  font-family: 'Inter', sans-serif;
  font-size: clamp(13px, 1vw, 14.5px);
  line-height: 1.55;
  color: rgba(249, 244, 239, 0.78);
  margin: 0 0 24px;
  font-style: italic;
}

.hero-fb__lead strong {
  color: #E8B6A7;
  font-weight: 600;
}

.hero-fb__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-fb__micro {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(249, 244, 239, 0.65);
  font-family: 'Inter', sans-serif;
}

/* ============================================================
   PILLS на тёмном фоне
   ============================================================ */
.hero-fb__pills {
  list-style: none;
  padding: 0;
  margin: 18px 0 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 720px) {
  .hero-fb__pills {
    grid-template-columns: repeat(3, 1fr);
  }
}
.hero-pill--on-dark {
  background: rgba(249, 244, 239, 0.08);
  border: 1px solid rgba(249, 244, 239, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-pill--on-dark:hover {
  background: rgba(249, 244, 239, 0.12);
  border-color: rgba(249, 244, 239, 0.32);
  transform: translateY(-2px);
}
.hero-pill--on-dark .hero-pill__icon {
  color: #E8B6A7;
}
.hero-pill--on-dark .hero-pill__num {
  color: #F9F4EF;
}
.hero-pill--on-dark .hero-pill__desc {
  color: rgba(249, 244, 239, 0.72);
}
.hero-pill--on-dark.hero-pill--accent {
  background: rgba(232, 182, 167, 0.18);
  border-color: rgba(232, 182, 167, 0.45);
}
.hero-pill--on-dark.hero-pill--accent .hero-pill__icon {
  color: #F5D7CD;
}
.hero-pill--on-dark.hero-pill--accent .hero-pill__num {
  color: #F5D7CD;
}

.btn--lg {
  padding: 18px 36px;
  font-size: 16px;
}

.btn--ghost {
  background: transparent;
  color: #F9F4EF;
  border: 1px solid rgba(249, 244, 239, 0.6);
}

.btn--ghost:hover {
  background: rgba(249, 244, 239, 0.1);
  border-color: #F9F4EF;
}

.btn--ghost-on-dark {
  color: #F9F4EF;
  border-color: rgba(249, 244, 239, 0.45);
}

/* HEADER on dark */
.site-header--on-dark {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 1px solid rgba(249, 244, 239, 0.12);
  z-index: 10;
}

.site-header--on-dark .site-brand__title,
.site-header--on-dark .site-brand__sub {
  color: #F9F4EF;
}

.site-header--on-dark .site-nav a {
  color: rgba(249, 244, 239, 0.9);
}

.site-header--on-dark .site-nav a:hover {
  color: #E8B6A7;
}

.btn--on-dark {
  background: #E8B6A7;
  color: #1A2F26;
  border-color: #E8B6A7;
}

.btn--on-dark:hover {
  background: #F5D7CD;
  border-color: #F5D7CD;
}

/* ============================================================
   ADAPTIVE
   ============================================================ */

@media (max-width: 900px) {
  /* На мобиле header переезжает над фото (не поверх) */
  .site-header--on-dark {
    position: static;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
  }
  .site-header--on-dark .site-brand__title,
  .site-header--on-dark .site-brand__sub {
    color: var(--color-primary-d);
  }
  .site-header--on-dark .site-nav a {
    color: var(--color-text);
  }

  .hero-fb {
    min-height: auto;
    padding: 0;
    display: block;
  }
  /* На мобиле: фото сверху по пояс, текст ниже */
  .hero-fb__bg {
    position: relative;
    width: 100%;
    height: 58vh;
    max-height: 520px;
    object-fit: cover;
    object-position: 58% 42%;
    opacity: 1;
    transform: none;
    z-index: 0;
  }
  .hero-fb__overlay {
    position: absolute;
    inset: auto 0 0 0;
    top: 0;
    height: 58vh;
    max-height: 520px;
    background: linear-gradient(180deg,
      rgba(15, 30, 24, 0.00) 0%,
      rgba(15, 30, 24, 0.00) 70%,
      rgba(15, 30, 24, 0.40) 90%,
      rgba(15, 30, 24, 0.88) 100%
    );
  }
  .hero-fb__overlay::before { display: none; }

  .hero-fb__container {
    padding-top: 32px;
    padding-bottom: 48px;
    background: #1A2F26;
  }
  .hero-fb__copy {
    max-width: 100%;
  }
  /* Усиливаем плашки на тёмном фоне на мобиле */
  .hero-pill--on-dark {
    background: rgba(249, 244, 239, 0.12);
    border-color: rgba(249, 244, 239, 0.28);
  }
  .hero-fb__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-fb__cta .btn {
    width: 100%;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
    padding: 16px 20px;
  }
  /* На мобиле скрываем hint у кнопки чтобы влез текст */
  .btn--lg .btn__hint {
    display: block;
    font-weight: 400;
    font-size: 12px;
    opacity: 0.8;
    margin-top: 4px;
  }
}

/* Hint у CTA-кнопки — на desktop в одну строку, на mobile под основным */
.btn__hint {
  font-weight: 400;
  opacity: 0.85;
  font-size: 0.92em;
}

@media (max-width: 480px) {
  .hero-fb__title {
    font-size: 32px;
  }
}
