/**
 * АС-КЛЕМАТИС · Внутренние страницы каталога (herbarium-шаблон).
 * Адаптация mockups/catalog/d-herbarium.html.
 * Требует shared.css и v2.css.
 */

body.page-catalog {
	background: var(--cream);
	color: var(--ink);
}

/* ---------- Заголовок категории ---------- */
.chead {
	padding: 36px 0 32px;
	position: relative;
}

.chead__eyebrow {
	color: var(--sage);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .22em;
	text-transform: uppercase;
}

.chead__title {
	margin: 16px 0 0;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(36px, 5vw, 72px);
	line-height: .95;
	letter-spacing: -.03em;
}

.chead__title em {
	font-style: italic;
	color: var(--gold-deep);
}

.chead__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-top: 24px;
	border-top: 1px solid var(--line);
	padding-top: 20px;
}

.chead__lead {
	max-width: 68ch;
	font-size: 15px;
	line-height: 1.7;
	color: rgba(28, 42, 34, .72);
}

.chead__note {
	max-width: 68ch;
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(28, 42, 34, .55);
}

.chead__count {
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 600;
	color: var(--sage);
	white-space: nowrap;
	text-align: right;
}

.chead__count b {
	font-size: 38px;
	display: block;
	line-height: 1;
	color: var(--ink);
}

/* ---------- Раздел временно без наличия ---------- */
.cat-empty {
	max-width: 640px;
	margin: 40px auto 80px;
	padding: 48px 40px;
	text-align: center;
	border: 1px solid var(--line);
	border-radius: 4px;
	background: rgba(198, 166, 117, .05);
}

.cat-empty__eyebrow {
	color: var(--gold-deep);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .22em;
	text-transform: uppercase;
}

.cat-empty__text {
	margin-top: 14px;
	font-family: var(--font-display);
	font-size: 22px;
	font-style: italic;
	line-height: 1.5;
	color: rgba(28, 42, 34, .78);
}

html[data-theme="dark"] .cat-empty { background: rgba(198, 166, 117, .08); border-color: var(--line-light); }
html[data-theme="dark"] .cat-empty__text { color: rgba(248, 245, 238, .78); }

/* ---------- Липкая панель фильтров/сортировки ---------- */
.toc {
	position: sticky;
	top: 65px;
	z-index: 30;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	margin-bottom: 26px;
	border-radius: 100px;
	background: rgba(248, 245, 238, .92);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(28, 42, 34, .08);
	box-shadow: 0 10px 28px rgba(18, 36, 27, .08);
	overflow-x: auto;
	scrollbar-width: none;
	transition: box-shadow .3s ease, border-color .3s ease;
}

.toc::-webkit-scrollbar {
	display: none;
}

.toc__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding-left: 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--gold-deep);
	white-space: nowrap;
	margin-right: 2px;
}

.toc__label::before {
	content: '';
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: currentColor;
	flex: 0 0 auto;
}

.toc a,
.toc__item {
	padding: 8px 16px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	color: rgba(28, 42, 34, .75);
	white-space: nowrap;
	border: 1px solid transparent;
	background: rgba(28, 42, 34, .04);
	transition: all .25s var(--ease-out);
}

.toc a:hover,
.toc__item:hover {
	border-color: rgba(154, 123, 79, .4);
	color: var(--ink);
	background: rgba(198, 166, 117, .1);
}

.toc a.is-active,
.toc__item.is-active {
	background: var(--pine);
	color: var(--cream);
	border-color: var(--pine);
	box-shadow: 0 6px 16px rgba(18, 36, 27, .25);
}

.toc__badges {
	position: relative;
	margin-left: auto;
	padding-left: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.toc__badges::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 22px;
	background: rgba(28, 42, 34, .12);
}

.toc__subgroups,
.toc__sort {
	position: relative;
	padding-left: 14px;
	flex: 0 0 auto;
}

.toc__subgroups::before,
.toc__sort::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 22px;
	background: rgba(28, 42, 34, .12);
}

.toc__subgroups select,
.toc__sort select {
	appearance: none;
	-webkit-appearance: none;
	max-width: 190px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding: 8px 34px 8px 16px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23262e29' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 15px;
	font-family: var(--font-ui);
	cursor: pointer;
	transition: border-color .2s;
}

.toc__subgroups select:hover,
.toc__subgroups select:focus,
.toc__sort select:hover,
.toc__sort select:focus {
	outline: none;
	border-color: rgba(154, 123, 79, .5);
}

