/*
Theme Name: Reboot Child
Theme URI: https://wpshop.ru/themes/reboot
Template: reboot
Author: WPShop.ru
Author URI: https://wpshop.ru/
Description: Новая многоцелевая тема от команды WPShop.ru. 11 встроенных модулей, конструктор главной страницы, SEO-оптимизация и моментальная скорость загрузки.
Tags: custom-background,custom-logo,custom-menu,featured-images,threaded-comments,translation-ready
Version: 1.5.4.20261129.6
Updated: 2026-11-29

*/

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/montserrat-v31-cyrillic_latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/montserrat-v31-cyrillic_latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/montserrat-v31-cyrillic_latin-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}


html:not(.theme-loaded),
body:not(.theme-loaded) {
    /* пусто или только transition, но без скрытия */
}

body .downloads__items-col{
	margin-top: 0;
}
.downloads__items-col .bl_install-item{
	flex-direction: column;
	gap: 5px;
    background: #fff;
    padding: 20px;
    border-radius: 15px;

}
.downloads__items-col .bl_install-new--down{
	background-color:#73c150;
	border-radius: 10px!important;
}

.downloads__items-col .bl_install-new .download-link{
	background: none;
    font-weight: normal;
}
.downloads__items-col .bl_install-new--group{
	margin-bottom: 15px;
}

.bl_info{
	color: #111;
	margin-bottom: 10px;

}

.bl_info-h{
	margin-bottom: 10px;
	font-size: 1.1em;
	color: #111;
	font-weight: bold;
}

.bl_info-time{
	display: flex;
	justify-content: space-between;
	border-bottom: 1px dashed #ddd;
}
.bl_info-time span{
	position: relative;
}
.bl_info-time span:before{
	content: '';
}


/*.btn-telegram a:focus,
.btn-telegram a :visited{
	color: #32aff6;	
}*/
.top-menu ul li>a, .top-menu ul li>span{
    color: #868a9a; 
}
.top-menu ul li>a:hover{
	color: #181c18;
}
.top-menu{

}

.bl_info-user{
	display: flex;
	gap: 10px;
    align-items: center;
    background: #f2f5f9;
    padding: 10px;

}
.bl_info-user--img{

}
.bl_info-user--img img{
	border-radius: 0;
}

.bl_info-user--name{
	font-weight: 700;
}

.top-menu>ul>li>a:before, .top-menu>ul>li>span:before{
	display: none;
}


.bl_info_red{
    background: #FFE5E5;
    padding: 30px 20px 20px 20px;
    border-radius: 15px;
    color: #900B09;
    margin-bottom: 20px;
    margin-top: -50px;
    line-height: normal;
    font-size: 14px;
}
.bl_info_red p{
	padding: 0;
	margin: 0;
}
.bl_info_red a{
	color: #900B09;
	font-weight: bold;
	text-decoration: none;
}
.bl_info_red span{
    font-size: 24px;
    margin-right: 5px;
    position: relative;
    top: 4px;	
}

@media(min-width: 992px){
	.top-menu{
		margin-right: -60px;
	}
}


.category-mods .child-categories ul li a{
	background: #83BBFFBF;
	border: none;
	border-radius: 5px;
	color: #fff;
}
.category-mods .child-categories ul li a:hover{
	background: #d6eefd;
}
.category-mods .taxonomy-description{
	color: #333333;
}

@media(max-width: 991px){
	.popular-posts{
    	grid-template-columns: repeat(2, 1fr);
	}
}
 .post-cards--vertical{
    grid-gap: 15px;	
}
body .post-mods{
	background: #FFFFFF;
	border-radius: 15px;
	padding: 0px 0px;
	box-shadow: 0 1px 17px 0 #00000014;
}

.post-mods:not(.post-card--small) .post-card__thumbnail a:before{
	border-radius: 15px;
}

body .post-mods .post-card__thumbnail img{
	border-radius: 15px;
}
body .post-mods .post-card__title{
	font-size: 14px;
}


body .post-mods .post-card__meta{
	background: #F5F5F5;
	border-radius: 8px;
	padding: 20px 15px;
	color: #3E3232D9;
	font-size: 11px;
	display: flex;
    justify-content: space-between;
}

body .post-mods .post-card__meta > span{
	display: flex;
	align-items: center;
}
.post-mods__icon{
	margin-right: 3px;
}
.post-mods__cats a{
	text-decoration: none;
}

@media(min-width: 495px){
	.post-card__title a{
	    display: block;
		min-height: 41px;
		overflow: hidden;
	}	
}


body .post-mods .post-card__description{
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 11px;
    color: #757575;
}
.post-mods__views,
.post-mods__clicks{
	display: flex;
	align-items: center;
}

.post-mods--group{
	gap: 8px
}

#content{
	box-shadow: none;
	background: none;
}

.navigation.pagination{
	margin-top: 80px;
}

.page-links, .pagination .nav-links{
    display: flex;
    align-items: center;
    justify-content: center;	
}
.pagination .nav-links .prev,
.pagination .nav-links .next,
.page-links .page-numbers.current, .page-links .post-page-numbers.current, .pagination .nav-links .page-numbers.current, .pagination .nav-links .post-page-numbers.current{
    border-radius: 8px;
    background: #F5F5F5;
    box-shadow: none;
    color: #000000;
}
.pagination .nav-links .page-numbers{
	min-width: 46px;
}
.page-links .page-numbers:not(.dots):not(.current):hover:before, .page-links .post-page-numbers:not(.dots):not(.current):hover:before, .pagination .nav-links .page-numbers:not(.dots):not(.current):hover:before, .pagination .nav-links .post-page-numbers:not(.dots):not(.current):hover:before{
	border-radius: 8px;
}


#content{
	box-shadow: none;
	background: none;
	width: 100%;
    padding-left: 0;
    padding-right: 0;

}

#content .entry-image{
	border-radius: 15px;
    flex: 100%;
    margin-left: 0;
    margin-right: 0;

}
#content .entry-image__body{
	border-radius: 15px;
	text-align: left;
}

.widget-articles img{
	border-radius: 10px;

}
.widget-articles article:last-child{
	margin-bottom: 0!important;
}
.widget-articles .post-card__title{
	color: #000000;
	font-size: 12px;
	font-weight: 700;
}
.widget-articles .post-card__category,
.widget-articles .post-card__description,
.widget-articles .post-card__meta{
	display: none;
}

.entry-content,
.widget{
    background: #fff;
    padding: 20px;
    border-radius: 15px;
}

#custom_html-15{
	background: none;
	padding: 0;
}

.widget div[id*="yandex"] {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
}

.entry-content{
    max-width: 100%;
}

.post-card--small .post-card__thumbnail{
	margin-right: 10px;
	max-width: 75px;
}
.table-of-contents{
	border-radius: 15px;
}

@media (min-width: 992px) {
    .content-area {

        padding-right: 20px;
    }
}


.entry-image .bl_info-user {
	background: none;
	padding: 0;
	color: #FFFFFFBF;
	font-size: 14px;
}

.widget-area{
	flex: 0 0 330px;
    max-width: 330px;
}

@media (min-width: 992px) {
    .content-area {
        max-width: calc(100% - 330px);
        -webkit-box-flex: 0;
        -ms-flex: 0 0 calc(100% - 330px);
        flex: 0 0 calc(100% - 330px);
    }
}

.page-header{
/*    background: #FFFFFF;
    border-radius: 15px;
    padding: 20px 15px;
    box-shadow: 0 1px 17px 0 #00000014;*/
    margin-bottom: 20px;
}
.page-header .taxonomy-description{
	margin-bottom: 0;
}


html {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* контейнер подкатегорий */
.category-mods .child-categories {
  margin-top: 16px;
}

/* список */
.mods-cats__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* пункт категории */
.mods-cats__item {
  list-style: none;
}

/* ссылка целиком – чтобы синий фон был вокруг иконки+текста */
.mods-cats__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: #2e3242;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

/* иконка (сюда вставляется твой SVG) */
.mods-cats__icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: #727891;
  transition: fill 0.2s ease;
}

/* текст */
.mods-cats__text {
  white-space: nowrap;
}

/* HOVER – тот самый синенький круг, белые иконка+текст */
.mods-cats__link:hover {
  background: #82bcff;
  color: #ffffff;
}

.mods-cats__link:hover .mods-cats__icon svg {
  fill: #ffffff;
}


.entry-content code, .home-text code, .taxonomy-description code {
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    font-size: 100%;
    word-wrap: break-word;
    padding: .rem .rem .rem;
    border-radius: .2rem;
    background: #f2f8ff	;
	  color:#404040	;
}

.entry-content .wp-block-button, .entry-content p, .home-text .wp-block-button, .home-text p, .taxonomy-description .wp-block-button, .taxonomy-description p {
    margin-bottom: 1.0em;
}

/* Стили галереи */

.gallery{
    margin-right: -5px;
    margin-left: -5px;
    justify-content: space-around;

}
.gallery .gallery-item{
	margin:0;
	padding:5px;
}
.gallery .gallery-item img{
    border-radius: 6px;
    object-fit: cover;
}


/* Блок инструкции */

.bl_install-new .download-link span{
	font-style:italic
}
.bl_install-new .download-link {
		background:#82bcff;
		color:#fff!important;
		border-radius: .375rem;
    transition: all 0.3s;
    padding: .5rem;
    text-align: center;
    line-height: 1.35rem;
    font-weight: 700;
}


.downloads__items{
	    margin-top: -28px;
}
.bl_install-new{
    display: flex;
    width: 100%;
    
       
}
.bl_install-item{
		display:flex;
		justify-content: space-between;
		gap:0px;
		width: 100%;
}

.bl_install-new--down{
		padding: .4rem 1rem;
		background-color: #82bcff;
		border-radius: .375rem;
		display:flex;
		align-items:center;
		justify-content: space-between;
		flex:1;
		
}

.bl_install-new--down .attachment {
    flex-direction: column;
    align-items: baseline;
    justify-content: center;
    background: none;
    padding: 0;
    margin: 0;
	
    width: auto;
}
.bl_install-new--down .attachment-down,
.bl_install-new--down .attachment-size{
	
	color:#fff;
}

.bl_install-new--down a{
    color: #64748b;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}
.bl_install-new--down a:hover{
    color: #83bbff;
}

.bl_install-new--group{
    display: flex;

}
.bl_install-new--group a{
    border-radius: .375rem;
    transition: all 0.3s;
   
    padding: .5rem;
    text-align: center;
    font-size: .875rem;
    line-height: 1.35rem;
    font-weight: 700;
    text-decoration: none;
    display: block;
		width:300px;
    background: #e9ebf0;
    display: flex;
    align-items: center;
    justify-content: center;
	  color:#818181;
}
.bl_install-new--group a:hover{
    opacity: 0.9;
    color:#303030; 
	  background:#d1d1d1;
}


@media(max-width:767px){
	
	.bl_install-new--group a{
		width:auto;
		min-width:210px;
	}
	.bl_install-item,
	.bl_install-new{
    flex-wrap: wrap;
    justify-content: center;
		text-align:center;
	}
	.bl_install-new--down{
		width: 100%;
	}
	.bl_install-new--group{
    width: 100%;
    justify-content: center;
    margin-bottom: 1rem;
	}
}
.bl_install{
	padding: .0rem;
  border-radius: .375rem;
	margin-bottom:.0rem;
	color:#494949;

}
.bl_install h2{
    margin: 0 0 20px 0;
    padding: 0;
    font-size: 1.125rem;
    line-height: 1.75rem;
    color: #4d4d4d;
}
.bl_install a{
		margin-top:20px;
		border-radius: .375rem;
    transition: all 0.3s;
    color: #fff;
		padding: .5rem;
    text-align: center;
    font-size: .875rem;
    line-height: 1.35rem;
		font-weight:700;
		text-decoration:none;
		display:block;
		background:#82bcff;
	
}

.bl_install a:hover{
	opacity:0.7
}

#comments{
	margin-top:30px;
	padding-top:0
}


/* Блок информации о скачивании */

.attachment{
    display: flex;
    width: 100%;
    border-radius: .375rem;
    margin: .25rem 0;
    background-color: #d1dde5;
    padding: .8rem 1rem;
    background-color: #e8fee6;
    justify-content: space-between;
    align-items: center;

}

.attachment-list{
    display: flex;
    flex-direction: column;


}
.attachment-down{
    font-size: 11px;
    opacity: 0.7;
}
.attachment-size{
    font-size: 11px;
    opacity: 0.7;
}

@media(max-width: 767px){
    .attachment{
        flex-direction: column;
    }
}


#content .site-content-inner .entry-image--wide{border-top-left-radius: 20px;border-top-right-radius: 20px;}

