/* News Page Styles */

/* News Page Main */
.news-page {
    padding: 150px 0 100px;
    background-color: #ffffff;
}

/* Page Title */
.news-page__title {
    font-family: 'Inter', sans-serif;
    max-width: 820px;
    font-size: 54px;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: -0.05em;
    color: #000000;
    margin: 0 0 30px 0;
    text-align: left;
}

/* Page Description */
.news-page__description {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 125%;
    color: #A9B0B8;
    margin: 0 0 50px 0;
    max-width: 800px;
}

/* Controls Section */
.news-page__controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    gap: 20px;
}

/* Filters Section */
.news-page__filters {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Filter Dropdown */
.filter-dropdown {
    position: relative;
    z-index: 10;
}

.filter-dropdown__toggle {
    background-color: #0B0D10;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: -0.04em;
    height: 60px;
    padding: 20px 30px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-dropdown__toggle:hover {
    background-color: #1a1d22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 13, 16, 0.3);
}

.filter-dropdown__toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent);
    transition: left 0.5s ease;
}

.filter-dropdown__toggle:hover::before {
    left: 100%;
}

/* Small Filter Toggle */
.filter-dropdown--small .filter-dropdown__toggle {
    width: 60px;
    padding: 20px;
    border-radius: 5px;
    justify-content: center;
}

.filter-dropdown__toggle--small {
    gap: 0;
}

.filter-dropdown__icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.filter-dropdown__icon--small {
    width: 30px;
    height: 30px;
}

/* Dropdown Menu */
.filter-dropdown__menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background-color: #0B0D10;
    border-radius: 10px;
    padding: 20px;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.filter-dropdown__menu--small {
    min-width: 250px;
    right: 0;
    left: auto;
}

.filter-dropdown__menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.filter-dropdown__option {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: -0.04em;
    color: #ffffff;
    padding: 15px 0;
    cursor: pointer;
    transition: color 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-dropdown__option:last-child {
    border-bottom: none;
}

.filter-dropdown__option:hover {
    color: #1458E4;
}

.filter-dropdown__option--active {
    color: #1458E4;
}

/* News Grid - копируем стили из главной страницы */
.news-page__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

/* News Cards - копируем стили из главной страницы */
.news-card {
    width: 320px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-card--news {
    background-color: #0B0D10;
    padding: 20px;
    height: auto;
}

.news-card--article {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.5);
    padding: 20px;
}

.news-card--action {
    background-color: #1458E4;
    padding: 20px;
}

.news-card{
    height: fit-content;
}

.news-card__image {
    border-radius: 10px;
    overflow: hidden;
}

.news-card__image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 10px;
}

.news-card__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-card__title {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 120%;
    color: #ffffff;
    margin: 0;
}

.news-card--news .news-card__title {
    font-size: 18px;
}

.news-card--article .news-card__title {
    font-size: 24px;
    font-weight: 500;
    color: #000000;
}

.news-card--action .news-card__title {
    font-size: 24px;
    font-weight: 500;
    color: #ffffff;
}

.news-card__description {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 125%;
    color: #A9B0B8;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.news-card--article .news-card__description {
    color: #A9B0B8;
}

.news-card--action .news-card__description {
    color: rgba(255, 255, 255, 0.9);
}