/* Список опций в раскрывшемся select — отдельный слой, браузер не наследует
   background-color самого select (особенно на Chromium), поэтому без явного
   правила на option список рисуется системной светлой темой поверх тёмной
   тем — то же самое, что чинили для .chip-select в админке. */
.toc__subgroups select option,
.toc__sort select option { background-color: #fff; color: var(--ink); }

/* ---------- Masonry-сетка товаров ---------- */
.masonry {
	columns: 3;
	column-gap: 22px;
	padding-top: 30px;
	margin-bottom: 80px;
}

.masonry > * {
	break-inside: avoid;
	margin-bottom: 22px;
}

.tile {
	position: relative;
	border-radius: 22px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 8px 24px rgba(18, 36, 27, .06);
	display: block;
	color: inherit;
	transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}

.tile:hover {
	transform: translateY(-5px);
	box-shadow: 0 22px 50px rgba(18, 36, 27, .16);
}

.tile__ph {
	position: relative;
	overflow: hidden;
	background: var(--paper);
	display: block;
	text-decoration: none;
	color: inherit;
}

.tile__ph img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .45s var(--ease-out);
	will-change: transform;
}

/* JS добавляет параллакс — см. catalog-herbarium.js */
.tile:hover .tile__ph img {
	transform: scale(1.1);
}

.tile--tall .tile__ph { aspect-ratio: 3/4.4; }
.tile--std  .tile__ph { aspect-ratio: 4/5; }
.tile--wide .tile__ph { aspect-ratio: 5/4; }

/* Плитка сорта, у которого фото ещё нет (сорт уже в ассортименте). */
.tile__ph-empty {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px 20px 96px;
	font-size: 13.5px;
	text-align: center;
	color: rgba(28, 42, 34, .45);
	background: repeating-linear-gradient(135deg, rgba(72, 109, 87, .05), rgba(72, 109, 87, .05) 10px, transparent 10px, transparent 20px);
}

.tile__wish-form {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 4;
	margin: 0;
	padding: 0;
	opacity: 0;
	transform: translateY(-6px) scale(.9);
	transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
	pointer-events: none;
}

.tile:hover .tile__wish-form {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

.tile__wish {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 0;
	background: var(--cream);
	color: var(--pine);
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: transform .25s, color .25s, background .25s;
}

.tile__wish:hover {
	transform: scale(1.08);
	color: var(--gold);
}

.tile__wish.is-active {
	color: var(--gold);
}

.tile__wish svg {
	width: 18px;
	height: 18px;
}

.tile__over {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 18px;
	background: linear-gradient(to top, rgba(18, 36, 27, .78) 0%, rgba(18, 36, 27, .24) 42%, rgba(18, 36, 27, 0) 74%);
	color: #fff;
	/* Занимает всю карточку (inset:0) поверх .tile__ph — без этого перехватывает
	   клики по фото, которое должно вести на товар. Кликабельные дети (ссылка
	   названия, кнопка "В корзину") возвращают себе pointer-events отдельно. */
	pointer-events: none;
}

.tile__name a,
.tile__buy {
	pointer-events: auto;
}

.tile__badges {
	display: flex;
	flex-direction: column;
	align-self: flex-start;
	align-items: flex-start;
	gap: 6px;
	margin-bottom: auto;
}

.tile__badge {
	display: inline-flex;
	align-items: center;
	line-height: 1;
	padding: 5px 11px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	background: rgba(255, 255, 255, .92);
	color: var(--pine);
}

.tile__badge--sale {
	background: var(--blush);
	color: #fff;
}

.tile__badge--south {
	background: var(--sage);
	color: #fff;
}

.tile__badge--new {
	background: #4f7ea8;
	color: #fff;
}

.tile__cat {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	opacity: .85;
}

.tile__name {
	font-family: var(--font-display);
	font-size: 25px;
	font-weight: 600;
	line-height: 1.08;
	margin: 4px 0 10px;
}

.tile__name a {
	color: inherit;
	text-decoration: none;
}

.tile__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.tile__price {
	font-size: 16px;
	font-weight: 700;
}

.tile__price s {
	font-weight: 400;
	opacity: .6;
	margin-right: 6px;
}

.tile__buy {
	padding: 11px 22px;
	border-radius: 999px;
	border: 0;
	background: var(--pine);
	color: var(--cream);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), background .25s;
}