.social-button--telegram:before {
    background: url(https://inzoigame.ru/wp-content/uploads/2023/11/socialtelegram-only-signstyleoriginal.png) center no-repeat;
}


.comment-reply-title, .comments-title, .h1, .h2, .h3, .h4, .h5, .h6, .related-posts__header, .section-block__title, h1, h2, h3, h4, h5, h6 {
    margin: 1em 0 1em;
}

/* Основной контейнер */
.card-slider-container+.site-content, .mobile-menu-placeholder+.site-content {
    margin-top: -15px;
    border-top-left-radius: 20px;
	  border-top-right-radius: 20px;
	  border-bottom-right-radius: 20px;
	  border-bottom-left-radius: 20px;
    box-shadow: 0px 10px 35px rgba(0,0,0,0.05);
	  

}

/* Футер */
.site-footer--style-gray {
    background: #F9FBFE;
    color: #797989;
}

/* Виджет категорий */
.widget-area .widget_categories ul.menu, .widget-area .widget_categories>ul, .widget-area .widget_nav_menu ul.menu, .widget-area .widget_nav_menu>ul {
    border: 1px solid #f4f4f4;
	  border-radius:20px;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Верхнее меню и тени */
.site-header {
    position: relative;
    box-shadow: inset 0 0 0 0;
    padding-top: 40px;
	  background:#fff;
    padding-bottom: 40px;
    border-radius: 0px;

	  
}
/* Поиск на главной */
.search-form .search-field {
    display: block;
	  padding:15px;
    border-radius: 10px;
    width: 100%;
    padding-right: 3em;
}

.search-form .search-submit {
    position: absolute;
    top: ;
    right: 0em;
    bottom: 0;
    width: 3em;
    border: none;
    cursor: pointer;
    background: 0 0;
}

.shadowbox {
  width: 100%;
	text-align: center;
  padding: 0px;
}

.breadcrumb {
    display: none;
    font-size: 0.7em;
    color: #666;
    margin-bottom: 10px;
    opacity: .8;
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
}

.expert-review--color-blue-1 {
    background: #f2f6f7;
}

@media (min-width: 768px) {
    .expert-review-expert {
        padding: 25px 30px;
    }
}

.expert-review--color-blue-1 .expert-review-expert-bio-name, .expert-review--color-blue-1 .expert-review-expert-header, .expert-review--color-blue-1 .expert-review-pluses-minuses-header, .expert-review--color-blue-1 .expert-review-qa-header, .expert-review--color-blue-1 .expert-review-score-header, .expert-review--color-blue-1 .expert-review-score-line__score {
    color: #277f94;
}

.expert-review-expert-header, .expert-review-pluses-minuses-header, .expert-review-qa-header, .expert-review-score-header {
    margin-bottom: .8em;
    font-weight: 700;
    font-size: 1.3em;
    color: #5c0a93;
}

@media (min-width: 768px) {
    .expert-review-expert-bio {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }
}

.expert-review-expert-text {
    margin: 20px 0 15px;
    line-height: 1.7;
}

.bl_install-new--down a {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}


.category-mods .child-categories ul li a {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #6c757d; !important
  padding: 8px 14px;
  background: none;

  border-radius: 12px;
}

.category-mods .child-categories ul li a:hover {
 background: #82bcff;
  color: #fff;

}

.child-categories ul li a {
    list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #383a4b; 
  padding: 8px 14px;
  background: none;

	border-radius: 12px; }

.child-categories ul li a:hover {
   background: #82bcff;
  color: #fff;

}

.page2 {
  max-width: 1440px;
  margin: -30px auto 40px;
  display: flex;
  gap: 32px;
  align-items: stretch;
}


/* Слайдер */

/* Правая колонка – сама новость */


/* meta снизу заголовка */


/* ── File Download Block ──────────────────────────────────────────── */

/* Кнопка Поделиться */
.btn-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #dde3f0;
  background: #fff;
  color: #6b7499;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.btn-share:hover {
  border-color: #3b82f6;
  color: #3b82f6;
  background: #eff4ff;
}

/* Кнопка Скачать */
.btn-download.download-link.count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #35c773;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s ease, transform 0.12s ease;
  white-space: nowrap;
}

.btn-download.download-link.count:hover {
  background: #2ab865;
  transform: translateY(-1px);
  text-decoration: none;
  opacity: 1;
}

.btn-download.download-link.count:active {
  transform: translateY(0);
  opacity: 0.9;
}

.btn-download.download-link.count svg {
  flex-shrink: 0;
  stroke: #fff;
}

/* Версии внутри блока */

/* ── Share Popup ──────────────────────────────────────────────────── */

.share-popup {
  position: fixed;
  z-index: 9999;
  background: #fff;
  border: 1px solid #e2e8f5;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(30, 37, 70, 0.14);
  padding: 8px;
  min-width: 180px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px) scale(0.97);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.share-popup.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.share-popup__close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: #aab0c8;
  padding: 2px;
  line-height: 1;
  transition: color 0.15s;
}

.share-popup__close:hover {
  color: #5264ae;
}

.share-popup__inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.share-popup__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #1e2545;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s;
  white-space: nowrap;
}

.share-popup__item:hover {
  background: #f0f4ff;
  text-decoration: none;
  color: #1e2545;
}

.share-popup__item.is-copied {
  color: #35c773;
}

/* ── QR Modal ─────────────────────────────────────────────────────── */

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(20, 25, 60, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.qr-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.qr-modal__box {
  background: #fff;
  border-radius: 20px;
  padding: 28px 28px 22px;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(20, 25, 60, 0.2);
  max-width: 260px;
  width: 100%;
}

.qr-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: #f3f4fa;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7499;
  transition: background 0.15s;
}

.qr-modal__close:hover {
  background: #e5e8f5;
}

.qr-modal__title {
  font-size: 14px;
  font-weight: 600;
  color: #1e2545;
  margin-bottom: 16px;
}

.qr-modal__img {
  width: 180px;
  height: 180px;
  border-radius: 10px;
  border: 1px solid #e8edf5;
}

.qr-modal__url {
  margin-top: 12px;
  font-size: 11px;
  color: #8b93b3;
  word-break: break-all;
}

/* ── Адаптив ──────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .btn-download.download-link.count {
    flex: 1;
    justify-content: center;
  }
}

/* Цвет иконки тоже как кнопочный */


/* планшеты и обычные ноуты */
@media (max-width: 1024px) {
  .page2 {
    flex-direction: column;
    padding: 0 16px;
    gap: 20px;
  }

  .media-card {
    width: 100%;
    max-width: 100%;
    border-radius: 18px;
  }

  .news-card {
    padding: 20px 18px;
  }
}

/* телефоны */
@media (max-width: 640px) {

  .header {
    height: auto;
  }

  .header-inner {
    padding: 10px 16px;
    gap: 10px;
  }

  .logo-img {
    height: 20px;
  }

  .page2 {
    margin: 20px auto 28px;
    padding: 0 12px;
    gap: 16px;
  }

  .media-card {
    border-radius: 16px;
  }

  .news-card {
    padding: 18px 14px;
    border-radius: 16px;
  }

  /* заголовок поменьше, но всё равно крупный */
  .news-title {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 14px;
  }

  /* текст новости покрупнее и с воздухом */
  .news-body {
    font-size: 15px;
    line-height: 1.9;
  }

  /* автор + дата складываются в две строки при необходимости */
  .bottom-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .bottom-meta__left {
    order: 1;
  }

  .bottom-meta__date,
  .bottom-meta__source {
    margin-left: 0;
    order: 2;
  }

  .file-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 12px;
  }

  .file-action {
    width: 100%;
  }

  .btn-download {
    width: 100%;
    justify-content: center;
  }

  /* сетка рекомендованных файлов под новостью */
  .recommended-files {
    padding: 0 12px;
    margin-top: 28px;
  }

  .files-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .file-card {
    height: auto;
  }

  .file-card img {
    height: 100px;
  }
}

.news-category a {
  text-decoration: none;       /* никакого подчеркивания */
  color: var(--text-main);     /* цвет текста берём из переменной темы */
  font-size: 12px;
  transition: opacity 0.15s ease;
}

.news-category a:hover {
  opacity: 0.65;               /* слегка прозрачный при наведении */
  text-decoration: none;       /* underline точно отключён */
}

/* ===== IMAGE MODAL ===== */

@keyframes imgModalFade {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

/* делаем flex для центрирования */

/* курсор-рука на картинках в слайдере */

/* Делаем слайдер квадратным независимо от ширины */

/* Подгоняем трек под размер квадрата */

/* Каждый слайд тоже всегда занимает квадрат */

/* Изображения заполняют квадрат и обрезаются */


/* навигационные стрелки в модалке */


/* Скрываем дату и источник на всех мобильных устройствах */
@media (max-width: 768px) {
  .bottom-meta__date,
  .bottom-meta__source {
    display: none !important;
  }
}


@media (max-width: 768px) {
  .bottom-meta {
    gap: 8px;
    padding-bottom: 4px;
  }
}


/* ===== РЕКОМЕНДОВАННЫЕ МОДЫ (СЕТКА ПОД vertical.php) ===== */

.mods-recommended {
  margin-top: 40px;
}

/* чуть “карточный” вид поверх стандартного vertical */

/* превью, если нет картинки */

/* правим немножко title/meta внутри */

/* мета */

/* адаптив */


/* ===== ВАЖНАЯ ИНФОРМАЦИЯ В СТАТЬЕ ===== */

/* заголовок "Важная информация" */

/* текст внутри блока */

/* если внутри параграфы — чуть расстояния */

/* вариант для блока-инструкции к файлу, чтобы отличался чуть-чуть меньше агрессивным цветом (если используешь .file-instruction) */


/* Адаптив для телефонов */


/* === Фикс для длинного названия записи === */
.entry-title2,
.news-title2,
.news-title2 h1,
h1 {
    max-width: 100%;
    overflow-wrap: break-word; /* перенос длинных слов */
    word-break: break-word;
    hyphens: auto; /* по желанию, авто-переносы с дефисом */
}


/* Убираем лишние отступы у текста в single статье */
.entry-image__body2,
.article-card .content-area2,
.article-card2,
.site-main2 article,
.news-card .news-body,
.news-body {
  padding-left: 10 !important;
  padding-right: 10 !important;
  margin-left: 10 !important;
  margin-right: 10 !important;
}

/* Если Reboot оборачивает текст внутрь .wp-block или .content wrapper */


.entry-content2,
.content,
.post-card__body {
  padding: 0 !important;
  margin: 0 auto !important;
  max-width: 900px; /* или подгони под свой контейнер */
  width: 100%;
}


.article-card, .entry-content, .news-card .news-body, .news-body {
  font-size: 16px !important;
  line-height: 1.7;
}

/* === Блок сортировки модов === */

/* Текст “Сортировка” */

/* Ссылки сортировки */

/* Активный пункт */

/* Линия под активным пунктом (мягкая, тонкая) */

/* === Адаптив под телефон === */


/* ========== Выравнивание категорий по центру ========== */
.child-categories {
  width: 100%;
  max-width: 1400px; /* твой контейнер */
  margin: 0 auto;
}

.mods-cats__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;        /* перенос если не лезет */
  justify-content: center; /* ✅ строго по центру */
  gap: 16px 22px;
}

.mods-cats__item {
  display: flex;
}

/* Ссылка категории */
.mods-cats__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: none;        /* убираем фон */
  border: 1px solid #e4e6f0;
  border-radius: 12px;     /* минималистичное мягкое скругление */
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #1a1e23;          /* темный минимал текст по умолчанию */
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

/* hover – делаем как на картинке: синий фон, белый текст и иконка */
.mods-cats__link:hover {
  background: #82bcff; /* ✅ нужный синий при наведении */
  color: #fff;
}

/* hover – иконка тоже белеет */
.mods-cats__link:hover .mods-cats__icon svg {
  stroke: #fff !important;
  fill: #fff !important;
}

/* текст внутри ссылки */
.mods-cats__text {
  display: inline-block;
  max-width: 140px;  /* чтобы длинный текст не раздувал блок */
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* ========== Адаптив для мобильных ========== */
@media (max-width: 600px) {
  .mods-cats__link {
    padding: 12px 20px;
    font-size: 15px;
  }

  .mods-cats__text {
    max-width: 110px;
  }
}

@media (max-width: 768px) {
  .child-categories {
    display: none;
  }
}


@media (max-width: 900px) {
  .child-categories {
    display: none;
  }
}

.bottom-meta__version {
  font-size: 12px;
  white-space: nowrap;
  opacity: 0.8;
  padding-left: 10px;
  border-left: 1px solid rgba(0,0,0,0.06);
  margin-left: 10px;
}

@media (max-width: 768px) {
  .bottom-meta__version {
    display: block;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    margin-top: 4px;
  }
}

.post-mods__season {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f3f6ff;
  color: #3b3f58;
}

.post-mods__season-icon {
  font-size: 13px;
}

.post-mods__cats a span {
  font-size: 11px;
  color: #70748a;
}

.post-mods__cats a:hover span {
  opacity: 0.7;
}

/* ===== Tooltip сезона ===== */


.mod-alert-success {
    background: #d1fae5;
    border: 1px solid #10b981;
    padding: 14px 18px;
    border-radius: 10px;
    color: #065f46;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 500;
}


/* ===== Жалоба на мод / устаревшую ссылку ===== */

/* Кнопка-линк */

/* Обёртка формы */

/* Сама форма */
.mod-report-form {
    background: #f9fafc;
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid #e0e4f0;
}

/* Строки формы */
.mod-report-row {
    margin-bottom: 12px;
}

.mod-report-row:last-child {
    margin-bottom: 0;
}

.mod-report-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #555;
}

/* Select и textarea */
.mod-report-form select,
.mod-report-form textarea {
    width: 100%;
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid #d3d7e5;
    padding: 8px 10px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
}

.mod-report-form textarea {
    resize: vertical;
    min-height: 80px;
}

/* Кнопка отправки */
.mod-report-submit {
    display: inline-block;
    border: none;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: #82bcff;
    color: #fff;
}

.mod-report-submit:hover {
    background: #51a2ff;
}

/* Мобилки */
@media (max-width: 768px) {
    .mod-report-form {
        padding: 12px 12px;
    }

    .mod-report-submit {
        width: 100%;
        text-align: center;
    }
}


/*Блок с версией*/

/* Мобилка: всё в колонку */


/* Мобилка: в колонку, но аккуратно */


/* Глобальный фикс горизонтального скролла на мобилках */
@media (max-width: 768px) {

    html, body {
        overflow-x: hidden;
    }

    /* Основные контейнеры контента — не шире экрана */
    .page2,
    .news-card,
    .media-card,
    .reboot-content,
    .entry-content {
        max-width: 100%;
        box-sizing: border-box;
    }
}
/* ===== Описание категории на странице архива ===== */

.category-description-box {
    margin: 0 auto 24px;
    padding: 20px 24px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
    max-width: 920px; /* как у записи и комментов */
}

.category-description-inner {
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
}

.category-description-inner p:last-child {
    margin-bottom: 0;
}


/* ===== Описание категории на архиве ===== */
@media (max-width: 768px) 

{.taxonomy-description {
    max-width: 920px;              /* как контент single/комменты */
    margin: 0 auto 24px;
    padding: 20px 24px;
    border-radius: 18px;
    box-sizing: border-box;
    font-size: 15px;
    line-height: 1.6;
	color: #4b5563;}
}

.taxonomy-description p:last-child {
    margin-bottom: 0;
}

/* ===== Блок сортировки под ту же ширину ===== */

/* Мобильная адаптация: как карточки модов */
@media (max-width: 768px) {
    .taxonomy-description,
    .mods-toolbar-block {
        width: calc(100% - 32px);  /* по 16px отступ слева/справа */
        margin-left: auto;
        margin-right: auto;
        padding-left: 20px;
        padding-right: 20px;
    }
}

#theme_btn {
    display: none !important;
}


