/* Module cards from the catalogue (centre_modules). Tokens: theme.css. */

.cmod__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cmod__card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.4rem;
    border: 1px solid var(--cx-line);
    border-radius: var(--cx-r);
    background: var(--cx-surface);
    transition: border-color 200ms ease, transform 200ms var(--cx-ease), box-shadow 200ms var(--cx-ease);
}

.cmod__card:hover {
    border-color: color-mix(in srgb, var(--cx-accent) 45%, var(--cx-line));
    transform: translateY(-3px);
    box-shadow: var(--cx-shadow-lg);
}

.cmod__card--lead {
    border-color: transparent;
    background:
        radial-gradient(90% 80% at 100% 0%, color-mix(in srgb, var(--cx-accent) 35%, transparent), transparent 70%),
        var(--cx-night);
    color: #fff;
}

.cmod__icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.5rem;
    border-radius: 14px;
    background: color-mix(in srgb, var(--cx-accent) 10%, #fff);
    color: var(--cx-accent);
}

.cmod__card--lead .cmod__icon {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.cmod__icon .cms-icon {
    width: 1.35rem;
    height: 1.35rem;
}

.cmod__title {
    margin: 0;
    font-family: var(--cx-display);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.cmod__title a {
    color: inherit;
    text-decoration: none;
}

.cmod__title a::after {
    content: '';
    position: absolute;
    inset: 0;
}

.cmod__text {
    margin: 0;
    color: var(--cx-ink-2);
    font-size: 0.92rem;
    line-height: 1.5;
}

.cmod__card--lead .cmod__title {
    color: #fff;
}

.cmod__card--lead .cmod__text {
    color: rgba(255, 255, 255, 0.72);
}

.cmod__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: auto 0 0;
    padding-top: 0.9rem;
}

.cmod__price {
    font-family: var(--cx-display);
    font-size: 1.15rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.cmod__price--free {
    color: #2f7d32;
}

.cmod__card--lead .cmod__price--free {
    color: var(--cx-lime);
}

.cmod__more {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--cx-accent);
    font-size: 0.88rem;
    font-weight: 650;
}

.cmod__card--lead .cmod__more {
    color: #fff;
}

.cmod__more .cms-icon {
    width: 1rem;
    height: 1rem;
    transition: transform 160ms ease;
}

.cmod__card:hover .cmod__more .cms-icon {
    transform: translateX(3px);
}

.cmod__all {
    margin: 1.75rem 0 0;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .cmod__card { transition: none; }
    .cmod__card:hover { transform: none; }
}

/* Sections (CRM, marketplaces, SEO…): jump links, then a heading per section. */
.cmod__sections {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.75rem;
}

.cmod__sections a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--cx-line);
    border-radius: 999px;
    background: var(--cx-surface);
    color: inherit;
    font-size: 0.9rem;
    text-decoration: none;
    transition: border-color 200ms ease, color 200ms ease;
}

.cmod__sections a:hover {
    border-color: var(--cx-accent);
    color: var(--cx-accent);
}

.cmod__sections span {
    opacity: 0.6;
    font-size: 0.8em;
}

.cmod__section {
    margin: 0 0 2.5rem;
    scroll-margin-top: 6rem;
}

.cmod__section:last-of-type {
    margin-bottom: 0;
}

.cmod__section-title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
}
