/* ==========================================================================
    Адаптивность
   ========================================================================== */

@media (max-width: 1200px) {
    .news-card {
        max-width: 750px;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    body {
        position: relative;
        width: 100%;
        overflow-x: hidden;
    }

    .background-symbols {
        position: fixed;
        inset: 0;
        pointer-events: none;
        z-index: -1;
        overflow: hidden;
    }

    .background-symbols__shape {
        position: absolute;
        opacity: 0.15;
        will-change: transform, opacity;
    }

    .background-symbols__shape svg {
        display: block;
        stroke: #ffffff;
        width: 100%;
        height: 100%;
    }

    @keyframes floatUp {
        0% {
            transform: translateY(110vh) rotate(0deg) scale(var(--scale, 1));
        }
        100% {
            transform: translateY(-20vh) rotate(360deg) scale(var(--scale, 1));
        }
    }

    @keyframes floatDiagLeft {
        0% {
            transform: translateY(110vh) translateX(15vw) rotate(0deg) scale(var(--scale, 1));
        }
        100% {
            transform: translateY(-20vh) translateX(-15vw) rotate(360deg) scale(var(--scale, 1));
        }
    }

    @keyframes floatDiagRight {
        0% {
            transform: translateY(110vh) translateX(-15vw) rotate(0deg) scale(var(--scale, 1));
        }
        100% {
            transform: translateY(-20vh) translateX(15vw) rotate(360deg) scale(var(--scale, 1));
        }
    }

    .news-hero {
        position: relative;
        width: 100%;
        min-height: 60vh;
        padding: 80px 20px 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        background: linear-gradient(180deg, rgba(17, 17, 16, 0.8) 0%, rgba(41, 40, 41, 1) 100%);
    }

    .news-hero__title {
        font-size: 80px;
        line-height: 90px;
    }

    .news-hero__subtitle {
        font-size: 24px;
        line-height: 32px;
    }

    .news-container {
        max-width: 100%;
        margin: 40px auto;
        padding: 0 15px;
    }

    .news-container__grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .news-card {
        width: 100%;
        max-width: 100%;
        background: linear-gradient(180deg, rgba(30, 30, 30, 0.95) 0%, rgba(20, 20, 20, 0.98) 100%);
        border: 2px solid rgba(228, 173, 43, 0.3);
        border-radius: 15px;
        overflow: visible;
    }

    .news-card__header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        background: linear-gradient(135deg, rgba(228, 173, 43, 0.15) 0%, rgba(228, 173, 43, 0.05) 100%);
        border-bottom: 1px solid rgba(228, 173, 43, 0.2);
        flex-direction: row;
        gap: 10px;
    }

    .news-card__date {
        color: rgba(255, 255, 255, 0.6);
        font-size: 14px;
        font-family: "Lucida Sans Unicode", sans-serif;
    }

    .news-card__vk-badge {
        display: inline-block;
        background: linear-gradient(135deg, #0077FF 0%, #0055CC 100%);
        color: white;
        font-size: 12px;
        font-family: "Lucida Sans Unicode", sans-serif;
        font-weight: 600;
        padding: 3px 10px;
        border-radius: 6px;
    }

    .news-card__body {
        flex: 1;
        padding: 10px 10px 10px 10px;
        overflow: visible;
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }

    .news-card__footer {
        padding: 15px 20px;
        background: rgba(228, 173, 43, 0.05);
        border-top: 1px solid rgba(228, 173, 43, 0.2);
    }

    .news-card__external-link {
        color: #E4AD2B;
        font-size: 14px;
        font-family: "Lucida Sans Unicode", sans-serif;
        font-weight: 600;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .vk-widget-container {
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

    .vk-error {
        color: #ff6464;
        font-size: 14px;
        font-family: "Lucida Sans Unicode", sans-serif;
        text-align: center;
        padding: 30px 15px;
        background: rgba(255, 100, 100, 0.1);
        border-radius: 8px;
    }

    .vk-error small {
        display: block;
        margin-top: 8px;
        font-size: 12px;
        color: rgba(255, 100, 100, 0.8);
    }

    .news-loading {
        text-align: center;
        padding: 40px 20px;
    }

    .news-loading p {
        color: rgba(255, 255, 255, 0.7);
        font-size: 16px;
        font-family: "Lucida Sans Unicode", sans-serif;
        margin-top: 15px;
    }

    .loader {
        width: 40px;
        height: 40px;
        border: 3px solid rgba(228, 173, 43, 0.2);
        border-top-color: #E4AD2B;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 0 auto;
    }

    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }

    .news-empty {
        text-align: center;
        padding: 40px 20px;
    }

    .news-empty p {
        color: rgba(255, 255, 255, 0.7);
        font-size: 18px;
        font-family: "Lucida Sans Unicode", sans-serif;
        margin: 8px 0;
    }

    .news-empty p:first-child {
        font-size: 20px;
        color: #E4AD2B;
    }

    .admin-btn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, #E4AD2B 0%, #F4C842 100%);
        border: none;
        border-radius: 50%;
        color: #1a1a1a;
        font-size: 24px;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(228, 173, 43, 0.5);
        z-index: 1000;
        display: flex;
        justify-content: center;
        align-items: center;
        text-decoration: none;
    }
}
