.catgory-title{
    padding: 40px 0;
}

.articles-grid{
    display: block;
    max-width: 640px;
    margin: 0 auto;
}
.article-preview{
    display: block;
    position: relative;
    min-width: 300px;
    width: 100%;
    height: auto;
    background: var(--darkened-bg);
    text-decoration: none;
    color: var(--body-fg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    padding: 10px 0;
}
.article-image{
    position: relative;
    width: 100%;
    height: auto;
    max-height: 350px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 8px 0;
}
.article-image img{
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}
.article-preview h2{
    padding: 4px 20px;
}

.article-info-prev{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 4px 20px;
}

.article-info-prev .info-item-prev{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    font-size: 16px;
}

.article-info-prev .info-item-prev .material-symbols-outlined{
    font-size: 20px;
}

.info-item-prev .like-count.negative{
    color: red;
}
.info-item-prev .like-count.positive{
    color: green;
}

.article-description{
    padding: 4px 20px;
    position: relative;
    width: 100%;
    height: auto;
}




.pagination {
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    align-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;

    position: relative;
    grid-row: span 1;
    grid-column: span 3;
}

.pagination-numbers {
    overflow: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.pagination li {
    display: inline-block;
    width: auto;
    height: auto;
    position: relative;
}
.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 40px;
    text-decoration: none;
    color: var(--body-fg);
    text-align: center;
    font-weight: normal;
    font-style: normal;
    font-size: 18px;
    line-height: 1;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
}
.pagination .page-button {
    font-size: 24px;
}

@media screen and (max-width: 970px) {
    .pagination li a,
    .pagination li span {
        font-size: 16px;
        width: 40px;
        height: 30px;
    }
    .pagination .page-button {
        font-size: 22px;
    }
}

.pagination .page-number:not(.disabled):hover,
.pagination .page-button:not(.disabled):hover {
    background-color: var(--primary);
    color: var(--primary-fg);
}

.pagination .page-button.disabled {
    cursor:not-allowed;
    opacity: 0.5;
}

.current {
    border-top: 4px solid var(--body-bg);
    border-bottom: 4px solid var(--primary);
}

.article-screen .catgory-title{
    padding-bottom: 10px;
}

.article-tags{
    padding-bottom: 10px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: auto;
    height: auto;
    justify-content: flex-start;
    align-items: center;
}
.article-tag{
    padding: 5px 10px;
    color: var(--body-fg);
    text-decoration: none;
    border: 2px solid var(--border-color);
    border-radius: 0;
    transition: all 0.2s ease;
}
.article-tag:hover{
    border-color: var(--primary);
    transition: all 0.2s ease;
}



a#change-object{
    z-index: 5;
    display: block;
    position: absolute;
    right: 20px;
    top: 170px;
    height: auto;
}

.article-screen{
    max-width: 800px;
    padding: 20px 60px;
    margin: 20px auto;
    margin-top: 100px;
    border-radius: 0;
    border: 1px solid var(--border-color);
    background-color: var(--darkened-bg);
}
.article-screen .catgory-title{
    padding: 20px 0;
}
@media screen and (max-width: 970px) {
    a#change-object {
        top: 70px;
    }
    .article-screen{
        padding: 70px 20px 20px 20px;
    }
}
.article-screen .article-info{
    padding: 10px 0 0 0;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}
.info-item{
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 5px 10px;
    gap: 10px;
}
.article-likes{
    padding: 0;
    gap: 0;
}
.article-likes *{
    padding: 5px 10px;
}
.article-likes .button{
    z-index: 2;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s ease;
    color: var(--body-fg);
}
.article-likes .active.button.material-symbols-outlined{
    color: var(--primary);
    transition: all 0.2s ease;
    font-variation-settings:
    'FILL' 1,
    'wght' 400,
    'GRAD' 0,
    'opsz' 48
}
.article-likes .button:hover{
    background: var(--primary);
    box-shadow: 0 20px 80px -10px var(--primary);
    transition: all 0.2s ease;
}
.article-likes .button.active.material-symbols-outlined:hover{
    color: var(--body-fg);
    transition: all 0.2s ease;
}
.article-likes #like-count.negative{
    color: red;
}
.article-likes #like-count.positive{
    color: green;
}

