/* ============================================================
   hero.css — главный hero со слайдером
   ============================================================ */

.hero {
  position: relative;
  height: 92vh;
  min-height: 560px;
  max-height: 900px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

@media (min-width: 768px) {
  .hero { height: 80vh; }
}

/* ── Слайды ─────────────────────────────────────────────────── */
.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  /* Fallback-цвет если фото нет */
  background-color: #3a2e26;
}

.hero__slide.active { opacity: 1; }

/* Тёмный градиент снизу для читаемости текста */
.hero__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 14, 8, 0.88) 0%,
    rgba(20, 14, 8, 0.4) 50%,
    rgba(20, 14, 8, 0.1) 100%
  );
}

/* ── Бейдж категории (кликабельный) ─────────────────────────── */
.hero__slide-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: 32px;
}

.hero__cat-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(224, 122, 43, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 40px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--tr-fast), transform var(--tr-fast);
}

.hero__cat-link:hover {
  background: var(--c-accent);
  color: #fff;
  transform: scale(1.04);
}

/* ── Контент поверх слайдов ─────────────────────────────────── */
.hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 48px 20px 80px;
}

@media (min-width: 768px) {
  .hero__content { padding: 64px 40px 80px; }
}

.hero__content-inner {
  max-width: 680px;
}

.hero__company {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent-soft);
  margin-bottom: 12px;
}

.hero__title {
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero__title span { color: var(--c-accent-soft); }

.hero__subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.82);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ── Frosted-блок контактов (только desktop, правый верх) ────── */
.hero__contacts-glass {
  display: none;
}

@media (min-width: 1024px) {
  .hero__contacts-glass {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    top: 32px;
    right: 32px;
    z-index: 4;
    background: rgba(251, 247, 242, 0.14);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--r-md);
    padding: 20px 24px;
    min-width: 220px;
  }
}

.hero__contacts-glass .phone-main {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--tr-fast);
}

.hero__contacts-glass .phone-main:hover { color: var(--c-accent-soft); }

.hero__contacts-glass .hours {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero__contacts-glass .socials {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.hero__contacts-glass .socials a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  text-decoration: none;
  transition: background var(--tr-fast), color var(--tr-fast);
}

.hero__contacts-glass .socials a:hover {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
}

/* ── Индикаторы слайдов ─────────────────────────────────────── */
.hero__dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hero__dot {
  width: 28px; height: 3px;
  background: rgba(255,255,255,0.35);
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--tr-fast), width var(--tr);
  border: none;
  padding: 0;
}

.hero__dot.active {
  background: var(--c-accent);
  width: 48px;
}

/* ── FAB-кнопки (только mobile) ─────────────────────────────── */
.hero__fab {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  z-index: 500;
  pointer-events: none;
}

@media (min-width: 768px) {
  .hero__fab { display: none; }
}

.fab-btn {
  pointer-events: all;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: filter var(--tr-fast);
  /* env() для iPhone home bar */
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

.fab-btn:hover { filter: brightness(1.1); }

.fab-btn--call {
  background: var(--c-accent);
  color: #fff;
}

.fab-btn--tg {
  background: #2AABEE;
  color: #fff;
}
