/* ===== News page ===== */
.news-main-wrap {
    position: relative;
    min-height: calc(100vh - 80px);
    min-height: calc(100dvh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 60px;
}

/* Фон: градиенты зафиксированы на весь экран, лежат под меню и ничем не обрезаются */
.news-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(520px 420px at 22% 68%, rgba(39, 135, 245, 0.30), transparent 70%),
        radial-gradient(480px 400px at 80% 78%, rgba(138, 77, 255, 0.28), transparent 70%);
}

.news-center {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    text-align: center;
}

/* ----- Заголовок ----- */
.news-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #7fb0ff;
    background: rgba(127, 176, 255, 0.12);
    border: 1px solid rgba(127, 176, 255, 0.3);
    margin-bottom: 20px;
    animation: newsRise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.news-main-title {
    font-size: clamp(40px, 9vw, 72px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1;
    color: #fff;
    margin-bottom: 16px;
    animation: newsRise 0.7s 0.05s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.news-main-subtitle {
    font-size: clamp(16px, 3vw, 20px);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 44px;
    animation: newsRise 0.7s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ----- Кнопки-капсулы ----- */
.news-social-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.news-social-btn {
    --c1: #2787f5;
    --c2: #0a5fd1;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 10px 30px 10px 10px;
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    text-align: left;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    box-shadow: 0 12px 30px -10px var(--c1);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s;
    animation: newsRise 0.6s var(--delay, 0.2s) cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Блик при наведении */
.news-social-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -70%;
    width: 45%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.news-social-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px var(--c1);
}
.news-social-btn:hover::after { left: 130%; }
.news-social-btn:active { transform: translateY(-1px) scale(0.98); }
.news-social-btn:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.7); outline-offset: 4px; }

.news-social-btn.vk  { --c1: #2787f5; --c2: #0a5fd1; }
.news-social-btn.tg  { --c1: #2aabee; --c2: #1d85c4; }
.news-social-btn.max { --c1: #8a4dff; --c2: #3d7bff; }

/* Круглая иконка */
.news-social-icon {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: rgba(255, 255, 255, 0.22);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.news-social-btn:hover .news-social-icon { transform: rotate(-8deg) scale(1.08); }

.news-max-svg {
    width: 26px;
    height: 26px;
    display: block;
}

.news-social-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.news-social-small {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.news-social-name {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

@keyframes newsRise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ----- Мобильные ----- */
@media (max-width: 640px) {
    .news-social-buttons { flex-direction: column; align-items: stretch; max-width: 340px; margin: 0 auto; }
    .news-social-btn { padding-right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .news-badge-pill, .news-main-title, .news-main-subtitle, .news-social-btn { animation: none; }
    .news-social-btn, .news-social-icon, .news-social-btn::after { transition: none; }
}