.article-image-block{
    position: relative;
    width: 100%;
    height: auto;
    max-height: 300px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
.article-image-block img{
    width: 100%;
    height: auto;
}

.article{
    overflow: hidden;
}
.article img{
    max-width: 100% !important;
    height: auto !important;
}
.article > * {
    margin: 30px 0;
}
.article h2{
    font-size: 28px;
    font-weight: 600;
}
.article h3{
    font-size: 23px;
    font-weight: 500;
}
.article p{
    font-size: 18px;
}
.article ol {
	list-style-type: none; 
	counter-reset: num;
	position: relative;	    
	margin: 0 0 0 60px;
	padding: 15px 0 5px 0;
	font-size: 16px;
}
.article ol li {
	position: relative;	
	margin: 0 0 0 0;
	padding: 0 0 10px 0;
	line-height: 1.4;
}
.article ol li:after {
	content: counter(num); 
	counter-increment: num;
	display: inline-block;
	position: absolute;
	top: 0;
	left: -45px;
	width: 28px;
	height: 28px;
	line-height: 28px;
	background: var(--body-bg);
	color: var(--body-fg);
	text-align: center;
	font-size: 18px;
	border-radius: 50%;
	border: 1px solid var(--primary);
}
 
/* Вертикальная линия */
.article ol:before {
	content: ''; 
	position: absolute;
	top: 15px;
	bottom: 15px;
	left: -30px;    
	width: 1px;
	border-left: 1px solid var(--primary);
}
/* Скрытие линии у последнего li */
.article ol li:last-child:before {
	content: ''; 
	display: inline-block;
	position: absolute;
	top: 0;
	bottom: 0;
	left: -38px;
	width: 28px;
	background: var(--darkened-bg);
}
.article ul {
    list-style: disc;
    list-style-position: inside;
}
.article ul li {
    margin: 10px 0;
}
.article ul li > * {
    display: inline;
}
.article .article-main-button {
    display: flex;
    padding: 10px 20px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 400;
    color: var(--primary-fg);
    background: var(--primary);
    width: fit-content;
    text-decoration: none;
    justify-self: center;
    margin: 0 auto;
}

.article .article-details-list {
    width: auto;
    list-style: none !important;
}

.article .article-details-list > li{
    width: 100%;
    margin-top: 20px;
}
.article .article-details-list li details {
    width: 100%;
    border: 1px solid var(--border-color);
    background: var(--body-bg);
}
.article .article-details-list li details .material-symbols-outlined {
    font-size: 34px;
    line-height: 16px;
}
.article .article-details-list li details .open {
    display: none;
}
.article .article-details-list li details[open] .open {
    display: inline;
}
.article .article-details-list li details[open] .close {
    display: none;
}
.article .article-details-list li details summary {
    padding: 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.article .article-details-list li details summary > span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.article .article-details-inner {
    padding: 20px;
    background-image: linear-gradient(to right, rgb(34, 34, 34) 0 10%, rgba(255, 255, 255, 0) 10%);
    background-position: top;
    background-size: 8px 1px;
    background-repeat: repeat-x;
}


.promotions-grid{
    display: block;
    max-width: 1280px;
    margin: 0 auto;
}
.promotion-preview{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    min-width: 300px;
    width: 100%;
    height: auto;
    background: var(--darkened-bg);
    text-decoration: none;
    color: var(--body-fg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    padding: 20px;
}
.promotion-image{
    position: relative;
    height: 100%;
    width: 50%;
    max-height: 250px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
@media screen and (max-width: 970px) {
    .promotion-preview{
        padding: 10px;
        gap: 10px;
    }
    .promotion-image{
        aspect-ratio: 2/1;
        width: 100%;
    }
}
.promotion-image img{
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}


.swiper {
    margin: 0;
}

.article-related-item{
    width: 200px;
    height: 300px;
    padding: 10px;
    background-color: var(--body-bg);
    border-radius: 0;
    text-decoration: none;
    color: var(--body-fg);
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
    border: 2px solid var(--body-bg);
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}
.article-related-item:hover{
    border: 1px solid var(--primary);
    transition: all 0.2s ease;
}
.related-item-image{
    width: 100%;
    flex: 1;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 10px;
}
.related-item-image img{
    width: 100%;
    height: auto;
}
.related-item-title{
    padding: 10px 0 10px 0;
}
.related-item-price-cont{
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 10px;
}
.related-item-price-cont .price{
    font-size: 18px;
    font-weight: 600;
}
.related-item-price-cont .sale{
    font-size: 16px;
    font-weight: 400;
    text-decoration: line-through;
}

.autoplay-progress {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 10;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--swiper-theme-color);
  }

  .autoplay-progress svg {
    --progress: 0;
    position: absolute;
    left: 0;
    top: 0px;
    z-index: 10;
    width: 100%;
    height: 100%;
    stroke-width: 4px;
    stroke: var(--swiper-theme-color);
    fill: none;
    stroke-dashoffset: calc(125.6 * (1 - var(--progress)));
    stroke-dasharray: 125.6;
    transform: rotate(-90deg);
  }

  .swiper-horizontal>.swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal, .swiper-pagination-custom, .swiper-pagination-fraction {
    bottom: var(--swiper-pagination-bottom,8px);
    top: var(--swiper-pagination-top,auto);
    left: 0;
    width: 100%;
}