/* Плавный скролл по якорям (если нужен по всей странице) */
html {
  scroll-behavior: smooth;
}

/* Переменные */
:root {
  --ig1:#feda75;
  --ig2:#fa7e1e;
  --ig3:#d62976;
  --ig4:#962fbf;
  --ig5:#4f5bd5;
  --muted:#555;
}

/* =====================================================
   HERO: ЛЕВЫЙ СЛАЙДЕР + 2 КАРТОЧКИ СПРАВА
   ===================================================== */

/* Общий фон блока – инста-градиент */
.hero-shell {
  background: linear-gradient(135deg,
    var(--ig1),
    var(--ig2),
    var(--ig3),
    var(--ig4),
    var(--ig5)
  );
  background-size: 300% 300%;
  animation: ig-bg 14s ease infinite;
  padding: 32px 16px;
}

@keyframes ig-bg {
  0%{background-position:0% 50%;}
  50%{background-position:100% 50%;}
  100%{background-position:0% 50%;}
}

/* Внутренний грид-лейаут */
.hero-shell__inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 72px 40px;
  display: grid;
  grid-template-columns: minmax(0,2.4fr) minmax(0,1.1fr);
  gap: 24px;
  align-items: stretch; /* растягиваем обе колонки по высоте */
}

/* Обёртка левого блока, чтобы не вылезала из грида */
.hero-main {
  min-width: 0;
}

/* Левый слайдер */
.hero-main-slider {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  

  width: 100%;
  height: 100%;
  min-height: 340px;
}

/* чуть увеличим высоту на больших десктопах */
@media (min-width: 1200px) {
  .hero-main-slider {
    min-height: 410px;
  }
}
@media (min-width: 1440px) {
  .hero-main-slider {
    min-height: 460px;
  }
}

/* Слайды поверх друг друга */
.hero-main-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .45s ease, transform .45s ease;
  pointer-events: none;
}

.hero-main-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 1;
}

/* Фон-картинка */
.hero-main-slide__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Тёмный градиент слева */
.hero-main-slide__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(0,0,0,.92) 0%,
    rgba(0,0,0,.78) 32%,
    rgba(0,0,0,0) 70%
  );
}

/* Контент внутри слайда */
.hero-main-slide__content {
  position: absolute;
  left: 40px;
  top: 40px;
  bottom: 40px;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  color: #fff;
}

.hero-kicker {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #facc15;
}

.hero-title {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 900;
}

.hero-sub {
  font-size: 15px;
  color: #e5e7eb;
}

/* Кнопки */
.hero-main-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.hero-main-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

.hero-main-btn:hover {
  transform: translateY(-1px);
  background: #f3f4f6;
  box-shadow: 0 16px 40px rgba(0,0,0,.55);
}

.hero-main-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #e5e7eb;
  text-decoration: none;
}

.hero-main-link i {
  width: 18px;
  height: 18px;
}

/* Мини-доверие */
.hero-main-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.hero-main-avatars {
  display: flex;
}

.hero-main-avatars img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #111827;
  margin-left: -8px;
  box-shadow: 0 0 0 2px rgba(0,0,0,.6);
}

.hero-main-avatars img:first-child {
  margin-left: 0;
}

.hero-main-meta__text {
  font-size: 13px;
  color: #e5e7eb;
}

/* Контролы */
.hero-main-controls {
  position:absolute;
  right:20px;
  bottom:20px;
  display:flex;
  align-items:center;
  gap:8px;
  background:rgba(0,0,0,.55);
  border-radius:999px;
  padding:4px 6px;
  backdrop-filter:blur(18px);
  z-index: 5;              /* 🔥 ВАЖНО: контролы выше слайдов */
}


.hero-main-arrow {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.06);
  color: #f9fafb;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}

.hero-main-arrow i {
  width: 18px;
  height: 18px;
}

.hero-main-arrow:hover {
  background: rgba(255,255,255,.18);
  transform: translateY(-1px);
}

.hero-main-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px;
}

.hero-main-indicator__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #facc15;
  box-shadow: 0 0 0 4px rgba(250,204,21,.25);
}

.hero-main-indicator__text {
  font-size: 12px;
  color: #e5e7eb;
}

/* Правая колонка */
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.hero-side-card {
  border-radius: 24px;
  padding: 18px 18px 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 10px;
  overflow: hidden;
  position: relative;
  color: #f9fafb;
  flex: 1;
  min-height: 0;
}

/* Верхняя/нижняя карточки */
.hero-side-card--red {
  background: radial-gradient(circle at 20% 0%, #f97316, #991b1b 60%, #111827 100%);
}

.hero-side-card--blue {
  background: radial-gradient(circle at 20% 0%, #38bdf8, #1f2937 60%, #020617 100%);
}

/* Контент в карточке */
.hero-side-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.hero-side-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,.8);
  font-size: 11px;
  font-weight: 700;
}

.hero-side-card h3 {
  font-size: 16px;
  font-weight: 800;
}

.hero-side-card p {
  font-size: 13px;
  color: #e5e7eb;
}

