.hero {
    padding: 12px 0 20px;
}

.hero h1 {
    margin: 0 0 6px;
    font-size: 26px;
}

.hero p {
    margin: 0;
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 25px;
}

.grid.cards {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    display: block;
    transition: transform .1s ease, box-shadow .15s ease, border-color .15s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: #dcdcdc;
}

.card .k {
    font-weight: 800;
    margin-bottom: 6px;
    color: #222;
}

.card .n {
    color: #444;
}

.grid-with-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.widget h3 {
    margin-bottom: 8px;
}

.features {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 12px;
}

.page-header {
    margin-bottom: 24px;
}

.page-header .intro {
    max-width: 680px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.button:hover {
    background: #22568c;
    color: #fff;
    box-shadow: var(--shadow);
}

.button:active {
    transform: translateY(1px);
}

.button-small {
    padding: 8px 14px;
    font-size: 14px;
}

.checklist {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.checklist li {
    position: relative;
    padding-left: 26px;
    color: var(--muted);
}

.checklist li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 2px;
    color: #2f855a;
    font-size: 14px;
}

.categories-grid {
    display: grid;
    gap: 28px;
}

@media (min-width: 860px) {
    .categories-grid {
        grid-template-columns: minmax(0, 1fr) 320px;
        align-items: start;
    }
}

.seo-grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 760px) {
    .seo-grid {
        grid-template-columns: 3fr 2fr;
    }
}

.widget.highlight {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 16px;
}

.widget.highlight h3 {
    margin-top: 0;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card-bg);
    padding: 0 16px;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    padding: 14px 0;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "▼";
    float: right;
    font-size: 12px;
    transform: rotate(0deg);
    transition: transform .2s ease;
    color: var(--muted);
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-item .answer {
    border-top: 1px solid var(--border);
    padding: 12px 0 16px;
    color: var(--muted);
}

.faq-item .answer p {
    margin: 0;
}

.muted {
    color: var(--muted);
}

.muted.small {
    font-size: 0.9rem;
    line-height: 1.4;
}

.muted.small.block {
    display: block;
    margin-top: 4px;
}

.not-found {
    margin-top: 16px;
}

.not-found-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 900px) {
    .not-found-grid {
        grid-template-columns: minmax(0, 1fr) 320px;
        align-items: start;
    }
}

.resource-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.resource-list li {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    background: var(--card-bg);
    transition: box-shadow .2s ease, border-color .2s ease;
}

.resource-list li:hover {
    border-color: #cbd5f5;
    box-shadow: var(--shadow);
}

.resource-list a {
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    color: #1a202c;
}

.resource-list a:hover {
    color: var(--primary);
}
