﻿.second-catalog-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	align-items: stretch;
}

.second-catalog-list-item {
	border-radius: 5px;
	padding: 30px;
	background: var(--white-bg);
	box-sizing:border-box;
	display: grid;
	grid-template-columns: 172px minmax(0, 1fr);
	gap: 52px;
	align-items: start;
	min-height: 288px;
	height: 100%;
}

.second-catalog-list-item h3 {
	padding:0;
	margin:0;
	font-family: var(--font-family);
	font-weight: 600;
	font-size: 22px;
	line-height: 1.35;
	color: var(--grafit-black);
}

.second-catalog-list-image {
	width: 172px;
	height: 172px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: start;
}

.second-catalog-list-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.second-catalog-list-item a {
	text-decoration:none;
}

.second-catalog-list-nav {
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0 0 0 8px;
	box-sizing: border-box;
	text-align: left;
	align-self: start;
}

.second-catalog-title {
	display: block;
	margin-bottom: 18px;
	min-height: calc(22px * 1.35 * 2);
}

.second-catalog-title h3 {
	transition: color var(--transition-fast);
	margin: 0;
}

.second-catalog-list-nav ul {
	list-style:none;
	column-count: 2;
	column-gap: 32px;
	margin: 0;
	padding: 0;
	min-height: 132px;
}

.second-catalog-list-nav ul li {
	margin-bottom:10px;
	position:relative;
	width: auto;
}

.second-catalog-list-nav ul li:last-child {
	margin-bottom:0px;
}

.second-catalog-list-nav ul li:after {
	content:"";
	position:absolute;
	top:0;
	left:-30px;
	width:24px;
	height:24px;
	background:url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 16L14 12L10 8" stroke="%23FFBB10" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /></svg>');
	transition: transform var(--transition-fast);
}

.second-catalog-list-nav ul li a {
	text-decoration:none;
	font-family: var(--font-family);
	font-weight: 500;
	font-size: 14px;
	line-height: 157%;
	color: var(--grafit-grey);
	transition: color var(--transition-fast), transform var(--transition-fast);
	display: inline-block;
}

.second-catalog-list-nav ul li a:hover {
	color: var(--grafit-black);
	transform: translateX(3px);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: rgba(255, 187, 16, 0.65);
}

.second-catalog-list-nav ul li:hover::after {
	transform: translateX(3px);
}

.second-catalog-title:hover h3 {
	color: var(--grafit-black);
}

.home-second-block {
	margin-top:80px;
}

/* Заголовок секции — через .home-section-title (см. блок «Главная в стиле каталога») */

/* Каталог серий */

.series-catalog-list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	box-sizing: border-box;
}

.series-catalog-item {
	width: auto;
	max-width: none;
	display: block;
	text-align: center;
	text-decoration: none;
	border-radius: 5px;
	padding: 10px 10px 20px;
	background: var(--white-bg);
	box-sizing: border-box;
}

.series-catalog-item img {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
}

.series-catalog-item  h3 {
	margin:0;
	padding-top:20px;
	font-family: var(--font-family);
	font-weight: 600;
	font-size: 16px;
	line-height: 150%;
	text-align: center;
	color: var(--grafit-black);
}

.series-catalog-block {
	margin-top:80px;
}

/* Заголовок секции — через .home-section-title */

/* Новинки и хиты — layout через .home-section-header и .home-product-gallery */


.home-fourth-block {
	margin-top:80px;
}

.home-fourth-block-wrap h2 {
	padding:0;
	margin:0;
	font-family: var(--font-family);
	font-weight: 500;
	font-size: 36px;
	line-height: 122%;
	color: var(--grafit-black);
}

.home-logo-company {
	margin-top:40px;
}

.our-projects-item-img {
	border-radius: 5px;
	width: 100%;
	height: 296px;
	background-repeat:no-repeat;
	background-size:cover;
	margin:0 auto;	
}

.home-our-projects-block {
	margin-top:80px;
	max-width: 100%;
	overflow: hidden;
}

.home-our-projects-block-title {
	display:flex;
	justify-content:space-between;
	align-items:center;
	margin-bottom:20px;
}

.home-our-projects-block-title h2 {
	padding:0;
	margin:0;
	font-family: var(--font-family);
	font-weight: 500;
	font-size: 36px;
	line-height: 122%;
	color: var(--grafit-black);	
}

.home-our-projects-block-title a {
	border-radius: 5px;
	padding: 10px 20px;
	display:inline-block;
	font-family: var(--font-family);
	font-weight: 600;
	font-size: 16px;
	color: var(--white-bg);
	background: var(--grafit-black);
	text-decoration:none;
}

