    :root {
      --bg-body: #f0f4f9;
      --bg-card: #ffffff;
      --primary-blue: #3b82f6;
      --primary-green: #8fd14f;
      --primary-green-hover: #7cb342;
      --text-main: #2d3442;
      --text-secondary: #8a94a6;
      --input-bg: #f5f7fa;
      --border-radius: 16px;
      --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.03);
      --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.08);
      --danger: #ff6b6b;
      --warning-bg: #ffe4e4;
      --danger-bg: #fff5f5;
      --danger-text: #e53e3e;
      --info-bg: #ebf8ff;
      --info-text: #3182ce;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: 'Rubik', sans-serif;
      background-color: var(--bg-body);
      color: var(--text-main);
      padding-bottom: 40px;
    }

    a {
      text-decoration: none;
      color: inherit;
      transition: 0.2s;
    }

    ul {
      list-style: none;
    }

    /* --- HEADER --- */
    .header {
      background: var(--bg-card);
      padding: 15px 30px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      /* Распределяет left, menu, right */
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
      position: sticky;
      top: 0;
      z-index: 1000;
      height: 80px;
    }

    .header-left,
    .header-right {
      flex: 1;
      display: flex;
      align-items: center;
    }

    .header-right {
      justify-content: flex-end;
      gap: 15px;
    }

    .menu-wrapper {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .logo {
      display: flex;
      align-items: center;
      font-weight: 700;
      font-size: 1.2rem;
      color: var(--text-main);
      gap: 10px;
    }

    .logo-box {
      background: var(--primary-blue);
      color: white;
      width: 36px;
      height: 36px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.2rem;
    }

    .logo-text span {
      background: #2d3442;
      color: white;
      padding: 3px 6px;
      border-radius: 6px;
      margin-left: 4px;
      font-size: 0.9em;
    }

    .nav-menu {
      display: flex;
      gap: 30px;
    }

    .mobile-only-content {
      display: none;
    }

    .mobile-burger {
      display: none;
      z-index: 1100;
      font-size: 1.5rem;
      cursor: pointer;
    }

    .nav-link {
      color: var(--text-secondary);
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.95rem;
    }

    .nav-link:hover,
    .nav-link.active {
      color: var(--primary-blue);
    }

    .header-right {
      display: flex;
      align-items: center;
      gap: 15px;
    }

    .btn-balance {
      background: var(--primary-green);
      color: white;
      padding: 8px 16px;
      border-radius: 12px;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .user-stat {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 600;
      color: var(--text-secondary);
    }

    .social-group {
      display: flex;
      gap: 10px;
    }

    .social-icon {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 1.1rem;
    }

    .discord {
      background: #5865F2;
    }

    .vk {
      background: #0077FF;
    }

    @media (max-width: 1100px) {
      .desktop-only {
        display: none;
      }

      .mobile-burger {
        display: block;
      }

      .header-left,
      .header-right {
        flex: 1;
      }

      .menu-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        /* Почти непрозрачный белый */
        backdrop-filter: blur(10px);
        /* Эффект стекла */
        flex-direction: column;
        gap: 40px;
        opacity: 0;
        visibility: hidden;
        transform: scale(1.1);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      }

      .menu-wrapper.active {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
      }

      .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 20px;
      }

      .nav-link {
        font-size: 1.5rem;
      }

      .mobile-only-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
      }
    }

    /* Анимация иконки бургера */
    .mobile-burger i {
      transition: 0.3s;
    }

    .mobile-burger.open i {
      transform: rotate(90deg);
    }


    /* --- LAYOUT --- */
    .container {
      max-width: 1400px;
      margin: 0 auto;
      padding: 0 20px;
    }

    /* --- BREADCRUMBS --- */
    .breadcrumbs {
      margin: 20px 0;
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 0.9rem;
      color: var(--text-secondary);
    }
    
    
    .breadcrumbs {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    
    /* Добавляем эти свойства для скролла */
    overflow-x: auto;         /* Включаем горизонтальный скролл */
    white-space: nowrap;      /* Запрещаем тексту переноситься на новую строку */
    flex-wrap: nowrap;        /* Гарантируем, что flex-элементы будут в одну линию */
    
    /* Улучшаем плавность скролла на мобильных (iOS) */
    -webkit-overflow-scrolling: touch;
    
    /* Опционально: скрываем полосу прокрутки, если она мешает */
    scrollbar-width: none;    /* Для Firefox */
}

