/*
 * mp-baner-news.css
 * Новостной блок для .mp_baner — два состояния:
 *   1. Обычное: список новостей          (.mp_baner с .mp_baner__news-list)
 *   2. Пустое:  «Новости в разработке»   (.mp_baner с .mp_baner__empty)
 *
 * Зависимости: шрифт Manrope должен быть подключён на странице.
 * Совместим с существующими стилями gorbushka-moscow.ru (site.css).
 */

/* ==========================================================================
   БЛОК: ОБЁРТКА И ФОН
   ========================================================================== */

.mp_baner {
    background-color: #111111;
    position: relative;
    overflow: hidden;
}

/* Оливковый градиент-подсветка */
.mp_baner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 100% at 80% 50%, rgba(62, 77, 49, 0.45) 0%, transparent 70%),
        radial-gradient(ellipse 40% 80% at 20% 100%, rgba(62, 77, 49, 0.2) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

/* Анимированные «тикер»-полосы */
.mp_baner::after {
    content: '';
    position: absolute;
    top: 0;
    right: -60%;
    bottom: 0;
    width: 200%;
    background: repeating-linear-gradient(
        95deg,
        transparent 0px,
        transparent 38px,
        rgba(255, 255, 255, 0.025) 38px,
        rgba(255, 255, 255, 0.025) 39px
    );
    z-index: 1;
    -webkit-animation: mp_baner_lines 12s linear infinite;
            animation: mp_baner_lines 12s linear infinite;
    pointer-events: none;
}

@-webkit-keyframes mp_baner_lines {
    0%   { transform: translateX(0); }
    100% { transform: translateX(39px); }
}

@keyframes mp_baner_lines {
    0%   { transform: translateX(0); }
    100% { transform: translateX(39px); }
}

/* ==========================================================================
   СТРУКТУРА КОНТЕЙНЕРА
   ========================================================================== */

.mp_baner__img {
    min-height: 220px;
    position: relative;
    display: flex;
    align-items: stretch;
}

.mp_baner__wrap {
    width: 100%;
    position: relative;
    z-index: 2;
}

.mp_baner__inner {
    position: static;
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 15px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    min-height: 220px;
}

/* ==========================================================================
   ЛЕВАЯ ЧАСТЬ: ЗАГОЛОВОК (общая для обоих состояний)
   ========================================================================== */

.mp_baner__left {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 14px;
}

.mp_baner__filled .mp_baner__left {
  flex-wrap: wrap;
}

.mp_baner__icon {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

.mp_baner__icon-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mp_baner__icon-svg {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
}

.mp_baner__badge {
    font-family: "Manrope", sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 3px;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.5);
}

.mp_baner__badge--active {
    background: #3E4D31;
    color: #fff;
}

.mp_baner__badge--soon {
    background: rgba(62, 77, 49, 0.55);
    border: 1px solid rgba(62, 77, 49, 0.7);
    color: rgba(255, 255, 255, 0.7);
}

.mp_baner__title {
    color: #fff;
    font-family: "Manrope", sans-serif;
    font-size: 45px;
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
}

.mp_baner__subtitle {
    font-family: "Manrope", sans-serif;
    font-weight: 400;
    max-width: 260px;
    color: rgba(255,255,255,0.75);
}

.mp_baner__subtitle .live-dot {
  color: inherit;
  margin-bottom: -2px;
}

.mp_baner__filled .mp_baner__subtitle {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.mp_baner__subtitle--active {
    color: rgba(255, 255, 255, 0.65);
}

.mp_baner__subtitle--soon {
    color: rgba(255, 255, 255, 0.5);
}

.live-dot {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    font-family: "Manrope", sans-serif;
    white-space: nowrap;
}

.live-dot::before {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6aab4a;
    box-shadow: 0 0 0 0 rgba(106, 171, 74, 0.7);
    -webkit-animation: live_pulse 1.8s ease-out infinite;
            animation: live_pulse 1.8s ease-out infinite;
}

@-webkit-keyframes live_pulse {
    0%   { box-shadow: 0 0 0 0 rgba(106, 171, 74, 0.7); }
    70%  { box-shadow: 0 0 0 8px rgba(106, 171, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(106, 171, 74, 0); }
}

@keyframes live_pulse {
    0%   { box-shadow: 0 0 0 0 rgba(106, 171, 74, 0.7); }
    70%  { box-shadow: 0 0 0 8px rgba(106, 171, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(106, 171, 74, 0); }
}

/* ==========================================================================
   ПРАВАЯ ЧАСТЬ: CTA-КНОПКА (общая для обоих состояний)
   ========================================================================== */

.mp_baner__right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-shrink: 0;
}

.mp_baner__btn a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 7px;
    background: #fff;
    padding: 11px 26px;
    color: #063500;
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 136.99%;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.mp_baner__btn--inactive {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 11px 26px;
    color: rgba(255, 255, 255, 0.35);
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 136.99%;
    white-space: nowrap;
    cursor: default;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
}

.mp_baner__btn a:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.mp_baner__btn a:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ==========================================================================
   СОСТОЯНИЕ 1: СПИСОК НОВОСТЕЙ
   ========================================================================== */

.mp_baner__news-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.mp_baner__filled .mp_baner__news-list {
  flex: none;
  flex-basis: 40%;
}

.mp_baner__news-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
    cursor: pointer;
}

.mp_baner__news-item:hover {
    background: rgba(62, 77, 49, 0.35);
    border-color: rgba(62, 77, 49, 0.6);
    transform: translateX(4px);
}

.mp_baner__news-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3E4D31;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(62, 77, 49, 0.8);
}

.mp_baner__news-item:hover .mp_baner__news-dot {
    background: #6aab4a;
    box-shadow: 0 0 8px rgba(106, 171, 74, 0.9);
}

.mp_baner__news-text {
    color: rgba(255, 255, 255, 0.82);
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp_baner__news-item:hover .mp_baner__news-text {
    color: #fff;
}

.mp_baner__news-date {
    color: rgba(255, 255, 255, 0.35);
    font-family: "Manrope", sans-serif;
    font-size: 12px;
    font-weight: 400;
    flex-shrink: 0;
}

.mp_baner__news-arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
    flex-shrink: 0;
    transition: color 0.22s ease, transform 0.22s ease;
}

.mp_baner__news-item:hover .mp_baner__news-arrow {
    color: #fff;
    transform: translateX(3px);
}

.mp_baner__screen {
    width: 120px;
    height: 80px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
    gap: 5px;
    position: relative;
    overflow: hidden;
}

.mp_baner__screen::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.mp_baner__screen-line {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.12);
    -webkit-animation: screen_blink 3s ease-in-out infinite;
            animation: screen_blink 3s ease-in-out infinite;
}