.our-projects-list {
	display:flex;
	justify-content:space-between;
	flex-wrap:wrap;
	gap:20px;
}

.our-projects-item {
	border-radius: 5px;
	padding: 10px;
	/* width: 406px; */
	background: var(--white-bg);
	text-decoration:none;
	display:block;
	box-sizing:border-box;
}

.our-projects-item-category {
	display:flex;
	align-items:center;
	gap:3px;
	border-radius: 5px;
	padding: 3px 5px;
	background: #f4f4f4;
	margin:20px 0px 10px 0px;
	box-sizing:border-box;
}

.our-projects-item-category img {
	width:22px !important;
	height:22px !important;
	object-fit:contain;
}

.our-projects-item-category h3 {
	padding:0;
	margin:0;
	font-family: var(--font-family);
	font-weight: 500;
	font-size: 14px;
	line-height: 157%;
	color: var(--grafit-black);
}

.our-projects-item-title {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    color: var(--grafit-black);
}
.our-projects-item-date {
    margin-top: 5px;
    font-size: 0.9em;
    color: #666;
}

.our-projects-list-carousel {
	position:relative;
	padding-top:45px;
}

.our-projects-list-carousel .owl-nav {
	position:absolute;
	top:0;
	right:0;
}

.our-projects-list-carousel .owl-nav button {
	width:34px;
	height:34px;
	border:none !important;
	border-radius:5px;
	background:var(--orange) !important;
	color:var(--grafit-black) !important;
}

.our-projects-list-carousel .owl-nav .owl-prev {
	margin-right:10px;
}

.our-projects-item-category-flex {
	display:flex;
}
.block-news {
	margin-top:80px;
}

.block-news-title {
	margin-bottom:20px;
	display:flex;
	justify-content:space-between;
	align-items:center;
}

.block-news-title h2 {
	font-family: var(--font-family);
	font-weight: 500;
	font-size: 36px;
	line-height: 122%;
	color: var(--grafit-black);
	padding:0;
	margin:0;
}

.block-news-title a {
	border-radius: 5px;
	padding: 10px 20px;
	display:inline-block;
	background: var(--grafit-black);
	font-family: var(--font-family);
	font-weight: 600;
	font-size: 16px;
	color: var(--white-bg);
	text-decoration:none;
}

.news-shortcode-item-img {
	border-radius: 5px;
	padding: 20px;
	width: 100%;
	height: 296px;
	box-sizing:border-box;
	background-repeat:no-repeat;
	background-size:cover;
}

.news-shortcode-item {
	border-radius: 5px;
	padding: 10px;
	/* width: 406px; */
	box-sizing:border-box;
	background: var(--white-bg);
	display:block;
	text-decoration:none;
}

.news-shortcode-item-title {
	padding:20px 0px 10px 0px;
	margin:0;
	font-family: var(--font-family);
	font-weight: 600;
	font-size: 16px;
	line-height: 150%;
	color: var(--grafit-black);	
}

.news-shortcode-item-excerpt {
	font-family: var(--font-family);
	font-weight: 500;
	font-size: 14px;
	line-height: 157%;
	color: var(--grafit-secon-text);	
}

.news-shortcode-list {
	display:flex;
	justify-content:space-between;
	align-items:center;
}

.news-shortcode-carousel {
	padding-top: 45px;
	position:relative;
}

.news-shortcode-carousel .owl-nav {
    display: block !important;
    opacity: 1 !important;
    pointer-events: all !important;
}


.news-shortcode-carousel .owl-nav {
	position:absolute;
	top:0;
	right:0;
}

.news-shortcode-carousel .owl-nav button {
	width:34px;
	height:34px;
	border:none !important;
	border-radius:5px;
	background:var(--orange) !important;
	color:var(--grafit-black) !important;
}

.news-shortcode-carousel .owl-nav .owl-prev {
	margin-right:10px;
}