.tile:hover .tile__buy {
	opacity: 1;
	transform: translateY(0);
}

.tile__buy:hover {
	background: var(--pine-deep);
	transform: scale(1.04);
}

.tile__buy.is-in-cart,
.feature-card__cta.is-in-cart {
	background: var(--gold);
	color: var(--pine-deep);
}

.tile__buy.is-in-cart:hover,
.feature-card__cta.is-in-cart:hover {
	background: var(--gold-deep);
	color: var(--cream);
}

/* ---------- Отдельная презентационная карточка (первый товар) ---------- */
.feature-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
	max-height: 780px;
	border-radius: 22px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 12px 30px rgba(18, 36, 27, .1);
	margin-bottom: 22px;
}

.feature-card__ph {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 780px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	perspective: 1200px;
}

/* Фото не от края до края, а вписано с лёгким наклоном — «наложено» на блок. */
.feature-card__ph img {
	width: 74%;
	height: 90%;
	object-fit: cover;
	display: block;
	border-radius: 16px;
	box-shadow: 0 26px 60px rgba(18, 36, 27, .22);
	transform: rotate(-2.5deg);
	transition: transform .25s var(--ease-out);
	will-change: transform;
}

.feature-card:hover .feature-card__ph img {
	transform: rotate(-2.5deg) scale(1.02);
}

.feature-card .tile__badges {
	position: absolute;
	top: 4.5%;
	left: 11.5%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

.feature-card .tile__badge {
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--gold);
	color: var(--pine-deep);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.feature-card__body {
	padding: 40px 48px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.feature-card__eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--sage);
}

.feature-card__title {
	font-family: var(--font-display);
	font-size: clamp(30px, 3.4vw, 52px);
	font-weight: 600;
	line-height: 1.05;
	margin: 16px 0 14px;
}

.feature-card__title a {
	color: inherit;
	text-decoration: none;
}

.feature-card__title a:hover {
	color: var(--gold-deep);
}

.feature-card__text {
	font-size: 15px;
	line-height: 1.65;
	color: rgba(28, 42, 34, .72);
	max-width: 48ch;
}

.feature-card__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 26px;
	gap: 16px;
}

.feature-card__price {
	font-family: var(--font-display);
	font-size: 26px;
	font-weight: 600;
}

.feature-card__cta {
	padding: 13px 26px;
	border-radius: 999px;
	border: 0;
	background: var(--pine);
	color: var(--cream);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: background .25s;
}

.feature-card__cta:hover {
	background: var(--pine-deep);
}

.feature__cta:hover {
	background: var(--pine-deep);
}

/* ---------- Пагинация ---------- */
.hpagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin: 50px 0 70px;
}

