/*
 * Нижние SEO/GEO-блоки категории.
 *
 * Отдельный файл, а не часть style.scss: блоки правятся независимо от темы,
 * и пересобирать весь style.min.css ради них не нужно.
 * Все классы с префиксом cms- — чтобы ничего не пересеклось с темой и ocfilter.
 */

.cms-block {
	margin: 30px 0;
}

.cms-block .holder {
	background: #fff;
	border-radius: 15px;
	padding: 30px;
	box-shadow: 0 0 20px #1919190f;
}

.cms-block__title {
	margin: 0 0 20px;
	font-size: 24px;
	line-height: 1.25;
	font-weight: 700;
	color: #191919;
}

/* ------------------------------------------------------------------ FAQ */

.cms-faq__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cms-faq__item {
	background: #fafafa;
	border-radius: 12px;
	overflow: hidden;
}

.cms-faq__item[open] {
	background: #fff;
	box-shadow: 0 0 20px #1919190f;
}

.cms-faq__q {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 18px 46px 18px 20px;
	position: relative;
	cursor: pointer;
	font-weight: 600;
	font-size: 17px;
	line-height: 1.35;
	color: #191919;
	list-style: none;
}

/* Стрелку рисуем сами: штатный маркер <details> в разных браузерах выглядит по-разному. */
.cms-faq__q::-webkit-details-marker {
	display: none;
}

.cms-faq__q::after {
	content: '';
	position: absolute;
	right: 22px;
	top: 50%;
	width: 9px;
	height: 9px;
	margin-top: -6px;
	border-right: 2px solid #727171;
	border-bottom: 2px solid #727171;
	transform: rotate(45deg);
	transition: transform .2s;
}

.cms-faq__item[open] .cms-faq__q::after {
	transform: rotate(-135deg);
	margin-top: -2px;
}

.cms-faq__icon {
	flex: 0 0 auto;
	font-size: 20px;
	line-height: 1;
}

.cms-faq__a {
	padding: 0 20px 20px;
	font-size: 16px;
	line-height: 1.55;
	color: #191919;
}

.cms-faq__a p {
	margin: 0 0 12px;
	color: #727171;
}

.cms-faq__products {
	margin: 0;
	padding: 0 0 0 20px;
	list-style: disc;
}

.cms-faq__products li {
	margin-bottom: 8px;
}

.cms-faq__products a {
	color: #191919;
	text-decoration: none;
	border-bottom: 1px solid #fbb825;
}

.cms-faq__products a:hover {
	color: #d4a85d;
}

.cms-price {
	white-space: nowrap;
	font-weight: 600;
}

/* ---------------------------------------------------------------- цены */

/* Таблица шире экрана не ломает страницу — прокручивается внутри себя. */
.cms-prices__scroll {
	overflow-x: auto;
}

.cms-prices__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
}

.cms-prices__table th {
	text-align: left;
	font-weight: 400;
	color: #727171;
	padding: 0 15px 12px 0;
	border-bottom: 1px solid #f0f0f0;
}

.cms-prices__table td {
	padding: 16px 15px 16px 0;
	border-bottom: 1px solid #f0f0f0;
	vertical-align: top;
}

.cms-prices__table tr:last-child td {
	border-bottom: 0;
}

.cms-prices__table a {
	color: #191919;
	text-decoration: none;
	font-weight: 500;
}

.cms-prices__table a:hover {
	color: #d4a85d;
}

.cms-prices__spec {
	display: block;
	margin-top: 4px;
	font-size: 14px;
	color: #727171;
}

.cms-prices__spec b {
	color: #191919;
	font-weight: 600;
	margin-right: 6px;
}

.cms-prices__price {
	white-space: nowrap;
	font-weight: 600;
	text-align: right;
}

/* --------------------------------------------------------------- бренды */

/*
 * Секция берёт вёрстку и стили с главной (.brands). Там сетка жёстко на 10 колонок
 * под ровно девять логотипов; в категории брендов бывает четыре, и они растянулись бы
 * на пол-экрана. auto-fill держит плитку того же размера, что на главной, и просто
 * заполняет ряд слева направо.
 */
.cms-brands .grid-container {
	grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
}

.cms-brands .cms-block__title {
	margin-bottom: 25px;
}

@media (max-width: 600px) {
	.cms-brands .grid-container {
		grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
	}
}

/* --------------------------------------------------------------- чипсы */

.cms-chips__group {
	margin-bottom: 18px;
}

.cms-chips__group:last-child {
	margin-bottom: 0;
}

.cms-chips__group-name {
	font-size: 13px;
	font-weight: 600;
	color: #838383;
	margin-bottom: 8px;
}

.cms-chips__box {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.cms-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 18px;
	border-radius: 999px;
	background: #f2f2f2;
	color: #191919;
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none;
	transition: background .15s, color .15s;
}

.cms-chip:hover {
	background: #fbb825;
	color: #191919;
}

.cms-chip i {
	font-style: normal;
	font-size: 13px;
	color: #727171;
}

.cms-chip:hover i {
	color: #191919;
}

@media (max-width: 600px) {
	.cms-block {
		margin: 20px 0;
	}

	.cms-block .holder {
		border-radius: 0;
		padding: 25px 15px;
	}

	.cms-block__title {
		font-size: 20px;
	}

	.cms-faq__q {
		font-size: 16px;
		padding: 15px 40px 15px 15px;
	}

	.cms-faq__a {
		padding: 0 15px 15px;
	}
}