/* Картинка справа */
.hero-side-card__media {
  flex-shrink: 0;
  width: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.hero-side-card__media img {
  width: 120px;
  height: auto;
  object-fit: contain;
  transform: translateY(6px);
}

/* Адаптив: планшет */
@media (max-width: 1024px) {
  .hero-shell__inner {
    grid-template-columns: 1.7fr 1.1fr;
    padding: 56px 24px;
  }
}

/* Адаптив: мобильный */
@media (max-width: 768px) {
  .hero-shell {
    padding: 65px 0px 0px;
  }

  .hero-shell__inner {
    grid-template-columns: 1fr;
    padding: 40px 10px 10px;
    gap: 18px;
  }

  .hero-main-slider {
    height: auto;
    aspect-ratio: 4 / 5;
    min-height: 300px;
  }

  .hero-main-slide__content {
    left: 18px;
    right: 18px;
    top: 20px;
    bottom: 22px;
    max-width: none;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-sub {
    font-size: 14px;
  }

  .hero-main-controls {
    right: 14px;
    bottom: 14px;
  }

  .hero-side {
    height: auto;
  }
  .hero-side-card {
    flex: none;
    min-height: auto;
    padding: 16px;
  }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
  .hero-main-slide__content {
    gap: 10px;
  }
  .hero-title {
    font-size: 22px;
  }
  .hero-main-meta__text {
    font-size: 12px;
  }
  .hero-side-card__media {
    width: 90px;
  }
  .hero-side-card__media img {
    width: 90px;
  }
}

/* =====================================================
   METRICS (игристое стекло, светлая тема)
   ===================================================== */

.ig-metrics {
  max-width: 1100px;
  margin: 26px auto 10px;
  padding: 0 14px 40px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
}

.metric {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: rgba(255,255,255,.80);
  backdrop-filter: blur(12px) saturate(140%);
  border-radius: 18px;
  padding: 18px 16px 20px;
  box-shadow:
    0 12px 30px rgba(0,0,0,.10),
    inset 0 0 0 1px rgba(255,255,255,.7);
  transition: transform .2s ease, box-shadow .25s ease, translate .2s ease;
}

.metric:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(0,0,0,.16);
}

.m-ico {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.16);
  animation: mfloat 4.5s ease-in-out infinite;
}

.m-ico i {
  width: 22px;
  height: 22px;
  color: #fff;
}

.m-ico--1 { background: linear-gradient(135deg,#22c55e,#00e4a8); }
.m-ico--2 { background: linear-gradient(135deg,#ff298a,#b20cff); }
.m-ico--3 { background: linear-gradient(135deg,#00eaff,#0078ff); }

.m-val {
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: .5px;
}

.m-val .num {
  font-size: 32px;
  background: linear-gradient(45deg,var(--ig1),var(--ig3),var(--ig4));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.m-label {
  font-size: 13px;
  color: #555;
  font-weight: 600;
}

.metric::before {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.55), transparent 60%);
  transform: translate(30px,-30px) rotate(25deg);
  pointer-events: none;
}

@keyframes mfloat {
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-3px); }
}

@media (max-width: 720px){
  .m-val .num{ font-size: 28px; }
  .m-label{ font-size: 12px; }
}
/* ---- Кнопки в правых карточках ---- */
.hero-side-card__actions {
  margin-top:10px;
}

.hero-side-btn {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 18px;
  border-radius:999px;
  font-size:13px;
  font-weight:600;
  text-decoration:none;
  border:none;
  cursor:pointer;
  background:#ffffff;
  color:#111827;
  box-shadow:0 6px 18px rgba(15,23,42,0.25);
  transition:transform .15s ease, box-shadow .18s ease, background .18s ease;
}

.hero-side-btn i {
  width:16px;
  height:16px;
}

.hero-side-btn:hover {
  transform:translateY(-1px);
  background:#f9fafb;
  box-shadow:0 9px 24px rgba(15,23,42,0.35);
}

/* Вариант кнопки с обводкой (для соц-сетей) */
.hero-side-btn--outline {
  background:transparent;
  color:#f9fafb;
  border:1px solid rgba(249,250,251,0.7);
  box-shadow:none;
}

.hero-side-btn--outline:hover {
  background:rgba(15,23,42,0.45);
  box-shadow:0 10px 24px rgba(0,0,0,0.35);
}

/* ---- 3D-иконки в карточках ---- */
.hero-side-icon {
  width:120px;
  height:auto;
  object-fit:contain;
  transform:translateY(6px);
  animation:heroFloat 4s ease-in-out infinite;
}

/* Лёгкое подпрыгивание (3D-эффект) */
@keyframes heroFloat {
  0%,100% { transform:translateY(6px); }
  50%     { transform:translateY(0); }
}

/* На мобиле чуть уменьшаем иконки/кнопки */
@media (max-width:480px) {
  .hero-side-card__actions {
    margin-top:8px;
  }

  .hero-side-btn {
    width:100%;
    justify-content:center;
    font-size:12px;
    padding:8px 14px;
  }

  .hero-side-icon {
    width:90px;
  }
}
