/* =============================================================================
   T2S Group — hero.css
   ============================================================================= */

.hero-slider-section {
  position: relative;
  height: 85vh;
  min-height: 650px;
  background: var(--color-ink);
  overflow: hidden;
}

/* ── Слайды ── */
.hero-slides-wrapper {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active { opacity: 1; z-index: 2; }

.hero-bg-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(13, 13, 13, 0.7);
}

/* ── Текст слайда ── */
.hero-slide-content {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  z-index: 3;
}

.hero-slide-content .header-container {
  width: 100%;
}

.hero-text-col {
  max-width: calc(100% - 480px);
  padding-right: 60px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--text-h1);
  line-height: 1.1;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 20px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.hero-title .accent { color: var(--color-accent); }

.hero-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: #E0DED9;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn-primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-white); }
.hero-actions .btn-primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }

/* ── Блок статистики ── */
.hero-stats-overlay {
  position: absolute;
  top: 50%; right: 0;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
  width: 100%;
}

.hero-stats-overlay .header-container { display: flex; justify-content: flex-end; }

.stats-panel {
  position: relative;
  overflow: hidden;
  pointer-events: auto;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 420px;
  flex-shrink: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  transition: border-color var(--transition), transform var(--transition);
}

.stats-panel:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.stats-panel::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 70%; height: 70%;
  background-image: url('/wp-content/uploads/2026/03/2026-03-27_13-29-41-551.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.03;
  z-index: 0;
  pointer-events: none;
}

.stats-grid, .stats-awards { position: relative; z-index: 1; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.stat-num { display: block; font-family: var(--font-display); font-weight: 400; font-size: 32px; color: var(--color-ink); line-height: 1; margin-bottom: 4px; }
.stat-num .unit { color: var(--color-accent); }
.stat-label { display: block; font-family: var(--font-body); font-size: var(--text-small); color: var(--color-mid); line-height: 1.4; }

.stats-awards { padding-top: 20px; border-top: 1px solid var(--color-border); display: flex; align-items: center; gap: 12px; }
.award-badge { background: var(--color-ink); color: var(--color-white); font-family: var(--font-body); font-weight: 600; font-size: 10px; padding: 4px 8px; border-radius: 4px; white-space: nowrap; text-transform: uppercase; flex-shrink: 0; }
.award-text { font-size: 11px; color: var(--color-mid); line-height: 1.4; }

/* ── Стрелки ── */
.slider-nav { position: absolute; top: 50%; left: 0; width: 100%; display: flex; justify-content: space-between; padding: 0 16px; transform: translateY(-50%); z-index: 20; pointer-events: none; }
.slider-arrow { pointer-events: auto; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.2); color: var(--color-white); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); backdrop-filter: blur(4px); }
.slider-arrow:hover { background: var(--color-accent); border-color: var(--color-accent); }
.slider-arrow svg { width: 22px; height: 22px; }

/* ── Адаптив ── */
@media (max-width: 1200px) {
  .slider-nav { display: none; }
}

@media (max-width: 1024px) {
  .hero-slider-section { height: auto; min-height: auto; display: flex; flex-direction: column; }
  .hero-slides-wrapper { position: relative; height: 65vh; min-height: 480px; width: 100%; }
  .hero-slide { position: absolute; height: 100%; }
  .hero-text-col { max-width: 100%; padding-right: 0; }
  
  .hero-stats-overlay { position: relative; top: auto; right: auto; transform: none; background: var(--color-mist); padding: 60px 0; width: 100%; }
  .hero-stats-overlay .header-container { justify-content: center; }
  .stats-panel { width: 100%; max-width: 480px; }
}

@media (max-width: 768px) {
  .hero-title { font-size: var(--text-h2); }
}

@media (max-width: 375px) {
  .hero-title { font-size: 28px; }
  .stats-panel { padding: 20px; }
}