.hpagination a,
.hpagination span {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	border-radius: 50%;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.hpagination a {
	background: #fff;
	color: var(--ink);
	border: 1px solid var(--line);
}

.hpagination a:hover {
	background: var(--pine);
	color: var(--cream);
	border-color: var(--pine);
}

.hpagination span.is-current {
	background: var(--pine);
	color: var(--cream);
}

.hpagination span.is-dots {
	color: rgba(28, 42, 34, .45);
}

/* ---------- Финальный блок ---------- */
.moreblock {
	margin: 40px 0 90px;
	padding: 40px;
	border-radius: 28px;
	background: linear-gradient(135deg, rgba(233, 244, 232, .9), rgba(249, 245, 238, .95));
	border: 1px solid rgba(72, 109, 87, .12);
	text-align: center;
}

.moreblock h2 {
	font-family: var(--font-display);
	font-size: 34px;
	font-weight: 600;
	margin: 8px 0 10px;
}

.moreblock p {
	max-width: 56ch;
	margin: 0 auto 22px;
	font-size: 15px;
	line-height: 1.65;
	color: rgba(28, 42, 34, .7);
}

.btn-pine {
	display: inline-block;
	padding: 14px 32px;
	border-radius: 999px;
	background: var(--pine);
	color: var(--cream);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.btn-pine:hover {
	background: var(--pine-deep);
}

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
	.feature-card { grid-template-columns: 1fr; max-height: none; }
	.feature-card__ph { height: 520px; }
}

@media (max-width: 900px) {
	.masonry { columns: 2; }
}

@media (max-width: 640px) {
	.chead__foot { flex-direction: column; align-items: flex-start; }
	.chead__count { text-align: left; }
	.toc__badges { margin-left: 0; }
	.masonry { columns: 1; }
	.tile__wish-form,
	.tile__buy { opacity: 1; transform: none; pointer-events: auto; }
	.feature-card__ph { height: 400px; }
	.feature-card__body { padding: 22px; }
	.feature-card__text { display: none; }
}

@media (hover: none) and (pointer: coarse) {
	.tile__wish-form,
	.tile__buy { opacity: 1; transform: none; pointer-events: auto; }
}

/* ============================================================
   Тёмная тема (html[data-theme="dark"]) — компаньон к правилам выше.
   ============================================================ */
html[data-theme="dark"] body.page-catalog { background: var(--pine-deep); color: var(--cream); }
html[data-theme="dark"] .chead__foot { border-top-color: var(--line-light); }
html[data-theme="dark"] .chead__lead { color: rgba(248, 245, 238, .72); }
html[data-theme="dark"] .chead__note { color: rgba(248, 245, 238, .55); }
html[data-theme="dark"] .chead__count b { color: var(--cream); }

html[data-theme="dark"] .toc {
	background: rgba(18, 36, 27, .82);
	border-color: var(--line-light);
	box-shadow: 0 10px 28px rgba(0, 0, 0, .3);
}
html[data-theme="dark"] .toc__label { color: var(--gold); }
html[data-theme="dark"] .toc a,
html[data-theme="dark"] .toc__item { color: rgba(248, 245, 238, .8); background: rgba(248, 245, 238, .06); }
html[data-theme="dark"] .toc a:hover,
html[data-theme="dark"] .toc__item:hover { border-color: rgba(198, 166, 117, .4); color: var(--cream); background: rgba(198, 166, 117, .12); }
html[data-theme="dark"] .toc a.is-active,
html[data-theme="dark"] .toc__item.is-active { background: var(--gold); color: var(--pine-deep); border-color: var(--gold); box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
html[data-theme="dark"] .toc__badges::before { background: var(--line-light); }
html[data-theme="dark"] .toc__subgroups::before,
html[data-theme="dark"] .toc__sort::before { background: var(--line-light); }
html[data-theme="dark"] .toc__subgroups select,
html[data-theme="dark"] .toc__sort select {
	border-color: var(--line-light);
	background-color: rgba(248, 245, 238, .06);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f8f5ee' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	color: var(--cream);
}
html[data-theme="dark"] .toc__sort select:hover,
html[data-theme="dark"] .toc__sort select:focus { border-color: var(--gold); }
html[data-theme="dark"] .toc__subgroups select option,
html[data-theme="dark"] .toc__sort select option { background-color: var(--pine-deep); color: var(--cream); }

html[data-theme="dark"] .tile { background: rgba(248, 245, 238, .04); box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
html[data-theme="dark"] .tile:hover { box-shadow: 0 22px 50px rgba(0, 0, 0, .45); }
html[data-theme="dark"] .tile__ph { background: rgba(248, 245, 238, .05); }
html[data-theme="dark"] .tile__ph-empty { color: rgba(248, 245, 238, .45); background: repeating-linear-gradient(135deg, rgba(248, 245, 238, .05), rgba(248, 245, 238, .05) 10px, transparent 10px, transparent 20px); }
html[data-theme="dark"] .tile__wish { background: var(--pine-deep); color: var(--gold); }
html[data-theme="dark"] .tile__buy { background: var(--gold); color: var(--pine-deep); }
html[data-theme="dark"] .tile__buy:hover { background: var(--cream); color: var(--pine-deep); }

html[data-theme="dark"] .feature-card { background: rgba(248, 245, 238, .04); box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
html[data-theme="dark"] .feature-card__eyebrow { color: var(--sage-soft); }
html[data-theme="dark"] .feature-card__title a:hover { color: var(--gold); }
html[data-theme="dark"] .feature-card__text { color: rgba(248, 245, 238, .72); }
html[data-theme="dark"] .feature-card__cta { background: var(--gold); color: var(--pine-deep); }
html[data-theme="dark"] .feature-card__cta:hover,
html[data-theme="dark"] .feature__cta:hover { background: var(--cream); }

html[data-theme="dark"] .hpagination a { background: rgba(248, 245, 238, .05); color: var(--cream); border-color: var(--line-light); }
html[data-theme="dark"] .hpagination a:hover { background: var(--gold); color: var(--pine-deep); border-color: var(--gold); }
html[data-theme="dark"] .hpagination span.is-current { background: var(--gold); color: var(--pine-deep); }
html[data-theme="dark"] .hpagination span.is-dots { color: rgba(248, 245, 238, .45); }

html[data-theme="dark"] .moreblock {
	background: linear-gradient(135deg, rgba(72, 109, 87, .14), rgba(198, 166, 117, .08));
	border-color: rgba(198, 166, 117, .18);
}
html[data-theme="dark"] .moreblock p { color: rgba(248, 245, 238, .72); }
html[data-theme="dark"] .btn-pine { background: var(--gold); color: var(--pine-deep); }
html[data-theme="dark"] .btn-pine:hover { background: var(--cream); }

/* is-in-cart в тёмной теме — СТАВИТСЯ ПОСЛЕДНИМ, чтобы перебивать общие hover
   (.tile__buy:hover, .feature-card__cta:hover → cream). Иначе кнопка в статусе
   «В корзине» при наведении обесцвечивается (cream bg + теряет отличие).
   is-in-cart → gold-deep/cream, hover → gold/pine-deep (контраст). */
html[data-theme="dark"] .tile__buy.is-in-cart,
html[data-theme="dark"] .feature-card__cta.is-in-cart { background: var(--gold-deep); color: var(--cream); }
html[data-theme="dark"] .tile__buy.is-in-cart:hover,
html[data-theme="dark"] .feature-card__cta.is-in-cart:hover { background: var(--gold); color: var(--pine-deep); }

/* ---------- /gruppy-klematisov/ — сетка подкатегорий (фото + описание) ---------- */
.grp-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
	margin: 8px 0 80px;
}

.grp-tile {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 4px;
	text-decoration: none;
	background: var(--paper);
	border: 1px solid var(--line);
	box-shadow: 0 0 0 rgba(18, 36, 27, 0);
	transition: box-shadow .4s var(--ease-out), border-color .4s var(--ease-out), transform .4s var(--ease-out);
}

.grp-tile:hover {
	border-color: rgba(198, 166, 117, .5);
	box-shadow: 0 20px 40px rgba(18, 36, 27, .16);
	transform: translateY(-3px);
}

.grp-tile__media {
	position: relative;
	aspect-ratio: 3 / 4;
	background-size: cover;
	background-position: center bottom;
	overflow: hidden;
}

.grp-tile__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(198, 166, 117, 0);
	transition: background .4s var(--ease-out);
}

.grp-tile:hover .grp-tile__media::after {
	background: rgba(198, 166, 117, .12);
}

.grp-tile__media--empty {
	display: grid;
	place-items: center;
	background: repeating-linear-gradient(135deg, rgba(28, 42, 34, .05), rgba(28, 42, 34, .05) 10px, transparent 10px, transparent 20px);
}

.grp-tile__media--empty span {
	font-family: var(--font-ui);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: rgba(28, 42, 34, .35);
}

.grp-tile__body {
	padding: 18px 20px 20px;
}

.grp-tile__eyebrow {
	display: block;
	font-family: var(--font-ui);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--gold-deep);
	margin-bottom: 6px;
}

.grp-tile__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--ink);
}