/* ===== Форма добавления комментария ===== */

/* поля формы */


/* кнопка отправки */

/* ===== АДАПТИВ КОММЕНТАРИЕВ НА МОБИЛЬНЫХ ===== */

/* ===== ВЫРАВНИВАЕМ ШИРИНУ ФОРМЫ КОММЕНТАРИЕВ ===== */
@media (max-width: 768px) {

    /* Делаем мод-комменты такой же ширины, как .news-card */

    /* Убираем лишний padding у respond, чтобы не было двойных отступов */

    /* Поля формы */

    /* Кнопка */
}


/* Мобильное выравнивание H1 на категориях */
@media (max-width: 768px) {

    /* Заголовок категории */
    .page-header .page-title {
        text-align: center;
        width: 100%;
        display: block;
        margin: 10 auto 20px auto;
        padding: 0 16px; /* чтобы текст красиво стоял с боковыми полями */
    }

    /* Нормализуем описание категории (если нужно) */
    .taxonomy-description {
        text-align: left;
        padding: 0 16px;
    }
}

.site-footer,
footer,
.footer {
    text-align: center !important;
}

/* ===== Предупреждение 18+ для рубрики взрослых модов ===== */

.mods-18-warning {
    margin: 20px 0 25px;
    padding: 16px 18px;
    border-radius: 16px;
    background: #fff3f3;
    border: 1px solid #ffc9c9;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.mods-18-warning__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #ff4b5c;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mods-18-warning__content {
    font-size: 14px;
    color: #333;
}

.mods-18-warning__title {
    font-weight: 700;
    margin-bottom: 4px;
}

.mods-18-warning__text {
    line-height: 1.5;
    color: #555;
}

/* На мобилках – всё в колонку */
@media (max-width: 768px) {
    .mods-18-warning {
        flex-direction: row;
        padding: 14px 14px;
        border-radius: 14px;
    }

    .mods-18-warning__icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
}


.mod-report-message {
    font-size: 13px;
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 6px;
}

.mod-report-message--success {
    background: #e6f9ea;
    color: #226b33;
    border: 1px solid #b8e6c3;
}

.mod-report-message--error {
    background: #ffecec;
    color: #a12626;
    border: 1px solid #f5b5b5;
}

/* ===== Метка "Проверено лично" ===== */

/* ===== Блок "Вопросы и комментарии" ===== */


/* Заголовок */

/* Текст "Пока нет ни одного вопроса" */

/* Список вопросов */

/* Один вопрос */

/* Шапка вопроса (автор + дата) */

/* Текст вопроса */

/* Статус под вопросом */

/* ===== Ветка ответов ===== */

/* ===== Формы вопроса и ответа ===== */

/* Контейнер кнопок в форме */

/* ===== Кнопки (одинаковая высота) ===== */

/* Общая база для всех */

/* Синяя кнопка (основное действие) */

/* Серые кнопки "Отмена" */

/* Кнопка "Задать вопрос по этому моду" отдельно — по центру, отступ сверху */

/* ===== Адаптив ===== */


/* Разделительная линия перед блоком вопросов */

/* Аватарки в вопросах и ответах */

/* ===== Минималистичные поля ввода (имя + файл) ===== */

/* Ховер */

/* Фокус */

/* Убираем странный внутренний стиль системного input[type=file] */

/* Название файла — аккуратнее */

/* Миниатюра вложенной картинки в вопросе/ответе */
/* ===== Файловое вложение (вопрос/ответ) ===== */

/* Успешное сообщение после отправки вопроса */

/* Анимация появления */
@keyframes qaFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Левая колонка – картинка / слайдер */
.media-card {
  flex: 0 0 450px;
  border-radius: 20px;
  overflow: hidden;
  background: #F0F7FF;
  box-shadow: 0 8px 20px rgba(12, 18, 40, 0.06);
  
}

/* Слайдер */
.slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.4s ease;
}

.slider-slide {
  min-width: 100%;
  height: 100%;
}

.slider-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-arrow--prev { left: 12px; }
.slider-arrow--next { right: 12px; }

.slider-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.slider-dot.active {
  background: #ffffff;
}

/* Правая колонка – сама новость */
.news-card {
  flex: 1;
  background: #ffffff;
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 8px 20px rgba(12, 18, 40, 0.06);
}

.news-title {
  font-size: 24px;
  line-height: 1.35;
  margin-bottom: 18px;
}

/* Заголовок страницы (H1) — единый стиль */
.entry-title,
.news-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #111827;
    margin: 0 0 28px;
    padding-bottom: 18px;
    position: relative;
}

.entry-title::after,
.news-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, #5aa3f5, #83bbff);
}

@media (max-width: 768px) {
    .entry-title,
    .news-title {
        font-size: 24px;
        margin-bottom: 20px;
        padding-bottom: 14px;
    }
    .entry-title::after,
    .news-title::after {
        width: 44px;
        height: 3px;
    }
}

/* meta снизу заголовка */
.bottom-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.bottom-meta__left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bottom-meta__date {
  margin-left: auto;
  font-size: 12px;
  opacity: 0.85;
  white-space: nowrap;
}

.bottom-meta__source {
  font-size: 12px;
  white-space: nowrap;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.15s ease;
}

.bottom-meta__source:hover {
  opacity: 0.4;
}

.news-body {
  font-size: 15px;
  line-height: 1.7;
  color: #383a4b;
}

.news-body p + p {
  margin-top: 8px;
}


/* Блок скачивания */
.file-block {
  margin-top: 20px;
  border-radius: 18px;
  border: 1px solid #edf0f7;
  background: #f9fbff;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.file-info {
  font-size: 12px;
  color: #303243;
}

.file-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 11px;
}

.btn-download.download-link.count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  background: #35c773;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;

  border: none;
  text-decoration: none; /* убираем подчеркивание */
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}

/* Убираем наследование ховеров ссылок */
.btn-download.download-link.count:hover {
  text-decoration: none;
  opacity: 1;
}

/* Ховер-эффект как у кнопки */
.btn-download.download-link.count:hover {
  background: #2fb96a; /* чуть темнее зеленый */
  transform: translateY(-2px);
}

/* Дополнительный красивый эффект нажатия */
.btn-download.download-link.count:active {
  transform: translateY(0px);
  opacity: 0.85;
}

/* Цвет иконки тоже как кнопочный */
.btn-download.download-link.count svg {
  stroke: #fff;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}


/* ===== IMAGE MODAL ===== */

.img-modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.img-modal__close {
  position: absolute;
  top: 14px;
  right: 22px;
  color: #fff;
  font-size: 26px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0.8;
  transition: 0.15s;
}

.img-modal__close:hover {
  opacity: 0.4;
}

.img-modal__content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  object-fit: contain;
  animation: imgModalFade 0.2s ease;
}

@keyframes imgModalFade {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

/* делаем flex для центрирования */
#imgModal.active {
  display: flex;
}

/* курсор-рука на картинках в слайдере */
#newsSlider .slider-slide img {
  cursor: pointer;
}

/* Делаем слайдер квадратным независимо от ширины */
#newsSlider {
  width: 100%;
  aspect-ratio: 1 / 1; /* квадрат */
  overflow: hidden;
  position: relative;
  border-radius: 16px; /* можно убрать если не нужен */
}

/* Подгоняем трек под размер квадрата */
#newsSlider .slider-track {
  width: 100%;
  height: 100%;
  display: flex;
}

/* Каждый слайд тоже всегда занимает квадрат */
#newsSlider .slider-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Изображения заполняют квадрат и обрезаются */
#newsSlider .slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* главное: подгон под квадрат с кадрированием */
  display: block;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

#newsSlider .slider-slide img:hover {
  opacity: 0.8;
}


/* навигационные стрелки в модалке */
.img-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0,0,0,0.4);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.img-modal__nav:hover {
  opacity: 0.8;
  background: rgba(0,0,0,0.6);
}

.img-modal__prev {
  left: 18px;
}

.img-modal__next {
  right: 18px;
}

@media (max-width: 420px) {
  .bottom-meta__source {
    display: none;
  }
}


.mods-recommended {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  border-radius: 12px;
}

@media (max-width: 768px) {
    .mods-recommended {
        display: none !important;
    }
}

.mods-recommended__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #2b2e38;
}

.mod-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e6e9f2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mod-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.mod-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  cursor: pointer;
}


@media (max-width: 768px) {
  .mods-recommended__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .mods-recommended__title { font-size: 22px; }
}

/* ===== РЕКОМЕНДОВАННЫЕ МОДЫ ===== */

.mods-recommended {
  margin-top: 0px;
}

.mods-recommended__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #22232e;
}

.mods-recommended__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* чуть “карточный” вид поверх стандартного vertical */

/* превью, если нет картинки */

/* правим немножко title/meta внутри */

/* мета */

/* адаптив */
@media (max-width: 1024px) {
  .mods-recommended__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .mods-recommended__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .mods-recommended__grid {
    grid-template-columns: 1fr;
  }
}


/* ===== ВАЖНАЯ ИНФОРМАЦИЯ В СТАТЬЕ ===== */

/* заголовок "Важная информация" */

/* текст внутри блока */

/* если внутри параграфы — чуть расстояния */

/* вариант для блока-инструкции к файлу, чтобы отличался чуть-чуть меньше агрессивным цветом (если используешь .file-instruction) */


.mods-recommended {
    width: 100%;
}

.mods-recommended__title {
    font-size: 18px; /* для ПК */
    font-weight: 600;
    margin: 10 auto;
    text-align: left;
    display: block;
}

@media (max-width: 480px) {.mods-recommended__title {
    text-align: center;
}
}

/* Адаптив для телефонов */
@media (max-width: 480px) {
    .mods-recommended__title {
        font-size: 22px; /* уменьшенный размер на мобильном */
        padding: 0 10px; /* небольшой внутренний отступ, чтобы не прилипало к краям */
        white-space: normal;
    }
}


/* === Новый header inZOI === */

.site-header {
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.75);
    border-bottom: 1px solid rgba(230,235,245,0.7);
    position: relative;      /* ← добавили */
    z-index: 10000;          /* ← шапка всегда поверх меню */
}

/* Обёртка */

.inz-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Лого */

.inz-logo img {
    display: block;
    height: 34px;
    width: auto;
}

/* Левая часть */

.inz-header-left {
    flex-shrink: 0;
}

/* Правая часть: меню + поиск */

.inz-header-right {
    margin-left: auto; 
    display: flex;
    align-items: center;
    gap: 26px;
}

/* Навигация (десктоп) */

.inz-nav {
    flex: 1 1 auto;
    text-transform: uppercase;
}

.inz-nav-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: #868A9A;
    text-transform: uppercase;
    font-weight: bold; /* Полужирный с помощью ключевого слова */
    font-weight: 700; /* Полужирный с помощью численного значения */
}

.inz-nav-list > li > a {
    position: relative;
    padding: 4px 0;
    text-decoration: none;
    color: inherit;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

/* Ховер – только цвет текста */

.inz-nav-list > li > a:hover {
    color: #83bbff;
}

/* Подчёркивание на десктопе */

.inz-nav-list > li > a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    height: 2px;
    width: 0%;
    background: #83bbff;
    border-radius: 2px;
    transition: width .2s ease;
}

.inz-nav-list > li > a:hover::after {
    width: 100%;
}

/* Активный пункт (десктоп) */

.inz-nav-list .current-menu-item > a,
.inz-nav-list .current_page_item > a {
    font-weight: 600;
    color: #2a3446;
}

/* Кнопка поиска */

.inz-search-btn {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid #dde3f0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.inz-search-btn svg {
    width: 18px;
    height: 18px;
    stroke: #9ca3af;
}

.inz-search-btn:hover {
    border-color: #83bbff;
    transform: scale(1.08);
    transition: 0.15s;
}

.inz-search-btn:hover svg {
    stroke: #6b7280;
}

/* Немного адаптива на средних экранах */

@media (max-width: 1024px) {
    .inz-nav-list {
        gap: 18px;
        font-size: 13px;
    }
}


/* ==== Бургер (общие стили) ==== */

.inz-burger {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid #dde3f0;
    background: #ffffff;
    padding: 0;
    flex-shrink: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    display: none; /* включим только на мобилке */
}

.inz-burger span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: #6b7280;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

/* Крестик при открытом меню */


/* === Бургер: состояние "крестик" через класс на body === */

body.inz-mobile-open .inz-burger span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

body.inz-mobile-open .inz-burger span:nth-child(2) {
    opacity: 0;
}

body.inz-mobile-open .inz-burger span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

