/* ========== Страница новости ========== */

.news-article {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    padding: 20px 0;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.news-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,181,14,0.1);
    color: #ffb50e;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}
.news-meta-tag img { width: 16px; height: 16px; }
.news-meta-date { font-size: 13px; color: #888; }

.news-article-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 25px;
    line-height: 1.3;
}

.news-article-img {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
}
.news-article-img img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    display: block;
}

.news-article-content {
    color: #ccc;
    font-size: 16px;
    line-height: 1.7;
}
.news-article-content p { margin: 0 0 20px; }
.news-article-content h2 { font-size: 24px; font-weight: 700; color: #fff; margin: 30px 0 15px; }
.news-article-content ul { margin: 0 0 20px; padding-left: 20px; }
.news-article-content li { margin-bottom: 8px; }

.news-source-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #2a2a2a;
    color: #ffb50e !important;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s, border-color 0.3s;
    margin-top: 10px;
}
.news-source-btn:hover { background: #3a3a3a; border-color: #ffb50e; }

.news-back {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #2a2a2a;
}
.news-back a { color: #ffb50e; font-size: 15px; font-weight: 600; text-decoration: none; }
.news-back a:hover { color: #fff; }

/* ========== Похожие товары ========== */
.content.items_main {
  padding-top: 6px;
}

.items_page {
  padding: 6px;
}

.games-content {
  margin-left: -8px;
  margin-right: -8px;
  display: inline-block;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

.items_page .games-content {
  display: flex;
}

.item-list {
  width: 20%;
  color: #252525;
  float: left;
  text-align: center;
  position: relative;
  transition: .3s;
}

.item-preview {
    display: block;
    margin: 5px;
    padding: 20px;
    overflow: hidden;
    transition: .3s;
    position: relative;
    border: 1px solid #3c3c3c;
    background: rgb(92 99 106 / 29%);
    background-image: url(/assets/img/item.webp);
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
}

.item-preview:hover {
    position: relative;
    z-index: 1;
    border-color: #ffcc57;
}

.item-img {
  overflow: hidden;
  position: relative;
  height: 140px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: .3s;
}

.item-top {
  position: relative;
  text-align: center;
}

.item-name {
    display: flex;
    padding: 0 1%;
    height: 44px;
    line-height: 40px;
    text-align: center;
    align-items: center;
    transition: .3s;
    z-index: 3;
    border: 1px solid #ffb50e;
}

.item-name-title {
    color: #feab02;
    font-size: 15px;
    line-height: 15px;
    font-weight: bold;
    margin: 0 auto;
}

.rarity-item {
    line-height: 14px;
    height: 14px;
    font-size: 14px;
    padding-top: 5px;
}

.bottom-item {
  position: relative;
  transition: .3s;
  z-index: 2;
}

.price-cont {
  height: 40px;
  padding-top: 10px;
}

.item-price-skin {
    display: inline-block;
    font-size: 20px;
    height: 30px;
    line-height: 30px;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
}

.item-old_tab-skin {
    display: inline-block;
    font-size: 13px;
    line-height: 30px;
    font-weight: bold;
    padding-right: 4px;
    color: #b3b3b3;
    text-align: right;
    text-decoration: line-through;
}

.items_page .item-price-cont {
    float: none;
    line-height: 7px;
    font-size: 20px;
    width: 75%;
    text-align: right;
}
.items_page .item-old_tab {
    float: none;
    line-height: 20px;
    font-size: 12px;
    width: 75%;
    margin-top: -4px;
}

/* Адаптив */
@media (max-width: 1400px) {
  .items_page .item-img { height: 110px; }
}

@media (max-width: 1220px) {
  .item-list { width: 25%; }
  .items_page .item-img { height: 100px; }
  .items_page .item-preview { padding: 10px; }
}

.items_page .item-preview { padding: 10px; }

@media (min-width: 800px) and (max-width: 1160px) {
  .items_page .item-img { height: 90px; }
}

@media (min-width: 800px) and (max-width: 1100px) {
  .items_page .games-content { display: inline-block; }
  .items_page .item-preview { padding: 20px; }
  .items_page .item-img { height: 120px; }
}

@media (max-width: 1000px) {
  .item-list { width: 33.33%; }
}

@media (max-width: 800px) {
  .items_page .games-content { display: inline-block; }
  .item-img { height: 130px; }
  .item-name-title { font-size: 15px; line-height: 14px; }
  .item-preview { padding: 10px; }
  .item-old_tab { float: none; line-height: 20px; font-size: 12px; width: 75%; margin-top: -4px; }
  .item-price-cont { float: none; line-height: 7px; font-size: 22px; width: 75%; text-align: right; }
}

@media screen and (max-width: 650px) {
  .item-list { width: 50%; }
}

@media (max-width: 500px) {
  .item-img { height: 120px; }
  .item-name-title { font-size: 13px; line-height: 12px; }
}

@media (max-width: 420px) {
  .item-img { height: 110px; }
  .item-price-skin { font-size: 16px; }
}
/* ===== ПОХОЖИЕ НОВОСТИ ===== */
.similar-news {
    margin: 40px 0 30px;
    padding: 0 10px;
}

.similar-news-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffb50e;
}

.similar-news-title h2 {
    font-size: 24px;
    color: #ffffff;
    font-weight: bold;
    margin: 0;
}

.similar-news-all {
    color: #ffb50e;
    font-size: 15px;
    font-weight: 600;
    transition: .3s;
}

.similar-news-all:hover {
    color: #ffcc57;
    text-decoration: underline;
}

.similar-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.similar-news-card {
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 12px;
    overflow: hidden;
    transition: .3s;
}

.similar-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: #ffb50e;
}

.similar-news-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* ===== ИКОНКА НА КАРТИНКЕ (БЕЗ КРУГА) ===== */
.similar-news-img {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #2a2a2a;
}

.similar-news-img > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.similar-news-card:hover .similar-news-img > img {
    transform: scale(1.05);
}

.similar-news-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.similar-news-tag img {
    width: 18px;
    height: 18px;
    display: block;
}

.similar-news-tag span {
    font-size: 11px;
    color: #ffffff;
    font-weight: 600;
}

/* ===== КОНТЕНТ КАРТОЧКИ ===== */
.similar-news-content {
    padding: 15px;
}

.similar-news-content h3 {
    font-size: 16px;
    color: #ffffff;
    margin: 0 0 6px 0;
    line-height: 1.3;
    font-weight: 600;
}

.similar-news-date {
    display: inline-block;
    font-size: 12px;
    color: #888888;
    margin-bottom: 6px;
}

.similar-news-content p {
    font-size: 14px;
    color: #aaaaaa;
    margin: 0;
    line-height: 1.4;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 1200px) {
    .similar-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .similar-news-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .similar-news-title h2 {
        font-size: 20px;
    }
    
    .similar-news-img {
        height: 160px;
    }
}

/* ===== 2 РЯДА НА МОБИЛКАХ ===== */
@media (max-width: 550px) {
    .similar-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .similar-news {
        margin: 20px 0;
        padding: 0 5px;
    }
    
    .similar-news-img {
        height: 100px;
    }
    
    .similar-news-tag {
        bottom: 6px;
        left: 6px;
        padding: 3px 6px;
    }
    
    .similar-news-tag img {
        width: 14px;
        height: 14px;
    }
    
    .similar-news-tag span {
        font-size: 9px;
    }
    
    .similar-news-content {
        padding: 10px;
    }
    
    .similar-news-content h3 {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .similar-news-date {
        font-size: 10px;
        margin-bottom: 4px;
    }
    
    .similar-news-content p {
        font-size: 12px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* ===== ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ ===== */
@media (max-width: 380px) {
    .similar-news-img {
        height: 80px;
    }
    
    .similar-news-content h3 {
        font-size: 12px;
    }
    
    .similar-news-content p {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }
    
    .similar-news-tag img {
        width: 12px;
        height: 12px;
    }
}
/* ===== ТЕГИ ===== */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 15px;
    padding: 15px 0;
    border-top: none;
    border-bottom: 1px solid #2a2a2a;
}

.tag-label {
    color: #888;
    font-size: 14px;
    font-weight: 600;
    margin-right: 5px;
}

.tag {
    display: inline-block;
    padding: 5px 14px;
    background: #2a2a2a;
    color: #ccc;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: .3s;
    border: 1px solid transparent;
}

.tag:hover {
    background: rgba(255, 181, 14, 0.15);
    color: #ffb50e;
    border-color: #ffb50e;
    transform: translateY(-2px);
}

/* ===== АДАПТИВ ===== */
@media (max-width: 600px) {
    .article-tags {
        gap: 6px;
        padding: 12px 0;
    }
    
    .tag {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .tag-label {
        font-size: 13px;
        width: 100%;
        margin-bottom: 2px;
    }
}
/* ===== АВТОР ===== */
.article-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 0;
    margin: 20px 0 10px;
    border-top: 1px solid #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
}

.article-author img {
    border-radius: 50%;
    background: #2a2a2a;
    flex-shrink: 0;
}

.article-author .author-name {
    display: block;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
}

.article-author .author-date {
    display: block;
    color: #888;
    font-size: 13px;
    margin-top: 2px;
}

.article-author .author-updated {
    display: block;
    color: #666;
    font-size: 12px;
}

/* ===== FAQ В СТАТЬЕ ===== */
.news-faq {
    margin: 30px 0 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
}

.news-faq-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffb50e;
    padding: 15px 20px;
    background: #1a1a1a;
    border-bottom: 1px solid #2a2a2a;
    margin: 0;
}

.news-faq-item {
    border-bottom: 1px solid #2a2a2a;
    background: #1a1a1a;
    transition: .3s;
}

.news-faq-item:last-child {
    border-bottom: none;
}

.news-faq-item:hover {
    background: #1f1f1f;
}

.news-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    transition: .3s;
    gap: 15px;
}

.news-faq-question:hover .news-faq-q-text {
    color: #ffb50e;
}

.news-faq-q-text {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    transition: .3s;
    margin: 0;
    line-height: 1.4;
}

.news-faq-q-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: rgba(255, 181, 14, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
    color: #ffb50e;
    font-size: 14px;
    font-weight: 700;
}

.news-faq-item.open .news-faq-q-icon {
    background: #ffb50e;
    color: #000;
    transform: rotate(180deg);
}

.news-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 20px;
}

.news-faq-item.open .news-faq-answer {
    max-height: 300px;
    padding: 0 20px 18px 20px;
}

.news-faq-answer p {
    color: #aaa;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 600px) {
    .news-faq-title {
        font-size: 18px;
        padding: 12px 16px;
    }

    .news-faq-question {
        padding: 13px 16px;
        gap: 12px;
    }

    .news-faq-q-text {
        font-size: 14px;
    }

    .news-faq-q-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .news-faq-answer p {
        font-size: 14px;
    }

    .news-faq-item.open .news-faq-answer {
        padding: 0 16px 14px 16px;
    }
}
/* ===== ТАБЛИЦЫ ===== */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0 30px;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
}