.news-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    overflow: hidden;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(20, 88, 228, 0.05) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(20, 88, 228, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 10px;
    z-index: 1;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.news-card:hover::before {
    opacity: 1;
}

.news-card__title {
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.news-card:hover .news-card__title {
    transform: translateX(3px);
}

.news-card:hover .news-card__description {
    color: #6B7C93;
    transform: translateX(3px);
}

.news-card__tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.news-tag {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: -0.05em;
    color: #000000;
    padding: 10px 25px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: 1000px;
    background-color: transparent;
    white-space: nowrap;
}

/* White tags for news cards */
.news-card--news .news-tag {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

/* Blue tags for action cards */
.news-card--action .news-tag {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

/* Show More Button */
.news-page__show-more {
    width: 100%;
    height: 62px;
    background-color: #0B0D10;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 120%;
    letter-spacing: -0.02em;
    border: none;
    border-radius: 1000px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-page__show-more:hover {
    background-color: #1a1d22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 13, 16, 0.3);
}

.news-page__show-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent);
    transition: left 0.5s ease;
}

.news-page__show-more:hover::before {
    left: 100%;
}

/* Responsive Design */

/* Large Desktop */
@media (max-width: 1599px) {
    .news-page__grid {
        gap: 15px;
    }

    .news-card {
        width: 100%;
        max-width: 340px;
    }
}

/* Desktop */
@media (max-width: 1280px) {
    .news-page__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .news-card {
        width: 100%;
        max-width: 380px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .news-page {
        padding: 120px 0 80px;
    }

    .news-page__title {
        font-size: 42px;
        margin-bottom: 25px;
    }

    .news-page__description {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .news-page__controls {
        flex-direction: column;
        gap: 30px;
        align-items: stretch;
        margin-bottom: 40px;
    }

    .news-page__filters {
        justify-content: flex-start;
        gap: 15px;
    }

    .filter-dropdown__toggle {
        font-size: 18px;
        height: 56px;
        padding: 18px 25px;
    }

    .filter-dropdown--small .filter-dropdown__toggle {
        width: 56px;
        height: 56px;
        padding: 16px;
    }

    .filter-dropdown__icon--small {
        width: 26px;
        height: 26px;
    }

    .news-page__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 40px;
    }

    .news-card {
        width: 100%;
        max-width: none;
    }


}

/* Mobile */
@media (max-width: 480px) {
    .news-page {
        padding: 100px 0 60px;
    }

    .news-page__title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .news-page__description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .news-page__controls {
        gap: 25px;
        margin-bottom: 30px;
    }

    .news-page__filters {
        gap: 12px;
    }

    .filter-dropdown__toggle {
        font-size: 16px;
        height: 52px;
        padding: 16px 20px;
    }

    .filter-dropdown--small .filter-dropdown__toggle {
        width: 52px;
        height: 52px;
        padding: 14px;
    }

    .filter-dropdown__icon--small {
        width: 24px;
        height: 24px;
    }

    .filter-dropdown__menu {
        min-width: 250px;
        padding: 15px;
    }

    .filter-dropdown__menu--small {
        min-width: 220px;
    }

    .filter-dropdown__option {
        font-size: 16px;
        padding: 12px 0;
    }

    .news-page__grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }

    .news-card {
        width: 100%;
        max-width: none;
    }



    .news-card--article .news-card__title {
        font-size: 20px;
    }

    .news-card--news .news-card__title {
        font-size: 16px;
    }

    .news-card__description {
        font-size: 16px;
    }

    .news-tag {
        font-size: 14px;
        padding: 8px 20px;
    }

    .news-page__show-more {
        height: 56px;
        font-size: 16px;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .news-page__title {
        font-size: 28px;
    }

    .filter-dropdown__toggle {
        font-size: 15px;
        padding: 14px 18px;
    }

    .filter-dropdown__menu {
        min-width: 220px;
    }


}

/* ============================================
   NEWS DETAIL PAGE STYLES - В СТИЛЕ САЙТА
============================================ */

/* News Detail Page Main */
.news-detail-page {
    padding: 150px 0 100px;
    background-color: #ffffff;
}

/* Breadcrumb Navigation - в стиле сайта */
.breadcrumb {
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #A9B0B8;
}

.breadcrumb__link {
    color: #A9B0B8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb__link:hover {
    color: #1458E4;
}

.breadcrumb__separator {
    color: #A9B0B8;
}

.breadcrumb__current {
    color: #000000;
    font-weight: 500;
}

/* News Detail Container - в стиле карточек сайта */
.news-detail {
    max-width: 1200px;
    margin: 0 auto 100px;
    background-color: #ffffff;
}

/* News Detail Header (для новостей с изображениями) */
.news-detail__header {
    margin-bottom: 50px;
    position: relative;
}

.news-detail__image {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
    background-color: #f5f5f5;
}

.news-detail__image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.news-detail__image:hover img {
    transform: scale(1.05);
}

.news-detail__image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(20, 88, 228, 0.1) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(20, 88, 228, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.news-detail__image:hover::before {
    opacity: 1;
}

.news-detail__meta {
    display: flex;
    align-items: center;
    gap: 30px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #A9B0B8;
    margin-bottom: 30px;
}

.news-detail__views {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* News Detail Content - в стиле контента сайта */
.news-detail__content {
    padding: 40px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.news-detail__content--text {
    padding: 40px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.news-detail__title {
    font-family: 'Inter', sans-serif;
    font-size: 48px;
    font-weight: 600;
    line-height: 110%;
    letter-spacing: -0.05em;
    color: #000000;
    margin: 0 0 40px 0;
}

.news-detail__text {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 150%;
    color: #000000;
    margin-bottom: 40px;
}

.news-detail__text p {
    margin-bottom: 20px;
}

.news-detail__text p:last-child {
    margin-bottom: 0;
}

/* News Detail Tags - в стиле тегов сайта */
.news-detail__tags {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.news-tag--detail {
    font-size: 18px;
    padding: 12px 30px;
    background-color: rgba(20, 88, 228, 0.1);
    border: 1px solid rgba(20, 88, 228, 0.3);
    color: #1458E4;
    border-radius: 1000px;
    transition: all 0.3s ease;
}

.news-tag--detail:hover {
    background-color: #1458E4;
    color: #ffffff;
    transform: translateY(-2px);
}

/* News Detail CTA - в стиле CTA сайта */
.news-detail__cta {
    text-align: center;
    padding: 20px 40px;
    background-color: #0B0D10;
    border-radius: 15px;
    color: #ffffff;
}

.news-detail__cta .btn-primary {
    display: block !important;
    font-size: 20px;
    padding: 20px 60px;
    width: 100%;
    height: auto;
    background-color: #1458E4;
    border-radius: 1000px;
}



/* Related News Section - в стиле секций сайта */
.related-news {
    margin-bottom: 100px;
}

.related-news__title {
    font-family: 'Inter', sans-serif;
    font-size: 42px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: -0.05em;
    color: #000000;
    margin: 0 0 50px 0;
    text-align: left;
}

.related-news__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
    max-width: 1420px;
    margin-left: auto;
    margin-right: auto;
}

/* Related News Cards - точно как на главной странице новостей */

/* News CTA Section - в стиле CTA сайта */
.news-cta {
    background: linear-gradient(135deg, #e41414 0%, #0B0D10 100%);
    border-radius: 20px;
    padding: 80px 60px;
    text-align: center;
    color: #ffffff;
    margin-bottom: 100px;
}

.news-cta__title {
    font-family: 'Inter', sans-serif;
    font-size: 42px;
    font-weight: 600;
    line-height: 110%;
    letter-spacing: -0.05em;
    margin: 0 0 20px 0;
}

.news-cta__description {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 150%;
    margin: 0 0 40px 0;
    opacity: 0.9;
}

.news-cta__button {
    background-color: #ffffff;
    color: #1458E4;
    font-size: 20px;
    padding: 20px 60px;
    height: auto;
    border-radius: 1000px;
}

.news-cta__button:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

/* Error State - в стиле сайта */
.news-detail__error {
    text-align: center;
    padding: 100px 40px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.news-detail__error h1 {
    font-family: 'Inter', sans-serif;
    font-size: 48px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 20px 0;
}

.news-detail__error p {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    color: #A9B0B8;
    margin: 0 0 40px 0;
}

/* Responsive Design for News Detail */

/* Large Desktop - 4 карточки */
@media (min-width: 1600px) {
    .related-news__grid {
        grid-template-columns: repeat(4, 320px);
        gap: 20px;
    }
}

/* Desktop */
@media (max-width: 1599px) and (min-width: 1281px) {
    .related-news__grid {
        grid-template-columns: repeat(3, 320px);
        gap: 20px;
    }
}

@media (max-width: 1280px) {
    .news-detail-page {
        padding: 120px 0 80px;
    }

    .news-detail__image img {
        height: 350px;
    }

    .news-detail__title {
        font-size: 40px;
    }

    .related-news__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .news-detail-page {
        padding: 100px 0 60px;
    }

    .breadcrumb {
        margin-bottom: 40px;
        font-size: 14px;
    }

    .news-detail__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        font-size: 14px;
    }

    .news-detail__image img {
        height: 280px;
    }

    .news-detail__title {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .news-detail__text {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .news-detail__text p {
        margin-bottom: 15px;
    }

    .news-detail__tags {
        margin-bottom: 40px;
    }

    .news-tag--detail {
        font-size: 16px;
        padding: 10px 25px;
    }

    .related-news {
        margin-bottom: 80px;
    }

    .related-news__title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .related-news__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .news-cta {
        padding: 60px 40px;
        margin-bottom: 80px;
    }

    .news-cta__title {
        font-size: 32px;
    }

    .news-cta__description {
        font-size: 18px;
    }
}

/* Small Tablet */
@media (max-width: 850px) and (min-width: 481px) {
    .news-detail__cta {
        padding: 30px 20px;
    }

    .news-detail__cta .btn-primary {
        display: block !important;
        font-size: 19px;
        padding: 19px 55px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .news-detail-page {
        padding: 80px 0 40px;
    }

    .breadcrumb {
        margin-bottom: 30px;
        font-size: 13px;
        gap: 8px;
    }

    .news-detail__meta {
        gap: 12px;
        font-size: 13px;
    }

    .news-detail__image img {
        height: 220px;
    }

    .news-detail__title {
        font-size: 26px;
        margin-bottom: 25px;
    }

    .news-detail__text {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .news-detail__text p {
        margin-bottom: 12px;
    }

    .news-detail__tags {
        gap: 10px;
        margin-bottom: 30px;
    }

    .news-tag--detail {
        font-size: 14px;
        padding: 8px 20px;
    }

    .news-detail__cta {
        padding: 40px 15px;
    }

    .news-detail__cta .btn-primary {
        display: block !important;
        font-size: 18px;
        padding: 18px 50px;
    }

    .related-news {
        margin-bottom: 60px;
    }

    .related-news__title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .related-news__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-cta {
        padding: 50px 30px;
        margin-bottom: 60px;
    }

    .news-cta__title {
        font-size: 26px;
    }

    .news-cta__description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .news-cta__button {
        font-size: 18px;
        padding: 18px 50px;
    }

    .news-detail__error {
        padding: 60px 0;
    }

    .news-detail__error h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .news-detail__error p {
        font-size: 16px;
        margin-bottom: 30px;
    }
}

@media (max-width: 360px) {
    .news-detail__cta .btn-primary {
        font-size: 14px;
    }
}



/* Extra Small Mobile */
@media (max-width: 360px) {

    .news-detail__title {
        font-size: 22px;
    }

    .news-detail__text {
        font-size: 15px;
    }

    .related-news__title {
        font-size: 22px;
    }

    .news-cta__title {
        font-size: 22px;
    }

    .news-cta__description {
        font-size: 15px;
    }

    .news-detail__cta .btn-primary {
        padding: 18px 50px;
    }
}