.mp_baner__screen-line:nth-child(1) { width: 70%; background: rgba(255, 255, 255, 0.22); -webkit-animation-delay: 0s; animation-delay: 0s; }
.mp_baner__screen-line:nth-child(2) { width: 90%; -webkit-animation-delay: 0.3s; animation-delay: 0.3s; }
.mp_baner__screen-line:nth-child(3) { width: 50%; -webkit-animation-delay: 0.6s; animation-delay: 0.6s; }
.mp_baner__screen-line:nth-child(4) { width: 80%; -webkit-animation-delay: 0.9s; animation-delay: 0.9s; }

@-webkit-keyframes screen_blink {
    0%, 100% { opacity: 0.5; }
    50%       { opacity: 1; }
}

@keyframes screen_blink {
    0%, 100% { opacity: 0.5; }
    50%       { opacity: 1; }
}

.mp_baner__counter {
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    font-family: "Manrope", sans-serif;
    text-align: center;
}

.mp_baner__counter span {
    color: #fff;
    font-weight: 600;
}

/* ==========================================================================
   СОСТОЯНИЕ 2: ПУСТОЕ (новости в разработке)
   ========================================================================== */

.mp_baner__empty {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 8px 0;
    flex-basis: 40%;
}

.mp_baner__skeletons {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mp_baner__skeleton-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
}

.mp_baner__skeleton-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.mp_baner__skeleton-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mp_baner__skeleton-line {
    height: 7px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    -webkit-animation: skel_pulse 2s ease-in-out infinite;
            animation: skel_pulse 2s ease-in-out infinite;
}

.mp_baner__skeleton-item:nth-child(1) .mp_baner__skeleton-line:nth-child(1) { width: 80%; -webkit-animation-delay: 0.00s; animation-delay: 0.00s; }
.mp_baner__skeleton-item:nth-child(1) .mp_baner__skeleton-line:nth-child(2) { width: 50%; -webkit-animation-delay: 0.15s; animation-delay: 0.15s; }
.mp_baner__skeleton-item:nth-child(2) .mp_baner__skeleton-line:nth-child(1) { width: 65%; -webkit-animation-delay: 0.30s; animation-delay: 0.30s; }
.mp_baner__skeleton-item:nth-child(2) .mp_baner__skeleton-line:nth-child(2) { width: 40%; -webkit-animation-delay: 0.45s; animation-delay: 0.45s; }
.mp_baner__skeleton-item:nth-child(3) .mp_baner__skeleton-line:nth-child(1) { width: 75%; -webkit-animation-delay: 0.60s; animation-delay: 0.60s; }
.mp_baner__skeleton-item:nth-child(3) .mp_baner__skeleton-line:nth-child(2) { width: 45%; -webkit-animation-delay: 0.75s; animation-delay: 0.75s; }