/****************************** МОБИЛЬНАЯ ВЕРСИЯ  *********************************/
@media (max-width: 768px) {
/******************* ГЛАВНАЯ  *******************/
	/* Каталог оборудования */
	.second-catalog-list {
		grid-template-columns: 1fr;
	}

	.second-catalog-list-item {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 20px;
		justify-items: center;
		min-height: 0;
		height: auto;
	}
	.second-catalog-list-image {
		margin: 0;
		width: 172px;
		height: 172px;
	}
	.second-catalog-list-nav {
		text-align: left;
		width: 100%;
		max-width: 320px;
	}

	.second-catalog-title {
		min-height: 0;
	}

	.second-catalog-list-nav ul {
		min-height: 0;
		column-gap: 20px;
		padding-left: 25px;
	}
	.second-catalog-list-nav ul li {
		margin-left: 0;
		padding-left: 0;
	}
	/* стрелка смещена для мобильных */
	.second-catalog-list-nav ul li:after {
		left: -25px;
	}

	/*------ КАТАЛОГ СЕРИЙ ------*/
	.series-catalog-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}

	.series-catalog-item {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.series-catalog-item img {
		display: block;
		margin: 0 auto;
		max-width: 100%;
		height: auto;
	}

	/* ----- Новинки 2025 года ----- */

	/* ----- Хиты продаж ----- */
    
/* ----- реализованные проекты на главной ----- */
.our-projects-list-carousel.owl-carousel .owl-stage {
    display: flex;
    transform: translate3d(0px, 0px, 0px); /* Убрали !important */
}

.our-projects-list-carousel .owl-item {
    flex-shrink: 0;
    width: auto !important; /* Важно: позволим Owl Carousel управлять шириной */
}

.our-projects-item {
    width: 300px;
    flex-shrink: 0;
}

.our-projects-item-img {
    height: 200px;
}

.home-our-projects-block-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.home-our-projects-block-title h2 {
    font-size: 28px;
}

}

/* === Главная в стиле каталога === */

body.algorithm-home-page {
	background: #fff;
	font-family: var(--font-family);
}

.home-page-section {
	margin-top: clamp(40px, 5vw, 64px);
}

.home-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.home-section-title {
	margin: 0;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: clamp(28px, 4vw, 40px);
	line-height: 120%;
	letter-spacing: -0.02em;
	color: var(--grafit-black);
}

.home-section-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border-radius: 999px;
	background: var(--orange);
	color: var(--grafit-black) !important;
	font-family: var(--font-family);
	font-weight: 600;
	font-size: 14px;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 2px 8px rgba(255, 187, 16, 0.2);
	transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.home-section-link:hover {
	transform: scale(1.03);
	box-shadow: var(--cta-btn-shadow);
	color: var(--grafit-black) !important;
}

body.algorithm-home-page .home-section-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: clamp(12px, 1.5vw, 16px);
	margin-bottom: clamp(24px, 3vw, 32px);
}

body.algorithm-home-page .home-section-title {
	grid-column: 2;
	grid-row: 1;
	text-align: center;
	justify-self: center;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: clamp(28px, 4vw, 40px);
	line-height: 120%;
	letter-spacing: -0.02em;
	color: var(--grafit-black);
}

/* Шапка галерей (главная + архитекторам) — заголовок, кнопка и стрелки в одну линию */

.home-gallery-section__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: clamp(12px, 1.5vw, 16px);
	margin-bottom: clamp(20px, 2.5vw, 28px);
}

.home-gallery-section__head .home-section-title {
	grid-column: 2;
	grid-row: 1;
	margin: 0;
	text-align: center;
	justify-self: center;
}

.home-gallery-section__toolbar {
	grid-column: 3;
	grid-row: 1;
	justify-self: end;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	flex-wrap: nowrap;
	min-width: 0;
}

.home-gallery-section__toolbar .home-product-gallery__nav,
.home-gallery-section__toolbar .home-projects-gallery__nav {
	position: static;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

body.algorithm-home-page .home-product-gallery,
body.algorithm-home-page .home-projects-gallery {
	padding-top: 0;
}

body.algorithm-home-page .home-our-projects-block {
	max-width: 100%;
	overflow: hidden;
}

body.algorithm-home-page .home-gallery-carousel {
	position: relative;
	padding-top: 45px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
	box-sizing: border-box;
}

body.algorithm-home-page .home-gallery-carousel .owl-nav {
	position: absolute;
	top: 0;
	right: 0;
	left: auto;
	transform: none;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	pointer-events: auto;
	margin: 0;
	width: auto;
}

body.algorithm-home-page .home-product-gallery__btn,
body.algorithm-home-page .home-gallery-carousel .owl-nav button {
	width: 34px;
	height: 34px;
	padding: 0;
	border: none !important;
	border-radius: 50% !important;
	background: var(--orange) !important;
	color: var(--grafit-black) !important;
	cursor: pointer;
	position: relative;
	flex-shrink: 0;
	font-size: 0;
	line-height: 0;
	box-shadow: none;
	pointer-events: auto;
}

body.algorithm-home-page .home-product-gallery__btn::before,
body.algorithm-home-page .home-gallery-carousel .owl-nav button::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px;
	height: 8px;
	border-top: 2px solid var(--grafit-black);
	border-right: 2px solid var(--grafit-black);
	transform: translate(-35%, -50%) rotate(-135deg);
}

