/*
 * Style specyficzne dla strony głównej. Tokeny, reset i nagłówek/stopka
 * są wspólne dla wszystkich podstron — patrz assets/theme.css.
 */

.hero-banner {
    margin-top: 8px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-banner img {
    display: block;
    width: 100%;
    height: auto;
}

.hero {
    max-width: 760px;
    padding-block: 24px 44px;
}

h1 {
    font-size: clamp(36px, 7vw, 68px);
    line-height: .98;
    letter-spacing: -.04em;
    margin-bottom: 20px;
}

.hero p,
.module-header p,
.app-placeholder p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    padding: 18px;
}

.module-card {
    display: flex;
    gap: 18px;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: transform .15s ease, border-color .15s ease;
}

.module-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
}

.module-icon {
    font-size: 32px;
    line-height: 1;
}

.module-icon.large {
    font-size: 46px;
}

.module-card h2 {
    margin-bottom: 8px;
    font-size: 22px;
}

.module-card p {
    margin-bottom: 18px;
    color: var(--muted);
    line-height: 1.55;
}

.module-link {
    font-weight: 800;
    color: var(--accent-dark);
}

.module-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.module-header h1 {
    font-size: clamp(32px, 6vw, 56px);
    margin-bottom: 10px;
}

.app-placeholder {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.example-box {
    margin-top: 22px;
    padding: 16px;
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}

code {
    word-break: break-all;
}

@media (max-width: 720px) {
    .module-grid {
        grid-template-columns: 1fr;
    }

    .module-header {
        flex-direction: column;
    }
}