/* По умолчанию отдельное мобильное меню скрыто */
.inz-mobile-nav {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════
   МОБИЛЬНЫЙ ХЕДЕР — ВАРИАНТ B (бургер слева, лого центр, иконки справа)
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

    .site-header {
        padding-top: 0;
        padding-bottom: 0;
    }

    .site-header-inner {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Flex-контейнер хедера */
    .inz-header-inner {
        position: relative;
        min-height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Правая часть раскрываем в общий flex */
    .inz-header-right {
        display: contents;
    }

    /* Десктопное меню прячем */
    .site-header .inz-nav {
        display: none !important;
    }

    /* ── Бургер — слева ── */

    .inz-burger {
        display: inline-flex;
        flex-direction: column;
        gap: 3px;
        order: -1;
        position: absolute;
        left: 0;
        width: 38px;
        height: 38px;
        border-radius: 10px;
        border: 1px solid #e5e9f2;
        background: #f4f6fa;
        align-items: center;
        justify-content: center;
    }

    .inz-burger span {
        width: 16px;
        height: 2px;
        background: #6b7280;
    }

    /* ── Лого — центр ── */

    .inz-header-left {
        flex: 0 0 auto;
        position: static;
        transform: none;
        order: 0;
        text-align: center;
    }

    .inz-logo img {
        height: 32px;
        width: auto;
    }

    /* ── Тема + Поиск — справа ── */

    .inz-theme-toggle {
        order: 1;
        position: absolute;
        right: 42px;
        width: 38px;
        height: 38px;
        border-radius: 10px;
        border: 1px solid #e5e9f2;
        background: #f4f6fa;
        margin-right: 0;
    }

    .inz-search-btn {
        display: flex !important;
        order: 2;
        position: absolute;
        right: 0;
        width: 38px;
        height: 38px;
        border-radius: 10px;
        border: 1px solid #e5e9f2;
        background: #f4f6fa;
        margin-left: 0;
    }

    .inz-search-btn svg {
        width: 16px;
        height: 16px;
    }

    /* ═══════════════════════════════════════
       МОБИЛЬНОЕ МЕНЮ — панель под хедером
       ═══════════════════════════════════════ */

    .inz-mobile-nav {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #ffffff;
        z-index: 9999;
        overflow-y: auto;
        display: none;
        -webkit-overflow-scrolling: touch;
    }

    body.admin-bar .inz-mobile-nav {
        top: 88px;
    }

    body.inz-mobile-open .inz-mobile-nav {
        display: block;
    }

    /* Список пунктов */
    .inz-mobile-nav-list {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 8px 16px 24px;
        list-style: none;
    }

    .inz-mobile-nav-list > li {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .inz-mobile-nav-list > li > a {
        display: block;
        width: 100%;
        padding: 14px 0;
        text-align: left;
        text-decoration: none;
        color: #374151;
        font-size: 15px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        border-bottom: 1px solid #f0f2f8;
        transition: color 0.15s;
    }

    .inz-mobile-nav-list > li:last-child > a {
        border-bottom: none;
    }

    .inz-mobile-nav-list > li > a::before,
    .inz-mobile-nav-list > li > a::after {
        content: none !important;
    }

    .inz-mobile-nav-list > li > a:hover {
        color: #83bbff;
    }

    .inz-mobile-nav-list > li.current-menu-item > a,
    .inz-mobile-nav-list > li.current_page_item > a {
        color: #83bbff !important;
        font-weight: 600 !important;
    }
}

/* На десктопе мобильное меню точно скрыто */


/* ═══════════════════════════════════════════════════════════════
   DARK THEME — МОБИЛЬНЫЙ ХЕДЕР
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

    html.dark .site-header {
        background: rgba(15, 17, 23, 0.95);
        border-bottom-color: #2a2d3a;
    }

    html.dark .inz-burger {
        background: #1a1d27;
        border-color: #2a2d3a;
    }

    html.dark .inz-burger span {
        background: #8b90a0;
    }

    html.dark .inz-theme-toggle {
        background: #1a1d27;
        border-color: #2a2d3a;
        color: #8b90a0;
    }

    html.dark .inz-search-btn {
        background: #1a1d27;
        border-color: #2a2d3a;
    }

    html.dark .inz-search-btn svg {
        stroke: #8b90a0;
    }

    /* Мобильное меню — dark */

    html.dark .inz-mobile-nav {
        background: #13151d;
        border-top: 1px solid #2a2d3a;
    }

    html.dark .inz-mobile-nav-list > li > a {
        color: #c0c4d0;
        border-bottom-color: #2a2d3a;
    }

    html.dark .inz-mobile-nav-list > li > a:hover {
        color: #83bbff;
    }

    html.dark .inz-mobile-nav-list > li.current-menu-item > a,
    html.dark .inz-mobile-nav-list > li.current_page_item > a {
        color: #83bbff !important;
    }
}

/* На десктопе мобильное меню точно скрыто */
@media (min-width: 769px) {
    .inz-mobile-nav {
        display: none !important;
    }
}


/* ========== HERO LANDING (из CodePen, адаптация) ========== */

.hero.hero--light.inz-hero-landing {
  padding: 0px 0 35px;
  
}

/* локальная "контейнерная" обёртка, чтобы не трогать .container темы */
.hero-wrapper {
  position: relative;       /* нужно для абсолютного позиционирования картинки */
  max-width: 1440px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  overflow: visible;
}

.hero-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 40px;
}

.hero-col {
  flex: 1;
}

.hero-col--text {
  max-width: 720px;
}

/* Текстовая часть */

.h-title h1 {
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  color: #494949;
}

.h-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 18px;
}

/* мини-бейджи под описанием */


.h-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.h-badge {
    font-size: 11.5px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 6px;
    background: rgba(131, 187, 255, 0.08); /* 👈 едва голубой фон */
    border: 1px solid rgba(131, 187, 255, 0.18); /* 👈 тонкая голубая рамка */
    color: #3c5a7f; /* тёмно-голубовато-серый */
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
}


/* кнопки */

.h-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-family: inherit;
}

.primary-btn:focus,
.primary-btn:active,
.ghost-btn:focus,
.ghost-btn:active {
    outline: none;
    box-shadow: none;
}


/* зелёная основная */
.primary-btn {
  background: #83bbff;
  color: #ffffff;
}

.primary-btn:hover {
  background: #64a6ff;
}

/* белая обводка */
.ghost-btn {
  padding-inline: 18px;
  border: 1px solid #d0d7e6;
  background: #ffffff;
  color: #4b5563;
  font-weight: 500;
}


.ghost-btn:hover {
  border-color: #83bbff;
  color: #1f2937;
}

/* ========== ПРАВЫЙ БЛОК (карточка) ========== */

.hero-col--visual {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  width: 350px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7f0; /* ← обводка всей карточки */
}

/* верхняя панель как «окно» */

.hero-card-header {
    display: flex;
    align-items: center;
    justify-content: center; /* ← центрируем горизонтально */
    gap: 8px;
    padding: 10px 14px;
    background: #f5f7fe;
    border-bottom: 1px solid #e5e7f0;
    border-radius: 18px 18px 0 0;
    text-align: center;
}

.hero-card-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.85;
}

.hero-card-header span {
    font-weight: 600;
    color: #3a4454;
    font-size: 13px;
    letter-spacing: -0.01em;
}

/* список «модов» */

.hero-item {
    display: flex;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: #f9fafb;
}

.hero-thumb {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    overflow: hidden;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-thumb-placeholder {
    font-size: 20px;
}

.hero-item-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;       /* ВАЖНО: разрешаем сжатие текста */
    flex: 1 1 auto;     /* пусть занимает всё доступное */
}

.hero-item-title a {
    color: #111827;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-item-title a:hover {
    text-decoration: none;
}

.hero-item-meta {
    font-size: 11px;
    color: #6b7280;
}


.hero-card-body {
  padding: 12px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-item-title a {
    color: #111827;
    text-decoration: none;
}

.hero-item-title a:hover {
    text-decoration: underline;
}


.hero-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
  min-width: 0;       
}


/* футер карточки */

.hero-card-footer {
  padding: 20px 30px 12px;
  border-top: 1px solid #eef0f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #6b7280;
}

.hero-counter {
  font-weight: 600;
  color: #1f2937;
}

.hero-tag {
    padding: 8px 12px;
    border-radius: 10px;
    background: #FDE7A4;
    color: #3C2F27;
}

/* ===== Обёртка контента под hero ===== */

.inz-front-content-wrap {
  max-width: 1440px;
  margin: 0 auto 40px;
  padding: 0 0px;
  box-sizing: border-box;
}

.inz-front-content-inner {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px 26px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

/* Адаптив */

@media (max-width: 960px) {
  .hero-row {
    flex-direction: column;
  }

  .hero-col--text {
    max-width: 100%;
  }

  .hero-col--visual {
    justify-content: center;
    margin-top: 24px;
  }

  .hero-card {
    width: 100%;
    max-width: 360px;
  }
}

@media (max-width: 768px) {
    .h-title h1 {
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: none; /* ← Отключаем дефисы */
    }
    
}

@media (max-width: 768px) {
    .hero.hero--light {
        padding-top: 0px !important; /* было 32px */
    }
}


@media (max-width: 768px) {

  .hero.hero--light.inz-hero-landing {
    padding: 32px 0 48px;
  }
  
  .hero-wrapper {
 width: 95%;
}

.inz-front-content-wrap {
   width: 95%;
}


  .h-title h1 {
    font-size: 26px;
  }

  .h-desc {
    font-size: 14px;
  }

  .inz-front-content-inner {
    padding: 18px 18px 22px;
    border-radius: 16px;
  }
}

.tg-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* расстояние между иконкой и текстом */
}

/* Иконка внутри кнопки */
.tg-btn .tg-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
}

.tg-btn .tg-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.mod-cat-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    margin-right: 6px;
    vertical-align: middle;
    opacity: 0.85;
    transform: translateY(-1px);
}


/* Чёрная кнопка Steam */
.steam-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 10px;
    border: none;
    background: #1a1a1a; /* стиль Steam */
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;

}

/* Иконка Steam */
.steam-btn .steam-icon svg {
    width: 18px;
    height: 18px;
    fill: #ffffff; /* белая */

}

/* Hover эффект — серый оттенок */
.steam-btn:hover {
    background: #000;
    color:#fff;
}


/* Иконка в кнопке Скачать моды */
.mods-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* расстояние между иконкой и текстом */
}


/* Адаптив под мобильные (до 600px) */
@media (max-width: 600px) {

    .h-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px; /* расстояние между кнопками */
        width: 100%;
        align-items: center;
    }

    .h-buttons button {
        width: 100%; /* кнопка на всю ширину */
        max-width: 100%;
        justify-content: center;
        text-align: center;
    }

    /* Иконки в кнопках выровнять по центру */
    .h-buttons .tg-icon,
    .h-buttons .steam-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Текст в steam-кнопке выровнять */
    .h-buttons .steam-text {
        display: inline-block;
        margin-left: 6px;
    }

    /* Цена Steam */
    .h-buttons .steam-badge {
        margin-left: 6px;
        position: static;
        display: inline-block;
    }
}


/* Контейнер кнопки Steam */
.steam-btn {
    position: relative;
    padding-right: 16px; /* небольшой запас чтобы ярлык не склеивался */
}

/* Маленький ценовой ярлык */
.steam-btn .steam-badge {
    position: absolute;
    top: -6px;
    right: -6px;

    background: #1e3c22;     /* глубокий тёмно-зелёный, стиль Steam */
    color: #c8ffb0;          /* мягкий светло-зелёный */
    padding: 2px 6px;
    border-radius: 6px;

    font-size: 11px;
    font-weight: 600;
    line-height: 1;

    display: flex;
    align-items: center;
    gap: 4px;

    pointer-events: none; /* чтобы клик шел по кнопке */
}

/* Бейдж скидки */
.steam-btn .steam-sale {
    background: #4caf50;
    color: #fff;
    padding: 1px 4px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

/* Адаптив — на мобильных чуть меньше */
@media (max-width: 480px) {
    .steam-btn .steam-badge {
        font-size: 10px;
        padding: 2px 5px;
        top: -5px;
        right: -5px;
    }
}


/* Карточка аналитики inZOI Steam */
.inz-analytics-card {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    padding: 0px 0px 18px;
    overflow: visible;
}

/* Заголовок */
.inz-analytics-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}


/* Бейдж "в реальном времени" */
.inz-analytics-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0px;
    color: #494949;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.inz-analytics-badge-icon {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
}

/* Верхние два блока со статистикой */
.inz-analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.inz-analytics-stat {
    border-radius: 16px;
    padding: 12px 14px;
    color: #ffffff;
}

.inz-analytics-stat--primary {
    background: #4CAF50;
}

.inz-analytics-stat--secondary {
    background: #3F51B5;
}

.inz-analytics-stat-value {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}

.inz-analytics-stat-label {
    font-size: 12px;
    opacity: 0.9;
}


/* Адаптив */
@media (max-width: 600px) {
    .inz-analytics-card {
        padding: 16px 14px 14px;
        border-radius: 20px;
    }

    .inz-analytics-grid {
        grid-template-columns: 1fr;
    }

    .inz-analytics-stat-value {
        font-size: 20px;
    }
}


/* =============================================
   inZOI MOD LIST — 2 колонки, премиум карточки
   ============================================= */

.mod-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

/* ── Карточка ── */
.mod-list-row {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid #e7edf5;
    border-radius: 18px;
    box-shadow:
        0 2px 6px rgba(15, 23, 42, 0.04),
        0 12px 32px rgba(15, 23, 42, 0.06);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease,
        background .2s ease;
}

/* верхний мягкий акцент */
.mod-list-row::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #82bcff 0%, #5b9dff 50%, #9fd0ff 100%);
    opacity: .95;
}

.mod-list-row:hover {
    transform: translateY(-4px);
    border-color: #d5e6f9;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow:
        0 6px 14px rgba(15, 23, 42, 0.06),
        0 18px 42px rgba(91, 157, 255, 0.12);
    text-decoration: none;
    color: inherit;
}

/* ── Обложка / аватар ── */
.mod-list-row__avatar {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(180deg, #edf6ff 0%, #e4f1ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe7f4;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.85),
        0 6px 14px rgba(130, 188, 255, 0.10);
}

.mod-list-row__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}

.mod-list-row:hover .mod-list-row__avatar img {
    transform: scale(1.03);
}

.mod-list-row__avatar-ph {
    font-size: 36px;
    font-weight: 800;
    color: #5d9ee5;
    line-height: 1;
    user-select: none;
}

/* ── Основная часть ── */
.mod-list-row__main {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.mod-list-row__top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mod-list-row__title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    letter-spacing: -0.02em;
    transition: color .18s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mod-list-row:hover .mod-list-row__title {
    color: #2f6fb0;
}

.mod-list-row__badge-new {
    flex-shrink: 0;
    background: linear-gradient(180deg, #9fd0ff 0%, #82bcff 100%);
    color: #16324d;
    font-size: 10px;
    font-weight: 800;
    padding: 5px 9px;
    border-radius: 999px;
    letter-spacing: .05em;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 5px 12px rgba(130, 188, 255, 0.22);
}

.mod-list-row__cat {
    font-size: 12px;
    font-weight: 600;
    color: #7b8794;
    line-height: 1.4;
}

.mod-list-row__desc {
    font-size: 13px;
    color: #5f6b7a;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Нижняя мета-часть ── */
.mod-list-row__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 2px;
    margin-top: auto;
    min-width: 0;
}

.mod-list-row__stats {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    min-width: 0;
}

.mod-list-row__stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #7b8794;
    line-height: 1;
    white-space: nowrap;
}

.mod-list-row__stat svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    opacity: .9;
}

