
.news-container {

    max-width: 1200px;

    margin: 0 auto;

    padding: 178px 20px 40px;

    position: relative;

    z-index: 1;

}


.news-top {

    display: flex;

    justify-content: flex-end;

    margin-bottom: 20px;

}


.news-top select {

    padding: 8px 14px;

    font-size: 14px;

    border-radius: 6px;

    border: 1px solid #ccc;

    background: #fff;

    cursor: pointer;

}


.news-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));

    gap: 24px;

}


/* Карточка */

.news-card {

    display: block;

    background: #35374e1a;

    border-radius: 14px;

    overflow: hidden;

    text-decoration: none;

    color: #000;

    transition: transform 0.25s ease, box-shadow 0.25s ease;

}


.news-card:hover {

    transform: translateY(-4px);

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);

}


/* Картинка */

.news-card-image {

    position: relative;

    overflow: hidden;

}


.news-card-image img {

    width: 100%;

    height: 245px;

    object-fit: cover;

    display: block;

    transition: filter 0.3s ease, transform 0.3s ease;

}


/* Overlay */

.news-card-overlay {

    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, 0.45);

    display: flex;

    align-items: center;

    justify-content: center;

    opacity: 0;

    transition: opacity 0.3s ease;

}


.news-card-overlay span {

    color: #fff;

    font-size: 16px;

    padding: 10px 22px;

    border: 1px solid rgba(255, 255, 255, 0.7);

    border-radius: 30px;

    text-transform: uppercase;

    letter-spacing: 0.05em;

}


/* Hover */

.news-card:hover img {

    filter: brightness(0.7);

    transform: scale(1.05);

}


.news-card:hover .news-card-overlay {

    opacity: 1;

}


/* Контент */

.news-card-content {

    padding: 18px 20px 22px;

}


.news-card-date {

    font-size: 13px;

    color: #777;

    margin-bottom: 8px;

}


.news-card h3 {

    font-size: 17px;

    line-height: 1.35;

    margin: 0;

}

/*.header-wrap-clone {*/

/*    display: none !important;*/

/*}*/


@media (max-width: 767px) {


    .news-container {

        padding-top: 133px;

    }


    #header {

        position: fixed;

        top: 0;

        left: 0;

        right: 0;

        z-index: 10000;

    }


    .header-wrap-clone {

        display: none !important;

    }

}


/* Убираем hover на тач-устройствах */

@media (hover: none) and (pointer: coarse) {


    .news-card-overlay {

        display: none !important;

    }


    .news-card:hover img {

        filter: none;

        transform: none;

    }

}
.news-card.hidden {
    display: none !important;
}


.article {

    max-width: 820px;

    margin: 0 auto;

    padding-top: 40px; /* высота хедера desktop */

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

    color: #222;

    line-height: 1.7;

    position: relative;

    z-index: 1;

}



.article h1 {

    font-size: 34px;

    line-height: 1.2;

    margin-bottom: 20px;

}



.article h2 {

    font-size: 22px;

    margin: 60px 0 20px;

    border-left: 3px solid #000;

    padding-left: 15px;

}



.article p {

    font-size: 16px;

    margin: 18px 0;

}



.article .lead {

    font-size: 18px;

    color: #444;

}

	/*.header-wrap-clone {*/

    /*    display: none !important;*/

    /*}*/

	.contacts{

		margin-bottom:20px;

	}

	.article .quote {

		margin: 50px 0;

		padding-left: 25px;

		border-left: 3px solid #ddd;

		font-style: italic;

		color: #555; }

	.article .contacts {

		margin-top: 70px;

		padding-top: 30px;

		border-top: 1px solid #ddd;

		font-size: 15px; }

	.article .author {

		margin-top: 30px;

		font-size: 14px;

		color: #666; }





/* ===== MOBILE ===== */

@media (max-width: 767px) {



    /* Хедер */

    #header {

        position: fixed;

        top: 0;

        left: 0;

        right: 0;

        z-index: 10000;

    }





    /*.header-wrap-clone {*/

    /*    display: none !important;*/

    /*}*/



    /* Статья */

    .article {

        padding-top: 133px; /* реальная высота мобильного хедера */

        padding-left: 16px;

        padding-right: 16px;

        max-width: 100%;

    }



    .article h1 {

        font-size: 26px;

    }



    .article h2 {

        font-size: 20px;

        margin: 40px 0 15px;

    }



    .article p {

        font-size: 15px;

        margin: 14px 0;

    }



    .article .lead {

        font-size: 16px;

    }

	.contacts{

		margin-bottom:16px;

	}

	.author{

		margin-bottom:16px;

	}

}



/*#header,*/

/*#header-wrap,*/

/*#primary-menu-trigger {*/

/*    z-index: 10001 !important;*/

/*}*/
.sticky-button {
    position: fixed;
    bottom: 27px;
    right: 80px;
    background-color: #007BFF;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    z-index: 1000;
    transition: background-color 0.3s;
}
.back-btn:hover {
    background: #ddd;
}
.back-btn {
    padding: 8px 16px;
    background: #eee;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

/* Страница 404 */
.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.error-container {
    text-align: center;
    max-width: 500px;
}

.error-code {
    font-size: 100px;
    font-weight: 700;
    color: #0066f0;
    line-height: 1;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
}

.error-text {
    font-size: 20px;
    color: #666;
    margin-bottom: 30px;
    font-family: 'Inter', sans-serif;
}

.error-actions {yle4
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-btn {
    padding: 12px 32px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    color: #fff;
    background: #0066f0;
    transition: background 0.3s;
    font-family: 'Inter', sans-serif;
}

.error-btn:hover {
    background: #0052cc;
}

/* Адаптация для мобильных */
@media (max-width: 500px) {
    .error-code {
        font-size: 64px;
    }
    .error-text {
        font-size: 18px;
    }
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    .error-btn {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
}