.grp-tile__arrow {
	font-size: 16px;
	color: var(--gold-deep);
	opacity: 0;
	transform: translateX(-6px);
	transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}

.grp-tile:hover .grp-tile__arrow {
	opacity: 1;
	transform: translateX(0);
}

.grp-tile__text {
	margin-top: 6px;
	font-size: 13px;
	line-height: 1.5;
	color: rgba(28, 42, 34, .65);
}

@media (max-width: 1100px) {
	.grp-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
	.grp-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.grp-tile__title { font-size: 17px; }
	.grp-tile__body { padding: 14px 16px 16px; }
}

@media (max-width: 480px) {
	.grp-grid { grid-template-columns: 1fr; }
}

html[data-theme="dark"] .grp-tile { background: rgba(248, 245, 238, .04); border-color: var(--line-light); }
html[data-theme="dark"] .grp-tile__media--empty { background: repeating-linear-gradient(135deg, rgba(248, 245, 238, .05), rgba(248, 245, 238, .05) 10px, transparent 10px, transparent 20px); }
html[data-theme="dark"] .grp-tile__media--empty span { color: rgba(248, 245, 238, .35); }
html[data-theme="dark"] .grp-tile__title { color: var(--cream); }
html[data-theme="dark"] .grp-tile__text { color: rgba(248, 245, 238, .65); }