.mod-list-row__ver {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    color: #667085;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    border: 1px solid #e3e8ef;
    padding: 5px 10px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

/* ── Фокус ── */
.mod-list-row:focus-visible {
    outline: none;
    border-color: #82bcff;
    box-shadow:
        0 0 0 4px rgba(130, 188, 255, 0.18),
        0 16px 36px rgba(15, 23, 42, 0.08);
}

/* ── Планшет ── */
@media (max-width: 980px) {
    .mod-list {
        grid-template-columns: 1fr;
    }

    .mod-list-row__avatar {
        height: 200px;
    }
}

/* ── Мобильная адаптация ── */
@media (max-width: 640px) {
    .mod-list {
        gap: 12px;
    }

    .mod-list-row {
        padding: 14px;
        gap: 12px;
        border-radius: 16px;
    }

    .mod-list-row__avatar {
        height: 160px;
        border-radius: 12px;
    }

    .mod-list-row__title {
        font-size: 15px;
    }

    .mod-list-row__desc {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    .mod-list-row__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .mod-list-row__stats {
        gap: 10px;
    }

    .mod-list-row__ver {
        font-size: 10px;
        padding: 4px 8px;
    }
}

@media (max-width: 420px) {
    .mod-list-row__avatar {
        height: 140px;
    }

    .mod-list-row__title {
        font-size: 14px;
    }

    .mod-list-row__cat {
        font-size: 11px;
    }

    .mod-list-row__stat {
        font-size: 11px;
    }
}


/* =========================================================
   404 PREMIUM
   ========================================================= */

.iz404 {
    padding: 24px 0 72px;
}

.iz404__wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 18px;
}

.iz404-hero {
    padding: 42px 28px;
    border: 1px solid #e8edf5;
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    box-shadow: 0 12px 34px rgba(16, 24, 40, 0.04);
    text-align: center;
}

.iz404-hero__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: #eef4ff;
    color: #5a78b8;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.iz404-hero__title {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.04;
    font-weight: 800;
    color: #161b26;
    letter-spacing: -0.03em;
}

.iz404-hero__text {
    max-width: 760px;
    margin: 0 auto;
    color: #667085;
    font-size: 16px;
    line-height: 1.75;
}

.iz404-search {
    max-width: 760px;
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.iz404-search__input {
    width: 100%;
    min-height: 58px;
    border: 1px solid #e7edf5;
    border-radius: 16px;
    background: #fff;
    padding: 0 18px;
    font-size: 15px;
    color: #1f2433;
    outline: 0;
    box-shadow: none;
}

.iz404-search__input::placeholder {
    color: #98a2b3;
}

.iz404-search__input:focus {
    border-color: #d8e3f3;
}

.iz404-search__button,
.iz404-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0 22px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
}

.iz404-search__button {
    background: #83bbff;
    color: #fff;
    border-color: #83bbff;
}

.iz404-search__button:hover {
    color: #fff;
    opacity: .94;
}

.iz404-sections,
.iz404-latest {
    margin-top: 28px;
    padding: 28px;
    border: 1px solid #e8edf5;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(16, 24, 40, 0.04);
}

.iz404-head {
    margin-bottom: 18px;
}

.iz404-head__title {
    margin: 0 0 6px;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 800;
    color: #161b26;
    letter-spacing: -0.02em;
}

.iz404-head__text {
    margin: 0;
    color: #667085;
    font-size: 15px;
    line-height: 1.7;
}

.iz404-sections__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.iz404-section-card {
    display: block;
    padding: 22px 20px;
    border: 1px solid #edf1f7;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    text-decoration: none;
}

.iz404-section-card:hover {
    border-color: #d9e4f3;
    background: #fff;
}

.iz404-section-card__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: #161b26;
    margin-bottom: 8px;
}

.iz404-section-card__desc {
    font-size: 14px;
    line-height: 1.7;
    color: #667085;
}

.iz404-latest__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.iz404-post-card {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.04);
}

.iz404-post-card__thumb-link {
    display: block;
    text-decoration: none;
}

.iz404-post-card__thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #eef2ff 0%, #f7f9ff 100%);
}

.iz404-post-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.iz404-post-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    text-align: center;
    color: #667085;
    font-size: 15px;
    font-weight: 600;
}

.iz404-post-card__body {
    padding: 18px 18px 20px;
}

.iz404-post-card__cat {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f4f7fb;
    color: #6b7280;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
}

.iz404-post-card__cat:hover {
    color: #3557ff;
    background: #eef2ff;
}

.iz404-post-card__title {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.iz404-post-card__title a {
    color: #1f2433;
    text-decoration: none;
}

.iz404-post-card__title a:hover {
    color: #83bbff;
}

.iz404-post-card__excerpt {
    color: #667085;
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .iz404-sections__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .iz404-latest__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .iz404-hero,
    .iz404-sections,
    .iz404-latest {
        padding: 20px;
        border-radius: 22px;
    }

    .iz404-search {
        grid-template-columns: 1fr;
    }

    .iz404-hero__actions .iz404-btn,
    .iz404-search__button {
        width: 100%;
    }

    .iz404-sections__grid,
    .iz404-latest__grid {
        grid-template-columns: 1fr;
    }

    .iz404-post-card__title {
        font-size: 18px;
    }
}


/* ── Mod Reactions ────────────────────────────────────────────────── */

.mod-reactions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-top: 1px solid #e8edf5;
}

.mod-reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #dde3f0;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #6b7499;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s, transform 0.1s;
    user-select: none;
}

.mod-reaction-btn:hover {
    transform: translateY(-1px);
}

.mod-reaction-btn--like:hover {
    border-color: #35c773;
    color: #35c773;
    background: #f0fdf6;
}

.mod-reaction-btn--dislike:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: #fff5f5;
}

.mod-reaction-btn--like.is-active {
    border-color: #35c773;
    background: #35c773;
    color: #fff;
}

.mod-reaction-btn--dislike.is-active {
    border-color: #ef4444;
    background: #ef4444;
    color: #fff;
}

.mod-reaction-btn.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* ── Mod Report Bar ───────────────────────────────────────────────── */

button:focus,
button:focus-visible,
a:focus,
a:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* ── Single QA Section ────────────────────────────────────────────── */

.single-qa-section {
    margin: 16px auto 32px;
}

/* Форма с акцентом */

/* Список вопросов */

/* Карточка вопроса */

/* Ответы внутри карточки */

/* ── Кнопка "Задать вопрос" — зелёная ────────────────────────────── */

/* ── Реакции — убираем outline ────────────────────────────────────── */

.mod-reaction-btn {
    outline: none !important;
    box-shadow: none !important;
}

.mod-reaction-btn:focus,
.mod-reaction-btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* ── Адаптив ──────────────────────────────────────────────────────── */


/* ── Переопределяем старые конфликтующие стили ────────────────────── */

/* Убираем подчёркивание у кнопки жалобы */


/* ═══════════════════════════════════════════════════════════════
   THEME TOGGLE BUTTON
   ═══════════════════════════════════════════════════════════════ */

.inz-theme-toggle {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid #dde3f0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    color: #9ca3af;
    transition: border-color 0.15s, transform 0.15s, background 0.15s, color 0.15s;
}

.inz-theme-toggle:hover {
    border-color: #83bbff;
    transform: scale(1.08);
    color: #6b7280;
}

.inz-theme-toggle svg {
    pointer-events: none;
}

/* Плавный переход при смене темы */
html.theme-loaded body,
html.theme-loaded .site-header,
html.theme-loaded .site-footer,
html.theme-loaded .mod-card,
html.theme-loaded .news-card,
html.theme-loaded .widget,
html.theme-loaded .inz-mobile-nav,
html.theme-loaded .inz-search-btn,
html.theme-loaded .inz-burger,
html.theme-loaded .inz-theme-toggle {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ═══════════════════════════════════════════════════════════════
   DARK THEME — БАЗА (body, header, footer, навигация)
   ═══════════════════════════════════════════════════════════════ */

html.dark body {
    background: #0f1117;
    color: #d1d5e0;
}

/* --- Header --- */

html.dark .site-header {
    background: rgba(15, 17, 23, 0.85);
    border-bottom-color: rgba(42, 45, 58, 0.7);
}

html.dark .inz-nav-list {
    color: #8b90a0;
}

html.dark .inz-nav-list > li > a:hover {
    color: #83bbff;
}

html.dark .inz-nav-list .current-menu-item > a,
html.dark .inz-nav-list .current_page_item > a {
    color: #e1e4ed;
}

html.dark .inz-search-btn {
    background: #1a1d27;
    border-color: #2a2d3a;
}

html.dark .inz-search-btn svg {
    stroke: #8b90a0;
}

html.dark .inz-search-btn:hover {
    border-color: #83bbff;
}

html.dark .inz-search-btn:hover svg {
    stroke: #c5d0e0;
}

html.dark .inz-burger {
    background: #1a1d27;
    border-color: #2a2d3a;
}

html.dark .inz-burger span {
    background: #8b90a0;
}

html.dark .inz-theme-toggle {
    background: #1a1d27;
    border-color: #2a2d3a;
    color: #8b90a0;
}

html.dark .inz-theme-toggle:hover {
    border-color: #83bbff;
    color: #e1e4ed;
}

/* --- Mobile nav --- */

html.dark .inz-mobile-nav {
    background: #13151d;
    border-color: #2a2d3a;
}

html.dark .inz-mobile-nav a {
    color: #9ca3b8;
}

html.dark .inz-mobile-nav a:hover {
    color: #83bbff;
}

/* --- Search overlay --- */

html.dark .search-screen {
    background: #13151d;
}

html.dark .search-form .search-field {
    background: #1a1d27;
    border-color: #2a2d3a;
    color: #d1d5e0;
}

/* --- Top menu --- */

html.dark .top-menu ul li > a,
html.dark .top-menu ul li > span {
    color: #6b7288;
}

html.dark .top-menu ul li > a:hover {
    color: #d1d5e0;
}

/* --- Footer --- */

html.dark .site-footer,
html.dark footer,
html.dark .footer {
    background: #0b0d13;
    color: #6b7288;
}

html.dark .site-footer--style-gray {
    background: #0f1117;
    color: #6b7288;
}

/* --- site-content background --- */

html.dark #content.site-content {
    background: transparent;
}

/* ═══════════════════════════════════════════════════════════════
   DARK THEME — КАРТОЧКИ, ВИДЖЕТЫ, БЛОКИ
   ═══════════════════════════════════════════════════════════════ */

/* --- Виджеты --- */

html.dark .widget {
    background: #1a1d27;
    color: #d1d5e0;
}

html.dark .widget-area .widget_categories ul.menu,
html.dark .widget-area .widget_categories > ul,
html.dark .widget-area .widget_nav_menu ul.menu,
html.dark .widget-area .widget_nav_menu > ul {
    border-color: #2a2d3a;
}

/* --- News card --- */

html.dark .news-card {
    background: #1a1d27;
    border-color: #2a2d3a;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

html.dark .news-body {
    color: #d1d5e0;
}

/* --- Category description --- */

html.dark .category-description-box {
    background: #1a1d27;
    border-color: #2a2d3a;
    color: #d1d5e0;
}

/* --- Hero card --- */

html.dark .hero-card {
    background: #1a1d27;
    border-color: #2a2d3a;
}

html.dark .hero-item {
    background: #22252f;
}

/* --- Downloads block --- */

html.dark .downloads__items-col .bl_install-item {
    background: #1a1d27;
    color: #d1d5e0;
}

/* --- Info blocks --- */

html.dark .bl_info {
    color: #d1d5e0;
}

html.dark .bl_info-h {
    color: #e1e4ed;
}

html.dark .bl_info-time {
    border-bottom-color: #2a2d3a;
}

html.dark .bl_info-user {
    background: #22252f;
}

/* --- Share popup / btn --- */

html.dark .share-popup {
    background: #1a1d27;
    border-color: #2a2d3a;
}

html.dark .btn-share {
    background: #1a1d27;
    border-color: #2a2d3a;
    color: #9ca3b8;
}

/* --- Ghost btn --- */

html.dark .ghost-btn {
    background: #1a1d27;
    border-color: #2a2d3a;
    color: #d1d5e0;
}

/* --- QR modal --- */

html.dark .qr-modal__box {
    background: #1a1d27;
}

/* --- File blocks --- */

html.dark .file-block,
html.dark .file-download-block {
    background: #22252f;
    border-color: #2a2d3a;
}

/* --- 18+ warning --- */

html.dark .mods-18-warning {
    background: #2a1215;
    border-color: #5c2a2a;
}

/* --- Slider dots --- */

html.dark .slider-dot.active {
    background: #83bbff;
}

/* --- General text color overrides --- */

html.dark h1, html.dark h2, html.dark h3,
html.dark h4, html.dark h5, html.dark h6 {
    color: #e1e4ed;
}

html.dark a {
    color: #83bbff;
}

html.dark a:hover {
    color: #a8d0ff;
}

/* --- Borders global fallback --- */

html.dark hr {
    border-color: #2a2d3a;
}

/* --- Box shadows --- */

html.dark .widget,
html.dark .news-card,
html.dark .hero-card {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}


/* ═══════════════════════════════════════════════════════════════
   DARK THEME — SINGLE (комменты, Q&A, реакции, отчёты, формы)
   ═══════════════════════════════════════════════════════════════ */

/* --- Mod Extra Info --- */

/* --- Comments --- */

/* --- Report block --- */

/* --- Report bar --- */

html.dark .mod-report-form {
    background: #22252f;
    border-color: #2a2d3a;
}

html.dark .mod-report-row label {
    color: #9ca3b8;
}

html.dark .mod-report-form select,
html.dark .mod-report-form textarea {
    background: #1a1d27;
    border-color: #2a2d3a;
    color: #d1d5e0;
}

/* --- Report messages --- */

html.dark .mod-report-message--success {
    background: #132a1a;
    color: #6ee7a0;
}

html.dark .mod-report-message--error {
    background: #2a1215;
    color: #fca5a5;
}

/* --- Q&A Section --- */

/* --- Reactions --- */

html.dark .mod-reactions {
    border-top-color: #2a2d3a;
}

html.dark .mod-reaction-btn {
    background: #1a1d27;
    border-color: #2a2d3a;
    color: #8b90a0;
}

html.dark .mod-reaction-btn--like:hover {
    border-color: #35c773;
    color: #35c773;
    background: #132a1a;
}

html.dark .mod-reaction-btn--dislike:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: #2a1215;
}

