/* ====================================
   Основной файл стилей (Финальная версия с точным выравниванием иконок)
==================================== */
:root {
  --green-base: #138551;
  --green-bright: #189e61;
  --white-color: #ffffff;
  --text-color-muted: rgba(255, 255, 255, 0.7);
  --block-bg: rgba(255, 255, 255, 0.05);
  --block-border: rgba(255, 255, 255, 0.2);
}

/* --- ОБЩАЯ СТРУКТУРА И ФОН --- */
.hero {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
#myVideo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  z-index: -1;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(10, 25, 41, 0.9) 30%, rgba(10, 25, 41, 0.4) 100%);
  z-index: 1;
}
.hero .hero-container {
  position: relative;
  z-index: 3;
  width: 100%;
}

/* --- ЛЕВАЯ КОЛОНКА --- */
.hero-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-shadow: none;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  color: var(--white-color);
}
.hero-description {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-color-muted);
  max-width: 500px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-button {
  background-color: var(--green-base);
  color: var(--white-color);
  padding: 12px 30px;
  border-radius: 0;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-button:hover {
  background-color: var(--green-bright);
}

/* --- ПРАВАЯ КОЛОНКА: БЛОКИ --- */
.monolith-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.monolith-block {
  min-height: 220px;
  background-color: var(--block-bg);
  border: 1px solid var(--block-border);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 1.5rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition:
          transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
          background-image 0.4s ease, border-color 0.4s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- Внутренняя структура блока --- */
.monolith-content {
  display: flex;
  align-items: flex-start; /* Выравниваем по верху */
  justify-content: flex-start;
  width: 100%;
}
.monolith-icon {
  margin-right: 1.5rem;
  color: var(--white-color);
  transition: color 0.4s ease;
  flex-shrink: 0;
}
.monolith-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
  /* ФИНАЛЬНАЯ ПРАВКА: Смещаем иконку вниз для идеального выравнивания по тексту */
  position: relative;
  top: 4px;
}
.monolith-text {
  text-align: left;
}
.monolith-title {
  color: var(--white-color);
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  font-weight: 600;
  letter-spacing: auto;
  margin: 0 0 0.5rem 0;
}
.monolith-description {
  color: var(--text-color-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* --- Взаимодействие --- */
.monolith-block:hover {
  border-color: transparent;
  transform: scale(1.05);
  background-image: linear-gradient(135deg, rgba(24, 158, 97, 0.85), rgba(19, 133, 81, 0.85));
}
.monolith-block:hover .monolith-icon,
.monolith-block:hover .monolith-title,
.monolith-block:hover .monolith-description {
  color: var(--white-color);
}

/* --- СТИЛИ ДЛЯ СОЦСЕТЕЙ --- */
.hero-socials {
  position: absolute;
  top: 50%;
  left: 30px;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-socials a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  background-color: var(--block-bg);
  border: 1px solid var(--block-border);
  border-radius: 50%;
  color: var(--white-color);
  text-decoration: none;
  transition: all 0.3s ease;
}
.hero-socials a svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
}
.hero-socials a:hover {
  background-color: var(--green-base);
  border-color: var(--green-base);
  transform: translateX(5px);
}
.hero-socials a span {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--green-base);
  color: var(--white-color);
  padding: 8px 15px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}
.hero-socials a:hover span {
  left: calc(100% + 15px);
  opacity: 1;
  visibility: visible;
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 991px) {
  .hero {
    height: auto;
    padding-top: 150px; /* ИЗМЕНЕНИЕ: Увеличили отступ сверху, чтобы 'отодвинуть' контент от шапки */
    padding-bottom: 5vh;
  }
  .hero-left-col {
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .monolith-grid {
    grid-template-columns: 1fr;
  }
  .monolith-block {
    min-height: 180px;
    justify-content: flex-start;
  }
  .monolith-block:hover {
    transform: scale(1.02);
  }
  .hero-socials {
    display: none;
  }
}