:root {
    --sbe-bg: #0F1011;
    --sbe-surface: #17181A;
    --sbe-surface-hover: #1B1D1F;
    --sbe-line: #26282B;
    --sbe-text: #EDEDEA;
    --sbe-muted: #9A9B97;
    --sbe-accent: #C8F25A;
    --sbe-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
    --sbe-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

html, body {
    margin: 0;
    background: var(--sbe-bg);
}

.sbe {
    box-sizing: border-box;
    min-height: 100vh;
    padding: 56px 24px 48px;
    display: flex;
    flex-direction: column;
    background: var(--sbe-bg);
    color: var(--sbe-text);
    font-family: var(--sbe-sans);
    -webkit-font-smoothing: antialiased;
}

.sbe > * {
    width: 100%;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.sbe p, .sbe h1, .sbe h2 {
    margin: 0;
    color: inherit;
    font-family: var(--sbe-sans);
}

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

/* Nagłówek */
.sbe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.sbe .sbe-logo {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
}

.sbe-logo em, .sbe-claim em {
    font-style: normal;
    color: var(--sbe-accent);
}

.sbe .sbe-domain {
    font-family: var(--sbe-mono);
    font-size: 13px;
    color: var(--sbe-muted);
}

/* Hero */
.sbe-hero {
    margin-top: 136px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    text-align: center;
}

.sbe .sbe-claim {
    font-size: clamp(44px, 7vw, 88px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.045em;
}

.sbe .sbe-lead {
    max-width: 600px;
    font-size: 20px;
    line-height: 1.55;
    color: var(--sbe-muted);
}

/* Siatka kafelków */
.sbe-grid {
    margin-top: 120px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    flex-grow: 1;
    align-content: start;
}

.sbe-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
    background: var(--sbe-surface);
    border: 1px solid var(--sbe-line);
    border-radius: 12px;
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.sbe-tile:hover {
    border-color: var(--sbe-accent);
    background: var(--sbe-surface-hover);
    transform: translateY(-2px);
}

.sbe-tile:has(a:focus-visible) {
    outline: 2px solid var(--sbe-accent);
    outline-offset: 3px;
}

.sbe-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.sbe .sbe-meta p {
    font-family: var(--sbe-mono);
    font-size: 13px;
    color: var(--sbe-muted);
}

.sbe .sbe-name {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.sbe .sbe-desc {
    flex-grow: 1;
    font-size: 16px;
    line-height: 1.55;
    color: var(--sbe-muted);
}

.sbe .sbe-cta {
    margin-top: 20px;
    font-size: 16px;
    font-weight: 500;
}

.sbe-cta a {
    color: var(--sbe-accent);
    outline: none;
}

/* Cały kafelek klikalny */
.sbe-cta a::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
}

.sbe-cta a::after {
    content: "→";
    display: inline-block;
    margin-left: 8px;
    transition: transform .18s ease;
}

.sbe-tile:hover .sbe-cta a::after {
    transform: translateX(6px);
}

/* Stopka */
.sbe-footer {
    margin-top: 96px;
    padding-top: 24px;
    border-top: 1px solid var(--sbe-line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-family: var(--sbe-mono);
    font-size: 13px;
    color: var(--sbe-muted);
}

.sbe .sbe-footer p {
    font-family: var(--sbe-mono);
}

.sbe-footer a {
    color: var(--sbe-text);
    transition: color .18s ease;
}

.sbe-footer a:hover {
    color: var(--sbe-accent);
}

/* Tablet */
@media (max-width: 960px) {
    .sbe-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Telefon */
@media (max-width: 640px) {
    .sbe {
        padding: 32px 20px;
    }

    .sbe-hero {
        margin-top: 88px;
        align-items: flex-start;
        gap: 20px;
        text-align: left;
    }

    .sbe .sbe-lead {
        font-size: 17px;
    }

    .sbe-grid {
        margin-top: 72px;
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .sbe-tile {
        padding: 22px;
    }

    .sbe-meta {
        margin-bottom: 8px;
    }

    .sbe .sbe-name {
        font-size: 24px;
    }

    .sbe-footer {
        margin-top: 48px;
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sbe-tile, .sbe-cta a::after {
        transition: none;
    }

    .sbe-tile:hover {
        transform: none;
    }
}