/* --- Season tooltip --- */

/* ═══════════════════════════════════════════════════════════════
   DARK THEME — 404, MOD LIST, АНАЛИТИКА, ОСТАВШИЕСЯ ЭЛЕМЕНТЫ
   ═══════════════════════════════════════════════════════════════ */

/* --- 404 Page --- */

html.dark .iz404-hero {
    background: linear-gradient(180deg, #1a1d27 0%, #13151d 100%);
    border-color: #2a2d3a;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
}

html.dark .iz404-hero__badge {
    background: #1a2a40;
    color: #83bbff;
}

html.dark .iz404-hero__title {
    color: #e1e4ed;
}

html.dark .iz404-hero__text {
    color: #8b90a0;
}

html.dark .iz404-search__input {
    background: #22252f;
    border-color: #2a2d3a;
    color: #d1d5e0;
}

html.dark .iz404-search__input::placeholder {
    color: #6b7288;
}

html.dark .iz404-search__input:focus {
    border-color: #3a3d4a;
}

html.dark .iz404-sections,
html.dark .iz404-latest {
    background: #1a1d27;
    border-color: #2a2d3a;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
}

html.dark .iz404-head__title {
    color: #e1e4ed;
}

html.dark .iz404-head__text {
    color: #8b90a0;
}

html.dark .iz404-section-card {
    background: linear-gradient(180deg, #22252f 0%, #1e2130 100%);
    border-color: #2a2d3a;
}

html.dark .iz404-section-card:hover {
    background: #22252f;
    border-color: #3a3d4a;
}

html.dark .iz404-section-card__title {
    color: #e1e4ed;
}

html.dark .iz404-section-card__desc {
    color: #8b90a0;
}

html.dark .iz404-post-card {
    background: #1a1d27;
    border-color: #2a2d3a;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

html.dark .iz404-post-card__thumb {
    background: linear-gradient(135deg, #1e2130 0%, #22252f 100%);
}

html.dark .iz404-post-card__placeholder {
    color: #6b7288;
}

html.dark .iz404-post-card__cat {
    background: #22252f;
    color: #8b90a0;
}

html.dark .iz404-post-card__cat:hover {
    color: #83bbff;
    background: #1e2240;
}

html.dark .iz404-post-card__title a {
    color: #e1e4ed;
}

html.dark .iz404-post-card__title a:hover {
    color: #83bbff;
}

html.dark .iz404-post-card__excerpt {
    color: #8b90a0;
}

/* --- Mod List Row --- */

html.dark .mod-list-row {
    background: linear-gradient(180deg, #1a1d27 0%, #181b24 100%);
    border-color: #2a2d3a;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.15),
        0 12px 32px rgba(0, 0, 0, 0.2);
}

html.dark .mod-list-row:hover {
    border-color: #3a4a60;
    background: linear-gradient(180deg, #1e2130 0%, #1a1d27 100%);
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.2),
        0 18px 42px rgba(91, 157, 255, 0.08);
}

html.dark .mod-list-row__avatar {
    background: linear-gradient(180deg, #1e2a3a 0%, #1a2535 100%);
    border-color: #2a3545;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 6px 14px rgba(0, 0, 0, 0.15);
}

html.dark .mod-list-row__avatar-ph {
    color: #4a80c0;
}

html.dark .mod-list-row__title {
    color: #e1e4ed;
}

html.dark .mod-list-row:hover .mod-list-row__title {
    color: #83bbff;
}

html.dark .mod-list-row__cat {
    color: #6b7288;
}

html.dark .mod-list-row__desc {
    color: #8b90a0;
}

html.dark .mod-list-row__stat {
    color: #6b7288;
}

html.dark .mod-list-row__ver {
    background: linear-gradient(180deg, #22252f 0%, #1e2130 100%);
    border-color: #2a2d3a;
    color: #8b90a0;
    box-shadow: none;
}

html.dark .mod-list-row__badge-new {
    color: #0f1117;
}

/* --- Analytics Card --- */

html.dark .inz-analytics-card {
    background: #1a1d27;
}

html.dark .inz-analytics-badge {
    color: #9ca3b8;
}

/* --- Front Content (Hero Page) --- */

html.dark .inz-front-content-inner {
    background: #1a1d27;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* --- Post Cards (parent theme) --- */

html.dark body .post-mods {
    background: #1a1d27;
    box-shadow: 0 1px 17px 0 rgba(0, 0, 0, 0.15);
}

html.dark body .post-mods .post-card__meta {
    background: #22252f;
    color: #9ca3b8;
}

html.dark body .post-mods .post-card__description {
    color: #8b90a0;
}

/* --- Entry content / widget --- */

html.dark .entry-content {
    background: #1a1d27;
    color: #d1d5e0;
}

html.dark .widget div[id*="yandex"] {
    background: #1a1d27;
}

html.dark .widget-articles .post-card__title {
    color: #d1d5e0;
}

/* --- Table of Contents --- */

html.dark .table-of-contents {
    background: #22252f;
    border-color: #2a2d3a;
}

/* --- News important / file instruction --- */

/* --- News warning/info blocks with orange --- */

/* --- Bottom meta --- */

html.dark .bottom-meta {
    color: #6b7288;
}

/* --- Search form (global) --- */

html.dark .search-form .search-field {
    background: #22252f;
    border-color: #2a2d3a;
    color: #d1d5e0;
}

/* --- Pagination --- */

html.dark .navigation.pagination {
    color: #9ca3b8;
}

html.dark .navigation.pagination a {
    color: #83bbff;
}

/* --- Post seasons badge --- */

html.dark .post-mods__season {
    background: #22252f;
}

/* --- Info red block --- */

html.dark .bl_info_red {
    background: #2a1215;
    color: #fca5a5;
}

/* --- Yandex widget bg override --- */

html.dark #custom_html-15 {
    background: none;
}

/* --- Scrollbar --- */

html.dark ::-webkit-scrollbar {
    width: 8px;
}

html.dark ::-webkit-scrollbar-track {
    background: #0f1117;
}

html.dark ::-webkit-scrollbar-thumb {
    background: #2a2d3a;
    border-radius: 4px;
}

html.dark ::-webkit-scrollbar-thumb:hover {
    background: #3a3d4a;
}

/* --- Selection --- */

html.dark ::selection {
    background: rgba(131, 187, 255, 0.25);
    color: #e1e4ed;
}

/* --- Images brightness tweak (optional subtle) --- */

html.dark img {
    opacity: 0.92;
}

html.dark img:hover {
    opacity: 1;
}

html.dark .mod-card__img,
html.dark .mod-card__img-wrap img,
html.dark .mod-list-row__avatar img {
    opacity: 1;
}


/* ═══════════════════════════════════════════════════════════════
   DARK THEME — ТОЧЕЧНЫЕ ПРАВКИ (поиск, внимание, версия, скачивание)
   ═══════════════════════════════════════════════════════════════ */

/* 1. Поле поиска в фильтрах — принудительно тёмное */

html.dark .arc-search__input {
    background: transparent;
    color: #d1d5e0;
}

html.dark .arc-search {
    background: #22252f;
    border-color: #2a2d3a;
}

/* 2. Блоки "Важно" / news-warning (reboot) */

html.dark .news-warning {
    background: #1a1d27;
    border-color: #2a2d3a;
    color: #c0c4d0;
}

html.dark .news-warning__title {
    color: #83bbff;
}

html.dark .news-warning__text {
    color: #c0c4d0;
}

html.dark .news-warning__deps-title {
    color: #9ca3b8;
}

html.dark .news-warning__deps-value a {
    color: #83bbff;
}

/* 3. Версия игры / мода — светлее текст */

/* 4. Блок скачивания — тёмный дизайн */

html.dark .btn-share {
    background: #22252f;
    border-color: #2a2d3a;
    color: #8b90a0;
}

html.dark .btn-share:hover {
    background: #1e2240;
    border-color: #3b82f6;
    color: #3b82f6;
}

html.dark .entry-content blockquote:not(.wpremark).info,
html.dark .entry-content blockquote:not(.wpremark).is-style-info,
html.dark .home-text blockquote:not(.wpremark).info,
html.dark .home-text blockquote:not(.wpremark).is-style-info,
html.dark .taxonomy-description blockquote:not(.wpremark).info,
html.dark .taxonomy-description blockquote:not(.wpremark).is-style-info {
    background: linear-gradient(to right, #162230 0, #1a1e35 100%);
    color: #c0c4d0;
    border-color: #2a3545;
}

html.dark .entry-content code,
html.dark .home-text code,
html.dark .taxonomy-description code {
    background: #1e2240;
    color: #c0c4d0;
}

html.dark .entry-content ::selection,
html.dark .entry-content ::-moz-selection {
    background: rgba(131, 187, 255, 0.25);
    color: #e1e4ed;
}

/* Q&A форма — капча, файл, кнопки */

.inz-theme-toggle {
    margin-right: -4px;
}

/* Тёмная тема — иконки */

/* Если используешь svg через fill (на будущее) */

/* Текст рядом (чтобы совпадал по стилю) */

@media (max-width: 768px) {
    .inz-theme-toggle {
        border-radius: 10px !important;
        width: 38px !important;
        height: 38px !important;
    }
}


/* ── File Label Badge ─────────────────────────────────────────────── */

/* Варианты по ключевому слову метки */


/* inZOI-style таблицы в статьях */
.entry-content table {
  border: 2px solid #62adf7;
  border-radius: 24px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  width: 100%;
  margin: 24px 0;
}

.entry-content table td {
  border: 1px solid #c2e4ff;
  border-top-width: 0;
  padding: 18px;
  text-align: center;
  vertical-align: middle;
  background-color: #fff;
  color: #0057be;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.entry-content table tr:first-child td {
  background-color: #62adf7;
  border-right-color: #fff;
  color: #e0f2ff;
  font-size: 16px;
  font-weight: 600;
  border-top-width: 0;
}

.entry-content table tr:first-child td:last-child {
  border-right-color: #62adf7;
}

@media screen and (max-width: 768px) {
  .entry-content table { border-radius: 20px; }
  .entry-content table td { padding: 12px 7px; font-size: 12px; }
  .entry-content table tr:first-child td { font-size: 13px; }
}
/* ===== Кнопка профиля в шапке =====
   .inzl-nav-actions — новая обёртка для профиля + переключателя темы
   (на десктопе). Класса не было в родительской теме, поэтому раскладку
   задаём сами — без этого правила кнопки складывались бы в столбик. */

.inzl-nav-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}

.inzl-profile-avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: block;
}

.inzl-profile-btn--mobile {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ── ИЗБРАННОЕ — кнопка в single ── */
.inzoi-hero-icon-btn--favorite {
    border-color: transparent !important;
    background: #fff0f2 !important;
}

.inzoi-hero-icon-btn--favorite:hover {
    border-color: transparent !important;
    background: #ffe0e4 !important;
}

.inzoi-hero-icon-btn--favorite.is-active {
    border-color: transparent !important;
    background: #ffe0e4 !important;
}

.inzoi-hero-icon-btn--favorite svg {
    stroke: #e05a6a !important;
}

.inzoi-hero-icon-btn--favorite.is-active svg {
    stroke: #e05a6a !important;
    fill: #e05a6a !important;
}

@keyframes fav-pop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.inzoi-hero-icon-btn--favorite.pop {
    animation: fav-pop 0.3s ease;
}

/* ── ВКЛАДКИ АККАУНТА ── */
.inzoi-account__tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #e05a6a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}

/* ── СПИСОК ИЗБРАННОГО ── */
.inzoi-favorites__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.inzoi-favorites__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--wpsc-border-color);
}

.inzoi-favorites__item:last-child {
    border-bottom: none;
}

.inzoi-favorites__thumb {
    flex-shrink: 0;
    width: 80px;
    height: 54px;
    border-radius: 6px;
    overflow: hidden;
    display: block;
    background: var(--wpsc-body-bg);
}

.inzoi-favorites__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.inzoi-favorites__info {
    flex: 1;
    min-width: 0;
}

.inzoi-favorites__title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--wpsc-text-color);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 3px;
}

.inzoi-favorites__title:hover {
    color: var(--wpsc-link-hover-color);
}

.inzoi-favorites__cat {
    font-size: 12px;
    color: var(--wpsc-text-light-color);
}

.inzoi-favorites__remove {
    flex-shrink: 0;
    margin-left: auto;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.inzoi-favorites__empty {
    color: var(--wpsc-text-light-color);
    font-size: 14px;
    line-height: 1.5;
    padding: 10px 0;
}

/* ── SPECIAL META BAR (guide / news / video) ── */

/* ── BADGES: временно скрыты ── */
.mod-badges-row,
.mod-card__badge-finding,
.mod-card__badge-featured,
.mod-card__badge--finding,
.mod-card__badge--featured {
    display: none !important;
}

/* Скрываем старые бейджи родительской темы */

/* ── TRENDING CARD ── */
.mod-card--trending {
    position: relative;
    border-color: rgba(255, 100, 20, 0.35);
    box-shadow: 0 14px 34px rgba(255, 100, 20, 0.12);
    background: linear-gradient(180deg, #fffaf7 0%, #ffffff 100%);
}

.mod-card--trending::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 100, 20, 0.18);
    border-radius: inherit;
}

/* Полоска сверху */
.mod-card--trending::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6314, #ffaa00);
    border-radius: inherit;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    z-index: 2;
}

.mod-card__img-overlays {
    position: relative;
    display: block;
}

.mod-trending-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    z-index: 4;
    background: rgba(10,10,10,0.72);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: .2px;
    pointer-events: none;
}


/* ============================================================
   MODS ARCHIVE – CATALOG STATS
   Общая лёгкая панель
   ============================================================ */

.category-mods .catalog-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));

    margin: 14px 0 30px;
    padding: 16px 18px;

    background: #ffffff;
    border: 1px solid #e8edf4;
    border-radius: 14px;

    box-shadow: 0 4px 16px rgba(39, 60, 86, 0.045);
}

.category-mods .catalog-stats > div {
    position: relative;

    min-width: 0;
    padding: 4px 20px;
}

/* Вертикальные разделители */
.category-mods .catalog-stats > div:not(:first-child)::before {
    content: '';

    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;

    width: 1px;

    background: #e8edf4;
}

