/* pages-catalog: «Серверы для ИИ» (templates/ai-catalog.php), 1600px = Figma 1:1 */

@font-face {
	font-family: 'Inter';
	font-weight: 500;
	font-style: normal;
	font-display: swap;
	src: url('../fonts/Inter-Medium-cyrillic.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
	font-family: 'Inter';
	font-weight: 500;
	font-style: normal;
	font-display: swap;
	src: url('../fonts/Inter-Medium-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- head: breadcrumbs + H1 ---- */
.catalog-head {
	padding-top: 31px;
}

.catalog-head__breadcrumbs {
	margin: 0 0 12px;
	font-size: 12px;
	line-height: 24px;
	color: #a5a5a5;
}

.catalog-head__breadcrumbs a,
.catalog-head__breadcrumbs .breadcrumbs__sep {
	color: #a5a5a5;
}

.catalog-head__title {
	position: relative;
	top: 5px;
	margin: 0 0 35px -3px;
	font-size: 50px;
	line-height: 40px;
	font-weight: 500;
	letter-spacing: -.02em;
}

/* ---- dark banner card ---- */
.catalog-banner {
	padding-bottom: 59px;
}

.catalog-banner__card {
	position: relative;
	height: 389px;
	background: #151526;
	border-radius: 10px;
	overflow: hidden;
	color: #fff;
}

.catalog-banner__content {
	position: static;
}

.catalog-banner__subtitle {
	position: absolute;
	left: 82px;
	top: 72px;
	width: 465px;
	font-family: 'AeonikPro', sans-serif;
	font-size: 26px;
	line-height: 29px;
	font-weight: 500;
	letter-spacing: -.01em;
}

.catalog-banner__bullets {
	position: absolute;
	left: 106px;
	top: 150px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
	line-height: 29px;
}

.catalog-banner__bullets li {
	position: relative;
	margin: 0;
	padding: 0;
}

.catalog-banner__bullets li:before {
	content: '';
	position: absolute;
	left: -23px;
	top: 9px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: linear-gradient(135deg, #ff006f, #ff7b54);
}

.catalog-banner__button {
	position: absolute;
	left: 82px;
	top: 267px;
	z-index: 2;
	width: 236px;
	margin: 0;
	padding: 0;
	color: #fff;
}

.catalog-banner__button:hover {
	color: #fff;
}

.catalog-banner__media {
	position: absolute;
	left: 562px;
	top: 36px;
	width: 587px;
	height: 353px;
}

.catalog-banner__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: left top;
}

/* ---- tabs + product grid ---- */
.catalog-ai {
	padding: 0;
}

.catalog-ai__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 21px;
	margin-bottom: 41px;
}

.catalog-ai__tab {
	justify-content: flex-start;
	flex: none;
	padding: 0 0 0 54px;
	background: transparent;
	color: #1f1f1f;
}

.catalog-ai__tab:nth-child(1) { width: 215px; padding-left: 54px; }
.catalog-ai__tab:nth-child(2) { width: 224px; padding-left: 44px; }
.catalog-ai__tab:nth-child(3) { width: 234px; padding-left: 41px; }

.catalog-ai__tab:hover,
.catalog-ai__tab.is-active:hover {
	background: transparent;
	color: #1f1f1f;
}

.catalog-ai__tab:not(.is-active):before {
	background: #fff;
}

.catalog-ai__tab:not(.is-active):hover:before {
	background: linear-gradient(to right, #ff7a54, #ff196a);
}

.catalog-ai__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 31.5px 30px;
}

.catalog-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 463px;
	padding: 194px 47px 43px;
	background: #fff;
	border-radius: 10px;
}

.catalog-card[hidden] {
	display: none;
}

.catalog-card__image {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 190px;
}

.catalog-card__image img {
	display: block;
	max-width: none;
	max-height: none;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: left top;
}

.catalog-card__title {
	position: relative;
	top: 0;
	font-family: 'Inter', 'Onest', sans-serif;
	font-size: 21px;
	line-height: 29px;
	font-weight: 500;
	letter-spacing: -.01em;
	color: #1f1f1f;
}

.catalog-card__brand,
.catalog-card__model {
	display: block;
	margin: 0;
	padding: 0;
	font: inherit;
	line-height: 29px;
	letter-spacing: inherit;
	text-transform: none;
	color: inherit;
	white-space: nowrap;
}

.catalog-card__model:empty {
	display: none;
}

.catalog-card__specs {
	flex: 1;
	margin: 7px 0 0 1px;
	font-size: 14px;
	line-height: 21px;
	color: #7d7d7d;
}

.catalog-card__btn {
	flex: none;
	width: 100%;
	margin: 0;
	padding: 0;
}

/* ---- «Затрудняетесь с выбором?» ---- */
.catalog-help {
	position: relative;
	height: 142px;
	margin-top: 78px;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
}

.catalog-help__img {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center bottom;
}

.catalog-help__text {
	position: absolute;
	left: 47px;
	top: 44px;
}

.catalog-help__title {
	position: relative;
	top: 0;
	font-size: 21px;
	line-height: 23px;
	letter-spacing: -.01em;
	color: #1f1f1f;
}

.catalog-help__sub {
	margin-top: 8px;
	font-size: 14px;
	line-height: 21px;
	color: #7d7d7d;
}

.catalog-help__btn {
	position: absolute;
	right: 34px;
	top: 49px;
	width: 253px;
	padding: 0;
}

/* ---- FAQ ---- */
.catalog-faq {
	padding-top: 70px;
}

.catalog-faq__title {
	position: relative;
	top: 4px;
	margin: 0 0 32px;
	font-size: 34px;
	line-height: 40px;
	letter-spacing: -.02em;
}

.catalog-faq__body {
	display: grid;
	grid-auto-flow: column;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: repeat(var(--faq-rows, 3), auto);
	gap: 22px 30px;
	align-items: start;
}

.catalog-faq__item {
	position: relative;
	background: #fff;
	border-radius: 10px;
	font-size: 15px;
	line-height: 24px;
	color: #1f1f1f;
}

.catalog-faq__q {
	padding: 30px 90px 26px 46px;
	cursor: pointer;
}

.catalog-faq__item.accordion__item_active .catalog-faq__q {
	padding-bottom: 14px;
}

.catalog-faq__a {
	display: none;
	padding: 0 82px 41px 46px;
}

.catalog-faq__a p {
	margin: 0;
}

.catalog-faq__arrow {
	position: absolute;
	right: 32px;
	top: 22px;
	width: 37px;
	height: 37px;
	border-radius: 10px;
	background: #f6f7f8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 13 13' fill='none'%3E%3Cpath d='M6.5 1v10.5M2 7l4.5 4.5L11 7' stroke='%238996b2' stroke-width='1.6' stroke-linecap='square'/%3E%3C/svg%3E") center no-repeat;
}

.catalog-faq__item.is-right .catalog-faq__arrow {
	right: 28px;
}

.catalog-faq__item.accordion__item_active .catalog-faq__arrow {
	transform: rotate(180deg);
}

/* ---- projects block (shared markup): Figma catalog variant ---- */
body[class*="page-template-ai-catalog"] .projects-thumbs-new {
	padding-top: 58px;
	height: 645px;
}

body[class*="page-template-ai-catalog"] .projects-thumbs-new .projects-thumbs__head {
	margin-bottom: 35px;
}

@media (max-width: 1024px) {
	.catalog-ai__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.catalog-banner__media { left: auto; right: 0; }
	.catalog-banner__bullets { top: 160px; }
	.catalog-banner__subtitle { width: 360px; }
	.catalog-help__img { opacity: .6; }
}

@media (max-width: 767px) {
	.catalog-head { padding-top: 20px; }
	.catalog-head__title { font-size: 34px; line-height: 38px; margin-bottom: 24px; }
	.catalog-banner { padding-bottom: 30px; }
	.catalog-banner__card { height: auto; padding: 30px 24px 0; }
	.catalog-banner__subtitle,
	.catalog-banner__bullets,
	.catalog-banner__button,
	.catalog-banner__media { position: static; }
	.catalog-banner__subtitle { width: auto; font-size: 22px; line-height: 26px; }
	.catalog-banner__bullets { margin: 20px 0 0 24px; }
	.catalog-banner__bullets li:before { left: -24px; }
	.catalog-banner__button { display: inline-flex; margin-top: 24px; }
	.catalog-banner__media { width: calc(100% + 48px); height: auto; margin: 10px -24px 0; }
	.catalog-banner__media img { height: auto; }
	.catalog-ai__tabs { gap: 10px; margin-bottom: 24px; }
	.catalog-ai__tab,
	.catalog-ai__tab:nth-child(n) { width: auto; padding: 0 22px; }
	.catalog-ai__grid { grid-template-columns: 1fr; gap: 16px; }
	.catalog-card { height: auto; min-height: 463px; }
	.catalog-card__specs { margin-bottom: 24px; }
	.catalog-help { height: auto; margin-top: 40px; padding: 30px 24px; }
	.catalog-help__text,
	.catalog-help__btn { position: relative; left: auto; right: auto; top: auto; }
	.catalog-help__text { z-index: 1; }
	.catalog-help__btn { z-index: 1; display: flex; width: 100%; margin-top: 20px; }
	.catalog-help__img { opacity: .5; }
	.catalog-faq { padding-top: 40px; }
	.catalog-faq__title { font-size: 26px; line-height: 32px; margin-bottom: 20px; }
	.catalog-faq__body { grid-auto-flow: row; grid-template-columns: 1fr; grid-template-rows: none; gap: 12px; }
	.catalog-faq__q { padding: 20px 70px 20px 24px; }
	.catalog-faq__item.accordion__item_active .catalog-faq__q { padding-bottom: 10px; }
	.catalog-faq__a { padding: 0 24px 24px; }
	.catalog-faq__arrow,
	.catalog-faq__item.is-right .catalog-faq__arrow { right: 16px; top: 14px; }
}
