/* Strony produktów nas4.tech (Razor Pages). Kolory marki nas4.tech z kontrastem WCAG AA. */
:root {
    --bg: #f5f8fc;
    --bg-alt: #e8f0f8;
    --surface: #ffffff;
    --text: #10213a;
    --muted: #46566e;
    --brand: #0f2a4a;
    --accent: #0b5f8f;
    --accent-strong: #08466b;
    --accent-soft: #2ccbe9;
    --border: #c9d6e6;
    --ok-bg: #dff3e6; --ok-fg: #14532d;
    --code-bg: #fff4d6; --code-fg: #6b4500;
    --na-bg: #f1e3e3; --na-fg: #7a1f1f;
    --focus: #f0a400;
    --radius: 12px;
    color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0c1626; --bg-alt: #111f34; --surface: #15243b; --text: #e8eef7; --muted: #b3c1d4;
        --brand: #e8eef7; --accent: #6cc8f0; --accent-strong: #9fdcf7; --border: #2b3d58;
        --ok-bg: #173a26; --ok-fg: #b9ecc9; --code-bg: #3d3112; --code-fg: #ffe3a3; --na-bg: #3f1d1d; --na-fg: #ffc9c9;
    }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 820px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip-link:focus { left: 8px; top: 8px; }
main:focus { outline: none; }

.site-header { background: #0f2a4a; color: #fff; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.brand img { display: block; height: 40px; width: auto; }
.site-header ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-header a { color: #fff; text-decoration: none; padding: 6px 2px; display: inline-block; }
.site-header a:hover { text-decoration: underline; color: #fff; }
.main-nav { margin-left: auto; }
.lang-nav a { border: 1px solid #5b7aa0; border-radius: 6px; padding: 4px 8px; font-size: .9rem; }
.lang-nav a[aria-current="page"] { background: #fff; color: #0f2a4a; font-weight: 700; }

h1, h2, h3 { line-height: 1.25; color: var(--brand); }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: .2em 0 .3em; display: flex; align-items: center; gap: 14px; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin: 0 0 .6em; }
h3 { font-size: 1.15rem; margin: 1.2em 0 .4em; }
.app-icon { border-radius: 14px; flex: none; }

.hero { padding: 40px 0 32px; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.hero-grid { display: grid; gap: 32px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); } }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; font-weight: 700; color: var(--accent); margin: 0; }
.tagline { font-size: 1.3rem; font-weight: 600; margin: 0 0 .6em; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.hero-facts { color: var(--muted); font-size: .92rem; }
.hero-shot { margin: 0; justify-self: center; }
.hero-shot img { width: min(320px, 78vw); border-radius: 22px; border: 1px solid var(--border); box-shadow: 0 12px 32px rgba(15, 42, 74, .22); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 12px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 2px solid transparent; min-height: 48px; }
.btn-primary { background: #0b5f8f; color: #fff; }
.btn-primary:hover { background: #08466b; color: #fff; }
.btn-secondary { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-secondary:hover { background: var(--surface); }

.section { padding: 44px 0; }
.section.alt { background: var(--bg-alt); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card, .note-box, .answer { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); }
.note-box { margin-top: 20px; border-left: 5px solid var(--accent-soft); }
.note-box h3 { margin-top: 0; }

table { border-collapse: collapse; width: 100%; background: var(--surface); }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
thead th { background: #0f2a4a; color: #fff; }
.facts th { width: 30%; color: var(--brand); }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.capabilities { min-width: 760px; }
.capabilities td p { margin: 0 0 .5em; }
.capabilities td p:last-child { margin-bottom: 0; }
.status { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .85rem; font-weight: 700; white-space: nowrap; }
.status-demonstrated { background: var(--ok-bg); color: var(--ok-fg); }
.status-codeonly { background: var(--code-bg); color: var(--code-fg); }
.status-notavailable { background: var(--na-bg); color: var(--na-fg); }
.limits li { margin-bottom: .4em; }

.shots { list-style: none; margin: 0; padding: 0 0 8px; display: grid; gap: 16px; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px); overflow-x: auto; scroll-snap-type: x mandatory; }
.shots li { scroll-snap-align: start; }
.shots figure { margin: 0; }
.shots img { border-radius: 16px; border: 1px solid var(--border); display: block; }
.shots figcaption { font-size: .9rem; color: var(--muted); margin-top: 6px; }
@media (min-width: 1000px) { .shots { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } }

.videos { list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.videos a { display: block; font-weight: 700; }
.videos img { border-radius: 10px; display: block; margin-bottom: 6px; }
.answer { margin-bottom: 14px; }
.answer h3 { margin-top: 0; }
.answer p { margin: 0; }
.links { padding-left: 1.2em; }
.links li { margin-bottom: .5em; }
.url { color: var(--muted); font-size: .85rem; word-break: break-all; }

.site-footer { background: #0f2a4a; color: #dbe6f3; padding: 20px 0; }
.footer-row { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
.site-footer p { margin: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { color: #fff; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Telefon: wiersze tabeli możliwości jako karty (bez poziomego przewijania). */
@media (max-width: 760px) {
    .table-scroll { border: 0; overflow: visible; }
    .capabilities { min-width: 0; background: transparent; }
    .capabilities thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .capabilities tr { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; padding: 12px 14px; }
    .capabilities th, .capabilities td { display: block; border: 0; padding: 4px 0; }
    .capabilities th[scope="row"] { font-size: 1.05rem; color: var(--brand); }
    .capabilities td[data-label]:not(:nth-of-type(1))::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-top: 6px; }
    .facts th, .facts td { display: block; width: auto; border: 0; padding: 2px 12px; }
    .facts th { padding-top: 10px; }
    .facts tr { display: block; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
}
