/* ====== Цвета и базовые настройки ====== */
:root {
  --home-dark: #0b0f1a;
  --home-dark-2: #111826;
  --home-accent: #e52037;
  --home-accent-2: #ff6b6b;
  --home-muted: #8a94a6;
  --home-light: #ffffff;
  --home-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

html {
  scroll-behavior: smooth;
}

body {
  background: #fff;
  color: #212529;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

/* ====== Header + hero ====== */
.header-bg {
  min-height: 72vh;
}

.video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.05);
}

.video-mask {
  background: radial-gradient(80% 60% at 20% 10%, rgba(11, 15, 26, 0.372) 0%, rgba(11, 15, 26, 0.574) 60%, rgba(11, 15, 26, 0.151) 100%);
  pointer-events: none;
}

.header-main {
  padding-top: 60px;
  padding-bottom: 48px;
  max-width: 1300px;
}

.site-title {
  color: #fff;
}

/* Hero текст */
.home-hero-title {
  color: #fff;
  max-width: 700px;
  line-height: 1.2;
  text-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

.home-hero-subtitle {
  color: #eaeef6;
  max-width: 820px;
  margin-top: 12px;
  margin-bottom: 18px;
}

.home-hero-cta .btn {
  margin-right: 10px;
}

.home-btn {
  border: none;
  box-shadow: 0 12px 30px rgba(229, 32, 55, .35);
  width: 70%;
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  background-color: #e77b23;
  color: #fff;
  text-decoration: none !important;
}

.home-btn:hover {
  transform: translateY(-1px);
}

/* Хлебные крошки */
.home-breadcrumbs {
  background: linear-gradient(90deg, #f8fafc, #eef2f7);
  border-top: 1px solid #e9edf2;
  border-bottom: 1px solid #e9edf2;
}

/* Заголовки секций */
.home-section-title {
  position: relative;
  text-align: center;
  margin-bottom: 24px;
  font-weight: 700;
}

.home-section-title:after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  margin: 12px auto 0;
  background-color: #fd8522;
  border-radius: 3px;
}

/* Иконки преимуществ */
.home-ico {
  font-size: 40px;
  color: #ef7f21;
  margin-bottom: 8px;
}

/* Карточки каталога */
.home-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--home-shadow);
  transition: transform .35s ease, box-shadow .35s ease;
}

.home-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
}

.home-card-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.home-card-body {
  padding: 18px;
}

.home-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.home-list {
  padding-left: 18px;
  margin-bottom: 16px;
}

.home-card-btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  background-color: #e77b23;
  color: #fff;
  text-decoration: none !important;
}

.home-card-btn:hover {
  color: #fff;
  filter: saturate(1.05);
}

/* About */
.home-figure {
  position: relative;
}

.home-figcap {
  font-size: 12px;
  color: var(--home-muted);
  margin-top: 6px;
  text-align: center;
}

/* FAQ (кастом поверх Bootstrap collapse) */
.home-acc-item {
  border: 1px solid #e9edf2;
  border-radius: 12px;
  box-shadow: var(--home-shadow);
  margin-bottom: 12px;
  background: #fff;
}

.home-acc-btn {
  width: 100%;
  text-align: left;
  background: #fff;
  color: #111;
  font-weight: 600;
  padding: 14px 16px;
  border: none;
  outline: none;
}

.home-acc-btn:hover {
  background: #f7f9fc;
}

.home-acc-body {
  padding: 14px 16px;
  color: #333;
}

/* Контакты + форма */
.home-form .form-control {
  border-radius: 10px;
}

.home-form label {
  color: #495057;
}

.home-form .btn {
  border-radius: 12px;
}

/* Кнопка «вверх» */
.home-to-top {
  position: fixed;
  right: 20px;
  bottom: 130px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #e77b23;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 10px 26px rgba(229, 32, 55, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .3s ease;
  z-index: 999;
}

.home-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.home-to-top:hover {
  filter: saturate(1.1);
}

/* ====== Анимации появления ====== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.delay-1 {
  transition-delay: .1s;
}

.reveal.delay-2 {
  transition-delay: .2s;
}

.reveal.delay-3 {
  transition-delay: .3s;
}

.is-visible {
  opacity: 1;
  transform: none;
}

/* Адаптив */
@media (max-width: 767.98px) {
  .home-card-img {
    height: 400px;
  }

  .home-hero-title {
    font-size: 28px;
  }

  .home-hero-subtitle {
    font-size: 15px;
  }

  .header-bg {
    min-height: 85vh;
  }

  /* Мобильные отступы для hero-CTA: кнопки столбиком, равный зазор */
  .home-hero-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 8px;
  }

  .home-hero-cta .btn {
    width: 100%;
    margin-right: 0;
    /* перекрываем десктопный right-margin */
  }

  .header-main {
    padding-top: 10px;
  }

  /* Бейджи категорий: равномерные отступы и перенос строк */
  .header-main .list-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 6px;
  }

  .header-main .list-inline .list-inline-item {
    margin-right: 0 !important;
    /* отключаем стандартный отступ Bootstrap */
  }

  .header-main .list-inline .badge {
    display: inline-block;
    border-radius: 5px;
    line-height: 1.2;
    padding: 10px 14px;
    /* комфортная зона тапа */
  }
}