/* Скрываем полосу прокрутки для Chrome/Safari */
.breadcrumbs::-webkit-scrollbar {
    display: none;
}
    

    .breadcrumbs a:hover {
      color: var(--primary-blue);
    }

    .breadcrumbs .separator {
      font-size: 0.8rem;
      opacity: 0.5;
    }

    .breadcrumbs .current {
      color: var(--text-main);
      font-weight: 500;
      background: white;
      padding: 4px 10px;
      border-radius: 8px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    }

    /* --- GRID SYSTEM --- */
    .main-grid {
      display: grid;
      grid-template-columns: 260px 1fr 280px;
      /* Sidebar - Content - Sidebar */
      gap: 25px;
      align-items: start;
    }
    
    .publ-main-grid {
      display: grid;
      grid-template-columns: 260px 1fr;
      gap: 25px;
      align-items: start;
    }
    
    .publ-main-grid .sidebar-left {
        position: sticky;
        top: 100px;
    }

    /* --- SIDEBAR LEFT --- */
    .sidebar-card {
      background: var(--bg-card);
      border-radius: var(--border-radius);
      padding: 20px;
      margin-bottom: 20px;
      box-shadow: var(--shadow-soft);
    }

    .user-mini {
      display: flex;
      align-items: center;
      gap: 10px;
      background: var(--input-bg);
      padding: 10px;
      border-radius: 12px;
      margin-bottom: 20px;
    }

    .user-avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      /* Круглая как на скриншоте 2 */
      background: #ddd;
      overflow: hidden;
    }

    .user-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .side-menu li {
      margin-bottom: 5px;
    }

    .side-link {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 15px;
      border-radius: 12px;
      color: var(--text-secondary);
      font-weight: 500;
    }

    .side-link:hover {
      background: #f5f7fa;
      color: var(--primary-blue);
    }

    .side-link.active {
      background: white;
      color: var(--primary-blue);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .side-link i {
      width: 20px;
      text-align: center;
      transition: all 0.3s ease;
    }


    .search-widget {
      background: var(--input-bg);
      padding: 12px 15px;
      border-radius: 12px;

      color: var(--text-secondary);
    }
    
    .search-widget form {
              display: flex;
      align-items: center;
      gap: 10px;
    }

    .search-widget input {
      border: none;
      background: transparent;
      outline: none;
      width: 100%;
      color: var(--text-main);
      font-family: inherit;
    }

    /* --- MAIN CONTENT (MODS) --- */
    .content-header {
      background: var(--bg-card);
      padding: 20px;
      border-radius: var(--border-radius);
      box-shadow: var(--shadow-soft);
      margin-bottom: 25px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .content-title h1 {
      font-size: 2rem;
      margin-bottom: 5px;
    }
    
        .content-title h2 {
      font-size: 1.5rem;
      margin-bottom: 5px;
    }
    
    .content-title h3 {
        font-size: 1.3rem;
      margin-bottom: 5px;
    }

    .content-title p {
      color: var(--text-secondary);
      font-size: 0.9rem;
      margin-bottom: 10px;
    }
    
    /* Стилизация списков внутри SEO-блока */
.content-title ul, .description-text ul {
list-style: none;
padding: 0;
margin: 0 0 25px 0;
}

.content-title ul li, .description-text ul li {
position: relative;
padding-left: 30px;
margin-bottom: 12px;
font-size: 15px;
color: var(--text-secondary);
transition: 0.3s ease;
}

/* Иконка-галочка в стиле твоего дизайна */
.content-title ul li::before, .description-text ul li::before {
content: "\f058"; /* Иконка check-circle из Font Awesome */
font-family: "Font Awesome 6 Free";
font-weight: 900;
position: absolute;
left: 0;
top: 2px;
color: var(--primary-blue);
font-size: 16px;
}

/* Подсветка ключевых слов в списках */
.content-title ul li strong, .description-text ul li strong {
color: var(--text-secondary);
font-weight: 500;
}

.content-title ul li:hover, .description-text ul li:hover {
transform: translateX(8px);
}

    .sort-select {
      background: var(--input-bg);
      border: none;
      padding: 10px 15px;
      border-radius: 10px;
      font-family: inherit;
      color: var(--text-main);
      cursor: pointer;
      outline: none;
    }

    /* CARD GRID */
    .mods-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 20px;
      margin-bottom: 20px;
    }

    .mod-card {
      background: var(--bg-card);
      border-radius: var(--border-radius);
      overflow: hidden;
      box-shadow: var(--shadow-soft);
      transition: transform 0.2s, box-shadow 0.2s;
      display: flex;
      flex-direction: column;
    }

    .mod-card:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-hover);
    }

    .mod-thumb {
      height: 160px;
      background: #ddd;
      position: relative;
    }

    .mod-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .mod-version-badge {
      position: absolute;
      top: 10px;
      right: 10px;
      background: rgba(0, 0, 0, 0.7);
      color: white;
      padding: 4px 8px;
      border-radius: 6px;
      font-size: 0.75rem;
      font-weight: 600;
    }

    .mod-content {
      padding: 20px;
      flex-grow: 1;
      display: flex;
      flex-direction: column;
    }

    .mod-title {
      font-size: 1.1rem;
      font-weight: 700;
      margin-bottom: 8px;
      display: flex;
      justify-content: space-between;
    }

    .mod-desc {
      font-size: 0.9rem;
      color: var(--text-secondary);
      margin-bottom: 15px;
      line-height: 1.4;
      flex-grow: 1;
    }

    .mod-meta {
      display: flex;
      gap: 10px;
      margin-bottom: 15px;
    }

    .tag {
      background: var(--input-bg);
      padding: 4px 8px;
      border-radius: 6px;
      font-size: 0.75rem;
      color: var(--text-secondary);
      font-weight: 500;
    }

    .btn-download {
      background: var(--primary-green);
      color: white;
      border: none;
      width: 100%;
      padding: 12px;
      border-radius: 12px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 8px;
      transition: 0.2s;
    }

    .btn-download:hover {
      background: var(--primary-green-hover);
    }

    /* --- RIGHT SIDEBAR (FILTERS & WIDGETS) --- */
    .main-grid.product-page .sidebar-right, .main-grid.product-page .sidebar-left {
        position: sticky;
        top: 100px;
    }
    
    
    .filter-section {
      margin-bottom: 20px;
    }

    .filter-title {
      font-weight: 600;
      margin-bottom: 10px;
      display: flex;
      justify-content: space-between;
    }

    .version-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .version-chip {
      border: 1px solid #eee;
      padding: 6px 12px;
      border-radius: 8px;
      font-size: 0.85rem;
      cursor: pointer;
      transition: 0.2s;
    }

    .version-chip:hover,
    .version-chip.active {
      background: var(--primary-blue);
      color: white;
      border-color: var(--primary-blue);
    }

    .toggle-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 0;
      border-bottom: 1px solid #f0f0f0;
      font-size: 0.9rem;
    }

    /* Custom Toggle Switch styling from screenshot style */
    .toggle-switch {
      width: 40px;
      height: 22px;
      background: #ccc;
      border-radius: 20px;
      position: relative;
      cursor: pointer;
      transition: 0.3s;
    }

    .toggle-switch.active {
      background: var(--primary-green);
    }

    .toggle-switch::after {
      content: '';
      position: absolute;
      top: 3px;
      left: 3px;
      width: 16px;
      height: 16px;
      background: white;
      border-radius: 50%;
      transition: 0.3s;
    }

    .toggle-switch.active::after {
      left: 21px;
    }

    .info-box {
      background: var(--warning-bg);
      color: #d63031;
      padding: 15px;
      border-radius: 10px;
      font-size: 0.85rem;
      line-height: 1.4;
      margin-top: 15px;
    }

    /* --- FOOTER TOP (Dark panel) --- */
    .footer-widgets {
      margin-top: 40px;
      background: #4b5563;
      /* Dark grey from screenshot footer */
      border-radius: var(--border-radius);
      padding: 30px;
      color: white;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
      gap: 15px;
      justify-items: center;
      background: #2d3442;
    }

    .top-author {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 10px;
    }

    .author-head {
      width: 64px;
      height: 64px;
      background: #444;
      border-radius: 12px;
      overflow: hidden;
      border: 2px solid rgba(255, 255, 255, 0.1);
    }

    .author-head img {
      width: 100%;
    }

    .author-name {
      font-weight: 700;
      font-size: 0.9rem;
    }

    .author-role {
      font-size: 0.7rem;
      opacity: 0.7;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    /* --- FOOTER BOTTOM --- */
    .footer-bottom {
      margin-top: 30px;
      background: var(--bg-card);
      border-radius: var(--border-radius);
      padding: 20px 30px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: var(--text-secondary);
      font-size: 0.85rem;
      flex-wrap: wrap;
      gap: 15px;
    }

    /* --- RESPONSIVE --- */
    @media (max-width: 1200px) {
      .main-grid {
        grid-template-columns: 260px 1fr;
        grid-template-rows: auto;
        align-items: start;
      }

.main-grid.product-page .sidebar-right, .main-grid.product-page .sidebar-left {
    position: static;
}


      .sidebar-right {
grid-column: 1;
        grid-row: 1;
        display: block !important;
      }
      
      .sidebar-left {
grid-column: 1;
        grid-row: 2;
        margin-top: -25px;
    }
    
    .content-area {
grid-column: 2;
        grid-row: 1 / 100; /* Растягиваем на много строк вперед */
    }

    }
    
    
    /* --- Планшетная версия (ваша текущая) --- */
@media (max-width: 1200px) and (min-width: 769px) {
    .main-grid {
        display: grid;
        grid-template-columns: 260px 1fr;
        grid-template-rows: auto;
        align-items: start;
        gap: 25px;
    }

    .sidebar-right {
        grid-column: 1;
        grid-row: 1;
        display: block !important;
    }
    
    .sidebar-left {
        grid-column: 1;
        grid-row: 2;
        margin-top: -25px;
    }
    
    .content-area {
        grid-column: 2;
        grid-row: 1 / 100;
    }
}

/* --- Мобильная версия (до 768px включительно) --- */
@media (max-width: 768px) {
    .main-grid {
        display: flex;
        flex-direction: column; /* Все блоки в одну колонку */
        gap: 20px;
    }

    .content-area {
        order: 1; /* Контент идет первым */
        width: 100%;
    }

    .sidebar-right {
        order: 2; /* Правый сайдбар (скачать) сразу под контентом */
        display: block !important;
        width: 100%;
    }

    .sidebar-left {
        order: 3; /* Левое меню в самом низу */
        width: 100%;
        margin-top: 0; /* Сбрасываем отрицательный отступ */
    }

    /* Убираем лишние отступы у карточек внутри, чтобы они были на всю ширину */
    .sidebar-card, .info-card {
        margin-left: 0;
        margin-right: 0;
    }
}

    @media (max-width: 900px) {

      /* Use hamburger in real site */
      .header {
        flex-wrap: wrap;
      }

      .nav-menu {
        order: 3;
        width: 100%;
        margin-top: 15px;
        overflow-x: auto;
        padding-bottom: 5px;
      }
    }
    
    
    /* --- MOD PAGE SPECIFIC --- */

    /* Mod Header Block */
    .mod-header-block {
      display: flex;
      gap: 20px;
      margin-bottom: 25px;
      background: var(--bg-card);
      padding: 25px;
      border-radius: var(--border-radius);
      box-shadow: var(--shadow-soft);
      border: 1px solid var(--border-color);
    }

    .mod-icon-large {
      width: 100px;
      height: 100px;
      background: #eef2f6;
      border-radius: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 3rem;
      color: var(--primary-blue);
      flex-shrink: 0;
    }

    .mod-header-info h1 {
      font-size: 1.8rem;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .verified-badge {
      color: var(--primary-blue);
      font-size: 0.6em;
      vertical-align: middle;
    }

    .mod-header-meta {
      display: flex;
      gap: 15px;
      color: var(--text-secondary);
      font-size: 0.9rem;
      margin-bottom: 15px;
    }

    .mod-header-meta span {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .mod-tags {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .tag {
      background: var(--input-bg);
      padding: 5px 10px;
      border-radius: 8px;
      font-size: 0.8rem;
      color: var(--text-main);
      font-weight: 500;
    }

    /* Gallery */
    .gallery-section {
      margin-bottom: 25px;
    }

    .main-image {
      width: 100%;
      height: 350px;
      background: #ddd;
      border-radius: var(--border-radius);
      overflow: hidden;
      margin-bottom: 10px;
    }

    .main-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .thumbnails {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 10px;
    }

    .thumb {
      height: 70px;
      border-radius: 10px;
      background: #ddd;
      overflow: hidden;
      cursor: pointer;
      opacity: 0.7;
      transition: 0.2s;
      border: 2px solid transparent;
    }

    .thumb:hover,
    .thumb.active {
      opacity: 1;
      border-color: var(--primary-blue);
    }

    .thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    /* Content Tabs / Body */
    .content-body {
      background: var(--bg-card);
      border-radius: var(--border-radius);
      padding: 30px;
      box-shadow: var(--shadow-soft);
    }

    .section-heading {
      font-size: 1.2rem;
      font-weight: 700;
      margin-bottom: 20px;
      padding-bottom: 10px;
      border-bottom: 2px solid var(--input-bg);
      display: flex;
      gap: 20px;
    }

    .tab-link {
      cursor: pointer;
      padding-bottom: 12px;
      margin-bottom: -12px;
      color: var(--text-secondary);
      transition: 0.2s;
    }

    .tab-link.active {
      color: var(--primary-blue);
      border-bottom: 2px solid var(--primary-blue);
    }

    .description-text {
      line-height: 1.6;
      color: var(--text-main);
      margin-bottom: 40px;
    }

    .description-text h3 {
      margin: 20px 0 10px;
      font-size: 1.1rem;
    }

    .description-text p {
      margin-bottom: 15px;
    }



    /* Files Table */
    .files-table {
      width: 100%;
      border-collapse: collapse;
      margin-bottom: 30px;
    }

    .files-table th {
      text-align: left;
      padding: 15px;
      background: var(--input-bg);
      font-weight: 600;
      color: var(--text-secondary);
      font-size: 0.9rem;
    }

    .files-table th:first-child {
      border-radius: 10px 0 0 10px;
    }

    .files-table th:last-child {
      border-radius: 0 10px 10px 0;
    }

    .files-table td {
      padding: 15px;
      border-bottom: 1px solid #eee;
      font-size: 0.9rem;
    }

    .file-name {
      font-weight: 600;
      color: var(--text-main);
    }

    .loader-icon {
      font-size: 0.8rem;
      margin-right: 5px;
    }

    .loader-forge {
      color: #dfa612;
    }

    .loader-fabric {
      color: #d6b889;
    }

    .btn-sm-download {
      background: var(--input-bg);
      color: var(--text-main);
      padding: 8px 12px;
      border-radius: 8px;
      font-weight: 500;
      font-size: 0.85rem;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      transition: 0.2s;
    }

    .btn-sm-download:hover {
      background: var(--primary-blue);
      color: white;
    }

    /* Comments */
    .comment-box {
      margin-top: 40px;
    }

    .comment-input-area {
      display: flex;
      gap: 15px;
      margin-bottom: 30px;
    }

    .comment-input {
      flex-grow: 1;
      background: var(--input-bg);
      border: none;
      border-radius: 12px;
      padding: 15px;
      font-family: inherit;
      resize: vertical;
      min-height: 80px;
    }

    .btn-post {
      background: var(--primary-blue);
      color: white;
      border: none;
      padding: 0 25px;
      border-radius: 12px;
      font-weight: 600;
      cursor: pointer;
      height: fit-content;
      align-self: flex-end;
      padding-top: 10px;
      padding-bottom: 10px;
    }

    .comment-item {
      display: flex;
      gap: 15px;
      margin-bottom: 20px;
    }

    .comment-content {
      background: var(--input-bg);
      padding: 15px;
      border-radius: 0 16px 16px 16px;
      flex-grow: 1;
    }

    .comment-header {
      display: flex;
      justify-content: space-between;
      margin-bottom: 5px;
      font-size: 0.9rem;
    }

    .comment-author {
      font-weight: 600;
    }

    .comment-date {
      color: var(--text-secondary);
      font-size: 0.8rem;
    }
    
        /* --- RIGHT SIDEBAR --- */
    .info-card {
      background: var(--bg-card);
      border-radius: var(--border-radius);
      padding: 20px;
      margin-bottom: 20px;
      box-shadow: var(--shadow-soft);
    }

    .info-row {
      display: flex;
      justify-content: space-between;
      margin-bottom: 12px;
      font-size: 0.9rem;
    }

    .info-label {
      color: var(--text-secondary);
    }

    .info-value {
      font-weight: 500;
      text-align: right;
    }

    .btn-main-download {
      background: var(--primary-green);
      color: white;
      width: 100%;
      padding: 15px;
      border-radius: 12px;
      font-weight: 600;
      font-size: 1rem;
      text-align: center;
      border: none;
      cursor: pointer;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 10px;
      margin-bottom: 15px;
      transition: 0.2s;
    }

    .btn-main-download:hover {
      background: var(--primary-green-hover);
    }

    .dependency-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px;
      background: var(--input-bg);
      border-radius: 10px;
      margin-bottom: 8px;
      font-size: 0.9rem;
      font-weight: 500;
    }

    .dependency-item img {
      width: 24px;
      height: 24px;
      border-radius: 4px;
    }
    
    
    
    
    /* --- ADAPTIVE FOR MOD PAGE --- */

@media (max-width: 992px) {
    .mod-header-block {
        flex-direction: column; /* Картинка теперь сверху названия */
        align-items: center;
        text-align: center;
    }

    .mod-header-info h1 {
        justify-content: center;
    }

    .mod-header-meta, .mod-tags {
        justify-content: center;
    }

    .main-image {
        height: 250px; /* Уменьшаем высоту галереи на планшетах */
    }
}

@media (max-width: 768px) {
    .content-body {
        padding: 15px; /* Меньше отступы на телефонах */
    }

    /* Адаптация таблицы файлов (делаем скролл или карточки) */
    .files-table thead {
        display: none; /* Прячем заголовки таблицы */
    }

    .files-table, .files-table tbody, .files-table tr, .files-table td {
        display: block;
        width: 100% !important;
    }

    .files-table tr {
        margin-bottom: 15px;
        background: var(--input-bg);
        border-radius: 12px;
        padding: 10px;
    }

    .files-table td {
        border: none;
        text-align: right;
        padding: 8px 10px;
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Добавляем подписи к данным в таблице через CSS */
    .files-table td::before {
        content: attr(data-label); /* Нужно добавить data-label в HTML */
        font-weight: 600;
        color: var(--text-secondary);
        font-size: 0.8rem;
    }

    .thumbnails {
        grid-template-columns: repeat(3, 1fr); /* 3 превью в ряд вместо 5 */
    }

    .comment-input-area {
        flex-direction: column;
    }

    .btn-post {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .mod-icon-large {
        width: 80px;
        height: 80px;
        font-size: 2.2rem;
    }

    .mod-header-info h1 {
        font-size: 1.4rem;
    }

    .main-image {
        height: 180px;
    }

    .section-heading {
        font-size: 1rem;
        gap: 10px;
    }
}
    
    
    
    
    
    
    
    
    /* --- GUIDE CONTENT --- */
    .guide-article {
      background: var(--bg-card);
      border-radius: var(--border-radius);
      padding: 40px;
      box-shadow: var(--shadow-soft);
    }

    .article-header {
      border-bottom: 2px solid var(--input-bg);
      margin-bottom: 30px;
      padding-bottom: 20px;
    }

    .article-header h1 {
      font-size: 2rem;
      margin-bottom: 10px;
      color: var(--text-main);
    }

    .article-meta {
      display: flex;
      gap: 20px;
      color: var(--text-secondary);
      font-size: 0.9rem;
    }

    /* Steps Styling */
    .step-block {
      position: relative;
      padding-left: 60px;
      margin-bottom: 40px;
    }

    .step-number {
      position: absolute;
      left: 0;
      top: 0;
      width: 40px;
      height: 40px;
      background: var(--primary-blue);
      color: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 1.2rem;
      box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
    }

    .step-block h2 {
      font-size: 1.4rem;
      margin-bottom: 15px;
      color: var(--text-main);
    }

    .guide-img {
      background: #eee;
      border-radius: 12px;
      margin: 20px 0;
      width: 100%;
      height: 250px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #999;
      font-style: italic;
      border: 1px dashed #ccc;
    }

    /* Highlight box / Alerts */
    .alert {
      padding: 20px;
      border-radius: 12px;
      margin: 20px 0;
      display: flex;
      gap: 15px;
    }

    .alert-info {
      background: var(--info-bg);
      color: var(--info-text);
      border-left: 4px solid var(--primary-blue);
    }

    .alert-warning {
      background: var(--danger-bg);
      color: var(--danger-text);
      border-left: 4px solid var(--danger-text);
    }

    .alert i {
      font-size: 1.2rem;
      margin-top: 3px;
    }

    /* Code highlight */
    code {
      background: #f1f3f5;
      padding: 2px 6px;
      border-radius: 4px;
      font-family: monospace;
      color: #e83e8c;
      font-size: 0.95rem;
    }

    /* --- SIDEBAR RIGHT (Content Navigation) --- */
    .toc-title {
      font-weight: 700;
      margin-bottom: 15px;
      font-size: 1rem;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .toc-list li {
      margin-bottom: 10px;
    }

    .toc-link {
      color: var(--text-secondary);
      font-size: 0.9rem;
      display: block;
      padding: 5px 0;
      transition: 0.2s;
    }

    .toc-link:hover {
      color: var(--primary-blue);
      padding-left: 5px;
    }

    .helpful-box {
      text-align: center;
      padding: 20px;
      background: var(--input-bg);
      border-radius: 12px;
    }

    .btn-vote {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 15px;
      border-radius: 8px;
      border: 1px solid #ddd;
      background: white;
      cursor: pointer;
      margin: 5px;
      transition: 0.2s;
    }

    .btn-vote:hover {
      border-color: var(--primary-blue);
      color: var(--primary-blue);
    }
    
  
  /* Контейнер галереи */
.cheat-gallery {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    align-items: stretch;
}

/* Левая часть */
.gallery-main {
    flex: 2;
}

.gallery-main a {
    height: 100%; /* Заставляет обертку занять всю высоту */
}

/* Общие стили для изображений и их оберток */
.cheat-gallery a {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    /* Та самая синяя обводка */
    border: 3px solid #448ef6; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cheat-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Эффект при наведении */
.cheat-gallery a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(68, 142, 246, 0.3);
}

/* Сетка: левая часть (66%) */
.gallery-main {
    flex: 2;
}

/* Сетка: правая часть (33%) */
.gallery-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .cheat-gallery {
        flex-direction: column;
    }
    .gallery-side {
        flex-direction: row;
    }
    .gallery-side a {
        flex: 1;
    }
}

 @media (max-width: 1200px) {
     .publ-sidebar {
         margin-top: 0;
         grid-column: 1;
         grid-row: 1;
     }
 }
 
  @media (max-width: 425px) {
     .publ-sidebar {
display:none;
     }
     .publ-main-grid {
         grid-template-columns: 1fr;
     }
 }
 
 .more-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 40px 0;
}

/* Основной стиль кнопки в твоем дизайне */
.btn-more {
    width: 300px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: inherit;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 45px;
    border-radius: 16px;
    border: 1px solid #f0f2f5;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    outline: none;
    position: relative;
    min-width: 200px;
}

/* Эффект наведения: становится зеленой (как лайк) */
.btn-more:hover {
    background: var(--primary-green);
    color: #fff;
    border-color: var(--primary-green);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.25);
}

/* Эффект нажатия */
.btn-more:active {
    transform: translateY(-1px);
}

/* Анимация загрузки pdoPage (автоматически вешается класс .loading) */
.btn-ajax-more.loading {
    color: transparent !important; /* Прячем текст при загрузке */
    pointer-events: none;
}

.btn-ajax-more.loading::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(0,0,0,0.1);
    border-top: 3px solid #333; /* Цвет спиннера */
    border-radius: 50%;
    animation: spinMore 0.8s linear infinite;
    left: calc(50% - 11px);
}

/* Если кнопка активна (зеленая) во время загрузки, меняем цвет спиннера */
.btn-more:hover.loading::after {
    border-top: 3px solid #ffffff;
}

@keyframes spinMore {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Адаптация под мобильные устройства */
@media (max-width: 768px) {
    .btn-more {
        width: 100% !important;
        margin: 0 20px;
        padding: 18px;
        font-size: 17px;
    }
}