.main_stocks-item {
	padding: 40px 25px 25px 25px;
    border-radius: 30px;
}
.main_services-item {
	padding: 40px 25px 25px 25px;
    border-radius: 30px;
}
.main_stocks-item .left {
    justify-content: flex-start;
}
.main_stocks-item .left .title {
	font-style: normal;
	font-weight: 400;
	font-size: 40px;
	line-height: 45px;
}
.btn.btn-white {
	display: inline-block;
    box-sizing: border-box;
    padding: 9px 15px;
    width: auto;
    height: auto;
    background: #FFFFFF;
    border: 1px solid #FFFFFF;
    border-radius: 5px;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 15px;
    color: #274341;
}
.main_services-item .title {
	font-style: normal;
	font-weight: 400;
	font-size: 40px;
	line-height: 45px;
	color: #FFFFFF;
	margin-bottom: 1px;
}
.main_services-item .desc {
	max-width: 350px;
	font-style: normal;
	font-weight: 400;
	font-size: 20px;
	line-height: 28px;
	color: #FFFFFF;
	margin-bottom: 1px;
}
.main_services-item .btn_wrap {
	padding-top: 24px;
    position: relative;
    z-index: 2;
}


/* Стили для секции популярных категорий */
.popular-categories-section {
    padding: 40px 0;
}

/* Заголовок h2 */
.main_populars-title.title-h2 {
}

/* Флекс-контейнер для сетки */
.categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.category-card {
    background-color: #1D6C50; 
    border-radius: 20px;
    padding: 24px;
    min-height: 316px;
    width: calc((100% - (3 * 18px)) / 4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    box-sizing: border-box;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.category-info {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2; 
}

.category-title {
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 14px;
}

.category-count {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 400;
}

.category-image {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 65%;
    height: 250px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    z-index: 1;
}
.category-image picture {
	height: inherit;
}
.category-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; 
    pointer-events: none;
}

@media (max-width: 1200px) {
    .category-card {
        width: calc((100% - (2 * 18px)) / 3);
    }
}

@media (max-width: 1024px) {
    .categories-grid {
        gap: 15px;
    }
    .category-card {
        width: calc((100% - (1 * 15px)) / 2);
    }
}

@media (max-width: 576px) {
    .category-card {
        min-height: 161px; 
        padding: 20px;
    }
    
    .main_populars-title.title-h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
}


.populars-tabs-nav {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 2px solid #C8C8C8;
    margin-bottom: 60px;
    white-space: nowrap;
}
.tab-nav-btn {
    background: none;
    border: none;
    padding: 12px 4px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}
.tab-nav-btn:hover, .tab-nav-btn.active {
    color: #274341;
    font-weight: 500;
}
.tab-nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #274341;
}

/* Логика скрытия/отображения панелей табов с плавной анимацией */
.tab-panel {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.75s ease-in-out, visibility 0.75s ease-in-out;
}

/* Когда таб активен, он плавно проявляется */
.tab-panel.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Оболочка слайдера и позиционирование стрелок */
.main_populars-slider-wrapper {
    position: relative;
}
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #E0E0E0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}
.slider-arrow:hover {
    background: #274341;
}
.slider-arrow:hover svg path {
    stroke: #fff;
}
.prev-arrow { left: 0; }
.next-arrow { right: 0; }

.center-btn-wrap {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}
@media (max-width: 1200px) {
	.populars-tabs-nav {
		border: none;
		flex-wrap: wrap;
        justify-content: flex-start;
	}
}
@media (max-width: 767px) {
    .category-title {
        font-size: 15px;
        margin-bottom: 7px;
    }
    .category-count {
        font-size: 12px;
    }
    .category-image {
        width: 50%;
        height: 123px;
    }
    .main_services-item {
        padding: 21px 14px 10px;
    }
    .main_services-item {
        margin-bottom: 20px;
    }
    .main_stocks-item {
        padding: 21px 14px 10px;
    }
    .main_stocks-item .left .title {
        font-size: 20px;
        line-height: 24px;
    }
    .main_services-item .title {
        font-size: 24px;
        line-height: 24px;
        margin-bottom: 6px;
    }
    .main_services-item .desc {
        font-size: 13px;
        line-height: 15px;
        margin-bottom: 6px;
    }
    .main_services-item .btn_wrap {
        padding-top: 10px;
    }
    .main_services-item .image {
        height: 112px;
    }
    .main_services-item {
        height: 194px;
    }
    .main_stocks-item {
        min-height: 184px;
    }
    .btn.btn-white {
        padding: 7px 12px;
        font-size: 14px;
    }
}
@media (max-width: 600px) {
    .main_populars-block .slick-list {
        /*min-width: 600px;*/
    }
    .main_populars--item {
        margin: 0 15px 30px;
    }
}