body.algorithm-home-page .home-product-gallery__btn--next::before,
body.algorithm-home-page .home-gallery-carousel .owl-nav .owl-next::before {
	transform: translate(-65%, -50%) rotate(45deg);
}

body.algorithm-home-page .home-product-gallery__btn:hover,
body.algorithm-home-page .home-gallery-carousel .owl-nav button:hover {
	opacity: 0.9;
}

body.algorithm-home-page .home-gallery-carousel .owl-nav .owl-prev {
	margin-right: 10px;
}

body.algorithm-home-page .slider-btn.island-cta-btn {
	color: var(--grafit-black) !important;
	margin-top: 0;
}

body.algorithm-home-page .second-catalog-list {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.algorithm-home-page .second-catalog-list-item {
	border-radius: var(--radius-lg);
	border: 1px solid var(--glass-border);
	min-width: 0;
	min-height: 288px;
	height: 100%;
	transition: box-shadow var(--transition-fast), transform var(--transition-fast);
	align-items: start;
}

body.algorithm-home-page .second-catalog-list-image {
	width: 172px;
	height: 172px;
	flex-shrink: 0;
}

body.algorithm-home-page .second-catalog-list-item:hover {
	box-shadow: var(--glass-shadow-hover);
	transform: translateY(-2px);
}

body.algorithm-home-page .second-catalog-list-image img {
	object-fit: contain;
}

body.algorithm-home-page .series-catalog-list {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.algorithm-home-page .series-catalog-item {
	border-radius: var(--radius-lg);
	border: 1px solid var(--glass-border);
	width: auto;
	max-width: none;
	transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

body.algorithm-home-page .series-catalog-item:hover {
	box-shadow: var(--glass-shadow-hover);
	transform: translateY(-4px);
}

body.algorithm-home-page .series-catalog-item img {
	object-fit: contain;
}

body.algorithm-home-page .series-catalog-item-placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	background: var(--gr-gr);
	border-radius: var(--radius-md);
}

body.algorithm-home-page .second-catalog-list-item h3,
body.algorithm-home-page .series-catalog-item h3 {
	font-family: var(--font-family);
	font-weight: 600;
}

body.algorithm-home-page .second-catalog-list-nav ul li a {
	font-family: var(--font-family);
	font-weight: 500;
}

body.algorithm-home-page .our-projects-item {
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
	box-sizing: border-box;
	border-radius: var(--radius-lg);
	border: 1px solid var(--glass-border);
	background: var(--white-bg);
	overflow: hidden;
	transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

body.algorithm-home-page .our-projects-item:hover {
	transform: translateY(-4px);
	box-shadow: var(--glass-shadow-hover);
}

body.algorithm-home-page .our-projects-item-img {
	flex-shrink: 0;
	border-radius: var(--radius-md) var(--radius-md) 0 0;
}

body.algorithm-home-page .our-projects-item-img--lazy {
	background-color: var(--gr-gr);
	background-size: cover;
	background-position: center;
}

body.algorithm-home-page .our-projects-item-category {
	display: inline-block;
	border-radius: 20px;
	padding: 3px 10px;
	background: var(--brand-yellow);
	color: var(--grafit-black);
	font-size: 13px;
	font-weight: 500;
}

body.algorithm-home-page .our-projects-list-carousel.owl-carousel .owl-stage {
	display: flex;
	align-items: stretch;
}

body.algorithm-home-page .our-projects-list-carousel .owl-item {
	display: flex;
	height: auto;
	align-items: stretch;
}

body.algorithm-home-page .our-projects-item-category-flex {
	flex-shrink: 0;
}

body.algorithm-home-page .our-projects-item-title {
	flex: 1 1 auto;
	min-height: calc(16px * 1.5 * 2);
}

@media (max-width: 767px) {
	body.algorithm-home-page .home-section-header,
	.home-gallery-section__head {
		grid-template-columns: 1fr;
		justify-items: center;
		gap: 12px;
	}

	body.algorithm-home-page .home-section-title,
	.home-gallery-section__head .home-section-title {
		grid-column: 1;
		font-size: 24px;
	}

	.home-gallery-section__toolbar {
		grid-column: 1;
		justify-self: center;
		flex-wrap: wrap;
		justify-content: center;
	}
}

