/* Homepage-only styles. */

.mg-hero { background: linear-gradient(180deg, #f5f7fa 0%, #ffffff 100%); border-bottom: 1px solid var(--mg-border); }
.mg-hero__inner { display: grid; gap: 32px; padding-block: 48px 56px; align-items: center; grid-template-columns: 1fr; }
.mg-hero__copy h1 { margin-bottom: 14px; }
.mg-hero__lead { font-size: 1.15rem; color: var(--mg-muted); max-width: 56ch; }
.mg-hero__search { max-width: 560px; margin: 20px 0 16px; }
.mg-hero__search .mg-search { box-shadow: var(--mg-shadow); }
.mg-hero__search .mg-search__input { min-height: 54px; font-size: 1.05rem; }
.mg-hero__search .mg-search__btn { width: 60px; }
.mg-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mg-hero__art { display: none; }
.mg-hero__art svg { width: 100%; height: auto; aspect-ratio: 520 / 300; }
@media (min-width: 900px) {
	.mg-hero__inner { grid-template-columns: 1.1fr 0.9fr; padding-block: 72px; }
	.mg-hero__art { display: block; }
}

/* Brands */
.mg-brand-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .mg-brand-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .mg-brand-grid { grid-template-columns: repeat(5, 1fr); } }
.mg-brand { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 76px; padding: 14px 16px; background: #fff; border: 1px solid var(--mg-border); border-left: 4px solid var(--mg-primary); border-radius: var(--mg-radius-sm); text-decoration: none; color: var(--mg-text); transition: box-shadow 0.15s, border-color 0.15s; }
.mg-brand:hover { box-shadow: var(--mg-shadow-hover); border-left-color: var(--mg-accent); color: var(--mg-primary); }
.mg-brand__name { font-weight: 700; }
.mg-brand__count { font-size: 0.85rem; color: var(--mg-muted); }

/* Resources */
.mg-resource-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .mg-resource-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .mg-resource-grid { grid-template-columns: repeat(3, 1fr); } }
.mg-resource { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px; background: #fff; border: 1px solid var(--mg-border); border-radius: var(--mg-radius); text-decoration: none; color: var(--mg-text); box-shadow: var(--mg-shadow); transition: box-shadow 0.15s, transform 0.15s; }
.mg-resource:hover { box-shadow: var(--mg-shadow-hover); transform: translateY(-2px); }
.mg-resource__icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 12px; background: #e8f0fc; color: var(--mg-primary); margin-bottom: 6px; }
.mg-resource__title { font-weight: 700; font-size: 1.1rem; }
.mg-resource__text { color: var(--mg-muted); font-size: 0.97rem; line-height: 1.55; }
.mg-resource .mg-link-arrow { margin-top: auto; padding-top: 8px; color: var(--mg-primary); }

/* Guides */
.mg-guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: 1fr; counter-reset: guide; }
@media (min-width: 768px) { .mg-guide-list { grid-template-columns: repeat(2, 1fr); column-gap: 32px; } }
.mg-guide { counter-increment: guide; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 18px 0; border-top: 1px solid var(--mg-border); }
.mg-guide::before { content: counter(guide, decimal-leading-zero); grid-row: 1 / span 3; font-weight: 800; font-size: 1.4rem; color: var(--mg-accent); line-height: 1.3; }
.mg-guide__cat { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--mg-muted); }
.mg-guide__title { margin: 2px 0 4px; font-size: 1.15rem; }
.mg-guide__title a { color: var(--mg-text); text-decoration: none; }
.mg-guide__title a:hover { color: var(--mg-primary); text-decoration: underline; }
.mg-guide p { margin: 0; color: var(--mg-muted); font-size: 0.97rem; grid-column: 2; }
.mg-guide > * { grid-column: 2; }

/* Why */
.mg-why { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .mg-why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .mg-why { grid-template-columns: repeat(3, 1fr); } }
.mg-why li { display: flex; gap: 12px; align-items: flex-start; }
.mg-why .mg-icon { color: var(--mg-success); margin-top: 3px; }
.mg-why strong { display: block; }
.mg-why span { color: var(--mg-muted); font-size: 0.97rem; line-height: 1.55; }
