/* Главная */
.hm-hero { padding: clamp(1.75rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem); border-radius: 1.5rem; background: radial-gradient(120% 140% at 100% 0%, #183a2e 0%, #0e1512 55%); color: #e9f3ee; position: relative; overflow: hidden; }
.hm-hero h1 { font-size: clamp(1.75rem, 4.2vw, 3rem); font-weight: 800; line-height: 1.1; max-width: 22ch; margin-bottom: .75rem; }
.hm-hero p { color: #b5c9bf; max-width: 46rem; font-size: 1.0625rem; }
.hm-hero::after { content: "E21  F05  4E  OE  UE  dE  A1  W4"; position: absolute; right: -1rem; bottom: -.6rem; font: 700 clamp(2.5rem, 8vw, 5.5rem)/1 var(--bs-font-mono); color: rgba(126, 240, 168, .06); white-space: nowrap; pointer-events: none; }
.hm-search { display: flex; align-items: center; gap: .75rem; width: 100%; max-width: 40rem; padding: .95rem 1.25rem; border-radius: 2rem; border: 0; background: #fff; color: #6b7570; font-size: 1.0625rem; text-align: start; box-shadow: 0 .75rem 2rem rgba(0,0,0,.25); cursor: text; }
.hm-search svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.hm-search kbd { margin-inline-start: auto; font-size: .75rem; color: #9aa39f; background: #f1f3f2; border-radius: .4rem; padding: .1rem .4rem; }
.hm-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; position: relative; z-index: 1; }
.hm-chips button { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #dbe9e2; border-radius: 2rem; padding: .3rem .8rem; font-size: .875rem; }
.hm-chips button:hover { background: rgba(255,255,255,.14); }
.hm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .75rem; margin: 1.25rem 0 0; }
.hm-stat { display: block; padding: 1rem 1.1rem; border-radius: 1rem; border: 1px solid var(--bs-border-color); background: var(--bs-bg-body); color: var(--bs-fg-body); text-decoration: none; transition: border-color .15s, transform .15s; }
.hm-stat:hover { border-color: var(--bs-primary-bg, #0d6efd); transform: translateY(-2px); }
.hm-stat b { display: block; font-size: 1.5rem; line-height: 1.2; }
.hm-stat span { font-size: .875rem; color: var(--bs-fg-3); }
.hm-tools { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.hm-tool { display: flex; gap: .75rem; padding: .9rem 1rem; border: 1px solid var(--bs-border-color); border-radius: 1rem; color: var(--bs-fg-body); text-decoration: none; background: var(--bs-bg-body); }
.hm-tool:hover { background: var(--bs-bg-1); }
.hm-tool-icon { width: 2.5rem; height: 2.5rem; border-radius: .75rem; display: flex; align-items: center; justify-content: center; background: var(--bs-primary-bg-subtle); color: var(--bs-primary-fg, #0d6efd); flex-shrink: 0; font-size: 1.25rem; }
.hm-tool b { display: block; }
.hm-tool small { color: var(--bs-fg-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-smd { border-radius: 1.25rem; padding: 1.5rem; background: #0e1512; color: #dbe9e2; }
.hm-smd .smd-code { font: 700 1rem/1.2 var(--bs-font-mono); padding: .25rem .6rem; border-radius: .5rem; background: #1b2823; color: #7ef0a8; text-decoration: none; }
.hm-app { border-radius: 1.25rem; padding: clamp(1.25rem, 3vw, 2rem); background: linear-gradient(135deg, var(--bs-primary-bg-subtle), var(--bs-bg-1)); border: 1px solid var(--bs-border-color); }
.hm-art { display: block; color: var(--bs-fg-body); text-decoration: none; }
.hm-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: .75rem; background: var(--bs-bg-2); }
.hm-art b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: .6rem; line-height: 1.3; }
.hm-art small { color: var(--bs-fg-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: .2rem; }
@media (max-width: 575.98px) {
	.hm-cards { grid-template-columns: 1fr 1fr; gap: 1rem .75rem; }
	.hm-cards .vd-title, .hm-cards .hm-art b { font-size: .875rem; }
	.hm-cards .hm-art small { display: none; }
	.hm-tools { gap: .5rem; }
	.hm-tool { padding: .65rem .8rem; align-items: center; }
	.hm-tool small { display: none; }
	.hm-tool-icon { width: 2rem; height: 2rem; font-size: 1rem; }
	.hm-stats { grid-template-columns: 1fr 1fr; }
}