.category-mods .catalog-stats strong {
    display: flex;
    align-items: center;
    gap: 6px;

    margin: 0 0 4px;

    color: #253246;

    font-size: 25px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.8px;

    white-space: nowrap;
}

.category-mods .catalog-stats span {
    display: block;

    color: #7a8798;

    font-size: 11px;
    font-weight: 600;
    line-height: 1.45;
}

.category-mods .catalog-stats small {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #5b9278;

    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

/* Первый показатель – лёгкий акцент */
.category-mods .catalog-stats > div:first-child strong {
    color: #3f6f9f;
}

/* Добавлено */
.category-mods .catalog-stats > div:nth-child(4) strong {
    color: #4f8667;
}

/* Обновлено */
.category-mods .catalog-stats > div:nth-child(5) strong {
    color: #527ba6;
}

.category-mods .catalog-stats > div:nth-child(5) small {
    color: #527ba6;
}


/* ============================================================
   DARK
   ============================================================ */

html.dark .category-mods .catalog-stats {
    background: #222b36;
    border-color: #34404d;

    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

html.dark .category-mods .catalog-stats > div:not(:first-child)::before {
    background: #364351;
}

html.dark .category-mods .catalog-stats strong {
    color: #edf3fa;
}

html.dark .category-mods .catalog-stats span {
    color: #9caabc;
}

html.dark .category-mods .catalog-stats > div:first-child strong {
    color: #8fc5ff;
}

html.dark .category-mods .catalog-stats > div:nth-child(4) strong {
    color: #95c8aa;
}

html.dark .category-mods .catalog-stats > div:nth-child(5) strong,
html.dark .category-mods .catalog-stats > div:nth-child(5) small {
    color: #9fc4eb;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 900px) {

    .category-mods .catalog-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));

        row-gap: 16px;
        padding: 15px 16px;
    }

    .category-mods .catalog-stats > div {
        padding: 4px 16px;
    }

    .category-mods .catalog-stats > div:nth-child(4)::before {
        display: none;
    }

    .category-mods .catalog-stats strong {
        font-size: 23px;
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {

    .category-mods .catalog-stats {
        display: flex;

        gap: 0;

        margin: 12px 0 24px;
        padding: 14px 0;

        overflow-x: auto;
        overscroll-behavior-x: contain;

        border-radius: 12px;

        scrollbar-width: none;
    }

    .category-mods .catalog-stats::-webkit-scrollbar {
        display: none;
    }

    .category-mods .catalog-stats > div {
        flex: 0 0 auto;

        min-width: 150px;
        padding: 2px 16px;
    }

    .category-mods .catalog-stats > div:first-child {
        min-width: 135px;
    }

    .category-mods .catalog-stats > div:not(:first-child)::before {
        top: 4px;
        bottom: 4px;
    }

    .category-mods .catalog-stats strong {
        font-size: 22px;
    }

    .category-mods .catalog-stats span {
        font-size: 10px;
    }

    .category-mods .catalog-stats small {
        font-size: 12px;
    }
}


/* ============================================================
   MODS ARCHIVE – RECOMMENDATIONS
   ============================================================ */

.category-mods .inzoi-recommendations {
    margin: 34px 0 44px;
    padding: 24px;

    background: #edf4fc;
    border-top: 3px solid #83bbff;
    border-radius: 12px;
}

.category-mods .inzoi-recommendations__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 20px;
}

.category-mods .inzoi-recommendations__eyebrow {
    margin-bottom: 3px;

    color: #75849a;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.category-mods .inzoi-recommendations__heading h2 {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 0;

    color: #202e42;

    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.7px;
}

.category-mods .inzoi-recommendations__heading h2 span {
    flex: 0 0 auto;

    margin: 0;

    color: #83bbff;

    font-size: 20px;
    line-height: 1;
}

.category-mods .inzoi-recommendations__arrows {
    display: flex;
    gap: 7px;
}

.category-mods .inzoi-recommendations__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    padding: 0;

    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #dbe6f2;
    border-radius: 8px;

    color: #42678d;

    font-size: 17px;
    line-height: 1;

    cursor: pointer;

    transition:
        background-color .16s ease,
        border-color .16s ease,
        transform .16s ease;
}

.category-mods .inzoi-recommendations__arrow:hover:not(:disabled) {
    background: #fff;
    border-color: #bcd4ed;
}

.category-mods .inzoi-recommendations__arrow:disabled {
    opacity: .35;
    cursor: default;
}


/* RAIL */

.category-mods .inzoi-recommendations__rail {
    display: flex;
    gap: 16px;

    overflow-x: auto;

    padding: 2px 2px 8px;

    scroll-snap-type: x mandatory;
    scrollbar-width: none;

    overscroll-behavior-x: contain;
}

.category-mods .inzoi-recommendations__rail::-webkit-scrollbar {
    display: none;
}


/* CARD */

.category-mods .inzoi-rec-card {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 0 calc((100% - 48px) / 4);
    min-width: 0;

    overflow: hidden;

    background: #fff;
    border: 1px solid #e3eaf2;
    border-radius: 12px;

    scroll-snap-align: start;

    box-shadow: 0 4px 14px rgba(39, 60, 86, .05);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.category-mods .inzoi-rec-card:hover {
    transform: translateY(-2px);

    border-color: #bfd5ec;

    box-shadow: 0 8px 20px rgba(39, 60, 86, .08);
}


/* IMAGE */

.category-mods .inzoi-rec-card__image {
    position: relative;

    display: block;

    height: 145px;

    overflow: hidden;

    background: #e9eef5;
}

.category-mods .inzoi-rec-card__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .25s ease;
}

.category-mods .inzoi-rec-card:hover .inzoi-rec-card__image img {
    transform: scale(1.025);
}

.category-mods .inzoi-rec-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    color: #9aa7b7;

    font-size: 18px;
    font-weight: 800;
}


/* BADGES */

.category-mods .inzoi-rec-card__badges {
    position: absolute;
    left: 10px;
    bottom: 10px;

    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.category-mods .inzoi-rec-badge {
    display: inline-flex;
    align-items: center;

    padding: 4px 7px;

    border-radius: 5px;

    font-size: 9px;
    font-weight: 750;
    line-height: 1.2;
}

.category-mods .inzoi-rec-badge--find {
    background: #f5d66d;
    color: #70571c;
}

.category-mods .inzoi-rec-badge--recommended {
    background: #83bbff;
    color: #244b76;
}

.category-mods .inzoi-rec-badge--adult {
    background: #e8c5ca;
    color: #854650;
}


/* BODY */

.category-mods .inzoi-rec-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 15px 15px 13px;
}

.category-mods .inzoi-rec-card__category {
    display: inline-flex;
    align-items: center;

    align-self: flex-start;

    padding: 4px 8px;

    background: #83bbff;
    color: #ffffff;

    border-radius: 6px;

    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;

    letter-spacing: .35px;
    text-transform: uppercase;
    text-decoration: none;

    cursor: pointer;
}

.category-mods .inzoi-rec-card__category:hover,
.category-mods .inzoi-rec-card__category:focus,
.category-mods .inzoi-rec-card__category:visited {
    background: #83bbff;
    color: #ffffff;
    text-decoration: none;
}

.category-mods .inzoi-rec-card__title {
    display: -webkit-box;

    min-height: 44px;
    margin: 7px 0 8px;

    overflow: hidden;

    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.category-mods .inzoi-rec-card__title a {
    color: #202e42;
    text-decoration: none;
}

.category-mods .inzoi-rec-card__title a:hover {
    color: #83bbff;
}

.category-mods .inzoi-rec-card__excerpt {
    display: -webkit-box;

    height: 37px;
    margin: 0;

    overflow: hidden;

    color: #69788d;

    font-size: 11.5px;
    font-weight: 400;
    line-height: 1.6;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.category-mods .inzoi-rec-card__date {
    margin-top: auto;
    padding-top: 13px;

    color: #7b889a;

    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.4;
}

.category-mods .inzoi-rec-card__date.is-updated {
    color: #52806a;
}


/* METRICS */

.category-mods .inzoi-rec-card__metrics {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 8px;

    margin-top: 11px;
    padding-top: 11px;

    border-top: 1px solid #e8edf3;

    color: #667589;

    font-size: 11px;
    font-weight: 500;
    line-height: 1;
}

.category-mods .inzoi-rec-card__metrics span {
    display: inline-flex;
    align-items: center;

    gap: 4px;

    min-width: 0;

    white-space: nowrap;
}

.category-mods .inzoi-rec-card__metrics svg {
    width: 13px;
    height: 13px;

    flex: 0 0 13px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ============================================================
   DARK
   ============================================================ */

html.dark .category-mods .inzoi-recommendations {
    background: #253444;
    border-top-color: #83bbff;
}

html.dark .category-mods .inzoi-rec-card__category {
    background: #83bbff;
    color: #ffffff;
}


html.dark .category-mods .inzoi-recommendations__eyebrow {
    color: #91a1b5;
}

html.dark .category-mods .inzoi-recommendations__heading h2 {
    color: #edf3fa;
}

html.dark .category-mods .inzoi-recommendations__arrow {
    background: #2e4053;
    border-color: #405469;
    color: #bedcff;
}

html.dark .category-mods .inzoi-rec-card {
    background: #222b36;
    border-color: #354352;
}

html.dark .category-mods .inzoi-rec-card__title a {
    color: #edf3fa;
}

html.dark .category-mods .inzoi-rec-card__excerpt,
html.dark .category-mods .inzoi-rec-card__date,
html.dark .category-mods .inzoi-rec-card__metrics {
    color: #9caabc;
}

html.dark .category-mods .inzoi-rec-card__metrics {
    border-top-color: #354352;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1000px) {

    .category-mods .inzoi-rec-card {
        flex-basis: calc((100% - 32px) / 3);
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {

    .category-mods .inzoi-recommendations {
        margin: 28px -6px 34px;
        padding: 18px 12px 16px;

        border-radius: 10px;
    }

    .category-mods .inzoi-recommendations__heading {
        margin-bottom: 15px;
    }

    .category-mods .inzoi-recommendations__eyebrow {
        font-size: 8px;
    }

    .category-mods .inzoi-recommendations__heading h2 {
        font-size: 19px;
    }

    .category-mods .inzoi-recommendations__arrow {
        width: 31px;
        height: 31px;

        font-size: 15px;
    }

    .category-mods .inzoi-recommendations__rail {
        gap: 12px;
    }

    .category-mods .inzoi-rec-card {
        flex-basis: 82%;
    }

    .category-mods .inzoi-rec-card__image {
        height: 165px;
    }

    .category-mods .inzoi-rec-card__title {
        font-size: 15px;
    }

    .category-mods .inzoi-rec-card__excerpt {
        font-size: 11px;
    }

    .category-mods .inzoi-rec-card__metrics {
        font-size: 10px;
    }
}

.category-mods .inzoi-recommendations__arrow[hidden] {
    display: none !important;
}


/* ============================================================
   MODS ARCHIVE – MAIN CATALOG GRID
   ============================================================ */

.category-mods #mods-archive-results .post-cards--horizontal {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;

    margin: 0;
}


/*
 * Карточка основной ленты использует тот же дизайн,
 * что и рекомендации.
 */
.category-mods #mods-archive-results .inzoi-catalog-card {
    width: 100%;
    min-width: 0;

    flex: none;
}


/*
 * В основном каталоге картинка немного выше,
 * чтобы сетка смотрелась увереннее.
 */
.category-mods #mods-archive-results
.inzoi-catalog-card
.inzoi-rec-card__image {
    height: 170px;
}


/*
 * Убираем старые бейджи, которые functions.php
 * автоматически внедряет через post_thumbnail_html.
 *
 * Наши новые бейджи уже есть поверх картинки.
 */
.category-mods
.inzoi-catalog-card
.mod-card__img-overlays
.mod-badges-row {
    display: none !important;
}


/*
 * Старая обёртка thumbnail должна занимать всю картинку.
 */
.category-mods
.inzoi-catalog-card
.mod-card__img-overlays {
    display: block;

    width: 100%;
    height: 100%;
}


/*
 * Сам thumbnail.
 */
.category-mods
.inzoi-catalog-card
.mod-card__img-overlays > img,
.category-mods
.inzoi-catalog-card
.mod-card__img-overlays > .inzoi-adult-thumb {
    width: 100%;
    height: 100%;
}


/*
 * Adult gate также должен занимать всю область изображения.
 */
.category-mods
.inzoi-catalog-card
.inzoi-adult-thumb {
    display: block;

    width: 100%;
    height: 100%;
}


/*
 * Мы уже показываем наш новый 18+ badge,
 * поэтому старый badge age-gate визуально дублировать не надо.
 *
 * Сам gate при этом продолжает работать.
 */
.category-mods
.inzoi-catalog-card
.inzoi-adult-thumb__badge {
    display: none;
}


/* TABLET */

@media (max-width: 1100px) {

    .category-mods
    #mods-archive-results
    .post-cards--horizontal {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}


/* SMALL TABLET */

@media (max-width: 800px) {

    .category-mods
    #mods-archive-results
    .post-cards--horizontal {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;
    }
}


/* MOBILE */

@media (max-width: 520px) {

    .category-mods
    #mods-archive-results
    .post-cards--horizontal {
        grid-template-columns: 1fr;
    }

    .category-mods
    #mods-archive-results
    .inzoi-catalog-card
    .inzoi-rec-card__image {
        height: 190px;
    }
}


/* ============================================================
   ГАЛЕРЕИ В СТАТЬЯХ
   ============================================================ */

.single .entry-content .gallery {
    display: grid !important;
    gap: 12px;

    width: 100%;

    margin: 24px 0 30px !important;
    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}


/* 2 КОЛОНКИ */

.single .entry-content .gallery-columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}


/* 3 КОЛОНКИ */

.single .entry-content .gallery-columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}


/* 4 КОЛОНКИ */

.single .entry-content .gallery-columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}


/* ЭЛЕМЕНТ ГАЛЕРЕИ */

.single .entry-content .gallery .gallery-item {
    width: auto !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    float: none !important;

    text-align: center;
}


/* ОБЁРТКА КАРТИНКИ */

.single .entry-content .gallery .gallery-icon {
    overflow: hidden;

    width: 100%;

    margin: 0 !important;
    padding: 0 !important;

    border-radius: 14px;
}


/* ССЫЛКА */

.single .entry-content .gallery .gallery-icon a {
    display: block;

    width: 100%;

    margin: 0;
    padding: 0;

    text-decoration: none;
}


/* КАРТИНКА */

.single .entry-content .gallery .gallery-icon img {
    display: block;

    width: 100% !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 14px;

    object-fit: cover;
}


/* ПОДПИСЬ */

.single .entry-content .gallery .gallery-caption {
    margin: 8px 0 0 !important;
    padding: 0 4px !important;

    color: #6f7d90;

    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;

    text-align: center;
}


/* ============================================================
   DARK
   ============================================================ */

html.dark .single .entry-content .gallery .gallery-caption {
    color: #9eacbd;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 900px) {

    .single .entry-content .gallery-columns-3,
    .single .entry-content .gallery-columns-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 650px) {

    .single .entry-content .gallery {
        gap: 14px;

        margin: 20px 0 26px !important;
    }

    .single .entry-content .gallery-columns-2,
    .single .entry-content .gallery-columns-3,
    .single .entry-content .gallery-columns-4 {
        grid-template-columns: 1fr;
    }

    .single .entry-content .gallery .gallery-icon {
        border-radius: 12px;
    }

    .single .entry-content .gallery .gallery-icon img {
        border-radius: 12px;
    }

}

/* ============================================================
   SINGLE MOD — "ТАКЖЕ РЕКОМЕНДУЕМ"
   Те же карточки, что в каталоге модов
   ============================================================ */

.single .mods-recommended {
    width: 100%;
    margin: 38px 0 34px;
}

.single .mods-recommended__title {
    margin: 0 0 18px;

    color: #202e42;

    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;

    letter-spacing: -.35px;
}


/* СЕТКА */

.single .mods-recommended__grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;
}


