.ad-directory { padding: 26px 0 clamp(50px,7vw,92px); }
.ad-directory-header { margin-block-end: clamp(18px,3vw,36px); }
.ad-directory-header h1 { margin: 0; color: var(--ad-ink); font: 650 clamp(40px,5.3vw,72px)/1.04 "AD Instrument Sans",Arial,sans-serif; letter-spacing: -.05em; overflow-wrap: anywhere; }
.ad-directory-header .ad-crumbs { margin-bottom: clamp(16px,2.5vw,30px); }
.ad-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(16px,2vw,24px); list-style: none; margin: 0; padding: 0; }
.ad-category-grid > li { min-width: 0; }
.ad-category-link { background: white; border: 1px solid var(--ad-line); border-radius: 18px; display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.ad-category-cover { position: relative; aspect-ratio: 2.05; width: 100%; display: grid; place-items: center; background: #f2f0e9; overflow: hidden; }
.ad-category-grid li:nth-child(3n + 2) .ad-category-cover { background: #f0f3ec; }
.ad-category-grid li:nth-child(3n + 3) .ad-category-cover { background: #f1f2f5; }
.ad-category-cover img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.ad-category-grid .ad-category-cover.ad-category-with-icon { color: #665014; background: #f8efcc; }
.ad-category-with-icon > svg { width: 56px; height: 56px; padding: 10px; overflow: visible; border-radius: 17px; background: #fff8dc; }
.ad-category-label { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: clamp(13px,1.5vw,20px); }
.ad-category-name { font-size: clamp(17px,1.8vw,23px); font-weight: 650; line-height: 1.16; letter-spacing: -.03em; overflow-wrap: anywhere; }
.ad-category-arrow { display: grid; background: #f6f6f2; border: 1px solid #dedfdb; border-radius: 50%; width: 30px; height: 30px; flex: none; place-items: center; }
.ad-category-link:is(:hover,:focus-visible) { border-color: #a6aaa4; }
.ad-category-link:is(:hover,:focus-visible) .ad-category-arrow { background: var(--ad-accent); border-color: var(--ad-accent); }
@media (max-width: 800px) {
	.ad-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 410px) {
	.ad-directory { padding-top: 17px; }
	.ad-category-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
	.ad-category-cover { aspect-ratio: 2.4; }
}