.news-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: #d0d0d0;
    min-width: 640px;
}

.news-table thead {
    background: #1a1a1a;
    border-bottom: 2px solid #ffb50e;
}

.news-table thead th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 700;
    color: #ffb50e;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.news-table tbody tr {
    border-bottom: 1px solid #2a2a2a;
    transition: .3s;
}

.news-table tbody tr:hover {
    background: rgba(255, 181, 14, 0.04);
}

.news-table tbody td {
    padding: 13px 16px;
    vertical-align: middle;
    line-height: 1.5;
}

.news-table tbody tr:last-child {
    border-bottom: none;
}

.table-highlight {
    display: inline-block;
    background: rgba(255, 181, 14, 0.15);
    color: #ffb50e;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 4px;
    white-space: nowrap;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 700px) {
    .table-responsive {
        margin: 15px 0 20px;
        border-radius: 8px;
    }

    .news-table {
        font-size: 13px;
        min-width: 500px;
    }

    .news-table thead th,
    .news-table tbody td {
        padding: 10px 12px;
    }

    .table-highlight {
        font-size: 12px;
        padding: 1px 8px;
    }
}

@media (max-width: 500px) {
    .news-table {
        font-size: 12px;
        min-width: 400px;
    }

    .news-table thead th,
    .news-table tbody td {
        padding: 8px 10px;
    }

    .table-highlight {
        font-size: 11px;
        padding: 1px 6px;
    }
}

/* ===== АДАПТИВ ===== */
@media (max-width: 600px) {
    .article-author {
        gap: 10px;
        padding: 12px 0;
    }
    
    .article-author img {
        width: 40px;
        height: 40px;
    }
    
    .article-author .author-name {
        font-size: 14px;
    }
    
    .article-author .author-date {
        font-size: 12px;
    }
}