html {
  scroll-behavior: smooth;        /* плавная прокрутка (очень приятно) */
  scroll-padding-top: 68px;       /* ← подгони точно под высоту своей шапки */
}
  :root {
    --ne-energ-primary: rgb(253, 88, 27);   /* бирюзово-зелёный */
    --ne-energ-accent: rgb(219, 199, 143);
    --ne-energ-light: #f8f9fa;
  }
  
  .ne-energ-networking { font-family: system-ui, -apple-system, sans-serif; }
  .ne-energ-hero {
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('../images/photo_2025_10_30_16_41_27_1x.jpg') center/cover no-repeat;
    color: white;
    padding: 140px 0 100px;
  }
  .ne-energ-title { font-size: 3.2rem; font-weight: 700; line-height: 1.1; }
  .ne-energ-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s;
  }
  .ne-energ-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(12,166,120,0.15); }
  .ne-energ-topic-icon {
    width: 64px; height: 64px;
    background: var(--ne-energ-primary);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
  }
  .ne-energ-speaker-img {
    width: 120px; height: 120px;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  .ne-energ-btn {
    background: var(--ne-energ-primary);
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 600;
  }
  .ne-energ-btn:hover { background: var(--ne-energ-accent); }

.g-bg-telegram{
    background: rgb(0, 136, 204);
}
.g-bg-telegram:hover{
    background: rgb(0, 119, 179);
}
.btn-spireiapack{
    background: rgb(204, 50, 61);
    color: white;
}
.btn-spireiapack:hover{
    background: rgb(234, 77, 89);
    color: white;
}
 /* новости */
:root {
      --news-primary: rgb(41, 112, 170);
      --news-primary-hover: #4f46e5;
      --news-text: #1e2937;
      --news-muted: #64748b;
      --news-bg: #f8fafc;
    }

    .news-section {
      padding: 100px 0;
      background: var(--news-bg);
    }

    .news-title {
      font-size: 3.2rem;
      font-weight: 600;
      letter-spacing: -1.2px;
      background: var(--news-primary);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .news-list {
      position: relative;
      margin: 0 auto;
    }

    /* Вертикальная линия — теперь проходит по центру точки */
    .news-list::before {
      content: '';
      position: absolute;
        
      left: 110px;           /* центр точки (настраивается автоматически ниже) */
      top: 40px;
      bottom: 40px;
      width: 3px;
      background: var(--news-primary);
      z-index: 0;
    }

    .news-list-item {
      position: relative;
      display: flex;
      align-items: flex-start;
      gap: 1.8rem;
      padding: 1.8rem 0;
      z-index: 1;
    }

    .news-list-item:not(:last-child) {
      border-bottom: 1px solid #e2e8f0;
    }

    /* Дата слева */
    .news-date {
      background: white;
      color: var(--news-primary);
      font-weight: 700;
      font-size: 1.35rem;
      line-height: 1;
      padding: 8px 10px;
      border-radius: 16px;
      min-width: 92px;
      text-align: center;
      box-shadow: 0 4px 15px -5px rgba(99, 102, 241, 0.25);
      z-index: 2;
    }

    .news-day { display: block; font-size: 1.8rem; }
    .news-month { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

    /* Маркер с точкой (центр линии) */
    .timeline-marker {
      position: relative;
      width: 35px;
      margin-top: 15px;
      flex-shrink: 0;
      z-index: 2;
    }

    .timeline-marker::before {
      content: '';
      position: absolute;
      left: 70%;
      top: 50%;
      transform: translate(-50%, -50%);
      width: 18px;
      height: 18px;
      background: white;
      border: 3.5px solid var(--news-primary);
      border-radius: 50%;
    }

    /* Контент новости */
    .news-content {
      flex-grow: 1;
      transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }


    .news-badge { font-size: 0.75rem; padding: 4px 12px; border-radius: 50px; font-weight: 600; display: inline-block; margin-bottom: 12px; }
    .news-title-item { font-size: 1.25rem; font-weight: 600; line-height: 1.3; margin-bottom: 10px; color: var(--news-text); }
    .news-list-item:hover .news-title-item { color: var(--news-primary); }
    .news-excerpt { font-size: 1.05rem; line-height: 1.55; color: var(--news-muted); margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .news-meta { display: flex; align-items: center; gap: 1.5rem; font-size: 0.9rem; color: var(--news-muted); }
    .news-read { color: var(--news-primary); font-weight: 600; text-decoration: none; transition: all 0.3s ease; }
    .news-read:hover { color: var(--news-primary-hover); gap: 8px; }

    .btn-all-news {
      border-radius: 50px;
      padding: 16px 48px;
font-size: 1.1rem;
      font-weight: 600;
      background: var(--news-primary);
      border: none;
      transition: all 0.3s ease;
    }
    .btn-all-news:hover {
      background: var(--news-primary-hover);
      transform: translateY(-4px);
      box-shadow: 0 20px 40px -10px var(--news-primary);
    }

    /* Адаптив */
    @media (max-width: 768px) {
      .ne-energ-title { font-size: 2.2rem; font-weight: 700; line-height: 1.1; }
      .news-list-item { gap: 1.4rem; padding: 2rem 0; }
      .news-date { padding: 3px 6px; min-width: 58px; font-size: 0.5rem; }
      .news-date .news-day { font-size: 1.6rem; }
      .timeline-marker { display: none;}
      .news-list::before { left: 65px; }   /* автоматически подстраивается под мобильную ширину */
    }


/* Дополнительно (ещё надёжнее) */
section[id],
h1[id],
h2[id],
h3[id],
.container {                    /* или любой класс твоих блоков */
  scroll-margin-top: 68px;
}

body{
    font-family: 'Inter', system-ui, sans-serif;
    padding: 0;
}
h1{
    font-family: 'Roboto', serif;
    font-size: 22px;
}
:root {
      --primary: rgb(41, 112, 170);
      --text: #0f172a;
    }

    .heading {
      font-weight: 700;
      line-height: 1.05;
      letter-spacing: -1.4px;
      color: var(--text);
    }

    /* 1. Основной тренд 2026 — Большой градиент */
    .heading-gradient {
      font-family: 'Satoshi', sans-serif;
      font-size: clamp(2.8rem, 5vw, 4.8rem);
      font-weight: 900;
      background: linear-gradient(90deg, #1e2937, var(--primary));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    /* 2. С акцентной чертой */
    .heading-underline {
      position: relative;
      display: inline-block;
      font-size: 2.8rem;
    }
    .heading-underline::after {
      content: '';
      position: absolute;
      bottom: -12px;
      left: 0;
      width: 72px;
      height: 5px;
      background: var(--primary);
      border-radius: 9999px;
    }

    /* 3. С бейджем сверху (очень модно) */
    .heading-badge {
      position: relative;
      padding-top: 48px;
      font-size: 2.9rem;
    }
    .heading-badge::before {
      content: attr(data-badge);
      position: absolute;
      top: 0;
      left: 0;
      background: var(--primary);
      color: white;
      font-size: 0.95rem;
      font-weight: 600;
      padding: 8px 22px;
      border-radius: 9999px;
      letter-spacing: 0.6px;
    }

    /* 4. Split-color (половина заголовка другого цвета) */
    .heading-split span {
      color: var(--primary);
    }

    /* 5. С иконкой слева */
    .heading-icon {
      display: flex;
      align-items: center;
      gap: 1.2rem;
      font-size: 2.7rem;
    }
    .heading-icon i {
      font-size: 3.2rem;
      color: var(--primary);
    }

    /* 6. Минималистичный крупный */
    .heading-minimal {
      font-size: 3.4rem;
      font-weight: 700;
      letter-spacing: -1.8px;
    }

    section { padding: 110px 0; }
/* === УЛУЧШЕННАЯ ВЕРСИЯ: ГРАДИЕНТ СЛЕВА НАПРАВО + БЛЕСТЯЩИЕ СЛУЧАЙНЫЕ ТОЧКИ === */

.gradient-link {
  position: relative;
  overflow: visible;
  display: inline-block;
  font-weight: 600;
  
  /* Градиент теперь строго движется слева направо */
  background: linear-gradient(90deg, #dae0f2, #dae0f2, #c5dbff, #ef4444, #f97316, #ef4444, #c5dbff, #dae0f2);
  background-size: 310% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 4.2s linear infinite;
}

/* Движение градиента СЛЕВА НАПРАВО (паттерн смещается вправо) */
@keyframes gradientFlow {
  0%   { background-position: 0% 50%; }
  100% { background-position: -310% 50%; }
}

/* При наведении — ускоряем градиент и лёгкий scale */
.gradient-link:hover {
  animation-duration: 2.1s;
  transform: scale(1.06);
}

/* === КОНТЕЙНЕР И ВЫЛЕТАЮЩИЕ КВАДРАТИКИ (оставил как было) === */
.particle-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(255,255,255,0.9);
  opacity: 0;
  transform: scale(0);
}

.gradient-link:hover .particle {
  animation: particleBurst 850ms ease-out forwards;
}

/* (все nth-child частиц оставил без изменений — 12 штук) */
.particle:nth-child(1)  { left:22%; top:28%; background:#1e40af; width:5px; height:7px; --dx:-92px; --dy:-115px; --rot:165deg; animation-delay:0ms; }
.particle:nth-child(2)  { left:48%; top:18%; background:#3b82f6; width:4px; height:8px; --dx:78px;  --dy:-128px; --rot:-95deg;  animation-delay:40ms; }
.particle:nth-child(3)  { left:31%; top:62%; background:#ef4444; width:7px; height:5px; --dx:-125px;--dy:52px;  --rot:210deg;  animation-delay:80ms; }
.particle:nth-child(4)  { left:65%; top:35%; background:#f97316; width:6px; height:6px; --dx:105px; --dy:-75px;  --rot:-140deg; animation-delay:20ms; }
.particle:nth-child(5)  { left:15%; top:45%; background:#60a5fa; width:5px; height:5px; --dx:-68px; --dy:88px;   --rot:75deg;   animation-delay:110ms; }
.particle:nth-child(6)  { left:72%; top:55%; background:#e11d48; width:4px; height:9px; --dx:115px; --dy:65px;   --rot:245deg;  animation-delay:60ms; }
.particle:nth-child(7)  { left:38%; top:22%; background:#1e40af; width:6px; height:6px; --dx:-45px; --dy:-140px; --rot:-45deg;  animation-delay:130ms; }
.particle:nth-child(8)  { left:55%; top:48%; background:#f43f5e; width:5px; height:5px; --dx:92px;  --dy:95px;   --rot:180deg;  animation-delay:15ms; }
.particle:nth-child(9)  { left:25%; top:38%; background:#3b82f6; width:7px; height:4px; --dx:-105px;--dy:-35px;  --rot:120deg;  animation-delay:90ms; }
.particle:nth-child(10) { left:68%; top:25%; background:#ef4444; width:6px; height:6px; --dx:55px;  --dy:-110px; --rot:-200deg; animation-delay:70ms; }
.particle:nth-child(11) { left:42%; top:65%; background:#f97316; width:4px; height:7px; --dx:120px; --dy:48px;   --rot:50deg;   animation-delay:45ms; }
.particle:nth-child(12) { left:18%; top:52%; background:#60a5fa; width:5px; height:5px; --dx:-78px; --dy:105px;  --rot:-160deg; animation-delay:150ms; }

@keyframes particleBurst {
  0%   { transform: scale(0.4) rotate(0deg) translate(0, 0); opacity: 0.9; }
  25%  { transform: scale(1.2) rotate(var(--rot)) translate(0, 0); }
  100% { transform: scale(0) rotate(var(--rot)) translate(var(--dx), var(--dy)); opacity: 0; }
}

/* === НОВОЕ: БЛЕСТЯЩИЕ СЛУЧАЙНЫЕ ТОЧКИ (sparkles) === */
.sparkle-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 2; /* выше текста, но ниже частиц при необходимости */
}

.sparkle {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px #fff, 0 0 12px #67e8f9; /* белый + голубое свечение */
  opacity: 0;
  animation: twinkle 1.4s ease-in-out infinite;
}


/* 10 случайных блестящих точек */
.sparkle:nth-child(1)  { left: 14%; top: 24%; width: 3px; height: 3px; animation-delay: 0.05s; animation-duration: 0.95s; }
.sparkle:nth-child(2)  { left: 38%; top: 18%; width: 2.5px; height: 2.5px; animation-delay: 0.45s; animation-duration: 1.65s; box-shadow: 0 0 6px #fff, 0 0 13px #f472b6; }
.sparkle:nth-child(3)  { left: 22%; top: 52%; width: 4px; height: 3px; animation-delay: 0.12s; animation-duration: 1.1s; }
.sparkle:nth-child(4)  { left: 67%; top: 31%; width: 2px; height: 4px; animation-delay: 0.78s; animation-duration: 0.85s; box-shadow: 0 0 7px #fff, 0 0 14px #f43f5e; }
.sparkle:nth-child(5)  { left: 12%;  top: 41%; width: 3px; height: 3px; animation-delay: 0.33s; animation-duration: 1.35s; }
.sparkle:nth-child(6)  { left: 81%; top: 48%; width: 2.5px; height: 2.5px; animation-delay: 0.62s; animation-duration: 1.05s; box-shadow: 0 0 6px #fff, 0 0 12px #67e8f9; }
.sparkle:nth-child(7)  { left: 29%; top: 15%; width: 3px; height: 3px; animation-delay: 1.05s; animation-duration: 1.55s; }
.sparkle:nth-child(8)  { left: 53%; top: 62%; width: 4px; height: 2px; animation-delay: 0.19s; animation-duration: 0.75s; box-shadow: 0 0 7px #fff, 0 0 13px #f472b6; }
.sparkle:nth-child(9)  { left: 44%; top: 28%; width: 2px; height: 3px; animation-delay: 0.88s; animation-duration: 1.25s; }
.sparkle:nth-child(10) { left: 71%; top: 39%; width: 3px; height: 3px; animation-delay: 0.51s; animation-duration: 1.45s; box-shadow: 0 0 6px #fff, 0 0 12px #f43f5e; }

/* Анимация мерцания блестящих точек */
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.3); }
  50%      { opacity: 1;    transform: scale(1.35); }
}

/* При наведении блестящие точки мерцают быстрее и ярче */
.gradient-link:hover .sparkle {
  animation-duration: 0.75s !important; /* ускоряем мерцание */
  box-shadow: 0 0 8px #fff, 0 0 16px #fff; /* чуть ярче свечение */
}


/*тень и скругления по краям блоков*/
.block-shadow{
    border-radius: 3px;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.16);
    background-color: #fff;
    border-style: none;
}
/*тень и скругления по краям блоков*/
.b-example-divider {
    height: 3rem;
    background-color: rgba(0, 0, 0, .1);
    border: solid rgba(0, 0, 0, .15);
    border-width: 1px 0;
    box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

/* ====================== ОСНОВНЫЕ РАЗМЕРЫ ====================== */
# main_index, .mySwiper {
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Высота на мобильных — 50% экрана (можно менять 45vh / 55vh / 60vh) */
@media (max-width: 767.98px) {
    #main_index, .mySwiper {
        height: 50vh;           /* ← вот твои 50% экрана */
        min-height: 320px;      /* минимум, чтобы не было слишком мелко */
        max-height: 520px;      /* максимум на очень высоких телефонах */
    }
}

/* Планшеты */
@media (min-width: 768px) and (max-width: 991.98px) {
    #main_index, .mySwiper { height: 65vh; }
}

/* Десктоп */
@media (min-width: 992px) {
    #main_index, .mySwiper {  
        max-height: 820px;
    }
}

/* Слайды занимают 100% высоты контейнера */
.swiper-wrapper,
.swiper-slide {
    height: 100% !important;
}

/* ====================== ИЗОБРАЖЕНИЯ ====================== */
.slide-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;           /* обязательно обрезает */
    transition: object-position 0.6s ease;  /* плавная смена при смене слайда */
}

.btn-tafline {
    background: rgb(3, 22, 88);
    color: aliceblue;
}

.btn-tafline:hover {
    background: rgb(5, 32, 129);
    color: aliceblue;
}

/* ====================== ИНДИВИДУАЛЬНАЯ ОБРЕЗКА ====================== */

/* По умолчанию (на всякий случай) */
.swiper-slide .slide-img {
    object-position: center 40%;
}

/* Мобильная обрезка (используем data-атрибут) */
@media (max-width: 767.98px) {
    .swiper-slide[data-mobile-crop] .slide-img {
        object-position: center attr(data-mobile-crop);
    }
}

/* Десктопная обрезка */
@media (min-width: 768px) {
    .swiper-slide[data-desktop-crop] .slide-img {
        object-position: center attr(data-desktop-crop);
    }
}

/* ====================== АДАПТИВНЫЕ КАПШЕНЫ ====================== */
.carousel-caption {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 20px 15px;           /* базовые отступы */
    text-align: center;
}

/* ==================== МОБИЛЬНЫЕ СТИЛИ ==================== */
@media (max-width: 767.98px) {

    .carousel-caption.caption-mobile {
        top: 1% !important;           /* чуть ниже, чтобы больше места под текст */
        padding: 10px 6px;
    }

    .caption_slider {
        padding: 16px 12px !important;   /* меньше внутренний отступ */
        border-radius: 12px;
        max-width: 100%;
        box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    }

    /* Шрифты сильно уменьшаем */
    .display-mobile {
        font-size: 1.35rem !important;     /* было display-6 ≈ 2.5rem */
        line-height: 1.05 !important;
        margin-bottom: 8px;
    }

    .lead-mobile {
        font-size: 0.60rem !important;
        margin-bottom: 14px;
        text-indent: 0;
    }

    /* Кнопки */
    .btn-sm-mobile {
        font-size: 0.92rem !important;
        padding: 8px 14px !important;
        margin-bottom: 6px !important;
        white-space: normal;               /* текст кнопки может переноситься */
    }

    .btn-group-mobile {
        grid-template-columns: 1fr !important;   /* кнопки строго в столбик */
        gap: 8px !important;
    }

    /* Второй слайд (и все остальные) — тоже уменьшаем */
    .swiper-slide h2 {
        font-size: 1.05rem !important;
    }
}

/* ==================== ПЛАНШЕТЫ (между мобильным и десктопом) ==================== */
@media (min-width: 768px) and (max-width: 991.98px) {
    .carousel-caption {
        top: 10% !important;
    }
    .display-mobile {
        font-size: 1.2rem !important;
    }
    .lead-mobile {
        font-size: 1.0rem !important;
    }
}

/* ==================== ДЕСКТОП — оставляем как было ==================== */
@media (min-width: 992px) {
    .carousel-caption {
        top: 20%;                     /* твоё старое значение */
    }
    .caption_slider {
        padding: 30px 25px;
    }
    .btn-group-mobile {
        display: block !important;    /* горизонтально как раньше */
    }
}


.content-section{
    padding-top: 20px;
    padding-bottom: 20px;
}
.zoom_img_card{
    overflow: hidden;
}
.zoom_img_card img{
    transition: all 0.5s ease;
}

.zoom_img_card_h:hover img{
    transform: scale(1.3)
}

.card_crya:hover{
    transition: all 0.2s ease;
    transform: scale(1.06);

}

/* Один запрос на все мобильные устройства + планшеты */
@media (max-width: 1024px) {
  body {
    padding-top: 68px; /* адаптивный отступ */
  }
}