/* ============================================================
   КАРТОЧКА
   ============================================================ */

.single .mods-recommended .inzoi-rec-card {
    display: flex;
    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    background: #fff;

    border: 1px solid #e2e8f0;
    border-radius: 11px;

    box-shadow:
        0 4px 15px rgba(38, 63, 96, .045);
}


/* ============================================================
   ИЗОБРАЖЕНИЕ
   ============================================================ */

.single .mods-recommended .inzoi-rec-card__image {
    position: relative;

    display: block;

    width: 100%;
    height: 145px;

    overflow: hidden;

    background: #eef3f7;

    text-decoration: none;
}

.single .mods-recommended .inzoi-rec-card__image img,
.single .mods-recommended .inzoi-rec-card__image .inzoi-adult-thumb {
    display: block;

    width: 100% !important;
    height: 100% !important;

    object-fit: cover;
}

.single .mods-recommended .inzoi-rec-card__image img {
    transition: transform .25s ease;
}

.single .mods-recommended .inzoi-rec-card:hover
.inzoi-rec-card__image img {
    transform: scale(1.025);
}


/* Убираем старые бейджи Reboot */

.single .mods-recommended
.mod-card__img-overlays {
    display: block;

    width: 100%;
    height: 100%;
}

.single .mods-recommended
.mod-card__img-overlays .mod-badges-row {
    display: none !important;
}

.single .mods-recommended
.inzoi-adult-thumb__badge {
    display: none;
}


/* ============================================================
   БЕЙДЖИ НА КАРТИНКЕ
   ============================================================ */

.single .mods-recommended
.inzoi-rec-card__badges {
    position: absolute;

    left: 10px;
    bottom: 10px;

    z-index: 5;

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 5px;
}

.single .mods-recommended
.inzoi-rec-badge {
    display: inline-flex;
    align-items: center;

    padding: 4px 7px;

    border-radius: 5px;

    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;

    white-space: nowrap;
}

.single .mods-recommended
.inzoi-rec-badge--find {
    background: #f4d766;
    color: #4d4315;
}

.single .mods-recommended
.inzoi-rec-badge--recommended {
    background: #83bbff;
    color: #173c65;
}

.single .mods-recommended
.inzoi-rec-badge--adult {
    background: #f0b4c0;
    color: #783647;
}


/* ============================================================
   ТЕЛО КАРТОЧКИ
   ============================================================ */

.single .mods-recommended
.inzoi-rec-card__body {
    display: flex;
    flex-direction: column;

    flex: 1;

    min-width: 0;

    padding: 15px 15px 13px;
}


/* ============================================================
   КАТЕГОРИЯ
   ============================================================ */

.single .mods-recommended
.inzoi-rec-card__category {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;

    padding: 4px 8px;

    background: #83bbff;
    color: #fff !important;

    border-radius: 6px;

    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;

    letter-spacing: .35px;
    text-transform: uppercase;

    text-decoration: none !important;

    cursor: pointer;
}

.single .mods-recommended
.inzoi-rec-card__category:hover,
.single .mods-recommended
.inzoi-rec-card__category:focus,
.single .mods-recommended
.inzoi-rec-card__category:visited {
    background: #83bbff;
    color: #fff !important;

    text-decoration: none !important;
}


/* ============================================================
   ЗАГОЛОВОК
   ============================================================ */

.single .mods-recommended
.inzoi-rec-card__title {
    display: -webkit-box;

    min-height: 44px;

    margin: 7px 0 8px !important;

    overflow: hidden;

    color: #202e42;

    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.45 !important;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.single .mods-recommended
.inzoi-rec-card__title a {
    color: #202e42 !important;

    text-decoration: none !important;
}

.single .mods-recommended
.inzoi-rec-card__title a:hover {
    color: #83bbff !important;
}


/* ============================================================
   ОПИСАНИЕ
   ============================================================ */

.single .mods-recommended
.inzoi-rec-card__excerpt {
    display: -webkit-box;

    height: 37px;

    margin: 0 !important;

    overflow: hidden;

    color: #69788d;

    font-size: 11.5px;
    font-weight: 400;
    line-height: 1.6;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}


/* ============================================================
   ДАТА
   ============================================================ */

.single .mods-recommended
.inzoi-rec-card__date {
    margin-top: auto;

    padding-top: 13px;

    color: #7b889a;

    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.4;
}

.single .mods-recommended
.inzoi-rec-card__date.is-updated {
    color: #668b72;
}


/* ============================================================
   МЕТРИКИ
   ============================================================ */

.single .mods-recommended
.inzoi-rec-card__metrics {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 8px;

    margin-top: 11px;
    padding-top: 11px;

    border-top: 1px solid #e8edf3;

    color: #667589;

    font-size: 11px;
    font-weight: 500;
    line-height: 1;
}

.single .mods-recommended
.inzoi-rec-card__metrics span {
    display: inline-flex;
    align-items: center;

    gap: 4px;

    min-width: 0;

    white-space: nowrap;
}

.single .mods-recommended
.inzoi-rec-card__metrics svg {
    display: block;

    width: 13px !important;
    height: 13px !important;

    flex: 0 0 13px;

    fill: none !important;
    stroke: currentColor !important;

    stroke-width: 1.5;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ============================================================
   DARK
   ============================================================ */

html.dark .single
.mods-recommended .inzoi-rec-card {
    background: #222b36;

    border-color: #354352;
}

html.dark .single
.mods-recommended__title,
html.dark .single
.mods-recommended
.inzoi-rec-card__title,
html.dark .single
.mods-recommended
.inzoi-rec-card__title a {
    color: #e3ecf8 !important;
}

html.dark .single
.mods-recommended
.inzoi-rec-card__excerpt {
    color: #a7b6c8;
}

html.dark .single
.mods-recommended
.inzoi-rec-card__metrics {
    border-color: #354352;

    color: #a6b5c6;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1100px) {

    .single .mods-recommended__grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


/* ============================================================
   TABLET / MOBILE
   ============================================================ */

@media (max-width: 800px) {

    .single .mods-recommended__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 520px) {

    .single .mods-recommended {
        margin-top: 30px;
    }

    .single .mods-recommended__title {
        font-size: 20px;
    }

    .single .mods-recommended__grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .single .mods-recommended
    .inzoi-rec-card__image {
        height: 190px;
    }

}

/* ============================================================
   Таблицы в описании мода – спокойный вид, как в статьях и гайдах.
   Старый синий стиль выше («inZOI-style таблицы») оставлен только для страницы
   читов (body.inzoi-cheats-page) – там ничего не меняется.
   Если у таблицы есть шапка (thead) – обычные строки остаются обычными;
   если шапки нет – первая строка считается заголовком.
   ============================================================ */
body:not(.inzoi-cheats-page) .inzoi-redesign-description table,
body:not(.inzoi-cheats-page) .mob-single__content .entry-content table {
  width: 100%;
  margin: 20px 0 26px;
  border: 1px solid #e4e9f1;
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: #fff;
  color: #344054;
  font-size: 14px;
  line-height: 1.45;
}
body:not(.inzoi-cheats-page) .inzoi-redesign-description table td,
body:not(.inzoi-cheats-page) .inzoi-redesign-description table th,
body:not(.inzoi-cheats-page) .inzoi-redesign-description table tr:first-child td,
body:not(.inzoi-cheats-page) .mob-single__content .entry-content table td,
body:not(.inzoi-cheats-page) .mob-single__content .entry-content table th,
body:not(.inzoi-cheats-page) .mob-single__content .entry-content table tr:first-child td {
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid #edf0f5;
  border-right: 1px solid #edf0f5;
  text-align: left;
  vertical-align: middle;
  background: #fff;
  color: #344054;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}
body:not(.inzoi-cheats-page) .inzoi-redesign-description table tr > :last-child,
body:not(.inzoi-cheats-page) .mob-single__content .entry-content table tr > :last-child { border-right: 0; }
body:not(.inzoi-cheats-page) .inzoi-redesign-description table tr:last-child > *,
body:not(.inzoi-cheats-page) .mob-single__content .entry-content table tr:last-child > * { border-bottom: 0; }
/* Шапка: thead, а если его нет – первая строка */
body:not(.inzoi-cheats-page) .inzoi-redesign-description table thead th,
body:not(.inzoi-cheats-page) .inzoi-redesign-description table thead td,
body:not(.inzoi-cheats-page) .inzoi-redesign-description table:not(:has(thead)) tr:first-child > *,
body:not(.inzoi-cheats-page) .mob-single__content .entry-content table thead th,
body:not(.inzoi-cheats-page) .mob-single__content .entry-content table thead td,
body:not(.inzoi-cheats-page) .mob-single__content .entry-content table:not(:has(thead)) tr:first-child > * {
  background: #f7f9fc;
  color: #1f2937;
  font-size: 13.5px;
  font-weight: 700;
}
/* Первая колонка – название (место, предмет, параметр) */
body:not(.inzoi-cheats-page) .inzoi-redesign-description table tbody tr > td:first-child,
body:not(.inzoi-cheats-page) .mob-single__content .entry-content table tbody tr > td:first-child { color: #1f2937; font-weight: 600; }
body:not(.inzoi-cheats-page) .inzoi-redesign-description table:not(:has(thead)) tr:first-child > td:first-child,
body:not(.inzoi-cheats-page) .mob-single__content .entry-content table:not(:has(thead)) tr:first-child > td:first-child { font-weight: 700; }
@media (hover: hover) {
  body:not(.inzoi-cheats-page) .inzoi-redesign-description table tbody tr:hover > td { background: #fbfcfe; }
}
/* Тёмная тема */
html.dark body:not(.inzoi-cheats-page) .inzoi-redesign-description table,
html.dark body:not(.inzoi-cheats-page) .mob-single__content .entry-content table { border-color: #2a2e3b; background: #181a23; color: #b3b9ca; }
html.dark body:not(.inzoi-cheats-page) .inzoi-redesign-description table td,
html.dark body:not(.inzoi-cheats-page) .inzoi-redesign-description table th,
html.dark body:not(.inzoi-cheats-page) .inzoi-redesign-description table tr:first-child td,
html.dark body:not(.inzoi-cheats-page) .mob-single__content .entry-content table td,
html.dark body:not(.inzoi-cheats-page) .mob-single__content .entry-content table th,
html.dark body:not(.inzoi-cheats-page) .mob-single__content .entry-content table tr:first-child td { border-color: #262a38; background: #181a23; color: #b3b9ca; }
html.dark body:not(.inzoi-cheats-page) .inzoi-redesign-description table thead th,
html.dark body:not(.inzoi-cheats-page) .inzoi-redesign-description table thead td,
html.dark body:not(.inzoi-cheats-page) .inzoi-redesign-description table:not(:has(thead)) tr:first-child > *,
html.dark body:not(.inzoi-cheats-page) .mob-single__content .entry-content table thead th,
html.dark body:not(.inzoi-cheats-page) .mob-single__content .entry-content table thead td,
html.dark body:not(.inzoi-cheats-page) .mob-single__content .entry-content table:not(:has(thead)) tr:first-child > * { background: #20232d; color: #e7e9f2; }
html.dark body:not(.inzoi-cheats-page) .inzoi-redesign-description table tbody tr > td:first-child,
html.dark body:not(.inzoi-cheats-page) .mob-single__content .entry-content table tbody tr > td:first-child { color: #d8dce6; }
html.dark body:not(.inzoi-cheats-page) .inzoi-redesign-description table tbody tr:hover > td { background: #1c1f29; }
/* Телефон и узкие экраны: таблица остаётся во всю ширину, длинные слова переносятся */
@media (max-width: 768px) {
  body:not(.inzoi-cheats-page) .inzoi-redesign-description table,
  body:not(.inzoi-cheats-page) .mob-single__content .entry-content table { border-radius: 10px; }
  body:not(.inzoi-cheats-page) .inzoi-redesign-description table td,
  body:not(.inzoi-cheats-page) .inzoi-redesign-description table th,
  body:not(.inzoi-cheats-page) .inzoi-redesign-description table tr:first-child td,
  body:not(.inzoi-cheats-page) .mob-single__content .entry-content table td,
  body:not(.inzoi-cheats-page) .mob-single__content .entry-content table th,
  body:not(.inzoi-cheats-page) .mob-single__content .entry-content table tr:first-child td { padding: 10px 12px; font-size: 13px; overflow-wrap: anywhere; }
}

/* 01.11.2026: заголовок карточки мода теперь h3 – сбрасываем стили темы для h3 */
h3.inzoi-rec-card__title { padding: 0; letter-spacing: normal; text-transform: none; }