@-webkit-keyframes skel_pulse {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 0.9; }
}

@keyframes skel_pulse {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 0.9; }
}

.mp_baner__skeleton-date {
    width: 32px;
    height: 7px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    -webkit-animation: skel_pulse 2s ease-in-out infinite;
            animation: skel_pulse 2s ease-in-out infinite;
}

.mp_baner__progress-wrap {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mp_baner__progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mp_baner__progress-text {
    color: rgba(255, 255, 255, 0.55);
    font-family: "Manrope", sans-serif;
    font-size: 13px;
    font-weight: 400;
}

.mp_baner__progress-pct {
    color: rgba(255, 255, 255, 0.35);
    font-family: "Manrope", sans-serif;
    font-size: 12px;
    font-weight: 500;
}

.mp_baner__progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.mp_baner__progress-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #3E4D31, #6aab4a);
    -webkit-animation: progress_fill 3s ease-in-out infinite alternate;
            animation: progress_fill 3s ease-in-out infinite alternate;
}

@-webkit-keyframes progress_fill {
    0%   { width: 30%; opacity: 0.7; }
    100% { width: 55%; opacity: 1; }
}

@keyframes progress_fill {
    0%   { width: 30%; opacity: 0.7; }
    100% { width: 55%; opacity: 1; }
}

.mp_baner__gears {
    width: 80px;
    height: 80px;
    position: relative;
}

.mp_baner__gear-big {
    -webkit-animation: gear_spin 8s linear infinite;
            animation: gear_spin 8s linear infinite;
    transform-origin: 38px 38px;
}

.mp_baner__gear-small {
    animation: gear_spin 8s linear infinite reverse;
    transform-origin: 62px 18px;
}

@-webkit-keyframes gear_spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes gear_spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.mp_baner__soon {
    color: rgba(255, 255, 255, 0.35);
    font-family: "Manrope", sans-serif;
    font-size: 12px;
    font-weight: 400;
    text-align: center;
    line-height: 1.4;
}

/* ==========================================================================
   АДАПТИВНОСТЬ
   ========================================================================== */

@media (max-width: 980px) {
  .mp_baner__title {
    font-size: 40px;
  }
}

@media (max-width: 900px) {
    .mp_baner__title {
        font-size: 32px;
        white-space: normal;
    }

    .mp_baner__inner {
        flex-wrap: wrap;
        gap: 24px;
        min-height: auto;
        padding: 28px 15px;
    }

    .mp_baner__left {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .mp_baner__subtitle {
        max-width: 100%;
        width: 100%;
        text-align: center;
    }

    .mp_baner__screen,
    .mp_baner__gears {
        display: none;
    }
}

@media (max-width: 768px) {
    .mp_baner__title {
        font-size: 28px;
    }

    .mp_baner__badge {
        font-size: 10px;
    }

    .mp_baner__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .mp_baner__right,
    .mp_baner__empty,
    .mp_baner__news-list {
        flex: 0 0 100%;
        align-items: flex-start;
    }

    .mp_baner__left {
      flex: none;
    }

    .mp_baner__filled .mp_baner__news-list {
      flex-basis: auto;
      width: 100%;
    }
    
    .mp_baner__filled .mp_baner__news-item {
      width: 100%;
    }
    
    .mp_baner__filled .mp_baner__inner {
      height: auto;
    }
    
    .mp_baner__right, .mp_baner__empty, .mp_baner__news-list {
      flex: none;
      width: 100%;
      align-items: center;
    }

    .mp_baner .py-4 {
      padding-top: 0 !important;
      padding-bottom: 0 !important;
    }
}

@media (max-width: 680px) {
  .mp_baner__filled .mp_baner__subtitle {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .mp_baner__inner {
    padding: 0 10px;
  }

  .mp_baner__icon {
    width: 100%;
    margin-bottom: 0.5rem;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
    .mp_baner::after,
    .mp_baner__screen-line,
    .mp_baner__skeleton-line,
    .mp_baner__skeleton-date,
    .mp_baner__progress-fill,
    .mp_baner__gear-big,
    .mp_baner__gear-small,
    .live-dot::before {
        -webkit-animation: none;
                animation: none;
    }
}